summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-05-09 23:00:23 +0200
committerGitHub <noreply@github.com>2022-05-09 23:00:23 +0200
commit1e55dd47f251ae588fb418ac29cbc6a0ae741e69 (patch)
treeb3b930c3f864d82ebeb079fcfbbf570b1620ca3f /vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go
parent700b95546b4fbc4bbd094ab1804406c13634d7e2 (diff)
downloadmatterbridge-msglm-1e55dd47f251ae588fb418ac29cbc6a0ae741e69.tar.gz
matterbridge-msglm-1e55dd47f251ae588fb418ac29cbc6a0ae741e69.tar.bz2
matterbridge-msglm-1e55dd47f251ae588fb418ac29cbc6a0ae741e69.zip
Update dependencies (#1831)
Diffstat (limited to 'vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go')
-rw-r--r--vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go33986
1 files changed, 17791 insertions, 16195 deletions
diff --git a/vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go b/vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go
index f59c78ef..001cfd0f 100644
--- a/vendor/modernc.org/sqlite/lib/sqlite_netbsd_amd64.go
+++ b/vendor/modernc.org/sqlite/lib/sqlite_netbsd_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_netbsd_amd64.go -trace-translation-units testdata/sqlite-amalgamation-3370200/sqlite3.c -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -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 -D__libc_cond_broadcast=pthread_cond_broadcast -D__libc_cond_destroy=pthread_cond_destroy -D__libc_cond_init=pthread_cond_init -D__libc_cond_signal=pthread_cond_signal -D__libc_cond_wait=pthread_cond_wait -D__libc_mutex_destroy=pthread_mutex_destroy -D__libc_mutex_init=pthread_mutex_init -D__libc_mutex_lock=pthread_mutex_lock -D__libc_mutex_trylock=pthread_mutex_trylock -D__libc_mutex_unlock=pthread_mutex_unlock -D__libc_mutexattr_destroy=pthread_mutexattr_destroy -D__libc_mutexattr_init=pthread_mutexattr_init -D__libc_mutexattr_settype=pthread_mutexattr_settype -D__libc_thr_yield=sched_yield', 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_netbsd_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 -D__libc_cond_broadcast=pthread_cond_broadcast -D__libc_cond_destroy=pthread_cond_destroy -D__libc_cond_init=pthread_cond_init -D__libc_cond_signal=pthread_cond_signal -D__libc_cond_wait=pthread_cond_wait -D__libc_mutex_destroy=pthread_mutex_destroy -D__libc_mutex_init=pthread_mutex_init -D__libc_mutex_lock=pthread_mutex_lock -D__libc_mutex_trylock=pthread_mutex_trylock -D__libc_mutex_unlock=pthread_mutex_unlock -D__libc_mutexattr_destroy=pthread_mutexattr_destroy -D__libc_mutexattr_init=pthread_mutexattr_init -D__libc_mutexattr_settype=pthread_mutexattr_settype -D__libc_thr_yield=sched_yield', DO NOT EDIT.
package sqlite3
@@ -20,2911 +20,2931 @@ var _ *libc.TLS
var _ types.Size_t
const (
- ACCESSPERMS = 511
- ALLPERMS = 4095
- ARG_MAX = 262144
- AT_EACCESS = 0x100
- AT_FDCWD = -100
- AT_REMOVEDIR = 0x800
- AT_SYMLINK_FOLLOW = 0x400
- AT_SYMLINK_NOFOLLOW = 0x200
- BC_BASE_MAX = 2147483647
- BC_DIM_MAX = 65535
- BC_SCALE_MAX = 2147483647
- BC_STRING_MAX = 2147483647
- BIG_ENDIAN = 4321
- BITVEC_SZ = 512
- BITVEC_SZELEM = 8
- BTALLOC_ANY = 0
- BTALLOC_EXACT = 1
- BTALLOC_LE = 2
- BTCF_AtLast = 0x08
- BTCF_Incrblob = 0x10
- BTCF_Multiple = 0x20
- BTCF_Pinned = 0x40
- BTCF_ValidNKey = 0x02
- BTCF_ValidOvfl = 0x04
- BTCF_WriteFlag = 0x01
- BTCURSOR_MAX_DEPTH = 20
- BTREE_APPEND = 0x08
- BTREE_APPLICATION_ID = 8
- BTREE_AUTOVACUUM_FULL = 1
- BTREE_AUTOVACUUM_INCR = 2
- BTREE_AUTOVACUUM_NONE = 0
- BTREE_AUXDELETE = 0x04
- BTREE_BLOBKEY = 2
- BTREE_BULKLOAD = 0x00000001
- BTREE_DATA_VERSION = 15
- BTREE_DEFAULT_CACHE_SIZE = 3
- BTREE_FILE_FORMAT = 2
- BTREE_FORDELETE = 0x00000008
- BTREE_FREE_PAGE_COUNT = 0
- BTREE_HINT_RANGE = 0
- BTREE_INCR_VACUUM = 7
- BTREE_INTKEY = 1
- BTREE_LARGEST_ROOT_PAGE = 4
- BTREE_MEMORY = 2
- BTREE_OMIT_JOURNAL = 1
- BTREE_PREFORMAT = 0x80
- BTREE_SAVEPOSITION = 0x02
- BTREE_SCHEMA_VERSION = 1
- BTREE_SEEK_EQ = 0x00000002
- BTREE_SINGLE = 4
- BTREE_TEXT_ENCODING = 5
- BTREE_UNORDERED = 8
- BTREE_USER_VERSION = 6
- BTREE_WRCSR = 0x00000004
- BTS_EXCLUSIVE = 0x0040
- BTS_FAST_SECURE = 0x000c
- BTS_INITIALLY_EMPTY = 0x0010
- BTS_NO_WAL = 0x0020
- BTS_OVERWRITE = 0x0008
- BTS_PAGESIZE_FIXED = 0x0002
- BTS_PENDING = 0x0080
- BTS_READ_ONLY = 0x0001
- BTS_SECURE_DELETE = 0x0004
- BUFSIZ = 1024
- BYTE_ORDER = 1234
- CACHE_STALE = 0
- CC_AND = 24
- CC_BANG = 15
- CC_BOM = 30
- CC_COMMA = 23
- CC_DIGIT = 3
- CC_DOLLAR = 4
- CC_DOT = 26
- CC_EQ = 14
- CC_GT = 13
- CC_ID = 27
- CC_ILLEGAL = 28
- CC_KYWD = 2
- CC_KYWD0 = 1
- CC_LP = 17
- CC_LT = 12
- CC_MINUS = 11
- CC_NUL = 29
- CC_PERCENT = 22
- CC_PIPE = 10
- CC_PLUS = 20
- CC_QUOTE = 8
- CC_QUOTE2 = 9
- CC_RP = 18
- CC_SEMI = 19
- CC_SLASH = 16
- CC_SPACE = 7
- CC_STAR = 21
- CC_TILDA = 25
- CC_VARALPHA = 5
- CC_VARNUM = 6
- CC_X = 0
- CHARCLASS_NAME_MAX = 14
- CHAR_BIT = 8
- CHAR_MAX = 127
- CHAR_MIN = -128
- CHILD_MAX = 160
- CKCNSTRNT_COLUMN = 0x01
- CKCNSTRNT_ROWID = 0x02
- CLOCKS_PER_SEC = 100
- CLOCK_MONOTONIC = 3
- CLOCK_PROCESS_CPUTIME_ID = 0x40000000
- CLOCK_PROF = 2
- CLOCK_REALTIME = 0
- CLOCK_THREAD_CPUTIME_ID = 0x20000000
- CLOCK_VIRTUAL = 1
- COLFLAG_BUSY = 0x0100
- COLFLAG_GENERATED = 0x0060
- COLFLAG_HASCOLL = 0x0200
- COLFLAG_HASTYPE = 0x0004
- COLFLAG_HIDDEN = 0x0002
- COLFLAG_NOINSERT = 0x0062
- COLFLAG_NOTAVAIL = 0x0080
- COLFLAG_PRIMKEY = 0x0001
- COLFLAG_SORTERREF = 0x0010
- COLFLAG_STORED = 0x0040
- COLFLAG_UNIQUE = 0x0008
- COLFLAG_VIRTUAL = 0x0020
- COLL_WEIGHTS_MAX = 2
- COLNAME_COLUMN = 4
- COLNAME_DATABASE = 2
- COLNAME_DECLTYPE = 1
- COLNAME_N = 5
- COLNAME_NAME = 0
- COLNAME_TABLE = 3
- COLTYPE_ANY = 1
- COLTYPE_BLOB = 2
- COLTYPE_CUSTOM = 0
- COLTYPE_INT = 3
- COLTYPE_INTEGER = 4
- COLTYPE_REAL = 5
- COLTYPE_TEXT = 6
- CURSOR_FAULT = 4
- CURSOR_INVALID = 1
- CURSOR_REQUIRESEEK = 3
- CURSOR_SKIPNEXT = 2
- CURSOR_VALID = 0
- CURTYPE_BTREE = 0
- CURTYPE_PSEUDO = 3
- CURTYPE_SORTER = 1
- CURTYPE_VTAB = 2
- DBFLAG_EncodingFixed = 0x0040
- DBFLAG_InternalFunc = 0x0020
- DBFLAG_PreferBuiltin = 0x0002
- DBFLAG_SchemaChange = 0x0001
- DBFLAG_SchemaKnownOk = 0x0010
- DBFLAG_Vacuum = 0x0004
- DBFLAG_VacuumInto = 0x0008
- DBL_DIG = 15
- DB_ResetWanted = 0x0008
- DB_SchemaLoaded = 0x0001
- DB_UnresetViews = 0x0002
- DEFFILEMODE = 438
- DIRECT_MODE = 0
- DKCACHE_DPO = 0x040000
- DKCACHE_FUA = 0x020000
- DKCACHE_RCHANGE = 0x000100
- DKCACHE_READ = 0x000001
- DKCACHE_SAVE = 0x010000
- DKCACHE_WCHANGE = 0x000200
- DKCACHE_WRITE = 0x000002
- DL_GETERRNO = 1
- DL_GETSYMBOL = 2
- DL_LAZY = 1
- DOMAIN = 1
- DOTLOCK_SUFFIX = ".lock"
- E2BIG = 7
- EACCES = 13
- EADDRINUSE = 48
- EADDRNOTAVAIL = 49
- EAFNOSUPPORT = 47
- EAGAIN = 35
- EALREADY = 37
- EAUTH = 80
- EBADF = 9
- EBADMSG = 88
- EBADRPC = 72
- EBUSY = 16
- ECANCELED = 87
- ECHILD = 10
- ECONNABORTED = 53
- ECONNREFUSED = 61
- ECONNRESET = 54
- EDEADLK = 11
- EDESTADDRREQ = 39
- EDOM = 33
- EDQUOT = 69
- EEXIST = 17
- EFAULT = 14
- EFBIG = 27
- EFTYPE = 79
- EHOSTDOWN = 64
- EHOSTUNREACH = 65
- EIDRM = 82
- EILSEQ = 85
- EINPROGRESS = 36
- EINTR = 4
- EINVAL = 22
- EIO = 5
- EISCONN = 56
- EISDIR = 21
- ELAST = 96
- ELOOP = 62
- EMFILE = 24
- EMLINK = 31
- EMSGSIZE = 40
- EMULTIHOP = 94
- ENAMETOOLONG = 63
- ENAME_NAME = 0
- ENAME_SPAN = 1
- ENAME_TAB = 2
- ENEEDAUTH = 81
- ENETDOWN = 50
- ENETRESET = 52
- ENETUNREACH = 51
- ENFILE = 23
- ENOATTR = 93
- ENOBUFS = 55
- ENODATA = 89
- ENODEV = 19
- ENOENT = 2
- ENOEXEC = 8
- ENOLCK = 77
- ENOLINK = 95
- ENOMEM = 12
- ENOMSG = 83
- ENOPROTOOPT = 42
- ENOSPC = 28
- ENOSR = 90
- ENOSTR = 91
- ENOSYS = 78
- ENOTBLK = 15
- ENOTCONN = 57
- ENOTDIR = 20
- ENOTEMPTY = 66
- ENOTSOCK = 38
- ENOTSUP = 86
- ENOTTY = 25
- ENXIO = 6
- EOF = -1
- EOPNOTSUPP = 45
- EOVERFLOW = 84
- EPERM = 1
- EPFNOSUPPORT = 46
- EPIPE = 32
- EPROCLIM = 67
- EPROCUNAVAIL = 76
- EPROGMISMATCH = 75
- EPROGUNAVAIL = 74
- EPROTO = 96
- EPROTONOSUPPORT = 43
- EPROTOTYPE = 41
- EP_Agg = 0x000010
- EP_CanBeNull = 0x100000
- EP_Collate = 0x000100
- EP_Commuted = 0x000200
- EP_ConstFunc = 0x080000
- EP_DblQuoted = 0x000040
- EP_Distinct = 0x000002
- EP_FixedCol = 0x000008
- EP_FromDDL = 0x40000000
- EP_FromJoin = 0x000001
- EP_HasFunc = 0x000004
- EP_IfNullRow = 0x020000
- EP_Immutable = 0x02
- EP_InfixFunc = 0x000080
- EP_IntValue = 0x000400
- EP_IsFalse = 0x20000000
- EP_IsTrue = 0x10000000
- EP_Leaf = 0x800000
- EP_MemToken = 0x010000
- EP_NoReduce = 0x01
- EP_Propagate = 2097412
- EP_Quoted = 0x4000000
- EP_Reduced = 0x002000
- EP_Skip = 0x001000
- EP_Static = 0x8000000
- EP_Subquery = 0x200000
- EP_Subrtn = 0x2000000
- EP_TokenOnly = 0x004000
- EP_Unlikely = 0x040000
- EP_VarSelect = 0x000020
- EP_Win = 0x008000
- EP_WinFunc = 0x1000000
- EP_xIsSelect = 0x000800
- ERANGE = 34
- EREMOTE = 71
- EROFS = 30
- ERPCMISMATCH = 73
- ESHUTDOWN = 58
- ESOCKTNOSUPPORT = 44
- ESPIPE = 29
- ESRCH = 3
- ESTALE = 70
- ETIME = 92
- ETIMEDOUT = 60
- ETOOMANYREFS = 59
- ETXTBSY = 26
- EUSERS = 68
- EWOULDBLOCK = 35
- EXCLUDED_TABLE_NUMBER = 2
- EXCLUSIVE_LOCK = 4
- EXDEV = 18
- EXIT_FAILURE = 1
- EXIT_SUCCESS = 0
- EXPRDUP_REDUCE = 0x0001
- EXPR_NEST_MAX = 32
- FAPPEND = 8
- FASYNC = 64
- FDATASYNC = 0x0010
- FDISKSYNC = 0x0040
- FD_CLOEXEC = 1
- FD_SETSIZE = 256
- FFILESYNC = 0x0020
- FILENAME_MAX = 1024
- FLAG_SIGNED = 1
- FLAG_STRING = 4
- FLT_DIG = 6
- FLT_MAX = 0
- FLT_MIN = 0
- FNDELAY = 4
- FOPEN_MAX = 20
- FPARSELN_UNESCALL = 0x0f
- FPARSELN_UNESCCOMM = 0x04
- FPARSELN_UNESCCONT = 0x02
- FPARSELN_UNESCESC = 0x01
- FPARSELN_UNESCREST = 0x08
- FP_ILOGB0 = -2147483648
- FP_ILOGBNAN = 2147483647
- FP_INFINITE = 0x00
- FP_NAN = 0x01
- FP_NORMAL = 0x02
- FP_SUBNORMAL = 0x03
- FP_ZERO = 0x04
- FREAD = 0x00000001
- FTS5CSR_EOF = 0x01
- FTS5CSR_FREE_ZRANK = 0x10
- FTS5CSR_REQUIRE_CONTENT = 0x02
- FTS5CSR_REQUIRE_DOCSIZE = 0x04
- FTS5CSR_REQUIRE_INST = 0x08
- FTS5CSR_REQUIRE_POSLIST = 0x40
- FTS5CSR_REQUIRE_RESEEK = 0x20
- FTS5INDEX_QUERY_DESC = 0x0002
- FTS5INDEX_QUERY_NOOUTPUT = 0x0020
- FTS5INDEX_QUERY_PREFIX = 0x0001
- FTS5INDEX_QUERY_SCAN = 0x0008
- FTS5INDEX_QUERY_SKIPEMPTY = 0x0010
- FTS5INDEX_QUERY_TEST_NOIDX = 0x0004
- FTS5_AND = 2
- FTS5_AVERAGES_ROWID = 1
- FTS5_BI_MATCH = 0x0001
- FTS5_BI_ORDER_DESC = 0x0080
- FTS5_BI_ORDER_RANK = 0x0020
- FTS5_BI_ORDER_ROWID = 0x0040
- FTS5_BI_RANK = 0x0002
- FTS5_BI_ROWID_EQ = 0x0004
- FTS5_BI_ROWID_GE = 0x0010
- FTS5_BI_ROWID_LE = 0x0008
- FTS5_CARET = 12
- FTS5_COLON = 5
- FTS5_COMMA = 13
- FTS5_CONTENT_EXTERNAL = 2
- FTS5_CONTENT_NONE = 1
- FTS5_CONTENT_NORMAL = 0
- FTS5_CORRUPT = 267
- FTS5_CURRENT_VERSION = 4
- FTS5_DATA_DLI_B = 1
- FTS5_DATA_HEIGHT_B = 5
- FTS5_DATA_ID_B = 16
- FTS5_DATA_PADDING = 20
- FTS5_DATA_PAGE_B = 31
- FTS5_DATA_ZERO_PADDING = 8
- FTS5_DEFAULT_AUTOMERGE = 4
- FTS5_DEFAULT_CRISISMERGE = 16
- FTS5_DEFAULT_HASHSIZE = 1048576
- FTS5_DEFAULT_NEARDIST = 10
- FTS5_DEFAULT_PAGE_SIZE = 4050
- FTS5_DEFAULT_RANK = "bm25"
- FTS5_DEFAULT_USERMERGE = 4
- FTS5_DETAIL_COLUMNS = 2
- FTS5_DETAIL_FULL = 0
- FTS5_DETAIL_NONE = 1
- FTS5_EOF = 0
- FTS5_LCP = 7
- FTS5_LP = 10
- FTS5_MAIN_PREFIX = 48
- FTS5_MAX_PAGE_SIZE = 65536
- FTS5_MAX_PREFIX_INDEXES = 31
- FTS5_MAX_SEGMENT = 2000
- FTS5_MAX_TOKEN_SIZE = 32768
- FTS5_MERGE_NLIST = 16
- FTS5_MINUS = 6
- FTS5_MIN_DLIDX_SIZE = 4
- FTS5_NOT = 3
- FTS5_OPT_WORK_UNIT = 1000
- FTS5_OR = 1
- FTS5_PATTERN_GLOB = 66
- FTS5_PATTERN_LIKE = 65
- FTS5_PATTERN_NONE = 0
- FTS5_PLAN_MATCH = 1
- FTS5_PLAN_ROWID = 6
- FTS5_PLAN_SCAN = 5
- FTS5_PLAN_SORTED_MATCH = 4
- FTS5_PLAN_SOURCE = 2
- FTS5_PLAN_SPECIAL = 3
- FTS5_PLUS = 14
- FTS5_PORTER_MAX_TOKEN = 64
- FTS5_RANK_NAME = "rank"
- FTS5_RCP = 8
- FTS5_REMOVE_DIACRITICS_COMPLEX = 2
- FTS5_REMOVE_DIACRITICS_NONE = 0
- FTS5_REMOVE_DIACRITICS_SIMPLE = 1
- FTS5_ROWID_NAME = "rowid"
- FTS5_RP = 11
- FTS5_SEGITER_ONETERM = 0x01
- FTS5_SEGITER_REVERSE = 0x02
- FTS5_STAR = 15
- FTS5_STMT_DELETE_CONTENT = 5
- FTS5_STMT_DELETE_DOCSIZE = 7
- FTS5_STMT_INSERT_CONTENT = 3
- FTS5_STMT_LOOKUP = 2
- FTS5_STMT_LOOKUP_DOCSIZE = 8
- FTS5_STMT_REPLACE_CONFIG = 9
- FTS5_STMT_REPLACE_CONTENT = 4
- FTS5_STMT_REPLACE_DOCSIZE = 6
- FTS5_STMT_SCAN = 10
- FTS5_STMT_SCAN_ASC = 0
- FTS5_STMT_SCAN_DESC = 1
- FTS5_STRING = 9
- FTS5_STRUCTURE_ROWID = 10
- FTS5_TERM = 4
- FTS5_TOKENIZE_AUX = 0x0008
- FTS5_TOKENIZE_DOCUMENT = 0x0004
- FTS5_TOKENIZE_PREFIX = 0x0002
- FTS5_TOKENIZE_QUERY = 0x0001
- FTS5_TOKEN_COLOCATED = 0x0001
- FTS5_VOCAB_COL = 0
- FTS5_VOCAB_COL_SCHEMA = "term, col, doc, cnt"
- FTS5_VOCAB_INSTANCE = 2
- FTS5_VOCAB_INST_SCHEMA = "term, doc, col, offset"
- FTS5_VOCAB_ROW = 1
- FTS5_VOCAB_ROW_SCHEMA = "term, doc, cnt"
- FTS5_VOCAB_TERM_EQ = 0x01
- FTS5_VOCAB_TERM_GE = 0x02
- FTS5_VOCAB_TERM_LE = 0x04
- FTS5_WORK_UNIT = 64
- FULLY_WITHIN = 2
- FUNC_PERFECT_MATCH = 6
- FWRITE = 0x00000002
- F_CLOSEM = 10
- F_DUPFD = 0
- F_DUPFD_CLOEXEC = 12
- F_GETFD = 1
- F_GETFL = 3
- F_GETLK = 7
- F_GETNOSIGPIPE = 13
- F_GETOWN = 5
- F_LOCK = 1
- F_MAXFD = 11
- F_OK = 0
- F_PARAM_MASK = 0xfff
- F_PARAM_MAX = 4095
- F_RDLCK = 1
- F_SETFD = 2
- F_SETFL = 4
- F_SETLK = 8
- F_SETLKW = 9
- F_SETNOSIGPIPE = 14
- F_SETOWN = 6
- F_TEST = 3
- F_TLOCK = 2
- F_ULOCK = 0
- F_UNLCK = 2
- F_WRLCK = 3
- GCC_VERSION = 7005000
- GEOPOLY_PI = 3.1415926535897932385
- GETPASS_7BIT = 0x080
- GETPASS_BUF_LIMIT = 0x004
- GETPASS_ECHO = 0x020
- GETPASS_ECHO_NL = 0x400
- GETPASS_ECHO_STAR = 0x040
- GETPASS_FAIL_EOF = 0x002
- GETPASS_FORCE_LOWER = 0x100
- GETPASS_FORCE_UPPER = 0x200
- GETPASS_NEED_TTY = 0x001
- GETPASS_NO_BEEP = 0x010
- GETPASS_NO_SIGNAL = 0x008
- GID_MAX = 2147483647
- HASHSIZE = 97
- HASHTABLE_HASH_1 = 383
- HASHTABLE_NPAGE = 4096
- HASHTABLE_NSLOT = 8192
- HAVE_FCHOWN = 1
- HAVE_FULLFSYNC = 0
- HAVE_GETHOSTUUID = 0
- HAVE_LSTAT = 1
- HAVE_MREMAP = 0
- HAVE_READLINK = 1
- HAVE_USLEEP = 1
- HDLCDISC = 9
- HN_AUTOSCALE = 0x20
- HN_B = 0x04
- HN_DECIMAL = 0x01
- HN_DIVISOR_1000 = 0x08
- HN_GETSCALE = 0x10
- HN_NOSPACE = 0x02
- INCRINIT_NORMAL = 0
- INCRINIT_ROOT = 2
- INCRINIT_TASK = 1
- INITFLAG_AlterAdd = 0x0003
- INITFLAG_AlterDrop = 0x0002
- INITFLAG_AlterMask = 0x0003
- INITFLAG_AlterRename = 0x0001
- INLINEFUNC_affinity = 4
- INLINEFUNC_coalesce = 0
- INLINEFUNC_expr_compare = 3
- INLINEFUNC_expr_implies_expr = 2
- INLINEFUNC_iif = 5
- INLINEFUNC_implies_nonnull_row = 1
- INLINEFUNC_unlikely = 99
- INT16_MAX = 32767
- INT16_MIN = -32768
- INT32_MAX = 2147483647
- INT32_MIN = -2147483648
- INT64_MAX = 9223372036854775807
- INT64_MIN = -9223372036854775808
- INT8_MAX = 127
- INT8_MIN = -128
- INTERFACE = 1
- INTMAX_MAX = 9223372036854775807
- INTMAX_MIN = -9223372036854775808
- INTPTR_MAX = 9223372036854775807
- INTPTR_MIN = -9223372036854775808
- INT_FAST16_MAX = 2147483647
- INT_FAST16_MIN = -2147483648
- INT_FAST32_MAX = 2147483647
- INT_FAST32_MIN = -2147483648
- INT_FAST64_MAX = 9223372036854775807
- INT_FAST64_MIN = -9223372036854775808
- INT_FAST8_MAX = 2147483647
- INT_FAST8_MIN = -2147483648
- INT_LEAST16_MAX = 32767
- INT_LEAST16_MIN = -32768
- INT_LEAST32_MAX = 2147483647
- INT_LEAST32_MIN = -2147483648
- INT_LEAST64_MAX = 9223372036854775807
- INT_LEAST64_MIN = -9223372036854775808
- INT_LEAST8_MAX = 127
- INT_LEAST8_MIN = -128
- INT_MAX = 0x7fffffff
- INT_MIN = -2147483648
- IN_INDEX_EPH = 2
- IN_INDEX_INDEX_ASC = 3
- IN_INDEX_INDEX_DESC = 4
- IN_INDEX_LOOP = 0x0004
- IN_INDEX_MEMBERSHIP = 0x0002
- IN_INDEX_NOOP = 5
- IN_INDEX_NOOP_OK = 0x0001
- IN_INDEX_ROWID = 1
- IOCGROUP_SHIFT = 8
- IOCPARM_MASK = 0x1fff
- IOCPARM_SHIFT = 16
- IOV_MAX = 1024
- ITIMER_MONOTONIC = 3
- ITIMER_PROF = 2
- ITIMER_REAL = 0
- ITIMER_VIRTUAL = 1
- IsStat4 = 1
- JEACH_ATOM = 3
- JEACH_FULLKEY = 6
- JEACH_ID = 4
- JEACH_JSON = 8
- JEACH_KEY = 0
- JEACH_PARENT = 5
- JEACH_PATH = 7
- JEACH_ROOT = 9
- JEACH_TYPE = 2
- JEACH_VALUE = 1
- JNODE_APPEND = 0x20
- JNODE_ESCAPE = 0x02
- JNODE_LABEL = 0x40
- JNODE_PATCH = 0x10
- JNODE_RAW = 0x01
- JNODE_REMOVE = 0x04
- JNODE_REPLACE = 0x08
- JSON_ARRAY = 6
- JSON_CACHE_ID = -429938
- JSON_CACHE_SZ = 4
- JSON_FALSE = 2
- JSON_INT = 3
- JSON_MAX_DEPTH = 2000
- JSON_NULL = 0
- JSON_OBJECT = 7
- JSON_REAL = 4
- JSON_STRING = 5
- JSON_SUBTYPE = 74
- JSON_TRUE = 1
- JT_CROSS = 0x0002
- JT_ERROR = 0x0040
- JT_INNER = 0x0001
- JT_LEFT = 0x0008
- JT_NATURAL = 0x0004
- JT_OUTER = 0x0020
- JT_RIGHT = 0x0010
- KEYINFO_ORDER_BIGNULL = 0x02
- KEYINFO_ORDER_DESC = 0x01
- LEGACY_SCHEMA_TABLE = "sqlite_master"
- LEGACY_TEMP_SCHEMA_TABLE = "sqlite_temp_master"
- LINE_MAX = 2048
- LINK_MAX = 32767
- LITTLE_ENDIAN = 1234
- LLONG_MAX = 0x7fffffffffffffff
- LLONG_MIN = -9223372036854775808
- LOCATE_NOERR = 0x02
- LOCATE_VIEW = 0x01
- LOCK_EX = 0x02
- LOCK_NB = 0x04
- LOCK_SH = 0x01
- LOCK_UN = 0x08
- LOGIN_NAME_MAX = 17
- LONG_BIT = 64
- LONG_MAX = 0x7fffffffffffffff
- LONG_MIN = -9223372036854775808
- LOOKASIDE_SMALL = 128
- L_INCR = 1
- L_SET = 0
- L_XTND = 2
- L_ctermid = 1024
- L_cuserid = 9
- L_tmpnam = 1024
- M10d_Any = 1
- M10d_No = 2
- M10d_Yes = 0
- MADV_DONTNEED = 4
- MADV_FREE = 6
- MADV_NORMAL = 0
- MADV_RANDOM = 1
- MADV_SEQUENTIAL = 2
- MADV_SPACEAVAIL = 5
- MADV_WILLNEED = 3
- MAP_ALIGNMENT_SHIFT = 24
- MAP_ANON = 4096
- MAP_ANONYMOUS = 0x1000
- MAP_FILE = 0x0000
- MAP_FIXED = 0x0010
- MAP_HASSEMAPHORE = 0x0200
- MAP_INHERIT = 0x0080
- MAP_INHERIT_COPY = 1
- MAP_INHERIT_DEFAULT = 1
- MAP_INHERIT_DONATE_COPY = 3
- MAP_INHERIT_NONE = 2
- MAP_INHERIT_SHARE = 0
- MAP_INHERIT_ZERO = 4
- MAP_NORESERVE = 0x0040
- MAP_PRIVATE = 0x0002
- MAP_REMAPDUP = 0x0004
- MAP_RENAME = 0x0020
- MAP_SHARED = 0x0001
- MAP_STACK = 0x2000
- MAP_TRYFIXED = 0x0400
- MAP_WIRED = 0x0800
- MAX_CANON = 255
- MAX_INPUT = 255
- MAX_PATHNAME = 512
- MAX_SECTOR_SIZE = 0x10000
- MB_LEN_MAX = 32
- MCL_CURRENT = 0x01
- MCL_FUTURE = 0x02
- MEMJOURNAL_DFLT_FILECHUNKSIZE = 1024
- MEMTYPE_HEAP = 0x01
- MEMTYPE_LOOKASIDE = 0x02
- MEMTYPE_PCACHE = 0x04
- MEM_AffMask = 0x003f
- MEM_Agg = 0x2000
- MEM_Blob = 0x0010
- MEM_Cleared = 0x0100
- MEM_Dyn = 0x0400
- MEM_Ephem = 0x1000
- MEM_FromBind = 0x0040
- MEM_Int = 0x0004
- MEM_IntReal = 0x0020
- MEM_Null = 0x0001
- MEM_Real = 0x0008
- MEM_Static = 0x0800
- MEM_Str = 0x0002
- MEM_Subtype = 0x8000
- MEM_Term = 0x0200
- MEM_TypeMask = 0xc1bf
- MEM_Undefined = 0x0080
- MEM_Zero = 0x4000
- MSVC_VERSION = 0
- MS_ASYNC = 0x01
- MS_INVALIDATE = 0x02
- MS_SYNC = 0x04
- M_1_PI = 0.31830988618379067154
- M_2_PI = 0.63661977236758134308
- M_2_SQRTPI = 1.12837916709551257390
- M_E = 2.7182818284590452354
- M_LN10 = 2.30258509299404568402
- M_LN2 = 0.69314718055994530942
- M_LOG10E = 0.43429448190325182765
- M_LOG2E = 1.4426950408889634074
- M_PI = 3.14159265358979323846
- M_PI_2 = 1.57079632679489661923
- M_PI_4 = 0.78539816339744830962
- M_SQRT1_2 = 0.70710678118654752440
- M_SQRT2 = 1.41421356237309504880
- NAME_MAX = 511
- NB = 3
- NBBY = 8
- NC_AllowAgg = 0x000001
- NC_AllowWin = 0x004000
- NC_Complex = 0x002000
- NC_FromDDL = 0x040000
- NC_GenCol = 0x000008
- NC_HasAgg = 0x000010
- NC_HasWin = 0x008000
- NC_IdxExpr = 0x000020
- NC_InAggFunc = 0x020000
- NC_IsCheck = 0x000004
- NC_IsDDL = 0x010000
- NC_MinMaxAgg = 0x001000
- NC_NoSelect = 0x080000
- NC_OrderAgg = 0x8000000
- NC_PartIdx = 0x000002
- NC_SelfRef = 0x00002e
- NC_UAggInfo = 0x000100
- NC_UBaseReg = 0x000400
- NC_UEList = 0x000080
- NC_UUpsert = 0x000200
- NC_VarSelect = 0x000040
- NDEBUG = 1
- NFDBITS = 32
- NGROUPS_MAX = 16
- NL_ARGMAX = 9
- NL_LANGMAX = 14
- NL_MSGMAX = 32767
- NL_NMAX = 1
- NL_SETMAX = 255
- NL_TEXTMAX = 2048
- NN = 1
- NODEVMAJOR = -1
- NOT_WITHIN = 0
- NO_LOCK = 0
- NZERO = 20
- N_OR_COST = 3
- N_SORT_BUCKET = 32
- N_STATEMENT = 8
- OE_Abort = 2
- OE_Cascade = 10
- OE_Default = 11
- OE_Fail = 3
- OE_Ignore = 4
- OE_None = 0
- OE_Replace = 5
- OE_Restrict = 7
- OE_Rollback = 1
- OE_SetDflt = 9
- OE_SetNull = 8
- OE_Update = 6
- OMIT_TEMPDB = 0
- ONEPASS_MULTI = 2
- ONEPASS_OFF = 0
- ONEPASS_SINGLE = 1
- OPEN_MAX = 128
- OPFLAG_APPEND = 0x08
- OPFLAG_AUXDELETE = 0x04
- OPFLAG_BULKCSR = 0x01
- OPFLAG_EPHEM = 0x01
- OPFLAG_FORDELETE = 0x08
- OPFLAG_ISNOOP = 0x40
- OPFLAG_ISUPDATE = 0x04
- OPFLAG_LASTROWID = 0x20
- OPFLAG_LENGTHARG = 0x40
- OPFLAG_NCHANGE = 0x01
- OPFLAG_NOCHNG = 0x01
- OPFLAG_NOCHNG_MAGIC = 0x6d
- OPFLAG_P2ISREG = 0x10
- OPFLAG_PERMUTE = 0x01
- OPFLAG_PREFORMAT = 0x80
- OPFLAG_SAVEPOSITION = 0x02
- OPFLAG_SEEKEQ = 0x02
- OPFLAG_TYPEOFARG = 0x80
- OPFLAG_USESEEKRESULT = 0x10
- OPFLG_IN1 = 0x02
- OPFLG_IN2 = 0x04
- OPFLG_IN3 = 0x08
- OPFLG_JUMP = 0x01
- OPFLG_OUT2 = 0x10
- OPFLG_OUT3 = 0x20
- OP_Abortable = 181
- OP_Add = 106
- OP_AddImm = 84
- OP_Affinity = 94
- OP_AggFinal = 163
- OP_AggInverse = 159
- OP_AggStep = 160
- OP_AggStep1 = 161
- OP_AggValue = 162
- OP_And = 44
- OP_AutoCommit = 1
- OP_BitAnd = 102
- OP_BitNot = 113
- OP_BitOr = 103
- OP_Blob = 75
- OP_Cast = 86
- OP_Checkpoint = 6
- OP_ChngCntRow = 81
- OP_Clear = 143
- OP_Close = 120
- OP_CollSeq = 83
- OP_Column = 92
- OP_ColumnsUsed = 121
- OP_Compare = 88
- OP_Concat = 111
- OP_Copy = 78
- OP_Count = 96
- OP_CreateBtree = 145
- OP_CursorHint = 177
- OP_CursorLock = 165
- OP_CursorUnlock = 166
- OP_DecrJumpZero = 60
- OP_DeferredSeek = 139
- OP_Delete = 128
- OP_Destroy = 142
- OP_Divide = 109
- OP_DropIndex = 150
- OP_DropTable = 149
- OP_DropTrigger = 151
- OP_ElseEq = 58
- OP_EndCoroutine = 67
- OP_Eq = 53
- OP_Expire = 164
- OP_Explain = 180
- OP_FinishSeek = 141
- OP_FkCounter = 156
- OP_FkIfZero = 48
- OP_Found = 31
- OP_Function = 65
- OP_Ge = 57
- OP_Gosub = 12
- OP_Goto = 11
- OP_Gt = 54
- OP_Halt = 69
- OP_HaltIfNull = 68
- OP_IdxDelete = 138
- OP_IdxGE = 42
- OP_IdxGT = 40
- OP_IdxInsert = 136
- OP_IdxLE = 39
- OP_IdxLT = 41
- OP_IdxRowid = 140
- OP_If = 18
- OP_IfNoHope = 28
- OP_IfNot = 20
- OP_IfNotOpen = 27
- OP_IfNotZero = 59
- OP_IfNullRow = 22
- OP_IfPos = 49
- OP_IfSmaller = 35
- OP_IncrVacuum = 61
- OP_Init = 63
- OP_InitCoroutine = 13
- OP_Insert = 126
- OP_Int64 = 71
- OP_IntCopy = 80
- OP_Integer = 70
- OP_IntegrityCk = 153
- OP_IsNull = 50
- OP_IsNullOrType = 21
- OP_IsTrue = 89
- OP_JournalMode = 7
- OP_Jump = 16
- OP_Last = 34
- OP_Le = 55
- OP_LoadAnalysis = 148
- OP_Lt = 56
- OP_MakeRecord = 95
- OP_MaxPgcnt = 175
- OP_MemMax = 157
- OP_Move = 77
- OP_Multiply = 108
- OP_MustBeInt = 15
- OP_Ne = 52
- OP_NewRowid = 125
- OP_Next = 5
- OP_NoConflict = 29
- OP_Noop = 179
- OP_Not = 19
- OP_NotExists = 33
- OP_NotFound = 30
- OP_NotNull = 51
- OP_Null = 73
- OP_NullRow = 134
- OP_Offset = 91
- OP_OffsetLimit = 158
- OP_Once = 17
- OP_OpenAutoindex = 114
- OP_OpenDup = 112
- OP_OpenEphemeral = 115
- OP_OpenPseudo = 119
- OP_OpenRead = 100
- OP_OpenWrite = 101
- OP_Or = 43
- OP_Pagecount = 174
- OP_Param = 155
- OP_ParseSchema = 147
- OP_Permutation = 87
- OP_Prev = 4
- OP_Program = 47
- OP_PureFunc = 64
- OP_ReadCookie = 97
- OP_Real = 152
- OP_RealAffinity = 85
- OP_ReleaseReg = 178
- OP_Remainder = 110
- OP_ReopenIdx = 99
- OP_ResetCount = 129
- OP_ResetSorter = 144
- OP_ResultRow = 82
- OP_Return = 66
- OP_Rewind = 38
- OP_RowCell = 127
- OP_RowData = 132
- OP_RowSetAdd = 154
- OP_RowSetRead = 45
- OP_RowSetTest = 46
- OP_Rowid = 133
- OP_SCopy = 79
- OP_Savepoint = 0
- OP_SeekEnd = 135
- OP_SeekGE = 25
- OP_SeekGT = 26
- OP_SeekHit = 123
- OP_SeekLE = 24
- OP_SeekLT = 23
- OP_SeekRowid = 32
- OP_SeekScan = 122
- OP_Sequence = 124
- OP_SequenceTest = 118
- OP_SetCookie = 98
- OP_ShiftLeft = 104
- OP_ShiftRight = 105
- OP_SoftNull = 74
- OP_Sort = 37
- OP_SorterCompare = 130
- OP_SorterData = 131
- OP_SorterInsert = 137
- OP_SorterNext = 3
- OP_SorterOpen = 117
- OP_SorterSort = 36
- OP_SqlExec = 146
- OP_String = 72
- OP_String8 = 116
- OP_Subtract = 107
- OP_TableLock = 167
- OP_Trace = 176
- OP_Transaction = 2
- OP_TypeCheck = 93
- OP_VBegin = 168
- OP_VColumn = 172
- OP_VCreate = 169
- OP_VDestroy = 170
- OP_VFilter = 9
- OP_VNext = 62
- OP_VOpen = 171
- OP_VRename = 173
- OP_VUpdate = 10
- OP_Vacuum = 8
- OP_Variable = 76
- OP_Yield = 14
- OP_ZeroOrNull = 90
- OS_VXWORKS = 0
- OVERFLOW = 3
- O_ACCMODE = 0x00000003
- O_ALT_IO = 0x00040000
- O_APPEND = 0x00000008
- O_ASYNC = 0x00000040
- O_BINARY = 0
- O_CLOEXEC = 0x00400000
- O_CREAT = 0x00000200
- O_DIRECT = 0x00080000
- O_DIRECTORY = 0x00200000
- O_DSYNC = 0x00010000
- O_EXCL = 0x00000800
- O_EXLOCK = 0x00000020
- O_FSYNC = 128
- O_LARGEFILE = 0
- O_NDELAY = 4
- O_NOCTTY = 0x00008000
- O_NOFOLLOW = 0x00000100
- O_NONBLOCK = 0x00000004
- O_NOSIGPIPE = 0x01000000
- O_RDONLY = 0x00000000
- O_RDWR = 0x00000002
- O_REGULAR = 0x02000000
- O_RSYNC = 0x00020000
- O_SEARCH = 0x00800000
- O_SHLOCK = 0x00000010
- O_SYNC = 0x00000080
- O_TRUNC = 0x00000400
- O_WRONLY = 0x00000001
- P4_ADVANCE = -5
- P4_COLLSEQ = -2
- P4_DYNAMIC = -7
- P4_DYNBLOB = -17
- P4_EXPR = -10
- P4_FREE_IF_LE = -7
- P4_FUNCCTX = -16
- P4_FUNCDEF = -8
- P4_INT32 = -3
- P4_INT64 = -14
- P4_INTARRAY = -15
- P4_KEYINFO = -9
- P4_MEM = -11
- P4_NOTUSED = 0
- P4_REAL = -13
- P4_STATIC = -1
- P4_SUBPROGRAM = -4
- P4_TABLE = -6
- P4_TRANSIENT = 0
- P4_VTAB = -12
- P5_ConstraintCheck = 3
- P5_ConstraintFK = 4
- P5_ConstraintNotNull = 1
- P5_ConstraintUnique = 2
- PAGER_CACHESPILL = 0x20
- PAGER_CKPT_FULLFSYNC = 0x10
- PAGER_ERROR = 6
- PAGER_FLAGS_MASK = 0x38
- PAGER_FULLFSYNC = 0x08
- PAGER_GET_NOCONTENT = 0x01
- PAGER_GET_READONLY = 0x02
- PAGER_JOURNALMODE_DELETE = 0
- PAGER_JOURNALMODE_MEMORY = 4
- PAGER_JOURNALMODE_OFF = 2
- PAGER_JOURNALMODE_PERSIST = 1
- PAGER_JOURNALMODE_QUERY = -1
- PAGER_JOURNALMODE_TRUNCATE = 3
- PAGER_JOURNALMODE_WAL = 5
- PAGER_LOCKINGMODE_EXCLUSIVE = 1
- PAGER_LOCKINGMODE_NORMAL = 0
- PAGER_LOCKINGMODE_QUERY = -1
- PAGER_MEMORY = 0x0002
- PAGER_OMIT_JOURNAL = 0x0001
- PAGER_OPEN = 0
- PAGER_READER = 1
- PAGER_STAT_HIT = 0
- PAGER_STAT_MISS = 1
- PAGER_STAT_SPILL = 3
- PAGER_STAT_WRITE = 2
- PAGER_SYNCHRONOUS_EXTRA = 0x04
- PAGER_SYNCHRONOUS_FULL = 0x03
- PAGER_SYNCHRONOUS_MASK = 0x07
- PAGER_SYNCHRONOUS_NORMAL = 0x02
- PAGER_SYNCHRONOUS_OFF = 0x01
- PAGER_WRITER_CACHEMOD = 3
- PAGER_WRITER_DBMOD = 4
- PAGER_WRITER_FINISHED = 5
- PAGER_WRITER_LOCKED = 2
- PARSE_MODE_DECLARE_VTAB = 1
- PARSE_MODE_NORMAL = 0
- PARSE_MODE_RENAME = 2
- PARSE_MODE_UNMAP = 3
- PARTLY_WITHIN = 1
- PASS_MAX = 128
- PATH_MAX = 1024
- PCACHE1_MIGHT_USE_GROUP_MUTEX = 1
- PCACHE_DIRTYLIST_ADD = 2
- PCACHE_DIRTYLIST_FRONT = 3
- PCACHE_DIRTYLIST_REMOVE = 1
- PDP_ENDIAN = 3412
- PENDING_LOCK = 3
- PGHDR_CLEAN = 0x001
- PGHDR_DIRTY = 0x002
- PGHDR_DONT_WRITE = 0x010
- PGHDR_MMAP = 0x020
- PGHDR_NEED_SYNC = 0x008
- PGHDR_WAL_APPEND = 0x040
- PGHDR_WRITEABLE = 0x004
- PIPE_BUF = 512
- PLOSS = 6
- POSIX_FADV_DONTNEED = 4
- POSIX_FADV_NOREUSE = 5
- POSIX_FADV_NORMAL = 0
- POSIX_FADV_RANDOM = 1
- POSIX_FADV_SEQUENTIAL = 2
- POSIX_FADV_WILLNEED = 3
- POSIX_MADV_DONTNEED = 4
- POSIX_MADV_NORMAL = 0
- POSIX_MADV_RANDOM = 1
- POSIX_MADV_SEQUENTIAL = 2
- POSIX_MADV_WILLNEED = 3
- PPPDISC = 5
- PREFERRED_SCHEMA_TABLE = "sqlite_schema"
- PREFERRED_TEMP_SCHEMA_TABLE = "sqlite_temp_schema"
- PROT_EXEC = 0x04
- PROT_NONE = 0x00
- PROT_READ = 0x01
- PROT_WRITE = 0x02
- PTF_INTKEY = 0x01
- PTF_LEAF = 0x08
- PTF_LEAFDATA = 0x04
- PTF_ZERODATA = 0x02
- PTHREAD_DESTRUCTOR_ITERATIONS = 4
- PTHREAD_KEYS_MAX = 256
- PTHREAD_THREADS_MAX = 64
- PTRDIFF_MAX = 9223372036854775807
- PTRDIFF_MIN = -9223372036854775808
- PTRMAP_BTREE = 5
- PTRMAP_FREEPAGE = 2
- PTRMAP_OVERFLOW1 = 3
- PTRMAP_OVERFLOW2 = 4
- PTRMAP_ROOTPAGE = 1
- P_tmpdir = "/tmp/"
- PragFlg_NeedSchema = 0x01
- PragFlg_NoColumns = 0x02
- PragFlg_NoColumns1 = 0x04
- PragFlg_ReadOnly = 0x08
- PragFlg_Result0 = 0x10
- PragFlg_Result1 = 0x20
- PragFlg_SchemaOpt = 0x40
- PragFlg_SchemaReq = 0x80
- PragTyp_ACTIVATE_EXTENSIONS = 0
- PragTyp_ANALYSIS_LIMIT = 1
- PragTyp_AUTO_VACUUM = 3
- PragTyp_BUSY_TIMEOUT = 5
- PragTyp_CACHE_SIZE = 6
- PragTyp_CACHE_SPILL = 7
- PragTyp_CASE_SENSITIVE_LIKE = 8
- PragTyp_COLLATION_LIST = 9
- PragTyp_COMPILE_OPTIONS = 10
- PragTyp_DATABASE_LIST = 12
- PragTyp_DATA_STORE_DIRECTORY = 11
- PragTyp_DEFAULT_CACHE_SIZE = 13
- PragTyp_ENCODING = 14
- PragTyp_FLAG = 4
- PragTyp_FOREIGN_KEY_CHECK = 15
- PragTyp_FOREIGN_KEY_LIST = 16
- PragTyp_FUNCTION_LIST = 17
- PragTyp_HARD_HEAP_LIMIT = 18
- PragTyp_HEADER_VALUE = 2
- PragTyp_INCREMENTAL_VACUUM = 19
- PragTyp_INDEX_INFO = 20
- PragTyp_INDEX_LIST = 21
- PragTyp_INTEGRITY_CHECK = 22
- PragTyp_JOURNAL_MODE = 23
- PragTyp_JOURNAL_SIZE_LIMIT = 24
- PragTyp_LOCKING_MODE = 26
- PragTyp_LOCK_PROXY_FILE = 25
- PragTyp_LOCK_STATUS = 44
- PragTyp_MMAP_SIZE = 28
- PragTyp_MODULE_LIST = 29
- PragTyp_OPTIMIZE = 30
- PragTyp_PAGE_COUNT = 27
- PragTyp_PAGE_SIZE = 31
- PragTyp_PRAGMA_LIST = 32
- PragTyp_SECURE_DELETE = 33
- PragTyp_SHRINK_MEMORY = 34
- PragTyp_SOFT_HEAP_LIMIT = 35
- PragTyp_STATS = 45
- PragTyp_SYNCHRONOUS = 36
- PragTyp_TABLE_INFO = 37
- PragTyp_TABLE_LIST = 38
- PragTyp_TEMP_STORE = 39
- PragTyp_TEMP_STORE_DIRECTORY = 40
- PragTyp_THREADS = 41
- PragTyp_WAL_AUTOCHECKPOINT = 42
- PragTyp_WAL_CHECKPOINT = 43
- QUAD_MAX = 0x7fffffffffffffff
- QUAD_MIN = -9223372036854775808
- RANDOM_MAX = 0x7fffffff
- RAND_MAX = 0x7fffffff
- RBU_CREATE_STATE = "CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)"
- RBU_DELETE = 2
- RBU_ENABLE_DELTA_CKSUM = 0
- RBU_EXCLUSIVE_CHECKPOINT = "rbu_exclusive_checkpoint"
- RBU_IDX_DELETE = 4
- RBU_IDX_INSERT = 5
- RBU_INSERT = 1
- RBU_PK_EXTERNAL = 3
- RBU_PK_IPK = 2
- RBU_PK_NONE = 1
- RBU_PK_NOTABLE = 0
- RBU_PK_VTAB = 5
- RBU_PK_WITHOUT_ROWID = 4
- RBU_REPLACE = 3
- RBU_STAGE_CAPTURE = 3
- RBU_STAGE_CKPT = 4
- RBU_STAGE_DONE = 5
- RBU_STAGE_MOVE = 2
- RBU_STAGE_OAL = 1
- RBU_STATE_CKPT = 6
- RBU_STATE_COOKIE = 7
- RBU_STATE_DATATBL = 10
- RBU_STATE_IDX = 3
- RBU_STATE_OALSZ = 8
- RBU_STATE_PHASEONESTEP = 9
- RBU_STATE_PROGRESS = 5
- RBU_STATE_ROW = 4
- RBU_STATE_STAGE = 1
- RBU_STATE_TBL = 2
- RBU_UPDATE = 6
- READMARK_NOT_USED = 0xffffffff
- READ_LOCK = 1
- RESERVED_LOCK = 2
- RETURNING_TRIGGER_NAME = "sqlite_returning"
- RE_DUP_MAX = 255
- RNDAWAY = 0
- RNDTOWARDS = 0
- ROWSET_ALLOCATION_SIZE = 1024
- ROWSET_NEXT = 0x02
- ROWSET_SORTED = 0x01
- RTLD_DI_LINKMAP = 3
- RTLD_GLOBAL = 0x100
- RTLD_LAZY = 1
- RTLD_LOCAL = 0x200
- RTLD_NODELETE = 0x01000
- RTLD_NOLOAD = 0x02000
- RTLD_NOW = 2
- RTREE_CACHE_SZ = 5
- RTREE_CHECK_MAX_ERROR = 100
- RTREE_COORD_INT32 = 1
- RTREE_COORD_REAL32 = 0
- RTREE_DEFAULT_ROWEST = 1048576
- RTREE_EQ = 0x41
- RTREE_FALSE = 0x40
- RTREE_GE = 0x44
- RTREE_GT = 0x45
- RTREE_LE = 0x42
- RTREE_LT = 0x43
- RTREE_MATCH = 0x46
- RTREE_MAXCELLS = 51
- RTREE_MAX_AUX_COLUMN = 100
- RTREE_MAX_DEPTH = 40
- RTREE_MAX_DIMENSIONS = 5
- RTREE_MIN_ROWEST = 100
- RTREE_QUERY = 0x47
- RTREE_TRUE = 0x3f
- RTREE_ZERO = 0.0
- R_OK = 0x04
- SAVEPOINT_BEGIN = 0
- SAVEPOINT_RELEASE = 1
- SAVEPOINT_ROLLBACK = 2
- SCHAR_MAX = 0x7f
- SCHAR_MIN = -128
- SCHEMA_ROOT = 1
- SEEK_CUR = 1
- SEEK_END = 2
- SEEK_SET = 0
- SELECTTRACE_ENABLED = 0
- SESSIONS_STRM_CHUNK_SIZE = 1024
- SESSION_MAX_BUFFER_SZ = 2147483391
- SESSION_UPDATE_CACHE_SZ = 12
- SF_APPEND = 0x00040000
- SF_ARCHIVED = 0x00010000
- SF_Aggregate = 0x0000008
- SF_All = 0x0000002
- SF_ComplexResult = 0x0040000
- SF_Compound = 0x0000100
- SF_Converted = 0x0010000
- SF_CopyCte = 0x4000000
- SF_Distinct = 0x0000001
- SF_Expanded = 0x0000040
- SF_FixedLimit = 0x0004000
- SF_HasAgg = 0x0000010
- SF_HasTypeInfo = 0x0000080
- SF_IMMUTABLE = 0x00020000
- SF_IncludeHidden = 0x0020000
- SF_LOG = 0x00400000
- SF_MaybeConvert = 0x0008000
- SF_MinMaxAgg = 0x0001000
- SF_MultiPart = 0x2000000
- SF_MultiValue = 0x0000400
- SF_NestedFrom = 0x0000800
- SF_NoopOrderBy = 0x0400000
- SF_OrderByReqd = 0x8000000
- SF_PushDown = 0x1000000
- SF_Recursive = 0x0002000
- SF_Resolved = 0x0000004
- SF_SETTABLE = 0xffff0000
- SF_SNAPINVAL = 0x00800000
- SF_SNAPSHOT = 0x00200000
- SF_UFSrcCheck = 0x0800000
- SF_UsesEphemeral = 0x0000020
- SF_Values = 0x0000200
- SF_View = 0x0200000
- SF_WhereBegin = 0x0080000
- SF_WinRewrite = 0x0100000
- SHARED_LOCK = 1
- SHARED_SIZE = 510
- SHRT_MAX = 0x7fff
- SHRT_MIN = -32768
- SIG_ATOMIC_MAX = 2147483647
- SIG_ATOMIC_MIN = -2147483648
- SING = 2
- SIZE_MAX = 18446744073709551615
- SIZE_T_MAX = 18446744073709551615
- SLIPDISC = 4
- SLOT_2_0 = 0x001fc07f
- SLOT_4_2_0 = 0xf01fc07f
- SORTER_MAX_MERGE_COUNT = 16
- SORTER_TYPE_INTEGER = 0x01
- SORTER_TYPE_TEXT = 0x02
- SORTFLAG_UseSorter = 0x01
- SPILLFLAG_NOSYNC = 0x04
- SPILLFLAG_OFF = 0x01
- SPILLFLAG_ROLLBACK = 0x02
- SQLITE3EXT_H = 0
- SQLITE3_H = 0
- SQLITE3_TEXT = 3
- SQLITEINT_H = 0
- SQLITE_ABORT = 4
- SQLITE_ABORT_ROLLBACK = 516
- SQLITE_ACCESS_EXISTS = 0
- SQLITE_ACCESS_READ = 2
- SQLITE_ACCESS_READWRITE = 1
- SQLITE_AFF_BLOB = 0x41
- SQLITE_AFF_INTEGER = 0x44
- SQLITE_AFF_MASK = 0x47
- SQLITE_AFF_NONE = 0x40
- SQLITE_AFF_NUMERIC = 0x43
- SQLITE_AFF_REAL = 0x45
- SQLITE_AFF_TEXT = 0x42
- SQLITE_ALLOW_COVERING_INDEX_SCAN = 1
- SQLITE_ALTER_TABLE = 26
- SQLITE_AMALGAMATION = 1
- SQLITE_ANALYZE = 28
- SQLITE_ANY = 5
- SQLITE_API = 0
- SQLITE_APICALL = 0
- SQLITE_ASCII = 1
- SQLITE_ATOMIC_INTRINSICS = 1
- SQLITE_ATTACH = 24
- SQLITE_AUTH = 23
- SQLITE_AUTH_USER = 279
- SQLITE_AllOpts = 0xffffffff
- SQLITE_AutoIndex = 0x00008000
- SQLITE_BIGENDIAN = 0
- SQLITE_BIG_DBL = 0
- SQLITE_BLDF1_INDEXED = 0x0001
- SQLITE_BLDF1_UNIQUE = 0x0002
- SQLITE_BLDF2_2NDPASS = 0x0004
- SQLITE_BLOB = 4
- SQLITE_BTREE_H = 0
- SQLITE_BUSY = 5
- SQLITE_BUSY_RECOVERY = 261
- SQLITE_BUSY_SNAPSHOT = 517
- SQLITE_BUSY_TIMEOUT = 773
- SQLITE_BYTEORDER = 1234
- SQLITE_CALLBACK = 0
- SQLITE_CANTOPEN = 14
- SQLITE_CANTOPEN_CONVPATH = 1038
- SQLITE_CANTOPEN_DIRTYWAL = 1294
- SQLITE_CANTOPEN_FULLPATH = 782
- SQLITE_CANTOPEN_ISDIR = 526
- SQLITE_CANTOPEN_NOTEMPDIR = 270
- SQLITE_CANTOPEN_SYMLINK = 1550
- SQLITE_CDECL = 0
- SQLITE_CHANGESETAPPLY_INVERT = 0x0002
- SQLITE_CHANGESETAPPLY_NOSAVEPOINT = 0x0001
- SQLITE_CHANGESETSTART_INVERT = 0x0002
- SQLITE_CHANGESET_ABORT = 2
- SQLITE_CHANGESET_CONFLICT = 3
- SQLITE_CHANGESET_CONSTRAINT = 4
- SQLITE_CHANGESET_DATA = 1
- SQLITE_CHANGESET_FOREIGN_KEY = 5
- SQLITE_CHANGESET_NOTFOUND = 2
- SQLITE_CHANGESET_OMIT = 0
- SQLITE_CHANGESET_REPLACE = 1
- SQLITE_CHECKPOINT_FULL = 1
- SQLITE_CHECKPOINT_PASSIVE = 0
- SQLITE_CHECKPOINT_RESTART = 2
- SQLITE_CHECKPOINT_TRUNCATE = 3
- SQLITE_CONFIG_COVERING_INDEX_SCAN = 20
- SQLITE_CONFIG_GETMALLOC = 5
- SQLITE_CONFIG_GETMUTEX = 11
- SQLITE_CONFIG_GETPCACHE = 15
- SQLITE_CONFIG_GETPCACHE2 = 19
- SQLITE_CONFIG_HEAP = 8
- SQLITE_CONFIG_LOG = 16
- SQLITE_CONFIG_LOOKASIDE = 13
- SQLITE_CONFIG_MALLOC = 4
- SQLITE_CONFIG_MEMDB_MAXSIZE = 29
- SQLITE_CONFIG_MEMSTATUS = 9
- SQLITE_CONFIG_MMAP_SIZE = 22
- SQLITE_CONFIG_MULTITHREAD = 2
- SQLITE_CONFIG_MUTEX = 10
- SQLITE_CONFIG_PAGECACHE = 7
- SQLITE_CONFIG_PCACHE = 14
- SQLITE_CONFIG_PCACHE2 = 18
- SQLITE_CONFIG_PCACHE_HDRSZ = 24
- SQLITE_CONFIG_PMASZ = 25
- SQLITE_CONFIG_SCRATCH = 6
- SQLITE_CONFIG_SERIALIZED = 3
- SQLITE_CONFIG_SINGLETHREAD = 1
- SQLITE_CONFIG_SMALL_MALLOC = 27
- SQLITE_CONFIG_SORTERREF_SIZE = 28
- SQLITE_CONFIG_SQLLOG = 21
- SQLITE_CONFIG_STMTJRNL_SPILL = 26
- SQLITE_CONFIG_URI = 17
- SQLITE_CONFIG_WIN32_HEAPSIZE = 23
- SQLITE_CONSTRAINT = 19
- SQLITE_CONSTRAINT_CHECK = 275
- SQLITE_CONSTRAINT_COMMITHOOK = 531
- SQLITE_CONSTRAINT_DATATYPE = 3091
- SQLITE_CONSTRAINT_FOREIGNKEY = 787
- SQLITE_CONSTRAINT_FUNCTION = 1043
- SQLITE_CONSTRAINT_NOTNULL = 1299
- SQLITE_CONSTRAINT_PINNED = 2835
- SQLITE_CONSTRAINT_PRIMARYKEY = 1555
- SQLITE_CONSTRAINT_ROWID = 2579
- SQLITE_CONSTRAINT_TRIGGER = 1811
- SQLITE_CONSTRAINT_UNIQUE = 2067
- SQLITE_CONSTRAINT_VTAB = 2323
- SQLITE_COPY = 0
- SQLITE_CORE = 1
- SQLITE_CORRUPT = 11
- SQLITE_CORRUPT_INDEX = 779
- SQLITE_CORRUPT_SEQUENCE = 523
- SQLITE_CORRUPT_VTAB = 267
- SQLITE_CREATE_INDEX = 1
- SQLITE_CREATE_TABLE = 2
- SQLITE_CREATE_TEMP_INDEX = 3
- SQLITE_CREATE_TEMP_TABLE = 4
- SQLITE_CREATE_TEMP_TRIGGER = 5
- SQLITE_CREATE_TEMP_VIEW = 6
- SQLITE_CREATE_TRIGGER = 7
- SQLITE_CREATE_VIEW = 8
- SQLITE_CREATE_VTABLE = 29
- SQLITE_CacheSpill = 0x00000020
- SQLITE_CellSizeCk = 0x00200000
- SQLITE_CkptFullFSync = 0x00000010
- SQLITE_CountOfView = 0x00000200
- SQLITE_CoverIdxScan = 0x00000020
- SQLITE_CursorHints = 0x00000400
- SQLITE_DBCONFIG_DEFENSIVE = 1010
- SQLITE_DBCONFIG_DQS_DDL = 1014
- SQLITE_DBCONFIG_DQS_DML = 1013
- SQLITE_DBCONFIG_ENABLE_FKEY = 1002
- SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004
- SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005
- SQLITE_DBCONFIG_ENABLE_QPSG = 1007
- SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003
- SQLITE_DBCONFIG_ENABLE_VIEW = 1015
- SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012
- SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016
- SQLITE_DBCONFIG_LOOKASIDE = 1001
- SQLITE_DBCONFIG_MAINDBNAME = 1000
- SQLITE_DBCONFIG_MAX = 1017
- SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006
- SQLITE_DBCONFIG_RESET_DATABASE = 1009
- SQLITE_DBCONFIG_TRIGGER_EQP = 1008
- SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017
- SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011
- SQLITE_DBSTATUS_CACHE_HIT = 7
- SQLITE_DBSTATUS_CACHE_MISS = 8
- SQLITE_DBSTATUS_CACHE_SPILL = 12
- SQLITE_DBSTATUS_CACHE_USED = 1
- SQLITE_DBSTATUS_CACHE_USED_SHARED = 11
- SQLITE_DBSTATUS_CACHE_WRITE = 9
- SQLITE_DBSTATUS_DEFERRED_FKS = 10
- SQLITE_DBSTATUS_LOOKASIDE_HIT = 4
- SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6
- SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5
- SQLITE_DBSTATUS_LOOKASIDE_USED = 0
- SQLITE_DBSTATUS_MAX = 12
- SQLITE_DBSTATUS_SCHEMA_USED = 2
- SQLITE_DBSTATUS_STMT_USED = 3
- SQLITE_DEFAULT_AUTOVACUUM = 0
- SQLITE_DEFAULT_CACHE_SIZE = -2000
- SQLITE_DEFAULT_FILE_FORMAT = 4
- SQLITE_DEFAULT_FILE_PERMISSIONS = 0644
- SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT = -1
- SQLITE_DEFAULT_LOOKASIDE = 40
- SQLITE_DEFAULT_MEMSTATUS = 1
- SQLITE_DEFAULT_MMAP_SIZE = 0
- SQLITE_DEFAULT_PAGE_SIZE = 4096
- SQLITE_DEFAULT_PCACHE_INITSZ = 20
- SQLITE_DEFAULT_PROXYDIR_PERMISSIONS = 0755
- SQLITE_DEFAULT_RECURSIVE_TRIGGERS = 0
- SQLITE_DEFAULT_SECTOR_SIZE = 4096
- SQLITE_DEFAULT_SORTERREF_SIZE = 0x7fffffff
- SQLITE_DEFAULT_SYNCHRONOUS = 2
- SQLITE_DEFAULT_WAL_AUTOCHECKPOINT = 1000
- SQLITE_DEFAULT_WAL_SYNCHRONOUS = 2
- SQLITE_DEFAULT_WORKER_THREADS = 0
- SQLITE_DELETE = 9
- SQLITE_DENY = 1
- SQLITE_DEPRECATED = 0
- SQLITE_DESERIALIZE_FREEONCLOSE = 1
- SQLITE_DESERIALIZE_READONLY = 4
- SQLITE_DESERIALIZE_RESIZEABLE = 2
- SQLITE_DETACH = 25
- SQLITE_DETERMINISTIC = 0x000000800
- SQLITE_DIRECTONLY = 0x000080000
- SQLITE_DONE = 101
- SQLITE_DQS = 3
- SQLITE_DROP_INDEX = 10
- SQLITE_DROP_TABLE = 11
- SQLITE_DROP_TEMP_INDEX = 12
- SQLITE_DROP_TEMP_TABLE = 13
- SQLITE_DROP_TEMP_TRIGGER = 14
- SQLITE_DROP_TEMP_VIEW = 15
- SQLITE_DROP_TRIGGER = 16
- SQLITE_DROP_VIEW = 17
- SQLITE_DROP_VTABLE = 30
- SQLITE_Defensive = 0x10000000
- SQLITE_DeferFKs = 0x00080000
- SQLITE_DistinctOpt = 0x00000010
- SQLITE_DqsDDL = 0x20000000
- SQLITE_DqsDML = 0x40000000
- SQLITE_ECEL_DUP = 0x01
- SQLITE_ECEL_FACTOR = 0x02
- SQLITE_ECEL_OMITREF = 0x08
- SQLITE_ECEL_REF = 0x04
- SQLITE_EMPTY = 16
- SQLITE_ENABLE_COLUMN_METADATA = 1
- SQLITE_ENABLE_FTS5 = 1
- SQLITE_ENABLE_GEOPOLY = 1
- SQLITE_ENABLE_JSON1 = 1
- SQLITE_ENABLE_LOCKING_STYLE = 0
- SQLITE_ENABLE_MATH_FUNCTIONS = 1
- SQLITE_ENABLE_MEMORY_MANAGEMENT = 1
- SQLITE_ENABLE_OFFSET_SQL_FUNC = 1
- SQLITE_ENABLE_PREUPDATE_HOOK = 1
- SQLITE_ENABLE_RBU = 1
- SQLITE_ENABLE_RTREE = 1
- SQLITE_ENABLE_SESSION = 1
- SQLITE_ENABLE_SNAPSHOT = 1
- SQLITE_ENABLE_STAT4 = 1
- SQLITE_ENABLE_UNLOCK_NOTIFY = 1
- SQLITE_ERROR = 1
- SQLITE_ERROR_MISSING_COLLSEQ = 257
- SQLITE_ERROR_RETRY = 513
- SQLITE_ERROR_SNAPSHOT = 769
- SQLITE_EXPERIMENTAL = 0
- SQLITE_EXTENSION_INIT1 = 0
- SQLITE_EXTENSION_INIT3 = 0
- SQLITE_EnableQPSG = 0x00800000
- SQLITE_EnableTrigger = 0x00040000
- SQLITE_EnableView = 0x80000000
- SQLITE_FAIL = 3
- SQLITE_FAULTINJECTOR_COUNT = 1
- SQLITE_FAULTINJECTOR_MALLOC = 0
- SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31
- SQLITE_FCNTL_BUSYHANDLER = 15
- SQLITE_FCNTL_CHUNK_SIZE = 6
- SQLITE_FCNTL_CKPT_DONE = 37
- SQLITE_FCNTL_CKPT_START = 39
- SQLITE_FCNTL_CKSM_FILE = 41
- SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32
- SQLITE_FCNTL_COMMIT_PHASETWO = 22
- SQLITE_FCNTL_DATA_VERSION = 35
- SQLITE_FCNTL_DB_UNCHANGED = 0xca093fa0
- SQLITE_FCNTL_EXTERNAL_READER = 40
- SQLITE_FCNTL_FILE_POINTER = 7
- SQLITE_FCNTL_GET_LOCKPROXYFILE = 2
- SQLITE_FCNTL_HAS_MOVED = 20
- SQLITE_FCNTL_JOURNAL_POINTER = 28
- SQLITE_FCNTL_LAST_ERRNO = 4
- SQLITE_FCNTL_LOCKSTATE = 1
- SQLITE_FCNTL_LOCK_TIMEOUT = 34
- SQLITE_FCNTL_MMAP_SIZE = 18
- SQLITE_FCNTL_OVERWRITE = 11
- SQLITE_FCNTL_PDB = 30
- SQLITE_FCNTL_PERSIST_WAL = 10
- SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13
- SQLITE_FCNTL_PRAGMA = 14
- SQLITE_FCNTL_RBU = 26
- SQLITE_FCNTL_RBUCNT = 5149216
- SQLITE_FCNTL_RESERVE_BYTES = 38
- SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33
- SQLITE_FCNTL_SET_LOCKPROXYFILE = 3
- SQLITE_FCNTL_SIZE_HINT = 5
- SQLITE_FCNTL_SIZE_LIMIT = 36
- SQLITE_FCNTL_SYNC = 21
- SQLITE_FCNTL_SYNC_OMITTED = 8
- SQLITE_FCNTL_TEMPFILENAME = 16
- SQLITE_FCNTL_TRACE = 19
- SQLITE_FCNTL_VFSNAME = 12
- SQLITE_FCNTL_VFS_POINTER = 27
- SQLITE_FCNTL_WAL_BLOCK = 24
- SQLITE_FCNTL_WIN32_AV_RETRY = 9
- SQLITE_FCNTL_WIN32_GET_HANDLE = 29
- SQLITE_FCNTL_WIN32_SET_HANDLE = 23
- SQLITE_FCNTL_ZIPVFS = 25
- SQLITE_FILE_HEADER = "SQLite format 3"
- SQLITE_FLOAT = 2
- SQLITE_FORMAT = 24
- SQLITE_FP_PRECISION_LIMIT = 100000000
- SQLITE_FRAME_MAGIC = 0x879fb71e
- SQLITE_FSFLAGS_IS_MSDOS = 0x1
- SQLITE_FULL = 13
- SQLITE_FUNCTION = 31
- SQLITE_FUNC_ANYORDER = 0x08000000
- SQLITE_FUNC_BUILTIN = 0x00800000
- SQLITE_FUNC_CASE = 0x0008
- SQLITE_FUNC_CONSTANT = 0x0800
- SQLITE_FUNC_COUNT = 0x0100
- SQLITE_FUNC_DIRECT = 0x00080000
- SQLITE_FUNC_ENCMASK = 0x0003
- SQLITE_FUNC_EPHEM = 0x0010
- SQLITE_FUNC_HASH_SZ = 23
- SQLITE_FUNC_INLINE = 0x00400000
- SQLITE_FUNC_INTERNAL = 0x00040000
- SQLITE_FUNC_LENGTH = 0x0040
- SQLITE_FUNC_LIKE = 0x0004
- SQLITE_FUNC_MINMAX = 0x1000
- SQLITE_FUNC_NEEDCOLL = 0x0020
- SQLITE_FUNC_OFFSET = 0x8000
- SQLITE_FUNC_SLOCHNG = 0x2000
- SQLITE_FUNC_SUBTYPE = 0x00100000
- SQLITE_FUNC_TEST = 0x4000
- SQLITE_FUNC_TYPEOF = 0x0080
- SQLITE_FUNC_UNLIKELY = 0x0400
- SQLITE_FUNC_UNSAFE = 0x00200000
- SQLITE_FUNC_WINDOW = 0x00010000
- SQLITE_FactorOutConst = 0x00000008
- SQLITE_ForeignKeys = 0x00004000
- SQLITE_Fts3Tokenizer = 0x00400000
- SQLITE_FullColNames = 0x00000004
- SQLITE_FullFSync = 0x00000008
- SQLITE_GET_LOCKPROXYFILE = 2
- SQLITE_GroupByOrder = 0x00000004
- SQLITE_HASH_H = 0
- SQLITE_HAVE_C99_MATH_FUNCS = 1
- SQLITE_IDXTYPE_APPDEF = 0
- SQLITE_IDXTYPE_IPK = 3
- SQLITE_IDXTYPE_PRIMARYKEY = 2
- SQLITE_IDXTYPE_UNIQUE = 1
- SQLITE_IGNORE = 2
- SQLITE_INDEX_CONSTRAINT_EQ = 2
- SQLITE_INDEX_CONSTRAINT_FUNCTION = 150
- SQLITE_INDEX_CONSTRAINT_GE = 32
- SQLITE_INDEX_CONSTRAINT_GLOB = 66
- SQLITE_INDEX_CONSTRAINT_GT = 4
- SQLITE_INDEX_CONSTRAINT_IS = 72
- SQLITE_INDEX_CONSTRAINT_ISNOT = 69
- SQLITE_INDEX_CONSTRAINT_ISNOTNULL = 70
- SQLITE_INDEX_CONSTRAINT_ISNULL = 71
- SQLITE_INDEX_CONSTRAINT_LE = 8
- SQLITE_INDEX_CONSTRAINT_LIKE = 65
- SQLITE_INDEX_CONSTRAINT_LT = 16
- SQLITE_INDEX_CONSTRAINT_MATCH = 64
- SQLITE_INDEX_CONSTRAINT_NE = 68
- SQLITE_INDEX_CONSTRAINT_REGEXP = 67
- SQLITE_INDEX_SCAN_UNIQUE = 1
- SQLITE_INNOCUOUS = 0x000200000
- SQLITE_INSERT = 18
- SQLITE_INTEGER = 1
- SQLITE_INTEGRITY_CHECK_ERROR_MAX = 100
- SQLITE_INTERNAL = 2
- SQLITE_INTERRUPT = 9
- SQLITE_IOCAP_ATOMIC = 0x00000001
- SQLITE_IOCAP_ATOMIC16K = 0x00000040
- SQLITE_IOCAP_ATOMIC1K = 0x00000004
- SQLITE_IOCAP_ATOMIC2K = 0x00000008
- SQLITE_IOCAP_ATOMIC32K = 0x00000080
- SQLITE_IOCAP_ATOMIC4K = 0x00000010
- SQLITE_IOCAP_ATOMIC512 = 0x00000002
- SQLITE_IOCAP_ATOMIC64K = 0x00000100
- SQLITE_IOCAP_ATOMIC8K = 0x00000020
- SQLITE_IOCAP_BATCH_ATOMIC = 0x00004000
- SQLITE_IOCAP_IMMUTABLE = 0x00002000
- SQLITE_IOCAP_POWERSAFE_OVERWRITE = 0x00001000
- SQLITE_IOCAP_SAFE_APPEND = 0x00000200
- SQLITE_IOCAP_SEQUENTIAL = 0x00000400
- SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 0x00000800
- SQLITE_IOERR = 10
- SQLITE_IOERR_ACCESS = 3338
- SQLITE_IOERR_AUTH = 7178
- SQLITE_IOERR_BEGIN_ATOMIC = 7434
- SQLITE_IOERR_BLOCKED = 2826
- SQLITE_IOERR_CHECKRESERVEDLOCK = 3594
- SQLITE_IOERR_CLOSE = 4106
- SQLITE_IOERR_COMMIT_ATOMIC = 7690
- SQLITE_IOERR_CONVPATH = 6666
- SQLITE_IOERR_CORRUPTFS = 8458
- SQLITE_IOERR_DATA = 8202
- SQLITE_IOERR_DELETE = 2570
- SQLITE_IOERR_DELETE_NOENT = 5898
- SQLITE_IOERR_DIR_CLOSE = 4362
- SQLITE_IOERR_DIR_FSYNC = 1290
- SQLITE_IOERR_FSTAT = 1802
- SQLITE_IOERR_FSYNC = 1034
- SQLITE_IOERR_GETTEMPPATH = 6410
- SQLITE_IOERR_LOCK = 3850
- SQLITE_IOERR_MMAP = 6154
- SQLITE_IOERR_NOMEM = 3082
- SQLITE_IOERR_NOMEM_BKPT = 3082
- SQLITE_IOERR_RDLOCK = 2314
- SQLITE_IOERR_READ = 266
- SQLITE_IOERR_ROLLBACK_ATOMIC = 7946
- SQLITE_IOERR_SEEK = 5642
- SQLITE_IOERR_SHMLOCK = 5130
- SQLITE_IOERR_SHMMAP = 5386
- SQLITE_IOERR_SHMOPEN = 4618
- SQLITE_IOERR_SHMSIZE = 4874
- SQLITE_IOERR_SHORT_READ = 522
- SQLITE_IOERR_TRUNCATE = 1546
- SQLITE_IOERR_UNLOCK = 2058
- SQLITE_IOERR_VNODE = 6922
- SQLITE_IOERR_WRITE = 778
- SQLITE_IgnoreChecks = 0x00000200
- SQLITE_JUMPIFNULL = 0x10
- SQLITE_LAST_ERRNO = 4
- SQLITE_LIKE_DOESNT_MATCH_BLOBS = 1
- SQLITE_LIMIT_ATTACHED = 7
- SQLITE_LIMIT_COLUMN = 2
- SQLITE_LIMIT_COMPOUND_SELECT = 4
- SQLITE_LIMIT_EXPR_DEPTH = 3
- SQLITE_LIMIT_FUNCTION_ARG = 6
- SQLITE_LIMIT_LENGTH = 0
- SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8
- SQLITE_LIMIT_SQL_LENGTH = 1
- SQLITE_LIMIT_TRIGGER_DEPTH = 10
- SQLITE_LIMIT_VARIABLE_NUMBER = 9
- SQLITE_LIMIT_VDBE_OP = 5
- SQLITE_LIMIT_WORKER_THREADS = 11
- SQLITE_LITTLEENDIAN = 1
- SQLITE_LOCKED = 6
- SQLITE_LOCKED_SHAREDCACHE = 262
- SQLITE_LOCKED_VTAB = 518
- SQLITE_LOCK_EXCLUSIVE = 4
- SQLITE_LOCK_NONE = 0
- SQLITE_LOCK_PENDING = 3
- SQLITE_LOCK_RESERVED = 2
- SQLITE_LOCK_SHARED = 1
- SQLITE_LegacyAlter = 0x04000000
- SQLITE_LegacyFileFmt = 0x00000002
- SQLITE_LoadExtFunc = 0x00020000
- SQLITE_LoadExtension = 0x00010000
- SQLITE_MALLOC_SOFT_LIMIT = 1024
- SQLITE_MATCH = 0
- SQLITE_MAX_ATTACHED = 10
- SQLITE_MAX_COLUMN = 2000
- SQLITE_MAX_COMPOUND_SELECT = 500
- SQLITE_MAX_DB = 12
- SQLITE_MAX_DEFAULT_PAGE_SIZE = 8192
- SQLITE_MAX_EXPR_DEPTH = 1000
- SQLITE_MAX_FILE_FORMAT = 4
- SQLITE_MAX_FUNCTION_ARG = 127
- SQLITE_MAX_LENGTH = 1000000000
- SQLITE_MAX_LIKE_PATTERN_LENGTH = 50000
- SQLITE_MAX_MEMORY = 0
- SQLITE_MAX_MMAP_SIZE = 0
- SQLITE_MAX_PAGE_COUNT = 1073741823
- SQLITE_MAX_PAGE_SIZE = 65536
- SQLITE_MAX_PATHLEN = 1024
- SQLITE_MAX_PMASZ = 536870912
- SQLITE_MAX_SCHEMA_RETRY = 50
- SQLITE_MAX_SQL_LENGTH = 1000000000
- SQLITE_MAX_SRCLIST = 200
- SQLITE_MAX_SYMLINKS = 100
- SQLITE_MAX_TRIGGER_DEPTH = 1000
- SQLITE_MAX_VARIABLE_NUMBER = 32766
- SQLITE_MAX_VDBE_OP = 250000000
- SQLITE_MAX_WORKER_THREADS = 8
- SQLITE_MEMDB_DEFAULT_MAXSIZE = 1073741824
- SQLITE_MINIMUM_FILE_DESCRIPTOR = 3
- SQLITE_MISMATCH = 20
- SQLITE_MISUSE = 21
- SQLITE_MSVC_H = 0
- SQLITE_MUTEX_APPDEF = 1
- SQLITE_MUTEX_FAST = 0
- SQLITE_MUTEX_NOOP = 1
- SQLITE_MUTEX_RECURSIVE = 1
- SQLITE_MUTEX_STATIC_APP1 = 8
- SQLITE_MUTEX_STATIC_APP2 = 9
- SQLITE_MUTEX_STATIC_APP3 = 10
- SQLITE_MUTEX_STATIC_LRU = 6
- SQLITE_MUTEX_STATIC_LRU2 = 7
- SQLITE_MUTEX_STATIC_MAIN = 2
- SQLITE_MUTEX_STATIC_MASTER = 2
- SQLITE_MUTEX_STATIC_MEM = 3
- SQLITE_MUTEX_STATIC_MEM2 = 4
- SQLITE_MUTEX_STATIC_OPEN = 4
- SQLITE_MUTEX_STATIC_PMEM = 7
- SQLITE_MUTEX_STATIC_PRNG = 5
- SQLITE_MUTEX_STATIC_VFS1 = 11
- SQLITE_MUTEX_STATIC_VFS2 = 12
- SQLITE_MUTEX_STATIC_VFS3 = 13
- SQLITE_MX_JUMP_OPCODE = 63
- SQLITE_MinMaxOpt = 0x00010000
- SQLITE_NOLFS = 22
- SQLITE_NOMATCH = 1
- SQLITE_NOMEM = 7
- SQLITE_NOMEM_BKPT = 7
- SQLITE_NOTADB = 26
- SQLITE_NOTFOUND = 12
- SQLITE_NOTICE = 27
- SQLITE_NOTICE_RECOVER_ROLLBACK = 539
- SQLITE_NOTICE_RECOVER_WAL = 283
- SQLITE_NOTNULL = 0x90
- SQLITE_NOWILDCARDMATCH = 2
- SQLITE_NO_TSAN = 0
- SQLITE_NTUNE = 6
- SQLITE_NULL = 5
- SQLITE_NULLEQ = 0x80
- SQLITE_N_BTREE_META = 16
- SQLITE_N_KEYWORD = 147
- SQLITE_N_LIMIT = 12
- SQLITE_N_STDTYPE = 6
- SQLITE_NoCkptOnClose = 0x00000800
- SQLITE_NoSchemaError = 0x08000000
- SQLITE_NullCallback = 0x00000100
- SQLITE_OK = 0
- SQLITE_OK_LOAD_PERMANENTLY = 256
- SQLITE_OK_SYMLINK = 512
- SQLITE_OPEN_AUTOPROXY = 0x00000020
- SQLITE_OPEN_CREATE = 0x00000004
- SQLITE_OPEN_DELETEONCLOSE = 0x00000008
- SQLITE_OPEN_EXCLUSIVE = 0x00000010
- SQLITE_OPEN_EXRESCODE = 0x02000000
- SQLITE_OPEN_FULLMUTEX = 0x00010000
- SQLITE_OPEN_MAIN_DB = 0x00000100
- SQLITE_OPEN_MAIN_JOURNAL = 0x00000800
- SQLITE_OPEN_MASTER_JOURNAL = 0x00004000
- SQLITE_OPEN_MEMORY = 0x00000080
- SQLITE_OPEN_NOFOLLOW = 0x01000000
- SQLITE_OPEN_NOMUTEX = 0x00008000
- SQLITE_OPEN_PRIVATECACHE = 0x00040000
- SQLITE_OPEN_READONLY = 0x00000001
- SQLITE_OPEN_READWRITE = 0x00000002
- SQLITE_OPEN_SHAREDCACHE = 0x00020000
- SQLITE_OPEN_SUBJOURNAL = 0x00002000
- SQLITE_OPEN_SUPER_JOURNAL = 0x00004000
- SQLITE_OPEN_TEMP_DB = 0x00000200
- SQLITE_OPEN_TEMP_JOURNAL = 0x00001000
- SQLITE_OPEN_TRANSIENT_DB = 0x00000400
- SQLITE_OPEN_URI = 0x00000040
- SQLITE_OPEN_WAL = 0x00080000
- SQLITE_OS_SETUP_H = 0
- SQLITE_OS_UNIX = 1
- SQLITE_OS_WIN = 0
- SQLITE_OmitNoopJoin = 0x00000100
- SQLITE_OmitOrderBy = 0x00040000
- SQLITE_OrderByIdxJoin = 0x00000040
- SQLITE_PAGER_H = 0
- SQLITE_PERM = 3
- SQLITE_POWERSAFE_OVERWRITE = 1
- SQLITE_PRAGMA = 19
- SQLITE_PREPARE_MASK = 0x0f
- SQLITE_PREPARE_NORMALIZE = 0x02
- SQLITE_PREPARE_NO_VTAB = 0x04
- SQLITE_PREPARE_PERSISTENT = 0x01
- SQLITE_PREPARE_SAVESQL = 0x80
- SQLITE_PRINTF_INTERNAL = 0x01
- SQLITE_PRINTF_MALLOCED = 0x04
- SQLITE_PRINTF_SQLFUNC = 0x02
- SQLITE_PRINT_BUF_SIZE = 70
- SQLITE_PRIVATE = 0
- SQLITE_PROTOCOL = 15
- SQLITE_PTRSIZE = 8
- SQLITE_PropagateConst = 0x00008000
- SQLITE_PushDown = 0x00001000
- SQLITE_QUERY_PLANNER_LIMIT = 20000
- SQLITE_QUERY_PLANNER_LIMIT_INCR = 1000
- SQLITE_QueryFlattener = 0x00000001
- SQLITE_QueryOnly = 0x00100000
- SQLITE_RANGE = 25
- SQLITE_RBU_STATE_CHECKPOINT = 3
- SQLITE_RBU_STATE_DONE = 4
- SQLITE_RBU_STATE_ERROR = 5
- SQLITE_RBU_STATE_MOVE = 2
- SQLITE_RBU_STATE_OAL = 1
- SQLITE_RBU_UPDATE_CACHESIZE = 16
- SQLITE_READ = 20
- SQLITE_READONLY = 8
- SQLITE_READONLY_CANTINIT = 1288
- SQLITE_READONLY_CANTLOCK = 520
- SQLITE_READONLY_DBMOVED = 1032
- SQLITE_READONLY_DIRECTORY = 1544
- SQLITE_READONLY_RECOVERY = 264
- SQLITE_READONLY_ROLLBACK = 776
- SQLITE_RECURSIVE = 33
- SQLITE_REINDEX = 27
- SQLITE_REPLACE = 5
- SQLITE_ROLLBACK = 1
- SQLITE_ROW = 100
- SQLITE_ReadUncommit = 0x00000400
- SQLITE_RecTriggers = 0x00002000
- SQLITE_ResetDatabase = 0x02000000
- SQLITE_ReverseOrder = 0x00001000
- SQLITE_SAVEPOINT = 32
- SQLITE_SCANSTAT_EST = 2
- SQLITE_SCANSTAT_EXPLAIN = 4
- SQLITE_SCANSTAT_NAME = 3
- SQLITE_SCANSTAT_NLOOP = 0
- SQLITE_SCANSTAT_NVISIT = 1
- SQLITE_SCANSTAT_SELECTID = 5
- SQLITE_SCHEMA = 17
- SQLITE_SELECT = 21
- SQLITE_SERIALIZE_NOCOPY = 0x001
- SQLITE_SESSION_CONFIG_STRMSIZE = 1
- SQLITE_SESSION_OBJCONFIG_SIZE = 1
- SQLITE_SET_LOCKPROXYFILE = 3
- SQLITE_SHM_EXCLUSIVE = 8
- SQLITE_SHM_LOCK = 2
- SQLITE_SHM_NLOCK = 8
- SQLITE_SHM_SHARED = 4
- SQLITE_SHM_UNLOCK = 1
- SQLITE_SORTER_PMASZ = 250
- SQLITE_SOUNDEX = 1
- SQLITE_SOURCE_ID = "2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0"
- SQLITE_SO_ASC = 0
- SQLITE_SO_DESC = 1
- SQLITE_SO_UNDEFINED = -1
- SQLITE_STAT4_SAMPLES = 24
- SQLITE_STATE_BUSY = 0x6d
- SQLITE_STATE_CLOSED = 0xce
- SQLITE_STATE_ERROR = 0xd5
- SQLITE_STATE_OPEN = 0x76
- SQLITE_STATE_SICK = 0xba
- SQLITE_STATE_ZOMBIE = 0xa7
- SQLITE_STATUS_MALLOC_COUNT = 9
- SQLITE_STATUS_MALLOC_SIZE = 5
- SQLITE_STATUS_MEMORY_USED = 0
- SQLITE_STATUS_PAGECACHE_OVERFLOW = 2
- SQLITE_STATUS_PAGECACHE_SIZE = 7
- SQLITE_STATUS_PAGECACHE_USED = 1
- SQLITE_STATUS_PARSER_STACK = 6
- SQLITE_STATUS_SCRATCH_OVERFLOW = 4
- SQLITE_STATUS_SCRATCH_SIZE = 8
- SQLITE_STATUS_SCRATCH_USED = 3
- SQLITE_STDCALL = 0
- SQLITE_STMTJRNL_SPILL = 65536
- SQLITE_STMTSTATUS_AUTOINDEX = 3
- SQLITE_STMTSTATUS_FULLSCAN_STEP = 1
- SQLITE_STMTSTATUS_MEMUSED = 99
- SQLITE_STMTSTATUS_REPREPARE = 5
- SQLITE_STMTSTATUS_RUN = 6
- SQLITE_STMTSTATUS_SORT = 2
- SQLITE_STMTSTATUS_VM_STEP = 4
- SQLITE_SUBTYPE = 0x000100000
- SQLITE_SYNC_DATAONLY = 0x00010
- SQLITE_SYNC_FULL = 0x00003
- SQLITE_SYNC_NORMAL = 0x00002
- SQLITE_SYSAPI = 0
- SQLITE_SYSTEM_MALLOC = 1
- SQLITE_SeekScan = 0x00020000
- SQLITE_ShortColNames = 0x00000040
- SQLITE_SimplifyJoin = 0x00002000
- SQLITE_SkipScan = 0x00004000
- SQLITE_Stat4 = 0x00000800
- SQLITE_TCLAPI = 0
- SQLITE_TEMP_FILE_PREFIX = "etilqs_"
- SQLITE_TEMP_STORE = 1
- SQLITE_TESTCTRL_ALWAYS = 13
- SQLITE_TESTCTRL_ASSERT = 12
- SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10
- SQLITE_TESTCTRL_BITVEC_TEST = 8
- SQLITE_TESTCTRL_BYTEORDER = 22
- SQLITE_TESTCTRL_EXPLAIN_STMT = 19
- SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29
- SQLITE_TESTCTRL_FAULT_INSTALL = 9
- SQLITE_TESTCTRL_FIRST = 5
- SQLITE_TESTCTRL_IMPOSTER = 25
- SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17
- SQLITE_TESTCTRL_ISINIT = 23
- SQLITE_TESTCTRL_ISKEYWORD = 16
- SQLITE_TESTCTRL_LAST = 32
- SQLITE_TESTCTRL_LOCALTIME_FAULT = 18
- SQLITE_TESTCTRL_NEVER_CORRUPT = 20
- SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19
- SQLITE_TESTCTRL_OPTIMIZATIONS = 15
- SQLITE_TESTCTRL_PARSER_COVERAGE = 26
- SQLITE_TESTCTRL_PENDING_BYTE = 11
- SQLITE_TESTCTRL_PRNG_RESET = 7
- SQLITE_TESTCTRL_PRNG_RESTORE = 6
- SQLITE_TESTCTRL_PRNG_SAVE = 5
- SQLITE_TESTCTRL_PRNG_SEED = 28
- SQLITE_TESTCTRL_RESERVE = 14
- SQLITE_TESTCTRL_RESULT_INTREAL = 27
- SQLITE_TESTCTRL_SCRATCHMALLOC = 17
- SQLITE_TESTCTRL_SEEK_COUNT = 30
- SQLITE_TESTCTRL_SORTER_MMAP = 24
- SQLITE_TESTCTRL_TRACEFLAGS = 31
- SQLITE_TESTCTRL_TUNE = 32
- SQLITE_TESTCTRL_VDBE_COVERAGE = 21
- SQLITE_TEXT = 3
- SQLITE_THREADSAFE = 1
- SQLITE_TOKEN_KEYWORD = 0x2
- SQLITE_TOKEN_QUOTED = 0x1
- SQLITE_TOOBIG = 18
- SQLITE_TRACE_CLOSE = 0x08
- SQLITE_TRACE_LEGACY = 0x40
- SQLITE_TRACE_NONLEGACY_MASK = 0x0f
- SQLITE_TRACE_PROFILE = 0x02
- SQLITE_TRACE_ROW = 0x04
- SQLITE_TRACE_STMT = 0x01
- SQLITE_TRACE_XPROFILE = 0x80
- SQLITE_TRANSACTION = 22
- SQLITE_TXN_NONE = 0
- SQLITE_TXN_READ = 1
- SQLITE_TXN_WRITE = 2
- SQLITE_Transitive = 0x00000080
- SQLITE_TriggerEQP = 0x01000000
- SQLITE_TrustedSchema = 0x00000080
- SQLITE_UPDATE = 23
- SQLITE_USE_URI = 0
- SQLITE_UTF16 = 4
- SQLITE_UTF16BE = 3
- SQLITE_UTF16LE = 2
- SQLITE_UTF16NATIVE = 2
- SQLITE_UTF16_ALIGNED = 8
- SQLITE_UTF8 = 1
- SQLITE_VDBEINT_H = 0
- SQLITE_VDBE_H = 0
- SQLITE_VERSION = "3.37.2"
- SQLITE_VERSION_NUMBER = 3037002
- SQLITE_VTABRISK_High = 2
- SQLITE_VTABRISK_Low = 0
- SQLITE_VTABRISK_Normal = 1
- SQLITE_VTAB_CONSTRAINT_SUPPORT = 1
- SQLITE_VTAB_DIRECTONLY = 3
- SQLITE_VTAB_INNOCUOUS = 2
- SQLITE_WAL_H = 0
- SQLITE_WARNING = 28
- SQLITE_WARNING_AUTOINDEX = 284
- SQLITE_WHEREINT_H = 0
- SQLITE_WIN32_DATA_DIRECTORY_TYPE = 1
- SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2
- SQLITE_WSD = 0
- SQLITE_WindowFunc = 0x00000002
- SQLITE_WriteSchema = 0x00000001
- SRT_Coroutine = 13
- SRT_Discard = 4
- SRT_DistFifo = 5
- SRT_DistQueue = 6
- SRT_EphemTab = 12
- SRT_Except = 2
- SRT_Exists = 3
- SRT_Fifo = 8
- SRT_Mem = 10
- SRT_Output = 9
- SRT_Queue = 7
- SRT_Set = 11
- SRT_Table = 14
- SRT_Union = 1
- SRT_Upfrom = 15
- SSIZE_MAX = 9223372036854775807
- SSIZE_MIN = -9223372036854775808
- STAT_GET_NDLT = 4
- STAT_GET_NEQ = 2
- STAT_GET_NLT = 3
- STAT_GET_ROWID = 1
- STAT_GET_STAT1 = 0
- STDERR_FILENO = 2
- STDIN_FILENO = 0
- STDOUT_FILENO = 1
- STRIPDISC = 6
- S_ARCH1 = 65536
- S_ARCH2 = 131072
- S_BLKSIZE = 512
- S_IEXEC = 64
- S_IFBLK = 24576
- S_IFCHR = 8192
- S_IFDIR = 16384
- S_IFIFO = 4096
- S_IFLNK = 40960
- S_IFMT = 61440
- S_IFREG = 32768
- S_IFSOCK = 49152
- S_IFWHT = 57344
- S_IREAD = 256
- S_IRGRP = 0000040
- S_IROTH = 0000004
- S_IRUSR = 0000400
- S_IRWXG = 0000070
- S_IRWXO = 0000007
- S_IRWXU = 0000700
- S_ISGID = 0002000
- S_ISTXT = 0001000
- S_ISUID = 0004000
- S_ISVTX = 512
- S_IWGRP = 0000020
- S_IWOTH = 0000002
- S_IWRITE = 128
- S_IWUSR = 0000200
- S_IXGRP = 0000010
- S_IXOTH = 0000001
- S_IXUSR = 0000100
- TABLDISC = 3
- TABTYP_NORM = 0
- TABTYP_VIEW = 2
- TABTYP_VTAB = 1
- TERM_ANDINFO = 0x0020
- TERM_CODED = 0x0004
- TERM_COPIED = 0x0008
- TERM_DYNAMIC = 0x0001
- TERM_HEURTRUTH = 0x2000
- TERM_HIGHTRUTH = 0x4000
- TERM_IS = 0x0800
- TERM_LIKE = 0x0400
- TERM_LIKECOND = 0x0200
- TERM_LIKEOPT = 0x0100
- TERM_ORINFO = 0x0010
- TERM_OR_OK = 0x0040
- TERM_VARSELECT = 0x1000
- TERM_VIRTUAL = 0x0002
- TERM_VNULL = 0x0080
- TF_Autoincrement = 0x00000008
- TF_Ephemeral = 0x00004000
- TF_Eponymous = 0x00008000
- TF_HasGenerated = 0x00000060
- TF_HasHidden = 0x00000002
- TF_HasNotNull = 0x00000800
- TF_HasPrimaryKey = 0x00000004
- TF_HasStat1 = 0x00000010
- TF_HasStat4 = 0x00002000
- TF_HasStored = 0x00000040
- TF_HasVirtual = 0x00000020
- TF_NoVisibleRowid = 0x00000200
- TF_OOOHidden = 0x00000400
- TF_Readonly = 0x00000001
- TF_Shadow = 0x00001000
- TF_StatsUsed = 0x00000100
- TF_Strict = 0x00010000
- TF_WithoutRowid = 0x00000080
- TIMER_ABSTIME = 0x1
- TIMER_END = 0
- TIMER_RELTIME = 0x0
- TIMER_START = 0
- TIME_UTC = 1
- TIOCFLAG_CDTRCTS = 0x10
- TIOCFLAG_CLOCAL = 0x02
- TIOCFLAG_CRTSCTS = 0x04
- TIOCFLAG_MDMBUF = 0x08
- TIOCFLAG_SOFTCAR = 0x01
- TIOCM_CAR = 0100
- TIOCM_CD = 64
- TIOCM_CTS = 0040
- TIOCM_DSR = 0400
- TIOCM_DTR = 0002
- TIOCM_LE = 0001
- TIOCM_RI = 128
- TIOCM_RNG = 0200
- TIOCM_RTS = 0004
- TIOCM_SR = 0020
- TIOCM_ST = 0010
- TIOCPKT_DATA = 0x00
- TIOCPKT_DOSTOP = 0x20
- TIOCPKT_FLUSHREAD = 0x01
- TIOCPKT_FLUSHWRITE = 0x02
- TIOCPKT_IOCTL = 0x40
- TIOCPKT_NOSTOP = 0x10
- TIOCPKT_START = 0x08
- TIOCPKT_STOP = 0x04
- TK_ABORT = 27
- TK_ACTION = 28
- TK_ADD = 162
- TK_AFTER = 29
- TK_AGG_COLUMN = 168
- TK_AGG_FUNCTION = 167
- TK_ALL = 134
- TK_ALTER = 161
- TK_ALWAYS = 96
- TK_ANALYZE = 30
- TK_AND = 44
- TK_ANY = 101
- TK_AS = 24
- TK_ASC = 31
- TK_ASTERISK = 179
- TK_ATTACH = 32
- TK_AUTOINCR = 125
- TK_BEFORE = 33
- TK_BEGIN = 5
- TK_BETWEEN = 48
- TK_BITAND = 102
- TK_BITNOT = 113
- TK_BITOR = 103
- TK_BLOB = 153
- TK_BY = 34
- TK_CASCADE = 35
- TK_CASE = 156
- TK_CAST = 36
- TK_CHECK = 123
- TK_COLLATE = 112
- TK_COLUMN = 166
- TK_COLUMNKW = 60
- TK_COMMA = 25
- TK_COMMIT = 10
- TK_CONCAT = 111
- TK_CONFLICT = 37
- TK_CONSTRAINT = 118
- TK_CREATE = 17
- TK_CTIME_KW = 100
- TK_CURRENT = 85
- TK_DATABASE = 38
- TK_DEFAULT = 119
- TK_DEFERRABLE = 130
- TK_DEFERRED = 7
- TK_DELETE = 127
- TK_DESC = 39
- TK_DETACH = 40
- TK_DISTINCT = 139
- TK_DO = 61
- TK_DOT = 140
- TK_DROP = 132
- TK_EACH = 41
- TK_ELSE = 159
- TK_END = 11
- TK_EQ = 53
- TK_ERROR = 181
- TK_ESCAPE = 58
- TK_EXCEPT = 135
- TK_EXCLUDE = 91
- TK_EXCLUSIVE = 9
- TK_EXISTS = 20
- TK_EXPLAIN = 2
- TK_FAIL = 42
- TK_FILTER = 165
- TK_FIRST = 83
- TK_FLOAT = 152
- TK_FOLLOWING = 86
- TK_FOR = 62
- TK_FOREIGN = 131
- TK_FROM = 141
- TK_FUNCTION = 171
- TK_GE = 57
- TK_GENERATED = 95
- TK_GROUP = 145
- TK_GROUPS = 92
- TK_GT = 54
- TK_HAVING = 146
- TK_ID = 59
- TK_IF = 18
- TK_IF_NULL_ROW = 178
- TK_IGNORE = 63
- TK_ILLEGAL = 183
- TK_IMMEDIATE = 8
- TK_IN = 49
- TK_INDEX = 160
- TK_INDEXED = 115
- TK_INITIALLY = 64
- TK_INSERT = 126
- TK_INSTEAD = 65
- TK_INTEGER = 154
- TK_INTERSECT = 136
- TK_INTO = 150
- TK_IS = 45
- TK_ISNOT = 170
- TK_ISNULL = 50
- TK_JOIN = 142
- TK_JOIN_KW = 117
- TK_KEY = 67
- TK_LAST = 84
- TK_LE = 55
- TK_LIKE_KW = 47
- TK_LIMIT = 147
- TK_LP = 22
- TK_LSHIFT = 104
- TK_LT = 56
- TK_MATCH = 46
- TK_MATERIALIZED = 97
- TK_MINUS = 107
- TK_NE = 52
- TK_NO = 66
- TK_NOT = 19
- TK_NOTHING = 151
- TK_NOTNULL = 51
- TK_NULL = 120
- TK_NULLS = 82
- TK_OF = 68
- TK_OFFSET = 69
- TK_ON = 114
- TK_OR = 43
- TK_ORDER = 144
- TK_OTHERS = 93
- TK_OVER = 164
- TK_PARTITION = 87
- TK_PLAN = 4
- TK_PLUS = 106
- TK_PRAGMA = 70
- TK_PRECEDING = 88
- TK_PRIMARY = 121
- TK_QUERY = 3
- TK_RAISE = 71
- TK_RANGE = 89
- TK_RECURSIVE = 72
- TK_REFERENCES = 124
- TK_REGISTER = 175
- TK_REINDEX = 98
- TK_RELEASE = 14
- TK_REM = 110
- TK_RENAME = 99
- TK_REPLACE = 73
- TK_RESTRICT = 74
- TK_RETURNING = 149
- TK_ROLLBACK = 12
- TK_ROW = 75
- TK_ROWS = 76
- TK_RP = 23
- TK_RSHIFT = 105
- TK_SAVEPOINT = 13
- TK_SELECT = 137
- TK_SELECT_COLUMN = 177
- TK_SEMI = 1
- TK_SET = 129
- TK_SLASH = 109
- TK_SPACE = 182
- TK_SPAN = 180
- TK_STAR = 108
- TK_STRING = 116
- TK_TABLE = 16
- TK_TEMP = 21
- TK_THEN = 158
- TK_TIES = 94
- TK_TO = 15
- TK_TRANSACTION = 6
- TK_TRIGGER = 77
- TK_TRUEFALSE = 169
- TK_TRUTH = 174
- TK_UMINUS = 172
- TK_UNBOUNDED = 90
- TK_UNION = 133
- TK_UNIQUE = 122
- TK_UPDATE = 128
- TK_UPLUS = 173
- TK_USING = 143
- TK_VACUUM = 78
- TK_VALUES = 138
- TK_VARIABLE = 155
- TK_VECTOR = 176
- TK_VIEW = 79
- TK_VIRTUAL = 80
- TK_WHEN = 157
- TK_WHERE = 148
- TK_WINDOW = 163
- TK_WITH = 81
- TK_WITHOUT = 26
- TLOSS = 5
- TMP_MAX = 308915776
- TRANS_NONE = 0
- TRANS_READ = 1
- TRANS_WRITE = 2
- TRIGGER_AFTER = 2
- TRIGGER_BEFORE = 1
- TTLINEDNAMELEN = 32
- TTYDISC = 0
- UCHAR_MAX = 0xff
- UF_APPEND = 0x00000004
- UF_IMMUTABLE = 0x00000002
- UF_NODUMP = 0x00000001
- UF_OPAQUE = 0x00000008
- UF_SETTABLE = 0x0000ffff
- UID_MAX = 2147483647
- UINT16_MAX = 65535
- UINT32_MAX = 4294967295
- UINT64_MAX = 18446744073709551615
- UINT8_MAX = 255
- UINTMAX_MAX = 18446744073709551615
- UINTPTR_MAX = 18446744073709551615
- UINT_FAST16_MAX = 4294967295
- UINT_FAST32_MAX = 4294967295
- UINT_FAST64_MAX = 18446744073709551615
- UINT_FAST8_MAX = 4294967295
- UINT_LEAST16_MAX = 65535
- UINT_LEAST32_MAX = 4294967295
- UINT_LEAST64_MAX = 18446744073709551615
- UINT_LEAST8_MAX = 255
- UINT_MAX = 0xffffffff
- ULLONG_MAX = 0xffffffffffffffff
- ULONG_MAX = 0xffffffffffffffff
- UNDERFLOW = 4
- UNIXFILE_DELETE = 0x20
- UNIXFILE_DIRSYNC = 0x08
- UNIXFILE_EXCL = 0x01
- UNIXFILE_NOLOCK = 0x80
- UNIXFILE_PERSIST_WAL = 0x04
- UNIXFILE_PSOW = 0x10
- UNIXFILE_RDONLY = 0x02
- UNIXFILE_URI = 0x40
- UNIX_SHM_BASE = 120
- UNIX_SHM_DMS = 128
- UNKNOWN_LOCK = 5
- UQUAD_MAX = 0xffffffffffffffff
- USHRT_MAX = 0xffff
- UTIME_NOW = 1073741823
- UTIME_OMIT = 1073741822
- VDBE_DISPLAY_P4 = 1
- VDBE_MAGIC_DEAD = 0x5606c3c8
- VDBE_MAGIC_HALT = 0x319c2973
- VDBE_MAGIC_INIT = 0x16bceaa5
- VDBE_MAGIC_RESET = 0x48fa9f76
- VDBE_MAGIC_RUN = 0x2df20da3
- WALINDEX_MAX_VERSION = 3007000
- WAL_ALL_BUT_WRITE = 1
- WAL_CKPT_LOCK = 1
- WAL_EXCLUSIVE_MODE = 1
- WAL_FRAME_HDRSIZE = 24
- WAL_HDRSIZE = 32
- WAL_HEAPMEMORY_MODE = 2
- WAL_LOCK_CKPT = 1
- WAL_LOCK_READ0 = 3
- WAL_LOCK_WRITE = 0
- WAL_MAGIC = 0x377f0682
- WAL_MAX_VERSION = 3007000
- WAL_NORMAL_MODE = 0
- WAL_NREADER = 5
- WAL_RDONLY = 1
- WAL_RDWR = 0
- WAL_RECOVER_LOCK = 2
- WAL_RETRY = -1
- WAL_SAVEPOINT_NDATA = 4
- WAL_SHM_RDONLY = 2
- WAL_WRITE_LOCK = 0
- WCHAR_MAX = 0x7fffffff
- WCHAR_MIN = -2147483648
- WHERE_AGG_DISTINCT = 0x0400
- WHERE_AUTO_INDEX = 0x00004000
- WHERE_BIGNULL_SORT = 0x00080000
- WHERE_BOTH_LIMIT = 0x00000030
- WHERE_BTM_LIMIT = 0x00000020
- WHERE_COLUMN_EQ = 0x00000001
- WHERE_COLUMN_IN = 0x00000004
- WHERE_COLUMN_NULL = 0x00000008
- WHERE_COLUMN_RANGE = 0x00000002
- WHERE_CONSTRAINT = 0x0000000f
- WHERE_DISTINCTBY = 0x0080
- WHERE_DISTINCT_NOOP = 0
- WHERE_DISTINCT_ORDERED = 2
- WHERE_DISTINCT_UNIQUE = 1
- WHERE_DISTINCT_UNORDERED = 3
- WHERE_DUPLICATES_OK = 0x0010
- WHERE_GROUPBY = 0x0040
- WHERE_IDX_ONLY = 0x00000040
- WHERE_INDEXED = 0x00000200
- WHERE_IN_ABLE = 0x00000800
- WHERE_IN_EARLYOUT = 0x00040000
- WHERE_IN_SEEKSCAN = 0x00100000
- WHERE_IPK = 0x00000100
- WHERE_MULTI_OR = 0x00002000
- WHERE_ONEPASS_DESIRED = 0x0004
- WHERE_ONEPASS_MULTIROW = 0x0008
- WHERE_ONEROW = 0x00001000
- WHERE_ORDERBY_LIMIT = 0x0800
- WHERE_ORDERBY_MAX = 0x0002
- WHERE_ORDERBY_MIN = 0x0001
- WHERE_ORDERBY_NORMAL = 0x0000
- WHERE_OR_SUBCLAUSE = 0x0020
- WHERE_PARTIALIDX = 0x00020000
- WHERE_SKIPSCAN = 0x00008000
- WHERE_SORTBYGROUP = 0x0200
- WHERE_TOP_LIMIT = 0x00000010
- WHERE_TRANSCONS = 0x00200000
- WHERE_UNQ_WANTED = 0x00010000
- WHERE_USE_LIMIT = 0x4000
- WHERE_VIRTUALTABLE = 0x00000400
- WHERE_WANT_DISTINCT = 0x0100
- WINDOW_AGGINVERSE = 2
- WINDOW_AGGSTEP = 3
- WINDOW_ENDING_INT = 1
- WINDOW_ENDING_NUM = 4
- WINDOW_NTH_VALUE_INT = 2
- WINDOW_RETURN_ROW = 1
- WINDOW_STARTING_INT = 0
- WINDOW_STARTING_NUM = 3
- WINT_MAX = 0x7fffffff
- WINT_MIN = -2147483648
- WORD_BIT = 32
- WO_ALL = 0x1fff
- WO_AND = 0x0400
- WO_AUX = 0x0040
- WO_EQ = 0x0002
- WO_EQUIV = 0x0800
- WO_GE = 32
- WO_GT = 4
- WO_IN = 0x0001
- WO_IS = 0x0080
- WO_ISNULL = 0x0100
- WO_LE = 8
- WO_LT = 16
- WO_NOOP = 0x1000
- WO_OR = 0x0200
- WO_SINGLE = 0x01ff
- WRC_Abort = 2
- WRC_Continue = 0
- WRC_Prune = 1
- WRITE_LOCK = 2
- W_OK = 0x02
- XN_EXPR = -2
- XN_ROWID = -1
- X_OK = 0x01
- X_TLOSS = 1.41484755040568800000e+16
- YYFALLBACK = 1
- YYNOCODE = 318
- YYNOERRORRECOVERY = 1
- YYNRULE = 401
- YYNRULE_WITH_ACTION = 339
- YYNSTATE = 572
- YYNTOKEN = 184
- YYPARSEFREENEVERNULL = 1
- YYSTACKDEPTH = 100
- YYWILDCARD = 101
- YY_ACCEPT_ACTION = 1231
- YY_ACTTAB_COUNT = 2037
- YY_ERROR_ACTION = 1230
- YY_MAX_REDUCE = 1633
- YY_MAX_SHIFT = 571
- YY_MAX_SHIFTREDUCE = 1229
- YY_MIN_REDUCE = 1233
- YY_MIN_SHIFTREDUCE = 829
- YY_NO_ACTION = 1232
- YY_REDUCE_COUNT = 406
- YY_REDUCE_MAX = 1693
- YY_REDUCE_MIN = -272
- YY_SHIFT_COUNT = 571
- YY_SHIFT_MAX = 2014
- YY_SHIFT_MIN = 0
- X_AMD64_BYTE_SWAP_H_ = 0
- X_AMD64_INT_CONST_H_ = 0
- X_AMD64_INT_LIMITS_H_ = 0
- X_AMD64_INT_MWGWTYPES_H_ = 0
- X_AMD64_INT_TYPES_H_ = 0
- X_AMD64_WCHAR_LIMITS_H_ = 0
- X_BIG_ENDIAN = 4321
- X_BSD_INT16_T_ = 0
- X_BSD_INT32_T_ = 0
- X_BSD_INT64_T_ = 0
- X_BSD_INT8_T_ = 0
- X_BSD_INTPTR_T_ = 0
- X_BSD_UINT16_T_ = 0
- X_BSD_UINT32_T_ = 0
- X_BSD_UINT64_T_ = 0
- X_BSD_UINT8_T_ = 0
- X_BSD_UINTPTR_T_ = 0
- X_BYTE_ORDER = 1234
- X_CS_PATH = 1
- X_DLFCN_H_ = 0
- X_ERRNO_H_ = 0
- X_FILE_OFFSET_BITS = 64
- X_FP_HIMD = 0xff
- X_FP_LOMD = 0x80
- X_FSTDIO = 0
- X_FTS5INT_H = 0
- X_FTS5_H = 0
- X_FTSINT_H = 0
- X_GETGR_R_SIZE_MAX = 1024
- X_GETPW_R_SIZE_MAX = 1024
- X_GNU_SOURCE = 0
- X_IOFBF = 0
- X_IOLBF = 1
- X_IONBF = 2
- X_LARGEFILE_SOURCE = 1
- X_LARGE_FILE = 1
- X_LIB_PTHREAD_TYPES_H = 0
- X_LIMITS_H_ = 0
- X_LITTLE_ENDIAN = 1234
- X_LP64 = 1
- X_MATH_H_ = 0
- X_NETBSD_SOURCE = 1
- X_NETBSD_SYS_TTYCOM_H_ = 0
- X_OS_COMMON_H_ = 0
- X_O_SC_CLK_TCK = 3
- X_PATH_PTMDEV = "/dev/ptm"
- X_PC_2_SYMLINKS = 13
- X_PC_ACL_EXTENDED = 14
- X_PC_CHOWN_RESTRICTED = 7
- X_PC_FILESIZEBITS = 11
- X_PC_LINK_MAX = 1
- X_PC_MAX_CANON = 2
- X_PC_MAX_INPUT = 3
- X_PC_MIN_HOLE_SIZE = 15
- X_PC_NAME_MAX = 4
- X_PC_NO_TRUNC = 8
- X_PC_PATH_MAX = 5
- X_PC_PIPE_BUF = 6
- X_PC_SYMLINK_MAX = 12
- X_PC_SYNC_IO = 10
- X_PC_VDISABLE = 9
- X_PDP_ENDIAN = 3412
- X_POSIX2_BC_BASE_MAX = 99
- X_POSIX2_BC_DIM_MAX = 2048
- X_POSIX2_BC_SCALE_MAX = 99
- X_POSIX2_BC_STRING_MAX = 1000
- X_POSIX2_CHARCLASS_NAME_MAX = 14
- X_POSIX2_COLL_WEIGHTS_MAX = 2
- X_POSIX2_C_BIND = 200112
- X_POSIX2_EXPR_NEST_MAX = 32
- X_POSIX2_LINE_MAX = 2048
- X_POSIX2_RE_DUP_MAX = 255
- X_POSIX2_VERSION = 200112
- X_POSIX_AIO_LISTIO_MAX = 2
- X_POSIX_AIO_MAX = 1
- X_POSIX_ARG_MAX = 4096
- X_POSIX_ASYNCHRONOUS_IO = 200112
- X_POSIX_BARRIERS = 200112
- X_POSIX_CHILD_MAX = 25
- X_POSIX_CHOWN_RESTRICTED = 1
- X_POSIX_CLOCK_SELECTION = -1
- X_POSIX_CPUTIME = 200112
- X_POSIX_DELAYTIMER_MAX = 32
- X_POSIX_FSYNC = 1
- X_POSIX_HOST_NAME_MAX = 255
- X_POSIX_IPV6 = 0
- X_POSIX_JOB_CONTROL = 1
- X_POSIX_LINK_MAX = 8
- X_POSIX_LOGIN_NAME_MAX = 9
- X_POSIX_MAPPED_FILES = 1
- X_POSIX_MAX_CANON = 255
- X_POSIX_MAX_INPUT = 255
- X_POSIX_MEMLOCK = 1
- X_POSIX_MEMLOCK_RANGE = 1
- X_POSIX_MEMORY_PROTECTION = 1
- X_POSIX_MESSAGE_PASSING = 200112
- X_POSIX_MONOTONIC_CLOCK = 200112
- X_POSIX_MQ_OPEN_MAX = 8
- X_POSIX_MQ_PRIO_MAX = 32
- X_POSIX_NAME_MAX = 14
- X_POSIX_NGROUPS_MAX = 8
- X_POSIX_NO_TRUNC = 1
- X_POSIX_OPEN_MAX = 20
- X_POSIX_PATH_MAX = 256
- X_POSIX_PIPE_BUF = 512
- X_POSIX_PRIORITIZED_IO = -1
- X_POSIX_PRIORITY_SCHEDULING = 200112
- X_POSIX_RAW_SOCKETS = 200112
- X_POSIX_READER_WRITER_LOCKS = 200112
- X_POSIX_REGEXP = 1
- X_POSIX_RE_DUP_MAX = 255
- X_POSIX_SEMAPHORES = 0
- X_POSIX_SEM_NSEMS_MAX = 256
- X_POSIX_SHARED_MEMORY_OBJECTS = 0
- X_POSIX_SHELL = 1
- X_POSIX_SIGQUEUE_MAX = 32
- X_POSIX_SPAWN = 200809
- X_POSIX_SPIN_LOCKS = 200112
- X_POSIX_SSIZE_MAX = 32767
- X_POSIX_STREAM_MAX = 8
- X_POSIX_SYMLINK_MAX = 255
- X_POSIX_SYMLOOP_MAX = 8
- X_POSIX_SYNCHRONIZED_IO = 1
- X_POSIX_SYS_TTYCOM_H_ = 0
- X_POSIX_THREADS = 200112
- X_POSIX_THREAD_ATTR_STACKADDR = 200112
- X_POSIX_THREAD_ATTR_STACKSIZE = 200112
- X_POSIX_THREAD_CPUTIME = 200112
- X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
- X_POSIX_THREAD_KEYS_MAX = 128
- X_POSIX_THREAD_PRIO_PROTECT = 200112
- X_POSIX_THREAD_SAFE_FUNCTIONS = 200112
- X_POSIX_THREAD_THREADS_MAX = 64
- X_POSIX_TIMERS = 200112
- X_POSIX_TIMER_MAX = 32
- X_POSIX_TTY_NAME_MAX = 9
- X_POSIX_TZNAME_MAX = 6
- X_POSIX_VERSION = 200112
- X_PROPLIB_PLISTREF_H_ = 0
- X_PT_BARRIERATTR_DEAD = 0xDEAD0808
- X_PT_BARRIERATTR_MAGIC = 0x88880808
- X_PT_BARRIER_DEAD = 0xDEAD0008
- X_PT_BARRIER_MAGIC = 0x88880008
- X_PT_CONDATTR_DEAD = 0xDEAD0006
- X_PT_CONDATTR_MAGIC = 0x66660006
- X_PT_COND_DEAD = 0xDEAD0005
- X_PT_COND_MAGIC = 0x55550005
- X_PT_MUTEXATTR_DEAD = 0xDEAD0004
- X_PT_MUTEXATTR_MAGIC = 0x44440004
- X_PT_MUTEX_DEAD = 0xDEAD0003
- X_PT_MUTEX_MAGIC = 0x33330003
- X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
- X_PT_RWLOCKATTR_MAGIC = 0x99990909
- X_PT_RWLOCK_DEAD = 0xDEAD0009
- X_PT_RWLOCK_MAGIC = 0x99990009
- X_PT_SPINLOCK_DEAD = 0xDEAD0007
- X_PT_SPINLOCK_MAGIC = 0x77770007
- X_PT_SPINLOCK_PSHARED = 0x00000001
- X_QUAD_HIGHWORD = 1
- X_QUAD_LOWWORD = 0
- X_REENTRANT = 0
- X_SC_2_CHAR_TERM = 20
- X_SC_2_C_BIND = 18
- X_SC_2_C_DEV = 19
- X_SC_2_FORT_DEV = 21
- X_SC_2_FORT_RUN = 22
- X_SC_2_LOCALEDEF = 23
- X_SC_2_PBS = 80
- X_SC_2_PBS_ACCOUNTING = 81
- X_SC_2_PBS_CHECKPOINT = 82
- X_SC_2_PBS_LOCATE = 83
- X_SC_2_PBS_MESSAGE = 84
- X_SC_2_PBS_TRACK = 85
- X_SC_2_SW_DEV = 24
- X_SC_2_UPE = 25
- X_SC_2_VERSION = 17
- X_SC_AIO_LISTIO_MAX = 51
- X_SC_AIO_MAX = 52
- X_SC_ARG_MAX = 1
- X_SC_ASYNCHRONOUS_IO = 50
- X_SC_ATEXIT_MAX = 40
- X_SC_BARRIERS = 43
- X_SC_BC_BASE_MAX = 9
- X_SC_BC_DIM_MAX = 10
- X_SC_BC_SCALE_MAX = 11
- X_SC_BC_STRING_MAX = 12
- X_SC_CHILD_MAX = 2
- X_SC_CLK_TCK = 39
- X_SC_CLOCK_SELECTION = 49
- X_SC_COLL_WEIGHTS_MAX = 13
- X_SC_CPUTIME = 90
- X_SC_DELAYTIMER_MAX = 92
- X_SC_EXPR_NEST_MAX = 14
- X_SC_FSYNC = 29
- X_SC_GETGR_R_SIZE_MAX = 47
- X_SC_GETPW_R_SIZE_MAX = 48
- X_SC_HOST_NAME_MAX = 69
- X_SC_IOV_MAX = 32
- X_SC_JOB_CONTROL = 6
- X_SC_LINE_MAX = 15
- X_SC_LOGIN_NAME_MAX = 37
- X_SC_MAPPED_FILES = 33
- X_SC_MEMLOCK = 34
- X_SC_MEMLOCK_RANGE = 35
- X_SC_MEMORY_PROTECTION = 36
- X_SC_MESSAGE_PASSING = 53
- X_SC_MONOTONIC_CLOCK = 38
- X_SC_MQ_OPEN_MAX = 54
- X_SC_MQ_PRIO_MAX = 55
- X_SC_NGROUPS_MAX = 4
- X_SC_NPROCESSORS_CONF = 1001
- X_SC_NPROCESSORS_ONLN = 1002
- X_SC_OPEN_MAX = 5
- X_SC_PAGESIZE = 28
- X_SC_PAGE_SIZE = 28
- X_SC_PASS_MAX = 70
- X_SC_PHYS_PAGES = 121
- X_SC_PRIORITY_SCHEDULING = 56
- X_SC_READER_WRITER_LOCKS = 46
- X_SC_REALTIME_SIGNALS = 94
- X_SC_REGEXP = 71
- X_SC_RE_DUP_MAX = 16
- X_SC_SAVED_IDS = 7
- X_SC_SCHED_PRI_MAX = 2003
- X_SC_SCHED_PRI_MIN = 2002
- X_SC_SCHED_RT_TS = 2001
- X_SC_SEMAPHORES = 42
- X_SC_SEM_NSEMS_MAX = 89
- X_SC_SHARED_MEMORY_OBJECTS = 87
- X_SC_SHELL = 72
- X_SC_SIGQUEUE_MAX = 93
- X_SC_SPAWN = 86
- X_SC_SPIN_LOCKS = 45
- X_SC_STREAM_MAX = 26
- X_SC_SYMLOOP_MAX = 73
- X_SC_SYNCHRONIZED_IO = 31
- X_SC_THREADS = 41
- X_SC_THREAD_ATTR_STACKADDR = 61
- X_SC_THREAD_ATTR_STACKSIZE = 62
- X_SC_THREAD_CPUTIME = 91
- X_SC_THREAD_DESTRUCTOR_ITERATIONS = 57
- X_SC_THREAD_KEYS_MAX = 58
- X_SC_THREAD_PRIORITY_SCHEDULING = 63
- X_SC_THREAD_PRIO_INHERIT = 64
- X_SC_THREAD_PRIO_PROTECT = 65
- X_SC_THREAD_PROCESS_SHARED = 66
- X_SC_THREAD_SAFE_FUNCTIONS = 67
- X_SC_THREAD_STACK_MIN = 59
- X_SC_THREAD_THREADS_MAX = 60
- X_SC_TIMERS = 44
- X_SC_TIMER_MAX = 88
- X_SC_TTY_NAME_MAX = 68
- X_SC_TZNAME_MAX = 27
- X_SC_V6_ILP32_OFF32 = 74
- X_SC_V6_ILP32_OFFBIG = 75
- X_SC_V6_LP64_OFF64 = 76
- X_SC_V6_LPBIG_OFFBIG = 77
- X_SC_VERSION = 8
- X_SC_XOPEN_SHM = 30
- X_SQLITE3RBU_H = 0
- X_SQLITE3RTREE_H_ = 0
- X_SQLITE_OS_H_ = 0
- X_STDDEF_H_ = 0
- X_STDIO_H_ = 0
- X_STDLIB_H_ = 0
- X_STRINGS_H_ = 0
- X_STRING_H_ = 0
- X_SYS_ANSI_H_ = 0
- X_SYS_BSWAP_H_ = 0
- X_SYS_CDEFS_ELF_H_ = 0
- X_SYS_CDEFS_H_ = 0
- X_SYS_COMMON_ANSI_H_ = 0
- X_SYS_COMMON_INT_LIMITS_H_ = 0
- X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
- X_SYS_COMMON_INT_TYPES_H_ = 0
- X_SYS_DKIO_H_ = 0
- X_SYS_ENDIAN_H_ = 0
- X_SYS_ERRNO_H_ = 0
- X_SYS_FCNTL_H_ = 0
- X_SYS_FD_SET_H_ = 0
- X_SYS_FILIO_H_ = 0
- X_SYS_IDTYPE_H_ = 0
- X_SYS_IOCCOM_H_ = 0
- X_SYS_IOCTL_H_ = 0
- X_SYS_MMAN_H_ = 0
- X_SYS_NULL_H_ = 0
- X_SYS_SELECT_H_ = 0
- X_SYS_SIGTYPES_H_ = 0
- X_SYS_SOCKIO_H_ = 0
- X_SYS_STAT_H_ = 0
- X_SYS_STDARG_H_ = 0
- X_SYS_STDINT_H_ = 0
- X_SYS_SYSLIMITS_H_ = 0
- X_SYS_TIMESPEC_H_ = 0
- X_SYS_TIME_H_ = 0
- X_SYS_TYPES_H_ = 0
- X_SYS_UNISTD_H_ = 0
- X_S_ARCH1 = 0200000
- X_S_ARCH2 = 0400000
- X_S_IFBLK = 0060000
- X_S_IFCHR = 0020000
- X_S_IFDIR = 0040000
- X_S_IFIFO = 0010000
- X_S_IFLNK = 0120000
- X_S_IFMT = 0170000
- X_S_IFREG = 0100000
- X_S_IFSOCK = 0140000
- X_S_IFWHT = 0160000
- X_S_ISVTX = 0001000
- X_TIME_H_ = 0
- X_UNISTD_H_ = 0
- X_X86_64_BSWAP_H_ = 0
- X_X86_64_CDEFS_H_ = 0
- X_X86_64_LIMITS_H_ = 0
- X_X86_64_TYPES_H_ = 0
- X_XOPEN_IOV_MAX = 16
- X_XOPEN_NAME_MAX = 256
- X_XOPEN_PATH_MAX = 1024
- X_XOPEN_SHM = 0
- X_XOPEN_SOURCE = 600
- BBatch = 0
- EtBUFSIZE = 70
- EtCHARX = 8
- EtDECIMAL = 16
- EtDYNSTRING = 6
- EtEXP = 2
- EtFLOAT = 1
- EtGENERIC = 3
- EtINVALID = 17
- EtORDINAL = 15
- EtPERCENT = 7
- EtPOINTER = 13
- EtRADIX = 0
- EtSIZE = 4
- EtSQLESCAPE = 9
- EtSQLESCAPE2 = 10
- EtSQLESCAPE3 = 14
- EtSRCITEM = 12
- EtSTRING = 5
- EtTOKEN = 11
- Fts5YYNFTS5TOKEN = 16
- Fts5YYNOCODE = 27
- Fts5YYNOERRORRECOVERY = 1
- Fts5YYNRULE = 28
- Fts5YYNRULE_WITH_ACTION = 28
- Fts5YYNSTATE = 35
- Fts5YYPARSEFREENOTNULL = 1
- Fts5YYSTACKDEPTH = 100
- Fts5YY_ACCEPT_ACTION = 81
- Fts5YY_ACTTAB_COUNT = 105
- Fts5YY_ERROR_ACTION = 80
- Fts5YY_MAX_REDUCE = 110
- Fts5YY_MAX_SHIFT = 34
- Fts5YY_MAX_SHIFTREDUCE = 79
- Fts5YY_MIN_REDUCE = 83
- Fts5YY_MIN_SHIFTREDUCE = 52
- Fts5YY_NO_ACTION = 82
- Fts5YY_REDUCE_COUNT = 17
- Fts5YY_REDUCE_MAX = 67
- Fts5YY_REDUCE_MIN = -17
- Fts5YY_SHIFT_COUNT = 34
- Fts5YY_SHIFT_MAX = 93
- Fts5YY_SHIFT_MIN = 0
- Sqlite3Fts5ParserCTX_FETCH = 0
- Sqlite3Fts5ParserCTX_PARAM = 0
- Sqlite3Fts5ParserCTX_PDECL = 0
- Sqlite3Fts5ParserCTX_SDECL = 0
- Sqlite3Fts5ParserCTX_STORE = 0
- Sqlite3ParserARG_FETCH = 0
- Sqlite3ParserARG_PARAM = 0
- Sqlite3ParserARG_PDECL = 0
- Sqlite3ParserARG_SDECL = 0
- Sqlite3ParserARG_STORE = 0
- Sqlite3Parser_ENGINEALWAYSONSTACK = 1
- TkCREATE = 4
- TkEND = 7
- TkEXPLAIN = 3
- TkOTHER = 2
- TkSEMI = 0
- TkTEMP = 5
- TkTRIGGER = 6
- TkWS = 1
- WsdAutoextInit = 0
- WsdHooksInit = 0
- WsdStatInit = 0
+ ACCESSPERMS = 511 // /usr/include/sys/stat.h:189:1:
+ ALLPERMS = 4095 // /usr/include/sys/stat.h:191:1:
+ ARG_MAX = 262144 // /usr/include/sys/syslimits.h:45:1:
+ AT_EACCESS = 0x100 // /usr/include/fcntl.h:297:1:
+ AT_FDCWD = -100 // /usr/include/fcntl.h:296:1:
+ AT_REMOVEDIR = 0x800 // /usr/include/fcntl.h:300:1:
+ AT_SYMLINK_FOLLOW = 0x400 // /usr/include/fcntl.h:299:1:
+ AT_SYMLINK_NOFOLLOW = 0x200 // /usr/include/fcntl.h:298:1:
+ BC_BASE_MAX = 2147483647 // /usr/include/sys/syslimits.h:63:1:
+ BC_DIM_MAX = 65535 // /usr/include/sys/syslimits.h:64:1:
+ BC_SCALE_MAX = 2147483647 // /usr/include/sys/syslimits.h:65:1:
+ BC_STRING_MAX = 2147483647 // /usr/include/sys/syslimits.h:66:1:
+ BIG_ENDIAN = 4321 // /usr/include/sys/endian.h:101: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:
+ BUFSIZ = 1024 // /usr/include/stdio.h:182:1:
+ BYTE_ORDER = 1234 // /usr/include/sys/endian.h:103: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:
+ CHARCLASS_NAME_MAX = 14 // /usr/include/limits.h:125:1:
+ CHAR_BIT = 8 // /usr/include/machine/limits.h:41:1:
+ CHAR_MAX = 127 // /usr/include/limits.h:163:1:
+ CHAR_MIN = -128 // /usr/include/limits.h:162:1:
+ CHILD_MAX = 160 // /usr/include/sys/syslimits.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:
+ CLOCKS_PER_SEC = 100 // /usr/include/time.h:73:1:
+ CLOCK_MONOTONIC = 3 // /usr/include/sys/time.h:297:1:
+ CLOCK_PROCESS_CPUTIME_ID = 0x40000000 // /usr/include/sys/time.h:299:1:
+ CLOCK_PROF = 2 // /usr/include/sys/time.h:296:1:
+ CLOCK_REALTIME = 0 // /usr/include/sys/time.h:294:1:
+ CLOCK_THREAD_CPUTIME_ID = 0x20000000 // /usr/include/sys/time.h:298:1:
+ CLOCK_VIRTUAL = 1 // /usr/include/sys/time.h:295: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:
+ COLL_WEIGHTS_MAX = 2 // /usr/include/sys/syslimits.h:67: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:
+ DBL_DIG = 15 // /usr/include/machine/limits.h:85: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:
+ DEFFILEMODE = 438 // /usr/include/sys/stat.h:193:1:
+ DIRECT_MODE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:59477:1:
+ DKCACHE_DPO = 0x040000 // /usr/include/sys/dkio.h:89:1:
+ DKCACHE_FUA = 0x020000 // /usr/include/sys/dkio.h:88:1:
+ DKCACHE_RCHANGE = 0x000100 // /usr/include/sys/dkio.h:85:1:
+ DKCACHE_READ = 0x000001 // /usr/include/sys/dkio.h:83:1:
+ DKCACHE_SAVE = 0x010000 // /usr/include/sys/dkio.h:87:1:
+ DKCACHE_WCHANGE = 0x000200 // /usr/include/sys/dkio.h:86:1:
+ DKCACHE_WRITE = 0x000002 // /usr/include/sys/dkio.h:84:1:
+ DL_GETERRNO = 1 // /usr/include/dlfcn.h:95:1:
+ DL_GETSYMBOL = 2 // /usr/include/dlfcn.h:96:1:
+ DL_LAZY = 1 // /usr/include/dlfcn.h:81:1:
+ DOMAIN = 1 // /usr/include/math.h:199:1:
+ DOTLOCK_SUFFIX = ".lock" // testdata/sqlite-amalgamation-3380500/sqlite3.c:37010:1:
+ E2BIG = 7 // /usr/include/sys/errno.h:48:1:
+ EACCES = 13 // /usr/include/sys/errno.h:55:1:
+ EADDRINUSE = 48 // /usr/include/sys/errno.h:97:1:
+ EADDRNOTAVAIL = 49 // /usr/include/sys/errno.h:98:1:
+ EAFNOSUPPORT = 47 // /usr/include/sys/errno.h:96:1:
+ EAGAIN = 35 // /usr/include/sys/errno.h:81:1:
+ EALREADY = 37 // /usr/include/sys/errno.h:84:1:
+ EAUTH = 80 // /usr/include/sys/errno.h:140:1:
+ EBADF = 9 // /usr/include/sys/errno.h:50:1:
+ EBADMSG = 88 // /usr/include/sys/errno.h:159:1:
+ EBADRPC = 72 // /usr/include/sys/errno.h:130:1:
+ EBUSY = 16 // /usr/include/sys/errno.h:58:1:
+ ECANCELED = 87 // /usr/include/sys/errno.h:156:1:
+ ECHILD = 10 // /usr/include/sys/errno.h:51:1:
+ ECONNABORTED = 53 // /usr/include/sys/errno.h:104:1:
+ ECONNREFUSED = 61 // /usr/include/sys/errno.h:112:1:
+ ECONNRESET = 54 // /usr/include/sys/errno.h:105:1:
+ EDEADLK = 11 // /usr/include/sys/errno.h:52:1:
+ EDESTADDRREQ = 39 // /usr/include/sys/errno.h:88:1:
+ EDOM = 33 // /usr/include/sys/errno.h:77:1:
+ EDQUOT = 69 // /usr/include/sys/errno.h:125:1:
+ EEXIST = 17 // /usr/include/sys/errno.h:59:1:
+ EFAULT = 14 // /usr/include/sys/errno.h:56:1:
+ EFBIG = 27 // /usr/include/sys/errno.h:69:1:
+ EFTYPE = 79 // /usr/include/sys/errno.h:139:1:
+ EHOSTDOWN = 64 // /usr/include/sys/errno.h:118:1:
+ EHOSTUNREACH = 65 // /usr/include/sys/errno.h:119:1:
+ EIDRM = 82 // /usr/include/sys/errno.h:144:1:
+ EILSEQ = 85 // /usr/include/sys/errno.h:149:1:
+ EINPROGRESS = 36 // /usr/include/sys/errno.h:83:1:
+ EINTR = 4 // /usr/include/sys/errno.h:45:1:
+ EINVAL = 22 // /usr/include/sys/errno.h:64:1:
+ EIO = 5 // /usr/include/sys/errno.h:46:1:
+ EISCONN = 56 // /usr/include/sys/errno.h:107:1:
+ EISDIR = 21 // /usr/include/sys/errno.h:63:1:
+ ELAST = 96 // /usr/include/sys/errno.h:175:1:
+ ELOOP = 62 // /usr/include/sys/errno.h:114:1:
+ EMFILE = 24 // /usr/include/sys/errno.h:66:1:
+ EMLINK = 31 // /usr/include/sys/errno.h:73:1:
+ EMSGSIZE = 40 // /usr/include/sys/errno.h:89:1:
+ EMULTIHOP = 94 // /usr/include/sys/errno.h:171:1:
+ ENAMETOOLONG = 63 // /usr/include/sys/errno.h:115: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:
+ ENEEDAUTH = 81 // /usr/include/sys/errno.h:141:1:
+ ENETDOWN = 50 // /usr/include/sys/errno.h:101:1:
+ ENETRESET = 52 // /usr/include/sys/errno.h:103:1:
+ ENETUNREACH = 51 // /usr/include/sys/errno.h:102:1:
+ ENFILE = 23 // /usr/include/sys/errno.h:65:1:
+ ENOATTR = 93 // /usr/include/sys/errno.h:168:1:
+ ENOBUFS = 55 // /usr/include/sys/errno.h:106:1:
+ ENODATA = 89 // /usr/include/sys/errno.h:162:1:
+ ENODEV = 19 // /usr/include/sys/errno.h:61:1:
+ ENOENT = 2 // /usr/include/sys/errno.h:43:1:
+ ENOEXEC = 8 // /usr/include/sys/errno.h:49:1:
+ ENOLCK = 77 // /usr/include/sys/errno.h:136:1:
+ ENOLINK = 95 // /usr/include/sys/errno.h:172:1:
+ ENOMEM = 12 // /usr/include/sys/errno.h:54:1:
+ ENOMSG = 83 // /usr/include/sys/errno.h:145:1:
+ ENOPROTOOPT = 42 // /usr/include/sys/errno.h:91:1:
+ ENOSPC = 28 // /usr/include/sys/errno.h:70:1:
+ ENOSR = 90 // /usr/include/sys/errno.h:163:1:
+ ENOSTR = 91 // /usr/include/sys/errno.h:164:1:
+ ENOSYS = 78 // /usr/include/sys/errno.h:137:1:
+ ENOTBLK = 15 // /usr/include/sys/errno.h:57:1:
+ ENOTCONN = 57 // /usr/include/sys/errno.h:108:1:
+ ENOTDIR = 20 // /usr/include/sys/errno.h:62:1:
+ ENOTEMPTY = 66 // /usr/include/sys/errno.h:120:1:
+ ENOTSOCK = 38 // /usr/include/sys/errno.h:87:1:
+ ENOTSUP = 86 // /usr/include/sys/errno.h:153:1:
+ ENOTTY = 25 // /usr/include/sys/errno.h:67:1:
+ ENXIO = 6 // /usr/include/sys/errno.h:47:1:
+ EOF = -1 // /usr/include/stdio.h:183:1:
+ EOPNOTSUPP = 45 // /usr/include/sys/errno.h:94:1:
+ EOVERFLOW = 84 // /usr/include/sys/errno.h:146:1:
+ EPERM = 1 // /usr/include/sys/errno.h:42:1:
+ EPFNOSUPPORT = 46 // /usr/include/sys/errno.h:95:1:
+ EPIPE = 32 // /usr/include/sys/errno.h:74:1:
+ EPROCLIM = 67 // /usr/include/sys/errno.h:123:1:
+ EPROCUNAVAIL = 76 // /usr/include/sys/errno.h:134:1:
+ EPROGMISMATCH = 75 // /usr/include/sys/errno.h:133:1:
+ EPROGUNAVAIL = 74 // /usr/include/sys/errno.h:132:1:
+ EPROTO = 96 // /usr/include/sys/errno.h:173:1:
+ EPROTONOSUPPORT = 43 // /usr/include/sys/errno.h:92:1:
+ EPROTOTYPE = 41 // /usr/include/sys/errno.h:90: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:
+ ERANGE = 34 // /usr/include/sys/errno.h:78:1:
+ EREMOTE = 71 // /usr/include/sys/errno.h:129:1:
+ EROFS = 30 // /usr/include/sys/errno.h:72:1:
+ ERPCMISMATCH = 73 // /usr/include/sys/errno.h:131:1:
+ ESHUTDOWN = 58 // /usr/include/sys/errno.h:109:1:
+ ESOCKTNOSUPPORT = 44 // /usr/include/sys/errno.h:93:1:
+ ESPIPE = 29 // /usr/include/sys/errno.h:71:1:
+ ESRCH = 3 // /usr/include/sys/errno.h:44:1:
+ ESTALE = 70 // /usr/include/sys/errno.h:128:1:
+ ETIME = 92 // /usr/include/sys/errno.h:165:1:
+ ETIMEDOUT = 60 // /usr/include/sys/errno.h:111:1:
+ ETOOMANYREFS = 59 // /usr/include/sys/errno.h:110:1:
+ ETXTBSY = 26 // /usr/include/sys/errno.h:68:1:
+ EUSERS = 68 // /usr/include/sys/errno.h:124:1:
+ EWOULDBLOCK = 35 // /usr/include/sys/errno.h:82:1:
+ EXCLUDED_TABLE_NUMBER = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:100448:1:
+ EXCLUSIVE_LOCK = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16323:1:
+ EXDEV = 18 // /usr/include/sys/errno.h:60:1:
+ EXIT_FAILURE = 1 // /usr/include/stdlib.h:87:1:
+ EXIT_SUCCESS = 0 // /usr/include/stdlib.h:88:1:
+ EXPRDUP_REDUCE = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18207:1:
+ EXPR_NEST_MAX = 32 // /usr/include/sys/syslimits.h:68:1:
+ FAPPEND = 8 // /usr/include/fcntl.h:156:1:
+ FASYNC = 64 // /usr/include/fcntl.h:157:1:
+ FDATASYNC = 0x0010 // /usr/include/sys/unistd.h:196:1:
+ FDISKSYNC = 0x0040 // /usr/include/sys/unistd.h:198:1:
+ FD_CLOEXEC = 1 // /usr/include/fcntl.h:199:1:
+ FD_SETSIZE = 256 // /usr/include/sys/fd_set.h:59:1:
+ FFILESYNC = 0x0020 // /usr/include/sys/unistd.h:197:1:
+ FILENAME_MAX = 1024 // /usr/include/stdio.h:192:1:
+ FLAG_SIGNED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29490:1:
+ FLAG_STRING = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29491:1:
+ FLT_DIG = 6 // /usr/include/machine/limits.h:89:1:
+ FLT_MAX = 0 // /usr/include/machine/limits.h:90:1:
+ FLT_MIN = 0 // /usr/include/machine/limits.h:91:1:
+ FNDELAY = 4 // /usr/include/fcntl.h:159:1:
+ FOPEN_MAX = 20 // /usr/include/stdio.h:191:1:
+ FPARSELN_UNESCALL = 0x0f // /usr/include/stdio.h:411:1:
+ FPARSELN_UNESCCOMM = 0x04 // /usr/include/stdio.h:409:1:
+ FPARSELN_UNESCCONT = 0x02 // /usr/include/stdio.h:408:1:
+ FPARSELN_UNESCESC = 0x01 // /usr/include/stdio.h:407:1:
+ FPARSELN_UNESCREST = 0x08 // /usr/include/stdio.h:410:1:
+ FP_ILOGB0 = -2147483648 // /usr/include/math.h:133:1:
+ FP_ILOGBNAN = 2147483647 // /usr/include/math.h:134:1:
+ FP_INFINITE = 0x00 // /usr/include/math.h:124:1:
+ FP_NAN = 0x01 // /usr/include/math.h:125:1:
+ FP_NORMAL = 0x02 // /usr/include/math.h:126:1:
+ FP_SUBNORMAL = 0x03 // /usr/include/math.h:127:1:
+ FP_ZERO = 0x04 // /usr/include/math.h:128:1:
+ FREAD = 0x00000001 // /usr/include/fcntl.h:78: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:
+ FWRITE = 0x00000002 // /usr/include/fcntl.h:79:1:
+ F_CLOSEM = 10 // /usr/include/fcntl.h:191:1:
+ F_DUPFD = 0 // /usr/include/fcntl.h:177:1:
+ F_DUPFD_CLOEXEC = 12 // /usr/include/fcntl.h:193:1:
+ F_GETFD = 1 // /usr/include/fcntl.h:178:1:
+ F_GETFL = 3 // /usr/include/fcntl.h:180:1:
+ F_GETLK = 7 // /usr/include/fcntl.h:187:1:
+ F_GETNOSIGPIPE = 13 // /usr/include/fcntl.h:194:1:
+ F_GETOWN = 5 // /usr/include/fcntl.h:184:1:
+ F_LOCK = 1 // /usr/include/unistd.h:253:1:
+ F_MAXFD = 11 // /usr/include/fcntl.h:192:1:
+ F_OK = 0 // /usr/include/sys/unistd.h:172:1:
+ F_PARAM_MASK = 0xfff // /usr/include/fcntl.h:213:1:
+ F_PARAM_MAX = 4095 // /usr/include/fcntl.h:215:1:
+ F_RDLCK = 1 // /usr/include/fcntl.h:202:1:
+ F_SETFD = 2 // /usr/include/fcntl.h:179:1:
+ F_SETFL = 4 // /usr/include/fcntl.h:181:1:
+ F_SETLK = 8 // /usr/include/fcntl.h:188:1:
+ F_SETLKW = 9 // /usr/include/fcntl.h:189:1:
+ F_SETNOSIGPIPE = 14 // /usr/include/fcntl.h:195:1:
+ F_SETOWN = 6 // /usr/include/fcntl.h:185:1:
+ F_TEST = 3 // /usr/include/unistd.h:255:1:
+ F_TLOCK = 2 // /usr/include/unistd.h:254:1:
+ F_ULOCK = 0 // /usr/include/unistd.h:252:1:
+ F_UNLCK = 2 // /usr/include/fcntl.h:203:1:
+ F_WRLCK = 3 // /usr/include/fcntl.h:204:1:
+ GCC_VERSION = 7005000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:218:1:
+ GEOPOLY_PI = 3.1415926535897932385 // testdata/sqlite-amalgamation-3380500/sqlite3.c:200887:1:
+ GETPASS_7BIT = 0x080 // /usr/include/unistd.h:351:1:
+ GETPASS_BUF_LIMIT = 0x004 // /usr/include/unistd.h:346:1:
+ GETPASS_ECHO = 0x020 // /usr/include/unistd.h:349:1:
+ GETPASS_ECHO_NL = 0x400 // /usr/include/unistd.h:354:1:
+ GETPASS_ECHO_STAR = 0x040 // /usr/include/unistd.h:350:1:
+ GETPASS_FAIL_EOF = 0x002 // /usr/include/unistd.h:345:1:
+ GETPASS_FORCE_LOWER = 0x100 // /usr/include/unistd.h:352:1:
+ GETPASS_FORCE_UPPER = 0x200 // /usr/include/unistd.h:353:1:
+ GETPASS_NEED_TTY = 0x001 // /usr/include/unistd.h:344:1:
+ GETPASS_NO_BEEP = 0x010 // /usr/include/unistd.h:348:1:
+ GETPASS_NO_SIGNAL = 0x008 // /usr/include/unistd.h:347:1:
+ GID_MAX = 2147483647 // /usr/include/sys/syslimits.h:49: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:
+ HAVE_USLEEP = 1 // <defines>:3:1:
+ HDLCDISC = 9 // /usr/include/sys/ttycom.h:177:1:
+ HN_AUTOSCALE = 0x20 // /usr/include/stdlib.h:301:1:
+ HN_B = 0x04 // /usr/include/stdlib.h:297:1:
+ HN_DECIMAL = 0x01 // /usr/include/stdlib.h:295:1:
+ HN_DIVISOR_1000 = 0x08 // /usr/include/stdlib.h:298:1:
+ HN_GETSCALE = 0x10 // /usr/include/stdlib.h:300:1:
+ HN_NOSPACE = 0x02 // /usr/include/stdlib.h:296: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:
+ INT16_MAX = 32767 // /usr/include/sys/common_int_limits.h:53:1:
+ INT16_MIN = -32768 // /usr/include/sys/common_int_limits.h:47:1:
+ INT32_MAX = 2147483647 // /usr/include/sys/common_int_limits.h:54:1:
+ INT32_MIN = -2147483648 // /usr/include/sys/common_int_limits.h:48:1:
+ INT64_MAX = 9223372036854775807 // /usr/include/sys/common_int_limits.h:55:1:
+ INT64_MIN = -9223372036854775808 // /usr/include/sys/common_int_limits.h:49:1:
+ INT8_MAX = 127 // /usr/include/sys/common_int_limits.h:52:1:
+ INT8_MIN = -128 // /usr/include/sys/common_int_limits.h:46:1:
+ INTERFACE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161872:1:
+ INTMAX_MAX = 9223372036854775807 // /usr/include/sys/common_int_limits.h:111:1:
+ INTMAX_MIN = -9223372036854775808 // /usr/include/sys/common_int_limits.h:110:1:
+ INTPTR_MAX = 9223372036854775807 // /usr/include/sys/common_int_limits.h:105:1:
+ INTPTR_MIN = -9223372036854775808 // /usr/include/sys/common_int_limits.h:104:1:
+ INT_FAST16_MAX = 2147483647 // /usr/include/sys/common_int_limits.h:93:1:
+ INT_FAST16_MIN = -2147483648 // /usr/include/sys/common_int_limits.h:87:1:
+ INT_FAST32_MAX = 2147483647 // /usr/include/sys/common_int_limits.h:94:1:
+ INT_FAST32_MIN = -2147483648 // /usr/include/sys/common_int_limits.h:88:1:
+ INT_FAST64_MAX = 9223372036854775807 // /usr/include/sys/common_int_limits.h:95:1:
+ INT_FAST64_MIN = -9223372036854775808 // /usr/include/sys/common_int_limits.h:89:1:
+ INT_FAST8_MAX = 2147483647 // /usr/include/sys/common_int_limits.h:92:1:
+ INT_FAST8_MIN = -2147483648 // /usr/include/sys/common_int_limits.h:86:1:
+ INT_LEAST16_MAX = 32767 // /usr/include/sys/common_int_limits.h:73:1:
+ INT_LEAST16_MIN = -32768 // /usr/include/sys/common_int_limits.h:67:1:
+ INT_LEAST32_MAX = 2147483647 // /usr/include/sys/common_int_limits.h:74:1:
+ INT_LEAST32_MIN = -2147483648 // /usr/include/sys/common_int_limits.h:68:1:
+ INT_LEAST64_MAX = 9223372036854775807 // /usr/include/sys/common_int_limits.h:75:1:
+ INT_LEAST64_MIN = -9223372036854775808 // /usr/include/sys/common_int_limits.h:69:1:
+ INT_LEAST8_MAX = 127 // /usr/include/sys/common_int_limits.h:72:1:
+ INT_LEAST8_MIN = -128 // /usr/include/sys/common_int_limits.h:66:1:
+ INT_MAX = 0x7fffffff // /usr/include/machine/limits.h:52:1:
+ INT_MIN = -2147483648 // /usr/include/machine/limits.h:53: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:
+ IOCGROUP_SHIFT = 8 // /usr/include/sys/ioccom.h:49:1:
+ IOCPARM_MASK = 0x1fff // /usr/include/sys/ioccom.h:47:1:
+ IOCPARM_SHIFT = 16 // /usr/include/sys/ioccom.h:48:1:
+ IOV_MAX = 1024 // /usr/include/sys/syslimits.h:84:1:
+ ITIMER_MONOTONIC = 3 // /usr/include/sys/time.h:278:1:
+ ITIMER_PROF = 2 // /usr/include/sys/time.h:277:1:
+ ITIMER_REAL = 0 // /usr/include/sys/time.h:275:1:
+ ITIMER_VIRTUAL = 1 // /usr/include/sys/time.h:276: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:
+ 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:
+ LINE_MAX = 2048 // /usr/include/sys/syslimits.h:69:1:
+ LINK_MAX = 32767 // /usr/include/sys/syslimits.h:50:1:
+ LITTLE_ENDIAN = 1234 // /usr/include/sys/endian.h:100:1:
+ LLONG_MAX = 0x7fffffffffffffff // /usr/include/machine/limits.h:62:1:
+ LLONG_MIN = -9223372036854775808 // /usr/include/machine/limits.h:63:1:
+ LOCATE_NOERR = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19891:1:
+ LOCATE_VIEW = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19890:1:
+ LOCK_EX = 0x02 // /usr/include/fcntl.h:264:1:
+ LOCK_NB = 0x04 // /usr/include/fcntl.h:265:1:
+ LOCK_SH = 0x01 // /usr/include/fcntl.h:263:1:
+ LOCK_UN = 0x08 // /usr/include/fcntl.h:266:1:
+ LOGIN_NAME_MAX = 17 // /usr/include/sys/syslimits.h:77:1:
+ LONG_BIT = 64 // /usr/include/machine/limits.h:82:1:
+ LONG_MAX = 0x7fffffffffffffff // /usr/include/machine/limits.h:56:1:
+ LONG_MIN = -9223372036854775808 // /usr/include/machine/limits.h:57:1:
+ LOOKASIDE_SMALL = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16708:1:
+ L_INCR = 1 // /usr/include/sys/unistd.h:185:1:
+ L_SET = 0 // /usr/include/sys/unistd.h:184:1:
+ L_XTND = 2 // /usr/include/sys/unistd.h:186:1:
+ L_ctermid = 1024 // /usr/include/stdio.h:292:1:
+ L_cuserid = 9 // /usr/include/stdio.h:293:1:
+ L_tmpnam = 1024 // /usr/include/stdio.h:198: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:
+ MADV_DONTNEED = 4 // /usr/include/sys/mman.h:201:1:
+ MADV_FREE = 6 // /usr/include/sys/mman.h:203:1:
+ MADV_NORMAL = 0 // /usr/include/sys/mman.h:197:1:
+ MADV_RANDOM = 1 // /usr/include/sys/mman.h:198:1:
+ MADV_SEQUENTIAL = 2 // /usr/include/sys/mman.h:199:1:
+ MADV_SPACEAVAIL = 5 // /usr/include/sys/mman.h:202:1:
+ MADV_WILLNEED = 3 // /usr/include/sys/mman.h:200:1:
+ MAP_ALIGNMENT_SHIFT = 24 // /usr/include/sys/mman.h:110:1:
+ MAP_ANON = 4096 // /usr/include/sys/mman.h:102:1:
+ MAP_ANONYMOUS = 0x1000 // /usr/include/sys/mman.h:101:1:
+ MAP_FILE = 0x0000 // /usr/include/sys/mman.h:100:1:
+ MAP_FIXED = 0x0010 // /usr/include/sys/mman.h:89:1:
+ MAP_HASSEMAPHORE = 0x0200 // /usr/include/sys/mman.h:93:1:
+ MAP_INHERIT = 0x0080 // /usr/include/sys/mman.h:92:1:
+ MAP_INHERIT_COPY = 1 // /usr/include/sys/mman.h:209:1:
+ MAP_INHERIT_DEFAULT = 1 // /usr/include/sys/mman.h:214:1:
+ MAP_INHERIT_DONATE_COPY = 3 // /usr/include/sys/mman.h:211:1:
+ MAP_INHERIT_NONE = 2 // /usr/include/sys/mman.h:210:1:
+ MAP_INHERIT_SHARE = 0 // /usr/include/sys/mman.h:208:1:
+ MAP_INHERIT_ZERO = 4 // /usr/include/sys/mman.h:213:1:
+ MAP_NORESERVE = 0x0040 // /usr/include/sys/mman.h:91:1:
+ MAP_PRIVATE = 0x0002 // /usr/include/sys/mman.h:82:1:
+ MAP_REMAPDUP = 0x0004 // /usr/include/sys/mman.h:88:1:
+ MAP_RENAME = 0x0020 // /usr/include/sys/mman.h:90:1:
+ MAP_SHARED = 0x0001 // /usr/include/sys/mman.h:81:1:
+ MAP_STACK = 0x2000 // /usr/include/sys/mman.h:103:1:
+ MAP_TRYFIXED = 0x0400 // /usr/include/sys/mman.h:94:1:
+ MAP_WIRED = 0x0800 // /usr/include/sys/mman.h:95:1:
+ MAX_CANON = 255 // /usr/include/sys/syslimits.h:51:1:
+ MAX_INPUT = 255 // /usr/include/sys/syslimits.h:52:1:
+ MAX_PATHNAME = 512 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34962:1:
+ MAX_SECTOR_SIZE = 0x10000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53632:1:
+ MB_LEN_MAX = 32 // /usr/include/limits.h:145:1:
+ MCL_CURRENT = 0x01 // /usr/include/sys/mman.h:179:1:
+ MCL_FUTURE = 0x02 // /usr/include/sys/mman.h:180: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:
+ MSVC_VERSION = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225:1:
+ MS_ASYNC = 0x01 // /usr/include/sys/mman.h:172:1:
+ MS_INVALIDATE = 0x02 // /usr/include/sys/mman.h:173:1:
+ MS_SYNC = 0x04 // /usr/include/sys/mman.h:174:1:
+ M_1_PI = 0.31830988618379067154 // /usr/include/math.h:150:1:
+ M_2_PI = 0.63661977236758134308 // /usr/include/math.h:151:1:
+ M_2_SQRTPI = 1.12837916709551257390 // /usr/include/math.h:152:1:
+ M_E = 2.7182818284590452354 // /usr/include/math.h:142:1:
+ M_LN10 = 2.30258509299404568402 // /usr/include/math.h:146:1:
+ M_LN2 = 0.69314718055994530942 // /usr/include/math.h:145:1:
+ M_LOG10E = 0.43429448190325182765 // /usr/include/math.h:144:1:
+ M_LOG2E = 1.4426950408889634074 // /usr/include/math.h:143:1:
+ M_PI = 3.14159265358979323846 // /usr/include/math.h:147:1:
+ M_PI_2 = 1.57079632679489661923 // /usr/include/math.h:148:1:
+ M_PI_4 = 0.78539816339744830962 // /usr/include/math.h:149:1:
+ M_SQRT1_2 = 0.70710678118654752440 // /usr/include/math.h:154:1:
+ M_SQRT2 = 1.41421356237309504880 // /usr/include/math.h:153:1:
+ NAME_MAX = 511 // /usr/include/sys/syslimits.h:53:1:
+ NB = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:73163:1:
+ NBBY = 8 // /usr/include/sys/types.h:316: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:
+ NDEBUG = 1 // <defines>:2:1:
+ NFDBITS = 32 // /usr/include/sys/fd_set.h:93:1:
+ NGROUPS_MAX = 16 // /usr/include/sys/syslimits.h:55:1:
+ NL_ARGMAX = 9 // /usr/include/limits.h:126:1:
+ NL_LANGMAX = 14 // /usr/include/limits.h:127:1:
+ NL_MSGMAX = 32767 // /usr/include/limits.h:128:1:
+ NL_NMAX = 1 // /usr/include/limits.h:129:1:
+ NL_SETMAX = 255 // /usr/include/limits.h:130:1:
+ NL_TEXTMAX = 2048 // /usr/include/limits.h:131:1:
+ NN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:73162:1:
+ NODEVMAJOR = -1 // /usr/include/sys/types.h:258:1:
+ NOT_WITHIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10801:1:
+ NO_LOCK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16319:1:
+ NZERO = 20 // /usr/include/sys/syslimits.h:85: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:
+ OPEN_MAX = 128 // /usr/include/sys/syslimits.h:58: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:
+ OVERFLOW = 3 // /usr/include/math.h:201:1:
+ O_ACCMODE = 0x00000003 // /usr/include/fcntl.h:67:1:
+ O_ALT_IO = 0x00040000 // /usr/include/fcntl.h:111:1:
+ O_APPEND = 0x00000008 // /usr/include/fcntl.h:82:1:
+ O_ASYNC = 0x00000040 // /usr/include/fcntl.h:86:1:
+ O_BINARY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35099:1:
+ O_CLOEXEC = 0x00400000 // /usr/include/fcntl.h:116:1:
+ O_CREAT = 0x00000200 // /usr/include/fcntl.h:97:1:
+ O_DIRECT = 0x00080000 // /usr/include/fcntl.h:112:1:
+ O_DIRECTORY = 0x00200000 // /usr/include/fcntl.h:115:1:
+ O_DSYNC = 0x00010000 // /usr/include/fcntl.h:106:1:
+ O_EXCL = 0x00000800 // /usr/include/fcntl.h:99:1:
+ O_EXLOCK = 0x00000020 // /usr/include/fcntl.h:85:1:
+ O_FSYNC = 128 // /usr/include/fcntl.h:158:1:
+ O_LARGEFILE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35089:1:
+ O_NDELAY = 4 // /usr/include/fcntl.h:160:1:
+ O_NOCTTY = 0x00008000 // /usr/include/fcntl.h:102:1:
+ O_NOFOLLOW = 0x00000100 // /usr/include/fcntl.h:94:1:
+ O_NONBLOCK = 0x00000004 // /usr/include/fcntl.h:81:1:
+ O_NOSIGPIPE = 0x01000000 // /usr/include/fcntl.h:122:1:
+ O_RDONLY = 0x00000000 // /usr/include/fcntl.h:64:1:
+ O_RDWR = 0x00000002 // /usr/include/fcntl.h:66:1:
+ O_REGULAR = 0x02000000 // /usr/include/fcntl.h:123:1:
+ O_RSYNC = 0x00020000 // /usr/include/fcntl.h:107:1:
+ O_SEARCH = 0x00800000 // /usr/include/fcntl.h:119:1:
+ O_SHLOCK = 0x00000010 // /usr/include/fcntl.h:84:1:
+ O_SYNC = 0x00000080 // /usr/include/fcntl.h:91:1:
+ O_TRUNC = 0x00000400 // /usr/include/fcntl.h:98:1:
+ O_WRONLY = 0x00000001 // /usr/include/fcntl.h:65: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:
+ PASS_MAX = 128 // /usr/include/limits.h:123:1:
+ PATH_MAX = 1024 // /usr/include/sys/syslimits.h:60: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:
+ PDP_ENDIAN = 3412 // /usr/include/sys/endian.h:102: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:
+ PIPE_BUF = 512 // /usr/include/sys/syslimits.h:61:1:
+ PLOSS = 6 // /usr/include/math.h:204:1:
+ POSIX_FADV_DONTNEED = 4 // /usr/include/fcntl.h:288:1:
+ POSIX_FADV_NOREUSE = 5 // /usr/include/fcntl.h:289:1:
+ POSIX_FADV_NORMAL = 0 // /usr/include/fcntl.h:284:1:
+ POSIX_FADV_RANDOM = 1 // /usr/include/fcntl.h:285:1:
+ POSIX_FADV_SEQUENTIAL = 2 // /usr/include/fcntl.h:286:1:
+ POSIX_FADV_WILLNEED = 3 // /usr/include/fcntl.h:287:1:
+ POSIX_MADV_DONTNEED = 4 // /usr/include/sys/mman.h:190:1:
+ POSIX_MADV_NORMAL = 0 // /usr/include/sys/mman.h:186:1:
+ POSIX_MADV_RANDOM = 1 // /usr/include/sys/mman.h:187:1:
+ POSIX_MADV_SEQUENTIAL = 2 // /usr/include/sys/mman.h:188:1:
+ POSIX_MADV_WILLNEED = 3 // /usr/include/sys/mman.h:189:1:
+ PPPDISC = 5 // /usr/include/sys/ttycom.h:175: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:
+ PROT_EXEC = 0x04 // /usr/include/sys/mman.h:65:1:
+ PROT_NONE = 0x00 // /usr/include/sys/mman.h:62:1:
+ PROT_READ = 0x01 // /usr/include/sys/mman.h:63:1:
+ PROT_WRITE = 0x02 // /usr/include/sys/mman.h:64: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:
+ PTHREAD_DESTRUCTOR_ITERATIONS = 4 // /usr/include/limits.h:90:1:
+ PTHREAD_KEYS_MAX = 256 // /usr/include/limits.h:91:1:
+ PTHREAD_THREADS_MAX = 64 // /usr/include/limits.h:93:1:
+ PTRDIFF_MAX = 9223372036854775807 // /usr/include/sys/common_int_limits.h:121:1:
+ PTRDIFF_MIN = -9223372036854775808 // /usr/include/sys/common_int_limits.h:120: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:
+ P_tmpdir = "/tmp/" // /usr/include/stdio.h:196: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:
+ QUAD_MAX = 0x7fffffffffffffff // /usr/include/machine/limits.h:75:1:
+ QUAD_MIN = -9223372036854775808 // /usr/include/machine/limits.h:76:1:
+ RANDOM_MAX = 0x7fffffff // /usr/include/stdlib.h:188:1:
+ RAND_MAX = 0x7fffffff // /usr/include/stdlib.h:90: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:
+ RE_DUP_MAX = 255 // /usr/include/sys/syslimits.h:70: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:
+ RTLD_DI_LINKMAP = 3 // /usr/include/dlfcn.h:111:1:
+ RTLD_GLOBAL = 0x100 // /usr/include/dlfcn.h:76:1:
+ RTLD_LAZY = 1 // /usr/include/dlfcn.h:74:1:
+ RTLD_LOCAL = 0x200 // /usr/include/dlfcn.h:77:1:
+ RTLD_NODELETE = 0x01000 // /usr/include/dlfcn.h:78:1:
+ RTLD_NOLOAD = 0x02000 // /usr/include/dlfcn.h:79:1:
+ RTLD_NOW = 2 // /usr/include/dlfcn.h:75: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:
+ R_OK = 0x04 // /usr/include/sys/unistd.h:175: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:
+ SCHAR_MAX = 0x7f // /usr/include/machine/limits.h:44:1:
+ SCHAR_MIN = -128 // /usr/include/machine/limits.h:45:1:
+ SCHEMA_ROOT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14497:1:
+ SEEK_CUR = 1 // /usr/include/sys/unistd.h:179:1:
+ SEEK_END = 2 // /usr/include/sys/unistd.h:180:1:
+ SEEK_SET = 0 // /usr/include/sys/unistd.h:178: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:
+ SF_APPEND = 0x00040000 // /usr/include/sys/stat.h:214:1:
+ SF_ARCHIVED = 0x00010000 // /usr/include/sys/stat.h:212: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_IMMUTABLE = 0x00020000 // /usr/include/sys/stat.h:213:1:
+ SF_IncludeHidden = 0x0020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18585:1:
+ SF_LOG = 0x00400000 // /usr/include/sys/stat.h:217: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_SETTABLE = 0xffff0000 // /usr/include/sys/stat.h:211:1:
+ SF_SNAPINVAL = 0x00800000 // /usr/include/sys/stat.h:218:1:
+ SF_SNAPSHOT = 0x00200000 // /usr/include/sys/stat.h:216: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:
+ SHRT_MAX = 0x7fff // /usr/include/machine/limits.h:48:1:
+ SHRT_MIN = -32768 // /usr/include/machine/limits.h:49:1:
+ SIG_ATOMIC_MAX = 2147483647 // /usr/include/sys/common_int_limits.h:125:1:
+ SIG_ATOMIC_MIN = -2147483648 // /usr/include/sys/common_int_limits.h:124:1:
+ SING = 2 // /usr/include/math.h:200:1:
+ SIZE_MAX = 18446744073709551615 // /usr/include/sys/common_int_limits.h:128:1:
+ SIZE_T_MAX = 18446744073709551615 // /usr/include/machine/limits.h:72:1:
+ SLIPDISC = 4 // /usr/include/sys/ttycom.h:174: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 = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13359:1:
+ SQLITE_ATTACH = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3480:1:
+ SQLITE_AUTH = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:774:1:
+ SQLITE_AUTH_USER = 279 // testdata/sqlite-amalgamation-3380500/sqlite3.c:873:1:
+ SQLITE_AllOpts = 0xffffffff // testdata/sqlite-amalgamation-3380500/sqlite3.c:17036:1:
+ SQLITE_AutoIndex = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16964:1:
+ SQLITE_BIGENDIAN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14334:1:
+ SQLITE_BIG_DBL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14049:1:
+ SQLITE_BLDF1_INDEXED = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147295:1:
+ SQLITE_BLDF1_UNIQUE = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147296:1:
+ SQLITE_BLDF2_2NDPASS = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147298:1:
+ SQLITE_BLOB = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5180:1:
+ SQLITE_BTREE_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14936:1:
+ SQLITE_BUSY = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:756:1:
+ SQLITE_BUSY_RECOVERY = 261 // testdata/sqlite-amalgamation-3380500/sqlite3.c:839:1:
+ SQLITE_BUSY_SNAPSHOT = 517 // testdata/sqlite-amalgamation-3380500/sqlite3.c:840:1:
+ SQLITE_BUSY_TIMEOUT = 773 // testdata/sqlite-amalgamation-3380500/sqlite3.c:841:1:
+ SQLITE_BYTEORDER = 1234 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14321:1:
+ SQLITE_BalancedMerge = 0x00200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17035:1:
+ SQLITE_BloomFilter = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17033:1:
+ SQLITE_BloomPulldown = 0x00100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17034:1:
+ SQLITE_CALLBACK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:393:1:
+ SQLITE_CANTOPEN = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:765:1:
+ SQLITE_CANTOPEN_CONVPATH = 1038 // testdata/sqlite-amalgamation-3380500/sqlite3.c:845:1:
+ SQLITE_CANTOPEN_DIRTYWAL = 1294 // testdata/sqlite-amalgamation-3380500/sqlite3.c:846:1:
+ SQLITE_CANTOPEN_FULLPATH = 782 // testdata/sqlite-amalgamation-3380500/sqlite3.c:844:1:
+ SQLITE_CANTOPEN_ISDIR = 526 // testdata/sqlite-amalgamation-3380500/sqlite3.c:843:1:
+ SQLITE_CANTOPEN_NOTEMPDIR = 270 // testdata/sqlite-amalgamation-3380500/sqlite3.c:842:1:
+ SQLITE_CANTOPEN_SYMLINK = 1550 // testdata/sqlite-amalgamation-3380500/sqlite3.c:847:1:
+ SQLITE_CDECL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:384:1:
+ SQLITE_CHANGESETAPPLY_INVERT = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12060:1:
+ SQLITE_CHANGESETAPPLY_NOSAVEPOINT = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12059:1:
+ SQLITE_CHANGESETSTART_INVERT = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:11375:1:
+ SQLITE_CHANGESET_ABORT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12156:1:
+ SQLITE_CHANGESET_CONFLICT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12119:1:
+ SQLITE_CHANGESET_CONSTRAINT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12120:1:
+ SQLITE_CHANGESET_DATA = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12117:1:
+ SQLITE_CHANGESET_FOREIGN_KEY = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12121:1:
+ SQLITE_CHANGESET_NOTFOUND = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12118:1:
+ SQLITE_CHANGESET_OMIT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12154:1:
+ SQLITE_CHANGESET_REPLACE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12155:1:
+ SQLITE_CHECKPOINT_FULL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9692:1:
+ SQLITE_CHECKPOINT_PASSIVE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9691:1:
+ SQLITE_CHECKPOINT_RESTART = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9693:1:
+ SQLITE_CHECKPOINT_TRUNCATE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9694:1:
+ SQLITE_CONFIG_COVERING_INDEX_SCAN = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2413:1:
+ SQLITE_CONFIG_GETMALLOC = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2398:1:
+ SQLITE_CONFIG_GETMUTEX = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2404:1:
+ SQLITE_CONFIG_GETPCACHE = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2408:1:
+ SQLITE_CONFIG_GETPCACHE2 = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2412:1:
+ SQLITE_CONFIG_HEAP = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2401:1:
+ SQLITE_CONFIG_LOG = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2409:1:
+ SQLITE_CONFIG_LOOKASIDE = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2406:1:
+ SQLITE_CONFIG_MALLOC = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2397:1:
+ SQLITE_CONFIG_MEMDB_MAXSIZE = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2422:1:
+ SQLITE_CONFIG_MEMSTATUS = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2402:1:
+ SQLITE_CONFIG_MMAP_SIZE = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2415:1:
+ SQLITE_CONFIG_MULTITHREAD = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2395:1:
+ SQLITE_CONFIG_MUTEX = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2403:1:
+ SQLITE_CONFIG_PAGECACHE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2400:1:
+ SQLITE_CONFIG_PCACHE = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2407:1:
+ SQLITE_CONFIG_PCACHE2 = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2411:1:
+ SQLITE_CONFIG_PCACHE_HDRSZ = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2417:1:
+ SQLITE_CONFIG_PMASZ = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2418:1:
+ SQLITE_CONFIG_SCRATCH = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2399:1:
+ SQLITE_CONFIG_SERIALIZED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2396:1:
+ SQLITE_CONFIG_SINGLETHREAD = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2394:1:
+ SQLITE_CONFIG_SMALL_MALLOC = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2420:1:
+ SQLITE_CONFIG_SORTERREF_SIZE = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2421:1:
+ SQLITE_CONFIG_SQLLOG = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2414:1:
+ SQLITE_CONFIG_STMTJRNL_SPILL = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2419:1:
+ SQLITE_CONFIG_URI = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2410:1:
+ SQLITE_CONFIG_WIN32_HEAPSIZE = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2416:1:
+ SQLITE_CONSTRAINT = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:770:1:
+ SQLITE_CONSTRAINT_CHECK = 275 // testdata/sqlite-amalgamation-3380500/sqlite3.c:858:1:
+ SQLITE_CONSTRAINT_COMMITHOOK = 531 // testdata/sqlite-amalgamation-3380500/sqlite3.c:859:1:
+ SQLITE_CONSTRAINT_DATATYPE = 3091 // testdata/sqlite-amalgamation-3380500/sqlite3.c:869:1:
+ SQLITE_CONSTRAINT_FOREIGNKEY = 787 // testdata/sqlite-amalgamation-3380500/sqlite3.c:860:1:
+ SQLITE_CONSTRAINT_FUNCTION = 1043 // testdata/sqlite-amalgamation-3380500/sqlite3.c:861:1:
+ SQLITE_CONSTRAINT_NOTNULL = 1299 // testdata/sqlite-amalgamation-3380500/sqlite3.c:862:1:
+ SQLITE_CONSTRAINT_PINNED = 2835 // testdata/sqlite-amalgamation-3380500/sqlite3.c:868:1:
+ SQLITE_CONSTRAINT_PRIMARYKEY = 1555 // testdata/sqlite-amalgamation-3380500/sqlite3.c:863:1:
+ SQLITE_CONSTRAINT_ROWID = 2579 // testdata/sqlite-amalgamation-3380500/sqlite3.c:867:1:
+ SQLITE_CONSTRAINT_TRIGGER = 1811 // testdata/sqlite-amalgamation-3380500/sqlite3.c:864:1:
+ SQLITE_CONSTRAINT_UNIQUE = 2067 // testdata/sqlite-amalgamation-3380500/sqlite3.c:865:1:
+ SQLITE_CONSTRAINT_VTAB = 2323 // testdata/sqlite-amalgamation-3380500/sqlite3.c:866:1:
+ SQLITE_COPY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3489:1:
+ SQLITE_CORE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20:1:
+ SQLITE_CORRUPT = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:762:1:
+ SQLITE_CORRUPT_INDEX = 779 // testdata/sqlite-amalgamation-3380500/sqlite3.c:850:1:
+ SQLITE_CORRUPT_SEQUENCE = 523 // testdata/sqlite-amalgamation-3380500/sqlite3.c:849:1:
+ SQLITE_CORRUPT_VTAB = 267 // testdata/sqlite-amalgamation-3380500/sqlite3.c:848:1:
+ SQLITE_CREATE_INDEX = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3457:1:
+ SQLITE_CREATE_TABLE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3458:1:
+ SQLITE_CREATE_TEMP_INDEX = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3459:1:
+ SQLITE_CREATE_TEMP_TABLE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3460:1:
+ SQLITE_CREATE_TEMP_TRIGGER = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3461:1:
+ SQLITE_CREATE_TEMP_VIEW = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3462:1:
+ SQLITE_CREATE_TRIGGER = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3463:1:
+ SQLITE_CREATE_VIEW = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3464:1:
+ SQLITE_CREATE_VTABLE = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3485:1:
+ SQLITE_CacheSpill = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16952:1:
+ SQLITE_CellSizeCk = 0x00200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16970:1:
+ SQLITE_CkptFullFSync = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16951:1:
+ SQLITE_CountOfView = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17021:1:
+ SQLITE_CoverIdxScan = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17017:1:
+ SQLITE_CursorHints = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17022:1:
+ SQLITE_DBCONFIG_DEFENSIVE = 1010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2715:1:
+ SQLITE_DBCONFIG_DQS_DDL = 1014 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2719:1:
+ SQLITE_DBCONFIG_DQS_DML = 1013 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2718:1:
+ SQLITE_DBCONFIG_ENABLE_FKEY = 1002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2707:1:
+ SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2709:1:
+ SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2710:1:
+ SQLITE_DBCONFIG_ENABLE_QPSG = 1007 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2712:1:
+ SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2708:1:
+ SQLITE_DBCONFIG_ENABLE_VIEW = 1015 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2720:1:
+ SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2717:1:
+ SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2721:1:
+ SQLITE_DBCONFIG_LOOKASIDE = 1001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2706:1:
+ SQLITE_DBCONFIG_MAINDBNAME = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2705:1:
+ SQLITE_DBCONFIG_MAX = 1017 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2723:1:
+ SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2711:1:
+ SQLITE_DBCONFIG_RESET_DATABASE = 1009 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2714:1:
+ SQLITE_DBCONFIG_TRIGGER_EQP = 1008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2713:1:
+ SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2722:1:
+ SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2716:1:
+ SQLITE_DBSTATUS_CACHE_HIT = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8746:1:
+ SQLITE_DBSTATUS_CACHE_MISS = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8747:1:
+ SQLITE_DBSTATUS_CACHE_SPILL = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8751:1:
+ SQLITE_DBSTATUS_CACHE_USED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8740:1:
+ SQLITE_DBSTATUS_CACHE_USED_SHARED = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8750:1:
+ SQLITE_DBSTATUS_CACHE_WRITE = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8748:1:
+ SQLITE_DBSTATUS_DEFERRED_FKS = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8749:1:
+ SQLITE_DBSTATUS_LOOKASIDE_HIT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8743:1:
+ SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8745:1:
+ SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8744:1:
+ SQLITE_DBSTATUS_LOOKASIDE_USED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8739:1:
+ SQLITE_DBSTATUS_MAX = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8752:1:
+ SQLITE_DBSTATUS_SCHEMA_USED = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8741:1:
+ SQLITE_DBSTATUS_STMT_USED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8742:1:
+ SQLITE_DEFAULT_AUTOVACUUM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14948:3:
+ SQLITE_DEFAULT_CACHE_SIZE = -2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13233:1:
+ SQLITE_DEFAULT_FILE_FORMAT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14071:1:
+ SQLITE_DEFAULT_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:
+ SQLITE_ENABLE_COLUMN_METADATA = 1 // <defines>:6:1:
+ SQLITE_ENABLE_FTS5 = 1 // <defines>:7:1:
+ SQLITE_ENABLE_GEOPOLY = 1 // <defines>:8:1:
+ SQLITE_ENABLE_LOCKING_STYLE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34853:1:
+ SQLITE_ENABLE_MATH_FUNCTIONS = 1 // <defines>:9:1:
+ SQLITE_ENABLE_MEMORY_MANAGEMENT = 1 // <defines>:10:1:
+ SQLITE_ENABLE_OFFSET_SQL_FUNC = 1 // <defines>:11:1:
+ SQLITE_ENABLE_PREUPDATE_HOOK = 1 // <defines>:12:1:
+ SQLITE_ENABLE_RBU = 1 // <defines>:13:1:
+ SQLITE_ENABLE_RTREE = 1 // <defines>:14:1:
+ SQLITE_ENABLE_SESSION = 1 // <defines>:15:1:
+ SQLITE_ENABLE_SNAPSHOT = 1 // <defines>:16:1:
+ SQLITE_ENABLE_STAT4 = 1 // <defines>:17:1:
+ SQLITE_ENABLE_UNLOCK_NOTIFY = 1 // <defines>:18:1:
+ SQLITE_ERROR = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:752:1:
+ SQLITE_ERROR_MISSING_COLLSEQ = 257 // testdata/sqlite-amalgamation-3380500/sqlite3.c:801:1:
+ SQLITE_ERROR_RETRY = 513 // testdata/sqlite-amalgamation-3380500/sqlite3.c:802:1:
+ SQLITE_ERROR_SNAPSHOT = 769 // testdata/sqlite-amalgamation-3380500/sqlite3.c:803:1:
+ SQLITE_EXPERIMENTAL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:413:1:
+ SQLITE_EXTENSION_INIT1 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:128951:1:
+ SQLITE_EXTENSION_INIT3 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:128953:1:
+ SQLITE_EnableQPSG = 0x00800000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16972:1:
+ SQLITE_EnableTrigger = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16967:1:
+ SQLITE_EnableView = 0x80000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16980:1:
+ SQLITE_FAIL = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10099:1:
+ SQLITE_FAULTINJECTOR_COUNT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20464:1:
+ SQLITE_FAULTINJECTOR_MALLOC = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20463:1:
+ SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1522:1:
+ SQLITE_FCNTL_BUSYHANDLER = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1507:1:
+ SQLITE_FCNTL_CHUNK_SIZE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1498:1:
+ SQLITE_FCNTL_CKPT_DONE = 37 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1528:1:
+ SQLITE_FCNTL_CKPT_START = 39 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1530:1:
+ SQLITE_FCNTL_CKSM_FILE = 41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1532:1:
+ SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1523:1:
+ SQLITE_FCNTL_COMMIT_PHASETWO = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1513:1:
+ SQLITE_FCNTL_DATA_VERSION = 35 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1526:1:
+ SQLITE_FCNTL_DB_UNCHANGED = 0xca093fa0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16408:1:
+ SQLITE_FCNTL_EXTERNAL_READER = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1531:1:
+ SQLITE_FCNTL_FILE_POINTER = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1499:1:
+ SQLITE_FCNTL_GET_LOCKPROXYFILE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1494:1:
+ SQLITE_FCNTL_HAS_MOVED = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1511:1:
+ SQLITE_FCNTL_JOURNAL_POINTER = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1519:1:
+ SQLITE_FCNTL_LAST_ERRNO = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1496:1:
+ SQLITE_FCNTL_LOCKSTATE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1493:1:
+ SQLITE_FCNTL_LOCK_TIMEOUT = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1525:1:
+ SQLITE_FCNTL_MMAP_SIZE = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1509:1:
+ SQLITE_FCNTL_OVERWRITE = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1503:1:
+ SQLITE_FCNTL_PDB = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1521:1:
+ SQLITE_FCNTL_PERSIST_WAL = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1502:1:
+ SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1505:1:
+ SQLITE_FCNTL_PRAGMA = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1506:1:
+ SQLITE_FCNTL_RBU = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1517:1:
+ SQLITE_FCNTL_RBUCNT = 5149216 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203972:1:
+ SQLITE_FCNTL_RESERVE_BYTES = 38 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1529:1:
+ SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1524:1:
+ SQLITE_FCNTL_SET_LOCKPROXYFILE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1495:1:
+ SQLITE_FCNTL_SIZE_HINT = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1497:1:
+ SQLITE_FCNTL_SIZE_LIMIT = 36 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1527:1:
+ SQLITE_FCNTL_SYNC = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1512:1:
+ SQLITE_FCNTL_SYNC_OMITTED = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1500:1:
+ SQLITE_FCNTL_TEMPFILENAME = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1508:1:
+ SQLITE_FCNTL_TRACE = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1510:1:
+ SQLITE_FCNTL_VFSNAME = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1504:1:
+ SQLITE_FCNTL_VFS_POINTER = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1518:1:
+ SQLITE_FCNTL_WAL_BLOCK = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1515:1:
+ SQLITE_FCNTL_WIN32_AV_RETRY = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1501:1:
+ SQLITE_FCNTL_WIN32_GET_HANDLE = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1520:1:
+ SQLITE_FCNTL_WIN32_SET_HANDLE = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1514:1:
+ SQLITE_FCNTL_ZIPVFS = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1516:1:
+ SQLITE_FILE_HEADER = "SQLite format 3" // testdata/sqlite-amalgamation-3380500/sqlite3.c:65379:1:
+ SQLITE_FLOAT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5179:1:
+ SQLITE_FORMAT = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:775:1:
+ SQLITE_FP_PRECISION_LIMIT = 100000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29635:1:
+ SQLITE_FRAME_MAGIC = 0x879fb71e // testdata/sqlite-amalgamation-3380500/sqlite3.c:22219:1:
+ SQLITE_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_LIKE_DOESNT_MATCH_BLOBS = 1 // <defines>:19:1:
+ SQLITE_LIMIT_ATTACHED = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4314:1:
+ SQLITE_LIMIT_COLUMN = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4309:1:
+ SQLITE_LIMIT_COMPOUND_SELECT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4311:1:
+ SQLITE_LIMIT_EXPR_DEPTH = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4310:1:
+ SQLITE_LIMIT_FUNCTION_ARG = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4313:1:
+ SQLITE_LIMIT_LENGTH = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4307:1:
+ SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4315:1:
+ SQLITE_LIMIT_SQL_LENGTH = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4308:1:
+ SQLITE_LIMIT_TRIGGER_DEPTH = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4317:1:
+ SQLITE_LIMIT_VARIABLE_NUMBER = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4316:1:
+ SQLITE_LIMIT_VDBE_OP = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4312:1:
+ SQLITE_LIMIT_WORKER_THREADS = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4318:1:
+ SQLITE_LITTLEENDIAN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14335:1:
+ SQLITE_LOCKED = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:757:1:
+ SQLITE_LOCKED_SHAREDCACHE = 262 // testdata/sqlite-amalgamation-3380500/sqlite3.c:837:1:
+ SQLITE_LOCKED_VTAB = 518 // testdata/sqlite-amalgamation-3380500/sqlite3.c:838:1:
+ SQLITE_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:14406: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_MUTEX_APPDEF = 1 // <defines>:20:1:
+ SQLITE_MUTEX_FAST = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8167:1:
+ SQLITE_MUTEX_NOOP = 1 // <defines>:21:1:
+ SQLITE_MUTEX_RECURSIVE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8168:1:
+ SQLITE_MUTEX_STATIC_APP1 = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8177:1:
+ SQLITE_MUTEX_STATIC_APP2 = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8178:1:
+ SQLITE_MUTEX_STATIC_APP3 = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8179:1:
+ SQLITE_MUTEX_STATIC_LRU = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8174:1:
+ SQLITE_MUTEX_STATIC_LRU2 = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8175:1:
+ SQLITE_MUTEX_STATIC_MAIN = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8169:1:
+ SQLITE_MUTEX_STATIC_MASTER = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8185:1:
+ SQLITE_MUTEX_STATIC_MEM = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8170:1:
+ SQLITE_MUTEX_STATIC_MEM2 = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8171:1:
+ SQLITE_MUTEX_STATIC_OPEN = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8172:1:
+ SQLITE_MUTEX_STATIC_PMEM = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8176:1:
+ SQLITE_MUTEX_STATIC_PRNG = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8173:1:
+ SQLITE_MUTEX_STATIC_VFS1 = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8180:1:
+ SQLITE_MUTEX_STATIC_VFS2 = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8181:1:
+ SQLITE_MUTEX_STATIC_VFS3 = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8182:1:
+ SQLITE_MX_JUMP_OPCODE = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15737:1:
+ SQLITE_MinMaxOpt = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17029:1:
+ SQLITE_NOLFS = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:773:1:
+ SQLITE_NOMATCH = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:121758:1:
+ SQLITE_NOMEM = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:758:1:
+ SQLITE_NOMEM_BKPT = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19481:1:
+ SQLITE_NOTADB = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:777:1:
+ SQLITE_NOTFOUND = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:763:1:
+ SQLITE_NOTICE = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:778:1:
+ SQLITE_NOTICE_RECOVER_ROLLBACK = 539 // testdata/sqlite-amalgamation-3380500/sqlite3.c:871:1:
+ SQLITE_NOTICE_RECOVER_WAL = 283 // testdata/sqlite-amalgamation-3380500/sqlite3.c:870:1:
+ SQLITE_NOTNULL = 0x90 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17448:1:
+ SQLITE_NOWILDCARDMATCH = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:121759:1:
+ SQLITE_NO_TSAN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61740:1:
+ SQLITE_NTUNE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19138:1:
+ SQLITE_NULL = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5181:1:
+ SQLITE_NULLEQ = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17447:1:
+ SQLITE_N_BTREE_META = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14941:1:
+ SQLITE_N_KEYWORD = 147 // testdata/sqlite-amalgamation-3380500/sqlite3.c:167420:1:
+ SQLITE_N_LIMIT = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16631:1:
+ SQLITE_N_STDTYPE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17362:1:
+ SQLITE_NoCkptOnClose = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16960:1:
+ SQLITE_NoSchemaError = 0x08000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16976:1:
+ SQLITE_NullCallback = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16956:1:
+ SQLITE_OK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:750:1:
+ SQLITE_OK_LOAD_PERMANENTLY = 256 // testdata/sqlite-amalgamation-3380500/sqlite3.c:874:1:
+ SQLITE_OK_SYMLINK = 512 // testdata/sqlite-amalgamation-3380500/sqlite3.c:875:1:
+ SQLITE_OPEN_AUTOPROXY = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:902:1:
+ SQLITE_OPEN_CREATE = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:899:1:
+ SQLITE_OPEN_DELETEONCLOSE = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:900:1:
+ SQLITE_OPEN_EXCLUSIVE = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:901:1:
+ SQLITE_OPEN_EXRESCODE = 0x02000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:918:1:
+ SQLITE_OPEN_FULLMUTEX = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:913:1:
+ SQLITE_OPEN_MAIN_DB = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:905:1:
+ SQLITE_OPEN_MAIN_JOURNAL = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:908:1:
+ SQLITE_OPEN_MASTER_JOURNAL = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:922:1:
+ SQLITE_OPEN_MEMORY = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:904:1:
+ SQLITE_OPEN_NOFOLLOW = 0x01000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:917:1:
+ SQLITE_OPEN_NOMUTEX = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:912:1:
+ SQLITE_OPEN_PRIVATECACHE = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:915:1:
+ SQLITE_OPEN_READONLY = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:897:1:
+ SQLITE_OPEN_READWRITE = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:898:1:
+ SQLITE_OPEN_SHAREDCACHE = 0x00020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:914:1:
+ SQLITE_OPEN_SUBJOURNAL = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:910:1:
+ SQLITE_OPEN_SUPER_JOURNAL = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:911:1:
+ SQLITE_OPEN_TEMP_DB = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:906:1:
+ SQLITE_OPEN_TEMP_JOURNAL = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:909:1:
+ SQLITE_OPEN_TRANSIENT_DB = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:907:1:
+ SQLITE_OPEN_URI = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:903:1:
+ SQLITE_OPEN_WAL = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:916:1:
+ SQLITE_OS_SETUP_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16212:1:
+ SQLITE_OS_UNIX = 1 // <defines>: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_PRIVATE = 0 // <defines>:1:1:
+ SQLITE_PROTOCOL = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:766:1:
+ SQLITE_PTRSIZE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14275:1:
+ SQLITE_PropagateConst = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17028:1:
+ SQLITE_PushDown = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17025:1:
+ SQLITE_QUERY_PLANNER_LIMIT = 20000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147314:1:
+ SQLITE_QUERY_PLANNER_LIMIT_INCR = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147317:1:
+ SQLITE_QueryFlattener = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17012:1:
+ SQLITE_QueryOnly = 0x00100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16969:1:
+ SQLITE_RANGE = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:776:1:
+ SQLITE_RBU_STATE_CHECKPOINT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203782:1:
+ SQLITE_RBU_STATE_DONE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203783:1:
+ SQLITE_RBU_STATE_ERROR = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203784:1:
+ SQLITE_RBU_STATE_MOVE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203781:1:
+ SQLITE_RBU_STATE_OAL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203780:1:
+ SQLITE_RBU_UPDATE_CACHESIZE = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203856:1:
+ SQLITE_READ = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3476:1:
+ SQLITE_READONLY = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:759:1:
+ SQLITE_READONLY_CANTINIT = 1288 // testdata/sqlite-amalgamation-3380500/sqlite3.c:855:1:
+ SQLITE_READONLY_CANTLOCK = 520 // testdata/sqlite-amalgamation-3380500/sqlite3.c:852:1:
+ SQLITE_READONLY_DBMOVED = 1032 // testdata/sqlite-amalgamation-3380500/sqlite3.c:854:1:
+ SQLITE_READONLY_DIRECTORY = 1544 // testdata/sqlite-amalgamation-3380500/sqlite3.c:856:1:
+ SQLITE_READONLY_RECOVERY = 264 // testdata/sqlite-amalgamation-3380500/sqlite3.c:851:1:
+ SQLITE_READONLY_ROLLBACK = 776 // testdata/sqlite-amalgamation-3380500/sqlite3.c:853:1:
+ SQLITE_RECURSIVE = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3490:1:
+ SQLITE_REINDEX = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3483:1:
+ SQLITE_REPLACE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10101:1:
+ SQLITE_ROLLBACK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10097:1:
+ SQLITE_ROW = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:780:1:
+ SQLITE_ReadUncommit = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16959:1:
+ SQLITE_RecTriggers = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16962:1:
+ SQLITE_ResetDatabase = 0x02000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16974:1:
+ SQLITE_ReverseOrder = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16961:1:
+ SQLITE_SAVEPOINT = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3488:1:
+ SQLITE_SCANSTAT_EST = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10152:1:
+ SQLITE_SCANSTAT_EXPLAIN = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10154:1:
+ SQLITE_SCANSTAT_NAME = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10153:1:
+ SQLITE_SCANSTAT_NLOOP = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10150:1:
+ SQLITE_SCANSTAT_NVISIT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10151:1:
+ SQLITE_SCANSTAT_SELECTID = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10155:1:
+ SQLITE_SCHEMA = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:768:1:
+ SQLITE_SELECT = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3477:1:
+ SQLITE_SERIALIZE_NOCOPY = 0x001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10612:1:
+ SQLITE_SESSION_CONFIG_STRMSIZE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12524:1:
+ SQLITE_SESSION_OBJCONFIG_SIZE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10925:1:
+ SQLITE_SET_LOCKPROXYFILE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1536:1:
+ SQLITE_SHM_EXCLUSIVE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1821:1:
+ SQLITE_SHM_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1819:1:
+ SQLITE_SHM_NLOCK = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1831:1:
+ SQLITE_SHM_SHARED = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1820:1:
+ SQLITE_SHM_UNLOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1818:1:
+ SQLITE_SORTER_PMASZ = 250 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21794:1:
+ SQLITE_SOUNDEX = 1 // <defines>:22:1:
+ SQLITE_SOURCE_ID = "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe" // testdata/sqlite-amalgamation-3380500/sqlite3.c:457:1:
+ SQLITE_SO_ASC = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17404:1:
+ SQLITE_SO_DESC = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17405:1:
+ SQLITE_SO_UNDEFINED = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17406:1:
+ SQLITE_STAT4_SAMPLES = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111389:1:
+ SQLITE_STATE_BUSY = 0x6d // testdata/sqlite-amalgamation-3380500/sqlite3.c:17057:1:
+ SQLITE_STATE_CLOSED = 0xce // testdata/sqlite-amalgamation-3380500/sqlite3.c:17055:1:
+ SQLITE_STATE_ERROR = 0xd5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17058:1:
+ SQLITE_STATE_OPEN = 0x76 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17054:1:
+ SQLITE_STATE_SICK = 0xba // testdata/sqlite-amalgamation-3380500/sqlite3.c:17056:1:
+ SQLITE_STATE_ZOMBIE = 0xa7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17059:1:
+ SQLITE_STATUS_MALLOC_COUNT = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8601:1:
+ SQLITE_STATUS_MALLOC_SIZE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8597:1:
+ SQLITE_STATUS_MEMORY_USED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8592:1:
+ SQLITE_STATUS_PAGECACHE_OVERFLOW = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8594:1:
+ SQLITE_STATUS_PAGECACHE_SIZE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8599:1:
+ SQLITE_STATUS_PAGECACHE_USED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8593:1:
+ SQLITE_STATUS_PARSER_STACK = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8598:1:
+ SQLITE_STATUS_SCRATCH_OVERFLOW = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8596:1:
+ SQLITE_STATUS_SCRATCH_SIZE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8600:1:
+ SQLITE_STATUS_SCRATCH_USED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8595:1:
+ SQLITE_STDCALL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:390:1:
+ SQLITE_STMTJRNL_SPILL = 65536 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21806:1:
+ SQLITE_STMTSTATUS_AUTOINDEX = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8848:1:
+ SQLITE_STMTSTATUS_FILTER_HIT = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8853:1:
+ SQLITE_STMTSTATUS_FILTER_MISS = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8852:1:
+ SQLITE_STMTSTATUS_FULLSCAN_STEP = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8846:1:
+ SQLITE_STMTSTATUS_MEMUSED = 99 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8854:1:
+ SQLITE_STMTSTATUS_REPREPARE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8850:1:
+ SQLITE_STMTSTATUS_RUN = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8851:1:
+ SQLITE_STMTSTATUS_SORT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8847:1:
+ SQLITE_STMTSTATUS_VM_STEP = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8849:1:
+ SQLITE_SUBTYPE = 0x000100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5715:1:
+ SQLITE_SYNC_DATAONLY = 0x00010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1015:1:
+ SQLITE_SYNC_FULL = 0x00003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1014:1:
+ SQLITE_SYNC_NORMAL = 0x00002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1013:1:
+ SQLITE_SYSAPI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:396:1:
+ SQLITE_SYSTEM_MALLOC = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13510:1:
+ SQLITE_SeekScan = 0x00020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17030:1:
+ SQLITE_ShortColNames = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16953:1:
+ SQLITE_SimplifyJoin = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17026:1:
+ SQLITE_SkipScan = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17027:1:
+ SQLITE_Stat4 = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17023:1:
+ SQLITE_TCLAPI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:75:1:
+ SQLITE_TEMP_FILE_PREFIX = "etilqs_" // testdata/sqlite-amalgamation-3380500/sqlite3.c:16299:1:
+ SQLITE_TEMP_STORE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14087:1:
+ SQLITE_TESTCTRL_ALWAYS = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8282:1:
+ SQLITE_TESTCTRL_ASSERT = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8281:1:
+ SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8279:1:
+ SQLITE_TESTCTRL_BITVEC_TEST = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8277:1:
+ SQLITE_TESTCTRL_BYTEORDER = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8293:1:
+ SQLITE_TESTCTRL_EXPLAIN_STMT = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8289:1:
+ SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8300:1:
+ SQLITE_TESTCTRL_FAULT_INSTALL = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8278:1:
+ SQLITE_TESTCTRL_FIRST = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8273:1:
+ SQLITE_TESTCTRL_IMPOSTER = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8296:1:
+ SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8287:1:
+ SQLITE_TESTCTRL_ISINIT = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8294:1:
+ SQLITE_TESTCTRL_ISKEYWORD = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8285:1:
+ SQLITE_TESTCTRL_LAST = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8305:1:
+ SQLITE_TESTCTRL_LOCALTIME_FAULT = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8288:1:
+ SQLITE_TESTCTRL_LOGEST = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8304:1:
+ SQLITE_TESTCTRL_NEVER_CORRUPT = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8291:1:
+ SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8290:1:
+ SQLITE_TESTCTRL_OPTIMIZATIONS = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8284:1:
+ SQLITE_TESTCTRL_PARSER_COVERAGE = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8297:1:
+ SQLITE_TESTCTRL_PENDING_BYTE = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8280:1:
+ SQLITE_TESTCTRL_PRNG_RESET = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8276:1:
+ SQLITE_TESTCTRL_PRNG_RESTORE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8275:1:
+ SQLITE_TESTCTRL_PRNG_SAVE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8274:1:
+ SQLITE_TESTCTRL_PRNG_SEED = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8299:1:
+ SQLITE_TESTCTRL_RESERVE = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8283:1:
+ SQLITE_TESTCTRL_RESULT_INTREAL = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8298:1:
+ SQLITE_TESTCTRL_SCRATCHMALLOC = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8286:1:
+ SQLITE_TESTCTRL_SEEK_COUNT = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8301:1:
+ SQLITE_TESTCTRL_SORTER_MMAP = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8295:1:
+ SQLITE_TESTCTRL_TRACEFLAGS = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8302:1:
+ SQLITE_TESTCTRL_TUNE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8303:1:
+ SQLITE_TESTCTRL_VDBE_COVERAGE = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8292:1:
+ SQLITE_TEXT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5185:1:
+ SQLITE_THREADSAFE = 1 // <defines>: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:
+ SSIZE_MAX = 9223372036854775807 // /usr/include/machine/limits.h:68:1:
+ SSIZE_MIN = -9223372036854775808 // /usr/include/machine/limits.h:71: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:
+ STDERR_FILENO = 2 // /usr/include/unistd.h:82:1:
+ STDIN_FILENO = 0 // /usr/include/unistd.h:80:1:
+ STDOUT_FILENO = 1 // /usr/include/unistd.h:81:1:
+ STRIPDISC = 6 // /usr/include/sys/ttycom.h:176:1:
+ S_ARCH1 = 65536 // /usr/include/sys/stat.h:167:1:
+ S_ARCH2 = 131072 // /usr/include/sys/stat.h:168:1:
+ S_BLKSIZE = 512 // /usr/include/sys/stat.h:195:1:
+ S_IEXEC = 64 // /usr/include/sys/stat.h:125:1:
+ S_IFBLK = 24576 // /usr/include/sys/stat.h:156:1:
+ S_IFCHR = 8192 // /usr/include/sys/stat.h:154:1:
+ S_IFDIR = 16384 // /usr/include/sys/stat.h:155:1:
+ S_IFIFO = 4096 // /usr/include/sys/stat.h:153:1:
+ S_IFLNK = 40960 // /usr/include/sys/stat.h:158:1:
+ S_IFMT = 61440 // /usr/include/sys/stat.h:152:1:
+ S_IFREG = 32768 // /usr/include/sys/stat.h:157:1:
+ S_IFSOCK = 49152 // /usr/include/sys/stat.h:162:1:
+ S_IFWHT = 57344 // /usr/include/sys/stat.h:165:1:
+ S_IREAD = 256 // /usr/include/sys/stat.h:123:1:
+ S_IRGRP = 0000040 // /usr/include/sys/stat.h:129:1:
+ S_IROTH = 0000004 // /usr/include/sys/stat.h:134:1:
+ S_IRUSR = 0000400 // /usr/include/sys/stat.h:118:1:
+ S_IRWXG = 0000070 // /usr/include/sys/stat.h:128:1:
+ S_IRWXO = 0000007 // /usr/include/sys/stat.h:133:1:
+ S_IRWXU = 0000700 // /usr/include/sys/stat.h:117:1:
+ S_ISGID = 0002000 // /usr/include/sys/stat.h:112:1:
+ S_ISTXT = 0001000 // /usr/include/sys/stat.h:114:1:
+ S_ISUID = 0004000 // /usr/include/sys/stat.h:111:1:
+ S_ISVTX = 512 // /usr/include/sys/stat.h:159:1:
+ S_IWGRP = 0000020 // /usr/include/sys/stat.h:130:1:
+ S_IWOTH = 0000002 // /usr/include/sys/stat.h:135:1:
+ S_IWRITE = 128 // /usr/include/sys/stat.h:124:1:
+ S_IWUSR = 0000200 // /usr/include/sys/stat.h:119:1:
+ S_IXGRP = 0000010 // /usr/include/sys/stat.h:131:1:
+ S_IXOTH = 0000001 // /usr/include/sys/stat.h:136:1:
+ S_IXUSR = 0000100 // /usr/include/sys/stat.h:120:1:
+ TABLDISC = 3 // /usr/include/sys/ttycom.h:173: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:
+ TIMER_ABSTIME = 0x1 // /usr/include/sys/time.h:304:1:
+ TIMER_END = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20757:1:
+ TIMER_RELTIME = 0x0 // /usr/include/sys/time.h:302:1:
+ TIMER_START = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20756:1:
+ TIME_UTC = 1 // /usr/include/time.h:238:1:
+ TIOCFLAG_CDTRCTS = 0x10 // /usr/include/sys/ttycom.h:158:1:
+ TIOCFLAG_CLOCAL = 0x02 // /usr/include/sys/ttycom.h:155:1:
+ TIOCFLAG_CRTSCTS = 0x04 // /usr/include/sys/ttycom.h:156:1:
+ TIOCFLAG_MDMBUF = 0x08 // /usr/include/sys/ttycom.h:157:1:
+ TIOCFLAG_SOFTCAR = 0x01 // /usr/include/sys/ttycom.h:154:1:
+ TIOCM_CAR = 0100 // /usr/include/sys/ttycom.h:89:1:
+ TIOCM_CD = 64 // /usr/include/sys/ttycom.h:90:1:
+ TIOCM_CTS = 0040 // /usr/include/sys/ttycom.h:88:1:
+ TIOCM_DSR = 0400 // /usr/include/sys/ttycom.h:93:1:
+ TIOCM_DTR = 0002 // /usr/include/sys/ttycom.h:84:1:
+ TIOCM_LE = 0001 // /usr/include/sys/ttycom.h:83:1:
+ TIOCM_RI = 128 // /usr/include/sys/ttycom.h:92:1:
+ TIOCM_RNG = 0200 // /usr/include/sys/ttycom.h:91:1:
+ TIOCM_RTS = 0004 // /usr/include/sys/ttycom.h:85:1:
+ TIOCM_SR = 0020 // /usr/include/sys/ttycom.h:87:1:
+ TIOCM_ST = 0010 // /usr/include/sys/ttycom.h:86:1:
+ TIOCPKT_DATA = 0x00 // /usr/include/sys/ttycom.h:126:1:
+ TIOCPKT_DOSTOP = 0x20 // /usr/include/sys/ttycom.h:132:1:
+ TIOCPKT_FLUSHREAD = 0x01 // /usr/include/sys/ttycom.h:127:1:
+ TIOCPKT_FLUSHWRITE = 0x02 // /usr/include/sys/ttycom.h:128:1:
+ TIOCPKT_IOCTL = 0x40 // /usr/include/sys/ttycom.h:133:1:
+ TIOCPKT_NOSTOP = 0x10 // /usr/include/sys/ttycom.h:131:1:
+ TIOCPKT_START = 0x08 // /usr/include/sys/ttycom.h:130:1:
+ TIOCPKT_STOP = 0x04 // /usr/include/sys/ttycom.h:129: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:
+ TLOSS = 5 // /usr/include/math.h:203:1:
+ TMP_MAX = 308915776 // /usr/include/stdio.h:201: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:
+ TTLINEDNAMELEN = 32 // /usr/include/sys/ttycom.h:110:1:
+ TTYDISC = 0 // /usr/include/sys/ttycom.h:172:1:
+ UCHAR_MAX = 0xff // /usr/include/machine/limits.h:43:1:
+ UF_APPEND = 0x00000004 // /usr/include/sys/stat.h:205:1:
+ UF_IMMUTABLE = 0x00000002 // /usr/include/sys/stat.h:204:1:
+ UF_NODUMP = 0x00000001 // /usr/include/sys/stat.h:203:1:
+ UF_OPAQUE = 0x00000008 // /usr/include/sys/stat.h:206:1:
+ UF_SETTABLE = 0x0000ffff // /usr/include/sys/stat.h:202:1:
+ UID_MAX = 2147483647 // /usr/include/sys/syslimits.h:56:1:
+ UINT16_MAX = 65535 // /usr/include/sys/common_int_limits.h:59:1:
+ UINT32_MAX = 4294967295 // /usr/include/sys/common_int_limits.h:60:1:
+ UINT64_MAX = 18446744073709551615 // /usr/include/sys/common_int_limits.h:61:1:
+ UINT8_MAX = 255 // /usr/include/sys/common_int_limits.h:58:1:
+ UINTMAX_MAX = 18446744073709551615 // /usr/include/sys/common_int_limits.h:112:1:
+ UINTPTR_MAX = 18446744073709551615 // /usr/include/sys/common_int_limits.h:106:1:
+ UINT_FAST16_MAX = 4294967295 // /usr/include/sys/common_int_limits.h:99:1:
+ UINT_FAST32_MAX = 4294967295 // /usr/include/sys/common_int_limits.h:100:1:
+ UINT_FAST64_MAX = 18446744073709551615 // /usr/include/sys/common_int_limits.h:101:1:
+ UINT_FAST8_MAX = 4294967295 // /usr/include/sys/common_int_limits.h:98:1:
+ UINT_LEAST16_MAX = 65535 // /usr/include/sys/common_int_limits.h:79:1:
+ UINT_LEAST32_MAX = 4294967295 // /usr/include/sys/common_int_limits.h:80:1:
+ UINT_LEAST64_MAX = 18446744073709551615 // /usr/include/sys/common_int_limits.h:81:1:
+ UINT_LEAST8_MAX = 255 // /usr/include/sys/common_int_limits.h:78:1:
+ UINT_MAX = 0xffffffff // /usr/include/machine/limits.h:51:1:
+ ULLONG_MAX = 0xffffffffffffffff // /usr/include/machine/limits.h:61:1:
+ ULONG_MAX = 0xffffffffffffffff // /usr/include/machine/limits.h:55:1:
+ UNDERFLOW = 4 // /usr/include/math.h:202: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:
+ UQUAD_MAX = 0xffffffffffffffff // /usr/include/machine/limits.h:74:1:
+ USHRT_MAX = 0xffff // /usr/include/machine/limits.h:47:1:
+ UTIME_NOW = 1073741823 // /usr/include/sys/stat.h:235:1:
+ UTIME_OMIT = 1073741822 // /usr/include/sys/stat.h:236: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:
+ WCHAR_MAX = 0x7fffffff // /usr/include/machine/wchar_limits.h:41:1:
+ WCHAR_MIN = -2147483648 // /usr/include/machine/wchar_limits.h:40: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:
+ WINT_MAX = 0x7fffffff // /usr/include/machine/wchar_limits.h:45:1:
+ WINT_MIN = -2147483648 // /usr/include/machine/wchar_limits.h:44:1:
+ WORD_BIT = 32 // /usr/include/machine/limits.h:83: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:
+ W_OK = 0x02 // /usr/include/sys/unistd.h:174:1:
+ XN_EXPR = -2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17886:1:
+ XN_ROWID = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17885:1:
+ X_OK = 0x01 // /usr/include/sys/unistd.h:173:1:
+ X_TLOSS = 1.41484755040568800000e+16 // /usr/include/math.h:197: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:
+ X_AMD64_BYTE_SWAP_H_ = 0 // /usr/include/machine/byte_swap.h:37:1:
+ X_AMD64_INT_CONST_H_ = 0 // /usr/include/machine/int_const.h:33:1:
+ X_AMD64_INT_LIMITS_H_ = 0 // /usr/include/machine/int_limits.h:33:1:
+ X_AMD64_INT_MWGWTYPES_H_ = 0 // /usr/include/machine/int_mwgwtypes.h:33:1:
+ X_AMD64_INT_TYPES_H_ = 0 // /usr/include/machine/int_types.h:35:1:
+ X_AMD64_WCHAR_LIMITS_H_ = 0 // /usr/include/machine/wchar_limits.h:33:1:
+ X_BIG_ENDIAN = 4321 // /usr/include/sys/endian.h:44:1:
+ X_BSD_INT16_T_ = 0 // /usr/include/sys/types.h:65:1:
+ X_BSD_INT32_T_ = 0 // /usr/include/sys/types.h:75:1:
+ X_BSD_INT64_T_ = 0 // /usr/include/sys/types.h:85:1:
+ X_BSD_INT8_T_ = 0 // /usr/include/sys/types.h:55:1:
+ X_BSD_INTPTR_T_ = 0 // /usr/include/sys/stdint.h:80:1:
+ X_BSD_UINT16_T_ = 0 // /usr/include/sys/types.h:70:1:
+ X_BSD_UINT32_T_ = 0 // /usr/include/sys/types.h:80:1:
+ X_BSD_UINT64_T_ = 0 // /usr/include/sys/types.h:90:1:
+ X_BSD_UINT8_T_ = 0 // /usr/include/sys/types.h:60:1:
+ X_BSD_UINTPTR_T_ = 0 // /usr/include/sys/stdint.h:85:1:
+ X_BYTE_ORDER = 1234 // /usr/include/machine/endian_machdep.h:3:1:
+ X_CS_PATH = 1 // /usr/include/sys/unistd.h:338:1:
+ X_DLFCN_H_ = 0 // /usr/include/dlfcn.h:33:1:
+ X_ERRNO_H_ = 0 // /usr/include/errno.h:40:1:
+ X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
+ X_FP_HIMD = 0xff // /usr/include/math.h:131:1:
+ X_FP_LOMD = 0x80 // /usr/include/math.h:130:1:
+ X_FSTDIO = 0 // /usr/include/stdio.h:72: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_GETGR_R_SIZE_MAX = 1024 // /usr/include/limits.h:134:1:
+ X_GETPW_R_SIZE_MAX = 1024 // /usr/include/limits.h:135:1:
+ X_GNU_SOURCE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:242:1:
+ X_IOFBF = 0 // /usr/include/stdio.h:178:1:
+ X_IOLBF = 1 // /usr/include/stdio.h:179:1:
+ X_IONBF = 2 // /usr/include/stdio.h:180: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_LIB_PTHREAD_TYPES_H = 0 // /usr/include/pthread_types.h:33:1:
+ X_LIMITS_H_ = 0 // /usr/include/limits.h:35:1:
+ X_LITTLE_ENDIAN = 1234 // /usr/include/sys/endian.h:43:1:
+ X_LP64 = 1 // <predefined>:268:1:
+ X_MATH_H_ = 0 // /usr/include/math.h:19:1:
+ X_NETBSD_SOURCE = 1 // /usr/include/sys/featuretest.h:70:1:
+ X_NETBSD_SYS_TTYCOM_H_ = 0 // /usr/include/sys/ttycom.h:65:1:
+ X_OS_COMMON_H_ = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20638:1:
+ X_O_SC_CLK_TCK = 3 // /usr/include/sys/unistd.h:227:1:
+ X_PATH_PTMDEV = "/dev/ptm" // /usr/include/sys/ttycom.h:81:1:
+ X_PC_2_SYMLINKS = 13 // /usr/include/sys/unistd.h:214:1:
+ X_PC_ACL_EXTENDED = 14 // /usr/include/sys/unistd.h:215:1:
+ X_PC_CHOWN_RESTRICTED = 7 // /usr/include/sys/unistd.h:208:1:
+ X_PC_FILESIZEBITS = 11 // /usr/include/sys/unistd.h:212:1:
+ X_PC_LINK_MAX = 1 // /usr/include/sys/unistd.h:202:1:
+ X_PC_MAX_CANON = 2 // /usr/include/sys/unistd.h:203:1:
+ X_PC_MAX_INPUT = 3 // /usr/include/sys/unistd.h:204:1:
+ X_PC_MIN_HOLE_SIZE = 15 // /usr/include/sys/unistd.h:218:1:
+ X_PC_NAME_MAX = 4 // /usr/include/sys/unistd.h:205:1:
+ X_PC_NO_TRUNC = 8 // /usr/include/sys/unistd.h:209:1:
+ X_PC_PATH_MAX = 5 // /usr/include/sys/unistd.h:206:1:
+ X_PC_PIPE_BUF = 6 // /usr/include/sys/unistd.h:207:1:
+ X_PC_SYMLINK_MAX = 12 // /usr/include/sys/unistd.h:213:1:
+ X_PC_SYNC_IO = 10 // /usr/include/sys/unistd.h:211:1:
+ X_PC_VDISABLE = 9 // /usr/include/sys/unistd.h:210:1:
+ X_PDP_ENDIAN = 3412 // /usr/include/sys/endian.h:45:1:
+ X_POSIX2_BC_BASE_MAX = 99 // /usr/include/limits.h:103:1:
+ X_POSIX2_BC_DIM_MAX = 2048 // /usr/include/limits.h:104:1:
+ X_POSIX2_BC_SCALE_MAX = 99 // /usr/include/limits.h:105:1:
+ X_POSIX2_BC_STRING_MAX = 1000 // /usr/include/limits.h:106:1:
+ X_POSIX2_CHARCLASS_NAME_MAX = 14 // /usr/include/limits.h:107:1:
+ X_POSIX2_COLL_WEIGHTS_MAX = 2 // /usr/include/limits.h:108:1:
+ X_POSIX2_C_BIND = 200112 // /usr/include/sys/unistd.h:166:1:
+ X_POSIX2_EXPR_NEST_MAX = 32 // /usr/include/limits.h:109:1:
+ X_POSIX2_LINE_MAX = 2048 // /usr/include/limits.h:110:1:
+ X_POSIX2_RE_DUP_MAX = 255 // /usr/include/limits.h:111:1:
+ X_POSIX2_VERSION = 200112 // /usr/include/sys/unistd.h:63:1:
+ X_POSIX_AIO_LISTIO_MAX = 2 // /usr/include/limits.h:41:1:
+ X_POSIX_AIO_MAX = 1 // /usr/include/limits.h:42:1:
+ X_POSIX_ARG_MAX = 4096 // /usr/include/limits.h:43:1:
+ X_POSIX_ASYNCHRONOUS_IO = 200112 // /usr/include/sys/unistd.h:89:1:
+ X_POSIX_BARRIERS = 200112 // /usr/include/sys/unistd.h:91:1:
+ X_POSIX_CHILD_MAX = 25 // /usr/include/limits.h:44:1:
+ X_POSIX_CHOWN_RESTRICTED = 1 // /usr/include/sys/unistd.h:93:1:
+ X_POSIX_CLOCK_SELECTION = -1 // /usr/include/sys/unistd.h:95:1:
+ X_POSIX_CPUTIME = 200112 // /usr/include/sys/unistd.h:97:1:
+ X_POSIX_DELAYTIMER_MAX = 32 // /usr/include/limits.h:99:1:
+ X_POSIX_FSYNC = 1 // /usr/include/sys/unistd.h:101:1:
+ X_POSIX_HOST_NAME_MAX = 255 // /usr/include/limits.h:45:1:
+ X_POSIX_IPV6 = 0 // /usr/include/sys/unistd.h:103:1:
+ X_POSIX_JOB_CONTROL = 1 // /usr/include/sys/unistd.h:105:1:
+ X_POSIX_LINK_MAX = 8 // /usr/include/limits.h:46:1:
+ X_POSIX_LOGIN_NAME_MAX = 9 // /usr/include/limits.h:47:1:
+ X_POSIX_MAPPED_FILES = 1 // /usr/include/sys/unistd.h:107:1:
+ X_POSIX_MAX_CANON = 255 // /usr/include/limits.h:48:1:
+ X_POSIX_MAX_INPUT = 255 // /usr/include/limits.h:49:1:
+ X_POSIX_MEMLOCK = 1 // /usr/include/sys/unistd.h:109:1:
+ X_POSIX_MEMLOCK_RANGE = 1 // /usr/include/sys/unistd.h:111:1:
+ X_POSIX_MEMORY_PROTECTION = 1 // /usr/include/sys/unistd.h:113:1:
+ X_POSIX_MESSAGE_PASSING = 200112 // /usr/include/sys/unistd.h:115:1:
+ X_POSIX_MONOTONIC_CLOCK = 200112 // /usr/include/sys/unistd.h:117:1:
+ X_POSIX_MQ_OPEN_MAX = 8 // /usr/include/limits.h:50:1:
+ X_POSIX_MQ_PRIO_MAX = 32 // /usr/include/limits.h:51:1:
+ X_POSIX_NAME_MAX = 14 // /usr/include/limits.h:52:1:
+ X_POSIX_NGROUPS_MAX = 8 // /usr/include/limits.h:53:1:
+ X_POSIX_NO_TRUNC = 1 // /usr/include/sys/unistd.h:119:1:
+ X_POSIX_OPEN_MAX = 20 // /usr/include/limits.h:54:1:
+ X_POSIX_PATH_MAX = 256 // /usr/include/limits.h:55:1:
+ X_POSIX_PIPE_BUF = 512 // /usr/include/limits.h:56:1:
+ X_POSIX_PRIORITIZED_IO = -1 // /usr/include/sys/unistd.h:121:1:
+ X_POSIX_PRIORITY_SCHEDULING = 200112 // /usr/include/sys/unistd.h:123:1:
+ X_POSIX_RAW_SOCKETS = 200112 // /usr/include/sys/unistd.h:125:1:
+ X_POSIX_READER_WRITER_LOCKS = 200112 // /usr/include/sys/unistd.h:127:1:
+ X_POSIX_REGEXP = 1 // /usr/include/sys/unistd.h:131:1:
+ X_POSIX_RE_DUP_MAX = 255 // /usr/include/limits.h:57:1:
+ X_POSIX_SEMAPHORES = 0 // /usr/include/sys/unistd.h:133:1:
+ X_POSIX_SEM_NSEMS_MAX = 256 // /usr/include/limits.h:96:1:
+ X_POSIX_SHARED_MEMORY_OBJECTS = 0 // /usr/include/sys/unistd.h:135:1:
+ X_POSIX_SHELL = 1 // /usr/include/sys/unistd.h:137:1:
+ X_POSIX_SIGQUEUE_MAX = 32 // /usr/include/limits.h:97:1:
+ X_POSIX_SPAWN = 200809 // /usr/include/sys/unistd.h:68:1:
+ X_POSIX_SPIN_LOCKS = 200112 // /usr/include/sys/unistd.h:139:1:
+ X_POSIX_SSIZE_MAX = 32767 // /usr/include/limits.h:58:1:
+ X_POSIX_STREAM_MAX = 8 // /usr/include/limits.h:59:1:
+ X_POSIX_SYMLINK_MAX = 255 // /usr/include/limits.h:60:1:
+ X_POSIX_SYMLOOP_MAX = 8 // /usr/include/limits.h:61:1:
+ X_POSIX_SYNCHRONIZED_IO = 1 // /usr/include/sys/unistd.h:143:1:
+ X_POSIX_SYS_TTYCOM_H_ = 0 // /usr/include/sys/ttycom.h:40:1:
+ X_POSIX_THREADS = 200112 // /usr/include/sys/unistd.h:145:1:
+ X_POSIX_THREAD_ATTR_STACKADDR = 200112 // /usr/include/sys/unistd.h:149:1:
+ X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // /usr/include/sys/unistd.h:147:1:
+ X_POSIX_THREAD_CPUTIME = 200112 // /usr/include/sys/unistd.h:151:1:
+ X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // /usr/include/limits.h:81:1:
+ X_POSIX_THREAD_KEYS_MAX = 128 // /usr/include/limits.h:82:1:
+ X_POSIX_THREAD_PRIO_PROTECT = 200112 // /usr/include/sys/unistd.h:153:1:
+ X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // /usr/include/sys/unistd.h:155:1:
+ X_POSIX_THREAD_THREADS_MAX = 64 // /usr/include/limits.h:83:1:
+ X_POSIX_TIMERS = 200112 // /usr/include/sys/unistd.h:159:1:
+ X_POSIX_TIMER_MAX = 32 // /usr/include/limits.h:95:1:
+ X_POSIX_TTY_NAME_MAX = 9 // /usr/include/limits.h:100:1:
+ X_POSIX_TZNAME_MAX = 6 // /usr/include/limits.h:101:1:
+ X_POSIX_VERSION = 200112 // /usr/include/sys/unistd.h:62:1:
+ X_PROPLIB_PLISTREF_H_ = 0 // /usr/include/prop/plistref.h:33:1:
+ X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // /usr/include/pthread_types.h:278:1:
+ X_PT_BARRIERATTR_MAGIC = 0x88880808 // /usr/include/pthread_types.h:277:1:
+ X_PT_BARRIER_DEAD = 0xDEAD0008 // /usr/include/pthread_types.h:270:1:
+ X_PT_BARRIER_MAGIC = 0x88880008 // /usr/include/pthread_types.h:269:1:
+ X_PT_CONDATTR_DEAD = 0xDEAD0006 // /usr/include/pthread_types.h:197:1:
+ X_PT_CONDATTR_MAGIC = 0x66660006 // /usr/include/pthread_types.h:196:1:
+ X_PT_COND_DEAD = 0xDEAD0005 // /usr/include/pthread_types.h:182:1:
+ X_PT_COND_MAGIC = 0x55550005 // /usr/include/pthread_types.h:181:1:
+ X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // /usr/include/pthread_types.h:167:1:
+ X_PT_MUTEXATTR_MAGIC = 0x44440004 // /usr/include/pthread_types.h:166:1:
+ X_PT_MUTEX_DEAD = 0xDEAD0003 // /usr/include/pthread_types.h:139:1:
+ X_PT_MUTEX_MAGIC = 0x33330003 // /usr/include/pthread_types.h:138:1:
+ X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // /usr/include/pthread_types.h:253:1:
+ X_PT_RWLOCKATTR_MAGIC = 0x99990909 // /usr/include/pthread_types.h:252:1:
+ X_PT_RWLOCK_DEAD = 0xDEAD0009 // /usr/include/pthread_types.h:236:1:
+ X_PT_RWLOCK_MAGIC = 0x99990009 // /usr/include/pthread_types.h:235:1:
+ X_PT_SPINLOCK_DEAD = 0xDEAD0007 // /usr/include/pthread_types.h:213:1:
+ X_PT_SPINLOCK_MAGIC = 0x77770007 // /usr/include/pthread_types.h:212:1:
+ X_PT_SPINLOCK_PSHARED = 0x00000001 // /usr/include/pthread_types.h:214:1:
+ X_QUAD_HIGHWORD = 1 // /usr/include/sys/endian.h:84:1:
+ X_QUAD_LOWWORD = 0 // /usr/include/sys/endian.h:85:1:
+ X_REENTRANT = 0 // /usr/include/sys/featuretest.h:75:1:
+ X_SC_2_CHAR_TERM = 20 // /usr/include/sys/unistd.h:244:1:
+ X_SC_2_C_BIND = 18 // /usr/include/sys/unistd.h:242:1:
+ X_SC_2_C_DEV = 19 // /usr/include/sys/unistd.h:243:1:
+ X_SC_2_FORT_DEV = 21 // /usr/include/sys/unistd.h:245:1:
+ X_SC_2_FORT_RUN = 22 // /usr/include/sys/unistd.h:246:1:
+ X_SC_2_LOCALEDEF = 23 // /usr/include/sys/unistd.h:247:1:
+ X_SC_2_PBS = 80 // /usr/include/sys/unistd.h:305:1:
+ X_SC_2_PBS_ACCOUNTING = 81 // /usr/include/sys/unistd.h:306:1:
+ X_SC_2_PBS_CHECKPOINT = 82 // /usr/include/sys/unistd.h:307:1:
+ X_SC_2_PBS_LOCATE = 83 // /usr/include/sys/unistd.h:308:1:
+ X_SC_2_PBS_MESSAGE = 84 // /usr/include/sys/unistd.h:309:1:
+ X_SC_2_PBS_TRACK = 85 // /usr/include/sys/unistd.h:310:1:
+ X_SC_2_SW_DEV = 24 // /usr/include/sys/unistd.h:248:1:
+ X_SC_2_UPE = 25 // /usr/include/sys/unistd.h:249:1:
+ X_SC_2_VERSION = 17 // /usr/include/sys/unistd.h:241:1:
+ X_SC_AIO_LISTIO_MAX = 51 // /usr/include/sys/unistd.h:276:1:
+ X_SC_AIO_MAX = 52 // /usr/include/sys/unistd.h:277:1:
+ X_SC_ARG_MAX = 1 // /usr/include/sys/unistd.h:225:1:
+ X_SC_ASYNCHRONOUS_IO = 50 // /usr/include/sys/unistd.h:275:1:
+ X_SC_ATEXIT_MAX = 40 // /usr/include/sys/unistd.h:265:1:
+ X_SC_BARRIERS = 43 // /usr/include/sys/unistd.h:268:1:
+ X_SC_BC_BASE_MAX = 9 // /usr/include/sys/unistd.h:233:1:
+ X_SC_BC_DIM_MAX = 10 // /usr/include/sys/unistd.h:234:1:
+ X_SC_BC_SCALE_MAX = 11 // /usr/include/sys/unistd.h:235:1:
+ X_SC_BC_STRING_MAX = 12 // /usr/include/sys/unistd.h:236:1:
+ X_SC_CHILD_MAX = 2 // /usr/include/sys/unistd.h:226:1:
+ X_SC_CLK_TCK = 39 // /usr/include/sys/unistd.h:264:1:
+ X_SC_CLOCK_SELECTION = 49 // /usr/include/sys/unistd.h:274:1:
+ X_SC_COLL_WEIGHTS_MAX = 13 // /usr/include/sys/unistd.h:237:1:
+ X_SC_CPUTIME = 90 // /usr/include/sys/unistd.h:318:1:
+ X_SC_DELAYTIMER_MAX = 92 // /usr/include/sys/unistd.h:320:1:
+ X_SC_EXPR_NEST_MAX = 14 // /usr/include/sys/unistd.h:238:1:
+ X_SC_FSYNC = 29 // /usr/include/sys/unistd.h:254:1:
+ X_SC_GETGR_R_SIZE_MAX = 47 // /usr/include/sys/unistd.h:272:1:
+ X_SC_GETPW_R_SIZE_MAX = 48 // /usr/include/sys/unistd.h:273:1:
+ X_SC_HOST_NAME_MAX = 69 // /usr/include/sys/unistd.h:294:1:
+ X_SC_IOV_MAX = 32 // /usr/include/sys/unistd.h:257:1:
+ X_SC_JOB_CONTROL = 6 // /usr/include/sys/unistd.h:230:1:
+ X_SC_LINE_MAX = 15 // /usr/include/sys/unistd.h:239:1:
+ X_SC_LOGIN_NAME_MAX = 37 // /usr/include/sys/unistd.h:262:1:
+ X_SC_MAPPED_FILES = 33 // /usr/include/sys/unistd.h:258:1:
+ X_SC_MEMLOCK = 34 // /usr/include/sys/unistd.h:259:1:
+ X_SC_MEMLOCK_RANGE = 35 // /usr/include/sys/unistd.h:260:1:
+ X_SC_MEMORY_PROTECTION = 36 // /usr/include/sys/unistd.h:261:1:
+ X_SC_MESSAGE_PASSING = 53 // /usr/include/sys/unistd.h:278:1:
+ X_SC_MONOTONIC_CLOCK = 38 // /usr/include/sys/unistd.h:263:1:
+ X_SC_MQ_OPEN_MAX = 54 // /usr/include/sys/unistd.h:279:1:
+ X_SC_MQ_PRIO_MAX = 55 // /usr/include/sys/unistd.h:280:1:
+ X_SC_NGROUPS_MAX = 4 // /usr/include/sys/unistd.h:228:1:
+ X_SC_NPROCESSORS_CONF = 1001 // /usr/include/sys/unistd.h:329:1:
+ X_SC_NPROCESSORS_ONLN = 1002 // /usr/include/sys/unistd.h:330:1:
+ X_SC_OPEN_MAX = 5 // /usr/include/sys/unistd.h:229:1:
+ X_SC_PAGESIZE = 28 // /usr/include/sys/unistd.h:252:1:
+ X_SC_PAGE_SIZE = 28 // /usr/include/sys/unistd.h:253:1:
+ X_SC_PASS_MAX = 70 // /usr/include/sys/unistd.h:295:1:
+ X_SC_PHYS_PAGES = 121 // /usr/include/sys/unistd.h:325:1:
+ X_SC_PRIORITY_SCHEDULING = 56 // /usr/include/sys/unistd.h:281:1:
+ X_SC_READER_WRITER_LOCKS = 46 // /usr/include/sys/unistd.h:271:1:
+ X_SC_REALTIME_SIGNALS = 94 // /usr/include/sys/unistd.h:322:1:
+ X_SC_REGEXP = 71 // /usr/include/sys/unistd.h:296:1:
+ X_SC_RE_DUP_MAX = 16 // /usr/include/sys/unistd.h:240:1:
+ X_SC_SAVED_IDS = 7 // /usr/include/sys/unistd.h:231:1:
+ X_SC_SCHED_PRI_MAX = 2003 // /usr/include/sys/unistd.h:334:1:
+ X_SC_SCHED_PRI_MIN = 2002 // /usr/include/sys/unistd.h:333:1:
+ X_SC_SCHED_RT_TS = 2001 // /usr/include/sys/unistd.h:332:1:
+ X_SC_SEMAPHORES = 42 // /usr/include/sys/unistd.h:267:1:
+ X_SC_SEM_NSEMS_MAX = 89 // /usr/include/sys/unistd.h:317:1:
+ X_SC_SHARED_MEMORY_OBJECTS = 87 // /usr/include/sys/unistd.h:314:1:
+ X_SC_SHELL = 72 // /usr/include/sys/unistd.h:297:1:
+ X_SC_SIGQUEUE_MAX = 93 // /usr/include/sys/unistd.h:321:1:
+ X_SC_SPAWN = 86 // /usr/include/sys/unistd.h:313:1:
+ X_SC_SPIN_LOCKS = 45 // /usr/include/sys/unistd.h:270:1:
+ X_SC_STREAM_MAX = 26 // /usr/include/sys/unistd.h:250:1:
+ X_SC_SYMLOOP_MAX = 73 // /usr/include/sys/unistd.h:298:1:
+ X_SC_SYNCHRONIZED_IO = 31 // /usr/include/sys/unistd.h:256:1:
+ X_SC_THREADS = 41 // /usr/include/sys/unistd.h:266:1:
+ X_SC_THREAD_ATTR_STACKADDR = 61 // /usr/include/sys/unistd.h:286:1:
+ X_SC_THREAD_ATTR_STACKSIZE = 62 // /usr/include/sys/unistd.h:287:1:
+ X_SC_THREAD_CPUTIME = 91 // /usr/include/sys/unistd.h:319:1:
+ X_SC_THREAD_DESTRUCTOR_ITERATIONS = 57 // /usr/include/sys/unistd.h:282:1:
+ X_SC_THREAD_KEYS_MAX = 58 // /usr/include/sys/unistd.h:283:1:
+ X_SC_THREAD_PRIORITY_SCHEDULING = 63 // /usr/include/sys/unistd.h:288:1:
+ X_SC_THREAD_PRIO_INHERIT = 64 // /usr/include/sys/unistd.h:289:1:
+ X_SC_THREAD_PRIO_PROTECT = 65 // /usr/include/sys/unistd.h:290:1:
+ X_SC_THREAD_PROCESS_SHARED = 66 // /usr/include/sys/unistd.h:291:1:
+ X_SC_THREAD_SAFE_FUNCTIONS = 67 // /usr/include/sys/unistd.h:292:1:
+ X_SC_THREAD_STACK_MIN = 59 // /usr/include/sys/unistd.h:284:1:
+ X_SC_THREAD_THREADS_MAX = 60 // /usr/include/sys/unistd.h:285:1:
+ X_SC_TIMERS = 44 // /usr/include/sys/unistd.h:269:1:
+ X_SC_TIMER_MAX = 88 // /usr/include/sys/unistd.h:316:1:
+ X_SC_TTY_NAME_MAX = 68 // /usr/include/sys/unistd.h:293:1:
+ X_SC_TZNAME_MAX = 27 // /usr/include/sys/unistd.h:251:1:
+ X_SC_V6_ILP32_OFF32 = 74 // /usr/include/sys/unistd.h:301:1:
+ X_SC_V6_ILP32_OFFBIG = 75 // /usr/include/sys/unistd.h:302:1:
+ X_SC_V6_LP64_OFF64 = 76 // /usr/include/sys/unistd.h:303:1:
+ X_SC_V6_LPBIG_OFFBIG = 77 // /usr/include/sys/unistd.h:304:1:
+ X_SC_VERSION = 8 // /usr/include/sys/unistd.h:232:1:
+ X_SC_XOPEN_SHM = 30 // /usr/include/sys/unistd.h:255: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_STDDEF_H_ = 0 // /usr/include/stddef.h:35:1:
+ X_STDIO_H_ = 0 // /usr/include/stdio.h:38:1:
+ X_STDLIB_H_ = 0 // /usr/include/stdlib.h:35:1:
+ X_STRINGS_H_ = 0 // /usr/include/strings.h:33:1:
+ X_STRING_H_ = 0 // /usr/include/string.h:35:1:
+ X_SYS_ANSI_H_ = 0 // /usr/include/sys/ansi.h:33:1:
+ X_SYS_BSWAP_H_ = 0 // /usr/include/sys/bswap.h:6:1:
+ X_SYS_CDEFS_ELF_H_ = 0 // /usr/include/sys/cdefs_elf.h:31:1:
+ X_SYS_CDEFS_H_ = 0 // /usr/include/sys/cdefs.h:37:1:
+ X_SYS_COMMON_ANSI_H_ = 0 // /usr/include/sys/common_ansi.h:33:1:
+ X_SYS_COMMON_INT_LIMITS_H_ = 0 // /usr/include/sys/common_int_limits.h:33:1:
+ X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // /usr/include/sys/common_int_mwgwtypes.h:33:1:
+ X_SYS_COMMON_INT_TYPES_H_ = 0 // /usr/include/sys/common_int_types.h:33:1:
+ X_SYS_DKIO_H_ = 0 // /usr/include/sys/dkio.h:33:1:
+ X_SYS_ENDIAN_H_ = 0 // /usr/include/sys/endian.h:35:1:
+ X_SYS_ERRNO_H_ = 0 // /usr/include/sys/errno.h:40:1:
+ X_SYS_FCNTL_H_ = 0 // /usr/include/fcntl.h:40:1:
+ X_SYS_FD_SET_H_ = 0 // /usr/include/sys/fd_set.h:35:1:
+ X_SYS_FILIO_H_ = 0 // /usr/include/sys/filio.h:40:1:
+ X_SYS_IDTYPE_H_ = 0 // /usr/include/sys/idtype.h:32:1:
+ X_SYS_IOCCOM_H_ = 0 // /usr/include/sys/ioccom.h:35:1:
+ X_SYS_IOCTL_H_ = 0 // /usr/include/sys/ioctl.h:40:1:
+ X_SYS_MMAN_H_ = 0 // /usr/include/sys/mman.h:35:1:
+ X_SYS_NULL_H_ = 0 // /usr/include/sys/null.h:9:1:
+ X_SYS_SELECT_H_ = 0 // /usr/include/sys/select.h:35:1:
+ X_SYS_SIGTYPES_H_ = 0 // /usr/include/sys/sigtypes.h:40:1:
+ X_SYS_SOCKIO_H_ = 0 // /usr/include/sys/sockio.h:35:1:
+ X_SYS_STAT_H_ = 0 // /usr/include/sys/stat.h:40:1:
+ X_SYS_STDARG_H_ = 0 // /usr/include/stdarg.h:35:1:
+ X_SYS_STDINT_H_ = 0 // /usr/include/sys/stdint.h:33:1:
+ X_SYS_SYSLIMITS_H_ = 0 // /usr/include/sys/syslimits.h:35:1:
+ X_SYS_TIMESPEC_H_ = 0 // /usr/include/sys/timespec.h:38:1:
+ X_SYS_TIME_H_ = 0 // /usr/include/sys/time.h:35:1:
+ X_SYS_TYPES_H_ = 0 // /usr/include/sys/types.h:40:1:
+ X_SYS_UNISTD_H_ = 0 // /usr/include/sys/unistd.h:35:1:
+ X_S_ARCH1 = 0200000 // /usr/include/sys/stat.h:148:1:
+ X_S_ARCH2 = 0400000 // /usr/include/sys/stat.h:149:1:
+ X_S_IFBLK = 0060000 // /usr/include/sys/stat.h:142:1:
+ X_S_IFCHR = 0020000 // /usr/include/sys/stat.h:140:1:
+ X_S_IFDIR = 0040000 // /usr/include/sys/stat.h:141:1:
+ X_S_IFIFO = 0010000 // /usr/include/sys/stat.h:139:1:
+ X_S_IFLNK = 0120000 // /usr/include/sys/stat.h:144:1:
+ X_S_IFMT = 0170000 // /usr/include/sys/stat.h:138:1:
+ X_S_IFREG = 0100000 // /usr/include/sys/stat.h:143:1:
+ X_S_IFSOCK = 0140000 // /usr/include/sys/stat.h:146:1:
+ X_S_IFWHT = 0160000 // /usr/include/sys/stat.h:147:1:
+ X_S_ISVTX = 0001000 // /usr/include/sys/stat.h:145:1:
+ X_TIME_H_ = 0 // /usr/include/time.h:40:1:
+ X_UNISTD_H_ = 0 // /usr/include/unistd.h:64:1:
+ X_X86_64_BSWAP_H_ = 0 // /usr/include/machine/bswap.h:6:1:
+ X_X86_64_CDEFS_H_ = 0 // /usr/include/machine/cdefs.h:4:1:
+ X_X86_64_LIMITS_H_ = 0 // /usr/include/machine/limits.h:35:1:
+ X_X86_64_TYPES_H_ = 0 // /usr/include/machine/types.h:35:1:
+ X_XOPEN_IOV_MAX = 16 // /usr/include/limits.h:119:1:
+ X_XOPEN_NAME_MAX = 256 // /usr/include/limits.h:120:1:
+ X_XOPEN_PATH_MAX = 1024 // /usr/include/limits.h:121:1:
+ X_XOPEN_SHM = 0 // /usr/include/sys/unistd.h:169:1:
+ X_XOPEN_SOURCE = 600 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13528:1:
+ BBatch = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:59671: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:
+ 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:
+ 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:
)
-const ( /* math.h:161:1: */
+const ( /* /usr/include/math.h:161:1: */
Fdlibm_ieee = -1
Fdlibm_svid = 0
Fdlibm_xopen = 1
@@ -2966,7 +2986,7 @@ const ( /* math.h:161:1: */
// break the ABI of the system calls using this. We set a high private
// maximum so that new values can be added in the future without
// changing the width of the type.
-const ( /* idtype.h:41:1: */
+const ( /* /usr/include/sys/idtype.h:41:1: */
P_MYID = -1 // Me/my process group
P_ALL = 0 // All processes.
P_PID = 1 // A process identifier.
@@ -3169,19 +3189,19 @@ type X__float128 = float64 /* <builtin>:47:21 */
// 7.18.1.1 Exact-width integer types
-type X__int8_t = int8 /* common_int_types.h:45:27 */
-type X__uint8_t = uint8 /* common_int_types.h:46:27 */
-type X__int16_t = int16 /* common_int_types.h:47:27 */
-type X__uint16_t = uint16 /* common_int_types.h:48:27 */
-type X__int32_t = int32 /* common_int_types.h:49:27 */
-type X__uint32_t = uint32 /* common_int_types.h:50:27 */
-type X__int64_t = int64 /* common_int_types.h:51:27 */
-type X__uint64_t = uint64 /* common_int_types.h:52:27 */
+type X__int8_t = int8 /* /usr/include/sys/common_int_types.h:45:27 */
+type X__uint8_t = uint8 /* /usr/include/sys/common_int_types.h:46:27 */
+type X__int16_t = int16 /* /usr/include/sys/common_int_types.h:47:27 */
+type X__uint16_t = uint16 /* /usr/include/sys/common_int_types.h:48:27 */
+type X__int32_t = int32 /* /usr/include/sys/common_int_types.h:49:27 */
+type X__uint32_t = uint32 /* /usr/include/sys/common_int_types.h:50:27 */
+type X__int64_t = int64 /* /usr/include/sys/common_int_types.h:51:27 */
+type X__uint64_t = uint64 /* /usr/include/sys/common_int_types.h:52:27 */
// 7.18.1.4 Integer types capable of holding object pointers
-type X__intptr_t = int64 /* common_int_types.h:58:27 */
-type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
+type X__intptr_t = int64 /* /usr/include/sys/common_int_types.h:58:27 */
+type X__uintptr_t = uint64 /* /usr/include/sys/common_int_types.h:59:26 */
// Types which are fundamental to the implementation and may appear in
// more than one standard header are defined here. Standard headers
@@ -3191,29 +3211,29 @@ type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
// #undef _BSD_SIZE_T_
// #endif
-type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
-type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
-type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
-type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
-type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
-type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
-type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
-type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
-type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
-type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
-type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
-type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
-type X__wctrans_t = uintptr /* ansi.h:51:32 */
-type X__wctype_t = uintptr /* ansi.h:54:31 */
+type X__caddr_t = uintptr /* /usr/include/sys/ansi.h:37:14 */ // core address
+type X__gid_t = X__uint32_t /* /usr/include/sys/ansi.h:38:20 */ // group id
+type X__in_addr_t = X__uint32_t /* /usr/include/sys/ansi.h:39:20 */ // IP(v4) address
+type X__in_port_t = X__uint16_t /* /usr/include/sys/ansi.h:40:20 */ // "Internet" port number
+type X__mode_t = X__uint32_t /* /usr/include/sys/ansi.h:41:20 */ // file permissions
+type X__off_t = X__int64_t /* /usr/include/sys/ansi.h:42:19 */ // file offset
+type X__pid_t = X__int32_t /* /usr/include/sys/ansi.h:43:19 */ // process id
+type X__sa_family_t = X__uint8_t /* /usr/include/sys/ansi.h:44:19 */ // socket address family
+type X__socklen_t = uint32 /* /usr/include/sys/ansi.h:45:22 */ // socket-related datum length
+type X__uid_t = X__uint32_t /* /usr/include/sys/ansi.h:46:20 */ // user id
+type X__fsblkcnt_t = X__uint64_t /* /usr/include/sys/ansi.h:47:20 */ // fs block count (statvfs)
+type X__fsfilcnt_t = X__uint64_t /* /usr/include/sys/ansi.h:48:20 */
+type X__wctrans_t = uintptr /* /usr/include/sys/ansi.h:51:32 */
+type X__wctype_t = uintptr /* /usr/include/sys/ansi.h:54:31 */
// 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__mbstateL X__int64_t
F__ccgo_pad1 [120]byte
-} /* ansi.h:63:3 */
+} /* /usr/include/sys/ansi.h:63:3 */
-type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
+type X__va_list = X__builtin_va_list /* /usr/include/sys/ansi.h:72:27 */
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
@@ -3274,7 +3294,7 @@ type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
// _LARGEFILE_SOURCE Large File Support
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
-type Va_list = X__va_list /* stdarg.h:53:19 */
+type Va_list = X__va_list /* /usr/include/stdarg.h:53:19 */
// Make sure we can call this stuff from C++.
@@ -3376,7 +3396,7 @@ type Va_list = X__va_list /* stdarg.h:53:19 */
// 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)) /* sqlite3.c:491:23 */
+var Xsqlite3_version = *(*[7]int8)(unsafe.Pointer(ts)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:491:23 */
// CAPI3REF: Database Connection Handle
// KEYWORDS: {database connection} {database connections}
@@ -3404,6 +3424,7 @@ type sqlite3 = struct {
FnSchemaLock U32
FopenFlags uint32
FerrCode int32
+ FerrByteOffset int32
FerrMask int32
FiSysErrno int32
FdbOptFlags U32
@@ -3423,12 +3444,11 @@ type sqlite3 = struct {
FeOpenState U8
F__ccgo_pad1 [2]byte
FnextPagesize int32
- F__ccgo_pad2 [4]byte
FnChange I64
FnTotalChange I64
FaLimit [12]int32
FnMaxSorterMmap int32
- F__ccgo_pad3 [4]byte
+ F__ccgo_pad2 [4]byte
Finit struct {
FnewTnum Pgno
FiDb U8
@@ -3501,7 +3521,7 @@ type sqlite3 = struct {
FpUnlockArg uintptr
FxUnlockNotify uintptr
FpNextBlocked uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: Database Connection Handle
// KEYWORDS: {database connection} {database connections}
@@ -3515,7 +3535,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 /* sqlite3.c:578:24 */
+type Sqlite3 = sqlite3 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:24 */
// CAPI3REF: 64-Bit Integer Types
// KEYWORDS: sqlite_int64 sqlite_uint64
@@ -3531,15 +3551,15 @@ type Sqlite3 = sqlite3 /* 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 /* sqlite3.c:607:25 */
-type Sqlite_uint64 = uint64 /* sqlite3.c:608:34 */
-type Sqlite3_int64 = Sqlite_int64 /* sqlite3.c:610:22 */
-type Sqlite3_uint64 = Sqlite_uint64 /* sqlite3.c:611:23 */
+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 */
// 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 /* sqlite3.c:667:13 */
+type Sqlite3_callback = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:667:13 */
// CAPI3REF: Result Codes
// KEYWORDS: {result code definitions}
@@ -3663,7 +3683,7 @@ type Sqlite3_callback = uintptr /* sqlite3.c:667:13 */
// 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 } /* sqlite3.c:578:9 */
+type sqlite3_file = struct{ FpMethods uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: Result Codes
// KEYWORDS: {result code definitions}
@@ -3787,7 +3807,7 @@ type sqlite3_file = struct{ FpMethods uintptr } /* sqlite3.c:578:9 */
// 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 /* sqlite3.c:1028:29 */
+type Sqlite3_file = sqlite3_file /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1028:29 */
type sqlite3_io_methods = struct {
FiVersion int32
F__ccgo_pad1 [4]byte
@@ -3809,7 +3829,7 @@ type sqlite3_io_methods = struct {
FxShmUnmap uintptr
FxFetch uintptr
FxUnfetch uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: OS Interface File Virtual Methods Object
//
@@ -3903,7 +3923,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 /* sqlite3.c:1127:35 */
+type Sqlite3_io_methods = sqlite3_io_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1127:35 */
// CAPI3REF: Loadable Extension Thunk
//
@@ -4168,7 +4188,13 @@ type sqlite3_api_routines = struct {
Fchanges64 uintptr
Ftotal_changes64 uintptr
Fautovacuum_pages uintptr
-} /* sqlite3.c:1560:9 */
+ Ferror_offset uintptr
+ Fvtab_rhs_value uintptr
+ Fvtab_distinct uintptr
+ Fvtab_in uintptr
+ Fvtab_in_first uintptr
+ Fvtab_in_next uintptr
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1560:9 */
// CAPI3REF: Loadable Extension Thunk
//
@@ -4176,7 +4202,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 /* sqlite3.c:1560:37 */
+type Sqlite3_api_routines = sqlite3_api_routines /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1560:37 */
// CAPI3REF: OS Interface Object
//
@@ -4369,7 +4395,7 @@ type sqlite3_vfs = struct {
FxSetSystemCall uintptr
FxGetSystemCall uintptr
FxNextSystemCall uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: OS Interface Object
//
@@ -4538,8 +4564,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 /* sqlite3.c:1731:28 */
-type Sqlite3_syscall_ptr = uintptr /* sqlite3.c:1732:14 */
+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 */
// CAPI3REF: Memory Allocation Routines
//
@@ -4611,7 +4637,7 @@ type sqlite3_mem_methods = struct {
FxInit uintptr
FxShutdown uintptr
FpAppData uintptr
-} /* sqlite3.c:2029:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2029:9 */
// CAPI3REF: Memory Allocation Routines
//
@@ -4674,7 +4700,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 /* sqlite3.c:2029:36 */
+type Sqlite3_mem_methods = sqlite3_mem_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2029:36 */
// CAPI3REF: Dynamically Typed Value Object
// KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}
@@ -4707,6 +4733,8 @@ type Sqlite3_mem_methods = sqlite3_mem_methods /* sqlite3.c:2029:36 */
//
// ^The sqlite3_value objects that are passed as parameters into the
// implementation of [application-defined SQL functions] are protected.
+// ^The sqlite3_value objects returned by [sqlite3_vtab_rhs_value()]
+// are protected.
// ^The sqlite3_value object returned by
// [sqlite3_column_value()] is unprotected.
// Unprotected sqlite3_value objects may only be used as arguments
@@ -4726,7 +4754,7 @@ type sqlite3_value = struct {
FuTemp U32
Fdb uintptr
FxDel uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: Dynamically Typed Value Object
// KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}
@@ -4759,6 +4787,8 @@ type sqlite3_value = struct {
//
// ^The sqlite3_value objects that are passed as parameters into the
// implementation of [application-defined SQL functions] are protected.
+// ^The sqlite3_value objects returned by [sqlite3_vtab_rhs_value()]
+// are protected.
// ^The sqlite3_value object returned by
// [sqlite3_column_value()] is unprotected.
// Unprotected sqlite3_value objects may only be used as arguments
@@ -4766,7 +4796,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 /* sqlite3.c:4660:30 */
+type Sqlite3_value = sqlite3_value /* testdata/sqlite-amalgamation-3380500/sqlite3.c:4675:30 */
// CAPI3REF: SQL Function Context Object
//
@@ -4789,7 +4819,7 @@ type sqlite3_context = struct {
Fargc U8
F__ccgo_pad1 [6]byte
Fargv [1]uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: SQL Function Context Object
//
@@ -4801,7 +4831,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 /* sqlite3.c:4674:32 */
+type Sqlite3_context = sqlite3_context /* testdata/sqlite-amalgamation-3380500/sqlite3.c:4689:32 */
// CAPI3REF: Constants Defining Special Destructor Behavior
//
@@ -4815,7 +4845,7 @@ type Sqlite3_context = sqlite3_context /* sqlite3.c:4674:32 */
//
// The typedef is necessary to work around problems in certain
// C++ compilers.
-type Sqlite3_destructor_type = uintptr /* sqlite3.c:6039:14 */
+type Sqlite3_destructor_type = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:6058:14 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -4830,7 +4860,7 @@ type sqlite3_vtab = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FzErrMsg uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -4840,7 +4870,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 /* sqlite3.c:7224:29 */
+type Sqlite3_vtab = sqlite3_vtab /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7243:29 */
type sqlite3_index_info = struct {
FnConstraint int32
F__ccgo_pad1 [4]byte
@@ -4859,12 +4889,12 @@ type sqlite3_index_info = struct {
FidxFlags int32
F__ccgo_pad4 [4]byte
FcolUsed Sqlite3_uint64
-} /* sqlite3.c:7225:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */
-type Sqlite3_index_info = sqlite3_index_info /* sqlite3.c:7225:35 */
-type sqlite3_vtab_cursor = struct{ FpVtab uintptr } /* sqlite3.c:7226: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_vtab_cursor = sqlite3_vtab_cursor /* sqlite3.c:7226:36 */
+type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7245:36 */
type sqlite3_module = struct {
FiVersion int32
F__ccgo_pad1 [4]byte
@@ -4891,9 +4921,9 @@ type sqlite3_module = struct {
FxRelease uintptr
FxRollbackTo uintptr
FxShadowName uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Sqlite3_module = sqlite3_module /* sqlite3.c:7227:31 */
+type Sqlite3_module = sqlite3_module /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7246:31 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5001,7 +5031,7 @@ type sqlite3_index_constraint = struct {
Fusable uint8
F__ccgo_pad1 [2]byte
FiTermOffset int32
-} /* sqlite3.c:7225:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5107,7 +5137,7 @@ type sqlite3_index_orderby = struct {
FiColumn int32
Fdesc uint8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:7225:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5213,7 +5243,7 @@ type sqlite3_index_constraint_usage = struct {
FargvIndex int32
Fomit uint8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:7225:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -5288,7 +5318,7 @@ type sqlite3_mutex_methods = struct {
FxMutexLeave uintptr
FxMutexHeld uintptr
FxMutexNotheld uintptr
-} /* sqlite3.c:8059:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8110:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -5353,7 +5383,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 /* sqlite3.c:8059:38 */
+type Sqlite3_mutex_methods = sqlite3_mutex_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8110:38 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -5378,7 +5408,7 @@ type sqlite3_str = struct {
FaccError U8
FprintfFlags U8
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:8322:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8374:9 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -5394,7 +5424,7 @@ type sqlite3_str = struct {
// <li> ^The sqlite3_str object is destroyed and the string it created
// is returned using the [sqlite3_str_finish()] interface.
// </ol>
-type Sqlite3_str = sqlite3_str /* sqlite3.c:8322:28 */
+type Sqlite3_str = sqlite3_str /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8374:28 */
// CAPI3REF: Custom Page Cache Object
//
@@ -5407,7 +5437,7 @@ type Sqlite3_str = sqlite3_str /* sqlite3.c:8322:28 */
type sqlite3_pcache_page = struct {
FpBuf uintptr
FpExtra uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: Custom Page Cache Object
//
@@ -5417,7 +5447,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 /* sqlite3.c:8815:36 */
+type Sqlite3_pcache_page = sqlite3_pcache_page /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8879:36 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -5591,7 +5621,7 @@ type sqlite3_pcache_methods2 = struct {
FxTruncate uintptr
FxDestroy uintptr
FxShrink uintptr
-} /* sqlite3.c:8980:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9044:9 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -5750,7 +5780,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 /* sqlite3.c:8980:40 */
+type Sqlite3_pcache_methods2 = sqlite3_pcache_methods2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9044: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
@@ -5767,12 +5797,12 @@ type sqlite3_pcache_methods = struct {
FxRekey uintptr
FxTruncate uintptr
FxDestroy uintptr
-} /* sqlite3.c:9003:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9067: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 /* sqlite3.c:9003:39 */
+type Sqlite3_pcache_methods = sqlite3_pcache_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9067:39 */
// CAPI3REF: Online Backup Object
//
@@ -5796,7 +5826,7 @@ type sqlite3_backup = struct {
FnPagecount Pgno
FisAttached int32
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// CAPI3REF: Online Backup Object
//
@@ -5806,7 +5836,7 @@ type sqlite3_backup = struct {
// [sqlite3_backup_finish()].
//
// See Also: [Using the SQLite Online Backup API]
-type Sqlite3_backup = sqlite3_backup /* sqlite3.c:9029:31 */
+type Sqlite3_backup = sqlite3_backup /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9093:31 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -5826,7 +5856,7 @@ type Sqlite3_backup = sqlite3_backup /* sqlite3.c:9029:31 */
// 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 } /* sqlite3.c:10071:9 */
+type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10385:9 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -5846,7 +5876,7 @@ type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* sqlite3.c:10071:9 */
// 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 /* sqlite3.c:10073:3 */
+type Sqlite3_snapshot = sqlite3_snapshot /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10387:3 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -5890,7 +5920,7 @@ type sqlite3_rtree_geometry = struct {
FaParam uintptr
FpUser uintptr
FxDelUser uintptr
-} /* sqlite3.c:10402:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10716:9 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -5927,7 +5957,7 @@ type sqlite3_rtree_geometry = struct {
//
//
-type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* sqlite3.c:10402:39 */
+type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10716:39 */
type sqlite3_rtree_query_info = struct {
FpContext uintptr
FnParam int32
@@ -5947,13 +5977,13 @@ type sqlite3_rtree_query_info = struct {
FeWithin int32
FrScore Sqlite3_rtree_dbl
FapSqlParam uintptr
-} /* sqlite3.c:10403:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10717:9 */
-type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* sqlite3.c:10403:41 */
+type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10717:41 */
// The double-precision datatype used by RTree depends on the
// SQLITE_RTREE_INT_ONLY compile-time option.
-type Sqlite3_rtree_dbl = float64 /* sqlite3.c:10411:18 */
+type Sqlite3_rtree_dbl = float64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10725:18 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -5983,7 +6013,7 @@ type sqlite3_session = struct {
FpNext uintptr
FpTable uintptr
Fhook SessionHook
-} /* sqlite3.c:10518:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -5996,7 +6026,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 /* sqlite3.c:10518:32 */
+type Sqlite3_session = sqlite3_session /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:32 */
// CAPI3REF: Changeset Iterator Handle
//
@@ -6017,13 +6047,13 @@ type sqlite3_changeset_iter = struct {
F__ccgo_pad1 [4]byte
FabPK uintptr
FapValue uintptr
-} /* sqlite3.c:10526:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840: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 /* sqlite3.c:10526:39 */
+type Sqlite3_changeset_iter = sqlite3_changeset_iter /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:39 */
// CAPI3REF: Changegroup Handle
//
@@ -6033,13 +6063,13 @@ type sqlite3_changegroup = struct {
Frc int32
FbPatch int32
FpList uintptr
-} /* sqlite3.c:11378:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:11692:9 */
// CAPI3REF: Changegroup Handle
//
// A changegroup is an object used to combine two or more
// [changesets] or [patchsets]
-type Sqlite3_changegroup = sqlite3_changegroup /* sqlite3.c:11378:36 */
+type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3380500/sqlite3.c:11692:36 */
// CAPI3REF: Flags for sqlite3changeset_apply_v2
//
@@ -6241,7 +6271,7 @@ type Sqlite3_changegroup = sqlite3_changegroup /* sqlite3.c:11378:36 */
// <li> The sqlite3_rebaser object is deleted by calling
// sqlite3rebaser_delete().
// </ol>
-type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* sqlite3.c:11942:9 */
+type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12256:9 */
// CAPI3REF: Flags for sqlite3changeset_apply_v2
//
@@ -6443,7 +6473,7 @@ type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* sqlite3.c:11942:9 *
// <li> The sqlite3_rebaser object is deleted by calling
// sqlite3rebaser_delete().
// </ol>
-type Sqlite3_rebaser = sqlite3_rebaser /* sqlite3.c:11942:32 */
+type Sqlite3_rebaser = sqlite3_rebaser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12256:32 */
// CAPI3REF: Values for sqlite3session_config().
@@ -6497,7 +6527,7 @@ type Fts5ExtensionApi1 = struct {
FxPhraseNext uintptr
FxPhraseFirstColumn uintptr
FxPhraseNextColumn uintptr
-} /* sqlite3.c:12258:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12572:9 */
// CAPI3REF: Values for sqlite3session_config().
@@ -6529,22 +6559,22 @@ type Fts5ExtensionApi1 = struct {
// Virtual table implementations may overload SQL functions by implementing
// the sqlite3_module.xFindFunction() method.
-type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.c:12258:33 */
+type Fts5ExtensionApi = Fts5ExtensionApi1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12572:33 */
type Fts5PhraseIter1 = struct {
Fa uintptr
Fb uintptr
-} /* sqlite3.c:12260:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12574:9 */
-type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.c:12260:31 */
+type Fts5PhraseIter = Fts5PhraseIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12574:31 */
-type Fts5_extension_function = uintptr /* sqlite3.c:12262:14 */
+type Fts5_extension_function = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12576:14 */
type fts5_tokenizer = struct {
FxCreate uintptr
FxDelete uintptr
FxTokenize uintptr
-} /* sqlite3.c:12721:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13035:9 */
-type Fts5_tokenizer = fts5_tokenizer /* sqlite3.c:12721:31 */
+type Fts5_tokenizer = fts5_tokenizer /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13035:31 */
// Flags that may be passed as the third argument to xTokenize()
@@ -6564,7 +6594,7 @@ type fts5_api = struct {
FxCreateTokenizer uintptr
FxFindTokenizer uintptr
FxCreateFunction uintptr
-} /* sqlite3.c:12757:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13071:9 */
// Flags that may be passed as the third argument to xTokenize()
@@ -6578,7 +6608,7 @@ type fts5_api = struct {
// ************************************************************************
//
// FTS5 EXTENSION REGISTRATION API
-type Fts5_api = fts5_api /* sqlite3.c:12757:25 */
+type Fts5_api = fts5_api /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13071:25 */
//
// END OF REGISTRATION API
@@ -6891,7 +6921,7 @@ type Hash1 = struct {
Fcount uint32
Ffirst uintptr
Fht uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
//
// END OF REGISTRATION API
@@ -7199,15 +7229,15 @@ type Hash1 = struct {
// used in SQLite.
// Forward declarations of structures.
-type Hash = Hash1 /* sqlite3.c:13430:21 */
+type Hash = Hash1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13744:21 */
type HashElem1 = struct {
Fnext uintptr
Fprev uintptr
Fdata uintptr
FpKey uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type HashElem = HashElem1 /* sqlite3.c:13431:25 */
+type HashElem = HashElem1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13745:25 */
// A complete hash table is an instance of the following structure.
// The internals of this structure are intended to be opaque -- client
@@ -7233,9 +7263,9 @@ type _ht = struct {
Fcount uint32
F__ccgo_pad1 [4]byte
Fchain uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Ssize_t = int64 /* stdio.h:49:23 */
+type Ssize_t = int64 /* /usr/include/stdio.h:49:23 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@@ -7249,7 +7279,7 @@ type __sfpos = struct {
F_pos X__off_t
F_mbstate_in X__mbstate_t
F_mbstate_out X__mbstate_t
-} /* stdio.h:67:9 */
+} /* /usr/include/stdio.h:67:9 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@@ -7259,7 +7289,7 @@ type __sfpos = struct {
// This is fairly grotesque, but pure ANSI code must not inspect the
// innards of an fpos_t anyway. The library internally uses off_t,
// which we assume is exactly as big as eight chars.
-type Fpos_t = __sfpos /* stdio.h:70:3 */
+type Fpos_t = __sfpos /* /usr/include/stdio.h:70:3 */
// NB: to fit things in six character monocase externals, the stdio
// code uses the prefix `__s' for stdio objects, typically followed
@@ -7270,7 +7300,7 @@ type __sbuf = struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
-} /* stdio.h:81:1 */
+} /* /usr/include/stdio.h:81:1 */
// stdio state variables.
//
@@ -7329,7 +7359,7 @@ type __sFILE = struct {
F_blksize int32
F__ccgo_pad3 [4]byte
F_offset X__off_t
-} /* stdio.h:112:9 */
+} /* /usr/include/stdio.h:112:9 */
// stdio state variables.
//
@@ -7355,12 +7385,12 @@ type __sFILE = struct {
// _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
//
// NB: see WARNING above before changing the layout of this structure!
-type FILE = __sFILE /* stdio.h:146:3 */
+type FILE = __sFILE /* /usr/include/stdio.h:146:3 */
// X/Open CAE Specification Issue 5 Version 2
-type Off_t = X__off_t /* stdio.h:376:18 */
+type Off_t = X__off_t /* /usr/include/stdio.h:376:18 */
-type Locale_t = uintptr /* stdio.h:543:25 */
+type Locale_t = uintptr /* /usr/include/stdio.h:543:25 */
// $NetBSD: stdlib.h,v 1.121 2019/01/05 09:16:46 maya Exp $
@@ -7741,8 +7771,8 @@ type Locale_t = uintptr /* stdio.h:543:25 */
//
// from: @(#)types.h 7.5 (Berkeley) 3/9/91
-type X__register_t = int64 /* types.h:68:19 */
-type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
+type X__register_t = int64 /* /usr/include/machine/types.h:68:19 */
+type X__cpu_simple_lock_nv_t = uint8 /* /usr/include/machine/types.h:69:24 */
// __cpu_simple_lock_t used to be a full word.
@@ -7842,26 +7872,26 @@ type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-type Int8_t = X__int8_t /* types.h:54:18 */
+type Int8_t = X__int8_t /* /usr/include/sys/types.h:54:18 */
-type Uint8_t = X__uint8_t /* types.h:59:19 */
+type Uint8_t = X__uint8_t /* /usr/include/sys/types.h:59:19 */
-type Int16_t = X__int16_t /* types.h:64:19 */
+type Int16_t = X__int16_t /* /usr/include/sys/types.h:64:19 */
-type Uint16_t = X__uint16_t /* types.h:69:20 */
+type Uint16_t = X__uint16_t /* /usr/include/sys/types.h:69:20 */
-type Int32_t = X__int32_t /* types.h:74:19 */
+type Int32_t = X__int32_t /* /usr/include/sys/types.h:74:19 */
-type Uint32_t = X__uint32_t /* types.h:79:20 */
+type Uint32_t = X__uint32_t /* /usr/include/sys/types.h:79:20 */
-type Int64_t = X__int64_t /* types.h:84:19 */
+type Int64_t = X__int64_t /* /usr/include/sys/types.h:84:19 */
-type Uint64_t = X__uint64_t /* types.h:89:20 */
+type Uint64_t = X__uint64_t /* /usr/include/sys/types.h:89:20 */
-type U_int8_t = Uint8_t /* types.h:93:18 */
-type U_int16_t = Uint16_t /* types.h:94:18 */
-type U_int32_t = Uint32_t /* types.h:95:18 */
-type U_int64_t = Uint64_t /* types.h:96:18 */
+type U_int8_t = Uint8_t /* /usr/include/sys/types.h:93:18 */
+type U_int16_t = Uint16_t /* /usr/include/sys/types.h:94:18 */
+type U_int32_t = Uint32_t /* /usr/include/sys/types.h:95:18 */
+type U_int64_t = Uint64_t /* /usr/include/sys/types.h:96:18 */
// $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
@@ -8061,21 +8091,21 @@ type U_int64_t = Uint64_t /* types.h:96:18 */
//
// @(#)types.h 8.4 (Berkeley) 1/21/94
-type In_addr_t = X__in_addr_t /* endian.h:58:21 */
+type In_addr_t = X__in_addr_t /* /usr/include/sys/endian.h:58:21 */
-type In_port_t = X__in_port_t /* endian.h:63:21 */
+type In_port_t = X__in_port_t /* /usr/include/sys/endian.h:63:21 */
-func __byte_swap_u64_variable(tls *libc.TLS, x Uint64_t) Uint64_t { /* byte_swap.h:48:1: */
+func __byte_swap_u64_variable(tls *libc.TLS, x Uint64_t) Uint64_t { /* /usr/include/machine/byte_swap.h:48:1: */
panic(`/usr/include/machine/byte_swap.h:50:2: assembler statements not supported`)
return x
}
-func __byte_swap_u32_variable(tls *libc.TLS, x Uint32_t) Uint32_t { /* byte_swap.h:57:1: */
+func __byte_swap_u32_variable(tls *libc.TLS, x Uint32_t) Uint32_t { /* /usr/include/machine/byte_swap.h:57:1: */
panic(`/usr/include/machine/byte_swap.h:59:2: assembler statements not supported`)
return x
}
-func __byte_swap_u16_variable(tls *libc.TLS, x Uint16_t) Uint16_t { /* byte_swap.h:66:1: */
+func __byte_swap_u16_variable(tls *libc.TLS, x Uint16_t) Uint16_t { /* /usr/include/machine/byte_swap.h:66:1: */
panic(`/usr/include/machine/byte_swap.h:68:2: assembler statements not supported`)
return x
}
@@ -8180,9 +8210,9 @@ func __byte_swap_u16_variable(tls *libc.TLS, x Uint16_t) Uint16_t { /* byte_swap
//
// from: @(#)types.h 7.5 (Berkeley) 3/9/91
-type Intptr_t = X__intptr_t /* stdint.h:79:20 */
+type Intptr_t = X__intptr_t /* /usr/include/sys/stdint.h:79:20 */
-type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
+type Uintptr_t = X__uintptr_t /* /usr/include/sys/stdint.h:84:21 */
// $NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
@@ -8248,43 +8278,43 @@ type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
// 7.18.1.2 Minimum-width integer types
-type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
-type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
-type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
-type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
-type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
-type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
-type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
-type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
+type Int_least8_t = int8 /* /usr/include/sys/common_int_mwgwtypes.h:45:32 */
+type Uint_least8_t = uint8 /* /usr/include/sys/common_int_mwgwtypes.h:46:32 */
+type Int_least16_t = int16 /* /usr/include/sys/common_int_mwgwtypes.h:47:32 */
+type Uint_least16_t = uint16 /* /usr/include/sys/common_int_mwgwtypes.h:48:32 */
+type Int_least32_t = int32 /* /usr/include/sys/common_int_mwgwtypes.h:49:32 */
+type Uint_least32_t = uint32 /* /usr/include/sys/common_int_mwgwtypes.h:50:32 */
+type Int_least64_t = int64 /* /usr/include/sys/common_int_mwgwtypes.h:51:32 */
+type Uint_least64_t = uint64 /* /usr/include/sys/common_int_mwgwtypes.h:52:32 */
// 7.18.1.3 Fastest minimum-width integer types
-type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
-type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
-type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
-type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
-type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
-type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
-type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
-type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
+type Int_fast8_t = int32 /* /usr/include/sys/common_int_mwgwtypes.h:55:32 */
+type Uint_fast8_t = uint32 /* /usr/include/sys/common_int_mwgwtypes.h:56:32 */
+type Int_fast16_t = int32 /* /usr/include/sys/common_int_mwgwtypes.h:57:32 */
+type Uint_fast16_t = uint32 /* /usr/include/sys/common_int_mwgwtypes.h:58:32 */
+type Int_fast32_t = int32 /* /usr/include/sys/common_int_mwgwtypes.h:59:32 */
+type Uint_fast32_t = uint32 /* /usr/include/sys/common_int_mwgwtypes.h:60:32 */
+type Int_fast64_t = int64 /* /usr/include/sys/common_int_mwgwtypes.h:61:32 */
+type Uint_fast64_t = uint64 /* /usr/include/sys/common_int_mwgwtypes.h:62:32 */
// 7.18.1.5 Greatest-width integer types
-type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
-type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
+type Intmax_t = int64 /* /usr/include/sys/common_int_mwgwtypes.h:66:33 */
+type Uintmax_t = uint64 /* /usr/include/sys/common_int_mwgwtypes.h:67:32 */
-type U_char = uint8 /* types.h:101:23 */
-type U_short = uint16 /* types.h:102:24 */
-type U_int = uint32 /* types.h:103:22 */
-type U_long = uint64 /* types.h:104:23 */
+type U_char = uint8 /* /usr/include/sys/types.h:101:23 */
+type U_short = uint16 /* /usr/include/sys/types.h:102:24 */
+type U_int = uint32 /* /usr/include/sys/types.h:103:22 */
+type U_long = uint64 /* /usr/include/sys/types.h:104:23 */
-type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
-type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
-type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
-type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
+type Unchar = uint8 /* /usr/include/sys/types.h:106:23 */ // Sys V compatibility
+type Ushort = uint16 /* /usr/include/sys/types.h:107:24 */ // Sys V compatibility
+type Uint = uint32 /* /usr/include/sys/types.h:108:22 */ // Sys V compatibility
+type Ulong = uint64 /* /usr/include/sys/types.h:109:23 */ // Sys V compatibility
-type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
-type Quad_t = Int64_t /* types.h:113:18 */
-type Qaddr_t = uintptr /* types.h:114:16 */
+type U_quad_t = Uint64_t /* /usr/include/sys/types.h:112:18 */ // quads
+type Quad_t = Int64_t /* /usr/include/sys/types.h:113:18 */
+type Qaddr_t = uintptr /* /usr/include/sys/types.h:114:16 */
// The types longlong_t and u_longlong_t exist for use with the
// Sun-derived XDR routines involving these types, and their usage
@@ -8294,65 +8324,65 @@ type Qaddr_t = uintptr /* types.h:114:16 */
// respectively. Portable programs that need 64-bit types should use
// the C99 types int64_t and uint64_t instead.
-type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
-type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
+type Longlong_t = Int64_t /* /usr/include/sys/types.h:126:18 */ // for XDR
+type U_longlong_t = Uint64_t /* /usr/include/sys/types.h:127:18 */ // for XDR
-type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
-type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
+type Blkcnt_t = Int64_t /* /usr/include/sys/types.h:129:18 */ // fs block count
+type Blksize_t = Int32_t /* /usr/include/sys/types.h:130:18 */ // fs optimal block size
-type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
+type Fsblkcnt_t = X__fsblkcnt_t /* /usr/include/sys/types.h:133:22 */ // fs block count (statvfs)
-type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
+type Fsfilcnt_t = X__fsfilcnt_t /* /usr/include/sys/types.h:138:22 */ // fs file count
// We don't and shouldn't use caddr_t in the kernel anymore
-type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
+type Caddr_t = X__caddr_t /* /usr/include/sys/types.h:145:19 */ // core address
-type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
+type Daddr_t = Int64_t /* /usr/include/sys/types.h:154:18 */ // disk address
-type Dev_t = Uint64_t /* types.h:157:18 */ // device number
-type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
+type Dev_t = Uint64_t /* /usr/include/sys/types.h:157:18 */ // device number
+type Fixpt_t = Uint32_t /* /usr/include/sys/types.h:158:18 */ // fixed point number
-type Gid_t = X__gid_t /* types.h:161:18 */ // group id
+type Gid_t = X__gid_t /* /usr/include/sys/types.h:161:18 */ // group id
-type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
-type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
-type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
+type Id_t = Uint32_t /* /usr/include/sys/types.h:165:18 */ // group id, process id or user id
+type Ino_t = Uint64_t /* /usr/include/sys/types.h:166:18 */ // inode number
+type Key_t = int64 /* /usr/include/sys/types.h:167:15 */ // IPC key (for Sys V IPC)
-type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
+type Mode_t = X__mode_t /* /usr/include/sys/types.h:170:18 */ // permissions
-type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
+type Nlink_t = Uint32_t /* /usr/include/sys/types.h:174:18 */ // link count
-type Pid_t = X__pid_t /* types.h:182:18 */ // process id
-type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
-type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
-type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
-type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
+type Pid_t = X__pid_t /* /usr/include/sys/types.h:182:18 */ // process id
+type Lwpid_t = Int32_t /* /usr/include/sys/types.h:185:18 */ // LWP id
+type Rlim_t = Uint64_t /* /usr/include/sys/types.h:186:18 */ // resource limit
+type Segsz_t = Int32_t /* /usr/include/sys/types.h:187:18 */ // segment size
+type Swblk_t = Int32_t /* /usr/include/sys/types.h:188:18 */ // swap offset
-type Uid_t = X__uid_t /* types.h:191:18 */ // user id
+type Uid_t = X__uid_t /* /usr/include/sys/types.h:191:18 */ // user id
-type Mqd_t = int32 /* types.h:195:14 */
+type Mqd_t = int32 /* /usr/include/sys/types.h:195:14 */
-type Cpuid_t = uint64 /* types.h:197:23 */
+type Cpuid_t = uint64 /* /usr/include/sys/types.h:197:23 */
-type Psetid_t = int32 /* types.h:199:14 */
+type Psetid_t = int32 /* /usr/include/sys/types.h:199:14 */
-type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
+type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* /usr/include/sys/types.h:201:41 */
// Major, minor numbers, dev_t's.
-type X__devmajor_t = Int32_t /* types.h:255:17 */
-type X__devminor_t = Int32_t /* types.h:255:31 */
+type X__devmajor_t = Int32_t /* /usr/include/sys/types.h:255:17 */
+type X__devminor_t = Int32_t /* /usr/include/sys/types.h:255:31 */
-type Clock_t = uint32 /* types.h:268:24 */
+type Clock_t = uint32 /* /usr/include/sys/types.h:268:24 */
-type Time_t = X__int64_t /* types.h:289:23 */
+type Time_t = X__int64_t /* /usr/include/sys/types.h:289:23 */
-type Clockid_t = int32 /* types.h:294:26 */
+type Clockid_t = int32 /* /usr/include/sys/types.h:294:26 */
-type Timer_t = int32 /* types.h:299:24 */
+type Timer_t = int32 /* /usr/include/sys/types.h:299:24 */
-type Suseconds_t = int32 /* types.h:304:27 */
+type Suseconds_t = int32 /* /usr/include/sys/types.h:304:27 */
-type Useconds_t = uint32 /* types.h:309:26 */
+type Useconds_t = uint32 /* /usr/include/sys/types.h:309:26 */
// $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
@@ -8514,27 +8544,27 @@ type Useconds_t = uint32 /* types.h:309:26 */
// Implementation dependent defines, hidden from user space.
// POSIX does not specify them.
-type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
+type X__fd_mask = X__uint32_t /* /usr/include/sys/fd_set.h:46:20 */
// 32 = 2 ^ 5
// Select uses bit fields of file descriptors. These macros manipulate
// such bit fields. Note: FD_SETSIZE may be defined by the user.
-type fd_set = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
+type fd_set = struct{ Ffds_bits [8]X__fd_mask } /* /usr/include/sys/fd_set.h:66:9 */
// 32 = 2 ^ 5
// Select uses bit fields of file descriptors. These macros manipulate
// such bit fields. Note: FD_SETSIZE may be defined by the user.
-type Fd_set = fd_set /* fd_set.h:68:3 */
+type Fd_set = fd_set /* /usr/include/sys/fd_set.h:68:3 */
// Expose our internals if we are not required to hide them.
-type Kauth_cred_t = uintptr /* types.h:318:27 */
+type Kauth_cred_t = uintptr /* /usr/include/sys/types.h:318:27 */
-type Pri_t = int32 /* types.h:320:13 */
+type Pri_t = int32 /* /usr/include/sys/types.h:320:13 */
// $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
@@ -8572,22 +8602,22 @@ type Pri_t = int32 /* types.h:320:13 */
// C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
// This does not work for volatile types. Since C++ does not touch the guts
// of those types, we do not include volatile in the C++ definitions.
-type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
-type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */
+type Pthread_spin_t = X__cpu_simple_lock_t /* /usr/include/pthread_types.h:43:29 */
+type X__pthread_spin_t = Pthread_spin_t /* /usr/include/pthread_types.h:48:24 */
// Copied from PTQ_HEAD in pthread_queue.h
type pthread_queue_struct_t = struct {
Fptqh_first uintptr
Fptqh_last uintptr
-} /* pthread_types.h:61:1 */
+} /* /usr/include/pthread_types.h:61:1 */
-type Pthread_queue_t = pthread_queue_struct_t /* pthread_types.h:62:39 */
+type Pthread_queue_t = pthread_queue_struct_t /* /usr/include/pthread_types.h:62:39 */
type __pthread_attr_st = struct {
Fpta_magic uint32
Fpta_flags int32
Fpta_private uintptr
-} /* pthread_types.h:65:1 */
+} /* /usr/include/pthread_types.h:65:1 */
type __pthread_mutex_st = struct {
Fptm_magic uint32
@@ -8601,13 +8631,13 @@ type __pthread_mutex_st = struct {
Fptm_recursed uint32
F__ccgo_pad2 [4]byte
Fptm_spare2 uintptr
-} /* pthread_types.h:66:1 */
+} /* /usr/include/pthread_types.h:66:1 */
type __pthread_mutexattr_st = struct {
Fptma_magic uint32
F__ccgo_pad1 [4]byte
Fptma_private uintptr
-} /* pthread_types.h:67:1 */
+} /* /usr/include/pthread_types.h:67:1 */
type __pthread_cond_st = struct {
Fptc_magic uint32
@@ -8616,13 +8646,13 @@ type __pthread_cond_st = struct {
Fptc_waiters Pthread_queue_t
Fptc_mutex uintptr
Fptc_private uintptr
-} /* pthread_types.h:68:1 */
+} /* /usr/include/pthread_types.h:68:1 */
type __pthread_condattr_st = struct {
Fptca_magic uint32
F__ccgo_pad1 [4]byte
Fptca_private uintptr
-} /* pthread_types.h:69:1 */
+} /* /usr/include/pthread_types.h:69:1 */
type __pthread_rwlock_st = struct {
Fptr_magic uint32
@@ -8634,13 +8664,13 @@ type __pthread_rwlock_st = struct {
F__ccgo_pad2 [4]byte
Fptr_owner Pthread_t
Fptr_private uintptr
-} /* pthread_types.h:71:1 */
+} /* /usr/include/pthread_types.h:71:1 */
type __pthread_rwlockattr_st = struct {
Fptra_magic uint32
F__ccgo_pad1 [4]byte
Fptra_private uintptr
-} /* pthread_types.h:72:1 */
+} /* /usr/include/pthread_types.h:72:1 */
type __pthread_barrier_st = struct {
Fptb_magic uint32
@@ -8652,60 +8682,60 @@ type __pthread_barrier_st = struct {
Fptb_generation uint32
F__ccgo_pad2 [4]byte
Fptb_private uintptr
-} /* pthread_types.h:73:1 */
+} /* /usr/include/pthread_types.h:73:1 */
type __pthread_barrierattr_st = struct {
Fptba_magic uint32
F__ccgo_pad1 [4]byte
Fptba_private uintptr
-} /* pthread_types.h:74:1 */
-
-type Pthread_t = uintptr /* pthread_types.h:76:29 */
-type Pthread_attr_t = __pthread_attr_st /* pthread_types.h:77:34 */
-type Pthread_mutex_t = __pthread_mutex_st /* pthread_types.h:78:35 */
-type Pthread_mutexattr_t = __pthread_mutexattr_st /* pthread_types.h:79:39 */
-type Pthread_cond_t = __pthread_cond_st /* pthread_types.h:80:34 */
-type Pthread_condattr_t = __pthread_condattr_st /* pthread_types.h:81:38 */
+} /* /usr/include/pthread_types.h:74:1 */
+
+type Pthread_t = uintptr /* /usr/include/pthread_types.h:76:29 */
+type Pthread_attr_t = __pthread_attr_st /* /usr/include/pthread_types.h:77:34 */
+type Pthread_mutex_t = __pthread_mutex_st /* /usr/include/pthread_types.h:78:35 */
+type Pthread_mutexattr_t = __pthread_mutexattr_st /* /usr/include/pthread_types.h:79:39 */
+type Pthread_cond_t = __pthread_cond_st /* /usr/include/pthread_types.h:80:34 */
+type Pthread_condattr_t = __pthread_condattr_st /* /usr/include/pthread_types.h:81:38 */
type __pthread_once_st = struct {
Fpto_mutex Pthread_mutex_t
Fpto_done int32
F__ccgo_pad1 [4]byte
-} /* pthread_types.h:82:9 */
+} /* /usr/include/pthread_types.h:82:9 */
-type Pthread_once_t = __pthread_once_st /* pthread_types.h:82:34 */
+type Pthread_once_t = __pthread_once_st /* /usr/include/pthread_types.h:82:34 */
type __pthread_spinlock_st = struct {
Fpts_magic uint32
Fpts_spin X__pthread_spin_t
F__ccgo_pad1 [3]byte
Fpts_flags int32
-} /* pthread_types.h:83:9 */
+} /* /usr/include/pthread_types.h:83:9 */
-type Pthread_spinlock_t = __pthread_spinlock_st /* pthread_types.h:83:38 */
-type Pthread_rwlock_t = __pthread_rwlock_st /* pthread_types.h:84:36 */
-type Pthread_rwlockattr_t = __pthread_rwlockattr_st /* pthread_types.h:85:40 */
-type Pthread_barrier_t = __pthread_barrier_st /* pthread_types.h:86:37 */
-type Pthread_barrierattr_t = __pthread_barrierattr_st /* pthread_types.h:87:41 */
-type Pthread_key_t = int32 /* pthread_types.h:88:13 */
+type Pthread_spinlock_t = __pthread_spinlock_st /* /usr/include/pthread_types.h:83:38 */
+type Pthread_rwlock_t = __pthread_rwlock_st /* /usr/include/pthread_types.h:84:36 */
+type Pthread_rwlockattr_t = __pthread_rwlockattr_st /* /usr/include/pthread_types.h:85:40 */
+type Pthread_barrier_t = __pthread_barrier_st /* /usr/include/pthread_types.h:86:37 */
+type Pthread_barrierattr_t = __pthread_barrierattr_st /* /usr/include/pthread_types.h:87:41 */
+type Pthread_key_t = int32 /* /usr/include/pthread_types.h:88:13 */
type Div_t = struct {
Fquot int32
Frem int32
-} /* stdlib.h:59:3 */
+} /* /usr/include/stdlib.h:59:3 */
type Ldiv_t = struct {
Fquot int64
Frem int64
-} /* stdlib.h:64:3 */
+} /* /usr/include/stdlib.h:64:3 */
type Lldiv_t = struct {
Fquot int64
Frem int64
-} /* stdlib.h:74:3 */
+} /* /usr/include/stdlib.h:74:3 */
type Qdiv_t = struct {
Fquot Quad_t
Frem Quad_t
-} /* stdlib.h:81:3 */
+} /* /usr/include/stdlib.h:81:3 */
// $NetBSD: stddef.h,v 1.20 2016/03/20 16:26:06 christos Exp $
@@ -8869,7 +8899,7 @@ type Qdiv_t = struct {
// Written by Klaus Klein <kleink@NetBSD.org>, December 22, 1999.
// Public domain.
-type Max_align_t = struct{ F_v uintptr } /* stddef.h:75:3 */
+type Max_align_t = struct{ F_v uintptr } /* /usr/include/stddef.h:75:3 */
// Use a macro to replace memcpy() if compiled with SQLITE_INLINE_MEMCPY.
// This allows better measurements of where memcpy() is used when running
@@ -8928,13 +8958,13 @@ type Max_align_t = struct{ F_v uintptr } /* stddef.h:75:3 */
// types can be conveniently redefined at compile-type. Like this:
//
// cc '-DUINTPTR_TYPE=long long int' ...
-type I64 = Sqlite_int64 /* sqlite3.c:13902:22 */ // 8-byte signed integer
-type U64 = Sqlite_uint64 /* sqlite3.c:13903:23 */ // 8-byte unsigned integer
-type U32 = uint32 /* sqlite3.c:13904:21 */ // 4-byte unsigned integer
-type U16 = uint16 /* sqlite3.c:13905:21 */ // 2-byte unsigned integer
-type I16 = int16 /* sqlite3.c:13906:20 */ // 2-byte signed integer
-type U8 = uint8 /* sqlite3.c:13907:20 */ // 1-byte unsigned integer
-type I8 = int8 /* sqlite3.c:13908:19 */ // 1-byte signed integer
+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
// 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
@@ -8945,7 +8975,7 @@ type I8 = int8 /* sqlite3.c:13908:19 */ // 1-byte signed integer
// 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 /* sqlite3.c:13927:14 */ // 32-bit is the default
+type TRowcnt = U32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14242: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
@@ -8968,12 +8998,12 @@ type TRowcnt = U32 /* sqlite3.c:13927:14 */ // 32-bit is the default
// Examples:
//
// 0.5 -> -10 0.1 -> -33 0.0625 -> -40
-type LogEst = int16 /* sqlite3.c:13953:20 */
+type LogEst = int16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14268: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 /* sqlite3.c:13978:15 */
+type Uptr = U64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14293:15 */
// An instance of the following structure is used to store the busy-handler
// callback for a given sqlite handle.
@@ -8987,7 +9017,7 @@ type BusyHandler1 = struct {
FpBusyArg uintptr
FnBusy int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// An instance of the following structure is used to store the busy-handler
// callback for a given sqlite handle.
@@ -8996,7 +9026,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 /* sqlite3.c:14149:28 */
+type BusyHandler = BusyHandler1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14464:28 */
// Name of table that holds the database schema.
//
@@ -9075,7 +9105,7 @@ type AggInfo1 = struct {
FaFunc uintptr
FnFunc int32
FselId U32
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Name of table that holds the database schema.
//
@@ -9138,21 +9168,21 @@ type AggInfo1 = struct {
// cases the parameters are named as per the usual conventions.
// Forward references to structures
-type AggInfo = AggInfo1 /* sqlite3.c:14259:24 */
+type AggInfo = AggInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14574:24 */
type AuthContext1 = struct {
FzAuthContext uintptr
FpParse uintptr
-} /* sqlite3.c:14260:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14575:9 */
-type AuthContext = AuthContext1 /* sqlite3.c:14260:28 */
+type AuthContext = AuthContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14575:28 */
type AutoincInfo1 = struct {
FpNext uintptr
FpTab uintptr
FiDb int32
FregCtr int32
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type AutoincInfo = AutoincInfo1 /* sqlite3.c:14261:28 */
+type AutoincInfo = AutoincInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14576:28 */
type Bitvec1 = struct {
FiSize U32
FnSet U32
@@ -9162,9 +9192,9 @@ type Bitvec1 = struct {
F__ccgo_pad1 [0]uint64
FaBitmap [496]U8
}
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Bitvec = Bitvec1 /* sqlite3.c:14262:23 */
+type Bitvec = Bitvec1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14577:23 */
type CollSeq1 = struct {
FzName uintptr
Fenc U8
@@ -9172,9 +9202,9 @@ type CollSeq1 = struct {
FpUser uintptr
FxCmp uintptr
FxDel uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type CollSeq = CollSeq1 /* sqlite3.c:14263:24 */
+type CollSeq = CollSeq1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14578:24 */
type Column1 = struct {
FzCnName uintptr
FnotNull uint8 /* unsigned notNull: 4, unsigned eCType: 4 */
@@ -9186,9 +9216,9 @@ type Column1 = struct {
FiDflt U16
FcolFlags U16
F__ccgo_pad3 [6]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Column = Column1 /* sqlite3.c:14264:23 */
+type Column = Column1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14579:23 */
type Cte1 = struct {
FzName uintptr
FpCols uintptr
@@ -9197,9 +9227,9 @@ type Cte1 = struct {
FpUse uintptr
FeM10d U8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Cte = Cte1 /* sqlite3.c:14265:20 */
+type Cte = Cte1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14580:20 */
type CteUse1 = struct {
FnUse int32
FaddrM9e int32
@@ -9208,9 +9238,9 @@ type CteUse1 = struct {
FnRowEst LogEst
FeM10d U8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type CteUse = CteUse1 /* sqlite3.c:14266:23 */
+type CteUse = CteUse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14581:23 */
type Db1 = struct {
FzDbSName uintptr
FpBt uintptr
@@ -9218,9 +9248,9 @@ type Db1 = struct {
FbSyncSet U8
F__ccgo_pad1 [6]byte
FpSchema uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Db = Db1 /* sqlite3.c:14267:19 */
+type Db = Db1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14582:19 */
type DbFixer1 = struct {
FpParse uintptr
Fw Walker
@@ -9230,9 +9260,9 @@ type DbFixer1 = struct {
FzDb uintptr
FzType uintptr
FpName uintptr
-} /* sqlite3.c:14268:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14583:9 */
-type DbFixer = DbFixer1 /* sqlite3.c:14268:24 */
+type DbFixer = DbFixer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14583:24 */
type Schema1 = struct {
Fschema_cookie int32
FiGeneration int32
@@ -9245,29 +9275,29 @@ type Schema1 = struct {
Fenc U8
FschemaFlags U16
Fcache_size int32
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Schema = Schema1 /* sqlite3.c:14269:23 */
+type Schema = Schema1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14584:23 */
type Expr1 = struct {
- Fop U8
- FaffExpr int8
- Fop2 U8
- F__ccgo_pad1 [1]byte
- Fflags U32
- Fu struct{ FzToken uintptr }
- FpLeft uintptr
- FpRight uintptr
- Fx struct{ FpList uintptr }
- FnHeight int32
- FiTable int32
- FiColumn YnVar
- FiAgg I16
- FiRightJoinTable int32
- FpAggInfo uintptr
- Fy struct{ FpTab uintptr }
-} /* sqlite3.c:578:9 */
-
-type Expr = Expr1 /* sqlite3.c:14270:21 */
+ Fop U8
+ FaffExpr int8
+ Fop2 U8
+ F__ccgo_pad1 [1]byte
+ Fflags U32
+ Fu struct{ FzToken uintptr }
+ FpLeft uintptr
+ FpRight uintptr
+ Fx struct{ FpList uintptr }
+ FnHeight int32
+ FiTable int32
+ FiColumn YnVar
+ FiAgg I16
+ Fw struct{ FiRightJoinTable int32 }
+ FpAggInfo uintptr
+ Fy struct{ FpTab uintptr }
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
+
+type Expr = Expr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14585:21 */
type ExprList1 = struct {
FnExpr int32
FnAlloc int32
@@ -9287,9 +9317,9 @@ type ExprList1 = struct {
}
F__ccgo_pad3 [4]byte
}
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type ExprList = ExprList1 /* sqlite3.c:14271:25 */
+type ExprList = ExprList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14586:25 */
type FKey1 = struct {
FpFrom uintptr
FpNextFrom uintptr
@@ -9306,17 +9336,17 @@ type FKey1 = struct {
F__ccgo_pad1 [4]byte
FzCol uintptr
}
-} /* sqlite3.c:14272:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14587:9 */
-type FKey = FKey1 /* sqlite3.c:14272:21 */
+type FKey = FKey1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14587:21 */
type FuncDestructor1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FxDestroy uintptr
FpUserData uintptr
-} /* sqlite3.c:14273:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14588:9 */
-type FuncDestructor = FuncDestructor1 /* sqlite3.c:14273:31 */
+type FuncDestructor = FuncDestructor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14588:31 */
type FuncDef1 = struct {
FnArg I8
F__ccgo_pad1 [3]byte
@@ -9329,19 +9359,19 @@ type FuncDef1 = struct {
FxInverse uintptr
FzName uintptr
Fu struct{ FpHash uintptr }
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type FuncDef = FuncDef1 /* sqlite3.c:14274:24 */
-type FuncDefHash1 = struct{ Fa [23]uintptr } /* sqlite3.c:14275: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 FuncDefHash = FuncDefHash1 /* sqlite3.c:14275:28 */
+type FuncDefHash = FuncDefHash1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14590:28 */
type IdList1 = struct {
Fa uintptr
FnId int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type IdList = IdList1 /* sqlite3.c:14276:23 */
+type IdList = IdList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14591:23 */
type Index1 = struct {
FzName uintptr
FaiColumn uintptr
@@ -9370,9 +9400,9 @@ type Index1 = struct {
FnRowEst0 TRowcnt
F__ccgo_pad3 [4]byte
FcolNotIdxed Bitmask
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Index = Index1 /* sqlite3.c:14277:22 */
+type Index = Index1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14592:22 */
type IndexSample1 = struct {
Fp uintptr
Fn int32
@@ -9380,9 +9410,9 @@ type IndexSample1 = struct {
FanEq uintptr
FanLt uintptr
FanDLt uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type IndexSample = IndexSample1 /* sqlite3.c:14278:28 */
+type IndexSample = IndexSample1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14593:28 */
type KeyInfo1 = struct {
FnRef U32
Fenc U8
@@ -9393,9 +9423,9 @@ type KeyInfo1 = struct {
Fdb uintptr
FaSortFlags uintptr
FaColl [1]uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type KeyInfo = KeyInfo1 /* sqlite3.c:14280:24 */
+type KeyInfo = KeyInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14595:24 */
type Lookaside1 = struct {
FbDisable U32
Fsz U16
@@ -9412,12 +9442,12 @@ type Lookaside1 = struct {
FpMiddle uintptr
FpStart uintptr
FpEnd uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Lookaside = Lookaside1 /* sqlite3.c:14281:26 */
-type LookasideSlot1 = struct{ FpNext uintptr } /* 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 LookasideSlot = LookasideSlot1 /* sqlite3.c:14282:30 */
+type LookasideSlot = LookasideSlot1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14597:30 */
type Module1 = struct {
FpModule uintptr
FzName uintptr
@@ -9426,9 +9456,9 @@ type Module1 = struct {
FpAux uintptr
FxDestroy uintptr
FpEpoTab uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Module = Module1 /* sqlite3.c:14283:23 */
+type Module = Module1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14598:23 */
type NameContext1 = struct {
FpParse uintptr
FpSrcList uintptr
@@ -9439,9 +9469,9 @@ type NameContext1 = struct {
FncFlags int32
F__ccgo_pad1 [4]byte
FpWinSelect uintptr
-} /* sqlite3.c:14284:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14599:9 */
-type NameContext = NameContext1 /* sqlite3.c:14284:28 */
+type NameContext = NameContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14599:28 */
type Parse1 = struct {
Fdb uintptr
FzErrMsg uintptr
@@ -9498,6 +9528,7 @@ type Parse1 = struct {
FeOrconf U8
FdisableTriggers U8
FaTempReg [8]int32
+ FpOuterParse uintptr
FsNameToken Token
FsLastToken Token
FnVar YnVar
@@ -9520,16 +9551,16 @@ type Parse1 = struct {
FapVtabLock uintptr
FpWith uintptr
FpRename uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Parse = Parse1 /* sqlite3.c:14285:22 */
+type Parse = Parse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14600:22 */
type ParseCleanup1 = struct {
FpNext uintptr
FpPtr uintptr
FxCleanup uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type ParseCleanup = ParseCleanup1 /* sqlite3.c:14286:29 */
+type ParseCleanup = ParseCleanup1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14601:29 */
type PreUpdate1 = struct {
Fv uintptr
FpCsr uintptr
@@ -9546,23 +9577,23 @@ type PreUpdate1 = struct {
FaNew uintptr
FpTab uintptr
FpPk uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type PreUpdate = PreUpdate1 /* sqlite3.c:14287:26 */
+type PreUpdate = PreUpdate1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14602:26 */
type PrintfArguments1 = struct {
FnArg int32
FnUsed int32
FapArg uintptr
-} /* sqlite3.c:14288:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14603:9 */
-type PrintfArguments = PrintfArguments1 /* sqlite3.c:14288:32 */
+type PrintfArguments = PrintfArguments1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14603:32 */
type RenameToken1 = struct {
Fp uintptr
Ft Token
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type RenameToken = RenameToken1 /* sqlite3.c:14289:28 */
+type RenameToken = RenameToken1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14604:28 */
type Returning1 = struct {
FpParse uintptr
FpReturnEL uintptr
@@ -9572,9 +9603,9 @@ type Returning1 = struct {
FnRetCol int32
FiRetReg int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:14290:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14605:9 */
-type Returning = Returning1 /* sqlite3.c:14290:26 */
+type Returning = Returning1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14605:26 */
type RowSet1 = struct {
FpChunk uintptr
Fdb uintptr
@@ -9585,17 +9616,17 @@ type RowSet1 = struct {
FnFresh U16
FrsFlags U16
FiBatch int32
-} /* sqlite3.c:14291:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:9 */
-type RowSet = RowSet1 /* sqlite3.c:14291:23 */
+type RowSet = RowSet1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:23 */
type Savepoint1 = struct {
FzName uintptr
FnDeferredCons I64
FnDeferredImmCons I64
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Savepoint = Savepoint1 /* sqlite3.c:14292:26 */
+type Savepoint = Savepoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14607:26 */
type Select1 = struct {
Fop U8
F__ccgo_pad1 [1]byte
@@ -9618,16 +9649,16 @@ type Select1 = struct {
FpWith uintptr
FpWin uintptr
FpWinDefn uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Select = Select1 /* sqlite3.c:14293:23 */
+type Select = Select1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14608:23 */
type SQLiteThread1 = struct {
FxTask uintptr
FpIn uintptr
FpResult uintptr
-} /* sqlite3.c:14294:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14609:9 */
-type SQLiteThread = SQLiteThread1 /* sqlite3.c:14294:29 */
+type SQLiteThread = SQLiteThread1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14609:29 */
type SelectDest1 = struct {
FeDest U8
F__ccgo_pad1 [3]byte
@@ -9638,9 +9669,9 @@ type SelectDest1 = struct {
F__ccgo_pad2 [4]byte
FzAffSdst uintptr
FpOrderBy uintptr
-} /* sqlite3.c:14295:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14610:9 */
-type SelectDest = SelectDest1 /* sqlite3.c:14295:27 */
+type SelectDest = SelectDest1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14610:27 */
type SrcItem1 = struct {
FpSchema uintptr
FzDatabase uintptr
@@ -9664,17 +9695,17 @@ type SrcItem1 = struct {
FcolUsed Bitmask
Fu1 struct{ FzIndexedBy uintptr }
Fu2 struct{ FpIBIndex uintptr }
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type SrcItem = SrcItem1 /* sqlite3.c:14296:24 */
+type SrcItem = SrcItem1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14611:24 */
type SrcList1 = struct {
FnSrc int32
FnAlloc U32
Fa [1]SrcItem
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type SrcList = SrcList1 /* sqlite3.c:14297:24 */
-type StrAccum = sqlite3_str /* sqlite3.c:14298:28 */ // Internal alias for sqlite3_str
+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 Table1 = struct {
FzName uintptr
FaCol uintptr
@@ -9701,26 +9732,26 @@ type Table1 = struct {
}
FpTrigger uintptr
FpSchema uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Internal alias for sqlite3_str
-type Table = Table1 /* sqlite3.c:14299:22 */
+type Table = Table1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14614:22 */
type TableLock1 = struct {
FiDb int32
FiTab Pgno
FisWriteLock U8
F__ccgo_pad1 [7]byte
FzLockName uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type TableLock = TableLock1 /* sqlite3.c:14300:26 */
+type TableLock = TableLock1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14615:26 */
type Token1 = struct {
Fz uintptr
Fn uint32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Token = Token1 /* sqlite3.c:14301:22 */
+type Token = Token1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14616:22 */
type Trigger1 = struct {
FzName uintptr
Ftable uintptr
@@ -9734,9 +9765,9 @@ type Trigger1 = struct {
FpTabSchema uintptr
Fstep_list uintptr
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Trigger = Trigger1 /* sqlite3.c:14303:24 */
+type Trigger = Trigger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14618:24 */
type TriggerPrg1 = struct {
FpTrigger uintptr
FpNext uintptr
@@ -9744,9 +9775,9 @@ type TriggerPrg1 = struct {
Forconf int32
FaColmask [2]U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type TriggerPrg = TriggerPrg1 /* sqlite3.c:14304:27 */
+type TriggerPrg = TriggerPrg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14619:27 */
type TriggerStep1 = struct {
Fop U8
Forconf U8
@@ -9762,9 +9793,9 @@ type TriggerStep1 = struct {
FzSpan uintptr
FpNext uintptr
FpLast uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type TriggerStep = TriggerStep1 /* sqlite3.c:14305:28 */
+type TriggerStep = TriggerStep1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14620:28 */
type UnpackedRecord1 = struct {
FpKeyInfo uintptr
FaMem uintptr
@@ -9775,9 +9806,9 @@ type UnpackedRecord1 = struct {
Fr2 I8
FeqSeen U8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type UnpackedRecord = UnpackedRecord1 /* sqlite3.c:14306:31 */
+type UnpackedRecord = UnpackedRecord1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14621:31 */
type Upsert1 = struct {
FpUpsertTarget uintptr
FpUpsertTargetWhere uintptr
@@ -9793,9 +9824,9 @@ type Upsert1 = struct {
FiDataCur int32
FiIdxCur int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Upsert = Upsert1 /* sqlite3.c:14307:23 */
+type Upsert = Upsert1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14622:23 */
type VTable1 = struct {
Fdb uintptr
FpMod uintptr
@@ -9807,18 +9838,18 @@ type VTable1 = struct {
FiSavepoint int32
F__ccgo_pad2 [4]byte
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type VTable = VTable1 /* sqlite3.c:14308:23 */
+type VTable = VTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14623:23 */
type VtabCtx1 = struct {
FpVTable uintptr
FpTab uintptr
FpPrior uintptr
FbDeclared int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type VtabCtx = VtabCtx1 /* sqlite3.c:14309:24 */
+type VtabCtx = VtabCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14624:24 */
type Walker1 = struct {
FpParse uintptr
FxExprCallback uintptr
@@ -9828,15 +9859,16 @@ type Walker1 = struct {
FeCode U16
F__ccgo_pad1 [2]byte
Fu struct{ FpNC uintptr }
-} /* sqlite3.c:14268:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14583:9 */
-type Walker = Walker1 /* sqlite3.c:14310:23 */
+type Walker = Walker1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14625:23 */
type WhereInfo1 = struct {
FpParse uintptr
FpTabList uintptr
FpOrderBy uintptr
FpResultSet uintptr
FpWhere uintptr
+ FpLimit uintptr
FaiCurOnePass [2]int32
FiContinue int32
FiBreak int32
@@ -9858,9 +9890,9 @@ type WhereInfo1 = struct {
FsWC WhereClause
FsMaskSet WhereMaskSet
Fa [1]WhereLevel
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
-type WhereInfo = WhereInfo1 /* sqlite3.c:14311:26 */
+type WhereInfo = WhereInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:26 */
type Window1 = struct {
FzName uintptr
FzBase uintptr
@@ -9892,24 +9924,24 @@ type Window1 = struct {
FregEndRowid int32
FbExprArgs U8
F__ccgo_pad2 [3]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type Window = Window1 /* sqlite3.c:14312:23 */
+type Window = Window1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14627:23 */
type With1 = struct {
FnCte int32
FbView int32
FpOuter uintptr
Fa [1]Cte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type With = With1 /* sqlite3.c:14313:21 */
+type With = With1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14628: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 /* sqlite3.c:14326:15 */
+type Bitmask = U64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14641:15 */
// The number of bits in a Bitmask. "BMS" means "BitMask Size".
@@ -9920,7 +9952,7 @@ type Bitmask = U64 /* sqlite3.c:14326: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 /* sqlite3.c:14348:13 */
+type VList = int32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14664:13 */
// Defer sourcing vdbe.h and btree.h until after the "u8" and
// "BusyHandler" typedefs. vdbe.h also requires a few of the opaque
@@ -9947,7 +9979,7 @@ type VList = int32 /* sqlite3.c:14348: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 /* sqlite3.c:14389:13 */
+type Pgno = U32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14705:13 */
// Each open file is managed by a separate instance of the "Pager" structure.
type Pager1 = struct {
@@ -10015,10 +10047,10 @@ type Pager1 = struct {
FpPCache uintptr
FpWal uintptr
FzWal uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Each open file is managed by a separate instance of the "Pager" structure.
-type Pager = Pager1 /* sqlite3.c:14394:22 */
+type Pager = Pager1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14710:22 */
// Handle type for pages.
type PgHdr2 = struct {
@@ -10033,10 +10065,10 @@ type PgHdr2 = struct {
FnRef I16
FpDirtyNext uintptr
FpDirtyPrev uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Handle type for pages.
-type DbPage = PgHdr2 /* sqlite3.c:14399:22 */
+type DbPage = PgHdr2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14715:22 */
// Functions to support testing and debugging.
@@ -10078,7 +10110,7 @@ type Btree1 = struct {
FpNext uintptr
FpPrev uintptr
Flock BtLock
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Functions to support testing and debugging.
@@ -10107,7 +10139,7 @@ type Btree1 = struct {
// it must be turned on for each database using "PRAGMA auto_vacuum = 1".
// Forward declarations of structure
-type Btree = Btree1 /* sqlite3.c:14642:22 */
+type Btree = Btree1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14958:22 */
type BtCursor1 = struct {
FeState U8
FcurFlags U8
@@ -10130,9 +10162,9 @@ type BtCursor1 = struct {
FpKeyInfo uintptr
FpPage uintptr
FapPage [19]uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type BtCursor = BtCursor1 /* sqlite3.c:14643:25 */
+type BtCursor = BtCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14959:25 */
type BtShared1 = struct {
FpPager uintptr
Fdb uintptr
@@ -10169,9 +10201,9 @@ type BtShared1 = struct {
FpTmpSpace uintptr
FnPreformatSize int32
F__ccgo_pad5 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type BtShared = BtShared1 /* sqlite3.c:14644:25 */
+type BtShared = BtShared1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14960:25 */
type BtreePayload1 = struct {
FpKey uintptr
FnKey Sqlite3_int64
@@ -10182,9 +10214,9 @@ type BtreePayload1 = struct {
FnData int32
FnZero int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:14645:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14961:9 */
-type BtreePayload = BtreePayload1 /* sqlite3.c:14645:29 */
+type BtreePayload = BtreePayload1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14961:29 */
//************* End of btree.h **********************************************
//************* Continuing where we left off in sqliteInt.h *****************
@@ -10253,7 +10285,7 @@ type Vdbe1 = struct {
F__ccgo_pad5 [2]byte
FbtreeMask YDbMask
FlockMask YDbMask
- FaCounter [7]U32
+ FaCounter [9]U32
FzSql uintptr
FpFree uintptr
FpFrame uintptr
@@ -10262,7 +10294,7 @@ type Vdbe1 = struct {
Fexpmask U32
FpProgram uintptr
FpAuxData uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
//************* End of btree.h **********************************************
//************* Continuing where we left off in sqliteInt.h *****************
@@ -10288,11 +10320,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 /* sqlite3.c:15047:21 */
+type Vdbe = Vdbe1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15363:21 */
// The names of the following types declared in vdbeInt.h are required
// for the VdbeOp definition.
-type Mem = sqlite3_value /* sqlite3.c:15053:30 */
+type Mem = sqlite3_value /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15369:30 */
type SubProgram1 = struct {
FaOp uintptr
FnOp int32
@@ -10302,9 +10334,9 @@ type SubProgram1 = struct {
FaOnce uintptr
Ftoken uintptr
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type SubProgram = SubProgram1 /* sqlite3.c:15054:27 */
+type SubProgram = SubProgram1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15370:27 */
// A single instruction of the virtual machine has an opcode
// and as many as three operands. The instruction is recorded
@@ -10321,7 +10353,7 @@ type VdbeOp1 = struct {
Fi int32
F__ccgo_pad2 [4]byte
}
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// A single instruction of the virtual machine has an opcode
// and as many as three operands. The instruction is recorded
@@ -10330,9 +10362,9 @@ type p4union = struct {
F__ccgo_pad1 [0]uint64
Fi int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type VdbeOp = VdbeOp1 /* sqlite3.c:15100:23 */
+type VdbeOp = VdbeOp1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15416:23 */
// A smaller version of VdbeOp used for the VdbeAddOpList() function because
// it takes up less space.
@@ -10341,11 +10373,11 @@ type VdbeOpList1 = struct {
Fp1 int8
Fp2 int8
Fp3 int8
-} /* sqlite3.c:15120:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15436:1 */
-type VdbeOpList = VdbeOpList1 /* sqlite3.c:15126:27 */
+type VdbeOpList = VdbeOpList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15442:27 */
-type RecordCompare = uintptr /* sqlite3.c:15537:13 */
+type RecordCompare = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15857:13 */
// Use SQLITE_ENABLE_COMMENTS to enable generation of extra comments on
// each VDBE opcode.
@@ -10410,7 +10442,7 @@ type RecordCompare = uintptr /* sqlite3.c:15537:13 */
// This header file defines the interface that the sqlite page cache
// subsystem.
-type PgHdr = PgHdr2 /* sqlite3.c:15670:22 */
+type PgHdr = PgHdr2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15990:22 */
type PCache2 = struct {
FpDirty uintptr
FpDirtyTail uintptr
@@ -10426,12 +10458,12 @@ type PCache2 = struct {
FxStress uintptr
FpStress uintptr
FpCache uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type PCache = PCache2 /* sqlite3.c:15671:23 */
+type PCache = PCache2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15991:23 */
// typedef for the authorization callback function.
-type Sqlite3_xauth = uintptr /* sqlite3.c:16439:15 */
+type Sqlite3_xauth = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:16759:15 */
// This is an extra SQLITE_TRACE macro that indicates "legacy" tracing
// in the style of sqlite3_trace()
@@ -10448,7 +10480,7 @@ type sqlite3InitInfo = struct {
ForphanTrigger uint8 /* unsigned orphanTrigger: 1, unsigned imposterTable: 1, unsigned reopenMemdb: 1 */
F__ccgo_pad2 [7]byte
FazInit uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Allowed values for Table.tabFlags.
//
@@ -10507,7 +10539,7 @@ type sColMap = struct {
FiFrom int32
F__ccgo_pad1 [4]byte
FzCol uintptr
-} /* sqlite3.c:14272:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14587:9 */
// An instance of this structure contains information needed to generate
// code for a SELECT that contains aggregate functions.
@@ -10528,7 +10560,7 @@ type AggInfo_col = struct {
FiColumn I16
FiSorterColumn I16
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// An instance of this structure contains information needed to generate
// code for a SELECT that contains aggregate functions.
@@ -10548,7 +10580,7 @@ type AggInfo_func = struct {
FiDistinct int32
FiDistAddr int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/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
@@ -10558,7 +10590,7 @@ 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 /* sqlite3.c:17651:13 */
+type YnVar = I16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:17979:13 */
// The following are the meanings of bits in the Expr.flags field.
// Value restrictions:
@@ -10628,7 +10660,7 @@ type ExprList_item = struct {
}
}
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Allowed values for Expr.a.eEName
@@ -10649,10 +10681,10 @@ type IdList_item = struct {
FzName uintptr
Fidx int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// The yDbMask datatype for the bitmask of all attached databases.
-type YDbMask = uint32 /* sqlite3.c:18427:24 */
+type YDbMask = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:18758:24 */
// A pointer to this structure is used to communicate information
// from sqlite3Init and OP_ParseSchema into the sqlite3InitCallback.
@@ -10665,7 +10697,7 @@ type InitData = struct {
FnInitRow U32
FmxPage Pgno
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:18786:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19119:3 */
// Allowed values for mInitFlags
@@ -10724,10 +10756,13 @@ type Sqlite3Config = struct {
FmxMemdbSize Sqlite3_int64
FxTestCallback uintptr
FbLocaltimeFault int32
+ F__ccgo_pad4 [4]byte
+ FxAltLocaltime uintptr
FiOnceResetThreshold int32
FszSorterRef U32
FiPrngSeed uint32
-} /* sqlite3.c:18817:1 */
+ F__ccgo_pad5 [4]byte
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19150:1 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -10750,7 +10785,7 @@ type RefSrcList = struct {
FpRef uintptr
FnExclude I64
FaiExclude uintptr
-} /* sqlite3.c:18916:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19250:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -10772,7 +10807,7 @@ type IdxCover = struct {
FpIdx uintptr
FiCur int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:18918:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19252:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -10798,7 +10833,7 @@ type IdxExprTrans1 = struct {
FiTabCol int32
FpWInfo uintptr
Fdb uintptr
-} /* sqlite3.c:18919:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19253:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -10822,7 +10857,7 @@ type WindowRewrite1 = struct {
FpSub uintptr
FpTab uintptr
FpSubSelect uintptr
-} /* sqlite3.c:18922:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19256:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -10848,7 +10883,7 @@ type WhereConst1 = struct {
FbHasAffBlob int32
F__ccgo_pad1 [4]byte
FapExpr uintptr
-} /* sqlite3.c:18923:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19257:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -10872,7 +10907,7 @@ type RenameCtx1 = struct {
FiCol int32
FpTab uintptr
FzOld uintptr
-} /* sqlite3.c:18924:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19258:5 */
//************* End of sqliteInt.h ******************************************
//************* Begin file os_common.h **************************************
@@ -10909,6 +10944,13 @@ type RenameCtx1 = struct {
//************* End of os_common.h ******************************************
//************* Begin file ctime.c ******************************************
+// DO NOT EDIT!
+// This file is automatically generated by the script in the canonical
+// SQLite source tree at tool/mkctimec.tcl.
+//
+// To modify this header, edit any of the various lists in that script
+// which specify categories of generated conditionals in this file.
+
// 2010 February 23
//
// The author disclaims copyright to this source code. In place of
@@ -10940,7 +10982,7 @@ type RenameCtx1 = struct {
// This array looks large, but in a typical installation actually uses
// only a handful of compile-time options, so most times this array is usually
// rather short and uses little memory space.
-var sqlite3azCompileOpt = [52]uintptr{
+var sqlite3azCompileOpt = [51]uintptr{
ts + 7,
ts + 27,
@@ -10961,42 +11003,41 @@ var sqlite3azCompileOpt = [52]uintptr{
ts + 390,
ts + 402,
ts + 417,
- ts + 430,
- ts + 452,
- ts + 477,
- ts + 500,
- ts + 522,
+ ts + 439,
+ ts + 464,
+ ts + 487,
+ ts + 509,
+ ts + 520,
ts + 533,
- ts + 546,
- ts + 561,
+ ts + 548,
+ ts + 564,
ts + 577,
- ts + 590,
- ts + 611,
- ts + 635,
- ts + 658,
- ts + 674,
- ts + 690,
- ts + 714,
- ts + 741,
- ts + 761,
- ts + 782,
- ts + 804,
- ts + 834,
- ts + 850,
- ts + 876,
- ts + 896,
- ts + 922,
- ts + 945,
- ts + 971,
- ts + 993,
- ts + 1014,
- ts + 1025,
- ts + 1033,
+ ts + 598,
+ ts + 622,
+ ts + 645,
+ ts + 661,
+ ts + 677,
+ ts + 701,
+ ts + 728,
+ ts + 748,
+ ts + 769,
+ ts + 791,
+ ts + 821,
+ ts + 837,
+ ts + 863,
+ ts + 883,
+ ts + 909,
+ ts + 932,
+ ts + 958,
+ ts + 980,
+ ts + 1001,
+ ts + 1012,
+ ts + 1020,
+ ts + 1034,
ts + 1047,
- ts + 1060,
-} /* sqlite3.c:20516:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:20869:19 */
-func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* sqlite3.c:21248:27: */
+func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21596:27: */
*(*int32)(unsafe.Pointer(pnOpt)) = int32(uint64(unsafe.Sizeof(sqlite3azCompileOpt)) / uint64(unsafe.Sizeof(uintptr(0))))
return uintptr(uintptr(unsafe.Pointer(&sqlite3azCompileOpt)))
}
@@ -11063,10 +11104,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
-} /* sqlite3.c:21280:36 */
-var Xsqlite3aLTb uintptr = 0 /* sqlite3.c:21342:36 */
-var Xsqlite3aEQb uintptr = 0 /* sqlite3.c:21343:36 */
-var Xsqlite3aGTb uintptr = 0 /* sqlite3.c:21344:36 */
+} /* 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 */
// The following 256 byte lookup table is used to support SQLites built-in
// equivalents to the following standard library functions:
@@ -11130,7 +11171,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 ........
-} /* sqlite3.c:21374:36 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21722:36 */
// EVIDENCE-OF: R-02982-34736 In order to maintain full backwards
// compatibility for legacy applications, the URI filename capability is
@@ -11186,15 +11227,15 @@ var Xsqlite3Config = Sqlite3Config{
FnStmtSpill: 64 * 1024,
FnPage: SQLITE_DEFAULT_PCACHE_INITSZ, // sharedCacheEnabled
FszPma: U32(SQLITE_SORTER_PMASZ), // pLogArg
- FmxMemdbSize: int64(SQLITE_MEMDB_DEFAULT_MAXSIZE), // bLocaltimeFault
+ FmxMemdbSize: int64(SQLITE_MEMDB_DEFAULT_MAXSIZE), // xAltLocaltime
FiOnceResetThreshold: 0x7ffffffe, // iOnceResetThreshold
FszSorterRef: U32(SQLITE_DEFAULT_SORTERREF_SIZE), // iPrngSeed
-} /* sqlite3.c:21494:48 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21842:48 */
// Hash table for global functions - functions common to all
// database connections. After initialization, this table is
// read-only.
-var Xsqlite3BuiltinFunctions FuncDefHash /* sqlite3.c:21555:28: */
+var Xsqlite3BuiltinFunctions FuncDefHash /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21904:28: */
// The value of the "pending" byte must be 0x40000000 (1 byte past the
// 1-gibabyte boundary) in a compatible database. SQLite never uses
@@ -11212,21 +11253,21 @@ var Xsqlite3BuiltinFunctions FuncDefHash /* sqlite3.c:21555:28: */
// 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 /* sqlite3.c:21596:20 */
+var Xsqlite3PendingByte int32 = 0x40000000 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21945:20 */
// Tracing flags set by SQLITE_TESTCTRL_TRACEFLAGS.
-var Xsqlite3SelectTrace U32 = U32(0) /* sqlite3.c:21602:20 */
-var Xsqlite3WhereTrace U32 = U32(0) /* sqlite3.c:21603:20 */
+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 */
// #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 = [182]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(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x08), uint8(0x00), uint8(0x10), uint8(0x10) /* 72 */, uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x10) /* 80 */, uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x02), uint8(0x00) /* 88 */, uint8(0x00), uint8(0x12), uint8(0x1e), uint8(0x20), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 96 */, uint8(0x10), uint8(0x10), uint8(0x00), 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(0x12), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00) /* 120 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00) /* 128 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00) /* 136 */, uint8(0x04), uint8(0x04), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x10), uint8(0x00) /* 144 */, uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 152 */, uint8(0x10), uint8(0x00), uint8(0x06), uint8(0x10), uint8(0x00), uint8(0x04), uint8(0x1a), uint8(0x00) /* 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(0x00), uint8(0x10), uint8(0x10) /* 176 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00)} /* sqlite3.c:21612:36 */
+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 */
// Name of the default collating sequence
-var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1073)) /* sqlite3.c:21617:27 */
+var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1060)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21966:27 */
// Standard typenames. These names must match the COLTYPE_* definitions.
// Adjust the SQLITE_N_STDTYPE value if adding or removing entries.
@@ -11242,7 +11283,7 @@ var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1073)) /* sqlite3.c:2161
// 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)} /* sqlite3.c:21635:36 */
+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 Xsqlite3StdTypeAffinity = [6]int8{
int8(SQLITE_AFF_NUMERIC),
int8(SQLITE_AFF_BLOB),
@@ -11250,7 +11291,7 @@ var Xsqlite3StdTypeAffinity = [6]int8{
int8(SQLITE_AFF_INTEGER),
int8(SQLITE_AFF_REAL),
int8(SQLITE_AFF_TEXT),
-} /* sqlite3.c:21636:27 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21985:27 */
var Xsqlite3StdTypeMap = [6]int8{
int8(0),
int8(SQLITE_BLOB),
@@ -11258,15 +11299,15 @@ var Xsqlite3StdTypeMap = [6]int8{
int8(SQLITE_INTEGER),
int8(SQLITE_FLOAT),
int8(SQLITE_TEXT),
-} /* sqlite3.c:21644:27 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21993:27 */
var Xsqlite3StdType = [6]uintptr{
+ ts + 1067,
+ ts + 1071,
+ ts + 1076,
ts + 1080,
- ts + 1084,
- ts + 1089,
+ ts + 1088,
ts + 1093,
- ts + 1101,
- ts + 1106,
-} /* sqlite3.c:21652:27 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22001:27 */
//************* End of global.c *********************************************
//************* Begin file status.c *****************************************
@@ -11311,10 +11352,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 /* sqlite3.c:21726:23 */
+type Op = VdbeOp1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22075:23 */
// Boolean values
-type Bool = uint32 /* sqlite3.c:21731:18 */
+type Bool = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22080:18 */
// Opaque type used by code in vdbesort.c
type VdbeSorter1 = struct {
@@ -11337,10 +11378,10 @@ type VdbeSorter1 = struct {
FtypeMask U8
F__ccgo_pad1 [3]byte
FaTask [1]SortSubtask
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// Opaque type used by code in vdbesort.c
-type VdbeSorter = VdbeSorter1 /* sqlite3.c:21734:27 */
+type VdbeSorter = VdbeSorter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:27 */
// Elements of the linked list at Vdbe.pAuxData
type AuxData1 = struct {
@@ -11349,10 +11390,10 @@ type AuxData1 = struct {
FpAux uintptr
FxDeleteAux uintptr
FpNextAux uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Elements of the linked list at Vdbe.pAuxData
-type AuxData = AuxData1 /* sqlite3.c:21737:24 */
+type AuxData = AuxData1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22086:24 */
// Types of VDBE cursors
@@ -11375,9 +11416,8 @@ type VdbeCursor1 = struct {
F__ccgo_pad2 [1]byte
FseekHit U16
F__ccgo_pad3 [4]byte
- FpBtx uintptr
+ Fub struct{ FpBtx uintptr }
FseqCount I64
- FaAltMap uintptr
FcacheStatus U32
FseekResult int32
FpAltCursor uintptr
@@ -11395,7 +11435,7 @@ type VdbeCursor1 = struct {
FszRow U32
FaType [1]U32
F__ccgo_pad5 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// Types of VDBE cursors
@@ -11407,7 +11447,7 @@ type VdbeCursor1 = struct {
// * A sorter
// * A virtual table
// * A one-row "pseudotable" stored in a single register
-type VdbeCursor = VdbeCursor1 /* sqlite3.c:21755:27 */
+type VdbeCursor = VdbeCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22104:27 */
// A value for VdbeCursor.cacheStatus that means the cache is always invalid.
@@ -11449,7 +11489,7 @@ type VdbeFrame1 = struct {
FnChildCsr int32
FnChange I64
FnDbChange I64
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
// A value for VdbeCursor.cacheStatus that means the cache is always invalid.
@@ -11472,7 +11512,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 /* sqlite3.c:21842:26 */
+type VdbeFrame = VdbeFrame1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22193:26 */
// Magic number for sanity checking on VdbeFrame objects
@@ -11482,11 +11522,11 @@ type VdbeFrame = VdbeFrame1 /* sqlite3.c:21842:26 */
// 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 } /* sqlite3.c:578:9 */
+type MemValue = struct{ Fr float64 } /* testdata/sqlite-amalgamation-3380500/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 /* sqlite3.c:22025:18 */ // Bit Field Type
+type Bft = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22376:18 */ // Bit Field Type
// The ScanStatus object holds a single value for the
// sqlite3_stmt_scanstatus() interface.
@@ -11498,13 +11538,13 @@ type ScanStatus1 = struct {
FnEst LogEst
F__ccgo_pad1 [6]byte
FzName uintptr
-} /* sqlite3.c:22030:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22381:9 */
// Bit Field Type
// The ScanStatus object holds a single value for the
// sqlite3_stmt_scanstatus() interface.
-type ScanStatus = ScanStatus1 /* sqlite3.c:22030:27 */
+type ScanStatus = ScanStatus1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22381:27 */
// The DblquoteStr object holds the text of a double-quoted
// string for a prepared statement. A linked list of these objects
@@ -11515,7 +11555,7 @@ type ScanStatus = ScanStatus1 /* sqlite3.c:22030:27 */
type DblquoteStr1 = struct {
FpNextStr uintptr
Fz [8]int8
-} /* sqlite3.c:22047:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22398:9 */
// The DblquoteStr object holds the text of a double-quoted
// string for a prepared statement. A linked list of these objects
@@ -11523,20 +11563,47 @@ 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 /* sqlite3.c:22047:28 */
+type DblquoteStr = DblquoteStr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22398: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
+// set of values on the right-hand side of an IN constraint.
+//
+// The value as passed into xFilter is an sqlite3_value with a "pointer"
+// type, such as is generated by sqlite3_result_pointer() and read by
+// sqlite3_value_pointer. Such values have MEM_Term|MEM_Subtype|MEM_Null
+// 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 ValueList1 = struct {
+ FpCsr uintptr
+ FpOut uintptr
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22526: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
+// set of values on the right-hand side of an IN constraint.
+//
+// The value as passed into xFilter is an sqlite3_value with a "pointer"
+// type, such as is generated by sqlite3_result_pointer() and read by
+// sqlite3_value_pointer. Such values have MEM_Term|MEM_Subtype|MEM_Null
+// 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 */
//************* End of vdbeInt.h ********************************************
//************* Continuing where we left off in status.c ********************
// Variables in which to record status information.
-type Sqlite3StatValueType = Sqlite3_int64 /* sqlite3.c:22320:23 */
+type Sqlite3StatValueType = Sqlite3_int64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22689:23 */
type sqlite3StatType = struct {
FnowValue [10]Sqlite3StatValueType
FmxValue [10]Sqlite3StatValueType
-} /* sqlite3.c:22324:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22693:9 */
-type Sqlite3StatType = sqlite3StatType /* sqlite3.c:22324:32 */
-var sqlite3Stat = sqlite3StatType{} /* sqlite3.c:22328:3 */
+type Sqlite3StatType = sqlite3StatType /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22693:32 */
+var sqlite3Stat = sqlite3StatType{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22697:3 */
// Elements of sqlite3Stat[] are protected by either the memory allocator
// mutex, or by the pcache1 mutex. The following array determines which.
@@ -11551,7 +11618,7 @@ var statMutex = [10]int8{
int8(1), // SQLITE_STATUS_PAGECACHE_SIZE
int8(0), // SQLITE_STATUS_SCRATCH_SIZE
int8(0), // SQLITE_STATUS_MALLOC_COUNT
-} /* sqlite3.c:22334:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22703:19 */
// The "wsdStat" macro will resolve to the status information
// state vector. If writable static data is unsupported on the target,
@@ -11561,7 +11628,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 { /* sqlite3.c:22366:30: */
+func Xsqlite3StatusValue(tls *libc.TLS, op int32) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22735:30: */
return *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8))
}
@@ -11575,7 +11642,7 @@ func Xsqlite3StatusValue(tls *libc.TLS, op int32) Sqlite3_int64 { /* sqlite3.c:2
//
// 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) { /* sqlite3.c:22386:21: */
+func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22755: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)) {
@@ -11583,14 +11650,14 @@ func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* sqlite3.c:22386:21:
}
}
-func Xsqlite3StatusDown(tls *libc.TLS, op int32, N int32) { /* sqlite3.c:22397:21: */
+func Xsqlite3StatusDown(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22766: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) { /* sqlite3.c:22411:21: */
+func Xsqlite3StatusHighwater(tls *libc.TLS, op int32, X int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22780:21: */
var newValue Sqlite3StatValueType
newValue = Sqlite3StatValueType(X)
@@ -11601,12 +11668,12 @@ func Xsqlite3StatusHighwater(tls *libc.TLS, op int32, X int32) { /* sqlite3.c:22
}
// Query status information.
-func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* sqlite3.c:22431:16: */
+func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22800:16: */
var pMutex uintptr
_ = pMutex
if op < 0 || op >= int32(uint64(unsafe.Sizeof([10]Sqlite3StatValueType{}))/uint64(unsafe.Sizeof(Sqlite3StatValueType(0)))) {
- return Xsqlite3MisuseError(tls, 22440)
+ return Xsqlite3MisuseError(tls, 22809)
}
if statMutex[op] != 0 {
pMutex = Xsqlite3Pcache1Mutex(tls)
@@ -11624,7 +11691,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 { /* sqlite3.c:22456:16: */
+func Xsqlite3_status(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22825:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -11640,7 +11707,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 { /* sqlite3.c:22473:12: */
+func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22842:12: */
var cnt U32 = U32(0)
for p != 0 {
p = (*LookasideSlot)(unsafe.Pointer(p)).FpNext
@@ -11650,7 +11717,7 @@ func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:22473:12:
}
// Count the number of slots of lookaside memory that are outstanding
-func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 { /* sqlite3.c:22485:20: */
+func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22854: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)
@@ -11662,7 +11729,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 { /* sqlite3.c:22499:16: */
+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: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -12080,7 +12147,7 @@ type tm = struct {
F__ccgo_pad1 [4]byte
Ftm_gmtoff int64
Ftm_zone uintptr
-} /* time.h:75:1 */
+} /* /usr/include/time.h:75:1 */
// ISO/IEC 9899:201x 7.27.1/3 Components of time
// $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
@@ -12150,7 +12217,7 @@ type tm = struct {
type timespec = struct {
Ftv_sec Time_t
Ftv_nsec int64
-} /* timespec.h:47:1 */
+} /* /usr/include/sys/timespec.h:47:1 */
// $NetBSD: time.h,v 1.79 2017/01/17 15:28:34 maya Exp $
@@ -12285,7 +12352,7 @@ type timeval = struct {
Ftv_sec Time_t
Ftv_usec Suseconds_t
F__ccgo_pad1 [4]byte
-} /* time.h:44:1 */
+} /* /usr/include/sys/time.h:44:1 */
// $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
@@ -12326,7 +12393,7 @@ type timeval = struct {
type timezone = struct {
Ftz_minuteswest int32
Ftz_dsttime int32
-} /* time.h:65:1 */
+} /* /usr/include/sys/time.h:65:1 */
// Operations on timevals.
@@ -12336,7 +12403,7 @@ type timezone = struct {
type bintime = struct {
Fsec Time_t
Ffrac Uint64_t
-} /* time.h:102:1 */
+} /* /usr/include/sys/time.h:102:1 */
// Operations on timespecs.
@@ -12355,7 +12422,7 @@ type itimerval = struct {
Ftv_usec Suseconds_t
F__ccgo_pad1 [4]byte
}
-} /* time.h:280:1 */
+} /* /usr/include/sys/time.h:280:1 */
// Structure defined by POSIX.1b to be like a itimerval, but with
// timespecs. Used in the timer_*() system calls.
@@ -12368,7 +12435,7 @@ type itimerspec = struct {
Ftv_sec Time_t
Ftv_nsec int64
}
-} /* time.h:289:1 */
+} /* /usr/include/sys/time.h:289:1 */
// $NetBSD: select.h,v 1.37 2014/04/25 15:52:45 pooka Exp $
@@ -12690,7 +12757,7 @@ type itimerspec = struct {
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
+type Sigset_t = struct{ F__bits [4]X__uint32_t } /* /usr/include/sys/sigtypes.h:62:3 */
// Macro for manipulating signal masks.
@@ -12699,11 +12766,11 @@ type sigaltstack = struct {
Fss_size Size_t
Fss_flags int32
F__ccgo_pad1 [4]byte
-} /* sigtypes.h:108:9 */
+} /* /usr/include/sys/sigtypes.h:108:9 */
// Macro for manipulating signal masks.
-type Stack_t = sigaltstack /* sigtypes.h:116:3 */
+type Stack_t = sigaltstack /* /usr/include/sys/sigtypes.h:116:3 */
// $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
// -
@@ -12739,9 +12806,9 @@ type Stack_t = sigaltstack /* sigtypes.h:116:3 */
// break the ABI of the system calls using this. We set a high private
// maximum so that new values can be added in the future without
// changing the width of the type.
-type Idtype_t = int32 /* idtype.h:60:3 */
+type Idtype_t = int32 /* /usr/include/sys/idtype.h:60:3 */
-type Timezone_t = uintptr /* time.h:198:24 */
+type Timezone_t = uintptr /* /usr/include/time.h:198:24 */
// The MSVC CRT on Windows CE may not have a localtime() function.
// So declare a substitute. The substitute function itself is
@@ -12765,14 +12832,14 @@ type DateTime1 = struct {
FtzSet int8
FisError int8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:22759:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23128: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 /* sqlite3.c:22759:25 */
+type DateTime = DateTime1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23128:25 */
// Convert zDate into one or more integers according to the conversion
// specifier zFormat.
@@ -12799,7 +12866,7 @@ type DateTime = DateTime1 /* sqlite3.c:22759:25 */
// 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 { /* sqlite3.c:22803:12: */
+func getDigits(tls *libc.TLS, zDate uintptr, zFormat uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23172:12: */
var ap Va_list
_ = ap
var cnt int32
@@ -12856,7 +12923,7 @@ end_getDigits:
return cnt
}
-var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* sqlite3.c:22806:20 */
+var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23175:20 */
// Parse a timezone extension on the end of a date-time.
// The extension is of the form:
@@ -12872,7 +12939,7 @@ var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* sqli
// return non-zero.
//
// A missing specifier is not considered an error.
-func parseTimezone(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c:22857:12: */
+func parseTimezone(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23226:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -12920,7 +12987,7 @@ __6:
__4:
;
zDate++
- if !(getDigits(tls, zDate, ts+1111, libc.VaList(bp, bp+16, bp+20)) != 2) {
+ if !(getDigits(tls, zDate, ts+1098, libc.VaList(bp, bp+16, bp+20)) != 2) {
goto __9
}
return 1
@@ -12946,7 +13013,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 { /* sqlite3.c:22893:12: */
+func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23262:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -12957,13 +13024,13 @@ func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c:2
// var s int32 at bp+32, 4
var ms float64 = 0.0
- if getDigits(tls, zDate, ts+1119, libc.VaList(bp, bp+24, bp+28)) != 2 {
+ if getDigits(tls, zDate, ts+1106, libc.VaList(bp, bp+24, bp+28)) != 2 {
return 1
}
zDate += uintptr(5)
if int32(*(*int8)(unsafe.Pointer(zDate))) == ':' {
zDate++
- if getDigits(tls, zDate, ts+1127, libc.VaList(bp+16, bp+32)) != 1 {
+ if getDigits(tls, zDate, ts+1114, libc.VaList(bp+16, bp+32)) != 1 {
return 1
}
zDate += uintptr(2)
@@ -12999,7 +13066,7 @@ func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c:2
}
// Put the DateTime object into its error state.
-func datetimeError(tls *libc.TLS, p uintptr) { /* sqlite3.c:22933:13: */
+func datetimeError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23302:13: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DateTime{})))
(*DateTime)(unsafe.Pointer(p)).FisError = int8(1)
}
@@ -13008,7 +13075,7 @@ func datetimeError(tls *libc.TLS, p uintptr) { /* sqlite3.c:22933:13: */
// that the YYYY-MM-DD is according to the Gregorian calendar.
//
// Reference: Meeus page 61
-func computeJD(tls *libc.TLS, p uintptr) { /* sqlite3.c:22944:13: */
+func computeJD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23313:13: */
var Y int32
var M int32
var D int32
@@ -13064,7 +13131,7 @@ func computeJD(tls *libc.TLS, p uintptr) { /* sqlite3.c:22944:13: */
// 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 { /* sqlite3.c:22994:12: */
+func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23363:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -13082,7 +13149,7 @@ func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c
} else {
neg = 0
}
- if getDigits(tls, zDate, ts+1131, libc.VaList(bp, bp+24, bp+28, bp+32)) != 3 {
+ if getDigits(tls, zDate, ts+1118, libc.VaList(bp, bp+24, bp+28, bp+32)) != 3 {
return 1
}
zDate += uintptr(10)
@@ -13115,7 +13182,7 @@ func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:23031:12: */
+func setDateTimeToCurrent(tls *libc.TLS, context uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23400:12: */
(*DateTime)(unsafe.Pointer(p)).FiJD = Xsqlite3StmtCurrentTime(tls, context)
if (*DateTime)(unsafe.Pointer(p)).FiJD > int64(0) {
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1)
@@ -13130,7 +13197,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) { /* sqlite3.c:23047:13: */
+func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23416:13: */
(*DateTime)(unsafe.Pointer(p)).Fs = r
(*DateTime)(unsafe.Pointer(p)).FrawS = int8(1)
if r >= 0.0 && r < 5373484.5 {
@@ -13153,7 +13220,7 @@ func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* sqlite3.c:23047:
// (":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 { /* sqlite3.c:23072:12: */
+func parseDateOrTime(tls *libc.TLS, context uintptr, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23441:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -13163,7 +13230,7 @@ func parseDateOrTime(tls *libc.TLS, context uintptr, zDate uintptr, p uintptr) i
return 0
} else if parseHhMmSs(tls, zDate, p) == 0 {
return 0
- } else if Xsqlite3StrICmp(tls, zDate, ts+1143) == 0 && Xsqlite3NotPureFunc(tls, context) != 0 {
+ } else if Xsqlite3StrICmp(tls, zDate, ts+1130) == 0 && Xsqlite3NotPureFunc(tls, context) != 0 {
return setDateTimeToCurrent(tls, context, p)
} else if Xsqlite3AtoF(tls, zDate, bp, Xsqlite3Strlen30(tls, zDate), uint8(SQLITE_UTF8)) > 0 {
setRawDateNumber(tls, p, *(*float64)(unsafe.Pointer(bp /* r */)))
@@ -13182,12 +13249,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 { /* sqlite3.c:23105:12: */
+func validJulianDay(tls *libc.TLS, iJD Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23474: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) { /* sqlite3.c:23112:13: */
+func computeYMD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23481:13: */
var Z int32
var A int32
var B int32
@@ -13232,7 +13299,7 @@ func computeYMD(tls *libc.TLS, p uintptr) { /* sqlite3.c:23112:13: */
}
// Compute the Hour, Minute, and Seconds from the julian day number.
-func computeHMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23141:13: */
+func computeHMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23510:13: */
var s int32
if (*DateTime)(unsafe.Pointer(p)).FvalidHMS != 0 {
return
@@ -13251,13 +13318,13 @@ func computeHMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23141:13: */
}
// Compute both YMD and HMS
-func computeYMD_HMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23160:13: */
+func computeYMD_HMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23529:13: */
computeYMD(tls, p)
computeHMS(tls, p)
}
// Clear the YMD and HMS and the TZ
-func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* sqlite3.c:23168:13: */
+func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23537:13: */
(*DateTime)(unsafe.Pointer(p)).FvalidYMD = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidHMS = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0)
@@ -13279,20 +13346,29 @@ func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* sqlite3.c:23168:13: */
// is available. This routine returns 0 on success and
// non-zero on any kind of error.
//
-// If the sqlite3GlobalConfig.bLocaltimeFault variable is true then this
-// routine will always fail.
+// If the sqlite3GlobalConfig.bLocaltimeFault variable is non-zero then this
+// routine will always fail. If bLocaltimeFault is nonzero and
+// sqlite3GlobalConfig.xAltLocaltime is not NULL, then xAltLocaltime() is
+// invoked in place of the OS-defined localtime() function.
//
// 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 { /* sqlite3.c:23206:12: */
+func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23577:12: */
var rc int32
var pX uintptr
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
Xsqlite3_mutex_enter(tls, mutex)
pX = libc.Xlocaltime(tls, t)
if Xsqlite3Config.FbLocaltimeFault != 0 {
- pX = uintptr(0)
+ if Xsqlite3Config.FxAltLocaltime != uintptr(0) &&
+ 0 == (*struct {
+ f func(*libc.TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.FxAltLocaltime})).f(tls, t, pTm) {
+ pX = pTm
+ } else {
+ pX = uintptr(0)
+ }
}
if pX != 0 {
*(*tm)(unsafe.Pointer(pTm)) = *(*tm)(unsafe.Pointer(pX))
@@ -13302,68 +13378,55 @@ func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* sqlite3.c:232
return rc
}
-// Compute the difference (in milliseconds) between localtime and UTC
-// (a.k.a. GMT) for the time value p where p is in UTC. If no error occurs,
-// return this value and set *pRc to SQLITE_OK.
-//
-// Or, if an error does occur, set *pRc to SQLITE_ERROR. The returned value
-// is undefined in this case.
-func localtimeOffset(tls *libc.TLS, p uintptr, pCtx uintptr, pRc uintptr) Sqlite3_int64 { /* sqlite3.c:23245:22: */
- bp := tls.Alloc(160)
- defer tls.Free(160)
-
- // var x DateTime at bp+56, 48
-
- // var y DateTime at bp+112, 48
+// 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: */
+ bp := tls.Alloc(112)
+ defer tls.Free(112)
// var t Time_t at bp+104, 8
// var sLocal tm at bp, 56
+ var iYearDiff int32
+
// Initialize the contents of sLocal to avoid a compiler warning.
libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(tm{})))
- *(*DateTime)(unsafe.Pointer(bp + 56 /* x */)) = *(*DateTime)(unsafe.Pointer(p))
- computeYMD_HMS(tls, bp+56)
- if (*DateTime)(unsafe.Pointer(bp+56)).FY < 1971 || (*DateTime)(unsafe.Pointer(bp+56)).FY >= 2038 {
+ computeJD(tls, p)
+ if (*DateTime)(unsafe.Pointer(p)).FiJD < int64(2108667600)*int64(100000) ||
+ (*DateTime)(unsafe.Pointer(p)).FiJD > int64(2130141456)*int64(100000) {
// EVIDENCE-OF: R-55269-29598 The localtime_r() C function normally only
// works for years between 1970 and 2037. For dates outside this range,
// SQLite attempts to map the year into an equivalent year within this
// range, do the calculation, then map the year back.
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).FY = 2000
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).FM = 1
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).FD = 1
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).Fh = 0
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).Fm = 0
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).Fs = 0.0
- } else {
- var s int32 = libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+56)).Fs + 0.5)
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).Fs = float64(s)
- }
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).Ftz = 0
- (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).FvalidJD = int8(0)
- computeJD(tls, bp+56)
- *(*Time_t)(unsafe.Pointer(bp + 104 /* t */)) = Time_t((*DateTime)(unsafe.Pointer(bp+56)).FiJD/int64(1000) - int64(21086676)*int64(10000))
+ *(*DateTime)(unsafe.Pointer(bp + 56 /* x */)) = *(*DateTime)(unsafe.Pointer(p))
+ computeYMD_HMS(tls, bp+56)
+ iYearDiff = 2000 + (*DateTime)(unsafe.Pointer(bp+56)).FY%4 - (*DateTime)(unsafe.Pointer(bp+56)).FY
+ *(*int32)(unsafe.Pointer(bp + 56 + 8)) += iYearDiff
+ (*DateTime)(unsafe.Pointer(bp + 56 /* &x */)).FvalidJD = int8(0)
+ computeJD(tls, bp+56)
+ *(*Time_t)(unsafe.Pointer(bp + 104 /* t */)) = Time_t((*DateTime)(unsafe.Pointer(bp+56)).FiJD/int64(1000) - int64(21086676)*int64(10000))
+ } else {
+ iYearDiff = 0
+ *(*Time_t)(unsafe.Pointer(bp + 104 /* t */)) = Time_t((*DateTime)(unsafe.Pointer(p)).FiJD/int64(1000) - int64(21086676)*int64(10000))
+ }
if osLocaltime(tls, bp+104, bp) != 0 {
- Xsqlite3_result_error(tls, pCtx, ts+1147, -1)
- *(*int32)(unsafe.Pointer(pRc)) = SQLITE_ERROR
- return int64(0)
+ Xsqlite3_result_error(tls, pCtx, ts+1134, -1)
+ return SQLITE_ERROR
}
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FY = (*tm)(unsafe.Pointer(bp)).Ftm_year + 1900
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FM = (*tm)(unsafe.Pointer(bp)).Ftm_mon + 1
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FD = (*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_mday
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).Fh = (*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_hour
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).Fm = (*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_min
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).Fs = float64((*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_sec)
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FvalidYMD = int8(1)
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FvalidHMS = int8(1)
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FvalidJD = int8(0)
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FrawS = int8(0)
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FvalidTZ = int8(0)
- (*DateTime)(unsafe.Pointer(bp + 112 /* &y */)).FisError = int8(0)
- computeJD(tls, bp+112)
- *(*int32)(unsafe.Pointer(pRc)) = SQLITE_OK
- return (*DateTime)(unsafe.Pointer(bp+112)).FiJD - (*DateTime)(unsafe.Pointer(bp+56)).FiJD
+ (*DateTime)(unsafe.Pointer(p)).FY = (*tm)(unsafe.Pointer(bp)).Ftm_year + 1900 - iYearDiff
+ (*DateTime)(unsafe.Pointer(p)).FM = (*tm)(unsafe.Pointer(bp)).Ftm_mon + 1
+ (*DateTime)(unsafe.Pointer(p)).FD = (*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_mday
+ (*DateTime)(unsafe.Pointer(p)).Fh = (*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_hour
+ (*DateTime)(unsafe.Pointer(p)).Fm = (*tm)(unsafe.Pointer(bp /* &sLocal */)).Ftm_min
+ (*DateTime)(unsafe.Pointer(p)).Fs = float64((*tm)(unsafe.Pointer(bp)).Ftm_sec) + float64((*DateTime)(unsafe.Pointer(p)).FiJD%int64(1000))*0.001
+ (*DateTime)(unsafe.Pointer(p)).FvalidYMD = int8(1)
+ (*DateTime)(unsafe.Pointer(p)).FvalidHMS = int8(1)
+ (*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(0)
+ (*DateTime)(unsafe.Pointer(p)).FrawS = int8(0)
+ (*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0)
+ (*DateTime)(unsafe.Pointer(p)).FisError = int8(0)
+ return SQLITE_OK
}
// The following table defines various date transformations of the form
@@ -13373,20 +13436,18 @@ func localtimeOffset(tls *libc.TLS, p uintptr, pCtx uintptr, pRc uintptr) Sqlite
// Where NNN is an arbitrary floating-point number and "days" can be one
// of several units of time.
var aXformType = [6]struct {
- FeType U8
- FnName U8
- F__ccgo_pad1 [6]byte
- FzName uintptr
- FrLimit float64
- FrXform float64
+ FnName U8
+ FzName [7]int8
+ FrLimit float32
+ FrXform float32
}{
- {FnName: U8(6), FzName: ts + 1170 /* "second" */, FrLimit: 464269060800.0, FrXform: 1000.0},
- {FnName: U8(6), FzName: ts + 1177 /* "minute" */, FrLimit: 7737817680.0, FrXform: 60000.0},
- {FnName: U8(4), FzName: ts + 1184 /* "hour" */, FrLimit: 128963628.0, FrXform: 3600000.0},
- {FnName: U8(3), FzName: ts + 1189 /* "day" */, FrLimit: 5373485.0, FrXform: 86400000.0},
- {FeType: U8(1), FnName: U8(5), FzName: ts + 1193 /* "month" */, FrLimit: 176546.0, FrXform: 2592000000.0},
- {FeType: U8(2), FnName: U8(4), FzName: ts + 1199 /* "year" */, FrLimit: 14713.0, FrXform: 31536000000.0},
-} /* sqlite3.c:23316:3 */
+ {FnName: U8(6), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1157 /* "second" */)), FrLimit: 4.6427e+14, FrXform: 1.0},
+ {FnName: U8(6), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1164 /* "minute" */)), FrLimit: 7.7379e+12, FrXform: 60.0},
+ {FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1171 /* "hour\x00\x00" */)), FrLimit: 1.2897e+11, FrXform: 3600.0},
+ {FnName: U8(3), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1178 /* "day\x00\x00\x00" */)), FrLimit: 5373485.0, FrXform: 86400.0},
+ {FnName: U8(5), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1185 /* "month\x00" */)), FrLimit: 176546.0, FrXform: 2592000.0},
+ {FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1192 /* "year\x00\x00" */)), FrLimit: 14713.0, FrXform: 31536000.0},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23691:3 */
// Process a modifier to a date-time stamp. The modifiers are
// as follows:
@@ -13410,24 +13471,68 @@ 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) int32 { /* sqlite3.c:23349:12: */
- bp := tls.Alloc(64)
- defer tls.Free(64)
+func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr, idx int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23724:12: */
+ bp := tls.Alloc(104)
+ defer tls.Free(104)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 1
- // var r float64 at bp+8, 8
+ var rc int32 = 1
+ // var r float64 at bp+48, 8
switch int32(Xsqlite3UpperToLower[U8(*(*int8)(unsafe.Pointer(z)))]) {
+ case 'a':
+ {
+ // auto
+ //
+ // If rawS is available, then interpret as a julian day number, or
+ // a unix timestamp, depending on its magnitude.
+ if Xsqlite3_stricmp(tls, z, ts+1199) == 0 {
+ if idx > 1 {
+ return 1
+ } // IMP: R-33611-57934
+ if !(int32((*DateTime)(unsafe.Pointer(p)).FrawS) != 0) || (*DateTime)(unsafe.Pointer(p)).FvalidJD != 0 {
+ rc = 0
+ (*DateTime)(unsafe.Pointer(p)).FrawS = int8(0)
+ } else if (*DateTime)(unsafe.Pointer(p)).Fs >= float64(int64(-21086676)*int64(10000)) &&
+ (*DateTime)(unsafe.Pointer(p)).Fs <= float64(int64(25340230)*int64(10000)+int64(799)) {
+ *(*float64)(unsafe.Pointer(bp + 48 /* r */)) = (*DateTime)(unsafe.Pointer(p)).Fs*1000.0 + 210866760000000.0
+ clearYMD_HMS_TZ(tls, p)
+ (*DateTime)(unsafe.Pointer(p)).FiJD = libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 48)) + 0.5)
+ (*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1)
+ (*DateTime)(unsafe.Pointer(p)).FrawS = int8(0)
+ rc = 0
+ }
+ }
+ break
+
+ }
+ case 'j':
+ {
+ // julianday
+ //
+ // Always interpret the prior number as a julian-day value. If this
+ // is not the first modifier, or if the prior argument is not a numeric
+ // value in the allowed range of julian day numbers understood by
+ // SQLite (0..5373484.5) then the result will be NULL.
+ if Xsqlite3_stricmp(tls, z, ts+1204) == 0 {
+ if idx > 1 {
+ return 1
+ } // IMP: R-31176-64601
+ if (*DateTime)(unsafe.Pointer(p)).FvalidJD != 0 && (*DateTime)(unsafe.Pointer(p)).FrawS != 0 {
+ rc = 0
+ (*DateTime)(unsafe.Pointer(p)).FrawS = int8(0)
+ }
+ }
+ break
+
+ }
case 'l':
{
// localtime
//
// Assuming the current time value is UTC (a.k.a. GMT), shift it to
// show local time.
- if Xsqlite3_stricmp(tls, z, ts+1204) == 0 && Xsqlite3NotPureFunc(tls, pCtx) != 0 {
- computeJD(tls, p)
- *(*Sqlite3_int64)(unsafe.Pointer(p)) += localtimeOffset(tls, p, pCtx, bp)
- clearYMD_HMS_TZ(tls, p)
+ if Xsqlite3_stricmp(tls, z, ts+1214) == 0 && Xsqlite3NotPureFunc(tls, pCtx) != 0 {
+ rc = toLocaltime(tls, p, pCtx)
}
break
@@ -13438,29 +13543,48 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
//
// Treat the current value of p->s as the number of
// seconds since 1970. Convert to a real julian day number.
- if Xsqlite3_stricmp(tls, z, ts+1214) == 0 && (*DateTime)(unsafe.Pointer(p)).FrawS != 0 {
- *(*float64)(unsafe.Pointer(bp + 8 /* r */)) = (*DateTime)(unsafe.Pointer(p)).Fs*1000.0 + 210866760000000.0
- if *(*float64)(unsafe.Pointer(bp + 8)) >= 0.0 && *(*float64)(unsafe.Pointer(bp + 8)) < 464269060800000.0 {
+ if Xsqlite3_stricmp(tls, z, ts+1224) == 0 && (*DateTime)(unsafe.Pointer(p)).FrawS != 0 {
+ if idx > 1 {
+ return 1
+ } // IMP: R-49255-55373
+ *(*float64)(unsafe.Pointer(bp + 48 /* r */)) = (*DateTime)(unsafe.Pointer(p)).Fs*1000.0 + 210866760000000.0
+ if *(*float64)(unsafe.Pointer(bp + 48)) >= 0.0 && *(*float64)(unsafe.Pointer(bp + 48)) < 464269060800000.0 {
clearYMD_HMS_TZ(tls, p)
- (*DateTime)(unsafe.Pointer(p)).FiJD = libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 8)) + 0.5)
+ (*DateTime)(unsafe.Pointer(p)).FiJD = libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 48)) + 0.5)
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1)
(*DateTime)(unsafe.Pointer(p)).FrawS = int8(0)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
+ rc = 0
}
- } else if Xsqlite3_stricmp(tls, z, ts+1224) == 0 && Xsqlite3NotPureFunc(tls, pCtx) != 0 {
+ } else if Xsqlite3_stricmp(tls, z, ts+1234) == 0 && Xsqlite3NotPureFunc(tls, pCtx) != 0 {
if int32((*DateTime)(unsafe.Pointer(p)).FtzSet) == 0 {
- var c1 Sqlite3_int64
+ var iOrigJD I64 // Original localtime
+ var iGuess I64 // Guess at the corresponding utc time
+ var cnt int32 = 0 // Safety to prevent infinite loop
+ var iErr int32 // Guess is off by this much
+
computeJD(tls, p)
- c1 = localtimeOffset(tls, p, pCtx, bp)
- if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
- *(*Sqlite3_int64)(unsafe.Pointer(p)) -= c1
- clearYMD_HMS_TZ(tls, p)
- *(*Sqlite3_int64)(unsafe.Pointer(p)) += c1 - localtimeOffset(tls, p, pCtx, bp)
+ iGuess = libc.AssignInt64(&iOrigJD, (*DateTime)(unsafe.Pointer(p)).FiJD)
+ iErr = 0
+ for __ccgo := true; __ccgo; __ccgo = iErr != 0 && libc.PostIncInt32(&cnt, 1) < 3 {
+ // var new DateTime at bp, 48
+
+ libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(DateTime{})))
+ iGuess = iGuess - I64(iErr)
+ (*DateTime)(unsafe.Pointer(bp /* &new */)).FiJD = iGuess
+ (*DateTime)(unsafe.Pointer(bp /* &new */)).FvalidJD = int8(1)
+ rc = toLocaltime(tls, bp, pCtx)
+ if rc != 0 {
+ return rc
+ }
+ computeJD(tls, bp)
+ iErr = int32((*DateTime)(unsafe.Pointer(bp)).FiJD - iOrigJD)
}
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DateTime{})))
+ (*DateTime)(unsafe.Pointer(p)).FiJD = iGuess
+ (*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1)
(*DateTime)(unsafe.Pointer(p)).FtzSet = int8(1)
- } else {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = SQLITE_OK
}
+ rc = SQLITE_OK
}
break
@@ -13472,9 +13596,9 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
// Move the date to the same time on the next occurrence of
// weekday N where 0==Sunday, 1==Monday, and so forth. If the
// date is already on the appropriate weekday, this is a no-op.
- if Xsqlite3_strnicmp(tls, z, ts+1228, 8) == 0 &&
- Xsqlite3AtoF(tls, z+8, bp+8, Xsqlite3Strlen30(tls, z+8), uint8(SQLITE_UTF8)) > 0 &&
- float64(libc.AssignInt32(&n, int32(*(*float64)(unsafe.Pointer(bp + 8))))) == *(*float64)(unsafe.Pointer(bp + 8)) && n >= 0 && *(*float64)(unsafe.Pointer(bp + 8)) < float64(7) {
+ if Xsqlite3_strnicmp(tls, z, ts+1238, 8) == 0 &&
+ Xsqlite3AtoF(tls, z+8, bp+48, Xsqlite3Strlen30(tls, z+8), uint8(SQLITE_UTF8)) > 0 &&
+ float64(libc.AssignInt32(&n, int32(*(*float64)(unsafe.Pointer(bp + 48))))) == *(*float64)(unsafe.Pointer(bp + 48)) && n >= 0 && *(*float64)(unsafe.Pointer(bp + 48)) < float64(7) {
var Z Sqlite3_int64
computeYMD_HMS(tls, p)
(*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0)
@@ -13486,7 +13610,7 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
}
*(*Sqlite3_int64)(unsafe.Pointer(p)) += (Sqlite3_int64(n) - Z) * int64(86400000)
clearYMD_HMS_TZ(tls, p)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
+ rc = 0
}
break
@@ -13497,7 +13621,7 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
//
// Move the date backwards to the beginning of the current day,
// or month or year.
- if Xsqlite3_strnicmp(tls, z, ts+1237, 9) != 0 {
+ if Xsqlite3_strnicmp(tls, z, ts+1247, 9) != 0 {
break
}
if !(int32((*DateTime)(unsafe.Pointer(p)).FvalidJD) != 0) && !(int32((*DateTime)(unsafe.Pointer(p)).FvalidYMD) != 0) && !(int32((*DateTime)(unsafe.Pointer(p)).FvalidHMS) != 0) {
@@ -13511,15 +13635,15 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
(*DateTime)(unsafe.Pointer(p)).FrawS = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(0)
- if Xsqlite3_stricmp(tls, z, ts+1193) == 0 {
+ if Xsqlite3_stricmp(tls, z, ts+1257) == 0 {
(*DateTime)(unsafe.Pointer(p)).FD = 1
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
- } else if Xsqlite3_stricmp(tls, z, ts+1199) == 0 {
+ rc = 0
+ } else if Xsqlite3_stricmp(tls, z, ts+1263) == 0 {
(*DateTime)(unsafe.Pointer(p)).FM = 1
(*DateTime)(unsafe.Pointer(p)).FD = 1
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
- } else if Xsqlite3_stricmp(tls, z, ts+1189) == 0 {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
+ rc = 0
+ } else if Xsqlite3_stricmp(tls, z, ts+1268) == 0 {
+ rc = 0
}
break
@@ -13552,8 +13676,8 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
var i int32
for n = 1; *(*int8)(unsafe.Pointer(z + uintptr(n))) != 0 && int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) != ':' && !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(n))))])&0x01 != 0); n++ {
}
- if Xsqlite3AtoF(tls, z, bp+8, n, uint8(SQLITE_UTF8)) <= 0 {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 1
+ if Xsqlite3AtoF(tls, z, bp+48, n, uint8(SQLITE_UTF8)) <= 0 {
+ rc = 1
break
}
if int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) == ':' {
@@ -13562,27 +13686,27 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
// to the time. The ".FFF" may be omitted. The ":SS.FFF" may be
// omitted.
var z2 uintptr = z
- // var tx DateTime at bp+16, 48
+ // var tx DateTime at bp+56, 48
var day Sqlite3_int64
if !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z2)))])&0x04 != 0) {
z2++
}
- libc.Xmemset(tls, bp+16, 0, uint64(unsafe.Sizeof(DateTime{})))
- if parseHhMmSs(tls, z2, bp+16) != 0 {
+ libc.Xmemset(tls, bp+56, 0, uint64(unsafe.Sizeof(DateTime{})))
+ if parseHhMmSs(tls, z2, bp+56) != 0 {
break
}
- computeJD(tls, bp+16)
- *(*Sqlite3_int64)(unsafe.Pointer(bp + 16)) -= int64(43200000)
- day = (*DateTime)(unsafe.Pointer(bp+16)).FiJD / int64(86400000)
- *(*Sqlite3_int64)(unsafe.Pointer(bp + 16)) -= day * int64(86400000)
+ computeJD(tls, bp+56)
+ *(*Sqlite3_int64)(unsafe.Pointer(bp + 56)) -= int64(43200000)
+ day = (*DateTime)(unsafe.Pointer(bp+56)).FiJD / int64(86400000)
+ *(*Sqlite3_int64)(unsafe.Pointer(bp + 56)) -= day * int64(86400000)
if int32(*(*int8)(unsafe.Pointer(z))) == '-' {
- (*DateTime)(unsafe.Pointer(bp + 16 /* &tx */)).FiJD = -(*DateTime)(unsafe.Pointer(bp + 16 /* &tx */)).FiJD
+ (*DateTime)(unsafe.Pointer(bp + 56 /* &tx */)).FiJD = -(*DateTime)(unsafe.Pointer(bp + 56 /* &tx */)).FiJD
}
computeJD(tls, p)
clearYMD_HMS_TZ(tls, p)
- *(*Sqlite3_int64)(unsafe.Pointer(p)) += (*DateTime)(unsafe.Pointer(bp + 16)).FiJD
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
+ *(*Sqlite3_int64)(unsafe.Pointer(p)) += (*DateTime)(unsafe.Pointer(bp + 56)).FiJD
+ rc = 0
break
}
@@ -13600,29 +13724,28 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
n--
}
computeJD(tls, p)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 1
- if *(*float64)(unsafe.Pointer(bp + 8)) < float64(0) {
+ rc = 1
+ if *(*float64)(unsafe.Pointer(bp + 48)) < float64(0) {
rRounder = -0.5
} else {
rRounder = +0.5
}
for i = 0; i < int32(uint64(unsafe.Sizeof(aXformType))/uint64(unsafe.Sizeof(struct {
- FeType U8
- FnName U8
- F__ccgo_pad1 [6]byte
- FzName uintptr
- FrLimit float64
- FrXform float64
+ FnName U8
+ FzName [7]int8
+ FrLimit float32
+ FrXform float32
}{}))); i++ {
if int32(aXformType[i].FnName) == n &&
- Xsqlite3_strnicmp(tls, aXformType[i].FzName, z, n) == 0 &&
- *(*float64)(unsafe.Pointer(bp + 8)) > -aXformType[i].FrLimit && *(*float64)(unsafe.Pointer(bp + 8)) < aXformType[i].FrLimit {
- switch int32(aXformType[i].FeType) {
- case 1:
+ Xsqlite3_strnicmp(tls, uintptr(unsafe.Pointer(&aXformType))+uintptr(i)*16+1, z, n) == 0 &&
+ *(*float64)(unsafe.Pointer(bp + 48)) > float64(-aXformType[i].FrLimit) && *(*float64)(unsafe.Pointer(bp + 48)) < float64(aXformType[i].FrLimit) {
+ switch i {
+ case 4:
{ // Special processing to add months
var x int32
+
computeYMD_HMS(tls, p)
- *(*int32)(unsafe.Pointer(p + 12)) += int32(*(*float64)(unsafe.Pointer(bp + 8)))
+ *(*int32)(unsafe.Pointer(p + 12)) += int32(*(*float64)(unsafe.Pointer(bp + 48)))
if (*DateTime)(unsafe.Pointer(p)).FM > 0 {
x = ((*DateTime)(unsafe.Pointer(p)).FM - 1) / 12
} else {
@@ -13631,25 +13754,26 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
*(*int32)(unsafe.Pointer(p + 8)) += x
*(*int32)(unsafe.Pointer(p + 12)) -= x * 12
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(0)
- *(*float64)(unsafe.Pointer(bp + 8 /* r */)) -= float64(int32(*(*float64)(unsafe.Pointer(bp + 8 /* r */))))
+ *(*float64)(unsafe.Pointer(bp + 48 /* r */)) -= float64(int32(*(*float64)(unsafe.Pointer(bp + 48 /* r */))))
break
}
fallthrough
- case 2:
+ case 5:
{ // Special processing to add years
- var y int32 = int32(*(*float64)(unsafe.Pointer(bp + 8 /* r */)))
+ var y int32 = int32(*(*float64)(unsafe.Pointer(bp + 48 /* r */)))
+
computeYMD_HMS(tls, p)
*(*int32)(unsafe.Pointer(p + 8)) += y
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(0)
- *(*float64)(unsafe.Pointer(bp + 8 /* r */)) -= float64(int32(*(*float64)(unsafe.Pointer(bp + 8 /* r */))))
+ *(*float64)(unsafe.Pointer(bp + 48 /* r */)) -= float64(int32(*(*float64)(unsafe.Pointer(bp + 48 /* r */))))
break
}
}
computeJD(tls, p)
- *(*Sqlite3_int64)(unsafe.Pointer(p)) += libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 8))*aXformType[i].FrXform + rRounder)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
+ *(*Sqlite3_int64)(unsafe.Pointer(p)) += libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 48))*1000.0*float64(aXformType[i].FrXform) + rRounder)
+ rc = 0
break
}
}
@@ -13663,7 +13787,7 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr) i
}
}
- return *(*int32)(unsafe.Pointer(bp /* rc */))
+ return rc
}
// Process time function arguments. argv[0] is a date-time stamp.
@@ -13673,7 +13797,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 { /* sqlite3.c:23566:12: */
+func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23999:12: */
var i int32
var n int32
var z uintptr
@@ -13697,7 +13821,7 @@ func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr)
for i = 1; i < argc; i++ {
z = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
n = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
- if z == uintptr(0) || parseModifier(tls, context, z, n, p) != 0 {
+ if z == uintptr(0) || parseModifier(tls, context, z, n, p, i) != 0 {
return 1
}
}
@@ -13714,7 +13838,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) { /* sqlite3.c:23610:13: */
+func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24043:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -13726,58 +13850,134 @@ func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /
}
}
+// unixepoch( TIMESTRING, MOD, MOD, ...)
+//
+// Return the number of seconds (including fractional seconds) since
+// the unix epoch of 1970-01-01 00:00:00 GMT.
+func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24061:13: */
+ bp := tls.Alloc(48)
+ defer tls.Free(48)
+
+ // var x DateTime at bp, 48
+
+ if isDate(tls, context, argc, argv, bp) == 0 {
+ computeJD(tls, bp)
+ Xsqlite3_result_int64(tls, context, (*DateTime)(unsafe.Pointer(bp)).FiJD/int64(1000)-int64(21086676)*int64(10000))
+ }
+}
+
// datetime( TIMESTRING, MOD, MOD, ...)
//
// Return YYYY-MM-DD HH:MM:SS
-func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:23627:13: */
- bp := tls.Alloc(196)
- defer tls.Free(196)
-
- // var x DateTime at bp+48, 48
+func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24078:13: */
+ bp := tls.Alloc(72)
+ defer tls.Free(72)
- if isDate(tls, context, argc, argv, bp+48) == 0 {
- // var zBuf [100]int8 at bp+96, 100
+ // var x DateTime at bp, 48
- computeYMD_HMS(tls, bp+48)
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+96, ts+1247,
- libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+48 /* &x */)).FY, (*DateTime)(unsafe.Pointer(bp+48 /* &x */)).FM, (*DateTime)(unsafe.Pointer(bp+48 /* &x */)).FD, (*DateTime)(unsafe.Pointer(bp+48 /* &x */)).Fh, (*DateTime)(unsafe.Pointer(bp+48 /* &x */)).Fm, libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+48)).Fs)))
- Xsqlite3_result_text(tls, context, bp+96, -1, libc.UintptrFromInt32(-1))
+ if isDate(tls, context, argc, argv, bp) == 0 {
+ var Y int32
+ var s int32
+ // var zBuf [24]int8 at bp+48, 24
+
+ computeYMD_HMS(tls, bp)
+ Y = (*DateTime)(unsafe.Pointer(bp /* &x */)).FY
+ if Y < 0 {
+ Y = -Y
+ }
+ *(*int8)(unsafe.Pointer(bp + 48 + 1)) = int8('0' + Y/1000%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 2)) = int8('0' + Y/100%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 3)) = int8('0' + Y/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 4)) = int8('0' + Y%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 5)) = int8('-')
+ *(*int8)(unsafe.Pointer(bp + 48 + 6)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FM/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 7)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FM%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 8)) = int8('-')
+ *(*int8)(unsafe.Pointer(bp + 48 + 9)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FD/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 10)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FD%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 11)) = int8(' ')
+ *(*int8)(unsafe.Pointer(bp + 48 + 12)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fh/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 13)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fh%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 14)) = int8(':')
+ *(*int8)(unsafe.Pointer(bp + 48 + 15)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fm/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 16)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fm%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 17)) = int8(':')
+ s = libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp /* &x */)).Fs)
+ *(*int8)(unsafe.Pointer(bp + 48 + 18)) = int8('0' + s/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 19)) = int8('0' + s%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 20)) = int8(0)
+ if (*DateTime)(unsafe.Pointer(bp)).FY < 0 {
+ *(*int8)(unsafe.Pointer(bp + 48)) = int8('-')
+ Xsqlite3_result_text(tls, context, bp+48, 20, libc.UintptrFromInt32(-1))
+ } else {
+ Xsqlite3_result_text(tls, context, bp+48+1, 19, libc.UintptrFromInt32(-1))
+ }
}
}
// time( TIMESTRING, MOD, MOD, ...)
//
// Return HH:MM:SS
-func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:23647:13: */
- bp := tls.Alloc(172)
- defer tls.Free(172)
+func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24125:13: */
+ bp := tls.Alloc(64)
+ defer tls.Free(64)
- // var x DateTime at bp+24, 48
+ // var x DateTime at bp, 48
- if isDate(tls, context, argc, argv, bp+24) == 0 {
- // var zBuf [100]int8 at bp+72, 100
+ if isDate(tls, context, argc, argv, bp) == 0 {
+ var s int32
+ // var zBuf [16]int8 at bp+48, 16
- computeHMS(tls, bp+24)
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72, ts+1277, libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+24 /* &x */)).Fh, (*DateTime)(unsafe.Pointer(bp+24 /* &x */)).Fm, libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+24 /* &x */)).Fs)))
- Xsqlite3_result_text(tls, context, bp+72, -1, libc.UintptrFromInt32(-1))
+ computeHMS(tls, bp)
+ *(*int8)(unsafe.Pointer(bp + 48)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fh/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 1)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fh%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 2)) = int8(':')
+ *(*int8)(unsafe.Pointer(bp + 48 + 3)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fm/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 4)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).Fm%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 5)) = int8(':')
+ s = libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp /* &x */)).Fs)
+ *(*int8)(unsafe.Pointer(bp + 48 + 6)) = int8('0' + s/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 7)) = int8('0' + s%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 8)) = int8(0)
+ Xsqlite3_result_text(tls, context, bp+48, 8, libc.UintptrFromInt32(-1))
}
}
// date( TIMESTRING, MOD, MOD, ...)
//
// Return YYYY-MM-DD
-func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:23666:13: */
- bp := tls.Alloc(172)
- defer tls.Free(172)
+func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24154:13: */
+ bp := tls.Alloc(64)
+ defer tls.Free(64)
- // var x DateTime at bp+24, 48
+ // var x DateTime at bp, 48
- if isDate(tls, context, argc, argv, bp+24) == 0 {
- // var zBuf [100]int8 at bp+72, 100
+ if isDate(tls, context, argc, argv, bp) == 0 {
+ var Y int32
+ // var zBuf [16]int8 at bp+48, 16
- computeYMD(tls, bp+24)
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72, ts+1292, libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+24 /* &x */)).FY, (*DateTime)(unsafe.Pointer(bp+24 /* &x */)).FM, (*DateTime)(unsafe.Pointer(bp+24 /* &x */)).FD))
- Xsqlite3_result_text(tls, context, bp+72, -1, libc.UintptrFromInt32(-1))
+ computeYMD(tls, bp)
+ Y = (*DateTime)(unsafe.Pointer(bp /* &x */)).FY
+ if Y < 0 {
+ Y = -Y
+ }
+ *(*int8)(unsafe.Pointer(bp + 48 + 1)) = int8('0' + Y/1000%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 2)) = int8('0' + Y/100%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 3)) = int8('0' + Y/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 4)) = int8('0' + Y%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 5)) = int8('-')
+ *(*int8)(unsafe.Pointer(bp + 48 + 6)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FM/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 7)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FM%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 8)) = int8('-')
+ *(*int8)(unsafe.Pointer(bp + 48 + 9)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FD/10%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 10)) = int8('0' + (*DateTime)(unsafe.Pointer(bp)).FD%10)
+ *(*int8)(unsafe.Pointer(bp + 48 + 11)) = int8(0)
+ if (*DateTime)(unsafe.Pointer(bp)).FY < 0 {
+ *(*int8)(unsafe.Pointer(bp + 48)) = int8('-')
+ Xsqlite3_result_text(tls, context, bp+48, 11, libc.UintptrFromInt32(-1))
+ } else {
+ Xsqlite3_result_text(tls, context, bp+48+1, 10, libc.UintptrFromInt32(-1))
+ }
}
}
@@ -13798,7 +13998,7 @@ func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
// %W week of year 00-53
// %Y year 0000-9999
// %% %
-func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:23699:13: */
+func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24205:13: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -13834,7 +14034,7 @@ func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
switch int32(*(*int8)(unsafe.Pointer(zFmt + uintptr(i)))) {
case 'd':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1307, libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FD))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1272, libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FD))
break
}
@@ -13844,13 +14044,13 @@ func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
if s > 59.999 {
s = 59.999
}
- Xsqlite3_str_appendf(tls, bp+136, ts+1312, libc.VaList(bp+8, s))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1277, libc.VaList(bp+8, s))
break
}
case 'H':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1307, libc.VaList(bp+16, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fh))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1272, libc.VaList(bp+16, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fh))
break
}
@@ -13868,41 +14068,41 @@ func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
if int32(*(*int8)(unsafe.Pointer(zFmt + uintptr(i)))) == 'W' {
var wd int32 // 0=Monday, 1=Tuesday, ... 6=Sunday
wd = int32(((*DateTime)(unsafe.Pointer(bp+88)).FiJD + int64(43200000)) / int64(86400000) % int64(7))
- Xsqlite3_str_appendf(tls, bp+136, ts+1307, libc.VaList(bp+24, (nDay+7-wd)/7))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1272, libc.VaList(bp+24, (nDay+7-wd)/7))
} else {
- Xsqlite3_str_appendf(tls, bp+136, ts+1319, libc.VaList(bp+32, nDay+1))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1284, libc.VaList(bp+32, nDay+1))
}
break
}
case 'J':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1324, libc.VaList(bp+40, float64((*DateTime)(unsafe.Pointer(bp+88)).FiJD)/86400000.0))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1289, libc.VaList(bp+40, float64((*DateTime)(unsafe.Pointer(bp+88)).FiJD)/86400000.0))
break
}
case 'm':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1307, libc.VaList(bp+48, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FM))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1272, libc.VaList(bp+48, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FM))
break
}
case 'M':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1307, libc.VaList(bp+56, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fm))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1272, libc.VaList(bp+56, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fm))
break
}
case 's':
{
var iS I64 = (*DateTime)(unsafe.Pointer(bp+88)).FiJD/int64(1000) - int64(21086676)*int64(10000)
- Xsqlite3_str_appendf(tls, bp+136, ts+1330, libc.VaList(bp+64, iS))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1295, libc.VaList(bp+64, iS))
break
}
case 'S':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1307, libc.VaList(bp+72, libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fs)))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1272, libc.VaList(bp+72, libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fs)))
break
}
@@ -13915,7 +14115,7 @@ func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
}
case 'Y':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1335, libc.VaList(bp+80, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FY))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1300, libc.VaList(bp+80, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FY))
break
}
@@ -13942,7 +14142,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) { /* sqlite3.c:23806:13: */
+func ctimeFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24312:13: */
_ = NotUsed
_ = NotUsed2
timeFunc(tls, context, 0, uintptr(0))
@@ -13951,7 +14151,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) { /* sqlite3.c:23820:13: */
+func cdateFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24326:13: */
_ = NotUsed
_ = NotUsed2
dateFunc(tls, context, 0, uintptr(0))
@@ -13960,7 +14160,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) { /* sqlite3.c:23834:13: */
+func ctimestampFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24340:13: */
_ = NotUsed
_ = NotUsed2
datetimeFunc(tls, context, 0, uintptr(0))
@@ -13969,19 +14169,20 @@ 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) { /* sqlite3.c:23894:21: */
+func Xsqlite3RegisterDateTimeFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24400:21: */
Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aDateTimeFuncs)), int32(uint64(unsafe.Sizeof(aDateTimeFuncs))/uint64(unsafe.Sizeof(FuncDef{}))))
}
-var aDateTimeFuncs = [8]FuncDef{
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1340},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1350},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1355},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1360},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1369},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1378},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1391},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1409}} /* sqlite3.c:23895:18 */
+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 + 1204},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1224},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1305},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1310},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1315},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1324},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1333},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1346},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1364}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24401:18 */
//************* End of date.c ***********************************************
//************* Begin file os.c *********************************************
@@ -14033,7 +14234,7 @@ var aDateTimeFuncs = [8]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) { /* sqlite3.c:23997:21: */
+func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24504:21: */
if (*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods != 0 {
(*struct {
f func(*libc.TLS, uintptr) int32
@@ -14042,27 +14243,27 @@ func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* sqlite3.c:23997:21: */
}
}
-func Xsqlite3OsRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* sqlite3.c:24003:20: */
+func Xsqlite3OsRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24510: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 { /* sqlite3.c:24007:20: */
+func Xsqlite3OsWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24514: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 { /* sqlite3.c:24011:20: */
+func Xsqlite3OsTruncate(tls *libc.TLS, id uintptr, size I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24518: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 { /* sqlite3.c:24014:20: */
+func Xsqlite3OsSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24521:20: */
if flags != 0 {
return (*struct {
@@ -14072,27 +14273,27 @@ func Xsqlite3OsSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c
return SQLITE_OK
}
-func Xsqlite3OsFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:24018:20: */
+func Xsqlite3OsFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24525: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 { /* sqlite3.c:24022:20: */
+func Xsqlite3OsLock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24529: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 { /* sqlite3.c:24026:20: */
+func Xsqlite3OsUnlock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24533: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 { /* sqlite3.c:24029:20: */
+func Xsqlite3OsCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24536:20: */
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -14105,7 +14306,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 { /* sqlite3.c:24042:20: */
+func Xsqlite3OsFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24549:20: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) {
return SQLITE_NOTFOUND
}
@@ -14114,7 +14315,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) { /* sqlite3.c:24070:21: */
+func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24577:21: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods != 0 {
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -14122,7 +14323,7 @@ func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr
}
}
-func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24074:20: */
+func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24581:20: */
var xSectorSize uintptr = (*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxSectorSize
return func() int32 {
if xSectorSize != 0 {
@@ -14134,7 +14335,7 @@ func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24074:
}()
}
-func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24078:20: */
+func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24585:20: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) {
return 0
}
@@ -14143,23 +14344,23 @@ func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlit
})(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 { /* sqlite3.c:24083:20: */
+func Xsqlite3OsShmLock(tls *libc.TLS, id uintptr, offset int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24590: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) { /* sqlite3.c:24086:21: */
+func Xsqlite3OsShmBarrier(tls *libc.TLS, id uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24593: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 { /* sqlite3.c:24089:20: */
+func Xsqlite3OsShmUnmap(tls *libc.TLS, id uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24596: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 { /* sqlite3.c:24092:20: */
+func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExtend int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24599:20: */
return (*struct {
f func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32
@@ -14167,18 +14368,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 { /* sqlite3.c:24115:20: */
+func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24622:20: */
*(*uintptr)(unsafe.Pointer(pp)) = uintptr(0)
return SQLITE_OK
}
-func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* sqlite3.c:24119:20: */
+func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24626: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 { /* sqlite3.c:24128:20: */
+func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pFlagsOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24635:20: */
var rc int32
// 0x87f7f is a mask of SQLITE_OPEN_ flags that are valid to be passed
@@ -14192,7 +14393,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 { /* sqlite3.c:24145:20: */
+func Xsqlite3OsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24652:20: */
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDelete != uintptr(0) {
return (*struct {
@@ -14202,14 +14403,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 { /* sqlite3.c:24150:20: */
+func Xsqlite3OsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24657: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 { /* sqlite3.c:24159:20: */
+func Xsqlite3OsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24666:20: */
*(*int8)(unsafe.Pointer(zPathOut)) = int8(0)
return (*struct {
@@ -14217,7 +14418,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 { /* sqlite3.c:24170:21: */
+func Xsqlite3OsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24677:21: */
// tag-20210611-1
return (*struct {
@@ -14225,31 +14426,31 @@ func Xsqlite3OsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* s
})(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) { /* sqlite3.c:24175:21: */
+func Xsqlite3OsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24682: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 { /* sqlite3.c:24178:21: */
+func Xsqlite3OsDlSym(tls *libc.TLS, pVfs uintptr, pHdle uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24685: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) { /* sqlite3.c:24181:21: */
+func Xsqlite3OsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24688: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 { /* sqlite3.c:24185:20: */
+func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24692:20: */
if Xsqlite3Config.FiPrngSeed != 0 {
libc.Xmemset(tls, zBufOut, 0, uint64(nByte))
if nByte > int32(unsafe.Sizeof(uint32(0))) {
nByte = int32(unsafe.Sizeof(uint32(0)))
}
- libc.Xmemcpy(tls, zBufOut, uintptr(unsafe.Pointer(&Xsqlite3Config))+420, uint64(nByte))
+ libc.Xmemcpy(tls, zBufOut, uintptr(unsafe.Pointer(&Xsqlite3Config))+432, uint64(nByte))
return SQLITE_OK
} else {
return (*struct {
@@ -14260,13 +14461,13 @@ func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uint
}
-func Xsqlite3OsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* sqlite3.c:24196:20: */
+func Xsqlite3OsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24703: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 { /* sqlite3.c:24199:20: */
+func Xsqlite3OsGetLastError(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24706:20: */
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxGetLastError != 0 {
return (*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -14275,7 +14476,7 @@ func Xsqlite3OsGetLastError(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:24
return 0
}
-func Xsqlite3OsCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* sqlite3.c:24202:20: */
+func Xsqlite3OsCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24709:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14300,7 +14501,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 { /* sqlite3.c:24220:20: */
+func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24727:20: */
var rc int32
var pFile uintptr
pFile = Xsqlite3MallocZero(tls, uint64((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile))
@@ -14320,7 +14521,7 @@ func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uin
return rc
}
-func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:24245:21: */
+func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24752:21: */
Xsqlite3OsClose(tls, pFile)
Xsqlite3_free(tls, pFile)
@@ -14330,7 +14531,7 @@ func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:24245:21:
// 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 { /* sqlite3.c:24257:20: */
+func Xsqlite3OsInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24764:20: */
var p uintptr = Xsqlite3_malloc(tls, 10)
if p == uintptr(0) {
return SQLITE_NOMEM
@@ -14340,11 +14541,11 @@ func Xsqlite3OsInit(tls *libc.TLS) int32 { /* sqlite3.c:24257:20: */
}
// The list of all registered VFS implementations.
-var vfsList uintptr = uintptr(0) /* sqlite3.c:24267:20 */
+var vfsList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24774: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 { /* sqlite3.c:24274:24: */
+func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24781:24: */
var pVfs uintptr = uintptr(0)
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
@@ -14366,7 +14567,7 @@ func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* sqlite3.c:24274
}
// Unlink a VFS from the linked list
-func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* sqlite3.c:24298:13: */
+func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24805:13: */
if pVfs == uintptr(0) {
// No-op
@@ -14386,7 +14587,7 @@ func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* sqlite3.c:24298:13: */
// 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 { /* sqlite3.c:24320:16: */
+func Xsqlite3_vfs_register(tls *libc.TLS, pVfs uintptr, makeDflt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24827:16: */
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -14409,7 +14610,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 { /* sqlite3.c:24348:16: */
+func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24855:16: */
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -14454,7 +14655,7 @@ func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:2
type BenignMallocHooks1 = struct {
FxBenignBegin uintptr
FxBenignEnd uintptr
-} /* sqlite3.c:24396:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24903:9 */
//************* End of os.c *************************************************
//************* Begin file fault.c ******************************************
@@ -14485,8 +14686,8 @@ type BenignMallocHooks1 = struct {
// #include "sqliteInt.h"
// Global variables.
-type BenignMallocHooks = BenignMallocHooks1 /* sqlite3.c:24396:34 */
-var sqlite3Hooks = BenignMallocHooks1{} /* sqlite3.c:24400:3 */
+type BenignMallocHooks = BenignMallocHooks1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24903:34 */
+var sqlite3Hooks = BenignMallocHooks1{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24907:3 */
// The "wsdHooks" macro will resolve to the appropriate BenignMallocHooks
// structure. If writable static data is unsupported on the target,
@@ -14496,7 +14697,7 @@ var sqlite3Hooks = BenignMallocHooks1{} /* sqlite3.c:24400:3 */
// Register hooks to call when sqlite3BeginBenignMalloc() and
// sqlite3EndBenignMalloc() are called, respectively.
-func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd uintptr) { /* sqlite3.c:24422:21: */
+func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24929:21: */
sqlite3Hooks.FxBenignBegin = xBenignBegin
sqlite3Hooks.FxBenignEnd = xBenignEnd
@@ -14505,14 +14706,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) { /* sqlite3.c:24436:21: */
+func Xsqlite3BeginBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24943:21: */
if sqlite3Hooks.FxBenignBegin != 0 {
(*struct{ f func(*libc.TLS) })(unsafe.Pointer(&struct{ uintptr }{sqlite3Hooks.FxBenignBegin})).f(tls)
}
}
-func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* sqlite3.c:24442:21: */
+func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24949:21: */
if sqlite3Hooks.FxBenignEnd != 0 {
(*struct{ f func(*libc.TLS) })(unsafe.Pointer(&struct{ uintptr }{sqlite3Hooks.FxBenignEnd})).f(tls)
@@ -14610,7 +14811,7 @@ func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* sqlite3.c:24442:21: */
// 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 { /* sqlite3.c:24642:13: */
+func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25149:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14622,7 +14823,7 @@ func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:24642:1
p += 8
} else {
- Xsqlite3_log(tls, SQLITE_NOMEM, ts+1422, libc.VaList(bp, nByte))
+ Xsqlite3_log(tls, SQLITE_NOMEM, ts+1377, libc.VaList(bp, nByte))
}
return p
}
@@ -14633,7 +14834,7 @@ func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:24642:1
// 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) { /* sqlite3.c:24676:13: */
+func sqlite3MemFree(tls *libc.TLS, pPrior uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25183:13: */
var p uintptr = pPrior
p -= 8
@@ -14642,7 +14843,7 @@ func sqlite3MemFree(tls *libc.TLS, pPrior uintptr) { /* sqlite3.c:24676:13: */
// Report the allocated size of a prior return from xMalloc()
// or xRealloc().
-func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* sqlite3.c:24691:12: */
+func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25198:12: */
var p uintptr
p = pPrior
@@ -14658,7 +14859,7 @@ func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* sqlite3.c:24691:12
// 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 { /* sqlite3.c:24714:13: */
+func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25221:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -14673,25 +14874,25 @@ func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /*
} else {
Xsqlite3_log(tls, SQLITE_NOMEM,
- ts+1460,
+ ts+1415,
libc.VaList(bp, sqlite3MemSize(tls, pPrior), nByte))
}
return p
}
// Round up a request size to the next valid allocation size.
-func sqlite3MemRoundup(tls *libc.TLS, n int32) int32 { /* sqlite3.c:24746:12: */
+func sqlite3MemRoundup(tls *libc.TLS, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25253:12: */
return (n + 7) & libc.CplInt32(7)
}
// Initialize this module.
-func sqlite3MemInit(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:24753:12: */
+func sqlite3MemInit(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25260:12: */
_ = NotUsed
return SQLITE_OK
}
// Deinitialize this module.
-func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:24780:13: */
+func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25287:13: */
_ = NotUsed
return
}
@@ -14700,7 +14901,7 @@ func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:24780:13:
//
// Populate the low-level memory allocation function pointers in
// sqlite3GlobalConfig.m with pointers to the routines in this file.
-func Xsqlite3MemSetDefault(tls *libc.TLS) { /* sqlite3.c:24791:21: */
+func Xsqlite3MemSetDefault(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25298:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14715,7 +14916,7 @@ var defaultMethods = Sqlite3_mem_methods{
FxRoundup: 0,
FxInit: 0,
FxShutdown: 0,
-} /* sqlite3.c:24792:36 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25299:36 */
//************* End of mem1.c ***********************************************
//************* Begin file mem2.c *******************************************
@@ -14849,7 +15050,7 @@ var defaultMethods = Sqlite3_mem_methods{
// #include "sqliteInt.h"
// Initialize the mutex system.
-func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* sqlite3.c:26827:20: */
+func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27334: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
@@ -14883,7 +15084,7 @@ func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* sqlite3.c:26827:20: */
// Shutdown the mutex system. This call frees resources allocated by
// sqlite3MutexInit().
-func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:26873:20: */
+func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27380: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)
@@ -14893,7 +15094,7 @@ func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:26873:20: */
}
// Retrieve a pointer to a static mutex or allocate a new dynamic one.
-func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:26889:26: */
+func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27396:26: */
if id <= SQLITE_MUTEX_RECURSIVE && Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -14906,7 +15107,7 @@ func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:26889:
})(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexAlloc})).f(tls, id)
}
-func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:26898:30: */
+func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27405:30: */
if !(int32(Xsqlite3Config.FbCoreMutex) != 0) {
return uintptr(0)
}
@@ -14917,7 +15118,7 @@ func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:26898:30
}
// Free a dynamic mutex.
-func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:26910:17: */
+func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27417:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexFree})).f(tls, p)
@@ -14926,7 +15127,7 @@ func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:26910:17: */
// 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) { /* sqlite3.c:26921:17: */
+func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27428:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexEnter})).f(tls, p)
@@ -14935,7 +15136,7 @@ func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* sqlite3.c:26921:17: */
// 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 { /* sqlite3.c:26932:16: */
+func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27439:16: */
var rc int32 = SQLITE_OK
if p != 0 {
@@ -14950,7 +15151,7 @@ func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:26932:16:
// 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) { /* sqlite3.c:26947:17: */
+func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27454:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexLeave})).f(tls, p)
@@ -14989,40 +15190,40 @@ func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* sqlite3.c:26947:17: */
// Stub routines for all mutex methods.
//
// This routines provide no mutual exclusion or error checking.
-func noopMutexInit(tls *libc.TLS) int32 { /* sqlite3.c:27010:12: */
+func noopMutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27517:12: */
return SQLITE_OK
}
-func noopMutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27011:12: */
+func noopMutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27518:12: */
return SQLITE_OK
}
-func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27012:22: */
+func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27519:22: */
_ = id
return uintptr(8)
}
-func noopMutexFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:27016:13: */
+func noopMutexFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27523:13: */
_ = p
return
}
-func noopMutexEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27017:13: */
+func noopMutexEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27524:13: */
_ = p
return
}
-func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27018:12: */
+func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27525:12: */
_ = p
return SQLITE_OK
}
-func noopMutexLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27022:13: */
+func noopMutexLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27529:13: */
_ = p
return
}
-func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27024:44: */
+func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27531:44: */
return uintptr(unsafe.Pointer(&sMutex))
}
@@ -15035,11 +15236,11 @@ var sMutex = Sqlite3_mutex_methods{
FxMutexEnter: 0,
FxMutexTry: 0,
FxMutexLeave: 0,
-} /* sqlite3.c:27025:38 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27532: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 { /* sqlite3.c:27183:44: */
+func Xsqlite3DefaultMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27690:44: */
return Xsqlite3NoopMutex(tls)
}
@@ -15102,7 +15303,7 @@ func Xsqlite3DefaultMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27183:44: */
// 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 { /* sqlite3.c:28104:16: */
+func Xsqlite3_release_memory(tls *libc.TLS, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28611:16: */
return Xsqlite3PcacheReleaseMemory(tls, n)
}
@@ -15115,22 +15316,22 @@ type Mem0Global = struct {
FhardLimit Sqlite3_int64
FnearlyFull int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:28126:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28633:19 */
// Default value of the hard heap limit. 0 means "no limit".
// State information local to the memory allocation subsystem.
-var mem0 = Mem0Global{} /* sqlite3.c:28136:3 */
+var mem0 = Mem0Global{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28643:3 */
// Return the memory allocator mutex. sqlite3_status() needs it.
-func Xsqlite3MallocMutex(tls *libc.TLS) uintptr { /* sqlite3.c:28143:30: */
+func Xsqlite3MallocMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28650: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 { /* sqlite3.c:28153:16: */
+func Xsqlite3_memory_alarm(tls *libc.TLS, xCallback uintptr, pArg uintptr, iThreshold Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28660:16: */
_ = xCallback
_ = pArg
_ = iThreshold
@@ -15146,7 +15347,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 { /* sqlite3.c:28176:26: */
+func Xsqlite3_soft_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28683:26: */
var priorLimit Sqlite3_int64
var excess Sqlite3_int64
var nUsed Sqlite3_int64
@@ -15174,7 +15375,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) { /* sqlite3.c:28201:17: */
+func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28708:17: */
if n < 0 {
n = 0
}
@@ -15191,7 +15392,7 @@ func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* sqlite3.c:28201:17: *
// 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 { /* sqlite3.c:28218:26: */
+func Xsqlite3_hard_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28725:26: */
var priorLimit Sqlite3_int64
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -15210,7 +15411,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 { /* sqlite3.c:28240:20: */
+func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28747:20: */
var rc int32
if Xsqlite3Config.Fm.FxMalloc == uintptr(0) {
Xsqlite3MemSetDefault(tls)
@@ -15233,12 +15434,12 @@ func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* sqlite3.c:28240:20: */
// 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 { /* sqlite3.c:28261:20: */
+func Xsqlite3HeapNearlyFull(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28768:20: */
return libc.AtomicLoadNInt32(uintptr(unsafe.Pointer(&mem0))+24, 0)
}
// Deinitialize the memory allocation subsystem.
-func Xsqlite3MallocEnd(tls *libc.TLS) { /* sqlite3.c:28268:21: */
+func Xsqlite3MallocEnd(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28775:21: */
if Xsqlite3Config.Fm.FxShutdown != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxShutdown})).f(tls, Xsqlite3Config.Fm.FpAppData)
}
@@ -15246,7 +15447,7 @@ func Xsqlite3MallocEnd(tls *libc.TLS) { /* sqlite3.c:28268:21: */
}
// Return the amount of memory currently checked out.
-func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* sqlite3.c:28278:26: */
+func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28785:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -15261,7 +15462,7 @@ func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* sqlite3.c:28278:26:
// 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 { /* sqlite3.c:28289:26: */
+func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28796:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -15274,7 +15475,7 @@ func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { /
}
// Trigger the alarm
-func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* sqlite3.c:28298:13: */
+func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28805:13: */
if mem0.FalarmThreshold <= int64(0) {
return
}
@@ -15285,7 +15486,7 @@ func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* sqlite3.c:28298:13: */
// Do a memory allocation with statistics and alarms. Assume the
// lock is already held.
-func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* sqlite3.c:28309:13: */
+func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28816:13: */
var p uintptr
var nFull int32
@@ -15332,7 +15533,7 @@ func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* sqlite3.c:28309:13
// 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 { /* sqlite3.c:28358:21: */
+func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28865:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -15361,7 +15562,7 @@ func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* sqlite3.c:28358:21: */
// 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 { /* sqlite3.c:28383:17: */
+func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28890:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15371,7 +15572,7 @@ func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* sqlite3.c:28383:17: */
return Xsqlite3Malloc(tls, uint64(n))
}
-func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* sqlite3.c:28389:17: */
+func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28896:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15379,27 +15580,27 @@ func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* sqlite3.c:2
}
// TRUE if p is a lookaside memory allocation from db
-func isLookaside(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:28400:12: */
+func isLookaside(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28907: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 { /* sqlite3.c:28411:20: */
+func Xsqlite3MallocSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28918: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 { /* sqlite3.c:28415:12: */
+func lookasideMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28922: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 { /* sqlite3.c:28422:20: */
+func Xsqlite3DbMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28929:20: */
if db != 0 {
if Uptr(p) < Uptr((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpEnd) {
@@ -15418,7 +15619,7 @@ func Xsqlite3DbMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlit
})(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxSize})).f(tls, p)
}
-func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* sqlite3.c:28451:27: */
+func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28958:27: */
if p != 0 {
return uint64((*struct {
@@ -15429,7 +15630,7 @@ func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* sqlite3.c:2845
}
// Free memory previously obtained from sqlite3Malloc().
-func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:28460:17: */
+func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28967:17: */
if p == uintptr(0) {
return
} // IMP: R-49053-54554
@@ -15447,14 +15648,14 @@ func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:28460:17: */
// Add the size of memory allocation "p" to the count in
// *db->pnBytesFreed.
-func measureAllocationSize(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28479:29: */
+func measureAllocationSize(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28986: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) { /* sqlite3.c:28488:21: */
+func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28995:21: */
if db != 0 {
if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed != 0 {
@@ -15480,7 +15681,7 @@ func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28488
Xsqlite3_free(tls, p)
}
-func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28525:21: */
+func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29032:21: */
if p != 0 {
Xsqlite3DbFreeNN(tls, db, p)
@@ -15488,7 +15689,7 @@ func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28525:2
}
// Change the size of an existing memory allocation
-func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* sqlite3.c:28533:21: */
+func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29040:21: */
var nOld int32
var nNew int32
var nDiff int32
@@ -15549,7 +15750,7 @@ func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* sqlit
// 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 { /* sqlite3.c:28592:17: */
+func Xsqlite3_realloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29099:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15559,7 +15760,7 @@ func Xsqlite3_realloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* sqlite3
return Xsqlite3Realloc(tls, pOld, uint64(n))
}
-func Xsqlite3_realloc64(tls *libc.TLS, pOld uintptr, n Sqlite3_uint64) uintptr { /* sqlite3.c:28599:17: */
+func Xsqlite3_realloc64(tls *libc.TLS, pOld uintptr, n Sqlite3_uint64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29106:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15567,7 +15768,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 { /* sqlite3.c:28610:21: */
+func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29117:21: */
var p uintptr = Xsqlite3Malloc(tls, n)
if p != 0 {
libc.Xmemset(tls, p, 0, Size_t(n))
@@ -15577,7 +15778,7 @@ func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* sqlite3.c:28610:21: *
// 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 { /* sqlite3.c:28622:21: */
+func Xsqlite3DbMallocZero(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29129:21: */
var p uintptr
p = Xsqlite3DbMallocRaw(tls, db, n)
@@ -15589,7 +15790,7 @@ func Xsqlite3DbMallocZero(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3
// 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 { /* sqlite3.c:28634:29: */
+func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29141:29: */
var p uintptr
p = Xsqlite3Malloc(tls, n)
@@ -15620,7 +15821,7 @@ func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:
//
// The sqlite3MallocRawNN() variant guarantees that the "db" parameter is
// not a NULL pointer.
-func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:28666:21: */
+func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29173:21: */
var p uintptr
if db != 0 {
return Xsqlite3DbMallocRawNN(tls, db, n)
@@ -15630,7 +15831,7 @@ func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.
return p
}
-func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:28673:21: */
+func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29180:21: */
var pBuf uintptr
if n > U64((*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz) {
@@ -15668,7 +15869,7 @@ func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite
// 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 { /* sqlite3.c:28729:21: */
+func Xsqlite3DbRealloc(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29236:21: */
if p == uintptr(0) {
return Xsqlite3DbMallocRawNN(tls, db, n)
@@ -15688,7 +15889,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 { /* sqlite3.c:28745:29: */
+func dbReallocFinish(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29252:29: */
var pNew uintptr = uintptr(0)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 {
@@ -15712,7 +15913,7 @@ func dbReallocFinish(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* s
// 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 { /* sqlite3.c:28775:21: */
+func Xsqlite3DbReallocOrFree(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29282:21: */
var pNew uintptr
pNew = Xsqlite3DbRealloc(tls, db, p, n)
if !(pNew != 0) {
@@ -15726,7 +15927,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 { /* sqlite3.c:28791:21: */
+func Xsqlite3DbStrDup(tls *libc.TLS, db uintptr, z uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29298:21: */
var zNew uintptr
var n Size_t
if z == uintptr(0) {
@@ -15740,7 +15941,7 @@ func Xsqlite3DbStrDup(tls *libc.TLS, db uintptr, z uintptr) uintptr { /* sqlite3
return zNew
}
-func Xsqlite3DbStrNDup(tls *libc.TLS, db uintptr, z uintptr, n U64) uintptr { /* sqlite3.c:28804:21: */
+func Xsqlite3DbStrNDup(tls *libc.TLS, db uintptr, z uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29311:21: */
var zNew uintptr
if z != 0 {
@@ -15758,7 +15959,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 { /* sqlite3.c:28822:21: */
+func Xsqlite3DbSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29329:21: */
var n int32
for int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zStart)))])&0x01 != 0 {
zStart++
@@ -15771,16 +15972,24 @@ 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) { /* sqlite3.c:28833:21: */
+func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29340:21: */
+ var z uintptr = Xsqlite3DbStrDup(tls, db, zNew)
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pz)))
- *(*uintptr)(unsafe.Pointer(pz)) = Xsqlite3DbStrDup(tls, db, zNew)
+ *(*uintptr)(unsafe.Pointer(pz)) = z
}
// Call this routine to record the fact that an OOM (out-of-memory) error
// has happened. This routine will set db->mallocFailed, and also
// temporarily disable the lookaside memory allocator and interrupt
// any running VDBEs.
-func Xsqlite3OomFault(tls *libc.TLS, db uintptr) { /* sqlite3.c:28844:21: */
+//
+// Always return a NULL pointer so that this routine can be invoked using
+//
+// return sqlite3OomFault(db);
+//
+// and thereby avoid unnecessary stack frame allocations for the overwhelmingly
+// common case where no OOM occurs.
+func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29359:21: */
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 {
@@ -15789,9 +15998,11 @@ func Xsqlite3OomFault(tls *libc.TLS, db uintptr) { /* sqlite3.c:28844:21: */
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz = U16(0)
if (*Sqlite3)(unsafe.Pointer(db)).FpParse != 0 {
+ Xsqlite3ErrorMsg(tls, (*Sqlite3)(unsafe.Pointer(db)).FpParse, ts+1451, 0)
(*Parse)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FpParse)).Frc = SQLITE_NOMEM
}
}
+ return uintptr(0)
}
// This routine reactivates the memory allocator and clears the
@@ -15799,7 +16010,7 @@ func Xsqlite3OomFault(tls *libc.TLS, db uintptr) { /* sqlite3.c:28844:21: */
//
// The memory allocator is not restarted if there are running
// VDBEs.
-func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:28864:21: */
+func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29381:21: */
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec == 0 {
(*Sqlite3)(unsafe.Pointer(db)).FmallocFailed = U8(0)
libc.AtomicStoreNInt32(db+432, int32(0), 0)
@@ -15815,7 +16026,7 @@ func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:28864:21: */
}
// Take actions at the end of an API call to deal with error codes.
-func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* sqlite3.c:28876:28: */
+func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29393:28: */
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || rc == SQLITE_IOERR|int32(12)<<8 {
Xsqlite3OomClear(tls, db)
Xsqlite3Error(tls, db, SQLITE_NOMEM)
@@ -15834,7 +16045,7 @@ func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* sqlite3.c:28
//
// 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 { /* sqlite3.c:28897:20: */
+func Xsqlite3ApiExit(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29414: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().
@@ -15863,7 +16074,7 @@ func Xsqlite3ApiExit(tls *libc.TLS, db uintptr, rc int32) int32 { /* sqlite3.c:2
// The rest are extensions, not normally found in printf()
// An "etByte" is an 8-bit unsigned value.
-type EtByte = uint8 /* sqlite3.c:28955:23 */
+type EtByte = uint8 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29472:23 */
// Each builtin conversion character (ex: the 'd' in "%d") is described
// by an instance of the following structure
@@ -15874,18 +16085,18 @@ type et_info = struct {
Ftype EtByte
Fcharset EtByte
Fprefix EtByte
-} /* sqlite3.c:28961:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29478:9 */
// Each builtin conversion character (ex: the 'd' in "%d") is described
// by an instance of the following structure
-type Et_info = et_info /* sqlite3.c:28968:3 */
+type Et_info = et_info /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29485: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 + 1496)) /* sqlite3.c:28981:19 */
-var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1529)) /* sqlite3.c:28982:19 */
+var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1465)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29498:19 */
+var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1498)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29499: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)},
@@ -15912,7 +16123,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)},
-} /* sqlite3.c:28983:22 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29500:22 */
// Notes:
//
@@ -15923,7 +16134,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,
-} /* sqlite3.c:29020:21 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29537:21 */
// If SQLITE_OMIT_FLOATING_POINT is defined, then none of the floating point
// conversions will work.
@@ -15938,7 +16149,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 { /* sqlite3.c:29043:13: */
+func et_getdigit(tls *libc.TLS, val uintptr, cnt uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29560:13: */
var digit int32
var d float64
if *(*int32)(unsafe.Pointer(cnt)) <= 0 {
@@ -15953,7 +16164,7 @@ func et_getdigit(tls *libc.TLS, val uintptr, cnt uintptr) int8 { /* sqlite3.c:29
}
// Set the StrAccum object to an error mode.
-func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* sqlite3.c:29059:21: */
+func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29576:21: */
(*StrAccum)(unsafe.Pointer(p)).FaccError = eError
if (*StrAccum)(unsafe.Pointer(p)).FmxAlloc != 0 {
@@ -15965,21 +16176,21 @@ func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* sqlite3.
}
// Extra argument values from a PrintfArguments object
-func getIntArg(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* sqlite3.c:29069:22: */
+func getIntArg(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29586: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 { /* sqlite3.c:29073:15: */
+func getDoubleArg(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29590: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 { /* sqlite3.c:29077:13: */
+func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29594:13: */
if (*PrintfArguments)(unsafe.Pointer(p)).FnArg <= (*PrintfArguments)(unsafe.Pointer(p)).FnUsed {
return uintptr(0)
}
@@ -15993,7 +16204,7 @@ func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:29077:13: */
// 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 { /* sqlite3.c:29091:13: */
+func printfTempBuf(tls *libc.TLS, pAccum uintptr, n Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29608:13: */
var z uintptr
if (*Sqlite3_str)(unsafe.Pointer(pAccum)).FaccError != 0 {
return uintptr(0)
@@ -16015,7 +16226,7 @@ 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) { /* sqlite3.c:29124:17: */
+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)
@@ -16088,6 +16299,9 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_lis
var ch1 int8
var q int8 // Quote character
var escarg uintptr
+ // %#T means an Expr pointer that uses Expr.u.zToken
+ var pExpr uintptr
+ // %T means a Token pointer
var pToken uintptr
var pItem uintptr
xtype = EtByte(EtINVALID)
@@ -16139,7 +16353,7 @@ __6:
if !(libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PreIncUintptr(&fmt, 1))))) == 0) {
goto __11
}
- Xsqlite3_str_append(tls, pAccum, ts+1536, 1)
+ Xsqlite3_str_append(tls, pAccum, ts+1505, 1)
goto __5
__11:
;
@@ -16722,7 +16936,7 @@ __125:
if !(Xsqlite3IsNaN(tls, *(*float64)(unsafe.Pointer(bp + 96))) != 0) {
goto __127
}
- bufpt = ts + 1538 /* "NaN" */
+ bufpt = ts + 1507 /* "NaN" */
length = 3
goto __58
__127:
@@ -16782,7 +16996,7 @@ __138:
}
bufpt = bp + 8 /* &buf[0] */
*(*int8)(unsafe.Pointer(bp + 8)) = prefix
- libc.Xmemcpy(tls, bp+8+uintptr(libc.Bool32(int32(prefix) != 0)), ts+1542, uint64(4))
+ libc.Xmemcpy(tls, bp+8+uintptr(libc.Bool32(int32(prefix) != 0)), ts+1511, uint64(4))
length = 3 + libc.Bool32(int32(prefix) != 0)
goto __58
__139:
@@ -17139,7 +17353,7 @@ __197:
if !(bufpt == uintptr(0)) {
goto __198
}
- bufpt = ts + 1546 /* "" */
+ bufpt = ts + 1515 /* "" */
goto __199
__198:
if !(int32(xtype) == EtDYNSTRING) {
@@ -17268,9 +17482,9 @@ __219:
}
escarg = func() uintptr {
if int32(xtype) == EtSQLESCAPE2 {
- return ts + 1547
+ return ts + 1516
}
- return ts + 1552
+ return ts + 1521
}()
__220:
;
@@ -17372,62 +17586,80 @@ __74:
return
__237:
;
+ if !(flag_alternateform != 0) {
+ goto __238
+ }
+ // %#T means an Expr pointer that uses Expr.u.zToken
+ pExpr = libc.VaUintptr(&ap)
+ if !(pExpr != 0 && !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_IntValue) != U32(0))) {
+ goto __240
+ }
+ Xsqlite3_str_appendall(tls, pAccum, *(*uintptr)(unsafe.Pointer(pExpr + 8)))
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Sqlite3_str)(unsafe.Pointer(pAccum)).Fdb, pExpr)
+__240:
+ ;
+ goto __239
+__238:
+ // %T means a Token pointer
pToken = libc.VaUintptr(&ap)
if !(pToken != 0 && (*Token)(unsafe.Pointer(pToken)).Fn != 0) {
- goto __238
+ goto __241
}
Xsqlite3_str_append(tls, pAccum, (*Token)(unsafe.Pointer(pToken)).Fz, int32((*Token)(unsafe.Pointer(pToken)).Fn))
-__238:
+ Xsqlite3RecordErrorByteOffset(tls, (*Sqlite3_str)(unsafe.Pointer(pAccum)).Fdb, (*Token)(unsafe.Pointer(pToken)).Fz)
+__241:
+ ;
+__239:
;
length = libc.AssignInt32(&width, 0)
goto __58
__75:
if !(int32((*Sqlite3_str)(unsafe.Pointer(pAccum)).FprintfFlags)&SQLITE_PRINTF_INTERNAL == 0) {
- goto __239
+ goto __242
}
return
-__239:
+__242:
;
pItem = libc.VaUintptr(&ap)
if !((*SrcItem)(unsafe.Pointer(pItem)).FzAlias != 0 && !(flag_altform2 != 0)) {
- goto __240
+ goto __243
}
Xsqlite3_str_appendall(tls, pAccum, (*SrcItem)(unsafe.Pointer(pItem)).FzAlias)
- goto __241
-__240:
+ goto __244
+__243:
if !((*SrcItem)(unsafe.Pointer(pItem)).FzName != 0) {
- goto __242
+ goto __245
}
if !((*SrcItem)(unsafe.Pointer(pItem)).FzDatabase != 0) {
- goto __244
+ goto __247
}
Xsqlite3_str_appendall(tls, pAccum, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase)
- Xsqlite3_str_append(tls, pAccum, ts+1559, 1)
-__244:
+ Xsqlite3_str_append(tls, pAccum, ts+1528, 1)
+__247:
;
Xsqlite3_str_appendall(tls, pAccum, (*SrcItem)(unsafe.Pointer(pItem)).FzName)
- goto __243
-__242:
+ goto __246
+__245:
if !((*SrcItem)(unsafe.Pointer(pItem)).FzAlias != 0) {
- goto __245
+ goto __248
}
Xsqlite3_str_appendall(tls, pAccum, (*SrcItem)(unsafe.Pointer(pItem)).FzAlias)
- goto __246
-__245:
+ goto __249
+__248:
if !((*SrcItem)(unsafe.Pointer(pItem)).FpSelect != 0) {
- goto __247
+ goto __250
}
- Xsqlite3_str_appendf(tls, pAccum, ts+1561, libc.VaList(bp, (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselId))
-__247:
+ Xsqlite3_str_appendf(tls, pAccum, ts+1530, libc.VaList(bp, (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselId))
+__250:
;
-__246:
+__249:
;
-__243:
+__246:
;
-__241:
+__244:
;
length = libc.AssignInt32(&width, 0)
goto __58
@@ -17446,33 +17678,33 @@ __58:
// then the values have been translated prior to reaching this point.
width = width - length
if !(width > 0) {
- goto __248
+ goto __251
}
if !!(flag_leftjustify != 0) {
- goto __250
+ goto __253
}
Xsqlite3_str_appendchar(tls, pAccum, width, int8(' '))
-__250:
+__253:
;
Xsqlite3_str_append(tls, pAccum, bufpt, length)
if !(flag_leftjustify != 0) {
- goto __251
+ goto __254
}
Xsqlite3_str_appendchar(tls, pAccum, width, int8(' '))
-__251:
+__254:
;
- goto __249
-__248:
+ goto __252
+__251:
Xsqlite3_str_append(tls, pAccum, bufpt, length)
-__249:
+__252:
;
if !(zExtra != 0) {
- goto __252
+ goto __255
}
Xsqlite3DbFree(tls, (*Sqlite3_str)(unsafe.Pointer(pAccum)).Fdb, zExtra)
zExtra = uintptr(0)
-__252:
+__255:
;
goto __4
__4:
@@ -17483,16 +17715,57 @@ __5:
// End for loop over the format string
}
-var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1573)) /* sqlite3.c:29387:29 */
+var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1542)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29904:29 */
// End of function
+// The z string points to the first character of a token that is
+// 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: */
+ var pParse uintptr
+ var zText uintptr
+ var zEnd uintptr
+
+ if db == uintptr(0) {
+ return
+ }
+ if (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset != -2 {
+ return
+ }
+ pParse = (*Sqlite3)(unsafe.Pointer(db)).FpParse
+ if pParse == uintptr(0) {
+ return
+ }
+ zText = (*Parse)(unsafe.Pointer(pParse)).FzTail
+ if zText == uintptr(0) {
+ return
+ }
+ zEnd = zText + uintptr(libc.Xstrlen(tls, zText))
+ if Uptr(z) >= Uptr(zText) && Uptr(z) < Uptr(zEnd) {
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = int32((int64(z) - int64(zText)) / 1)
+ }
+}
+
+// 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) {
+ pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
+ }
+ if pExpr == uintptr(0) {
+ return
+ }
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = *(*int32)(unsafe.Pointer(pExpr + 52))
+}
+
// Enlarge the memory allocation on a StrAccum object so that it is
// able to accept at least N more bytes of text.
//
// Return the number of bytes of text that StrAccum is able to accept
// after the attempted enlargement. The value returned might be zero.
-func sqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* sqlite3.c:29830:12: */
+func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30393:20: */
var zNew uintptr
// Only called if really needed
if (*StrAccum)(unsafe.Pointer(p)).FaccError != 0 {
@@ -17546,9 +17819,9 @@ func sqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* sqlite
}
// Append N copies of character c to the given string buffer.
-func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* sqlite3.c:29880:17: */
+func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30443:17: */
- if I64((*Sqlite3_str)(unsafe.Pointer(p)).FnChar)+I64(N) >= I64((*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc) && libc.AssignInt32(&N, sqlite3StrAccumEnlarge(tls, p, N)) <= 0 {
+ 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
}
for libc.PostDecInt32(&N, 1) > 0 {
@@ -17562,8 +17835,8 @@ func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* sql
// 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) { /* sqlite3.c:29896:29: */
- N = sqlite3StrAccumEnlarge(tls, p, N)
+func enlargeAndAppend(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30459: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))
*(*U32)(unsafe.Pointer(p + 24)) += U32(N)
@@ -17572,7 +17845,7 @@ func enlargeAndAppend(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* sqlite3
// 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) { /* sqlite3.c:29908:17: */
+func Xsqlite3_str_append(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30471:17: */
if (*Sqlite3_str)(unsafe.Pointer(p)).FnChar+U32(N) >= (*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc {
enlargeAndAppend(tls, p, z, N)
@@ -17584,14 +17857,14 @@ func Xsqlite3_str_append(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* sqli
}
// Append the complete text of zero-terminated string z[] to the p string.
-func Xsqlite3_str_appendall(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:29925:17: */
+func Xsqlite3_str_appendall(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30488: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 { /* sqlite3.c:29935:29: */
+func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30498:29: */
var zText uintptr
zText = Xsqlite3DbMallocRaw(tls, (*StrAccum)(unsafe.Pointer(p)).Fdb, uint64((*StrAccum)(unsafe.Pointer(p)).FnChar+U32(1)))
@@ -17605,7 +17878,7 @@ func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:2993
return zText
}
-func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:29948:21: */
+func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30511: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) {
@@ -17617,14 +17890,16 @@ func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:299
// 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) { /* sqlite3.c:29962:21: */
+func Xsqlite3ResultStrAccum(tls *libc.TLS, pCtx uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30525: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) }{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) uintptr
+ }{Xsqlite3OomFault})))
} else {
- Xsqlite3_result_text(tls, pCtx, ts+1546, 0, uintptr(0))
+ Xsqlite3_result_text(tls, pCtx, ts+1515, 0, uintptr(0))
Xsqlite3_str_reset(tls, p)
}
}
@@ -17633,10 +17908,10 @@ func Xsqlite3ResultStrAccum(tls *libc.TLS, pCtx uintptr, p uintptr) { /* sqlite3
// 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)} /* sqlite3.c:29980:20 */
+var sqlite3OomStr = Sqlite3_str{FaccError: U8(SQLITE_NOMEM)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30543:20 */
// Finalize a string created using sqlite3_str_new().
-func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:29986:17: */
+func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30549:17: */
var z uintptr
if p != uintptr(0) && p != uintptr(unsafe.Pointer(&sqlite3OomStr)) {
z = Xsqlite3StrAccumFinish(tls, p)
@@ -17648,7 +17923,7 @@ func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:29986:
}
// Return any error code associated with p
-func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:29998:16: */
+func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30561:16: */
if p != 0 {
return int32((*Sqlite3_str)(unsafe.Pointer(p)).FaccError)
}
@@ -17656,7 +17931,7 @@ func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:29998:1
}
// Return the current length of p in bytes
-func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30003:16: */
+func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30566:16: */
if p != 0 {
return int32((*Sqlite3_str)(unsafe.Pointer(p)).FnChar)
}
@@ -17664,7 +17939,7 @@ func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30003:16
}
// Return the current value for p
-func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30008:17: */
+func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30571:17: */
if p == uintptr(0) || (*Sqlite3_str)(unsafe.Pointer(p)).FnChar == U32(0) {
return uintptr(0)
}
@@ -17673,7 +17948,7 @@ func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30008:1
}
// Reset an StrAccum string. Reclaim all malloced memory.
-func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* sqlite3.c:30017:17: */
+func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30580: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))
@@ -17695,7 +17970,7 @@ func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* sqlite3.c:30017:17: */
// 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) { /* sqlite3.c:30041:21: */
+func Xsqlite3StrAccumInit(tls *libc.TLS, p uintptr, db uintptr, zBase uintptr, n int32, mx int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30604:21: */
(*StrAccum)(unsafe.Pointer(p)).FzText = zBase
(*StrAccum)(unsafe.Pointer(p)).Fdb = db
(*StrAccum)(unsafe.Pointer(p)).FnAlloc = U32(n)
@@ -17706,7 +17981,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 { /* sqlite3.c:30052:24: */
+func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30615:24: */
var p uintptr = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3_str{})))
if p != 0 {
Xsqlite3StrAccumInit(tls, p, uintptr(0), uintptr(0), 0,
@@ -17724,7 +17999,7 @@ func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:30052:24
// Print into memory obtained from sqliteMalloc(). Use the internal
// %-conversion extensions.
-func Xsqlite3VMPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, ap Va_list) uintptr { /* sqlite3.c:30067:21: */
+func Xsqlite3VMPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30630:21: */
bp := tls.Alloc(102)
defer tls.Free(102)
@@ -17746,7 +18021,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 { /* sqlite3.c:30087:21: */
+func Xsqlite3MPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30650:21: */
var ap Va_list
_ = ap
var z uintptr
@@ -17758,7 +18033,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 { /* sqlite3.c:30100:17: */
+func Xsqlite3_vmprintf(tls *libc.TLS, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30663:17: */
bp := tls.Alloc(102)
defer tls.Free(102)
@@ -17778,7 +18053,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 { /* sqlite3.c:30124:17: */
+func Xsqlite3_mprintf(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30687:17: */
var ap Va_list
_ = ap
var z uintptr
@@ -17802,7 +18077,7 @@ func Xsqlite3_mprintf(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* s
// mistake.
//
// sqlite3_vsnprintf() is the varargs version.
-func Xsqlite3_vsnprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, ap Va_list) uintptr { /* sqlite3.c:30149:17: */
+func Xsqlite3_vsnprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30712:17: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -17817,7 +18092,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 { /* sqlite3.c:30164:17: */
+func Xsqlite3_snprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30727:17: */
var z uintptr
var ap Va_list
_ = ap
@@ -17839,7 +18114,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) { /* sqlite3.c:30187:13: */
+func renderLogMsg(tls *libc.TLS, iErrCode int32, zFormat uintptr, ap Va_list) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30750:13: */
bp := tls.Alloc(242)
defer tls.Free(242)
@@ -17857,7 +18132,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) { /* sqlite3.c:30200:17: */
+func Xsqlite3_log(tls *libc.TLS, iErrCode int32, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30763:17: */
var ap Va_list
_ = ap // Vararg list
if Xsqlite3Config.FxLog != 0 {
@@ -17869,7 +18144,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) { /* sqlite3.c:30241:17: */
+func Xsqlite3_str_appendf(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30804:17: */
var ap Va_list
_ = ap
ap = va
@@ -17924,7 +18199,7 @@ type sqlite3PrngType = struct {
Fi uint8
Fj uint8
Fs [256]uint8
-} /* sqlite3.c:31093:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31656:19 */
//************* End of printf.c *********************************************
//************* Begin file treeview.c ***************************************
@@ -17968,10 +18243,10 @@ type sqlite3PrngType = struct {
// All threads share a single random number generator.
// This structure is the current state of the generator.
-var sqlite3Prng sqlite3PrngType /* sqlite3.c:31097:3: */
+var sqlite3Prng sqlite3PrngType /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31660:3: */
// Return N random bytes.
-func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* sqlite3.c:31102:17: */
+func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31665:17: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -18031,7 +18306,7 @@ func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* sqlite3.c:31
sqlite3Prng.FisInit = uint8(1)
}
- for ok := true; ok; ok = libc.PreDecInt32(&N, 1) != 0 {
+ for __ccgo := true; __ccgo; __ccgo = libc.PreDecInt32(&N, 1) != 0 {
sqlite3Prng.Fi++
t = *(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Prng)) + 3 + uintptr(sqlite3Prng.Fi)))
*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Prng)) + 2)) += uint8(int32(t))
@@ -18050,16 +18325,16 @@ func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* sqlite3.c:31
//
// The sqlite3_test_control() interface calls these routines to
// control the PRNG.
-var sqlite3SavedPrng sqlite3PrngType /* sqlite3.c:31193:42: */
+var sqlite3SavedPrng sqlite3PrngType /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31756:42: */
-func Xsqlite3PrngSaveState(tls *libc.TLS) { /* sqlite3.c:31194:21: */
+func Xsqlite3PrngSaveState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31757:21: */
libc.Xmemcpy(tls,
uintptr(unsafe.Pointer(&sqlite3SavedPrng)),
uintptr(unsafe.Pointer(&sqlite3Prng)),
uint64(unsafe.Sizeof(sqlite3Prng)))
}
-func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* sqlite3.c:31201:21: */
+func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31764:21: */
libc.Xmemcpy(tls,
uintptr(unsafe.Pointer(&sqlite3Prng)),
uintptr(unsafe.Pointer(&sqlite3SavedPrng)),
@@ -18067,7 +18342,7 @@ func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* sqlite3.c:31201:21: */
}
// Create a new thread
-func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* sqlite3.c:31437:20: */
+func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32000:20: */
var p uintptr
*(*uintptr)(unsafe.Pointer(ppThread)) = uintptr(0)
@@ -18089,7 +18364,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 { /* sqlite3.c:31461:20: */
+func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32024:20: */
if p == uintptr(0) {
return SQLITE_NOMEM
@@ -18158,7 +18433,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),
-} /* sqlite3.c:31540:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32103:28 */
// Translate a single UTF-8 character. Return the unicode value.
//
@@ -18185,7 +18460,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 { /* sqlite3.c:31634:20: */
+func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32197:20: */
var c uint32
// Same as READ_UTF8() above but without the zTerm parameter.
@@ -18212,7 +18487,7 @@ func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* sqlite3.c:31634:20: */
// 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 { /* sqlite3.c:31670:36: */
+func Xsqlite3VdbeMemTranslate(tls *libc.TLS, pMem uintptr, desiredEnc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32233:36: */
var len Sqlite3_int64 // Maximum length of output string in bytes
var zOut uintptr // Output buffer
var zIn uintptr // Input iterator
@@ -18537,7 +18812,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 { /* sqlite3.c:31865:20: */
+func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32428:20: */
var rc int32 = SQLITE_OK
var bom U8 = U8(0)
@@ -18571,7 +18846,7 @@ func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:
// 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 { /* sqlite3.c:31903:20: */
+func Xsqlite3Utf8CharLen(tls *libc.TLS, zIn uintptr, nByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32466:20: */
var r int32 = 0
var z uintptr = zIn
var zTerm uintptr
@@ -18603,7 +18878,7 @@ func Xsqlite3Utf8CharLen(tls *libc.TLS, zIn uintptr, nByte int32) int32 { /* sql
// 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 { /* sqlite3.c:31957:21: */
+func Xsqlite3Utf16to8(tls *libc.TLS, db uintptr, z uintptr, nByte int32, enc U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32520:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -18624,7 +18899,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 { /* sqlite3.c:31978:20: */
+func Xsqlite3Utf16ByteLen(tls *libc.TLS, zIn uintptr, nChar int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32541:20: */
var c int32
var z uintptr = zIn
var n int32 = 0
@@ -18772,17 +19047,17 @@ func Xsqlite3Utf16ByteLen(tls *libc.TLS, zIn uintptr, nChar int32) int32 { /* sq
type __float_u = struct {
F__ccgo_pad1 [0]uint32
F__dummy [4]uint8
-} /* math.h:24:1 */
+} /* /usr/include/math.h:24:1 */
type __double_u = struct {
F__ccgo_pad1 [0]uint64
F__dummy [8]uint8
-} /* math.h:29:1 */
+} /* /usr/include/math.h:29:1 */
type __long_double_u = struct {
F__ccgo_pad1 [0]uint64
F__dummy [8]uint8
-} /* math.h:34:1 */
+} /* /usr/include/math.h:34:1 */
// $NetBSD: math.h,v 1.3 2005/12/11 12:16:25 christos Exp $
@@ -19095,8 +19370,8 @@ type __long_double_u = struct {
// X/Open CAE Specification Issue 5 Version 2
-type Double_t = float64 /* math.h:45:16 */
-type Float_t = float32 /* math.h:46:15 */
+type Double_t = float64 /* /usr/include/math.h:45:16 */
+type Float_t = float32 /* /usr/include/math.h:46:15 */
type exception = struct {
Ftype int32
@@ -19105,7 +19380,7 @@ type exception = struct {
Farg1 float64
Farg2 float64
Fretval float64
-} /* math.h:181:1 */
+} /* /usr/include/math.h:181:1 */
// Calls to sqlite3FaultSim() are used to simulate a failure during testing,
// or to bypass normal error detection during testing in order to let
@@ -19124,7 +19399,7 @@ type exception = struct {
// 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 { /* sqlite3.c:32070:20: */
+func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32633: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)
@@ -19136,7 +19411,7 @@ func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* sqlite3.c:32070:20:
//
// 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 { /* sqlite3.c:32083:20: */
+func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32646:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = x
@@ -19156,7 +19431,7 @@ func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* sqlite3.c:32083:20: */
// 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 { /* sqlite3.c:32105:20: */
+func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32668:20: */
if z == uintptr(0) {
return 0
}
@@ -19168,7 +19443,7 @@ func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:32105:20: *
//
// 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 { /* sqlite3.c:32117:21: */
+func Xsqlite3ColumnType(tls *libc.TLS, pCol uintptr, zDflt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32680: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 {
@@ -19183,7 +19458,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) { /* sqlite3.c:32133:30: */
+func sqlite3ErrorFinish(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32696:30: */
if (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 {
Xsqlite3ValueSetNull(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr)
}
@@ -19193,19 +19468,22 @@ func sqlite3ErrorFinish(tls *libc.TLS, db uintptr, err_code int32) { /* sqlite3.
// 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) { /* sqlite3.c:32143:21: */
+func Xsqlite3Error(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32706:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code
if err_code != 0 || (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 {
sqlite3ErrorFinish(tls, db, err_code)
+ } else {
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -1
}
}
// The equivalent of sqlite3Error(db, SQLITE_OK). Clear the error state
// and error message.
-func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:32153:21: */
+func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32720:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = SQLITE_OK
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -1
if (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 {
Xsqlite3ValueSetNull(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr)
}
@@ -19213,7 +19491,7 @@ func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:32153:21: */
// 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) { /* sqlite3.c:32163:21: */
+func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32731:21: */
if rc == SQLITE_IOERR|int32(12)<<8 {
return
}
@@ -19227,22 +19505,13 @@ func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* sqlite3.c:321
// handle "db". The error code is set to "err_code".
//
// If it is not NULL, string zFormat specifies the format of the
-// error string in the style of the printf functions: The following
-// format characters are allowed:
-//
-// %s Insert a string
-// %z A string that should be freed after use
-// %d Insert an integer
-// %T Insert a token
-// %S Insert the first element of a SrcList
-//
-// zFormat and any string tokens that follow it are assumed to be
-// encoded in UTF-8.
+// error string. zFormat and any string tokens that follow it are
+// assumed to be encoded in UTF-8.
//
// 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) { /* sqlite3.c:32192:21: */
+func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32751:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code
Xsqlite3SystemError(tls, db, err_code)
@@ -19255,18 +19524,13 @@ 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) }{Xsqlite3OomFault})))
+ Xsqlite3ValueSetStr(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr, -1, z, uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
+ }{Xsqlite3OomFault})))
}
}
// Add an error message to pParse->zErrMsg and increment pParse->nErr.
-// The following formatting characters are allowed:
-//
-// %s Insert a string
-// %z A string that should be freed after use
-// %d Insert an integer
-// %T Insert a token
-// %S Insert the first element of a SrcList
//
// This function should be used to report any error that occurs while
// compiling an SQL statement (i.e. within sqlite3_prepare()). The
@@ -19274,16 +19538,25 @@ 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) { /* sqlite3.c:32225:21: */
+func Xsqlite3ErrorMsg(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32777:21: */
var zMsg uintptr
var ap Va_list
_ = ap
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
+
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -2
ap = va
zMsg = Xsqlite3VMPrintf(tls, db, zFormat, ap)
_ = ap
+ if (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset < -1 {
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -1
+ }
if (*Sqlite3)(unsafe.Pointer(db)).FsuppressErr != 0 {
Xsqlite3DbFree(tls, db, zMsg)
+ if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ (*Parse)(unsafe.Pointer(pParse)).FnErr++
+ (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_NOMEM
+ }
} else {
(*Parse)(unsafe.Pointer(pParse)).FnErr++
Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg)
@@ -19296,7 +19569,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 { /* sqlite3.c:32248:20: */
+func Xsqlite3ErrorToParser(tls *libc.TLS, db uintptr, errCode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32808:20: */
var pParse uintptr
if db == uintptr(0) || libc.AssignUintptr(&pParse, (*Sqlite3)(unsafe.Pointer(db)).FpParse) == uintptr(0) {
return errCode
@@ -19321,7 +19594,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) { /* sqlite3.c:32273:21: */
+func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32833:21: */
var quote int8
var i int32
var j int32
@@ -19353,7 +19626,7 @@ func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* sqlite3.c:32273:21: */
*(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0)
}
-func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* sqlite3.c:32295:21: */
+func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32855:21: */
*(*U32)(unsafe.Pointer(p + 4)) |= func() uint32 {
if int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 8))))) == '"' {
@@ -19373,7 +19646,7 @@ func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* sqlite3.c:32295:21: */
// 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) { /* sqlite3.c:32313:21: */
+func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32873:21: */
var i uint32
if (*Token)(unsafe.Pointer(p)).Fn < uint32(2) {
return
@@ -19391,7 +19664,7 @@ func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* sqlite3.c:32313:21: */
}
// Generate a Token object from a string
-func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:32327:21: */
+func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32887:21: */
(*Token)(unsafe.Pointer(p)).Fz = z
(*Token)(unsafe.Pointer(p)).Fn = uint32(Xsqlite3Strlen30(tls, z))
}
@@ -19406,7 +19679,7 @@ func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:32327
// 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 { /* sqlite3.c:32345:16: */
+func Xsqlite3_stricmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32905:16: */
if zLeft == uintptr(0) {
if zRight != 0 {
return -1
@@ -19418,7 +19691,7 @@ func Xsqlite3_stricmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* s
return Xsqlite3StrICmp(tls, zLeft, zRight)
}
-func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* sqlite3.c:32353:20: */
+func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32913:20: */
var a uintptr
var b uintptr
var c int32
@@ -19444,7 +19717,7 @@ func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* sq
return c
}
-func Xsqlite3_strnicmp(tls *libc.TLS, zLeft uintptr, zRight uintptr, N int32) int32 { /* sqlite3.c:32372:16: */
+func Xsqlite3_strnicmp(tls *libc.TLS, zLeft uintptr, zRight uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32932:16: */
var a uintptr
var b uintptr
if zLeft == uintptr(0) {
@@ -19468,7 +19741,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 { /* sqlite3.c:32388:19: */
+func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32948:19: */
var h U8 = U8(0)
if z == uintptr(0) {
return U8(0)
@@ -19484,7 +19757,7 @@ func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* sqlite3.c:32388:19: */
// 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 { /* sqlite3.c:32404:24: */
+func sqlite3Pow10(tls *libc.TLS, E int32) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32964:24: */
var x float64 = 10.0
var r float64 = 1.0
for 1 != 0 {
@@ -19527,7 +19800,7 @@ func sqlite3Pow10(tls *libc.TLS, E int32) float64 { /* sqlite3.c:32404:24: */
// 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 { /* sqlite3.c:32469:20: */
+func Xsqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33029:20: */
var incr int32
var zEnd uintptr
// sign * significand * (10 ^ (esign * exponent))
@@ -19907,7 +20180,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) { /* sqlite3.c:32668:21: */
+func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33228:21: */
bp := tls.Alloc(22)
defer tls.Free(22)
@@ -19926,7 +20199,7 @@ func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* sqlite3.c:3266
}
i = int32(uint64(unsafe.Sizeof([22]int8{})) - uint64(2))
*(*int8)(unsafe.Pointer(bp + 21)) = int8(0)
- for ok := true; ok; ok = x != 0 {
+ for __ccgo := true; __ccgo; __ccgo = x != 0 {
*(*int8)(unsafe.Pointer(bp + uintptr(libc.PostDecInt32(&i, 1)))) = int8(x%uint64(10) + uint64('0'))
x = x / uint64(10)
}
@@ -19948,11 +20221,11 @@ func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* sqlite3.c:3266
// compare2pow63("9223372036854775800", 1)
//
// will return -8.
-func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* sqlite3.c:32701:12: */
+func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33261:12: */
var c int32 = 0
var i int32
// 012345678901234567
- var pow63 uintptr = ts + 1582 /* "9223372036854775..." */
+ var pow63 uintptr = ts + 1551 /* "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
}
@@ -19977,7 +20250,7 @@ func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:32734:20: */
+func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33294:20: */
var incr int32
var u U64 = uint64(0)
var neg int32 = 0 // assume positive
@@ -20042,7 +20315,7 @@ func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc
rc = 1
} else if zNum+uintptr(i) < zEnd { // Extra bytes at the end
var jj int32 = i
- for ok := true; ok; ok = zNum+uintptr(jj) < zEnd {
+ for __ccgo := true; __ccgo; __ccgo = zNum+uintptr(jj) < zEnd {
if !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zNum + uintptr(jj))))])&0x01 != 0) {
rc = 1 // Extra non-space text after the integer
break
@@ -20099,7 +20372,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 { /* sqlite3.c:32837:20: */
+func Xsqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33397:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -20132,7 +20405,7 @@ func Xsqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* sq
// 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 { /* sqlite3.c:32867:20: */
+func Xsqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33427:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20194,7 +20467,7 @@ func Xsqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) int32 { /* sq
// 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 { /* sqlite3.c:32926:20: */
+func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33486:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20207,7 +20480,7 @@ func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:32926:20: */
// success and false if there is an error.
//
// Only decimal notation is accepted.
-func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* sqlite3.c:32938:20: */
+func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33498:20: */
var v U64 = uint64(0)
var i int32
for i = 0; int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x04 != 0; i++ {
@@ -20250,7 +20523,7 @@ func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:32979:28: */
+func putVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33539:28: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -20269,7 +20542,7 @@ func putVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:32979:28:
return 9
}
n = 0
- for ok := true; ok; ok = v != uint64(0) {
+ for __ccgo := true; __ccgo; __ccgo = v != uint64(0) {
*(*U8)(unsafe.Pointer(bp + uintptr(libc.PostIncInt32(&n, 1)))) = U8(v&uint64(0x7f) | uint64(0x80))
v >>= 7
}
@@ -20296,7 +20569,7 @@ __3:
return n
}
-func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:33003:20: */
+func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33563:20: */
if v <= uint64(0x7f) {
*(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f))
return 1
@@ -20319,7 +20592,7 @@ func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:330
// 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 { /* sqlite3.c:33033:19: */
+func Xsqlite3GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33593:19: */
var a U32
var b U32
var s U32
@@ -20472,7 +20745,7 @@ func Xsqlite3GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c:33
// 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 { /* sqlite3.c:33194:19: */
+func Xsqlite3GetVarint32(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33754:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -20540,7 +20813,7 @@ func Xsqlite3GetVarint32(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c:
// Return the number of bytes that will be needed to store the given
// 64-bit integer.
-func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* sqlite3.c:33316:20: */
+func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33876:20: */
var i int32
for i = 1; libc.AssignShrUint64(&v, int(uint64(7))) != uint64(0); i++ {
}
@@ -20548,7 +20821,7 @@ func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* sqlite3.c:33316:20: */
}
// Read or write a four-byte big-endian integer value.
-func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:33326:20: */
+func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33886:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20558,7 +20831,7 @@ func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:33326:20: */
return libc.X__builtin_bswap32(tls, *(*U32)(unsafe.Pointer(bp /* x */)))
}
-func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* sqlite3.c:33344:21: */
+func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33904:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20569,7 +20842,7 @@ func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* sqlite3.c:33344:21:
// 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 { /* sqlite3.c:33368:19: */
+func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33928:19: */
h = h + 9*(1&(h>>6))
return U8(h & 0xf)
@@ -20579,7 +20852,7 @@ func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* sqlite3.c:33368:19: */
// 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 { /* sqlite3.c:33386:21: */
+func Xsqlite3HexToBlob(tls *libc.TLS, db uintptr, z uintptr, n int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33946:21: */
var zBlob uintptr
var i int32
@@ -20597,12 +20870,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) { /* sqlite3.c:33407:13: */
+func logBadConnection(tls *libc.TLS, zType uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33967:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
Xsqlite3_log(tls, SQLITE_MISUSE,
- ts+1601,
+ ts+1570,
libc.VaList(bp, zType))
}
@@ -20618,17 +20891,17 @@ func logBadConnection(tls *libc.TLS, zType uintptr) { /* sqlite3.c:33407:13: */
// 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 { /* sqlite3.c:33428:20: */
+func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33988:20: */
var eOpenState U8
if db == uintptr(0) {
- logBadConnection(tls, ts+1547)
+ logBadConnection(tls, ts+1516)
return 0
}
eOpenState = (*Sqlite3)(unsafe.Pointer(db)).FeOpenState
if int32(eOpenState) != SQLITE_STATE_OPEN {
if Xsqlite3SafetyCheckSickOrOk(tls, db) != 0 {
- logBadConnection(tls, ts+1646)
+ logBadConnection(tls, ts+1615)
}
return 0
} else {
@@ -20637,12 +20910,12 @@ func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:33428
return int32(0)
}
-func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:33445:20: */
+func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34005: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+1655)
+ logBadConnection(tls, ts+1624)
return 0
} else {
return 1
@@ -20654,21 +20927,21 @@ func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:33465:20: */
+func Xsqlite3AddInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34025:20: */
return libc.X__builtin_add_overflowInt64(tls, *(*I64)(unsafe.Pointer(pA)), iB, pA)
}
-func Xsqlite3SubInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* sqlite3.c:33485:20: */
+func Xsqlite3SubInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34045:20: */
return libc.X__builtin_sub_overflowInt64(tls, *(*I64)(unsafe.Pointer(pA)), iB, pA)
}
-func Xsqlite3MulInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* sqlite3.c:33500:20: */
+func Xsqlite3MulInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34060:20: */
return libc.X__builtin_mul_overflowInt64(tls, *(*I64)(unsafe.Pointer(pA)), iB, pA)
}
// Compute the absolute value of a 32-bit signed integer, of possible. Or
// if the integer has a value of -2147483648, return +2147483647
-func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* sqlite3.c:33526:20: */
+func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34086:20: */
if x >= 0 {
return x
}
@@ -20682,7 +20955,7 @@ func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* sqlite3.c:33526:20: */
// not a simple "+" operator because LogEst is stored as a logarithmic
// value.
//
-func Xsqlite3LogEstAdd(tls *libc.TLS, a LogEst, b LogEst) LogEst { /* sqlite3.c:33569:23: */
+func Xsqlite3LogEstAdd(tls *libc.TLS, a LogEst, b LogEst) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34129:23: */
if int32(a) >= int32(b) {
if int32(a) > int32(b)+49 {
return a
@@ -20713,11 +20986,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
-} /* sqlite3.c:33570:30 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34130: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 { /* sqlite3.c:33596:23: */
+func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34156:23: */
var y LogEst = int16(40)
if x < uint64(8) {
if x < uint64(2) {
@@ -20735,11 +21008,11 @@ func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* sqlite3.c:33596:23: */
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)} /* sqlite3.c:33597:17 */
+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 */
// Convert a double into a LogEst
// In other words, compute an approximation for 10*log2(x).
-func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* sqlite3.c:33620:23: */
+func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34179:23: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = x
@@ -20760,10 +21033,7 @@ func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* sqlite3.c:33
}
// Convert a LogEst into an integer.
-//
-// Note that this routine is only used when one or more of various
-// non-standard compile-time options is enabled.
-func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* sqlite3.c:33641:20: */
+func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34193:20: */
var n U64
n = U64(int32(x) % 10)
x = int16(int32(x) / 10)
@@ -20772,9 +21042,9 @@ func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* sqlite3.c:33641:20: *
} else if n >= uint64(1) {
n = n - uint64(1)
}
- // If only SQLITE_ENABLE_STAT4 is on, then the largest input
- // possible to this routine is 310, resulting in a maximum x of 31
-
+ if int32(x) > 60 {
+ return uint64(int64(0xffffffff) | I64(int64(0x7fffffff))<<32)
+ }
if int32(x) >= 3 {
return (n + uint64(8)) << (int32(x) - 3)
}
@@ -20815,7 +21085,7 @@ func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* sqlite3.c:33641:20: *
// 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 { /* sqlite3.c:33695:22: */
+func Xsqlite3VListAdd(tls *libc.TLS, db uintptr, pIn uintptr, zName uintptr, nName int32, iVal int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34239: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
@@ -20854,7 +21124,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 { /* sqlite3.c:33733:27: */
+func Xsqlite3VListNumToName(tls *libc.TLS, pIn uintptr, iVal int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34277:27: */
var i int32
var mx int32
if pIn == uintptr(0) {
@@ -20862,7 +21132,7 @@ func Xsqlite3VListNumToName(tls *libc.TLS, pIn uintptr, iVal int32) uintptr { /*
}
mx = *(*VList)(unsafe.Pointer(pIn + 1*4))
i = 2
- for ok := true; ok; ok = i < mx {
+ for __ccgo := true; __ccgo; __ccgo = i < mx {
if *(*VList)(unsafe.Pointer(pIn + uintptr(i)*4)) == iVal {
return pIn + uintptr(i+2)*4
}
@@ -20873,7 +21143,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 { /* sqlite3.c:33749:20: */
+func Xsqlite3VListNameToNum(tls *libc.TLS, pIn uintptr, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34293:20: */
var i int32
var mx int32
if pIn == uintptr(0) {
@@ -20881,7 +21151,7 @@ func Xsqlite3VListNameToNum(tls *libc.TLS, pIn uintptr, zName uintptr, nName int
}
mx = *(*VList)(unsafe.Pointer(pIn + 1*4))
i = 2
- for ok := true; ok; ok = i < mx {
+ for __ccgo := true; __ccgo; __ccgo = i < mx {
var z uintptr = pIn + uintptr(i+2)*4
if libc.Xstrncmp(tls, z, zName, uint64(nName)) == 0 && int32(*(*int8)(unsafe.Pointer(z + uintptr(nName)))) == 0 {
return *(*VList)(unsafe.Pointer(pIn + uintptr(i)*4))
@@ -20912,7 +21182,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) { /* sqlite3.c:33786:21: */
+func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34330:21: */
(*Hash)(unsafe.Pointer(pNew)).Ffirst = uintptr(0)
(*Hash)(unsafe.Pointer(pNew)).Fcount = uint32(0)
@@ -20923,7 +21193,7 @@ func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* sqlite3.c:33786:21: */
// 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) { /* sqlite3.c:33798:21: */
+func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34342:21: */
var elem uintptr // For looping over all elements of the table
elem = (*Hash)(unsafe.Pointer(pH)).Ffirst
@@ -20940,7 +21210,7 @@ func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* sqlite3.c:33798:21: */
}
// The hashing function.
-func strHash(tls *libc.TLS, z uintptr) uint32 { /* sqlite3.c:33818:21: */
+func strHash(tls *libc.TLS, z uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34362: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
@@ -20955,7 +21225,7 @@ func strHash(tls *libc.TLS, z uintptr) uint32 { /* sqlite3.c:33818:21: */
// 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) { /* sqlite3.c:33835:13: */
+func insertElement(tls *libc.TLS, pH uintptr, pEntry uintptr, pNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34379:13: */
var pHead uintptr // First element already in pEntry
if pEntry != 0 {
if (*_ht)(unsafe.Pointer(pEntry)).Fcount != 0 {
@@ -20992,7 +21262,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 { /* sqlite3.c:33869:12: */
+func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34413:12: */
var new_ht uintptr // The new hash table
var elem uintptr
var next_elem uintptr // For looping over existing elements
@@ -21036,7 +21306,7 @@ func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* sqlite3.c:338
// 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 { /* sqlite3.c:33910:17: */
+func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34454:17: */
var elem uintptr // Used to loop thru the element list
var count uint32 // Number of elements left to test
var h uint32
@@ -21065,11 +21335,11 @@ func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr)
return uintptr(unsafe.Pointer(&nullElement))
}
-var nullElement = HashElem{} /* sqlite3.c:33918:19 */
+var nullElement = HashElem{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34462: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) { /* sqlite3.c:33945:13: */
+func removeElementGivenHash(tls *libc.TLS, pH uintptr, elem uintptr, h uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34489: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
@@ -21098,7 +21368,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 { /* sqlite3.c:33980:21: */
+func Xsqlite3HashFind(tls *libc.TLS, pH uintptr, pKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34524:21: */
return (*HashElem)(unsafe.Pointer(findElementWithHash(tls, pH, pKey, uintptr(0)))).Fdata
}
@@ -21116,7 +21386,7 @@ func Xsqlite3HashFind(tls *libc.TLS, pH uintptr, pKey uintptr) uintptr { /* sqli
//
// 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 { /* sqlite3.c:34000:21: */
+func Xsqlite3HashInsert(tls *libc.TLS, pH uintptr, pKey uintptr, data uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34544:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -21165,194 +21435,197 @@ 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 { /* sqlite3.c:34046:27: */
+func Xsqlite3OpcodeName(tls *libc.TLS, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34590:27: */
return azName[i]
}
-var azName = [182]uintptr{
- ts + 1663,
- ts + 1673,
- ts + 1684,
- ts + 1696,
- ts + 1707,
- ts + 1712,
- ts + 1717,
- ts + 1728,
- ts + 1740,
- ts + 1747,
- ts + 1755,
+var azName = [185]uintptr{
+ ts + 1632,
+ ts + 1642,
+ ts + 1653,
+ ts + 1665,
+ ts + 1676,
+ ts + 1681,
+ ts + 1686,
+ ts + 1697,
+ ts + 1709,
+ ts + 1716,
+ ts + 1724,
+ ts + 1732,
+ ts + 1737,
+ ts + 1743,
+ ts + 1757,
ts + 1763,
- ts + 1768,
- ts + 1774,
- ts + 1788,
- ts + 1794,
- ts + 1804,
+ ts + 1773,
+ ts + 1778,
+ ts + 1783,
+ ts + 1786,
+ ts + 1790,
+ ts + 1796,
ts + 1809,
- ts + 1814,
- ts + 1817,
- ts + 1821,
- ts + 1827,
+ ts + 1819,
+ ts + 1826,
+ ts + 1833,
ts + 1840,
- ts + 1850,
+ ts + 1847,
ts + 1857,
- ts + 1864,
- ts + 1871,
- ts + 1878,
- ts + 1888,
- ts + 1897,
- ts + 1908,
+ ts + 1866,
+ ts + 1877,
+ ts + 1886,
+ ts + 1892,
+ ts + 1902,
+ ts + 1912,
ts + 1917,
- ts + 1923,
- ts + 1933,
+ ts + 1927,
+ ts + 1938,
ts + 1943,
- ts + 1948,
- ts + 1958,
- ts + 1969,
+ ts + 1950,
+ ts + 1956,
+ ts + 1962,
+ ts + 1968,
ts + 1974,
+ ts + 1977,
ts + 1981,
- ts + 1987,
- ts + 1993,
- ts + 1999,
- ts + 2005,
- ts + 2008,
- ts + 2012,
- ts + 2023,
- ts + 2034,
- ts + 2042,
- ts + 2051,
- ts + 2057,
- ts + 2064,
- ts + 2072,
- ts + 2075,
- ts + 2078,
- ts + 2081,
- ts + 2084,
- ts + 2087,
- ts + 2090,
- ts + 2097,
- ts + 2107,
- ts + 2120,
- ts + 2131,
- ts + 2137,
- ts + 2142,
- ts + 2151,
- ts + 2160,
+ ts + 1992,
+ ts + 2003,
+ ts + 2011,
+ ts + 2020,
+ ts + 2026,
+ ts + 2033,
+ ts + 2041,
+ ts + 2044,
+ ts + 2047,
+ ts + 2050,
+ ts + 2053,
+ ts + 2056,
+ ts + 2059,
+ ts + 2066,
+ ts + 2076,
+ ts + 2089,
+ ts + 2100,
+ ts + 2106,
+ ts + 2113,
+ ts + 2118,
+ ts + 2127,
+ ts + 2136,
+ ts + 2143,
+ ts + 2156,
ts + 2167,
+ ts + 2172,
ts + 2180,
- ts + 2191,
- ts + 2196,
- ts + 2204,
- ts + 2210,
- ts + 2217,
- ts + 2222,
+ ts + 2186,
+ ts + 2193,
+ ts + 2198,
+ ts + 2207,
+ ts + 2212,
+ ts + 2221,
+ ts + 2226,
ts + 2231,
- ts + 2236,
+ ts + 2237,
ts + 2245,
- ts + 2250,
- ts + 2255,
- ts + 2261,
- ts + 2269,
- ts + 2280,
- ts + 2290,
- ts + 2298,
- ts + 2305,
- ts + 2318,
+ ts + 2253,
+ ts + 2263,
+ ts + 2271,
+ ts + 2278,
+ ts + 2291,
+ ts + 2296,
+ ts + 2308,
+ ts + 2316,
ts + 2323,
- ts + 2335,
- ts + 2343,
- ts + 2350,
- ts + 2361,
- ts + 2368,
- ts + 2375,
- ts + 2385,
- ts + 2394,
+ ts + 2334,
+ ts + 2341,
+ ts + 2348,
+ ts + 2358,
+ ts + 2367,
+ ts + 2378,
+ ts + 2384,
+ ts + 2395,
ts + 2405,
- ts + 2411,
- ts + 2422,
- ts + 2432,
- ts + 2442,
- ts + 2451,
- ts + 2461,
- ts + 2468,
- ts + 2474,
- ts + 2484,
- ts + 2495,
- ts + 2499,
- ts + 2508,
- ts + 2517,
- ts + 2524,
- ts + 2534,
- ts + 2541,
- ts + 2549,
- ts + 2556,
- ts + 2570,
- ts + 2584,
- ts + 2592,
- ts + 2603,
- ts + 2616,
+ ts + 2415,
+ ts + 2424,
+ ts + 2431,
+ ts + 2437,
+ ts + 2447,
+ ts + 2458,
+ ts + 2462,
+ ts + 2471,
+ ts + 2480,
+ ts + 2487,
+ ts + 2497,
+ ts + 2504,
+ ts + 2514,
+ ts + 2522,
+ ts + 2529,
+ ts + 2543,
+ ts + 2557,
+ ts + 2565,
+ ts + 2576,
+ ts + 2589,
+ ts + 2600,
+ ts + 2606,
+ ts + 2618,
ts + 2627,
- ts + 2633,
- ts + 2645,
- ts + 2654,
- ts + 2662,
- ts + 2671,
- 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 + 2860,
- ts + 2872,
- ts + 2880,
- ts + 2892,
- ts + 2905,
+ ts + 2635,
+ ts + 2644,
+ ts + 2653,
+ ts + 2660,
+ ts + 2668,
+ ts + 2675,
+ ts + 2686,
+ ts + 2700,
+ ts + 2711,
+ ts + 2719,
+ ts + 2725,
+ ts + 2733,
+ ts + 2741,
+ ts + 2751,
+ ts + 2764,
+ ts + 2774,
+ ts + 2787,
+ ts + 2796,
+ ts + 2807,
+ ts + 2815,
+ ts + 2821,
+ ts + 2833,
+ ts + 2845,
+ ts + 2853,
+ ts + 2865,
+ ts + 2878,
+ ts + 2888,
+ ts + 2898,
+ ts + 2910,
ts + 2915,
- ts + 2925,
+ ts + 2927,
ts + 2937,
- ts + 2942,
- ts + 2954,
- ts + 2964,
- ts + 2970,
- ts + 2980,
- ts + 2987,
- ts + 2999,
- ts + 3010,
+ ts + 2943,
+ ts + 2953,
+ ts + 2960,
+ ts + 2972,
+ ts + 2983,
+ ts + 2991,
+ ts + 3000,
+ ts + 3009,
ts + 3018,
- ts + 3027,
+ ts + 3025,
ts + 3036,
- ts + 3045,
- ts + 3052,
- ts + 3063,
- ts + 3076,
- ts + 3086,
- ts + 3093,
- ts + 3101,
- ts + 3110,
- ts + 3116,
- ts + 3124,
+ ts + 3049,
+ ts + 3059,
+ ts + 3066,
+ ts + 3074,
+ ts + 3083,
+ ts + 3089,
+ ts + 3097,
+ ts + 3105,
+ ts + 3113,
+ ts + 3123,
ts + 3132,
ts + 3142,
- ts + 3151,
- ts + 3157,
- ts + 3168,
- ts + 3179,
- ts + 3184,
- ts + 3192,
-} /* sqlite3.c:34047:20 */
+ ts + 3148,
+ ts + 3159,
+ ts + 3170,
+ ts + 3175,
+ ts + 3183,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34591:20 */
//************* End of opcodes.c ********************************************
//************* Begin file os_unix.c ****************************************
@@ -21661,7 +21934,7 @@ type stat = struct {
Fst_gen Uint32_t
Fst_spare [2]Uint32_t
F__ccgo_pad3 [4]byte
-} /* stat.h:59:1 */
+} /* /usr/include/sys/stat.h:59:1 */
// $NetBSD: fcntl.h,v 1.50 2018/02/20 18:20:05 kamil Exp $
@@ -21881,7 +22154,7 @@ type flock = struct {
Fl_pid X__pid_t
Fl_type int16
Fl_whence int16
-} /* fcntl.h:252:1 */
+} /* /usr/include/fcntl.h:252:1 */
// $NetBSD: ioctl.h,v 1.39 2019/03/25 19:24:31 maxv Exp $
@@ -22047,7 +22320,7 @@ type winsize = struct {
Fws_col uint16
Fws_xpixel uint16
Fws_ypixel uint16
-} /* ttycom.h:54:1 */
+} /* /usr/include/sys/ttycom.h:54:1 */
// The following are not exposed when imported via <termios.h>
// when _POSIX_SOURCE (et.al.) is defined (and hence _NETBSD_SOURCE
@@ -22059,14 +22332,14 @@ type ptmget = struct {
Fsfd int32
Fcn [1024]int8
Fsn [1024]int8
-} /* ttycom.h:74:1 */
+} /* /usr/include/sys/ttycom.h:74:1 */
// 8-10 compat
// 15 unused
// 17-18 compat
// This is the maximum length of a line discipline's name.
-type Linedn_t = [32]int8 /* ttycom.h:111:14 */
+type Linedn_t = [32]int8 /* /usr/include/sys/ttycom.h:111:14 */
// 127-124 compat
// 117-116 compat
@@ -22078,7 +22351,7 @@ type ttysize = struct {
Fts_cols uint16
Fts_xxx uint16
Fts_yyy uint16
-} /* ioctl.h:49:1 */
+} /* /usr/include/sys/ioctl.h:49:1 */
// $NetBSD: ioccom.h,v 1.13 2019/05/26 10:21:33 hannken Exp $
@@ -22247,7 +22520,7 @@ type ttysize = struct {
type plistref = struct {
Fpref_plist uintptr
Fpref_len Size_t
-} /* plistref.h:43:1 */
+} /* /usr/include/prop/plistref.h:43:1 */
// Disk-specific ioctls.
// get and set disklabel; DIOCGPARTINFO used internally
@@ -22446,7 +22719,7 @@ type plistref = struct {
type ioctl_pt = struct {
Fcom uint64
Fdata uintptr
-} /* ioctl.h:72:1 */
+} /* /usr/include/sys/ioctl.h:72:1 */
// Try to determine if gethostuuid() is available based on standard
// macros. This might sometimes compute the wrong value for some
@@ -22487,7 +22760,7 @@ type unixShm = struct {
FsharedMask U16
FexclMask U16
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:34433:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */
// Try to determine if gethostuuid() is available based on standard
// macros. This might sometimes compute the wrong value for some
@@ -22520,7 +22793,7 @@ type unixShm = struct {
// a normal expected return code of SQLITE_BUSY or SQLITE_OK
// Forward references
-type UnixShm = unixShm /* sqlite3.c:34433:24 */ // Connection shared memory
+type UnixShm = unixShm /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:24 */ // Connection shared memory
type unixShmNode = struct {
FpInode uintptr
FpShmMutex uintptr
@@ -22536,10 +22809,10 @@ type unixShmNode = struct {
F__ccgo_pad2 [4]byte
FpFirst uintptr
FaLock [8]int32
-} /* sqlite3.c:34433:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */
// Connection shared memory
-type UnixShmNode = unixShmNode /* sqlite3.c:34434:28 */ // Shared memory instance
+type UnixShmNode = unixShmNode /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34981:28 */ // Shared memory instance
type unixInodeInfo = struct {
FfileId struct {
Fdev Dev_t
@@ -22557,18 +22830,18 @@ type unixInodeInfo = struct {
FpShmNode uintptr
FpNext uintptr
FpPrev uintptr
-} /* sqlite3.c:34433:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */
// Shared memory instance
-type UnixInodeInfo = unixInodeInfo /* sqlite3.c:34435:30 */ // An i-node
+type UnixInodeInfo = unixInodeInfo /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34982:30 */ // An i-node
type UnixUnusedFd1 = struct {
Ffd int32
Fflags int32
FpNext uintptr
-} /* sqlite3.c:34433:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */
// An i-node
-type UnixUnusedFd = UnixUnusedFd1 /* sqlite3.c:34436:29 */
+type UnixUnusedFd = UnixUnusedFd1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34983:29 */
// The unixFile structure is subclass of sqlite3_file specific to the unix
// VFS implementations.
@@ -22590,16 +22863,16 @@ type unixFile = struct {
FsectorSize int32
FdeviceCharacteristics int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:34454:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35001:9 */
// The unixFile structure is subclass of sqlite3_file specific to the unix
// VFS implementations.
-type UnixFile = unixFile /* sqlite3.c:34454:25 */
+type UnixFile = unixFile /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35001: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 X__pid_t = 0 /* sqlite3.c:34515:14 */
+var randomnessPid X__pid_t = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35062:14 */
// Allowed values for the unixFile.ctrlFlags bitmask:
@@ -22622,7 +22895,7 @@ var randomnessPid X__pid_t = 0 /* sqlite3.c:34515:14 */
//
// 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 { /* sqlite3.c:34606:12: */
+func posixOpen(tls *libc.TLS, zFile uintptr, flags int32, mode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35153:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -22637,82 +22910,82 @@ type unix_syscall = struct {
FzName uintptr
FpCurrent Sqlite3_syscall_ptr
FpDefault Sqlite3_syscall_ptr
-} /* sqlite3.c:34620:8 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35167: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 + 3202, FpCurrent: 0},
+ {FzName: ts + 3193, FpCurrent: 0},
- {FzName: ts + 3207, FpCurrent: 0},
+ {FzName: ts + 3198, FpCurrent: 0},
- {FzName: ts + 3213, FpCurrent: 0},
+ {FzName: ts + 3204, FpCurrent: 0},
- {FzName: ts + 3220, FpCurrent: 0},
+ {FzName: ts + 3211, FpCurrent: 0},
- {FzName: ts + 3227, FpCurrent: 0},
+ {FzName: ts + 3218, 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 + 3232, FpCurrent: 0},
+ {FzName: ts + 3223, FpCurrent: 0},
- {FzName: ts + 3238, FpCurrent: 0},
+ {FzName: ts + 3229, FpCurrent: 0},
- {FzName: ts + 3248, FpCurrent: 0},
+ {FzName: ts + 3239, FpCurrent: 0},
- {FzName: ts + 3254, FpCurrent: 0},
+ {FzName: ts + 3245, FpCurrent: 0},
- {FzName: ts + 3259},
+ {FzName: ts + 3250},
- {FzName: ts + 3265},
+ {FzName: ts + 3256},
- {FzName: ts + 3273, FpCurrent: 0},
+ {FzName: ts + 3264, FpCurrent: 0},
- {FzName: ts + 3279},
+ {FzName: ts + 3270},
- {FzName: ts + 3286},
+ {FzName: ts + 3277},
- {FzName: ts + 3295, FpCurrent: 0},
+ {FzName: ts + 3286, FpCurrent: 0},
- {FzName: ts + 3302},
+ {FzName: ts + 3293},
- {FzName: ts + 3312, FpCurrent: 0},
+ {FzName: ts + 3303, FpCurrent: 0},
- {FzName: ts + 3319, FpCurrent: 0},
+ {FzName: ts + 3310, FpCurrent: 0},
- {FzName: ts + 3333, FpCurrent: 0},
+ {FzName: ts + 3324, FpCurrent: 0},
- {FzName: ts + 3339, FpCurrent: 0},
+ {FzName: ts + 3330, FpCurrent: 0},
- {FzName: ts + 3345, FpCurrent: 0},
+ {FzName: ts + 3336, FpCurrent: 0},
- {FzName: ts + 3352, FpCurrent: 0},
+ {FzName: ts + 3343, FpCurrent: 0},
- {FzName: ts + 3360, FpCurrent: 0},
+ {FzName: ts + 3351, FpCurrent: 0},
- {FzName: ts + 3365, FpCurrent: 0},
+ {FzName: ts + 3356, FpCurrent: 0},
- {FzName: ts + 3372},
+ {FzName: ts + 3363},
- {FzName: ts + 3379, FpCurrent: 0},
+ {FzName: ts + 3370, FpCurrent: 0},
- {FzName: ts + 3391, FpCurrent: 0},
+ {FzName: ts + 3382, FpCurrent: 0},
- {FzName: ts + 3400, FpCurrent: 0},
+ {FzName: ts + 3391, FpCurrent: 0},
- {FzName: ts + 3406},
-} /* sqlite3.c:34624:3 */
+ {FzName: ts + 3397},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35171: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 X__uid_t, gid X__gid_t) int32 { /* sqlite3.c:34794:12: */
+func robustFchown(tls *libc.TLS, fd int32, uid X__uid_t, gid X__gid_t) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35341:12: */
if (*(*func(*libc.TLS) X__uid_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 21*24 + 8)))(tls) != 0 {
return 0
}
@@ -22723,7 +22996,7 @@ func robustFchown(tls *libc.TLS, fd int32, uid X__uid_t, gid X__gid_t) int32 { /
// "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 { /* sqlite3.c:34808:12: */
+func unixSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35355:12: */
var i uint32
var rc int32 = SQLITE_NOTFOUND
@@ -22760,7 +23033,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 { /* sqlite3.c:34851:28: */
+func unixGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35398:28: */
var i uint32
_ = pNotUsed
@@ -22776,7 +23049,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 { /* sqlite3.c:34870:19: */
+func unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35417:19: */
var i int32 = -1
_ = p
@@ -22814,7 +23087,7 @@ func unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* sq
// 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 X__mode_t) int32 { /* sqlite3.c:34911:12: */
+func robust_open(tls *libc.TLS, z uintptr, f int32, m X__mode_t) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35458:12: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -22838,9 +23111,9 @@ func robust_open(tls *libc.TLS, z uintptr, f int32, m X__mode_t) int32 { /* sqli
}
(*(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1*24 + 8)))(tls, fd)
Xsqlite3_log(tls, SQLITE_WARNING,
- ts+3412, libc.VaList(bp, z, fd))
+ ts+3403, libc.VaList(bp, z, fd))
fd = -1
- if (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls, ts+3455, O_RDONLY, int32(m)) < 0 {
+ if (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls, ts+3446, O_RDONLY, int32(m)) < 0 {
break
}
}
@@ -22881,14 +23154,14 @@ func robust_open(tls *libc.TLS, z uintptr, f int32, m X__mode_t) int32 { /* sqli
// OK: enter(unixBigLock)
// OK: enter(pLockInfo)
// ERROR: enter(pLockInfo), enter(unixBigLock)
-var unixBigLock uintptr = uintptr(0) /* sqlite3.c:34973:22 */
+var unixBigLock uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35520:22 */
-func unixEnterMutex(tls *libc.TLS) { /* sqlite3.c:34974:13: */
+func unixEnterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35521:13: */
// Not a recursive mutex
Xsqlite3_mutex_enter(tls, unixBigLock)
}
-func unixLeaveMutex(tls *libc.TLS) { /* sqlite3.c:34978:13: */
+func unixLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35525:13: */
Xsqlite3_mutex_leave(tls, unixBigLock)
}
@@ -22898,9 +23171,9 @@ func unixLeaveMutex(tls *libc.TLS) { /* sqlite3.c:34978:13: */
// 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 { /* sqlite3.c:35074:12: */
+func robust_ftruncate(tls *libc.TLS, h int32, sz Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35621:12: */
var rc int32
- for ok := true; ok; ok = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR {
+ for __ccgo := true; __ccgo; __ccgo = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR {
rc = (*(*func(*libc.TLS, int32, X__off_t) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 6*24 + 8)))(tls, h, int64(sz))
}
return rc
@@ -22914,7 +23187,7 @@ func robust_ftruncate(tls *libc.TLS, h int32, sz Sqlite3_int64) int32 { /* sqlit
//
// 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 { /* sqlite3.c:35099:12: */
+func sqliteErrorFromPosixError(tls *libc.TLS, posixError int32, sqliteIOErr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35646:12: */
switch posixError {
case EACCES:
@@ -22963,7 +23236,7 @@ type vxworksFileId = struct {
FnRef int32
FnName int32
FzCanonicalName uintptr
-} /* sqlite3.c:35141:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35688:1 */
// ************** End of Unique File ID Utility Used By VxWorks ****************
//
@@ -23064,12 +23337,12 @@ type vxworksFileId = struct {
type unixFileId = struct {
Fdev Dev_t
Fino U64
-} /* sqlite3.c:34433:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */
// A lists of all unixInodeInfo objects.
//
// Must hold unixBigLock in order to read or write this variable.
-var inodeList uintptr = uintptr(0) /* sqlite3.c:35423:22 */
+var inodeList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35970:22 */
// All unixInodeInfo objects
@@ -23087,7 +23360,7 @@ var inodeList uintptr = uintptr(0) /* sqlite3.c:35423:22 */
// 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 { /* sqlite3.c:35458:12: */
+func unixLogErrorAtLine(tls *libc.TLS, errcode int32, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36005:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -23098,13 +23371,13 @@ func unixLogErrorAtLine(tls *libc.TLS, errcode int32, zFunc uintptr, zPath uintp
// the strerror() function to obtain the human-readable error message
// equivalent to errno. Otherwise, use strerror_r().
// This is a threadsafe build, but strerror_r() is not available.
- zErr = ts + 1546 /* "" */
+ zErr = ts + 1515 /* "" */
if zPath == uintptr(0) {
- zPath = ts + 1546 /* "" */
+ zPath = ts + 1515 /* "" */
}
Xsqlite3_log(tls, errcode,
- ts+3465,
+ ts+3456,
libc.VaList(bp, iLine, iErrno, zFunc, zPath, zErr))
return errcode
@@ -23121,9 +23394,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) { /* sqlite3.c:35523:13: */
+func robust_close(tls *libc.TLS, pFile uintptr, h int32, lineno int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36070: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+3207,
+ unixLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, ts+3198,
func() uintptr {
if pFile != 0 {
return (*UnixFile)(unsafe.Pointer(pFile)).FzPath
@@ -23135,19 +23408,19 @@ func robust_close(tls *libc.TLS, pFile uintptr, h int32, lineno int32) { /* sqli
// 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) { /* sqlite3.c:35534:13: */
+func storeLastErrno(tls *libc.TLS, pFile uintptr, error int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36081:13: */
(*UnixFile)(unsafe.Pointer(pFile)).FlastErrno = error
}
// Close all file descriptors accumuated in the unixInodeInfo->pUnused list.
-func closePendingFds(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:35541:13: */
+func closePendingFds(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36088: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, 35548)
+ robust_close(tls, pFile, (*UnixUnusedFd)(unsafe.Pointer(p)).Ffd, 36095)
Xsqlite3_free(tls, p)
}
(*UnixInodeInfo)(unsafe.Pointer(pInode)).FpUnused = uintptr(0)
@@ -23157,7 +23430,7 @@ func closePendingFds(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:35541:13: */
//
// 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) { /* sqlite3.c:35560:13: */
+func releaseInodeInfo(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36107:13: */
var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode
if pInode != 0 {
@@ -23191,7 +23464,7 @@ func releaseInodeInfo(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:35560:13: */
// The global mutex must held when calling this routine.
//
// Return an appropriate error code.
-func findInodeInfo(tls *libc.TLS, pFile uintptr, ppInode uintptr) int32 { /* sqlite3.c:35597:12: */
+func findInodeInfo(tls *libc.TLS, pFile uintptr, ppInode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36144:12: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -23250,7 +23523,7 @@ func findInodeInfo(tls *libc.TLS, pFile uintptr, ppInode uintptr) int32 { /* sql
}
// Return TRUE if pFile has been renamed or unlinked since it was first opened.
-func fileHasMoved(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:35689:12: */
+func fileHasMoved(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36236:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -23267,7 +23540,7 @@ func fileHasMoved(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:35689:12: *
// (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) { /* sqlite3.c:35710:13: */
+func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36257:13: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -23282,19 +23555,19 @@ func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:35710:13: */
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+3496, libc.VaList(bp, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3487, 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+3520, libc.VaList(bp+8, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3511, 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+3549, libc.VaList(bp+16, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3540, libc.VaList(bp+16, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
return
}
if fileHasMoved(tls, pFile) != 0 {
- Xsqlite3_log(tls, SQLITE_WARNING, ts+3576, libc.VaList(bp+24, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3567, libc.VaList(bp+24, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
return
}
}
@@ -23303,7 +23576,7 @@ func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:35710:13: */
// 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 { /* sqlite3.c:35743:12: */
+func unixCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36290:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -23369,7 +23642,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 { /* sqlite3.c:35844:12: */
+func unixFileLock(tls *libc.TLS, pFile uintptr, pLock uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36391:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -23421,7 +23694,7 @@ func unixFileLock(tls *libc.TLS, pFile uintptr, pLock uintptr) int32 { /* sqlite
//
// 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 { /* sqlite3.c:35894:12: */
+func unixLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36441:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -23668,7 +23941,7 @@ end_lock:
// Add the file descriptor used by file handle pFile to the corresponding
// pUnused list.
-func setPendingFd(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:36121:13: */
+func setPendingFd(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36668:13: */
var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode
var p uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpPreallocatedUnused
@@ -23689,7 +23962,7 @@ func setPendingFd(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:36121:13: */
// 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 { /* sqlite3.c:36144:12: */
+func posixUnlock(tls *libc.TLS, id uintptr, eFileLock int32, handleNFSUnlock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36691:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -23823,7 +24096,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 { /* sqlite3.c:36304:12: */
+func unixUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36851:12: */
return posixUnlock(tls, id, eFileLock, 0)
}
@@ -23835,10 +24108,10 @@ func unixUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:36326:12: */
+func closeUnixFile(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36873:12: */
var pFile uintptr = id
if (*UnixFile)(unsafe.Pointer(pFile)).Fh >= 0 {
- robust_close(tls, pFile, (*UnixFile)(unsafe.Pointer(pFile)).Fh, 36332)
+ robust_close(tls, pFile, (*UnixFile)(unsafe.Pointer(pFile)).Fh, 36879)
(*UnixFile)(unsafe.Pointer(pFile)).Fh = -1
}
@@ -23848,7 +24121,7 @@ func closeUnixFile(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36326:12: */
}
// Close a file.
-func unixClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36361:12: */
+func unixClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36908:12: */
var rc int32 = SQLITE_OK
var pFile uintptr = id
var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode
@@ -23898,26 +24171,26 @@ func unixClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36361:12: */
// 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 { /* sqlite3.c:36413:12: */
+func nolockCheckReservedLock(tls *libc.TLS, NotUsed uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36960:12: */
_ = NotUsed
*(*int32)(unsafe.Pointer(pResOut)) = 0
return SQLITE_OK
}
-func nolockLock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* sqlite3.c:36418:12: */
+func nolockLock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36965:12: */
_ = NotUsed
_ = NotUsed2
return SQLITE_OK
}
-func nolockUnlock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* sqlite3.c:36422:12: */
+func nolockUnlock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36969:12: */
_ = NotUsed
_ = NotUsed2
return SQLITE_OK
}
// Close the file.
-func nolockClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36430:12: */
+func nolockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36977:12: */
return closeUnixFile(tls, id)
}
@@ -23958,7 +24231,7 @@ func nolockClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36430:12: */
// 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 { /* sqlite3.c:36475:12: */
+func dotlockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37022:12: */
var rc int32 = SQLITE_OK
var reserved int32 = 0
var pFile uintptr = id
@@ -23994,7 +24267,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 { /* sqlite3.c:36516:12: */
+func dotlockLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37063:12: */
var pFile uintptr = id
var zLockFile uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FlockingContext
var rc int32 = SQLITE_OK
@@ -24036,7 +24309,7 @@ func dotlockLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* sqlite3.
// 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 { /* sqlite3.c:36566:12: */
+func dotlockUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37113:12: */
var pFile uintptr = id
var zLockFile uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FlockingContext
var rc int32
@@ -24071,7 +24344,7 @@ func dotlockUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* sqlite
}
// Close a file. Make sure the lock has been released before closing.
-func dotlockClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36609:12: */
+func dotlockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37156:12: */
var pFile uintptr = id
dotlockUnlock(tls, id, NO_LOCK)
@@ -24170,12 +24443,12 @@ func dotlockClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:36609:12: */
//
// 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 { /* sqlite3.c:37523:12: */
+func seekAndRead(tls *libc.TLS, id uintptr, offset Sqlite3_int64, pBuf uintptr, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38070:12: */
var got int32
var prior int32 = 0
var newOffset I64
- for ok := true; ok; ok = got > 0 {
+ for __ccgo := true; __ccgo; __ccgo = got > 0 {
newOffset = I64(libc.Xlseek(tls, (*UnixFile)(unsafe.Pointer(id)).Fh, int64(offset), SEEK_SET))
if newOffset < int64(0) {
@@ -24208,7 +24481,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 { /* sqlite3.c:37572:12: */
+func unixRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38119:12: */
var pFile uintptr = id
var got int32
@@ -24248,12 +24521,12 @@ 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 { /* sqlite3.c:37648:12: */
+func seekAndWriteFd(tls *libc.TLS, fd int32, iOff I64, pBuf uintptr, nBuf int32, piErrno uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38195:12: */
var rc int32 = 0 // Value returned by system call
nBuf = nBuf & 0x1ffff
- for ok := true; ok; ok = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR {
+ for __ccgo := true; __ccgo; __ccgo = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR {
var iSeek I64 = I64(libc.Xlseek(tls, fd, int64(iOff), SEEK_SET))
if iSeek < int64(0) {
@@ -24274,13 +24547,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 { /* sqlite3.c:37694:12: */
+func seekAndWrite(tls *libc.TLS, id uintptr, offset I64, pBuf uintptr, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38241: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 { /* sqlite3.c:37703:12: */
+func unixWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38250:12: */
var pFile uintptr = id
var wrote int32 = 0
@@ -24337,7 +24610,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 { /* sqlite3.c:37838:12: */
+func full_fsync(tls *libc.TLS, fd int32, fullSync int32, dataOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38385:12: */
var rc int32
// The following "ifdef/elif/else/" block has the same structure as
@@ -24383,7 +24656,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 { /* sqlite3.c:37934:12: */
+func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38481:12: */
bp := tls.Alloc(521)
defer tls.Free(521)
@@ -24391,7 +24664,7 @@ func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* sql
var fd int32 = -1
// var zDirname [513]int8 at bp+8, 513
- Xsqlite3_snprintf(tls, MAX_PATHNAME, bp+8, ts+3604, libc.VaList(bp, zFilename))
+ Xsqlite3_snprintf(tls, MAX_PATHNAME, bp+8, ts+3595, 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 {
@@ -24410,7 +24683,7 @@ func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* sql
if fd >= 0 {
return SQLITE_OK
}
- return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 37953), ts+3319, bp+8, 37953)
+ return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 38500), ts+3310, bp+8, 38500)
}
// Make sure all writes to a particular file are committed to disk.
@@ -24426,7 +24699,7 @@ func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* sql
// 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 { /* sqlite3.c:37971:12: */
+func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38518:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -24445,7 +24718,7 @@ func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:37971
if rc != 0 {
storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno(tls))))
- return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, ts+3607, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 37994)
+ return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, ts+3598, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38541)
}
// Also fsync the directory containing the file if the DIRSYNC flag
@@ -24457,7 +24730,7 @@ func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:37971
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 */)), 38008)
+ robust_close(tls, pFile, *(*int32)(unsafe.Pointer(bp /* dirfd */)), 38555)
} else {
rc = SQLITE_OK
@@ -24468,7 +24741,7 @@ func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:37971
}
// Truncate an open file to a specified size
-func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* sqlite3.c:38021:12: */
+func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38568:12: */
var pFile uintptr = id
var rc int32
@@ -24483,7 +24756,7 @@ func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* sqlite3.c:380
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+3238, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38039)
+ return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3229, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38586)
} else {
return SQLITE_OK
@@ -24492,7 +24765,7 @@ func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* sqlite3.c:380
}
// Determine the current size of a file in bytes
-func unixFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:38071:12: */
+func unixFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38618:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -24523,7 +24796,7 @@ func unixFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:38109:12: */
+func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38656:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -24555,7 +24828,7 @@ func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* sqlite3.c
if iWrite >= nSize {
iWrite = nSize - int64(1)
}
- nWrite = seekAndWrite(tls, pFile, iWrite, ts+1546, 1)
+ nWrite = seekAndWrite(tls, pFile, iWrite, ts+1515, 1)
if nWrite != 1 {
return SQLITE_IOERR | int32(3)<<8
}
@@ -24570,7 +24843,7 @@ func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* sqlite3.c
// 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) { /* sqlite3.c:38178:13: */
+func unixModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38725: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 {
@@ -24581,7 +24854,7 @@ func unixModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* sq
}
// Information and control of an open file handle.
-func unixFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:38197:12: */
+func unixFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38744:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -24629,7 +24902,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+3604, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFile)).FpVfs)).FzName))
+ *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFile)).FpVfs)).FzName))
return SQLITE_OK
}
@@ -24666,7 +24939,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) { /* sqlite3.c:38332:13: */
+func setDeviceCharacteristics(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38879:13: */
if (*UnixFile)(unsafe.Pointer(pFd)).FsectorSize == 0 {
@@ -24687,7 +24960,7 @@ func setDeviceCharacteristics(tls *libc.TLS, pFd uintptr) { /* sqlite3.c:38332:1
// 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 { /* sqlite3.c:38439:12: */
+func unixSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38986:12: */
var pFd uintptr = id
setDeviceCharacteristics(tls, pFd)
return (*UnixFile)(unsafe.Pointer(pFd)).FsectorSize
@@ -24704,7 +24977,7 @@ func unixSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:38439:12: */
// 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 { /* sqlite3.c:38458:12: */
+func unixDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39005:12: */
var pFd uintptr = id
setDeviceCharacteristics(tls, pFd)
return (*UnixFile)(unsafe.Pointer(pFd)).FdeviceCharacteristics
@@ -24714,7 +24987,7 @@ func unixDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:3
//
// 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 { /* sqlite3.c:38472:12: */
+func unixGetpagesize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39019:12: */
return int32(libc.Xsysconf(tls, X_SC_PAGESIZE))
}
@@ -24726,7 +24999,7 @@ func unixGetpagesize(tls *libc.TLS) int32 { /* sqlite3.c:38472:12: */
// 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 { /* sqlite3.c:38571:12: */
+func unixFcntlExternalReader(tls *libc.TLS, pFile uintptr, piOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39118:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -24758,7 +25031,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 { /* sqlite3.c:38603:12: */
+func unixShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39150:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -24799,7 +25072,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 { /* sqlite3.c:38688:12: */
+func unixShmRegionPerMap(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39235: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
@@ -24813,7 +25086,7 @@ func unixShmRegionPerMap(tls *libc.TLS) int32 { /* sqlite3.c:38688:12: */
//
// 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) { /* sqlite3.c:38702:13: */
+func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39249:13: */
var p uintptr = (*UnixInodeInfo)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFd)).FpInode)).FpShmNode
if p != 0 && (*UnixShmNode)(unsafe.Pointer(p)).FnRef == 0 {
@@ -24830,7 +25103,7 @@ func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* sqlite3.c:38702:13: */
}
Xsqlite3_free(tls, (*UnixShmNode)(unsafe.Pointer(p)).FapRegion)
if (*UnixShmNode)(unsafe.Pointer(p)).FhShm >= 0 {
- robust_close(tls, pFd, (*UnixShmNode)(unsafe.Pointer(p)).FhShm, 38719)
+ robust_close(tls, pFd, (*UnixShmNode)(unsafe.Pointer(p)).FhShm, 39266)
(*UnixShmNode)(unsafe.Pointer(p)).FhShm = -1
}
(*UnixInodeInfo)(unsafe.Pointer((*UnixShmNode)(unsafe.Pointer(p)).FpInode)).FpShmNode = uintptr(0)
@@ -24845,7 +25118,7 @@ func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* sqlite3.c:38702:13: */
// 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 { /* sqlite3.c:38736:12: */
+func unixLockSharedMemory(tls *libc.TLS, pDbFd uintptr, pShmNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39283:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -24889,7 +25162,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+3238, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 38776)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, ts+3229, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39323)
}
}
} else if int32((*flock)(unsafe.Pointer(bp+8)).Fl_type) == F_WRLCK {
@@ -24936,7 +25209,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 { /* sqlite3.c:38825:12: */
+func unixOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39372:12: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -24995,7 +25268,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+3618, libc.VaList(bp, zBasePath))
+ Xsqlite3_snprintf(tls, nShmFilename, zShm, ts+3609, libc.VaList(bp, zBasePath))
(*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm = -1
(*UnixInodeInfo)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pDbFd)).FpInode)).FpShmNode = pShmNode
@@ -25017,7 +25290,7 @@ __5:
if !(int32((*UnixInodeInfo)(unsafe.Pointer(pInode)).FbProcessLock) == 0) {
goto __7
}
- if !(0 == Xsqlite3_uri_boolean(tls, (*UnixFile)(unsafe.Pointer(pDbFd)).FzPath, ts+3625, 0)) {
+ if !(0 == Xsqlite3_uri_boolean(tls, (*UnixFile)(unsafe.Pointer(pDbFd)).FzPath, ts+3616, 0)) {
goto __8
}
(*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm = robust_open(tls, zShm, O_RDWR|O_CREAT|O_NOFOLLOW,
@@ -25032,7 +25305,7 @@ __8:
if !((*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm < 0) {
goto __10
}
- rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 38901), ts+3202, zShm, 38901)
+ rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 39448), ts+3193, zShm, 39448)
goto shm_open_err
__10:
;
@@ -25100,7 +25373,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 { /* sqlite3.c:38967:12: */
+func unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39514:12: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -25199,11 +25472,11 @@ __11:
goto __13
}
*(*int32)(unsafe.Pointer(bp + 152 /* x */)) = 0
- if !(seekAndWriteFd(tls, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(iPg*pgsz+pgsz-1), ts+1546, 1, bp+152) != 1) {
+ if !(seekAndWriteFd(tls, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(iPg*pgsz+pgsz-1), ts+1515, 1, bp+152) != 1) {
goto __14
}
zFile = (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename
- rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, ts+3273, zFile, 39045)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, ts+3264, zFile, 39592)
goto shmpage_out
__14:
;
@@ -25251,7 +25524,7 @@ __16:
if !(pMem == libc.UintptrFromInt32(-1)) {
goto __20
}
- rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, ts+3360, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39072)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, ts+3351, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39619)
goto shmpage_out
__20:
;
@@ -25309,7 +25582,7 @@ __27:
return rc
}
-var pgsz int32 = 4096 /* sqlite3.c:39036:28 */
+var pgsz int32 = 4096 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39583: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
@@ -25323,13 +25596,23 @@ var pgsz int32 = 4096 /* sqlite3.c:39036: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 { /* sqlite3.c:39142:12: */
- var pDbFd uintptr = fd // Connection holding shared memory
- var p uintptr = (*UnixFile)(unsafe.Pointer(pDbFd)).FpShm // The shared memory being locked
- var pShmNode uintptr = (*UnixShm)(unsafe.Pointer(p)).FpShmNode // The underlying file iNode
- var rc int32 = SQLITE_OK // Result code
- var mask U16 // Mask of locks to take or release
- var aLock uintptr = pShmNode + 64 /* &.aLock */
+func unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39689:12: */
+ var pDbFd uintptr = fd // Connection holding shared memory
+ var p uintptr // The shared memory being locked
+ var pShmNode uintptr // The underlying file iNode
+ var rc int32 = SQLITE_OK // Result code
+ var mask U16 // Mask of locks to take or release
+ var aLock uintptr
+
+ p = (*UnixFile)(unsafe.Pointer(pDbFd)).FpShm
+ if p == uintptr(0) {
+ return SQLITE_IOERR | int32(20)<<8
+ }
+ pShmNode = (*UnixShm)(unsafe.Pointer(p)).FpShmNode
+ if pShmNode == uintptr(0) {
+ return SQLITE_IOERR | int32(20)<<8
+ }
+ aLock = pShmNode + 64 /* &.aLock */
// Check that, if this to be a blocking lock, no locks that occur later
// in the following list than the lock being obtained are already held:
@@ -25430,7 +25713,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) { /* sqlite3.c:39274:13: */
+func unixShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39827:13: */
_ = fd
// compiler-defined memory barrier
@@ -25443,7 +25726,7 @@ func unixShmBarrier(tls *libc.TLS, fd uintptr) { /* sqlite3.c:39274:13: */
//
// 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 { /* sqlite3.c:39293:12: */
+func unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39846: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
@@ -25495,7 +25778,7 @@ func unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* sqlite
//
// 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 { /* sqlite3.c:39504:12: */
+func unixFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40057:12: */
*(*uintptr)(unsafe.Pointer(pp)) = uintptr(0)
return SQLITE_OK
@@ -25509,7 +25792,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 { /* sqlite3.c:39535:12: */
+func unixUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40088:12: */
_ = fd
_ = p
_ = iOff
@@ -25558,33 +25841,33 @@ func unixUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* sqli
// 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 */} /* sqlite3.c:39637: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-3380500/sqlite3.c:40190:1 */
-func posixIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* sqlite3.c:39637:1: */
+func posixIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: */
_ = z
_ = p
return uintptr(unsafe.Pointer(&posixIoMethods))
}
-var posixIoFinder uintptr = 0 /* sqlite3.c:39637: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 */} /* sqlite3.c:39647:1 */
+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 */
-func nolockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* sqlite3.c:39647:1: */
+func nolockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: */
_ = z
_ = p
return uintptr(unsafe.Pointer(&nolockIoMethods))
}
-var nolockIoFinder uintptr = 0 /* sqlite3.c:39647: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 */} /* sqlite3.c:39657:1 */
+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 */
-func dotlockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* sqlite3.c:39657:1: */
+func dotlockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: */
_ = z
_ = p
return uintptr(unsafe.Pointer(&dotlockIoMethods))
}
-var dotlockIoFinder uintptr = 0 /* sqlite3.c:39657:1 */
+var dotlockIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40210: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
@@ -25597,7 +25880,7 @@ var dotlockIoFinder uintptr = 0 /* sqlite3.c:39657:1 */
// 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 /* sqlite3.c:39852:34 */
+type Finder_type = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40405:34 */
// ***************************************************************************
//
@@ -25607,7 +25890,7 @@ type Finder_type = uintptr /* sqlite3.c:39852:34 */
// 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 { /* sqlite3.c:39865:12: */
+func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename uintptr, ctrlFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40418:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -25627,10 +25910,10 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename
}
return uintptr(0)
}(),
- ts+3638, SQLITE_POWERSAFE_OVERWRITE) != 0 {
+ ts+3629, SQLITE_POWERSAFE_OVERWRITE) != 0 {
*(*uint16)(unsafe.Pointer(pNew + 30)) |= uint16(UNIXFILE_PSOW)
}
- if libc.Xstrcmp(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName, ts+3643) == 0 {
+ if libc.Xstrcmp(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName, ts+3634) == 0 {
*(*uint16)(unsafe.Pointer(pNew + 30)) |= uint16(UNIXFILE_EXCL)
}
@@ -25663,7 +25946,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, 39943)
+ robust_close(tls, pNew, h, 40496)
h = -1
}
unixLeaveMutex(tls)
@@ -25678,7 +25961,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+3653, libc.VaList(bp, zFilename))
+ Xsqlite3_snprintf(tls, nFilename, zLockFile, ts+3644, libc.VaList(bp, zFilename))
}
(*UnixFile)(unsafe.Pointer(pNew)).FlockingContext = zLockFile
}
@@ -25686,7 +25969,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, 40028)
+ robust_close(tls, pNew, h, 40581)
}
} else {
(*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods = pLockingStyle
@@ -25700,21 +25983,21 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename
var azTempDirs = [6]uintptr{
uintptr(0),
uintptr(0),
+ ts + 3652,
ts + 3661,
ts + 3670,
- ts + 3679,
- ts + 1559,
-} /* sqlite3.c:40040:19 */
+ ts + 1528,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40593:19 */
// Initialize first two members of azTempDirs[] array.
-func unixTempFileInit(tls *libc.TLS) { /* sqlite3.c:40052:13: */
- azTempDirs[0] = libc.Xgetenv(tls, ts+3684)
- azTempDirs[1] = libc.Xgetenv(tls, ts+3698)
+func unixTempFileInit(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40605:13: */
+ azTempDirs[0] = libc.Xgetenv(tls, ts+3675)
+ azTempDirs[1] = libc.Xgetenv(tls, ts+3689)
}
// 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 { /* sqlite3.c:40061:19: */
+func unixTempFileDir(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40614:19: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -25741,7 +26024,7 @@ func unixTempFileDir(tls *libc.TLS) uintptr { /* sqlite3.c:40061:19: */
// 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 { /* sqlite3.c:40085:12: */
+func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40638:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -25757,12 +26040,12 @@ func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* sqlite3
if zDir == uintptr(0) {
return SQLITE_IOERR | int32(25)<<8
}
- for ok := true; ok; ok = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 2*24 + 8)))(tls, zBuf, 0) == 0 {
+ for __ccgo := true; __ccgo; __ccgo = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 2*24 + 8)))(tls, zBuf, 0) == 0 {
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+3705,
+ Xsqlite3_snprintf(tls, nBuf, zBuf, ts+3696,
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
@@ -25785,7 +26068,7 @@ func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* sqlite3
//
// 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 { /* sqlite3.c:40135:21: */
+func findReusableFd(tls *libc.TLS, zPath uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40688:21: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -25836,7 +26119,7 @@ func findReusableFd(tls *libc.TLS, zPath uintptr, flags int32) uintptr { /* sqli
}
// Find the mode, uid and gid of file zFile.
-func getFileMode(tls *libc.TLS, zFile uintptr, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* sqlite3.c:40185:12: */
+func getFileMode(tls *libc.TLS, zFile uintptr, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40738:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -25872,7 +26155,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 { /* sqlite3.c:40224:12: */
+func findCreateFileMode(tls *libc.TLS, zPath uintptr, flags int32, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40777:12: */
bp := tls.Alloc(513)
defer tls.Free(513)
@@ -25918,7 +26201,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+3722)
+ var z uintptr = Xsqlite3_uri_parameter(tls, zPath, ts+3713)
if z != 0 {
rc = getFileMode(tls, z, pMode, pUid, pGid)
}
@@ -25946,7 +26229,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 { /* sqlite3.c:40301:12: */
+func unixOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40854:12: */
bp := tls.Alloc(528)
defer tls.Free(528)
@@ -26144,7 +26427,7 @@ __15:
if !(fd < 0) {
goto __19
}
- rc2 = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 40457), ts+3202, zName, 40457)
+ rc2 = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41010), ts+3193, zName, 41010)
if !(rc == SQLITE_OK) {
goto __20
}
@@ -26244,7 +26527,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 { /* sqlite3.c:40580:12: */
+func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41133:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -26255,7 +26538,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+3312, zPath, 40596)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, ts+3303, zPath, 41149)
}
return rc
}
@@ -26265,9 +26548,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+3729, zPath, 40606)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(5)<<8, ts+3720, zPath, 41159)
}
- robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp /* fd */)), 40608)
+ robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp /* fd */)), 41161)
} else {
rc = SQLITE_OK
@@ -26284,7 +26567,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 { /* sqlite3.c:40628:12: */
+func unixAccess(tls *libc.TLS, NotUsed uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41181:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -26306,7 +26589,7 @@ func unixAccess(tls *libc.TLS, NotUsed uintptr, zPath uintptr, flags int32, pRes
// 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 { /* sqlite3.c:40657:12: */
+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 {
@@ -26329,7 +26612,7 @@ func unixBackupDir(tls *libc.TLS, z uintptr, pJ uintptr) int32 { /* sqlite3.c:40
//
// Remove all instances of /./
// Remove all isntances of /X/../ for any X
-func mkFullPathname(tls *libc.TLS, zPath uintptr, zOut uintptr, nOut int32) int32 { /* sqlite3.c:40675:12: */
+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)
@@ -26340,7 +26623,7 @@ func mkFullPathname(tls *libc.TLS, zPath uintptr, zOut uintptr, nOut int32) int3
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, 40685), ts+3220, zPath, 40685)
+ return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41238), ts+3211, zPath, 41238)
}
iOff = Xsqlite3Strlen30(tls, zOut)
*(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&iOff, 1)))) = int8('/')
@@ -26349,9 +26632,9 @@ func mkFullPathname(tls *libc.TLS, zPath uintptr, zOut uintptr, nOut int32) int3
// 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, 40694)
+ return Xsqlite3CantopenError(tls, 41247)
}
- Xsqlite3_snprintf(tls, nOut-iOff, zOut+uintptr(iOff), ts+3604, libc.VaList(bp, zPath))
+ Xsqlite3_snprintf(tls, nOut-iOff, zOut+uintptr(iOff), ts+3595, libc.VaList(bp, zPath))
// Remove duplicate '/' characters. Except, two // at the beginning
// of a pathname is allowed since this is important on windows.
@@ -26400,7 +26683,7 @@ 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 { /* sqlite3.c:40744:12: */
+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(152)
defer tls.Free(152)
@@ -26417,7 +26700,7 @@ func unixFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zO
// function failing. This function could fail if, for example, the
// current working directory has been unlinked.
- for ok := true; ok; ok = rc == SQLITE_OK {
+ 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.
@@ -26426,7 +26709,7 @@ func unixFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zO
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, 40777), ts+3400, zIn, 40777)
+ rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41330), ts+3391, zIn, 41330)
}
} else {
bLink = libc.Bool32((*stat)(unsafe.Pointer(bp)).Fst_mode&X__mode_t(X_S_IFMT) == X__mode_t(X_S_IFLNK))
@@ -26440,20 +26723,20 @@ func unixFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zO
rc = SQLITE_NOMEM
}
} else if nLink >= SQLITE_MAX_SYMLINKS {
- rc = Xsqlite3CantopenError(tls, 40789)
+ 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, 40795), ts+3391, zIn, 40795)
+ rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41348), ts+3382, 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, 40801)
+ rc = Xsqlite3CantopenError(tls, 41354)
} else {
libc.Xmemmove(tls, zDel+uintptr(n), zDel, uint64(nByte+1))
libc.Xmemcpy(tls, zDel, zIn, uint64(n))
@@ -26645,7 +26928,7 @@ type _dl_info = struct {
Fdli_fbase uintptr
Fdli_sname uintptr
Fdli_saddr uintptr
-} /* dlfcn.h:45:9 */
+} /* /usr/include/dlfcn.h:45:9 */
// Interfaces for opening a shared library, finding entry points
// within the shared library, and closing the shared library.
@@ -26804,7 +27087,7 @@ type _dl_info = struct {
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-type Dl_info = _dl_info /* dlfcn.h:50:3 */
+type Dl_info = _dl_info /* /usr/include/dlfcn.h:50:3 */
// Values for dlopen `mode'.
@@ -26818,7 +27101,7 @@ type Dl_info = _dl_info /* dlfcn.h:50:3 */
//
// From Solaris: http://docs.sun.com/app/docs/doc/816-5168/dlinfo-3c?a=view
-func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* sqlite3.c:40836:13: */
+func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41389:13: */
_ = NotUsed
return libc.Xdlopen(tls, zFilename, RTLD_NOW|RTLD_GLOBAL)
}
@@ -26828,7 +27111,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) { /* sqlite3.c:40848:13: */
+func unixDlError(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41401:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -26837,12 +27120,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+3604, libc.VaList(bp, zErr))
+ Xsqlite3_snprintf(tls, nBuf, zBufOut, ts+3595, libc.VaList(bp, zErr))
}
unixLeaveMutex(tls)
}
-func unixDlSym(tls *libc.TLS, NotUsed uintptr, p uintptr, zSym uintptr) uintptr { /* sqlite3.c:40858:13: */
+func unixDlSym(tls *libc.TLS, NotUsed uintptr, p uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41411: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
@@ -26868,13 +27151,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) { /* sqlite3.c:40881:13: */
+func unixDlClose(tls *libc.TLS, NotUsed uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41434: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 { /* sqlite3.c:40895:12: */
+func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41448:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -26896,7 +27179,7 @@ func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) in
{
var fd int32
var got int32
- fd = robust_open(tls, ts+3735, O_RDONLY, uint32(0))
+ fd = robust_open(tls, ts+3726, O_RDONLY, uint32(0))
if fd < 0 {
// var t Time_t at bp, 8
@@ -26906,10 +27189,10 @@ func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) in
nBuf = int32(uint64(unsafe.Sizeof(Time_t(0))) + uint64(unsafe.Sizeof(randomnessPid)))
} else {
- for ok := true; ok; ok = got < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR {
+ 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, 40926)
+ robust_close(tls, uintptr(0), fd, 41479)
}
}
@@ -26922,7 +27205,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 { /* sqlite3.c:40942:12: */
+func unixSleep(tls *libc.TLS, NotUsed uintptr, microseconds int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41495:12: */
if microseconds >= 1000000 {
libc.Xsleep(tls, uint32(microseconds/1000000))
}
@@ -26945,7 +27228,7 @@ func unixSleep(tls *libc.TLS, NotUsed uintptr, microseconds int32) int32 { /* sq
//
// 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 { /* sqlite3.c:40983:12: */
+func unixCurrentTimeInt64(tls *libc.TLS, NotUsed uintptr, piNow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41536:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -26959,12 +27242,12 @@ func unixCurrentTimeInt64(tls *libc.TLS, NotUsed uintptr, piNow uintptr) int32 {
return rc
}
-var unixEpoch Sqlite3_int64 = int64(24405875) * int64(8640000) /* sqlite3.c:40984:30 */
+var unixEpoch Sqlite3_int64 = int64(24405875) * int64(8640000) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41537: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 { /* sqlite3.c:41015:12: */
+func unixCurrentTime(tls *libc.TLS, NotUsed uintptr, prNow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41568:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -26980,7 +27263,7 @@ func unixCurrentTime(tls *libc.TLS, NotUsed uintptr, prNow uintptr) int32 { /* s
// 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 { /* sqlite3.c:41033:12: */
+func unixGetLastError(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32, NotUsed3 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41586:12: */
_ = NotUsed
_ = NotUsed2
_ = NotUsed3
@@ -27162,7 +27445,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 { /* sqlite3.c:42238:16: */
+func Xsqlite3_os_init(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:42791:16: */
var i uint32 // Loop counter
// Double-check that the aSyscall[] array has been constructed
@@ -27196,18 +27479,18 @@ func Xsqlite3_os_init(tls *libc.TLS) int32 { /* sqlite3.c:42238:16: */
}
var aVfs = [4]Sqlite3_vfs{
- {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3748, 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 + 3753, 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 + 3763, 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 + 3643, 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 */},
-} /* sqlite3.c:42291:22 */
+ {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3739, 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 + 3744, 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 + 3754, 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 + 3634, 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 */
// 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 { /* sqlite3.c:42360:16: */
+func Xsqlite3_os_end(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:42913:16: */
unixBigLock = uintptr(0)
return SQLITE_OK
}
@@ -27249,15 +27532,15 @@ func Xsqlite3_os_end(tls *libc.TLS) int32 { /* sqlite3.c:42360:16: */
// #include "sqliteInt.h"
// Forward declaration of objects used by this utility
-type MemVfs = sqlite3_vfs /* sqlite3.c:48550:28 */
+type MemVfs = sqlite3_vfs /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49107:28 */
type MemFile1 = struct {
Fbase Sqlite3_file
FpStore uintptr
FeLock int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:48551:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49108:9 */
-type MemFile = MemFile1 /* sqlite3.c:48551:24 */
+type MemFile = MemFile1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49108:24 */
type MemStore1 = struct {
Fsz Sqlite3_int64
FszAlloc Sqlite3_int64
@@ -27271,9 +27554,9 @@ type MemStore1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FzFName uintptr
-} /* sqlite3.c:48551:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49108:9 */
-type MemStore = MemStore1 /* sqlite3.c:48552:25 */
+type MemStore = MemStore1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49109:25 */
// File-scope variables for holding the memdb files that are accessible
// to multiple database connections in separate threads.
@@ -27283,18 +27566,18 @@ type MemFS = struct {
FnMemStore int32
F__ccgo_pad1 [4]byte
FapMemStore uintptr
-} /* sqlite3.c:48622:8 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49179: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 /* sqlite3.c:48625:3: */
+var memdb_g MemFS /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49182:3: */
var memdb_vfs = Sqlite3_vfs{
FiVersion: 2, // szOsFile (set when registered)
FmxPathname: 1024, // pNext
- FzName: ts + 3776,
+ FzName: ts + 3767,
FxOpen: 0, /* memdbDelete, */ // xDelete
FxAccess: 0, // xAccess
FxFullPathname: 0, // xFullPathname
@@ -27306,7 +27589,7 @@ var memdb_vfs = Sqlite3_vfs{
FxSleep: 0, /* memdbCurrentTime, */ // xCurrentTime
FxGetLastError: 0, // xGetLastError
FxCurrentTimeInt64: 0, // xNextSystemCall
-} /* sqlite3.c:48661:20 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49218:20 */
var memdb_io_methods = Sqlite3_io_methods{
FiVersion: 3, // iVersion
@@ -27322,21 +27605,21 @@ var memdb_io_methods = Sqlite3_io_methods{
FxDeviceCharacteristics: 0, // xShmUnmap
FxFetch: 0, // xFetch
FxUnfetch: 0, // xUnfetch
-} /* sqlite3.c:48686:33 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49243:33 */
// Enter/leave the mutex on a MemStore
-func memdbEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:48719:13: */
+func memdbEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49276:13: */
Xsqlite3_mutex_enter(tls, (*MemStore)(unsafe.Pointer(p)).FpMutex)
}
-func memdbLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:48722:13: */
+func memdbLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49279: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 { /* sqlite3.c:48734:12: */
+func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49291:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
if (*MemStore)(unsafe.Pointer(p)).FzFName != 0 {
var i int32
@@ -27374,7 +27657,7 @@ func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:48734:12: */
}
// Read data from an memdb-file.
-func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:48776:12: */
+func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49333:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
if iOfst+Sqlite_int64(iAmt) > (*MemStore)(unsafe.Pointer(p)).Fsz {
@@ -27391,7 +27674,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 { /* sqlite3.c:48798:12: */
+func memdbEnlarge(tls *libc.TLS, p uintptr, newSz Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49355: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
@@ -27413,7 +27696,7 @@ func memdbEnlarge(tls *libc.TLS, p uintptr, newSz Sqlite3_int64) int32 { /* sqli
}
// Write data to an memdb-file.
-func memdbWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:48818:12: */
+func memdbWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49375:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
if (*MemStore)(unsafe.Pointer(p)).FmFlags&uint32(SQLITE_DESERIALIZE_READONLY) != 0 {
@@ -27444,7 +27727,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 { /* sqlite3.c:48855:12: */
+func memdbTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49412:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
var rc int32 = SQLITE_OK
memdbEnter(tls, p)
@@ -27459,14 +27742,14 @@ func memdbTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* s
}
// Sync an memdb-file.
-func memdbSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* sqlite3.c:48872:12: */
+func memdbSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49429: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 { /* sqlite3.c:48881:12: */
+func memdbFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49438:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
*(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemStore)(unsafe.Pointer(p)).Fsz
@@ -27475,7 +27758,7 @@ func memdbFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* sqlit
}
// Lock an memdb-file.
-func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:48892:12: */
+func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49449:12: */
var pThis uintptr = pFile
var p uintptr = (*MemFile)(unsafe.Pointer(pThis)).FpStore
var rc int32 = SQLITE_OK
@@ -27519,7 +27802,7 @@ func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:4
}
// File control method. For custom operations on an memdb-file.
-func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:48946:12: */
+func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49503:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -27527,7 +27810,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+3782, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz))
+ *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3773, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz))
rc = SQLITE_OK
}
if op == SQLITE_FCNTL_SIZE_LIMIT {
@@ -27548,13 +27831,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 { /* sqlite3.c:48983:12: */
+func memdbDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49540: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 { /* sqlite3.c:48992:12: */
+func memdbFetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49549: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) {
@@ -27568,7 +27851,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 { /* sqlite3.c:49011:12: */
+func memdbUnfetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49568:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
_ = iOfst
_ = pPage
@@ -27579,7 +27862,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 { /* sqlite3.c:49024:12: */
+func memdbOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFd uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49581:12: */
var pFile uintptr = pFd
var p uintptr = uintptr(0)
var szName int32
@@ -27654,7 +27937,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 { /* sqlite3.c:49121:12: */
+func memdbAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49678:12: */
_ = pVfs
_ = zPath
_ = flags
@@ -27665,17 +27948,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 { /* sqlite3.c:49139:12: */
+func memdbFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49696:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
_ = pVfs
- Xsqlite3_snprintf(tls, nOut, zOut, ts+3604, libc.VaList(bp, zPath))
+ Xsqlite3_snprintf(tls, nOut, zOut, ts+3595, 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 { /* sqlite3.c:49153:13: */
+func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49710: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)
@@ -27684,21 +27967,21 @@ func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* sqlite
// 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) { /* sqlite3.c:49162:13: */
+func memdbDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49719: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 { /* sqlite3.c:49169:13: */
+func memdbDlSym(tls *libc.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49726: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) { /* sqlite3.c:49176:13: */
+func memdbDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49733: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)
@@ -27706,7 +27989,7 @@ func memdbDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:4
// 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 { /* sqlite3.c:49184:12: */
+func memdbRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49741: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)
@@ -27714,19 +27997,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 { /* sqlite3.c:49192:12: */
+func memdbSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49749: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 { /* sqlite3.c:49205:12: */
+func memdbGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49762: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 { /* sqlite3.c:49208:12: */
+func memdbCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49765: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)
@@ -27734,7 +28017,7 @@ func memdbCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* sq
// Translate a database connection pointer and schema name into a
// MemFile pointer.
-func memdbFromDbSchema(tls *libc.TLS, db uintptr, zSchema uintptr) uintptr { /* sqlite3.c:49216:16: */
+func memdbFromDbSchema(tls *libc.TLS, db uintptr, zSchema uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49773:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -27757,7 +28040,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 { /* sqlite3.c:49232:26: */
+func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintptr, mFlags uint32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49789:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -27803,7 +28086,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+3797, libc.VaList(bp, zSchema))
+ zSql = Xsqlite3_mprintf(tls, ts+3788, libc.VaList(bp, zSchema))
if zSql != 0 {
rc = Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+8, uintptr(0))
} else {
@@ -27848,7 +28131,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 { /* sqlite3.c:49313: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-3380500/sqlite3.c:49870:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -27877,7 +28160,7 @@ __1:
goto end_deserialize
__2:
;
- zSql = Xsqlite3_mprintf(tls, ts+3820, libc.VaList(bp, zSchema))
+ zSql = Xsqlite3_mprintf(tls, ts+3811, libc.VaList(bp, zSchema))
if !(zSql == uintptr(0)) {
goto __3
}
@@ -27943,7 +28226,7 @@ __10:
// This routine is called when the extension is loaded.
// Register the new VFS.
-func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* sqlite3.c:49389:20: */
+func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49946:20: */
var pLower uintptr = Xsqlite3_vfs_find(tls, uintptr(0))
var sz uint32
if pLower == uintptr(0) {
@@ -27965,7 +28248,7 @@ func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* sqlite3.c:49389:20: */
// 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 { /* sqlite3.c:49521:23: */
+func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50078:23: */
var p uintptr
p = Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(Bitvec{})))
@@ -27978,7 +28261,7 @@ func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* sqlite3.c:49521
// 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 { /* sqlite3.c:49536:20: */
+func Xsqlite3BitvecTestNotNull(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50093:20: */
i--
if i >= (*Bitvec)(unsafe.Pointer(p)).FiSize {
@@ -28007,7 +28290,7 @@ func Xsqlite3BitvecTestNotNull(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlit
return int32(0)
}
-func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlite3.c:49559:20: */
+func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50116:20: */
return libc.Bool32(p != uintptr(0) && Xsqlite3BitvecTestNotNull(tls, p, i) != 0)
}
@@ -28021,7 +28304,7 @@ func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlite3.c:49
// 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 { /* sqlite3.c:49575:20: */
+func Xsqlite3BitvecSet(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50132:20: */
var h U32
var bin U32
var j uint32
@@ -28158,7 +28441,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) { /* sqlite3.c:49646:21: */
+func Xsqlite3BitvecClear(tls *libc.TLS, p uintptr, i U32, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50203:21: */
if p == uintptr(0) {
return
}
@@ -28197,7 +28480,7 @@ func Xsqlite3BitvecClear(tls *libc.TLS, p uintptr, i U32, pBuf uintptr) { /* sql
}
// Destroy a bitmap object. Reclaim all memory used.
-func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:49683:21: */
+func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50240:21: */
if p == uintptr(0) {
return
}
@@ -28212,7 +28495,7 @@ func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:49683:21: */
// Return the value of the iSize parameter specified when Bitvec *p
// was created.
-func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:49698:20: */
+func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50255:20: */
return (*Bitvec)(unsafe.Pointer(p)).FiSize
}
@@ -28249,7 +28532,7 @@ func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:49698:20: *
// 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 { /* sqlite3.c:49743:20: */
+func Xsqlite3BitvecBuiltinTest(tls *libc.TLS, sz int32, aOp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50300:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -28412,7 +28695,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) { /* sqlite3.c:49978:13: */
+func pcacheManageDirtyList(tls *libc.TLS, pPage uintptr, addRemove U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50535:13: */
var p uintptr = (*PgHdr)(unsafe.Pointer(pPage)).FpCache
if int32(addRemove)&PCACHE_DIRTYLIST_REMOVE != 0 {
@@ -28474,7 +28757,7 @@ func pcacheManageDirtyList(tls *libc.TLS, pPage uintptr, addRemove U8) { /* sqli
// 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) { /* sqlite3.c:50048:13: */
+func pcacheUnpin(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50605:13: */
if (*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FbPurgeable != 0 {
(*struct {
@@ -28486,7 +28769,7 @@ func pcacheUnpin(tls *libc.TLS, p uintptr) { /* sqlite3.c:50048:13: */
// 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 { /* sqlite3.c:50060:12: */
+func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50617: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.
@@ -28511,7 +28794,7 @@ func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:50060:12:
//
// Initialize and shutdown the page cache subsystem. Neither of these
// functions are threadsafe.
-func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* sqlite3.c:50082:20: */
+func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50639: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
@@ -28524,7 +28807,7 @@ func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* sqlite3.c:50082:20: */
})(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fpcache2.FxInit})).f(tls, Xsqlite3Config.Fpcache2.FpArg)
}
-func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* sqlite3.c:50092:21: */
+func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50649: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)
@@ -28532,7 +28815,7 @@ func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* sqlite3.c:50092:21: */
}
// Return the size in bytes of a PCache object.
-func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* sqlite3.c:50102:20: */
+func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50659:20: */
return int32(unsafe.Sizeof(PCache{}))
}
@@ -28546,7 +28829,7 @@ func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* sqlite3.c:50102:20: */
// 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 { /* sqlite3.c:50116:20: */
+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: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(PCache{})))
(*PCache)(unsafe.Pointer(p)).FszPage = 1
(*PCache)(unsafe.Pointer(p)).FszExtra = szExtra
@@ -28563,7 +28846,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 { /* sqlite3.c:50142:20: */
+func Xsqlite3PcacheSetPageSize(tls *libc.TLS, pCache uintptr, szPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50699:20: */
if (*PCache)(unsafe.Pointer(pCache)).FszPage != 0 {
var pNew uintptr
@@ -28610,7 +28893,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 { /* sqlite3.c:50186:36: */
+func Xsqlite3PcacheFetch(tls *libc.TLS, pCache uintptr, pgno Pgno, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50743:36: */
var eCreate int32
var pRes uintptr
@@ -28638,7 +28921,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 { /* sqlite3.c:50227:20: */
+func Xsqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno Pgno, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50784:20: */
var pPg uintptr
if int32((*PCache)(unsafe.Pointer(pCache)).FeCreate) == 2 {
return 0
@@ -28689,7 +28972,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 { /* sqlite3.c:50283:30: */
+func pcacheFetchFinishWithInit(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50840:30: */
var pPgHdr uintptr
pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra
@@ -28709,7 +28992,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 { /* sqlite3.c:50309:22: */
+func Xsqlite3PcacheFetchFinish(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50866:22: */
var pPgHdr uintptr
pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra
@@ -28725,7 +29008,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) { /* sqlite3.c:50332:37: */
+func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50889:37: */
(*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum--
if int32(libc.PreDecInt16(&(*PgHdr)(unsafe.Pointer(p)).FnRef, 1)) == 0 {
@@ -28738,7 +29021,7 @@ func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:50332:37: */
}
// Increase the reference count of a supplied page by 1.
-func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* sqlite3.c:50347:21: */
+func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50904:21: */
(*PgHdr)(unsafe.Pointer(p)).FnRef++
(*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum++
@@ -28747,7 +29030,7 @@ func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* sqlite3.c:50347:21: */
// 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) { /* sqlite3.c:50359:21: */
+func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50916:21: */
if int32((*PgHdr)(unsafe.Pointer(p)).Fflags)&PGHDR_DIRTY != 0 {
pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE))
@@ -28760,7 +29043,7 @@ func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* sqlite3.c:50359:21: */
// Make sure the page is marked as dirty. If it isn't dirty already,
// make it so.
-func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* sqlite3.c:50373:21: */
+func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50930: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))
@@ -28775,7 +29058,7 @@ func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* sqlite3.c:50373:21:
// Make sure the page is marked as clean. If it isn't clean already,
// make it so.
-func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* sqlite3.c:50392:21: */
+func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50950:21: */
pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE))
*(*U16)(unsafe.Pointer(p + 52)) &= libc.Uint16FromInt32(libc.CplInt32(PGHDR_DIRTY | PGHDR_NEED_SYNC | PGHDR_WRITEABLE))
@@ -28787,7 +29070,7 @@ func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* sqlite3.c:50392:21:
}
// Make every page in the cache clean.
-func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50409:21: */
+func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50967:21: */
var p uintptr
for libc.AssignUintptr(&p, (*PCache)(unsafe.Pointer(pCache)).FpDirty) != uintptr(0) {
@@ -28796,7 +29079,7 @@ func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50409:
}
// Clear the PGHDR_NEED_SYNC and PGHDR_WRITEABLE flag from all dirty pages.
-func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50420:21: */
+func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50978:21: */
var p uintptr
for p = (*PCache)(unsafe.Pointer(pCache)).FpDirty; p != 0; p = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext {
@@ -28806,7 +29089,7 @@ func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:5
}
// Clear the PGHDR_NEED_SYNC flag from all dirty pages.
-func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50432:21: */
+func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50990: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))
@@ -28815,7 +29098,7 @@ func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:
}
// Change the page number of page p to newPgno.
-func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* sqlite3.c:50443:21: */
+func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51001:21: */
var pCache uintptr = (*PgHdr)(unsafe.Pointer(p)).FpCache
(*struct {
@@ -28834,7 +29117,7 @@ func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* sqlite3.c:5
// 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) { /* sqlite3.c:50465:21: */
+func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51023:21: */
if (*PCache)(unsafe.Pointer(pCache)).FpCache != 0 {
var p uintptr
var pNext uintptr
@@ -28868,19 +29151,19 @@ func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* sqlit
}
// Close a cache.
-func Xsqlite3PcacheClose(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50498:21: */
+func Xsqlite3PcacheClose(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51056: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) { /* sqlite3.c:50507:21: */
+func Xsqlite3PcacheClear(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51065: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 { /* sqlite3.c:50515:14: */
+func pcacheMergeDirtyList(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51073:14: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -28919,7 +29202,7 @@ func pcacheMergeDirtyList(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* sq
// 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 { /* sqlite3.c:50552:14: */
+func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51110:14: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -28962,7 +29245,7 @@ func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:5055
}
// Return a list of all dirty pages in the cache, sorted by page number.
-func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* sqlite3.c:50587:22: */
+func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51145: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
@@ -28974,17 +29257,17 @@ func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* sqlite3
//
// 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 { /* sqlite3.c:50601:20: */
+func Xsqlite3PcacheRefCount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51159: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 { /* sqlite3.c:50608:20: */
+func Xsqlite3PcachePageRefcount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51166: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 { /* sqlite3.c:50615:20: */
+func Xsqlite3PcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51173:20: */
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -28992,7 +29275,7 @@ func Xsqlite3PcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c
}
// Set the suggested cache-size value.
-func Xsqlite3PcacheSetCachesize(tls *libc.TLS, pCache uintptr, mxPage int32) { /* sqlite3.c:50632:21: */
+func Xsqlite3PcacheSetCachesize(tls *libc.TLS, pCache uintptr, mxPage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51190:21: */
(*PCache)(unsafe.Pointer(pCache)).FszCache = mxPage
(*struct {
@@ -29004,7 +29287,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 { /* sqlite3.c:50644:20: */
+func Xsqlite3PcacheSetSpillsize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51202:20: */
var res int32
if mxPage != 0 {
@@ -29021,20 +29304,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) { /* sqlite3.c:50661:21: */
+func Xsqlite3PcacheShrink(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51219: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 { /* sqlite3.c:50670:20: */
+func Xsqlite3HeaderSizePcache(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51228: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 { /* sqlite3.c:50676:20: */
+func Xsqlite3PCachePercentDirty(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51234:20: */
var pDirty uintptr
var nDirty int32 = 0
var nCache int32 = numberOfCachePages(tls, pCache)
@@ -29149,7 +29432,7 @@ type PCache11 = struct {
FapHash uintptr
FpFree uintptr
FpBulk uintptr
-} /* sqlite3.c:50793:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:9 */
//************* End of pcache.c *********************************************
//************* Begin file pcache1.c ****************************************
@@ -29235,7 +29518,7 @@ type PCache11 = struct {
// common workloads.
// #include "sqliteInt.h"
-type PCache1 = PCache11 /* sqlite3.c:50793:24 */
+type PCache1 = PCache11 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:24 */
type PgHdr11 = struct {
Fpage Sqlite3_pcache_page
FiKey uint32
@@ -29245,12 +29528,12 @@ type PgHdr11 = struct {
FpCache uintptr
FpLruNext uintptr
FpLruPrev uintptr
-} /* sqlite3.c:50793:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:9 */
-type PgHdr1 = PgHdr11 /* sqlite3.c:50794:23 */
-type PgFreeslot1 = struct{ FpNext uintptr } /* sqlite3.c:50795: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 PgFreeslot = PgFreeslot1 /* sqlite3.c:50795:27 */
+type PgFreeslot = PgFreeslot1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51353:27 */
type PGroup1 = struct {
Fmutex uintptr
FnMaxPage uint32
@@ -29258,9 +29541,9 @@ type PGroup1 = struct {
FmxPinned uint32
FnPurgeable uint32
Flru PgHdr1
-} /* sqlite3.c:50793:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:9 */
-type PGroup = PGroup1 /* sqlite3.c:50796:23 */
+type PGroup = PGroup1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51354:23 */
// Global data used by this cache.
type PCacheGlobal = struct {
@@ -29277,10 +29560,10 @@ type PCacheGlobal = struct {
FpFree uintptr
FnFreeSlot int32
FbUnderPressure int32
-} /* sqlite3.c:50913:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51471:19 */
// Global data used by this cache.
-var pcache1_g PCacheGlobal /* sqlite3.c:50937:3: */
+var pcache1_g PCacheGlobal /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51495: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
@@ -29298,7 +29581,7 @@ var pcache1_g PCacheGlobal /* sqlite3.c:50937:3: */
//
// 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) { /* sqlite3.c:50972:21: */
+func Xsqlite3PCacheBufferSetup(tls *libc.TLS, pBuf uintptr, sz int32, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51530:21: */
if pcache1_g.FisInit != 0 {
var p uintptr
if pBuf == uintptr(0) {
@@ -29331,7 +29614,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 { /* sqlite3.c:50998:12: */
+func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51556:12: */
var szBulk I64
var zBulk uintptr
if pcache1_g.FnInitPage == 0 {
@@ -29354,7 +29637,7 @@ func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:50998:1
Xsqlite3EndBenignMalloc(tls)
if zBulk != 0 {
var nBulk int32 = Xsqlite3MallocSize(tls, zBulk) / (*PCache1)(unsafe.Pointer(pCache)).FszAlloc
- for ok := true; ok; ok = libc.PreDecInt32(&nBulk, 1) != 0 {
+ for __ccgo := true; __ccgo; __ccgo = libc.PreDecInt32(&nBulk, 1) != 0 {
var pX uintptr = zBulk + uintptr((*PCache1)(unsafe.Pointer(pCache)).FszPage)
(*PgHdr1)(unsafe.Pointer(pX)).Fpage.FpBuf = zBulk
(*PgHdr1)(unsafe.Pointer(pX)).Fpage.FpExtra = pX + 1*56
@@ -29376,7 +29659,7 @@ func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:50998:1
//
// 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 { /* sqlite3.c:51041:13: */
+func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51599:13: */
var p uintptr = uintptr(0)
if nByte <= pcache1_g.FszSlot {
@@ -29409,7 +29692,7 @@ func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:51041:13: *
}
// Free an allocated buffer obtained from pcache1Alloc().
-func pcache1Free(tls *libc.TLS, p uintptr) { /* sqlite3.c:51079:13: */
+func pcache1Free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51637:13: */
if p == uintptr(0) {
return
}
@@ -29439,7 +29722,7 @@ func pcache1Free(tls *libc.TLS, p uintptr) { /* sqlite3.c:51079:13: */
}
// Return the size of a pcache allocation
-func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51112:12: */
+func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51670:12: */
if p >= pcache1_g.FpStart && p < pcache1_g.FpEnd {
return pcache1_g.FszSlot
} else {
@@ -29453,7 +29736,7 @@ func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51112:12: */
}
// Allocate a new page object initially associated with cache pCache.
-func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr { /* sqlite3.c:51129:15: */
+func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51687:15: */
var p uintptr = uintptr(0)
var pPg uintptr
@@ -29491,7 +29774,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) { /* sqlite3.c:51181:13: */
+func pcache1FreePage(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51739:13: */
var pCache uintptr
pCache = (*PgHdr1)(unsafe.Pointer(p)).FpCache
@@ -29508,13 +29791,13 @@ func pcache1FreePage(tls *libc.TLS, p uintptr) { /* sqlite3.c:51181:13: */
// 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 { /* sqlite3.c:51203:21: */
+func Xsqlite3PageMalloc(tls *libc.TLS, sz int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51761: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) { /* sqlite3.c:51211:21: */
+func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51769:21: */
pcache1Free(tls, p)
}
@@ -29532,7 +29815,7 @@ func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:51211:21: */
// 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 { /* sqlite3.c:51232:12: */
+func pcache1UnderMemoryPressure(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51790:12: */
if pcache1_g.FnSlot != 0 && (*PCache1)(unsafe.Pointer(pCache)).FszPage+(*PCache1)(unsafe.Pointer(pCache)).FszExtra <= pcache1_g.FszSlot {
return pcache1_g.FbUnderPressure
} else {
@@ -29548,7 +29831,7 @@ func pcache1UnderMemoryPressure(tls *libc.TLS, pCache uintptr) int32 { /* sqlite
// as the first argument.
//
// The PCache mutex must be held when this function is called.
-func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:51249:13: */
+func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51807:13: */
var apNew uintptr
var nNew uint32
var i uint32
@@ -29589,7 +29872,7 @@ func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:51249:13: */
// 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 { /* sqlite3.c:51290:15: */
+func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51848: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
@@ -29606,7 +29889,7 @@ func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* sqlite3.c:51290:1
// 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) { /* sqlite3.c:51315:13: */
+func pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51873:13: */
var h uint32
var pCache uintptr = (*PgHdr1)(unsafe.Pointer(pPage)).FpCache
var pp uintptr
@@ -29624,7 +29907,7 @@ func pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) { /* sq
// 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) { /* sqlite3.c:51333:13: */
+func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51891:13: */
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
var p uintptr
@@ -29645,7 +29928,7 @@ func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51333:1
// 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) { /* sqlite3.c:51358:13: */
+func pcache1TruncateUnsafe(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51916:13: */
var h uint32
var iStop uint32
@@ -29693,7 +29976,7 @@ func pcache1TruncateUnsafe(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* sq
//******* sqlite3_pcache Methods *********************************************
// Implementation of the sqlite3_pcache.xInit method.
-func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:51409:12: */
+func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51967:12: */
_ = NotUsed
libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g)))
@@ -29731,7 +30014,7 @@ func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:51409:12:
// 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) { /* sqlite3.c:51462:13: */
+func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52020:13: */
_ = NotUsed
libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g)))
@@ -29740,7 +30023,7 @@ func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:51462:13: */
// Implementation of the sqlite3_pcache.xCreate method.
//
// Allocate a new cache.
-func pcache1Create(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* sqlite3.c:51476:23: */
+func pcache1Create(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52034: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
@@ -29790,7 +30073,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) { /* sqlite3.c:51526:13: */
+func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52084:13: */
var pCache uintptr = p
var n U32
@@ -29813,7 +30096,7 @@ func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* sqlite3.c:51526
// Implementation of the sqlite3_pcache.xShrink method.
//
// Free up as much memory as possible.
-func pcache1Shrink(tls *libc.TLS, p uintptr) { /* sqlite3.c:51551:13: */
+func pcache1Shrink(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52109:13: */
var pCache uintptr = p
if (*PCache1)(unsafe.Pointer(pCache)).FbPurgeable != 0 {
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -29828,7 +30111,7 @@ func pcache1Shrink(tls *libc.TLS, p uintptr) { /* sqlite3.c:51551:13: */
}
// Implementation of the sqlite3_pcache.xPagecount method.
-func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51568:12: */
+func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52126:12: */
var n int32
var pCache uintptr = p
Xsqlite3_mutex_enter(tls, (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex)
@@ -29843,7 +30126,7 @@ func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51568:12: *
// 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 { /* sqlite3.c:51586:31: */
+func pcache1FetchStage2(tls *libc.TLS, pCache uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52144:31: */
var nPinned uint32
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
var pPage uintptr = uintptr(0)
@@ -29961,7 +30244,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 { /* sqlite3.c:51714:15: */
+func pcache1FetchNoMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52272:15: */
var pCache uintptr = p
var pPage uintptr = uintptr(0)
@@ -29990,7 +30273,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 { /* sqlite3.c:51744:15: */
+func pcache1FetchWithMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52302:15: */
var pCache uintptr = p
var pPage uintptr
@@ -30001,7 +30284,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 { /* sqlite3.c:51759:28: */
+func pcache1Fetch(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52317:28: */
var pCache uintptr = p
if (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex != 0 {
@@ -30015,7 +30298,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) { /* sqlite3.c:51790:13: */
+func pcache1Unpin(tls *libc.TLS, p uintptr, pPg uintptr, reuseUnlikely int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52348:13: */
var pCache uintptr = p
var pPage uintptr = pPg
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -30040,7 +30323,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) { /* sqlite3.c:51825:13: */
+func pcache1Rekey(tls *libc.TLS, p uintptr, pPg uintptr, iOld uint32, iNew uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52383:13: */
var pCache uintptr = p
var pPage uintptr = pPg
var pp uintptr
@@ -30071,7 +30354,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) { /* sqlite3.c:51865:13: */
+func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52423: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 {
@@ -30084,7 +30367,7 @@ func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* sqlite3.c:518
// Implementation of the sqlite3_pcache.xDestroy method.
//
// Destroy a cache allocated using pcache1Create().
-func pcache1Destroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:51880:13: */
+func pcache1Destroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52438:13: */
var pCache uintptr = p
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -30107,7 +30390,7 @@ func pcache1Destroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:51880:13: */
// 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) { /* sqlite3.c:51903:21: */
+func Xsqlite3PCacheSetDefault(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52461:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -30127,16 +30410,16 @@ var defaultMethods1 = Sqlite3_pcache_methods2{
FxTruncate: 0, // xTruncate
FxDestroy: 0, // xDestroy
FxShrink: 0, // xShrink
-} /* sqlite3.c:51904:40 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52462:40 */
// Return the size of the header on each page of this PCACHE implementation.
-func Xsqlite3HeaderSizePcache1(tls *libc.TLS) int32 { /* sqlite3.c:51925:20: */
+func Xsqlite3HeaderSizePcache1(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52483: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 { /* sqlite3.c:51931:30: */
+func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52489:30: */
return pcache1_g.Fmutex
}
@@ -30147,7 +30430,7 @@ func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* sqlite3.c:51931:30: */
// 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 { /* sqlite3.c:51945:20: */
+func Xsqlite3PcacheReleaseMemory(tls *libc.TLS, nReq int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52503:20: */
var nFree int32 = 0
if Xsqlite3Config.FpPage == uintptr(0) {
@@ -30245,7 +30528,7 @@ type RowSetEntry = struct {
Fv I64
FpRight uintptr
FpLeft uintptr
-} /* sqlite3.c:14291:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:9 */
// RowSetEntry objects are allocated in large chunks (instances of the
// following structure) to reduce memory allocation overhead. The
@@ -30258,13 +30541,13 @@ type RowSetChunk = struct {
FpRight uintptr
FpLeft uintptr
}
-} /* sqlite3.c:14291:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606: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 { /* sqlite3.c:52125:23: */
+func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52683:23: */
var p uintptr = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(RowSet{})))
if p != 0 {
var N int32 = Xsqlite3DbMallocSize(tls, db, p)
@@ -30284,7 +30567,7 @@ func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:52125:
// 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) { /* sqlite3.c:52147:21: */
+func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52705:21: */
var p uintptr = pArg
var pChunk uintptr
var pNextChunk uintptr
@@ -30303,7 +30586,7 @@ func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:52147:21: *
// 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) { /* sqlite3.c:52167:21: */
+func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52725:21: */
Xsqlite3RowSetClear(tls, pArg)
Xsqlite3DbFree(tls, (*RowSet)(unsafe.Pointer(pArg)).Fdb, pArg)
}
@@ -30314,7 +30597,7 @@ func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:52167:21:
//
// In an OOM situation, the RowSet.db->mallocFailed flag is set and this
// routine returns NULL.
-func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:52180:27: */
+func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52738: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
@@ -30337,7 +30620,7 @@ func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:52180:27:
//
// The mallocFailed flag of the database connection is set if a
// memory allocation fails.
-func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* sqlite3.c:52205:21: */
+func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52763:21: */
var pEntry uintptr // The new entry
var pLast uintptr // The last prior entry
@@ -30367,7 +30650,7 @@ func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* sqlite3.c:52
//
// 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 { /* sqlite3.c:52236:27: */
+func rowSetEntryMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52794:27: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -30402,7 +30685,7 @@ func rowSetEntryMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* sqlite
// Sort all elements on the list of RowSetEntry objects into order of
// increasing v.
-func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:52271:27: */
+func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52829:27: */
bp := tls.Alloc(320)
defer tls.Free(320)
@@ -30438,7 +30721,7 @@ func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:52271:27
// 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) { /* sqlite3.c:52300:13: */
+func rowSetTreeToList(tls *libc.TLS, pIn uintptr, ppFirst uintptr, ppLast uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52858:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -30469,7 +30752,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 { /* sqlite3.c:52335:27: */
+func rowSetNDeepTree(tls *libc.TLS, ppList uintptr, iDepth int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52893:27: */
var p uintptr // Root of the new tree
var pLeft uintptr // Left subtree
if *(*uintptr)(unsafe.Pointer(ppList)) == uintptr(0) { //OPTIMIZATION-IF-TRUE
@@ -30500,7 +30783,7 @@ func rowSetNDeepTree(tls *libc.TLS, ppList uintptr, iDepth int32) uintptr { /* s
// 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 { /* sqlite3.c:52371:27: */
+func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52929:27: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pList
@@ -30533,7 +30816,7 @@ func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* sqlite3.c:52371
// 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 { /* sqlite3.c:52403:20: */
+func Xsqlite3RowSetNext(tls *libc.TLS, p uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52961:20: */
// Cannot be used with sqlite3RowSetText()
@@ -30566,7 +30849,7 @@ func Xsqlite3RowSetNext(tls *libc.TLS, p uintptr, pRowid uintptr) int32 { /* sql
// 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 { /* sqlite3.c:52437:20: */
+func Xsqlite3RowSetTest(tls *libc.TLS, pRowSet uintptr, iBatch int32, iRowid Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52995:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -30705,7 +30988,7 @@ type Wal1 = struct {
FnCkpt U32
F__ccgo_pad3 [4]byte
FpSnapshot uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
//************* End of rowset.c *********************************************
//************* Begin file pager.c ******************************************
@@ -30751,7 +31034,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 /* sqlite3.c:52579:20 */
+type Wal = Wal1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:53137:20 */
//************* End of wal.h ************************************************
//************* Continuing where we left off in pager.c *********************
@@ -31140,7 +31423,7 @@ type PagerSavepoint1 = struct {
FbTruncateOnRelease int32
FaWalData [4]U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
//************* End of wal.h ************************************************
//************* Continuing where we left off in pager.c *********************
@@ -31520,7 +31803,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 /* sqlite3.c:53090:31 */
+type PagerSavepoint = PagerSavepoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:53648:31 */
// Indexes for use with Pager.aStat[]. The Pager.aStat[] array contains
// the values accessed by passing SQLITE_DBSTATUS_CACHE_HIT, CACHE_MISS
@@ -31553,11 +31836,11 @@ type PagerSavepoint = PagerSavepoint1 /* sqlite3.c:53090:31 */
// 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),
-} /* sqlite3.c:53412:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:53970:28 */
// Set the Pager.xGet method for the appropriate routine used to fetch
// content from the pager.
-func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:53705:13: */
+func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54263: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
@@ -31576,7 +31859,7 @@ func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:53705:13: */
// * 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 { /* sqlite3.c:53726:12: */
+func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54284:12: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var p uintptr
var pgno Pgno = (*PgHdr)(unsafe.Pointer(pPg)).Fpgno
@@ -31598,7 +31881,7 @@ func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:53726:12:
// 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 { /* sqlite3.c:53759:12: */
+func read32bits(tls *libc.TLS, fd uintptr, offset I64, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54317:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -31615,7 +31898,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 { /* sqlite3.c:53778:12: */
+func write32bits(tls *libc.TLS, fd uintptr, offset I64, val U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54336:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -31632,7 +31915,7 @@ func write32bits(tls *libc.TLS, fd uintptr, offset I64, val U32) int32 { /* sqli
// 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 { /* sqlite3.c:53793:12: */
+func pagerUnlockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54351:12: */
var rc int32 = SQLITE_OK
if (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods != uintptr(0) {
@@ -31659,7 +31942,7 @@ func pagerUnlockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* sqlite
// 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 { /* sqlite3.c:53821:12: */
+func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54379:12: */
var rc int32 = SQLITE_OK
if int32((*Pager)(unsafe.Pointer(pPager)).FeLock) < eLock || int32((*Pager)(unsafe.Pointer(pPager)).FeLock) == EXCLUSIVE_LOCK+1 {
@@ -31693,7 +31976,7 @@ func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* sqlite3.
// returned in this case.
//
// If neither optimization can be used, 0 is returned.
-func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:53854:12: */
+func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54412:12: */
_ = pPager
@@ -31727,7 +32010,7 @@ func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:53854:12
//
// 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 { /* sqlite3.c:53959:12: */
+func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54517:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -31786,7 +32069,7 @@ func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32)
// 100 512
// 2000 2048
//
-func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* sqlite3.c:54015:12: */
+func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54573:12: */
var offset I64 = int64(0)
var c I64 = (*Pager)(unsafe.Pointer(pPager)).FjournalOff
if c != 0 {
@@ -31815,7 +32098,7 @@ func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* sqlite3.c:54015:12
//
// 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 { /* sqlite3.c:54048:12: */
+func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54606:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -31850,7 +32133,7 @@ func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /*
return rc
}
-var zeroHdr = [28]int8{0: int8(0)} /* sqlite3.c:54059:25 */
+var zeroHdr = [28]int8{0: int8(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54617: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
@@ -31865,7 +32148,7 @@ var zeroHdr = [28]int8{0: int8(0)} /* sqlite3.c:54059:25 */
// - 4 bytes: Database page size.
//
// Followed by (JOURNAL_HDR_SZ - 28) bytes of unused space.
-func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:54098:12: */
+func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54656: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
@@ -31975,7 +32258,7 @@ func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:54098:1
// 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 { /* sqlite3.c:54216:12: */
+func readJournalHdr(tls *libc.TLS, pPager uintptr, isHot int32, journalSize I64, pNRec uintptr, pDbSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54774:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -32085,7 +32368,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 { /* sqlite3.c:54341:12: */
+func writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54899:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -32145,21 +32428,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) { /* sqlite3.c:54409:13: */
+func pager_reset(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54967: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 { /* sqlite3.c:54418:20: */
+func Xsqlite3PagerDataVersion(tls *libc.TLS, pPager uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54976: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) { /* sqlite3.c:54427:13: */
+func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54985: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)
@@ -32176,7 +32459,7 @@ func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54427:13
// 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 { /* sqlite3.c:54446:12: */
+func addToSavepointBitvecs(tls *libc.TLS, pPager uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55004:12: */
var ii int32 // Loop counter
var rc int32 = SQLITE_OK // Result code
@@ -32205,7 +32488,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) { /* sqlite3.c:54478:13: */
+func pager_unlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55036:13: */
Xsqlite3BitvecDestroy(tls, (*Pager)(unsafe.Pointer(pPager)).FpInJournal)
(*Pager)(unsafe.Pointer(pPager)).FpInJournal = uintptr(0)
@@ -32297,7 +32580,7 @@ func pager_unlock(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54478:13: */
// 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 { /* sqlite3.c:54575:12: */
+func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55133:12: */
var rc2 int32 = rc & 0xff
if rc2 == SQLITE_FULL || rc2 == SQLITE_IOERR {
@@ -32322,7 +32605,7 @@ func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* sqlite3.c:5
// 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 { /* sqlite3.c:54609:12: */
+func pagerFlushOnCommit(tls *libc.TLS, pPager uintptr, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55167:12: */
if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 {
return 1
}
@@ -32386,7 +32669,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 { /* sqlite3.c:54669:12: */
+func pager_end_transaction(tls *libc.TLS, pPager uintptr, hasSuper int32, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55227:12: */
var rc int32 = SQLITE_OK // Error code from journal finalization operation
var rc2 int32 = SQLITE_OK // Error code from db file unlock operation
@@ -32513,7 +32796,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) { /* sqlite3.c:54816:13: */
+func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55374: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 {
@@ -32545,7 +32828,7 @@ func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54816:
// 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 { /* sqlite3.c:54850:12: */
+func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55408: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 {
@@ -32590,7 +32873,7 @@ func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* sqlite3.
// 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 { /* sqlite3.c:54897:12: */
+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: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -32824,7 +33107,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 { /* sqlite3.c:55144:12: */
+func pager_delsuper(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55702:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -32990,7 +33273,7 @@ __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 { /* sqlite3.c:55262:12: */
+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)
@@ -33025,7 +33308,7 @@ func pager_truncate(tls *libc.TLS, pPager uintptr, nPage Pgno) int32 { /* sqlite
// 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 { /* sqlite3.c:55298:20: */
+func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55856:20: */
var iRet int32 = Xsqlite3OsSectorSize(tls, pFile)
if iRet < 32 {
iRet = 512
@@ -33057,7 +33340,7 @@ func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:55298
// (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) { /* sqlite3.c:55332:13: */
+func setSectorSize(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55890:13: */
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 ||
Xsqlite3OsDeviceCharacteristics(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd)&SQLITE_IOCAP_POWERSAFE_OVERWRITE != 0 {
@@ -33125,7 +33408,7 @@ func setSectorSize(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55332:13: */
// 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 { /* sqlite3.c:55405:12: */
+func pager_playback(tls *libc.TLS, pPager uintptr, isHot int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55963:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -33260,39 +33543,45 @@ __9:
__11:
;
(*Pager)(unsafe.Pointer(pPager)).FdbSize = *(*Pgno)(unsafe.Pointer(bp + 32 /* mxPg */))
+ if !((*Pager)(unsafe.Pointer(pPager)).FmxPgno < *(*Pgno)(unsafe.Pointer(bp + 32))) {
+ goto __12
+ }
+ (*Pager)(unsafe.Pointer(pPager)).FmxPgno = *(*Pgno)(unsafe.Pointer(bp + 32 /* mxPg */))
+__12:
+ ;
__10:
;
// Copy original pages out of the journal and back into the
// database file and/or page cache.
u = U32(0)
-__12:
+__13:
if !(u < *(*U32)(unsafe.Pointer(bp + 28))) {
- goto __14
+ goto __15
}
if !(needPagerReset != 0) {
- goto __15
+ goto __16
}
pager_reset(tls, pPager)
needPagerReset = 0
-__15:
+__16:
;
rc = pager_playback_one_page(tls, pPager, pPager+96, uintptr(0), 1, 0)
if !(rc == SQLITE_OK) {
- goto __16
+ goto __17
}
nPlayback++
- goto __17
-__16:
+ goto __18
+__17:
if !(rc == SQLITE_DONE) {
- goto __18
+ goto __19
}
(*Pager)(unsafe.Pointer(pPager)).FjournalOff = *(*I64)(unsafe.Pointer(bp + 16 /* szJ */))
- goto __14
- goto __19
-__18:
+ goto __15
+ goto __20
+__19:
if !(rc == SQLITE_IOERR|int32(2)<<8) {
- goto __20
+ goto __21
}
// If the journal has been truncated, simply stop reading and
// processing the journal. This might happen if the journal was
@@ -33301,25 +33590,25 @@ __18:
// first place so it is OK to simply abandon the rollback.
rc = SQLITE_OK
goto end_playback
- goto __21
-__20:
+ goto __22
+__21:
// If we are unable to rollback, quit and return the error
// code. This will cause the pager to enter the error state
// so that no further harm will be done. Perhaps the next
// process to come along will be able to rollback the database.
goto end_playback
-__21:
+__22:
;
-__19:
+__20:
;
-__17:
+__18:
;
- goto __13
-__13:
- u++
- goto __12
goto __14
__14:
+ u++
+ goto __13
+ goto __15
+__15:
;
goto __4
__5:
@@ -33328,10 +33617,10 @@ __5:
end_playback:
if !(rc == SQLITE_OK) {
- goto __22
+ goto __23
}
rc = Xsqlite3PagerSetPagesize(tls, pPager, bp+36, -1)
-__22:
+__23:
;
// Following a rollback, the database file should be back in its original
// state prior to the start of the transaction, so invoke the
@@ -33349,7 +33638,7 @@ __22:
(*Pager)(unsafe.Pointer(pPager)).FchangeCountDone = (*Pager)(unsafe.Pointer(pPager)).FtempFile
if !(rc == SQLITE_OK) {
- goto __23
+ goto __24
}
// Leave 4 bytes of space before the super-journal filename in memory.
// This is because it may end up being passed to sqlite3OsOpen(), in
@@ -33358,24 +33647,24 @@ __22:
zSuper = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace + 4
rc = readSuperJournal(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, zSuper, uint32((*Sqlite3_vfs)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).FpVfs)).FmxPathname+1))
-__23:
+__24:
;
if !(rc == SQLITE_OK &&
(int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_DBMOD || int32((*Pager)(unsafe.Pointer(pPager)).FeState) == PAGER_OPEN)) {
- goto __24
+ goto __25
}
rc = Xsqlite3PagerSync(tls, pPager, uintptr(0))
-__24:
+__25:
;
if !(rc == SQLITE_OK) {
- goto __25
+ goto __26
}
rc = pager_end_transaction(tls, pPager, libc.Bool32(int32(*(*int8)(unsafe.Pointer(zSuper))) != 0), 0)
-__25:
+__26:
;
if !(rc == SQLITE_OK && *(*int8)(unsafe.Pointer(zSuper)) != 0 && *(*int32)(unsafe.Pointer(bp + 24)) != 0) {
- goto __26
+ goto __27
}
// If there was a super-journal and this routine will return success,
// see if it is possible to delete the super-journal.
@@ -33383,14 +33672,14 @@ __25:
libc.Xmemset(tls, zSuper+libc.UintptrFromInt32(-4), 0, uint64(4))
rc = pager_delsuper(tls, pPager, zSuper)
-__26:
+__27:
;
if !(isHot != 0 && nPlayback != 0) {
- goto __27
+ goto __28
}
- Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+3835,
+ Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+3826,
libc.VaList(bp, nPlayback, (*Pager)(unsafe.Pointer(pPager)).FzJournal))
-__27:
+__28:
;
// The Pager.sectorSize variable may have been updated while rolling
@@ -33410,7 +33699,7 @@ __27:
//
// 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 { /* sqlite3.c:55622:12: */
+func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56183:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -33464,7 +33753,7 @@ func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:55622:12: */
// 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) { /* sqlite3.c:55685:13: */
+func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56246:13: */
var change_counter U32
if pPg == uintptr(0) {
return
@@ -33491,7 +33780,7 @@ func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:55685:
// 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 { /* sqlite3.c:55713:12: */
+func pagerUndoCallback(tls *libc.TLS, pCtx uintptr, iPg Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56274:12: */
var rc int32 = SQLITE_OK
var pPager uintptr = pCtx
var pPg uintptr
@@ -33522,7 +33811,7 @@ func pagerUndoCallback(tls *libc.TLS, pCtx uintptr, iPg Pgno) int32 { /* sqlite3
}
// This function is called to rollback a transaction on a WAL database.
-func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:55748:12: */
+func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56309:12: */
var rc int32 // Return Code
var pList uintptr // List of dirty pages to revert
@@ -33553,7 +33842,7 @@ func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:55748:
//
// 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 { /* sqlite3.c:55780:12: */
+func pagerWalFrames(tls *libc.TLS, pPager uintptr, pList uintptr, nTruncate Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56341:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pList
@@ -33601,7 +33890,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 { /* sqlite3.c:55847:12: */
+func pagerBeginReadTransaction(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56408:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -33632,7 +33921,7 @@ func pagerBeginReadTransaction(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:55880:12: */
+func pagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56441:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -33686,7 +33975,7 @@ func pagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) int32 { /* sq
// 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 { /* sqlite3.c:55940:12: */
+func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56501:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -33754,7 +34043,7 @@ func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:5
// 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 { /* sqlite3.c:56007:12: */
+func pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56568:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -33863,28 +34152,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) { /* sqlite3.c:56119:21: */
+func Xsqlite3PagerSetCachesize(tls *libc.TLS, pPager uintptr, mxPage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56680: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 { /* sqlite3.c:56127:20: */
+func Xsqlite3PagerSetSpillsize(tls *libc.TLS, pPager uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56688: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) { /* sqlite3.c:56134:13: */
+func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56695:13: */
}
// Change the maximum size of any memory mapping made of the database file.
-func Xsqlite3PagerSetMmapLimit(tls *libc.TLS, pPager uintptr, szMmap Sqlite3_int64) { /* sqlite3.c:56150:21: */
+func Xsqlite3PagerSetMmapLimit(tls *libc.TLS, pPager uintptr, szMmap Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56711: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) { /* sqlite3.c:56158:21: */
+func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56719:21: */
Xsqlite3PcacheShrink(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache)
}
@@ -33937,7 +34226,7 @@ func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56158:21:
//
// Numeric values associated with these states are OFF==1, NORMAL=2,
// and FULL=3.
-func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* sqlite3.c:56214:21: */
+func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56775:21: */
var level uint32 = pgFlags & uint32(PAGER_SYNCHRONOUS_MASK)
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 {
(*Pager)(unsafe.Pointer(pPager)).FnoSync = U8(1)
@@ -34001,7 +34290,7 @@ func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* s
// SQLITE_OPEN_CREATE
// SQLITE_OPEN_EXCLUSIVE
// SQLITE_OPEN_DELETEONCLOSE
-func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) int32 { /* sqlite3.c:56274:12: */
+func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56835:12: */
var rc int32 // Return code
vfsFlags = vfsFlags | (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE)
@@ -34029,7 +34318,7 @@ 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) { /* sqlite3.c:56313:21: */
+func Xsqlite3PagerSetBusyHandler(tls *libc.TLS, pPager uintptr, xBusyHandler uintptr, pBusyHandlerArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56874:21: */
var ap uintptr
(*Pager)(unsafe.Pointer(pPager)).FxBusyHandler = xBusyHandler
(*Pager)(unsafe.Pointer(pPager)).FpBusyHandlerArg = pBusyHandlerArg
@@ -34066,7 +34355,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 { /* sqlite3.c:56357:20: */
+func Xsqlite3PagerSetPagesize(tls *libc.TLS, pPager uintptr, pPageSize uintptr, nReserve int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56918:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -34135,7 +34424,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 { /* sqlite3.c:56425:21: */
+func Xsqlite3PagerTempSpace(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56986:21: */
return (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace
}
@@ -34144,7 +34433,7 @@ func Xsqlite3PagerTempSpace(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.
// 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 { /* sqlite3.c:56436:21: */
+func Xsqlite3PagerMaxPageCount(tls *libc.TLS, pPager uintptr, mxPage Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56997:21: */
if mxPage > Pgno(0) {
(*Pager)(unsafe.Pointer(pPager)).FmxPgno = mxPage
}
@@ -34175,7 +34464,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 { /* sqlite3.c:56486:20: */
+func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57047:20: */
var rc int32 = SQLITE_OK
libc.Xmemset(tls, pDest, 0, uint64(N))
@@ -34198,7 +34487,7 @@ func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest u
//
// However, if the file is between 1 and <page-size> bytes in size, then
// this is considered a 1 page file.
-func Xsqlite3PagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) { /* sqlite3.c:56514:21: */
+func Xsqlite3PagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57075:21: */
*(*int32)(unsafe.Pointer(pnPage)) = int32((*Pager)(unsafe.Pointer(pPager)).FdbSize)
}
@@ -34215,7 +34504,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 { /* sqlite3.c:56535:12: */
+func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57096:12: */
var rc int32 // Return code
// Check that this is either a no-op (because the requested lock is
@@ -34223,7 +34512,7 @@ func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { /
// may be invoked during, according to the comment above
// sqlite3PagerSetBusyhandler().
- for ok := true; ok; ok = rc == SQLITE_BUSY && (*struct {
+ for __ccgo := true; __ccgo; __ccgo = rc == SQLITE_BUSY && (*struct {
f func(*libc.TLS, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Pager)(unsafe.Pointer(pPager)).FxBusyHandler})).f(tls, (*Pager)(unsafe.Pointer(pPager)).FpBusyHandlerArg) != 0 {
rc = pagerLockDb(tls, pPager, locktype)
@@ -34238,8 +34527,7 @@ func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { /
// current database image, in pages, OR
//
// b) if the page content were written at this time, it would not
-// be necessary to write the current content out to the sub-journal
-// (as determined by function subjRequiresPage()).
+// be necessary to write the current content out to the sub-journal.
//
// If the condition asserted by this function were not true, and the
// dirty page were to be discarded from the cache via the pagerStress()
@@ -34261,7 +34549,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) { /* sqlite3.c:56599:21: */
+func Xsqlite3PagerTruncateImage(tls *libc.TLS, pPager uintptr, nPage Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57167:21: */
(*Pager)(unsafe.Pointer(pPager)).FdbSize = nPage
@@ -34288,7 +34576,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 { /* sqlite3.c:56631:12: */
+func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57198: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)
@@ -34301,7 +34589,7 @@ func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:566
// Release a reference to page pPg. pPg must have been returned by an
// earlier call to pagerAcquireMapPage().
-func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56697:13: */
+func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57264:13: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
(*Pager)(unsafe.Pointer(pPager)).FnMmapOut--
(*PgHdr)(unsafe.Pointer(pPg)).FpDirty = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist
@@ -34311,7 +34599,7 @@ func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56697:13: */
}
// Free all PgHdr objects stored in the Pager.pMmapFreelist list.
-func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56710:13: */
+func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57277:13: */
var p uintptr
var pNext uintptr
for p = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist; p != 0; p = pNext {
@@ -34324,7 +34612,7 @@ func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56710:13: */
// 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 { /* sqlite3.c:56724:12: */
+func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57291:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -34362,7 +34650,7 @@ func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:56724
// 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 { /* sqlite3.c:56758:20: */
+func Xsqlite3PagerClose(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57325:20: */
var pTmp uintptr = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace
Xsqlite3BeginBenignMalloc(tls)
@@ -34411,7 +34699,7 @@ func Xsqlite3PagerClose(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* sq
}
// Increment the reference count for page pPg.
-func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56827:21: */
+func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57394:21: */
Xsqlite3PcacheRef(tls, pPg)
}
@@ -34448,7 +34736,7 @@ func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56827:21: */
// 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 { /* sqlite3.c:56866:12: */
+func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57433:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -34562,7 +34850,7 @@ func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* sqlite3
return SQLITE_OK
}
-var zerobyte U8 = U8(0) /* sqlite3.c:56917:27 */
+var zerobyte U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57484: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
@@ -34594,7 +34882,7 @@ var zerobyte U8 = U8(0) /* sqlite3.c:56917:27 */
// 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 { /* sqlite3.c:57009:12: */
+func pager_write_pagelist(tls *libc.TLS, pPager uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57576:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -34674,7 +34962,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 { /* sqlite3.c:57100:12: */
+func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57667: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 |
@@ -34698,7 +34986,7 @@ func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57100:12
// 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 { /* sqlite3.c:57126:12: */
+func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57693:12: */
var rc int32 = SQLITE_OK
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
if int32((*Pager)(unsafe.Pointer(pPager)).FjournalMode) != PAGER_JOURNALMODE_OFF {
@@ -34729,7 +35017,7 @@ func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:57126:12: *
return rc
}
-func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:57162:12: */
+func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57729:12: */
if subjRequiresPage(tls, pPg) != 0 {
return subjournalPage(tls, pPg)
} else {
@@ -34755,7 +35043,7 @@ func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:5
// 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 { /* sqlite3.c:57189:12: */
+func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57756:12: */
var pPager uintptr = p
var rc int32 = SQLITE_OK
@@ -34817,7 +35105,7 @@ func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* sqlite3.c:571
}
// Flush all unreferenced dirty pages to disk.
-func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57266:20: */
+func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57833: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)
@@ -34864,7 +35152,7 @@ func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:5726
// 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 { /* sqlite3.c:57315:20: */
+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: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -34990,7 +35278,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, 57402)
+ rc = Xsqlite3CantopenError(tls, 57969)
__12:
;
if !(rc != SQLITE_OK) {
@@ -35098,7 +35386,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+3862, uint64(8))
+ libc.Xmemcpy(tls, pPtr, ts+3853, uint64(8))
pPtr += uintptr(8 + 1)
goto __19
__18:
@@ -35113,7 +35401,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+3871, uint64(4))
+ libc.Xmemcpy(tls, pPtr, ts+3862, uint64(4))
pPtr += uintptr(4 + 1)
goto __21
__20:
@@ -35173,9 +35461,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+3876, 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+3867, 0))
if !(iDc&SQLITE_IOCAP_IMMUTABLE != 0 ||
- Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+3883, 0) != 0) {
+ Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+3874, 0) != 0) {
goto __30
}
vfsFlags = vfsFlags | SQLITE_OPEN_READONLY
@@ -35309,7 +35597,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 { /* sqlite3.c:57687:25: */
+func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58254: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--
@@ -35347,7 +35635,7 @@ func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* sq
// 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 { /* sqlite3.c:57728:12: */
+func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58295:12: */
bp := tls.Alloc(17)
defer tls.Free(17)
@@ -35458,7 +35746,7 @@ func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* sq
// 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 { /* sqlite3.c:57848:20: */
+func Xsqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58415:20: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -35584,7 +35872,7 @@ __7:
if !(rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8))&SQLITE_OPEN_READONLY != 0) {
goto __10
}
- rc = Xsqlite3CantopenError(tls, 57932)
+ rc = Xsqlite3CantopenError(tls, 58499)
Xsqlite3OsClose(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd)
__10:
;
@@ -35733,7 +36021,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) { /* sqlite3.c:58065:13: */
+func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58632:13: */
if Xsqlite3PcacheRefCount(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) == 0 {
// because page1 is never memory mapped
pagerUnlockAndRollback(tls, pPager)
@@ -35795,7 +36083,7 @@ func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:58065:13:
// 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 { /* sqlite3.c:58129:12: */
+func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58696:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -35808,7 +36096,7 @@ func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, fla
if !(pgno == Pgno(0)) {
goto __1
}
- return Xsqlite3CorruptError(tls, 58145)
+ return Xsqlite3CorruptError(tls, 58712)
__1:
;
*(*uintptr)(unsafe.Pointer(bp /* pBase */)) = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 3)
@@ -35854,7 +36142,7 @@ __5:
if !(pgno == Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1))) {
goto __7
}
- rc = Xsqlite3CorruptError(tls, 58177)
+ rc = Xsqlite3CorruptError(tls, 58744)
goto pager_acquire_err
__7:
;
@@ -35926,7 +36214,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 { /* sqlite3.c:58300:12: */
+func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58867:12: */
_ = pgno
_ = flags
@@ -35935,7 +36223,8 @@ 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 { /* sqlite3.c:58316:20: */
+func Xsqlite3PagerGet(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58883:20: */
+ // printf("PAGE %u\n", pgno); fflush(stdout);
return (*struct {
f func(*libc.TLS, uintptr, Pgno, uintptr, int32) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Pager)(unsafe.Pointer(pPager)).FxGet})).f(tls, pPager, pgno, ppPage, flags)
@@ -35950,7 +36239,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 { /* sqlite3.c:58336:23: */
+func Xsqlite3PagerLookup(tls *libc.TLS, pPager uintptr, pgno Pgno) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58904:23: */
var pPage uintptr
pPage = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 0)
@@ -35971,7 +36260,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) { /* sqlite3.c:58359:21: */
+func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58927:21: */
if int32((*DbPage)(unsafe.Pointer(pPg)).Fflags)&PGHDR_MMAP != 0 {
// Page1 is never memory mapped
@@ -35983,13 +36272,13 @@ func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58359:
}
-func Xsqlite3PagerUnref(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58371:21: */
+func Xsqlite3PagerUnref(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58939:21: */
if pPg != 0 {
Xsqlite3PagerUnrefNotNull(tls, pPg)
}
}
-func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58374:21: */
+func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58942:21: */
var pPager uintptr
// Page1 is never memory mapped
@@ -36018,7 +36307,7 @@ func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58374:
// 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 { /* sqlite3.c:58406:12: */
+func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58974:12: */
var rc int32 = SQLITE_OK // Return code
var pVfs uintptr = (*Pager)(unsafe.Pointer(pPager)).FpVfs // Local cache of vfs pointer
@@ -36100,7 +36389,7 @@ func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:5840
// 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 { /* sqlite3.c:58495:20: */
+func Xsqlite3PagerBegin(tls *libc.TLS, pPager uintptr, exFlag int32, subjInMemory int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59063:20: */
var rc int32 = SQLITE_OK
if (*Pager)(unsafe.Pointer(pPager)).FerrCode != 0 {
@@ -36160,7 +36449,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 { /* sqlite3.c:58564:28: */
+func pagerAddPageToRollbackJournal(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59132:28: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var rc int32
var cksum U32
@@ -36210,7 +36499,7 @@ func pagerAddPageToRollbackJournal(tls *libc.TLS, pPg uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:58621:12: */
+func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59189:12: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var rc int32 = SQLITE_OK
@@ -36284,7 +36573,7 @@ func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:58621:12: */
// 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 { /* sqlite3.c:58713:28: */
+func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59281:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -36372,7 +36661,7 @@ func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:5871
//
// 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 { /* sqlite3.c:58807:20: */
+func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59375: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 {
@@ -36413,7 +36702,7 @@ func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:58807:2
// 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) { /* sqlite3.c:58856:21: */
+func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59424: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 {
@@ -36443,7 +36732,7 @@ func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58856:21:
// 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 { /* sqlite3.c:58890:12: */
+func pager_incr_changecounter(tls *libc.TLS, pPager uintptr, isDirectMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59458:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -36513,7 +36802,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 { /* sqlite3.c:58973:20: */
+func Xsqlite3PagerSync(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59541:20: */
var rc int32 = SQLITE_OK
var pArg uintptr = zSuper
rc = Xsqlite3OsFileControl(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, SQLITE_FCNTL_SYNC, pArg)
@@ -36536,7 +36825,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 { /* sqlite3.c:58996:20: */
+func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59564:20: */
var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode
if rc == SQLITE_OK {
@@ -36572,7 +36861,7 @@ func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:59038:20: */
+func Xsqlite3PagerCommitPhaseOne(tls *libc.TLS, pPager uintptr, zSuper uintptr, noSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59606:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -36762,7 +37051,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 { /* sqlite3.c:59268:20: */
+func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59836:20: */
var rc int32 = SQLITE_OK // Return code
// This routine should not be called if a prior error has occurred.
@@ -36819,7 +37108,7 @@ func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:59334:20: */
+func Xsqlite3PagerRollback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59902:20: */
var rc int32 = SQLITE_OK // Return code
// PagerRollback() is a no-op if called in READER or OPEN state. If
@@ -36863,13 +37152,13 @@ func Xsqlite3PagerRollback(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:5
// 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 { /* sqlite3.c:59384:19: */
+func Xsqlite3PagerIsreadonly(tls *libc.TLS, pPager uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59952: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 { /* sqlite3.c:59401:20: */
+func Xsqlite3PagerMemUsed(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59969: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)+
@@ -36878,7 +37167,7 @@ func Xsqlite3PagerMemUsed(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59
}
// Return the number of references to the specified page.
-func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:59412:20: */
+func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59980:20: */
return Xsqlite3PcachePageRefcount(tls, pPage)
}
@@ -36891,7 +37180,7 @@ func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.
// 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) { /* sqlite3.c:59448:21: */
+func Xsqlite3PagerCacheStat(tls *libc.TLS, pPager uintptr, eStat int32, reset int32, pnVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60016:21: */
eStat = eStat - SQLITE_DBSTATUS_CACHE_HIT
*(*int32)(unsafe.Pointer(pnVal)) += *(*int32)(unsafe.Pointer(pPager + 240 + uintptr(eStat)*4))
@@ -36901,7 +37190,7 @@ func Xsqlite3PagerCacheStat(tls *libc.TLS, pPager uintptr, eStat int32, reset in
}
// Return true if this is an in-memory or temp-file backed pager.
-func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59471:20: */
+func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60039:20: */
return libc.Bool32((*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 || (*Pager)(unsafe.Pointer(pPager)).FmemVfs != 0)
}
@@ -36913,7 +37202,7 @@ func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59
// 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 { /* sqlite3.c:59485:28: */
+func pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60053: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
@@ -36953,7 +37242,7 @@ func pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 {
return rc
}
-func Xsqlite3PagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* sqlite3.c:59531:20: */
+func Xsqlite3PagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60099:20: */
if nSavepoint > (*Pager)(unsafe.Pointer(pPager)).FnSavepoint && (*Pager)(unsafe.Pointer(pPager)).FuseJournal != 0 {
return pagerOpenSavepoint(tls, pPager, nSavepoint)
@@ -36991,7 +37280,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 { /* sqlite3.c:59573:20: */
+func Xsqlite3PagerSavepoint(tls *libc.TLS, pPager uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60141:20: */
var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode
if rc == SQLITE_OK && iSavepoint < (*Pager)(unsafe.Pointer(pPager)).FnSavepoint {
@@ -37052,30 +37341,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 { /* sqlite3.c:59654:27: */
+func Xsqlite3PagerFilename(tls *libc.TLS, pPager uintptr, nullIfMemDb int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60222: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)} /* sqlite3.c:59655:21 */
+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 */
// Return the VFS structure for the pager.
-func Xsqlite3PagerVfs(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:59662:28: */
+func Xsqlite3PagerVfs(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60230: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 { /* sqlite3.c:59671:29: */
+func Xsqlite3PagerFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60239: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 { /* sqlite3.c:59679:29: */
+func Xsqlite3PagerJrnlFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60247:29: */
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
return Xsqlite3WalFile(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
}
@@ -37083,7 +37372,7 @@ func Xsqlite3PagerJrnlFile(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c
}
// Return the full pathname of the journal file.
-func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:59690:27: */
+func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60258:27: */
return (*Pager)(unsafe.Pointer(pPager)).FzJournal
}
@@ -37110,7 +37399,7 @@ func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite
//
// 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 { /* sqlite3.c:59720:20: */
+func Xsqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60288:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -37172,7 +37461,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, 59794)
+ return Xsqlite3CorruptError(tls, 60362)
}
*(*U16)(unsafe.Pointer(pPg + 52)) |= U16(int32((*PgHdr)(unsafe.Pointer(pPgOld)).Fflags) & PGHDR_NEED_SYNC)
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 {
@@ -37232,21 +37521,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) { /* sqlite3.c:59858:21: */
+func Xsqlite3PagerRekey(tls *libc.TLS, pPg uintptr, iNew Pgno, flags U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60426: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 { /* sqlite3.c:59867:21: */
+func Xsqlite3PagerGetData(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60435: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 { /* sqlite3.c:59876:21: */
+func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60444:21: */
return (*DbPage)(unsafe.Pointer(pPg)).FpExtra
}
@@ -37258,7 +37547,7 @@ func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* sqlite3.c:59
// 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 { /* sqlite3.c:59890:20: */
+func Xsqlite3PagerLockingMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60458: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)
@@ -37284,7 +37573,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 { /* sqlite3.c:59923:20: */
+func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60491:20: */
var eOld U8 = (*Pager)(unsafe.Pointer(pPager)).FjournalMode // Prior journalmode
// The eMode parameter is always valid
@@ -37313,7 +37602,6 @@ func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int
// delete the journal file.
if !(int32((*Pager)(unsafe.Pointer(pPager)).FexclusiveMode) != 0) && int32(eOld)&5 == 1 && eMode&1 == 0 {
-
// In this case we would like to delete the journal file. If it is
// not possible, then that is not a problem. Deleting the journal file
// here is an optimization only.
@@ -37355,14 +37643,14 @@ func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int
}
// Return the current journal mode.
-func Xsqlite3PagerGetJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60014:20: */
+func Xsqlite3PagerGetJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60581: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 { /* sqlite3.c:60023:20: */
+func Xsqlite3PagerOkToChangeJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60590:20: */
if int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_CACHEMOD {
return 0
@@ -37377,7 +37665,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 { /* sqlite3.c:60036:20: */
+func Xsqlite3PagerJournalSizeLimit(tls *libc.TLS, pPager uintptr, iLimit I64) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60603:20: */
if iLimit >= int64(-1) {
(*Pager)(unsafe.Pointer(pPager)).FjournalSizeLimit = iLimit
Xsqlite3WalLimit(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, iLimit)
@@ -37389,12 +37677,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 { /* sqlite3.c:60050:31: */
+func Xsqlite3PagerBackupPtr(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60617:31: */
return pPager + 112
}
// Unless this is an in-memory or temporary database, clear the pager cache.
-func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:60058:21: */
+func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60625:21: */
if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 {
pager_reset(tls, pPager)
@@ -37406,8 +37694,19 @@ func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:60058
// 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 { /* sqlite3.c:60073:20: */
+func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60640: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
+ // then "PRAGMA journal_mode=WAL" is run and then sqlite3_wal_checkpoint()
+ // is invoked without any intervening transactions. We need to start
+ // a transaction to initialize pWal. The PRAGMA table_list statement is
+ // used for this since it starts transactions on every database file,
+ // 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+3884, uintptr(0), uintptr(0), uintptr(0))
+ }
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalCheckpoint(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, db, eMode,
func() uintptr {
@@ -37423,13 +37722,13 @@ func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode in
return rc
}
-func Xsqlite3PagerWalCallback(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60092:20: */
+func Xsqlite3PagerWalCallback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60671: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 { /* sqlite3.c:60100:20: */
+func Xsqlite3PagerWalSupported(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60679:20: */
var pMethods uintptr = (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods
if (*Pager)(unsafe.Pointer(pPager)).FnoLock != 0 {
return 0
@@ -37439,7 +37738,7 @@ func Xsqlite3PagerWalSupported(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:60110:12: */
+func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60689:12: */
var rc int32 // Return code
rc = pagerLockDb(tls, pPager, EXCLUSIVE_LOCK)
@@ -37456,7 +37755,7 @@ func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:6011
// 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 { /* sqlite3.c:60130:12: */
+func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60709:12: */
var rc int32 = SQLITE_OK
// If the pager is already in exclusive-mode, the WAL module will use
@@ -37492,7 +37791,7 @@ func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60130:12:
// 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 { /* sqlite3.c:60175:20: */
+func Xsqlite3PagerOpenWal(tls *libc.TLS, pPager uintptr, pbOpen uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60754:20: */
var rc int32 = SQLITE_OK // Return code
if !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && !(int32((*Pager)(unsafe.Pointer(pPager)).FpWal) != 0) {
@@ -37522,7 +37821,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 { /* sqlite3.c:60214:20: */
+func Xsqlite3PagerCloseWal(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60793:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -37562,7 +37861,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 { /* sqlite3.c:60283:20: */
+func Xsqlite3PagerSnapshotGet(tls *libc.TLS, pPager uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60862:20: */
var rc int32 = SQLITE_ERROR
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotGet(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, ppSnapshot)
@@ -37573,7 +37872,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 { /* sqlite3.c:60296:20: */
+func Xsqlite3PagerSnapshotOpen(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60875:20: */
var rc int32 = SQLITE_OK
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
Xsqlite3WalSnapshotOpen(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot)
@@ -37585,7 +37884,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 { /* sqlite3.c:60313:20: */
+func Xsqlite3PagerSnapshotRecover(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60892:20: */
var rc int32
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotRecover(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
@@ -37605,7 +37904,7 @@ func Xsqlite3PagerSnapshotRecover(tls *libc.TLS, pPager uintptr) int32 { /* sqli
// 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 { /* sqlite3.c:60335:20: */
+func Xsqlite3PagerSnapshotCheck(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60914:20: */
var rc int32
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotCheck(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot)
@@ -37617,7 +37916,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) { /* sqlite3.c:60349:21: */
+func Xsqlite3PagerSnapshotUnlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60928:21: */
Xsqlite3WalSnapshotUnlock(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
}
@@ -37914,7 +38213,7 @@ type WalIndexHdr1 = struct {
FaFrameCksum [2]U32
FaSalt [2]U32
FaCksum [2]U32
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
//************* End of pager.c **********************************************
//************* Begin file wal.c ********************************************
@@ -38196,7 +38495,7 @@ type WalIndexHdr1 = struct {
// byte.
// Object declarations
-type WalIndexHdr = WalIndexHdr1 /* sqlite3.c:60677:28 */
+type WalIndexHdr = WalIndexHdr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61256:28 */
type WalIterator1 = struct {
FiPrior U32
FnSegment int32
@@ -38208,18 +38507,18 @@ type WalIterator1 = struct {
FnEntry int32
FiZero int32
}
-} /* sqlite3.c:60678:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61257:9 */
-type WalIterator = WalIterator1 /* sqlite3.c:60678:28 */
+type WalIterator = WalIterator1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61257:28 */
type WalCkptInfo1 = struct {
FnBackfill U32
FaReadMark [5]U32
FaLock [8]U8
FnBackfillAttempted U32
FnotUsed0 U32
-} /* sqlite3.c:60679:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61258:9 */
-type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:60679:28 */
+type WalCkptInfo = WalCkptInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61258:28 */
// Candidate values for Wal.exclusiveMode.
@@ -38227,7 +38526,7 @@ type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:60679:28 */
// 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 /* sqlite3.c:60934:13 */
+type Ht_slot = U16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61513: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
@@ -38249,7 +38548,7 @@ type WalSegment = struct {
FaPgno uintptr
FnEntry int32
FiZero int32
-} /* sqlite3.c:60678:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61257: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
@@ -38280,7 +38579,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 { /* sqlite3.c:61005:28: */
+func walIndexPageRealloc(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61584:28: */
var rc int32 = SQLITE_OK
// Enlarge the pWal->apWiData[] array if required
@@ -38326,7 +38625,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 { /* sqlite3.c:61054:12: */
+func walIndexPage(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61633: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)
}
@@ -38334,13 +38633,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 { /* sqlite3.c:61068:29: */
+func walCkptInfo(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61647: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 { /* sqlite3.c:61076:29: */
+func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61655:29: */
return *(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData))
}
@@ -38358,7 +38657,7 @@ func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* sqlite3.c:61076:29: *
// 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) { /* sqlite3.c:61102:13: */
+func walChecksumBytes(tls *libc.TLS, nativeCksum int32, a uintptr, nByte int32, aIn uintptr, aOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61681:13: */
var s1 U32
var s2 U32
var aData uintptr = a
@@ -38372,12 +38671,12 @@ func walChecksumBytes(tls *libc.TLS, nativeCksum int32, a uintptr, nByte int32,
}
if nativeCksum != 0 {
- for ok := true; ok; ok = aData < aEnd {
+ for __ccgo := true; __ccgo; __ccgo = aData < aEnd {
s1 = s1 + (*(*U32)(unsafe.Pointer(libc.PostIncUintptr(&aData, 4))) + s2)
s2 = s2 + (*(*U32)(unsafe.Pointer(libc.PostIncUintptr(&aData, 4))) + s1)
}
} else {
- for ok1 := true; ok1; ok1 = aData < aEnd {
+ for __ccgo1 := true; __ccgo1; __ccgo1 = aData < aEnd {
s1 = s1 + (*(*U32)(unsafe.Pointer(aData))&U32(0x000000FF)<<24 + *(*U32)(unsafe.Pointer(aData))&U32(0x0000FF00)<<8 + *(*U32)(unsafe.Pointer(aData))&U32(0x00FF0000)>>8 + *(*U32)(unsafe.Pointer(aData))&0xFF000000>>24 + s2)
s2 = s2 + (*(*U32)(unsafe.Pointer(aData + 1*4))&U32(0x000000FF)<<24 + *(*U32)(unsafe.Pointer(aData + 1*4))&U32(0x0000FF00)<<8 + *(*U32)(unsafe.Pointer(aData + 1*4))&U32(0x00FF0000)>>8 + *(*U32)(unsafe.Pointer(aData + 1*4))&0xFF000000>>24 + s1)
aData += 4 * uintptr(2)
@@ -38390,7 +38689,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) { /* sqlite3.c:61145:13: */
+func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61724:13: */
if int32((*Wal)(unsafe.Pointer(pWal)).FexclusiveMode) != WAL_HEAPMEMORY_MODE {
Xsqlite3OsShmBarrier(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd)
}
@@ -38405,7 +38704,7 @@ func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61145:13: */
// 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) { /* sqlite3.c:61169:28: */
+func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61748:28: */
var aHdr uintptr = walIndexHdr(tls, pWal)
var nCksum int32 = int32(uintptr(0) + 40)
@@ -38429,7 +38728,7 @@ func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61169:28: */
// 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) { /* sqlite3.c:61196:13: */
+func walEncodeFrame(tls *libc.TLS, pWal uintptr, iPage U32, nTruncate U32, aData uintptr, aFrame uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61775:13: */
var nativeCksum int32 // True for native byte-order checksums
var aCksum uintptr = pWal + 72 + 24
@@ -38452,7 +38751,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 { /* sqlite3.c:61227:12: */
+func walDecodeFrame(tls *libc.TLS, pWal uintptr, piPage uintptr, pnTruncate uintptr, aData uintptr, aFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61806:12: */
var nativeCksum int32 // True for native byte-order checksums
var aCksum uintptr = pWal + 72 + 24
var pgno U32 // Page number of the frame
@@ -38494,7 +38793,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 { /* sqlite3.c:61306:12: */
+func walLockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61885:12: */
var rc int32
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return SQLITE_OK
@@ -38505,7 +38804,7 @@ func walLockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) int32 { /* sqlite
return rc
}
-func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* sqlite3.c:61316:13: */
+func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61895:13: */
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return
}
@@ -38514,7 +38813,7 @@ func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* sqlite3.c:
}
-func walLockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) int32 { /* sqlite3.c:61322:12: */
+func walLockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61901:12: */
var rc int32
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return SQLITE_OK
@@ -38525,7 +38824,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) { /* sqlite3.c:61332:13: */
+func walUnlockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61911:13: */
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return
}
@@ -38537,12 +38836,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 { /* sqlite3.c:61345:12: */
+func walHash(tls *libc.TLS, iPage U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61924:12: */
return int32(iPage * U32(HASHTABLE_HASH_1) & U32(HASHTABLE_NPAGE*2-1))
}
-func walNextHash(tls *libc.TLS, iPriorHash int32) int32 { /* sqlite3.c:61350:12: */
+func walNextHash(tls *libc.TLS, iPriorHash int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61929:12: */
return (iPriorHash + 1) & (HASHTABLE_NPAGE*2 - 1)
}
@@ -38554,12 +38853,12 @@ type WalHashLoc1 = struct {
FaPgno uintptr
FiZero U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:61359:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61938: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 /* sqlite3.c:61359:27 */
+type WalHashLoc = WalHashLoc1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61938: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
@@ -38573,7 +38872,7 @@ type WalHashLoc = WalHashLoc1 /* sqlite3.c:61359:27 */
//
// 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 { /* sqlite3.c:61380:12: */
+func walHashGet(tls *libc.TLS, pWal uintptr, iHash int32, pLoc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61959:12: */
var rc int32 // Return code
rc = walIndexPage(tls, pWal, iHash, pLoc+8)
@@ -38596,14 +38895,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 { /* sqlite3.c:61410:12: */
+func walFramePage(tls *libc.TLS, iFrame U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61989: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 { /* sqlite3.c:61425:12: */
+func walFramePgno(tls *libc.TLS, pWal uintptr, iFrame U32) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62004: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))
@@ -38621,7 +38920,7 @@ func walFramePgno(tls *libc.TLS, pWal uintptr, iFrame U32) U32 { /* sqlite3.c:61
// 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) { /* sqlite3.c:61445:13: */
+func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62024:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -38664,7 +38963,7 @@ func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61445:13: */
// 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 { /* sqlite3.c:61507:12: */
+func walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame U32, iPage U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62086:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -38705,7 +39004,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, 61547)
+ return Xsqlite3CorruptError(tls, 62126)
}
}
*(*U32)(unsafe.Pointer((*WalHashLoc)(unsafe.Pointer(bp /* &sLoc */)).FaPgno + uintptr(idx-1)*4)) = iPage
@@ -38724,7 +39023,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 { /* sqlite3.c:61596:12: */
+func walIndexRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62175:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -38839,7 +39138,7 @@ __6:
if !(version != U32(WAL_MAX_VERSION)) {
goto __7
}
- rc = Xsqlite3CantopenError(tls, 61679)
+ rc = Xsqlite3CantopenError(tls, 62258)
goto finished
__7:
;
@@ -39029,7 +39328,7 @@ __24:
goto __30
}
Xsqlite3_log(tls, SQLITE_NOTICE|int32(1)<<8,
- ts+3893,
+ ts+3902,
libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame, (*Wal)(unsafe.Pointer(pWal)).FzWalName))
__30:
;
@@ -39043,7 +39342,7 @@ recovery_error:
}
// Close an open wal-index.
-func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* sqlite3.c:61819:13: */
+func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62398: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++ {
@@ -39069,7 +39368,7 @@ func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* sqlite3.c:6
// 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 { /* sqlite3.c:61847:20: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -39141,7 +39440,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) { /* sqlite3.c:61950:21: */
+func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62529:21: */
if pWal != 0 {
(*Wal)(unsafe.Pointer(pWal)).FmxWalSize = iLimit
}
@@ -39155,7 +39454,7 @@ func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* sqlite3.c:61
//
// 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 { /* sqlite3.c:61964:12: */
+func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62543: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
@@ -39202,7 +39501,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) { /* sqlite3.c:62017:13: */
+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: */
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
@@ -39248,7 +39547,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) { /* sqlite3.c:62074:13: */
+func walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintptr, pnList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62653:13: */
bp := tls.Alloc(220)
defer tls.Free(220)
@@ -39294,10 +39593,10 @@ type Sublist = struct {
FnList int32
F__ccgo_pad1 [4]byte
FaList uintptr
-} /* sqlite3.c:62080:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62659:3 */
// Free an iterator allocated by walIteratorInit().
-func walIteratorFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:62137:13: */
+func walIteratorFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62716:13: */
Xsqlite3_free(tls, p)
}
@@ -39312,7 +39611,7 @@ func walIteratorFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:62137:13: */
//
// 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 { /* sqlite3.c:62154:12: */
+func walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill U32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62733:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -39396,9 +39695,9 @@ 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 { /* sqlite3.c:62317:12: */
+func walBusyLock(tls *libc.TLS, pWal uintptr, xBusy uintptr, pBusyArg uintptr, lockIdx int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62896:12: */
var rc int32
- for ok := true; ok; ok = xBusy != 0 && rc == SQLITE_BUSY && (*struct {
+ for __ccgo := true; __ccgo; __ccgo = xBusy != 0 && rc == SQLITE_BUSY && (*struct {
f func(*libc.TLS, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{xBusy})).f(tls, pBusyArg) != 0 {
rc = walLockExclusive(tls, pWal, lockIdx, n)
@@ -39408,7 +39707,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 { /* sqlite3.c:62341:12: */
+func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62920:12: */
return int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0xfe00 + int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0x0001<<16
}
@@ -39427,7 +39726,7 @@ func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:62341:12: */
// 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) { /* sqlite3.c:62362:13: */
+func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62941:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
*(*U32)(unsafe.Pointer(bp)) = salt1
@@ -39478,7 +39777,7 @@ func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* sqlite3.c:62362:
// 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 { /* sqlite3.c:62409: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-3380500/sqlite3.c:62988:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -39609,7 +39908,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, 62493)
+ rc = Xsqlite3CorruptError(tls, 63072)
goto __15
__14:
Xsqlite3OsFileControlHint(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd, SQLITE_FCNTL_SIZE_HINT, bp+16)
@@ -39770,7 +40069,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) { /* sqlite3.c:62595:13: */
+func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63174:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -39784,12 +40083,12 @@ func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* sqlite3.c:62595:13
}
Xsqlite3EndBenignMalloc(tls)
if rx != 0 {
- Xsqlite3_log(tls, rx, ts+3930, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).FzWalName))
+ Xsqlite3_log(tls, rx, ts+3939, 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 { /* sqlite3.c:62612:20: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -39861,7 +40160,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 { /* sqlite3.c:62693:27: */
+func walIndexTryHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63272:27: */
bp := tls.Alloc(104)
defer tls.Free(104)
@@ -39930,7 +40229,7 @@ func walIndexTryHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* sq
//
// 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 { /* sqlite3.c:62763:12: */
+func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63342:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -40010,7 +40309,7 @@ func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* s
// 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, 62842)
+ rc = Xsqlite3CantopenError(tls, 63421)
}
if (*Wal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 {
if rc != SQLITE_OK {
@@ -40055,7 +40354,7 @@ func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* s
// 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 { /* sqlite3.c:62887:12: */
+func walBeginShmUnreliable(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63466:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -40187,7 +40486,8 @@ __7:
;
// Allocate a buffer to read frames into
- szFrame = int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage) + WAL_FRAME_HDRSIZE
+
+ szFrame = int32((*Wal)(unsafe.Pointer(pWal)).FszPage + U32(WAL_FRAME_HDRSIZE))
aFrame = Xsqlite3_malloc64(tls, uint64(szFrame))
if !(aFrame == uintptr(0)) {
goto __8
@@ -40204,7 +40504,7 @@ __8:
// the caller.
*(*U32)(unsafe.Pointer(bp + 48)) = *(*U32)(unsafe.Pointer(pWal + 72 + 24))
*(*U32)(unsafe.Pointer(bp + 48 + 1*4)) = *(*U32)(unsafe.Pointer(pWal + 72 + 24 + 1*4))
- iOffset = int64(WAL_HDRSIZE) + I64((*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame+U32(1)-U32(1))*I64(int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)+WAL_FRAME_HDRSIZE)
+ iOffset = int64(WAL_HDRSIZE) + I64((*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame+U32(1)-U32(1))*I64((*Wal)(unsafe.Pointer(pWal)).FszPage+U32(WAL_FRAME_HDRSIZE))
__9:
if !(iOffset+I64(szFrame) <= *(*I64)(unsafe.Pointer(bp + 8))) {
goto __11
@@ -40320,7 +40620,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 { /* sqlite3.c:63082:12: */
+func walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int32, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63663:12: */
var pInfo uintptr // Checkpoint information in wal-index
var mxReadMark U32 // Largest aReadMark[] value
var mxI int32 // Index of largest aReadMark[] value
@@ -40537,7 +40837,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 { /* sqlite3.c:63312:20: */
+func Xsqlite3WalSnapshotRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63893:20: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -40611,7 +40911,7 @@ func Xsqlite3WalSnapshotRecover(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:63383:20: */
+func Xsqlite3WalBeginReadTransaction(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63964:20: */
var rc int32 // Return code
var cnt int32 = 0 // Number of TryBeginRead attempts
var bChanged int32 = 0
@@ -40639,7 +40939,7 @@ func Xsqlite3WalBeginReadTransaction(tls *libc.TLS, pWal uintptr, pChanged uintp
(*Wal)(unsafe.Pointer(pWal)).FckptLock = U8(1)
}
- for ok := true; ok; ok = rc == -1 {
+ for __ccgo := true; __ccgo; __ccgo = rc == -1 {
rc = walTryBeginRead(tls, pWal, pChanged, 0, libc.PreIncInt32(&cnt, 1))
}
@@ -40699,7 +40999,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) { /* sqlite3.c:63491:21: */
+func Xsqlite3WalEndReadTransaction(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64072:21: */
Xsqlite3WalEndWriteTransaction(tls, pWal)
if int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 {
walUnlockShared(tls, pWal, 3+int32((*Wal)(unsafe.Pointer(pWal)).FreadLock))
@@ -40713,7 +41013,7 @@ func Xsqlite3WalEndReadTransaction(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:6
//
// 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 { /* sqlite3.c:63507:20: */
+func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64088:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -40780,7 +41080,7 @@ func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr
iRead = iFrame
}
if libc.PostDecInt32(&nCollide, 1) == 0 {
- return Xsqlite3CorruptError(tls, 63577)
+ return Xsqlite3CorruptError(tls, 64158)
}
iKey = walNextHash(tls, iKey)
}
@@ -40796,7 +41096,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 { /* sqlite3.c:63611:20: */
+func Xsqlite3WalReadFrame(tls *libc.TLS, pWal uintptr, iRead U32, nOut int32, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64192:20: */
var sz int32
var iOffset I64
sz = int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)
@@ -40813,7 +41113,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 { /* sqlite3.c:63631:21: */
+func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64212:21: */
if pWal != 0 && int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 {
return (*Wal)(unsafe.Pointer(pWal)).Fhdr.FnPage
}
@@ -40831,7 +41131,7 @@ func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* sqlite3.c:63631:21
// 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 { /* sqlite3.c:63652:20: */
+func Xsqlite3WalBeginWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64233:20: */
var rc int32
// Cannot start a write transaction without first holding a read
@@ -40863,7 +41163,7 @@ func Xsqlite3WalBeginWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* sq
// End a write transaction. The commit has already been done. This
// routine merely releases the lock.
-func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:63700:20: */
+func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64281:20: */
if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 {
walUnlockExclusive(tls, pWal, WAL_WRITE_LOCK, 1)
(*Wal)(unsafe.Pointer(pWal)).FwriteLock = U8(0)
@@ -40883,7 +41183,7 @@ func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* sqli
//
// 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 { /* sqlite3.c:63722:20: */
+func Xsqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64303:20: */
var rc int32 = SQLITE_OK
if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 {
var iMax Pgno = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame
@@ -40920,7 +41220,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) { /* sqlite3.c:63762:21: */
+func Xsqlite3WalSavepoint(tls *libc.TLS, pWal uintptr, aWalData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64343:21: */
*(*U32)(unsafe.Pointer(aWalData)) = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame
*(*U32)(unsafe.Pointer(aWalData + 1*4)) = *(*U32)(unsafe.Pointer(pWal + 72 + 24))
@@ -40932,7 +41232,7 @@ func Xsqlite3WalSavepoint(tls *libc.TLS, pWal uintptr, aWalData uintptr) { /* sq
// 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 { /* sqlite3.c:63776:20: */
+func Xsqlite3WalSavepointUndo(tls *libc.TLS, pWal uintptr, aWalData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64357:20: */
var rc int32 = SQLITE_OK
if *(*U32)(unsafe.Pointer(aWalData + 3*4)) != (*Wal)(unsafe.Pointer(pWal)).FnCkpt {
@@ -40963,7 +41263,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 { /* sqlite3.c:63813:12: */
+func walRestartLog(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64394:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -40997,7 +41297,7 @@ func walRestartLog(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:63813:12: *
walUnlockShared(tls, pWal, 3+0)
(*Wal)(unsafe.Pointer(pWal)).FreadLock = int16(-1)
cnt = 0
- for ok := true; ok; ok = rc == -1 {
+ for __ccgo := true; __ccgo; __ccgo = rc == -1 {
// var notUsed int32 at bp+4, 4
rc = walTryBeginRead(tls, pWal, bp+4, 1, libc.PreIncInt32(&cnt, 1))
@@ -41017,12 +41317,12 @@ type WalWriter1 = struct {
FiSyncPoint Sqlite3_int64
FsyncFlags int32
FszPage int32
-} /* sqlite3.c:63860:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64441: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 /* sqlite3.c:63866:3 */
+type WalWriter = WalWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64447:3 */
// Write iAmt bytes of content into the WAL file beginning at iOffset.
// Do a sync when crossing the p->iSyncPoint boundary.
@@ -41030,7 +41330,7 @@ type WalWriter = WalWriter1 /* sqlite3.c:63866:3 */
// 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 { /* sqlite3.c:63876:12: */
+func walWriteToLog(tls *libc.TLS, p uintptr, pContent uintptr, iAmt int32, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64457: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)
@@ -41052,7 +41352,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 { /* sqlite3.c:63901:12: */
+func walWriteOneFrame(tls *libc.TLS, p uintptr, pPage uintptr, nTruncate int32, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64482:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -41077,7 +41377,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 { /* sqlite3.c:63927:12: */
+func walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64508:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -41131,7 +41431,7 @@ func walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast U32) int32 { /* sqli
// 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 { /* sqlite3.c:63976:20: */
+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: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -41364,7 +41664,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 { /* sqlite3.c:64214: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-3380500/sqlite3.c:64795:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -41429,7 +41729,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, 64296)
+ rc = Xsqlite3CorruptError(tls, 64877)
} else {
rc = walCheckpoint(tls, pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf)
}
@@ -41473,7 +41773,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 { /* sqlite3.c:64339:20: */
+func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64920:20: */
var ret U32 = U32(0)
if pWal != 0 {
ret = (*Wal)(unsafe.Pointer(pWal)).FiCallback
@@ -41504,7 +41804,7 @@ func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64339
// 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 { /* sqlite3.c:64372:20: */
+func Xsqlite3WalExclusiveMode(tls *libc.TLS, pWal uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64953:20: */
var rc int32
// pWal->readLock is usually set, but might be -1 if there was a
@@ -41538,14 +41838,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 { /* sqlite3.c:64414:20: */
+func Xsqlite3WalHeapMemory(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64995: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 { /* sqlite3.c:64423:20: */
+func Xsqlite3WalSnapshotGet(tls *libc.TLS, pWal uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65004:20: */
var rc int32 = SQLITE_OK
var pRet uintptr
@@ -41564,16 +41864,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)} /* sqlite3.c:64426:20 */
+var aZero = [4]U32{U32(0), U32(0), U32(0), U32(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65007:20 */
// Try to open on pSnapshot when the next read-transaction starts
-func Xsqlite3WalSnapshotOpen(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) { /* sqlite3.c:64447:21: */
+func Xsqlite3WalSnapshotOpen(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65028: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 { /* sqlite3.c:64458:16: */
+func Xsqlite3_snapshot_cmp(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65039:16: */
var pHdr1 uintptr = p1
var pHdr2 uintptr = p2
@@ -41603,7 +41903,7 @@ func Xsqlite3_snapshot_cmp(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* sql
// 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 { /* sqlite3.c:64482:20: */
+func Xsqlite3WalSnapshotCheck(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65063:20: */
var rc int32
rc = walLockShared(tls, pWal, WAL_CKPT_LOCK)
if rc == SQLITE_OK {
@@ -41619,13 +41919,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) { /* sqlite3.c:64501:21: */
+func Xsqlite3WalSnapshotUnlock(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65082:21: */
walUnlockShared(tls, pWal, WAL_CKPT_LOCK)
}
// Return the sqlite3_file object for the WAL file
-func Xsqlite3WalFile(tls *libc.TLS, pWal uintptr) uintptr { /* sqlite3.c:64523:29: */
+func Xsqlite3WalFile(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65104:29: */
return (*Wal)(unsafe.Pointer(pWal)).FpWalFd
}
@@ -41901,7 +42201,7 @@ type MemPage1 = struct {
FpDbPage uintptr
FxCellSize uintptr
FxParseCell uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
//************* End of wal.c ************************************************
//************* Begin file btmutex.c ****************************************
@@ -42146,25 +42446,25 @@ type MemPage1 = struct {
// small cells will be rare, but they are possible.
// Forward declarations
-type MemPage = MemPage1 /* sqlite3.c:64781:24 */
+type MemPage = MemPage1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65362:24 */
type BtLock1 = struct {
FpBtree uintptr
FiTable Pgno
FeLock U8
F__ccgo_pad1 [3]byte
FpNext uintptr
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type BtLock = BtLock1 /* sqlite3.c:64782:23 */
+type BtLock = BtLock1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65363:23 */
type CellInfo1 = struct {
FnKey I64
FpPayload uintptr
FnPayload U32
FnLocal U16
FnSize U16
-} /* sqlite3.c:578:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */
-type CellInfo = CellInfo1 /* sqlite3.c:64783:25 */
+type CellInfo = CellInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65364:25 */
// Legal values for BtCursor.curFlags
@@ -42274,7 +42574,7 @@ type IntegrityCk1 = struct {
FerrMsg StrAccum
Fheap uintptr
Fdb uintptr
-} /* sqlite3.c:65240:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65823:9 */
// Legal values for BtCursor.curFlags
@@ -42370,7 +42670,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 /* sqlite3.c:65240:28 */
+type IntegrityCk = IntegrityCk1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65823:28 */
// Routines to read or write a two- and four-byte big-endian integer values.
@@ -42384,7 +42684,7 @@ type IntegrityCk = IntegrityCk1 /* sqlite3.c:65240:28 */
// 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) { /* sqlite3.c:65290:13: */
+func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65873: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
@@ -42393,7 +42693,7 @@ func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65290:13: */
// Release the BtShared mutex associated with B-Tree handle p and
// clear the p->locked boolean.
-func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65304:29: */
+func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65887:29: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3_mutex_leave(tls, (*BtShared)(unsafe.Pointer(pBt)).Fmutex)
@@ -42414,7 +42714,7 @@ func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65304:29: */
// 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) { /* sqlite3.c:65334:21: */
+func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65917: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
@@ -42442,7 +42742,7 @@ func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:65334:21: */
// 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) { /* sqlite3.c:65368:29: */
+func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65951:29: */
var pLater uintptr
// In most cases, we should be able to acquire the lock we
@@ -42473,7 +42773,7 @@ func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* sqlite3.c:65368:29: */
}
// Exit the recursive mutex on a Btree.
-func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:65406:21: */
+func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65989:21: */
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
@@ -42496,7 +42796,7 @@ func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:65406:21: */
// 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) { /* sqlite3.c:65449:29: */
+func btreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66032:29: */
var i int32
var skipOk int32 = 1
var p uintptr
@@ -42511,13 +42811,13 @@ func btreeEnterAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:65449:29: */
(*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache = U8(skipOk)
}
-func Xsqlite3BtreeEnterAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:65463:21: */
+func Xsqlite3BtreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66046:21: */
if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 {
btreeEnterAll(tls, db)
}
}
-func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:65466:29: */
+func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66049:29: */
var i int32
var p uintptr
@@ -42529,7 +42829,7 @@ func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:65466:29: */
}
}
-func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:65475:21: */
+func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66058:21: */
if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 {
btreeLeaveAll(tls, db)
}
@@ -42540,11 +42840,11 @@ func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:65475:21: *
// 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) { /* sqlite3.c:65561:21: */
+func Xsqlite3BtreeEnterCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66144:21: */
Xsqlite3BtreeEnter(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
}
-func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:65565:21: */
+func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66148:21: */
Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
}
@@ -42567,7 +42867,7 @@ func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:65565:
// The header string that appears at the beginning of every
// SQLite database.
-var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 3956)) /* sqlite3.c:65596:19 */
+var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 3965)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66179:19 */
// Set this global variable to 1 to enable tracing using the TRACE
// macro.
@@ -42593,14 +42893,14 @@ var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 3956)) /* sqlite3.c:65596:19
// test builds.
//
// Access to this variable is protected by SQLITE_MUTEX_STATIC_MAIN.
-var sqlite3SharedCacheList uintptr = uintptr(0) /* sqlite3.c:65651:17 */
+var sqlite3SharedCacheList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66234: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 { /* sqlite3.c:65663:16: */
+func Xsqlite3_enable_shared_cache(tls *libc.TLS, enable int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66246:16: */
Xsqlite3Config.FsharedCacheEnabled = enable
return SQLITE_OK
}
@@ -42617,7 +42917,7 @@ func Xsqlite3_enable_shared_cache(tls *libc.TLS, enable int32) int32 { /* sqlite
// (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 { /* sqlite3.c:65862:12: */
+func querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab Pgno, eLock U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66445:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pIter uintptr
@@ -42674,7 +42974,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 { /* sqlite3.c:65934:12: */
+func setSharedCacheTableLock(tls *libc.TLS, p uintptr, iTable Pgno, eLock U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66517:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pLock uintptr = uintptr(0)
var pIter uintptr
@@ -42725,7 +43025,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) { /* sqlite3.c:65998:13: */
+func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66581:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var ppIter uintptr = pBt + 120
@@ -42760,7 +43060,7 @@ func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:6599
}
// This function changes all write-locks held by Btree p into read-locks.
-func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:66042:13: */
+func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66625:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
if (*BtShared)(unsafe.Pointer(pBt)).FpWriter == p {
var pLock uintptr
@@ -42784,7 +43084,7 @@ func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:
// Invalidate the overflow page-list cache for all cursors opened
// on the shared btree structure pBt.
-func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:66095:13: */
+func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66678:13: */
var p uintptr
for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext {
@@ -42803,7 +43103,7 @@ func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:66095
// 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) { /* sqlite3.c:66117:13: */
+func invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot Pgno, iRow I64, isClearTable int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66700:13: */
var p uintptr
(*Btree)(unsafe.Pointer(pBtree)).FhasIncrblobCur = U8(0)
@@ -42850,7 +43150,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 { /* sqlite3.c:66177:12: */
+func btreeSetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66760:12: */
var rc int32 = SQLITE_OK
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpHasContent) != 0) {
@@ -42870,20 +43170,20 @@ func btreeSetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* sqlite
// 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 { /* sqlite3.c:66199:12: */
+func btreeGetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66782: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) { /* sqlite3.c:66208:13: */
+func btreeClearHasContent(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66791: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) { /* sqlite3.c:66216:13: */
+func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66799:13: */
var i int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= 0 {
for i = 0; i < int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage); i++ {
@@ -42905,7 +43205,7 @@ func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:6621
// 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 { /* sqlite3.c:66240:12: */
+func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66823:12: */
var rc int32 = SQLITE_OK
if (*BtCursor)(unsafe.Pointer(pCur)).FcurIntKey != 0 {
@@ -42942,7 +43242,7 @@ func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66240:12: *
//
// 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 { /* sqlite3.c:66282:12: */
+func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66865:12: */
var rc int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_Pinned != 0 {
@@ -42983,7 +43283,7 @@ func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66282:
// 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 { /* sqlite3.c:66332:12: */
+func saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot Pgno, pExcept uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66915:12: */
var p uintptr
for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext {
@@ -43004,8 +43304,8 @@ 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 { /* sqlite3.c:66349:28: */
- for ok := true; ok; ok = p != 0 {
+func saveCursorsOnList(tls *libc.TLS, p uintptr, iRoot Pgno, pExcept uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66932: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 {
var rc int32 = saveCursorPosition(tls, p)
@@ -43023,7 +43323,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) { /* sqlite3.c:66374:21: */
+func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66957:21: */
Xsqlite3_free(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey)
(*BtCursor)(unsafe.Pointer(pCur)).FpKey = uintptr(0)
@@ -43033,7 +43333,7 @@ func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66374:
// 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 { /* sqlite3.c:66386:12: */
+func btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey I64, bias int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66969:12: */
var rc int32 // Status code
var pIdxKey uintptr // Unpacked index key
@@ -43046,7 +43346,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, 66403)
+ rc = Xsqlite3CorruptError(tls, 66986)
} else {
rc = Xsqlite3BtreeIndexMoveto(tls, pCur, pIdxKey, pRes)
}
@@ -43063,7 +43363,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 { /* sqlite3.c:66422:12: */
+func btreeRestoreCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67005:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -43103,7 +43403,7 @@ func btreeRestoreCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.
//
// 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 { /* sqlite3.c:66465:20: */
+func Xsqlite3BtreeCursorHasMoved(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67048:20: */
return libc.Bool32(CURSOR_VALID != int32(*(*U8)(unsafe.Pointer(pCur))))
}
@@ -43111,12 +43411,12 @@ func Xsqlite3BtreeCursorHasMoved(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:66478:25: */
+func Xsqlite3BtreeFakeValidCursor(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67061:25: */
return uintptr(unsafe.Pointer(&fakeCursor))
}
-var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:66479:13 */
+var fakeCursor U8 = U8(CURSOR_VALID) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67062: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
@@ -43129,7 +43429,7 @@ var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:66479:13 */
//
// 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 { /* sqlite3.c:66497:20: */
+func Xsqlite3BtreeCursorRestore(tls *libc.TLS, pCur uintptr, pDifferentRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67080:20: */
var rc int32
rc = func() int32 {
@@ -43151,7 +43451,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) { /* sqlite3.c:66529:21: */
+func Xsqlite3BtreeCursorHintFlags(tls *libc.TLS, pCur uintptr, x uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67112:21: */
(*BtCursor)(unsafe.Pointer(pCur)).Fhints = U8(x)
}
@@ -43163,7 +43463,7 @@ func Xsqlite3BtreeCursorHintFlags(tls *libc.TLS, pCur uintptr, x uint32) { /* sq
// 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 { /* sqlite3.c:66545:13: */
+func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67128:13: */
var nPagesPerMapPage int32
var iPtrMap Pgno
var ret Pgno
@@ -43188,7 +43488,7 @@ func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* sqlite3.c:665
// 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) { /* sqlite3.c:66569:13: */
+func ptrmapPut(tls *libc.TLS, pBt uintptr, key Pgno, eType U8, parent Pgno, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67152:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43211,7 +43511,7 @@ __1:
if !(key == Pgno(0)) {
goto __2
}
- *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 66584)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67167)
return
__2:
;
@@ -43230,7 +43530,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, 66597)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67180)
goto ptrmap_exit
__4:
;
@@ -43238,7 +43538,7 @@ __4:
if !(offset < 0) {
goto __5
}
- *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 66602)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67185)
goto ptrmap_exit
__5:
;
@@ -43269,7 +43569,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 { /* sqlite3.c:66628:12: */
+func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67211:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43290,7 +43590,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, 66647)
+ return Xsqlite3CorruptError(tls, 67230)
}
*(*U8)(unsafe.Pointer(pEType)) = *(*U8)(unsafe.Pointer(pPtrmap + uintptr(offset)))
@@ -43300,7 +43600,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, 66655)
+ return Xsqlite3CorruptError(tls, 67238)
}
return SQLITE_OK
}
@@ -43318,7 +43618,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) { /* sqlite3.c:66687:29: */
+func btreeParseCellAdjustSizeForOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67270: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
@@ -43345,7 +43645,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 { /* sqlite3.c:66722:12: */
+func btreePayloadToLocal(tls *libc.TLS, pPage uintptr, nPayload I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67305:12: */
var maxLocal int32 // Maximum amount of payload held locally
maxLocal = int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)
if nPayload <= I64(maxLocal) {
@@ -43375,7 +43675,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) { /* sqlite3.c:66750:13: */
+func btreeParseCellPtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67333:13: */
_ = pPage
(*CellInfo)(unsafe.Pointer(pInfo)).FnSize = U16(4 + int32(Xsqlite3GetVarint(tls, pCell+4, pInfo)))
@@ -43385,7 +43685,7 @@ func btreeParseCellPtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr, pIn
return
}
-func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* sqlite3.c:66767:13: */
+func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67350:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43405,7 +43705,7 @@ func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt
if nPayload >= U32(0x80) {
var pEnd uintptr = pIter + 8
nPayload = nPayload & U32(0x7f)
- for ok := true; ok; ok = int32(*(*U8)(unsafe.Pointer(pIter))) >= 0x80 && pIter < pEnd {
+ for __ccgo := true; __ccgo; __ccgo = int32(*(*U8)(unsafe.Pointer(pIter))) >= 0x80 && pIter < pEnd {
nPayload = nPayload<<7 | U32(int32(*(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1))))&0x7f)
}
}
@@ -43415,19 +43715,31 @@ func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt
//
// pIter += getVarint(pIter, (u64*)&pInfo->nKey);
//
- // The code is inlined to avoid a function call.
+ // The code is inlined and the loop is unrolled for performance.
+ // This routine is a high-runner.
*(*U64)(unsafe.Pointer(bp /* iKey */)) = U64(*(*U8)(unsafe.Pointer(pIter)))
if *(*U64)(unsafe.Pointer(bp)) >= uint64(0x80) {
- var pEnd uintptr = pIter + 7
- *(*U64)(unsafe.Pointer(bp /* iKey */)) &= uint64(0x7f)
- for 1 != 0 {
- *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(*(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1))))&0x7f)
- if int32(*(*U8)(unsafe.Pointer(pIter))) < 0x80 {
- break
- }
- if pIter >= pEnd {
- *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<8 | U64(*(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1))))
- break
+ var x U8
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))&uint64(0x7f)<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<7 | U64(int32(libc.AssignUint8(&x, *(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1)))))&0x7f)
+ if int32(x) >= 0x80 {
+ *(*U64)(unsafe.Pointer(bp /* iKey */)) = *(*U64)(unsafe.Pointer(bp))<<8 | U64(*(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1))))
+ }
+ }
+ }
+ }
+ }
}
}
}
@@ -43450,7 +43762,7 @@ func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt
}
}
-func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* sqlite3.c:66835:13: */
+func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67432:13: */
var pIter uintptr // For scanning through pCell
var nPayload U32 // Number of bytes of cell payload
@@ -43459,7 +43771,7 @@ func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo u
if nPayload >= U32(0x80) {
var pEnd uintptr = pIter + 8
nPayload = nPayload & U32(0x7f)
- for ok := true; ok; ok = int32(*(*U8)(unsafe.Pointer(pIter))) >= 0x80 && pIter < pEnd {
+ for __ccgo := true; __ccgo; __ccgo = int32(*(*U8)(unsafe.Pointer(pIter))) >= 0x80 && pIter < pEnd {
nPayload = nPayload<<7 | U32(int32(*(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1))))&0x7f)
}
}
@@ -43481,7 +43793,7 @@ func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo u
}
}
-func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) { /* sqlite3.c:66872:13: */
+func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67469:13: */
(*struct {
f func(*libc.TLS, uintptr, uintptr, uintptr)
})(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCell)))))), pInfo)
@@ -43497,7 +43809,7 @@ func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) {
//
// cellSizePtrNoPayload() => table internal nodes
// cellSizePtr() => all index nodes & table leaf nodes
-func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* sqlite3.c:66892:12: */
+func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67489: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
@@ -43506,7 +43818,7 @@ func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* sqlite3.c
if nSize >= U32(0x80) {
pEnd = pIter + 8
nSize = nSize & U32(0x7f)
- for ok := true; ok; ok = int32(*(*U8)(unsafe.Pointer(pIter))) >= 0x80 && pIter < pEnd {
+ 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)
}
}
@@ -43538,7 +43850,7 @@ func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* sqlite3.c
return U16(nSize)
}
-func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* sqlite3.c:66940:12: */
+func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67537:12: */
var pIter uintptr = pCell + uintptr(4) // For looping over bytes of pCell
var pEnd uintptr // End mark for a varint
@@ -43555,7 +43867,7 @@ func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /*
// of pPage. (pSrc and pPager 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) { /* sqlite3.c:66978:13: */
+func ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67575:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -43572,7 +43884,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, 66987)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67584)
return
}
ovfl = Xsqlite3Get4byte(tls, pCell+uintptr(int32((*CellInfo)(unsafe.Pointer(bp)).FnSize)-4))
@@ -43590,7 +43902,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 { /* sqlite3.c:67009:12: */
+func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67606:12: */
var i int32 // Loop counter
var pc int32 // Address of the i-th cell
var hdr int32 // Offset to the page header
@@ -43635,7 +43947,7 @@ func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* sql
if !(iFree > usableSize-4) {
goto __2
}
- return Xsqlite3CorruptError(tls, 67046)
+ return Xsqlite3CorruptError(tls, 67643)
__2:
;
if !(iFree != 0) {
@@ -43645,7 +43957,7 @@ __2:
if !(iFree2 > usableSize-4) {
goto __4
}
- return Xsqlite3CorruptError(tls, 67049)
+ return Xsqlite3CorruptError(tls, 67646)
__4:
;
if !(0 == iFree2 || int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2)))) == 0 && int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+1)))) == 0) {
@@ -43658,7 +43970,7 @@ __4:
if !(top >= iFree) {
goto __6
}
- return Xsqlite3CorruptError(tls, 67057)
+ return Xsqlite3CorruptError(tls, 67654)
__6:
;
if !(iFree2 != 0) {
@@ -43667,14 +43979,14 @@ __6:
if !(iFree+sz > iFree2) {
goto __9
}
- return Xsqlite3CorruptError(tls, 67060)
+ return Xsqlite3CorruptError(tls, 67657)
__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, 67062)
+ return Xsqlite3CorruptError(tls, 67659)
__10:
;
libc.Xmemmove(tls, data+uintptr(iFree+sz+sz2), data+uintptr(iFree+sz), uint64(iFree2-(iFree+sz)))
@@ -43684,7 +43996,7 @@ __7:
if !(iFree+sz > usableSize) {
goto __11
}
- return Xsqlite3CorruptError(tls, 67066)
+ return Xsqlite3CorruptError(tls, 67663)
__11:
;
__8:
@@ -43746,7 +44058,7 @@ __18:
if !(pc < iCellStart || pc > iCellLast) {
goto __21
}
- return Xsqlite3CorruptError(tls, 67095)
+ return Xsqlite3CorruptError(tls, 67692)
__21:
;
@@ -43757,7 +44069,7 @@ __21:
if !(cbrk < iCellStart || pc+size > usableSize) {
goto __22
}
- return Xsqlite3CorruptError(tls, 67101)
+ return Xsqlite3CorruptError(tls, 67698)
__22:
;
@@ -43792,7 +44104,7 @@ defragment_out:
if !(int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+7))))+cbrk-iCellFirst != (*MemPage)(unsafe.Pointer(pPage)).FnFree) {
goto __25
}
- return Xsqlite3CorruptError(tls, 67120)
+ return Xsqlite3CorruptError(tls, 67717)
__25:
;
@@ -43817,7 +44129,7 @@ __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 { /* sqlite3.c:67145:11: */
+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
@@ -43844,9 +44156,11 @@ func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr
// fragmented bytes within the page.
libc.Xmemcpy(tls, aData+uintptr(iAddr), aData+uintptr(pc), uint64(2))
*(*U8)(unsafe.Pointer(aData + uintptr(hdr+7))) += U8(int32(U8(x)))
+
+ 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, 67174)
+ *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67773)
return uintptr(0)
} else {
// The slot remains on the free-list. Reduce its size to account
@@ -43861,14 +44175,14 @@ func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr
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, 67188)
+ *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67787)
}
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, 67195)
+ *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67794)
}
return uintptr(0)
}
@@ -43884,7 +44198,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 { /* sqlite3.c:67213:12: */
+func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67812:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -43909,7 +44223,7 @@ func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int3
if top == 0 && (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize == U32(65536) {
top = 65536
} else {
- return Xsqlite3CorruptError(tls, 67242)
+ return Xsqlite3CorruptError(tls, 67841)
}
}
@@ -43924,7 +44238,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, 67260)
+ return Xsqlite3CorruptError(tls, 67859)
} else {
return SQLITE_OK
}
@@ -43975,7 +44289,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 { /* sqlite3.c:67309:12: */
+func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67908: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
@@ -43999,12 +44313,12 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* s
if int32(iFreeBlk) == 0 {
break
} // TH3: corrupt082.100
- return Xsqlite3CorruptError(tls, 67338)
+ return Xsqlite3CorruptError(tls, 67937)
}
iPtr = iFreeBlk
}
if U32(iFreeBlk) > (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize-U32(4) { // TH3: corrupt081.100
- return Xsqlite3CorruptError(tls, 67343)
+ return Xsqlite3CorruptError(tls, 67942)
}
// At this point:
@@ -44015,11 +44329,11 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* s
if iFreeBlk != 0 && iEnd+U32(3) >= U32(iFreeBlk) {
nFrag = U8(U32(iFreeBlk) - iEnd)
if iEnd > U32(iFreeBlk) {
- return Xsqlite3CorruptError(tls, 67355)
+ return Xsqlite3CorruptError(tls, 67954)
}
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, 67358)
+ return Xsqlite3CorruptError(tls, 67957)
}
iSize = U16(iEnd - U32(iStart))
iFreeBlk = U16(int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk) + 1))))
@@ -44032,7 +44346,7 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* s
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, 67371)
+ return Xsqlite3CorruptError(tls, 67970)
}
nFrag = U8(int32(nFrag) + (int32(iStart) - iPtrEnd))
iSize = U16(iEnd - U32(iPtr))
@@ -44040,7 +44354,7 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* s
}
}
if int32(nFrag) > int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+7)))) {
- return Xsqlite3CorruptError(tls, 67377)
+ return Xsqlite3CorruptError(tls, 67976)
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+7))) -= uint8(int32(nFrag))
}
@@ -44050,10 +44364,10 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* s
// so just extend the cell content area rather than create another
// freelist entry
if int32(iStart) < int32(x) {
- return Xsqlite3CorruptError(tls, 67385)
+ return Xsqlite3CorruptError(tls, 67984)
}
if int32(iPtr) != int32(hdr)+1 {
- return Xsqlite3CorruptError(tls, 67386)
+ return Xsqlite3CorruptError(tls, 67985)
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1))) = U8(int32(iFreeBlk) >> 8)
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1) + 1)) = U8(iFreeBlk)
@@ -44087,7 +44401,7 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* s
// PTF_ZERODATA | PTF_LEAF
// PTF_LEAFDATA | PTF_INTKEY
// PTF_LEAFDATA | PTF_INTKEY | PTF_LEAF
-func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* sqlite3.c:67416:12: */
+func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68015:12: */
var pBt uintptr // A copy of pPage->pBt
(*MemPage)(unsafe.Pointer(pPage)).Fleaf = U8(flagByte >> 3)
@@ -44138,7 +44452,7 @@ func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* sqlite
} else {
// EVIDENCE-OF: R-47608-56469 Any other value for the b-tree page type is
// an error.
- return Xsqlite3CorruptError(tls, 67459)
+ return Xsqlite3CorruptError(tls, 68058)
}
(*MemPage)(unsafe.Pointer(pPage)).Fmax1bytePayload = (*BtShared)(unsafe.Pointer(pBt)).Fmax1bytePayload
return SQLITE_OK
@@ -44146,7 +44460,7 @@ func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* sqlite
// 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 { /* sqlite3.c:67469:12: */
+func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68068: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
@@ -44178,12 +44492,12 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67
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, 67510)
+ return Xsqlite3CorruptError(tls, 68109)
}
for 1 != 0 {
if pc > iCellLast {
// Freeblock off the end of the page
- return Xsqlite3CorruptError(tls, 67515)
+ return Xsqlite3CorruptError(tls, 68114)
}
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))))
@@ -44195,11 +44509,11 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67
}
if next > U32(0) {
// Freeblock not in ascending order
- return Xsqlite3CorruptError(tls, 67525)
+ return Xsqlite3CorruptError(tls, 68124)
}
if U32(pc)+size > uint32(usableSize) {
// Last freeblock extends past page end
- return Xsqlite3CorruptError(tls, 67529)
+ return Xsqlite3CorruptError(tls, 68128)
}
}
@@ -44210,7 +44524,7 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67
// 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, 67541)
+ return Xsqlite3CorruptError(tls, 68140)
}
(*MemPage)(unsafe.Pointer(pPage)).FnFree = int32(U16(nFree - iCellFirst))
return SQLITE_OK
@@ -44218,7 +44532,7 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67
// Do additional sanity check after btreeInitPage() if
// PRAGMA cell_size_check=ON
-func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67551:28: */
+func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68150: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
@@ -44240,14 +44554,14 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67551
pc = int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer(data + uintptr(cellOffset+i*2)))))
if pc < iCellFirst || pc > iCellLast {
- return Xsqlite3CorruptError(tls, 67572)
+ return Xsqlite3CorruptError(tls, 68171)
}
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, 67577)
+ return Xsqlite3CorruptError(tls, 68176)
}
}
return SQLITE_OK
@@ -44260,7 +44574,7 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67551
// 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 { /* sqlite3.c:67592:12: */
+func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68191:12: */
var data uintptr // Equal to pPage->aData
var pBt uintptr // The main btree structure
@@ -44269,21 +44583,21 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67592:12:
// 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, 67609)
+ return Xsqlite3CorruptError(tls, 68208)
}
(*MemPage)(unsafe.Pointer(pPage)).FmaskPage = U16((*BtShared)(unsafe.Pointer(pBt)).FpageSize - U32(1))
(*MemPage)(unsafe.Pointer(pPage)).FnOverflow = U8(0)
(*MemPage)(unsafe.Pointer(pPage)).FcellOffset = U16(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset) + 8 + int32((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize))
(*MemPage)(unsafe.Pointer(pPage)).FaCellIdx = data + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize) + uintptr(8)
- (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr((*BtShared)(unsafe.Pointer(pBt)).FusableSize)
+ (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr((*BtShared)(unsafe.Pointer(pBt)).FpageSize)
(*MemPage)(unsafe.Pointer(pPage)).FaDataOfst = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize)
// EVIDENCE-OF: R-37002-32774 The two-byte integer at offset 3 gives the
// number of cells on the page.
(*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, 67623)
+ return Xsqlite3CorruptError(tls, 68222)
}
// EVIDENCE-OF: R-24089-57979 If a page contains no cells (which is only
@@ -44301,7 +44615,7 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67592:12:
// 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) { /* sqlite3.c:67645:13: */
+func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68244: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
@@ -44324,7 +44638,7 @@ func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* sqlite3.c:67645:13
(*MemPage)(unsafe.Pointer(pPage)).FnFree = int32(U16((*BtShared)(unsafe.Pointer(pBt)).FusableSize - U32(first)))
decodeFlags(tls, pPage, flags)
(*MemPage)(unsafe.Pointer(pPage)).FcellOffset = first
- (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = data + uintptr((*BtShared)(unsafe.Pointer(pBt)).FusableSize)
+ (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = data + uintptr((*BtShared)(unsafe.Pointer(pBt)).FpageSize)
(*MemPage)(unsafe.Pointer(pPage)).FaCellIdx = data + uintptr(first)
(*MemPage)(unsafe.Pointer(pPage)).FaDataOfst = data + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize)
(*MemPage)(unsafe.Pointer(pPage)).FnOverflow = U8(0)
@@ -44336,7 +44650,7 @@ func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* sqlite3.c:67645:13
// 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 { /* sqlite3.c:67682:16: */
+func btreePageFromDbPage(tls *libc.TLS, pDbPage uintptr, pgno Pgno, pBt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68281:16: */
var pPage uintptr = Xsqlite3PagerGetExtra(tls, pDbPage)
if pgno != (*MemPage)(unsafe.Pointer(pPage)).Fpgno {
(*MemPage)(unsafe.Pointer(pPage)).FaData = Xsqlite3PagerGetData(tls, pDbPage)
@@ -44363,7 +44677,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 { /* sqlite3.c:67706:12: */
+func btreeGetPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68305:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44381,7 +44695,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 { /* sqlite3.c:67728:16: */
+func btreePageLookup(tls *libc.TLS, pBt uintptr, pgno Pgno) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68327:16: */
var pDbPage uintptr
pDbPage = Xsqlite3PagerLookup(tls, (*BtShared)(unsafe.Pointer(pBt)).FpPager, pgno)
@@ -44393,11 +44707,11 @@ func btreePageLookup(tls *libc.TLS, pBt uintptr, pgno Pgno) uintptr { /* sqlite3
// 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 { /* sqlite3.c:67742:13: */
+func btreePagecount(tls *libc.TLS, pBt uintptr) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68341:13: */
return (*BtShared)(unsafe.Pointer(pBt)).FnPage
}
-func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* sqlite3.c:67745:21: */
+func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68344:21: */
return btreePagecount(tls, (*Btree)(unsafe.Pointer(p)).FpBt)
}
@@ -44413,7 +44727,7 @@ func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* sqlite3.c:67745:2
//
// 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 { /* sqlite3.c:67763:12: */
+func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur uintptr, bReadOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68362:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44423,7 +44737,7 @@ func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur
if !(pgno > btreePagecount(tls, pBt)) {
goto __1
}
- rc = Xsqlite3CorruptError(tls, 67778)
+ rc = Xsqlite3CorruptError(tls, 68377)
goto getAndInitPage_error1
__1:
;
@@ -44454,7 +44768,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, 67799)
+ rc = Xsqlite3CorruptError(tls, 68398)
goto getAndInitPage_error2
__5:
;
@@ -44478,18 +44792,18 @@ __6:
// call to btreeGetPage.
//
// Page1 is a special case and must be released using releasePageOne().
-func releasePageNotNull(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:67822:13: */
+func releasePageNotNull(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68421:13: */
Xsqlite3PagerUnrefNotNull(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
}
-func releasePage(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:67831:13: */
+func releasePage(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68430:13: */
if pPage != 0 {
releasePageNotNull(tls, pPage)
}
}
-func releasePageOne(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:67834:13: */
+func releasePageOne(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68433:13: */
Xsqlite3PagerUnrefPageOne(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
}
@@ -44501,13 +44815,13 @@ func releasePageOne(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:67834:13: */
// * 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 { /* sqlite3.c:67854:12: */
+func btreeGetUnusedPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68453: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, 67865)
+ return Xsqlite3CorruptError(tls, 68464)
}
(*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FisInit = U8(0)
} else {
@@ -44522,7 +44836,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) { /* sqlite3.c:67883:13: */
+func pageReinit(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68482:13: */
var pPage uintptr
pPage = Xsqlite3PagerGetExtra(tls, pData)
@@ -44542,7 +44856,7 @@ func pageReinit(tls *libc.TLS, pData uintptr) { /* sqlite3.c:67883:13: */
}
// Invoke the busy handler for a btree.
-func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* sqlite3.c:67905:12: */
+func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68504:12: */
var pBt uintptr = pArg
return Xsqlite3InvokeBusyHandler(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb+664)
@@ -44567,7 +44881,7 @@ func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* sqlite3.c:67
// 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 { /* sqlite3.c:67933:20: */
+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: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -44599,7 +44913,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+3972) == 0 ||
+ isMemdb = libc.Bool32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, ts+3981) == 0 ||
isTempDb != 0 && Xsqlite3TempInMemory(tls, db) != 0 ||
vfsFlags&SQLITE_OPEN_MEMORY != 0)
@@ -44988,7 +45302,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 { /* sqlite3.c:68231:12: */
+func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68830:12: */
var pMainMtx uintptr
var pList uintptr
var removed int32 = 0
@@ -45020,33 +45334,40 @@ func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:6823
// 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) { /* sqlite3.c:68270:13: */
- if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace) != 0) {
- (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace = Xsqlite3PageMalloc(tls, int32((*BtShared)(unsafe.Pointer(pBt)).FpageSize))
-
- // One of the uses of pBt->pTmpSpace is to format cells before
- // inserting them into a leaf page (function fillInCell()). If
- // a cell is less than 4 bytes in size, it is rounded up to 4 bytes
- // by the various routines that manipulate binary cells. Which
- // can mean that fillInCell() only initializes the first 2 or 3
- // bytes of pTmpSpace, but that the first 4 bytes are copied from
- // it into a database page. This is not actually a problem, but it
- // does cause a valgrind error when the 1 or 2 bytes of unitialized
- // data is passed to system call write(). So to avoid this error,
- // zero the first 4 bytes of temp space here.
- //
- // Also: Provide four bytes of initialized space before the
- // beginning of pTmpSpace as an area available to prepend the
- // left-child pointer to the beginning of a cell.
- if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace != 0 {
- libc.Xmemset(tls, (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace, 0, uint64(8))
- *(*uintptr)(unsafe.Pointer(pBt + 136)) += uintptr(4)
- }
+func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68869:28: */
+
+ // This routine is called only by btreeCursor() when allocating the
+ // first write cursor for the BtShared object
+
+ (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace = Xsqlite3PageMalloc(tls, int32((*BtShared)(unsafe.Pointer(pBt)).FpageSize))
+ if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace == uintptr(0) {
+ var pCur uintptr = (*BtShared)(unsafe.Pointer(pBt)).FpCursor
+ (*BtShared)(unsafe.Pointer(pBt)).FpCursor = (*BtCursor)(unsafe.Pointer(pCur)).FpNext // Unlink the cursor
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(BtCursor{})))
+ return SQLITE_NOMEM
}
+
+ // One of the uses of pBt->pTmpSpace is to format cells before
+ // inserting them into a leaf page (function fillInCell()). If
+ // a cell is less than 4 bytes in size, it is rounded up to 4 bytes
+ // by the various routines that manipulate binary cells. Which
+ // can mean that fillInCell() only initializes the first 2 or 3
+ // bytes of pTmpSpace, but that the first 4 bytes are copied from
+ // it into a database page. This is not actually a problem, but it
+ // does cause a valgrind error when the 1 or 2 bytes of unitialized
+ // data is passed to system call write(). So to avoid this error,
+ // zero the first 4 bytes of temp space here.
+ //
+ // Also: Provide four bytes of initialized space before the
+ // beginning of pTmpSpace as an area available to prepend the
+ // left-child pointer to the beginning of a cell.
+ libc.Xmemset(tls, (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace, 0, uint64(8))
+ *(*uintptr)(unsafe.Pointer(pBt + 136)) += uintptr(4)
+ return SQLITE_OK
}
// Free the pBt->pTmpSpace allocation
-func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:68299:13: */
+func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68906:13: */
if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace != 0 {
*(*uintptr)(unsafe.Pointer(pBt + 136)) -= uintptr(4)
Xsqlite3PageFree(tls, (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace)
@@ -45055,7 +45376,7 @@ func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:68299:13: */
}
// Close an open database and invalidate all cursors.
-func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:68310:20: */
+func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68917:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
// Close all cursors opened via this handle.
@@ -45105,7 +45426,7 @@ func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:68310:20:
// 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 { /* sqlite3.c:68376:20: */
+func Xsqlite3BtreeSetCacheSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68983:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -45122,7 +45443,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 { /* sqlite3.c:68395:20: */
+func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69002:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var res int32
@@ -45138,7 +45459,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 { /* sqlite3.c:68429:20: */
+func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69036:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -45165,7 +45486,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 { /* sqlite3.c:68462:20: */
+func Xsqlite3BtreeSetPageSize(tls *libc.TLS, p uintptr, pageSize int32, nReserve int32, iFix int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69069:20: */
var rc int32 = SQLITE_OK
var x int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -45199,7 +45520,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 { /* sqlite3.c:68494:20: */
+func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69101:20: */
return int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize)
}
@@ -45212,7 +45533,7 @@ func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:684
// 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 { /* sqlite3.c:68509:20: */
+func Xsqlite3BtreeGetReserveNoMutex(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69116:20: */
var n int32
n = int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize - (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FusableSize)
@@ -45226,7 +45547,7 @@ func Xsqlite3BtreeGetReserveNoMutex(tls *libc.TLS, p uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:68525:20: */
+func Xsqlite3BtreeGetRequestedReserve(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69132:20: */
var n1 int32
var n2 int32
Xsqlite3BtreeEnter(tls, p)
@@ -45242,7 +45563,7 @@ func Xsqlite3BtreeGetRequestedReserve(tls *libc.TLS, p uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:68540:21: */
+func Xsqlite3BtreeMaxPageCount(tls *libc.TLS, p uintptr, mxPage Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69147:21: */
var n Pgno
Xsqlite3BtreeEnter(tls, p)
n = Xsqlite3PagerMaxPageCount(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, mxPage)
@@ -45266,7 +45587,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 { /* sqlite3.c:68566:20: */
+func Xsqlite3BtreeSecureDelete(tls *libc.TLS, p uintptr, newFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69173:20: */
var b int32
if p == uintptr(0) {
return 0
@@ -45286,7 +45607,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 { /* sqlite3.c:68587:20: */
+func Xsqlite3BtreeSetAutoVacuum(tls *libc.TLS, p uintptr, autoVacuum int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69194:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var rc int32 = SQLITE_OK
var av U8 = U8(autoVacuum)
@@ -45319,7 +45640,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 { /* sqlite3.c:68611:20: */
+func Xsqlite3BtreeGetAutoVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69218:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = func() int32 {
@@ -45344,7 +45665,7 @@ func Xsqlite3BtreeGetAutoVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:6
// 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 { /* sqlite3.c:68667:12: */
+func lockBtree(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69274:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -45460,7 +45781,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+3981, uint64(3)) != 0) {
+ if !(libc.Xmemcmp(tls, page1+21, ts+3990, uint64(3)) != 0) {
goto __14
}
goto page1_init_failed
@@ -45507,21 +45828,29 @@ __15:
return rc
__16:
;
- if !(Xsqlite3WritableSchema(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb) == 0 && nPage > *(*U32)(unsafe.Pointer(bp + 8))) {
+ if !(nPage > *(*U32)(unsafe.Pointer(bp + 8))) {
goto __17
}
- rc = Xsqlite3CorruptError(tls, 68791)
+ if !(Xsqlite3WritableSchema(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb) == 0) {
+ goto __18
+ }
+ rc = Xsqlite3CorruptError(tls, 69399)
goto page1_init_failed
+ goto __19
+__18:
+ nPage = *(*U32)(unsafe.Pointer(bp + 8 /* nPageFile */))
+__19:
+ ;
__17:
;
// EVIDENCE-OF: R-28312-64704 However, the usable size is not allowed to
// be less than 480. In other words, if the page size is 512, then the
// reserved space size cannot exceed 32.
if !(usableSize < U32(480)) {
- goto __18
+ goto __20
}
goto page1_init_failed
-__18:
+__20:
;
(*BtShared)(unsafe.Pointer(pBt)).FpageSize = pageSize
(*BtShared)(unsafe.Pointer(pBt)).FusableSize = usableSize
@@ -45557,13 +45886,13 @@ __5:
(*BtShared)(unsafe.Pointer(pBt)).FmaxLeaf = U16((*BtShared)(unsafe.Pointer(pBt)).FusableSize - U32(35))
(*BtShared)(unsafe.Pointer(pBt)).FminLeaf = U16(((*BtShared)(unsafe.Pointer(pBt)).FusableSize-U32(12))*U32(32)/U32(255) - U32(23))
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FmaxLocal) > 127) {
- goto __19
+ goto __21
}
(*BtShared)(unsafe.Pointer(pBt)).Fmax1bytePayload = U8(127)
- goto __20
-__19:
+ goto __22
+__21:
(*BtShared)(unsafe.Pointer(pBt)).Fmax1bytePayload = U8((*BtShared)(unsafe.Pointer(pBt)).FmaxLocal)
-__20:
+__22:
;
(*BtShared)(unsafe.Pointer(pBt)).FpPage1 = *(*uintptr)(unsafe.Pointer(bp /* pPage1 */))
@@ -45582,7 +45911,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) { /* sqlite3.c:68873:13: */
+func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69484: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
@@ -45595,7 +45924,7 @@ func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:68873:13: */
// 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 { /* sqlite3.c:68890:12: */
+func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69501:12: */
var pP1 uintptr
var data uintptr
var rc int32
@@ -45635,7 +45964,7 @@ func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:68890:12: */
// 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 { /* sqlite3.c:68934:20: */
+func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69545:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
(*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnPage = U32(0)
@@ -45677,7 +46006,7 @@ func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:68934:20:
// 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 { /* sqlite3.c:68978:20: */
+func Xsqlite3BtreeBeginTrans(tls *libc.TLS, p uintptr, wrflag int32, pSchemaVersion uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69589:20: */
var pBt uintptr
var pPager uintptr
var rc int32
@@ -45941,7 +46270,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 { /* sqlite3.c:69158:12: */
+func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69769:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -45993,14 +46322,14 @@ func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:69158:12
//
// 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 { /* sqlite3.c:69203:12: */
+func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69814: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, 69209)
+ return Xsqlite3CorruptError(tls, 69820)
}
Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData, iTo)
} else {
@@ -46028,7 +46357,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, 69228)
+ return Xsqlite3CorruptError(tls, 69839)
}
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)
@@ -46045,7 +46374,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, 69246)
+ return Xsqlite3CorruptError(tls, 69857)
}
Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+8), iTo)
}
@@ -46060,7 +46389,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 { /* sqlite3.c:69264:12: */
+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: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -46071,7 +46400,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, 69281)
+ return Xsqlite3CorruptError(tls, 69892)
}
// Move page iDbPage from its current location to page number iFreePage
@@ -46141,7 +46470,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 { /* sqlite3.c:69358:12: */
+func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69969:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -46163,7 +46492,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, 69379)
+ return Xsqlite3CorruptError(tls, 69990)
}
if int32(*(*U8)(unsafe.Pointer(bp))) == PTRMAP_FREEPAGE {
@@ -46206,7 +46535,7 @@ func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit
eMode = U8(BTALLOC_LE)
iNear = nFin
}
- for ok := true; ok; ok = bCommit != 0 && *(*Pgno)(unsafe.Pointer(bp + 40)) > nFin {
+ for __ccgo := true; __ccgo; __ccgo = bCommit != 0 && *(*Pgno)(unsafe.Pointer(bp + 40)) > nFin {
// var pFreePg uintptr at bp+32, 8
rc = allocateBtreePage(tls, pBt, bp+32, bp+40, iNear, eMode)
@@ -46226,7 +46555,7 @@ func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit
}
if bCommit == 0 {
- for ok1 := true; ok1; ok1 = iLastPg == U32(Xsqlite3PendingByte)/(*BtShared)(unsafe.Pointer(pBt)).FpageSize+U32(1) || ptrmapPageno(tls, pBt, iLastPg) == iLastPg {
+ for __ccgo1 := true; __ccgo1; __ccgo1 = iLastPg == U32(Xsqlite3PendingByte)/(*BtShared)(unsafe.Pointer(pBt)).FpageSize+U32(1) || ptrmapPageno(tls, pBt, iLastPg) == iLastPg {
iLastPg--
}
(*BtShared)(unsafe.Pointer(pBt)).FbDoTruncate = U8(1)
@@ -46238,7 +46567,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 { /* sqlite3.c:69454:13: */
+func finalDbSize(tls *libc.TLS, pBt uintptr, nOrig Pgno, nFree Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70065: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
@@ -46262,7 +46591,7 @@ func finalDbSize(tls *libc.TLS, pBt uintptr, nOrig Pgno, nFree Pgno) Pgno { /* s
// 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 { /* sqlite3.c:69480:20: */
+func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70091:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -46276,7 +46605,7 @@ func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:6948
var nFin Pgno = finalDbSize(tls, pBt, nOrig, nFree)
if nOrig < nFin || nFree >= nOrig {
- rc = Xsqlite3CorruptError(tls, 69494)
+ rc = Xsqlite3CorruptError(tls, 70105)
} else if nFree > Pgno(0) {
rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0))
if rc == SQLITE_OK {
@@ -46297,7 +46626,7 @@ func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:6948
// 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 { /* sqlite3.c:69517:12: */
+func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70128:12: */
var rc int32 = SQLITE_OK
var pPager uintptr
var pBt uintptr
@@ -46320,7 +46649,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69517:12: *
// 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, 69545)
+ return Xsqlite3CorruptError(tls, 70156)
}
nFree = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer((*BtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)
@@ -46351,7 +46680,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69517:12: *
}
nFin = finalDbSize(tls, pBt, nOrig, nVac)
if nFin > nOrig {
- return Xsqlite3CorruptError(tls, 69572)
+ return Xsqlite3CorruptError(tls, 70183)
}
if nFin < nOrig {
rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -46401,7 +46730,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69517:12: *
//
// 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 { /* sqlite3.c:69628:20: */
+func Xsqlite3BtreeCommitPhaseOne(tls *libc.TLS, p uintptr, zSuperJrnl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70239:20: */
var rc int32 = SQLITE_OK
if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_WRITE {
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -46424,7 +46753,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) { /* sqlite3.c:69655:13: */
+func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70266:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var db uintptr = (*Btree)(unsafe.Pointer(p)).Fdb
@@ -46480,7 +46809,7 @@ func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* sqlite3.c:69655:13: */
//
// 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 { /* sqlite3.c:69717:20: */
+func Xsqlite3BtreeCommitPhaseTwo(tls *libc.TLS, p uintptr, bCleanup int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70328:20: */
if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_NONE {
return SQLITE_OK
@@ -46509,7 +46838,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 { /* sqlite3.c:69749:20: */
+func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70360:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = Xsqlite3BtreeCommitPhaseOne(tls, p, uintptr(0))
@@ -46544,7 +46873,7 @@ func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69749:20
//
// 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 { /* sqlite3.c:69786:20: */
+func Xsqlite3BtreeTripAllCursors(tls *libc.TLS, pBtree uintptr, errCode int32, writeOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70397:20: */
var p uintptr
var rc int32 = SQLITE_OK
@@ -46573,7 +46902,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) { /* sqlite3.c:69818:13: */
+func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70429:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -46595,7 +46924,7 @@ func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* sqlite3.c:69
//
// 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 { /* sqlite3.c:69837:20: */
+func Xsqlite3BtreeRollback(tls *libc.TLS, p uintptr, tripCode int32, writeOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70448:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -46661,7 +46990,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 { /* sqlite3.c:69902:20: */
+func Xsqlite3BtreeBeginStmt(tls *libc.TLS, p uintptr, iStatement int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70513:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -46685,7 +47014,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 { /* sqlite3.c:69933:20: */
+func Xsqlite3BtreeSavepoint(tls *libc.TLS, p uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70544: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
@@ -46753,7 +47082,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 { /* sqlite3.c:70004:12: */
+func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70615:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt // Shared b-tree handle
var pX uintptr // Looping over other all cursors
@@ -46764,15 +47093,9 @@ func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo u
// Assert that the caller has opened the required transaction.
- if wrFlag != 0 {
- allocateTempSpace(tls, pBt)
- if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace == uintptr(0) {
- return SQLITE_NOMEM
- }
- }
if iTable <= Pgno(1) {
if iTable < Pgno(1) {
- return Xsqlite3CorruptError(tls, 70040)
+ return Xsqlite3CorruptError(tls, 70647)
} else if btreePagecount(tls, pBt) == Pgno(0) {
iTable = Pgno(0)
@@ -46786,33 +47109,31 @@ func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo u
(*BtCursor)(unsafe.Pointer(pCur)).FpKeyInfo = pKeyInfo
(*BtCursor)(unsafe.Pointer(pCur)).FpBtree = p
(*BtCursor)(unsafe.Pointer(pCur)).FpBt = pBt
- (*BtCursor)(unsafe.Pointer(pCur)).FcurFlags = func() uint8 {
- if wrFlag != 0 {
- return uint8(BTCF_WriteFlag)
- }
- return uint8(0)
- }()
- (*BtCursor)(unsafe.Pointer(pCur)).FcurPagerFlags = func() uint8 {
- if wrFlag != 0 {
- return uint8(0)
- }
- return uint8(PAGER_GET_READONLY)
- }()
+ (*BtCursor)(unsafe.Pointer(pCur)).FcurFlags = U8(0)
// If there are two or more cursors on the same btree, then all such
// cursors *must* have the BTCF_Multiple flag set.
for pX = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; pX != 0; pX = (*BtCursor)(unsafe.Pointer(pX)).FpNext {
if (*BtCursor)(unsafe.Pointer(pX)).FpgnoRoot == iTable {
*(*U8)(unsafe.Pointer(pX + 1)) |= U8(BTCF_Multiple)
- *(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Multiple)
+ (*BtCursor)(unsafe.Pointer(pCur)).FcurFlags = U8(BTCF_Multiple)
}
}
+ (*BtCursor)(unsafe.Pointer(pCur)).FeState = U8(CURSOR_INVALID)
(*BtCursor)(unsafe.Pointer(pCur)).FpNext = (*BtShared)(unsafe.Pointer(pBt)).FpCursor
(*BtShared)(unsafe.Pointer(pBt)).FpCursor = pCur
- (*BtCursor)(unsafe.Pointer(pCur)).FeState = U8(CURSOR_INVALID)
+ if wrFlag != 0 {
+ *(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_WriteFlag)
+ (*BtCursor)(unsafe.Pointer(pCur)).FcurPagerFlags = U8(0)
+ if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace == uintptr(0) {
+ return allocateTempSpace(tls, pBt)
+ }
+ } else {
+ (*BtCursor)(unsafe.Pointer(pCur)).FcurPagerFlags = U8(PAGER_GET_READONLY)
+ }
return SQLITE_OK
}
-func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* sqlite3.c:70069:12: */
+func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70682:12: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeCursor(tls, p, iTable, wrFlag, pKeyInfo, pCur)
@@ -46820,7 +47141,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 { /* sqlite3.c:70082:20: */
+func Xsqlite3BtreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70695:20: */
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
return btreeCursorWithLock(tls, p, iTable, wrFlag, pKeyInfo, pCur)
} else {
@@ -46835,7 +47156,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 { /* sqlite3.c:70104:20: */
+func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70717:20: */
return int32((uint64(unsafe.Sizeof(BtCursor{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7)))
}
@@ -46845,13 +47166,13 @@ func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* sqlite3.c:70104:20: */
// 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) { /* sqlite3.c:70116:21: */
+func Xsqlite3BtreeCursorZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70729: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 { /* sqlite3.c:70124:20: */
+func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70737:20: */
var pBtree uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBtree
if pBtree != 0 {
var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt
@@ -46861,7 +47182,7 @@ func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:
(*BtShared)(unsafe.Pointer(pBt)).FpCursor = (*BtCursor)(unsafe.Pointer(pCur)).FpNext
} else {
var pPrev uintptr = (*BtShared)(unsafe.Pointer(pBt)).FpCursor
- for ok := true; ok; ok = pPrev != 0 {
+ for __ccgo := true; __ccgo; __ccgo = pPrev != 0 {
if (*BtCursor)(unsafe.Pointer(pPrev)).FpNext == pCur {
(*BtCursor)(unsafe.Pointer(pPrev)).FpNext = (*BtCursor)(unsafe.Pointer(pCur)).FpNext
break
@@ -46892,7 +47213,7 @@ func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:
//
// 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) { /* sqlite3.c:70185:29: */
+func getCellInfo(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70798: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)
@@ -46901,7 +47222,7 @@ func getCellInfo(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70185:29: */
}
}
-func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:70204:20: */
+func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70817:20: */
return libc.Bool32(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID)
}
@@ -46910,26 +47231,26 @@ func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:70215:20: */
+func Xsqlite3BtreeIntegerKey(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70828:20: */
getCellInfo(tls, pCur)
return (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnKey
}
// Pin or unpin a cursor.
-func Xsqlite3BtreeCursorPin(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70226:21: */
+func Xsqlite3BtreeCursorPin(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70839:21: */
*(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Pinned)
}
-func Xsqlite3BtreeCursorUnpin(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70230:21: */
+func Xsqlite3BtreeCursorUnpin(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70843: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 { /* sqlite3.c:70240:20: */
+func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70853: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)
@@ -46942,7 +47263,7 @@ func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* sqlite3.c:70240:2
// 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 { /* sqlite3.c:70258:20: */
+func Xsqlite3BtreePayloadSize(tls *libc.TLS, pCur uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70871:20: */
getCellInfo(tls, pCur)
return (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnPayload
@@ -46959,7 +47280,7 @@ func Xsqlite3BtreePayloadSize(tls *libc.TLS, pCur uintptr) U32 { /* sqlite3.c:70
//
// The current implementation merely returns the size of the underlying
// database file.
-func Xsqlite3BtreeMaxRecordSize(tls *libc.TLS, pCur uintptr) Sqlite3_int64 { /* sqlite3.c:70278:30: */
+func Xsqlite3BtreeMaxRecordSize(tls *libc.TLS, pCur uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70891:30: */
return Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpageSize) * Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FnPage)
}
@@ -46981,7 +47302,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 { /* sqlite3.c:70303:12: */
+func getOverflowPage(tls *libc.TLS, pBt uintptr, ovfl Pgno, ppPage uintptr, pPgnoNext uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70916:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -47049,7 +47370,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 { /* sqlite3.c:70371:12: */
+func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp int32, pDbPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70984:12: */
if eOp != 0 {
// Copy data from buffer to page (a write operation)
var rc int32 = Xsqlite3PagerWrite(tls, pDbPage)
@@ -47091,7 +47412,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 { /* sqlite3.c:70421:12: */
+func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71034:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -47102,7 +47423,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, 70441)
+ return Xsqlite3CorruptError(tls, 71054)
}
getCellInfo(tls, pCur)
@@ -47113,7 +47434,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, 70456)
+ return Xsqlite3CorruptError(tls, 71069)
}
// Check if data must be read/written to/from the btree page itself.
@@ -47170,7 +47491,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, 70518)
+ return Xsqlite3CorruptError(tls, 71131)
}
*(*Pgno)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FaOverflow + uintptr(iIdx)*4)) = *(*Pgno)(unsafe.Pointer(bp /* nextPage */))
@@ -47230,7 +47551,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, 70603)
+ return Xsqlite3CorruptError(tls, 71216)
}
return rc
}
@@ -47250,7 +47571,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 { /* sqlite3.c:70625:20: */
+func Xsqlite3BtreePayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71238:20: */
return accessPayload(tls, pCur, offset, amt, pBuf, 0)
}
@@ -47258,7 +47579,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 { /* sqlite3.c:70638:28: */
+func accessPayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71251:28: */
var rc int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_INVALID {
return SQLITE_ABORT
@@ -47271,7 +47592,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 { /* sqlite3.c:70652:20: */
+func Xsqlite3BtreePayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71265:20: */
if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID {
return accessPayload(tls, pCur, offset, amt, pBuf, 0)
@@ -47298,7 +47619,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 { /* sqlite3.c:70681:19: */
+func fetchPayload(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71294:19: */
var amt int32
amt = int32((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal)
@@ -47329,7 +47650,7 @@ func fetchPayload(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* sqlite
//
// 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 { /* sqlite3.c:70720:27: */
+func Xsqlite3BtreePayloadFetch(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71333:27: */
return fetchPayload(tls, pCur, pAmt)
}
@@ -47340,11 +47661,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 { /* sqlite3.c:70734:12: */
+func moveToChild(tls *libc.TLS, pCur uintptr, newPgno U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71347:12: */
var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= BTCURSOR_MAX_DEPTH-1 {
- return Xsqlite3CorruptError(tls, 70742)
+ return Xsqlite3CorruptError(tls, 71355)
}
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey | BTCF_ValidOvfl))
@@ -47361,7 +47682,7 @@ func moveToChild(tls *libc.TLS, pCur uintptr, newPgno U32) int32 { /* sqlite3.c:
// 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) { /* sqlite3.c:70783:13: */
+func moveToParent(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71396:13: */
var pLeaf uintptr
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
@@ -47391,7 +47712,7 @@ func moveToParent(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70783:13: */
// 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 { /* sqlite3.c:70824:12: */
+func moveToRoot(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71437:12: */
var pRoot uintptr
var rc int32
var subpage Pgno
@@ -47412,7 +47733,7 @@ __4:
goto __4
__5:
;
- (*BtCursor)(unsafe.Pointer(pCur)).FpPage = *(*uintptr)(unsafe.Pointer(pCur + 144))
+ pRoot = libc.AssignPtrUintptr(pCur+136, *(*uintptr)(unsafe.Pointer(pCur + 144)))
goto skip_init
__3:
;
@@ -47470,7 +47791,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, 70880)
+ return Xsqlite3CorruptError(tls, 71493)
__11:
;
@@ -47479,7 +47800,6 @@ skip_init:
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_AtLast | BTCF_ValidNKey | BTCF_ValidOvfl))
- pRoot = (*BtCursor)(unsafe.Pointer(pCur)).FpPage
if !(int32((*MemPage)(unsafe.Pointer(pRoot)).FnCell) > 0) {
goto __12
}
@@ -47492,7 +47812,7 @@ __12:
if !((*MemPage)(unsafe.Pointer(pRoot)).Fpgno != Pgno(1)) {
goto __16
}
- return Xsqlite3CorruptError(tls, 70893)
+ return Xsqlite3CorruptError(tls, 71505)
__16:
;
subpage = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pRoot)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pRoot)).FhdrOffset)+8))
@@ -47514,7 +47834,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 { /* sqlite3.c:70911:12: */
+func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71523:12: */
var pgno Pgno
var rc int32 = SQLITE_OK
var pPage uintptr
@@ -47535,7 +47855,7 @@ func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:70911:12:
//
// 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 { /* sqlite3.c:70936:12: */
+func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71548:12: */
var pgno Pgno
var rc int32 = SQLITE_OK
var pPage uintptr = uintptr(0)
@@ -47556,7 +47876,7 @@ func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:70936:12:
// 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 { /* sqlite3.c:70959:20: */
+func Xsqlite3BtreeFirst(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71571:20: */
var rc int32
rc = moveToRoot(tls, pCur)
@@ -47575,7 +47895,7 @@ func Xsqlite3BtreeFirst(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* sq
// 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 { /* sqlite3.c:70981:20: */
+func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71593:20: */
var rc int32
// If the cursor already points to the last entry, this is a no-op.
@@ -47624,7 +47944,7 @@ func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* sql
//
// *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 { /* sqlite3.c:71046:20: */
+func Xsqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey I64, biasRight int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71658:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -47727,7 +48047,6 @@ __12:
upr = int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) - 1
idx = upr >> (1 - biasRight) // idx = biasRight ? upr : (lwr+upr)/2;
- (*BtCursor)(unsafe.Pointer(pCur)).Fix = U16(idx)
__15:
pCell = (*MemPage)(unsafe.Pointer(pPage)).FaDataOfst + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx))))))
if !((*MemPage)(unsafe.Pointer(pPage)).FintKeyLeaf != 0) {
@@ -47740,7 +48059,7 @@ __19:
if !(pCell >= (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) {
goto __21
}
- return Xsqlite3CorruptError(tls, 71136)
+ return Xsqlite3CorruptError(tls, 71747)
__21:
;
goto __19
@@ -47869,7 +48188,7 @@ 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 { /* sqlite3.c:71215:20: */
+func Xsqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71826:20: */
var rc int32
var xRecordCompare RecordCompare
// The record flows over onto one or more overflow pages. In
@@ -47925,7 +48244,6 @@ __3:
lwr = 0
upr = int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) - 1
idx = upr >> 1 // idx = (lwr+upr)/2;
- (*BtCursor)(unsafe.Pointer(pCur)).Fix = U16(idx)
__6: // Size of the pCell cell in bytes
pCell = (*MemPage)(unsafe.Pointer(pPage)).FaDataOfst + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx))))))
@@ -47974,7 +48292,7 @@ __11:
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
}
- rc = Xsqlite3CorruptError(tls, 71318)
+ rc = Xsqlite3CorruptError(tls, 71928)
goto moveto_index_finish
__13:
;
@@ -48023,7 +48341,7 @@ __18:
if !((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode != 0) {
goto __20
}
- rc = Xsqlite3CorruptError(tls, 71350)
+ rc = Xsqlite3CorruptError(tls, 71960)
__20:
;
goto moveto_index_finish
@@ -48090,7 +48408,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 { /* sqlite3.c:71389:20: */
+func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71999: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.
@@ -48100,7 +48418,7 @@ func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71389:20
// 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 { /* sqlite3.c:71402:20: */
+func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72012:20: */
var n I64
var i U8
@@ -48139,7 +48457,7 @@ func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* sqlite3.c:71
// 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 { /* sqlite3.c:71442:28: */
+func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72052:28: */
var rc int32
var idx int32
var pPage uintptr
@@ -48176,7 +48494,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71442:28: */
// 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, 71473)
+ return Xsqlite3CorruptError(tls, 72083)
}
if idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) {
@@ -48187,7 +48505,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71442:28: */
}
return moveToLeftmost(tls, pCur)
}
- for ok := true; ok; ok = int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) {
+ for __ccgo := true; __ccgo; __ccgo = int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) {
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) == 0 {
(*BtCursor)(unsafe.Pointer(pCur)).FeState = U8(CURSOR_INVALID)
return SQLITE_DONE
@@ -48209,7 +48527,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71442:28: */
return int32(0)
}
-func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqlite3.c:71502:20: */
+func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72112:20: */
var pPage uintptr
_ = flags // Used in COMDB2 but not native SQLite
@@ -48249,7 +48567,7 @@ func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqli
// 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 { /* sqlite3.c:71542:28: */
+func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72152:28: */
var rc int32
var pPage uintptr
@@ -48303,7 +48621,7 @@ func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71542:28: *
return rc
}
-func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqlite3.c:71591:20: */
+func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72201:20: */
_ = flags // Used in COMDB2 but not native SQLite
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_AtLast | BTCF_ValidOvfl | BTCF_ValidNKey))
@@ -48337,7 +48655,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 { /* sqlite3.c:71629:12: */
+func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr, nearby Pgno, eMode U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72239:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -48404,7 +48722,7 @@ func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr
if !(n >= mxPage) {
goto __1
}
- return Xsqlite3CorruptError(tls, 71653)
+ return Xsqlite3CorruptError(tls, 72263)
__1:
;
if !(n > U32(0)) {
@@ -48485,7 +48803,7 @@ __15:
if !(iTrunk > mxPage || libc.PostIncUint32(&nSearch, 1) > n) {
goto __16
}
- rc = Xsqlite3CorruptError(tls, 71709)
+ rc = Xsqlite3CorruptError(tls, 72319)
goto __17
__16:
rc = btreeGetUnusedPage(tls, pBt, iTrunk, bp+8, 0)
@@ -48527,7 +48845,7 @@ __19:
goto __22
}
// Value of k is out of range. Database corruption
- rc = Xsqlite3CorruptError(tls, 71738)
+ rc = Xsqlite3CorruptError(tls, 72348)
goto end_allocate_page
goto __23
__22:
@@ -48572,7 +48890,7 @@ __27:
if !(iNewTrunk > mxPage) {
goto __32
}
- rc = Xsqlite3CorruptError(tls, 71772)
+ rc = Xsqlite3CorruptError(tls, 72382)
goto end_allocate_page
__32:
;
@@ -48686,7 +49004,7 @@ __40:
if !(iPage > mxPage || iPage < Pgno(2)) {
goto __51
}
- rc = Xsqlite3CorruptError(tls, 71837)
+ rc = Xsqlite3CorruptError(tls, 72447)
goto end_allocate_page
__51:
;
@@ -48861,7 +49179,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 { /* sqlite3.c:71951:12: */
+func freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72561:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -48882,7 +49200,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, 71964)
+ return Xsqlite3CorruptError(tls, 72574)
__1:
;
if !(pMemPage != 0) {
@@ -48952,7 +49270,7 @@ __7:
if !(iTrunk > btreePagecount(tls, pBt)) {
goto __10
}
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72011)
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72621)
goto freepage_out
__10:
;
@@ -48969,7 +49287,7 @@ __11:
if !(nLeaf > (*BtShared)(unsafe.Pointer(pBt)).FusableSize/U32(4)-U32(2)) {
goto __12
}
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72022)
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72632)
goto freepage_out
__12:
;
@@ -49050,14 +49368,14 @@ __18:
return *(*int32)(unsafe.Pointer(bp + 8 /* rc */))
}
-func freePage(tls *libc.TLS, pPage uintptr, pRC uintptr) { /* sqlite3.c:72085:13: */
+func freePage(tls *libc.TLS, pPage uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72695: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 { /* sqlite3.c:72094:28: */
+func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72704:28: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -49069,7 +49387,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, 72111)
+ return Xsqlite3CorruptError(tls, 72721)
}
ovflPgno = Xsqlite3Get4byte(tls, pCell+uintptr((*CellInfo)(unsafe.Pointer(pInfo)).FnSize)-uintptr(4))
pBt = (*MemPage)(unsafe.Pointer(pPage)).FpBt
@@ -49084,7 +49402,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, 72128)
+ return Xsqlite3CorruptError(tls, 72738)
}
if nOvfl != 0 {
rc = getOverflowPage(tls, pBt, ovflPgno, bp, bp+8)
@@ -49104,7 +49422,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, 72148)
+ rc = Xsqlite3CorruptError(tls, 72758)
} else {
rc = freePage2(tls, pBt, *(*uintptr)(unsafe.Pointer(bp /* pOvfl */)), ovflPgno)
}
@@ -49136,7 +49454,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 { /* sqlite3.c:72189:12: */
+func fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72799:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -49262,7 +49580,7 @@ func fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize
*(*uintptr)(unsafe.Pointer(bp /* pOvfl */)) = uintptr(0)
var pgnoPtrmap Pgno = *(*Pgno)(unsafe.Pointer(bp + 8 /* pgnoOvfl */)) // Overflow page pointer-map entry page
if (*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0 {
- for ok := true; ok; ok = ptrmapPageno(tls, pBt, *(*Pgno)(unsafe.Pointer(bp + 8))) == *(*Pgno)(unsafe.Pointer(bp + 8)) || *(*Pgno)(unsafe.Pointer(bp + 8)) == U32(Xsqlite3PendingByte)/(*BtShared)(unsafe.Pointer(pBt)).FpageSize+U32(1) {
+ for __ccgo := true; __ccgo; __ccgo = ptrmapPageno(tls, pBt, *(*Pgno)(unsafe.Pointer(bp + 8))) == *(*Pgno)(unsafe.Pointer(bp + 8)) || *(*Pgno)(unsafe.Pointer(bp + 8)) == U32(Xsqlite3PendingByte)/(*BtShared)(unsafe.Pointer(pBt)).FpageSize+U32(1) {
*(*Pgno)(unsafe.Pointer(bp + 8 /* pgnoOvfl */))++
}
}
@@ -49318,7 +49636,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) { /* sqlite3.c:72379:13: */
+func dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72989: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[]
@@ -49336,7 +49654,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, 72401)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 73017)
return
}
rc = freeSpace(tls, pPage, uint16(pc), uint16(sz))
@@ -49372,7 +49690,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) { /* sqlite3.c:72437:13: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -49533,7 +49851,7 @@ type CellArray1 = struct {
FszCell uintptr
FapEnd [6]uintptr
FixNx [6]int32
-} /* sqlite3.c:72612:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73228:9 */
// The following parameters determine how many adjacent pages get involved
// in a balancing operation. NN is the number of neighbors on either side
@@ -49610,11 +49928,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 /* sqlite3.c:72612:26 */
+type CellArray = CellArray1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73228: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) { /* sqlite3.c:72626:13: */
+func populateCellCache(tls *libc.TLS, p uintptr, idx int32, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73242:13: */
for N > 0 {
@@ -49631,7 +49949,7 @@ func populateCellCache(tls *libc.TLS, p uintptr, idx int32, N int32) { /* sqlite
}
// Return the size of the Nth element of the cell array
-func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:72644:28: */
+func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73260:28: */
*(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) = (*struct {
f func(*libc.TLS, uintptr, uintptr) U16
@@ -49639,7 +49957,7 @@ func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:72644
return *(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2))
}
-func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:72650:12: */
+func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73266: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))
@@ -49658,7 +49976,7 @@ func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:72650:
//
// 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 { /* sqlite3.c:72669:12: */
+func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73285: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)
@@ -49689,12 +50007,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, 72702)
+ return Xsqlite3CorruptError(tls, 73318)
}
pCell = pTmp + uintptr((int64(pCell)-int64(aData))/1)
} else if Uptr(pCell+uintptr(sz)) > Uptr(pSrcEnd) &&
Uptr(pCell) < Uptr(pSrcEnd) {
- return Xsqlite3CorruptError(tls, 72707)
+ return Xsqlite3CorruptError(tls, 73323)
}
pData -= uintptr(sz)
@@ -49702,7 +50020,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, 72713)
+ return Xsqlite3CorruptError(tls, 73329)
}
libc.Xmemmove(tls, pData, pCell, uint64(sz))
@@ -49752,7 +50070,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 { /* sqlite3.c:72759:12: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -49790,7 +50108,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, 72798)
+ Xsqlite3CorruptError(tls, 73414)
return 1
}
libc.Xmemmove(tls, pSlot, *(*uintptr)(unsafe.Pointer((*CellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8)), uint64(sz))
@@ -49817,7 +50135,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 { /* sqlite3.c:72824:12: */
+func pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73440: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))
@@ -49869,7 +50187,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 { /* sqlite3.c:72883:12: */
+func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73499:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -49903,7 +50221,7 @@ func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pC
if !(nShift > nCell) {
goto __2
}
- return Xsqlite3CorruptError(tls, 72909)
+ return Xsqlite3CorruptError(tls, 73525)
__2:
;
libc.Xmemmove(tls, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx+uintptr(nShift*2), uint64(nCell*2))
@@ -50043,7 +50361,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 { /* sqlite3.c:73012:12: */
+func balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73628:12: */
bp := tls.Alloc(140)
defer tls.Free(140)
@@ -50056,7 +50374,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, 73022)
+ return Xsqlite3CorruptError(tls, 73638)
} // dbfuzz001.test
// Allocate a new page. This page will become the right-sibling of
@@ -50154,7 +50472,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) { /* sqlite3.c:73167:13: */
+func copyNodeContent(tls *libc.TLS, pFrom uintptr, pTo uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73783:13: */
if *(*int32)(unsafe.Pointer(pRC)) == SQLITE_OK {
var pBt uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FpBt
var aFrom uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FaData
@@ -50234,7 +50552,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 { /* sqlite3.c:73249:12: */
+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: */
bp := tls.Alloc(344)
defer tls.Free(344)
@@ -50536,7 +50854,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, 73445)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74061)
goto balance_cleanup
__25:
;
@@ -50564,7 +50882,7 @@ __25:
if !(limit < int32(*(*U16)(unsafe.Pointer(pOld + 28)))) {
goto __27
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73469)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74085)
goto balance_cleanup
__27:
;
@@ -50743,7 +51061,7 @@ __52:
if !(k > NB+2) {
goto __55
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73570)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74186)
goto balance_cleanup
__55:
;
@@ -50817,7 +51135,7 @@ __65:
}()) {
goto __67
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73603)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74219)
goto balance_cleanup
__67:
;
@@ -50890,7 +51208,7 @@ __73:
}()) {
goto __75
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73645)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74261)
goto balance_cleanup
__75:
;
@@ -50927,7 +51245,7 @@ __76:
*(*int32)(unsafe.Pointer(bp + 172)) == SQLITE_OK) {
goto __81
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73678)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74294)
__81:
;
if !(*(*int32)(unsafe.Pointer(bp + 172)) != 0) {
@@ -51011,7 +51329,7 @@ __89:
// cache with two separate objects associated with the same
// page number.
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73724)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74340)
goto balance_cleanup
__92:
;
@@ -51250,7 +51568,7 @@ __119:
k = 0
__123:
- if !(*(*int32)(unsafe.Pointer(bp + 8 + 80 + uintptr(k)*4)) <= i && k < NB*2) {
+ if !(*(*int32)(unsafe.Pointer(bp + 8 + 80 + uintptr(k)*4)) <= j && k < NB*2) {
goto __125
}
goto __124
@@ -51264,7 +51582,7 @@ __125:
if !(Uptr(pSrcEnd) >= Uptr(pCell1) && Uptr(pSrcEnd) < Uptr(pCell1+uintptr(sz2))) {
goto __126
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73881)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74497)
goto balance_cleanup
__126:
;
@@ -51486,7 +51804,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 { /* sqlite3.c:74046:12: */
+func balance_deeper(tls *libc.TLS, pRoot uintptr, ppChild uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74662:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -51537,13 +51855,13 @@ func balance_deeper(tls *libc.TLS, pRoot uintptr, ppChild uintptr) int32 { /* sq
// 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 { /* sqlite3.c:74104:12: */
+func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74720: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, 74111)
+ return Xsqlite3CorruptError(tls, 74727)
}
}
return SQLITE_OK
@@ -51557,7 +51875,7 @@ func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74104:
// balance_quick()
// balance_deeper()
// balance_nonroot()
-func balance(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74127:12: */
+func balance(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74743:12: */
bp := tls.Alloc(13)
defer tls.Free(13)
@@ -51567,7 +51885,7 @@ func balance(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74127:12: */
var pFree uintptr = uintptr(0)
- for ok := true; ok; ok = rc == SQLITE_OK {
+ for __ccgo := true; __ccgo; __ccgo = rc == SQLITE_OK {
var iPage int32
var pPage uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpPage
@@ -51676,7 +51994,7 @@ func balance(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74127:12: */
// 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 { /* sqlite3.c:74253:12: */
+func btreeOverwriteContent(tls *libc.TLS, pPage uintptr, pDest uintptr, pX uintptr, iOffset int32, iAmt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74869:12: */
var nData int32 = (*BtreePayload)(unsafe.Pointer(pX)).FnData - iOffset
if nData <= 0 {
// Overwritting with zeros
@@ -51718,7 +52036,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 { /* sqlite3.c:74296:12: */
+func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74912:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -51732,7 +52050,7 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* sqli
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, 74308)
+ return Xsqlite3CorruptError(tls, 74924)
}
// Overwrite the local portion first
rc = btreeOverwriteContent(tls, *(*uintptr)(unsafe.Pointer(bp /* pPage */)), (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload, pX,
@@ -51750,13 +52068,13 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* sqli
ovflPgno = Xsqlite3Get4byte(tls, (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload+uintptr(iOffset))
pBt = (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPage */)))).FpBt
ovflPageSize = (*BtShared)(unsafe.Pointer(pBt)).FusableSize - U32(4)
- for ok := true; ok; ok = iOffset < nTotal {
+ for __ccgo := true; __ccgo; __ccgo = iOffset < nTotal {
rc = btreeGetPage(tls, pBt, ovflPgno, bp, 0)
if rc != 0 {
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, 74327)
+ rc = Xsqlite3CorruptError(tls, 74943)
} else {
if U32(iOffset)+ovflPageSize < U32(nTotal) {
ovflPgno = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPage */)))).FaData)
@@ -51803,7 +52121,7 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* sqli
// 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 { /* sqlite3.c:74375:20: */
+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)
@@ -51833,20 +52151,6 @@ func Xsqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
pBt = (*Btree)(unsafe.Pointer(p)).FpBt
newCell = uintptr(0)
- if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_FAULT) {
- goto __1
- }
-
- return (*BtCursor)(unsafe.Pointer(pCur)).FskipNext
-__1:
- ;
-
- // Assert that the caller has been consistent. If this cursor was opened
- // expecting an index b-tree, then the caller should be inserting blob
- // keys with no associated data. If the cursor was opened expecting an
- // intkey table, the caller should be inserting integer keys with a
- // blob of associated data.
-
// Save the positions of any other cursors open on this table.
//
// In some cases, the call to btreeMoveto() below is a no-op. For
@@ -51858,40 +52162,59 @@ __1:
// doing any work. To avoid thwarting these optimizations, it is important
// not to clear the cursor here.
if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_Multiple != 0) {
- goto __2
+ goto __1
}
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = saveAllCursors(tls, pBt, (*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot, pCur)
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __3
+ goto __2
}
return *(*int32)(unsafe.Pointer(bp + 104 /* rc */))
-__3:
+__2:
;
if !(*(*int32)(unsafe.Pointer(bp)) != 0 && int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) < 0) {
- goto __4
+ goto __3
}
// This can only happen if the schema is corrupt such that there is more
// than one table or index with the same root page as used by the cursor.
// 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, 74432)
-__4:
+ return Xsqlite3CorruptError(tls, 75030)
+__3:
;
-__2:
+__1:
;
- if !((*BtCursor)(unsafe.Pointer(pCur)).FpKeyInfo == uintptr(0)) {
+ 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) {
goto __5
}
+ return *(*int32)(unsafe.Pointer(bp + 104 /* rc */))
+__5:
+ ;
+__4:
+ ;
+
+ // Assert that the caller has been consistent. If this cursor was opened
+ // expecting an index b-tree, then the caller should be inserting blob
+ // keys with no associated data. If the cursor was opened expecting an
+ // intkey table, the caller should be inserting integer keys with a
+ // blob of associated data.
+
+ if !((*BtCursor)(unsafe.Pointer(pCur)).FpKeyInfo == uintptr(0)) {
+ goto __6
+ }
// If this is an insert into a table b-tree, invalidate any incrblob
// cursors open on the row being replaced
if !((*Btree)(unsafe.Pointer(p)).FhasIncrblobCur != 0) {
- goto __7
+ goto __8
}
invalidateIncrblobCursors(tls, p, (*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot, (*BtreePayload)(unsafe.Pointer(pX)).FnKey, 0)
-__7:
+__8:
;
// If BTREE_SAVEPOSITION is set, the cursor must already be pointing
@@ -51901,24 +52224,24 @@ __7:
// that the cursor is not pointing to a row to be overwritten.
// So do a complete check.
if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_ValidNKey != 0 && (*BtreePayload)(unsafe.Pointer(pX)).FnKey == (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnKey) {
- goto __8
+ goto __9
}
// The cursor is pointing to the entry that is to be
// overwritten
if !(int32((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize) != 0 &&
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnPayload == U32((*BtreePayload)(unsafe.Pointer(pX)).FnData)+U32((*BtreePayload)(unsafe.Pointer(pX)).FnZero)) {
- goto __10
+ goto __11
}
// New entry is the same size as the old. Do an overwrite
return btreeOverwriteCell(tls, pCur, pX)
-__10:
+__11:
;
- goto __9
-__8:
+ goto __10
+__9:
if !(*(*int32)(unsafe.Pointer(bp)) == 0) {
- goto __11
+ goto __12
}
// 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
@@ -51926,17 +52249,17 @@ __8:
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3BtreeTableMoveto(tls, pCur, (*BtreePayload)(unsafe.Pointer(pX)).FnKey,
libc.Bool32(flags&BTREE_APPEND != 0), bp)
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __12
+ goto __13
}
return *(*int32)(unsafe.Pointer(bp + 104 /* rc */))
-__12:
+__13:
;
-__11:
+__12:
;
-__9:
+__10:
;
- goto __6
-__5:
+ goto __7
+__6:
// This is an index or a WITHOUT ROWID table
// If BTREE_SAVEPOSITION is set, the cursor must already be pointing
@@ -51948,10 +52271,10 @@ __5:
// not pointing to an immediately adjacent cell, then move the cursor
// so that it does.
if !(*(*int32)(unsafe.Pointer(bp)) == 0 && flags&BTREE_SAVEPOSITION == 0) {
- goto __13
+ goto __14
}
if !((*BtreePayload)(unsafe.Pointer(pX)).FnMem != 0) {
- goto __14
+ goto __15
}
(*UnpackedRecord)(unsafe.Pointer(bp + 8 /* &r */)).FpKeyInfo = (*BtCursor)(unsafe.Pointer(pCur)).FpKeyInfo
(*UnpackedRecord)(unsafe.Pointer(bp + 8 /* &r */)).FaMem = (*BtreePayload)(unsafe.Pointer(pX)).FaMem
@@ -51959,147 +52282,147 @@ __5:
(*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)
- goto __15
-__14:
+ goto __16
+__15:
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeMoveto(tls, pCur, (*BtreePayload)(unsafe.Pointer(pX)).FpKey, (*BtreePayload)(unsafe.Pointer(pX)).FnKey,
libc.Bool32(flags&BTREE_APPEND != 0), bp)
-__15:
+__16:
;
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __16
+ goto __17
}
return *(*int32)(unsafe.Pointer(bp + 104 /* rc */))
-__16:
+__17:
;
-__13:
+__14:
;
// If the cursor is currently pointing to an entry to be overwritten
// and the new content is the same as as the old, then use the
// overwrite optimization.
if !(*(*int32)(unsafe.Pointer(bp)) == 0) {
- goto __17
+ goto __18
}
getCellInfo(tls, pCur)
if !((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnKey == (*BtreePayload)(unsafe.Pointer(pX)).FnKey) {
- goto __18
+ 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)
-__18:
+__19:
;
-__17:
+__18:
;
-__6:
+__7:
;
pPage = (*BtCursor)(unsafe.Pointer(pCur)).FpPage
if !((*MemPage)(unsafe.Pointer(pPage)).FnFree < 0) {
- goto __19
+ goto __20
}
if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) > CURSOR_INVALID) {
- goto __20
+ goto __21
}
- *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 74532)
- goto __21
-__20:
- *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeComputeFreeSpace(tls, pPage)
+ *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 75147)
+ goto __22
__21:
+ *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeComputeFreeSpace(tls, pPage)
+__22:
;
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __22
+ goto __23
}
return *(*int32)(unsafe.Pointer(bp + 104 /* rc */))
-__22:
+__23:
;
-__19:
+__20:
;
newCell = (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace
if !(flags&BTREE_PREFORMAT != 0) {
- goto __23
+ 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) {
- goto __25
+ goto __26
}
*(*int32)(unsafe.Pointer(bp + 108 /* szNew */)) = 4
-__25:
+__26:
;
if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0 && *(*int32)(unsafe.Pointer(bp + 108)) > int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)) {
- goto __26
+ 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)) {
- goto __27
+ 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)
-__27:
+__28:
;
-__26:
+__27:
;
- goto __24
-__23:
- *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = fillInCell(tls, pPage, newCell, pX, bp+108)
+ goto __25
__24:
+ *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = fillInCell(tls, pPage, newCell, pX, bp+108)
+__25:
;
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __28
+ goto __29
}
goto end_insert
-__28:
+__29:
;
idx = int32((*BtCursor)(unsafe.Pointer(pCur)).Fix)
if !(*(*int32)(unsafe.Pointer(bp)) == 0) {
- goto __29
+ goto __30
}
if !(idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell)) {
- goto __31
+ goto __32
}
- return Xsqlite3CorruptError(tls, 74568)
-__31:
+ return Xsqlite3CorruptError(tls, 75183)
+__32:
;
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3PagerWrite(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __32
+ goto __33
}
goto end_insert
-__32:
+__33:
;
oldCell = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx))))))
if !!(int32((*MemPage)(unsafe.Pointer(pPage)).Fleaf) != 0) {
- goto __33
+ goto __34
}
libc.Xmemcpy(tls, newCell, oldCell, uint64(4))
-__33:
+__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) {
- goto __34
+ goto __35
}
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = clearCellOverflow(tls, pPage, oldCell, bp+112 /* &info1 */)
- goto __35
-__34:
- *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = SQLITE_OK
+ goto __36
__35:
+ *(*int32)(unsafe.Pointer(bp + 104 /* 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))) {
- goto __36
+ goto __37
}
// Overwrite the old cell with the new if they are the same size.
// We could also try to do this if the old cell is smaller, then add
@@ -52112,42 +52435,42 @@ __35:
// necessary to add the PTRMAP_OVERFLOW1 pointer-map entry.
// clearCell never fails when nLocal==nPayload
if !(oldCell < (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+uintptr(10)) {
- goto __37
+ goto __38
}
- return Xsqlite3CorruptError(tls, 74595)
-__37:
+ return Xsqlite3CorruptError(tls, 75210)
+__38:
;
if !(oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 108))) > (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) {
- goto __38
+ goto __39
}
- return Xsqlite3CorruptError(tls, 74598)
-__38:
+ return Xsqlite3CorruptError(tls, 75213)
+__39:
;
libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 108 /* szNew */))))
return SQLITE_OK
-__36:
+__37:
;
dropCell(tls, pPage, idx, int32((*CellInfo)(unsafe.Pointer(bp+112 /* &info1 */)).FnSize), bp+104)
if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) {
- goto __39
+ goto __40
}
goto end_insert
-__39:
+__40:
;
- goto __30
-__29:
+ goto __31
+__30:
if !(*(*int32)(unsafe.Pointer(bp)) < 0 && int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) > 0) {
- goto __40
+ goto __41
}
idx = int32(libc.PreIncUint16(&(*BtCursor)(unsafe.Pointer(pCur)).Fix, 1))
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey))
- goto __41
-__40:
- ;
+ goto __42
__41:
;
-__30:
+__42:
+ ;
+__31:
;
insertCell(tls, pPage, idx, newCell, *(*int32)(unsafe.Pointer(bp + 108 /* szNew */)), uintptr(0), uint32(0), bp+104)
@@ -52172,7 +52495,7 @@ __30:
// row without seeking the cursor. This can be a big performance boost.
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
if !((*MemPage)(unsafe.Pointer(pPage)).FnOverflow != 0) {
- goto __42
+ goto __43
}
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey))
@@ -52185,30 +52508,30 @@ __30:
(*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) {
- goto __43
+ goto __44
}
btreeReleaseAllCursorPages(tls, pCur)
if !((*BtCursor)(unsafe.Pointer(pCur)).FpKeyInfo != 0) {
- goto __44
+ goto __45
}
(*BtCursor)(unsafe.Pointer(pCur)).FpKey = Xsqlite3Malloc(tls, uint64((*BtreePayload)(unsafe.Pointer(pX)).FnKey))
if !((*BtCursor)(unsafe.Pointer(pCur)).FpKey == uintptr(0)) {
- goto __45
+ goto __46
}
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = SQLITE_NOMEM
- goto __46
-__45:
- libc.Xmemcpy(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey, (*BtreePayload)(unsafe.Pointer(pX)).FpKey, uint64((*BtreePayload)(unsafe.Pointer(pX)).FnKey))
+ goto __47
__46:
+ libc.Xmemcpy(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey, (*BtreePayload)(unsafe.Pointer(pX)).FpKey, uint64((*BtreePayload)(unsafe.Pointer(pX)).FnKey))
+__47:
;
-__44:
+__45:
;
(*BtCursor)(unsafe.Pointer(pCur)).FeState = U8(CURSOR_REQUIRESEEK)
(*BtCursor)(unsafe.Pointer(pCur)).FnKey = (*BtreePayload)(unsafe.Pointer(pX)).FnKey
-__43:
+__44:
;
-__42:
+__43:
;
end_insert:
@@ -52228,7 +52551,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 { /* sqlite3.c:74684:20: */
+func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75299:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -52255,7 +52578,7 @@ func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I
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, 74698)
+ return Xsqlite3CorruptError(tls, 75313)
}
nRem = (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload
if nIn == nRem && nIn < U32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pDest)).FpPage)).FmaxLocal) {
@@ -52278,14 +52601,14 @@ 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, 74721)
+ return Xsqlite3CorruptError(tls, 75336)
}
ovflIn = Xsqlite3Get4byte(tls, (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload+uintptr(nIn))
}
- for ok := true; ok; ok = nRem > U32(0) && *(*int32)(unsafe.Pointer(bp + 20)) == SQLITE_OK {
+ for __ccgo := true; __ccgo; __ccgo = nRem > U32(0) && *(*int32)(unsafe.Pointer(bp + 20)) == SQLITE_OK {
nRem = nRem - nOut
- for ok1 := true; ok1; ok1 = *(*int32)(unsafe.Pointer(bp + 20)) == SQLITE_OK && nOut > U32(0) {
+ for __ccgo1 := true; __ccgo1; __ccgo1 = *(*int32)(unsafe.Pointer(bp + 20)) == SQLITE_OK && nOut > U32(0) {
if nIn > U32(0) {
var nCopy int32 = func() int32 {
@@ -52360,7 +52683,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 { /* sqlite3.c:74794:20: */
+func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75409:20: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -52374,37 +52697,47 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
var iCellDepth int32 // Depth of node containing pCell
// var info CellInfo at bp, 24
// Size of the cell being deleted
- var bSkipnext int32 = 0 // Leaf cursor in SKIPNEXT state
- var bPreserve U8 = U8(int32(flags) & BTREE_SAVEPOSITION) // Keep cursor valid
+ var bPreserve U8 // Keep cursor valid. 2 for CURSOR_SKIPNEXT
- if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_REQUIRESEEK {
- *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = btreeRestoreCursorPosition(tls, pCur)
+ if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) != CURSOR_VALID {
+ if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) >= CURSOR_REQUIRESEEK {
+ *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = btreeRestoreCursorPosition(tls, pCur)
- if *(*int32)(unsafe.Pointer(bp + 24)) != 0 || int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) != CURSOR_VALID {
- return *(*int32)(unsafe.Pointer(bp + 24 /* rc */))
+ if *(*int32)(unsafe.Pointer(bp + 24)) != 0 || int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) != CURSOR_VALID {
+ return *(*int32)(unsafe.Pointer(bp + 24 /* rc */))
+ }
+ } else {
+ return Xsqlite3CorruptError(tls, 75433)
}
}
iCellDepth = int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage)
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)
+ }
pCell = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCellIdx))))))
if (*MemPage)(unsafe.Pointer(pPage)).FnFree < 0 && btreeComputeFreeSpace(tls, pPage) != 0 {
- return Xsqlite3CorruptError(tls, 74825)
- }
- if int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) <= iCellIdx {
- return Xsqlite3CorruptError(tls, 74828)
+ return Xsqlite3CorruptError(tls, 75446)
}
- // If the bPreserve flag is set to true, then the cursor position must
+ // If the BTREE_SAVEPOSITION bit is on, then the cursor position must
// be preserved following this delete operation. If the current delete
// will cause a b-tree rebalance, then this is done by saving the cursor
// key and leaving the cursor in CURSOR_REQUIRESEEK state before
// returning.
//
- // Or, if the current delete will not cause a rebalance, then the cursor
+ // If the current delete will not cause a rebalance, then the cursor
// will be left in CURSOR_SKIPNEXT state pointing to the entry immediately
- // before or after the deleted entry. In this case set bSkipnext to true.
+ // before or after the deleted entry.
+ //
+ // The bPreserve value records which path is required:
+ //
+ // bPreserve==0 Not necessary to save the cursor position
+ // bPreserve==1 Use CURSOR_REQUIRESEEK to save the cursor position
+ // bPreserve==2 Cursor won't move. Set CURSOR_SKIPNEXT.
+ 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)) ||
@@ -52416,7 +52749,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
return *(*int32)(unsafe.Pointer(bp + 24 /* rc */))
}
} else {
- bSkipnext = 1
+ bPreserve = U8(2)
}
}
@@ -52495,7 +52828,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
}
pCell = (*MemPage)(unsafe.Pointer(pLeaf)).FaData + uintptr(int32((*MemPage)(unsafe.Pointer(pLeaf)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pLeaf)).FaCellIdx + uintptr(2*(int32((*MemPage)(unsafe.Pointer(pLeaf)).FnCell)-1)))))))
if pCell < (*MemPage)(unsafe.Pointer(pLeaf)).FaData+4 {
- return Xsqlite3CorruptError(tls, 74910)
+ return Xsqlite3CorruptError(tls, 75536)
}
nCell = int32((*struct {
f func(*libc.TLS, uintptr, uintptr) U16
@@ -52540,7 +52873,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
}
if *(*int32)(unsafe.Pointer(bp + 24)) == SQLITE_OK {
- if bSkipnext != 0 {
+ if int32(bPreserve) > 1 {
(*BtCursor)(unsafe.Pointer(pCur)).FeState = U8(CURSOR_SKIPNEXT)
if iCellIdx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) {
@@ -52572,7 +52905,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
//
// 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 { /* sqlite3.c:74984:12: */
+func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75610:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -52602,7 +52935,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, 75018)
+ return Xsqlite3CorruptError(tls, 75644)
}
*(*Pgno)(unsafe.Pointer(bp /* pgnoRoot */))++
@@ -52645,7 +52978,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, 75066)
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 75692)
}
if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK {
releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pRoot */)))
@@ -52708,7 +53041,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 { /* sqlite3.c:75129:20: */
+func Xsqlite3BtreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75755:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeCreateTable(tls, p, piTable, flags)
@@ -52718,7 +53051,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 { /* sqlite3.c:75141:12: */
+func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32, pnChange uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75767:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -52734,7 +53067,7 @@ func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32
if !(pgno > btreePagecount(tls, pBt)) {
goto __1
}
- return Xsqlite3CorruptError(tls, 75156)
+ return Xsqlite3CorruptError(tls, 75782)
__1:
;
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = getAndInitPage(tls, pBt, pgno, bp, uintptr(0), 0)
@@ -52745,10 +53078,10 @@ __1:
__2:
;
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FopenFlags)&BTREE_SINGLE == 0 &&
- Xsqlite3PagerPageRefcount(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpDbPage) != 1) {
+ 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, 75163)
+ *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = Xsqlite3CorruptError(tls, 75789)
goto cleardatabasepage_out
__3:
;
@@ -52852,7 +53185,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 { /* sqlite3.c:75208:20: */
+func Xsqlite3BtreeClearTable(tls *libc.TLS, p uintptr, iTable int32, pnChange uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75834:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -52875,7 +53208,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 { /* sqlite3.c:75234:20: */
+func Xsqlite3BtreeClearTableOfCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75860:20: */
return Xsqlite3BtreeClearTable(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree, int32((*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot), uintptr(0))
}
@@ -52897,7 +53230,7 @@ func Xsqlite3BtreeClearTableOfCursor(tls *libc.TLS, pCur uintptr) int32 { /* sql
// 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 { /* sqlite3.c:75258:12: */
+func btreeDropTable(tls *libc.TLS, p uintptr, iTable Pgno, piMoved uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75884:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -52907,7 +53240,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, 75267)
+ return Xsqlite3CorruptError(tls, 75893)
}
*(*int32)(unsafe.Pointer(bp + 12 /* rc */)) = Xsqlite3BtreeClearTable(tls, p, int32(iTable), uintptr(0))
@@ -52979,7 +53312,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 { /* sqlite3.c:75343:20: */
+func Xsqlite3BtreeDropTable(tls *libc.TLS, p uintptr, iTable int32, piMoved uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75969:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeDropTable(tls, p, uint32(iTable), piMoved)
@@ -53005,7 +53338,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) { /* sqlite3.c:75372:21: */
+func Xsqlite3BtreeGetMeta(tls *libc.TLS, p uintptr, idx int32, pMeta uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75998:21: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -53024,7 +53357,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 { /* sqlite3.c:75402:20: */
+func Xsqlite3BtreeUpdateMeta(tls *libc.TLS, p uintptr, idx int32, iMeta U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76028:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pP1 uintptr
var rc int32
@@ -53050,7 +53383,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 { /* sqlite3.c:75434:20: */
+func Xsqlite3BtreeCount(tls *libc.TLS, db uintptr, pCur uintptr, pnEntry uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76060:20: */
var nEntry I64 = int64(0) // Value to return in *pnEntry
var rc int32 // Return code
@@ -53084,7 +53417,7 @@ func Xsqlite3BtreeCount(tls *libc.TLS, db uintptr, pCur uintptr, pnEntry uintptr
// If all pages in the tree have been visited, return SQLITE_OK to the
// caller.
if (*MemPage)(unsafe.Pointer(pPage)).Fleaf != 0 {
- for ok := true; ok; ok = int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FnCell) {
+ for __ccgo := true; __ccgo; __ccgo = int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FnCell) {
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) == 0 {
// All pages of the b-tree have been visited. Return successfully.
*(*I64)(unsafe.Pointer(pnEntry)) = nEntry
@@ -53113,12 +53446,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 { /* sqlite3.c:75503:22: */
+func Xsqlite3BtreePager(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76129: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) { /* sqlite3.c:75511:13: */
+func checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76137:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -53131,7 +53464,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+3985, 1)
+ Xsqlite3_str_append(tls, pCheck+56, ts+3994, 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))
@@ -53145,13 +53478,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 { /* sqlite3.c:75541:12: */
+func getPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76167: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) { /* sqlite3.c:75549:13: */
+func setPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76175:13: */
*(*U8)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).FaPgRef + uintptr(iPg/Pgno(8)))) |= U8(int32(1) << (iPg & Pgno(0x07)))
}
@@ -53162,16 +53495,16 @@ func setPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) { /* sqlite3.c:7
// 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 { /* sqlite3.c:75563:12: */
+func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76189:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
if iPage > (*IntegrityCk)(unsafe.Pointer(pCheck)).FnPage || iPage == Pgno(0) {
- checkAppendMsg(tls, pCheck, ts+3987, libc.VaList(bp, iPage))
+ checkAppendMsg(tls, pCheck, ts+3996, libc.VaList(bp, iPage))
return 1
}
if getPageReferenced(tls, pCheck, iPage) != 0 {
- checkAppendMsg(tls, pCheck, ts+4010, libc.VaList(bp+8, iPage))
+ checkAppendMsg(tls, pCheck, ts+4019, libc.VaList(bp+8, iPage))
return 1
}
if libc.AtomicLoadNInt32((*IntegrityCk)(unsafe.Pointer(pCheck)).Fdb+432, 0) != 0 {
@@ -53184,7 +53517,7 @@ func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* sqlite3.c:75
// 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) { /* sqlite3.c:75583:13: */
+func checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild Pgno, eType U8, iParent Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76209:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -53198,20 +53531,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+4035, libc.VaList(bp, iChild))
+ checkAppendMsg(tls, pCheck, ts+4044, libc.VaList(bp, iChild))
return
}
if int32(*(*U8)(unsafe.Pointer(bp + 48))) != int32(eType) || *(*Pgno)(unsafe.Pointer(bp + 52)) != iParent {
checkAppendMsg(tls, pCheck,
- ts+4064,
+ ts+4073,
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) { /* sqlite3.c:75612:13: */
+func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76238:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -53227,7 +53560,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+4118, libc.VaList(bp, iPage))
+ checkAppendMsg(tls, pCheck, ts+4127, libc.VaList(bp, iPage))
break
}
pOvflData = Xsqlite3PagerGetData(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pOvflPage */)))
@@ -53238,7 +53571,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+4140, libc.VaList(bp+8, iPage))
+ ts+4149, libc.VaList(bp+8, iPage))
N--
} else {
for i = 0; i < int32(n); i++ {
@@ -53264,12 +53597,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+4179,
+ ts+4188,
libc.VaList(bp+16, func() uintptr {
if isFreeList != 0 {
- return ts + 4205 /* "size" */
+ return ts + 4214 /* "size" */
}
- return ts + 4210 /* "overflow list le..." */
+ return ts + 4219 /* "overflow list le..." */
}(),
expected-N, expected))
}
@@ -53295,7 +53628,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) { /* sqlite3.c:75701:13: */
+func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76327:13: */
var j U32
var i U32 = libc.PreIncUint32(&*(*U32)(unsafe.Pointer(aHeap)), 1)
*(*U32)(unsafe.Pointer(aHeap + uintptr(i)*4)) = x
@@ -53307,7 +53640,7 @@ func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* sqlite3.c:75701:1
}
}
-func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* sqlite3.c:75711:12: */
+func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76337:12: */
var j U32
var i U32
var x U32
@@ -53346,7 +53679,7 @@ func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:75745:12: */
+func checkTreePage(tls *libc.TLS, pCheck uintptr, iPage Pgno, piMinKey uintptr, maxKey I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76371:12: */
bp := tls.Alloc(140)
defer tls.Free(140)
*(*I64)(unsafe.Pointer(bp + 104)) = maxKey
@@ -53413,13 +53746,13 @@ __1:
return 0
__2:
;
- (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4231 /* "Page %u: " */
+ (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4240 /* "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+4241, libc.VaList(bp, rc))
+ ts+4250, libc.VaList(bp, rc))
goto end_of_check
__3:
;
@@ -53433,7 +53766,7 @@ __3:
}
// The only possible error from InitPage
checkAppendMsg(tls, pCheck,
- ts+4279, libc.VaList(bp+8, rc))
+ ts+4288, libc.VaList(bp+8, rc))
goto end_of_check
__4:
;
@@ -53441,7 +53774,7 @@ __4:
goto __5
}
- checkAppendMsg(tls, pCheck, ts+4317, libc.VaList(bp+16, rc))
+ checkAppendMsg(tls, pCheck, ts+4326, libc.VaList(bp+16, rc))
goto end_of_check
__5:
;
@@ -53449,7 +53782,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 + 4339 /* "On tree page %u ..." */
+ (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4348 /* "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()
@@ -53471,7 +53804,7 @@ __5:
if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0) {
goto __8
}
- (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4365 /* "On page %u at ri..." */
+ (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4374 /* "On page %u at ri..." */
checkPtrmap(tls, pCheck, uint32(pgno), uint8(PTRMAP_BTREE), iPage)
__8:
;
@@ -53502,7 +53835,7 @@ __9:
if !(pc < contentOffset || pc > usableSize-U32(4)) {
goto __12
}
- checkAppendMsg(tls, pCheck, ts+4393,
+ checkAppendMsg(tls, pCheck, ts+4402,
libc.VaList(bp+24, pc, contentOffset, usableSize-U32(4)))
doCoverageCheck = 0
goto __10
@@ -53515,7 +53848,7 @@ __12:
if !(pc+U32((*CellInfo)(unsafe.Pointer(bp+112)).FnSize) > usableSize) {
goto __13
}
- checkAppendMsg(tls, pCheck, ts+4423, 0)
+ checkAppendMsg(tls, pCheck, ts+4432, 0)
doCoverageCheck = 0
goto __10
__13:
@@ -53533,7 +53866,7 @@ __13:
}() != 0) {
goto __15
}
- checkAppendMsg(tls, pCheck, ts+4447, libc.VaList(bp+48, (*CellInfo)(unsafe.Pointer(bp+112 /* &info */)).FnKey))
+ checkAppendMsg(tls, pCheck, ts+4456, 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
@@ -53574,7 +53907,7 @@ __20:
if !(d2 != depth) {
goto __21
}
- checkAppendMsg(tls, pCheck, ts+4471, 0)
+ checkAppendMsg(tls, pCheck, ts+4480, 0)
depth = d2
__21:
;
@@ -53674,7 +54007,7 @@ __29:
goto __31
}
checkAppendMsg(tls, pCheck,
- ts+4496, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage))
+ ts+4505, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage))
goto __30
goto __32
__31:
@@ -53694,7 +54027,7 @@ __30:
goto __33
}
checkAppendMsg(tls, pCheck,
- ts+4533,
+ ts+4542,
libc.VaList(bp+72, nFrag, int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+7)))), iPage))
__33:
;
@@ -53735,7 +54068,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 { /* sqlite3.c:76024:21: */
+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: */
bp := tls.Alloc(248)
defer tls.Free(248)
@@ -53823,7 +54156,7 @@ __6:
if !(bCkFreelist != 0) {
goto __7
}
- (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 4585 /* "Main freelist: " */
+ (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 4594 /* "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)
@@ -53861,7 +54194,7 @@ __13:
goto __15
}
checkAppendMsg(tls, bp+32,
- ts+4601,
+ ts+4610,
libc.VaList(bp, mx, mxInHdr))
__15:
;
@@ -53871,7 +54204,7 @@ __9:
goto __16
}
checkAppendMsg(tls, bp+32,
- ts+4646, 0)
+ ts+4655, 0)
__16:
;
__10:
@@ -53921,13 +54254,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+4701, libc.VaList(bp+16, i))
+ checkAppendMsg(tls, bp+32, ts+4710, 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+4723, libc.VaList(bp+24, i))
+ checkAppendMsg(tls, bp+32, ts+4732, libc.VaList(bp+24, i))
__27:
;
goto __24
@@ -53969,7 +54302,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 { /* sqlite3.c:76179:27: */
+func Xsqlite3BtreeGetFilename(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76805:27: */
return Xsqlite3PagerFilename(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, 1)
}
@@ -53980,14 +54313,14 @@ func Xsqlite3BtreeGetFilename(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:7
//
// 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 { /* sqlite3.c:76192:27: */
+func Xsqlite3BtreeGetJournalname(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76818: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 { /* sqlite3.c:76201:20: */
+func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76827:20: */
if p != 0 {
return int32((*Btree)(unsafe.Pointer(p)).FinTrans)
@@ -54001,7 +54334,7 @@ func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76201:
// 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 { /* sqlite3.c:76215:20: */
+func Xsqlite3BtreeCheckpoint(tls *libc.TLS, p uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76841:20: */
var rc int32 = SQLITE_OK
if p != 0 {
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -54017,7 +54350,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 { /* sqlite3.c:76234:20: */
+func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76860:20: */
return libc.Bool32((*Btree)(unsafe.Pointer(p)).FnBackup != 0)
}
@@ -54040,7 +54373,7 @@ func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:7623
// 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 { /* sqlite3.c:76260:21: */
+func Xsqlite3BtreeSchema(tls *libc.TLS, p uintptr, nBytes int32, xFree uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76886:21: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpSchema) != 0) && nBytes != 0 {
@@ -54054,7 +54387,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 { /* sqlite3.c:76276:20: */
+func Xsqlite3BtreeSchemaLocked(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76902:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
@@ -54067,7 +54400,7 @@ func Xsqlite3BtreeSchemaLocked(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76
// 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 { /* sqlite3.c:76293:20: */
+func Xsqlite3BtreeLockTable(tls *libc.TLS, p uintptr, iTab int32, isWriteLock U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76919:20: */
var rc int32 = SQLITE_OK
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
@@ -54091,7 +54424,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 { /* sqlite3.c:76323:20: */
+func Xsqlite3BtreePutData(tls *libc.TLS, pCsr uintptr, offset U32, amt U32, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76949:20: */
var rc int32
rc = func() int32 {
@@ -54131,7 +54464,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) { /* sqlite3.c:76371:21: */
+func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76997:21: */
*(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Incrblob)
(*Btree)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBtree)).FhasIncrblobCur = U8(1)
}
@@ -54139,7 +54472,7 @@ func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:763
// 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 { /* sqlite3.c:76382:20: */
+func Xsqlite3BtreeSetVersion(tls *libc.TLS, pBtree uintptr, iVersion int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77008:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(pBtree)).FpBt
var rc int32 // Return code
@@ -54171,29 +54504,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 { /* sqlite3.c:76417:20: */
+func Xsqlite3BtreeCursorHasHint(tls *libc.TLS, pCsr uintptr, mask uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77043: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 { /* sqlite3.c:76424:20: */
+func Xsqlite3BtreeIsReadonly(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77050: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 { /* sqlite3.c:76431:20: */
+func Xsqlite3HeaderSizeBtree(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77057: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 { /* sqlite3.c:76437:20: */
+func Xsqlite3BtreeSharable(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77063: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 { /* sqlite3.c:76446:20: */
+func Xsqlite3BtreeConnectionCount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77072:20: */
return (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnRef
}
@@ -54233,31 +54566,30 @@ func Xsqlite3BtreeConnectionCount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:76535:14: */
- bp := tls.Alloc(416)
- defer tls.Free(416)
+func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77161:14: */
+ bp := tls.Alloc(424)
+ defer tls.Free(424)
var i int32 = Xsqlite3FindDbName(tls, pDb, zDb)
if i == 1 {
- // var sParse Parse at bp+16, 400
+ // var sParse Parse at bp+16, 408
var rc int32 = 0
- libc.Xmemset(tls, bp+16, 0, uint64(unsafe.Sizeof(Parse{})))
- (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).Fdb = pDb
+ Xsqlite3ParseObjectInit(tls, bp+16, pDb)
if Xsqlite3OpenTempDatabase(tls, bp+16) != 0 {
- Xsqlite3ErrorWithMsg(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).Frc, ts+3604, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg))
+ Xsqlite3ErrorWithMsg(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).Frc, ts+3595, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg))
rc = SQLITE_ERROR
}
Xsqlite3DbFree(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)
- Xsqlite3ParserReset(tls, bp+16)
+ Xsqlite3ParseObjectReset(tls, bp+16)
if rc != 0 {
return uintptr(0)
}
}
if i < 0 {
- Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+4757, libc.VaList(bp+8, zDb))
+ Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+4766, libc.VaList(bp+8, zDb))
return uintptr(0)
}
@@ -54266,7 +54598,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 { /* sqlite3.c:76566:12: */
+func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77191: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
@@ -54276,9 +54608,9 @@ func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76566:12: */
// 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 { /* sqlite3.c:76578:12: */
+func checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77203:12: */
if Xsqlite3BtreeTxnState(tls, p) != SQLITE_TXN_NONE {
- Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+4777, 0)
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+4786, 0)
return SQLITE_ERROR
}
return SQLITE_OK
@@ -54290,7 +54622,7 @@ func checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlit
//
// 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 { /* sqlite3.c:76594:27: */
+func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcDb uintptr, zSrcDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77219:27: */
var p uintptr // Value to return
// Lock the source database handle. The destination database
@@ -54305,7 +54637,7 @@ func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcD
if pSrcDb == pDestDb {
Xsqlite3ErrorWithMsg(tls,
- pDestDb, SQLITE_ERROR, ts+4808, 0)
+ pDestDb, SQLITE_ERROR, ts+4817, 0)
p = uintptr(0)
} else {
// Allocate space for a new sqlite3_backup object...
@@ -54350,14 +54682,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 { /* sqlite3.c:76671:12: */
+func isFatalError(tls *libc.TLS, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77296: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 { /* sqlite3.c:76680:12: */
+func backupOnePage(tls *libc.TLS, p uintptr, iSrcPg Pgno, zSrcData uintptr, bUpdate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77305:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -54419,7 +54751,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 { /* sqlite3.c:76749:12: */
+func backupTruncateFile(tls *libc.TLS, pFile uintptr, iSize I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77374:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -54434,7 +54766,7 @@ func backupTruncateFile(tls *libc.TLS, pFile uintptr, iSize I64) int32 { /* sqli
// 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) { /* sqlite3.c:76762:13: */
+func attachBackupObject(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77387:13: */
var pp uintptr
pp = Xsqlite3PagerBackupPtr(tls, Xsqlite3BtreePager(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).FpSrc))
@@ -54444,7 +54776,7 @@ func attachBackupObject(tls *libc.TLS, p uintptr) { /* sqlite3.c:76762:13: */
}
// Copy nPage pages from the source b-tree to the destination.
-func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* sqlite3.c:76774:16: */
+func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77399:16: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -54682,7 +55014,7 @@ func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* sqli
}
// Release all resources associated with an sqlite3_backup* handle.
-func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77028:16: */
+func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77653:16: */
var pp uintptr // Ptr to head of pagers backup list
var pSrcDb uintptr // Source database connection
var rc int32 // Value to return
@@ -54740,13 +55072,13 @@ func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77028
// 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 { /* sqlite3.c:77082:16: */
+func Xsqlite3_backup_remaining(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77707: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 { /* sqlite3.c:77096:16: */
+func Xsqlite3_backup_pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77721:16: */
return int32((*Sqlite3_backup)(unsafe.Pointer(p)).FnPagecount)
}
@@ -54760,9 +55092,9 @@ func Xsqlite3_backup_pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77
// 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) { /* sqlite3.c:77118:29: */
+func backupUpdate(tls *libc.TLS, p uintptr, iPage Pgno, aData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77743:29: */
- for ok := true; ok; ok = libc.AssignUintptr(&p, (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext) != uintptr(0) {
+ for __ccgo := true; __ccgo; __ccgo = libc.AssignUintptr(&p, (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext) != uintptr(0) {
if !(isFatalError(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).Frc) != 0) && iPage < (*Sqlite3_backup)(unsafe.Pointer(p)).FiNext {
// The backup process p has already copied page iPage. But now it
@@ -54781,7 +55113,7 @@ func backupUpdate(tls *libc.TLS, p uintptr, iPage Pgno, aData uintptr) { /* sqli
}
}
-func Xsqlite3BackupUpdate(tls *libc.TLS, pBackup uintptr, iPage Pgno, aData uintptr) { /* sqlite3.c:77143:21: */
+func Xsqlite3BackupUpdate(tls *libc.TLS, pBackup uintptr, iPage Pgno, aData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77768:21: */
if pBackup != 0 {
backupUpdate(tls, pBackup, iPage, aData)
}
@@ -54796,7 +55128,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) { /* sqlite3.c:77158:21: */
+func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77783:21: */
var p uintptr // Iterator variable
for p = pBackup; p != 0; p = (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext {
@@ -54810,7 +55142,7 @@ func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* sqlite3.c:77158:
// 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 { /* sqlite3.c:77175:20: */
+func Xsqlite3BtreeCopyFile(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77800:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -54904,7 +55236,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) { /* sqlite3.c:77333:13: */
+func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77958:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -54919,7 +55251,7 @@ func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* sql
Xsqlite3Int64ToText(tls, *(*I64)(unsafe.Pointer(bp + 8 /* x */)), zBuf)
} else {
Xsqlite3StrAccumInit(tls, bp+16, uintptr(0), zBuf, sz, 0)
- Xsqlite3_str_appendf(tls, bp+16, ts+4848,
+ Xsqlite3_str_appendf(tls, bp+16, ts+4857,
libc.VaList(bp, func() float64 {
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_IntReal != 0 {
return float64(*(*I64)(unsafe.Pointer(p)))
@@ -54942,10 +55274,14 @@ func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* sql
// 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 { /* sqlite3.c:77426:20: */
+func Xsqlite3VdbeChangeEncoding(tls *libc.TLS, pMem uintptr, desiredEnc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78051:20: */
var rc int32
- if !(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0) || int32((*Mem)(unsafe.Pointer(pMem)).Fenc) == desiredEnc {
+ if !(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0) {
+ (*Mem)(unsafe.Pointer(pMem)).Fenc = U8(desiredEnc)
+ return SQLITE_OK
+ }
+ if int32((*Mem)(unsafe.Pointer(pMem)).Fenc) == desiredEnc {
return SQLITE_OK
}
@@ -54962,7 +55298,7 @@ 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 { /* sqlite3.c:77461:36: */
+func Xsqlite3VdbeMemGrow(tls *libc.TLS, pMem uintptr, n int32, bPreserve int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78090:36: */
// If the bPreserve flag is set to true, then the memory cell must already
// contain a valid string or blob value.
@@ -55018,7 +55354,7 @@ 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 { /* sqlite3.c:77524:20: */
+func Xsqlite3VdbeMemClearAndResize(tls *libc.TLS, pMem uintptr, szNew int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78153:20: */
if (*Mem)(unsafe.Pointer(pMem)).FszMalloc < szNew {
return Xsqlite3VdbeMemGrow(tls, pMem, szNew, 0)
@@ -55036,7 +55372,7 @@ 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 { /* sqlite3.c:77545:28: */
+func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78174:28: */
if Xsqlite3VdbeMemGrow(tls, pMem, (*Mem)(unsafe.Pointer(pMem)).Fn+3, 1) != 0 {
return SQLITE_NOMEM
}
@@ -55051,7 +55387,7 @@ func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:7754
// 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 { /* sqlite3.c:77562:20: */
+func Xsqlite3VdbeMemMakeWriteable(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78191:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
if func() int32 {
@@ -55076,7 +55412,7 @@ func Xsqlite3VdbeMemMakeWriteable(tls *libc.TLS, pMem uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:77586:20: */
+func Xsqlite3VdbeMemExpandBlob(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78215:20: */
var nByte int32
// Set nByte to the number of bytes required to store the expanded blob.
@@ -55098,7 +55434,7 @@ func Xsqlite3VdbeMemExpandBlob(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c
}
// Make sure the given Mem is \u0000 terminated.
-func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:77617:20: */
+func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78246:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Term|MEM_Str) != MEM_Str {
return SQLITE_OK // Nothing to do
@@ -55120,7 +55456,7 @@ func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:77643:20: */
+func Xsqlite3VdbeMemStringify(tls *libc.TLS, pMem uintptr, enc U8, bForce U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78272:20: */
var nByte int32 = 32
if Xsqlite3VdbeMemClearAndResize(tls, pMem, nByte) != 0 {
@@ -55146,7 +55482,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 { /* sqlite3.c:77678:20: */
+func Xsqlite3VdbeMemFinalize(tls *libc.TLS, pMem uintptr, pFunc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78307:20: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -55176,7 +55512,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 { /* sqlite3.c:77709:20: */
+func Xsqlite3VdbeMemAggValue(tls *libc.TLS, pAccum uintptr, pOut uintptr, pFunc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78338:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -55198,7 +55534,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) { /* sqlite3.c:77734:29: */
+func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78363:29: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Agg != 0 {
Xsqlite3VdbeMemFinalize(tls, p, *(*uintptr)(unsafe.Pointer(p)))
@@ -55217,7 +55553,7 @@ func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* sqlite3.c:77734
// 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) { /* sqlite3.c:77757:29: */
+func vdbeMemClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78386:29: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeMemClearExternAndSetNull(tls, p)
}
@@ -55236,7 +55572,7 @@ func vdbeMemClear(tls *libc.TLS, p uintptr) { /* sqlite3.c:77757:29: */
//
// Use sqlite3VdbeMemSetNull() to release just the Mem.xDel space
// prior to inserting new content into the Mem.
-func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:77778:21: */
+func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78407:21: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 || (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 {
vdbeMemClear(tls, p)
@@ -55246,7 +55582,7 @@ func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:77778:21: *
// 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 { /* sqlite3.c:77790:28: */
+func doubleToInt64(tls *libc.TLS, r float64) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78419:28: */
if r <= float64(minInt) {
return minInt
@@ -55258,8 +55594,8 @@ func doubleToInt64(tls *libc.TLS, r float64) I64 { /* sqlite3.c:77790:28: */
return I64(0)
}
-var maxInt I64 = int64(0xffffffff) | I64(int64(0x7fffffff))<<32 /* sqlite3.c:77802:20 */
-var minInt I64 = int64(-1) - (int64(0xffffffff) | I64(int64(0x7fffffff))<<32) /* sqlite3.c:77803:20 */
+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 */
// Return some kind of integer value which is the best we can do
// at representing the value that *pMem describes as an integer.
@@ -55270,7 +55606,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 { /* sqlite3.c:77826:28: */
+func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78455:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55279,7 +55615,7 @@ func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:77826:28: */
return *(*I64)(unsafe.Pointer(bp /* value */))
}
-func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:77831:20: */
+func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78460:20: */
var flags int32
flags = int32((*Mem)(unsafe.Pointer(pMem)).Fflags)
@@ -55300,7 +55636,7 @@ func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:77831:
// 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 { /* sqlite3.c:77855:31: */
+func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78484:31: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55310,7 +55646,7 @@ func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:77855:31:
return *(*float64)(unsafe.Pointer(bp /* val */))
}
-func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:77861:23: */
+func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78490:23: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Real != 0 {
return *(*float64)(unsafe.Pointer(pMem))
@@ -55328,7 +55664,7 @@ func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:7
// 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 { /* sqlite3.c:77882:20: */
+func Xsqlite3VdbeBooleanValue(tls *libc.TLS, pMem uintptr, ifNull int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78511:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
return libc.Bool32(*(*I64)(unsafe.Pointer(pMem)) != int64(0))
@@ -55341,7 +55677,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) { /* sqlite3.c:77893:21: */
+func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78522:21: */
var ix I64
ix = doubleToInt64(tls, *(*float64)(unsafe.Pointer(pMem)))
@@ -55362,7 +55698,7 @@ func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* sqlite3.c:778
}
// Convert pMem to type integer. Invalidate any prior representations.
-func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:77922:20: */
+func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78551: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)
@@ -55371,7 +55707,7 @@ func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c
// Convert pMem so that it is of type MEM_Real.
// Invalidate any prior representations.
-func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:77937:20: */
+func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78566: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)
@@ -55386,7 +55722,7 @@ func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:77
// 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 { /* sqlite3.c:77956:20: */
+func Xsqlite3RealSameAsInt(tls *libc.TLS, r1 float64, i Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78585:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp)) = r1
@@ -55403,7 +55739,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 { /* sqlite3.c:77971:20: */
+func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78600:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55430,7 +55766,7 @@ func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:7
// 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 { /* sqlite3.c:78004:20: */
+func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78633:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Null != 0 {
return SQLITE_OK
}
@@ -55484,7 +55820,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) { /* sqlite3.c:78047:21: */
+func Xsqlite3VdbeMemInit(tls *libc.TLS, pMem uintptr, db uintptr, flags U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78676:21: */
(*Mem)(unsafe.Pointer(pMem)).Fflags = flags
(*Mem)(unsafe.Pointer(pMem)).Fdb = db
@@ -55501,7 +55837,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) { /* sqlite3.c:78067:21: */
+func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78696:21: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeMemClearExternAndSetNull(tls, pMem)
} else {
@@ -55509,13 +55845,13 @@ func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* sqlite3.c:78067:21
}
}
-func Xsqlite3ValueSetNull(tls *libc.TLS, p uintptr) { /* sqlite3.c:78074:21: */
+func Xsqlite3ValueSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78703: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) { /* sqlite3.c:78083:21: */
+func Xsqlite3VdbeMemSetZeroBlob(tls *libc.TLS, pMem uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78712:21: */
Xsqlite3VdbeMemRelease(tls, pMem)
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Blob | MEM_Zero)
(*Mem)(unsafe.Pointer(pMem)).Fn = 0
@@ -55530,7 +55866,7 @@ func Xsqlite3VdbeMemSetZeroBlob(tls *libc.TLS, pMem uintptr, n int32) { /* sqlit
// 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) { /* sqlite3.c:78113:29: */
+func vdbeReleaseAndSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78742:29: */
Xsqlite3VdbeMemSetNull(tls, pMem)
*(*I64)(unsafe.Pointer(pMem)) = val
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
@@ -55538,7 +55874,7 @@ func vdbeReleaseAndSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* sqlite3.c
// 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) { /* sqlite3.c:78123:21: */
+func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78752:21: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeReleaseAndSetInt64(tls, pMem, val)
} else {
@@ -55548,19 +55884,20 @@ func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* sqlite3.
}
// A no-op destructor
-func Xsqlite3NoopDestructor(tls *libc.TLS, p uintptr) { /* sqlite3.c:78133:21: */
+func Xsqlite3NoopDestructor(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78762: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) { /* sqlite3.c:78139:21: */
+func Xsqlite3VdbeMemSetPointer(tls *libc.TLS, pMem uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78768:21: */
+ vdbeMemClear(tls, pMem)
*(*uintptr)(unsafe.Pointer(pMem)) = func() uintptr {
if zPType != 0 {
return zPType
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()
(*Mem)(unsafe.Pointer(pMem)).Fz = pPtr
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null | MEM_Dyn | MEM_Subtype | MEM_Term)
@@ -55575,7 +55912,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) { /* sqlite3.c:78158:21: */
+func Xsqlite3VdbeMemSetDouble(tls *libc.TLS, pMem uintptr, val float64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78788:21: */
Xsqlite3VdbeMemSetNull(tls, pMem)
if !(Xsqlite3IsNaN(tls, val) != 0) {
*(*float64)(unsafe.Pointer(pMem)) = val
@@ -55588,7 +55925,7 @@ func Xsqlite3VdbeMemSetDouble(tls *libc.TLS, pMem uintptr, val float64) { /* sql
//
// Return SQLITE_OK on success and SQLITE_NOMEM if a memory allocation
// error occurs.
-func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78185:20: */
+func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78815:20: */
var db uintptr = (*Mem)(unsafe.Pointer(pMem)).Fdb
var p uintptr
@@ -55605,7 +55942,7 @@ func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:
// 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 { /* sqlite3.c:78203:20: */
+func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78833:20: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
var n int32 = (*Mem)(unsafe.Pointer(p)).Fn
@@ -55621,13 +55958,13 @@ func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:78203:
// 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) { /* sqlite3.c:78259:29: */
+func vdbeClrCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, eType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78889:29: */
vdbeMemClearExternAndSetNull(tls, pTo)
Xsqlite3VdbeMemShallowCopy(tls, pTo, pFrom, eType)
}
-func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcType int32) { /* sqlite3.c:78264:21: */
+func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78894:21: */
if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeClrCopy(tls, pTo, pFrom, srcType)
@@ -55643,7 +55980,7 @@ func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcTy
// 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 { /* sqlite3.c:78280:20: */
+func Xsqlite3VdbeMemCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78910:20: */
var rc int32 = SQLITE_OK
if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
@@ -55665,7 +56002,7 @@ func Xsqlite3VdbeMemCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* s
// 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) { /* sqlite3.c:78303:21: */
+func Xsqlite3VdbeMemMove(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78933:21: */
Xsqlite3VdbeMemRelease(tls, pTo)
libc.Xmemcpy(tls, pTo, pFrom, uint64(unsafe.Sizeof(Mem{})))
@@ -55686,7 +56023,7 @@ func Xsqlite3VdbeMemMove(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* sqlite3
// 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 { /* sqlite3.c:78329:20: */
+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
@@ -55748,7 +56085,9 @@ 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) }{Xsqlite3OomFault})) {
+ if xDel == *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
+ }{Xsqlite3OomFault})) {
(*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 {
@@ -55797,11 +56136,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 { /* sqlite3.c:78438:20: */
+func Xsqlite3VdbeMemFromBtree(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79068:20: */
var rc int32
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null)
if Xsqlite3BtreeMaxRecordSize(tls, pCur) < Sqlite3_int64(offset+amt) {
- return Xsqlite3CorruptError(tls, 78447)
+ return Xsqlite3CorruptError(tls, 79077)
}
if SQLITE_OK == libc.AssignInt32(&rc, Xsqlite3VdbeMemClearAndResize(tls, pMem, int32(amt+U32(1)))) {
rc = Xsqlite3BtreePayload(tls, pCur, offset, amt, (*Mem)(unsafe.Pointer(pMem)).Fz)
@@ -55816,7 +56155,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 { /* sqlite3.c:78461:20: */
+func Xsqlite3VdbeMemFromBtreeZeroOffset(tls *libc.TLS, pCur uintptr, amt U32, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79091:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -55841,7 +56180,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 { /* sqlite3.c:78493:35: */
+func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79123:35: */
if int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&(MEM_Blob|MEM_Str) != 0 {
if func() int32 {
@@ -55886,7 +56225,7 @@ func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* sqlite3.c:784
// (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 { /* sqlite3.c:78536:27: */
+func Xsqlite3ValueText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79166:27: */
if !(pVal != 0) {
return uintptr(0)
}
@@ -55902,7 +56241,7 @@ func Xsqlite3ValueText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* sqlite3
}
// Create a new sqlite3_value object.
-func Xsqlite3ValueNew(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:78554:30: */
+func Xsqlite3ValueNew(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79184:30: */
var p uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Mem{})))
if p != 0 {
(*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Null)
@@ -55919,7 +56258,7 @@ type ValueNewStat4Ctx = struct {
FppRec uintptr
FiVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:78567:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79197: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
@@ -55930,7 +56269,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 { /* sqlite3.c:78585:22: */
+func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79215:22: */
if p != 0 {
var pRec uintptr = *(*uintptr)(unsafe.Pointer((*ValueNewStat4Ctx)(unsafe.Pointer(p)).FppRec))
@@ -55986,7 +56325,7 @@ func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:78585
// 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 { /* sqlite3.c:78647:12: */
+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: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -56076,7 +56415,7 @@ __9:
goto __10
}
rc = (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).FisError
- Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+3604, libc.VaList(bp, Xsqlite3_value_text(tls, pVal)))
+ Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+3595, libc.VaList(bp, Xsqlite3_value_text(tls, pVal)))
goto __11
__10:
Xsqlite3ValueApplyAffinity(tls, pVal, aff, uint8(SQLITE_UTF8))
@@ -56132,7 +56471,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 { /* sqlite3.c:78743:12: */
+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: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -56148,7 +56487,7 @@ func valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8
zVal = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 16 /* pVal */)) = uintptr(0)
negInt = 1
- zNeg = ts + 1546 /* "" */
+ zNeg = ts + 1515 /* "" */
rc = SQLITE_OK
__1:
@@ -56198,7 +56537,7 @@ __4:
pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
op = int32((*Expr)(unsafe.Pointer(pExpr)).Fop)
negInt = -1
- zNeg = ts + 4855 /* "-" */
+ zNeg = ts + 4864 /* "-" */
__6:
;
@@ -56218,14 +56557,16 @@ __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+4857, libc.VaList(bp, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ zVal = Xsqlite3MPrintf(tls, db, ts+4866, 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) }{Xsqlite3OomFault})))
+ Xsqlite3ValueSetStr(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pVal */)), -1, zVal, uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
+ }{Xsqlite3OomFault})))
__11:
;
if !((op == TK_INTEGER || op == TK_FLOAT) && int32(affinity) == SQLITE_AFF_BLOB) {
@@ -56313,7 +56654,9 @@ __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) }{Xsqlite3OomFault})))
+ uint8(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
+ }{Xsqlite3OomFault})))
goto __28
__27:
if !(op == TK_FUNCTION && pCtx != uintptr(0)) {
@@ -56376,7 +56719,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 { /* sqlite3.c:78902:20: */
+func Xsqlite3ValueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79528:20: */
if pExpr != 0 {
return valueFromExpr(tls, db, pExpr, enc, affinity, ppVal, uintptr(0))
}
@@ -56399,7 +56742,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 { /* sqlite3.c:78931:12: */
+func stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, pAlloc uintptr, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79557:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -56467,7 +56810,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 { /* sqlite3.c:79006:20: */
+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: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -56512,7 +56855,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 { /* sqlite3.c:79051:20: */
+func Xsqlite3Stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79677:20: */
return stat4ValueFromExpr(tls, pParse, pExpr, affinity, uintptr(0), ppVal)
}
@@ -56522,7 +56865,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 { /* sqlite3.c:79068:20: */
+func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79694:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -56543,7 +56886,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, 79086)
+ return Xsqlite3CorruptError(tls, 79712)
}
iField = *(*int32)(unsafe.Pointer(bp /* nHdr */))
for i = 0; i <= iCol; i++ {
@@ -56558,14 +56901,14 @@ func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
}())
if iHdr > *(*int32)(unsafe.Pointer(bp)) {
- return Xsqlite3CorruptError(tls, 79092)
+ return Xsqlite3CorruptError(tls, 79718)
}
szField = int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 4 /* t */))))
iField = iField + szField
}
if iField > nRec {
- return Xsqlite3CorruptError(tls, 79098)
+ return Xsqlite3CorruptError(tls, 79724)
}
if pMem == uintptr(0) {
pMem = libc.AssignPtrUintptr(ppVal, Xsqlite3ValueNew(tls, db))
@@ -56581,7 +56924,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) { /* sqlite3.c:79113:21: */
+func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79739:21: */
if pRec != 0 {
var i int32
var nCol int32 = int32((*KeyInfo)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pRec)).FpKeyInfo)).FnAllField)
@@ -56596,14 +56939,14 @@ func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* sqlite3.c:79113:21
}
// Change the string value of an sqlite3_value object
-func Xsqlite3ValueSetStr(tls *libc.TLS, v uintptr, n int32, z uintptr, enc U8, xDel uintptr) { /* sqlite3.c:79131:21: */
+func Xsqlite3ValueSetStr(tls *libc.TLS, v uintptr, n int32, z uintptr, enc U8, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79757:21: */
if v != 0 {
Xsqlite3VdbeMemSetStr(tls, v, z, int64(n), enc, xDel)
}
}
// Free an sqlite3_value object
-func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* sqlite3.c:79144:21: */
+func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79770:21: */
if !(v != 0) {
return
}
@@ -56614,14 +56957,14 @@ func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* sqlite3.c:79144:21: */
// 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 { /* sqlite3.c:79155:28: */
+func valueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79781: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 { /* sqlite3.c:79158:20: */
+func Xsqlite3ValueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79784:20: */
var p uintptr = pVal
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Str != 0 && int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fenc) == int32(enc) {
@@ -56641,7 +56984,7 @@ func Xsqlite3ValueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* sqlite3.
}
// Create a new virtual database engine.
-func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* sqlite3.c:79201:21: */
+func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79827:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var p uintptr
p = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(Vdbe{})))
@@ -56665,12 +57008,12 @@ func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* sqlite3.c:79
}
// Return the Parse object that owns a Vdbe object.
-func Xsqlite3VdbeParser(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:79228:22: */
+func Xsqlite3VdbeParser(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79854: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) { /* sqlite3.c:79235:21: */
+func Xsqlite3VdbeError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79861:21: */
var ap Va_list
_ = ap
Xsqlite3DbFree(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)
@@ -56680,7 +57023,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) { /* sqlite3.c:79246:21: */
+func Xsqlite3VdbeSetSql(tls *libc.TLS, p uintptr, z uintptr, n int32, prepFlags U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79872:21: */
if p == uintptr(0) {
return
}
@@ -56693,7 +57036,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) { /* sqlite3.c:79296:21: */
+func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79922:21: */
var tmp Vdbe
var pTmp uintptr
var zTmp uintptr
@@ -56712,7 +57055,7 @@ func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* sqlite3.c:7929
(*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([7]U32{})))
+ libc.Xmemcpy(tls, pB+220, pA+220, uint64(unsafe.Sizeof([9]U32{})))
*(*U32)(unsafe.Pointer(pB + 220 + 5*4))++
}
@@ -56724,7 +57067,7 @@ func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* sqlite3.c:7929
// 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 { /* sqlite3.c:79333:12: */
+func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79959:12: */
var pNew uintptr
var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse
@@ -56777,7 +57120,7 @@ func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* sqlite3.c:79333
// 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 { /* sqlite3.c:79404:28: */
+func growOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80030:28: */
if growOpArray(tls, p, 1) != 0 {
return 1
@@ -56786,7 +57129,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 { /* sqlite3.c:79410:20: */
+func Xsqlite3VdbeAddOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80036:20: */
var i int32
var pOp uintptr
@@ -56809,26 +57152,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 { /* sqlite3.c:79449:20: */
+func Xsqlite3VdbeAddOp0(tls *libc.TLS, p uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80075:20: */
return Xsqlite3VdbeAddOp3(tls, p, op, 0, 0, 0)
}
-func Xsqlite3VdbeAddOp1(tls *libc.TLS, p uintptr, op int32, p1 int32) int32 { /* sqlite3.c:79452:20: */
+func Xsqlite3VdbeAddOp1(tls *libc.TLS, p uintptr, op int32, p1 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80078:20: */
return Xsqlite3VdbeAddOp3(tls, p, op, p1, 0, 0)
}
-func Xsqlite3VdbeAddOp2(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32) int32 { /* sqlite3.c:79455:20: */
+func Xsqlite3VdbeAddOp2(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80081: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 { /* sqlite3.c:79461:20: */
+func Xsqlite3VdbeGoto(tls *libc.TLS, p uintptr, iDest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80087: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 { /* sqlite3.c:79468:20: */
+func Xsqlite3VdbeLoadString(tls *libc.TLS, p uintptr, iDest int32, zStr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80094:20: */
return Xsqlite3VdbeAddOp4(tls, p, OP_String8, 0, iDest, 0, zStr, 0)
}
@@ -56841,7 +57184,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) { /* sqlite3.c:79483:21: */
+func Xsqlite3VdbeMultiLoad(tls *libc.TLS, p uintptr, iDest int32, zTypes uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80109:21: */
var ap Va_list
_ = ap
var i int32
@@ -56889,7 +57232,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 { /* sqlite3.c:79506:20: */
+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: */
var addr int32 = Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, p3)
Xsqlite3VdbeChangeP4(tls, p, addr, zP4, p4type)
return addr
@@ -56903,7 +57246,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 { /* sqlite3.c:79530:20: */
+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: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var nByte int32
var addr int32
@@ -56935,7 +57278,7 @@ func Xsqlite3VdbeAddFunctionCall(tls *libc.TLS, pParse uintptr, p1 int32, p2 int
// 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 { /* sqlite3.c:79567:20: */
+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: */
var p4copy uintptr = Xsqlite3DbMallocRawNN(tls, Xsqlite3VdbeDb(tls, p), uint64(8))
if p4copy != 0 {
libc.Xmemcpy(tls, p4copy, zP4, uint64(8))
@@ -56945,7 +57288,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 { /* sqlite3.c:79586:20: */
+func Xsqlite3VdbeExplainParent(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80212:20: */
var pOp uintptr
if (*Parse)(unsafe.Pointer(pParse)).FaddrExplain == 0 {
return 0
@@ -56961,7 +57304,7 @@ func Xsqlite3VdbeExplainParent(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3
//
// 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) { /* sqlite3.c:79610:21: */
+func Xsqlite3VdbeExplain(tls *libc.TLS, pParse uintptr, bPush U8, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80236: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 {
@@ -56985,7 +57328,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) { /* sqlite3.c:79638:21: */
+func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80264:21: */
(*Parse)(unsafe.Pointer(pParse)).FaddrExplain = Xsqlite3VdbeExplainParent(tls, pParse)
}
@@ -56996,7 +57339,7 @@ func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:79638:
//
// 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) { /* sqlite3.c:79652:21: */
+func Xsqlite3VdbeAddParseSchemaOp(tls *libc.TLS, p uintptr, iDb int32, zWhere uintptr, p5 U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80278:21: */
var j int32
Xsqlite3VdbeAddOp4(tls, p, OP_ParseSchema, iDb, 0, 0, zWhere, -7)
Xsqlite3VdbeChangeP5(tls, p, p5)
@@ -57007,7 +57350,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 { /* sqlite3.c:79663:20: */
+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: */
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
@@ -57018,7 +57361,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) { /* sqlite3.c:79682:21: */
+func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80308:21: */
Xsqlite3VdbeAddOp1(tls, v, OP_EndCoroutine, regYield)
// Clear the temporary register cache, thereby ensuring that each
@@ -57053,14 +57396,14 @@ func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* sql
// 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 { /* sqlite3.c:79720:20: */
+func Xsqlite3VdbeMakeLabel(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80346: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) { /* sqlite3.c:79729:29: */
+func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80355: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)))))
@@ -57072,7 +57415,7 @@ func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* sqlit
}
}
-func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* sqlite3.c:79744:21: */
+func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80370:21: */
var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse
var j int32 = ^x
@@ -57085,12 +57428,12 @@ func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* sqlite3.c:
}
// Mark the VDBE as one that can only be run one time.
-func Xsqlite3VdbeRunOnlyOnce(tls *libc.TLS, p uintptr) { /* sqlite3.c:79766:21: */
+func Xsqlite3VdbeRunOnlyOnce(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80392:21: */
libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 5, 0x20)
}
// Mark the VDBE as one that can only be run multiple times.
-func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* sqlite3.c:79773:21: */
+func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80399:21: */
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 5, 0x20)
}
@@ -57113,7 +57456,7 @@ func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* sqlite3.c:79773:21: */
// 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) { /* sqlite3.c:79969:13: */
+func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80595:13: */
var nMaxArgs int32 = *(*int32)(unsafe.Pointer(pMaxFuncArgs))
var pOp uintptr
var pParse uintptr = (*Vdbe)(unsafe.Pointer(p)).FpParse
@@ -57242,7 +57585,7 @@ func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* sqlite
}
// Return the address of the next instruction to be inserted.
-func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:80071:20: */
+func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80697:20: */
return (*Vdbe)(unsafe.Pointer(p)).FnOp
}
@@ -57273,7 +57616,7 @@ func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:8007
// 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 { /* sqlite3.c:80128:23: */
+func Xsqlite3VdbeTakeOpArray(tls *libc.TLS, p uintptr, pnOp uintptr, pnMaxArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80754:23: */
var aOp uintptr = (*Vdbe)(unsafe.Pointer(p)).FaOp
// Check that sqlite3VdbeUsesBtree() was not called on this VM
@@ -57289,7 +57632,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 { /* sqlite3.c:80148:23: */
+func Xsqlite3VdbeAddOpList(tls *libc.TLS, p uintptr, nOp int32, aOp uintptr, iLineno int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80774:23: */
var i int32
var pOut uintptr
var pFirst uintptr
@@ -57333,23 +57676,23 @@ __3:
// 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) { /* sqlite3.c:80224:21: */
+func Xsqlite3VdbeChangeOpcode(tls *libc.TLS, p uintptr, addr int32, iNewOpcode U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80850:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fopcode = iNewOpcode
}
-func Xsqlite3VdbeChangeP1(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80227:21: */
+func Xsqlite3VdbeChangeP1(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80853:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp1 = val
}
-func Xsqlite3VdbeChangeP2(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80230:21: */
+func Xsqlite3VdbeChangeP2(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80856:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp2 = val
}
-func Xsqlite3VdbeChangeP3(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80233:21: */
+func Xsqlite3VdbeChangeP3(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80859:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp3 = val
}
-func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* sqlite3.c:80236:21: */
+func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80862: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
@@ -57358,7 +57701,7 @@ func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* sqlite3.c:80236
// 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) { /* sqlite3.c:80245:21: */
+func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80871:21: */
Xsqlite3VdbeChangeP2(tls, p, addr, (*Vdbe)(unsafe.Pointer(p)).FnOp)
}
@@ -57373,7 +57716,7 @@ func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* sqlite3.c:8
//
// 7 Once 0 8 0
// 8 ...
-func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* sqlite3.c:80262:21: */
+func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80888:21: */
if addr == (*Vdbe)(unsafe.Pointer(p)).FnOp-1 {
(*Vdbe)(unsafe.Pointer(p)).FnOp--
@@ -57384,26 +57727,26 @@ func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* sq
// 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) { /* sqlite3.c:80282:13: */
+func freeEphemeralFunction(tls *libc.TLS, db uintptr, pDef uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80908: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) { /* sqlite3.c:80291:29: */
+func freeP4Mem(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80917: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) { /* sqlite3.c:80295:29: */
+func freeP4FuncCtx(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80921: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) { /* sqlite3.c:80299:13: */
+func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80925:13: */
switch p4type {
case -16:
@@ -57464,7 +57807,7 @@ func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* sqlite3.c:
// 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) { /* sqlite3.c:80348:13: */
+func vdbeFreeOpArray(tls *libc.TLS, db uintptr, aOp uintptr, nOp int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80974:13: */
if aOp != 0 {
var pOp uintptr
for pOp = aOp + uintptr(nOp-1)*24; pOp >= aOp; pOp -= 24 {
@@ -57479,18 +57822,18 @@ func vdbeFreeOpArray(tls *libc.TLS, db uintptr, aOp uintptr, nOp int32) { /* sql
// 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) { /* sqlite3.c:80366:21: */
+func Xsqlite3VdbeLinkSubProgram(tls *libc.TLS, pVdbe uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80992: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 { /* sqlite3.c:80374:20: */
+func Xsqlite3VdbeHasSubProgram(tls *libc.TLS, pVdbe uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81000: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 { /* sqlite3.c:80381:20: */
+func Xsqlite3VdbeChangeToNoop(tls *libc.TLS, p uintptr, addr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81007:20: */
var pOp uintptr
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 {
return 0
@@ -57506,7 +57849,7 @@ func Xsqlite3VdbeChangeToNoop(tls *libc.TLS, p uintptr, addr int32) int32 { /* s
// 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 { /* sqlite3.c:80397:20: */
+func Xsqlite3VdbeDeletePriorOpcode(tls *libc.TLS, p uintptr, op U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81023: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 {
@@ -57530,7 +57873,7 @@ func Xsqlite3VdbeDeletePriorOpcode(tls *libc.TLS, p uintptr, op U8) int32 { /* s
// 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) { /* sqlite3.c:80457:29: */
+func vdbeChangeP4Full(tls *libc.TLS, p uintptr, pOp uintptr, zP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81083: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)
@@ -57547,7 +57890,7 @@ func vdbeChangeP4Full(tls *libc.TLS, p uintptr, pOp uintptr, zP4 uintptr, n int3
}
}
-func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n int32) { /* sqlite3.c:80476:21: */
+func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81102:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = zP4
@@ -57594,7 +57937,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) { /* sqlite3.c:80519:21: */
+func Xsqlite3VdbeAppendP4(tls *libc.TLS, p uintptr, pP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81145:21: */
var pOp uintptr
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 {
@@ -57610,7 +57953,7 @@ func Xsqlite3VdbeAppendP4(tls *libc.TLS, p uintptr, pP4 uintptr, n int32) { /* s
// 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) { /* sqlite3.c:80539:21: */
+func Xsqlite3VdbeSetP4KeyInfo(tls *libc.TLS, pParse uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81165:21: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var pKeyInfo uintptr
@@ -57631,7 +57974,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 { /* sqlite3.c:80606:23: */ // Ignore the MSVC warning about no initializer
+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
if addr < 0 {
addr = (*Vdbe)(unsafe.Pointer(p)).FnOp - 1
@@ -57645,11 +57988,11 @@ func Xsqlite3VdbeGetOp(tls *libc.TLS, p uintptr, addr int32) uintptr { /* sqlite
return uintptr(0)
}
-var dummy VdbeOp /* sqlite3.c:80609:17: */
+var dummy VdbeOp /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81234: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 { /* sqlite3.c:80810:21: */
+func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81435:21: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -57663,34 +58006,34 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
var j int32
var pKeyInfo uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16))
- Xsqlite3_str_appendf(tls, bp+144, ts+4862, libc.VaList(bp, int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4871, 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
if pColl != 0 {
zColl = (*CollSeq)(unsafe.Pointer(pColl)).FzName
} else {
- zColl = ts + 1546 /* "" */
+ zColl = ts + 1515 /* "" */
}
- if libc.Xstrcmp(tls, zColl, ts+1073) == 0 {
- zColl = ts + 4867 /* "B" */
+ if libc.Xstrcmp(tls, zColl, ts+1060) == 0 {
+ zColl = ts + 4876 /* "B" */
}
- Xsqlite3_str_appendf(tls, bp+144, ts+4869,
+ Xsqlite3_str_appendf(tls, bp+144, ts+4878,
libc.VaList(bp+8, func() uintptr {
if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_DESC != 0 {
- return ts + 4855 /* "-" */
+ return ts + 4864 /* "-" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
func() uintptr {
if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_BIGNULL != 0 {
- return ts + 4877 /* "N." */
+ return ts + 4886 /* "N." */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
zColl))
}
- Xsqlite3_str_append(tls, bp+144, ts+4880, 1)
+ Xsqlite3_str_append(tls, bp+144, ts+4889, 1)
break
}
@@ -57698,7 +58041,7 @@ 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+4882, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName,
+ Xsqlite3_str_appendf(tls, bp+144, ts+4891, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName,
encnames[(*CollSeq)(unsafe.Pointer(pColl)).Fenc]))
break
@@ -57706,32 +58049,32 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
case -8:
{
var pDef uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16))
- Xsqlite3_str_appendf(tls, bp+144, ts+4891, libc.VaList(bp+48, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg)))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4900, libc.VaList(bp+48, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg)))
break
}
case -16:
{
var pDef uintptr = (*Sqlite3_context)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpFunc
- Xsqlite3_str_appendf(tls, bp+144, ts+4891, libc.VaList(bp+64, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg)))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4900, libc.VaList(bp+64, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg)))
break
}
case -14:
{
- Xsqlite3_str_appendf(tls, bp+144, ts+1330, libc.VaList(bp+80, *(*I64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1295, libc.VaList(bp+80, *(*I64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
break
}
case -3:
{
- Xsqlite3_str_appendf(tls, bp+144, ts+4898, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4907, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16))))
break
}
case -13:
{
- Xsqlite3_str_appendf(tls, bp+144, ts+1324, libc.VaList(bp+96, *(*float64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1289, libc.VaList(bp+96, *(*float64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
break
}
@@ -57741,14 +58084,14 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0 {
zP4 = (*Mem)(unsafe.Pointer(pMem)).Fz
} else if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
- Xsqlite3_str_appendf(tls, bp+144, ts+1330, libc.VaList(bp+104, *(*I64)(unsafe.Pointer(pMem))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1295, libc.VaList(bp+104, *(*I64)(unsafe.Pointer(pMem))))
} else if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Real != 0 {
- Xsqlite3_str_appendf(tls, bp+144, ts+1324, libc.VaList(bp+112, *(*float64)(unsafe.Pointer(pMem))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1289, libc.VaList(bp+112, *(*float64)(unsafe.Pointer(pMem))))
} else if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Null != 0 {
- zP4 = ts + 1547 /* "NULL" */
+ zP4 = ts + 1516 /* "NULL" */
} else {
- zP4 = ts + 4901 /* "(blob)" */
+ zP4 = ts + 4910 /* "(blob)" */
}
break
@@ -57756,7 +58099,7 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
case -12:
{
var pVtab uintptr = (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab
- Xsqlite3_str_appendf(tls, bp+144, ts+4908, libc.VaList(bp+120, pVtab))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4917, libc.VaList(bp+120, pVtab))
break
}
@@ -57767,20 +58110,20 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
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+4916, libc.VaList(bp+128, func() int32 {
+ Xsqlite3_str_appendf(tls, bp+144, ts+4925, 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+4921, 1)
+ Xsqlite3_str_append(tls, bp+144, ts+4930, 1)
break
}
case -4:
{
- zP4 = ts + 4923 /* "program" */
+ zP4 = ts + 4932 /* "program" */
break
}
@@ -57812,7 +58155,7 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
return Xsqlite3StrAccumFinish(tls, bp+144)
}
-var encnames = [4]uintptr{ts + 4931, ts + 4933, ts + 4935, ts + 4940} /* sqlite3.c:80840:25 */
+var encnames = [4]uintptr{ts + 4940, ts + 4942, ts + 4944, ts + 4949} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81465:25 */
// Declare to the Vdbe that the BTree object at db->aDb[i] is used.
//
@@ -57820,7 +58163,7 @@ var encnames = [4]uintptr{ts + 4931, ts + 4933, ts + 4935, ts + 4940} /* sqlite3
// 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) { /* sqlite3.c:80935:21: */
+func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81560:21: */
*(*YDbMask)(unsafe.Pointer(p + 212)) |= 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 {
@@ -57847,7 +58190,7 @@ func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* sqlite3.c:809
// 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) { /* sqlite3.c:80966:21: */
+func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81591:21: */
var i int32
var db uintptr
var aDb uintptr
@@ -57866,7 +58209,7 @@ func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:80966:21: */
}
// Unlock all of the btrees previously locked by a call to sqlite3VdbeEnter().
-func vdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:80987:29: */
+func vdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81612:29: */
var i int32
var db uintptr
var aDb uintptr
@@ -57881,7 +58224,7 @@ func vdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:80987:29: */
}
}
-func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81001:21: */
+func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81626:21: */
if (*Vdbe)(unsafe.Pointer(p)).FlockMask == YDbMask(0) {
return
} // The common case
@@ -57889,7 +58232,7 @@ func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81001:21: */
}
// Initialize an array of N Mem element.
-func initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags U16) { /* sqlite3.c:81043:13: */
+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
@@ -57899,19 +58242,19 @@ func initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags U16) { /*
}
// Release an array of N Mem elements
-func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* sqlite3.c:81058:13: */
+func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81683:13: */
if p != 0 && N != 0 {
var pEnd uintptr = p + uintptr(N)*56
var db uintptr = (*Mem)(unsafe.Pointer(p)).Fdb
if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed != 0 {
- for ok := true; ok; ok = libc.PreIncUintptr(&p, 56) < pEnd {
+ for __ccgo := true; __ccgo; __ccgo = libc.PreIncUintptr(&p, 56) < pEnd {
if (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 {
Xsqlite3DbFree(tls, db, (*Mem)(unsafe.Pointer(p)).FzMalloc)
}
}
return
}
- for ok1 := true; ok1; ok1 = libc.PreIncUintptr(&p, 56) < pEnd {
+ for __ccgo1 := true; __ccgo1; __ccgo1 = libc.PreIncUintptr(&p, 56) < pEnd {
// This block is really an inlined version of sqlite3VdbeMemRelease()
// that takes advantage of the fact that the memory cell value is
@@ -57943,7 +58286,7 @@ func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* sqlite3.c:81058:13:
//
// 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) { /* sqlite3.c:81120:21: */
+func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81745:21: */
var pFrame uintptr = pArg
(*VdbeFrame)(unsafe.Pointer(pFrame)).FpParent = (*Vdbe)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer(pFrame)).Fv)).FpDelFrame
@@ -57955,7 +58298,7 @@ func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:81120:2
//
// 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 { /* sqlite3.c:81135:20: */
+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: */
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
@@ -58054,7 +58397,7 @@ 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) { /* sqlite3.c:81247:21: */
+func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81872:21: */
var i int32
var aMem uintptr = p + 120
var apCsr uintptr = aMem + uintptr((*VdbeFrame)(unsafe.Pointer(p)).FnChildMem)*56
@@ -58083,7 +58426,7 @@ func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:81247:21:
//
// 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 { /* sqlite3.c:81279:20: */
+func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81904:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -58172,7 +58515,7 @@ type ReusableSpace = struct {
FpSpace uintptr
FnFree Sqlite3_int64
FnNeeded Sqlite3_int64
-} /* sqlite3.c:81424:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82049:1 */
// Try to allocate nByte bytes of 8-byte aligned bulk memory for pBuf
// from the ReusableSpace object. Return a pointer to the allocated
@@ -58187,7 +58530,7 @@ 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 { /* sqlite3.c:81444:13: */
+func allocSpace(tls *libc.TLS, p uintptr, pBuf uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82069:13: */
if pBuf == uintptr(0) {
nByte = (nByte + int64(7)) & int64(libc.CplInt32(7))
@@ -58204,7 +58547,7 @@ 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) { /* sqlite3.c:81467:21: */
+func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82092:21: */
// There should be at least one opcode.
@@ -58237,7 +58580,7 @@ func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* sqlite3.c:81467:21: */
//
// 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) { /* sqlite3.c:81520:21: */
+func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82145:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -58318,7 +58661,7 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* sqlite
(*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+256, Xsqlite3DbMallocRawNN(tls, db, uint64((*ReusableSpace)(unsafe.Pointer(bp+8 /* &x */)).FnNeeded)))
+ (*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 */)).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{}))))
@@ -58344,17 +58687,16 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* sqlite
}
var azColName = [12]uintptr{
- ts + 4945, ts + 4950, ts + 4957, ts + 4960, ts + 4963, ts + 4966, ts + 4969, ts + 4972,
- ts + 4980, ts + 4983, ts + 4990, ts + 4998,
-} /* sqlite3.c:81568:23 */
+ ts + 4954, ts + 4959, ts + 4966, ts + 4969, ts + 4972, ts + 4975, ts + 4978, ts + 4981,
+ ts + 4989, ts + 4992, ts + 4999, ts + 5007,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82193:23 */
// Close a VDBE cursor and release all the resources that cursor
// happens to hold.
-func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* sqlite3.c:81645:21: */
+func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82270:21: */
if pCx == uintptr(0) {
return
}
-
switch int32((*VdbeCursor)(unsafe.Pointer(pCx)).FeCurType) {
case CURTYPE_SORTER:
{
@@ -58365,13 +58707,13 @@ func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* sqlite3.
case CURTYPE_BTREE:
{
- Xsqlite3BtreeCloseCursor(tls, *(*uintptr)(unsafe.Pointer(pCx + 56)))
+ Xsqlite3BtreeCloseCursor(tls, *(*uintptr)(unsafe.Pointer(pCx + 48)))
break
}
case CURTYPE_VTAB:
{
- var pVCur uintptr = *(*uintptr)(unsafe.Pointer(pCx + 56))
+ var pVCur uintptr = *(*uintptr)(unsafe.Pointer(pCx + 48))
var pModule uintptr = (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(pVCur)).FpVtab)).FpModule
(*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(pVCur)).FpVtab)).FnRef--
@@ -58385,7 +58727,7 @@ func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* sqlite3.
}
// Close all cursors in the current frame.
-func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* sqlite3.c:81677:13: */
+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++ {
@@ -58401,7 +58743,7 @@ func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* sqlite3.c:81677:13: */
// 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 { /* sqlite3.c:81695:20: */
+func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82318:20: */
var v uintptr = (*VdbeFrame)(unsafe.Pointer(pFrame)).Fv
closeCursorsInFrame(tls, v)
(*Vdbe)(unsafe.Pointer(v)).FaOp = (*VdbeFrame)(unsafe.Pointer(pFrame)).FaOp
@@ -58413,7 +58755,7 @@ func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* sqlite3.
(*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+296, -1, 0)
+ Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(v)).Fdb, v+304, -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
@@ -58425,7 +58767,7 @@ func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* sqlite3.
// 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) { /* sqlite3.c:81724:13: */
+func closeAllCursors(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82347: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 {
@@ -58447,7 +58789,7 @@ func closeAllCursors(tls *libc.TLS, p uintptr) { /* sqlite3.c:81724:13: */
// Delete any auxdata allocations made by the VM
if (*Vdbe)(unsafe.Pointer(p)).FpAuxData != 0 {
- Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, p+296, -1, 0)
+ Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, p+304, -1, 0)
}
}
@@ -58456,7 +58798,7 @@ func closeAllCursors(tls *libc.TLS, p uintptr) { /* sqlite3.c:81724:13: */
// 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) { /* sqlite3.c:81754:21: */
+func Xsqlite3VdbeSetNumCols(tls *libc.TLS, p uintptr, nResColumn int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82377:21: */
var n int32
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -58481,7 +58823,7 @@ func Xsqlite3VdbeSetNumCols(tls *libc.TLS, p uintptr, nResColumn int32) { /* sql
// 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 { /* sqlite3.c:81779:20: */
+func Xsqlite3VdbeSetColName(tls *libc.TLS, p uintptr, idx int32, var1 int32, zName uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82402:20: */
var rc int32
var pColName uintptr
@@ -58500,7 +58842,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 { /* sqlite3.c:81807:12: */
+func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82430:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -58597,26 +58939,26 @@ func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:81807
// Select a super-journal file name
nMainFile = Xsqlite3Strlen30(tls, zMainFile)
- zSuper = Xsqlite3MPrintf(tls, db, ts+5005, libc.VaList(bp, 0, zMainFile, 0))
+ zSuper = Xsqlite3MPrintf(tls, db, ts+5014, libc.VaList(bp, 0, zMainFile, 0))
if zSuper == uintptr(0) {
return SQLITE_NOMEM
}
zSuper += uintptr(4)
- for ok := true; ok; ok = rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 60)) != 0 {
+ for __ccgo := true; __ccgo; __ccgo = rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 60)) != 0 {
// var iRandom U32 at bp+56, 4
if retryCount != 0 {
if retryCount > 100 {
- Xsqlite3_log(tls, SQLITE_FULL, ts+5017, libc.VaList(bp+24, zSuper))
+ Xsqlite3_log(tls, SQLITE_FULL, ts+5026, libc.VaList(bp+24, zSuper))
Xsqlite3OsDelete(tls, pVfs, zSuper, 0)
break
} else if retryCount == 1 {
- Xsqlite3_log(tls, SQLITE_FULL, ts+5031, libc.VaList(bp+32, zSuper))
+ Xsqlite3_log(tls, SQLITE_FULL, ts+5040, libc.VaList(bp+32, zSuper))
}
}
retryCount++
Xsqlite3_randomness(tls, int32(unsafe.Sizeof(U32(0))), bp+56)
- Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+5046,
+ Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+5055,
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.
@@ -58728,7 +59070,7 @@ var aMJNeeded = [6]U8{
/* TRUNCATE */ U8(1),
/* MEMORY */ U8(0),
/* WAL */ U8(0),
-} /* sqlite3.c:81842:23 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82465:23 */
// This routine checks that the sqlite3.nVdbeActive count variable
// matches the number of vdbe's in the list sqlite3.pVdbe that are
@@ -58746,7 +59088,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 { /* sqlite3.c:82103:28: */
+func vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82726:28: */
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
var rc int32 = SQLITE_OK
var i int32
@@ -58789,7 +59131,7 @@ func vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* sqlite3.
return rc
}
-func Xsqlite3VdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* sqlite3.c:82149:20: */
+func Xsqlite3VdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82772:20: */
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FnStatement != 0 && (*Vdbe)(unsafe.Pointer(p)).FiStatement != 0 {
return vdbeCloseStatement(tls, p, eOp)
}
@@ -58804,13 +59146,13 @@ 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 { /* sqlite3.c:82168:20: */
+func Xsqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82791: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+5059, 0)
+ Xsqlite3VdbeError(tls, p, ts+5068, 0)
return SQLITE_ERROR
}
return SQLITE_OK
@@ -58827,7 +59169,7 @@ func Xsqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) int32 { /* sq
// 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 { /* sqlite3.c:82195:20: */
+func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82818:20: */
var rc int32 // Used to store transient return codes
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -59031,7 +59373,7 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82195:20: *
// 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) { /* sqlite3.c:82405:21: */
+func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83028:21: */
(*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_OK
}
@@ -59041,7 +59383,7 @@ func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:82405:
//
// 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 { /* sqlite3.c:82417:20: */
+func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83040:20: */
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
var rc int32 = (*Vdbe)(unsafe.Pointer(p)).Frc
if (*Vdbe)(unsafe.Pointer(p)).FzErrMsg != 0 {
@@ -59057,6 +59399,7 @@ func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82
Xsqlite3ValueSetNull(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr)
}
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = rc
+ (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -1
return rc
}
@@ -59069,7 +59412,7 @@ func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82
// 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 { /* sqlite3.c:82466:20: */
+func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83090:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -59101,7 +59444,7 @@ func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82466:20:
// 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 + 3604 /* "%s" */
+ return ts + 3595 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg))
@@ -59121,7 +59464,7 @@ func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82466:20:
// 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 { /* sqlite3.c:82563:20: */
+func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83187: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) {
rc = Xsqlite3VdbeReset(tls, p)
@@ -59145,7 +59488,7 @@ func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82563:2
//
// * 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) { /* sqlite3.c:82589:21: */
+func Xsqlite3VdbeDeleteAuxData(tls *libc.TLS, db uintptr, pp uintptr, iOp int32, mask int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83213:21: */
for *(*uintptr)(unsafe.Pointer(pp)) != 0 {
var pAux uintptr = *(*uintptr)(unsafe.Pointer(pp))
if iOp < 0 ||
@@ -59170,7 +59513,7 @@ 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) { /* sqlite3.c:82617:21: */
+func Xsqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83241:21: */
var pSub uintptr
var pNext uintptr
@@ -59191,7 +59534,7 @@ func Xsqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.
}
// Delete an entire VDBE.
-func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:82658:21: */
+func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83282:21: */
var db uintptr
db = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -59214,7 +59557,7 @@ func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:82658:21: */
// 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 { /* sqlite3.c:82684:36: */
+func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83308:36: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -59222,12 +59565,12 @@ func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:826
var rc int32
- rc = Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(p + 56)), (*VdbeCursor)(unsafe.Pointer(p)).FmovetoTarget, 0, bp)
+ rc = Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(p + 48)), (*VdbeCursor)(unsafe.Pointer(p)).FmovetoTarget, 0, bp)
if rc != 0 {
return rc
}
if *(*int32)(unsafe.Pointer(bp)) != 0 {
- return Xsqlite3CorruptError(tls, 82694)
+ return Xsqlite3CorruptError(tls, 83318)
}
(*VdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(p)).FcacheStatus = U32(CACHE_STALE)
@@ -59239,7 +59582,7 @@ func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:826
// 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 { /* sqlite3.c:82710:28: */
+func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83334:28: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -59247,7 +59590,7 @@ func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82710:28:
var rc int32
- rc = Xsqlite3BtreeCursorRestore(tls, *(*uintptr)(unsafe.Pointer(p + 56)), bp)
+ rc = Xsqlite3BtreeCursorRestore(tls, *(*uintptr)(unsafe.Pointer(p + 48)), bp)
(*VdbeCursor)(unsafe.Pointer(p)).FcacheStatus = U32(CACHE_STALE)
if *(*int32)(unsafe.Pointer(bp)) != 0 {
(*VdbeCursor)(unsafe.Pointer(p)).FnullRow = U8(1)
@@ -59257,9 +59600,9 @@ func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82710:28:
// 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 { /* sqlite3.c:82725:20: */
+func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83349:20: */
- if Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(p + 56))) != 0 {
+ if Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(p + 48))) != 0 {
return handleMovedCursor(tls, p)
}
return SQLITE_OK
@@ -59276,20 +59619,20 @@ func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82
//
// 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 { /* sqlite3.c:82746:20: */
+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 (*VdbeCursor)(unsafe.Pointer(p)).FaAltMap != 0 && libc.AssignUint32(&iMap, *(*U32)(unsafe.Pointer((*VdbeCursor)(unsafe.Pointer(p)).FaAltMap + uintptr(U32(1)+*(*U32)(unsafe.Pointer(piCol)))*4))) > U32(0) && !(int32((*VdbeCursor)(unsafe.Pointer(p)).FnullRow) != 0) {
+ 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 + 56))) != 0 {
+ if Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(p + 48))) != 0 {
return handleMovedCursor(tls, p)
}
return SQLITE_OK
@@ -59351,10 +59694,10 @@ 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),
-} /* sqlite3.c:82883:17 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83507:17 */
// Return the length of the data corresponding to the supplied serial-type.
-func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* sqlite3.c:82903:20: */
+func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83527:20: */
if serial_type >= U32(128) {
return (serial_type - U32(12)) / U32(2)
} else {
@@ -59364,7 +59707,7 @@ func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* sqlite3.
return U32(0)
}
-func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* sqlite3.c:82912:19: */
+func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83536:19: */
return sqlite3SmallTypeSizes[serial_type]
}
@@ -59413,7 +59756,7 @@ func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* sql
// 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 { /* sqlite3.c:82983:20: */
+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)
@@ -59433,7 +59776,7 @@ func Xsqlite3VdbeSerialPut(tls *libc.TLS, buf uintptr, pMem uintptr, serial_type
}
len = libc.AssignUint32(&i, U32(sqlite3SmallTypeSizes[serial_type]))
- for ok := true; ok; ok = i != 0 {
+ 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
}
@@ -59458,13 +59801,13 @@ func Xsqlite3VdbeSerialPut(tls *libc.TLS, buf uintptr, pMem uintptr, serial_type
// big-endian integer. Return the equivalent native integer
// Deserialize the data blob pointed to by buf as serial type serial_type
-// and store the result in pMem. Return the number of bytes read.
+// and store the result in pMem.
//
// This function is implemented as two separate routines for performance.
// 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) U32 { /* sqlite3.c:83037:12: */
+func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83661:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -59489,10 +59832,9 @@ func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) U32 {
return uint16(MEM_Real)
}()
}
- return U32(8)
}
-func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) U32 { /* sqlite3.c:83073:20: */
+func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83696:21: */
switch serial_type {
case U32(10):
{ // Internal use only: NULL with virtual table
@@ -59500,7 +59842,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null | MEM_Zero)
(*Mem)(unsafe.Pointer(pMem)).Fn = 0
*(*int32)(unsafe.Pointer(pMem)) = 0
- break
+ return
}
case U32(11):
@@ -59509,7 +59851,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
{ // Null
// EVIDENCE-OF: R-24078-09375 Value is a NULL.
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null)
- break
+ return
}
case U32(1):
@@ -59519,7 +59861,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
*(*I64)(unsafe.Pointer(pMem)) = I64(I8(*(*uint8)(unsafe.Pointer(buf))))
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
- return U32(1)
+ return
}
case U32(2):
@@ -59529,7 +59871,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
*(*I64)(unsafe.Pointer(pMem)) = I64(256*int32(I8(*(*uint8)(unsafe.Pointer(buf)))) | int32(*(*uint8)(unsafe.Pointer(buf + 1))))
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
- return U32(2)
+ return
}
case U32(3):
@@ -59539,7 +59881,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
*(*I64)(unsafe.Pointer(pMem)) = I64(65536*int32(I8(*(*uint8)(unsafe.Pointer(buf)))) | int32(*(*uint8)(unsafe.Pointer(buf + 1)))<<8 | int32(*(*uint8)(unsafe.Pointer(buf + 2))))
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
- return U32(3)
+ return
}
case U32(4):
@@ -59549,7 +59891,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
*(*I64)(unsafe.Pointer(pMem)) = I64(16777216*int32(I8(*(*uint8)(unsafe.Pointer(buf)))) | int32(*(*uint8)(unsafe.Pointer(buf + 1)))<<16 | int32(*(*uint8)(unsafe.Pointer(buf + 2)))<<8 | int32(*(*uint8)(unsafe.Pointer(buf + 3))))
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
- return U32(4)
+ return
}
case U32(5):
@@ -59559,7 +59901,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
*(*I64)(unsafe.Pointer(pMem)) = I64(U32(*(*uint8)(unsafe.Pointer(buf + uintptr(2))))<<24|U32(int32(*(*uint8)(unsafe.Pointer(buf + uintptr(2) + 1)))<<16)|U32(int32(*(*uint8)(unsafe.Pointer(buf + uintptr(2) + 2)))<<8)|U32(*(*uint8)(unsafe.Pointer(buf + uintptr(2) + 3)))) + I64(int64(1))<<32*I64(256*int32(I8(*(*uint8)(unsafe.Pointer(buf))))|int32(*(*uint8)(unsafe.Pointer(buf + 1))))
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
- return U32(6)
+ return
}
case U32(6):
@@ -59568,7 +59910,8 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
{ // IEEE floating point
// These use local variables, so do them in a separate routine
// to avoid having to move the frame pointer in the common case
- return serialGet(tls, buf, serial_type, pMem)
+ serialGet(tls, buf, serial_type, pMem)
+ return
}
case U32(8):
@@ -59579,7 +59922,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
// EVIDENCE-OF: R-18143-12121 Value is the integer 1.
*(*I64)(unsafe.Pointer(pMem)) = I64(serial_type - U32(8))
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
- return U32(0)
+ return
}
default:
@@ -59587,14 +59930,14 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
(*Mem)(unsafe.Pointer(pMem)).Fz = buf
(*Mem)(unsafe.Pointer(pMem)).Fn = int32((serial_type - U32(12)) / U32(2))
(*Mem)(unsafe.Pointer(pMem)).Fflags = aFlag[serial_type&U32(1)]
- return U32((*Mem)(unsafe.Pointer(pMem)).Fn)
+ return
}
}
- return U32(0)
+ return
}
-var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* sqlite3.c:83155:24 */
+var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83779:24 */
// This routine is used to allocate sufficient space for an UnpackedRecord
// structure large enough to be used with sqlite3VdbeRecordUnpack() if
@@ -59608,7 +59951,7 @@ var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* sqlit
// before returning.
//
// If an OOM error occurs, NULL is returned.
-func Xsqlite3VdbeAllocUnpackedRecord(tls *libc.TLS, pKeyInfo uintptr) uintptr { /* sqlite3.c:83178:31: */
+func Xsqlite3VdbeAllocUnpackedRecord(tls *libc.TLS, pKeyInfo uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83802: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))
@@ -59626,7 +59969,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) { /* sqlite3.c:83198:21: */
+func Xsqlite3VdbeRecordUnpack(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83822:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -59665,7 +60008,8 @@ func Xsqlite3VdbeRecordUnpack(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey
// pMem->flags = 0; // sqlite3VdbeSerialGet() will set this for us
(*Mem)(unsafe.Pointer(pMem)).FszMalloc = 0
(*Mem)(unsafe.Pointer(pMem)).Fz = uintptr(0)
- d = d + Xsqlite3VdbeSerialGet(tls, aKey+uintptr(d), *(*U32)(unsafe.Pointer(bp + 4)), pMem)
+ Xsqlite3VdbeSerialGet(tls, aKey+uintptr(d), *(*U32)(unsafe.Pointer(bp + 4 /* serial_type */)), pMem)
+ d = d + Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 4)))
pMem += 56
if int32(libc.PreIncUint16(&u, 1)) >= int32((*UnpackedRecord)(unsafe.Pointer(p)).FnField) {
break
@@ -59686,7 +60030,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 { /* sqlite3.c:83393:12: */
+func vdbeCompareMemString(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr, prcErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84019:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -59729,7 +60073,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 { /* sqlite3.c:83430:12: */
+func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84056:12: */
var i int32
for i = 0; i < n; i++ {
if *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0 {
@@ -59742,7 +60086,7 @@ func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3.c:83430:12:
// 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 { /* sqlite3.c:83443:36: */
+func Xsqlite3BlobCompare(tls *libc.TLS, pB1 uintptr, pB2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84069:36: */
var c int32
var n1 int32 = (*Mem)(unsafe.Pointer(pB1)).Fn
var n2 int32 = (*Mem)(unsafe.Pointer(pB2)).Fn
@@ -59782,7 +60126,7 @@ func Xsqlite3BlobCompare(tls *libc.TLS, pB1 uintptr, pB2 uintptr) int32 { /* sql
// 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 { /* sqlite3.c:83476:20: */
+func Xsqlite3IntFloatCompare(tls *libc.TLS, i I64, r float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84102:20: */
if uint64(unsafe.Sizeof(float64(0))) > uint64(8) {
var x float64 = float64(i)
@@ -59828,7 +60172,7 @@ func Xsqlite3IntFloatCompare(tls *libc.TLS, i I64, r float64) int32 { /* sqlite3
// 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 { /* sqlite3.c:83509:20: */
+func Xsqlite3MemCompare(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84135:20: */
var f1 int32
var f2 int32
var combined_flags int32
@@ -59922,7 +60266,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 { /* sqlite3.c:83608:12: */
+func vdbeRecordDecodeInt(tls *libc.TLS, serial_type U32, aKey uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84234:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -59985,7 +60329,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 { /* sqlite3.c:83663:20: */
+func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr, bSkip int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84289:20: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -60027,11 +60371,11 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
i = 0
}
if d1 > uint32(nKey1) {
- (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 83694))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84320))
return 0 // Corruption
}
- for ok := true; ok; ok = idx1 < *(*U32)(unsafe.Pointer(bp + 4)) && d1 <= uint32(nKey1) {
+ for __ccgo := true; __ccgo; __ccgo = idx1 < *(*U32)(unsafe.Pointer(bp + 4)) && d1 <= uint32(nKey1) {
// var serial_type U32 at bp+64, 4
// RHS is an integer
@@ -60092,7 +60436,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, 83771))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84397))
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
@@ -60127,7 +60471,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, 83801))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84427))
return 0 // Corruption
} else if int32((*Mem)(unsafe.Pointer(pRhs)).Fflags)&MEM_Zero != 0 {
if !(isAllZero(tls, aKey1+uintptr(d1), nStr) != 0) {
@@ -60188,7 +60532,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 { /* sqlite3.c:83860:20: */
+func Xsqlite3VdbeRecordCompare(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84486:20: */
return Xsqlite3VdbeRecordCompareWithSkip(tls, nKey1, pKey1, pPKey2, 0)
}
@@ -60199,7 +60543,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 { /* sqlite3.c:83877:12: */
+func vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84503:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -60304,7 +60648,7 @@ 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 { /* sqlite3.c:83971:12: */
+func vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84597:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -60328,7 +60672,7 @@ func vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 u
nStr = (*(*int32)(unsafe.Pointer(bp)) - 12) / 2
if szHdr+nStr > nKey1 {
- (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 83996))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84622))
return 0 // Corruption
}
nCmp = func() int32 {
@@ -60366,7 +60710,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 { /* sqlite3.c:84035:30: */
+func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84661: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()
@@ -60420,7 +60764,7 @@ func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* sqlite
//
// 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 { /* sqlite3.c:84086:20: */
+func Xsqlite3VdbeIdxRowid(tls *libc.TLS, db uintptr, pCur uintptr, rowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84712:20: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -60505,7 +60849,7 @@ __6:
idx_rowid_corruption:
;
Xsqlite3VdbeMemRelease(tls, bp)
- return Xsqlite3CorruptError(tls, 84151)
+ return Xsqlite3CorruptError(tls, 84777)
}
// Compare the key of the index entry that cursor pC is pointing to against
@@ -60517,7 +60861,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 { /* sqlite3.c:84165:20: */
+func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked uintptr, res uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84791:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -60526,14 +60870,14 @@ func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked
var pCur uintptr
// var m Mem at bp, 56
- pCur = *(*uintptr)(unsafe.Pointer(pC + 56))
+ pCur = *(*uintptr)(unsafe.Pointer(pC + 48))
nCellKey = I64(Xsqlite3BtreePayloadSize(tls, pCur))
// 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) {
*(*int32)(unsafe.Pointer(res)) = 0
- return Xsqlite3CorruptError(tls, 84184)
+ return Xsqlite3CorruptError(tls, 84810)
}
Xsqlite3VdbeMemInit(tls, bp, db, uint16(0))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur, U32(nCellKey), bp)
@@ -60547,7 +60891,7 @@ func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked
// 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) { /* sqlite3.c:84200:21: */
+func Xsqlite3VdbeSetChanges(tls *libc.TLS, db uintptr, nChange I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84826:21: */
(*Sqlite3)(unsafe.Pointer(db)).FnChange = nChange
*(*I64)(unsafe.Pointer(db + 128)) += nChange
@@ -60555,7 +60899,7 @@ func Xsqlite3VdbeSetChanges(tls *libc.TLS, db uintptr, nChange I64) { /* sqlite3
// Set a flag in the vdbe to update the change counter when it is finalised
// or reset.
-func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* sqlite3.c:84210:21: */
+func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84836:21: */
libc.SetBitFieldPtr16Uint32(v+208, Bft(1), 4, 0x10)
}
@@ -60575,7 +60919,7 @@ func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* sqlite3.c:84210:21:
// 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) { /* sqlite3.c:84232:21: */
+func Xsqlite3ExpirePreparedStatements(tls *libc.TLS, db uintptr, iCode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84858: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)
@@ -60583,12 +60927,12 @@ func Xsqlite3ExpirePreparedStatements(tls *libc.TLS, db uintptr, iCode int32) {
}
// Return the database associated with the Vdbe.
-func Xsqlite3VdbeDb(tls *libc.TLS, v uintptr) uintptr { /* sqlite3.c:84242:24: */
+func Xsqlite3VdbeDb(tls *libc.TLS, v uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84868:24: */
return (*Vdbe)(unsafe.Pointer(v)).Fdb
}
// Return the SQLITE_PREPARE flags for a Vdbe.
-func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* sqlite3.c:84249:19: */
+func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84875:19: */
return (*Vdbe)(unsafe.Pointer(v)).FprepFlags
}
@@ -60598,7 +60942,7 @@ func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* sqlite3.c:84249:
// 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 { /* sqlite3.c:84261:30: */
+func Xsqlite3VdbeGetBoundValue(tls *libc.TLS, v uintptr, iVar int32, aff U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84887:30: */
if v != 0 {
var pMem uintptr = (*Vdbe)(unsafe.Pointer(v)).FaVar + uintptr(iVar-1)*56
@@ -60618,12 +60962,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) { /* sqlite3.c:84283:21: */
+func Xsqlite3VdbeSetVarmask(tls *libc.TLS, v uintptr, iVar int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84909:21: */
if iVar >= 32 {
- *(*U32)(unsafe.Pointer(v + 284)) |= 0x80000000
+ *(*U32)(unsafe.Pointer(v + 292)) |= 0x80000000
} else {
- *(*U32)(unsafe.Pointer(v + 284)) |= U32(U32(1)) << (iVar - 1)
+ *(*U32)(unsafe.Pointer(v + 292)) |= U32(U32(1)) << (iVar - 1)
}
}
@@ -60634,7 +60978,7 @@ func Xsqlite3VdbeSetVarmask(tls *libc.TLS, v uintptr, iVar int32) { /* sqlite3.c
// 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 { /* sqlite3.c:84302:20: */
+func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84928:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -60647,13 +60991,13 @@ func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:84302
var zContext uintptr
var zMsg uintptr
if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fp5)&NC_IsCheck != 0 {
- zContext = ts + 5089 /* "a CHECK constrai..." */
+ zContext = ts + 5098 /* "a CHECK constrai..." */
} else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fp5)&NC_GenCol != 0 {
- zContext = ts + 5108 /* "a generated colu..." */
+ zContext = ts + 5117 /* "a generated colu..." */
} else {
- zContext = ts + 5127 /* "an index" */
+ zContext = ts + 5136 /* "an index" */
}
- zMsg = Xsqlite3_mprintf(tls, ts+5136,
+ zMsg = Xsqlite3_mprintf(tls, ts+5145,
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)
@@ -60665,7 +61009,7 @@ func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:84302
// 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) { /* sqlite3.c:84333:21: */
+func Xsqlite3VtabImportErrmsg(tls *libc.TLS, p uintptr, pVtab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84959: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)
@@ -60681,7 +61025,7 @@ func Xsqlite3VtabImportErrmsg(tls *libc.TLS, p uintptr, pVtab uintptr) { /* sqli
//
// 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) { /* sqlite3.c:84354:13: */
+func vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84980:13: */
if p != 0 {
var i int32
for i = 0; i < nField; i++ {
@@ -60698,7 +61042,7 @@ func vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) { /* s
// 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) { /* sqlite3.c:84373: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-3380500/sqlite3.c:84999:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -60750,7 +61094,7 @@ func Xsqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32,
}
}
-var fakeSortOrder U8 = U8(0) /* sqlite3.c:84387:19 */
+var fakeSortOrder U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85013:19 */
//************* End of vdbeaux.c ********************************************
//************* Begin file vdbeapi.c ****************************************
@@ -60776,7 +61120,7 @@ var fakeSortOrder U8 = U8(0) /* sqlite3.c:84387:19 */
// 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 { /* sqlite3.c:84466:16: */
+func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85092:16: */
var p uintptr = pStmt
return libc.Bool32(p == uintptr(0) || Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0)) != 0)
}
@@ -60784,9 +61128,9 @@ func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:84466:1
// 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 { /* sqlite3.c:84477:12: */
+func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85103:12: */
if (*Vdbe)(unsafe.Pointer(p)).Fdb == uintptr(0) {
- Xsqlite3_log(tls, SQLITE_MISUSE, ts+5172, 0)
+ Xsqlite3_log(tls, SQLITE_MISUSE, ts+5181, 0)
return 1
} else {
return 0
@@ -60794,9 +61138,9 @@ func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:84477:12: */
return int32(0)
}
-func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:84485:12: */
+func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85111:12: */
if p == uintptr(0) {
- Xsqlite3_log(tls, SQLITE_MISUSE, ts+5217, 0)
+ Xsqlite3_log(tls, SQLITE_MISUSE, ts+5226, 0)
return 1
} else {
return vdbeSafety(tls, p)
@@ -60806,7 +61150,7 @@ func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:84485:12:
// 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) { /* sqlite3.c:84499:29: */
+func invokeProfileCallback(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85125:29: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -60839,7 +61183,7 @@ func invokeProfileCallback(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:
//
// 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 { /* sqlite3.c:84537:16: */
+func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85163:16: */
var rc int32
if pStmt == uintptr(0) {
// IMPLEMENTATION-OF: R-57228-12904 Invoking sqlite3_finalize() on a NULL
@@ -60849,7 +61193,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:84537:
var v uintptr = pStmt
var db uintptr = (*Vdbe)(unsafe.Pointer(v)).Fdb
if vdbeSafety(tls, v) != 0 {
- return Xsqlite3MisuseError(tls, 84546)
+ return Xsqlite3MisuseError(tls, 85172)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Vdbe)(unsafe.Pointer(v)).FstartTime > int64(0) {
@@ -60869,7 +61213,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:84537:
//
// 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 { /* sqlite3.c:84564:16: */
+func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85190:16: */
var rc int32
if pStmt == uintptr(0) {
rc = SQLITE_OK
@@ -60891,7 +61235,7 @@ func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:84564:16:
}
// Set all the parameters in the compiled SQL statement to NULL.
-func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:84585:16: */
+func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85211:16: */
var i int32
var rc int32 = SQLITE_OK
var p uintptr = pStmt
@@ -60913,7 +61257,7 @@ func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:
//
// The following routines extract information from a Mem or sqlite3_value
// structure.
-func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:84610:23: */
+func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85236:23: */
var p uintptr = pVal
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Blob|MEM_Str) != 0 {
if func() int32 {
@@ -60936,27 +61280,27 @@ func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:846
return uintptr(0)
}
-func Xsqlite3_value_bytes(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:84623:16: */
+func Xsqlite3_value_bytes(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85249:16: */
return Xsqlite3ValueBytes(tls, pVal, uint8(SQLITE_UTF8))
}
-func Xsqlite3_value_bytes16(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:84626:16: */
+func Xsqlite3_value_bytes16(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85252:16: */
return Xsqlite3ValueBytes(tls, pVal, uint8(SQLITE_UTF16LE))
}
-func Xsqlite3_value_double(tls *libc.TLS, pVal uintptr) float64 { /* sqlite3.c:84629:19: */
+func Xsqlite3_value_double(tls *libc.TLS, pVal uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85255:19: */
return Xsqlite3VdbeRealValue(tls, pVal)
}
-func Xsqlite3_value_int(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:84632:16: */
+func Xsqlite3_value_int(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85258:16: */
return int32(Xsqlite3VdbeIntValue(tls, pVal))
}
-func Xsqlite3_value_int64(tls *libc.TLS, pVal uintptr) Sqlite_int64 { /* sqlite3.c:84635:25: */
+func Xsqlite3_value_int64(tls *libc.TLS, pVal uintptr) Sqlite_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85261:25: */
return Xsqlite3VdbeIntValue(tls, pVal)
}
-func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* sqlite3.c:84638:25: */
+func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85264:25: */
var pMem uintptr = pVal
return func() uint32 {
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Subtype != 0 {
@@ -60966,7 +61310,7 @@ func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* sqlite3.c:8
}()
}
-func Xsqlite3_value_pointer(tls *libc.TLS, pVal uintptr, zPType uintptr) uintptr { /* sqlite3.c:84642:17: */
+func Xsqlite3_value_pointer(tls *libc.TLS, pVal uintptr, zPType uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85268: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) &&
@@ -60979,26 +61323,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 { /* sqlite3.c:84655:32: */
+func Xsqlite3_value_text(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85281:32: */
return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF8))
}
-func Xsqlite3_value_text16(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:84659:23: */
+func Xsqlite3_value_text16(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85285:23: */
return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16LE))
}
-func Xsqlite3_value_text16be(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:84662:23: */
+func Xsqlite3_value_text16be(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85288:23: */
return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16BE))
}
-func Xsqlite3_value_text16le(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:84665:23: */
+func Xsqlite3_value_text16le(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85291: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 { /* sqlite3.c:84673:16: */
+func Xsqlite3_value_type(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85299:16: */
return int32(aType[int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&MEM_AffMask])
}
@@ -61067,20 +61411,20 @@ var aType = [64]U8{
U8(SQLITE_NULL), // 0x3d (not possible)
U8(SQLITE_FLOAT), // 0x3e (not possible)
U8(SQLITE_NULL), // 0x3f (not possible)
-} /* sqlite3.c:84674:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85300:19 */
// Return true if a parameter to xUpdate represents an unchanged column
-func Xsqlite3_value_nochange(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:84759:16: */
+func Xsqlite3_value_nochange(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85385: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 { /* sqlite3.c:84764:16: */
+func Xsqlite3_value_frombind(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85390: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 { /* sqlite3.c:84770:26: */
+func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85396:26: */
var pNew uintptr
if pOrig == uintptr(0) {
return uintptr(0)
@@ -61106,7 +61450,7 @@ func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* sqlite3.c:847
// Destroy an sqlite3_value object previously obtained from
// sqlite3_value_dup().
-func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:84793:17: */
+func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85419:17: */
Xsqlite3ValueFree(tls, pOld)
}
@@ -61121,7 +61465,7 @@ func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:84793:17: *
//
// 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) { /* sqlite3.c:84809:13: */
+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)
if rc != 0 {
if rc == SQLITE_TOOBIG {
@@ -61135,7 +61479,7 @@ func setResultStrOrError(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, enc U8
}
}
-func invokeValueDestructor(tls *libc.TLS, p uintptr, xDel uintptr, pCtx uintptr) int32 { /* sqlite3.c:84828:12: */
+func invokeValueDestructor(tls *libc.TLS, p uintptr, xDel uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85454:12: */
if xDel == uintptr(0) {
// noop
@@ -61148,12 +61492,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) { /* sqlite3.c:84844:17: */
+func Xsqlite3_result_blob(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85470: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) { /* sqlite3.c:84854:17: */
+func Xsqlite3_result_blob64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85480:17: */
if n > uint64(0x7fffffff) {
invokeValueDestructor(tls, z, xDel, pCtx)
@@ -61162,39 +61506,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) { /* sqlite3.c:84868:17: */
+func Xsqlite3_result_double(tls *libc.TLS, pCtx uintptr, rVal float64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85494:17: */
Xsqlite3VdbeMemSetDouble(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, rVal)
}
-func Xsqlite3_result_error(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* sqlite3.c:84872:17: */
+func Xsqlite3_result_error(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85498: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) { /* sqlite3.c:84878:17: */
+func Xsqlite3_result_error16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85504: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) { /* sqlite3.c:84884:17: */
+func Xsqlite3_result_int(tls *libc.TLS, pCtx uintptr, iVal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85510:17: */
Xsqlite3VdbeMemSetInt64(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, I64(iVal))
}
-func Xsqlite3_result_int64(tls *libc.TLS, pCtx uintptr, iVal I64) { /* sqlite3.c:84888:17: */
+func Xsqlite3_result_int64(tls *libc.TLS, pCtx uintptr, iVal I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85514:17: */
Xsqlite3VdbeMemSetInt64(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, iVal)
}
-func Xsqlite3_result_null(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:84892:17: */
+func Xsqlite3_result_null(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85518:17: */
Xsqlite3VdbeMemSetNull(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut)
}
-func Xsqlite3_result_pointer(tls *libc.TLS, pCtx uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* sqlite3.c:84896:17: */
+func Xsqlite3_result_pointer(tls *libc.TLS, pCtx uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85522:17: */
var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut
Xsqlite3VdbeMemRelease(tls, pOut)
@@ -61202,19 +61546,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) { /* sqlite3.c:84908:17: */
+func Xsqlite3_result_subtype(tls *libc.TLS, pCtx uintptr, eSubtype uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85534: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)
}
-func Xsqlite3_result_text(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* sqlite3.c:84914:17: */
+func Xsqlite3_result_text(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85540: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) { /* sqlite3.c:84923:17: */
+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: */
if int32(enc) == SQLITE_UTF16 {
enc = uint8(SQLITE_UTF16LE)
@@ -61226,32 +61570,32 @@ 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) { /* sqlite3.c:84940:17: */
+func Xsqlite3_result_text16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85566: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) { /* sqlite3.c:84949:17: */
+func Xsqlite3_result_text16be(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85575: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) { /* sqlite3.c:84958:17: */
+func Xsqlite3_result_text16le(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85584:17: */
setResultStrOrError(tls, pCtx, z, n, uint8(SQLITE_UTF16LE), xDel)
}
-func Xsqlite3_result_value(tls *libc.TLS, pCtx uintptr, pValue uintptr) { /* sqlite3.c:84968:17: */
+func Xsqlite3_result_value(tls *libc.TLS, pCtx uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85594:17: */
Xsqlite3VdbeMemCopy(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, pValue)
}
-func Xsqlite3_result_zeroblob(tls *libc.TLS, pCtx uintptr, n int32) { /* sqlite3.c:84972:17: */
+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_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* sqlite3.c:84976:16: */
+func Xsqlite3_result_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85602:16: */
var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut
if n > U64(*(*int32)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fdb + 136))) {
@@ -61261,7 +61605,7 @@ func Xsqlite3_result_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* s
return SQLITE_OK
}
-func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /* sqlite3.c:84989:17: */
+func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85615:17: */
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = func() int32 {
if errCode != 0 {
return errCode
@@ -61275,15 +61619,15 @@ func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /*
}
// Force an SQLITE_TOOBIG error.
-func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85001:17: */
+func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85627:17: */
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_TOOBIG
- Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+5257, int64(-1),
+ Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+5266, int64(-1),
uint8(SQLITE_UTF8), uintptr(0))
}
// An SQLITE_NOMEM error.
-func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85009:17: */
+func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85635:17: */
Xsqlite3VdbeMemSetNull(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut)
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_NOMEM
@@ -61293,7 +61637,7 @@ func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:850
// 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) { /* sqlite3.c:85021:21: */
+func Xsqlite3ResultIntReal(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85647: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))
@@ -61303,7 +61647,7 @@ func Xsqlite3ResultIntReal(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85021:21:
// 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 { /* sqlite3.c:85035:12: */
+func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85661:12: */
var rc int32 = SQLITE_OK
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -61330,7 +61674,7 @@ func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:85035:12: */
// 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 { /* sqlite3.c:85065:12: */
+func sqlite3Step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85691:12: */
var db uintptr
var rc int32
@@ -61497,14 +61841,14 @@ 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 { /* sqlite3.c:85199:16: */
+func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85825: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, 85206)
+ return Xsqlite3MisuseError(tls, 85832)
}
db = (*Vdbe)(unsafe.Pointer(v)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -61544,7 +61888,7 @@ func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85199:16:
// 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 { /* sqlite3.c:85248:17: */
+func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85874:17: */
return (*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpFunc)).FpUserData
}
@@ -61557,7 +61901,7 @@ func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:85248:1
// 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 { /* sqlite3.c:85263:20: */
+func Xsqlite3_context_db_handle(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85889:20: */
return (*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpOut)).Fdb
}
@@ -61574,17 +61918,87 @@ func Xsqlite3_context_db_handle(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c
// 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 { /* sqlite3.c:85282:16: */
+func Xsqlite3_vtab_nochange(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85908: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: */
+ bp := tls.Alloc(68)
+ defer tls.Free(68)
+
+ var rc int32
+ var pRhs uintptr
+
+ *(*uintptr)(unsafe.Pointer(ppOut)) = uintptr(0)
+ if pVal == uintptr(0) {
+ return SQLITE_MISUSE
+ }
+ pRhs = Xsqlite3_value_pointer(tls, pVal, ts+5289)
+ if pRhs == uintptr(0) {
+ return SQLITE_MISUSE
+ }
+ if bNext != 0 {
+ rc = Xsqlite3BtreeNext(tls, (*ValueList)(unsafe.Pointer(pRhs)).FpCsr, 0)
+ } else {
+ *(*int32)(unsafe.Pointer(bp /* dummy */)) = 0
+ rc = Xsqlite3BtreeFirst(tls, (*ValueList)(unsafe.Pointer(pRhs)).FpCsr, bp)
+
+ if Xsqlite3BtreeEof(tls, (*ValueList)(unsafe.Pointer(pRhs)).FpCsr) != 0 {
+ rc = SQLITE_DONE
+ }
+ }
+ if rc == SQLITE_OK {
+ var sz U32 // Size of current row in bytes
+ // var sMem Mem at bp+8, 56
+ // Raw content of current row
+ libc.Xmemset(tls, bp+8, 0, uint64(unsafe.Sizeof(Mem{})))
+ sz = Xsqlite3BtreePayloadSize(tls, (*ValueList)(unsafe.Pointer(pRhs)).FpCsr)
+ rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, (*ValueList)(unsafe.Pointer(pRhs)).FpCsr, uint32(int32(sz)), bp+8)
+ if rc == SQLITE_OK {
+ var zBuf uintptr = (*Mem)(unsafe.Pointer(bp + 8 /* &sMem */)).Fz
+ // var iSerial U32 at bp+64, 4
+
+ var pOut uintptr = (*ValueList)(unsafe.Pointer(pRhs)).FpOut
+ var iOff int32 = 1 + int32(func() uint8 {
+ if int32(*(*U8)(unsafe.Pointer(zBuf + 1))) < int32(U8(0x80)) {
+ return uint8(func() int32 { *(*U32)(unsafe.Pointer(bp + 64)) = U32(*(*U8)(unsafe.Pointer(zBuf + 1))); return 1 }())
+ }
+ return Xsqlite3GetVarint32(tls, zBuf+1, bp+64)
+ }())
+ Xsqlite3VdbeSerialGet(tls, zBuf+uintptr(iOff), *(*U32)(unsafe.Pointer(bp + 64 /* iSerial */)), pOut)
+ (*Sqlite3_value)(unsafe.Pointer(pOut)).Fenc = (*Sqlite3)(unsafe.Pointer((*Sqlite3_value)(unsafe.Pointer(pOut)).Fdb)).Fenc
+ if int32((*Sqlite3_value)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0 {
+ rc = SQLITE_NOMEM
+ } else {
+ *(*uintptr)(unsafe.Pointer(ppOut)) = pOut
+ }
+ }
+ Xsqlite3VdbeMemRelease(tls, bp+8)
+ }
+ return rc
+}
+
+// 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: */
+ 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: */
+ return valueFromValueList(tls, pVal, ppOut, 1)
+}
+
// Return the current time for a statement. If the current time
// is requested more than once within the same run of a single prepared
// 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 { /* sqlite3.c:85294:30: */
+func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85984:30: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -61607,7 +62021,7 @@ func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* sqlite
// 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 { /* sqlite3.c:85314:29: */
+func createAggContext(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86004:29: */
var pMem uintptr = (*Sqlite3_context)(unsafe.Pointer(p)).FpMem
if nByte <= 0 {
@@ -61627,7 +62041,7 @@ func createAggContext(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* sqlite
// 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 { /* sqlite3.c:85336:17: */
+func Xsqlite3_aggregate_context(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86026:17: */
if int32((*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpMem)).Fflags)&MEM_Agg == 0 {
return createAggContext(tls, p, nByte)
@@ -61645,7 +62059,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 { /* sqlite3.c:85357:17: */
+func Xsqlite3_get_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86047:17: */
var pAuxData uintptr
if (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe == uintptr(0) {
@@ -61668,7 +62082,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) { /* sqlite3.c:85385:17: */
+func Xsqlite3_set_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32, pAux uintptr, xDelete uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86075:17: */
var pAuxData uintptr
var pVdbe uintptr
pVdbe = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe
@@ -61748,13 +62162,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 { /* sqlite3.c:85438:16: */
+func Xsqlite3_aggregate_count(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86128: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 { /* sqlite3.c:85447:16: */
+func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86137:16: */
var pVm uintptr = pStmt
if pVm != 0 {
return int32((*Vdbe)(unsafe.Pointer(pVm)).FnResColumn)
@@ -61764,7 +62178,7 @@ func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85
// 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 { /* sqlite3.c:85456:16: */
+func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86146:16: */
var pVm uintptr = pStmt
if pVm == uintptr(0) || (*Vdbe)(unsafe.Pointer(pVm)).FpResultSet == uintptr(0) {
return 0
@@ -61773,19 +62187,19 @@ func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:8545
}
// Return a pointer to static memory containing an SQL NULL value.
-func columnNullValue(tls *libc.TLS) uintptr { /* sqlite3.c:85465:18: */
+func columnNullValue(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86155:18: */
return uintptr(unsafe.Pointer(&nullMem))
}
var nullMem = Mem{
/* .flags = */ Fflags: U16(MEM_Null),
-} /* sqlite3.c:85475:20 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86165: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 { /* sqlite3.c:85505:12: */
+func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86195:12: */
var pVm uintptr
var pOut uintptr
@@ -61820,7 +62234,7 @@ func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:855
// sqlite3_column_bytes()
// sqlite3_column_bytes16()
// sqiite3_column_blob()
-func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* sqlite3.c:85540:13: */
+func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86230: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
@@ -61837,7 +62251,7 @@ func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* sqlite3.c:85540:13:
//
// 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 { /* sqlite3.c:85560:23: */
+func Xsqlite3_column_blob(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86250:23: */
var val uintptr
val = Xsqlite3_value_blob(tls, columnMem(tls, pStmt, i))
// Even though there is no encoding conversion, value_blob() might
@@ -61847,43 +62261,43 @@ func Xsqlite3_column_blob(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sq
return val
}
-func Xsqlite3_column_bytes(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite3.c:85570:16: */
+func Xsqlite3_column_bytes(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86260: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 { /* sqlite3.c:85575:16: */
+func Xsqlite3_column_bytes16(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86265: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 { /* sqlite3.c:85580:19: */
+func Xsqlite3_column_double(tls *libc.TLS, pStmt uintptr, i int32) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86270: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 { /* sqlite3.c:85585:16: */
+func Xsqlite3_column_int(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86275: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 { /* sqlite3.c:85590:25: */
+func Xsqlite3_column_int64(tls *libc.TLS, pStmt uintptr, i int32) Sqlite_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86280: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 { /* sqlite3.c:85595:32: */
+func Xsqlite3_column_text(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86285: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 { /* sqlite3.c:85600:26: */
+func Xsqlite3_column_value(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86290: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))
@@ -61893,13 +62307,13 @@ func Xsqlite3_column_value(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* s
return pOut
}
-func Xsqlite3_column_text16(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:85610:23: */
+func Xsqlite3_column_text16(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86300: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 { /* sqlite3.c:85616:16: */
+func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86306:16: */
var iType int32 = Xsqlite3_value_type(tls, columnMem(tls, pStmt, i))
columnMallocFailure(tls, pStmt)
return iType
@@ -61919,7 +62333,7 @@ func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqli
//
// 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 { /* sqlite3.c:85638:19: */
+func columnName(tls *libc.TLS, pStmt uintptr, N int32, useUtf16 int32, useType int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86328:19: */
var ret uintptr
var p uintptr
var n int32
@@ -61951,11 +62365,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 { /* sqlite3.c:85687:23: */
+func Xsqlite3_column_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86377:23: */
return columnName(tls, pStmt, N, 0, COLNAME_NAME)
}
-func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:85691:23: */
+func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86381:23: */
return columnName(tls, pStmt, N, 1, COLNAME_NAME)
}
@@ -61964,44 +62378,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 { /* sqlite3.c:85710:23: */
+func Xsqlite3_column_decltype(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86400:23: */
return columnName(tls, pStmt, N, 0, COLNAME_DECLTYPE)
}
-func Xsqlite3_column_decltype16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:85714:23: */
+func Xsqlite3_column_decltype16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86404: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 { /* sqlite3.c:85726:23: */
+func Xsqlite3_column_database_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86416:23: */
return columnName(tls, pStmt, N, 0, COLNAME_DATABASE)
}
-func Xsqlite3_column_database_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:85730:23: */
+func Xsqlite3_column_database_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86420: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 { /* sqlite3.c:85740:23: */
+func Xsqlite3_column_table_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86430:23: */
return columnName(tls, pStmt, N, 0, COLNAME_TABLE)
}
-func Xsqlite3_column_table_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:85744:23: */
+func Xsqlite3_column_table_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86434: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 { /* sqlite3.c:85754:23: */
+func Xsqlite3_column_origin_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86444:23: */
return columnName(tls, pStmt, N, 0, COLNAME_COLUMN)
}
-func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:85758:23: */
+func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86448:23: */
return columnName(tls, pStmt, N, 1, COLNAME_COLUMN)
}
@@ -62018,21 +62432,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 { /* sqlite3.c:85780:12: */
+func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86470:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pVar uintptr
if vdbeSafetyNotNull(tls, p) != 0 {
- return Xsqlite3MisuseError(tls, 85783)
+ return Xsqlite3MisuseError(tls, 86473)
}
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 {
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+5280, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql))
- return Xsqlite3MisuseError(tls, 85791)
+ ts+5299, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql))
+ return Xsqlite3MisuseError(tls, 86481)
}
if i < 1 || i > int32((*Vdbe)(unsafe.Pointer(p)).FnVar) {
Xsqlite3Error(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, SQLITE_RANGE)
@@ -62066,7 +62480,7 @@ func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* sqlite3.c:85780:12
}
// Bind a text or BLOB value.
-func bindText(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData I64, xDel uintptr, encoding U8) int32 { /* sqlite3.c:85823:12: */
+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: */
var p uintptr = pStmt
var pVar uintptr
var rc int32
@@ -62092,16 +62506,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 { /* sqlite3.c:85859:16: */
+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: */
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 { /* sqlite3.c:85871:16: */
+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: */
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 { /* sqlite3.c:85881:16: */
+func Xsqlite3_bind_double(tls *libc.TLS, pStmt uintptr, i int32, rValue float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86571:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62112,11 +62526,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 { /* sqlite3.c:85891:16: */
+func Xsqlite3_bind_int(tls *libc.TLS, p uintptr, i int32, iValue int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86581: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 { /* sqlite3.c:85894:16: */
+func Xsqlite3_bind_int64(tls *libc.TLS, pStmt uintptr, i int32, iValue Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86584:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62127,7 +62541,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 { /* sqlite3.c:85904:16: */
+func Xsqlite3_bind_null(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86594:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62137,7 +62551,7 @@ func Xsqlite3_bind_null(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite
return rc
}
-func Xsqlite3_bind_pointer(tls *libc.TLS, pStmt uintptr, i int32, pPtr uintptr, zPTtype uintptr, xDestructor uintptr) int32 { /* sqlite3.c:85913:16: */
+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: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62150,11 +62564,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 { /* sqlite3.c:85931:16: */
+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: */
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 { /* sqlite3.c:85940: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-3380500/sqlite3.c:86630:16: */
if int32(enc) == SQLITE_UTF16 {
enc = uint8(SQLITE_UTF16LE)
@@ -62162,11 +62576,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 { /* sqlite3.c:85953:16: */
+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: */
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 { /* sqlite3.c:85963:16: */
+func Xsqlite3_bind_value(tls *libc.TLS, pStmt uintptr, i int32, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86653:16: */
var rc int32
switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_INTEGER:
@@ -62177,7 +62591,14 @@ func Xsqlite3_bind_value(tls *libc.TLS, pStmt uintptr, i int32, pValue uintptr)
}
case SQLITE_FLOAT:
{
- rc = Xsqlite3_bind_double(tls, pStmt, i, *(*float64)(unsafe.Pointer(pValue)))
+
+ rc = Xsqlite3_bind_double(tls, pStmt, i,
+ func() float64 {
+ if int32((*Sqlite3_value)(unsafe.Pointer(pValue)).Fflags)&MEM_Real != 0 {
+ return *(*float64)(unsafe.Pointer(pValue))
+ }
+ return float64(*(*I64)(unsafe.Pointer(pValue)))
+ }())
break
}
@@ -62208,7 +62629,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 { /* sqlite3.c:85994:16: */
+func Xsqlite3_bind_zeroblob(tls *libc.TLS, pStmt uintptr, i int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86687:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62219,7 +62640,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 { /* sqlite3.c:86008:16: */
+func Xsqlite3_bind_zeroblob64(tls *libc.TLS, pStmt uintptr, i int32, n Sqlite3_uint64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86701:16: */
var rc int32
var p uintptr = pStmt
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
@@ -62236,7 +62657,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 { /* sqlite3.c:86027:16: */
+func Xsqlite3_bind_parameter_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86720:16: */
var p uintptr = pStmt
if p != 0 {
return int32((*Vdbe)(unsafe.Pointer(p)).FnVar)
@@ -62248,7 +62669,7 @@ func Xsqlite3_bind_parameter_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqli
// 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 { /* sqlite3.c:86038:23: */
+func Xsqlite3_bind_parameter_name(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86731:23: */
var p uintptr = pStmt
if p == uintptr(0) {
return uintptr(0)
@@ -62259,19 +62680,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 { /* sqlite3.c:86049:20: */
+func Xsqlite3VdbeParameterIndex(tls *libc.TLS, p uintptr, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86742: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 { /* sqlite3.c:86053:16: */
+func Xsqlite3_bind_parameter_index(tls *libc.TLS, pStmt uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86746: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 { /* sqlite3.c:86060:20: */
+func Xsqlite3TransferBindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86753:20: */
var pFrom uintptr = pFromStmt
var pTo uintptr = pToStmt
var i int32
@@ -62294,7 +62715,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 { /* sqlite3.c:86087:16: */
+func Xsqlite3_transfer_bindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86780:16: */
var pFrom uintptr = pFromStmt
var pTo uintptr = pToStmt
if int32((*Vdbe)(unsafe.Pointer(pFrom)).FnVar) != int32((*Vdbe)(unsafe.Pointer(pTo)).FnVar) {
@@ -62315,7 +62736,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 { /* sqlite3.c:86111:20: */
+func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86804:20: */
if pStmt != 0 {
return (*Vdbe)(unsafe.Pointer(pStmt)).Fdb
}
@@ -62324,7 +62745,7 @@ func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:861
// Return true if the prepared statement is guaranteed to not modify the
// database.
-func Xsqlite3_stmt_readonly(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86119:16: */
+func Xsqlite3_stmt_readonly(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86812:16: */
if pStmt != 0 {
return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0x80 >> 7)
}
@@ -62333,7 +62754,7 @@ func Xsqlite3_stmt_readonly(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:8
// 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 { /* sqlite3.c:86127:16: */
+func Xsqlite3_stmt_isexplain(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86820:16: */
if pStmt != 0 {
return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0xc >> 2)
}
@@ -62341,7 +62762,7 @@ func Xsqlite3_stmt_isexplain(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:
}
// Return true if the prepared statement is in need of being reset.
-func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86134:16: */
+func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86827: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)
}
@@ -62350,7 +62771,7 @@ func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86134
// 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 { /* sqlite3.c:86145:25: */
+func Xsqlite3_next_stmt(tls *libc.TLS, pDb uintptr, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86838:25: */
var pNext uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(pDb)).Fmutex)
if pStmt == uintptr(0) {
@@ -62363,7 +62784,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 { /* sqlite3.c:86166:16: */
+func Xsqlite3_stmt_status(tls *libc.TLS, pStmt uintptr, op int32, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86859:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -62389,7 +62810,7 @@ func Xsqlite3_stmt_status(tls *libc.TLS, pStmt uintptr, op int32, resetFlag int3
}
// Return the SQL associated with a prepared statement
-func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:86196:23: */
+func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86889:23: */
var p uintptr = pStmt
if p != 0 {
return (*Vdbe)(unsafe.Pointer(p)).FzSql
@@ -62404,7 +62825,7 @@ func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:86196:23:
//
// 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 { /* sqlite3.c:86210:17: */
+func Xsqlite3_expanded_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86903:17: */
var z uintptr = uintptr(0)
var zSql uintptr = Xsqlite3_sql(tls, pStmt)
if zSql != 0 {
@@ -62419,7 +62840,7 @@ func Xsqlite3_expanded_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:
// 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 { /* sqlite3.c:86248:23: */
+func vdbeUnpackRecord(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86941:23: */
var pRet uintptr // Return value
pRet = Xsqlite3VdbeAllocUnpackedRecord(tls, pKeyInfo)
@@ -62432,7 +62853,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 { /* sqlite3.c:86267:16: */
+func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86960:16: */
var p uintptr
var pMem uintptr
var rc int32
@@ -62446,7 +62867,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, 86275)
+ rc = Xsqlite3MisuseError(tls, 86968)
goto preupdate_old_out
__1:
;
@@ -62469,7 +62890,7 @@ __3:
goto __4
}
- nRec = Xsqlite3BtreePayloadSize(tls, *(*uintptr)(unsafe.Pointer((*PreUpdate)(unsafe.Pointer(p)).FpCsr + 56)))
+ nRec = Xsqlite3BtreePayloadSize(tls, *(*uintptr)(unsafe.Pointer((*PreUpdate)(unsafe.Pointer(p)).FpCsr + 48)))
aRec = Xsqlite3DbMallocRaw(tls, db, uint64(nRec))
if !!(aRec != 0) {
goto __5
@@ -62477,7 +62898,7 @@ __3:
goto preupdate_old_out
__5:
;
- rc = Xsqlite3BtreePayload(tls, *(*uintptr)(unsafe.Pointer((*PreUpdate)(unsafe.Pointer(p)).FpCsr + 56)), uint32(0), nRec, aRec)
+ rc = Xsqlite3BtreePayload(tls, *(*uintptr)(unsafe.Pointer((*PreUpdate)(unsafe.Pointer(p)).FpCsr + 48)), uint32(0), nRec, aRec)
if !(rc == SQLITE_OK) {
goto __6
}
@@ -62538,7 +62959,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 { /* sqlite3.c:86331:16: */
+func Xsqlite3_preupdate_count(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87024:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -62557,7 +62978,7 @@ func Xsqlite3_preupdate_count(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:86
//
// 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 { /* sqlite3.c:86349:16: */
+func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87042:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -62569,7 +62990,7 @@ func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:86
// This function is designed to be called from within a pre-update callback
// only.
-func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:86360:16: */
+func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87053:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -62581,7 +63002,7 @@ func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:86371:16: */
+func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87064:16: */
var p uintptr
var rc int32
var pMem uintptr
@@ -62595,7 +63016,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, 86377)
+ rc = Xsqlite3MisuseError(tls, 87070)
goto preupdate_new_out
__1:
;
@@ -62736,7 +63157,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 { /* sqlite3.c:86541:12: */
+func findNextHostParameter(tls *libc.TLS, zSql uintptr, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87234:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -62781,7 +63202,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 { /* sqlite3.c:86584:21: */
+func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87277:21: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -62805,7 +63226,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+5320, 3)
+ Xsqlite3_str_append(tls, bp+48, ts+5339, 3)
Xsqlite3_str_append(tls, bp+48, zStart, int32((int64(zRawSql)-int64(zStart))/1))
}
@@ -62843,11 +63264,11 @@ func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr {
pVar = (*Vdbe)(unsafe.Pointer(p)).FaVar + uintptr(*(*int32)(unsafe.Pointer(bp + 84))-1)*56
if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&MEM_Null != 0 {
- Xsqlite3_str_append(tls, bp+48, ts+1547, 4)
+ Xsqlite3_str_append(tls, bp+48, ts+1516, 4)
} else if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
- Xsqlite3_str_appendf(tls, bp+48, ts+1330, libc.VaList(bp, *(*I64)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+48, ts+1295, 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+4848, libc.VaList(bp+8, *(*float64)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+48, ts+4857, 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
@@ -62862,21 +63283,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+5324, libc.VaList(bp+16, nOut, (*Mem)(unsafe.Pointer(pVar)).Fz))
+ Xsqlite3_str_appendf(tls, bp+48, ts+5343, 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+5331, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+48, ts+5350, 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+5344, 2)
+ Xsqlite3_str_append(tls, bp+48, ts+5363, 2)
nOut = (*Mem)(unsafe.Pointer(pVar)).Fn
for i = 0; i < nOut; i++ {
- Xsqlite3_str_appendf(tls, bp+48, ts+5347, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff))
+ Xsqlite3_str_appendf(tls, bp+48, ts+5366, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff))
}
- Xsqlite3_str_append(tls, bp+48, ts+5352, 1)
+ Xsqlite3_str_append(tls, bp+48, ts+5371, 1)
}
}
}
@@ -63004,7 +63425,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, iDb int32, eCurType U8) uintptr { /* sqlite3.c:86947:19: */
+func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87640: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
@@ -63060,14 +63481,13 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, iDb int3
}
*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(iCur)*8)) = libc.AssignUintptr(&pCx, (*Mem)(unsafe.Pointer(pMem)).FzMalloc)
- libc.Xmemset(tls, pCx, 0, uint64(uintptr(0)+48))
+ libc.Xmemset(tls, pCx, 0, uint64(uintptr(0)+40))
(*VdbeCursor)(unsafe.Pointer(pCx)).FeCurType = eCurType
- (*VdbeCursor)(unsafe.Pointer(pCx)).FiDb = I8(iDb)
(*VdbeCursor)(unsafe.Pointer(pCx)).FnField = I16(nField)
- (*VdbeCursor)(unsafe.Pointer(pCx)).FaOffset = pCx + 120 + uintptr(nField)*4
+ (*VdbeCursor)(unsafe.Pointer(pCx)).FaOffset = pCx + 112 + uintptr(nField)*4
if int32(eCurType) == CURTYPE_BTREE {
- *(*uintptr)(unsafe.Pointer(pCx + 56)) = (*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))
- Xsqlite3BtreeCursorZero(tls, *(*uintptr)(unsafe.Pointer(pCx + 56)))
+ *(*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))
+ Xsqlite3BtreeCursorZero(tls, *(*uintptr)(unsafe.Pointer(pCx + 48)))
}
return pCx
}
@@ -63076,7 +63496,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, iDb int3
// 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 { /* sqlite3.c:87025:12: */
+func alsoAnInt(tls *libc.TLS, pRec uintptr, rValue float64, piValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87716:12: */
var iValue I64 = I64(rValue)
if Xsqlite3RealSameAsInt(tls, rValue, iValue) != 0 {
*(*I64)(unsafe.Pointer(piValue)) = iValue
@@ -63098,7 +63518,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) { /* sqlite3.c:87049:13: */
+func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87740:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -63144,7 +63564,7 @@ func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* sq
// SQLITE_AFF_BLOB:
// SQLITE_AFF_NONE:
// No-op. pRec is unchanged.
-func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* sqlite3.c:87089:13: */
+func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87780:13: */
if int32(affinity) >= SQLITE_AFF_NUMERIC {
if int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Int == 0 { //OPTIMIZATION-IF-FALSE
@@ -63176,7 +63596,7 @@ func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* sqli
// 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 { /* sqlite3.c:87128:16: */
+func Xsqlite3_value_numeric_type(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87819:16: */
var eType int32 = Xsqlite3_value_type(tls, pVal)
if eType == SQLITE_TEXT {
var pMem uintptr = pVal
@@ -63188,7 +63608,7 @@ func Xsqlite3_value_numeric_type(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3
// 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) { /* sqlite3.c:87142:21: */
+func Xsqlite3ValueApplyAffinity(tls *libc.TLS, pVal uintptr, affinity U8, enc U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87833:21: */
applyAffinity(tls, pVal, int8(affinity), enc)
}
@@ -63196,7 +63616,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 { /* sqlite3.c:87156:28: */
+func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87847:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -63232,7 +63652,7 @@ func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* sqlite3.c:87156:28
//
// 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 { /* sqlite3.c:87187:12: */
+func numericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87878: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))
@@ -63246,13 +63666,13 @@ func numericType(tls *libc.TLS, pMem uintptr) U16 { /* sqlite3.c:87187:12: */
// 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 { /* sqlite3.c:87362:28: */
+func out2PrereleaseWithClear(tls *libc.TLS, pOut uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88053:28: */
Xsqlite3VdbeMemSetNull(tls, pOut)
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int)
return pOut
}
-func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* sqlite3.c:87367:12: */
+func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88058:12: */
var pOut uintptr
pOut = (*Vdbe)(unsafe.Pointer(p)).FaMem + uintptr((*VdbeOp)(unsafe.Pointer(pOp)).Fp2)*56
@@ -63266,22 +63686,47 @@ func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* sqlite3.
return uintptr(0)
}
+// 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: */
+ var i int32
+ var mx int32
+ var h U64 = uint64(0)
+
+ i = (*Op)(unsafe.Pointer(pOp)).Fp3
+ mx = i + *(*int32)(unsafe.Pointer(pOp + 16))
+ for ; i < mx; i++ {
+ var p uintptr = aMem + uintptr(i)*56
+ if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
+ h = h + U64(*(*I64)(unsafe.Pointer(p)))
+ } else if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Real != 0 {
+ h = h + U64(Xsqlite3VdbeIntValue(tls, p))
+ } else if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
+ h = h + U64((*Mem)(unsafe.Pointer(p)).Fn)
+ if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Zero != 0 {
+ h = h + U64(*(*int32)(unsafe.Pointer(p)))
+ }
+ }
+ }
+ return h
+}
+
// Return the symbolic name for the data type of a pMem
-func vdbeMemTypeName(tls *libc.TLS, pMem uintptr) uintptr { /* sqlite3.c:87384:19: */
+func vdbeMemTypeName(tls *libc.TLS, pMem uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88098:19: */
return azTypes[Xsqlite3_value_type(tls, pMem)-1]
}
var azTypes = [5]uintptr{
- ts + 1089,
- ts + 1101,
- ts + 1106,
- ts + 1084,
- ts + 1547,
-} /* sqlite3.c:87385:21 */
+ ts + 1076,
+ ts + 1088,
+ ts + 1093,
+ ts + 1071,
+ ts + 1516,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88099: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 { /* sqlite3.c:87399:20: */
+func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88113:20: */
bp := tls.Alloc(976)
defer tls.Free(976)
@@ -63615,7 +64060,9 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:87399:20: *
// var pVCur uintptr at bp+904, 8
var pVtab1 uintptr
- var pModule1 uintptr // jump
+ var pModule1 uintptr // out2
+ var pC30 uintptr // The cursor containing the RHS values
+ var pRhs uintptr // jump
var nArg int32
var iQuery int32
var pModule2 uintptr
@@ -63653,6 +64100,8 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:87399:20: *
var pBt3 uintptr // group
var i9 int32
var pCtx2 uintptr
+ var h U64 // jump
+ var h1 U64
var z2 uintptr
var z3 uintptr // jump
var i10 int32
@@ -63945,7 +64394,8 @@ __5:
// Synopsis: r[P2]=P4 (len=P1)
//
// P4 points to a blob of data P1 bytes long. Store this
- // blob in register P2.
+ // 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
@@ -64005,17 +64455,17 @@ __5:
case OP_IntCopy:
goto __29
- // Opcode: ChngCntRow P1 P2 * * *
- // Synopsis: output=r[P1]
+ // Opcode: FkCheck * * * * *
//
- // Output value in register P1 as the chance count for a DML statement,
- // due to the "PRAGMA count_changes=ON" setting. Or, if there was a
- // foreign key error in the statement, trigger the error now.
+ // Halt with an SQLITE_CONSTRAINT error if there are any unresolved
+ // foreign key constraint violations. If there are no foreign key
+ // constraint violations, this is a no-op.
//
- // This opcode is a variant of OP_ResultRow that checks the foreign key
- // immediate constraint count and throws an error if the count is
- // non-zero. The P2 opcode must be 1.
- case OP_ChngCntRow:
+ // FK constraint violations are also checked when the prepared statement
+ // 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.
+ case OP_FkCheck:
goto __30
// Opcode: ResultRow P1 P2 * * *
@@ -64591,7 +65041,7 @@ __5:
case OP_MakeRecord:
goto __74
- // Opcode: Count P1 P2 p3 * *
+ // Opcode: Count P1 P2 P3 * *
// Synopsis: r[P2]=count()
//
// Store the number of entries (an integer value) in the table or index
@@ -65386,6 +65836,10 @@ __5:
// Move the cursor P1 to a null row. Any OP_Column operations
// 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.
case OP_NullRow:
goto __114
@@ -66173,6 +66627,18 @@ __5:
case OP_VOpen:
goto __173
+ // Opcode: VInitIn P1 P2 P3 * *
+ // Synopsis: r[P2]=ValueList(P1,P3)
+ //
+ // Set register P2 to be a pointer to a ValueList object for cursor P1
+ // with cache register P3 and output register P3+1. This ValueList object
+ // can be used as the first argument to sqlite3_vtab_in_first() and
+ // 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().
+ case OP_VInitIn:
+ goto __174
+
// Opcode: VFilter P1 P2 P3 P4 *
// Synopsis: iplan=r[P3] zplan='P4'
//
@@ -66192,7 +66658,7 @@ __5:
//
// A jump is made to P2 if the result set after filtering would be empty.
case OP_VFilter:
- goto __174
+ goto __175
// Opcode: VColumn P1 P2 P3 * P5
// Synopsis: r[P3]=vcolumn(P2)
@@ -66208,7 +66674,7 @@ __5:
// bits (OPFLAG_LENGTHARG or OPFLAG_TYPEOFARG) but those bits are
// unused by OP_VColumn.
case OP_VColumn:
- goto __175
+ goto __176
// Opcode: VNext P1 P2 * * *
//
@@ -66216,7 +66682,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 __176
+ goto __177
// Opcode: VRename P1 * * P4 *
//
@@ -66224,7 +66690,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 __177
+ goto __178
// Opcode: VUpdate P1 P2 P3 P4 P5
// Synopsis: data=r[P3@P2]
@@ -66253,13 +66719,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 __178
+ goto __179
// Opcode: Pagecount P1 P2 * * *
//
// Write the current number of pages in database P1 to memory cell P2.
case OP_Pagecount:
- goto __179
+ goto __180
// Opcode: MaxPgcnt P1 P2 P3 * *
//
@@ -66269,7 +66735,7 @@ __5:
//
// Store the maximum page count after the change in register P2.
case OP_MaxPgcnt:
- goto __180
+ goto __181
// Opcode: Function P1 P2 P3 P4 *
// Synopsis: r[P3]=func(r[P2@NP])
@@ -66316,9 +66782,33 @@ __5:
//
// See also: AggStep, AggFinal, Function
case OP_PureFunc:
- goto __181 // group
+ goto __182 // group
case OP_Function:
- goto __182
+ goto __183
+
+ // Opcode: FilterAdd P1 * P3 P4 *
+ // Synopsis: filter(P1) += key(P3@P4)
+ //
+ // 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
+
+ // Opcode: Filter P1 P2 P3 P4 *
+ // Synopsis: if key(P3@P4) not in filter(P1) goto P2
+ //
+ // Compute a hash on the key contained in the P4 registers starting
+ // with r[P3]. Check to see if that hash is found in the
+ // bloom filter hosted by register P1. If it is not present then
+ // maybe jump to P2. Otherwise fall through.
+ //
+ // False negatives are harmless. It is always safe to fall through,
+ // even if the value is in the bloom filter. A false negative causes
+ // 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.
+ case OP_Filter:
+ goto __185
// Opcode: Trace P1 P2 * P4 *
//
@@ -66344,9 +66834,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 __183
+ goto __186
case OP_Init:
- goto __184
+ goto __187
// Opcode: Noop * * * * *
//
@@ -66357,7 +66847,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 __185
+ goto __188
}
goto __8
@@ -66425,34 +66915,34 @@ jump_to_p2_and_check_for_interrupt:
// faster according to "valgrind --tool=cachegrind"
check_for_interrupt:
if !(libc.AtomicLoadNInt32(db+432, 0) != 0) {
- goto __186
+ goto __189
}
goto abort_due_to_interrupt
-__186:
+__189:
;
// 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.
-__187:
+__190:
if !(nVmStep >= nProgressLimit && (*Sqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0)) {
- goto __188
+ goto __191
}
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 __189
+ goto __192
}
nProgressLimit = uint64(0xffffffff) | U64(uint64(0xffffffff))<<32
rc = SQLITE_INTERRUPT
goto abort_due_to_error
-__189:
+__192:
;
- goto __187
-__188:
+ goto __190
+__191:
;
goto __8
@@ -66471,6 +66961,8 @@ __10: // jump
// 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
@@ -66503,10 +66995,10 @@ __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 __190
+ goto __193
}
goto jump_to_p2
-__190:
+__193:
;
goto __8
@@ -66558,10 +67050,10 @@ __14:
__15: // in3
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&MEM_Null == 0) {
- goto __191
+ goto __194
}
goto __8
-__191:
+__194:
;
// Opcode: Halt P1 P2 * P4 P5
@@ -66597,7 +67089,7 @@ __16:
pcx = int32((int64(pOp) - int64(aOp)) / 24)
if !((*Op)(unsafe.Pointer(pOp)).Fp1 == SQLITE_OK && (*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __192
+ goto __195
}
// Halt the sub-program. Return control to the parent frame.
pFrame = (*Vdbe)(unsafe.Pointer(p)).FpFrame
@@ -66606,7 +67098,7 @@ __16:
Xsqlite3VdbeSetChanges(tls, db, (*Vdbe)(unsafe.Pointer(p)).FnChange)
pcx = Xsqlite3VdbeFrameRestore(tls, pFrame)
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == OE_Ignore) {
- goto __193
+ goto __196
}
// Instruction pcx is the OP_Program that invoked the sub-program
// currently being halted. If the p2 instruction of this OP_Halt
@@ -66614,48 +67106,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
-__193:
+__196:
;
aOp = (*Vdbe)(unsafe.Pointer(p)).FaOp
aMem = (*Vdbe)(unsafe.Pointer(p)).FaMem
pOp = aOp + uintptr(pcx)*24
goto __8
-__192:
+__195:
;
(*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 __194
+ goto __197
}
if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0) {
- goto __195
+ goto __198
}
- Xsqlite3VdbeError(tls, p, ts+5354, libc.VaList(bp, azType[int32((*Op)(unsafe.Pointer(pOp)).Fp5)-1]))
+ Xsqlite3VdbeError(tls, p, ts+5373, libc.VaList(bp, azType[int32((*Op)(unsafe.Pointer(pOp)).Fp5)-1]))
if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) != 0) {
- goto __197
+ goto __200
}
- (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+5375, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16))))
-__197:
+ (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+5394, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16))))
+__200:
;
- goto __196
-__195:
- Xsqlite3VdbeError(tls, p, ts+3604, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16))))
-__196:
+ goto __199
+__198:
+ Xsqlite3VdbeError(tls, p, ts+3595, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16))))
+__199:
;
- Xsqlite3_log(tls, (*Op)(unsafe.Pointer(pOp)).Fp1, ts+5382, libc.VaList(bp+32, pcx, (*Vdbe)(unsafe.Pointer(p)).FzSql, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg))
-__194:
+ Xsqlite3_log(tls, (*Op)(unsafe.Pointer(pOp)).Fp1, ts+5401, libc.VaList(bp+32, pcx, (*Vdbe)(unsafe.Pointer(p)).FzSql, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg))
+__197:
;
rc = Xsqlite3VdbeHalt(tls, p)
if !(rc == SQLITE_BUSY) {
- goto __198
+ goto __201
}
(*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_BUSY
- goto __199
-__198:
+ goto __202
+__201:
;
if (*Vdbe)(unsafe.Pointer(p)).Frc != 0 {
@@ -66663,7 +67155,7 @@ __198:
} else {
rc = SQLITE_DONE
}
-__199:
+__202:
;
goto vdbe_return
@@ -66712,41 +67204,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 __200
+ goto __203
}
rc = Xsqlite3VdbeMemSetStr(tls, pOut, *(*uintptr)(unsafe.Pointer(pOp + 16)), int64(-1), uint8(SQLITE_UTF8), uintptr(0))
if !(rc != 0) {
- goto __201
+ goto __204
}
goto too_big
-__201:
+__204:
;
if !(SQLITE_OK != Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))) {
- goto __202
+ goto __205
}
goto no_mem
-__202:
+__205:
;
(*Mem)(unsafe.Pointer(pOut)).FszMalloc = 0
*(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Static)
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -7) {
- goto __203
+ goto __206
}
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pOp + 16)))
-__203:
+__206:
;
(*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-7)
*(*uintptr)(unsafe.Pointer(pOp + 16)) = (*Mem)(unsafe.Pointer(pOut)).Fz
(*Op)(unsafe.Pointer(pOp)).Fp1 = (*Mem)(unsafe.Pointer(pOut)).Fn
-__200:
+__203:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 > *(*int32)(unsafe.Pointer(db + 136))) {
- goto __204
+ goto __207
}
goto too_big
-__204:
+__207:
;
(*Op)(unsafe.Pointer(pOp)).Fopcode = U8(OP_String)
@@ -66793,9 +67285,9 @@ __22:
return uint16(MEM_Null)
}())
(*Mem)(unsafe.Pointer(pOut)).Fn = 0
-__205:
+__208:
if !(cnt > 0) {
- goto __206
+ goto __209
}
pOut += 56
@@ -66803,8 +67295,8 @@ __205:
(*Mem)(unsafe.Pointer(pOut)).Fflags = nullFlag
(*Mem)(unsafe.Pointer(pOut)).Fn = 0
cnt--
- goto __205
-__206:
+ goto __208
+__209:
;
goto __8
@@ -66825,11 +67317,26 @@ __23:
// Synopsis: r[P2]=P4 (len=P1)
//
// P4 points to a blob of data P1 bytes long. Store this
- // blob in register P2.
+ // 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
;
pOut = out2Prerelease(tls, p, pOp)
+ if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0)) {
+ goto __210
+ }
+ Xsqlite3VdbeMemSetZeroBlob(tls, pOut, (*Op)(unsafe.Pointer(pOp)).Fp1)
+ if !(Xsqlite3VdbeMemExpandBlob(tls, pOut) != 0) {
+ goto __212
+ }
+ goto no_mem
+__212:
+ ;
+ goto __211
+__210:
Xsqlite3VdbeMemSetStr(tls, pOut, *(*uintptr)(unsafe.Pointer(pOp + 16)), int64((*Op)(unsafe.Pointer(pOp)).Fp1), uint8(0), uintptr(0))
+__211:
+ ;
(*Mem)(unsafe.Pointer(pOut)).Fenc = encoding
goto __8
@@ -66847,17 +67354,17 @@ __25: // Value being transferred
pVar = (*Vdbe)(unsafe.Pointer(p)).FaVar + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1-1)*56
if !(Xsqlite3VdbeMemTooBig(tls, pVar) != 0) {
- goto __207
+ goto __213
}
goto too_big
-__207:
+__213:
;
pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&(MEM_Agg|MEM_Dyn) != 0) {
- goto __208
+ goto __214
}
Xsqlite3VdbeMemSetNull(tls, pOut)
-__208:
+__214:
;
libc.Xmemcpy(tls, pOut, pVar, uint64(uintptr(0)+24))
*(*U16)(unsafe.Pointer(pOut + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Ephem))
@@ -66881,26 +67388,26 @@ __26: // Register to copy to
pIn1 = aMem + uintptr(p1)*56
pOut = aMem + uintptr(p2)*56
-__209:
+__215:
;
Xsqlite3VdbeMemMove(tls, pOut, pIn1)
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) {
- goto __212
+ goto __218
}
goto no_mem
-__212:
+__218:
;
pIn1 += 56
pOut += 56
- goto __210
-__210:
+ goto __216
+__216:
if libc.PreDecInt32(&n, 1) != 0 {
- goto __209
+ goto __215
}
- goto __211
-__211:
+ goto __217
+__217:
;
goto __8
@@ -66917,29 +67424,29 @@ __27:
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
-__213:
+__219:
if !(1 != 0) {
- goto __214
+ goto __220
}
Xsqlite3VdbeMemShallowCopy(tls, pOut, pIn1, MEM_Ephem)
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) {
- goto __215
+ goto __221
}
goto no_mem
-__215:
+__221:
;
if !(libc.PostDecInt32(&n1, 1) == 0) {
- goto __216
+ goto __222
}
- goto __214
-__216:
+ goto __220
+__222:
;
pOut += 56
pIn1 += 56
- goto __213
-__214:
+ goto __219
+__220:
;
goto __8
@@ -66976,24 +67483,24 @@ __29: // out2
Xsqlite3VdbeMemSetInt64(tls, pOut, *(*I64)(unsafe.Pointer(pIn1)))
goto __8
- // Opcode: ChngCntRow P1 P2 * * *
- // Synopsis: output=r[P1]
+ // Opcode: FkCheck * * * * *
//
- // Output value in register P1 as the chance count for a DML statement,
- // due to the "PRAGMA count_changes=ON" setting. Or, if there was a
- // foreign key error in the statement, trigger the error now.
+ // Halt with an SQLITE_CONSTRAINT error if there are any unresolved
+ // foreign key constraint violations. If there are no foreign key
+ // constraint violations, this is a no-op.
//
- // This opcode is a variant of OP_ResultRow that checks the foreign key
- // immediate constraint count and throws an error if the count is
- // non-zero. The P2 opcode must be 1.
+ // FK constraint violations are also checked when the prepared statement
+ // 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:
- ;
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 0)) != SQLITE_OK) {
- goto __217
+ goto __223
}
goto abort_due_to_error
-__217:
+__223:
;
+ goto __8
// Opcode: ResultRow P1 P2 * * *
// Synopsis: output=r[P1@P2]
@@ -67014,41 +67521,41 @@ __31:
// a side effect.
pMem = libc.AssignPtrUintptr(p+168, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56)
i = 0
-__218:
+__224:
if !(i < (*Op)(unsafe.Pointer(pOp)).Fp2) {
- goto __220
+ goto __226
}
if !(int32((*Mem)(unsafe.Pointer(pMem+uintptr(i)*56)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pMem+uintptr(i)*56) != 0) {
- goto __221
+ goto __227
}
goto no_mem
-__221:
+__227:
;
Xsqlite3VdbeMemNulTerminate(tls, pMem+uintptr(i)*56)
- goto __219
-__219:
+ goto __225
+__225:
i++
- goto __218
- goto __220
-__220:
+ goto __224
+ goto __226
+__226:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __222
+ goto __228
}
goto no_mem
-__222:
+__228:
;
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_ROW != 0) {
- goto __223
+ goto __229
}
(*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))
-__223:
+__229:
;
// Return SQLITE_ROW
@@ -67077,86 +67584,86 @@ __32: // Initial flags for P2
flags1 = (*Mem)(unsafe.Pointer(pIn1)).Fflags
if !((int32(flags1)|int32((*Mem)(unsafe.Pointer(pIn2)).Fflags))&MEM_Null != 0) {
- goto __224
+ goto __230
}
Xsqlite3VdbeMemSetNull(tls, pOut)
goto __8
-__224:
+__230:
;
if !(int32(flags1)&(MEM_Str|MEM_Blob) == 0) {
- goto __225
+ goto __231
}
if !(Xsqlite3VdbeMemStringify(tls, pIn1, encoding, uint8(0)) != 0) {
- goto __227
+ goto __233
}
goto no_mem
-__227:
+__233:
;
flags1 = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags) & libc.CplInt32(MEM_Str))
- goto __226
-__225:
+ goto __232
+__231:
if !(int32(flags1)&MEM_Zero != 0) {
- goto __228
+ goto __234
}
if !(Xsqlite3VdbeMemExpandBlob(tls, pIn1) != 0) {
- goto __229
+ goto __235
}
goto no_mem
-__229:
+__235:
;
flags1 = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags) & libc.CplInt32(MEM_Str))
-__228:
+__234:
;
-__226:
+__232:
;
flags2 = (*Mem)(unsafe.Pointer(pIn2)).Fflags
if !(int32(flags2)&(MEM_Str|MEM_Blob) == 0) {
- goto __230
+ goto __236
}
if !(Xsqlite3VdbeMemStringify(tls, pIn2, encoding, uint8(0)) != 0) {
- goto __232
+ goto __238
}
goto no_mem
-__232:
+__238:
;
flags2 = U16(int32((*Mem)(unsafe.Pointer(pIn2)).Fflags) & libc.CplInt32(MEM_Str))
- goto __231
-__230:
+ goto __237
+__236:
if !(int32(flags2)&MEM_Zero != 0) {
- goto __233
+ goto __239
}
if !(Xsqlite3VdbeMemExpandBlob(tls, pIn2) != 0) {
- goto __234
+ goto __240
}
goto no_mem
-__234:
+__240:
;
flags2 = U16(int32((*Mem)(unsafe.Pointer(pIn2)).Fflags) & libc.CplInt32(MEM_Str))
-__233:
+__239:
;
-__231:
+__237:
;
nByte = I64((*Mem)(unsafe.Pointer(pIn1)).Fn + (*Mem)(unsafe.Pointer(pIn2)).Fn)
if !(nByte > I64(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __235
+ goto __241
}
goto too_big
-__235:
+__241:
;
if !(Xsqlite3VdbeMemGrow(tls, pOut, int32(nByte)+3, libc.Bool32(pOut == pIn2)) != 0) {
- goto __236
+ goto __242
}
goto no_mem
-__236:
+__242:
;
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Str)
if !(pOut != pIn2) {
- goto __237
+ goto __243
}
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
-__237:
+__243:
;
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))
@@ -67216,158 +67723,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 __238
+ goto __244
}
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 __241
+ goto __247
case OP_Subtract:
- goto __242
+ goto __248
case OP_Multiply:
- goto __243
+ goto __249
case OP_Divide:
- goto __244
+ goto __250
default:
- goto __245
+ goto __251
}
- goto __240
-__241:
+ goto __246
+__247:
if !(Xsqlite3AddInt64(tls, bp+208, iA) != 0) {
- goto __246
+ goto __252
}
goto fp_math
-__246:
+__252:
;
- goto __240
-__242:
+ goto __246
+__248:
if !(Xsqlite3SubInt64(tls, bp+208, iA) != 0) {
- goto __247
+ goto __253
}
goto fp_math
-__247:
+__253:
;
- goto __240
-__243:
+ goto __246
+__249:
if !(Xsqlite3MulInt64(tls, bp+208, iA) != 0) {
- goto __248
+ goto __254
}
goto fp_math
-__248:
+__254:
;
- goto __240
-__244:
+ goto __246
+__250:
if !(iA == int64(0)) {
- goto __249
+ goto __255
}
goto arithmetic_result_is_null
-__249:
+__255:
;
if !(iA == int64(-1) && *(*I64)(unsafe.Pointer(bp + 208)) == int64(-1)-(int64(0xffffffff)|I64(int64(0x7fffffff))<<32)) {
- goto __250
+ goto __256
}
goto fp_math
-__250:
+__256:
;
*(*I64)(unsafe.Pointer(bp + 208 /* iB */)) /= iA
- goto __240
+ goto __246
-__245:
+__251:
if !(iA == int64(0)) {
- goto __251
+ goto __257
}
goto arithmetic_result_is_null
-__251:
+__257:
;
if !(iA == int64(-1)) {
- goto __252
+ goto __258
}
iA = int64(1)
-__252:
+__258:
;
*(*I64)(unsafe.Pointer(bp + 208 /* iB */)) %= iA
- goto __240
+ goto __246
-__240:
+__246:
;
*(*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 __239
-__238:
+ goto __245
+__244:
if !(int32(flags)&MEM_Null != 0) {
- goto __253
+ goto __259
}
goto arithmetic_result_is_null
- goto __254
-__253:
+ goto __260
+__259:
fp_math:
rA = Xsqlite3VdbeRealValue(tls, pIn1)
rB = Xsqlite3VdbeRealValue(tls, pIn2)
switch int32((*Op)(unsafe.Pointer(pOp)).Fopcode) {
case OP_Add:
- goto __256
+ goto __262
case OP_Subtract:
- goto __257
+ goto __263
case OP_Multiply:
- goto __258
+ goto __264
case OP_Divide:
- goto __259
+ goto __265
default:
- goto __260
+ goto __266
}
- goto __255
-__256:
+ goto __261
+__262:
rB = rB + rA
- goto __255
-__257:
+ goto __261
+__263:
rB = rB - rA
- goto __255
-__258:
+ goto __261
+__264:
rB = rB * rA
- goto __255
-__259:
+ goto __261
+__265:
// (double)0 In case of SQLITE_OMIT_FLOATING_POINT...
if !(rA == float64(0)) {
- goto __261
+ goto __267
}
goto arithmetic_result_is_null
-__261:
+__267:
;
rB = rB / rA
- goto __255
+ goto __261
-__260:
+__266:
iA = Xsqlite3VdbeIntValue(tls, pIn1)
*(*I64)(unsafe.Pointer(bp + 208 /* iB */)) = Xsqlite3VdbeIntValue(tls, pIn2)
if !(iA == int64(0)) {
- goto __262
+ goto __268
}
goto arithmetic_result_is_null
-__262:
+__268:
;
if !(iA == int64(-1)) {
- goto __263
+ goto __269
}
iA = int64(1)
-__263:
+__269:
;
rB = float64(*(*I64)(unsafe.Pointer(bp + 208)) % iA)
- goto __255
+ goto __261
-__255:
+__261:
;
if !(Xsqlite3IsNaN(tls, rB) != 0) {
- goto __264
+ goto __270
}
goto arithmetic_result_is_null
-__264:
+__270:
;
*(*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)
-__254:
+__260:
;
-__239:
+__245:
;
goto __8
@@ -67392,10 +67899,10 @@ arithmetic_result_is_null:
__38:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __265
+ goto __271
}
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56, int64(0))
-__265:
+__271:
;
goto __8
@@ -67434,34 +67941,34 @@ __42:
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 __266
+ goto __272
}
Xsqlite3VdbeMemSetNull(tls, pOut)
goto __8
-__266:
+__272:
;
*(*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 __267
+ goto __273
}
*(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) &= iB1
- goto __268
-__267:
+ goto __274
+__273:
if !(int32(op) == OP_BitOr) {
- goto __269
+ goto __275
}
*(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) |= iB1
- goto __270
-__269:
+ goto __276
+__275:
if !(iB1 != int64(0)) {
- goto __271
+ goto __277
}
// If shifting by a negative amount, shift in the other direction
if !(iB1 < int64(0)) {
- goto __272
+ goto __278
}
op = U8(2*OP_ShiftLeft + 1 - int32(op))
@@ -67470,44 +67977,44 @@ __269:
} else {
iB1 = int64(64)
}
-__272:
+__278:
;
if !(iB1 >= int64(64)) {
- goto __273
+ goto __279
}
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 __274
-__273:
+ goto __280
+__279:
libc.Xmemcpy(tls, bp+216, bp+224, uint64(unsafe.Sizeof(U64(0))))
if !(int32(op) == OP_ShiftLeft) {
- goto __275
+ goto __281
}
*(*U64)(unsafe.Pointer(bp + 216 /* uA */)) <<= iB1
- goto __276
-__275:
+ goto __282
+__281:
*(*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 __277
+ goto __283
}
*(*U64)(unsafe.Pointer(bp + 216 /* uA */)) |= U64(U64(uint64(0xffffffff))<<32|uint64(0xffffffff)) << (int64(64) - iB1)
-__277:
+__283:
;
-__276:
+__282:
;
libc.Xmemcpy(tls, bp+224, bp+216, uint64(unsafe.Sizeof(I64(0))))
-__274:
+__280:
;
-__271:
+__277:
;
-__270:
+__276:
;
-__268:
+__274:
;
*(*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)
@@ -67536,26 +68043,26 @@ __43: // in1
__44: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) {
- goto __278
+ goto __284
}
applyAffinity(tls, pIn1, int8(SQLITE_AFF_NUMERIC), encoding)
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) {
- goto __279
+ goto __285
}
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) {
- goto __280
+ goto __286
}
rc = SQLITE_MISMATCH
goto abort_due_to_error
- goto __281
-__280:
+ goto __287
+__286:
goto jump_to_p2
-__281:
+__287:
;
-__279:
+__285:
;
-__278:
+__284:
;
(*Mem)(unsafe.Pointer(pIn1)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Int)
@@ -67572,12 +68079,12 @@ __278:
__45: // in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&(MEM_Int|MEM_IntReal) != 0) {
- goto __282
+ goto __288
}
Xsqlite3VdbeMemRealify(tls, pIn1)
-__282:
+__288:
;
goto __8
@@ -67607,17 +68114,17 @@ __46: // in1
return 0
}()
if !(rc != 0) {
- goto __283
+ goto __289
}
goto abort_due_to_error
-__283:
+__289:
;
rc = Xsqlite3VdbeMemCast(tls, pIn1, uint8((*Op)(unsafe.Pointer(pOp)).Fp2), encoding)
if !(rc != 0) {
- goto __284
+ goto __290
}
goto abort_due_to_error
-__284:
+__290:
;
goto __8
@@ -67720,58 +68227,58 @@ __52: // Copy of initial value of pIn3->flags
flags11 = (*Mem)(unsafe.Pointer(pIn1)).Fflags
flags3 = (*Mem)(unsafe.Pointer(pIn3)).Fflags
if !(int32(flags11)&int32(flags3)&MEM_Int != 0) {
- goto __285
+ goto __291
}
// Common case of comparison of two integers
if !(*(*I64)(unsafe.Pointer(pIn3)) > *(*I64)(unsafe.Pointer(pIn1))) {
- goto __286
+ goto __292
}
iCompare = +1
if !(*(*uint8)(unsafe.Pointer(Xsqlite3aGTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))) != 0) {
- goto __288
+ goto __294
}
goto jump_to_p2
-__288:
+__294:
;
- goto __287
-__286:
+ goto __293
+__292:
if !(*(*I64)(unsafe.Pointer(pIn3)) < *(*I64)(unsafe.Pointer(pIn1))) {
- goto __289
+ goto __295
}
iCompare = -1
if !(*(*uint8)(unsafe.Pointer(Xsqlite3aLTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))) != 0) {
- goto __291
+ goto __297
}
goto jump_to_p2
-__291:
+__297:
;
- goto __290
-__289:
+ goto __296
+__295:
iCompare = 0
if !(*(*uint8)(unsafe.Pointer(Xsqlite3aEQb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))) != 0) {
- goto __292
+ goto __298
}
goto jump_to_p2
-__292:
+__298:
;
-__290:
+__296:
;
-__287:
+__293:
;
goto __8
-__285:
+__291:
;
if !((int32(flags11)|int32(flags3))&MEM_Null != 0) {
- goto __293
+ goto __299
}
// One or both operands are NULL
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&SQLITE_NULLEQ != 0) {
- goto __295
+ goto __301
}
// 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
@@ -67779,98 +68286,98 @@ __285:
if !(int32(flags11)&int32(flags3)&MEM_Null != 0 &&
int32(flags3)&MEM_Cleared == 0) {
- goto __297
+ goto __303
}
res = 0 // Operands are equal
- goto __298
-__297:
+ goto __304
+__303:
res = func() int32 {
if int32(flags3)&MEM_Null != 0 {
return -1
}
return +1
}() // Operands are not equal
-__298:
+__304:
;
- goto __296
-__295:
+ goto __302
+__301:
// 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 __299
+ goto __305
}
goto jump_to_p2
-__299:
+__305:
;
goto __8
-__296:
+__302:
;
- goto __294
-__293:
+ goto __300
+__299:
// 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 __300
+ goto __306
}
if !((int32(flags11)|int32(flags3))&MEM_Str != 0) {
- goto __302
+ goto __308
}
if !(int32(flags11)&(MEM_Int|MEM_IntReal|MEM_Real|MEM_Str) == MEM_Str) {
- goto __303
+ goto __309
}
applyNumericAffinity(tls, pIn1, 0)
flags3 = (*Mem)(unsafe.Pointer(pIn3)).Fflags
-__303:
+__309:
;
if !(int32(flags3)&(MEM_Int|MEM_IntReal|MEM_Real|MEM_Str) == MEM_Str) {
- goto __304
+ goto __310
}
applyNumericAffinity(tls, pIn3, 0)
-__304:
+__310:
;
-__302:
+__308:
;
- goto __301
-__300:
+ goto __307
+__306:
if !(int32(affinity) == SQLITE_AFF_TEXT) {
- goto __305
+ goto __311
}
if !(int32(flags11)&MEM_Str == 0 && int32(flags11)&(MEM_Int|MEM_Real|MEM_IntReal) != 0) {
- goto __306
+ goto __312
}
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 __307
+ goto __313
}
flags3 = U16(int32(flags11) | MEM_Str)
-__307:
+__313:
;
-__306:
+__312:
;
if !(int32(flags3)&MEM_Str == 0 && int32(flags3)&(MEM_Int|MEM_Real|MEM_IntReal) != 0) {
- goto __308
+ goto __314
}
Xsqlite3VdbeMemStringify(tls, pIn3, encoding, uint8(1))
flags3 = U16(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&libc.CplInt32(MEM_TypeMask) | int32(flags3)&MEM_TypeMask)
-__308:
+__314:
;
-__305:
+__311:
;
-__301:
+__307:
;
res = Xsqlite3MemCompare(tls, pIn3, pIn1, *(*uintptr)(unsafe.Pointer(pOp + 16)))
-__294:
+__300:
;
// At this point, res is negative, zero, or positive if reg[P1] is
@@ -67881,21 +68388,21 @@ __294:
// order: NE, EQ, GT, LE, LT, GE
if !(res < 0) {
- goto __309
+ goto __315
}
res2 = int32(*(*uint8)(unsafe.Pointer(Xsqlite3aLTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))))
- goto __310
-__309:
+ goto __316
+__315:
if !(res == 0) {
- goto __311
+ goto __317
}
res2 = int32(*(*uint8)(unsafe.Pointer(Xsqlite3aEQb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))))
- goto __312
-__311:
+ goto __318
+__317:
res2 = int32(*(*uint8)(unsafe.Pointer(Xsqlite3aGTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))))
-__312:
+__318:
;
-__310:
+__316:
;
iCompare = res
@@ -67906,10 +68413,10 @@ __310:
(*Mem)(unsafe.Pointer(pIn1)).Fflags = flags11
if !(res2 != 0) {
- goto __313
+ goto __319
}
goto jump_to_p2
-__313:
+__319:
;
goto __8
@@ -67928,10 +68435,10 @@ __53: // same as TK_ESCAPE, jump
;
if !(iCompare == 0) {
- goto __314
+ goto __320
}
goto jump_to_p2
-__314:
+__320:
;
goto __8
@@ -67973,16 +68480,16 @@ __54:
__55: // The permutation
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_PERMUTE == 0) {
- goto __315
+ goto __321
}
aPermute = uintptr(0)
- goto __316
-__315:
+ goto __322
+__321:
;
aPermute = *(*uintptr)(unsafe.Pointer(pOp + libc.UintptrFromInt32(-1)*24 + 16)) + uintptr(1)*4
-__316:
+__322:
;
n2 = (*Op)(unsafe.Pointer(pOp)).Fp3
pKeyInfo = *(*uintptr)(unsafe.Pointer(pOp + 16))
@@ -67990,9 +68497,9 @@ __316:
p11 = (*Op)(unsafe.Pointer(pOp)).Fp1
p21 = (*Op)(unsafe.Pointer(pOp)).Fp2
i1 = 0
-__317:
+__323:
if !(i1 < n2) {
- goto __319
+ goto __325
}
if aPermute != 0 {
idx = *(*U32)(unsafe.Pointer(aPermute + uintptr(i1)*4))
@@ -68004,30 +68511,30 @@ __317:
bRev = int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(i1)))) & KEYINFO_ORDER_DESC
iCompare = Xsqlite3MemCompare(tls, aMem+uintptr(U32(p11)+idx)*56, aMem+uintptr(U32(p21)+idx)*56, pColl)
if !(iCompare != 0) {
- goto __320
+ goto __326
}
if !(int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(i1))))&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 __321
+ goto __327
}
iCompare = -iCompare
-__321:
+__327:
;
if !(bRev != 0) {
- goto __322
+ goto __328
}
iCompare = -iCompare
-__322:
+__328:
;
- goto __319
-__320:
+ goto __325
+__326:
;
- goto __318
-__318:
+ goto __324
+__324:
i1++
- goto __317
- goto __319
-__319:
+ goto __323
+ goto __325
+__325:
;
goto __8
@@ -68038,22 +68545,22 @@ __319:
// equal to, or greater than the P2 vector, respectively.
__56: // jump
if !(iCompare < 0) {
- goto __323
+ goto __329
}
pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1-1)*24
- goto __324
-__323:
+ goto __330
+__329:
if !(iCompare == 0) {
- goto __325
+ goto __331
}
pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2-1)*24
- goto __326
-__325:
+ goto __332
+__331:
;
pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3-1)*24
-__326:
+__332:
;
-__324:
+__330:
;
goto __8
@@ -68081,24 +68588,24 @@ __58: // 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 __327
+ goto __333
}
v1 = int32(and_logic[v1*3+v2])
- goto __328
-__327:
+ goto __334
+__333:
v1 = int32(or_logic[v1*3+v2])
-__328:
+__334:
;
pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(v1 == 2) {
- goto __329
+ goto __335
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
- goto __330
-__329:
+ goto __336
+__335:
*(*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)
-__330:
+__336:
;
goto __8
@@ -68138,13 +68645,13 @@ __60: // 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 __331
+ goto __337
}
Xsqlite3VdbeMemSetInt64(tls, pOut, libc.BoolInt64(!(Xsqlite3VdbeBooleanValue(tls, pIn1, 0) != 0)))
- goto __332
-__331:
+ goto __338
+__337:
Xsqlite3VdbeMemSetNull(tls, pOut)
-__332:
+__338:
;
goto __8
@@ -68159,11 +68666,11 @@ __61: // same as TK_BITNOT, in1, out2
pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
Xsqlite3VdbeMemSetNull(tls, pOut)
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) {
- goto __333
+ goto __339
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int)
*(*I64)(unsafe.Pointer(pOut)) = ^Xsqlite3VdbeIntValue(tls, pIn1)
-__333:
+__339:
;
goto __8
@@ -68186,27 +68693,27 @@ __333:
__62: // Address of this instruction
;
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __334
+ goto __340
}
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 __336
+ goto __342
}
goto jump_to_p2
-__336:
+__342:
;
*(*U8)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpFrame)).FaOnce + uintptr(iAddr/U32(8)))) |= U8(int32(1) << (iAddr & U32(7)))
- goto __335
-__334:
+ goto __341
+__340:
if !((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp)).Fp1 == (*Op)(unsafe.Pointer(pOp)).Fp1) {
- goto __337
+ goto __343
}
goto jump_to_p2
-__337:
+__343:
;
-__335:
+__341:
;
(*Op)(unsafe.Pointer(pOp)).Fp1 = (*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp)).Fp1
@@ -68221,10 +68728,10 @@ __63:
c = Xsqlite3VdbeBooleanValue(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56, (*Op)(unsafe.Pointer(pOp)).Fp3)
if !(c != 0) {
- goto __338
+ goto __344
}
goto jump_to_p2
-__338:
+__344:
;
goto __8
@@ -68237,10 +68744,10 @@ __64:
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 __339
+ goto __345
}
goto jump_to_p2
-__339:
+__345:
;
goto __8
@@ -68252,10 +68759,10 @@ __65: // 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 __340
+ goto __346
}
goto jump_to_p2
-__340:
+__346:
;
goto __8
@@ -68270,10 +68777,10 @@ __66:
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 __341
+ goto __347
}
goto jump_to_p2
-__341:
+__347:
;
goto __8
@@ -68286,13 +68793,13 @@ __341:
__67: // 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 __342
+ goto __348
}
Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56)
- goto __343
-__342:
+ goto __349
+__348:
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56, int64(0))
-__343:
+__349:
;
goto __8
@@ -68304,10 +68811,10 @@ __68: // 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 __344
+ goto __350
}
goto jump_to_p2
-__344:
+__350:
;
goto __8
@@ -68322,11 +68829,11 @@ __69: // jump
;
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)))).FnullRow != 0) {
- goto __345
+ goto __351
}
Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)
goto jump_to_p2
-__345:
+__351:
;
goto __8
@@ -68349,13 +68856,33 @@ __70: // 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 __346
+ goto __352
}
Xsqlite3VdbeMemSetNull(tls, pOut)
- goto __347
-__346:
- Xsqlite3VdbeMemSetInt64(tls, pOut, Xsqlite3BtreeOffset(tls, *(*uintptr)(unsafe.Pointer(pC + 56))))
-__347:
+ goto __353
+__352:
+ if !((*VdbeCursor)(unsafe.Pointer(pC)).FdeferredMoveto != 0) {
+ goto __354
+ }
+ rc = Xsqlite3VdbeFinishMoveto(tls, pC)
+ if !(rc != 0) {
+ goto __355
+ }
+ goto abort_due_to_error
+__355:
+ ;
+__354:
+ ;
+ if !(Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC + 48))) != 0) {
+ goto __356
+ }
+ Xsqlite3VdbeMemSetNull(tls, pOut)
+ goto __357
+__356:
+ Xsqlite3VdbeMemSetInt64(tls, pOut, Xsqlite3BtreeOffset(tls, *(*uintptr)(unsafe.Pointer(pC + 48))))
+__357:
+ ;
+__353:
;
goto __8
@@ -68390,10 +68917,10 @@ __71: // PseudoTable input register
// B-Tree seek.
rc = Xsqlite3VdbeCursorMoveto(tls, bp+232, bp+240)
if !(rc != 0) {
- goto __348
+ goto __358
}
goto abort_due_to_error
-__348:
+__358:
;
pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -68401,42 +68928,42 @@ __348:
aOffset = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaOffset
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FcacheStatus != (*Vdbe)(unsafe.Pointer(p)).FcacheCtr) {
- goto __349
+ goto __359
} //OPTIMIZATION-IF-FALSE
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnullRow != 0) {
- goto __350
+ goto __360
}
if !(int32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FeCurType) == CURTYPE_PSEUDO) {
- goto __352
+ goto __362
}
// For the special case of as pseudo-cursor, the seekResult field
// identifies the register that holds the record
pReg = aMem + uintptr((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FseekResult)*56
- (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FpayloadSize = libc.AssignPtrUint32(*(*uintptr)(unsafe.Pointer(bp + 232))+116, U32((*Mem)(unsafe.Pointer(pReg)).Fn))
+ (*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 __353
-__352:
+ goto __363
+__362:
Xsqlite3VdbeMemSetNull(tls, pDest)
goto op_column_out
-__353:
+__363:
;
- goto __351
-__350:
- pCrsr = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 56))
+ 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))+116)
+ (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow = Xsqlite3BtreePayloadFetch(tls, pCrsr, *(*uintptr)(unsafe.Pointer(bp + 232))+108)
// Maximum page size is 64KiB
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FpayloadSize > U32(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __354
+ goto __364
}
goto too_big
-__354:
+__364:
;
-__351:
+__361:
;
(*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 {
@@ -68451,7 +68978,7 @@ __351:
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FnHdrParsed = U16(0)
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FszRow < *(*U32)(unsafe.Pointer(aOffset))) {
- goto __355
+ goto __365
} //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
@@ -68469,13 +68996,13 @@ __351:
// 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 __357
+ goto __367
}
goto op_column_corrupt
-__357:
+__367:
;
- goto __356
-__355:
+ goto __366
+__365:
// 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.
@@ -68492,38 +69019,38 @@ __355:
// Conditional skipped
goto op_column_read_header
-__356:
+__366:
;
-__349:
+__359:
;
// 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 __358
+ goto __368
}
// 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 __360
+ goto __370
}
// 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 __362
+ goto __372
}
libc.Xmemset(tls, bp+248, 0, uint64(unsafe.Sizeof(Mem{})))
- rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 56)), *(*U32)(unsafe.Pointer(aOffset)), bp+248)
+ rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48)), *(*U32)(unsafe.Pointer(aOffset)), bp+248)
if !(rc != SQLITE_OK) {
- goto __364
+ goto __374
}
goto abort_due_to_error
-__364:
+__374:
;
zData = (*Mem)(unsafe.Pointer(bp + 248 /* &sMem */)).Fz
- goto __363
-__362:
+ goto __373
+__372:
zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow
-__363:
+__373:
;
// Fill in pC->aType[i] and aOffset[i] values through the p2-th field.
@@ -68533,27 +69060,27 @@ op_column_read_header:
zHdr = zData + uintptr((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FiHdrOffset)
zEndHdr = zData + uintptr(*(*U32)(unsafe.Pointer(aOffset)))
-__365:
- if !(libc.AssignPtrUint32(*(*uintptr)(unsafe.Pointer(bp + 232))+120+uintptr(i2)*4, libc.AssignPtrUint32(bp+304, U32(*(*U8)(unsafe.Pointer(zHdr))))) < U32(0x80)) {
- goto __368
+__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
}
zHdr++
offset64 = offset64 + U64(Xsqlite3VdbeOneByteSerialTypeLen(tls, uint8(*(*U32)(unsafe.Pointer(bp + 304)))))
- goto __369
-__368:
+ goto __379
+__378:
zHdr += uintptr(Xsqlite3GetVarint32(tls, zHdr, bp+304))
- *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 120 + uintptr(i2)*4)) = *(*U32)(unsafe.Pointer(bp + 304 /* t */))
+ *(*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))))
-__369:
+__379:
;
*(*U32)(unsafe.Pointer(aOffset + uintptr(libc.PreIncInt32(&i2, 1))*4)) = U32(offset64 & uint64(0xffffffff))
- goto __366
-__366:
+ goto __376
+__376:
if U32(i2) <= *(*U32)(unsafe.Pointer(bp + 240)) && zHdr < zEndHdr {
- goto __365
+ goto __375
}
- goto __367
-__367:
+ goto __377
+__377:
;
// The record is corrupt if any of the following are true:
@@ -68562,63 +69089,63 @@ __367:
// (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 __370
+ goto __380
}
if !(*(*U32)(unsafe.Pointer(aOffset)) == U32(0)) {
- goto __371
+ goto __381
}
i2 = 0
zHdr = zEndHdr
- goto __372
-__371:
+ goto __382
+__381:
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) {
- goto __373
+ goto __383
}
Xsqlite3VdbeMemRelease(tls, bp+248)
-__373:
+__383:
;
goto op_column_corrupt
-__372:
+__382:
;
-__370:
+__380:
;
(*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 __374
+ goto __384
}
Xsqlite3VdbeMemRelease(tls, bp+248)
-__374:
+__384:
;
- goto __361
-__360:
+ goto __371
+__370:
*(*U32)(unsafe.Pointer(bp + 304 /* t */)) = U32(0)
-__361:
+__371:
;
// 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 __375
+ goto __385
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -11) {
- goto __376
+ goto __386
}
Xsqlite3VdbeMemShallowCopy(tls, pDest, *(*uintptr)(unsafe.Pointer(pOp + 16)), MEM_Static)
- goto __377
-__376:
+ goto __387
+__386:
Xsqlite3VdbeMemSetNull(tls, pDest)
-__377:
+__387:
;
goto op_column_out
-__375:
+__385:
;
- goto __359
-__358:
- *(*U32)(unsafe.Pointer(bp + 304 /* t */)) = *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 120 + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4))
-__359:
+ 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:
;
// Extract the content for the p2+1-th column. Control can only
@@ -68626,55 +69153,55 @@ __359:
// all valid.
if !(int32((*Mem)(unsafe.Pointer(pDest)).Fflags)&(MEM_Agg|MEM_Dyn) != 0) {
- goto __378
+ goto __388
}
Xsqlite3VdbeMemSetNull(tls, pDest)
-__378:
+__388:
;
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FszRow >= *(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240))+U32(1))*4))) {
- goto __379
+ goto __389
}
// 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 __381
+ goto __391
}
Xsqlite3VdbeSerialGet(tls, zData, *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest)
- goto __382
-__381:
+ goto __392
+__391:
(*Mem)(unsafe.Pointer(pDest)).Fn = libc.AssignInt32(&len, int32((*(*U32)(unsafe.Pointer(bp + 304))-U32(12))/U32(2)))
(*Mem)(unsafe.Pointer(pDest)).Fenc = encoding
if !((*Mem)(unsafe.Pointer(pDest)).FszMalloc < len+2) {
- goto __383
+ goto __393
}
(*Mem)(unsafe.Pointer(pDest)).Fflags = U16(MEM_Null)
if !(Xsqlite3VdbeMemGrow(tls, pDest, len+2, 0) != 0) {
- goto __385
+ goto __395
}
goto no_mem
-__385:
+__395:
;
- goto __384
-__383:
+ goto __394
+__393:
(*Mem)(unsafe.Pointer(pDest)).Fz = (*Mem)(unsafe.Pointer(pDest)).FzMalloc
-__384:
+__394:
;
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)]
-__382:
+__392:
;
- goto __380
-__379:
+ goto __390
+__389:
(*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 __386
+ goto __396
}
// Content is irrelevant for
// 1. the typeof() function,
@@ -68689,20 +69216,20 @@ __379:
// 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 __387
-__386:
- rc = Xsqlite3VdbeMemFromBtree(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 56)), *(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4)), uint32(len), 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)
if !(rc != SQLITE_OK) {
- goto __388
+ goto __398
}
goto abort_due_to_error
-__388:
+__398:
;
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))
-__387:
+__397:
;
-__380:
+__390:
;
op_column_out:
@@ -68712,15 +69239,15 @@ op_column_out:
op_column_corrupt:
if !((*Op)(unsafe.Pointer(aOp)).Fp3 > 0) {
- goto __389
+ goto __399
}
pOp = aOp + uintptr((*Op)(unsafe.Pointer(aOp)).Fp3-1)*24
goto __8
- goto __390
-__389:
- rc = Xsqlite3CorruptError(tls, 89604)
+ goto __400
+__399:
+ rc = Xsqlite3CorruptError(tls, 90333)
goto abort_due_to_error
-__390:
+__400:
;
// Opcode: TypeCheck P1 P2 P3 P4 *
@@ -68755,79 +69282,81 @@ __72:
aCol = (*Table)(unsafe.Pointer(pTab)).FaCol
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
i3 = 0
-__391:
+__401:
if !(i3 < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __393
+ goto __403
}
if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_GENERATED != 0) {
- goto __394
+ goto __404
}
if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_VIRTUAL != 0) {
- goto __395
+ goto __405
}
- goto __392
-__395:
+ goto __402
+__405:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __396
+ goto __406
}
pIn1 += 56
- goto __392
-__396:
+ goto __402
+__406:
;
-__394:
+__404:
;
applyAffinity(tls, pIn1, (*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).Faffinity, encoding)
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) {
- goto __397
+ goto __407
}
switch int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i3)*24 + 8)) & 0xf0 >> 4) {
case COLTYPE_BLOB:
- goto __399
+ goto __409
case COLTYPE_INTEGER:
- goto __400
+ goto __410
case COLTYPE_INT:
- goto __401
+ goto __411
case COLTYPE_TEXT:
- goto __402
+ goto __412
case COLTYPE_REAL:
- goto __403
+ goto __413
default:
- goto __404
+ goto __414
}
- goto __398
-__399:
+ goto __408
+__409:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) {
- goto __405
+ goto __415
}
goto vdbe_type_error
-__405:
+__415:
;
- goto __398
+ goto __408
-__400:
-__401:
+__410:
+__411:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) {
- goto __406
+ goto __416
}
goto vdbe_type_error
-__406:
+__416:
;
- goto __398
+ goto __408
-__402:
+__412:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Str == 0) {
- goto __407
+ goto __417
}
goto vdbe_type_error
-__407:
+__417:
+ ;
+ goto __408
+
+__413:
;
- goto __398
-__403:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) {
- goto __408
+ goto __418
}
// 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
@@ -68835,51 +69364,51 @@ __403:
// the type really wants to be REAL.
if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) {
- goto __410
+ goto __420
}
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
- goto __411
-__410:
+ goto __421
+__420:
*(*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))
-__411:
+__421:
;
- goto __409
-__408:
- if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Real == 0) {
- goto __412
+ goto __419
+__418:
+ if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&(MEM_Real|MEM_IntReal) == 0) {
+ goto __422
}
goto vdbe_type_error
-__412:
+__422:
;
-__409:
+__419:
;
- goto __398
+ goto __408
-__404:
+__414:
// COLTYPE_ANY. Accept anything.
- goto __398
+ goto __408
-__398:
+__408:
;
-__397:
+__407:
;
pIn1 += 56
- goto __392
-__392:
+ goto __402
+__402:
i3++
- goto __391
- goto __393
-__393:
+ goto __401
+ goto __403
+__403:
;
goto __8
vdbe_type_error:
- Xsqlite3VdbeError(tls, p, ts+5406,
+ Xsqlite3VdbeError(tls, p, ts+5425,
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))
rc = SQLITE_CONSTRAINT | int32(12)<<8
@@ -68898,14 +69427,14 @@ __73: // The affinity to be applied
zAffinity = *(*uintptr)(unsafe.Pointer(pOp + 16))
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
-__413:
+__423:
if !(1 != 0) {
- goto __414
+ goto __424
}
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 __415
+ goto __425
}
// 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
@@ -68913,30 +69442,30 @@ __413:
// the type really wants to be REAL.
if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) {
- goto __416
+ goto __426
}
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
- goto __417
-__416:
+ goto __427
+__426:
*(*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))
-__417:
+__427:
;
-__415:
+__425:
;
zAffinity++
if !(int32(*(*int8)(unsafe.Pointer(zAffinity))) == 0) {
- goto __418
+ goto __428
}
- goto __414
-__418:
+ goto __424
+__428:
;
pIn1 += 56
- goto __413
-__414:
+ goto __423
+__424:
;
goto __8
@@ -69000,31 +69529,31 @@ __74: // Where to write next byte of the payload
// Apply the requested affinity to all inputs
if !(zAffinity1 != 0) {
- goto __419
+ goto __429
}
pRec = pData0
-__420:
+__430:
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 __423
+ goto __433
}
*(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
-__423:
+__433:
;
zAffinity1++
pRec += 56
- goto __421
-__421:
+ goto __431
+__431:
if *(*int8)(unsafe.Pointer(zAffinity1)) != 0 {
- goto __420
+ goto __430
}
- goto __422
-__422:
+ goto __432
+__432:
;
-__419:
+__429:
;
// Loop through the elements that will make up the record to figure
@@ -69053,13 +69582,13 @@ __419:
// nData Number of bytes of data space needed for the record
// nZero Zero bytes at the end of the record
pRec = pLast
-__424:
+__434:
;
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Null != 0) {
- goto __427
+ goto __437
}
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Zero != 0) {
- goto __429
+ goto __439
}
// Values with MEM_Null and MEM_Zero are created by xColumn virtual
// table methods that never invoke sqlite3_result_xxxxx() while
@@ -69069,77 +69598,77 @@ __424:
// a true sqlite3_value_nochange().
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(10)
- goto __430
-__429:
+ goto __440
+__439:
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(0)
-__430:
+__440:
;
nHdr++
- goto __428
-__427:
+ goto __438
+__437:
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&(MEM_Int|MEM_IntReal) != 0) {
- goto __431
+ goto __441
}
// Figure out whether to use 1, 2, 4, 6 or 8 bytes.
i4 = *(*I64)(unsafe.Pointer(pRec))
if !(i4 < int64(0)) {
- goto __433
+ goto __443
}
uu = U64(^i4)
- goto __434
-__433:
+ goto __444
+__443:
uu = U64(i4)
-__434:
+__444:
;
nHdr++
if !(uu <= uint64(127)) {
- goto __435
+ goto __445
}
if !(i4&int64(1) == i4 && file_format >= 4) {
- goto __437
+ goto __447
}
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(8) + U32(uu)
- goto __438
-__437:
+ goto __448
+__447:
nData++
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(1)
-__438:
+__448:
;
- goto __436
-__435:
+ goto __446
+__445:
if !(uu <= uint64(32767)) {
- goto __439
+ goto __449
}
nData = nData + uint64(2)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(2)
- goto __440
-__439:
+ goto __450
+__449:
if !(uu <= uint64(8388607)) {
- goto __441
+ goto __451
}
nData = nData + uint64(3)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(3)
- goto __442
-__441:
+ goto __452
+__451:
if !(uu <= uint64(2147483647)) {
- goto __443
+ goto __453
}
nData = nData + uint64(4)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(4)
- goto __444
-__443:
+ goto __454
+__453:
if !(uu <= uint64(140737488355327)) {
- goto __445
+ goto __455
}
nData = nData + uint64(6)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(5)
- goto __446
-__445:
+ goto __456
+__455:
nData = nData + uint64(8)
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_IntReal != 0) {
- goto __447
+ goto __457
}
// 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
@@ -69148,79 +69677,79 @@ __445:
*(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_IntReal))
*(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_Real)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(7)
- goto __448
-__447:
+ goto __458
+__457:
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(6)
-__448:
+__458:
;
-__446:
+__456:
;
-__444:
+__454:
;
-__442:
+__452:
;
-__440:
+__450:
;
-__436:
+__446:
;
- goto __432
-__431:
+ goto __442
+__441:
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Real != 0) {
- goto __449
+ goto __459
}
nHdr++
nData = nData + uint64(8)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(7)
- goto __450
-__449:
+ goto __460
+__459:
;
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 __451
+ goto __461
}
serial_type = serial_type + U32(*(*int32)(unsafe.Pointer(pRec))*2)
if !(nData != 0) {
- goto __452
+ goto __462
}
if !(Xsqlite3VdbeMemExpandBlob(tls, pRec) != 0) {
- goto __454
+ goto __464
}
goto no_mem
-__454:
+__464:
;
len1 = len1 + U32(*(*int32)(unsafe.Pointer(pRec)))
- goto __453
-__452:
+ goto __463
+__462:
nZero = nZero + I64(*(*int32)(unsafe.Pointer(pRec)))
-__453:
+__463:
;
-__451:
+__461:
;
nData = nData + U64(len1)
nHdr = nHdr + Xsqlite3VarintLen(tls, uint64(serial_type))
(*Mem)(unsafe.Pointer(pRec)).FuTemp = serial_type
-__450:
+__460:
;
-__432:
+__442:
;
-__428:
+__438:
;
if !(pRec == pData0) {
- goto __455
+ goto __465
}
- goto __426
-__455:
+ goto __436
+__465:
;
pRec -= 56
- goto __425
-__425:
+ goto __435
+__435:
if 1 != 0 {
- goto __424
+ goto __434
}
- goto __426
-__426:
+ goto __436
+__436:
;
// EVIDENCE-OF: R-22564-11647 The header begins with a single varint
@@ -69229,22 +69758,22 @@ __426:
// itself.
if !(nHdr <= 126) {
- goto __456
+ goto __466
}
// The common case
nHdr = nHdr + 1
- goto __457
-__456:
+ goto __467
+__466:
// Rare case of a really large header
nVarint = Xsqlite3VarintLen(tls, uint64(nHdr))
nHdr = nHdr + nVarint
if !(nVarint < Xsqlite3VarintLen(tls, uint64(nHdr))) {
- goto __458
+ goto __468
}
nHdr++
-__458:
+__468:
;
-__457:
+__467:
;
nByte1 = I64(U64(nHdr) + nData)
@@ -69253,37 +69782,37 @@ __457:
// 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 __459
+ goto __469
}
// 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 __460
-__459:
+ goto __470
+__469:
// 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 __461
+ goto __471
}
goto too_big
-__461:
+__471:
;
if !(Xsqlite3VdbeMemClearAndResize(tls, pOut, int32(nByte1)) != 0) {
- goto __462
+ goto __472
}
goto no_mem
-__462:
+__472:
;
-__460:
+__470:
;
(*Mem)(unsafe.Pointer(pOut)).Fn = int32(nByte1)
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Blob)
if !(nZero != 0) {
- goto __463
+ goto __473
}
*(*int32)(unsafe.Pointer(pOut)) = int32(nZero)
*(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Zero)
-__463:
+__473:
;
zHdr1 = (*Mem)(unsafe.Pointer(pOut)).Fz
@@ -69298,7 +69827,7 @@ __463:
}())
pRec = pData0
-__464:
+__474:
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.
@@ -69311,18 +69840,18 @@ __464:
// 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 __465
-__465:
+ goto __475
+__475:
if libc.PreIncUintptr(&pRec, 56) <= pLast {
- goto __464
+ goto __474
}
- goto __466
-__466:
+ goto __476
+__476:
;
goto __8
- // Opcode: Count P1 P2 p3 * *
+ // Opcode: Count P1 P2 P3 * *
// Synopsis: r[P2]=count()
//
// Store the number of entries (an integer value) in the table or index
@@ -69333,23 +69862,23 @@ __466:
// is returned based on the current cursor position.
__75:
;
- pCrsr1 = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) + 56))
+ 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 __467
+ goto __477
}
*(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) = Xsqlite3BtreeRowCountEst(tls, pCrsr1)
- goto __468
-__467:
+ 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)
if !(rc != 0) {
- goto __469
+ goto __479
}
goto abort_due_to_error
-__469:
+__479:
;
-__468:
+__478:
;
pOut = out2Prerelease(tls, p, pOp)
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 312 /* nEntry */))
@@ -69370,17 +69899,17 @@ __76:
// transaction, then there cannot be any savepoints.
if !(p12 == SAVEPOINT_BEGIN) {
- goto __470
+ goto __480
}
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) {
- goto __472
+ goto __482
}
// A new savepoint cannot be created if there are active write
// statements (i.e. open read/write incremental blob handles).
- Xsqlite3VdbeError(tls, p, ts+5447, 0)
+ Xsqlite3VdbeError(tls, p, ts+5466, 0)
rc = SQLITE_BUSY
- goto __473
-__472:
+ goto __483
+__482:
nName = Xsqlite3Strlen30(tls, zName)
// This call is Ok even if this savepoint is actually a transaction
@@ -69391,16 +69920,16 @@ __472:
rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN,
(*Sqlite3)(unsafe.Pointer(db)).FnStatement+(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint)
if !(rc != SQLITE_OK) {
- goto __474
+ goto __484
}
goto abort_due_to_error
-__474:
+__484:
;
// Create a new savepoint structure.
pNew = Xsqlite3DbMallocRawNN(tls, db, uint64(uint64(unsafe.Sizeof(Savepoint{}))+uint64(nName)+uint64(1)))
if !(pNew != 0) {
- goto __475
+ goto __485
}
(*Savepoint)(unsafe.Pointer(pNew)).FzName = pNew + 1*32
libc.Xmemcpy(tls, (*Savepoint)(unsafe.Pointer(pNew)).FzName, zName, uint64(nName+1))
@@ -69408,14 +69937,14 @@ __474:
// If there is no open transaction, then mark this as a special
// "transaction savepoint".
if !((*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0) {
- goto __476
+ goto __486
}
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
(*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(1)
- goto __477
-__476:
+ goto __487
+__486:
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint++
-__477:
+__487:
;
// Link the new savepoint into the database handle's list.
@@ -69423,163 +69952,163 @@ __477:
(*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
-__475:
+__485:
;
-__473:
+__483:
;
- goto __471
-__470:
+ goto __481
+__480:
;
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
-__478:
+__488:
if !(pSavepoint != 0 && Xsqlite3StrICmp(tls, (*Savepoint)(unsafe.Pointer(pSavepoint)).FzName, zName) != 0) {
- goto __480
+ goto __490
}
iSavepoint++
- goto __479
-__479:
+ goto __489
+__489:
pSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext
- goto __478
- goto __480
-__480:
+ goto __488
+ goto __490
+__490:
;
if !!(pSavepoint != 0) {
- goto __481
+ goto __491
}
- Xsqlite3VdbeError(tls, p, ts+5498, libc.VaList(bp+88, zName))
+ Xsqlite3VdbeError(tls, p, ts+5517, libc.VaList(bp+88, zName))
rc = SQLITE_ERROR
- goto __482
-__481:
+ goto __492
+__491:
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0 && p12 == SAVEPOINT_RELEASE) {
- goto __483
+ goto __493
}
// It is not possible to release (commit) a savepoint if there are
// active write statements.
Xsqlite3VdbeError(tls, p,
- ts+5520, 0)
+ ts+5539, 0)
rc = SQLITE_BUSY
- goto __484
-__483:
+ goto __494
+__493:
// 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 __485
+ goto __495
}
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) {
- goto __487
+ goto __497
}
goto vdbe_return
-__487:
+__497:
;
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1)
if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) {
- goto __488
+ goto __498
}
(*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
-__488:
+__498:
;
rc = (*Vdbe)(unsafe.Pointer(p)).Frc
if !(rc != 0) {
- goto __489
+ goto __499
}
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
- goto __490
-__489:
+ goto __500
+__499:
(*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(0)
-__490:
+__500:
;
- goto __486
-__485:
+ goto __496
+__495:
iSavepoint = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint - iSavepoint - 1
if !(p12 == SAVEPOINT_ROLLBACK) {
- goto __491
+ goto __501
}
isSchemaChange = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != U32(0))
ii = 0
-__493:
+__503:
if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __495
+ goto __505
}
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 __496
+ goto __506
}
goto abort_due_to_error
-__496:
+__506:
;
- goto __494
-__494:
+ goto __504
+__504:
ii++
- goto __493
- goto __495
-__495:
+ goto __503
+ goto __505
+__505:
;
- goto __492
-__491:
+ goto __502
+__501:
;
isSchemaChange = 0
-__492:
+__502:
;
ii = 0
-__497:
+__507:
if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __499
+ goto __509
}
rc = Xsqlite3BtreeSavepoint(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii)*32)).FpBt, p12, iSavepoint)
if !(rc != SQLITE_OK) {
- goto __500
+ goto __510
}
goto abort_due_to_error
-__500:
+__510:
;
- goto __498
-__498:
+ goto __508
+__508:
ii++
- goto __497
- goto __499
-__499:
+ goto __507
+ goto __509
+__509:
;
if !(isSchemaChange != 0) {
- goto __501
+ goto __511
}
Xsqlite3ExpirePreparedStatements(tls, db, 0)
Xsqlite3ResetAllSchemasOfConnection(tls, db)
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange)
-__501:
+__511:
;
-__486:
+__496:
;
if !(rc != 0) {
- goto __502
+ goto __512
}
goto abort_due_to_error
-__502:
+__512:
;
// Regardless of whether this is a RELEASE or ROLLBACK, destroy all
// savepoints nested inside of the savepoint being operated on.
-__503:
+__513:
if !((*Sqlite3)(unsafe.Pointer(db)).FpSavepoint != pSavepoint) {
- goto __504
+ goto __514
}
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 __503
-__504:
+ goto __513
+__514:
;
// If it is a RELEASE, then destroy the savepoint being operated on
@@ -69587,48 +70116,48 @@ __504:
// constraint violations present in the database to the value stored
// when the savepoint was created.
if !(p12 == SAVEPOINT_RELEASE) {
- goto __505
+ goto __515
}
(*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext
Xsqlite3DbFree(tls, db, pSavepoint)
if !!(isTransaction != 0) {
- goto __507
+ goto __517
}
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint--
-__507:
+__517:
;
- goto __506
-__505:
+ goto __516
+__515:
;
(*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredCons
(*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredImmCons
-__506:
+__516:
;
if !(!(isTransaction != 0) || p12 == SAVEPOINT_ROLLBACK) {
- goto __508
+ goto __518
}
rc = Xsqlite3VtabSavepoint(tls, db, p12, iSavepoint)
if !(rc != SQLITE_OK) {
- goto __509
+ goto __519
}
goto abort_due_to_error
-__509:
+__519:
;
-__508:
+__518:
;
-__484:
+__494:
;
-__482:
+__492:
;
-__471:
+__481:
;
if !(rc != 0) {
- goto __510
+ goto __520
}
goto abort_due_to_error
-__510:
+__520:
;
goto __8
@@ -69649,78 +70178,78 @@ __77:
// At least this one VM is active
if !(desiredAutoCommit != int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)) {
- goto __511
+ goto __521
}
if !(iRollback != 0) {
- goto __513
+ goto __523
}
Xsqlite3RollbackAll(tls, db, SQLITE_ABORT|int32(2)<<8)
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1)
- goto __514
-__513:
+ goto __524
+__523:
if !(desiredAutoCommit != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) {
- goto __515
+ goto __525
}
// 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+5574, 0)
+ ts+5593, 0)
rc = SQLITE_BUSY
goto abort_due_to_error
- goto __516
-__515:
+ goto __526
+__525:
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) {
- goto __517
+ goto __527
}
goto vdbe_return
- goto __518
-__517:
+ goto __528
+__527:
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(desiredAutoCommit)
-__518:
+__528:
;
-__516:
+__526:
;
-__514:
+__524:
;
if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) {
- goto __519
+ goto __529
}
(*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
-__519:
+__529:
;
Xsqlite3CloseSavepoints(tls, db)
if !((*Vdbe)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
- goto __520
+ goto __530
}
rc = SQLITE_DONE
- goto __521
-__520:
+ goto __531
+__530:
rc = SQLITE_ERROR
-__521:
+__531:
;
goto vdbe_return
- goto __512
-__511:
+ goto __522
+__521:
Xsqlite3VdbeError(tls, p,
func() uintptr {
if !(desiredAutoCommit != 0) {
- return ts + 5629 /* "cannot start a t..." */
+ return ts + 5648 /* "cannot start a t..." */
}
return func() uintptr {
if iRollback != 0 {
- return ts + 5677 /* "cannot rollback ..." */
+ return ts + 5696 /* "cannot rollback ..." */
}
- return ts + 5720 /* "cannot commit - ..." */
+ return ts + 5739 /* "cannot commit - ..." */
}()
}(), 0)
rc = SQLITE_ERROR
goto abort_due_to_error
-__512:
+__522:
;
/*NOTREACHED*/
@@ -69762,66 +70291,66 @@ __78:
*(*int32)(unsafe.Pointer(bp + 320 /* iMeta */)) = 0
if !((*Op)(unsafe.Pointer(pOp)).Fp2 != 0 && (*Sqlite3)(unsafe.Pointer(db)).Fflags&(uint64(SQLITE_QueryOnly)|U64(uint64(0x00002))<<32) != uint64(0)) {
- goto __522
+ goto __532
}
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_QueryOnly) != 0) {
- goto __523
+ goto __533
}
// Writes prohibited by the "PRAGMA query_only=TRUE" statement
rc = SQLITE_READONLY
- goto __524
-__523:
+ goto __534
+__533:
// Writes prohibited due to a prior SQLITE_CORRUPT in the current
// transaction
rc = SQLITE_CORRUPT
-__524:
+__534:
;
goto abort_due_to_error
-__522:
+__532:
;
pBt = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt
if !(pBt != 0) {
- goto __525
+ goto __535
}
rc = Xsqlite3BtreeBeginTrans(tls, pBt, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+320)
if !(rc != SQLITE_OK) {
- goto __526
+ goto __536
}
if !(rc&0xff == SQLITE_BUSY) {
- goto __527
+ goto __537
}
(*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Vdbe)(unsafe.Pointer(p)).Frc = rc
goto vdbe_return
-__527:
+__537:
;
goto abort_due_to_error
-__526:
+__536:
;
if !(Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x40>>6)) != 0 &&
(*Op)(unsafe.Pointer(pOp)).Fp2 != 0 &&
(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0 || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1)) {
- goto __528
+ goto __538
}
if !((*Vdbe)(unsafe.Pointer(p)).FiStatement == 0) {
- goto __529
+ goto __539
}
(*Sqlite3)(unsafe.Pointer(db)).FnStatement++
(*Vdbe)(unsafe.Pointer(p)).FiStatement = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint + (*Sqlite3)(unsafe.Pointer(db)).FnStatement
-__529:
+__539:
;
rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN, (*Vdbe)(unsafe.Pointer(p)).FiStatement-1)
if !(rc == SQLITE_OK) {
- goto __530
+ goto __540
}
rc = Xsqlite3BtreeBeginStmt(tls, pBt, (*Vdbe)(unsafe.Pointer(p)).FiStatement)
-__530:
+__540:
;
// Store the current value of the database handles deferred constraint
@@ -69829,22 +70358,22 @@ __530:
// 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
-__528:
+__538:
;
-__525:
+__535:
;
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 __531
+ goto __541
}
// 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+5761)
+ (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3DbStrDup(tls, db, ts+5780)
// 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.
@@ -69858,20 +70387,20 @@ __525:
// 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 __532
+ goto __542
}
Xsqlite3ResetOneSchema(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
-__532:
+__542:
;
libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3)
rc = SQLITE_SCHEMA
-__531:
+__541:
;
if !(rc != 0) {
- goto __533
+ goto __543
}
goto abort_due_to_error
-__533:
+__543:
;
goto __8
@@ -69918,37 +70447,37 @@ __80:
// 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))
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == BTREE_SCHEMA_VERSION) {
- goto __534
+ goto __544
}
// 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 + 44)) |= U32(DBFLAG_SchemaChange)
Xsqlite3FkClearTriggerCache(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
- goto __535
-__534:
+ goto __545
+__544:
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == BTREE_FILE_FORMAT) {
- goto __536
+ goto __546
}
// Record changes in the file format
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format = U8((*Op)(unsafe.Pointer(pOp)).Fp3)
-__536:
+__546:
;
-__535:
+__545:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 == 1) {
- goto __537
+ goto __547
}
// 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)
-__537:
+__547:
;
if !(rc != 0) {
- goto __538
+ goto __548
}
goto abort_due_to_error
-__538:
+__548:
;
goto __8
@@ -70038,13 +70567,13 @@ __81:
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 __539
+ goto __549
}
// Guaranteed by the code generator
- Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pCur + 56)))
+ Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pCur + 48)))
goto open_cursor_set_hints
-__539:
+__549:
;
// If the cursor is not currently open or is open on a different
// index, then fall through into OP_OpenRead to force a reopen
@@ -70053,11 +70582,11 @@ __83:
;
if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0) == 1) {
- goto __540
+ goto __550
}
rc = SQLITE_ABORT | int32(2)<<8
goto abort_due_to_error
-__540:
+__550:
;
nField1 = 0
@@ -70069,24 +70598,24 @@ __540:
pX = (*Db)(unsafe.Pointer(pDb1)).FpBt
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_OpenWrite) {
- goto __541
+ goto __551
}
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 __543
+ goto __553
}
(*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat = (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format
-__543:
+__553:
;
- goto __542
-__541:
+ goto __552
+__551:
wrFlag = 0
-__542:
+__552:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_P2ISREG != 0) {
- goto __544
+ goto __554
}
pIn2 = aMem + uintptr(p23)*56
@@ -70098,37 +70627,38 @@ __542:
// If there were a failure, the prepared statement would have halted
// before reaching this instruction.
-__544:
+__554:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -9) {
- goto __545
+ goto __555
}
pKeyInfo1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
nField1 = int32((*KeyInfo)(unsafe.Pointer(pKeyInfo1)).FnAllField)
- goto __546
-__545:
+ goto __556
+__555:
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -3) {
- goto __547
+ goto __557
}
nField1 = *(*int32)(unsafe.Pointer(pOp + 16))
-__547:
+__557:
;
-__546:
+__556:
;
// Table with INTEGER PRIMARY KEY and nothing else
- pCur = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, nField1, iDb1, uint8(CURTYPE_BTREE))
+ pCur = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, nField1, uint8(CURTYPE_BTREE))
if !(pCur == uintptr(0)) {
- goto __548
+ goto __558
}
goto no_mem
-__548:
+__558:
;
+ (*VdbeCursor)(unsafe.Pointer(pCur)).FiDb = I8(iDb1)
(*VdbeCursor)(unsafe.Pointer(pCur)).FnullRow = U8(1)
libc.SetBitFieldPtr8Uint32(pCur+8, Bool(1), 2, 0x4)
(*VdbeCursor)(unsafe.Pointer(pCur)).FpgnoRoot = p23
- rc = Xsqlite3BtreeCursor(tls, pX, p23, wrFlag, pKeyInfo1, *(*uintptr)(unsafe.Pointer(pCur + 56)))
+ rc = Xsqlite3BtreeCursor(tls, pX, p23, wrFlag, pKeyInfo1, *(*uintptr)(unsafe.Pointer(pCur + 48)))
(*VdbeCursor)(unsafe.Pointer(pCur)).FpKeyInfo = pKeyInfo1
// Set the VdbeCursor.isTable variable. Previous versions of
// SQLite used to check if the root-page flags were sane at this point
@@ -70139,13 +70669,13 @@ __548:
open_cursor_set_hints:
;
- Xsqlite3BtreeCursorHintFlags(tls, *(*uintptr)(unsafe.Pointer(pCur + 56)),
+ Xsqlite3BtreeCursorHintFlags(tls, *(*uintptr)(unsafe.Pointer(pCur + 48)),
uint32(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_BULKCSR|OPFLAG_SEEKEQ)))
if !(rc != 0) {
- goto __549
+ goto __559
}
goto abort_due_to_error
-__549:
+__559:
;
goto __8
@@ -70162,12 +70692,12 @@ __84: // The new cursor
// Only ephemeral cursors can be duplicated
- pCx = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, int32((*VdbeCursor)(unsafe.Pointer(pOrig)).FnField), -1, uint8(CURTYPE_BTREE))
+ pCx = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, int32((*VdbeCursor)(unsafe.Pointer(pOrig)).FnField), uint8(CURTYPE_BTREE))
if !(pCx == uintptr(0)) {
- goto __550
+ goto __560
}
goto no_mem
-__550:
+__560:
;
(*VdbeCursor)(unsafe.Pointer(pCx)).FnullRow = U8(1)
libc.SetBitFieldPtr8Uint32(pCx+8, Bool(1), 0, 0x1)
@@ -70175,11 +70705,11 @@ __550:
(*VdbeCursor)(unsafe.Pointer(pCx)).FisTable = (*VdbeCursor)(unsafe.Pointer(pOrig)).FisTable
(*VdbeCursor)(unsafe.Pointer(pCx)).FpgnoRoot = (*VdbeCursor)(unsafe.Pointer(pOrig)).FpgnoRoot
libc.SetBitFieldPtr8Uint32(pCx+8, Bool(int32(*(*uint8)(unsafe.Pointer(pOrig + 8))&0x4>>2)), 2, 0x4)
- (*VdbeCursor)(unsafe.Pointer(pCx)).FpBtx = (*VdbeCursor)(unsafe.Pointer(pOrig)).FpBtx
+ *(*uintptr)(unsafe.Pointer(pCx + 16)) = *(*uintptr)(unsafe.Pointer(pOrig + 16))
libc.SetBitFieldPtr8Uint32(pCx+8, Bool(1), 3, 0x8)
libc.SetBitFieldPtr8Uint32(pOrig+8, Bool(1), 3, 0x8)
- rc = Xsqlite3BtreeCursor(tls, (*VdbeCursor)(unsafe.Pointer(pCx)).FpBtx, (*VdbeCursor)(unsafe.Pointer(pCx)).FpgnoRoot, BTREE_WRCSR,
- (*VdbeCursor)(unsafe.Pointer(pCx)).FpKeyInfo, *(*uintptr)(unsafe.Pointer(pCx + 56)))
+ rc = Xsqlite3BtreeCursor(tls, *(*uintptr)(unsafe.Pointer(pCx + 16)), (*VdbeCursor)(unsafe.Pointer(pCx)).FpgnoRoot, BTREE_WRCSR,
+ (*VdbeCursor)(unsafe.Pointer(pCx)).FpKeyInfo, *(*uintptr)(unsafe.Pointer(pCx + 48)))
// The sqlite3BtreeCursor() routine can only fail for the first cursor
// opened for a database. Since there is already an open cursor when this
// opcode is run, the sqlite3BtreeCursor() cannot fail
@@ -70222,19 +70752,19 @@ __86:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) {
- goto __551
+ goto __561
}
// Make register reg[P3] into a value that can be used as the data
// form sqlite3BtreeInsert() where the length of the data is zero.
// Only used when number of columns is zero
(*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 + 1546 /* "" */
-__551:
+ (*Mem)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fz = ts + 1515 /* "" */
+__561:
;
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 __552
+ goto __562
}
// If the ephermeral table is already open and has no duplicates from
// OP_OpenDup, then erase all existing content so that the table is
@@ -70242,72 +70772,72 @@ __551:
(*VdbeCursor)(unsafe.Pointer(pCx1)).FseqCount = int64(0)
(*VdbeCursor)(unsafe.Pointer(pCx1)).FcacheStatus = U32(CACHE_STALE)
- rc = Xsqlite3BtreeClearTable(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx, int32((*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot), uintptr(0))
- goto __553
-__552:
- pCx1 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, -1, uint8(CURTYPE_BTREE))
+ rc = Xsqlite3BtreeClearTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), int32((*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot), uintptr(0))
+ goto __563
+__562:
+ pCx1 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_BTREE))
if !(pCx1 == uintptr(0)) {
- goto __554
+ goto __564
}
goto no_mem
-__554:
+__564:
;
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 __555
+ goto __565
}
- rc = Xsqlite3BtreeBeginTrans(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx, 1, uintptr(0))
+ rc = Xsqlite3BtreeBeginTrans(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), 1, uintptr(0))
if !(rc == SQLITE_OK) {
- goto __556
+ goto __566
}
// 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+64, libc.AssignUintptr(&pKeyInfo2, *(*uintptr)(unsafe.Pointer(pOp + 16)))) != uintptr(0)) {
- goto __557
+ if !(libc.AssignPtrUintptr(pCx1+56, libc.AssignUintptr(&pKeyInfo2, *(*uintptr)(unsafe.Pointer(pOp + 16)))) != uintptr(0)) {
+ goto __567
}
- rc = Xsqlite3BtreeCreateTable(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx, pCx1+76,
+ rc = Xsqlite3BtreeCreateTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), pCx1+68,
BTREE_BLOBKEY|int32((*Op)(unsafe.Pointer(pOp)).Fp5))
if !(rc == SQLITE_OK) {
- goto __559
+ goto __569
}
- rc = Xsqlite3BtreeCursor(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot, BTREE_WRCSR,
- pKeyInfo2, *(*uintptr)(unsafe.Pointer(pCx1 + 56)))
-__559:
+ rc = Xsqlite3BtreeCursor(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), (*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot, BTREE_WRCSR,
+ pKeyInfo2, *(*uintptr)(unsafe.Pointer(pCx1 + 48)))
+__569:
;
(*VdbeCursor)(unsafe.Pointer(pCx1)).FisTable = U8(0)
- goto __558
-__557:
+ goto __568
+__567:
(*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot = Pgno(SCHEMA_ROOT)
- rc = Xsqlite3BtreeCursor(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx, uint32(SCHEMA_ROOT), BTREE_WRCSR,
- uintptr(0), *(*uintptr)(unsafe.Pointer(pCx1 + 56)))
+ 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)
-__558:
+__568:
;
-__556:
+__566:
;
libc.SetBitFieldPtr8Uint32(pCx1+8, Bool(libc.Bool32(int32((*Op)(unsafe.Pointer(pOp)).Fp5) != BTREE_UNORDERED)), 2, 0x4)
if !(rc != 0) {
- goto __560
+ goto __570
}
- Xsqlite3BtreeClose(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx)
-__560:
+ Xsqlite3BtreeClose(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)))
+__570:
;
-__555:
+__565:
;
-__553:
+__563:
;
if !(rc != 0) {
- goto __561
+ goto __571
}
goto abort_due_to_error
-__561:
+__571:
;
(*VdbeCursor)(unsafe.Pointer(pCx1)).FnullRow = U8(1)
goto __8
@@ -70324,21 +70854,21 @@ __561:
__87:
;
- pCx2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, -1, uint8(CURTYPE_SORTER))
+ pCx2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_SORTER))
if !(pCx2 == uintptr(0)) {
- goto __562
+ goto __572
}
goto no_mem
-__562:
+__572:
;
(*VdbeCursor)(unsafe.Pointer(pCx2)).FpKeyInfo = *(*uintptr)(unsafe.Pointer(pOp + 16))
rc = Xsqlite3VdbeSorterInit(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp3, pCx2)
if !(rc != 0) {
- goto __563
+ goto __573
}
goto abort_due_to_error
-__563:
+__573:
;
goto __8
@@ -70353,10 +70883,10 @@ __88:
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 __564
+ goto __574
}
goto jump_to_p2
-__564:
+__574:
;
goto __8
@@ -70378,12 +70908,12 @@ __564:
__89:
;
- pCx3 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp3, -1, uint8(CURTYPE_PSEUDO))
+ pCx3 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp3, uint8(CURTYPE_PSEUDO))
if !(pCx3 == uintptr(0)) {
- goto __565
+ goto __575
}
goto no_mem
-__565:
+__575:
;
(*VdbeCursor)(unsafe.Pointer(pCx3)).FnullRow = U8(1)
(*VdbeCursor)(unsafe.Pointer(pCx3)).FseekResult = (*Op)(unsafe.Pointer(pOp)).Fp2
@@ -70392,7 +70922,7 @@ __565:
// can be safely passed to sqlite3VdbeCursorMoveto(). This avoids a test
// for pCx->eCurType==CURTYPE_BTREE inside of sqlite3VdbeCursorMoveto()
// which is a performance optimization
- *(*uintptr)(unsafe.Pointer(pCx3 + 56)) = Xsqlite3BtreeFakeValidCursor(tls)
+ *(*uintptr)(unsafe.Pointer(pCx3 + 48)) = Xsqlite3BtreeFakeValidCursor(tls)
goto __8
@@ -70508,7 +71038,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 __566
+ goto __576
}
// The OPFLAG_SEEKEQ/BTREE_SEEK_EQ flag is only set on index cursors
@@ -70518,10 +71048,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 __568
+ goto __578
}
applyNumericAffinity(tls, pIn3, 0)
-__568:
+__578:
;
iKey = Xsqlite3VdbeIntValue(tls, pIn3) // Get the integer key value
newType = (*Mem)(unsafe.Pointer(pIn3)).Fflags // Record the type after applying numeric affinity
@@ -70530,29 +71060,29 @@ __568:
// 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 __569
+ goto __579
}
if !(int32(newType)&MEM_Real == 0) {
- goto __570
+ goto __580
}
if !(int32(newType)&MEM_Null != 0 || oc >= OP_SeekGE) {
- goto __571
+ goto __581
}
goto jump_to_p2
- goto __572
-__571:
- rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 56)), bp+328)
+ goto __582
+__581:
+ rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+328)
if !(rc != SQLITE_OK) {
- goto __573
+ goto __583
}
goto abort_due_to_error
-__573:
+__583:
;
goto seek_not_found
-__572:
+__582:
;
-__570:
+__580:
;
c2 = Xsqlite3IntFloatCompare(tls, iKey, *(*float64)(unsafe.Pointer(pIn3)))
@@ -70563,53 +71093,53 @@ __570:
// (x > 4.9) -> (x >= 5)
// (x <= 4.9) -> (x < 5)
if !(c2 > 0) {
- goto __574
+ goto __584
}
if !(oc&0x0001 == OP_SeekGT&0x0001) {
- goto __576
+ goto __586
}
oc--
-__576:
+__586:
;
- goto __575
-__574:
+ goto __585
+__584:
if !(c2 < 0) {
- goto __577
+ goto __587
}
if !(oc&0x0001 == OP_SeekLT&0x0001) {
- goto __578
+ goto __588
}
oc++
-__578:
+__588:
;
-__577:
+__587:
;
-__575:
+__585:
;
-__569:
+__579:
;
- rc = Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 56)), int64(U64(iKey)), 0, bp+328)
+ rc = Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), int64(U64(iKey)), 0, bp+328)
(*VdbeCursor)(unsafe.Pointer(pC3)).FmovetoTarget = iKey // Used by OP_Delete
if !(rc != SQLITE_OK) {
- goto __579
+ goto __589
}
goto abort_due_to_error
-__579:
+__589:
;
- goto __567
-__566:
+ goto __577
+__576:
// 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 + 56)), uint32(BTREE_SEEK_EQ)) != 0) {
- goto __580
+ if !(Xsqlite3BtreeCursorHasHint(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), uint32(BTREE_SEEK_EQ)) != 0) {
+ goto __590
}
eqOnly = 1
-__580:
+__590:
;
nField2 = *(*int32)(unsafe.Pointer(pOp + 16))
@@ -70632,99 +71162,99 @@ __580:
(*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 + 56)), bp+336, bp+328)
+ rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+336, bp+328)
if !(rc != SQLITE_OK) {
- goto __581
+ goto __591
}
goto abort_due_to_error
-__581:
+__591:
;
if !(eqOnly != 0 && int32((*UnpackedRecord)(unsafe.Pointer(bp+336)).FeqSeen) == 0) {
- goto __582
+ goto __592
}
goto seek_not_found
-__582:
+__592:
;
-__567:
+__577:
;
if !(oc >= OP_SeekGE) {
- goto __583
+ goto __593
}
if !(*(*int32)(unsafe.Pointer(bp + 328)) < 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekGT) {
- goto __585
+ goto __595
}
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
- rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC3 + 56)), 0)
+ rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), 0)
if !(rc != SQLITE_OK) {
- goto __587
+ goto __597
}
if !(rc == SQLITE_DONE) {
- goto __588
+ goto __598
}
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1
- goto __589
-__588:
+ goto __599
+__598:
goto abort_due_to_error
-__589:
+__599:
;
-__587:
+__597:
;
- goto __586
-__585:
+ goto __596
+__595:
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
-__586:
+__596:
;
- goto __584
-__583:
+ goto __594
+__593:
;
if !(*(*int32)(unsafe.Pointer(bp + 328)) > 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekLT) {
- goto __590
+ goto __600
}
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
- rc = Xsqlite3BtreePrevious(tls, *(*uintptr)(unsafe.Pointer(pC3 + 56)), 0)
+ rc = Xsqlite3BtreePrevious(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), 0)
if !(rc != SQLITE_OK) {
- goto __592
+ goto __602
}
if !(rc == SQLITE_DONE) {
- goto __593
+ goto __603
}
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1
- goto __594
-__593:
+ goto __604
+__603:
goto abort_due_to_error
-__594:
+__604:
;
-__592:
+__602:
;
- goto __591
-__590:
+ goto __601
+__600:
// 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 + 56)))
-__591:
+ *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)))
+__601:
;
-__584:
+__594:
;
seek_not_found:
;
if !(*(*int32)(unsafe.Pointer(bp + 328)) != 0) {
- goto __595
+ goto __605
}
goto jump_to_p2
- goto __596
-__595:
+ goto __606
+__605:
if !(eqOnly != 0) {
- goto __597
+ goto __607
}
pOp += 24 // Skip the OP_IdxLt or OP_IdxGT that follows
-__597:
+__607:
;
-__596:
+__606:
;
goto __8
@@ -70781,11 +71311,11 @@ __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 + 56))) != 0) {
- goto __598
+ if !!(Xsqlite3BtreeCursorIsValidNN(tls, *(*uintptr)(unsafe.Pointer(pC4 + 48))) != 0) {
+ goto __608
}
goto __8
-__598:
+__608:
;
nStep = (*Op)(unsafe.Pointer(pOp)).Fp1
@@ -70794,60 +71324,60 @@ __598:
(*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.
-__599:
+__609:
if !(1 != 0) {
- goto __600
+ goto __610
}
rc = Xsqlite3VdbeIdxKeyCompare(tls, db, pC4, bp+360, bp+384)
if !(rc != 0) {
- goto __601
+ goto __611
}
goto abort_due_to_error
-__601:
+__611:
;
if !(*(*int32)(unsafe.Pointer(bp + 384)) > 0) {
- goto __602
+ goto __612
}
seekscan_search_fail:
;
pOp += 24
goto jump_to_p2
-__602:
+__612:
;
if !(*(*int32)(unsafe.Pointer(bp + 384)) == 0) {
- goto __603
+ goto __613
}
goto jump_to_p2
- goto __600
-__603:
+ goto __610
+__613:
;
if !(nStep <= 0) {
- goto __604
+ goto __614
}
- goto __600
-__604:
+ goto __610
+__614:
;
nStep--
- rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC4 + 56)), 0)
+ rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC4 + 48)), 0)
if !(rc != 0) {
- goto __605
+ goto __615
}
if !(rc == SQLITE_DONE) {
- goto __606
+ goto __616
}
rc = SQLITE_OK
goto seekscan_search_fail
- goto __607
-__606:
+ goto __617
+__616:
goto abort_due_to_error
-__607:
+__617:
;
-__605:
+__615:
;
- goto __599
-__600:
+ goto __609
+__610:
;
goto __8
@@ -70870,18 +71400,18 @@ __96:
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 __608
+ goto __618
}
(*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __609
-__608:
+ goto __619
+__618:
if !(int32((*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit) > (*Op)(unsafe.Pointer(pOp)).Fp3) {
- goto __610
+ goto __620
}
(*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp3)
-__610:
+__620:
;
-__609:
+__619:
;
goto __8
@@ -70893,10 +71423,10 @@ __97: // jump
;
if !!(int32(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))) != 0) {
- goto __611
+ goto __621
}
goto jump_to_p2_and_check_for_interrupt
-__611:
+__621:
;
goto __8
@@ -70991,10 +71521,10 @@ __98:
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 __612
+ goto __622
}
goto __8
-__612:
+__622:
;
__99: // jump, in3
@@ -71007,15 +71537,15 @@ __101:
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(*(*int32)(unsafe.Pointer(pOp + 16)) > 0) {
- goto __613
+ goto __623
}
(*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 __614
-__613:
+ goto __624
+__623:
;
rc = func() int32 {
if int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&MEM_Zero != 0 {
@@ -71025,62 +71555,62 @@ __613:
}()
if !(rc != 0) {
- goto __615
+ goto __625
}
goto no_mem
-__615:
+__625:
;
pFree = libc.AssignUintptr(&pIdxKey, Xsqlite3VdbeAllocUnpackedRecord(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo))
if !(pIdxKey == uintptr(0)) {
- goto __616
+ goto __626
}
goto no_mem
-__616:
+__626:
;
Xsqlite3VdbeRecordUnpack(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo, (*Mem)(unsafe.Pointer(pIn3)).Fn, (*Mem)(unsafe.Pointer(pIn3)).Fz, pIdxKey)
-__614:
+__624:
;
(*UnpackedRecord)(unsafe.Pointer(pIdxKey)).Fdefault_rc = int8(0)
takeJump = 0
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_NoConflict) {
- goto __617
+ 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
-__618:
+__628:
if !(ii1 < int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField)) {
- goto __620
+ goto __630
}
if !(int32((*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FaMem+uintptr(ii1)*56)).Fflags)&MEM_Null != 0) {
- goto __621
+ goto __631
}
takeJump = 1
- goto __620
-__621:
+ goto __630
+__631:
;
- goto __619
-__619:
+ goto __629
+__629:
ii1++
- goto __618
- goto __620
-__620:
+ goto __628
+ goto __630
+__630:
;
-__617:
+__627:
;
- rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC7 + 56)), pIdxKey, bp+416)
+ rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC7 + 48)), pIdxKey, bp+416)
if !(pFree != 0) {
- goto __622
+ goto __632
}
Xsqlite3DbFreeNN(tls, db, pFree)
-__622:
+__632:
;
if !(rc != SQLITE_OK) {
- goto __623
+ goto __633
}
goto abort_due_to_error
-__623:
+__633:
;
(*VdbeCursor)(unsafe.Pointer(pC7)).FseekResult = *(*int32)(unsafe.Pointer(bp + 416 /* res4 */))
alreadyExists = libc.Bool32(*(*int32)(unsafe.Pointer(bp + 416)) == 0)
@@ -71088,31 +71618,31 @@ __623:
(*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 __624
+ goto __634
}
if !(alreadyExists != 0) {
- goto __626
+ goto __636
}
goto jump_to_p2
-__626:
+__636:
;
- goto __625
-__624:
+ goto __635
+__634:
;
if !(takeJump != 0 || !(alreadyExists != 0)) {
- goto __627
+ goto __637
}
goto jump_to_p2
-__627:
+__637:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_IfNoHope) {
- goto __628
+ goto __638
}
(*VdbeCursor)(unsafe.Pointer(pC7)).FseekHit = U16(*(*int32)(unsafe.Pointer(pOp + 16)))
-__628:
+__638:
;
-__625:
+__635:
;
goto __8
@@ -71166,7 +71696,7 @@ __102:
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&(MEM_Int|MEM_IntReal) == 0) {
- goto __629
+ goto __639
}
// 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
@@ -71176,14 +71706,14 @@ __102:
*(*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 __630
+ goto __640
}
goto jump_to_p2
-__630:
+__640:
;
iKey1 = U64(*(*I64)(unsafe.Pointer(bp + 424)))
goto notExistsWithKey
-__629:
+__639:
;
__103: // jump, in3
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -71192,7 +71722,7 @@ __103: // jump, in3
notExistsWithKey:
pC8 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- pCrsr2 = *(*uintptr)(unsafe.Pointer(pC8 + 56))
+ pCrsr2 = *(*uintptr)(unsafe.Pointer(pC8 + 48))
*(*int32)(unsafe.Pointer(bp + 480 /* res5 */)) = 0
rc = Xsqlite3BtreeTableMoveto(tls, pCrsr2, int64(iKey1), 0, bp+480)
@@ -71204,25 +71734,25 @@ notExistsWithKey:
(*VdbeCursor)(unsafe.Pointer(pC8)).FseekResult = *(*int32)(unsafe.Pointer(bp + 480 /* res5 */))
if !(*(*int32)(unsafe.Pointer(bp + 480)) != 0) {
- goto __631
+ goto __641
}
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) {
- goto __632
+ goto __642
}
- rc = Xsqlite3CorruptError(tls, 91748)
- goto __633
-__632:
+ rc = Xsqlite3CorruptError(tls, 92480)
+ goto __643
+__642:
goto jump_to_p2
-__633:
+__643:
;
-__631:
+__641:
;
if !(rc != 0) {
- goto __634
+ goto __644
}
goto abort_due_to_error
-__634:
+__644:
;
goto __8
@@ -71280,89 +71810,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 __635
+ goto __645
}
- rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC9 + 56)), bp+484)
+ rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), bp+484)
if !(rc != SQLITE_OK) {
- goto __636
+ goto __646
}
goto abort_due_to_error
-__636:
+__646:
;
if !(*(*int32)(unsafe.Pointer(bp + 484)) != 0) {
- goto __637
+ goto __647
}
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) = int64(1) // IMP: R-61914-48074
- goto __638
-__637:
+ goto __648
+__647:
;
- *(*I64)(unsafe.Pointer(bp + 488 /* v */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC9 + 56)))
+ *(*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 __639
+ goto __649
}
libc.SetBitFieldPtr8Uint32(pC9+8, Bool(1), 1, 0x2)
- goto __640
-__639:
+ goto __650
+__649:
*(*I64)(unsafe.Pointer(bp + 488 /* v */))++ // IMP: R-29538-34987
-__640:
+__650:
;
-__638:
+__648:
;
-__635:
+__645:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __641
+ goto __651
}
// Assert that P3 is a valid memory cell.
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __642
+ goto __652
}
pFrame1 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__644:
+__654:
if !((*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent != 0) {
- goto __646
+ goto __656
}
- goto __645
-__645:
+ goto __655
+__655:
pFrame1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent
- goto __644
- goto __646
-__646:
+ goto __654
+ goto __656
+__656:
;
// Assert that P3 is a valid memory cell.
pMem1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
- goto __643
-__642:
+ goto __653
+__652:
// Assert that P3 is a valid memory cell.
;
pMem1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
-__643:
+__653:
;
Xsqlite3VdbeMemIntegerify(tls, pMem1)
// 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 __647
+ goto __657
}
rc = SQLITE_FULL // IMP: R-17817-00630
goto abort_due_to_error
-__647:
+__657:
;
if !(*(*I64)(unsafe.Pointer(bp + 488)) < *(*I64)(unsafe.Pointer(pMem1))+int64(1)) {
- goto __648
+ goto __658
}
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) = *(*I64)(unsafe.Pointer(pMem1)) + int64(1)
-__648:
+__658:
;
*(*I64)(unsafe.Pointer(pMem1)) = *(*I64)(unsafe.Pointer(bp + 488 /* v */))
-__641:
+__651:
;
if !(Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) {
- goto __649
+ goto __659
}
// IMPLEMENTATION-OF: R-07677-41881 If the largest ROWID is equal to the
// largest possible integer (9223372036854775807) then the database
@@ -71371,36 +71901,36 @@ __641:
// We cannot be in random rowid mode if this is
// an AUTOINCREMENT table.
cnt1 = 0
-__650:
+__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 __651
-__651:
- if libc.AssignInt32(&rc, Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC9 + 56)), int64(U64(*(*I64)(unsafe.Pointer(bp + 488)))),
+ 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 &&
libc.PreIncInt32(&cnt1, 1) < 100 {
- goto __650
+ goto __660
}
- goto __652
-__652:
+ goto __662
+__662:
;
if !(rc != 0) {
- goto __653
+ goto __663
}
goto abort_due_to_error
-__653:
+__663:
;
if !(*(*int32)(unsafe.Pointer(bp + 484)) == 0) {
- goto __654
+ goto __664
}
rc = SQLITE_FULL // IMP: R-38219-53002
goto abort_due_to_error
-__654:
+__664:
;
// EV: R-40812-03570
-__649:
+__659:
;
(*VdbeCursor)(unsafe.Pointer(pC9)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(pC9)).FcacheStatus = U32(CACHE_STALE)
@@ -71455,56 +71985,56 @@ __106: // Payload to be inserted
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &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 __655
+ goto __665
}
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*VdbeCursor)(unsafe.Pointer(pC10)).FiDb)*32)).FzDbSName
pTab1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
- goto __656
-__655:
+ goto __666
+__665:
pTab1 = uintptr(0)
zDb = uintptr(0)
-__656:
+__666:
;
// Invoke the pre-update hook, if any
if !(pTab1 != 0) {
- goto __657
+ goto __667
}
if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISUPDATE != 0)) {
- goto __658
+ goto __668
}
Xsqlite3VdbePreUpdateHook(tls, p, pC10, SQLITE_INSERT, zDb, pTab1, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey, (*Op)(unsafe.Pointer(pOp)).Fp2, -1)
-__658:
+__668:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback == uintptr(0) || (*Table)(unsafe.Pointer(pTab1)).FaCol == uintptr(0)) {
- goto __659
+ goto __669
}
// Prevent post-update hook from running in cases when it should not
pTab1 = uintptr(0)
-__659:
+__669:
;
-__657:
+__667:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISNOOP != 0) {
- goto __660
+ goto __670
}
goto __8
-__660:
+__670:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) {
- goto __661
+ goto __671
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__661:
+__671:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_LASTROWID != 0) {
- goto __662
+ goto __672
}
(*Sqlite3)(unsafe.Pointer(db)).FlastRowid = (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnKey
-__662:
+__672:
;
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpData = (*Mem)(unsafe.Pointer(pData)).Fz
@@ -71516,16 +72046,16 @@ __662:
return 0
}()
if !(int32((*Mem)(unsafe.Pointer(pData)).Fflags)&MEM_Zero != 0) {
- goto __663
+ goto __673
}
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = *(*int32)(unsafe.Pointer(pData))
- goto __664
-__663:
+ goto __674
+__673:
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = 0
-__664:
+__674:
;
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpKey = uintptr(0)
- rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC10 + 56)), bp+496,
+ rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC10 + 48)), bp+496,
int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_APPEND|OPFLAG_SAVEPOSITION|OPFLAG_PREFORMAT),
seekResult)
(*VdbeCursor)(unsafe.Pointer(pC10)).FdeferredMoveto = U8(0)
@@ -71533,13 +72063,13 @@ __664:
// Invoke the update-hook if required.
if !(rc != 0) {
- goto __665
+ goto __675
}
goto abort_due_to_error
-__665:
+__675:
;
if !(pTab1 != 0) {
- goto __666
+ goto __676
}
(*struct {
@@ -71552,7 +72082,7 @@ __665:
return SQLITE_INSERT
}(),
zDb, (*Table)(unsafe.Pointer(pTab1)).FzName, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey)
-__666:
+__676:
;
goto __8
@@ -71576,12 +72106,12 @@ __107: // Rowid value to insert with
} else {
iKey2 = int64(0)
}
- rc = Xsqlite3BtreeTransferRow(tls, *(*uintptr)(unsafe.Pointer(pDest1 + 56)), *(*uintptr)(unsafe.Pointer(pSrc + 56)), iKey2)
+ rc = Xsqlite3BtreeTransferRow(tls, *(*uintptr)(unsafe.Pointer(pDest1 + 48)), *(*uintptr)(unsafe.Pointer(pSrc + 48)), iKey2)
if !(rc != SQLITE_OK) {
- goto __667
+ goto __677
}
goto abort_due_to_error
-__667:
+__677:
;
goto __8
@@ -71631,28 +72161,28 @@ __108:
// 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 __668
+ goto __678
}
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 __670
+ goto __680
}
- (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC11 + 56)))
-__670:
+ (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC11 + 48)))
+__680:
;
- goto __669
-__668:
+ goto __679
+__678:
zDb1 = uintptr(0)
pTab2 = uintptr(0)
-__669:
+__679:
;
// Invoke the pre-update-hook if required.
if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && pTab2 != 0) {
- goto __671
+ goto __681
}
Xsqlite3VdbePreUpdateHook(tls, p, pC11,
@@ -71664,43 +72194,43 @@ __669:
}(),
zDb1, pTab2, (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget,
(*Op)(unsafe.Pointer(pOp)).Fp3, -1)
-__671:
+__681:
;
if !(opflags&OPFLAG_ISNOOP != 0) {
- goto __672
+ goto __682
}
goto __8
-__672:
+__682:
;
// Only flags that can be set are SAVEPOISTION and AUXDELETE
- rc = Xsqlite3BtreeDelete(tls, *(*uintptr)(unsafe.Pointer(pC11 + 56)), uint8((*Op)(unsafe.Pointer(pOp)).Fp5))
+ rc = Xsqlite3BtreeDelete(tls, *(*uintptr)(unsafe.Pointer(pC11 + 48)), uint8((*Op)(unsafe.Pointer(pOp)).Fp5))
(*VdbeCursor)(unsafe.Pointer(pC11)).FcacheStatus = U32(CACHE_STALE)
(*VdbeCursor)(unsafe.Pointer(pC11)).FseekResult = 0
if !(rc != 0) {
- goto __673
+ goto __683
}
goto abort_due_to_error
-__673:
+__683:
;
// Invoke the update-hook if required.
if !(opflags&OPFLAG_NCHANGE != 0) {
- goto __674
+ goto __684
}
(*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 __675
+ goto __685
}
(*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)
-__675:
+__685:
;
-__674:
+__684:
;
goto __8
@@ -71740,16 +72270,16 @@ __110:
rc = Xsqlite3VdbeSorterCompare(tls, pC12, pIn3, nKeyCol, bp+544)
if !(rc != 0) {
- goto __676
+ goto __686
}
goto abort_due_to_error
-__676:
+__686:
;
if !(*(*int32)(unsafe.Pointer(bp + 544)) != 0) {
- goto __677
+ goto __687
}
goto jump_to_p2
-__677:
+__687:
;
goto __8
@@ -71772,10 +72302,10 @@ __111:
rc = Xsqlite3VdbeSorterRowkey(tls, pC13, pOut)
if !(rc != 0) {
- goto __678
+ goto __688
}
goto abort_due_to_error
-__678:
+__688:
;
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8)))).FcacheStatus = U32(CACHE_STALE)
goto __8
@@ -71813,7 +72343,7 @@ __112:
pC14 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- pCrsr3 = *(*uintptr)(unsafe.Pointer(pC14 + 56))
+ pCrsr3 = *(*uintptr)(unsafe.Pointer(pC14 + 48))
// The OP_RowData opcodes always follow OP_NotExists or
// OP_SeekRowid or OP_Rewind/Op_Next with no intervening instructions
@@ -71825,29 +72355,29 @@ __112:
n3 = Xsqlite3BtreePayloadSize(tls, pCrsr3)
if !(n3 > U32(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __679
+ goto __689
}
goto too_big
-__679:
+__689:
;
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCrsr3, n3, pOut)
if !(rc != 0) {
- goto __680
+ goto __690
}
goto abort_due_to_error
-__680:
+__690:
;
if !!((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __681
+ goto __691
}
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) {
- goto __682
+ goto __692
}
goto no_mem
-__682:
+__692:
;
-__681:
+__691:
;
goto __8
@@ -71868,59 +72398,59 @@ __113:
pC15 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FnullRow != 0) {
- goto __683
+ goto __693
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null)
goto __8
- goto __684
-__683:
+ goto __694
+__693:
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FdeferredMoveto != 0) {
- goto __685
+ goto __695
}
*(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = (*VdbeCursor)(unsafe.Pointer(pC15)).FmovetoTarget
- goto __686
-__685:
+ goto __696
+__695:
if !(int32((*VdbeCursor)(unsafe.Pointer(pC15)).FeCurType) == CURTYPE_VTAB) {
- goto __687
+ goto __697
}
- pVtab = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC15 + 56)))).FpVtab
+ pVtab = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC15 + 48)))).FpVtab
pModule = (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FpModule
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 + 56 /* &.uc */)), bp+552 /* &v3 */)
+ })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule)).FxRowid})).f(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48 /* &.uc */)), bp+552 /* &v3 */)
Xsqlite3VtabImportErrmsg(tls, p, pVtab)
if !(rc != 0) {
- goto __689
+ goto __699
}
goto abort_due_to_error
-__689:
+__699:
;
- goto __688
-__687:
+ goto __698
+__697:
;
rc = Xsqlite3VdbeCursorRestore(tls, pC15)
if !(rc != 0) {
- goto __690
+ goto __700
}
goto abort_due_to_error
-__690:
+__700:
;
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FnullRow != 0) {
- goto __691
+ goto __701
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null)
goto __8
-__691:
+__701:
;
- *(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC15 + 56)))
-__688:
+ *(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48)))
+__698:
;
-__686:
+__696:
;
-__684:
+__694:
;
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 552 /* v3 */))
goto __8
@@ -71930,6 +72460,10 @@ __684:
// Move the cursor P1 to a null row. Any OP_Column operations
// 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:
;
pC16 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -71937,11 +72471,11 @@ __114:
(*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 __692
+ goto __702
}
- Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pC16 + 56)))
-__692:
+ Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pC16 + 48)))
+__702:
;
goto __8
@@ -71970,43 +72504,43 @@ __116:
;
pC17 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- pCrsr4 = *(*uintptr)(unsafe.Pointer(pC17 + 56))
+ pCrsr4 = *(*uintptr)(unsafe.Pointer(pC17 + 48))
*(*int32)(unsafe.Pointer(bp + 560 /* res8 */)) = 0
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_SeekEnd) {
- goto __693
+ goto __703
}
(*VdbeCursor)(unsafe.Pointer(pC17)).FseekResult = -1
if !(Xsqlite3BtreeCursorIsValidNN(tls, pCrsr4) != 0) {
- goto __694
+ goto __704
}
goto __8
-__694:
+__704:
;
-__693:
+__703:
;
rc = Xsqlite3BtreeLast(tls, pCrsr4, bp+560)
(*VdbeCursor)(unsafe.Pointer(pC17)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 560 /* res8 */)))
(*VdbeCursor)(unsafe.Pointer(pC17)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(pC17)).FcacheStatus = U32(CACHE_STALE)
if !(rc != 0) {
- goto __695
+ goto __705
}
goto abort_due_to_error
-__695:
+__705:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp2 > 0) {
- goto __696
+ goto __706
}
if !(*(*int32)(unsafe.Pointer(bp + 560)) != 0) {
- goto __697
+ goto __707
}
goto jump_to_p2
-__697:
+__707:
;
-__696:
+__706:
;
goto __8
@@ -72018,33 +72552,33 @@ __117:
;
pC18 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- pCrsr5 = *(*uintptr)(unsafe.Pointer(pC18 + 56))
+ pCrsr5 = *(*uintptr)(unsafe.Pointer(pC18 + 48))
rc = Xsqlite3BtreeFirst(tls, pCrsr5, bp+564)
if !(rc != 0) {
- goto __698
+ goto __708
}
goto abort_due_to_error
-__698:
+__708:
;
if !(*(*int32)(unsafe.Pointer(bp + 564)) == 0) {
- goto __699
+ goto __709
}
sz = Xsqlite3BtreeRowCountEst(tls, pCrsr5)
if !(sz >= int64(0) && int32(Xsqlite3LogEst(tls, U64(sz))) < (*Op)(unsafe.Pointer(pOp)).Fp3) {
- goto __700
+ goto __710
}
*(*int32)(unsafe.Pointer(bp + 564 /* res9 */)) = 1
-__700:
+__710:
;
-__699:
+__709:
;
if !(*(*int32)(unsafe.Pointer(bp + 564)) != 0) {
- goto __701
+ goto __711
}
goto jump_to_p2
-__701:
+__711:
;
goto __8
@@ -72089,32 +72623,32 @@ __120:
*(*int32)(unsafe.Pointer(bp + 568 /* res10 */)) = 1
if !(int32((*VdbeCursor)(unsafe.Pointer(pC19)).FeCurType) == CURTYPE_SORTER) {
- goto __702
+ goto __712
}
rc = Xsqlite3VdbeSorterRewind(tls, pC19, bp+568)
- goto __703
-__702:
+ goto __713
+__712:
;
- pCrsr6 = *(*uintptr)(unsafe.Pointer(pC19 + 56))
+ pCrsr6 = *(*uintptr)(unsafe.Pointer(pC19 + 48))
rc = Xsqlite3BtreeFirst(tls, pCrsr6, bp+568)
(*VdbeCursor)(unsafe.Pointer(pC19)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(pC19)).FcacheStatus = U32(CACHE_STALE)
-__703:
+__713:
;
if !(rc != 0) {
- goto __704
+ goto __714
}
goto abort_due_to_error
-__704:
+__714:
;
(*VdbeCursor)(unsafe.Pointer(pC19)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 568 /* res10 */)))
if !(*(*int32)(unsafe.Pointer(bp + 568)) != 0) {
- goto __705
+ goto __715
}
goto jump_to_p2
-__705:
+__715:
;
goto __8
@@ -72192,23 +72726,23 @@ __123: // jump
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 + 56 /* &.uc */)), (*Op)(unsafe.Pointer(pOp)).Fp3)
+ })(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 __706
+ goto __716
}
(*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(0)
*(*U32)(unsafe.Pointer(p + 220 + uintptr((*Op)(unsafe.Pointer(pOp)).Fp5)*4))++
goto jump_to_p2_and_check_for_interrupt
-__706:
+__716:
;
if !(rc != SQLITE_DONE) {
- goto __707
+ goto __717
}
goto abort_due_to_error
-__707:
+__717:
;
rc = SQLITE_OK
(*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(1)
@@ -72248,10 +72782,10 @@ __124:
pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) {
- goto __708
+ goto __718
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__708:
+__718:
;
rc = func() int32 {
@@ -72261,16 +72795,16 @@ __708:
return 0
}()
if !(rc != 0) {
- goto __709
+ goto __719
}
goto abort_due_to_error
-__709:
+__719:
;
(*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 + 56)), bp+576,
+ rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC21 + 48)), bp+576,
int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_APPEND|OPFLAG_SAVEPOSITION|OPFLAG_PREFORMAT),
func() int32 {
if int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_USESEEKRESULT != 0 {
@@ -72281,10 +72815,10 @@ __709:
(*VdbeCursor)(unsafe.Pointer(pC21)).FcacheStatus = U32(CACHE_STALE)
if !(rc != 0) {
- goto __710
+ goto __720
}
goto abort_due_to_error
-__710:
+__720:
;
goto __8
@@ -72307,17 +72841,17 @@ __125:
return 0
}()
if !(rc != 0) {
- goto __711
+ goto __721
}
goto abort_due_to_error
-__711:
+__721:
;
rc = Xsqlite3VdbeSorterWrite(tls, pC22, pIn2)
if !(rc != 0) {
- goto __712
+ goto __722
}
goto abort_due_to_error
-__712:
+__722:
;
goto __8
@@ -72340,7 +72874,7 @@ __126:
pC23 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- pCrsr7 = *(*uintptr)(unsafe.Pointer(pC23 + 56))
+ 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)
@@ -72348,31 +72882,31 @@ __126:
(*UnpackedRecord)(unsafe.Pointer(bp + 624 /* &r3 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
rc = Xsqlite3BtreeIndexMoveto(tls, pCrsr7, bp+624, bp+648)
if !(rc != 0) {
- goto __713
+ goto __723
}
goto abort_due_to_error
-__713:
+__723:
;
if !(*(*int32)(unsafe.Pointer(bp + 648)) == 0) {
- goto __714
+ goto __724
}
rc = Xsqlite3BtreeDelete(tls, pCrsr7, uint8(BTREE_AUXDELETE))
if !(rc != 0) {
- goto __716
+ goto __726
}
goto abort_due_to_error
-__716:
+__726:
;
- goto __715
-__714:
+ goto __725
+__724:
if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0 && !(Xsqlite3WritableSchema(tls, db) != 0)) {
- goto __717
+ goto __727
}
- rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 92800, ts+5789)
+ rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 93536, ts+5808)
goto abort_due_to_error
-__717:
+__727:
;
-__715:
+__725:
;
(*VdbeCursor)(unsafe.Pointer(pC23)).FcacheStatus = U32(CACHE_STALE)
@@ -72419,25 +72953,25 @@ __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 __718
+ goto __728
}
goto abort_due_to_error
-__718:
+__728:
;
if !!(int32((*VdbeCursor)(unsafe.Pointer(pC24)).FnullRow) != 0) {
- goto __719
+ goto __729
}
*(*I64)(unsafe.Pointer(bp + 656 /* rowid */)) = int64(0) // Not needed. Only used to silence a warning.
- rc = Xsqlite3VdbeIdxRowid(tls, db, *(*uintptr)(unsafe.Pointer(pC24 + 56)), bp+656)
+ rc = Xsqlite3VdbeIdxRowid(tls, db, *(*uintptr)(unsafe.Pointer(pC24 + 48)), bp+656)
if !(rc != SQLITE_OK) {
- goto __721
+ goto __731
}
goto abort_due_to_error
-__721:
+__731:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_DeferredSeek) {
- goto __722
+ goto __732
}
pTabCur = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8))
@@ -72446,20 +72980,20 @@ __721:
(*VdbeCursor)(unsafe.Pointer(pTabCur)).FmovetoTarget = *(*I64)(unsafe.Pointer(bp + 656 /* rowid */))
(*VdbeCursor)(unsafe.Pointer(pTabCur)).FdeferredMoveto = U8(1)
- (*VdbeCursor)(unsafe.Pointer(pTabCur)).FaAltMap = *(*uintptr)(unsafe.Pointer(pOp + 16))
+ *(*uintptr)(unsafe.Pointer(pTabCur + 16)) = *(*uintptr)(unsafe.Pointer(pOp + 16))
(*VdbeCursor)(unsafe.Pointer(pTabCur)).FpAltCursor = pC24
- goto __723
-__722:
+ goto __733
+__732:
pOut = out2Prerelease(tls, p, pOp)
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 656 /* rowid */))
-__723:
+__733:
;
- goto __720
-__719:
+ goto __730
+__729:
;
Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56)
-__720:
+__730:
;
goto __8
@@ -72473,16 +73007,16 @@ __129: // 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 __724
+ goto __734
}
rc = Xsqlite3VdbeFinishMoveto(tls, pC25)
if !(rc != 0) {
- goto __725
+ goto __735
}
goto abort_due_to_error
-__725:
+__735:
;
-__724:
+__734:
;
goto __8
@@ -72536,15 +73070,15 @@ __133:
(*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)))
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) < OP_IdxLT) {
- goto __726
+ goto __736
}
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(-1)
- goto __727
-__726:
+ goto __737
+__736:
;
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(0)
-__727:
+__737:
;
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -72552,25 +73086,25 @@ __727:
nCellKey = int64(0)
- pCur1 = *(*uintptr)(unsafe.Pointer(pC26 + 56))
+ pCur1 = *(*uintptr)(unsafe.Pointer(pC26 + 48))
nCellKey = I64(Xsqlite3BtreePayloadSize(tls, pCur1))
// 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 __728
+ goto __738
}
- rc = Xsqlite3CorruptError(tls, 93004)
+ rc = Xsqlite3CorruptError(tls, 93740)
goto abort_due_to_error
-__728:
+__738:
;
Xsqlite3VdbeMemInit(tls, bp+664, db, uint16(0))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur1, U32(nCellKey), bp+664)
if !(rc != 0) {
- goto __729
+ goto __739
}
goto abort_due_to_error
-__729:
+__739:
;
res12 = Xsqlite3VdbeRecordCompareWithSkip(tls, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fn, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fz, bp+720, 0)
Xsqlite3VdbeMemRelease(tls, bp+664)
@@ -72578,22 +73112,22 @@ __729:
// End of inlined sqlite3VdbeIdxKeyCompare()
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode)&1 == OP_IdxLT&1) {
- goto __730
+ goto __740
}
res12 = -res12
- goto __731
-__730:
+ goto __741
+__740:
;
res12++
-__731:
+__741:
;
if !(res12 > 0) {
- goto __732
+ goto __742
}
goto jump_to_p2
-__732:
+__742:
;
goto __8
@@ -72629,13 +73163,13 @@ __134:
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 __733
+ goto __743
}
rc = SQLITE_LOCKED
(*Vdbe)(unsafe.Pointer(p)).FerrorAction = U8(OE_Abort)
goto abort_due_to_error
- goto __734
-__733:
+ goto __744
+__743:
iDb2 = (*Op)(unsafe.Pointer(pOp)).Fp3
*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */)) = 0 // Not needed. Only to silence a warning.
@@ -72643,21 +73177,21 @@ __733:
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int)
*(*I64)(unsafe.Pointer(pOut)) = I64(*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */)))
if !(rc != 0) {
- goto __735
+ goto __745
}
goto abort_due_to_error
-__735:
+__745:
;
if !(*(*int32)(unsafe.Pointer(bp + 744)) != 0) {
- goto __736
+ goto __746
}
Xsqlite3RootPageMoved(tls, db, iDb2, uint32(*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */))), uint32((*Op)(unsafe.Pointer(pOp)).Fp1))
// All OP_Destroy operations occur on the same btree
resetSchemaOnFault = U8(iDb2 + 1)
-__736:
+__746:
;
-__734:
+__744:
;
goto __8
@@ -72683,23 +73217,23 @@ __135:
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)
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __737
+ goto __747
}
*(*I64)(unsafe.Pointer(p + 64)) += *(*I64)(unsafe.Pointer(bp + 752))
if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) {
- goto __738
+ goto __748
}
*(*I64)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)) += *(*I64)(unsafe.Pointer(bp + 752))
-__738:
+__748:
;
-__737:
+__747:
;
if !(rc != 0) {
- goto __739
+ goto __749
}
goto abort_due_to_error
-__739:
+__749:
;
goto __8
@@ -72715,21 +73249,21 @@ __136:
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 __740
+ goto __750
}
- Xsqlite3VdbeSorterReset(tls, db, *(*uintptr)(unsafe.Pointer(pC27 + 56)))
- goto __741
-__740:
+ Xsqlite3VdbeSorterReset(tls, db, *(*uintptr)(unsafe.Pointer(pC27 + 48)))
+ goto __751
+__750:
;
- rc = Xsqlite3BtreeClearTableOfCursor(tls, *(*uintptr)(unsafe.Pointer(pC27 + 56)))
+ rc = Xsqlite3BtreeClearTableOfCursor(tls, *(*uintptr)(unsafe.Pointer(pC27 + 48)))
if !(rc != 0) {
- goto __742
+ goto __752
}
goto abort_due_to_error
-__742:
+__752:
;
-__741:
+__751:
;
goto __8
@@ -72750,10 +73284,10 @@ __137:
rc = Xsqlite3BtreeCreateTable(tls, (*Db)(unsafe.Pointer(pDb2)).FpBt, bp+760, (*Op)(unsafe.Pointer(pOp)).Fp3)
if !(rc != 0) {
- goto __743
+ goto __753
}
goto abort_due_to_error
-__743:
+__753:
;
*(*I64)(unsafe.Pointer(pOut)) = I64(*(*Pgno)(unsafe.Pointer(bp + 760 /* pgno */)))
goto __8
@@ -72767,10 +73301,10 @@ __138:
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 __744
+ goto __754
}
goto abort_due_to_error
-__744:
+__754:
;
goto __8
@@ -72791,31 +73325,31 @@ __139:
iDb3 = (*Op)(unsafe.Pointer(pOp)).Fp1
if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0)) {
- goto __745
+ goto __755
}
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))
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange)
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3)
- goto __746
-__745:
+ goto __756
+__755:
- zSchema = ts + 5806 /* "sqlite_master" */
+ zSchema = ts + 5825 /* "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)
zSql = Xsqlite3MPrintf(tls, db,
- ts+5820,
+ ts+5839,
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 __747
+ goto __757
}
rc = SQLITE_NOMEM
- goto __748
-__747:
+ goto __758
+__757:
;
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(1)
(*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc = SQLITE_OK
@@ -72825,38 +73359,38 @@ __747:
f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{Xsqlite3InitCallback})), bp+768 /* &initData */, uintptr(0))
if !(rc == SQLITE_OK) {
- goto __749
+ goto __759
}
rc = (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc
-__749:
+__759:
;
if !(rc == SQLITE_OK && (*InitData)(unsafe.Pointer(bp+768)).FnInitRow == U32(0)) {
- goto __750
+ goto __760
}
// 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, 93256)
-__750:
+ rc = Xsqlite3CorruptError(tls, 93992)
+__760:
;
Xsqlite3DbFreeNN(tls, db, zSql)
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(0)
-__748:
+__758:
;
-__746:
+__756:
;
if !(rc != 0) {
- goto __751
+ goto __761
}
Xsqlite3ResetAllSchemasOfConnection(tls, db)
if !(rc == SQLITE_NOMEM) {
- goto __752
+ goto __762
}
goto no_mem
-__752:
+__762:
;
goto abort_due_to_error
-__751:
+__761:
;
goto __8
@@ -72869,10 +73403,10 @@ __140:
;
rc = Xsqlite3AnalysisLoad(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
if !(rc != 0) {
- goto __753
+ goto __763
}
goto abort_due_to_error
-__753:
+__763:
;
goto __8
@@ -72944,22 +73478,22 @@ __144: // Register keeping track of errors remaining
int32(*(*I64)(unsafe.Pointer(pnErr)))+1, bp+808)
Xsqlite3VdbeMemSetNull(tls, pIn1)
if !(*(*int32)(unsafe.Pointer(bp + 808)) == 0) {
- goto __754
+ goto __764
}
- goto __755
-__754:
+ goto __765
+__764:
if !(z == uintptr(0)) {
- goto __756
+ goto __766
}
goto no_mem
- goto __757
-__756:
+ goto __767
+__766:
*(*I64)(unsafe.Pointer(pnErr)) -= I64(*(*int32)(unsafe.Pointer(bp + 808)) - 1)
Xsqlite3VdbeMemSetStr(tls, pIn1, z, int64(-1), uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
-__757:
+__767:
;
-__755:
+__765:
;
Xsqlite3VdbeChangeEncoding(tls, pIn1, int32(encoding))
@@ -72977,15 +73511,15 @@ __145: // in1, in2
pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) {
- goto __758
+ goto __768
}
if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) {
- goto __759
+ goto __769
}
goto no_mem
-__759:
+__769:
;
-__758:
+__768:
;
Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn2)))
@@ -73004,18 +73538,18 @@ __146:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0 ||
Xsqlite3RowSetNext(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, bp+816) == 0) {
- goto __760
+ goto __770
}
// The boolean index is empty
Xsqlite3VdbeMemSetNull(tls, pIn1)
goto jump_to_p2_and_check_for_interrupt
- goto __761
-__760:
+ goto __771
+__770:
// A value was pulled from the index
;
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*I64)(unsafe.Pointer(bp + 816 /* val */)))
-__761:
+__771:
;
goto check_for_interrupt
@@ -73050,35 +73584,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 __762
+ goto __772
}
if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) {
- goto __763
+ goto __773
}
goto no_mem
-__763:
+__773:
;
-__762:
+__772:
;
if !(iSet != 0) {
- goto __764
+ goto __774
}
exists = Xsqlite3RowSetTest(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, iSet, *(*I64)(unsafe.Pointer(pIn3)))
if !(exists != 0) {
- goto __765
+ goto __775
}
goto jump_to_p2
-__765:
+__775:
;
-__764:
+__774:
;
if !(iSet >= 0) {
- goto __766
+ goto __776
}
Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn3)))
-__766:
+__776:
;
goto __8
@@ -73113,37 +73647,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 __767
+ goto __777
}
t1 = (*SubProgram)(unsafe.Pointer(pProgram)).Ftoken
pFrame2 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__768:
+__778:
if !(pFrame2 != 0 && (*VdbeFrame)(unsafe.Pointer(pFrame2)).Ftoken != t1) {
- goto __770
+ goto __780
}
- goto __769
-__769:
+ goto __779
+__779:
pFrame2 = (*VdbeFrame)(unsafe.Pointer(pFrame2)).FpParent
- goto __768
- goto __770
-__770:
+ goto __778
+ goto __780
+__780:
;
if !(pFrame2 != 0) {
- goto __771
+ goto __781
}
goto __8
-__771:
+__781:
;
-__767:
+__777:
;
if !((*Vdbe)(unsafe.Pointer(p)).FnFrame >= *(*int32)(unsafe.Pointer(db + 136 + 10*4))) {
- goto __772
+ goto __782
}
rc = SQLITE_ERROR
- Xsqlite3VdbeError(tls, p, ts+5863, 0)
+ Xsqlite3VdbeError(tls, p, ts+5882, 0)
goto abort_due_to_error
-__772:
+__782:
;
// Register pRt is used to store the memory required to save the state
@@ -73151,7 +73685,7 @@ __772:
// 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 __773
+ goto __783
}
// SubProgram.nMem is set to the number of memory cells used by the
// program stored in SubProgram.aOp. As well as these, one memory
@@ -73160,10 +73694,10 @@ __772:
nMem = (*SubProgram)(unsafe.Pointer(pProgram)).FnMem + (*SubProgram)(unsafe.Pointer(pProgram)).FnCsr
if !((*SubProgram)(unsafe.Pointer(pProgram)).FnCsr == 0) {
- goto __775
+ goto __785
}
nMem++
-__775:
+__785:
;
nByte2 = int32((uint64(unsafe.Sizeof(VdbeFrame{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7)) +
uint64(nMem)*uint64(unsafe.Sizeof(Mem{})) +
@@ -73171,10 +73705,10 @@ __775:
uint64(((*SubProgram)(unsafe.Pointer(pProgram)).FnOp+7)/8))
pFrame2 = Xsqlite3DbMallocZero(tls, db, uint64(nByte2))
if !!(pFrame2 != 0) {
- goto __776
+ goto __786
}
goto no_mem
-__776:
+__786:
;
Xsqlite3VdbeMemRelease(tls, pRt)
(*Mem)(unsafe.Pointer(pRt)).Fflags = U16(MEM_Blob | MEM_Dyn)
@@ -73196,24 +73730,24 @@ __776:
pEnd = pFrame2 + 120 + uintptr((*VdbeFrame)(unsafe.Pointer(pFrame2)).FnChildMem)*56
pMem2 = pFrame2 + 120
-__777:
+__787:
if !(pMem2 != pEnd) {
- goto __779
+ goto __789
}
(*Mem)(unsafe.Pointer(pMem2)).Fflags = U16(MEM_Undefined)
(*Mem)(unsafe.Pointer(pMem2)).Fdb = db
- goto __778
-__778:
+ goto __788
+__788:
pMem2 += 56
- goto __777
- goto __779
-__779:
+ goto __787
+ goto __789
+__789:
;
- goto __774
-__773:
+ goto __784
+__783:
pFrame2 = (*Mem)(unsafe.Pointer(pRt)).Fz
-__774:
+__784:
;
(*Vdbe)(unsafe.Pointer(p)).FnFrame++
@@ -73264,21 +73798,21 @@ __149:
// statement counter is incremented (immediate foreign key constraints).
__150:
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_DeferFKs) != 0) {
- goto __780
+ goto __790
}
*(*I64)(unsafe.Pointer(db + 784)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __781
-__780:
+ goto __791
+__790:
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __782
+ goto __792
}
*(*I64)(unsafe.Pointer(db + 776)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __783
-__782:
+ goto __793
+__792:
*(*I64)(unsafe.Pointer(p + 88)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
-__783:
+__793:
;
-__781:
+__791:
;
goto __8
@@ -73295,25 +73829,25 @@ __781:
// (immediate foreign key constraint violations).
__151: // jump
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __784
+ goto __794
}
if !((*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) {
- goto __786
+ goto __796
}
goto jump_to_p2
-__786:
+__796:
;
- goto __785
-__784:
+ goto __795
+__794:
;
if !((*Vdbe)(unsafe.Pointer(p)).FnFkConstraint == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) {
- goto __787
+ goto __797
}
goto jump_to_p2
-__787:
+__797:
;
-__785:
+__795:
;
goto __8
@@ -73329,35 +73863,35 @@ __785:
// an integer.
__152:
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __788
+ goto __798
}
pFrame4 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__790:
+__800:
if !((*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent != 0) {
- goto __792
+ goto __802
}
- goto __791
-__791:
+ goto __801
+__801:
pFrame4 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent
- goto __790
- goto __792
-__792:
+ goto __800
+ goto __802
+__802:
;
pIn1 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
- goto __789
-__788:
+ goto __799
+__798:
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
-__789:
+__799:
;
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 __793
+ goto __803
}
*(*I64)(unsafe.Pointer(pIn1)) = *(*I64)(unsafe.Pointer(pIn2))
-__793:
+__803:
;
goto __8
@@ -73374,11 +73908,11 @@ __153: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) {
- goto __794
+ goto __804
}
*(*I64)(unsafe.Pointer(pIn1)) -= I64((*Op)(unsafe.Pointer(pOp)).Fp3)
goto jump_to_p2
-__794:
+__804:
;
goto __8
@@ -73411,7 +73945,7 @@ __154:
}
return int64(0)
}()) != 0) {
- goto __795
+ goto __805
}
// 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
@@ -73421,10 +73955,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 __796
-__795:
+ goto __806
+__805:
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 824 /* x3 */))
-__796:
+__806:
;
goto __8
@@ -73439,16 +73973,16 @@ __155: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(*(*I64)(unsafe.Pointer(pIn1)) != 0) {
- goto __797
+ goto __807
}
if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) {
- goto __798
+ goto __808
}
*(*I64)(unsafe.Pointer(pIn1))--
-__798:
+__808:
;
goto jump_to_p2
-__797:
+__807:
;
goto __8
@@ -73461,17 +73995,17 @@ __156: // 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 __799
+ goto __809
}
*(*I64)(unsafe.Pointer(pIn1))--
-__799:
+__809:
;
if !(*(*I64)(unsafe.Pointer(pIn1)) == int64(0)) {
- goto __800
+ goto __810
}
goto jump_to_p2
-__800:
+__810:
;
goto __8
@@ -73518,10 +74052,10 @@ __158:
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 __801
+ goto __811
}
goto no_mem
-__801:
+__811:
;
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FpMem = uintptr(0)
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut = pCtx + 48 + uintptr(n4)*8
@@ -73549,75 +74083,75 @@ __159:
// 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 __802
+ goto __812
}
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem = pMem3
i5 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc) - 1
-__803:
+__813:
if !(i5 >= 0) {
- goto __805
+ goto __815
}
*(*uintptr)(unsafe.Pointer(pCtx1 + 48 + uintptr(i5)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i5)*56
- goto __804
-__804:
+ goto __814
+__814:
i5--
- goto __803
- goto __805
-__805:
+ goto __813
+ goto __815
+__815:
;
-__802:
+__812:
;
(*Mem)(unsafe.Pointer(pMem3)).Fn++
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __806
+ goto __816
}
(*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 __807
-__806:
+ goto __817
+__816:
(*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 */)
-__807:
+__817:
; // IMP: R-24505-23230
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError != 0) {
- goto __808
+ goto __818
}
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError > 0) {
- goto __809
+ goto __819
}
- Xsqlite3VdbeError(tls, p, ts+3604, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)))
+ Xsqlite3VdbeError(tls, p, ts+3595, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)))
rc = (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError
-__809:
+__819:
;
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag != 0) {
- goto __810
+ goto __820
}
i5 = (*Op)(unsafe.Pointer(pOp + libc.UintptrFromInt32(-1)*24)).Fp1
if !(i5 != 0) {
- goto __811
+ goto __821
}
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr(i5)*56, int64(1))
-__811:
+__821:
;
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag = U8(0)
-__810:
+__820:
;
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 __812
+ goto __822
}
goto abort_due_to_error
-__812:
+__822:
;
-__808:
+__818:
;
goto __8
@@ -73653,32 +74187,32 @@ __161:
pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __813
+ goto __823
}
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 __814
-__813:
+ goto __824
+__823:
rc = Xsqlite3VdbeMemFinalize(tls, pMem4, *(*uintptr)(unsafe.Pointer(pOp + 16)))
-__814:
+__824:
;
if !(rc != 0) {
- goto __815
+ goto __825
}
- Xsqlite3VdbeError(tls, p, ts+3604, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4)))
+ Xsqlite3VdbeError(tls, p, ts+3595, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4)))
goto abort_due_to_error
-__815:
+__825:
;
Xsqlite3VdbeChangeEncoding(tls, pMem4, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pMem4) != 0) {
- goto __816
+ goto __826
}
goto too_big
-__816:
+__826:
;
goto __8
@@ -73700,32 +74234,32 @@ __162: // Write results here
rc = Xsqlite3Checkpoint(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+832+1*4, bp+832+2*4)
if !(rc != 0) {
- goto __817
+ goto __827
}
if !(rc != SQLITE_BUSY) {
- goto __818
+ goto __828
}
goto abort_due_to_error
-__818:
+__828:
;
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 832)) = 1
-__817:
+__827:
;
i6 = 0
pMem5 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
-__819:
+__829:
if !(i6 < 3) {
- goto __821
+ goto __831
}
Xsqlite3VdbeMemSetInt64(tls, pMem5, I64(*(*int32)(unsafe.Pointer(bp + 832 + uintptr(i6)*4))))
- goto __820
-__820:
+ goto __830
+__830:
i6++
pMem5 += 56
- goto __819
- goto __821
-__821:
+ goto __829
+ goto __831
+__831:
;
goto __8
@@ -73748,17 +74282,17 @@ __163: // Name of database file for pPager
pPager = Xsqlite3BtreePager(tls, pBt1)
eOld = Xsqlite3PagerGetJournalMode(tls, pPager)
if !(eNew == -1) {
- goto __822
+ goto __832
}
eNew = eOld
-__822:
+__832:
;
if !!(Xsqlite3PagerOkToChangeJournalMode(tls, pPager) != 0) {
- goto __823
+ goto __833
}
eNew = eOld
-__823:
+__833:
;
zFilename = Xsqlite3PagerFilename(tls, pPager, 1)
@@ -73768,34 +74302,34 @@ __823:
if !(eNew == PAGER_JOURNALMODE_WAL &&
(Xsqlite3Strlen30(tls, zFilename) == 0 ||
!(Xsqlite3PagerWalSupported(tls, pPager) != 0))) {
- goto __824
+ goto __834
}
eNew = eOld
-__824:
+__834:
;
if !(eNew != eOld &&
(eOld == PAGER_JOURNALMODE_WAL || eNew == PAGER_JOURNALMODE_WAL)) {
- goto __825
+ goto __835
}
if !(!(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) != 0) || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1) {
- goto __826
+ goto __836
}
rc = SQLITE_ERROR
Xsqlite3VdbeError(tls, p,
- ts+5900,
+ ts+5919,
libc.VaList(bp+136, func() uintptr {
if eNew == PAGER_JOURNALMODE_WAL {
- return ts + 5952 /* "into" */
+ return ts + 5971 /* "into" */
}
- return ts + 5957 /* "out of" */
+ return ts + 5976 /* "out of" */
}()))
goto abort_due_to_error
- goto __827
-__826:
+ goto __837
+__836:
if !(eOld == PAGER_JOURNALMODE_WAL) {
- goto __828
+ goto __838
}
// If leaving WAL mode, close the log file. If successful, the call
// to PagerCloseWal() checkpoints and deletes the write-ahead-log
@@ -73803,29 +74337,29 @@ __826:
// after a successful return.
rc = Xsqlite3PagerCloseWal(tls, pPager, db)
if !(rc == SQLITE_OK) {
- goto __830
+ goto __840
}
Xsqlite3PagerSetJournalMode(tls, pPager, eNew)
-__830:
+__840:
;
- goto __829
-__828:
+ goto __839
+__838:
if !(eOld == PAGER_JOURNALMODE_MEMORY) {
- goto __831
+ goto __841
}
// Cannot transition directly from MEMORY to WAL. Use mode OFF
// as an intermediate
Xsqlite3PagerSetJournalMode(tls, pPager, PAGER_JOURNALMODE_OFF)
-__831:
+__841:
;
-__829:
+__839:
;
// Open a transaction on the database file. Regardless of the journal
// mode, this transaction always uses a rollback journal.
if !(rc == SQLITE_OK) {
- goto __832
+ goto __842
}
rc = Xsqlite3BtreeSetVersion(tls, pBt1, func() int32 {
if eNew == PAGER_JOURNALMODE_WAL {
@@ -73833,18 +74367,18 @@ __829:
}
return 1
}())
-__832:
+__842:
;
-__827:
+__837:
;
-__825:
+__835:
;
if !(rc != 0) {
- goto __833
+ goto __843
}
eNew = eOld
-__833:
+__843:
;
eNew = Xsqlite3PagerSetJournalMode(tls, pPager, eNew)
@@ -73854,10 +74388,10 @@ __833:
(*Mem)(unsafe.Pointer(pOut)).Fenc = U8(SQLITE_UTF8)
Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))
if !(rc != 0) {
- goto __834
+ goto __844
}
goto abort_due_to_error
-__834:
+__844:
;
goto __8
@@ -73879,10 +74413,10 @@ __164:
return uintptr(0)
}())
if !(rc != 0) {
- goto __835
+ goto __845
}
goto abort_due_to_error
-__835:
+__845:
;
goto __8
@@ -73898,17 +74432,17 @@ __165:
rc = Xsqlite3BtreeIncrVacuum(tls, pBt2)
if !(rc != 0) {
- goto __836
+ goto __846
}
if !(rc != SQLITE_DONE) {
- goto __837
+ goto __847
}
goto abort_due_to_error
-__837:
+__847:
;
rc = SQLITE_OK
goto jump_to_p2
-__836:
+__846:
;
goto __8
@@ -73930,13 +74464,13 @@ __836:
__166:
;
if !!((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __838
+ goto __848
}
Xsqlite3ExpirePreparedStatements(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __839
-__838:
+ goto __849
+__848:
libc.SetBitFieldPtr16Uint32(p+208, Bft((*Op)(unsafe.Pointer(pOp)).Fp2+1), 0, 0x3)
-__839:
+__849:
;
goto __8
@@ -73948,7 +74482,7 @@ __167:
;
pC28 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- Xsqlite3BtreeCursorPin(tls, *(*uintptr)(unsafe.Pointer(pC28 + 56)))
+ Xsqlite3BtreeCursorPin(tls, *(*uintptr)(unsafe.Pointer(pC28 + 48)))
goto __8
// Opcode: CursorUnlock P1 * * * *
@@ -73959,7 +74493,7 @@ __168:
;
pC29 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- Xsqlite3BtreeCursorUnpin(tls, *(*uintptr)(unsafe.Pointer(pC29 + 56)))
+ Xsqlite3BtreeCursorUnpin(tls, *(*uintptr)(unsafe.Pointer(pC29 + 48)))
goto __8
// Opcode: TableLock P1 P2 P3 P4 *
@@ -73979,25 +74513,25 @@ __168:
__169:
isWriteLock = U8((*Op)(unsafe.Pointer(pOp)).Fp3)
if !(isWriteLock != 0 || uint64(0) == (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ReadUncommit)) {
- goto __840
+ goto __850
}
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 __841
+ goto __851
}
if !(rc&0xFF == SQLITE_LOCKED) {
- goto __842
+ goto __852
}
z1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
- Xsqlite3VdbeError(tls, p, ts+5964, libc.VaList(bp+144, z1))
-__842:
+ Xsqlite3VdbeError(tls, p, ts+5983, libc.VaList(bp+144, z1))
+__852:
;
goto abort_due_to_error
-__841:
+__851:
;
-__840:
+__850:
;
goto __8
@@ -74013,16 +74547,16 @@ __170:
pVTab = *(*uintptr)(unsafe.Pointer(pOp + 16))
rc = Xsqlite3VtabBegin(tls, db, pVTab)
if !(pVTab != 0) {
- goto __843
+ goto __853
}
Xsqlite3VtabImportErrmsg(tls, p, (*VTable)(unsafe.Pointer(pVTab)).FpVtab)
-__843:
+__853:
;
if !(rc != 0) {
- goto __844
+ goto __854
}
goto abort_due_to_error
-__844:
+__854:
;
goto __8
@@ -74042,17 +74576,17 @@ __171: // Name of the virtual table
zTab = Xsqlite3_value_text(tls, bp+848)
if !(zTab != 0) {
- goto __845
+ goto __855
}
rc = Xsqlite3VtabCallCreate(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, zTab, p+176)
-__845:
+__855:
;
Xsqlite3VdbeMemRelease(tls, bp+848)
if !(rc != 0) {
- goto __846
+ goto __856
}
goto abort_due_to_error
-__846:
+__856:
;
goto __8
@@ -74066,10 +74600,10 @@ __172:
(*Sqlite3)(unsafe.Pointer(db)).FnVDestroy--
if !(rc != 0) {
- goto __847
+ goto __857
}
goto abort_due_to_error
-__847:
+__857:
;
goto __8
@@ -74084,11 +74618,11 @@ __173:
*(*uintptr)(unsafe.Pointer(bp + 904 /* 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 __848
+ goto __858
}
rc = SQLITE_LOCKED
goto abort_due_to_error
-__848:
+__858:
;
pModule1 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FpModule
rc = (*struct {
@@ -74096,33 +74630,59 @@ __848:
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxOpen})).f(tls, pVtab1, bp+904 /* &pVCur */)
Xsqlite3VtabImportErrmsg(tls, p, pVtab1)
if !(rc != 0) {
- goto __849
+ goto __859
}
goto abort_due_to_error
-__849:
+__859:
;
// Initialize sqlite3_vtab_cursor base class
(*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */)))).FpVtab = pVtab1
// Initialize vdbe cursor object
- pCur2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, 0, -1, uint8(CURTYPE_VTAB))
+ pCur2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, 0, uint8(CURTYPE_VTAB))
if !(pCur2 != 0) {
- goto __850
+ goto __860
}
- *(*uintptr)(unsafe.Pointer(pCur2 + 56)) = *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */))
+ *(*uintptr)(unsafe.Pointer(pCur2 + 48)) = *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */))
(*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FnRef++
- goto __851
-__850:
+ goto __861
+__860:
;
(*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 */)))
goto no_mem
-__851:
+__861:
;
goto __8
+ // Opcode: VInitIn P1 P2 P3 * *
+ // Synopsis: r[P2]=ValueList(P1,P3)
+ //
+ // Set register P2 to be a pointer to a ValueList object for cursor P1
+ // with cache register P3 and output register P3+1. This ValueList object
+ // can be used as the first argument to sqlite3_vtab_in_first() and
+ // 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]
+
+ 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 no_mem
+__862:
+ ;
+ (*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+5289, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
+ goto __8
+
// Opcode: VFilter P1 P2 P3 P4 *
// Synopsis: iplan=r[P3] zplan='P4'
//
@@ -74141,13 +74701,13 @@ __851:
// 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.
-__174:
+__175:
pQuery = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
pArgc = pQuery + 1*56
pCur3 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
- pVCur1 = *(*uintptr)(unsafe.Pointer(pCur3 + 56))
+ pVCur1 = *(*uintptr)(unsafe.Pointer(pCur3 + 48))
pVtab2 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pVCur1)).FpVtab
pModule2 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab2)).FpModule
@@ -74159,27 +74719,27 @@ __174:
// Invoke the xFilter method
apArg = (*Vdbe)(unsafe.Pointer(p)).FapArg
i7 = 0
-__852:
+__863:
if !(i7 < nArg) {
- goto __854
+ goto __865
}
*(*uintptr)(unsafe.Pointer(apArg + uintptr(i7)*8)) = pArgc + uintptr(i7+1)*56
- goto __853
-__853:
+ goto __864
+__864:
i7++
- goto __852
- goto __854
-__854:
+ goto __863
+ goto __865
+__865:
;
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 __855
+ goto __866
}
goto abort_due_to_error
-__855:
+__866:
;
res13 = (*struct {
f func(*libc.TLS, uintptr) int32
@@ -74187,10 +74747,10 @@ __855:
(*VdbeCursor)(unsafe.Pointer(pCur3)).FnullRow = U8(0)
if !(res13 != 0) {
- goto __856
+ goto __867
}
goto jump_to_p2
-__856:
+__867:
;
goto __8
@@ -74207,60 +74767,60 @@ __856:
// table implementation. The P5 column might also contain other
// bits (OPFLAG_LENGTHARG or OPFLAG_TYPEOFARG) but those bits are
// unused by OP_VColumn.
-__175:
+__176:
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 __857
+ goto __868
}
Xsqlite3VdbeMemSetNull(tls, pDest2)
goto __8
-__857:
+__868:
;
- pVtab3 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur4 + 56)))).FpVtab
+ 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
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NOCHNG != 0) {
- goto __858
+ goto __869
}
Xsqlite3VdbeMemSetNull(tls, pDest2)
(*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(MEM_Null | MEM_Zero)
*(*int32)(unsafe.Pointer(pDest2)) = 0
- goto __859
-__858:
+ goto __870
+__869:
(*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pDest2)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
-__859:
+__870:
;
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 + 56 /* &.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+912 /* &sContext */, (*Op)(unsafe.Pointer(pOp)).Fp2)
Xsqlite3VtabImportErrmsg(tls, p, pVtab3)
if !((*Sqlite3_context)(unsafe.Pointer(bp+912)).FisError > 0) {
- goto __860
+ goto __871
}
- Xsqlite3VdbeError(tls, p, ts+3604, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2)))
+ Xsqlite3VdbeError(tls, p, ts+3595, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2)))
rc = (*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FisError
-__860:
+__871:
;
Xsqlite3VdbeChangeEncoding(tls, pDest2, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pDest2) != 0) {
- goto __861
+ goto __872
}
goto too_big
-__861:
+__872:
;
if !(rc != 0) {
- goto __862
+ goto __873
}
goto abort_due_to_error
-__862:
+__873:
;
goto __8
@@ -74269,17 +74829,17 @@ __862:
// 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.
-__176:
+__177:
pCur5 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
if !((*VdbeCursor)(unsafe.Pointer(pCur5)).FnullRow != 0) {
- goto __863
+ goto __874
}
goto __8
-__863:
+__874:
;
- pVtab4 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur5 + 56)))).FpVtab
+ pVtab4 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur5 + 48)))).FpVtab
pModule4 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab4)).FpModule
// Invoke the xNext() method of the module. There is no way for the
@@ -74289,24 +74849,24 @@ __863:
// some other method is next invoked on the save virtual table cursor.
rc = (*struct {
f func(*libc.TLS, uintptr) int32
- })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule4)).FxNext})).f(tls, *(*uintptr)(unsafe.Pointer(pCur5 + 56 /* &.uc */)))
+ })(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 __864
+ goto __875
}
goto abort_due_to_error
-__864:
+__875:
;
res14 = (*struct {
f func(*libc.TLS, uintptr) int32
- })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule4)).FxEof})).f(tls, *(*uintptr)(unsafe.Pointer(pCur5 + 56 /* &.uc */)))
+ })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule4)).FxEof})).f(tls, *(*uintptr)(unsafe.Pointer(pCur5 + 48 /* &.uc */)))
if !!(res14 != 0) {
- goto __865
+ goto __876
}
// If there is data, jump to P2
goto jump_to_p2_and_check_for_interrupt
-__865:
+__876:
;
goto check_for_interrupt
@@ -74315,7 +74875,7 @@ __865:
// 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.
-__177:
+__178:
isLegacy = int32((*Sqlite3)(unsafe.Pointer(db)).Fflags & uint64(SQLITE_LegacyAlter))
*(*U64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LegacyAlter)
@@ -74324,27 +74884,27 @@ __177:
rc = Xsqlite3VdbeChangeEncoding(tls, pName, SQLITE_UTF8)
if !(rc != 0) {
- goto __866
+ goto __877
}
goto abort_due_to_error
-__866:
+__877:
;
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 __867
+ goto __878
}
*(*U64)(unsafe.Pointer(db + 48)) &= libc.CplUint64(uint64(SQLITE_LegacyAlter))
-__867:
+__878:
;
Xsqlite3VtabImportErrmsg(tls, p, pVtab5)
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3)
if !(rc != 0) {
- goto __868
+ goto __879
}
goto abort_due_to_error
-__868:
+__879:
;
goto __8
@@ -74374,47 +74934,47 @@ __868:
//
// 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.
-__178:
+__179:
*(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */)) = int64(0)
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __869
+ goto __880
}
goto no_mem
-__869:
+__880:
;
pVtab6 = (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab
if !(pVtab6 == uintptr(0) || (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule == uintptr(0)) {
- goto __870
+ goto __881
}
rc = SQLITE_LOCKED
goto abort_due_to_error
-__870:
+__881:
;
pModule5 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule
nArg1 = (*Op)(unsafe.Pointer(pOp)).Fp2
if !((*Sqlite3_module)(unsafe.Pointer(pModule5)).FxUpdate != 0) {
- goto __871
+ goto __882
}
vtabOnConflict = (*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict
apArg1 = (*Vdbe)(unsafe.Pointer(p)).FapArg
pX1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
i8 = 0
-__872:
+__883:
if !(i8 < nArg1) {
- goto __874
+ goto __885
}
*(*uintptr)(unsafe.Pointer(apArg1 + uintptr(i8)*8)) = pX1
pX1 += 56
- goto __873
-__873:
+ goto __884
+__884:
i8++
- goto __872
- goto __874
-__874:
+ goto __883
+ goto __885
+__885:
;
(*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = U8((*Op)(unsafe.Pointer(pOp)).Fp5)
rc = (*struct {
@@ -74423,48 +74983,48 @@ __874:
(*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = vtabOnConflict
Xsqlite3VtabImportErrmsg(tls, p, pVtab6)
if !(rc == SQLITE_OK && (*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __875
+ goto __886
}
(*Sqlite3)(unsafe.Pointer(db)).FlastRowid = *(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */))
-__875:
+__886:
;
if !(rc&0xff == SQLITE_CONSTRAINT && (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FbConstraint != 0) {
- goto __876
+ goto __887
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5) == OE_Ignore) {
- goto __878
+ goto __889
}
rc = SQLITE_OK
- goto __879
-__878:
+ goto __890
+__889:
(*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)
}()
-__879:
+__890:
;
- goto __877
-__876:
+ goto __888
+__887:
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__877:
+__888:
;
if !(rc != 0) {
- goto __880
+ goto __891
}
goto abort_due_to_error
-__880:
+__891:
;
-__871:
+__882:
;
goto __8
// Opcode: Pagecount P1 P2 * * *
//
// Write the current number of pages in database P1 to memory cell P2.
-__179: // out2
+__180: // 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
@@ -74476,22 +75036,22 @@ __179: // out2
// do not change the maximum page count value if P3==0.
//
// Store the maximum page count after the change in register P2.
-__180:
+__181:
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 __881
+ goto __892
}
newMax = Xsqlite3BtreeLastPage(tls, pBt3)
if !(newMax < uint32((*Op)(unsafe.Pointer(pOp)).Fp3)) {
- goto __882
+ goto __893
}
newMax = uint32((*Op)(unsafe.Pointer(pOp)).Fp3)
-__882:
+__893:
;
-__881:
+__892:
;
*(*I64)(unsafe.Pointer(pOut)) = I64(Xsqlite3BtreeMaxPageCount(tls, pBt3, newMax))
goto __8
@@ -74540,8 +75100,8 @@ __881:
// if they were, they throw an error.
//
// See also: AggStep, AggFinal, Function
-__181: // group
-__182:
+__182: // group
+__183:
;
pCtx2 = *(*uintptr)(unsafe.Pointer(pOp + 16))
@@ -74551,24 +75111,24 @@ __182:
// 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 __883
+ goto __894
}
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpVdbe = p
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpOut = pOut
i9 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx2)).Fargc) - 1
-__884:
+__895:
if !(i9 >= 0) {
- goto __886
+ goto __897
}
*(*uintptr)(unsafe.Pointer(pCtx2 + 48 + uintptr(i9)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i9)*56
- goto __885
-__885:
+ goto __896
+__896:
i9--
- goto __884
- goto __886
-__886:
+ goto __895
+ goto __897
+__897:
;
-__883:
+__894:
;
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
@@ -74579,40 +75139,87 @@ __883:
// If the function returned an error, throw an exception
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError != 0) {
- goto __887
+ goto __898
}
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError > 0) {
- goto __888
+ goto __899
}
- Xsqlite3VdbeError(tls, p, ts+3604, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut)))
+ Xsqlite3VdbeError(tls, p, ts+3595, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut)))
rc = (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError
-__888:
+__899:
;
- Xsqlite3VdbeDeleteAuxData(tls, db, p+296, (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FiOp, (*Op)(unsafe.Pointer(pOp)).Fp1)
+ Xsqlite3VdbeDeleteAuxData(tls, db, p+304, (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FiOp, (*Op)(unsafe.Pointer(pOp)).Fp1)
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError = 0
if !(rc != 0) {
- goto __889
+ goto __900
}
goto abort_due_to_error
-__889:
+__900:
;
-__887:
+__898:
;
// Copy the result of the function into register P3
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&(MEM_Str|MEM_Blob) != 0) {
- goto __890
+ goto __901
}
Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pOut) != 0) {
- goto __891
+ goto __902
}
goto too_big
-__891:
+__902:
;
-__890:
+__901:
+ ;
+
+ goto __8
+
+ // Opcode: FilterAdd P1 * P3 P4 *
+ // Synopsis: filter(P1) += key(P3@P4)
+ //
+ // Compute a hash on the P4 registers starting with r[P3] and
+ // add that hash to the bloom filter contained in r[P1].
+__184:
;
+ pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
+ h = filterHash(tls, aMem, pOp)
+ h = h % U64((*Mem)(unsafe.Pointer(pIn1)).Fn)
+ *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pIn1)).Fz + uintptr(h/uint64(8)))) |= int8(int32(1) << (h & uint64(7)))
+ goto __8
+
+ // Opcode: Filter P1 P2 P3 P4 *
+ // Synopsis: if key(P3@P4) not in filter(P1) goto P2
+ //
+ // Compute a hash on the key contained in the P4 registers starting
+ // with r[P3]. Check to see if that hash is found in the
+ // bloom filter hosted by register P1. If it is not present then
+ // maybe jump to P2. Otherwise fall through.
+ //
+ // False negatives are harmless. It is always safe to fall through,
+ // even if the value is in the bloom filter. A false negative causes
+ // 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:
+ ;
+ 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
+ }
+
+ *(*U32)(unsafe.Pointer(p + 220 + 8*4))++
+ goto jump_to_p2
+ goto __904
+__903:
+ *(*U32)(unsafe.Pointer(p + 220 + 7*4))++
+
+__904:
+ ;
goto __8
// Opcode: Trace P1 P2 * P4 *
@@ -74638,8 +75245,8 @@ __890:
//
// If P3 is not zero, then it is an address to jump to if an SQLITE_CORRUPT
// error is encountered.
-__183:
-__184:
+__186:
+__187:
// 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.
@@ -74661,67 +75268,67 @@ __184:
}
return (*Vdbe)(unsafe.Pointer(p)).FzSql
}()) != uintptr(0)) {
- goto __892
+ goto __905
}
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_LEGACY != 0) {
- goto __893
+ goto __906
}
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 __894
-__893:
+ goto __907
+__906:
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec > 1) {
- goto __895
+ goto __908
}
- z3 = Xsqlite3MPrintf(tls, db, ts+5993, libc.VaList(bp+168, zTrace))
+ z3 = Xsqlite3MPrintf(tls, db, ts+6012, 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 __896
-__895:
+ goto __909
+__908:
(*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)
-__896:
+__909:
;
-__894:
+__907:
;
-__892:
+__905:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 >= Xsqlite3Config.FiOnceResetThreshold) {
- goto __897
+ goto __910
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_Trace) {
- goto __898
+ goto __911
}
goto __8
-__898:
+__911:
;
i10 = 1
-__899:
+__912:
if !(i10 < (*Vdbe)(unsafe.Pointer(p)).FnOp) {
- goto __901
+ goto __914
}
if !(int32((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr(i10)*24)).Fopcode) == OP_Once) {
- goto __902
+ goto __915
}
(*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(i10)*24)).Fp1 = 0
-__902:
+__915:
;
- goto __900
-__900:
+ goto __913
+__913:
i10++
- goto __899
- goto __901
-__901:
+ goto __912
+ goto __914
+__914:
;
(*Op)(unsafe.Pointer(pOp)).Fp1 = 0
-__897:
+__910:
;
(*Op)(unsafe.Pointer(pOp)).Fp1++
*(*U32)(unsafe.Pointer(p + 220 + 6*4))++
@@ -74735,7 +75342,7 @@ __897:
// 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.
-__185: // This is really OP_Noop, OP_Explain
+__188: // This is really OP_Noop, OP_Explain
;
goto __8
@@ -74766,73 +75373,73 @@ __7:
// an error of some kind.
abort_due_to_error:
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __903
+ goto __916
}
rc = SQLITE_NOMEM
- goto __904
-__903:
+ goto __917
+__916:
if !(rc == SQLITE_IOERR|int32(33)<<8) {
- goto __905
+ goto __918
}
- rc = Xsqlite3CorruptError(tls, 95094)
-__905:
+ rc = Xsqlite3CorruptError(tls, 95929)
+__918:
;
-__904:
+__917:
;
if !((*Vdbe)(unsafe.Pointer(p)).FzErrMsg == uintptr(0) && rc != SQLITE_IOERR|int32(12)<<8) {
- goto __906
+ goto __919
}
- Xsqlite3VdbeError(tls, p, ts+3604, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc)))
-__906:
+ Xsqlite3VdbeError(tls, p, ts+3595, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc)))
+__919:
;
(*Vdbe)(unsafe.Pointer(p)).Frc = rc
Xsqlite3SystemError(tls, db, rc)
- Xsqlite3_log(tls, rc, ts+5999,
+ Xsqlite3_log(tls, rc, ts+6018,
libc.VaList(bp+184, int32((int64(pOp)-int64(aOp))/24), (*Vdbe)(unsafe.Pointer(p)).FzSql, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg))
Xsqlite3VdbeHalt(tls, p)
if !(rc == SQLITE_IOERR|int32(12)<<8) {
- goto __907
+ goto __920
}
Xsqlite3OomFault(tls, db)
-__907:
+__920:
;
if !(rc == SQLITE_CORRUPT && int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0) {
- goto __908
+ goto __921
}
*(*U64)(unsafe.Pointer(db + 48)) |= U64(uint64(0x00002)) << 32
-__908:
+__921:
;
rc = SQLITE_ERROR
if !(int32(resetSchemaOnFault) > 0) {
- goto __909
+ goto __922
}
Xsqlite3ResetOneSchema(tls, db, int32(resetSchemaOnFault)-1)
-__909:
+__922:
;
// 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:
-__910:
+__923:
if !(nVmStep >= nProgressLimit && (*Sqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0)) {
- goto __911
+ goto __924
}
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 __912
+ goto __925
}
nProgressLimit = uint64(0xffffffff) | U64(uint64(0xffffffff))<<32
rc = SQLITE_INTERRUPT
goto abort_due_to_error
-__912:
+__925:
;
- goto __910
-__911:
+ goto __923
+__924:
;
*(*U32)(unsafe.Pointer(p + 220 + 4*4)) += U32(int32(nVmStep))
Xsqlite3VdbeLeave(tls, p)
@@ -74842,14 +75449,14 @@ __911:
// Jump to here if a string or blob larger than SQLITE_MAX_LENGTH
// is encountered.
too_big:
- Xsqlite3VdbeError(tls, p, ts+5257, 0)
+ Xsqlite3VdbeError(tls, p, ts+5266, 0)
rc = SQLITE_TOOBIG
goto abort_due_to_error
// Jump to here if a malloc() fails.
no_mem:
Xsqlite3OomFault(tls, db)
- Xsqlite3VdbeError(tls, p, ts+6031, 0)
+ Xsqlite3VdbeError(tls, p, ts+1451, 0)
rc = SQLITE_NOMEM
goto abort_due_to_error
@@ -74862,12 +75469,12 @@ abort_due_to_interrupt:
return int32(0)
}
-var azType = [4]uintptr{ts + 6045, ts + 6054, ts + 6061,
- ts + 6067} /* sqlite3.c:87844:25 */
-var and_logic = [9]uint8{uint8(0), uint8(0), uint8(0), uint8(0), uint8(1), uint8(2), uint8(0), uint8(2), uint8(2)} /* sqlite3.c:89064:32 */
-var or_logic = [9]uint8{uint8(0), uint8(1), uint8(2), uint8(1), uint8(1), uint8(1), uint8(2), uint8(1), uint8(2)} /* sqlite3.c:89067:32 */
-var aFlag1 = [2]U16{U16(MEM_Blob), U16(MEM_Str | MEM_Term)} /* sqlite3.c:89551:24 */
-var vfsFlags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TRANSIENT_DB /* sqlite3.c:90803:20 */
+var azType = [4]uintptr{ts + 6050, ts + 6059, ts + 6066,
+ ts + 6072} /* 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 */
//************* End of vdbe.c ***********************************************
//************* Begin file vdbeblob.c ***************************************
@@ -74898,7 +75505,7 @@ type Incrblob1 = struct {
Fdb uintptr
FzDb uintptr
FpTab uintptr
-} /* sqlite3.c:95199:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96034:9 */
//************* End of vdbe.c ***********************************************
//************* Begin file vdbeblob.c ***************************************
@@ -74919,7 +75526,7 @@ type Incrblob1 = struct {
// #include "vdbeInt.h"
// Valid sqlite3_blob* handles point to Incrblob structures.
-type Incrblob = Incrblob1 /* sqlite3.c:95199:25 */
+type Incrblob = Incrblob1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96034: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.
@@ -74936,7 +75543,7 @@ type Incrblob = Incrblob1 /* sqlite3.c:95199:25 */
// 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 { /* sqlite3.c:95229:12: */
+func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96064:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -74965,31 +75572,31 @@ func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr)
var type1 U32
if int32((*VdbeCursor)(unsafe.Pointer(pC)).FnHdrParsed) > int32((*Incrblob)(unsafe.Pointer(p)).FiCol) {
- type1 = *(*U32)(unsafe.Pointer(pC + 120 + uintptr((*Incrblob)(unsafe.Pointer(p)).FiCol)*4))
+ type1 = *(*U32)(unsafe.Pointer(pC + 112 + uintptr((*Incrblob)(unsafe.Pointer(p)).FiCol)*4))
} else {
type1 = uint32(0)
}
if type1 < U32(12) {
- zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6079,
+ zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6084,
libc.VaList(bp, func() uintptr {
if type1 == U32(0) {
- return ts + 6108 /* "null" */
+ return ts + 6113 /* "null" */
}
return func() uintptr {
if type1 == U32(7) {
- return ts + 6113 /* "real" */
+ return ts + 6118 /* "real" */
}
- return ts + 6118 /* "integer" */
+ return ts + 6123 /* "integer" */
}()
}()))
rc = SQLITE_ERROR
Xsqlite3_finalize(tls, (*Incrblob)(unsafe.Pointer(p)).FpStmt)
(*Incrblob)(unsafe.Pointer(p)).FpStmt = uintptr(0)
} else {
- (*Incrblob)(unsafe.Pointer(p)).FiOffset = int32(*(*U32)(unsafe.Pointer(pC + 120 + uintptr(int32((*Incrblob)(unsafe.Pointer(p)).FiCol)+int32((*VdbeCursor)(unsafe.Pointer(pC)).FnField))*4)))
+ (*Incrblob)(unsafe.Pointer(p)).FiOffset = int32(*(*U32)(unsafe.Pointer(pC + 112 + uintptr(int32((*Incrblob)(unsafe.Pointer(p)).FiCol)+int32((*VdbeCursor)(unsafe.Pointer(pC)).FnField))*4)))
(*Incrblob)(unsafe.Pointer(p)).FnByte = int32(Xsqlite3VdbeSerialTypeLen(tls, type1))
- (*Incrblob)(unsafe.Pointer(p)).FpCsr = *(*uintptr)(unsafe.Pointer(pC + 56))
+ (*Incrblob)(unsafe.Pointer(p)).FpCsr = *(*uintptr)(unsafe.Pointer(pC + 48))
Xsqlite3BtreeIncrblobCursor(tls, (*Incrblob)(unsafe.Pointer(p)).FpCsr)
}
}
@@ -75000,10 +75607,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+6126, libc.VaList(bp+8, iRow))
+ zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6131, libc.VaList(bp+8, iRow))
rc = SQLITE_ERROR
} else {
- zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+3604, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb)))
+ zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+3595, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb)))
}
}
@@ -75012,18 +75619,18 @@ 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 { /* sqlite3.c:95297:16: */
- bp := tls.Alloc(456)
- defer tls.Free(456)
+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: */
+ bp := tls.Alloc(464)
+ defer tls.Free(464)
var nAttempt int32
var iCol int32 // Index of zColumn in row-record
var rc int32
- // var zErr uintptr at bp+448, 8
+ // var zErr uintptr at bp+456, 8
var pTab uintptr
var pBlob uintptr
- // var sParse Parse at bp+48, 400
+ // var sParse Parse at bp+48, 408
var j int32
// Check that the column is not part of an FK child key definition. It
@@ -75039,7 +75646,7 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
var aOp uintptr
nAttempt = 0
rc = SQLITE_OK
- *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = uintptr(0)
pBlob = uintptr(0)
*(*uintptr)(unsafe.Pointer(ppBlob)) = uintptr(0)
@@ -75049,179 +75656,181 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
pBlob = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Incrblob{})))
__1:
- libc.Xmemset(tls, bp+48, 0, uint64(unsafe.Sizeof(Parse{})))
+ if !(1 != 0) {
+ goto __2
+ }
+ Xsqlite3ParseObjectInit(tls, bp+48, db)
if !!(pBlob != 0) {
- goto __4
+ goto __3
}
goto blob_open_out
-__4:
+__3:
;
- (*Parse)(unsafe.Pointer(bp + 48 /* &sParse */)).Fdb = db
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)))
- *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)) = uintptr(0)
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = uintptr(0)
Xsqlite3BtreeEnterAll(tls, db)
pTab = Xsqlite3LocateTable(tls, bp+48, uint32(0), zTable, zDb)
if !(pTab != 0 && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
- goto __5
+ goto __4
}
pTab = uintptr(0)
- Xsqlite3ErrorMsg(tls, bp+48, ts+6146, libc.VaList(bp, zTable))
-__5:
+ Xsqlite3ErrorMsg(tls, bp+48, ts+6151, libc.VaList(bp, zTable))
+__4:
;
if !(pTab != 0 && !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0))) {
- goto __6
+ goto __5
}
pTab = uintptr(0)
- Xsqlite3ErrorMsg(tls, bp+48, ts+6176, libc.VaList(bp+8, zTable))
-__6:
+ Xsqlite3ErrorMsg(tls, bp+48, ts+6181, libc.VaList(bp+8, zTable))
+__5:
;
if !(pTab != 0 && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
- goto __7
+ goto __6
}
pTab = uintptr(0)
- Xsqlite3ErrorMsg(tls, bp+48, ts+6212, libc.VaList(bp+16, zTable))
-__7:
+ Xsqlite3ErrorMsg(tls, bp+48, ts+6217, libc.VaList(bp+16, zTable))
+__6:
;
if !!(pTab != 0) {
- goto __8
+ goto __7
}
if !((*Parse)(unsafe.Pointer(bp+48)).FzErrMsg != 0) {
- goto __9
+ goto __8
}
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)))
- *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)) = (*Parse)(unsafe.Pointer(bp + 48 /* &sParse */)).FzErrMsg
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = (*Parse)(unsafe.Pointer(bp + 48 /* &sParse */)).FzErrMsg
(*Parse)(unsafe.Pointer(bp + 48 /* &sParse */)).FzErrMsg = uintptr(0)
-__9:
+__8:
;
rc = SQLITE_ERROR
Xsqlite3BtreeLeaveAll(tls, db)
goto blob_open_out
-__8:
+__7:
;
(*Incrblob)(unsafe.Pointer(pBlob)).FpTab = pTab
(*Incrblob)(unsafe.Pointer(pBlob)).FzDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema))*32)).FzDbSName
// Now search pTab for the exact column.
iCol = 0
-__10:
+__9:
if !(iCol < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __12
+ goto __11
}
if !(Xsqlite3StrICmp(tls, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24)).FzCnName, zColumn) == 0) {
- goto __13
+ goto __12
}
- goto __12
-__13:
+ goto __11
+__12:
;
+ goto __10
+__10:
+ iCol++
+ goto __9
goto __11
__11:
- iCol++
- goto __10
- goto __12
-__12:
;
if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __14
+ goto __13
}
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)))
- *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6233, libc.VaList(bp+24, zColumn))
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6238, libc.VaList(bp+24, zColumn))
rc = SQLITE_ERROR
Xsqlite3BtreeLeaveAll(tls, db)
goto blob_open_out
-__14:
+__13:
;
// If the value is being opened for writing, check that the
// column is not indexed, and that it is not part of a foreign key.
if !(wrFlag != 0) {
- goto __15
+ goto __14
}
zFault = uintptr(0)
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ForeignKeys) != 0) {
- goto __16
+ goto __15
}
pFKey = *(*uintptr)(unsafe.Pointer(pTab + 64 + 8 /* &.pFKey */))
-__17:
+__16:
if !(pFKey != 0) {
- goto __19
+ goto __18
}
j = 0
-__20:
+__19:
if !(j < (*FKey)(unsafe.Pointer(pFKey)).FnCol) {
- goto __22
+ goto __21
}
if !((*sColMap)(unsafe.Pointer(pFKey+64+uintptr(j)*16)).FiFrom == iCol) {
- goto __23
+ goto __22
}
- zFault = ts + 6254 /* "foreign key" */
-__23:
+ zFault = ts + 6259 /* "foreign key" */
+__22:
;
+ goto __20
+__20:
+ j++
+ goto __19
goto __21
__21:
- j++
- goto __20
- goto __22
-__22:
;
+ goto __17
+__17:
+ pFKey = (*FKey)(unsafe.Pointer(pFKey)).FpNextFrom
+ goto __16
goto __18
__18:
- pFKey = (*FKey)(unsafe.Pointer(pFKey)).FpNextFrom
- goto __17
- goto __19
-__19:
;
-__16:
+__15:
;
pIdx = (*Table)(unsafe.Pointer(pTab)).FpIndex
-__24:
+__23:
if !(pIdx != 0) {
- goto __26
+ goto __25
}
j1 = 0
-__27:
+__26:
if !(j1 < int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)) {
- goto __29
+ goto __28
}
// FIXME: Be smarter about indexes that use expressions
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 __30
+ goto __29
}
- zFault = ts + 6266 /* "indexed" */
-__30:
+ zFault = ts + 6271 /* "indexed" */
+__29:
;
+ goto __27
+__27:
+ j1++
+ goto __26
goto __28
__28:
- j1++
- goto __27
- goto __29
-__29:
;
+ goto __24
+__24:
+ pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext
+ goto __23
goto __25
__25:
- pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext
- goto __24
- goto __26
-__26:
;
if !(zFault != 0) {
- goto __31
+ goto __30
}
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)))
- *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6274, libc.VaList(bp+32, zFault))
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6279, libc.VaList(bp+32, zFault))
rc = SQLITE_ERROR
Xsqlite3BtreeLeaveAll(tls, db)
goto blob_open_out
-__31:
+__30:
;
-__15:
+__14:
;
(*Incrblob)(unsafe.Pointer(pBlob)).FpStmt = Xsqlite3VdbeCreate(tls, bp+48)
if !((*Incrblob)(unsafe.Pointer(pBlob)).FpStmt != 0) {
- goto __32
+ goto __31
}
v = (*Incrblob)(unsafe.Pointer(pBlob)).FpStmt
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema)
@@ -75237,7 +75846,7 @@ __15:
Xsqlite3VdbeUsesBtree(tls, v, iDb)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0) {
- goto __33
+ goto __32
}
// Configure the OP_TableLock instruction
@@ -75245,19 +75854,19 @@ __15:
(*VdbeOp)(unsafe.Pointer(aOp)).Fp2 = int32((*Table)(unsafe.Pointer(pTab)).Ftnum)
(*VdbeOp)(unsafe.Pointer(aOp)).Fp3 = wrFlag
Xsqlite3VdbeChangeP4(tls, v, 2, (*Table)(unsafe.Pointer(pTab)).FzName, P4_TRANSIENT)
-__33:
+__32:
;
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0) {
- goto __34
+ goto __33
}
// Remove either the OP_OpenWrite or OpenRead. Set the P2
// parameter of the other to pTab->tnum.
if !(wrFlag != 0) {
- goto __35
+ goto __34
}
(*VdbeOp)(unsafe.Pointer(aOp + 1*24)).Fopcode = U8(OP_OpenWrite)
-__35:
+__34:
;
(*VdbeOp)(unsafe.Pointer(aOp + 1*24)).Fp2 = int32((*Table)(unsafe.Pointer(pTab)).Ftnum)
(*VdbeOp)(unsafe.Pointer(aOp + 1*24)).Fp3 = iDb
@@ -75276,28 +75885,30 @@ __35:
(*Parse)(unsafe.Pointer(bp + 48 /* &sParse */)).FnMem = 1
(*Parse)(unsafe.Pointer(bp + 48 /* &sParse */)).FnTab = 1
Xsqlite3VdbeMakeReady(tls, v, bp+48)
-__34:
+__33:
;
-__32:
+__31:
;
(*Incrblob)(unsafe.Pointer(pBlob)).FiCol = U16(iCol)
(*Incrblob)(unsafe.Pointer(pBlob)).Fdb = db
Xsqlite3BtreeLeaveAll(tls, db)
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __36
+ goto __35
}
goto blob_open_out
-__36:
+__35:
;
- rc = blobSeekToRow(tls, pBlob, iRow, bp+448)
+ rc = blobSeekToRow(tls, pBlob, iRow, bp+456)
+ if !(libc.PreIncInt32(&nAttempt, 1) >= SQLITE_MAX_SCHEMA_RETRY || rc != SQLITE_SCHEMA) {
+ goto __36
+ }
goto __2
+__36:
+ ;
+ Xsqlite3ParseObjectReset(tls, bp+48)
+ goto __1
__2:
- if libc.PreIncInt32(&nAttempt, 1) < SQLITE_MAX_SCHEMA_RETRY && rc == SQLITE_SCHEMA {
- goto __1
- }
- goto __3
-__3:
;
blob_open_out:
@@ -75317,19 +75928,19 @@ __39:
__38:
;
Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr {
- if *(*uintptr)(unsafe.Pointer(bp + 448)) != 0 {
- return ts + 3604 /* "%s" */
+ if *(*uintptr)(unsafe.Pointer(bp + 456)) != 0 {
+ return ts + 3595 /* "%s" */
}
return uintptr(0)
- }(), libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */))))
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 448 /* zErr */)))
- Xsqlite3ParserReset(tls, bp+48)
+ }(), libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */))))
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ Xsqlite3ParseObjectReset(tls, bp+48)
rc = Xsqlite3ApiExit(tls, db, rc)
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
return rc
}
-var iLn int32 = 0 /* sqlite3.c:95441:24 */
+var iLn int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96275:24 */
var openBlob = [6]VdbeOpList{
{Fopcode: U8(OP_TableLock)}, // 0: Acquire a read or write lock
{Fopcode: U8(OP_OpenRead)}, // 1: Open a cursor
@@ -75338,11 +75949,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
-} /* sqlite3.c:95442:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96276:31 */
// Close a blob handle that was previously created using
// sqlite3_blob_open().
-func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:95531:16: */
+func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96367:16: */
var p uintptr = pBlob
var rc int32
var db uintptr
@@ -75361,14 +75972,14 @@ func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:9553
}
// 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 { /* sqlite3.c:95552:12: */
+func blobReadWrite(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32, xCall uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96388:12: */
var rc int32
var p uintptr = pBlob
var v uintptr
var db uintptr
if p == uintptr(0) {
- return Xsqlite3MisuseError(tls, 95564)
+ return Xsqlite3MisuseError(tls, 96400)
}
db = (*Incrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -75427,14 +76038,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 { /* sqlite3.c:95627:16: */
+func Xsqlite3_blob_read(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96463: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 { /* sqlite3.c:95634:16: */
+func Xsqlite3_blob_write(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96470:16: */
return blobReadWrite(tls, pBlob, z, n, iOffset, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, U32, U32, uintptr) int32
}{Xsqlite3BtreePutData})))
@@ -75444,7 +76055,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 { /* sqlite3.c:95644:16: */
+func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96480:16: */
var p uintptr = pBlob
if p != 0 && (*Incrblob)(unsafe.Pointer(p)).FpStmt != 0 {
return (*Incrblob)(unsafe.Pointer(p)).FnByte
@@ -75460,7 +76071,7 @@ func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:9564
// 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 { /* sqlite3.c:95659:16: */
+func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96495:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -75469,7 +76080,7 @@ func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int3
var db uintptr
if p == uintptr(0) {
- return Xsqlite3MisuseError(tls, 95664)
+ return Xsqlite3MisuseError(tls, 96500)
}
db = (*Incrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -75486,7 +76097,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 + 3604 /* "%s" */
+ return ts + 3595 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))))
@@ -75656,7 +76267,7 @@ type MergeEngine1 = struct {
FpTask uintptr
FaTree uintptr
FaReadr uintptr
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
//************* End of vdbeblob.c *******************************************
//************* Begin file vdbesort.c ***************************************
@@ -75807,7 +76418,7 @@ type MergeEngine1 = struct {
// overflows. 512MiB.
// Private objects used by the sorter
-type MergeEngine = MergeEngine1 /* sqlite3.c:95853:28 */ // Merge PMAs together
+type MergeEngine = MergeEngine1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96689:28 */ // Merge PMAs together
type PmaReader1 = struct {
FiReadOff I64
FiEof I64
@@ -75821,10 +76432,10 @@ type PmaReader1 = struct {
F__ccgo_pad1 [4]byte
FaMap uintptr
FpIncr uintptr
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// Merge PMAs together
-type PmaReader = PmaReader1 /* sqlite3.c:95854:26 */ // Incrementally read one PMA
+type PmaReader = PmaReader1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96690:26 */ // Incrementally read one PMA
type PmaWriter1 = struct {
FeFWErr int32
F__ccgo_pad1 [4]byte
@@ -75835,18 +76446,18 @@ type PmaWriter1 = struct {
F__ccgo_pad2 [4]byte
FiWriteOff I64
FpFd uintptr
-} /* sqlite3.c:95855:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96691:9 */
// Incrementally read one PMA
-type PmaWriter = PmaWriter1 /* sqlite3.c:95855:26 */ // Incrementally write one PMA
+type PmaWriter = PmaWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96691:26 */ // Incrementally write one PMA
type SorterRecord1 = struct {
FnVal int32
F__ccgo_pad1 [4]byte
Fu struct{ FpNext uintptr }
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// Incrementally write one PMA
-type SorterRecord = SorterRecord1 /* sqlite3.c:95856:29 */ // A record being sorted
+type SorterRecord = SorterRecord1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96692:29 */ // A record being sorted
type SortSubtask1 = struct {
FpThread uintptr
FbDone int32
@@ -75859,26 +76470,26 @@ type SortSubtask1 = struct {
FxCompare SorterCompare
Ffile SorterFile
Ffile2 SorterFile
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// A record being sorted
-type SortSubtask = SortSubtask1 /* sqlite3.c:95857:28 */ // A sub-task in the sort process
+type SortSubtask = SortSubtask1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96693:28 */ // A sub-task in the sort process
type SorterFile1 = struct {
FpFd uintptr
FiEof I64
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// A sub-task in the sort process
-type SorterFile = SorterFile1 /* sqlite3.c:95858:27 */ // Temporary file object wrapper
+type SorterFile = SorterFile1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96694:27 */ // Temporary file object wrapper
type SorterList1 = struct {
FpList uintptr
FaMemory uintptr
FszPMA int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// Temporary file object wrapper
-type SorterList = SorterList1 /* sqlite3.c:95859:27 */ // In-memory list of records
+type SorterList = SorterList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96695:27 */ // In-memory list of records
type IncrMerger1 = struct {
FpTask uintptr
FpMerger uintptr
@@ -75888,10 +76499,10 @@ type IncrMerger1 = struct {
FbUseThread int32
F__ccgo_pad1 [4]byte
FaFile [2]SorterFile
-} /* sqlite3.c:21734:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */
// In-memory list of records
-type IncrMerger = IncrMerger1 /* sqlite3.c:95860:27 */
+type IncrMerger = IncrMerger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96696:27 */
// This object represents a single thread of control in a sort operation.
// Exactly VdbeSorter.nTask instances of this object are allocated
@@ -75922,11 +76533,11 @@ type IncrMerger = IncrMerger1 /* sqlite3.c:95860:27 */
// 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 /* sqlite3.c:95987:13 */
+type SorterCompare = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96823: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) { /* sqlite3.c:96162:13: */
+func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96998:13: */
Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaAlloc)
Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaBuffer)
if (*PmaReader)(unsafe.Pointer(pReadr)).FaMap != 0 {
@@ -75943,7 +76554,7 @@ func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* sqlite3.c:96162:13:
//
// 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 { /* sqlite3.c:96179:12: */
+func vdbePmaReadBlob(tls *libc.TLS, p uintptr, nByte int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97015:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76047,7 +76658,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 { /* sqlite3.c:96273:12: */
+func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97109:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -76066,7 +76677,7 @@ func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* sqlit
var i int32 = 0
var rc int32
- for ok := true; ok; ok = int32(*(*U8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))&0x80 != 0 {
+ for __ccgo := true; __ccgo; __ccgo = int32(*(*U8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))&0x80 != 0 {
rc = vdbePmaReadBlob(tls, p, 1, bp)
if rc != 0 {
return rc
@@ -76087,7 +76698,7 @@ func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* sqlit
//
// 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 { /* sqlite3.c:96306:12: */
+func vdbeSorterMapFile(tls *libc.TLS, pTask uintptr, pFile uintptr, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97142: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
@@ -76102,7 +76713,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 { /* sqlite3.c:96323:12: */
+func vdbePmaReaderSeek(tls *libc.TLS, pTask uintptr, pReadr uintptr, pFile uintptr, iOff I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97159:12: */
var rc int32 = SQLITE_OK
if Xsqlite3FaultSim(tls, 201) != 0 {
@@ -76143,7 +76754,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 { /* sqlite3.c:96370:12: */
+func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97206:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76189,7 +76800,7 @@ func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* sqlite3.c:96370
//
// 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 { /* sqlite3.c:96417:12: */
+func vdbePmaReaderInit(tls *libc.TLS, pTask uintptr, pFile uintptr, iStart I64, pReadr uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97253:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76212,7 +76823,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 { /* sqlite3.c:96450:12: */
+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: */
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)
@@ -76232,7 +76843,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 { /* sqlite3.c:96477:12: */
+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: */
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)
@@ -76244,7 +76855,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 { /* sqlite3.c:96496:12: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76294,7 +76905,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 { /* sqlite3.c:96538:12: */
+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: */
var p1 uintptr = pKey1
var p2 uintptr = pKey2
var s1 int32 = int32(*(*U8)(unsafe.Pointer(p1 + 1))) // Left hand serial type
@@ -76354,7 +76965,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)} /* sqlite3.c:96557: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-3380500/sqlite3.c:97393:21 */
// Initialize the temporary index cursor just opened as a sorter cursor.
//
@@ -76373,7 +76984,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 { /* sqlite3.c:96621:20: */
+func Xsqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97457:20: */
var pgsz int32 // Page size of main database
var i int32 // Used to iterate through aTask[]
var pSorter uintptr // The new sorter
@@ -76397,7 +77008,7 @@ func Xsqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintpt
sz = int32(uint64(unsafe.Sizeof(VdbeSorter{})) + uint64(nWorker)*uint64(unsafe.Sizeof(SortSubtask{})))
pSorter = Xsqlite3DbMallocZero(tls, db, uint64(sz+szKeyInfo))
- *(*uintptr)(unsafe.Pointer(pCsr + 56)) = pSorter
+ *(*uintptr)(unsafe.Pointer(pCsr + 48)) = pSorter
if pSorter == uintptr(0) {
rc = SQLITE_NOMEM
} else {
@@ -76469,7 +77080,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) { /* sqlite3.c:96726:13: */
+func vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97563:13: */
var p uintptr
var pNext uintptr
for p = pRecord; p != 0; p = pNext {
@@ -76480,7 +77091,7 @@ func vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) { /* sqlit
// 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) { /* sqlite3.c:96739:13: */
+func vdbeSortSubtaskCleanup(tls *libc.TLS, db uintptr, pTask uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97576: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
@@ -76500,7 +77111,7 @@ func vdbeSortSubtaskCleanup(tls *libc.TLS, db uintptr, pTask uintptr) { /* sqlit
}
// Join thread pTask->thread.
-func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* sqlite3.c:96805:12: */
+func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97642:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76519,14 +77130,14 @@ func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* sqlite3.c:968
}
// Launch a background thread to run xTask(pIn).
-func vdbeSorterCreateThread(tls *libc.TLS, pTask uintptr, xTask uintptr, pIn uintptr) int32 { /* sqlite3.c:96826:12: */
+func vdbeSorterCreateThread(tls *libc.TLS, pTask uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97663: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 { /* sqlite3.c:96839:12: */
+func vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97676:12: */
var rc int32 = rcin
var i int32
@@ -76552,7 +77163,7 @@ func vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) int32 { /* sq
//
// 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 { /* sqlite3.c:96869:20: */
+func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97706: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
@@ -76577,7 +77188,7 @@ func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* sqlite3.c:968
}
// Free the MergeEngine object passed as the only argument.
-func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* sqlite3.c:96892:13: */
+func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97729:13: */
var i int32
if pMerger != 0 {
for i = 0; i < (*MergeEngine)(unsafe.Pointer(pMerger)).FnTree; i++ {
@@ -76589,7 +77200,7 @@ func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* sqlite3.c:96892:13
// Free all resources associated with the IncrMerger object indicated by
// the first argument.
-func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:96906:13: */
+func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97743:13: */
if pIncr != 0 {
if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 {
vdbeSorterJoinThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)
@@ -76606,7 +77217,7 @@ func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:96906:13: */
}
// Reset a sorting cursor back to its original empty state.
-func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* sqlite3.c:96923:21: */
+func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97760:21: */
var i int32
vdbeSorterJoinAll(tls, pSorter, SQLITE_OK)
@@ -76635,22 +77246,22 @@ func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* sq
}
// Free any cursor components allocated by sqlite3VdbeSorterXXX routines.
-func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* sqlite3.c:96956:21: */
+func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97793:21: */
var pSorter uintptr
- pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 56))
+ pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
if pSorter != 0 {
Xsqlite3VdbeSorterReset(tls, db, pSorter)
Xsqlite3_free(tls, (*VdbeSorter)(unsafe.Pointer(pSorter)).Flist.FaMemory)
Xsqlite3DbFree(tls, db, pSorter)
- *(*uintptr)(unsafe.Pointer(pCsr + 56)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(pCsr + 48)) = uintptr(0)
}
}
// 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 { /* sqlite3.c:96997:12: */
+func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97834:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -76674,7 +77285,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 { /* sqlite3.c:97024:12: */
+func vdbeSortAllocUnpacked(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97861: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) {
@@ -76687,7 +77298,7 @@ func vdbeSortAllocUnpacked(tls *libc.TLS, pTask uintptr) int32 { /* sqlite3.c:97
}
// Merge the two sorted lists p1 and p2 into a single list.
-func vdbeSorterMerge(tls *libc.TLS, pTask uintptr, p1 uintptr, p2 uintptr) uintptr { /* sqlite3.c:97038:21: */
+func vdbeSorterMerge(tls *libc.TLS, pTask uintptr, p1 uintptr, p2 uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97875:21: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -76726,7 +77337,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 { /* sqlite3.c:97080:22: */
+func vdbeSorterGetCompare(tls *libc.TLS, p uintptr) SorterCompare { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97917: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
@@ -76744,7 +77355,7 @@ func vdbeSorterGetCompare(tls *libc.TLS, p uintptr) SorterCompare { /* sqlite3.c
// 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 { /* sqlite3.c:97094:12: */
+func vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97931:12: */
bp := tls.Alloc(512)
defer tls.Free(512)
@@ -76801,7 +77412,7 @@ func vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* sqli
}
// Initialize a PMA-writer object.
-func vdbePmaWriterInit(tls *libc.TLS, pFd uintptr, p uintptr, nBuf int32, iStart I64) { /* sqlite3.c:97145:13: */
+func vdbePmaWriterInit(tls *libc.TLS, pFd uintptr, p uintptr, nBuf int32, iStart I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97982: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) {
@@ -76816,7 +77427,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) { /* sqlite3.c:97167:13: */
+func vdbePmaWriteBlob(tls *libc.TLS, p uintptr, pData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98004:13: */
var nRem int32 = nData
for nRem > 0 && (*PmaWriter)(unsafe.Pointer(p)).FeFWErr == 0 {
var nCopy int32 = nRem
@@ -76845,7 +77456,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 { /* sqlite3.c:97200:12: */
+func vdbePmaWriterFinish(tls *libc.TLS, p uintptr, piEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98037: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,
@@ -76861,7 +77472,7 @@ func vdbePmaWriterFinish(tls *libc.TLS, p uintptr, piEof uintptr) int32 { /* sql
// 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) { /* sqlite3.c:97219:13: */
+func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98056:13: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -76884,7 +77495,7 @@ func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* sqlite3.c:97219
// * 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 { /* sqlite3.c:97240:12: */
+func vdbeSorterListToPMA(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98077:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -76939,7 +77550,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 { /* sqlite3.c:97304:12: */
+func vdbeMergeEngineStep(tls *libc.TLS, pMerger uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98141:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77015,7 +77626,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 { /* sqlite3.c:97375:13: */
+func vdbeSorterFlushThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98212:13: */
var pTask uintptr = pCtx
var rc int32 // Return code
@@ -77026,7 +77637,7 @@ func vdbeSorterFlushThread(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:9
// Flush the current contents of VdbeSorter.list to a new PMA, possibly
// using a background thread.
-func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* sqlite3.c:97389:12: */
+func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98226:12: */
var rc int32 = SQLITE_OK
var i int32
var pTask uintptr = uintptr(0) // Thread context used to create new PMA
@@ -77090,7 +77701,7 @@ func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* sqlite3.c:973
}
// Add a record to the sorter.
-func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { /* sqlite3.c:97459:20: */
+func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98296:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77103,7 +77714,7 @@ func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 {
// var t int32 at bp, 4
// serial type of first record field
- pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 56))
+ pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
*(*int32)(unsafe.Pointer(bp /* t */)) = int32(U32(*(*U8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVal)).Fz + 1))))
if *(*int32)(unsafe.Pointer(bp)) >= 0x80 {
Xsqlite3GetVarint32(tls, (*Mem)(unsafe.Pointer(pVal)).Fz+1, bp)
@@ -77206,7 +77817,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 { /* sqlite3.c:97571:12: */
+func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98408:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -77252,7 +77863,7 @@ func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:97571:1
// The main routine for background threads that populate aFile[1] of
// multi-threaded IncrMerger objects.
-func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:97613:13: */
+func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98450:13: */
var pIncr uintptr = pCtx
var pRet uintptr = uintptr(int64(vdbeIncrPopulate(tls, pIncr)))
(*SortSubtask)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)).FbDone = 1
@@ -77260,7 +77871,7 @@ func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:
}
// Launch a background thread to populate aFile[1] of pIncr.
-func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:97623:12: */
+func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98460:12: */
var p uintptr = pIncr
return vdbeSorterCreateThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask, *(*uintptr)(unsafe.Pointer(&struct {
@@ -77283,7 +77894,7 @@ func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:97623
// 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 { /* sqlite3.c:97647:12: */
+func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98484:12: */
var rc int32 = SQLITE_OK
if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 {
@@ -77317,7 +77928,7 @@ func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:97647:12: *
//
// 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 { /* sqlite3.c:97686:12: */
+func vdbeIncrMergerNew(tls *libc.TLS, pTask uintptr, pMerger uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98523:12: */
var rc int32 = SQLITE_OK
var pIncr uintptr = libc.AssignPtrUintptr(ppOut, func() uintptr {
if Xsqlite3FaultSim(tls, 100) != 0 {
@@ -77344,7 +77955,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) { /* sqlite3.c:97711:13: */
+func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98548:13: */
(*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread = 1
*(*I64)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask + 88 + 8)) -= I64((*IncrMerger)(unsafe.Pointer(pIncr)).FmxSz)
}
@@ -77352,7 +77963,7 @@ func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:97711
// 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) { /* sqlite3.c:97724:13: */
+func vdbeMergeEngineCompare(tls *libc.TLS, pMerger uintptr, iOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98561:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77412,7 +78023,7 @@ func vdbeMergeEngineCompare(tls *libc.TLS, pMerger uintptr, iOut int32) { /* sql
// 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 { /* sqlite3.c:97806:12: */
+func vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98643:12: */
var rc int32 = SQLITE_OK // Return code
var i int32 // For looping over PmaReader objects
var nTree int32 // Number of subtrees to merge
@@ -77482,7 +78093,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 { /* sqlite3.c:97882:12: */
+func vdbePmaReaderIncrMergeInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98719:12: */
var rc int32 = SQLITE_OK
var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr
var pTask uintptr = (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask
@@ -77539,7 +78150,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 { /* sqlite3.c:97949:13: */
+func vdbePmaReaderBgIncrInit(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98786: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
@@ -77555,7 +78166,7 @@ func vdbePmaReaderBgIncrInit(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c
// 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 { /* sqlite3.c:97970:12: */
+func vdbePmaReaderIncrInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98807:12: */
var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr // Incremental merger
var rc int32 = SQLITE_OK // Return code
if pIncr != 0 {
@@ -77582,7 +78193,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 { /* sqlite3.c:98000:12: */
+func vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98837:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -77619,7 +78230,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 { /* sqlite3.c:98039:12: */
+func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98876:12: */
var nDepth int32 = 0
var nDiv I64 = int64(SORTER_MAX_MERGE_COUNT)
for nDiv < I64(nPMA) {
@@ -77635,7 +78246,7 @@ func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* sqlite3.c:98039:1
//
// 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 { /* sqlite3.c:98057:12: */
+func vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32, pRoot uintptr, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98894:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -77686,7 +78297,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 { /* sqlite3.c:98113:12: */
+func vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98950:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -77767,7 +78378,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 { /* sqlite3.c:98192:12: */
+func vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99029:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -77842,11 +78453,11 @@ func vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) int32 { /* sqlite3.c:9
// 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 { /* sqlite3.c:98274:20: */
+func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99111:20: */
var pSorter uintptr
var rc int32 = SQLITE_OK // Return code
- pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 56))
+ pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
// If no data has been written to disk, then do not do so now. Instead,
// sort the VdbeSorter.pRecord list. The vdbe layer will read data directly
@@ -77887,14 +78498,14 @@ 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 { /* sqlite3.c:98326:20: */
+func Xsqlite3VdbeSorterNext(tls *libc.TLS, db uintptr, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99163:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
var pSorter uintptr
var rc int32 // Return code
- pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 56))
+ pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
if (*VdbeSorter)(unsafe.Pointer(pSorter)).FbUsePMA != 0 {
@@ -77929,7 +78540,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 { /* sqlite3.c:98364:13: */
+func vdbeSorterRowkey(tls *libc.TLS, pSorter uintptr, pnKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99201:13: */
var pKey uintptr
if (*VdbeSorter)(unsafe.Pointer(pSorter)).FbUsePMA != 0 {
var pReader uintptr
@@ -77948,7 +78559,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 { /* sqlite3.c:98391:20: */
+func Xsqlite3VdbeSorterRowkey(tls *libc.TLS, pCsr uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99228:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77957,7 +78568,7 @@ func Xsqlite3VdbeSorterRowkey(tls *libc.TLS, pCsr uintptr, pOut uintptr) int32 {
// var nKey int32 at bp, 4
// Sorter key to copy into pOut
- pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 56))
+ pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
pKey = vdbeSorterRowkey(tls, pSorter, bp)
if Xsqlite3VdbeMemClearAndResize(tls, pOut, *(*int32)(unsafe.Pointer(bp))) != 0 {
return SQLITE_NOMEM
@@ -77983,7 +78594,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 { /* sqlite3.c:98424:20: */
+func Xsqlite3VdbeSorterCompare(tls *libc.TLS, pCsr uintptr, pVal uintptr, nKeyCol int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99261:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77995,7 +78606,7 @@ func Xsqlite3VdbeSorterCompare(tls *libc.TLS, pCsr uintptr, pVal uintptr, nKeyCo
// var nKey int32 at bp, 4
// Sorter key to compare pVal with
- pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 56))
+ pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
r2 = (*VdbeSorter)(unsafe.Pointer(pSorter)).FpUnpacked
pKeyInfo = (*VdbeCursor)(unsafe.Pointer(pCsr)).FpKeyInfo
if r2 == uintptr(0) {
@@ -78075,7 +78686,7 @@ type MemJournal1 = struct {
F__ccgo_pad1 [4]byte
FpVfs uintptr
FzJournal uintptr
-} /* sqlite3.c:98917:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:9 */
//************* End of vdbesort.c *******************************************
//************* Begin file vdbevtab.c ***************************************
@@ -78122,23 +78733,23 @@ type MemJournal1 = struct {
// #include "sqliteInt.h"
// Forward references to internal structures
-type MemJournal = MemJournal1 /* sqlite3.c:98917:27 */
+type MemJournal = MemJournal1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:27 */
type FilePoint1 = struct {
FiOffset Sqlite3_int64
FpChunk uintptr
-} /* sqlite3.c:98917:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:9 */
-type FilePoint = FilePoint1 /* sqlite3.c:98918:26 */
+type FilePoint = FilePoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99755:26 */
type FileChunk1 = struct {
FpNext uintptr
FzChunk [8]U8
-} /* sqlite3.c:98917:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:9 */
-type FileChunk = FileChunk1 /* sqlite3.c:98919:26 */
+type FileChunk = FileChunk1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99756: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 { /* sqlite3.c:98974:12: */
+func memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99811:12: */
var p uintptr = pJfd
var zOut uintptr = zBuf
var nRead int32 = iAmt
@@ -78160,7 +78771,7 @@ func memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sq
}
iChunkOffset = int32(iOfst % Sqlite_int64((*MemJournal)(unsafe.Pointer(p)).FnChunkSize))
- for ok := true; ok; ok = nRead >= 0 && libc.AssignUintptr(&pChunk, (*FileChunk)(unsafe.Pointer(pChunk)).FpNext) != uintptr(0) && nRead > 0 {
+ for __ccgo := true; __ccgo; __ccgo = nRead >= 0 && libc.AssignUintptr(&pChunk, (*FileChunk)(unsafe.Pointer(pChunk)).FpNext) != uintptr(0) && nRead > 0 {
var iSpace int32 = (*MemJournal)(unsafe.Pointer(p)).FnChunkSize - iChunkOffset
var nCopy int32 = func() int32 {
if nRead < (*MemJournal)(unsafe.Pointer(p)).FnChunkSize-iChunkOffset {
@@ -78185,7 +78796,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) { /* sqlite3.c:99021:13: */
+func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99858:13: */
var pIter uintptr
var pNext uintptr
for pIter = pFirst; pIter != 0; pIter = pNext {
@@ -78195,7 +78806,7 @@ func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* sqlite3.c:99021:13: *
}
// Flush the contents of memory to a real file on disk.
-func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:99033:12: */
+func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99870:12: */
var rc int32
var pReal uintptr = p
var copy = *(*MemJournal)(unsafe.Pointer(p))
@@ -78233,7 +78844,7 @@ func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:99033:12:
}
// Write data to the file.
-func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:99072:12: */
+func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99912:12: */
var p uintptr = pJfd
var nWrite int32 = iAmt
var zWrite uintptr = zBuf
@@ -78253,7 +78864,13 @@ func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst S
// atomic-write optimization. In this case the first 28 bytes of the
// journal file may be written as part of committing the transaction.
- {
+ if iOfst > int64(0) && iOfst != (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset {
+ memjrnlTruncate(tls, pJfd, iOfst)
+ }
+ if iOfst == int64(0) && (*MemJournal)(unsafe.Pointer(p)).FpFirst != 0 {
+
+ libc.Xmemcpy(tls, (*MemJournal)(unsafe.Pointer(p)).FpFirst+8 /* &.zChunk */, zBuf, uint64(iAmt))
+ } else {
for nWrite > 0 {
var pChunk uintptr = (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FpChunk
var iChunkOffset int32 = int32((*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset % Sqlite3_int64((*MemJournal)(unsafe.Pointer(p)).FnChunkSize))
@@ -78278,15 +78895,14 @@ func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst S
(*MemJournal)(unsafe.Pointer(p)).FpFirst = pNew
}
- (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FpChunk = pNew
+ pChunk = libc.AssignPtrUintptr(p+24+8, pNew)
}
- libc.Xmemcpy(tls, (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FpChunk+8+uintptr(iChunkOffset), zWrite, uint64(iSpace))
+ libc.Xmemcpy(tls, pChunk+8+uintptr(iChunkOffset), zWrite, uint64(iSpace))
zWrite += uintptr(iSpace)
nWrite = nWrite - iSpace
*(*Sqlite3_int64)(unsafe.Pointer(p + 24)) += Sqlite3_int64(iSpace)
}
-
}
}
@@ -78294,7 +78910,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 { /* sqlite3.c:99146:12: */
+func memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99985:12: */
var p uintptr = pJfd
if size < (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset {
@@ -78322,7 +78938,7 @@ func memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Sqlite_int64) int32 { /*
}
// Close the file.
-func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* sqlite3.c:99176:12: */
+func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100015:12: */
var p uintptr = pJfd
memjrnlFreeChunks(tls, (*MemJournal)(unsafe.Pointer(p)).FpFirst)
return SQLITE_OK
@@ -78332,14 +78948,14 @@ func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* sqlite3.c:99176:12: */
//
// 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 { /* sqlite3.c:99188:12: */
+func memjrnlSync(tls *libc.TLS, pJfd uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100027:12: */
_ = pJfd
_ = flags
return SQLITE_OK
}
// Query the size of the file in bytes.
-func memjrnlFileSize(tls *libc.TLS, pJfd uintptr, pSize uintptr) int32 { /* sqlite3.c:99196:12: */
+func memjrnlFileSize(tls *libc.TLS, pJfd uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100035:12: */
var p uintptr = pJfd
*(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset
return SQLITE_OK
@@ -78354,7 +78970,7 @@ var sMemJournalMethods = sqlite3_io_methods{
FxTruncate: 0, // xTruncate
FxSync: 0, // xSync
FxFileSize: 0, // xUnfetch
-} /* sqlite3.c:99205:40 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100044:40 */
// Open a journal file.
//
@@ -78366,7 +78982,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 { /* sqlite3.c:99239:20: */
+func Xsqlite3JournalOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pJfd uintptr, flags int32, nSpill int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100078:20: */
var p uintptr = pJfd
// Zero the file-handle object. If nSpill was passed zero, initialize
@@ -78394,20 +79010,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) { /* sqlite3.c:99275:21: */
+func Xsqlite3MemJournalOpen(tls *libc.TLS, pJfd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100114: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 { /* sqlite3.c:99314:20: */
+func Xsqlite3JournalIsInMemory(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100153: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 { /* sqlite3.c:99322:20: */
+func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100161:20: */
return func() int32 {
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile > int32(unsafe.Sizeof(MemJournal{})) {
return (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile
@@ -78436,7 +79052,7 @@ func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:99322
// 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 { /* sqlite3.c:99352:12: */
+func walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100191:12: */
var pWin uintptr
for pWin = pList; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin {
var rc int32
@@ -78484,7 +79100,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 { /* sqlite3.c:99391:28: */
+func walkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100230:28: */
var rc int32
for 1 != 0 {
@@ -78526,7 +79142,7 @@ func walkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.
return WRC_Continue
}
-func Xsqlite3WalkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:99423:20: */
+func Xsqlite3WalkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100262:20: */
if pExpr != 0 {
return walkExpr(tls, pWalker, pExpr)
}
@@ -78535,7 +79151,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 { /* sqlite3.c:99431:20: */
+func Xsqlite3WalkExprList(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100270:20: */
var i int32
var pItem uintptr
if p != 0 {
@@ -78564,7 +79180,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) { /* sqlite3.c:99446:21: */
+func Xsqlite3WalkWinDefnDummyCallback(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100285:21: */
_ = pWalker
_ = p
// No-op
@@ -78574,7 +79190,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 { /* sqlite3.c:99458:20: */
+func Xsqlite3WalkSelectExpr(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100297:20: */
if Xsqlite3WalkExprList(tls, pWalker, (*Select)(unsafe.Pointer(p)).FpEList) != 0 {
return WRC_Abort
}
@@ -78616,7 +79232,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 { /* sqlite3.c:99491:20: */
+func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100330:20: */
var pSrc uintptr
var i int32
var pItem uintptr
@@ -78665,7 +79281,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 { /* sqlite3.c:99529:20: */
+func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100368:20: */
var rc int32
if p == uintptr(0) {
return WRC_Continue
@@ -78673,7 +79289,7 @@ func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sq
if (*Walker)(unsafe.Pointer(pWalker)).FxSelectCallback == uintptr(0) {
return WRC_Continue
}
- for ok := true; ok; ok = p != uintptr(0) {
+ for __ccgo := true; __ccgo; __ccgo = p != uintptr(0) {
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Walker)(unsafe.Pointer(pWalker)).FxSelectCallback})).f(tls, pWalker, p)
@@ -78696,13 +79312,13 @@ func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sq
// Increase the walkerDepth when entering a subquery, and
// descrease when leaving the subquery.
-func Xsqlite3WalkerDepthIncrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* sqlite3.c:99552:20: */
+func Xsqlite3WalkerDepthIncrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100391:20: */
_ = pSelect
(*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth++
return WRC_Continue
}
-func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:99557:21: */
+func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100396:21: */
_ = pSelect
(*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth--
}
@@ -78714,7 +79330,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 { /* sqlite3.c:99572:20: */
+func Xsqlite3ExprWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100411:20: */
_ = NotUsed
_ = NotUsed2
return WRC_Continue
@@ -78722,7 +79338,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 { /* sqlite3.c:99581:20: */
+func Xsqlite3SelectWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100420:20: */
_ = NotUsed
_ = NotUsed2
return WRC_Continue
@@ -78757,14 +79373,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 { /* sqlite3.c:99622:12: */
+func incrAggDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100461: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) { /* sqlite3.c:99626:13: */
+func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100465:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -78797,7 +79413,7 @@ func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* sqlite3.c:
// 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) { /* sqlite3.c:99655:13: */
+func resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pExpr uintptr, nSubquery int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100494:13: */
var pOrig uintptr // The iCol-th column of the result set
var pDup uintptr // Copy of pOrig
var db uintptr // The database connection
@@ -78843,7 +79459,7 @@ func resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pEx
//
// 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 { /* sqlite3.c:99712:12: */
+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++ {
@@ -78860,7 +79476,7 @@ func nameInUsingClause(tls *libc.TLS, pUsing uintptr, zCol uintptr) int32 { /* s
// 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 { /* sqlite3.c:99729:20: */
+func Xsqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100568:20: */
var n int32
var zSpan uintptr
if int32(*(*uint8)(unsafe.Pointer(pItem + 20))&0x3>>0) != ENAME_TAB {
@@ -78886,7 +79502,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 { /* sqlite3.c:99758:12: */
+func areDoubleQuotedStringsEnabled(tls *libc.TLS, db uintptr, pTopNC uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100597:12: */
if (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 {
return 1
} // Always support for legacy schemas
@@ -78905,7 +79521,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 { /* sqlite3.c:99776:24: */
+func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100615:24: */
var n int32
var pExTab uintptr
@@ -78955,7 +79571,7 @@ func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* sqlite3.c:99
//
// 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 { /* sqlite3.c:99825:12: */
+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)
@@ -79037,7 +79653,7 @@ __5:
goto __6
__6:
;
- if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+6308, zDb) == 0) {
+ if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+6313, zDb) == 0) {
goto __8
}
// This branch is taken when the main database has been renamed
@@ -79102,14 +79718,25 @@ __21:
;
__16:
;
- if !(zDb != 0 && (*Table)(unsafe.Pointer(pTab)).FpSchema != pSchema) {
+ if !(zDb != 0) {
goto __22
}
+ if !((*Table)(unsafe.Pointer(pTab)).FpSchema != pSchema) {
+ goto __23
+ }
+ goto __14
+__23:
+ ;
+ if !(pSchema == uintptr(0) && libc.Xstrcmp(tls, zDb, ts+6318) != 0) {
+ goto __24
+ }
goto __14
+__24:
+ ;
__22:
;
if !(zTab != 0) {
- goto __23
+ goto __25
}
if (*SrcItem)(unsafe.Pointer(pItem)).FzAlias != 0 {
zTabName = (*SrcItem)(unsafe.Pointer(pItem)).FzAlias
@@ -79118,50 +79745,50 @@ __22:
}
if !(Xsqlite3StrICmp(tls, zTabName, zTab) != 0) {
- goto __24
+ goto __26
}
goto __14
-__24:
+__26:
;
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && (*SrcItem)(unsafe.Pointer(pItem)).FzAlias != 0) {
- goto __25
+ goto __27
}
Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), pExpr+64)
-__25:
+__27:
;
-__23:
+__25:
;
hCol = Xsqlite3StrIHash(tls, zCol)
j = 0
pCol = (*Table)(unsafe.Pointer(pTab)).FaCol
-__26:
+__28:
if !(j < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __28
+ goto __30
}
if !(int32((*Column)(unsafe.Pointer(pCol)).FhName) == int32(hCol) &&
Xsqlite3StrICmp(tls, (*Column)(unsafe.Pointer(pCol)).FzCnName, zCol) == 0) {
- goto __29
+ goto __31
}
// 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 __30
+ goto __32
}
if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_NATURAL != 0) {
- goto __31
+ goto __33
}
- goto __27
-__31:
+ goto __29
+__33:
;
if !(nameInUsingClause(tls, (*SrcItem)(unsafe.Pointer(pItem)).FpUsing, zCol) != 0) {
- goto __32
+ goto __34
}
- goto __27
-__32:
+ goto __29
+__34:
;
-__30:
+__32:
;
cnt++
pMatch = pItem
@@ -79172,23 +79799,23 @@ __30:
}
return I16(j)
}()
- goto __28
-__29:
+ goto __30
+__31:
;
- goto __27
-__27:
+ goto __29
+__29:
j++
pCol += 24
- goto __26
goto __28
-__28:
+ goto __30
+__30:
;
if !(0 == cnt && (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_NoVisibleRowid) == U32(0)) {
- goto __33
+ goto __35
}
cntTab++
pMatch = pItem
-__33:
+__35:
;
goto __14
__14:
@@ -79199,7 +79826,7 @@ __14:
__15:
;
if !(pMatch != 0) {
- goto __34
+ goto __36
}
(*Expr)(unsafe.Pointer(pExpr)).FiTable = (*SrcItem)(unsafe.Pointer(pMatch)).FiCursor
@@ -79207,13 +79834,13 @@ __15:
// RIGHT JOIN not (yet) supported
if !(int32((*SrcItem)(unsafe.Pointer(pMatch)).Ffg.Fjointype)&JT_LEFT != 0) {
- goto __35
+ goto __37
}
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_CanBeNull)
-__35:
+__37:
;
pSchema = (*Table)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 64)))).FpSchema
-__34:
+__36:
;
__12:
; // if( pSrcList )
@@ -79223,143 +79850,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 __36
+ goto __38
}
pTab = uintptr(0)
if !((*Parse)(unsafe.Pointer(pParse)).FpTriggerTab != uintptr(0)) {
- goto __37
+ goto __39
}
op = int32((*Parse)(unsafe.Pointer(pParse)).FeTriggerOp)
if !((*Parse)(unsafe.Pointer(pParse)).FbReturning != 0) {
- goto __38
+ goto __40
}
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 __40
+ goto __42
}
(*Expr)(unsafe.Pointer(pExpr)).FiTable = libc.Bool32(op != TK_DELETE)
pTab = (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab
-__40:
+__42:
;
- goto __39
-__38:
- if !(op != TK_DELETE && zTab != 0 && Xsqlite3StrICmp(tls, ts+6313, zTab) == 0) {
- goto __41
+ goto __41
+__40:
+ if !(op != TK_DELETE && zTab != 0 && Xsqlite3StrICmp(tls, ts+6320, zTab) == 0) {
+ goto __43
}
(*Expr)(unsafe.Pointer(pExpr)).FiTable = 1
pTab = (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab
- goto __42
-__41:
- if !(op != TK_INSERT && zTab != 0 && Xsqlite3StrICmp(tls, ts+6317, zTab) == 0) {
- goto __43
+ goto __44
+__43:
+ if !(op != TK_INSERT && zTab != 0 && Xsqlite3StrICmp(tls, ts+6324, zTab) == 0) {
+ goto __45
}
(*Expr)(unsafe.Pointer(pExpr)).FiTable = 0
pTab = (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab
-__43:
+__45:
;
-__42:
+__44:
;
-__39:
+__41:
;
-__37:
+__39:
;
if !((*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_UUpsert != 0 && zTab != uintptr(0)) {
- goto __44
+ goto __46
}
pUpsert = *(*uintptr)(unsafe.Pointer(pNC + 16))
- if !(pUpsert != 0 && Xsqlite3StrICmp(tls, ts+6321, zTab) == 0) {
- goto __45
+ if !(pUpsert != 0 && Xsqlite3StrICmp(tls, ts+6328, zTab) == 0) {
+ goto __47
}
pTab = (*SrcItem)(unsafe.Pointer((*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertSrc + 8)).FpTab
(*Expr)(unsafe.Pointer(pExpr)).FiTable = EXCLUDED_TABLE_NUMBER
-__45:
+__47:
;
-__44:
+__46:
;
if !(pTab != 0) {
- goto __46
+ goto __48
}
hCol1 = Xsqlite3StrIHash(tls, zCol)
pSchema = (*Table)(unsafe.Pointer(pTab)).FpSchema
cntTab++
iCol = 0
pCol = (*Table)(unsafe.Pointer(pTab)).FaCol
-__47:
+__49:
if !(iCol < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __49
+ goto __51
}
if !(int32((*Column)(unsafe.Pointer(pCol)).FhName) == int32(hCol1) &&
Xsqlite3StrICmp(tls, (*Column)(unsafe.Pointer(pCol)).FzCnName, zCol) == 0) {
- goto __50
+ goto __52
}
if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FiPKey)) {
- goto __51
+ goto __53
}
iCol = -1
-__51:
+__53:
;
- goto __49
-__50:
+ goto __51
+__52:
;
- goto __48
-__48:
+ goto __50
+__50:
iCol++
pCol += 24
- goto __47
goto __49
-__49:
+ goto __51
+__51:
;
if !(iCol >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) && Xsqlite3IsRowid(tls, zCol) != 0 && (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_NoVisibleRowid) == U32(0)) {
- goto __52
+ goto __54
}
// IMP: R-51414-32910
iCol = -1
-__52:
+__54:
;
if !(iCol < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __53
+ goto __55
}
cnt++
pMatch = uintptr(0)
if !((*Expr)(unsafe.Pointer(pExpr)).FiTable == EXCLUDED_TABLE_NUMBER) {
- goto __54
+ goto __56
}
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
- goto __56
+ goto __58
}
(*Expr)(unsafe.Pointer(pExpr)).FiColumn = YnVar(iCol)
*(*uintptr)(unsafe.Pointer(pExpr + 64)) = pTab
eNewExprOp = TK_COLUMN
- goto __57
-__56:
+ goto __59
+__58:
(*Expr)(unsafe.Pointer(pExpr)).FiTable = (*Upsert)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNC + 16)))).FregData + int32(Xsqlite3TableColumnToStorage(tls, pTab, int16(iCol)))
eNewExprOp = TK_REGISTER
-__57:
+__59:
;
- goto __55
-__54:
+ goto __57
+__56:
;
*(*uintptr)(unsafe.Pointer(pExpr + 64)) = pTab
if !((*Parse)(unsafe.Pointer(pParse)).FbReturning != 0) {
- goto __58
+ goto __60
}
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 __59
-__58:
+ goto __61
+__60:
(*Expr)(unsafe.Pointer(pExpr)).FiColumn = I16(iCol)
eNewExprOp = TK_TRIGGER
if !(iCol < 0) {
- goto __60
+ goto __62
}
(*Expr)(unsafe.Pointer(pExpr)).FaffExpr = int8(SQLITE_AFF_INTEGER)
- goto __61
-__60:
+ goto __63
+__62:
if !((*Expr)(unsafe.Pointer(pExpr)).FiTable == 0) {
- goto __62
+ goto __64
}
*(*U32)(unsafe.Pointer(pParse + 204)) |= func() uint32 {
@@ -79368,8 +79996,8 @@ __60:
}
return U32(U32(1)) << iCol
}()
- goto __63
-__62:
+ goto __65
+__64:
;
*(*U32)(unsafe.Pointer(pParse + 208)) |= func() uint32 {
@@ -79378,19 +80006,19 @@ __62:
}
return U32(U32(1)) << iCol
}()
+__65:
+ ;
__63:
;
__61:
;
-__59:
+__57:
;
__55:
;
-__53:
- ;
-__46:
+__48:
;
-__36:
+__38:
;
// Perhaps the name is a reference to the ROWID
@@ -79400,12 +80028,12 @@ __36:
(*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 __64
+ goto __66
}
cnt = 1
(*Expr)(unsafe.Pointer(pExpr)).FiColumn = int16(-1)
(*Expr)(unsafe.Pointer(pExpr)).FaffExpr = int8(SQLITE_AFF_INTEGER)
-__64:
+__66:
;
// If the input is of the form Z (not Y.Z or X.Y.Z) then the name Z
@@ -79427,74 +80055,74 @@ __64:
if !(cnt == 0 &&
(*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_UEList != 0 &&
zTab == uintptr(0)) {
- goto __65
+ goto __67
}
pEList = *(*uintptr)(unsafe.Pointer(pNC + 16))
j = 0
-__66:
+__68:
if !(j < (*ExprList)(unsafe.Pointer(pEList)).FnExpr) {
- goto __68
+ goto __70
}
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 &&
Xsqlite3_stricmp(tls, zAs, zCol) == 0) {
- goto __69
+ goto __71
}
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 __70
+ goto __72
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6330, libc.VaList(bp, zAs))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6337, libc.VaList(bp, zAs))
return WRC_Abort
-__70:
+__72:
;
if !((*Expr)(unsafe.Pointer(pOrig)).Fflags&U32(EP_Win) != U32(0) &&
((*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_AllowWin == 0 || pNC != pTopNC)) {
- goto __71
+ goto __73
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6361, libc.VaList(bp+8, zAs))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6368, libc.VaList(bp+8, zAs))
return WRC_Abort
-__71:
+__73:
;
if !(Xsqlite3ExprVectorSize(tls, pOrig) != 1) {
- goto __72
+ goto __74
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6398, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6405, 0)
return WRC_Abort
-__72:
+__74:
;
resolveAlias(tls, pParse, pEList, j, pExpr, nSubquery)
cnt = 1
pMatch = uintptr(0)
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
- goto __73
+ goto __75
}
Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), pExpr)
-__73:
+__75:
;
goto lookupname_end
-__69:
+__71:
;
- goto __67
-__67:
+ goto __69
+__69:
j++
- goto __66
goto __68
-__68:
+ goto __70
+__70:
;
-__65:
+__67:
;
// 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 __74
+ goto __76
}
goto __11
-__74:
+__76:
;
pNC = (*NameContext)(unsafe.Pointer(pNC)).FpNext
nSubquery++
@@ -79516,12 +80144,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 __75
+ goto __77
}
if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_DblQuoted) != U32(0) &&
areDoubleQuotedStringsEnabled(tls, db, pTopNC) != 0) {
- goto __76
+ goto __78
}
// If a double-quoted identifier does not match any known column name,
// then treat it as a string.
@@ -79537,51 +80165,52 @@ __11:
// a huge amount of legacy SQL that uses it. So for now, we just
// issue a warning.
Xsqlite3_log(tls, SQLITE_WARNING,
- ts+6416, libc.VaList(bp+16, zCol))
+ ts+6423, 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
-__76:
+__78:
;
if !(Xsqlite3ExprIdToTrueFalse(tls, pExpr) != 0) {
- goto __77
+ goto __79
}
return WRC_Prune
-__77:
+__79:
;
-__75:
+__77:
;
// cnt==0 means there was not match. cnt>1 means there were two or
// more matches. Either way, we have an error.
if !(cnt != 1) {
- goto __78
+ goto __80
}
if cnt == 0 {
- zErr = ts + 6451 /* "no such column" */
+ zErr = ts + 6458 /* "no such column" */
} else {
- zErr = ts + 6466 /* "ambiguous column..." */
+ zErr = ts + 6473 /* "ambiguous column..." */
}
if !(zDb != 0) {
- goto __79
- }
- Xsqlite3ErrorMsg(tls, pParse, ts+6488, libc.VaList(bp+24, zErr, zDb, zTab, zCol))
- goto __80
-__79:
- if !(zTab != 0) {
goto __81
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6501, libc.VaList(bp+56, zErr, zTab, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6495, libc.VaList(bp+24, zErr, zDb, zTab, zCol))
goto __82
__81:
- Xsqlite3ErrorMsg(tls, pParse, ts+6511, libc.VaList(bp+80, zErr, zCol))
-__82:
+ if !(zTab != 0) {
+ goto __83
+ }
+ Xsqlite3ErrorMsg(tls, pParse, ts+6508, libc.VaList(bp+56, zErr, zTab, zCol))
+ goto __84
+__83:
+ Xsqlite3ErrorMsg(tls, pParse, ts+6518, libc.VaList(bp+80, zErr, zCol))
+__84:
;
-__80:
+__82:
;
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
(*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1)
(*NameContext)(unsafe.Pointer(pTopNC)).FnNcErr++
-__78:
+__80:
;
// If a column from a table in pSrcList is referenced, then record
@@ -79598,66 +80227,66 @@ __78:
// 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 __83
+ goto __85
}
*(*Bitmask)(unsafe.Pointer(pMatch + 88)) |= Xsqlite3ExprColUsed(tls, pExpr)
-__83:
+__85:
;
// Clean up and return
if !!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_TokenOnly|EP_Leaf) != U32(0)) {
- goto __84
+ 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)
-__84:
+__86:
;
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(eNewExprOp)
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_Leaf)
lookupname_end:
if !(cnt == 1) {
- goto __85
+ goto __87
}
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 __87
+ goto __89
}
Xsqlite3AuthRead(tls, pParse, pExpr, pSchema, (*NameContext)(unsafe.Pointer(pNC)).FpSrcList)
-__87:
+__89:
;
// Increment the nRef value on all name contexts from TopNC up to
// the point where the name matched.
-__88:
+__90:
;
(*NameContext)(unsafe.Pointer(pTopNC)).FnRef++
if !(pTopNC == pNC) {
- goto __91
+ goto __93
}
- goto __90
-__91:
+ goto __92
+__93:
;
pTopNC = (*NameContext)(unsafe.Pointer(pTopNC)).FpNext
- goto __89
-__89:
- goto __88
+ goto __91
+__91:
goto __90
-__90:
+ goto __92
+__92:
;
return WRC_Prune
- goto __86
-__85:
+ goto __88
+__87:
return WRC_Abort
-__86:
+__88:
;
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 { /* sqlite3.c:100268:21: */
+func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int32, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101110:21: */
var p uintptr = Xsqlite3ExprAlloc(tls, db, TK_COLUMN, uintptr(0), 0)
if p != 0 {
var pItem uintptr = pSrc + 8 + uintptr(iSrc)*112
@@ -79706,28 +80335,29 @@ 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) { /* sqlite3.c:100312:13: */
+func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExpr uintptr, pError uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101154:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- var zIn uintptr = ts + 6518 /* "partial index WH..." */
+ var zIn uintptr = ts + 6525 /* "partial index WH..." */
if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IdxExpr != 0 {
- zIn = ts + 6546 /* "index expression..." */
+ zIn = ts + 6553 /* "index expression..." */
} else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IsCheck != 0 {
- zIn = ts + 6564 /* "CHECK constraint..." */
+ zIn = ts + 6571 /* "CHECK constraint..." */
} else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_GenCol != 0 {
- zIn = ts + 6582 /* "generated column..." */
+ zIn = ts + 6589 /* "generated column..." */
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6600, libc.VaList(bp, zMsg, zIn))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6607, libc.VaList(bp, zMsg, zIn))
if pExpr != 0 {
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_NULL)
}
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pError)
}
// 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 { /* sqlite3.c:100338:12: */
+func exprProbability(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101182:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -79753,9 +80383,9 @@ func exprProbability(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:100338:12: *
// 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 { /* sqlite3.c:100359:12: */
- bp := tls.Alloc(128)
- defer tls.Free(128)
+func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101203:12: */
+ bp := tls.Alloc(96)
+ defer tls.Free(96)
var pNC uintptr
var pParse uintptr
@@ -79803,7 +80433,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
fallthrough
case TK_ISNULL:
{
- // var anRef [8]int32 at bp+96, 32
+ // var anRef [8]int32 at bp+64, 32
var p uintptr
var i int32
@@ -79814,7 +80444,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
goto __3
}
{
- *(*int32)(unsafe.Pointer(bp + 96 + uintptr(i)*4)) = (*NameContext)(unsafe.Pointer(p)).FnRef
+ *(*int32)(unsafe.Pointer(bp + 64 + uintptr(i)*4)) = (*NameContext)(unsafe.Pointer(p)).FnRef
}
goto __2
@@ -79829,10 +80459,10 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
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 + 6620 /* "true" */
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6627 /* "true" */
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsTrue)
} else {
- *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6625 /* "false" */
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6632 /* "false" */
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse)
}
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_TRUEFALSE)
@@ -79843,7 +80473,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
goto __6
}
{
- (*NameContext)(unsafe.Pointer(p)).FnRef = *(*int32)(unsafe.Pointer(bp + 96 + uintptr(i)*4))
+ (*NameContext)(unsafe.Pointer(p)).FnRef = *(*int32)(unsafe.Pointer(bp + 64 + uintptr(i)*4))
}
goto __5
@@ -79886,7 +80516,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_IdxExpr|NC_GenCol) != 0 {
- notValidImpl(tls, pParse, pNC, ts+6631, uintptr(0))
+ notValidImpl(tls, pParse, pNC, ts+6638, uintptr(0), pExpr)
}
pRight = (*Expr)(unsafe.Pointer(pExpr)).FpRight
@@ -79924,7 +80554,6 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
var no_such_func int32 = 0 // True if no such function exists
var wrong_num_args int32 = 0 // True if wrong number of arguments
var is_agg int32 = 0 // True if is an aggregate function
- var nId int32 // Number of characters in function name
var zId uintptr // The function name.
var pDef uintptr // Information about the function
var enc U8 = (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).Fenc // The database encoding
@@ -79937,7 +80566,6 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
}()
zId = *(*uintptr)(unsafe.Pointer(pExpr + 8))
- nId = Xsqlite3Strlen30(tls, zId)
pDef = Xsqlite3FindFunction(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, zId, n, enc, uint8(0))
if pDef == uintptr(0) {
pDef = Xsqlite3FindFunction(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, zId, -2, enc, uint8(0))
@@ -79955,7 +80583,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
if (*Expr)(unsafe.Pointer(pExpr)).FiTable < 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+6648, 0)
+ ts+6655, libc.VaList(bp, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
} else {
@@ -79981,7 +80609,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
if auth != SQLITE_OK {
if auth == SQLITE_DENY {
Xsqlite3ErrorMsg(tls, pParse, ts+6719,
- libc.VaList(bp, (*FuncDef)(unsafe.Pointer(pDef)).FzName))
+ libc.VaList(bp+8, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_NULL)
@@ -80004,7 +80632,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
// 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+6754, uintptr(0))
+ notValidImpl(tls, pParse, pNC, ts+6755, uintptr(0), pExpr)
}
} else {
@@ -80020,7 +80648,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
// Internal-use-only functions are disallowed unless the
// SQL is being compiled using sqlite3NestedParse() or
// the SQLITE_TESTCTRL_INTERNAL_FUNCTIONS test-control has be
- // used to activate internal functionsn for testing purposes
+ // used to activate internal functions for testing purposes
no_such_func = 1
pDef = uintptr(0)
} else if (*FuncDef)(unsafe.Pointer(pDef)).FfuncFlags&U32(SQLITE_FUNC_DIRECT|SQLITE_FUNC_UNSAFE) != U32(0) &&
@@ -80033,7 +80661,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
if pDef != 0 && (*FuncDef)(unsafe.Pointer(pDef)).FxValue == uintptr(0) && pWin != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+6782, libc.VaList(bp+8, nId, zId))
+ ts+6783, 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) ||
@@ -80044,20 +80672,20 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
} else {
zType = ts + 6833 /* "aggregate" */
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6843, libc.VaList(bp+24, zType, nId, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6843, 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+6872, libc.VaList(bp+48, nId, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6871, libc.VaList(bp+40, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
} else if wrong_num_args != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+6895,
- libc.VaList(bp+64, nId, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6893,
+ 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,
- libc.VaList(bp+80, nId, zId))
+ ts+6937,
+ libc.VaList(bp+56, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
if is_agg != 0 {
@@ -80134,7 +80762,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
var nRef int32 = (*NameContext)(unsafe.Pointer(pNC)).FnRef
if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_SelfRef != 0 {
- notValidImpl(tls, pParse, pNC, ts+6989, pExpr)
+ notValidImpl(tls, pParse, pNC, ts+6985, pExpr, pExpr)
} else {
Xsqlite3WalkSelect(tls, pWalker, *(*uintptr)(unsafe.Pointer(pExpr + 32)))
}
@@ -80151,7 +80779,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
{
if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_IsCheck|NC_PartIdx|NC_IdxExpr|NC_GenCol) != 0 {
- notValidImpl(tls, pParse, pNC, ts+7000, pExpr)
+ notValidImpl(tls, pParse, pNC, ts+6996, pExpr, pExpr)
}
break
@@ -80212,13 +80840,15 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
}
if nLeft != nRight {
- Xsqlite3ErrorMsg(tls, pParse, ts+6398, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6405, 0)
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
}
break
}
}
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
+
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return WRC_Abort
}
return WRC_Continue
@@ -80234,7 +80864,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
// return 0.
//
// pEList has been resolved. pE has not.
-func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) int32 { /* sqlite3.c:100817:12: */
+func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101661:12: */
var i int32 // Loop counter
_ = pParse
@@ -80269,7 +80899,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 { /* sqlite3.c:100859:12: */
+func resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintptr, pE uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101703:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -80313,13 +80943,14 @@ 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) { /* sqlite3.c:100906:13: */
+func resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int32, mx int32, pError uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101750:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
Xsqlite3ErrorMsg(tls, pParse,
- ts+7011, libc.VaList(bp, i, zType, mx))
+ ts+7007, libc.VaList(bp, i, zType, mx))
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pError)
}
// Analyze the ORDER BY clause in a compound SELECT statement. Modify
@@ -80335,7 +80966,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 { /* sqlite3.c:100932:12: */
+func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101778:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -80351,7 +80982,7 @@ 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+7067, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+7063, 0)
return 1
}
for i = 0; i < (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr; i++ {
@@ -80386,7 +81017,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+7101, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr)
+ resolveOutOfRangeError(tls, pParse, ts+7097, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pE)
return 1
}
} else {
@@ -80457,7 +81088,7 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3
for i = 0; i < (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr; i++ {
if int32(*(*uint8)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32 + 20))&0x4>>2) == 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+7107, libc.VaList(bp, i+1))
+ ts+7103, libc.VaList(bp, i+1))
return 1
}
}
@@ -80472,7 +81103,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 { /* sqlite3.c:101045:20: */
+func Xsqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101891:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -80485,7 +81116,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+7168, libc.VaList(bp, zType))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7164, libc.VaList(bp, zType))
return 1
}
pEList = (*Select)(unsafe.Pointer(pSelect)).FpEList
@@ -80499,7 +81130,7 @@ __1:
{
if *(*U16)(unsafe.Pointer(pItem + 24)) != 0 {
if int32(*(*U16)(unsafe.Pointer(pItem + 24))) > (*ExprList)(unsafe.Pointer(pEList)).FnExpr {
- resolveOutOfRangeError(tls, pParse, zType, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr)
+ resolveOutOfRangeError(tls, pParse, zType, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, uintptr(0))
return 1
}
resolveAlias(tls, pParse, pEList, int32(*(*U16)(unsafe.Pointer(pItem + 24)))-1, (*ExprList_item)(unsafe.Pointer(pItem)).FpExpr, 0)
@@ -80518,7 +81149,7 @@ __3:
}
// Walker callback for windowRemoveExprFromSelect().
-func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:101079:12: */
+func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101925:12: */
_ = pWalker
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) {
var pWin uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 64))
@@ -80529,7 +81160,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) { /* sqlite3.c:101092:13: */
+func windowRemoveExprFromSelect(tls *libc.TLS, pSelect uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101938:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -80561,7 +81192,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 { /* sqlite3.c:101123:12: */
+func resolveOrderGroupBy(tls *libc.TLS, pNC uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101969:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -80603,7 +81234,7 @@ __1:
// number so that sqlite3ResolveOrderGroupBy() will convert the
// order-by term to a copy of the result-set expression
if *(*int32)(unsafe.Pointer(bp)) < 1 || *(*int32)(unsafe.Pointer(bp)) > 0xffff {
- resolveOutOfRangeError(tls, pParse, zType, i+1, nResult)
+ resolveOutOfRangeError(tls, pParse, zType, i+1, nResult, pE2)
return 1
}
*(*U16)(unsafe.Pointer(pItem + 24)) = U16(*(*int32)(unsafe.Pointer(bp /* iCol */)))
@@ -80638,7 +81269,7 @@ __3:
}
// Resolve names in the SELECT statement p and all of its descendants.
-func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:101186:12: */
+func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102032:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -80669,7 +81300,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
// this routine in the correct order.
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Expanded) == U32(0) {
Xsqlite3SelectPrep(tls, pParse, p, pOuterNC)
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return WRC_Abort
}
return WRC_Prune
@@ -80722,7 +81353,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
}
Xsqlite3ResolveSelectNames(tls, pParse, (*SrcItem)(unsafe.Pointer(pItem)).FpSelect, pOuterNC)
(*Parse)(unsafe.Pointer(pParse)).FzAuthContext = zSavedContext
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return WRC_Abort
}
@@ -80774,7 +81405,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
*(*int32)(unsafe.Pointer(bp + 40)) |= NC_UEList
if (*Select)(unsafe.Pointer(p)).FpHaving != 0 {
if !(pGroupBy != 0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+7199, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+7195, 0)
return WRC_Abort
}
if Xsqlite3ResolveExprNames(tls, bp, (*Select)(unsafe.Pointer(p)).FpHaving) != 0 {
@@ -80831,7 +81462,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
// 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+7101) != 0 {
+ resolveOrderGroupBy(tls, bp, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+7097) != 0 {
return WRC_Abort
}
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -80844,7 +81475,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
if pGroupBy != 0 {
var pItem uintptr
- if resolveOrderGroupBy(tls, bp, p, pGroupBy, ts+7243) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ if resolveOrderGroupBy(tls, bp, p, pGroupBy, ts+7239) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return WRC_Abort
}
i = 0
@@ -80856,7 +81487,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
{
if (*Expr)(unsafe.Pointer((*ExprList_item)(unsafe.Pointer(pItem)).FpExpr)).Fflags&U32(EP_Agg) != U32(0) {
Xsqlite3ErrorMsg(tls, pParse,
- ts+7249, 0)
+ ts+7245, 0)
return WRC_Abort
}
@@ -80937,7 +81568,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sql
//
// 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 { /* sqlite3.c:101473:20: */
+func Xsqlite3ResolveExprNames(tls *libc.TLS, pNC uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102320:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -80963,12 +81594,12 @@ func Xsqlite3ResolveExprNames(tls *libc.TLS, pNC uintptr, pExpr uintptr) int32 {
}()
(*Walker)(unsafe.Pointer(bp /* &w */)).FxSelectCallback2 = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 40)) = pNC
- *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 292)) += (*Expr)(unsafe.Pointer(pExpr)).FnHeight
+ *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 300)) += (*Expr)(unsafe.Pointer(pExpr)).FnHeight
if Xsqlite3ExprCheckHeight(tls, (*Walker)(unsafe.Pointer(bp)).FpParse, (*Parse)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse)).FnHeight) != 0 {
return SQLITE_ERROR
}
Xsqlite3WalkExpr(tls, bp, pExpr)
- *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 292)) -= (*Expr)(unsafe.Pointer(pExpr)).FnHeight
+ *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 300)) -= (*Expr)(unsafe.Pointer(pExpr)).FnHeight
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32((*NameContext)(unsafe.Pointer(pNC)).FncFlags & (NC_HasAgg | NC_HasWin))
*(*int32)(unsafe.Pointer(pNC + 40)) |= savedHasAgg
@@ -80978,7 +81609,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 { /* sqlite3.c:101512:20: */
+func Xsqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102359:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -81005,12 +81636,12 @@ func Xsqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) int
if pExpr == uintptr(0) {
continue
}
- *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 292)) += (*Expr)(unsafe.Pointer(pExpr)).FnHeight
+ *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 300)) += (*Expr)(unsafe.Pointer(pExpr)).FnHeight
if Xsqlite3ExprCheckHeight(tls, (*Walker)(unsafe.Pointer(bp)).FpParse, (*Parse)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse)).FnHeight) != 0 {
return WRC_Abort
}
Xsqlite3WalkExpr(tls, bp, pExpr)
- *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 292)) -= (*Expr)(unsafe.Pointer(pExpr)).FnHeight
+ *(*int32)(unsafe.Pointer((*Walker)(unsafe.Pointer(bp)).FpParse + 300)) -= (*Expr)(unsafe.Pointer(pExpr)).FnHeight
if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_HasAgg|NC_MinMaxAgg|NC_HasWin|NC_OrderAgg) != 0 {
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32((*NameContext)(unsafe.Pointer(pNC)).FncFlags & (NC_HasAgg | NC_HasWin))
@@ -81035,7 +81666,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) { /* sqlite3.c:101568:21: */
+func Xsqlite3ResolveSelectNames(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102415:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -81069,7 +81700,7 @@ 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 { /* sqlite3.c:101602:20: */
+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)
@@ -81105,7 +81736,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 { /* sqlite3.c:101662:21: */
+func Xsqlite3TableColumnAffinity(tls *libc.TLS, pTab uintptr, iCol int32) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102509:21: */
if iCol < 0 || iCol >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) {
return int8(SQLITE_AFF_INTEGER)
}
@@ -81126,7 +81757,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 { /* sqlite3.c:101683:21: */
+func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102530:21: */
var op int32
for (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip|EP_IfNullRow) != U32(0) {
@@ -81169,7 +81800,7 @@ func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* sqlite3.c:1016
//
// 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 { /* sqlite3.c:101736:21: */
+func Xsqlite3ExprAddCollateToken(tls *libc.TLS, pParse uintptr, pExpr uintptr, pCollName uintptr, dequote int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102583: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 {
@@ -81181,7 +81812,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 { /* sqlite3.c:101752:21: */
+func Xsqlite3ExprAddCollateString(tls *libc.TLS, pParse uintptr, pExpr uintptr, zC uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102599:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -81192,7 +81823,7 @@ func Xsqlite3ExprAddCollateString(tls *libc.TLS, pParse uintptr, pExpr uintptr,
}
// Skip over any TK_COLLATE operators.
-func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* sqlite3.c:101766:21: */
+func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102613:21: */
for pExpr != 0 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip) != U32(0) {
pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
@@ -81203,7 +81834,7 @@ func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* sqlite3.
// 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 { /* sqlite3.c:101779:21: */
+func Xsqlite3ExprSkipCollateAndLikely(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102626: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) {
@@ -81228,7 +81859,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 { /* sqlite3.c:101808:24: */
+func Xsqlite3ExprCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102655:24: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pColl uintptr = uintptr(0)
var p uintptr = pExpr
@@ -81300,7 +81931,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 { /* sqlite3.c:101881:24: */
+func Xsqlite3ExprNNCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102728:24: */
var p uintptr = Xsqlite3ExprCollSeq(tls, pParse, pExpr)
if p == uintptr(0) {
p = (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FpDfltColl
@@ -81310,7 +81941,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 { /* sqlite3.c:101891:20: */
+func Xsqlite3ExprCollSeqMatch(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102738: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)
@@ -81319,7 +81950,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 { /* sqlite3.c:101902:21: */
+func Xsqlite3CompareAffinity(tls *libc.TLS, pExpr uintptr, aff2 int8) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102749: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
@@ -81344,7 +81975,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 { /* sqlite3.c:101924:13: */
+func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102771:13: */
var aff int8
aff = Xsqlite3ExprAffinity(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft)
@@ -81362,7 +81993,7 @@ func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* sqlite3.c:101924
// 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 { /* sqlite3.c:101947:20: */
+func Xsqlite3IndexAffinityOk(tls *libc.TLS, pExpr uintptr, idx_affinity int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102794:20: */
var aff int8 = comparisonAffinity(tls, pExpr)
if int32(aff) < SQLITE_AFF_TEXT {
return 1
@@ -81375,7 +82006,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 { /* sqlite3.c:101962:11: */
+func binaryCompareP5(tls *libc.TLS, pExpr1 uintptr, pExpr2 uintptr, jumpIfNull int32) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102809:11: */
var aff U8 = U8(Xsqlite3ExprAffinity(tls, pExpr2))
aff = U8(int32(U8(Xsqlite3CompareAffinity(tls, pExpr1, int8(aff)))) | int32(U8(jumpIfNull)))
return aff
@@ -81391,7 +82022,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 { /* sqlite3.c:101984:24: */
+func Xsqlite3BinaryCompareCollSeq(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102831:24: */
var pColl uintptr
if (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_Collate) != 0 {
@@ -81414,7 +82045,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 { /* sqlite3.c:102012:24: */
+func Xsqlite3ExprCompareCollSeq(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102859: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 {
@@ -81424,7 +82055,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 { /* sqlite3.c:102023: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-3380500/sqlite3.c:102870:12: */
var p5 int32
var addr int32
var p4 uintptr
@@ -81451,7 +82082,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 { /* sqlite3.c:102059:20: */
+func Xsqlite3ExprIsVector(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102906:20: */
return libc.Bool32(Xsqlite3ExprVectorSize(tls, pExpr) > 1)
}
@@ -81459,7 +82090,7 @@ func Xsqlite3ExprIsVector(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:102
// 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 { /* sqlite3.c:102069:20: */
+func Xsqlite3ExprVectorSize(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102916:20: */
var op U8 = (*Expr)(unsafe.Pointer(pExpr)).Fop
if int32(op) == TK_REGISTER {
op = (*Expr)(unsafe.Pointer(pExpr)).Fop2
@@ -81489,7 +82120,7 @@ func Xsqlite3ExprVectorSize(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:1
// 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 { /* sqlite3.c:102098:21: */
+func Xsqlite3VectorFieldSubexpr(tls *libc.TLS, pVector uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102945:21: */
if Xsqlite3ExprIsVector(tls, pVector) != 0 {
@@ -81523,7 +82154,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 { /* sqlite3.c:102134:21: */
+func Xsqlite3ExprForVectorField(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, nField int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102981:21: */
var pRet uintptr
if int32((*Expr)(unsafe.Pointer(pVector)).Fop) == TK_SELECT {
@@ -81571,7 +82202,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 { /* sqlite3.c:102190:12: */
+func exprCodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103037:12: */
var reg int32 = 0
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_SELECT {
reg = Xsqlite3CodeSubselect(tls, pParse, pExpr)
@@ -81595,7 +82226,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 { /* sqlite3.c:102218:12: */
+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: */
var op U8 = (*Expr)(unsafe.Pointer(pVector)).Fop
if int32(op) == TK_REGISTER {
@@ -81624,7 +82255,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) { /* sqlite3.c:102256:13: */
+func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, op U8, p5 U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103103:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -81644,7 +82275,7 @@ func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32,
return
}
if nLeft != Xsqlite3ExprVectorSize(tls, pRight) {
- Xsqlite3ErrorMsg(tls, pParse, ts+6398, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6405, 0)
return
}
@@ -81712,7 +82343,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 { /* sqlite3.c:102351:20: */
+func Xsqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103198:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -81720,7 +82351,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+7308, libc.VaList(bp, mxHeight))
+ ts+7304, libc.VaList(bp, mxHeight))
rc = SQLITE_ERROR
}
return rc
@@ -81734,7 +82365,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) { /* sqlite3.c:102372:13: */
+func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103219:13: */
if p != 0 {
if (*Expr)(unsafe.Pointer(p)).FnHeight > *(*int32)(unsafe.Pointer(pnHeight)) {
*(*int32)(unsafe.Pointer(pnHeight)) = (*Expr)(unsafe.Pointer(p)).FnHeight
@@ -81742,7 +82373,7 @@ func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c:102
}
}
-func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c:102379:13: */
+func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103226:13: */
if p != 0 {
var i int32
for i = 0; i < (*ExprList)(unsafe.Pointer(p)).FnExpr; i++ {
@@ -81751,7 +82382,7 @@ func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c
}
}
-func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* sqlite3.c:102387:13: */
+func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103234:13: */
var p uintptr
for p = pSelect; p != 0; p = (*Select)(unsafe.Pointer(p)).FpPrior {
heightOfExpr(tls, (*Select)(unsafe.Pointer(p)).FpWhere, pnHeight)
@@ -81771,13 +82402,18 @@ func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* sqlit
//
// Also propagate EP_Propagate flags up from Expr.x.pList to Expr.flags,
// if appropriate.
-func exprSetHeight(tls *libc.TLS, p uintptr) { /* sqlite3.c:102409:13: */
+func exprSetHeight(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103256:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
- *(*int32)(unsafe.Pointer(bp /* nHeight */)) = 0
- heightOfExpr(tls, (*Expr)(unsafe.Pointer(p)).FpLeft, bp)
- heightOfExpr(tls, (*Expr)(unsafe.Pointer(p)).FpRight, bp)
+ if (*Expr)(unsafe.Pointer(p)).FpLeft != 0 {
+ *(*int32)(unsafe.Pointer(bp /* nHeight */)) = (*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(p)).FpLeft)).FnHeight
+ } else {
+ *(*int32)(unsafe.Pointer(bp /* nHeight */)) = 0
+ }
+ if (*Expr)(unsafe.Pointer(p)).FpRight != 0 && (*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(p)).FpRight)).FnHeight > *(*int32)(unsafe.Pointer(bp)) {
+ *(*int32)(unsafe.Pointer(bp /* nHeight */)) = (*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(p)).FpRight)).FnHeight
+ }
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_xIsSelect) != U32(0) {
heightOfSelect(tls, *(*uintptr)(unsafe.Pointer(p + 32)), bp)
} else if *(*uintptr)(unsafe.Pointer(p + 32)) != 0 {
@@ -81793,7 +82429,7 @@ func exprSetHeight(tls *libc.TLS, p uintptr) { /* sqlite3.c:102409:13: */
//
// Also propagate all EP_Propagate flags from the Expr.x.pList into
// Expr.flags.
-func Xsqlite3ExprSetHeightAndFlags(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:102430:21: */
+func Xsqlite3ExprSetHeightAndFlags(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103276:21: */
if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
@@ -81803,7 +82439,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 { /* sqlite3.c:102440:20: */
+func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103286:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -81830,7 +82466,7 @@ func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:102
// 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 { /* sqlite3.c:102479:21: */
+func Xsqlite3ExprAlloc(tls *libc.TLS, db uintptr, op int32, pToken uintptr, dequote int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103325:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -81878,7 +82514,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 { /* sqlite3.c:102527:21: */
+func Xsqlite3Expr(tls *libc.TLS, db uintptr, op int32, zToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103373:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -81893,7 +82529,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) { /* sqlite3.c:102544:21: */
+func Xsqlite3ExprAttachSubtrees(tls *libc.TLS, db uintptr, pRoot uintptr, pLeft uintptr, pRight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103390:21: */
if pRoot == uintptr(0) {
Xsqlite3ExprDelete(tls, db, pLeft)
@@ -81916,7 +82552,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 { /* sqlite3.c:102574:21: */
+func Xsqlite3PExpr(tls *libc.TLS, pParse uintptr, op int32, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103420:21: */
var p uintptr
p = Xsqlite3DbMallocRawNN(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(Expr{})))
if p != 0 {
@@ -81934,7 +82570,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) { /* sqlite3.c:102599:21: */
+func Xsqlite3PExprAddSelect(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103445:21: */
if pExpr != 0 {
*(*uintptr)(unsafe.Pointer(pExpr + 32)) = pSelect
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_xIsSelect | EP_Subquery)
@@ -81962,7 +82598,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 { /* sqlite3.c:102629:23: */
+func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103475:23: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -81980,12 +82616,12 @@ func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList
nExprElem = 1
}
if nExprElem != nElem {
- Xsqlite3ErrorMsg(tls, pParse, ts+7356,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7352,
libc.VaList(bp, nExprElem, func() uintptr {
if nExprElem > 1 {
- return ts + 7400 /* "s" */
+ return ts + 7396 /* "s" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), nElem))
break
}
@@ -82014,7 +82650,7 @@ 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 { /* sqlite3.c:102676:21: */
+func Xsqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103522:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if pLeft == uintptr(0) {
return pRight
@@ -82024,7 +82660,7 @@ func Xsqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintpt
!(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
Xsqlite3ExprDeferredDelete(tls, pParse, pLeft)
Xsqlite3ExprDeferredDelete(tls, pParse, pRight)
- return Xsqlite3Expr(tls, db, TK_INTEGER, ts+7402)
+ return Xsqlite3Expr(tls, db, TK_INTEGER, ts+7398)
} else {
return Xsqlite3PExpr(tls, pParse, TK_AND, pLeft, pRight)
}
@@ -82033,7 +82669,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 { /* sqlite3.c:102697:21: */
+func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr, eDistinct int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103543:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82045,10 +82681,11 @@ 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+7404, libc.VaList(bp, pToken))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7400, libc.VaList(bp, pToken))
}
*(*uintptr)(unsafe.Pointer(pNew + 32)) = pList
*(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_HasFunc)
@@ -82069,7 +82706,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) { /* sqlite3.c:102736:21: */
+func Xsqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pDef uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103583:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82082,7 +82719,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+7438, libc.VaList(bp, (*FuncDef)(unsafe.Pointer(pDef)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7434, libc.VaList(bp, pExpr))
}
}
}
@@ -82101,7 +82738,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) { /* sqlite3.c:102775:21: */
+func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103622:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -82135,8 +82772,9 @@ 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+7454,
libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 9*4))))
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
return
}
x = YnVar(*(*I64)(unsafe.Pointer(bp + 8 /* i */)))
@@ -82162,12 +82800,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+7497, 0)
+ Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
}
}
// Recursively delete an expression tree.
-func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:102843:29: */
+func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103692: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
@@ -82197,7 +82836,7 @@ func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:10
}
}
-func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:102884:21: */
+func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103733:21: */
if p != 0 {
sqlite3ExprDeleteNN(tls, db, p)
}
@@ -82211,13 +82850,13 @@ func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:102
//
// 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) { /* sqlite3.c:102899:21: */
+func Xsqlite3ExprDeferredDelete(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103748: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) { /* sqlite3.c:102907:21: */
+func Xsqlite3ExprUnmapAndDelete(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103756:21: */
if p != 0 {
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
Xsqlite3RenameExprUnmap(tls, pParse, p)
@@ -82229,7 +82868,7 @@ func Xsqlite3ExprUnmapAndDelete(tls *libc.TLS, pParse uintptr, p uintptr) { /* s
// 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 { /* sqlite3.c:102921:12: */
+func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103770:12: */
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_TokenOnly) != U32(0) {
return int32(uintptr(0) + 16)
}
@@ -82271,7 +82910,7 @@ func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:102921:12: */
// 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 { /* sqlite3.c:102961:12: */
+func dupedExprStructSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103810:12: */
var nSize int32
// Only one flag value allowed
@@ -82293,7 +82932,7 @@ func dupedExprStructSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* sqlit
// 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 { /* sqlite3.c:102992:12: */
+func dupedExprNodeSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103841: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)))
@@ -82312,7 +82951,7 @@ func dupedExprNodeSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* sqlite3
// 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 { /* sqlite3.c:103013:12: */
+func dupedExprSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103862:12: */
var nByte int32 = 0
if p != 0 {
nByte = dupedExprNodeSize(tls, p, flags)
@@ -82329,7 +82968,7 @@ func dupedExprSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* sqlite3.c:1
// (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 { /* sqlite3.c:103032:13: */
+func exprDup(tls *libc.TLS, db uintptr, p uintptr, dupFlags int32, pzBuffer uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103881:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82439,7 +83078,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 { /* sqlite3.c:103142:21: */
+func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103991: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))
@@ -82461,7 +83100,7 @@ func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.
// 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 { /* sqlite3.c:103170:12: */
+func gatherSelectWindowsCallback(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104019: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))
@@ -82471,14 +83110,14 @@ func gatherSelectWindowsCallback(tls *libc.TLS, pWalker uintptr, pExpr uintptr)
return WRC_Continue
}
-func gatherSelectWindowsSelectCallback(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:103181:12: */
+func gatherSelectWindowsSelectCallback(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104030:12: */
if p == *(*uintptr)(unsafe.Pointer(pWalker + 40)) {
return WRC_Continue
}
return WRC_Prune
}
-func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* sqlite3.c:103184:13: */
+func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104033:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -82511,7 +83150,7 @@ func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* sqlite3.c:103184:13: */
// 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 { /* sqlite3.c:103213:21: */
+func Xsqlite3ExprDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104062:21: */
if p != 0 {
return exprDup(tls, db, p, flags, uintptr(0))
@@ -82519,7 +83158,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 { /* sqlite3.c:103217:25: */
+func Xsqlite3ExprListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104066:25: */
var pNew uintptr
var pItem uintptr
var pOldItem uintptr
@@ -82588,7 +83227,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 { /* sqlite3.c:103272:24: */
+func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104121:24: */
var pNew uintptr
var i int32
var nByte int32
@@ -82641,7 +83280,7 @@ func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintp
return pNew
}
-func Xsqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:103316:23: */
+func Xsqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104165:23: */
var pNew uintptr
var i int32
@@ -82670,7 +83309,7 @@ func Xsqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite
return pNew
}
-func Xsqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) uintptr { /* sqlite3.c:103340:23: */
+func Xsqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104189:23: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82736,9 +83375,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{} /* sqlite3.c:103411:35 */
+var zeroItem = ExprList_item{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104260:35 */
-func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr { /* sqlite3.c:103412:41: */
+func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104261:41: */
var pItem uintptr
var pList uintptr
@@ -82755,7 +83394,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 { /* sqlite3.c:103431:41: */
+func Xsqlite3ExprListAppendGrow(tls *libc.TLS, db uintptr, pList uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104280:41: */
var pItem uintptr
var pNew uintptr
*(*int32)(unsafe.Pointer(pList + 4)) *= 2
@@ -82774,7 +83413,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 { /* sqlite3.c:103453:25: */
+func Xsqlite3ExprListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104302:25: */
var pItem uintptr
if pList == uintptr(0) {
return Xsqlite3ExprListAppendNew(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -82797,7 +83436,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 { /* sqlite3.c:103482:25: */
+func Xsqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr, pColumns uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104331:25: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -82835,7 +83474,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+7520,
libc.VaList(bp, (*IdList)(unsafe.Pointer(pColumns)).FnId, n))
goto vector_append_error
__3:
@@ -82894,7 +83533,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) { /* sqlite3.c:103544:21: */
+func Xsqlite3ExprListSetSortOrder(tls *libc.TLS, p uintptr, iSortOrder int32, eNulls int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104393:21: */
var pItem uintptr
if p == uintptr(0) {
return
@@ -82921,7 +83560,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) { /* sqlite3.c:103582:21: */
+func Xsqlite3ExprListSetName(tls *libc.TLS, pParse uintptr, pList uintptr, pName uintptr, dequote int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104431:21: */
if pList != 0 {
var pItem uintptr
@@ -82947,7 +83586,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) { /* sqlite3.c:103617:21: */
+func Xsqlite3ExprListSetSpan(tls *libc.TLS, pParse uintptr, pList uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104466:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if pList != 0 {
@@ -82962,23 +83601,23 @@ func Xsqlite3ExprListSetSpan(tls *libc.TLS, pParse uintptr, pList uintptr, zStar
// 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) { /* sqlite3.c:103639:21: */
+func Xsqlite3ExprListCheckLength(tls *libc.TLS, pParse uintptr, pEList uintptr, zObject uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104488: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+7550, libc.VaList(bp, zObject))
}
}
// Delete an entire expression list.
-func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:103655:29: */
+func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104504:29: */
var i int32 = (*ExprList)(unsafe.Pointer(pList)).FnExpr
var pItem uintptr = pList + 8 /* &.a */
- for ok := true; ok; ok = libc.PreDecInt32(&i, 1) > 0 {
+ for __ccgo := true; __ccgo; __ccgo = libc.PreDecInt32(&i, 1) > 0 {
Xsqlite3ExprDelete(tls, db, (*ExprList_item)(unsafe.Pointer(pItem)).FpExpr)
Xsqlite3DbFree(tls, db, (*ExprList_item)(unsafe.Pointer(pItem)).FzEName)
pItem += 32
@@ -82986,7 +83625,7 @@ func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:1
Xsqlite3DbFreeNN(tls, db, pList)
}
-func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:103666:21: */
+func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104515:21: */
if pList != 0 {
exprListDeleteNN(tls, db, pList)
}
@@ -82994,7 +83633,7 @@ func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlit
// Return the bitwise-OR of all Expr.flags fields in the given
// ExprList.
-func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* sqlite3.c:103674:20: */
+func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104523:20: */
var i int32
var m U32 = U32(0)
@@ -83011,7 +83650,7 @@ func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* sqlite3.c:1036
// pWalker->eCode to zero and abort.
//
// This callback is used by multiple expression walkers.
-func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int32 { /* sqlite3.c:103693:20: */
+func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104542:20: */
_ = NotUsed
(*Walker)(unsafe.Pointer(pWalker)).FeCode = U16(0)
return WRC_Abort
@@ -83023,11 +83662,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 { /* sqlite3.c:103707:20: */
- if Xsqlite3StrICmp(tls, zIn, ts+6620) == 0 {
+func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104556:20: */
+ if Xsqlite3StrICmp(tls, zIn, ts+6627) == 0 {
return U32(EP_IsTrue)
}
- if Xsqlite3StrICmp(tls, zIn, ts+6625) == 0 {
+ if Xsqlite3StrICmp(tls, zIn, ts+6632) == 0 {
return U32(EP_IsFalse)
}
return U32(0)
@@ -83036,7 +83675,7 @@ func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* sqlite3.c:103707
// 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 { /* sqlite3.c:103719:20: */
+func Xsqlite3ExprIdToTrueFalse(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104568:20: */
var v U32
if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Quoted|EP_IntValue) != U32(0)) &&
@@ -83050,7 +83689,7 @@ func Xsqlite3ExprIdToTrueFalse(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:103736:20: */
+func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104585:20: */
pExpr = Xsqlite3ExprSkipCollate(tls, pExpr)
return libc.Bool32(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 8)) + 4))) == 0)
@@ -83067,7 +83706,7 @@ func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:1
// (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 { /* sqlite3.c:103758:21: */
+func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104607: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)
@@ -83113,7 +83752,7 @@ func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* sqli
// 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 { /* sqlite3.c:103799:12: */
+func exprNodeIsConstant(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104648: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
@@ -83188,7 +83827,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 { /* sqlite3.c:103871:12: */
+func exprIsConst(tls *libc.TLS, p uintptr, initFlag int32, iCur int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104720:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -83212,7 +83851,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 { /* sqlite3.c:103892:20: */
+func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104741:20: */
return exprIsConst(tls, p, 1, 0)
}
@@ -83227,7 +83866,7 @@ func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:10389
// 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 { /* sqlite3.c:103909:20: */
+func Xsqlite3ExprIsConstantNotJoin(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104758:20: */
return exprIsConst(tls, p, 2, 0)
}
@@ -83235,12 +83874,48 @@ func Xsqlite3ExprIsConstantNotJoin(tls *libc.TLS, p uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:103919:20: */
+func Xsqlite3ExprIsTableConstant(tls *libc.TLS, p uintptr, iCur int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104768: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:
+//
+// (1) pExpr cannot refer to any table other than pSrc->iCursor.
+//
+// (2) pExpr cannot use subqueries or non-deterministic functions.
+//
+// (*) ** Not applicable to this branch **
+//
+// (4) If pSrc is the right operand of a LEFT JOIN, then...
+// (4a) pExpr must come from an ON clause..
+// (4b) and specifically the ON clause associated with the LEFT JOIN.
+//
+// (5) If pSrc is not the right operand of a LEFT JOIN or the left
+// operand of a RIGHT JOIN, then pExpr must be from the WHERE
+// clause, not an ON clause.
+func Xsqlite3ExprIsTableConstraint(tls *libc.TLS, pExpr uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104794:20: */
+ if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LEFT != 0 {
+ if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != 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) {
+ return 0
+ } // rule (5)
+ }
+ return Xsqlite3ExprIsTableConstant(tls, pExpr, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor) // rules (1), (2)
+}
+
// sqlite3WalkExpr() callback used by sqlite3ExprIsConstantOrGroupBy().
-func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:103927:12: */
+func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104808:12: */
var pGroupBy uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var i int32
@@ -83282,7 +83957,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 { /* sqlite3.c:103971:20: */
+func Xsqlite3ExprIsConstantOrGroupBy(tls *libc.TLS, pParse uintptr, p uintptr, pGroupBy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104852:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -83318,7 +83993,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 { /* sqlite3.c:104003:20: */
+func Xsqlite3ExprIsConstantOrFunction(tls *libc.TLS, p uintptr, isInit U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104884:20: */
return exprIsConst(tls, p, 4+int32(isInit), 0)
}
@@ -83327,7 +84002,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 { /* sqlite3.c:104032:20: */
+func Xsqlite3ExprIsInteger(tls *libc.TLS, p uintptr, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104913:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -83379,7 +84054,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 { /* sqlite3.c:104078:20: */
+func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104959:20: */
var op U8
for int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UPLUS || int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UMINUS {
@@ -83418,7 +84093,7 @@ func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:104078
// 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 { /* sqlite3.c:104115:20: */
+func Xsqlite3ExprNeedsNoAffinityChange(tls *libc.TLS, p uintptr, aff int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104996:20: */
var op U8
var unaryMinus int32 = 0
if int32(aff) == SQLITE_AFF_BLOB {
@@ -83471,14 +84146,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 { /* sqlite3.c:104151:20: */
- if Xsqlite3StrICmp(tls, z, ts+7576) == 0 {
+func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105032:20: */
+ if Xsqlite3StrICmp(tls, z, ts+7573) == 0 {
return 1
}
- if Xsqlite3StrICmp(tls, z, ts+7584) == 0 {
+ if Xsqlite3StrICmp(tls, z, ts+7581) == 0 {
return 1
}
- if Xsqlite3StrICmp(tls, z, ts+7590) == 0 {
+ if Xsqlite3StrICmp(tls, z, ts+7587) == 0 {
return 1
}
return 0
@@ -83489,7 +84164,7 @@ func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:104151:20: *
// 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 { /* sqlite3.c:104166:15: */
+func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105047:15: */
var p uintptr
var pSrc uintptr
var pEList uintptr
@@ -83547,7 +84222,7 @@ func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* sqlite3.c:10416
// 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) { /* sqlite3.c:104211:13: */
+func sqlite3SetHasNullFlag(tls *libc.TLS, v uintptr, iCur int32, regHasNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105092:13: */
var addr1 int32
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regHasNull)
addr1 = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, iCur)
@@ -83559,7 +84234,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 { /* sqlite3.c:104228:12: */
+func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105109:12: */
var pLHS uintptr
var res int32
@@ -83648,7 +84323,7 @@ func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* sqlite3.c:104
// 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 { /* sqlite3.c:104321:20: */
+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: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -83706,7 +84381,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+7591, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
Xsqlite3VdbeJumpHere(tls, v, iAddr)
} else {
var pIdx uintptr // Iterator variable
@@ -83797,7 +84472,7 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32,
if colUsed == Bitmask(uint64(1))<<nExpr-uint64(1) {
// If we reach this point, that means the index pIdx is usable
var iAddr int32 = Xsqlite3VdbeAddOp0(tls, v, OP_Once)
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7641, libc.VaList(bp+8, (*Index)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7638, libc.VaList(bp+8, (*Index)(unsafe.Pointer(pIdx)).FzName))
Xsqlite3VdbeAddOp3(tls, v, OP_OpenRead, iTab, int32((*Index)(unsafe.Pointer(pIdx)).Ftnum), iDb)
Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pIdx)
@@ -83866,7 +84541,7 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32,
//
// It is the responsibility of the caller to ensure that the returned
// string is eventually freed using sqlite3DbFree().
-func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* sqlite3.c:104545:13: */
+func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105425:13: */
var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
var nVal int32 = Xsqlite3ExprVectorSize(tls, pLeft)
var pSelect uintptr
@@ -83898,12 +84573,12 @@ func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* s
// message of the form:
//
// "sub-select returns N columns - expected M"
-func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpect int32) { /* sqlite3.c:104577:21: */
+func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpect int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105457:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
- var zFmt uintptr = ts + 7672 /* "sub-select retur..." */
+ var zFmt uintptr = ts + 7669 /* "sub-select retur..." */
Xsqlite3ErrorMsg(tls, pParse, zFmt, libc.VaList(bp, nActual, nExpect))
}
}
@@ -83917,11 +84592,11 @@ func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpec
// Or, if it is a regular scalar vector:
//
// "row value misused"
-func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* sqlite3.c:104596:21: */
+func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105476:21: */
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_xIsSelect) != U32(0) {
Xsqlite3SubselectError(tls, pParse, (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FpEList)).FnExpr, 1)
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+6398, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6405, 0)
}
}
@@ -83945,7 +84620,7 @@ func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* s
// if either column has NUMERIC or INTEGER affinity. If neither
// 'x' nor the SELECT... statement are columns, then numeric affinity
// is used.
-func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int32) { /* sqlite3.c:104630:21: */
+func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105510:21: */
bp := tls.Alloc(65)
defer tls.Free(65)
@@ -83974,7 +84649,7 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subrtn) != U32(0) {
addrOnce = Xsqlite3VdbeAddOp0(tls, v, OP_Once)
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_xIsSelect) != U32(0) {
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7716, libc.VaList(bp, (*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7713, libc.VaList(bp, (*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId))
}
Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)),
@@ -84012,11 +84687,11 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
var pSelect uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 32))
var pEList uintptr = (*Select)(unsafe.Pointer(pSelect)).FpEList
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+7739, libc.VaList(bp+8, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+7736, libc.VaList(bp+8, func() uintptr {
if addrOnce != 0 {
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
- return ts + 7758 /* "CORRELATED " */
+ return ts + 7755 /* "CORRELATED " */
}(), (*Select)(unsafe.Pointer(pSelect)).FselId))
// If the LHS and RHS of the IN operator do not match, that
// error will have been caught long before we reach this point.
@@ -84140,7 +84815,7 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
// the result is stored in a contiguous array of registers and the
// return value is the register of the left-most result column.
// Return 0 if an error occurs.
-func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* sqlite3.c:104825:20: */
+func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105705:20: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -84163,7 +84838,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 {
// If this routine has already been coded, then invoke it as a
// subroutine.
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subrtn) != U32(0) {
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7770, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7767, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)),
*(*int32)(unsafe.Pointer(pExpr + 64)))
@@ -84198,11 +84873,11 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 {
//
// In both cases, the query is augmented with "LIMIT 1". Any
// preexisting limit is discarded in place of the new LIMIT 1.
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+7788, libc.VaList(bp+8, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+7785, libc.VaList(bp+8, func() uintptr {
if addrOnce != 0 {
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
- return ts + 7758 /* "CORRELATED " */
+ return ts + 7755 /* "CORRELATED " */
}(), (*Select)(unsafe.Pointer(pSel)).FselId))
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_SELECT {
nReg = (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSel)).FpEList)).FnExpr
@@ -84226,7 +84901,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 {
// The subquery already has a limit. If the pre-existing limit is X
// then make the new limit X<>0 so that the new limit is either 1 or 0
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
- pLimit = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7402)
+ pLimit = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7398)
if pLimit != 0 {
(*Expr)(unsafe.Pointer(pLimit)).FaffExpr = int8(SQLITE_AFF_NUMERIC)
pLimit = Xsqlite3PExpr(tls, pParse, TK_NE,
@@ -84236,15 +84911,13 @@ 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+7806)
(*Select)(unsafe.Pointer(pSel)).FpLimit = Xsqlite3PExpr(tls, pParse, TK_LIMIT, pLimit, uintptr(0))
}
(*Select)(unsafe.Pointer(pSel)).FiLimit = 0
if Xsqlite3Select(tls, pParse, pSel, bp+24) != 0 {
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
- (*Expr)(unsafe.Pointer(pExpr)).Fop2 = (*Expr)(unsafe.Pointer(pExpr)).Fop
- (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_ERROR)
- }
+ (*Expr)(unsafe.Pointer(pExpr)).Fop2 = (*Expr)(unsafe.Pointer(pExpr)).Fop
+ (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_ERROR)
return 0
}
(*Expr)(unsafe.Pointer(pExpr)).FiTable = libc.AssignInt32(&rReg, (*SelectDest)(unsafe.Pointer(bp+24 /* &dest */)).FiSDParm)
@@ -84265,7 +84938,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 { /* sqlite3.c:104949:20: */
+func Xsqlite3ExprCheckIN(tls *libc.TLS, pParse uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105827: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 {
@@ -84302,7 +84975,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) { /* sqlite3.c:104990:13: */
+func sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFalse int32, destIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105868:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -84527,44 +85200,38 @@ __20:
destStep2 = libc.AssignInt32(&destStep6, Xsqlite3VdbeMakeLabel(tls, pParse))
__21:
;
- if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
- goto __22
- }
- goto sqlite3ExprCodeIN_finished
-__22:
- ;
i = 0
-__23:
+__22:
if !(i < nVector) {
- goto __25
+ goto __24
}
p = Xsqlite3VectorFieldSubexpr(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft, i)
- if !((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0) {
- goto __26
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
+ goto __25
}
goto sqlite3ExprCodeIN_oom_error
-__26:
+__25:
;
if !(Xsqlite3ExprCanBeNull(tls, p) != 0) {
- goto __27
+ goto __26
}
Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, rLhs+i, destStep2)
-__27:
+__26:
;
+ goto __23
+__23:
+ i++
+ goto __22
goto __24
__24:
- i++
- goto __23
- goto __25
-__25:
;
// Step 3. The LHS is now known to be non-NULL. Do the binary search
// of the RHS using the LHS as a probe. If found, the result is
// true.
if !(eType == IN_INDEX_ROWID) {
- goto __28
+ goto __27
}
// In this case, the RHS is the ROWID of table b-tree and so we also
// know that the RHS is non-NULL. Hence, we combine steps 3 and 4
@@ -84572,41 +85239,41 @@ __25:
Xsqlite3VdbeAddOp3(tls, v, OP_SeekRowid, *(*int32)(unsafe.Pointer(bp + 4 /* iTab */)), destIfFalse, rLhs)
addrTruthOp = Xsqlite3VdbeAddOp0(tls, v, OP_Goto) // Return True
- goto __29
-__28:
+ goto __28
+__27:
Xsqlite3VdbeAddOp4(tls, v, OP_Affinity, rLhs, nVector, 0, zAff, nVector)
if !(destIfFalse == destIfNull) {
- goto __30
+ goto __29
}
// Combine Step 3 and Step 5 into a single opcode
Xsqlite3VdbeAddOp4Int(tls, v, OP_NotFound, *(*int32)(unsafe.Pointer(bp + 4 /* iTab */)), destIfFalse,
rLhs, nVector)
goto sqlite3ExprCodeIN_finished
-__30:
+__29:
;
// Ordinary Step 3, for the case where FALSE and NULL are distinct
addrTruthOp = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, *(*int32)(unsafe.Pointer(bp + 4 /* iTab */)), 0,
rLhs, nVector)
-__29:
+__28:
;
// Step 4. If the RHS is known to be non-NULL and we did not find
// an match on the search above, then the result must be FALSE.
if !(*(*int32)(unsafe.Pointer(bp)) != 0 && nVector == 1) {
- goto __31
+ goto __30
}
Xsqlite3VdbeAddOp2(tls, v, OP_NotNull, *(*int32)(unsafe.Pointer(bp /* rRhsHasNull */)), destIfFalse)
-__31:
+__30:
;
// Step 5. If we do not care about the difference between NULL and
// FALSE, then just return false.
if !(destIfFalse == destIfNull) {
- goto __32
+ goto __31
}
Xsqlite3VdbeGoto(tls, v, destIfFalse)
-__32:
+__31:
;
// Step 6: Loop through rows of the RHS. Compare each row to the LHS.
@@ -84616,28 +85283,28 @@ __32:
// For a scalar LHS, it is sufficient to check just the first row
// of the RHS.
if !(destStep6 != 0) {
- goto __33
+ goto __32
}
Xsqlite3VdbeResolveLabel(tls, v, destStep6)
-__33:
+__32:
;
addrTop = Xsqlite3VdbeAddOp2(tls, v, OP_Rewind, *(*int32)(unsafe.Pointer(bp + 4 /* iTab */)), destIfFalse)
if !(nVector > 1) {
- goto __34
+ goto __33
}
destNotNull = Xsqlite3VdbeMakeLabel(tls, pParse)
- goto __35
-__34:
+ goto __34
+__33:
// For nVector==1, combine steps 6 and 7 by immediately returning
// FALSE if the first comparison is not NULL
destNotNull = destIfFalse
-__35:
+__34:
;
i = 0
-__36:
+__35:
if !(i < nVector) {
- goto __38
+ goto __37
}
r3 = Xsqlite3GetTempReg(tls, pParse)
p1 = Xsqlite3VectorFieldSubexpr(tls, pLeft, i)
@@ -84647,16 +85314,16 @@ __36:
pColl1, -2)
Xsqlite3ReleaseTempReg(tls, pParse, r3)
+ goto __36
+__36:
+ i++
+ goto __35
goto __37
__37:
- i++
- goto __36
- goto __38
-__38:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Goto, 0, destIfNull)
if !(nVector > 1) {
- goto __39
+ goto __38
}
Xsqlite3VdbeResolveLabel(tls, v, destNotNull)
Xsqlite3VdbeAddOp2(tls, v, OP_Next, *(*int32)(unsafe.Pointer(bp + 4 /* iTab */)), addrTop+1)
@@ -84664,7 +85331,7 @@ __38:
// Step 7: If we reach this point, we know that the result must
// be false.
Xsqlite3VdbeAddOp2(tls, v, OP_Goto, 0, destIfFalse)
-__39:
+__38:
;
// Jumps here in order to return true.
@@ -84672,10 +85339,10 @@ __39:
sqlite3ExprCodeIN_finished:
if !(rLhs != rLhsOrig) {
- goto __40
+ goto __39
}
Xsqlite3ReleaseTempReg(tls, pParse, rLhs)
-__40:
+__39:
;
sqlite3ExprCodeIN_oom_error:
@@ -84689,7 +85356,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) { /* sqlite3.c:105249:13: */
+func codeReal(tls *libc.TLS, v uintptr, z uintptr, negateFlag int32, iMem int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106126:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -84709,7 +85376,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) { /* sqlite3.c:105267:13: */
+func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iMem int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106144:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -84729,13 +85396,14 @@ 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, libc.VaList(bp, func() uintptr {
- if negFlag != 0 {
- return ts + 4855 /* "-" */
- }
- return ts + 1546 /* "" */
- }(), z))
+ if Xsqlite3_strnicmp(tls, z, ts+7808, 2) == 0 {
+ Xsqlite3ErrorMsg(tls, pParse, ts+7811,
+ libc.VaList(bp, func() uintptr {
+ if negFlag != 0 {
+ return ts + 4864 /* "-" */
+ }
+ return ts + 1515 /* "" */
+ }(), pExpr))
} else {
codeReal(tls, v, z, negFlag, iMem)
}
@@ -84754,7 +85422,7 @@ func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iM
// 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) { /* sqlite3.c:105304:21: */
+func Xsqlite3ExprCodeLoadIndexColumn(tls *libc.TLS, pParse uintptr, pIdx uintptr, iTabCur int32, iIdxCol int32, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106182:21: */
var iTabCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iIdxCol)*2))
if int32(iTabCol) == -2 {
@@ -84769,7 +85437,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) { /* sqlite3.c:105329:21: */
+func Xsqlite3ExprCodeGeneratedColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106207:21: */
var iAddr int32
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -84788,7 +85456,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) { /* sqlite3.c:105355:21: */
+func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iTabCur int32, iCol int32, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106233:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -84809,7 +85477,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+7840,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7838,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
} else {
var savedSelfTab int32 = (*Parse)(unsafe.Pointer(pParse)).FiSelfTab
@@ -84839,7 +85507,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 { /* sqlite3.c:105413:20: */
+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: */
Xsqlite3ExprCodeGetColumnOfTable(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, pTab, iTable, iColumn, iReg)
if p5 != 0 {
@@ -84853,14 +85521,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) { /* sqlite3.c:105434:21: */
+func Xsqlite3ExprCodeMove(tls *libc.TLS, pParse uintptr, iFrom int32, iTo int32, nReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106312: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) { /* sqlite3.c:105443:13: */
+func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106321:13: */
var p uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
if p == uintptr(0) {
return
@@ -84879,7 +85547,7 @@ func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* sqlite3.c:105
// 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 { /* sqlite3.c:105462:12: */
+func exprCodeVector(tls *libc.TLS, pParse uintptr, p uintptr, piFreeable uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106340:12: */
var iResult int32
var nResult int32 = Xsqlite3ExprVectorSize(tls, p)
if nResult == 1 {
@@ -84903,7 +85571,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) { /* sqlite3.c:105492:13: */
+func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106370: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
}
@@ -84911,7 +85579,7 @@ func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* sqlite3.c:105492:13:
// 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 { /* sqlite3.c:105502:12: */
+func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncId int32, target int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106380:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -85009,14 +85677,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 + 7870, ts + 7875, ts + 7880, ts + 6118, ts + 6113}
+ *(*[5]uintptr)(unsafe.Pointer(bp + 72 /* azAff */)) = [5]uintptr{ts + 7868, ts + 7873, ts + 7878, ts + 6123, ts + 6118}
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 + 7888 /* "none" */
+ return ts + 7886 /* "none" */
}
return *(*uintptr)(unsafe.Pointer(bp + 72 /* &azAff[0] */ + uintptr(int32(aff)-SQLITE_AFF_BLOB)*8))
}())
@@ -85036,7 +85704,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 { /* sqlite3.c:105618:20: */
+func Xsqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106496:20: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -85391,7 +86059,7 @@ __69:
if !(int32((*Column)(unsafe.Pointer(pCol1)).FcolFlags)&COLFLAG_BUSY != 0) {
goto __72
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7840,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7838,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol1)).FzCnName))
return 0
__72:
@@ -85645,7 +86313,7 @@ __41:
goto __87
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7893, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7891, 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
@@ -85687,7 +86355,7 @@ __90:
if !(pDef == uintptr(0) || (*FuncDef)(unsafe.Pointer(pDef)).FxFinalize != uintptr(0)) {
goto __91
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7919, libc.VaList(bp+16, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7918, libc.VaList(bp+16, pExpr))
goto __3
__91:
;
@@ -85883,7 +86551,7 @@ __122:
if !((*Expr)(unsafe.Pointer(pExpr)).FiTable != n1) {
goto __123
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7523,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7520,
libc.VaList(bp+24, (*Expr)(unsafe.Pointer(pExpr)).FiTable, n1))
__123:
;
@@ -85942,7 +86610,7 @@ __124:
goto __3
__52:
- Xsqlite3ErrorMsg(tls, pParse, ts+6398, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6405, 0)
goto __3
// TK_IF_NULL_ROW Expr nodes are inserted ahead of expressions
@@ -86105,7 +86773,7 @@ __3:
return inReg
}
-var zAff = *(*[8]int8)(unsafe.Pointer(ts + 7992)) /* sqlite3.c:105685:29 */
+var zAff = *(*[8]int8)(unsafe.Pointer(ts + 7992)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106563:29 */
// Generate code that will evaluate expression pExpr just one time
// per prepared statement execution.
@@ -86122,7 +86790,7 @@ var zAff = *(*[8]int8)(unsafe.Pointer(ts + 7992)) /* sqlite3.c:105685:29 */
// 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 { /* sqlite3.c:106392:20: */
+func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, regDest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107270:20: */
var p uintptr
p = (*Parse)(unsafe.Pointer(pParse)).FpConstExpr
@@ -86191,7 +86859,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 { /* sqlite3.c:106449:20: */
+func Xsqlite3ExprCodeTemp(tls *libc.TLS, pParse uintptr, pExpr uintptr, pReg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107327:20: */
var r2 int32
pExpr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 &&
@@ -86216,7 +86884,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) { /* sqlite3.c:106477:21: */
+func Xsqlite3ExprCode(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107355:21: */
var inReg int32
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe == uintptr(0) {
@@ -86237,7 +86905,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) { /* sqlite3.c:106501:21: */
+func Xsqlite3ExprCodeCopy(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107379:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
@@ -86250,7 +86918,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) { /* sqlite3.c:106514:21: */
+func Xsqlite3ExprCodeFactorable(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107392:21: */
if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 && Xsqlite3ExprIsConstantNotJoin(tls, pExpr) != 0 {
Xsqlite3ExprCodeRunJustOnce(tls, pParse, pExpr, target)
} else {
@@ -86276,7 +86944,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 { /* sqlite3.c:106542:20: */
+func Xsqlite3ExprCodeExprList(tls *libc.TLS, pParse uintptr, pList uintptr, target int32, srcReg int32, flags U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107420:20: */
var pItem uintptr
var i int32
var j int32
@@ -86358,7 +87026,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) { /* sqlite3.c:106617:13: */
+func exprCodeBetween(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, xJump uintptr, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107495:13: */
bp := tls.Alloc(220)
defer tls.Free(220)
@@ -86421,7 +87089,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) { /* sqlite3.c:106689:21: */
+func Xsqlite3ExprIfTrue(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107567:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -86651,7 +87319,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) { /* sqlite3.c:106831:21: */
+func Xsqlite3ExprIfFalse(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107709:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -86899,7 +87567,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) { /* sqlite3.c:107003:21: */
+func Xsqlite3ExprIfFalseDup(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107881: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 {
@@ -86919,7 +87587,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 { /* sqlite3.c:107025:12: */
+func exprCompareVariable(tls *libc.TLS, pParse uintptr, pVar uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107903:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -86973,7 +87641,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 { /* sqlite3.c:107081:20: */
+func Xsqlite3ExprCompare(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107959:20: */
var combinedFlags U32
if pA == uintptr(0) || pB == uintptr(0) {
if pB == pA {
@@ -87077,7 +87745,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 { /* sqlite3.c:107177:20: */
+func Xsqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108055:20: */
var i int32
if pA == uintptr(0) && pB == uintptr(0) {
return 0
@@ -87104,7 +87772,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 { /* sqlite3.c:107196:20: */
+func Xsqlite3ExprCompareSkip(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108074:20: */
return Xsqlite3ExprCompare(tls, uintptr(0),
Xsqlite3ExprSkipCollateAndLikely(tls, pA),
Xsqlite3ExprSkipCollateAndLikely(tls, pB),
@@ -87115,7 +87783,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 { /* sqlite3.c:107209:12: */
+func exprImpliesNotNull(tls *libc.TLS, pParse uintptr, p uintptr, pNN uintptr, iTab int32, seenNot int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108087:12: */
if Xsqlite3ExprCompare(tls, pParse, p, pNN, iTab) == 0 {
return libc.Bool32(int32((*Expr)(unsafe.Pointer(pNN)).Fop) != TK_NULL)
@@ -87241,7 +87909,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 { /* sqlite3.c:107306:20: */
+func Xsqlite3ExprImpliesExpr(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108184:20: */
if Xsqlite3ExprCompare(tls, pParse, pE1, pE2, iTab) == 0 {
return 1
}
@@ -87264,7 +87932,7 @@ 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 { /* sqlite3.c:107338:12: */
+func impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108216:12: */
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) {
return WRC_Prune
@@ -87373,7 +88041,7 @@ func impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /*
// 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 { /* sqlite3.c:107447:20: */
+func Xsqlite3ExprImpliesNonNullRow(tls *libc.TLS, p uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108325:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -87407,7 +88075,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 { /* sqlite3.c:107485:12: */
+func exprIdxCover(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108363: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 {
@@ -87425,7 +88093,7 @@ func exprIdxCover(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqli
// 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 { /* sqlite3.c:107506:20: */
+func Xsqlite3ExprCoveredByIndex(tls *libc.TLS, pExpr uintptr, iCur int32, pIdx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108384:20: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -87450,7 +88118,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 { /* sqlite3.c:107541:12: */
+func selectRefEnter(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108419:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
var i I64
@@ -87488,7 +88156,7 @@ __3:
return WRC_Continue
}
-func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:107561:13: */
+func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108439:13: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
if (*RefSrcList)(unsafe.Pointer(p)).FnExclude != 0 {
@@ -87504,7 +88172,7 @@ func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite
//
// 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 { /* sqlite3.c:107578:12: */
+func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108456:12: */
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN ||
int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_COLUMN {
var i int32
@@ -87544,7 +88212,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 { /* sqlite3.c:107615:20: */
+func Xsqlite3ReferencesSrcList(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSrcList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108493:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -87593,7 +88261,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 { /* sqlite3.c:107657:12: */
+func agginfoPersistExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108535: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
@@ -87626,7 +88294,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) { /* sqlite3.c:107693:21: */
+func Xsqlite3AggInfoPersistWalkerInit(tls *libc.TLS, pWalker uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108571: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 {
@@ -87639,7 +88307,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 { /* sqlite3.c:107704:12: */
+func addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108582:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -87656,7 +88324,7 @@ func addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:107720:12: */
+func addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108598:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -87674,7 +88342,7 @@ func addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:107737:12: */
+func analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108615:12: */
var i int32
var pNC uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pParse uintptr = (*NameContext)(unsafe.Pointer(pNC)).FpParse
@@ -87865,7 +88533,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) { /* sqlite3.c:107875:21: */
+func Xsqlite3ExprAnalyzeAggregates(tls *libc.TLS, pNC uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108753:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -87891,7 +88559,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) { /* sqlite3.c:107893:21: */
+func Xsqlite3ExprAnalyzeAggList(tls *libc.TLS, pNC uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108771:21: */
var pItem uintptr
var i int32
if pList != 0 {
@@ -87916,7 +88584,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 { /* sqlite3.c:107906:20: */
+func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108784:20: */
if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) == 0 {
return libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
}
@@ -87925,7 +88593,7 @@ func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:1079
// Deallocate a register, making available for reuse for some other
// purpose.
-func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* sqlite3.c:107917:21: */
+func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108795:21: */
if iReg != 0 {
if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) < int32(uint64(unsafe.Sizeof([8]int32{}))/uint64(unsafe.Sizeof(int32(0)))) {
@@ -87935,7 +88603,7 @@ func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* sqli
}
// Allocate or deallocate a block of nReg consecutive registers.
-func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /* sqlite3.c:107929:20: */
+func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108807:20: */
var i int32
var n int32
if nReg == 1 {
@@ -87953,7 +88621,7 @@ func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /*
return i
}
-func Xsqlite3ReleaseTempRange(tls *libc.TLS, pParse uintptr, iReg int32, nReg int32) { /* sqlite3.c:107943:21: */
+func Xsqlite3ReleaseTempRange(tls *libc.TLS, pParse uintptr, iReg int32, nReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108821:21: */
if nReg == 1 {
Xsqlite3ReleaseTempReg(tls, pParse, iReg)
return
@@ -87971,7 +88639,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) { /* sqlite3.c:107963:21: */
+func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108841:21: */
(*Parse)(unsafe.Pointer(pParse)).FnTempReg = U8(0)
(*Parse)(unsafe.Pointer(pParse)).FnRangeReg = 0
}
@@ -88005,7 +88673,7 @@ func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:107
// 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 { /* sqlite3.c:108023:12: */
+func isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108901:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -88024,7 +88692,7 @@ func isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* sq
// 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) { /* sqlite3.c:108045:13: */
+func renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32, zWhen uintptr, bNoDQS int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108923:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -88048,7 +88716,7 @@ 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) { /* sqlite3.c:108082:13: */
+func renameFixQuotes(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108960:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -88064,7 +88732,7 @@ func renameFixQuotes(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32) {
// 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) { /* sqlite3.c:108103:13: */
+func renameReloadSchema(tls *libc.TLS, pParse uintptr, iDb int32, p5 U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108981:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
if v != 0 {
Xsqlite3ChangeCookie(tls, pParse, iDb)
@@ -88077,7 +88745,7 @@ func renameReloadSchema(tls *libc.TLS, pParse uintptr, iDb int32, p5 U16) { /* s
// Generate code to implement the "ALTER TABLE xxx RENAME TO yyy"
// command.
-func Xsqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* sqlite3.c:108116:21: */
+func Xsqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108994:21: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -88262,7 +88930,7 @@ 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) { /* sqlite3.c:108285:13: */
+func sqlite3ErrorIfNotEmpty(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zErr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109163:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -88277,7 +88945,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) { /* sqlite3.c:108305:21: */
+func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109183:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -88294,9 +88962,11 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
var r1 int32 // Temporary registers
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
+
pNew = (*Parse)(unsafe.Pointer(pParse)).FpNewTable
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pNew)).FpSchema)
@@ -88421,7 +89091,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) { /* sqlite3.c:108468:21: */
+func Xsqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109348:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -88453,7 +89123,7 @@ __2:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __3
}
- Xsqlite3ErrorMsg(tls, pParse, ts+10278, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+10274, 0)
goto exit_begin_add_column
__3:
;
@@ -88462,7 +89132,7 @@ __3:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
goto __4
}
- Xsqlite3ErrorMsg(tls, pParse, ts+10312, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+10308, 0)
goto exit_begin_add_column
__4:
;
@@ -88497,7 +89167,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+10342, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ (*Table)(unsafe.Pointer(pNew)).FzName = Xsqlite3MPrintf(tls, db, ts+10338, 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
}
@@ -88538,24 +89208,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 { /* sqlite3.c:108551:12: */
+func isRealTable(tls *libc.TLS, pParse uintptr, pTab uintptr, bDrop int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109431: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 + 10361 /* "view" */
+ zType = ts + 10357 /* "view" */
}
if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB {
- zType = ts + 10366 /* "virtual table" */
+ zType = ts + 10362 /* "virtual table" */
}
if zType != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+10380,
+ Xsqlite3ErrorMsg(tls, pParse, ts+10376,
libc.VaList(bp, func() uintptr {
if bDrop != 0 {
- return ts + 10398 /* "drop column from" */
+ return ts + 10394 /* "drop column from" */
}
- return ts + 10415 /* "rename columns o..." */
+ return ts + 10411 /* "rename columns o..." */
}(),
zType, (*Table)(unsafe.Pointer(pTab)).FzName))
return 1
@@ -88566,7 +89236,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) { /* sqlite3.c:108581:21: */
+func Xsqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld uintptr, pNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109461:21: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -88648,13 +89318,13 @@ __8:
if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
goto __10
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6233, libc.VaList(bp, zOld))
+ Xsqlite3ErrorMsg(tls, pParse, ts+10429, libc.VaList(bp, pOld))
goto exit_rename_column
__10:
;
// Ensure the schema contains no double-quoted strings
- renameTestSchema(tls, pParse, zDb, libc.Bool32(iSchema == 1), ts+1546, 0)
+ renameTestSchema(tls, pParse, zDb, libc.Bool32(iSchema == 1), ts+1515, 0)
renameFixQuotes(tls, pParse, zDb, libc.Bool32(iSchema == 1))
// Do the rename operation using a recursive UPDATE statement that
@@ -88672,14 +89342,14 @@ __11:
bQuote = int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(pNew)).Fz)))]) & 0x80
Xsqlite3NestedParse(tls, pParse,
- ts+10433,
+ ts+10450,
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+10615,
+ ts+10632,
libc.VaList(bp+72, zDb, (*Table)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote))
// Drop and reload the database schema.
@@ -88695,7 +89365,7 @@ exit_rename_column:
// The context of an ALTER TABLE RENAME COLUMN operation that gets passed
// down into the Walker.
-type RenameCtx = RenameCtx1 /* sqlite3.c:108696:26 */
+type RenameCtx = RenameCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109576:26 */
// Remember that the parser tree element pPtr was created using
// the token pToken.
@@ -88707,7 +89377,7 @@ type RenameCtx = RenameCtx1 /* sqlite3.c:108696:26 */
// 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 { /* sqlite3.c:108757:27: */
+func Xsqlite3RenameTokenMap(tls *libc.TLS, pParse uintptr, pPtr uintptr, pToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109639:27: */
var pNew uintptr
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_UNMAP {
@@ -88726,7 +89396,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) { /* sqlite3.c:108783:21: */
+func Xsqlite3RenameTokenRemap(tls *libc.TLS, pParse uintptr, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109665:21: */
var p uintptr
for p = (*Parse)(unsafe.Pointer(pParse)).FpRename; p != 0; p = (*RenameToken)(unsafe.Pointer(p)).FpNext {
@@ -88738,7 +89408,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 { /* sqlite3.c:108797:12: */
+func renameUnmapExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109679: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) {
@@ -88749,7 +89419,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) { /* sqlite3.c:108810:13: */
+func renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109692:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -88790,7 +89460,7 @@ func renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite
}
// Unmap all tokens in the IdList object passed as the second argument.
-func unmapColumnIdlistNames(tls *libc.TLS, pParse uintptr, pIdList uintptr) { /* sqlite3.c:108845:13: */
+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++ {
@@ -88800,7 +89470,7 @@ func unmapColumnIdlistNames(tls *libc.TLS, pParse uintptr, pIdList uintptr) { /*
}
// Walker callback used by sqlite3RenameExprUnmap().
-func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:108860:12: */
+func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109742:12: */
var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse
var i int32
if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
@@ -88832,7 +89502,7 @@ func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* s
}
// Remove all nodes that are part of expression pExpr from the rename list.
-func Xsqlite3RenameExprUnmap(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* sqlite3.c:108893:21: */
+func Xsqlite3RenameExprUnmap(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109775:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -88854,7 +89524,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) { /* sqlite3.c:108909:21: */
+func Xsqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109791:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -88877,7 +89547,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) { /* sqlite3.c:108928:13: */
+func renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109810:13: */
var pNext uintptr
var p uintptr
for p = pToken; p != 0; p = pNext {
@@ -88893,12 +89563,12 @@ func renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) { /* sqlite3.c:1
// 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 { /* sqlite3.c:108946:20: */
+func renameTokenFind(tls *libc.TLS, pParse uintptr, pCtx uintptr, pPtr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109828:20: */
var pp uintptr
if pPtr == uintptr(0) {
return uintptr(0)
}
- for pp = pParse + 392; *(*uintptr)(unsafe.Pointer(pp)) != 0; pp = *(*uintptr)(unsafe.Pointer(pp)) + 24 {
+ for pp = pParse + 400; *(*uintptr)(unsafe.Pointer(pp)) != 0; pp = *(*uintptr)(unsafe.Pointer(pp)) + 24 {
if (*RenameToken)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pp)))).Fp == pPtr {
var pToken uintptr = *(*uintptr)(unsafe.Pointer(pp))
if pCtx != 0 {
@@ -88916,7 +89586,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 { /* sqlite3.c:108975:12: */
+func renameColumnSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109857:12: */
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_View|SF_CopyCte) != 0 {
return WRC_Prune
@@ -88932,7 +89602,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 { /* sqlite3.c:108994:12: */
+func renameColumnExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109876: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 &&
@@ -88954,7 +89624,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 { /* sqlite3.c:109020:20: */
+func renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109902:20: */
var pBest uintptr = (*RenameCtx)(unsafe.Pointer(pCtx)).FpList
var pToken uintptr
var pp uintptr
@@ -88976,7 +89646,7 @@ func renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:1
// 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) { /* sqlite3.c:109041:13: */
+func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType uintptr, pObject uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109923:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -88984,23 +89654,23 @@ func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType ui
var zN uintptr = Xsqlite3_value_text(tls, pObject)
var zErr uintptr
- zErr = Xsqlite3_mprintf(tls, ts+10746,
+ zErr = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+10763,
libc.VaList(bp, zT, zN, func() uintptr {
if *(*int8)(unsafe.Pointer(zWhen)) != 0 {
- return ts + 10769 /* " " */
+ return ts + 10786 /* " " */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), zWhen,
(*Parse)(unsafe.Pointer(pParse)).FzErrMsg))
Xsqlite3_result_error(tls, pCtx, zErr, -1)
- Xsqlite3_free(tls, zErr)
+ Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, zErr)
}
// For each name in the the expression-list pEList (i.e. each
// 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) { /* sqlite3.c:109066:13: */
+func renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList uintptr, zOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109948:13: */
if pEList != 0 {
var i int32
for i = 0; i < (*ExprList)(unsafe.Pointer(pEList)).FnExpr; i++ {
@@ -89017,7 +89687,7 @@ 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) { /* sqlite3.c:109091:13: */
+func renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdList uintptr, zOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109973:13: */
if pIdList != 0 {
var i int32
for i = 0; i < (*IdList)(unsafe.Pointer(pIdList)).FnId; i++ {
@@ -89031,40 +89701,32 @@ 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 { /* sqlite3.c:109113:12: */
- bp := tls.Alloc(8)
- defer tls.Free(8)
-
+func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uintptr, bTemp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109995:12: */
var rc int32
- *(*uintptr)(unsafe.Pointer(bp /* zErr */)) = uintptr(0)
+ Xsqlite3ParseObjectInit(tls, p, db)
+ if zSql == uintptr(0) {
+ return SQLITE_NOMEM
+ }
+ if Xsqlite3_strnicmp(tls, zSql, ts+10788, 7) != 0 {
+ return Xsqlite3CorruptError(tls, 110009)
+ }
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = func() uint8 {
if bTemp != 0 {
return uint8(1)
}
return uint8(Xsqlite3FindDbName(tls, db, zDb))
}()
-
- // Parse the SQL statement passed as the first argument. If no error
- // occurs and the parse does not result in a new table, index or
- // trigger object, the database must be corrupt.
- libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Parse{})))
(*Parse)(unsafe.Pointer(p)).FeParseMode = U8(PARSE_MODE_RENAME)
(*Parse)(unsafe.Pointer(p)).Fdb = db
(*Parse)(unsafe.Pointer(p)).FnQueryLoop = U32(1)
- if zSql != 0 {
- rc = Xsqlite3RunParser(tls, p, zSql, bp)
- } else {
- rc = SQLITE_NOMEM
- }
-
- (*Parse)(unsafe.Pointer(p)).FzErrMsg = *(*uintptr)(unsafe.Pointer(bp /* zErr */))
+ rc = Xsqlite3RunParser(tls, p, zSql)
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
rc = SQLITE_NOMEM
}
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, 109140)
+ ((*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)
}
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(0)
@@ -89078,7 +89740,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 { /* sqlite3.c:109168:12: */
+func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, zNew uintptr, bQuote int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110048:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -89098,7 +89760,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+10771, libc.VaList(bp, zNew))
+ zQuot = Xsqlite3MPrintf(tls, db, ts+10796, libc.VaList(bp, zNew))
if zQuot == uintptr(0) {
return SQLITE_NOMEM
} else {
@@ -89148,12 +89810,12 @@ 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+10777, libc.VaList(bp+8, zBuf1,
+ Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, ts+10802, 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 + 10769 /* " " */
+ return ts + 10786 /* " " */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()))
zReplace = zBuf2
nReplace = U32(Xsqlite3Strlen30(tls, zReplace))
@@ -89184,7 +89846,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 { /* sqlite3.c:109275:12: */
+func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110155:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -89282,7 +89944,7 @@ func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:10
// 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) { /* sqlite3.c:109371:13: */
+func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110251:13: */
var pStep uintptr
// Find tokens to edit in WHEN clause
@@ -89311,7 +89973,7 @@ func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* sq
// 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) { /* sqlite3.c:109402:13: */
+func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110282:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pIdx uintptr
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 {
@@ -89325,12 +89987,12 @@ func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:109402:13:
Xsqlite3DeleteTrigger(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpNewTrigger)
Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg)
renameTokenFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpRename)
- Xsqlite3ParserReset(tls, pParse)
+ Xsqlite3ParseObjectReset(tls, pParse)
}
// SQL function:
//
-// sqlite_rename_column(zSql, iCol, bQuote, zNew, zTable, zOld)
+// sqlite_rename_column(SQL,TYPE,OBJ,DB,TABLE,COL,NEWNAME,QUOTE,TEMP)
//
// 0. zSql: SQL statement to rewrite
// 1. type: Type of object ("table", "view" etc.)
@@ -89348,10 +90010,11 @@ func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:109402:13:
//
// This function is used internally by the ALTER TABLE RENAME COLUMN command.
// It is only accessible to SQL created using sqlite3NestedParse(). It is
-// not reachable from ordinary SQL passed into sqlite3_prepare().
-func renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:109442:13: */
- bp := tls.Alloc(480)
- defer tls.Free(480)
+// 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: */
+ bp := tls.Alloc(488)
+ defer tls.Free(488)
var db uintptr
// var sCtx RenameCtx at bp, 32
@@ -89365,9 +90028,9 @@ func renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintpt
var bTemp int32
var zOld uintptr
var rc int32
- // var sParse Parse at bp+32, 400
+ // var sParse Parse at bp+32, 408
- // var sWalker Walker at bp+432, 48
+ // var sWalker Walker at bp+440, 48
var pIdx uintptr
var i int32
@@ -89439,15 +90102,15 @@ __5:
rc = renameParseSql(tls, bp+32, zDb, db, zSql, bTemp)
// Find tokens that need to be replaced.
- libc.Xmemset(tls, bp+432, 0, uint64(unsafe.Sizeof(Walker{})))
- (*Walker)(unsafe.Pointer(bp + 432 /* &sWalker */)).FpParse = bp + 32 /* &sParse */
- (*Walker)(unsafe.Pointer(bp + 432 /* &sWalker */)).FxExprCallback = *(*uintptr)(unsafe.Pointer(&struct {
+ libc.Xmemset(tls, bp+440, 0, uint64(unsafe.Sizeof(Walker{})))
+ (*Walker)(unsafe.Pointer(bp + 440 /* &sWalker */)).FpParse = bp + 32 /* &sParse */
+ (*Walker)(unsafe.Pointer(bp + 440 /* &sWalker */)).FxExprCallback = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr) int32
}{renameColumnExprCb}))
- (*Walker)(unsafe.Pointer(bp + 432 /* &sWalker */)).FxSelectCallback = *(*uintptr)(unsafe.Pointer(&struct {
+ (*Walker)(unsafe.Pointer(bp + 440 /* &sWalker */)).FxSelectCallback = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr) int32
}{renameColumnSelectCb}))
- *(*uintptr)(unsafe.Pointer(bp + 432 + 40)) = bp /* &sCtx */
+ *(*uintptr)(unsafe.Pointer(bp + 440 + 40)) = bp /* &sCtx */
(*RenameCtx)(unsafe.Pointer(bp /* &sCtx */)).FpTab = pTab
if !(rc != SQLITE_OK) {
@@ -89475,7 +90138,7 @@ __6:
if !(rc == SQLITE_OK) {
goto __11
}
- Xsqlite3WalkSelect(tls, bp+432, pSelect)
+ Xsqlite3WalkSelect(tls, bp+440, pSelect)
__11:
;
if !(rc != SQLITE_OK) {
@@ -89508,13 +90171,13 @@ __15:
renameTokenFind(tls, bp+32, bp, (*Parse)(unsafe.Pointer(bp+32)).FpNewTable+52)
__16:
;
- Xsqlite3WalkExprList(tls, bp+432, (*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewTable)).FpCheck)
+ Xsqlite3WalkExprList(tls, bp+440, (*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewTable)).FpCheck)
pIdx = (*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp + 32 /* &sParse */)).FpNewTable)).FpIndex
__17:
if !(pIdx != 0) {
goto __19
}
- Xsqlite3WalkExprList(tls, bp+432, (*Index)(unsafe.Pointer(pIdx)).FaColExpr)
+ Xsqlite3WalkExprList(tls, bp+440, (*Index)(unsafe.Pointer(pIdx)).FaColExpr)
goto __18
__18:
pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext
@@ -89527,7 +90190,7 @@ __20:
if !(pIdx != 0) {
goto __22
}
- Xsqlite3WalkExprList(tls, bp+432, (*Index)(unsafe.Pointer(pIdx)).FaColExpr)
+ Xsqlite3WalkExprList(tls, bp+440, (*Index)(unsafe.Pointer(pIdx)).FaColExpr)
goto __21
__21:
pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext
@@ -89542,7 +90205,7 @@ __23:
}
pExpr = Xsqlite3ColumnExpr(tls, (*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewTable,
(*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32)).FpNewTable)).FaCol+uintptr(i)*24)
- Xsqlite3WalkExpr(tls, bp+432, pExpr)
+ Xsqlite3WalkExpr(tls, bp+440, pExpr)
goto __24
__24:
i++
@@ -89599,8 +90262,8 @@ __7:
if !((*Parse)(unsafe.Pointer(bp+32)).FpNewIndex != 0) {
goto __34
}
- Xsqlite3WalkExprList(tls, bp+432, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewIndex)).FaColExpr)
- Xsqlite3WalkExpr(tls, bp+432, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewIndex)).FpPartIdxWhere)
+ Xsqlite3WalkExprList(tls, bp+440, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewIndex)).FaColExpr)
+ Xsqlite3WalkExpr(tls, bp+440, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewIndex)).FpPartIdxWhere)
goto __35
__34:
rc = renameResolveTrigger(tls, bp+32)
@@ -89653,7 +90316,7 @@ __43:
;
// Find tokens to edit in various expressions and selects
- renameWalkTrigger(tls, bp+432, (*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewTrigger)
+ renameWalkTrigger(tls, bp+440, (*Parse)(unsafe.Pointer(bp+32 /* &sParse */)).FpNewTrigger)
__35:
;
__8:
@@ -89665,13 +90328,21 @@ renameColumnFunc_done:
if !(rc != SQLITE_OK) {
goto __44
}
- if !((*Parse)(unsafe.Pointer(bp+32)).FzErrMsg != 0) {
+ if !(rc == SQLITE_ERROR && Xsqlite3WritableSchema(tls, db) != 0) {
goto __45
}
- renameColumnParseError(tls, context, ts+1546, *(*uintptr)(unsafe.Pointer(argv + 1*8)), *(*uintptr)(unsafe.Pointer(argv + 2*8)), bp+32)
+ Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv)))
goto __46
__45:
+ if !((*Parse)(unsafe.Pointer(bp+32)).FzErrMsg != 0) {
+ goto __47
+ }
+ renameColumnParseError(tls, context, ts+1515, *(*uintptr)(unsafe.Pointer(argv + 1*8)), *(*uintptr)(unsafe.Pointer(argv + 2*8)), bp+32)
+ goto __48
+__47:
Xsqlite3_result_error_code(tls, context, rc)
+__48:
+ ;
__46:
;
__44:
@@ -89684,7 +90355,7 @@ __44:
}
// Walker expression callback used by "RENAME TABLE".
-func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:109607:12: */
+func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110490: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) &&
@@ -89695,7 +90366,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 { /* sqlite3.c:109621:12: */
+func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110504:12: */
var i int32
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
@@ -89735,9 +90406,9 @@ 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) { /* sqlite3.c:109665:13: */
- bp := tls.Alloc(536)
- defer tls.Free(536)
+func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110548:13: */
+ bp := tls.Alloc(544)
+ defer tls.Free(544)
var db uintptr = Xsqlite3_context_db_handle(tls, context)
var zDb uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv)))
@@ -89748,7 +90419,7 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
_ = NotUsed
if zInput != 0 && zOld != 0 && zNew != 0 {
- // var sParse Parse at bp+80, 400
+ // var sParse Parse at bp+80, 408
var rc int32
var bQuote int32 = 1
@@ -89783,13 +90454,13 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW {
if isLegacy == 0 {
var pSelect uintptr = *(*uintptr)(unsafe.Pointer(pTab + 64))
- // var sNC NameContext at bp+480, 56
+ // var sNC NameContext at bp+488, 56
- libc.Xmemset(tls, bp+480, 0, uint64(unsafe.Sizeof(NameContext{})))
- (*NameContext)(unsafe.Pointer(bp + 480 /* &sNC */)).FpParse = bp + 80 /* &sParse */
+ libc.Xmemset(tls, bp+488, 0, uint64(unsafe.Sizeof(NameContext{})))
+ (*NameContext)(unsafe.Pointer(bp + 488 /* &sNC */)).FpParse = bp + 80 /* &sParse */
*(*U32)(unsafe.Pointer(pSelect + 4)) &= libc.Uint32FromInt32(libc.CplInt32(SF_View))
- Xsqlite3SelectPrep(tls, bp+80, *(*uintptr)(unsafe.Pointer(pTab + 64)), bp+480)
+ Xsqlite3SelectPrep(tls, bp+80, *(*uintptr)(unsafe.Pointer(pTab + 64)), bp+488)
if (*Parse)(unsafe.Pointer(bp+80)).FnErr != 0 {
rc = (*Parse)(unsafe.Pointer(bp + 80 /* &sParse */)).Frc
} else {
@@ -89851,8 +90522,10 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
rc = renameEditSql(tls, context, bp, zInput, zNew, bQuote)
}
if rc != SQLITE_OK {
- if (*Parse)(unsafe.Pointer(bp+80)).FzErrMsg != 0 {
- renameColumnParseError(tls, context, ts+1546, *(*uintptr)(unsafe.Pointer(argv + 1*8)), *(*uintptr)(unsafe.Pointer(argv + 2*8)), bp+80)
+ if rc == SQLITE_ERROR && Xsqlite3WritableSchema(tls, db) != 0 {
+ Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv + 3*8)))
+ } else if (*Parse)(unsafe.Pointer(bp+80)).FzErrMsg != 0 {
+ renameColumnParseError(tls, context, ts+1515, *(*uintptr)(unsafe.Pointer(argv + 1*8)), *(*uintptr)(unsafe.Pointer(argv + 2*8)), bp+80)
} else {
Xsqlite3_result_error_code(tls, context, rc)
}
@@ -89867,16 +90540,17 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
return
}
-func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:109806:12: */
+func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110691: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)
}
return WRC_Continue
}
-// The implementation of an SQL scalar function that rewrites DDL statements
-// so that any string literals that use double-quotes are modified so that
-// they use single quotes.
+// SQL function: sqlite_rename_quotefix(DB,SQL)
+//
+// Rewrite the DDL statement "SQL" so that any string literals that use
+// double-quotes use single quotes instead.
//
// Two arguments must be passed:
//
@@ -89895,9 +90569,13 @@ func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 {
// returns the string:
//
// CREATE VIEW v1 AS SELECT "a", 'string' FROM t1
-func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:109836:13: */
- bp := tls.Alloc(480)
- defer tls.Free(480)
+//
+// 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: */
+ bp := tls.Alloc(488)
+ defer tls.Free(488)
var db uintptr = Xsqlite3_context_db_handle(tls, context)
var zDb uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv)))
@@ -89911,26 +90589,26 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint
_ = NotUsed
if zDb != 0 && zInput != 0 {
var rc int32
- // var sParse Parse at bp, 400
+ // var sParse Parse at bp, 408
rc = renameParseSql(tls, bp, zDb, db, zInput, 0)
if rc == SQLITE_OK {
- // var sCtx RenameCtx at bp+400, 32
+ // var sCtx RenameCtx at bp+408, 32
- // var sWalker Walker at bp+432, 48
+ // var sWalker Walker at bp+440, 48
// Walker to find tokens that need to be replaced.
- libc.Xmemset(tls, bp+400, 0, uint64(unsafe.Sizeof(RenameCtx{})))
- libc.Xmemset(tls, bp+432, 0, uint64(unsafe.Sizeof(Walker{})))
- (*Walker)(unsafe.Pointer(bp + 432 /* &sWalker */)).FpParse = bp /* &sParse */
- (*Walker)(unsafe.Pointer(bp + 432 /* &sWalker */)).FxExprCallback = *(*uintptr)(unsafe.Pointer(&struct {
+ libc.Xmemset(tls, bp+408, 0, uint64(unsafe.Sizeof(RenameCtx{})))
+ libc.Xmemset(tls, bp+440, 0, uint64(unsafe.Sizeof(Walker{})))
+ (*Walker)(unsafe.Pointer(bp + 440 /* &sWalker */)).FpParse = bp /* &sParse */
+ (*Walker)(unsafe.Pointer(bp + 440 /* &sWalker */)).FxExprCallback = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr) int32
}{renameQuotefixExprCb}))
- (*Walker)(unsafe.Pointer(bp + 432 /* &sWalker */)).FxSelectCallback = *(*uintptr)(unsafe.Pointer(&struct {
+ (*Walker)(unsafe.Pointer(bp + 440 /* &sWalker */)).FxSelectCallback = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr) int32
}{renameColumnSelectCb}))
- *(*uintptr)(unsafe.Pointer(bp + 432 + 40)) = bp + 400 /* &sCtx */
+ *(*uintptr)(unsafe.Pointer(bp + 440 + 40)) = bp + 408 /* &sCtx */
if (*Parse)(unsafe.Pointer(bp)).FpNewTable != 0 {
if int32((*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp)).FpNewTable)).FeTabType) == TABTYP_VIEW {
@@ -89945,34 +90623,38 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint
return (*Parse)(unsafe.Pointer(bp)).Frc
}()
if rc == SQLITE_OK {
- Xsqlite3WalkSelect(tls, bp+432, pSelect)
+ Xsqlite3WalkSelect(tls, bp+440, pSelect)
}
} else {
var i int32
- Xsqlite3WalkExprList(tls, bp+432, (*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTable)).FpCheck)
+ Xsqlite3WalkExprList(tls, bp+440, (*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTable)).FpCheck)
for i = 0; i < int32((*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTable)).FnCol); i++ {
- Xsqlite3WalkExpr(tls, bp+432,
+ Xsqlite3WalkExpr(tls, bp+440,
Xsqlite3ColumnExpr(tls, (*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTable,
(*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp)).FpNewTable)).FaCol+uintptr(i)*24))
}
}
} else if (*Parse)(unsafe.Pointer(bp)).FpNewIndex != 0 {
- Xsqlite3WalkExprList(tls, bp+432, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewIndex)).FaColExpr)
- Xsqlite3WalkExpr(tls, bp+432, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewIndex)).FpPartIdxWhere)
+ Xsqlite3WalkExprList(tls, bp+440, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewIndex)).FaColExpr)
+ Xsqlite3WalkExpr(tls, bp+440, (*Index)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewIndex)).FpPartIdxWhere)
} else {
rc = renameResolveTrigger(tls, bp)
if rc == SQLITE_OK {
- renameWalkTrigger(tls, bp+432, (*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTrigger)
+ renameWalkTrigger(tls, bp+440, (*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTrigger)
}
}
if rc == SQLITE_OK {
- rc = renameEditSql(tls, context, bp+400, zInput, uintptr(0), 0)
+ rc = renameEditSql(tls, context, bp+408, zInput, uintptr(0), 0)
}
- renameTokenFree(tls, db, (*RenameCtx)(unsafe.Pointer(bp+400 /* &sCtx */)).FpList)
+ renameTokenFree(tls, db, (*RenameCtx)(unsafe.Pointer(bp+408 /* &sCtx */)).FpList)
}
if rc != SQLITE_OK {
- Xsqlite3_result_error_code(tls, context, rc)
+ if Xsqlite3WritableSchema(tls, db) != 0 && rc == SQLITE_ERROR {
+ Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv + 1*8)))
+ } else {
+ Xsqlite3_result_error_code(tls, context, rc)
+ }
}
renameParseCleanup(tls, bp)
}
@@ -89982,6 +90664,8 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint
Xsqlite3BtreeLeaveAll(tls, db)
}
+// Function: sqlite_rename_test(DB,SQL,TYPE,NAME,ISTEMP,WHEN,DQS)
+//
// An SQL user function that checks that there are no parse or symbol
// resolution problems in a CREATE TRIGGER|TABLE|VIEW|INDEX statement.
// After an ALTER TABLE .. RENAME operation is performed and the schema
@@ -89996,14 +90680,16 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint
// 5: "when" part of error message.
// 6: True to disable the DQS quirk when parsing SQL.
//
-// Unless it finds an error, this function normally returns NULL. However, it
-// returns integer value 1 if:
+// The return value is computed as follows:
//
-// * the SQL argument creates a trigger, and
-// * the table that the trigger is attached to is in database zDb.
-func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:109942:13: */
- bp := tls.Alloc(456)
- defer tls.Free(456)
+// A. If an error is seen and not in PRAGMA writable_schema=ON mode,
+// then raise the error.
+// B. Else if a trigger is created and the the table that the trigger is
+// attached to is in database zDb, then return 1.
+// C. Otherwise return NULL.
+func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110838:13: */
+ bp := tls.Alloc(464)
+ defer tls.Free(464)
var db uintptr = Xsqlite3_context_db_handle(tls, context)
var zDb uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv)))
@@ -90020,7 +90706,7 @@ func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
if zDb != 0 && zInput != 0 {
var rc int32
- // var sParse Parse at bp, 400
+ // var sParse Parse at bp, 408
var flags int32 = int32((*Sqlite3)(unsafe.Pointer(db)).Fflags)
if bNoDQS != 0 {
@@ -90030,11 +90716,11 @@ func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
*(*U64)(unsafe.Pointer(db + 48)) |= U64(flags & (SQLITE_DqsDML | SQLITE_DqsDDL))
if rc == SQLITE_OK {
if isLegacy == 0 && (*Parse)(unsafe.Pointer(bp)).FpNewTable != 0 && int32((*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp)).FpNewTable)).FeTabType) == TABTYP_VIEW {
- // var sNC NameContext at bp+400, 56
+ // var sNC NameContext at bp+408, 56
- libc.Xmemset(tls, bp+400, 0, uint64(unsafe.Sizeof(NameContext{})))
- (*NameContext)(unsafe.Pointer(bp + 400 /* &sNC */)).FpParse = bp /* &sParse */
- Xsqlite3SelectPrep(tls, bp, *(*uintptr)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp)).FpNewTable + 64)), bp+400)
+ libc.Xmemset(tls, bp+408, 0, uint64(unsafe.Sizeof(NameContext{})))
+ (*NameContext)(unsafe.Pointer(bp + 408 /* &sNC */)).FpParse = bp /* &sParse */
+ Xsqlite3SelectPrep(tls, bp, *(*uintptr)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp)).FpNewTable + 64)), bp+408)
if (*Parse)(unsafe.Pointer(bp)).FnErr != 0 {
rc = (*Parse)(unsafe.Pointer(bp /* &sParse */)).Frc
}
@@ -90046,13 +90732,15 @@ func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
var i1 int32 = Xsqlite3SchemaToIndex(tls, db, (*Trigger)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp /* &sParse */)).FpNewTrigger)).FpTabSchema)
var i2 int32 = Xsqlite3FindDbName(tls, db, zDb)
if i1 == i2 {
+ // Handle output case B
Xsqlite3_result_int(tls, context, 1)
}
}
}
}
- if rc != SQLITE_OK && zWhen != 0 {
+ if rc != SQLITE_OK && zWhen != 0 && !(Xsqlite3WritableSchema(tls, db) != 0) {
+ // Output case A
renameColumnParseError(tls, context, zWhen, *(*uintptr)(unsafe.Pointer(argv + 2*8)), *(*uintptr)(unsafe.Pointer(argv + 3*8)), bp)
}
renameParseCleanup(tls, bp)
@@ -90071,9 +90759,9 @@ 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) { /* sqlite3.c:110013:13: */
- bp := tls.Alloc(424)
- defer tls.Free(424)
+func dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110913:13: */
+ bp := tls.Alloc(432)
+ defer tls.Free(432)
var db uintptr
var iSchema int32
@@ -90081,7 +90769,7 @@ func dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr)
var iCol int32
var zDb uintptr
var rc int32
- // var sParse Parse at bp+24, 400
+ // var sParse Parse at bp+24, 408
var pCol uintptr
var pTab uintptr
@@ -90111,7 +90799,7 @@ __1:
goto __2
}
// This can happen if the sqlite_schema table is corrupt
- rc = Xsqlite3CorruptError(tls, 110041)
+ rc = Xsqlite3CorruptError(tls, 110941)
goto drop_column_done
__2:
;
@@ -90137,7 +90825,7 @@ __6:
__4:
;
- zNew = Xsqlite3MPrintf(tls, db, ts+10782, libc.VaList(bp, (int64((*RenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql))/1, zSql, zEnd))
+ zNew = Xsqlite3MPrintf(tls, db, ts+10807, 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)
@@ -90157,7 +90845,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) { /* sqlite3.c:110078:21: */
+func Xsqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110978:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -90225,7 +90913,7 @@ __5:
if !(iCol < 0) {
goto __6
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6233, libc.VaList(bp, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+10429, libc.VaList(bp, pName))
goto exit_drop_column
__6:
;
@@ -90235,12 +90923,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+10789,
+ Xsqlite3ErrorMsg(tls, pParse, ts+10814,
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 + 10817 /* "PRIMARY KEY" */
+ return ts + 10842 /* "PRIMARY KEY" */
}
- return ts + 6054 /* "UNIQUE" */
+ return ts + 6059 /* "UNIQUE" */
}(),
zCol))
goto exit_drop_column
@@ -90251,7 +90939,7 @@ __7:
if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) <= 1) {
goto __8
}
- Xsqlite3ErrorMsg(tls, pParse, ts+10829, libc.VaList(bp+24, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+10854, libc.VaList(bp+24, zCol))
goto exit_drop_column
__8:
;
@@ -90260,19 +90948,26 @@ __8:
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema)
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
- renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+1546, 0)
+ // Invoke the authorization callback.
+ if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_ALTER_TABLE, zDb, (*Table)(unsafe.Pointer(pTab)).FzName, zCol) != 0) {
+ goto __9
+ }
+ goto exit_drop_column
+__9:
+ ;
+ renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+1515, 0)
renameFixQuotes(tls, pParse, zDb, libc.Bool32(iDb == 1))
Xsqlite3NestedParse(tls, pParse,
- ts+10877, libc.VaList(bp+32, zDb, iDb, iCol, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+10902, 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+10998, 1)
+ renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+11023, 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) {
- goto __9
+ goto __10
}
pPk = uintptr(0)
nField = 0
@@ -90282,99 +90977,99 @@ __8:
addr = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, iCur)
reg = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __10
+ goto __11
}
Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, iCur, reg)
*(*int32)(unsafe.Pointer(pParse + 56)) += int32((*Table)(unsafe.Pointer(pTab)).FnCol)
- goto __11
-__10:
+ goto __12
+__11:
pPk = Xsqlite3PrimaryKeyIndex(tls, pTab)
*(*int32)(unsafe.Pointer(pParse + 56)) += int32((*Index)(unsafe.Pointer(pPk)).FnColumn)
i = 0
-__12:
+__13:
if !(i < int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) {
- goto __14
+ goto __15
}
Xsqlite3VdbeAddOp3(tls, v, OP_Column, iCur, i, reg+i+1)
- goto __13
-__13:
- i++
- goto __12
goto __14
__14:
+ i++
+ goto __13
+ goto __15
+__15:
;
nField = int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)
-__11:
+__12:
;
regRec = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
i = 0
-__15:
+__16:
if !(i < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __17
+ goto __18
}
if !(i != iCol && int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(i)*24)).FcolFlags)&COLFLAG_VIRTUAL == 0) {
- goto __18
+ goto __19
}
if !(pPk != 0) {
- goto __19
+ goto __20
}
iPos = int32(Xsqlite3TableColumnToIndex(tls, pPk, int16(i)))
iColPos = int32(Xsqlite3TableColumnToIndex(tls, pPk, int16(iCol)))
if !(iPos < int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) {
- goto __21
+ goto __22
}
- goto __16
-__21:
+ goto __17
+__22:
;
regOut = reg + 1 + iPos - libc.Bool32(iPos > iColPos)
- goto __20
-__19:
- regOut = reg + 1 + nField
+ goto __21
__20:
+ regOut = reg + 1 + nField
+__21:
;
if !(i == int32((*Table)(unsafe.Pointer(pTab)).FiPKey)) {
- goto __22
+ goto __23
}
Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regOut)
- goto __23
-__22:
- Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, i, regOut)
+ goto __24
__23:
+ Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, i, regOut)
+__24:
;
nField++
-__18:
+__19:
;
- goto __16
-__16:
- i++
- goto __15
goto __17
__17:
+ i++
+ goto __16
+ goto __18
+__18:
;
if !(nField == 0) {
- goto __24
+ goto __25
}
// dbsqlfuzz 5f09e7bcc78b4954d06bf9f2400d7715f48d1fef
(*Parse)(unsafe.Pointer(pParse)).FnMem++
Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, reg+1)
nField = 1
-__24:
+__25:
;
Xsqlite3VdbeAddOp3(tls, v, OP_MakeRecord, reg+1, nField, regRec)
if !(pPk != 0) {
- goto __25
+ goto __26
}
Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxInsert, iCur, regRec, reg+1, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol))
- goto __26
-__25:
- Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iCur, regRec, reg)
+ goto __27
__26:
+ Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iCur, regRec, reg)
+__27:
;
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_SAVEPOSITION))
Xsqlite3VdbeAddOp2(tls, v, OP_Next, iCur, addr+1)
Xsqlite3VdbeJumpHere(tls, v, addr)
-__9:
+__10:
;
exit_drop_column:
@@ -90383,16 +91078,16 @@ exit_drop_column:
}
// Register built-in functions used to help implement ALTER TABLE
-func Xsqlite3AlterFunctions(tls *libc.TLS) { /* sqlite3.c:110214:21: */
+func Xsqlite3AlterFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111120: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 + 11016},
- {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11037},
- {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11057},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11076},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11095}} /* sqlite3.c:110215:18 */
+ {FnArg: int8(9), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11041},
+ {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11062},
+ {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11082},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11101},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11120}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111121:18 */
//************* End of alter.c **********************************************
//************* Begin file analyze.c ****************************************
@@ -90548,7 +91243,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) { /* sqlite3.c:110393:13: */
+func openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zWhere uintptr, zWhereType uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111299:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -90589,7 +91284,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+11118, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, aTable[i].FzCols))
+ ts+11143, 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)
}
@@ -90601,10 +91296,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+11141,
+ ts+11166,
libc.VaList(bp+24, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere))
} else if (*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 {
- Xsqlite3NestedParse(tls, pParse, ts+11171, libc.VaList(bp+56, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab))
+ Xsqlite3NestedParse(tls, pParse, ts+11196, 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)
@@ -90625,10 +91320,10 @@ var aTable = [3]struct {
FzName uintptr
FzCols uintptr
}{
- {FzName: ts + 11189 /* "sqlite_stat1" */, FzCols: ts + 11202 /* "tbl,idx,stat" */},
- {FzName: ts + 11215 /* "sqlite_stat4" */, FzCols: ts + 11228 /* "tbl,idx,neq,nlt,..." */},
- {FzName: ts + 11256 /* "sqlite_stat3" */},
-} /* sqlite3.c:110403:5 */
+ {FzName: ts + 11214 /* "sqlite_stat1" */, FzCols: ts + 11227 /* "tbl,idx,stat" */},
+ {FzName: ts + 11240 /* "sqlite_stat4" */, FzCols: ts + 11253 /* "tbl,idx,neq,nlt,..." */},
+ {FzName: ts + 11281 /* "sqlite_stat3" */},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111309:5 */
// Recommended number of samples for sqlite_stat4
@@ -90655,14 +91350,14 @@ type StatAccum1 = struct {
FnMaxEqZero int32
FiGet int32
Fa uintptr
-} /* sqlite3.c:110491:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111397: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 /* sqlite3.c:110491:26 */
+type StatAccum = StatAccum1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111397:26 */
type StatSample1 = struct {
FanEq uintptr
FanDLt uintptr
@@ -90673,12 +91368,12 @@ type StatSample1 = struct {
F__ccgo_pad1 [3]byte
FiCol int32
FiHash U32
-} /* sqlite3.c:110491:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111397:9 */
-type StatSample = StatSample1 /* sqlite3.c:110492:27 */
+type StatSample = StatSample1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111398:27 */
// Reclaim memory used by a StatSample
-func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:110533:13: */
+func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111439:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -90687,7 +91382,7 @@ func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:110533:13:
}
// Initialize the BLOB value of a ROWID
-func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr) { /* sqlite3.c:110545:13: */
+func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111451:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -90702,7 +91397,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) { /* sqlite3.c:110561:13: */
+func sampleSetRowidInt64(tls *libc.TLS, db uintptr, p uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111467:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -90712,7 +91407,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) { /* sqlite3.c:110574:13: */
+func sampleCopy(tls *libc.TLS, p uintptr, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111480: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
@@ -90727,7 +91422,7 @@ func sampleCopy(tls *libc.TLS, p uintptr, pTo uintptr, pFrom uintptr) { /* sqlit
}
// Reclaim all memory of a StatAccum structure.
-func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:110592:13: */
+func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111498:13: */
var p uintptr = pOld
if (*StatAccum)(unsafe.Pointer(p)).FmxSample != 0 {
var i int32
@@ -90762,7 +91457,7 @@ func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:110592:13:
// 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) { /* sqlite3.c:110627:13: */
+func statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111533:13: */
var p uintptr
var nCol int32 // Number of columns in index being sampled
var nKeyCol int32 // Number of key columns
@@ -90857,7 +91552,7 @@ var statInitFuncdef = FuncDef{
FnArg: int8(4), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11269} /* sqlite3.c:110713:22 */
+ FzName: ts + 11294} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111619:22 */
// pNew and pOld are both candidate non-periodic samples selected for
// the same column (pNew->iCol==pOld->iCol). Ignoring this column and
@@ -90868,7 +91563,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 { /* sqlite3.c:110737:12: */
+func sampleIsBetterPost(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111643:12: */
var nCol int32 = (*StatAccum)(unsafe.Pointer(pAccum)).FnCol
var i int32
@@ -90890,7 +91585,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 { /* sqlite3.c:110761:12: */
+func sampleIsBetter(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111667: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))
@@ -90908,7 +91603,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) { /* sqlite3.c:110784:13: */
+func sampleInsert(tls *libc.TLS, p uintptr, pNew uintptr, nEqZero int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111690:13: */
var pSample uintptr
var i int32
var pOld uintptr
@@ -91051,7 +91746,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) { /* sqlite3.c:110876:13: */
+func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111782:13: */
var i int32
// Check if any samples from the aBest[] array should be pushed
@@ -91103,7 +91798,7 @@ func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* sqlite3.c:11
// 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) { /* sqlite3.c:110928:13: */
+func statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111834:13: */
var i int32
// The three function arguments
@@ -91175,7 +91870,7 @@ var statPushFuncdef = FuncDef{
FnArg: int8(2 + IsStat4),
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11279} /* sqlite3.c:111003:22 */
+ FzName: ts + 11304} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111909:22 */
// Implementation of the stat_get(P,J) SQL function. This routine is
// used to query statistical information that has been gathered into
@@ -91194,7 +91889,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) { /* sqlite3.c:111040:13: */
+func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111946:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -91228,7 +91923,7 @@ func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
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+11289,
+ Xsqlite3_str_appendf(tls, bp+24, ts+11314,
libc.VaList(bp, func() uint64 {
if (*StatAccum)(unsafe.Pointer(p)).FnSkipAhead != 0 {
return U64((*StatAccum)(unsafe.Pointer(p)).FnEst)
@@ -91238,7 +91933,7 @@ func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
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+11294, libc.VaList(bp+8, iVal))
+ Xsqlite3_str_appendf(tls, bp+24, ts+11319, libc.VaList(bp+8, iVal))
}
Xsqlite3ResultStrAccum(tls, context, bp+24)
@@ -91281,7 +91976,7 @@ func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
}
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+11300, libc.VaList(bp+16, U64(*(*TRowcnt)(unsafe.Pointer(aCnt + uintptr(i)*4)))))
+ Xsqlite3_str_appendf(tls, bp+56, ts+11325, 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--
@@ -91295,9 +91990,9 @@ var statGetFuncdef = FuncDef{
FnArg: int8(1 + IsStat4),
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11306} /* sqlite3.c:111137:22 */
+ FzName: ts + 11331} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112043:22 */
-func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, regOut int32) { /* sqlite3.c:111149:13: */
+func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112055:13: */
Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Integer, iParam, regStat+1)
Xsqlite3VdbeAddFunctionCall(tls, pParse, 0, regStat, regOut, 1+IsStat4,
@@ -91306,7 +92001,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) { /* sqlite3.c:111190:13: */
+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: */
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
@@ -91342,7 +92037,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+11315, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
+ if Xsqlite3_strlike(tls, ts+11340, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
// Do not gather statistics on system tables
return
}
@@ -91360,7 +92055,7 @@ 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+11189, uint64(13))
+ libc.Xmemcpy(tls, (*Table)(unsafe.Pointer(pStat1)).FzName, ts+11214, 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)
@@ -91593,7 +92288,7 @@ 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+11325, 0)
+ Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+11350, 0)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid)
Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid)
Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -6)
@@ -91655,7 +92350,7 @@ 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+11325, 0)
+ Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+11350, 0)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid)
Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid)
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND))
@@ -91666,7 +92361,7 @@ func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintp
// 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) { /* sqlite3.c:111552:13: */
+func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112458:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if v != 0 {
Xsqlite3VdbeAddOp1(tls, v, OP_LoadAnalysis, iDb)
@@ -91674,7 +92369,7 @@ func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:11155
}
// Generate code that will do an analysis of an entire database
-func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:111562:13: */
+func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112468: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
@@ -91699,7 +92394,7 @@ func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:11
// 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) { /* sqlite3.c:111589:13: */
+func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112495:13: */
var iDb int32
var iStatCur int32
@@ -91708,9 +92403,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+11329)
+ openStatTable(tls, pParse, iDb, iStatCur, (*Index)(unsafe.Pointer(pOnlyIdx)).FzName, ts+11354)
} else {
- openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11333)
+ openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11358)
}
analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*Parse)(unsafe.Pointer(pParse)).FnMem+1, (*Parse)(unsafe.Pointer(pParse)).FnTab)
loadAnalysis(tls, pParse, iDb)
@@ -91726,7 +92421,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) { /* sqlite3.c:111620:21: */
+func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112526:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -91789,23 +92484,23 @@ func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
type analysisInfo = struct {
Fdb uintptr
FzDatabase uintptr
-} /* sqlite3.c:111672:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112578:9 */
// Used to pass information from the analyzer reader through to the
// callback routine.
-type AnalysisInfo = analysisInfo /* sqlite3.c:111672:29 */
+type AnalysisInfo = analysisInfo /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112578: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) { /* sqlite3.c:111683:13: */
+func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, aLog uintptr, pIndex uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112589:13: */
var z uintptr = zIntArray
var c int32
var i int32
var v TRowcnt
if z == uintptr(0) {
- z = ts + 1546 /* "" */
+ z = ts + 1515 /* "" */
}
for i = 0; *(*int8)(unsafe.Pointer(z)) != 0 && i < nOut; i++ {
v = TRowcnt(0)
@@ -91827,15 +92522,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+11337, z) == 0 {
+ if Xsqlite3_strglob(tls, ts+11362, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 2, 0x4)
- } else if Xsqlite3_strglob(tls, ts+11348, z) == 0 {
+ } else if Xsqlite3_strglob(tls, ts+11373, 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+11358, z) == 0 {
+ } else if Xsqlite3_strglob(tls, ts+11383, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 6, 0x40)
}
for int32(*(*int8)(unsafe.Pointer(z))) != 0 && int32(*(*int8)(unsafe.Pointer(z))) != ' ' {
@@ -91857,7 +92552,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 { /* sqlite3.c:111756:12: */
+func analysisLoader(tls *libc.TLS, pData uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112662:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -91919,7 +92614,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) { /* sqlite3.c:111819:21: */
+func Xsqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112725:21: */
if (*Index)(unsafe.Pointer(pIdx)).FaSample != 0 {
var j int32
for j = 0; j < (*Index)(unsafe.Pointer(pIdx)).FnSample; j++ {
@@ -91936,7 +92631,7 @@ func Xsqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) { /* sq
// Populate the pIdx->aAvgEq[] array based on the samples currently
// stored in pIdx->aSample[].
-func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:111844:13: */
+func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112750:13: */
if pIdx != 0 {
var aSample uintptr = (*Index)(unsafe.Pointer(pIdx)).FaSample
var pFinal uintptr = aSample + uintptr((*Index)(unsafe.Pointer(pIdx)).FnSample-1)*40
@@ -91994,7 +92689,7 @@ func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:111844:13: */
// 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 { /* sqlite3.c:111903:14: */
+func findIndexOrPrimaryKey(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112809:14: */
var pIdx uintptr = Xsqlite3FindIndex(tls, db, zName, zDb)
if pIdx == uintptr(0) {
var pTab uintptr = Xsqlite3FindTable(tls, db, zName, zDb)
@@ -92015,7 +92710,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 { /* sqlite3.c:111928:12: */
+func loadStatTbl(tls *libc.TLS, db uintptr, zSql1 uintptr, zSql2 uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112834:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -92151,15 +92846,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 { /* sqlite3.c:112049:12: */
+func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112955:12: */
var rc int32 = SQLITE_OK // Result codes from subroutines
var pStat4 uintptr
- if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+11215, zDb)) != uintptr(0) &&
+ if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+11240, zDb)) != uintptr(0) &&
int32((*Table)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM {
rc = loadStatTbl(tls, db,
- ts+11370,
- ts+11424,
+ ts+11395,
+ ts+11449,
zDb)
}
return rc
@@ -92183,7 +92878,7 @@ func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* sqlite3.c:1120
// 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 { /* sqlite3.c:112087:20: */
+func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112993:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -92211,10 +92906,10 @@ func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* sqlit
// 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+11189, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 &&
+ if libc.AssignUintptr(&pStat1, Xsqlite3FindTable(tls, db, ts+11214, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 &&
int32((*Table)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM {
zSql = Xsqlite3MPrintf(tls, db,
- ts+11476, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase))
+ ts+11501, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase))
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
} else {
@@ -92290,7 +92985,7 @@ func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* sqlit
// 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 { /* sqlite3.c:112195:12: */
+func resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113101:12: */
var rc int32 = SQLITE_OK
if pExpr != 0 {
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_ID {
@@ -92304,9 +92999,9 @@ func resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) int32 { /* s
// 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 { /* sqlite3.c:112212:20: */
+func Xsqlite3DbIsNamed(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113118: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+6308, zName) == 0)
+ iDb == 0 && Xsqlite3StrICmp(tls, ts+6313, zName) == 0)
}
// An SQL user-function registered to do the work of an ATTACH statement. The
@@ -92322,7 +93017,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) { /* sqlite3.c:112234:13: */
+func attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113140:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -92357,13 +93052,13 @@ func attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
if !(zFile == uintptr(0)) {
goto __1
}
- zFile = ts + 1546 /* "" */
+ zFile = ts + 1515 /* "" */
__1:
;
if !(zName == uintptr(0)) {
goto __2
}
- zName = ts + 1546 /* "" */
+ zName = ts + 1515 /* "" */
__2:
;
@@ -92373,7 +93068,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+3776)
+ *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)) = Xsqlite3_vfs_find(tls, ts+3767)
if !(*(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0)) {
goto __5
}
@@ -92389,7 +93084,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+11517, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB)
+ rc = Xsqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)), ts+11542, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB)
goto __4
__3:
// This is a real ATTACH
@@ -92402,7 +93097,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+11520,
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11545,
libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
goto attach_error
__7:
@@ -92416,7 +93111,7 @@ __8:
if !(Xsqlite3DbIsNamed(tls, db, i, zName) != 0) {
goto __11
}
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11557, libc.VaList(bp+8, zName))
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11582, libc.VaList(bp+8, zName))
goto attach_error
__11:
;
@@ -92487,7 +93182,7 @@ __4:
goto __18
}
rc = SQLITE_ERROR
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11587, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11612, 0)
goto __19
__18:
if !(rc == SQLITE_OK) {
@@ -92504,7 +93199,7 @@ __21:
goto __23
}
*(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db,
- ts+11616, 0)
+ ts+11641, 0)
rc = SQLITE_ERROR
__23:
;
@@ -92574,13 +93269,13 @@ __29:
}
Xsqlite3OomFault(tls, db)
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)))
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+6031, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+1451, 0)
goto __31
__30:
if !(*(*uintptr)(unsafe.Pointer(bp + 56)) == uintptr(0)) {
goto __32
}
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11684, libc.VaList(bp+16, zFile))
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11709, libc.VaList(bp+16, zFile))
__32:
;
__31:
@@ -92615,7 +93310,7 @@ __34:
// DETACH DATABASE x
//
// SELECT sqlite_detach(x)
-func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:112427:13: */
+func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113333:13: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -92636,7 +93331,7 @@ func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
if !(zName == uintptr(0)) {
goto __1
}
- zName = ts + 1546 /* "" */
+ zName = ts + 1515 /* "" */
__1:
;
i = 0
@@ -92668,14 +93363,14 @@ __4:
if !(i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
goto __7
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11712, libc.VaList(bp, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11737, libc.VaList(bp, zName))
goto detach_error
__7:
;
if !(i < 2) {
goto __8
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11733, libc.VaList(bp+8, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11758, libc.VaList(bp+8, zName))
goto detach_error
__8:
;
@@ -92683,7 +93378,7 @@ __8:
Xsqlite3BtreeIsInBackup(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) != 0) {
goto __9
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11759, libc.VaList(bp+16, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11784, libc.VaList(bp+16, zName))
goto detach_error
__9:
;
@@ -92720,7 +93415,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) { /* sqlite3.c:112489:13: */
+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: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -92799,7 +93494,7 @@ attach_end:
// Called by the parser to compile a DETACH statement.
//
// DETACH pDbname
-func Xsqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) { /* sqlite3.c:112561:21: */
+func Xsqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113467:21: */
codeAttach(tls, pParse, SQLITE_DETACH, uintptr(unsafe.Pointer(&detach_func)), pDbname, uintptr(0), uintptr(0), pDbname)
}
@@ -92807,12 +93502,12 @@ var detach_func = FuncDef{
FnArg: int8(1), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11781} /* sqlite3.c:112562:24 */
+ FzName: ts + 11806} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113468: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) { /* sqlite3.c:112581:21: */
+func Xsqlite3Attach(tls *libc.TLS, pParse uintptr, p uintptr, pDbname uintptr, pKey uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113487:21: */
codeAttach(tls, pParse, SQLITE_ATTACH, uintptr(unsafe.Pointer(&attach_func)), p, p, pDbname, pKey)
}
@@ -92820,10 +93515,10 @@ var attach_func = FuncDef{
FnArg: int8(3), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11795} /* sqlite3.c:112582:24 */
+ FzName: ts + 11820} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113488:24 */
// Expression callback used by sqlite3FixAAAA() routines.
-func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:112600:12: */
+func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113506:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -92835,7 +93530,7 @@ func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:112
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+11809, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType))
+ Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, ts+11834, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType))
return WRC_Abort
}
}
@@ -92843,7 +93538,7 @@ func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:112
}
// Select callback used by sqlite3FixAAAA() routines.
-func fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) int32 { /* sqlite3.c:112617:12: */
+func fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113523:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -92868,7 +93563,7 @@ __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+11833,
+ ts+11858,
libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType, (*DbFixer)(unsafe.Pointer(pFix)).FpName, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase))
return WRC_Abort
}
@@ -92904,7 +93599,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) { /* sqlite3.c:112660:21: */
+func Xsqlite3FixInit(tls *libc.TLS, pFix uintptr, pParse uintptr, iDb int32, zType uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113566:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
(*DbFixer)(unsafe.Pointer(pFix)).FpParse = pParse
@@ -92940,7 +93635,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 { /* sqlite3.c:112698:20: */
+func Xsqlite3FixSrcList(tls *libc.TLS, pFix uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113604:20: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -92955,15 +93650,15 @@ func Xsqlite3FixSrcList(tls *libc.TLS, pFix uintptr, pList uintptr) int32 { /* s
return res
}
-func Xsqlite3FixSelect(tls *libc.TLS, pFix uintptr, pSelect uintptr) int32 { /* sqlite3.c:112712:20: */
+func Xsqlite3FixSelect(tls *libc.TLS, pFix uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113618:20: */
return Xsqlite3WalkSelect(tls, pFix+8, pSelect)
}
-func Xsqlite3FixExpr(tls *libc.TLS, pFix uintptr, pExpr uintptr) int32 { /* sqlite3.c:112718:20: */
+func Xsqlite3FixExpr(tls *libc.TLS, pFix uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113624:20: */
return Xsqlite3WalkExpr(tls, pFix+8, pExpr)
}
-func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { /* sqlite3.c:112727:20: */
+func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113633: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 ||
@@ -93053,7 +93748,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 { /* sqlite3.c:112831:16: */
+func Xsqlite3_set_authorizer(tls *libc.TLS, db uintptr, xAuth uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113737:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxAuth = xAuth
(*Sqlite3)(unsafe.Pointer(db)).FpAuthArg = pArg
@@ -93066,8 +93761,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) { /* sqlite3.c:112851:13: */
- Xsqlite3ErrorMsg(tls, pParse, ts+11879, 0)
+func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113757:13: */
+ Xsqlite3ErrorMsg(tls, pParse, ts+11904, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR
}
@@ -93078,7 +93773,7 @@ func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:11285
// 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 { /* sqlite3.c:112865:20: */
+func Xsqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintptr, iDb int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113771:20: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -93093,11 +93788,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+11902, libc.VaList(bp, zTab, zCol))
+ var z uintptr = Xsqlite3_mprintf(tls, ts+11927, libc.VaList(bp, zTab, zCol))
if (*Sqlite3)(unsafe.Pointer(db)).FnDb > 2 || iDb != 0 {
- z = Xsqlite3_mprintf(tls, ts+11908, libc.VaList(bp+16, zDb, z))
+ z = Xsqlite3_mprintf(tls, ts+11933, libc.VaList(bp+16, zDb, z))
}
- Xsqlite3ErrorMsg(tls, pParse, ts+11914, libc.VaList(bp+32, z))
+ Xsqlite3ErrorMsg(tls, pParse, ts+11939, libc.VaList(bp+32, z))
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH
} else if rc != SQLITE_IGNORE && rc != SQLITE_OK {
sqliteAuthBadReturnCode(tls, pParse)
@@ -93112,7 +93807,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) { /* sqlite3.c:112901:21: */
+func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uintptr, pTabList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113807: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
@@ -93149,7 +93844,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 + 7581 /* "ROWID" */
}
if SQLITE_IGNORE == Xsqlite3AuthReadCol(tls, pParse, (*Table)(unsafe.Pointer(pTab)).FzName, zCol, iDb) {
@@ -93161,7 +93856,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 { /* sqlite3.c:112958:20: */
+func Xsqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr, zArg2 uintptr, zArg3 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113864:20: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var rc int32
@@ -93183,7 +93878,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+11941, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+11966, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH
} else if rc != SQLITE_OK && rc != SQLITE_IGNORE {
rc = SQLITE_DENY
@@ -93195,7 +93890,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) { /* sqlite3.c:113007:21: */
+func Xsqlite3AuthContextPush(tls *libc.TLS, pParse uintptr, pContext uintptr, zContext uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113913:21: */
(*AuthContext)(unsafe.Pointer(pContext)).FpParse = pParse
(*AuthContext)(unsafe.Pointer(pContext)).FzAuthContext = (*Parse)(unsafe.Pointer(pParse)).FzAuthContext
@@ -93204,7 +93899,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) { /* sqlite3.c:113022:21: */
+func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113928: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)
@@ -93219,7 +93914,7 @@ func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* sqlite3.c:1130
// 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) { /* sqlite3.c:113081:29: */
+func lockTable(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113987:29: */
var pToplevel uintptr
var i int32
var nBytes int32
@@ -93253,7 +93948,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) { /* sqlite3.c:113117:21: */
+func Xsqlite3TableLock(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114023:21: */
if iDb == 1 {
return
}
@@ -93265,7 +93960,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) { /* sqlite3.c:113133:13: */
+func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114039:13: */
var i int32
var pVdbe uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -93289,17 +93984,18 @@ func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113133:13: */
//
// Note that if an error occurred, it might be the case that
// no VDBE code was generated.
-func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113172:21: */
+func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114078:21: */
var db uintptr
var v uintptr
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
+
if (*Parse)(unsafe.Pointer(pParse)).Fnested != 0 {
return
}
- if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
- if (*Parse)(unsafe.Pointer(pParse)).Frc == SQLITE_OK {
- (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
+ if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_NOMEM
}
return
}
@@ -93328,6 +94024,7 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113172:2
if (*Returning)(unsafe.Pointer(pReturning)).FnRetCol == 0 {
} else {
+ Xsqlite3VdbeAddOp0(tls, v, OP_FkCheck)
addrRewind = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, (*Returning)(unsafe.Pointer(pReturning)).FiRetCur)
reg = (*Returning)(unsafe.Pointer(pReturning)).FiRetReg
@@ -93417,7 +94114,8 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113172:2
}
// Get the VDBE program ready for execution
- if v != 0 && (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 && !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
+
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
// A minimum of one cursor is required if autoincrement is used
// See ticket [a696379c1f08866]
@@ -93439,14 +94137,13 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113172:2
// * Built-in SQL functions always take precedence over application-defined
// SQL functions. In other words, it is not possible to override a
// built-in function.
-func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:113338:21: */
- bp := tls.Alloc(144)
- defer tls.Free(144)
+func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114249:21: */
+ bp := tls.Alloc(136)
+ defer tls.Free(136)
var ap Va_list
_ = ap
var zSql uintptr
- *(*uintptr)(unsafe.Pointer(bp + 136 /* zErrMsg */)) = uintptr(0)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var savedDbFlags U32 = (*Sqlite3)(unsafe.Pointer(db)).FmDbFlags
// var saveBuf [136]int8 at bp, 136
@@ -93469,14 +94166,15 @@ func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uint
return
}
(*Parse)(unsafe.Pointer(pParse)).Fnested++
- libc.Xmemcpy(tls, bp, pParse+uintptr(uint64(uintptr(0)+264)), uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+264))
- libc.Xmemset(tls, pParse+uintptr(uint64(uintptr(0)+264)), 0, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+264))
+ libc.Xmemcpy(tls, bp, pParse+uintptr(uint64(uintptr(0)+272)), uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272))
+ libc.Xmemset(tls, pParse+uintptr(uint64(uintptr(0)+272)), 0, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272))
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_PreferBuiltin)
- Xsqlite3RunParser(tls, pParse, zSql, bp+136)
+ Xsqlite3RunParser(tls, pParse, zSql)
+ Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg)
+ (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = uintptr(0)
(*Sqlite3)(unsafe.Pointer(db)).FmDbFlags = savedDbFlags
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 136 /* zErrMsg */)))
Xsqlite3DbFree(tls, db, zSql)
- libc.Xmemcpy(tls, pParse+uintptr(uint64(uintptr(0)+264)), bp, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+264))
+ libc.Xmemcpy(tls, pParse+uintptr(uint64(uintptr(0)+272)), bp, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272))
(*Parse)(unsafe.Pointer(pParse)).Fnested--
}
@@ -93490,7 +94188,7 @@ func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uint
// auxiliary databases added using the ATTACH command.
//
// See also sqlite3LocateTable().
-func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintptr) uintptr { /* sqlite3.c:113393:22: */
+func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114304:22: */
var p uintptr = uintptr(0)
var i int32
@@ -93505,7 +94203,7 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
if i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb {
// No match against the official names. But always match "main"
// to schema 0 as a legacy fallback.
- if Xsqlite3StrICmp(tls, zDatabase, ts+6308) == 0 {
+ if Xsqlite3StrICmp(tls, zDatabase, ts+6313) == 0 {
i = 0
} else {
return uintptr(0)
@@ -93514,16 +94212,16 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
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+8000, 7) == 0 {
if i == 1 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11956+7) == 0 ||
- Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11975+7) == 0 ||
- Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5806+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11981+7) == 0 ||
+ Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12000+7) == 0 ||
+ Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5825+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8,
- ts+11989)
+ ts+12014)
}
} else {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11975+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12000+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i)*32)).FpSchema+8,
- ts+5806)
+ ts+5825)
}
}
}
@@ -93547,11 +94245,11 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
}
}
if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+8000, 7) == 0 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11975+7) == 0 {
- p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+5806)
- } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11956+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12000+7) == 0 {
+ p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+5825)
+ } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11981+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8,
- ts+11989)
+ ts+12014)
}
}
}
@@ -93566,7 +94264,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 { /* sqlite3.c:113471:22: */
+func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr, zDbase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114382:22: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -93587,7 +94285,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+12008, 7) == 0 {
+ if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+12033, 7) == 0 {
pMod = Xsqlite3PragmaVtabRegister(tls, db, zName)
}
if pMod != 0 && Xsqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 {
@@ -93606,14 +94304,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 + 12016 /* "no such view" */
+ zMsg = ts + 12041 /* "no such view" */
} else {
- zMsg = ts + 12029 /* "no such table" */
+ zMsg = ts + 12054 /* "no such table" */
}
if zDbase != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+6501, libc.VaList(bp, zMsg, zDbase, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6508, libc.VaList(bp, zMsg, zDbase, zName))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+6511, libc.VaList(bp+24, zMsg, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6518, libc.VaList(bp+24, zMsg, zName))
}
} else {
@@ -93629,7 +94327,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 { /* sqlite3.c:113534:22: */
+func Xsqlite3LocateTableItem(tls *libc.TLS, pParse uintptr, flags U32, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114445:22: */
var zDb uintptr
if (*SrcItem)(unsafe.Pointer(p)).FpSchema != 0 {
@@ -93643,13 +94341,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 { /* sqlite3.c:113554:27: */
+func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114465:27: */
if Xsqlite3_strnicmp(tls, zName, ts+8000, 7) == 0 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5806+7) == 0 {
- return ts + 11975 /* "sqlite_schema" */
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5825+7) == 0 {
+ return ts + 12000 /* "sqlite_schema" */
}
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11989+7) == 0 {
- return ts + 11956 /* "sqlite_temp_sche..." */
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12014+7) == 0 {
+ return ts + 11981 /* "sqlite_temp_sche..." */
}
}
return zName
@@ -93665,7 +94363,7 @@ func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* sqlit
// 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 { /* sqlite3.c:113578:22: */
+func Xsqlite3FindIndex(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114489:22: */
var p uintptr = uintptr(0)
var i int32
// All mutexes are required for schema access. Make sure we hold them.
@@ -93692,7 +94390,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) { /* sqlite3.c:113598:21: */
+func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114509:21: */
Xsqlite3DeleteIndexSamples(tls, db, p)
Xsqlite3ExprDelete(tls, db, (*Index)(unsafe.Pointer(p)).FpPartIdxWhere)
Xsqlite3ExprListDelete(tls, db, (*Index)(unsafe.Pointer(p)).FaColExpr)
@@ -93708,7 +94406,7 @@ func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:1135
// 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) { /* sqlite3.c:113618:21: */
+func Xsqlite3UnlinkAndDeleteIndex(tls *libc.TLS, db uintptr, iDb int32, zIdxName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114529:21: */
var pIndex uintptr
var pHash uintptr
@@ -93740,7 +94438,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) { /* sqlite3.c:113651:21: */
+func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114562:21: */
var i int32
var j int32
for i = libc.AssignInt32(&j, 2); i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -93766,7 +94464,7 @@ func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* sqlite3.c:113
// 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) { /* sqlite3.c:113678:21: */
+func Xsqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114589:21: */
var i int32
if iDb >= 0 {
@@ -93787,7 +94485,7 @@ func Xsqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) { /* sqlite3.c
// Erase all schema information from all attached databases (including
// "main" and "temp") for a single database connection.
-func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* sqlite3.c:113702:21: */
+func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114613:21: */
var i int32
Xsqlite3BtreeEnterAll(tls, db)
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -93809,14 +94507,14 @@ func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* sqlite3
}
// This routine is called when a commit occurs.
-func Xsqlite3CommitInternalChanges(tls *libc.TLS, db uintptr) { /* sqlite3.c:113726:21: */
+func Xsqlite3CommitInternalChanges(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114637: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) { /* sqlite3.c:113735:21: */
+func Xsqlite3ColumnSetExpr(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114646:21: */
var pList uintptr
pList = *(*uintptr)(unsafe.Pointer(pTab + 64 + 16 /* &.pDfltList */))
@@ -93839,7 +94537,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 { /* sqlite3.c:113761:21: */
+func Xsqlite3ColumnExpr(tls *libc.TLS, pTab uintptr, pCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114672:21: */
if int32((*Column)(unsafe.Pointer(pCol)).FiDflt) == 0 {
return uintptr(0)
}
@@ -93856,7 +94554,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) { /* sqlite3.c:113772:21: */
+func Xsqlite3ColumnSetColl(tls *libc.TLS, db uintptr, pCol uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114683:21: */
var nColl I64
var n I64
var zNew uintptr
@@ -93875,7 +94573,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 { /* sqlite3.c:113797:27: */
+func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114708:27: */
var z uintptr
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASCOLL == 0 {
return uintptr(0)
@@ -93885,7 +94583,7 @@ func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* sqlite3.c:1137
z++
}
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASTYPE != 0 {
- for ok := true; ok; ok = *(*int8)(unsafe.Pointer(z)) != 0 {
+ for __ccgo := true; __ccgo; __ccgo = *(*int8)(unsafe.Pointer(z)) != 0 {
z++
}
}
@@ -93894,7 +94592,7 @@ func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* sqlite3.c:1137
// 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) { /* sqlite3.c:113812:21: */
+func Xsqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114723:21: */
var i int32
var pCol uintptr
@@ -93944,7 +94642,7 @@ func Xsqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) { /* s
// 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) { /* sqlite3.c:113850:29: */
+func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114761:29: */
var pIndex uintptr
var pNext uintptr
@@ -93981,7 +94679,7 @@ func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:11385
}
-func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:113907:21: */
+func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114818:21: */
// Do not delete the table until the reference count reaches zero.
if !(pTable != 0) {
return
@@ -93994,7 +94692,7 @@ func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3
// 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) { /* sqlite3.c:113919:21: */
+func Xsqlite3UnlinkAndDeleteTable(tls *libc.TLS, db uintptr, iDb int32, zTabName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114830:21: */
var p uintptr
var pDb uintptr
@@ -94016,7 +94714,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 { /* sqlite3.c:113947:21: */
+func Xsqlite3NameFromToken(tls *libc.TLS, db uintptr, pName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114858:21: */
var zName uintptr
if pName != 0 {
zName = Xsqlite3DbStrNDup(tls, db, (*Token)(unsafe.Pointer(pName)).Fz, uint64((*Token)(unsafe.Pointer(pName)).Fn))
@@ -94029,9 +94727,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) { /* sqlite3.c:113962:21: */
+func Xsqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114873:21: */
var v uintptr = Xsqlite3GetVdbe(tls, p)
- Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+5806)
+ Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+5825)
Xsqlite3VdbeAddOp4Int(tls, v, OP_OpenWrite, 0, SCHEMA_ROOT, iDb, 5)
if (*Parse)(unsafe.Pointer(p)).FnTab == 0 {
(*Parse)(unsafe.Pointer(p)).FnTab = 1
@@ -94042,7 +94740,7 @@ func Xsqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) { /* sqlite3.c
// 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 { /* sqlite3.c:113977:20: */
+func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114888:20: */
var i int32 = -1 // Database number
if zName != 0 {
var pDb uintptr
@@ -94058,7 +94756,7 @@ func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* sql
}
// "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+6308, zName) {
+ if i == 0 && 0 == Xsqlite3_stricmp(tls, ts+6313, zName) {
goto __3
}
@@ -94078,7 +94776,7 @@ func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* sql
// "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 { /* sqlite3.c:113997:20: */
+func Xsqlite3FindDb(tls *libc.TLS, db uintptr, pName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114908:20: */
var i int32 // Database number
var zName uintptr // Name we are searching for
zName = Xsqlite3NameFromToken(tls, db, pName)
@@ -94102,7 +94800,7 @@ func Xsqlite3FindDb(tls *libc.TLS, db uintptr, pName uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:114022:20: */
+func Xsqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pUnqual uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114933:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -94111,13 +94809,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+12043, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12068, 0)
return -1
}
*(*uintptr)(unsafe.Pointer(pUnqual)) = pName2
iDb = Xsqlite3FindDb(tls, db, pName1)
if iDb < 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12060, libc.VaList(bp, pName1))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12085, libc.VaList(bp, pName1))
return -1
}
} else {
@@ -94129,7 +94827,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 { /* sqlite3.c:114055:20: */
+func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114966:20: */
return libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_WriteSchema|SQLITE_Defensive) == uint64(SQLITE_WriteSchema))
}
@@ -94143,7 +94841,7 @@ func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:1140
// 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 { /* sqlite3.c:114077:20: */
+func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType uintptr, zTblName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114988:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -94158,13 +94856,13 @@ func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType
if Xsqlite3_stricmp(tls, zType, *(*uintptr)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).Finit.FazInit))) != 0 ||
Xsqlite3_stricmp(tls, zName, *(*uintptr)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).Finit.FazInit + 1*8))) != 0 ||
Xsqlite3_stricmp(tls, zTblName, *(*uintptr)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).Finit.FazInit + 2*8))) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+1546, 0) // corruptSchema() will supply the error
+ Xsqlite3ErrorMsg(tls, pParse, ts+1515, 0) // corruptSchema() will supply the error
return SQLITE_ERROR
}
} else {
if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, ts+8000, 7) ||
Xsqlite3ReadOnlyShadowTables(tls, db) != 0 && Xsqlite3ShadowTableName(tls, db, zName) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12080,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12105,
libc.VaList(bp, zName))
return SQLITE_ERROR
}
@@ -94174,7 +94872,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 { /* sqlite3.c:114115:22: */
+func Xsqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115026: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 {
}
@@ -94185,7 +94883,7 @@ func Xsqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) uintptr { /* sqlite3.c
// 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 { /* sqlite3.c:114127:20: */
+func Xsqlite3TableColumnToIndex(tls *libc.TLS, pIdx uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115038: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))) {
@@ -94205,7 +94903,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 { /* sqlite3.c:114147:20: */
+func Xsqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115058:20: */
if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasVirtual) != 0 {
var i int32
for i = 0; i <= int32(iCol); i++ {
@@ -94252,7 +94950,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 { /* sqlite3.c:114195:20: */
+func Xsqlite3TableColumnToStorage(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115106:20: */
var i int32
var n I16
@@ -94282,7 +94980,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) { /* sqlite3.c:114221:13: */
+func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115132:13: */
var iReg int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if v != 0 {
@@ -94305,16 +95003,16 @@ func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:11422
// 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) { /* sqlite3.c:114246:21: */
- bp := tls.Alloc(24)
- defer tls.Free(24)
+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: */
+ bp := tls.Alloc(32)
+ defer tls.Free(32)
var pTable uintptr
var zName uintptr // The name of the new table
var db uintptr
var v uintptr
var iDb int32 // Database number to create the table in
- // var pName uintptr at bp+16, 8
+ // var pName uintptr at bp+24, 8
var zDb uintptr
var zDb1 uintptr
@@ -94333,15 +95031,15 @@ 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 + 11989 /* "sqlite_temp_mast..." */
+ return ts + 12014 /* "sqlite_temp_mast..." */
}
- return ts + 5806 /* "sqlite_master" */
+ return ts + 5825 /* "sqlite_master" */
}())
- *(*uintptr)(unsafe.Pointer(bp + 16 /* pName */)) = pName1
+ *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)) = pName1
goto __2
__1:
// The common case
- iDb = Xsqlite3TwoPartName(tls, pParse, pName1, pName2, bp+16)
+ iDb = Xsqlite3TwoPartName(tls, pParse, pName1, pName2, bp+24)
if !(iDb < 0) {
goto __3
}
@@ -94353,7 +95051,7 @@ __3:
}
// If creating a temp table, the name may not be qualified. Unless
// the database name is "temp" anyway.
- Xsqlite3ErrorMsg(tls, pParse, ts+12122, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12147, 0)
return
__4:
;
@@ -94363,16 +95061,16 @@ __4:
iDb = 1
__5:
;
- zName = Xsqlite3NameFromToken(tls, db, *(*uintptr)(unsafe.Pointer(bp + 16 /* pName */)))
+ zName = Xsqlite3NameFromToken(tls, db, *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)))
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
goto __6
}
- Xsqlite3RenameTokenMap(tls, pParse, zName, *(*uintptr)(unsafe.Pointer(bp + 16 /* pName */)))
+ Xsqlite3RenameTokenMap(tls, pParse, zName, *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)))
__6:
;
__2:
;
- (*Parse)(unsafe.Pointer(pParse)).FsNameToken = *(*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16 /* pName */))))
+ (*Parse)(unsafe.Pointer(pParse)).FsNameToken = *(*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 24 /* pName */))))
if !(zName == uintptr(0)) {
goto __7
}
@@ -94381,7 +95079,7 @@ __7:
;
if !(Xsqlite3CheckObjectName(tls, pParse, zName, func() uintptr {
if isView != 0 {
- return ts + 10361
+ return ts + 10357
}
return ts + 8742
}(), zName) != 0) {
@@ -94400,9 +95098,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 + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}(), uintptr(0), zDb) != 0) {
goto __10
}
@@ -94440,7 +95138,13 @@ __13:
if !!(noErr != 0) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12163, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 16 /* pName */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12188,
+ libc.VaList(bp, func() uintptr {
+ if int32((*Table)(unsafe.Pointer(pTable)).FeTabType) == TABTYP_VIEW {
+ return ts + 10357 /* "view" */
+ }
+ return ts + 8742 /* "table" */
+ }(), *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */))))
goto __16
__15:
;
@@ -94454,7 +95158,7 @@ __14:
if !(Xsqlite3FindIndex(tls, db, zName, zDb1) != uintptr(0)) {
goto __17
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12187, libc.VaList(bp+8, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12209, libc.VaList(bp+16, zName))
goto begin_table_error
__17:
;
@@ -94557,8 +95261,8 @@ var aCode = [4]U8{
U8(SQLITE_CREATE_TEMP_TABLE),
U8(SQLITE_CREATE_VIEW),
U8(SQLITE_CREATE_TEMP_VIEW),
-} /* sqlite3.c:114293:21 */
-var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* sqlite3.c:114371:23 */
+} /* 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 */
// Set properties of a table column based on the (magical)
// name of the column.
@@ -94568,10 +95272,10 @@ var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* s
// with any application-generated triggers.
// Clean up the data structures associated with the RETURNING clause.
-func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* sqlite3.c:114456:13: */
+func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115368:13: */
var pHash uintptr
pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema + 56
- Xsqlite3HashInsert(tls, pHash, ts+12222, uintptr(0))
+ Xsqlite3HashInsert(tls, pHash, ts+12244, uintptr(0))
Xsqlite3ExprListDelete(tls, db, (*Returning)(unsafe.Pointer(pRet)).FpReturnEL)
Xsqlite3DbFree(tls, db, pRet)
}
@@ -94590,12 +95294,12 @@ func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* sqlite
// 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) { /* sqlite3.c:114480:21: */
+func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115392: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+12239, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12261, 0)
} else {
}
@@ -94616,7 +95320,7 @@ func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* sql
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return
}
- (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 12222 /* "sqlite_returning" */
+ (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 12244 /* "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)
@@ -94628,7 +95332,7 @@ func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* sql
(*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+12222, pRet+16) ==
+ if Xsqlite3HashInsert(tls, pHash, ts+12244, pRet+16) ==
pRet+16 {
Xsqlite3OomFault(tls, db)
}
@@ -94640,7 +95344,7 @@ func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* sql
// 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) { /* sqlite3.c:114528:21: */
+func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115440:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
*(*Token)(unsafe.Pointer(bp + 16)) = sName
@@ -94662,7 +95366,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+12273, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12295, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName))
return
}
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
@@ -94674,13 +95378,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+12296, 6) == 0 {
+ Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(6)), ts+12318, 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+12303, 9) == 0 {
+ Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(9)), ts+12325, 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--
@@ -94720,7 +95424,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+12313, libc.VaList(bp+8, z))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12335, libc.VaList(bp+8, z))
Xsqlite3DbFree(tls, db, z)
return
}
@@ -94759,7 +95463,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) { /* sqlite3.c:114641:21: */
+func Xsqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115553:21: */
var p uintptr
var pCol uintptr
p = (*Parse)(unsafe.Pointer(pParse)).FpNewTable
@@ -94806,7 +95510,7 @@ func Xsqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) { /* sqlit
//
// 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 { /* sqlite3.c:114688:21: */
+func Xsqlite3AffinityType(tls *libc.TLS, zIn uintptr, pCol uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115600:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -94880,7 +95584,7 @@ func Xsqlite3AffinityType(tls *libc.TLS, zIn uintptr, pCol uintptr) int8 { /* sq
//
// 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) { /* sqlite3.c:114765:21: */
+func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115677:21: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -94892,11 +95596,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+12339,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12361,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
} else if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12384, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12406, 0)
} else {
// A copy of pExpr is used instead of the original, as pExpr contains
// tokens that point to volatile memory.
@@ -94933,7 +95637,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) { /* sqlite3.c:114824:13: */
+func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115736: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 {
@@ -94942,12 +95646,12 @@ func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* sqlite3.c:114824:13: */
}
// Tag the given column as being part of the PRIMARY KEY
-func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { /* sqlite3.c:114835:13: */
+func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115747:13: */
*(*U16)(unsafe.Pointer(pCol + 16)) |= U16(COLFLAG_PRIMKEY)
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+12425, 0)
+ ts+12447, 0)
}
}
@@ -94967,7 +95671,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) { /* sqlite3.c:114865:21: */
+func Xsqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError int32, autoInc int32, sortOrder int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115777:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -94992,7 +95696,7 @@ __1:
goto __2
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+12477, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+12499, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto primary_key_exit
__2:
;
@@ -95081,7 +95785,7 @@ __13:
goto __17
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+12518, 0)
+ ts+12540, 0)
goto __18
__17:
Xsqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, onError, uintptr(0),
@@ -95098,7 +95802,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) { /* sqlite3.c:114942:21: */
+func Xsqlite3AddCheckConstraint(tls *libc.TLS, pParse uintptr, pCheckExpr uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115854:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -95128,7 +95832,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) { /* sqlite3.c:114976:21: */
+func Xsqlite3AddCollateType(tls *libc.TLS, pParse uintptr, pToken uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115888:21: */
var p uintptr
var i int32
var zColl uintptr // Dequoted name of collation sequence
@@ -95163,7 +95867,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) { /* sqlite3.c:115009:21: */
+func Xsqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115921:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -95183,7 +95887,7 @@ __1:
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) == PARSE_MODE_DECLARE_VTAB) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12574, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12596, 0)
goto generated_done
__2:
;
@@ -95196,13 +95900,13 @@ __3:
if !(pType != 0) {
goto __4
}
- if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+12617, (*Token)(unsafe.Pointer(pType)).Fz, 7) == 0) {
+ if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+12639, (*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+12625, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) {
+ if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, ts+12647, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) {
goto __7
}
eType = U8(COLFLAG_STORED)
@@ -95235,7 +95939,7 @@ __10:
goto generated_done
generated_error:
- Xsqlite3ErrorMsg(tls, pParse, ts+12632,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12654,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
generated_done:
Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -95258,7 +95962,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) { /* sqlite3.c:115077:21: */
+func Xsqlite3ChangeCookie(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115989:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -95272,7 +95976,7 @@ func Xsqlite3ChangeCookie(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3
//
// The estimate is conservative. It might be larger that what is
// really needed.
-func identLength(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:115093:12: */
+func identLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116005:12: */
var n int32
n = 0
__1:
@@ -95307,7 +96011,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) { /* sqlite3.c:115114:13: */
+func identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116026:13: */
var zIdent uintptr = zSignedIdent
var i int32
var j int32
@@ -95343,7 +96047,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 { /* sqlite3.c:115142:13: */
+func createTableStmt(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116054:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -95377,13 +96081,13 @@ __3:
;
n = n + identLength(tls, (*Table)(unsafe.Pointer(p)).FzName)
if n < 50 {
- zSep = ts + 1546 /* "" */
- zSep2 = ts + 12663 /* "," */
- zEnd = ts + 4880 /* ")" */
+ zSep = ts + 1515 /* "" */
+ zSep2 = ts + 12685 /* "," */
+ zEnd = ts + 4889 /* ")" */
} else {
- zSep = ts + 12665 /* "\n " */
- zSep2 = ts + 12669 /* ",\n " */
- zEnd = ts + 12674 /* "\n)" */
+ zSep = ts + 12687 /* "\n " */
+ zSep2 = ts + 12691 /* ",\n " */
+ zEnd = ts + 12696 /* "\n)" */
}
n = n + (35 + 6*int32((*Table)(unsafe.Pointer(p)).FnCol))
zStmt = Xsqlite3DbMallocRaw(tls, uintptr(0), uint64(n))
@@ -95391,7 +96095,7 @@ __3:
Xsqlite3OomFault(tls, db)
return uintptr(0)
}
- Xsqlite3_snprintf(tls, n, zStmt, ts+12677, 0)
+ Xsqlite3_snprintf(tls, n, zStmt, ts+12699, 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('(')
@@ -95425,21 +96129,21 @@ __5:
goto __6
__6:
;
- Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+3604, libc.VaList(bp, zEnd))
+ Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+3595, libc.VaList(bp, zEnd))
return zStmt
}
var azType1 = [5]uintptr{
- ts + 1546,
- ts + 12691,
- ts + 12697,
- ts + 12702,
- ts + 12707,
-} /* sqlite3.c:115172:23 */
+ ts + 1515,
+ ts + 12713,
+ ts + 12719,
+ ts + 12724,
+ ts + 12729,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116084: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 { /* sqlite3.c:115210:12: */
+func resizeIndexObject(tls *libc.TLS, db uintptr, pIdx uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116122:12: */
var zExtra uintptr
var nByte int32
if int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) >= N {
@@ -95468,7 +96172,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) { /* sqlite3.c:115237:13: */
+func estimateTableWidth(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116149:13: */
var wTable uint32 = uint32(0)
var pTabCol uintptr
var i int32
@@ -95497,7 +96201,7 @@ __3:
}
// Estimate the average size of a row for an index.
-func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:115251:13: */
+func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116163:13: */
var wIndex uint32 = uint32(0)
var i int32
var aCol uintptr = (*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol
@@ -95517,7 +96221,7 @@ func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:115251:13: *
// 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 { /* sqlite3.c:115267:12: */
+func hasColumn(tls *libc.TLS, aiCol uintptr, nCol int32, x int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116179:12: */
for libc.PostDecInt32(&nCol, 1) > 0 {
if x == int32(*(*I16)(unsafe.Pointer(libc.PostIncUintptr(&aiCol, 2)))) {
return 1
@@ -95537,7 +96241,7 @@ func hasColumn(tls *libc.TLS, aiCol uintptr, nCol int32, x int32) int32 { /* sql
// 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 { /* sqlite3.c:115289:12: */
+func isDupColumn(tls *libc.TLS, pIdx uintptr, nKey int32, pPk uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116201:12: */
var i int32
var j int32
@@ -95570,7 +96274,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) { /* sqlite3.c:115328:13: */
+func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116240:13: */
var m Bitmask = uint64(0)
var j int32
var pTab uintptr = (*Index)(unsafe.Pointer(pIdx)).FpTable
@@ -95609,7 +96313,7 @@ func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:1153
// indices with the PRIMARY KEY columns.
//
// For virtual tables, only (1) is performed.
-func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* sqlite3.c:115368:13: */
+func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116280:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -95662,10 +96366,11 @@ func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /
(*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,
uint8(SQLITE_IDXTYPE_PRIMARYKEY))
- if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
*(*U32)(unsafe.Pointer(pTab + 48)) &= libc.Uint32FromInt32(libc.CplInt32(TF_WithoutRowid))
return
}
+
pPk = Xsqlite3PrimaryKeyIndex(tls, pTab)
} else {
@@ -95771,7 +96476,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 { /* sqlite3.c:115527:20: */
+func Xsqlite3IsShadowTableOf(tls *libc.TLS, db uintptr, pTab uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116440:20: */
var nName int32 // Length of zName
var pMod uintptr // Module for the virtual table
@@ -95804,7 +96509,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) { /* sqlite3.c:115550:21: */
+func Xsqlite3MarkAllShadowTablesOf(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116463: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
@@ -95848,7 +96553,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 { /* sqlite3.c:115586:20: */
+func Xsqlite3ShadowTableName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116499: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, '_')
@@ -95885,7 +96590,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) { /* sqlite3.c:115647:21: */
+func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr, tabOpts U32, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116560:21: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -95916,7 +96621,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
// table itself. So mark it read-only.
if (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 {
if pSelect != 0 || !(int32((*Table)(unsafe.Pointer(p)).FeTabType) == TABTYP_NORM) && (*Sqlite3)(unsafe.Pointer(db)).Finit.FnewTnum != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+1546, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+1515, 0)
return
}
(*Table)(unsafe.Pointer(p)).Ftnum = (*Sqlite3)(unsafe.Pointer(db)).Finit.FnewTnum
@@ -95941,10 +96646,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+12713,
- libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1546)))
+ ts+12735,
+ libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1515)))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+12746,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12768,
libc.VaList(bp+24, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName))
}
return
@@ -95964,11 +96669,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+12773, 0)
+ ts+12795, 0)
return
}
if (*Table)(unsafe.Pointer(p)).FtabFlags&U32(TF_HasPrimaryKey) == U32(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+12823, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12845, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName))
return
}
*(*U32)(unsafe.Pointer(p + 48)) |= U32(TF_WithoutRowid | TF_NoVisibleRowid)
@@ -96012,7 +96717,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
}
}
if nNG == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12855, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12877, 0)
return
}
}
@@ -96046,11 +96751,11 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
if int32((*Table)(unsafe.Pointer(p)).FeTabType) == TABTYP_NORM {
// A regular table
zType = ts + 8742 /* "table" */
- zType2 = ts + 12899 /* "TABLE" */
+ zType2 = ts + 12921 /* "TABLE" */
} else {
// A view
- zType = ts + 10361 /* "view" */
- zType2 = ts + 12905 /* "VIEW" */
+ zType = ts + 10357 /* "view" */
+ zType2 = ts + 12927 /* "VIEW" */
}
// If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT
@@ -96075,6 +96780,11 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
var addrInsLoop int32 // Top of the loop for inserting rows
var pSelTab uintptr // A table that describes the SELECT results
+ if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_NORMAL {
+ (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR
+ (*Parse)(unsafe.Pointer(pParse)).FnErr++
+ return
+ }
regYield = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
regRec = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
regRowid = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
@@ -96122,7 +96832,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
} else {
var pEnd2 uintptr
if tabOpts != 0 {
- pEnd2 = pParse + 264
+ pEnd2 = pParse + 272
} else {
pEnd2 = pEnd
}
@@ -96131,7 +96841,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+12910, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
+ ts+12932, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
}
// A slot for the record has already been allocated in the
@@ -96139,7 +96849,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
// the information we've collected.
Xsqlite3NestedParse(tls, pParse,
- ts+12925,
+ ts+12947,
libc.VaList(bp+72, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName,
zType,
(*Table)(unsafe.Pointer(p)).FzName,
@@ -96157,14 +96867,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+13023,
+ ts+13045,
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+13065, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+13087, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0))
}
// Add the table to the in-memory representation of the database.
@@ -96201,7 +96911,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) { /* sqlite3.c:115984: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-3380500/sqlite3.c:116902:21: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -96222,7 +96932,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+13099, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13121, 0)
goto create_view_fail
__1:
;
@@ -96244,7 +96954,7 @@ __2:
Xsqlite3TwoPartName(tls, pParse, pName1, pName2, bp)
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(p)).FpSchema)
- Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+10361, *(*uintptr)(unsafe.Pointer(bp /* pName */)))
+ Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+10357, *(*uintptr)(unsafe.Pointer(bp /* pName */)))
if !(Xsqlite3FixSelect(tls, bp+8, pSelect) != 0) {
goto __3
}
@@ -96319,7 +97029,7 @@ __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 { /* sqlite3.c:116076:20: */
+func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116994:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -96359,7 +97069,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+13135, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13157, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
return 1
}
@@ -96395,9 +97105,9 @@ func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) i
// a VIEW it holds the list of column names.
Xsqlite3ColumnsFromExprList(tls, pParse, (*Table)(unsafe.Pointer(pTable)).FpCheck,
pTable+54, pTable+8)
- if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 &&
- (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 &&
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 &&
int32((*Table)(unsafe.Pointer(pTable)).FnCol) == (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSel)).FpEList)).FnExpr {
+
Xsqlite3SelectAddColumnTypeAndCollation(tls, pParse, pTable, pSel,
int8(SQLITE_AFF_NONE))
}
@@ -96434,7 +97144,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) { /* sqlite3.c:116204:13: */
+func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117122: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) {
@@ -96464,7 +97174,7 @@ func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* sqlite3.c:116
// 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) { /* sqlite3.c:116238:21: */
+func Xsqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom Pgno, iTo Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117156:21: */
var pElem uintptr
var pHash uintptr
var pDb uintptr
@@ -96490,14 +97200,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) { /* sqlite3.c:116268:13: */
+func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117186: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+13165, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13187, 0)
}
Xsqlite3VdbeAddOp3(tls, v, OP_Destroy, iTable, r1, iDb)
Xsqlite3MayAbort(tls, pParse)
@@ -96511,7 +97221,7 @@ func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /
// token for additional information.
Xsqlite3NestedParse(tls, pParse,
- ts+13180,
+ ts+13202,
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)
}
@@ -96520,7 +97230,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) { /* sqlite3.c:116298:13: */
+func destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117216: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
@@ -96566,7 +97276,7 @@ func destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* sqlite3.c:11
// 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) { /* sqlite3.c:116347:13: */
+func sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uintptr, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117265:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -96575,17 +97285,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+13247, libc.VaList(bp, i))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([24]int8{})), bp+40, ts+13269, libc.VaList(bp, i))
if Xsqlite3FindTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, bp+40, zDbName) != 0 {
Xsqlite3NestedParse(tls, pParse,
- ts+11141,
+ ts+11166,
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) { /* sqlite3.c:116370:21: */
+func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int32, isView int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117288:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -96618,7 +97328,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+13261,
+ ts+13283,
libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName))
}
@@ -96630,7 +97340,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3
// database.
Xsqlite3NestedParse(tls, pParse,
- ts+13306,
+ ts+13328,
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)
@@ -96649,7 +97359,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 { /* sqlite3.c:116443:20: */
+func Xsqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117361: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 &&
@@ -96660,12 +97370,12 @@ func Xsqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) int32 { /* sqlite3.
}
// Return true if it is not allowed to drop the given table
-func tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) int32 { /* sqlite3.c:116459:12: */
+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+8000, 7) == 0 {
- if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+3227, 4) == 0 {
+ if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+3218, 4) == 0 {
return 0
}
- if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+7000, 10) == 0 {
+ if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+6996, 10) == 0 {
return 0
}
return 1
@@ -96681,7 +97391,7 @@ func tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) int32 { /* sq
// 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) { /* sqlite3.c:116478:21: */
+func Xsqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int32, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117396:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -96749,9 +97459,9 @@ __7:
zTab = func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}()
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
zArg2 = uintptr(0)
@@ -96811,7 +97521,7 @@ __18:
if !(tableMayNotBeDropped(tls, db, pTab) != 0) {
goto __19
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13373, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13395, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
__19:
;
@@ -96821,14 +97531,14 @@ __19:
if !(isView != 0 && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW)) {
goto __20
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13401, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13423, 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+13435, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13457, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
__21:
;
@@ -96843,7 +97553,7 @@ __21:
if !!(isView != 0) {
goto __23
}
- sqlite3ClearStatTables(tls, pParse, iDb, ts+11333, (*Table)(unsafe.Pointer(pTab)).FzName)
+ sqlite3ClearStatTables(tls, pParse, iDb, ts+11358, (*Table)(unsafe.Pointer(pTab)).FzName)
Xsqlite3FkDropTable(tls, pParse, pName, pTab)
__23:
;
@@ -96869,7 +97579,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) { /* sqlite3.c:116598:21: */
+func Xsqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, pTo uintptr, pToCol uintptr, flags int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117516:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -96908,7 +97618,7 @@ __4:
goto __5
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13467,
+ ts+13489,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(iCol)*24)).FzCnName, pTo))
goto fk_end
__5:
@@ -96921,7 +97631,7 @@ __2:
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13530, 0)
+ ts+13552, 0)
goto fk_end
goto __7
__6:
@@ -97006,7 +97716,7 @@ __21:
goto __23
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13624,
+ ts+13646,
libc.VaList(bp+16, (*ExprList_item)(unsafe.Pointer(pFromCol+8+uintptr(i)*32)).FzEName))
goto fk_end
__23:
@@ -97092,7 +97802,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) { /* sqlite3.c:116730:21: */
+func Xsqlite3DeferForeignKey(tls *libc.TLS, pParse uintptr, isDeferred int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117648:21: */
var pTab uintptr
var pFKey uintptr
if libc.AssignUintptr(&pTab, (*Parse)(unsafe.Pointer(pParse)).FpNewTable) == uintptr(0) {
@@ -97117,7 +97827,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) { /* sqlite3.c:116753:13: */
+func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117671:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -97229,7 +97939,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 { /* sqlite3.c:116859:22: */
+func Xsqlite3AllocateIndexObject(tls *libc.TLS, db uintptr, nCol I16, nExtra int32, ppExtra uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117777:22: */
var p uintptr // Allocated index object
var nByte int32 // Bytes of space for Index object + arrays
@@ -97254,7 +97964,7 @@ 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 { /* sqlite3.c:116892:20: */
+func Xsqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117810:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -97263,12 +97973,12 @@ func Xsqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) int3
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+13670,
+ Xsqlite3ErrorMsg(tls, pParse, ts+13692,
libc.VaList(bp, func() uintptr {
if int32(sf) == 0 || int32(sf) == 3 {
- return ts + 13698 /* "FIRST" */
+ return ts + 13720 /* "FIRST" */
}
- return ts + 13704 /* "LAST" */
+ return ts + 13726 /* "LAST" */
}()))
return 1
}
@@ -97287,7 +97997,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) { /* sqlite3.c:116920: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-3380500/sqlite3.c:117838:21: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -97368,12 +98078,13 @@ func Xsqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
*(*uintptr)(unsafe.Pointer(bp + 248 /* zExtra */)) = uintptr(0)
pPk = uintptr(0) // PRIMARY KEY index for WITHOUT ROWID tables
- if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || (*Parse)(unsafe.Pointer(pParse)).FnErr > 0) {
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __1
}
goto exit_create_index
__1:
;
+
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) == PARSE_MODE_DECLARE_VTAB && int32(idxType) != SQLITE_IDXTYPE_PRIMARYKEY) {
goto __2
}
@@ -97426,7 +98137,7 @@ __9:
__8:
;
- Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+13709, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))
+ Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+13731, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))
if !(Xsqlite3FixSrcList(tls, bp+136, pTblName) != 0) {
goto __10
}
@@ -97447,7 +98158,7 @@ __11:
goto __12
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13715,
+ ts+13737,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_create_index
__12:
@@ -97479,21 +98190,21 @@ __6:
pTblName != uintptr(0)) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13765, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13787, 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+13793, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13815, 0)
goto exit_create_index
__16:
;
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __17
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13818, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13840, 0)
goto exit_create_index
__17:
;
@@ -97520,7 +98231,7 @@ __17:
__20:
;
- if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+13709, (*Table)(unsafe.Pointer(pTab)).FzName)) {
+ if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+13731, (*Table)(unsafe.Pointer(pTab)).FzName)) {
goto __21
}
goto exit_create_index
@@ -97535,7 +98246,7 @@ __21:
if !(Xsqlite3FindTable(tls, db, zName, uintptr(0)) != uintptr(0)) {
goto __24
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13852, libc.VaList(bp+16, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13874, libc.VaList(bp+16, zName))
goto exit_create_index
__24:
;
@@ -97547,7 +98258,7 @@ __23:
if !!(ifNotExist != 0) {
goto __26
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13886, libc.VaList(bp+24, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13908, libc.VaList(bp+24, zName))
goto __27
__26:
;
@@ -97576,7 +98287,7 @@ __29:
goto __30
__30:
;
- zName = Xsqlite3MPrintf(tls, db, ts+13910, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n))
+ zName = Xsqlite3MPrintf(tls, db, ts+13932, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n))
if !(zName == uintptr(0)) {
goto __31
}
@@ -97605,9 +98316,9 @@ __19:
zDb = (*Db)(unsafe.Pointer(pDb)).FzDbSName
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}(), uintptr(0), zDb) != 0) {
goto __34
}
@@ -97651,7 +98362,7 @@ __39:
Xsqlite3ExprListSetSortOrder(tls, pList, sortOrder, -1)
goto __38
__37:
- Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+13709)
+ Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+13731)
if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __40
}
@@ -97769,7 +98480,7 @@ __53:
goto __56
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13933, 0)
+ ts+13955, 0)
goto exit_create_index
__56:
;
@@ -97999,7 +98710,7 @@ __88:
goto __93
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13994, libc.VaList(bp+48, 0))
+ ts+14016, libc.VaList(bp+48, 0))
__93:
;
if !(int32((*Index)(unsafe.Pointer(pIdx)).FonError) == OE_Default) {
@@ -98055,8 +98766,8 @@ __81:
if !(Xsqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0) {
goto __101
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14036, 0)
- (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 117375)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14058, 0)
+ (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 118294)
goto exit_create_index
__101:
;
@@ -98113,12 +98824,12 @@ __104:
__107:
;
// A named index with an explicit CREATE INDEX statement
- zStmt = Xsqlite3MPrintf(tls, db, ts+14053,
+ zStmt = Xsqlite3MPrintf(tls, db, ts+14075,
libc.VaList(bp+56, func() uintptr {
if onError == OE_None {
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
- return ts + 14073 /* " UNIQUE" */
+ return ts + 14095 /* " UNIQUE" */
}(), n1, (*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))).Fz))
goto __106
__105:
@@ -98130,7 +98841,7 @@ __106:
// Add an entry in sqlite_schema for this index
Xsqlite3NestedParse(tls, pParse,
- ts+14081,
+ ts+14103,
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,
@@ -98146,7 +98857,7 @@ __106:
sqlite3RefillIndex(tls, pParse, pIndex, iMem)
Xsqlite3ChangeCookie(tls, pParse, iDb)
Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb,
- Xsqlite3MPrintf(tls, db, ts+14140, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+14162, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
Xsqlite3VdbeAddOp2(tls, v, OP_Expire, 0, 1)
__108:
;
@@ -98242,7 +98953,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) { /* sqlite3.c:117530:21: */
+func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118449:21: */
var a uintptr = (*Index)(unsafe.Pointer(pIdx)).FaiRowLogEst
var x LogEst
var nCopy int32 = func() int32 {
@@ -98286,11 +98997,11 @@ func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:117530:21
}
}
-var aVal = [5]LogEst{int16(33), int16(32), int16(30), int16(28), int16(26)} /* sqlite3.c:117532:23 */
+var aVal = [5]LogEst{int16(33), int16(32), int16(30), int16(28), int16(26)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118451: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) { /* sqlite3.c:117574:21: */
+func Xsqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118493:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -98304,13 +99015,13 @@ func Xsqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists in
var zTab uintptr
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- // Never called with prior errors
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
goto __1
}
goto exit_drop_index
__1:
;
+ // Never called with prior non-OOM errors
if !(SQLITE_OK != Xsqlite3ReadSchema(tls, pParse)) {
goto __2
@@ -98325,7 +99036,7 @@ __2:
if !!(ifExists != 0) {
goto __4
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14167, libc.VaList(bp, pName+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14189, libc.VaList(bp, pName+8))
goto __5
__4:
Xsqlite3CodeVerifyNamedSchema(tls, pParse, (*SrcItem)(unsafe.Pointer(pName+8)).FzDatabase)
@@ -98340,7 +99051,7 @@ __3:
goto __6
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+14185, libc.VaList(bp+8, 0))
+ ts+14207, libc.VaList(bp+8, 0))
goto exit_drop_index
__6:
;
@@ -98351,9 +99062,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 + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}()
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_DELETE, zTab, uintptr(0), zDb) != 0) {
goto __7
@@ -98381,9 +99092,9 @@ __9:
}
Xsqlite3BeginWriteOperation(tls, pParse, 1, iDb)
Xsqlite3NestedParse(tls, pParse,
- ts+14258,
+ ts+14280,
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+11329, (*Index)(unsafe.Pointer(pIndex)).FzName)
+ sqlite3ClearStatTables(tls, pParse, iDb, ts+11354, (*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)
@@ -98409,7 +99120,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 { /* sqlite3.c:117656:21: */
+func Xsqlite3ArrayAllocate(tls *libc.TLS, db uintptr, pArray uintptr, szEntry int32, pnEntry uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118575:21: */
var z uintptr
var n Sqlite3_int64 = Sqlite3_int64(libc.AssignPtrInt32(pIdx, *(*int32)(unsafe.Pointer(pnEntry))))
if n&(n-int64(1)) == int64(0) {
@@ -98436,7 +99147,7 @@ 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 { /* sqlite3.c:117686:23: */
+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)
@@ -98467,7 +99178,7 @@ func Xsqlite3IdListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pToken u
}
// Delete an IdList.
-func Xsqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:117714:21: */
+func Xsqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118633:21: */
var i int32
if pList == uintptr(0) {
return
@@ -98481,7 +99192,7 @@ func Xsqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3
// 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 { /* sqlite3.c:117728:20: */
+func Xsqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118647:20: */
var i int32
if pList == uintptr(0) {
return -1
@@ -98519,7 +99230,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 { /* sqlite3.c:117769:24: */
+func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra int32, iStart int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118688:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -98534,7 +99245,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+14318,
+ Xsqlite3ErrorMsg(tls, pParse, ts+14340,
libc.VaList(bp, SQLITE_MAX_SRCLIST))
return uintptr(0)
}
@@ -98601,7 +99312,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 { /* sqlite3.c:117858:24: */
+func Xsqlite3SrcListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pTable uintptr, pDatabase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118777:24: */
var pItem uintptr
var db uintptr
// Cannot have C without B
@@ -98640,7 +99351,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) { /* sqlite3.c:117903:21: */
+func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118822:21: */
var i int32
var pItem uintptr
@@ -98672,7 +99383,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) { /* sqlite3.c:117921:21: */
+func Xsqlite3SrcListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118840:21: */
var i int32
var pItem uintptr
if pList == uintptr(0) {
@@ -98735,7 +99446,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 { /* sqlite3.c:117955:24: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -98746,12 +99457,12 @@ func Xsqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTa
if !(!(p != 0) && (pOn != 0 || pUsing != 0)) {
goto __1
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14354,
+ Xsqlite3ErrorMsg(tls, pParse, ts+14376,
libc.VaList(bp, func() uintptr {
if pOn != 0 {
- return ts + 14390 /* "ON" */
+ return ts + 14412 /* "ON" */
}
- return ts + 14393 /* "USING" */
+ return ts + 14415 /* "USING" */
}()))
goto append_from_error
__1:
@@ -98799,7 +99510,7 @@ append_from_error:
// 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) { /* sqlite3.c:118006:21: */
+func Xsqlite3SrcListIndexedBy(tls *libc.TLS, pParse uintptr, p uintptr, pIndexedBy uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118925:21: */
if p != 0 && (*Token)(unsafe.Pointer(pIndexedBy)).Fn > uint32(0) {
var pItem uintptr
@@ -98821,7 +99532,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 { /* sqlite3.c:118032:24: */
+func Xsqlite3SrcListAppendList(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118951:24: */
if p2 != 0 {
var pNew uintptr = Xsqlite3SrcListEnlarge(tls, pParse, p1, (*SrcList)(unsafe.Pointer(p2)).FnSrc, 1)
@@ -98838,7 +99549,7 @@ 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) { /* sqlite3.c:118051:21: */
+func Xsqlite3SrcListFuncArgs(tls *libc.TLS, pParse uintptr, p uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118970:21: */
if p != 0 {
var pItem uintptr = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*112
@@ -98862,7 +99573,7 @@ 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) { /* sqlite3.c:118079:21: */
+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-- {
@@ -98873,14 +99584,14 @@ func Xsqlite3SrcListShiftJoinType(tls *libc.TLS, p uintptr) { /* sqlite3.c:11807
}
// Generate VDBE code for a BEGIN statement.
-func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* sqlite3.c:118092:21: */
+func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119011:21: */
var db uintptr
var v uintptr
var i int32
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+14399, uintptr(0), uintptr(0)) != 0 {
+ if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+14421, uintptr(0), uintptr(0)) != 0 {
return
}
v = Xsqlite3GetVdbe(tls, pParse)
@@ -98908,7 +99619,7 @@ func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* s
// 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) { /* sqlite3.c:118128:21: */
+func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119047:21: */
var v uintptr
var isRollback int32
@@ -98916,9 +99627,9 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* sql
if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION,
func() uintptr {
if isRollback != 0 {
- return ts + 14405
+ return ts + 14427
}
- return ts + 14414
+ return ts + 14436
}(), uintptr(0), uintptr(0)) != 0 {
return
}
@@ -98930,7 +99641,7 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* sql
// 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) { /* sqlite3.c:118150:21: */
+func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119069:21: */
var zName uintptr = Xsqlite3NameFromToken(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pName)
if zName != 0 {
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
@@ -98943,11 +99654,11 @@ func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) {
}
}
-var az = [3]uintptr{ts + 14399, ts + 14421, ts + 14405} /* sqlite3.c:118155:23 */
+var az = [3]uintptr{ts + 14421, ts + 14443, ts + 14427} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119074: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 { /* sqlite3.c:118170:20: */
+func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119089:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -98959,7 +99670,7 @@ func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.
rc = Xsqlite3BtreeOpen(tls, (*Sqlite3)(unsafe.Pointer(db)).FpVfs, uintptr(0), db, bp, 0, flags)
if rc != SQLITE_OK {
Xsqlite3ErrorMsg(tls, pParse,
- ts+14429, 0)
+ ts+14451, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = rc
return 1
}
@@ -98973,13 +99684,13 @@ func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.
return 0
}
-var flags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TEMP_DB /* sqlite3.c:118175:22 */
+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 */
// 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) { /* sqlite3.c:118205:13: */
+func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119124:13: */
if libc.Bool32((*Parse)(unsafe.Pointer(pToplevel)).FcookieMask&(YDbMask(YDbMask(1))<<iDb) != YDbMask(0)) == 0 {
*(*YDbMask)(unsafe.Pointer(pToplevel + 116)) |= YDbMask(YDbMask(1)) << iDb
@@ -98989,7 +99700,7 @@ func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int
}
}
-func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:118217:21: */
+func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119136:21: */
sqlite3CodeVerifySchemaAtToplevel(tls, func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99000,7 +99711,7 @@ func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* sql
// If argument zDb is NULL, then call sqlite3CodeVerifySchema() for each
// attached database. Otherwise, invoke it for the database named zDb only.
-func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) { /* sqlite3.c:118226:21: */
+func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119145:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -99022,7 +99733,7 @@ func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) {
// rollback the whole transaction. For operations where all constraints
// can be checked before any changes are made to the database, it is never
// necessary to undo a write and the checkpoint should not be set.
-func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int32, iDb int32) { /* sqlite3.c:118250:21: */
+func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int32, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119169:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99039,7 +99750,7 @@ func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int
// inserting multiple rows in a table, or inserting a row and index entries.)
// If an abort occurs after some of these writes have completed, then it will
// be necessary to undo the completed writes.
-func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:118264:21: */
+func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119183:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99063,7 +99774,7 @@ func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:118264:21:
// particular, it prevents us from writing an effective
// implementation of sqlite3AssertMayAbort()) and so we have chosen
// to take the safe route and skip the optimization.
-func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:118285:21: */
+func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119204:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99076,7 +99787,7 @@ func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:118285:21: *
// Code an OP_Halt that causes the vdbe to return an SQLITE_CONSTRAINT
// error. The onError parameter determines which (if any) of the statement
// and/or current transaction is rolled back.
-func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onError int32, p4 uintptr, p4type I8, p5Errmsg U8) { /* sqlite3.c:118295:21: */
+func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onError int32, p4 uintptr, p4type I8, p5Errmsg U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119214:21: */
var v uintptr
v = Xsqlite3GetVdbe(tls, pParse)
@@ -99089,7 +99800,7 @@ func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onErro
}
// Code an OP_Halt due to UNIQUE or PRIMARY KEY constraint violation.
-func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx uintptr) { /* sqlite3.c:118317:21: */
+func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119236:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -99102,17 +99813,17 @@ func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx
Xsqlite3StrAccumInit(tls, bp+8, (*Parse)(unsafe.Pointer(pParse)).Fdb, uintptr(0), 0,
*(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136)))
if (*Index)(unsafe.Pointer(pIdx)).FaColExpr != 0 {
- Xsqlite3_str_appendf(tls, bp+8, ts+14499, libc.VaList(bp, (*Index)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3_str_appendf(tls, bp+8, ts+14521, libc.VaList(bp, (*Index)(unsafe.Pointer(pIdx)).FzName))
} else {
for j = 0; j < int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol); j++ {
var zCol uintptr
zCol = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j)*2)))*24)).FzCnName
if j != 0 {
- Xsqlite3_str_append(tls, bp+8, ts+14510, 2)
+ Xsqlite3_str_append(tls, bp+8, ts+14532, 2)
}
Xsqlite3_str_appendall(tls, bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)
- Xsqlite3_str_append(tls, bp+8, ts+1559, 1)
+ Xsqlite3_str_append(tls, bp+8, ts+1528, 1)
Xsqlite3_str_appendall(tls, bp+8, zCol)
}
}
@@ -99128,18 +99839,18 @@ func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx
}
// Code an OP_Halt due to non-unique rowid.
-func Xsqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab uintptr) { /* sqlite3.c:118353:21: */
+func Xsqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119272:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
var zMsg uintptr
var rc int32
if int32((*Table)(unsafe.Pointer(pTab)).FiPKey) >= 0 {
- zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+11902, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
+ zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+11927, 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+14513, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
+ zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+14535, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
rc = SQLITE_CONSTRAINT | int32(10)<<8
}
Xsqlite3HaltConstraint(tls, pParse, rc, onError, zMsg, int8(-7),
@@ -99148,7 +99859,7 @@ func Xsqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab
// 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 { /* sqlite3.c:118377:12: */
+func collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119296:12: */
var i int32
for i = 0; i < int32((*Index)(unsafe.Pointer(pIndex)).FnColumn); i++ {
@@ -99163,7 +99874,7 @@ func collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) int32 { /* sql
// 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) { /* sqlite3.c:118396:13: */
+func reindexTable(tls *libc.TLS, pParse uintptr, pTab uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119315:13: */
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
var pIndex uintptr // An index associated with pTab
@@ -99180,7 +99891,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) { /* sqlite3.c:118417:13: */
+func reindexDatabases(tls *libc.TLS, pParse uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119336: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
@@ -99222,7 +99933,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) { /* sqlite3.c:118449:21: */
+func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119368:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99282,14 +99993,14 @@ func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
sqlite3RefillIndex(tls, pParse, pIndex, -1)
return
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14522, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14544, 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 { /* sqlite3.c:118509:24: */
+func Xsqlite3KeyInfoOfIndex(tls *libc.TLS, pParse uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119428:24: */
var i int32
var nCol int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnColumn)
var nKey int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)
@@ -99335,7 +100046,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 { /* sqlite3.c:118553:20: */
+func Xsqlite3CteNew(tls *libc.TLS, pParse uintptr, pName uintptr, pArglist uintptr, pQuery uintptr, eM10d U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119472:20: */
var pNew uintptr
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -99355,7 +100066,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) { /* sqlite3.c:118582:13: */
+func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119501:13: */
Xsqlite3ExprListDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpCols)
Xsqlite3SelectDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpSelect)
@@ -99363,7 +100074,7 @@ func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:118582:13:
}
// Free the contents of the CTE object passed as the second argument.
-func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:118592:21: */
+func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119511:21: */
cteClear(tls, db, pCte)
Xsqlite3DbFree(tls, db, pCte)
@@ -99373,7 +100084,7 @@ func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:1
// 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 { /* sqlite3.c:118604:21: */
+func Xsqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119523:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99392,7 +100103,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+14568, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14590, libc.VaList(bp, zName))
}
}
}
@@ -99416,7 +100127,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) { /* sqlite3.c:118651:21: */
+func Xsqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119570:21: */
if pWith != 0 {
var i int32
for i = 0; i < (*With)(unsafe.Pointer(pWith)).FnCte; i++ {
@@ -99446,7 +100157,7 @@ func Xsqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) { /* sqlite3.c
// 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) { /* sqlite3.c:118686:13: */
+func callCollNeeded(tls *libc.TLS, db uintptr, enc int32, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119605:13: */
if (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded != 0 {
var zExternal uintptr = Xsqlite3DbStrDup(tls, db, zName)
@@ -99477,7 +100188,7 @@ func callCollNeeded(tls *libc.TLS, db uintptr, enc int32, zName uintptr) { /* sq
// 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 { /* sqlite3.c:118715:12: */
+func synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119634:12: */
var pColl2 uintptr
var z uintptr = (*CollSeq)(unsafe.Pointer(pColl)).FzName
var i int32
@@ -99492,7 +100203,7 @@ func synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) int32 { /* sqlite3.c
return SQLITE_ERROR
}
-var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* sqlite3.c:118719:19 */
+var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119638: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
@@ -99503,7 +100214,7 @@ var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* sql
// 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 { /* sqlite3.c:118742:20: */
+func Xsqlite3CheckCollSeq(tls *libc.TLS, pParse uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119661: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
@@ -99527,7 +100238,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 { /* sqlite3.c:118770:16: */
+func findCollSeqEntry(tls *libc.TLS, db uintptr, zName uintptr, create int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119689:16: */
var pColl uintptr
pColl = Xsqlite3HashFind(tls, db+640, zName)
@@ -99572,7 +100283,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 { /* sqlite3.c:118822:24: */
+func Xsqlite3FindCollSeq(tls *libc.TLS, db uintptr, enc U8, zName uintptr, create int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119741:24: */
var pColl uintptr
if zName != 0 {
@@ -99588,7 +100299,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) { /* sqlite3.c:118844:21: */
+func Xsqlite3SetTextEncoding(tls *libc.TLS, db uintptr, enc U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119763:21: */
(*Sqlite3)(unsafe.Pointer(db)).Fenc = enc
// EVIDENCE-OF: R-08308-17224 The default collating function for all
@@ -99608,7 +100319,7 @@ func Xsqlite3SetTextEncoding(tls *libc.TLS, db uintptr, enc U8) { /* sqlite3.c:1
// 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 { /* sqlite3.c:118867:24: */
+func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119786:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99630,7 +100341,7 @@ func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zN
}
if p == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+14598, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14620, libc.VaList(bp, zName))
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR | int32(1)<<8
}
return p
@@ -99654,7 +100365,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 { /* sqlite3.c:118918:24: */
+func Xsqlite3LocateCollSeq(tls *libc.TLS, pParse uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119837: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
@@ -99695,7 +100406,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 { /* sqlite3.c:118961:12: */
+func matchQuality(tls *libc.TLS, p uintptr, nArg int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119880:12: */
var match int32
// Wrong number of arguments means "no match"
@@ -99731,7 +100442,7 @@ func matchQuality(tls *libc.TLS, p uintptr, nArg int32, enc U8) int32 { /* sqlit
// 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 { /* sqlite3.c:118997:24: */
+func Xsqlite3FunctionSearch(tls *libc.TLS, h int32, zFunc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119916:24: */
var p uintptr
for p = *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3BuiltinFunctions)) + uintptr(h)*8)); p != 0; p = *(*uintptr)(unsafe.Pointer(p + 64)) {
@@ -99743,7 +100454,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) { /* sqlite3.c:119014:21: */
+func Xsqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119933:21: */
var i int32
for i = 0; i < nDef; i++ {
var pOther uintptr
@@ -99781,7 +100492,7 @@ func Xsqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) { /* sq
// 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 { /* sqlite3.c:119060:24: */
+func Xsqlite3FindFunction(tls *libc.TLS, db uintptr, zName uintptr, nArg int32, enc U8, createFlag U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119978:24: */
var p uintptr // Iterator variable
var pBest uintptr = uintptr(0) // Best match found so far
var bestScore int32 = 0 // Score of best match
@@ -99861,7 +100572,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) { /* sqlite3.c:119152:21: */
+func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120070:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -99896,7 +100607,7 @@ func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* sqlite3.c:119152:21: */
// 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 { /* sqlite3.c:119184:23: */
+func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120102: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})))
@@ -99943,7 +100654,7 @@ func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* sqli
// 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 { /* sqlite3.c:119235:22: */
+func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120153:22: */
var pItem uintptr = pSrc + 8 /* &.a */
var pTab uintptr
@@ -99959,6 +100670,15 @@ func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr
return pTab
}
+// 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: */
+ Xsqlite3VdbeAddOp0(tls, v, OP_FkCheck)
+ Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, regCounter, 1)
+ Xsqlite3VdbeSetNumCols(tls, v, 1)
+ Xsqlite3VdbeSetColName(tls, v, 0, COLNAME_NAME, zColName, uintptr(0))
+}
+
// Return true if table pTab is read-only.
//
// A table is read-only if any of the following are true:
@@ -99973,7 +100693,7 @@ func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr
// 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 { /* sqlite3.c:119266:12: */
+func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120194: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))
@@ -99992,16 +100712,16 @@ func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:119285:20: */
+func Xsqlite3IsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr, viewOk int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120213:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
if tabIsReadOnly(tls, pParse, pTab) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+14629, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14651, 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+14658, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14680, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
return 1
}
return 0
@@ -100010,7 +100730,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) { /* sqlite3.c:119306:21: */
+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: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -100042,7 +100762,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) { /* sqlite3.c:119445:21: */
+func Xsqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120373:21: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -100102,7 +100822,8 @@ func Xsqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(AuthContext{})))
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __1
}
goto delete_from_cleanup
@@ -100340,7 +101061,7 @@ __24:
// ONEPASS_OFF: Two-pass approach - use a FIFO for rowids/PK values.
// ONEPASS_SINGLE: One-pass approach - at most one row deleted.
// ONEPASS_MULTI: One-pass approach - any number of rows may be deleted.
- pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, uintptr(0), uintptr(0), wcf, iTabCur+1)
+ pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, uintptr(0), uintptr(0), uintptr(0), wcf, iTabCur+1)
if !(pWInfo == uintptr(0)) {
goto __25
}
@@ -100592,9 +101313,7 @@ __60:
if !(memCnt != 0) {
goto __61
}
- Xsqlite3VdbeAddOp2(tls, v, OP_ChngCntRow, memCnt, 1)
- Xsqlite3VdbeSetNumCols(tls, v, 1)
- Xsqlite3VdbeSetColName(tls, v, 0, COLNAME_NAME, ts+14696, uintptr(0))
+ Xsqlite3CodeChangeCount(tls, v, memCnt, ts+14718)
__61:
;
@@ -100649,7 +101368,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) { /* sqlite3.c:119893: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-3380500/sqlite3.c:120821: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
@@ -100739,7 +101458,7 @@ 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+11189) {
+ if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11214) {
Xsqlite3VdbeAppendP4(tls, v, pTab, -6)
}
if int32(eMode) != ONEPASS_OFF {
@@ -100786,7 +101505,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) { /* sqlite3.c:120045:21: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -100875,7 +101594,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 { /* sqlite3.c:120110: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-3380500/sqlite3.c:121038:20: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var j int32
var regBase int32
@@ -100931,7 +101650,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) { /* sqlite3.c:120172:21: */
+func Xsqlite3ResolvePartIdxLabel(tls *libc.TLS, pParse uintptr, iLabel int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121100:21: */
if iLabel != 0 {
Xsqlite3VdbeResolveLabel(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, iLabel)
}
@@ -100959,7 +101678,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 { /* sqlite3.c:120206:16: */
+func sqlite3GetFuncCollSeq(tls *libc.TLS, context uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121134:16: */
var pOp uintptr
pOp = (*Vdbe)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(context)).FpVdbe)).FaOp + uintptr((*Sqlite3_context)(unsafe.Pointer(context)).FiOp-1)*24
@@ -100969,14 +101688,14 @@ func sqlite3GetFuncCollSeq(tls *libc.TLS, context uintptr) uintptr { /* sqlite3.
// Indicate that the accumulator load should be skipped on this
// iteration of the aggregate loop.
-func sqlite3SkipAccumulatorLoad(tls *libc.TLS, context uintptr) { /* sqlite3.c:120219:13: */
+func sqlite3SkipAccumulatorLoad(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121147: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) { /* sqlite3.c:120228:13: */
+func minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121156:13: */
var i int32
var mask int32 // 0 for min() or 0xffffffff for max()
var iBest int32
@@ -101006,7 +101725,7 @@ func minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
}
// Return the type of the argument.
-func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:120258:13: */
+func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121186:13: */
var i int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) - 1
_ = NotUsed
@@ -101017,10 +101736,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 + 6118, ts + 6113, ts + 7875, ts + 7870, ts + 6108} /* sqlite3.c:120263:21 */
+var azType2 = [5]uintptr{ts + 6123, ts + 6118, ts + 7873, ts + 7868, ts + 6113} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121191: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: */
+ _ = 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) { /* sqlite3.c:120283:13: */
+func lengthFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121223:13: */
_ = argc
switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
@@ -101069,7 +101796,7 @@ func lengthFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
//
// 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) { /* sqlite3.c:120325:13: */
+func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121265:13: */
_ = argc
switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
@@ -101081,7 +101808,7 @@ func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
// 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+14709, -1)
+ Xsqlite3_result_error(tls, context, ts+14731, -1)
return
}
iVal = -iVal
@@ -101123,7 +101850,7 @@ func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
// 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) { /* sqlite3.c:120374:13: */
+func instrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121314:13: */
var zHaystack uintptr
var zNeedle uintptr
var nHaystack int32
@@ -101237,8 +101964,8 @@ endInstrOOM:
goto endInstr
}
-// Implementation of the printf() function.
-func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:120442:13: */
+// 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: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -101259,7 +101986,9 @@ func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
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) }{Xsqlite3OomFault})))
+ *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
+ }{Xsqlite3OomFault})))
}
}
@@ -101273,7 +102002,7 @@ func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
// 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) { /* sqlite3.c:120478:13: */
+func substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121418:13: */
var z uintptr
var z2 uintptr
var len int32
@@ -101381,7 +102110,7 @@ func substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
}
// Implementation of the round() function
-func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:120573:13: */
+func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121513:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -101419,7 +102148,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
return +0.5
}()))
} else {
- zBuf = Xsqlite3_mprintf(tls, ts+14726, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */))))
+ zBuf = Xsqlite3_mprintf(tls, ts+14748, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */))))
if zBuf == uintptr(0) {
Xsqlite3_result_error_nomem(tls, context)
return
@@ -101435,7 +102164,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
// 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 { /* sqlite3.c:120614:13: */
+func contextMalloc(tls *libc.TLS, context uintptr, nByte I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121554:13: */
var z uintptr
var db uintptr = Xsqlite3_context_db_handle(tls, context)
@@ -101452,7 +102181,7 @@ func contextMalloc(tls *libc.TLS, context uintptr, nByte I64) uintptr { /* sqlit
}
// Implementation of the upper() and lower() SQL functions.
-func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:120635:13: */
+func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121575:13: */
var z1 uintptr
var z2 uintptr
var i int32
@@ -101473,7 +102202,7 @@ func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
}
}
-func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:120654:13: */
+func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121594:13: */
var z1 uintptr
var z2 uintptr
var i int32
@@ -101502,7 +102231,7 @@ func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
// 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) { /* sqlite3.c:120687:13: */
+func randomFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121627:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -101526,7 +102255,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) { /* sqlite3.c:120713:13: */
+func randomBlob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121653:13: */
var n Sqlite3_int64
var p uintptr
@@ -101544,7 +102273,7 @@ func randomBlob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
// 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) { /* sqlite3.c:120737:13: */
+func last_insert_rowid(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121677:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -101559,7 +102288,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) { /* sqlite3.c:120757:13: */
+func changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121697:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -101568,7 +102297,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) { /* sqlite3.c:120771:13: */
+func total_changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121711:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -101583,20 +102312,20 @@ type compareInfo = struct {
FmatchOne U8
FmatchSet U8
FnoCase U8
-} /* sqlite3.c:120786:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121726: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('[')} /* sqlite3.c:120806:33 */
+var globInfo = compareInfo{FmatchAll: U8('*'), FmatchOne: U8('?'), FmatchSet: U8('[')} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121746: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)} /* sqlite3.c:120809:33 */
+var likeInfoNorm = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_'), FnoCase: U8(1)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121749: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('_')} /* sqlite3.c:120812:33 */
+var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121752:33 */
// Possible error returns from patternMatch()
@@ -101636,7 +102365,7 @@ var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* sqlite3
// 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 { /* sqlite3.c:120859:12: */
+func patternCompare(tls *libc.TLS, zPattern uintptr, zString uintptr, pInfo uintptr, matchOther U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121799:12: */
bp := tls.Alloc(19)
defer tls.Free(19)
*(*uintptr)(unsafe.Pointer(bp)) = zPattern
@@ -101822,13 +102551,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 { /* sqlite3.c:120992:16: */
+func Xsqlite3_strglob(tls *libc.TLS, zGlobPattern uintptr, zString uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121932: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 { /* sqlite3.c:121000:16: */
+func Xsqlite3_strlike(tls *libc.TLS, zPattern uintptr, zStr uintptr, esc uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121940:16: */
return patternCompare(tls, zPattern, zStr, uintptr(unsafe.Pointer(&likeInfoNorm)), esc)
}
@@ -101846,7 +102575,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) { /* sqlite3.c:121026:13: */
+func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121966:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -101869,7 +102598,7 @@ func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
nPat = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv)))
if nPat > *(*int32)(unsafe.Pointer(db + 136 + 8*4)) {
- Xsqlite3_result_error(tls, context, ts+14731, -1)
+ Xsqlite3_result_error(tls, context, ts+14753, -1)
return
}
if argc == 3 {
@@ -101881,7 +102610,7 @@ func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
}
if Xsqlite3Utf8CharLen(tls, *(*uintptr)(unsafe.Pointer(bp)), -1) != 1 {
Xsqlite3_result_error(tls, context,
- ts+14764, -1)
+ ts+14786, -1)
return
}
escape = Xsqlite3Utf8Read(tls, bp)
@@ -101909,7 +102638,7 @@ func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
// 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) { /* sqlite3.c:121097:13: */
+func nullifFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122037:13: */
var pColl uintptr = sqlite3GetFuncCollSeq(tls, context)
_ = NotUsed
if Xsqlite3MemCompare(tls, *(*uintptr)(unsafe.Pointer(argv)), *(*uintptr)(unsafe.Pointer(argv + 1*8)), pColl) != 0 {
@@ -101919,7 +102648,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) { /* sqlite3.c:121113:13: */
+func versionFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122053:13: */
_ = NotUsed
_ = NotUsed2
// IMP: R-48699-48617 This function is an SQL wrapper around the
@@ -101930,7 +102659,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) { /* sqlite3.c:121129:13: */
+func sourceidFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122069:13: */
_ = NotUsed
_ = NotUsed2
// IMP: R-24470-31136 This function is an SQL wrapper around the
@@ -101941,19 +102670,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) { /* sqlite3.c:121145:13: */
+func errlogFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122085:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
_ = argc
_ = context
- Xsqlite3_log(tls, Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv))), ts+3604, 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+3595, 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) { /* sqlite3.c:121161:13: */
+func compileoptionusedFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122101:13: */
var zOptName uintptr
_ = argc
@@ -101968,7 +102697,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) { /* sqlite3.c:121185:13: */
+func compileoptiongetFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122125:13: */
var n int32
_ = argc
@@ -101983,50 +102712,52 @@ 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'),
-} /* sqlite3.c:121203:19 */
-
-// Implementation of the QUOTE() function. This function takes a single
-// argument. If the argument is numeric, the return value is the same as
-// the argument. If the argument is NULL, the return value is the string
-// "NULL". Otherwise, the argument is enclosed in single quotes with
-// single-quote escapes.
-func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121215:13: */
- bp := tls.Alloc(80)
- defer tls.Free(80)
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122143:19 */
- _ = argc
- switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
+// 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: */
+ bp := tls.Alloc(40)
+ defer tls.Free(40)
+
+ // As currently implemented, the string must be initially empty.
+ // we might relax this requirement in the future, but that will
+ // require enhancements to the implementation.
+
+ switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_FLOAT:
{
var r1 float64
- // var r2 float64 at bp+72, 8
-
- // var zBuf [50]int8 at bp+16, 50
+ // var r2 float64 at bp+32, 8
- r1 = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv)))
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+16, ts+4848, libc.VaList(bp, r1))
- Xsqlite3AtoF(tls, bp+16, bp+72, 20, uint8(SQLITE_UTF8))
- if r1 != *(*float64)(unsafe.Pointer(bp + 72)) {
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+16, ts+14809, libc.VaList(bp+8, r1))
+ var zVal uintptr
+ r1 = Xsqlite3_value_double(tls, pValue)
+ Xsqlite3_str_appendf(tls, pStr, ts+4857, 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+14831, libc.VaList(bp+8, r1))
+ }
}
- Xsqlite3_result_text(tls, context, bp+16, -1, libc.UintptrFromInt32(-1))
break
}
case SQLITE_INTEGER:
{
- Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv)))
+ Xsqlite3_str_appendf(tls, pStr, ts+1295, libc.VaList(bp+16, Xsqlite3_value_int64(tls, pValue)))
break
}
case SQLITE_BLOB:
{
- var zText uintptr = uintptr(0)
- var zBlob uintptr = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv)))
- var nBlob int32 = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv)))
+ var zBlob uintptr = Xsqlite3_value_blob(tls, pValue)
+ var nBlob int32 = Xsqlite3_value_bytes(tls, pValue)
// No encoding change
- zText = contextMalloc(tls, context, int64(2)*I64(nBlob)+int64(4))
- if zText != 0 {
+ Xsqlite3StrAccumEnlarge(tls, pStr, nBlob*2+4)
+ if int32((*StrAccum)(unsafe.Pointer(pStr)).FaccError) == 0 {
+ var zText uintptr = (*StrAccum)(unsafe.Pointer(pStr)).FzText
var i int32
for i = 0; i < nBlob; i++ {
*(*int8)(unsafe.Pointer(zText + uintptr(i*2+2))) = hexdigits[int32(*(*int8)(unsafe.Pointer(zBlob + uintptr(i))))>>4&0x0F]
@@ -102036,61 +102767,60 @@ func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
*(*int8)(unsafe.Pointer(zText + uintptr(nBlob*2+3))) = int8(0)
*(*int8)(unsafe.Pointer(zText)) = int8('X')
*(*int8)(unsafe.Pointer(zText + 1)) = int8('\'')
- Xsqlite3_result_text(tls, context, zText, -1, libc.UintptrFromInt32(-1))
- Xsqlite3_free(tls, zText)
+ (*StrAccum)(unsafe.Pointer(pStr)).FnChar = U32(nBlob*2 + 3)
}
break
}
case SQLITE_TEXT:
{
- var i int32
- var j int32
- var n U64
- var zArg uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv)))
- var z uintptr
-
- if zArg == uintptr(0) {
- return
- }
- i = 0
- n = uint64(0)
- for ; *(*uint8)(unsafe.Pointer(zArg + uintptr(i))) != 0; i++ {
- if int32(*(*uint8)(unsafe.Pointer(zArg + uintptr(i)))) == '\'' {
- n++
- }
- }
- z = contextMalloc(tls, context, I64(i)+I64(n)+int64(3))
- if z != 0 {
- *(*int8)(unsafe.Pointer(z)) = int8('\'')
- i = 0
- j = 1
- for ; *(*uint8)(unsafe.Pointer(zArg + uintptr(i))) != 0; i++ {
- *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8(*(*uint8)(unsafe.Pointer(zArg + uintptr(i))))
- if int32(*(*uint8)(unsafe.Pointer(zArg + uintptr(i)))) == '\'' {
- *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8('\'')
- }
- }
- *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8('\'')
- *(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0)
- Xsqlite3_result_text(tls, context, z, j, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
- }
+ var zArg uintptr = Xsqlite3_value_text(tls, pValue)
+ Xsqlite3_str_appendf(tls, pStr, ts+14838, libc.VaList(bp+24, zArg))
break
}
default:
{
- Xsqlite3_result_text(tls, context, ts+1547, 4, uintptr(0))
+ Xsqlite3_str_append(tls, pStr, ts+1516, 4)
break
}
}
}
+// Implementation of the QUOTE() function.
+//
+// The quote(X) function returns the text of an SQL literal which is the
+// value of its argument suitable for inclusion into an SQL statement.
+// Strings are surrounded by single-quotes with escapes on interior quotes
+// 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: */
+ bp := tls.Alloc(32)
+ defer tls.Free(32)
+
+ // var str Sqlite3_str at bp, 32
+
+ var db uintptr = Xsqlite3_context_db_handle(tls, context)
+
+ _ = argc
+ 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})))
+ 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))
+ }
+}
+
// 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) { /* sqlite3.c:121291:13: */
+func unicodeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122240:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102104,7 +102834,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) { /* sqlite3.c:121306:13: */
+func charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122255:13: */
var z uintptr
var zOut uintptr
var i int32
@@ -102142,7 +102872,7 @@ func charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
// 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) { /* sqlite3.c:121347:13: */
+func hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122296:13: */
var i int32
var n int32
var pBlob uintptr
@@ -102180,7 +102910,7 @@ func hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
}
// The zeroblob(N) function returns a zero-filled blob of size N bytes.
-func zeroblobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121375:13: */
+func zeroblobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122324:13: */
var n I64
var rc int32
@@ -102199,7 +102929,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) { /* sqlite3.c:121398:13: */
+func replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122347:13: */
var zStr uintptr // The input string A
var zPattern uintptr // The pattern string B
var zRep uintptr // The replacement string C
@@ -102288,7 +103018,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) { /* sqlite3.c:121491:13: */
+func trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122440:13: */
var zIn uintptr // Input string
var zCharSet uintptr // Set of characters to trim
var nIn uint32 // Number of bytes in input
@@ -102391,8 +103121,8 @@ func trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
Xsqlite3_result_text(tls, context, zIn, int32(nIn), libc.UintptrFromInt32(-1))
}
-var lenOne = [1]uint32{uint32(1)} /* sqlite3.c:121513:27 */
-var azOne = [1]uintptr{uintptr(ts + 10769 /* " " */)} /* sqlite3.c:121514:26 */
+var lenOne = [1]uint32{uint32(1)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122462:27 */
+var azOne = [1]uintptr{uintptr(ts + 10786 /* " " */)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122463: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
@@ -102401,7 +103131,7 @@ var azOne = [1]uintptr{uintptr(ts + 10769 /* " " */)} /* sqlite3.c:121514:26 */
//
// 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) { /* sqlite3.c:121604:13: */
+func soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122553:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102413,7 +103143,7 @@ func soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
zIn = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv)))
if zIn == uintptr(0) {
- zIn = ts + 1546 /* "" */
+ zIn = ts + 1515 /* "" */
}
for i = 0; *(*U8)(unsafe.Pointer(zIn + uintptr(i))) != 0 && !(int32(Xsqlite3CtypeMap[*(*U8)(unsafe.Pointer(zIn + uintptr(i)))])&0x02 != 0); i++ {
}
@@ -102439,7 +103169,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+14816, 4, uintptr(0))
+ Xsqlite3_result_text(tls, context, ts+14841, 4, uintptr(0))
}
}
@@ -102452,10 +103182,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),
-} /* sqlite3.c:121612:30 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122561:30 */
// A function that loads a shared-library extension then returns NULL.
-func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121657:13: */
+func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122606:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102467,7 +103197,7 @@ func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
// 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+11941, -1)
+ Xsqlite3_result_error(tls, context, ts+11966, -1)
return
}
@@ -102491,11 +103221,11 @@ type SumCtx1 = struct {
Foverflow U8
Fapprox U8
F__ccgo_pad1 [6]byte
-} /* sqlite3.c:121688:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122637:9 */
// An instance of the following structure holds the context of a
// sum() or avg() aggregate computation.
-type SumCtx = SumCtx1 /* sqlite3.c:121688:23 */
+type SumCtx = SumCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122637:23 */
// Routines used to compute the sum, average, and total.
//
@@ -102505,7 +103235,7 @@ type SumCtx = SumCtx1 /* sqlite3.c:121688:23 */
// 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) { /* sqlite3.c:121707:13: */
+func sumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122656:13: */
var p uintptr
var type1 int32
@@ -102527,7 +103257,7 @@ func sumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
}
}
-func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121729:13: */
+func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122678:13: */
var p uintptr
var type1 int32
@@ -102550,12 +103280,12 @@ func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
}
}
-func sumFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121754:13: */
+func sumFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122703: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+14709, -1)
+ Xsqlite3_result_error(tls, context, ts+14731, -1)
} else if (*SumCtx)(unsafe.Pointer(p)).Fapprox != 0 {
Xsqlite3_result_double(tls, context, (*SumCtx)(unsafe.Pointer(p)).FrSum)
} else {
@@ -102564,7 +103294,7 @@ func sumFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121754:13: */
}
}
-func avgFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121767:13: */
+func avgFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122716:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
if p != 0 && (*SumCtx)(unsafe.Pointer(p)).Fcnt > int64(0) {
@@ -102572,7 +103302,7 @@ func avgFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121767:13: */
}
}
-func totalFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121774:13: */
+func totalFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122723:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
// (double)0 In case of SQLITE_OMIT_FLOATING_POINT...
@@ -102586,14 +103316,14 @@ func totalFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121774:13: */
// The following structure keeps track of state information for the
// count() aggregate function.
-type CountCtx1 = struct{ Fn I64 } /* sqlite3.c:121785:9 */
+type CountCtx1 = struct{ Fn I64 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122734:9 */
// The following structure keeps track of state information for the
// count() aggregate function.
-type CountCtx = CountCtx1 /* sqlite3.c:121785:25 */
+type CountCtx = CountCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122734:25 */
// Routines to implement the count() aggregate function.
-func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121796:13: */
+func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122745: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 {
@@ -102607,7 +103337,7 @@ func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
}
-func countFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121812:13: */
+func countFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122761:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
Xsqlite3_result_int64(tls, context, func() int64 {
@@ -102618,7 +103348,7 @@ func countFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121812:13: */
}())
}
-func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:121818:13: */
+func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122767: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
@@ -102628,7 +103358,7 @@ func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sql
}
// Routines to implement min() and max() aggregate functions.
-func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:121836:13: */
+func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122785:13: */
var pArg uintptr = *(*uintptr)(unsafe.Pointer(argv))
var pBest uintptr
_ = NotUsed
@@ -102666,7 +103396,7 @@ func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
}
}
-func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* sqlite3.c:121874:13: */
+func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122823:13: */
var pRes uintptr
pRes = Xsqlite3_aggregate_context(tls, context, 0)
if pRes != 0 {
@@ -102679,11 +103409,11 @@ func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* sqli
}
}
-func minMaxValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:121885:13: */
+func minMaxValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122834:13: */
minMaxValueFinalize(tls, context, 1)
}
-func minMaxFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121891:13: */
+func minMaxFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122840:13: */
minMaxValueFinalize(tls, context, 0)
}
@@ -102699,9 +103429,9 @@ type GroupConcatCtx = struct {
FnAccum int32
FnFirstSepLength int32
FpnSepLengths uintptr
-} /* sqlite3.c:121916:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122865:3 */
-func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121918:13: */
+func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122867:13: */
var zVal uintptr
var pGCC uintptr
var zSep uintptr
@@ -102766,7 +103496,7 @@ func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
}
-func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121989:13: */
+func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122938:13: */
var pGCC uintptr
_ = argc // Suppress unused parameter warning
@@ -102808,7 +103538,7 @@ func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr
}
}
-func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122035:13: */
+func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122984:13: */
var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0)
if pGCC != 0 {
Xsqlite3ResultStrAccum(tls, context, pGCC)
@@ -102816,7 +103546,7 @@ func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122035:1
}
}
-func groupConcatValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122046:13: */
+func groupConcatValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122995:13: */
var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0)
if pGCC != 0 {
var pAccum uintptr = pGCC
@@ -102834,8 +103564,8 @@ func groupConcatValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122046:13:
// 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) { /* sqlite3.c:122070:21: */
- var rc int32 = Xsqlite3_overload_function(tls, db, ts+14821, 2)
+func Xsqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123019:21: */
+ var rc int32 = Xsqlite3_overload_function(tls, db, ts+14846, 2)
if rc == SQLITE_NOMEM {
Xsqlite3OomFault(tls, db)
@@ -102845,7 +103575,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) { /* sqlite3.c:122083:21: */
+func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123032:21: */
var pInfo uintptr
var flags int32
if caseSensitive != 0 {
@@ -102855,14 +103585,14 @@ func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3
pInfo = uintptr(unsafe.Pointer(&likeInfoNorm))
flags = SQLITE_FUNC_LIKE
}
- Xsqlite3CreateFunc(tls, db, ts+14827, 2, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct {
+ Xsqlite3CreateFunc(tls, db, ts+14852, 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+14827, 3, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct {
+ Xsqlite3CreateFunc(tls, db, ts+14852, 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+14827, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
- *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14827, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
+ *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14852, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
+ *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14852, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
}
// pExpr points to an expression which implements a function. If
@@ -102880,7 +103610,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 { /* sqlite3.c:122116:20: */
+func Xsqlite3IsLikeFunction(tls *libc.TLS, db uintptr, pExpr uintptr, pIsNocase uintptr, aWc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123065:20: */
var pDef uintptr
var nExpr int32
@@ -102936,7 +103666,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) { /* sqlite3.c:122187:13: */
+func ceilingFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123136:13: */
switch Xsqlite3_value_numeric_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
case SQLITE_INTEGER:
@@ -102965,11 +103695,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 { /* sqlite3.c:122214:15: */
+func xCeil(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123163:15: */
return libc.Xceil(tls, x)
}
-func xFloor(tls *libc.TLS, x float64) float64 { /* sqlite3.c:122215:15: */
+func xFloor(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123164:15: */
return libc.Xfloor(tls, x)
}
@@ -102979,7 +103709,7 @@ func xFloor(tls *libc.TLS, x float64) float64 { /* sqlite3.c:122215:15: */
// 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) { /* sqlite3.c:122225:13: */
+func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123174:13: */
var x float64
var b float64
var ans float64
@@ -103036,18 +103766,18 @@ func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqli
}
// Functions to converts degrees to radians and radians to degrees.
-func degToRad(tls *libc.TLS, x float64) float64 { /* sqlite3.c:122275:15: */
+func degToRad(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123224:15: */
return x * (float64(3.14159265358979323846) / 180.0)
}
-func radToDeg(tls *libc.TLS, x float64) float64 { /* sqlite3.c:122276:15: */
+func radToDeg(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123225: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) { /* sqlite3.c:122283:13: */
+func math1Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123232:13: */
var type0 int32
var v0 float64
var ans float64
@@ -103068,7 +103798,7 @@ func math1Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
// 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) { /* sqlite3.c:122305:13: */
+func math2Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123254:13: */
var type0 int32
var type1 int32
var v0 float64
@@ -103094,13 +103824,13 @@ func math2Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
}
// Implementation of 0-argument pi() function.
-func piFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122328:13: */
+func piFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123277:13: */
Xsqlite3_result_double(tls, context, 3.14159265358979323846)
}
// Implementation of sign(X) function.
-func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122342:13: */
+func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123291:13: */
var type0 int32
var x float64
_ = argc
@@ -103128,117 +103858,120 @@ func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
// a consequence of calling sqlite3_initialize()).
//
// After this routine runs
-func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* sqlite3.c:122364:21: */
+func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123313:21: */
Xsqlite3AlterFunctions(tls)
Xsqlite3WindowFunctions(tls)
Xsqlite3RegisterDateTimeFunctions(tls)
+ Xsqlite3RegisterJsonFunctions(tls)
Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aBuiltinFunc)), int32(uint64(unsafe.Sizeof(aBuiltinFunc))/uint64(unsafe.Sizeof(FuncDef{}))))
}
-var aBuiltinFunc = [99]FuncDef{
+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 + 14832},
- {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 + 14852},
- {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 + 14865},
- {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 + 14883},
+ {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 + 14857},
+ {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 + 14877},
+ {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 + 14890},
+ {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 + 14908},
//**** Regular functions ****
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 14892},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14900},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14900},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14915},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14941},
- {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 + 14966},
- {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 + 14975},
- {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 + 14986},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_OFFSET | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 14993},
- {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 + 15007},
- {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 + 15007},
- {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 + 15013},
- {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 + 15013},
- {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 + 15019},
- {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 + 15019},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15024},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15024},
- {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 + 15024},
- {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 + 15028},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 15028},
- {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 + 15028},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15032},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 15039},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15046},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15052},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15059},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15067},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15072},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15076},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15076},
- {FnArg: int8(1), 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 + 15094},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15098},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15105},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15112},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15123},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15130},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15145},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15162},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15173},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15179},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15197},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15205},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15219},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), 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 + 15236},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15236},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15243},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15243},
- {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 + 15253},
- {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 + 15257},
- {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 + 15263},
- {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 + 15267},
- {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 + 15267},
- {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 + 15273},
- {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 + 15273},
-
- {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 + 15286},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14827},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14827},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15291},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15291},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15300},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15305},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15313},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15319},
- {FnArg: int8(1), 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_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 15328},
- {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 + 15332},
- {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 + 15338},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15328},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15343},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15347},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15351},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15357},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15361},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15366},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15371},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15376},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15382},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15386},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15390},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15394},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15399},
- {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 + 15415},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15421},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15427},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15432},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15440},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15448},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15451},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15291},
- {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 + 15456}} /* sqlite3.c:122375:18 */
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 14917},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14925},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14925},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14940},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14966},
+ {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 + 14991},
+ {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 + 15000},
+ {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 + 15011},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_OFFSET | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15018},
+ {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 + 15032},
+ {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 + 15032},
+ {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 + 15038},
+ {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 + 15038},
+ {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 + 15044},
+ {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 + 15044},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15049},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15049},
+ {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 + 15049},
+ {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 + 15053},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 15053},
+ {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 + 15053},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15057},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15064},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 15072},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15079},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15085},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15092},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15099},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15107},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15112},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15116},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15116},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15122},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15128},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15134},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15138},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15145},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15152},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15163},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15170},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15185},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15202},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15213},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15219},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15237},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15245},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15259},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15267},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15276},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15276},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15283},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15283},
+ {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 + 15293},
+ {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 + 15297},
+ {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 + 15303},
+ {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 + 15307},
+ {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 + 15307},
+ {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 + 15313},
+ {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 + 15313},
+
+ {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 + 15326},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14852},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14852},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15331},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15331},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15340},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15345},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15353},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15359},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15365},
+ {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 + 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 + 15372},
+ {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 + 15378},
+ {FnArg: int8(2), 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), FpUserData: 0, FxSFunc: 0, FzName: ts + 15383},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15387},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15391},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15397},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15401},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15406},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15411},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15416},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15422},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15426},
+ {FnArg: int8(1), 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(1), 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 + 15461},
+ {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 + 15480},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15488},
+ {FnArg: int8(1), 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_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15331},
+ {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 + 15496}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123324:18 */
//************* End of func.c ***********************************************
//************* Begin file fkey.c *******************************************
@@ -103413,7 +104146,7 @@ var aBuiltinFunc = [99]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 { /* sqlite3.c:122725:20: */
+func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey uintptr, ppIdx uintptr, paiCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123677:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -103524,7 +104257,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+15460,
+ ts+15500,
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)
@@ -103559,7 +104292,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) { /* sqlite3.c:122862: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-3380500/sqlite3.c:123814: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
@@ -103689,7 +104422,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 { /* sqlite3.c:123015:13: */
+func exprTableRegister(tls *libc.TLS, pParse uintptr, pTab uintptr, regBase int32, iCol I16) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123967:13: */
var pExpr uintptr
var pCol uintptr
var zColl uintptr
@@ -103716,7 +104449,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 { /* sqlite3.c:123047:13: */
+func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCol I16) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123999:13: */
var pExpr uintptr = Xsqlite3Expr(tls, db, TK_COLUMN, uintptr(0))
if pExpr != 0 {
@@ -103757,7 +104490,7 @@ func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCo
//
// 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) { /* sqlite3.c:123095: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-3380500/sqlite3.c:124047:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -103855,7 +104588,7 @@ func fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, p
// clause. For each row found, increment either the deferred or immediate
// foreign key constraint counter.
if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
- pWInfo = Xsqlite3WhereBegin(tls, pParse, pSrc, pWhere, uintptr(0), uintptr(0), uint16(0), 0)
+ pWInfo = Xsqlite3WhereBegin(tls, pParse, pSrc, pWhere, uintptr(0), uintptr(0), uintptr(0), uint16(0), 0)
Xsqlite3VdbeAddOp2(tls, v, OP_FkCounter, int32((*FKey)(unsafe.Pointer(pFKey)).FisDeferred), nIncr)
if pWInfo != 0 {
Xsqlite3WhereEnd(tls, pWInfo)
@@ -103881,7 +104614,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 { /* sqlite3.c:123224:21: */
+func Xsqlite3FkReferences(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124176:21: */
return Xsqlite3HashFind(tls, (*Table)(unsafe.Pointer(pTab)).FpSchema+80, (*Table)(unsafe.Pointer(pTab)).FzName)
}
@@ -103891,7 +104624,7 @@ func Xsqlite3FkReferences(tls *libc.TLS, pTab uintptr) uintptr { /* sqlite3.c:12
//
// 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) { /* sqlite3.c:123236:13: */
+func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124188:13: */
if p != 0 {
var pStep uintptr = (*Trigger)(unsafe.Pointer(p)).Fstep_list
Xsqlite3ExprDelete(tls, dbMem, (*TriggerStep)(unsafe.Pointer(pStep)).FpWhere)
@@ -103905,7 +104638,7 @@ func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* sqlite3.c:123
// 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) { /* sqlite3.c:123252:21: */
+func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124204: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 {
@@ -103938,7 +104671,7 @@ func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* sqli
// then the equivalent of "DELETE FROM <tbl>" is executed before dropping
// the table from the database. Triggers are disabled while running this
// DELETE, but foreign key actions are not.
-func Xsqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uintptr) { /* sqlite3.c:123283:21: */
+func Xsqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124235: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
@@ -104001,7 +104734,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 { /* sqlite3.c:123346:12: */
+func fkChildIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124298: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
@@ -104025,7 +104758,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 { /* sqlite3.c:123373:12: */
+func fkParentIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124325: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
@@ -104049,7 +104782,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 { /* sqlite3.c:123402:12: */
+func isSetNullAction(tls *libc.TLS, pParse uintptr, pFKey uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124354:12: */
var pTop uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -104084,7 +104817,7 @@ func isSetNullAction(tls *libc.TLS, pParse uintptr, pFKey uintptr) int32 { /* sq
// 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) { /* sqlite3.c:123435:21: */
+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: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -104286,7 +105019,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 { /* sqlite3.c:123638:20: */
+func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124590:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -104345,7 +105078,7 @@ func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* sql
// 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 { /* sqlite3.c:123688:20: */
+func Xsqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124640: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 {
@@ -104413,7 +105146,7 @@ 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 { /* sqlite3.c:123756:16: */
+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)
@@ -104445,8 +105178,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 + 6317, Fn: uint32(3)} // Literal "old" token
- *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 6313, Fn: uint32(3)} // Literal "new" token
+ *(*Token)(unsafe.Pointer(bp + 48 /* tOld */)) = Token{Fz: ts + 6324, Fn: uint32(3)} // Literal "old" token
+ *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 6320, 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
@@ -104534,7 +105267,7 @@ func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey 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+5059)
+ pRaise = Xsqlite3Expr(tls, db, TK_RAISE, ts+5068)
if pRaise != 0 {
(*Expr)(unsafe.Pointer(pRaise)).FaffExpr = int8(OE_Abort)
}
@@ -104615,7 +105348,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) { /* sqlite3.c:123948:21: */
+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: */
// 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
@@ -104636,7 +105369,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) { /* sqlite3.c:123980:21: */
+func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124932:21: */
var pFKey uintptr // Iterator variable
var pNext uintptr // Copy of pFKey->pNextFrom
@@ -104696,7 +105429,7 @@ func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* sqlite3.c:12
//
// 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) { /* sqlite3.c:124046:21: */
+func Xsqlite3OpenTable(tls *libc.TLS, pParse uintptr, iCur int32, iDb int32, pTab uintptr, opcode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124998:21: */
var v uintptr
v = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -104738,7 +105471,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 { /* sqlite3.c:124093:27: */
+func Xsqlite3IndexAffinityStr(tls *libc.TLS, db uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125045: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
@@ -104817,7 +105550,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) { /* sqlite3.c:124172:21: */
+func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125124:21: */
var i int32
var j int32
var zColAff uintptr
@@ -104854,7 +105587,7 @@ func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) {
*(*int8)(unsafe.Pointer(zColAff + uintptr(libc.PostIncInt32(&j, 1)))) = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(i)*24)).Faffinity
}
}
- for ok := true; ok; ok = j >= 0 && int32(*(*int8)(unsafe.Pointer(zColAff + uintptr(j)))) <= SQLITE_AFF_BLOB {
+ for __ccgo := true; __ccgo; __ccgo = j >= 0 && int32(*(*int8)(unsafe.Pointer(zColAff + uintptr(j)))) <= SQLITE_AFF_BLOB {
*(*int8)(unsafe.Pointer(zColAff + uintptr(libc.PostDecInt32(&j, 1)))) = int8(0)
}
(*Table)(unsafe.Pointer(pTab)).FzColAff = zColAff
@@ -104875,7 +105608,7 @@ func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) {
// have been opened at any point in the VDBE program. This is used to see if
// a statement of the form "INSERT INTO <iDb, pTab> SELECT ..." can
// run without using a temporary table for the results of the SELECT.
-func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* sqlite3.c:124233:12: */
+func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125185:12: */
var v uintptr = Xsqlite3GetVdbe(tls, p)
var i int32
var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v)
@@ -104911,7 +105644,7 @@ func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* sq
// 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 { /* sqlite3.c:124270:12: */
+func exprColumnFlagUnion(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125222: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))
@@ -104924,7 +105657,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) { /* sqlite3.c:124286:21: */
+func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore int32, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125238:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -104987,7 +105720,7 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in
// compute dependencies and mark remove the COLSPAN_NOTAVAIL mark, as
// they are needed.
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = -iRegStore
- for ok := true; ok; ok = pRedo != 0 && eProgress != 0 {
+ for __ccgo := true; __ccgo; __ccgo = pRedo != 0 && eProgress != 0 {
eProgress = 0
pRedo = uintptr(0)
for i = 0; i < int32((*Table)(unsafe.Pointer(pTab)).FnCol); i++ {
@@ -105011,7 +105744,7 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in
}
}
if pRedo != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+7840, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7838, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName))
}
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0
}
@@ -105037,7 +105770,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 { /* sqlite3.c:124410:12: */
+func autoIncBegin(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125362:12: */
var memId int32 = 0 // Register holding maximum rowid
if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Autoincrement) != U32(0) &&
@@ -105091,7 +105824,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) { /* sqlite3.c:124461:21: */
+func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125413: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
@@ -105131,7 +105864,7 @@ func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:12
}
}
-var iLn1 int32 = 0 /* sqlite3.c:124475:22 */
+var iLn1 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125427:22 */
var autoInc = [12]VdbeOpList{
/* 0 */ {Fopcode: U8(OP_Null)},
/* 1 */ {Fopcode: U8(OP_Rewind), Fp2: int8(10)},
@@ -105145,7 +105878,7 @@ var autoInc = [12]VdbeOpList{
/* 9 */ {Fopcode: U8(OP_Next), Fp2: int8(2)},
/* 10 */ {Fopcode: U8(OP_Integer)},
/* 11 */ {Fopcode: U8(OP_Close)},
-} /* sqlite3.c:124476:29 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125428:29 */
// Update the maximum rowid for an autoincrement calculation.
//
@@ -105153,7 +105886,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) { /* sqlite3.c:124522:13: */
+func autoIncStep(tls *libc.TLS, pParse uintptr, memId int32, regRowid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125474:13: */
if memId > 0 {
Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_MemMax, memId, regRowid)
}
@@ -105164,7 +105897,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) { /* sqlite3.c:124535:29: */
+func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125487:29: */
var p uintptr
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -105195,16 +105928,16 @@ func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:124535:29: *
}
}
-var iLn2 int32 = 0 /* sqlite3.c:124542:22 */
+var iLn2 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125494: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)},
-} /* sqlite3.c:124543:29 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125495:29 */
-func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:124572:21: */
+func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125524:21: */
if (*Parse)(unsafe.Pointer(pParse)).FpAinc != 0 {
autoIncrementEnd(tls, pParse)
}
@@ -105305,7 +106038,7 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:1245
// transfer values form intermediate table into <table>
// end loop
// D: cleanup
-func Xsqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uintptr, pColumn uintptr, onError int32, pUpsert uintptr) { /* sqlite3.c:124691:21: */
+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: */
bp := tls.Alloc(188)
defer tls.Free(188)
@@ -105398,12 +106131,14 @@ func Xsqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
aRegIdx = uintptr(0) // Mask of trigger times
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __1
}
goto insert_cleanup
__1:
;
+
(*SelectDest)(unsafe.Pointer(bp + 80 /* &dest */)).FiSDParm = 0 // Suppress a harmless compiler warning
// If the Select object is really just a simple VALUES() list with a
@@ -105485,7 +106220,10 @@ __8:
// very fast and which reduce fragmentation of indices.
//
// This is the 2nd template.
- if !(pColumn == uintptr(0) && xferOptimization(tls, pParse, pTab, pSelect, onError, iDb) != 0) {
+ if !(pColumn == uintptr(0) &&
+ pSelect != uintptr(0) &&
+ pTrigger == uintptr(0) &&
+ xferOptimization(tls, pParse, pTab, pSelect, onError, iDb) != 0) {
goto __9
}
@@ -105575,7 +106313,7 @@ __23:
goto __24
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15505,
+ ts+15545,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName))
goto insert_cleanup
__24:
@@ -105600,7 +106338,7 @@ __20:
bIdListInOrder = U8(0)
goto __27
__26:
- Xsqlite3ErrorMsg(tls, pParse, ts+15546,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15586,
libc.VaList(bp+8, pTabList+8, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa+uintptr(i)*16)).FzName))
(*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1)
goto insert_cleanup
@@ -105639,12 +106377,14 @@ __11:
(*SelectDest)(unsafe.Pointer(bp + 80 /* &dest */)).FnSdst = int32((*Table)(unsafe.Pointer(pTab)).FnCol)
rc = Xsqlite3Select(tls, pParse, pSelect, bp+80)
regFromSelect = (*SelectDest)(unsafe.Pointer(bp + 80 /* &dest */)).FiSdst
- if !(rc != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || (*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
+
+ if !(rc != 0 || (*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __30
}
goto insert_cleanup
__30:
;
+
Xsqlite3VdbeEndCoroutine(tls, v, regYield)
Xsqlite3VdbeJumpHere(tls, v, addrTop-1) // label B:
@@ -105770,7 +106510,7 @@ __42:
goto __47
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15578,
+ ts+15618,
libc.VaList(bp+24, pTabList+8, int32((*Table)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn))
goto insert_cleanup
__47:
@@ -105780,7 +106520,7 @@ __36:
if !(pColumn != uintptr(0) && nColumn != (*IdList)(unsafe.Pointer(pColumn)).FnId) {
goto __48
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15630, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15670, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId))
goto insert_cleanup
__48:
;
@@ -105836,7 +106576,7 @@ __50:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __56
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15655,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15695,
libc.VaList(bp+64, (*Table)(unsafe.Pointer(pTab)).FzName))
goto insert_cleanup
__56:
@@ -105844,7 +106584,7 @@ __56:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
goto __57
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15701, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+15741, 0)
goto insert_cleanup
__57:
;
@@ -106328,9 +107068,7 @@ __122:
if !(regRowCount != 0) {
goto __123
}
- Xsqlite3VdbeAddOp2(tls, v, OP_ChngCntRow, regRowCount, 1)
- Xsqlite3VdbeSetNumCols(tls, v, 1)
- Xsqlite3VdbeSetColName(tls, v, 0, COLNAME_NAME, ts+15722, uintptr(0))
+ Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+15762)
__123:
;
@@ -106354,7 +107092,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 { /* sqlite3.c:125444:12: */
+func checkConstraintExprNode(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126402:12: */
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN {
if int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) >= 0 {
@@ -106381,7 +107119,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 { /* sqlite3.c:125473:20: */
+func Xsqlite3ExprReferencesUpdatedColumn(tls *libc.TLS, pExpr uintptr, aiChng uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126431:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -106415,7 +107153,7 @@ type IndexListTerm1 = struct {
Fp uintptr
Fix int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:125506:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126464:9 */
// The sqlite3GenerateConstraintChecks() routine usually wants to visit
// the indexes of a table in the order provided in the Table->pIndex list.
@@ -106426,7 +107164,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 /* sqlite3.c:125506:30 */
+type IndexListTerm = IndexListTerm1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126464:30 */
type IndexIterator1 = struct {
FeType int32
Fi int32
@@ -106434,12 +107172,12 @@ type IndexIterator1 = struct {
Flx struct{ FpIdx uintptr }
F__ccgo_pad1 [8]byte
}
-} /* sqlite3.c:125507:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126465:9 */
-type IndexIterator = IndexIterator1 /* sqlite3.c:125507:30 */
+type IndexIterator = IndexIterator1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126465:30 */
// Return the first index on the list
-func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* sqlite3.c:125531:14: */
+func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126489:14: */
if (*IndexIterator)(unsafe.Pointer(pIter)).FeType != 0 {
*(*int32)(unsafe.Pointer(pIx)) = (*IndexListTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pIter + 8 + 8 /* &.aIdx */)))).Fix
@@ -106452,7 +107190,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 { /* sqlite3.c:125543:14: */
+func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126501: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)) {
@@ -106558,7 +107296,7 @@ func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* s
// 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) { /* sqlite3.c:125650: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-3380500/sqlite3.c:126608:21: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -106675,7 +107413,7 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
fallthrough
case OE_Fail:
{
- var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+11902, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
+ var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+11927, 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)
@@ -107416,7 +108154,7 @@ 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) { /* sqlite3.c:126508:13: */
+func codeWithoutRowidPreupdate(tls *libc.TLS, pParse uintptr, pTab uintptr, iCur int32, regData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127466:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var r int32 = Xsqlite3GetTempReg(tls, pParse)
@@ -107433,7 +108171,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) { /* sqlite3.c:126536: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-3380500/sqlite3.c:127494: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
@@ -107536,7 +108274,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 { /* sqlite3.c:126624: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-3380500/sqlite3.c:127582:20: */
var i int32
var iDb int32
var iDataCur int32
@@ -107614,7 +108352,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 { /* sqlite3.c:126703:12: */
+func xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127661: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) {
@@ -107672,7 +108410,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 { /* sqlite3.c:126764:12: */
+func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uintptr, onError int32, iDbDest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127722: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
@@ -107693,18 +108431,12 @@ func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uint
var regData int32
var regRowid int32 // Registers holding data and rowid
- if pSelect == uintptr(0) {
- return 0 // Must be of the form INSERT INTO ... SELECT ...
- }
if (*Parse)(unsafe.Pointer(pParse)).FpWith != 0 || (*Select)(unsafe.Pointer(pSelect)).FpWith != 0 {
// Do not attempt to process this query if there are an WITH clauses
// attached to it. Proceeding may generate a false "no such table: xxx"
// error if pSelect reads from a CTE named "xxx".
return 0
}
- if Xsqlite3TriggerList(tls, pParse, pDest) != 0 {
- return 0 // tab1 must not have triggers
- }
if int32((*Table)(unsafe.Pointer(pDest)).FeTabType) == TABTYP_VTAB {
return 0 // tab1 must not be a virtual table
}
@@ -108058,7 +108790,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 { /* sqlite3.c:127180:16: */
+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: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -108079,13 +108811,13 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Sqlite3_ca
if !!(Xsqlite3SafetyCheckOk(tls, db) != 0) {
goto __1
}
- return Xsqlite3MisuseError(tls, 127193)
+ return Xsqlite3MisuseError(tls, 128146)
__1:
;
if !(zSql == uintptr(0)) {
goto __2
}
- zSql = ts + 1546 /* "" */
+ zSql = ts + 1515 /* "" */
__2:
;
@@ -108268,7 +109000,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 /* sqlite3.c:127667:13 */
+type Sqlite3_loadext_entry = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:128627:13 */
// The following macros redefine the API routines so that they are
// redirected through the global sqlite3_api structure.
@@ -108595,7 +109327,14 @@ var sqlite3Apis = Sqlite3_api_routines{
Ftotal_changes64: 0,
// Version 3.37.0 and later
Fautovacuum_pages: 0,
-} /* sqlite3.c:128106:35 */
+ // Version 3.38.0 and later
+ Ferror_offset: 0,
+ Fvtab_rhs_value: 0,
+ Fvtab_distinct: 0,
+ Fvtab_in: 0,
+ Fvtab_in_first: 0,
+ Fvtab_in_next: 0,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129073:35 */
// True if x is the directory separator character
@@ -108609,7 +109348,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 { /* sqlite3.c:128483:12: */
+func sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129457:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -108653,7 +109392,7 @@ __1:
if !(pzErrMsg != 0) {
goto __3
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+11941, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+11966, 0)
__3:
;
return SQLITE_ERROR
@@ -108663,7 +109402,7 @@ __2:
if zProc != 0 {
zEntry = zProc
} else {
- zEntry = ts + 15736 /* "sqlite3_extensio..." */
+ zEntry = ts + 15776 /* "sqlite3_extensio..." */
}
// tag-20210611-1. Some dlopen() implementations will segfault if given
@@ -108683,7 +109422,7 @@ __5:
if !(ii < int32(uint64(unsafe.Sizeof(azEndings))/uint64(unsafe.Sizeof(uintptr(0)))) && handle == uintptr(0)) {
goto __7
}
- zAltFile = Xsqlite3_mprintf(tls, ts+11902, libc.VaList(bp, zFile, azEndings[ii]))
+ zAltFile = Xsqlite3_mprintf(tls, ts+11927, libc.VaList(bp, zFile, azEndings[ii]))
if !(zAltFile == uintptr(0)) {
goto __8
}
@@ -108729,7 +109468,7 @@ __9:
return SQLITE_NOMEM
__11:
;
- libc.Xmemcpy(tls, zAltEntry, ts+15759, uint64(8))
+ libc.Xmemcpy(tls, zAltEntry, ts+15799, uint64(8))
iFile = ncFile - 1
__12:
if !(iFile >= 0 && !(int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '/')) {
@@ -108743,7 +109482,7 @@ __13:
__14:
;
iFile++
- if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+15768, 3) == 0) {
+ if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+15808, 3) == 0) {
goto __15
}
iFile = iFile + 3
@@ -108767,7 +109506,7 @@ __17:
goto __18
__18:
;
- libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+15772, uint64(6))
+ libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+15812, uint64(6))
zEntry = zAltEntry
xInit = Xsqlite3OsDlSym(tls, pVfs, handle, zEntry)
__10:
@@ -108785,7 +109524,7 @@ __10:
}
// zErrmsg would be NULL if not so
Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)),
- ts+15778, libc.VaList(bp+16, zEntry, zFile))
+ ts+15818, libc.VaList(bp+16, zEntry, zFile))
Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
__22:
;
@@ -108812,7 +109551,7 @@ __24:
if !(pzErrMsg != 0) {
goto __25
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+15821, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+15861, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))))
__25:
;
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
@@ -108852,7 +109591,7 @@ extension_not_found:
}
// zErrmsg would be NULL if not so
Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)),
- ts+15853, libc.VaList(bp+40, FILENAME_MAX, zFile))
+ ts+15893, libc.VaList(bp+40, FILENAME_MAX, zFile))
Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
__29:
;
@@ -108862,10 +109601,10 @@ __28:
}
var azEndings = [1]uintptr{
- ts + 15890,
-} /* sqlite3.c:128501:21 */
+ ts + 15930,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129475:21 */
-func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:128634:16: */
+func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129608:16: */
var rc int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
rc = sqlite3LoadExtension(tls, db, zFile, zProc, pzErrMsg)
@@ -108876,7 +109615,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) { /* sqlite3.c:128652:21: */
+func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129626:21: */
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnExtension; i++ {
@@ -108887,7 +109626,7 @@ func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:128652:21
// 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 { /* sqlite3.c:128665:16: */
+func Xsqlite3_enable_load_extension(tls *libc.TLS, db uintptr, onoff int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129639:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if onoff != 0 {
*(*U64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LoadExtension | SQLITE_LoadExtFunc)
@@ -108907,15 +109646,15 @@ type sqlite3AutoExtList = struct {
FnExt U32
F__ccgo_pad1 [4]byte
FaExt uintptr
-} /* sqlite3.c:128685:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129659: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 /* sqlite3.c:128685:35 */
-var sqlite3Autoext = sqlite3AutoExtList{} /* sqlite3.c:128689:3 */
+type Sqlite3AutoExtList = sqlite3AutoExtList /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129659:35 */
+var sqlite3Autoext = sqlite3AutoExtList{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129663:3 */
// The "wsdAutoext" macro will resolve to the autoextension
// state vector. If writable static data is unsupported on the target,
@@ -108925,7 +109664,7 @@ var sqlite3Autoext = sqlite3AutoExtList{} /* sqlite3.c:128689:3 */
// Register a statically linked extension that is automatically
// loaded by every new database connection.
-func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* sqlite3.c:128711:16: */
+func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129685:16: */
var rc int32 = SQLITE_OK
rc = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -108966,7 +109705,7 @@ func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* sqlite3.c:
//
// 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 { /* sqlite3.c:128758:16: */
+func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129732:16: */
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
var i int32
var n int32 = 0
@@ -108985,7 +109724,7 @@ func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* sql
}
// Reset the automatic extension loading mechanism.
-func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* sqlite3.c:128783:17: */
+func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129757:17: */
if Xsqlite3_initialize(tls) == SQLITE_OK {
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
@@ -109000,7 +109739,7 @@ func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* sqlite3.c:128783:17: */
// Load all automatic extensions.
//
// If anything goes wrong, set an error in the database connection.
-func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:128805:21: */
+func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129779:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -109031,7 +109770,7 @@ func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:128805
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+15893, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))))
+ ts+15933, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))))
go1 = 0
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))
@@ -109076,68 +109815,68 @@ func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:128805
// 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 + 4980,
- ts + 15932,
+ ts + 4989,
+ ts + 15972,
ts + 8742,
- ts + 15936,
- ts + 15941,
- ts + 15944,
- ts + 15954,
- ts + 15964,
- ts + 15970,
- ts + 15974,
- ts + 15979,
+ ts + 15976,
+ ts + 15981,
ts + 15984,
- ts + 15992,
- ts + 16003,
- ts + 16006,
-
- ts + 16013,
- ts + 15974,
- ts + 15979,
- ts + 16020,
- ts + 16025,
- ts + 16028,
- ts + 16035,
- ts + 15970,
- ts + 15974,
- ts + 16041,
+ ts + 15994,
+ ts + 16004,
+ ts + 16010,
+ ts + 16014,
+ ts + 16019,
+ ts + 16024,
+ ts + 16032,
+ ts + 16043,
ts + 16046,
- ts + 16051,
- ts + 15974,
- ts + 16055,
- ts + 15979,
- ts + 16063,
- ts + 16067,
- ts + 16072,
- ts + 11333,
- ts + 11329,
- ts + 16078,
- ts + 16083,
- ts + 16088,
- ts + 15932,
- ts + 15974,
- ts + 16093,
- ts + 16100,
+
+ ts + 16053,
+ ts + 16014,
+ ts + 16019,
+ ts + 16060,
+ ts + 16065,
+ ts + 16068,
+ ts + 16075,
+ ts + 16010,
+ ts + 16014,
+ ts + 16081,
+ ts + 16086,
+ ts + 16091,
+ ts + 16014,
+ ts + 16095,
+ ts + 16019,
+ ts + 16103,
ts + 16107,
+ ts + 16112,
+ ts + 11358,
+ ts + 11354,
+ ts + 16118,
+ ts + 16123,
+ ts + 16128,
+ ts + 15972,
+ ts + 16014,
+ ts + 16133,
+ ts + 16140,
+ ts + 16147,
ts + 8742,
- ts + 16115,
- ts + 4983,
- ts + 16121,
-
- ts + 15932,
- ts + 15974,
- ts + 16126,
- ts + 16131,
- ts + 15328,
- ts + 16136,
+ ts + 16155,
+ ts + 4992,
+ ts + 16161,
+
+ ts + 15972,
+ ts + 16014,
+ ts + 16166,
+ ts + 16171,
+ ts + 15368,
+ ts + 16176,
- ts + 16149,
- ts + 16158,
- ts + 16165,
+ ts + 16189,
+ ts + 16198,
+ ts + 16205,
- ts + 16176,
-} /* sqlite3.c:128946:19 */
+ ts + 16216,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129920:19 */
// Definitions of all built-in pragmas
type PragmaName1 = struct {
@@ -109148,247 +109887,247 @@ type PragmaName1 = struct {
FnPragCName U8
F__ccgo_pad1 [4]byte
FiArg U64
-} /* sqlite3.c:129011:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129985:9 */
// Definitions of all built-in pragmas
-type PragmaName = PragmaName1 /* sqlite3.c:129018:3 */
+type PragmaName = PragmaName1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129992:3 */
var aPragmaName = [66]PragmaName{
- { /* zName: */ FzName: ts + 16184,
+ { /* zName: */ FzName: ts + 16224,
/* ePragTyp: */ FePragTyp: U8(PragTyp_ANALYSIS_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16199,
+ { /* zName: */ FzName: ts + 16239,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_APPLICATION_ID)},
- { /* zName: */ FzName: ts + 16214,
+ { /* zName: */ FzName: ts + 16254,
/* ePragTyp: */ FePragTyp: U8(PragTyp_AUTO_VACUUM),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16226,
+ { /* zName: */ FzName: ts + 16266,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_AutoIndex)},
- { /* zName: */ FzName: ts + 16242,
+ { /* zName: */ FzName: ts + 16282,
/* ePragTyp: */ FePragTyp: U8(PragTyp_BUSY_TIMEOUT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(56), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 16165,
+ { /* zName: */ FzName: ts + 16205,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16255,
+ { /* zName: */ FzName: ts + 16295,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SPILL),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16267,
+ { /* zName: */ FzName: ts + 16307,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CASE_SENSITIVE_LIKE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 16287,
+ { /* zName: */ FzName: ts + 16327,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_CellSizeCk)},
- { /* zName: */ FzName: ts + 16303,
+ { /* zName: */ FzName: ts + 16343,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_CkptFullFSync)},
- { /* zName: */ FzName: ts + 16324,
+ { /* zName: */ FzName: ts + 16364,
/* ePragTyp: */ FePragTyp: U8(PragTyp_COLLATION_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(38), FnPragCName: U8(2)},
- { /* zName: */ FzName: ts + 16339,
+ { /* zName: */ FzName: ts + 16379,
/* ePragTyp: */ FePragTyp: U8(PragTyp_COMPILE_OPTIONS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16355,
+ { /* zName: */ FzName: ts + 16395,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: U64(uint64(0x00001)) << 32},
- { /* zName: */ FzName: ts + 16369,
+ { /* zName: */ FzName: ts + 16409,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_DATA_VERSION)},
- { /* zName: */ FzName: ts + 16382,
+ { /* zName: */ FzName: ts + 16422,
/* ePragTyp: */ FePragTyp: U8(PragTyp_DATABASE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(47), FnPragCName: U8(3)},
- { /* zName: */ FzName: ts + 16396,
+ { /* zName: */ FzName: ts + 16436,
/* 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 + 16415,
+ { /* zName: */ FzName: ts + 16455,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_DeferFKs)},
- { /* zName: */ FzName: ts + 16434,
+ { /* zName: */ FzName: ts + 16474,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_NullCallback)},
- { /* zName: */ FzName: ts + 16457,
+ { /* zName: */ FzName: ts + 16497,
/* ePragTyp: */ FePragTyp: U8(PragTyp_ENCODING),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16466,
+ { /* zName: */ FzName: ts + 16506,
/* 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 + 16484,
+ { /* zName: */ FzName: ts + 16524,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FOREIGN_KEY_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), FnPragCName: U8(8)},
- { /* zName: */ FzName: ts + 16501,
+ { /* zName: */ FzName: ts + 16541,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ForeignKeys)},
- { /* zName: */ FzName: ts + 16514,
+ { /* zName: */ FzName: ts + 16554,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16529,
+ { /* zName: */ FzName: ts + 16569,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_FullColNames)},
- { /* zName: */ FzName: ts + 16547,
+ { /* zName: */ FzName: ts + 16587,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_FullFSync)},
- { /* zName: */ FzName: ts + 16557,
+ { /* zName: */ FzName: ts + 16597,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FUNCTION_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(27), FnPragCName: U8(6)},
- { /* zName: */ FzName: ts + 16571,
+ { /* zName: */ FzName: ts + 16611,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HARD_HEAP_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16587,
+ { /* zName: */ FzName: ts + 16627,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_IgnoreChecks)},
- { /* zName: */ FzName: ts + 16612,
+ { /* zName: */ FzName: ts + 16652,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INCREMENTAL_VACUUM),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 16631,
+ { /* zName: */ FzName: ts + 16671,
/* 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 + 16642,
+ { /* zName: */ FzName: ts + 16682,
/* 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 + 16653,
+ { /* zName: */ FzName: ts + 16693,
/* 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 + 16665,
+ { /* zName: */ FzName: ts + 16705,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)},
- { /* zName: */ FzName: ts + 16681,
+ { /* zName: */ FzName: ts + 16721,
/* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_MODE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16694,
+ { /* zName: */ FzName: ts + 16734,
/* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_SIZE_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16713,
+ { /* zName: */ FzName: ts + 16753,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_LegacyAlter)},
- { /* zName: */ FzName: ts + 16732,
+ { /* zName: */ FzName: ts + 16772,
/* ePragTyp: */ FePragTyp: U8(PragTyp_LOCKING_MODE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16745,
+ { /* zName: */ FzName: ts + 16785,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16760,
+ { /* zName: */ FzName: ts + 16800,
/* ePragTyp: */ FePragTyp: U8(PragTyp_MMAP_SIZE)},
- { /* zName: */ FzName: ts + 16770,
+ { /* zName: */ FzName: ts + 16810,
/* ePragTyp: */ FePragTyp: U8(PragTyp_MODULE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 16782,
+ { /* zName: */ FzName: ts + 16822,
/* ePragTyp: */ FePragTyp: U8(PragTyp_OPTIMIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result1 | PragFlg_NeedSchema)},
- { /* zName: */ FzName: ts + 16791,
+ { /* zName: */ FzName: ts + 16831,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16802,
+ { /* zName: */ FzName: ts + 16842,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_SIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16812,
+ { /* zName: */ FzName: ts + 16852,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PRAGMA_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 16824,
+ { /* zName: */ FzName: ts + 16864,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_QueryOnly)},
- { /* zName: */ FzName: ts + 16835,
+ { /* zName: */ FzName: ts + 16875,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)},
- { /* zName: */ FzName: ts + 16847,
+ { /* zName: */ FzName: ts + 16887,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ReadUncommit)},
- { /* zName: */ FzName: ts + 16864,
+ { /* zName: */ FzName: ts + 16904,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_RecTriggers)},
- { /* zName: */ FzName: ts + 16883,
+ { /* zName: */ FzName: ts + 16923,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ReverseOrder)},
- { /* zName: */ FzName: ts + 16909,
+ { /* zName: */ FzName: ts + 16949,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_SCHEMA_VERSION)},
- { /* zName: */ FzName: ts + 16924,
+ { /* zName: */ FzName: ts + 16964,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SECURE_DELETE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16938,
+ { /* zName: */ FzName: ts + 16978,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ShortColNames)},
- { /* zName: */ FzName: ts + 16957,
+ { /* zName: */ FzName: ts + 16997,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SHRINK_MEMORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 16971,
+ { /* zName: */ FzName: ts + 17011,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SOFT_HEAP_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16987,
+ { /* zName: */ FzName: ts + 17027,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SYNCHRONOUS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16999,
+ { /* zName: */ FzName: ts + 17039,
/* 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 + 17010,
+ { /* zName: */ FzName: ts + 17050,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1),
/* ColNames: */ FiPragCName: U8(15), FnPragCName: U8(6)},
- { /* zName: */ FzName: ts + 17021,
+ { /* zName: */ FzName: ts + 17061,
/* 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 + 17033,
+ { /* zName: */ FzName: ts + 17073,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17044,
+ { /* zName: */ FzName: ts + 17084,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE_DIRECTORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17065,
+ { /* zName: */ FzName: ts + 17105,
/* ePragTyp: */ FePragTyp: U8(PragTyp_THREADS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 17073,
+ { /* zName: */ FzName: ts + 17113,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_TrustedSchema)},
- { /* zName: */ FzName: ts + 17088,
+ { /* zName: */ FzName: ts + 17128,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_USER_VERSION)},
- { /* zName: */ FzName: ts + 17101,
+ { /* zName: */ FzName: ts + 17141,
/* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_AUTOCHECKPOINT)},
- { /* zName: */ FzName: ts + 17120,
+ { /* zName: */ FzName: ts + 17160,
/* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_CHECKPOINT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema),
/* ColNames: */ FiPragCName: U8(50), FnPragCName: U8(3)},
- { /* zName: */ FzName: ts + 17135,
+ { /* zName: */ FzName: ts + 17175,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_WriteSchema | SQLITE_NoSchemaError)},
-} /* sqlite3.c:129019:25 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129993:25 */
// Number of pragmas: 68 on by default, 78 total.
@@ -109404,7 +110143,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 { /* sqlite3.c:129553:11: */
+func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130527:11: */
// on no off false yes true extra full
var i int32
var n int32
@@ -109421,13 +110160,13 @@ func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* s
return dflt
}
-var zText = *(*[25]int8)(unsafe.Pointer(ts + 17151)) /* sqlite3.c:129555:21 */
-var iOffset = [8]U8{U8(0), U8(1), U8(2), U8(4), U8(9), U8(12), U8(15), U8(20)} /* sqlite3.c:129556:19 */
-var iLength = [8]U8{U8(2), U8(2), U8(3), U8(5), U8(3), U8(4), U8(5), U8(4)} /* sqlite3.c:129557:19 */
-var iValue = [8]U8{U8(1), U8(0), U8(0), U8(0), U8(1), U8(1), U8(3), U8(2)} /* sqlite3.c:129558:19 */
+var zText = *(*[25]int8)(unsafe.Pointer(ts + 17191)) /* 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 */
// Interpret the given string as a boolean value.
-func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* sqlite3.c:129578:19: */
+func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130552:19: */
return U8(libc.Bool32(int32(getSafetyLevel(tls, z, 1, dflt)) != 0))
}
@@ -109436,12 +110175,12 @@ func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* sqlite3.c:129
// 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 { /* sqlite3.c:129591:12: */
+func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130565:12: */
if z != 0 {
- if 0 == Xsqlite3StrICmp(tls, z, ts+17176) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17216) {
return PAGER_LOCKINGMODE_EXCLUSIVE
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+17186) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17226) {
return PAGER_LOCKINGMODE_NORMAL
}
}
@@ -109452,15 +110191,15 @@ func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:129591:12: */
//
// 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 { /* sqlite3.c:129606:12: */
+func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130580:12: */
var i int32
- if 0 == Xsqlite3StrICmp(tls, z, ts+7888) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+7886) {
return BTREE_AUTOVACUUM_NONE
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+17193) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17233) {
return BTREE_AUTOVACUUM_FULL
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+17198) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17238) {
return BTREE_AUTOVACUUM_INCR
}
i = Xsqlite3Atoi(tls, z)
@@ -109475,12 +110214,12 @@ func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:129606:12: */
// 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 { /* sqlite3.c:129622:12: */
+func getTempStore(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130596: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+16126) == 0 {
+ } else if Xsqlite3StrICmp(tls, z, ts+16166) == 0 {
return 1
- } else if Xsqlite3StrICmp(tls, z, ts+17210) == 0 {
+ } else if Xsqlite3StrICmp(tls, z, ts+17250) == 0 {
return 2
} else {
return 0
@@ -109490,13 +110229,13 @@ func getTempStore(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:129622:12: */
// 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 { /* sqlite3.c:129640:12: */
+func invalidateTempStorage(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130614: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+17217, 0)
+ ts+17257, 0)
return SQLITE_ERROR
}
Xsqlite3BtreeClose(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt)
@@ -109509,7 +110248,7 @@ func invalidateTempStorage(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:1
// 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 { /* sqlite3.c:129664:12: */
+func changeTempStorage(tls *libc.TLS, pParse uintptr, zStorageType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130638:12: */
var ts int32 = getTempStore(tls, zStorageType)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if int32((*Sqlite3)(unsafe.Pointer(db)).Ftemp_store) == ts {
@@ -109523,7 +110262,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) { /* sqlite3.c:129679:13: */
+func setPragmaResultColumnNames(tls *libc.TLS, v uintptr, pPragma uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130653:13: */
var n U8 = (*PragmaName)(unsafe.Pointer(pPragma)).FnPragCName
Xsqlite3VdbeSetNumCols(tls, v, func() int32 {
if int32(n) == 0 {
@@ -109557,7 +110296,7 @@ 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) { /* sqlite3.c:129698:13: */
+func returnSingleInt(tls *libc.TLS, v uintptr, value I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130672:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*I64)(unsafe.Pointer(bp)) = value
@@ -109567,7 +110306,7 @@ func returnSingleInt(tls *libc.TLS, v uintptr, value I64) { /* sqlite3.c:129698:
}
// Generate code to return a single text value.
-func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* sqlite3.c:129706:13: */
+func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130680:13: */
if zValue != 0 {
Xsqlite3VdbeLoadString(tls, v, 1, zValue)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1)
@@ -109576,7 +110315,7 @@ func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* sqlite3.c:1
// 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) { /* sqlite3.c:129722:13: */
+func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130696:13: */
if (*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0 {
var pDb uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaDb
var n int32 = (*Sqlite3)(unsafe.Pointer(db)).FnDb
@@ -109592,23 +110331,23 @@ func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* sqlite3.c:129722:13: */
}
// Return a human-readable name for a constraint resolution action.
-func actionName(tls *libc.TLS, action U8) uintptr { /* sqlite3.c:129750:19: */
+func actionName(tls *libc.TLS, action U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130724:19: */
var zName uintptr
switch int32(action) {
case OE_SetNull:
- zName = ts + 17279 /* "SET NULL" */
+ zName = ts + 17319 /* "SET NULL" */
break
case OE_SetDflt:
- zName = ts + 17288 /* "SET DEFAULT" */
+ zName = ts + 17328 /* "SET DEFAULT" */
break
case OE_Cascade:
- zName = ts + 17300 /* "CASCADE" */
+ zName = ts + 17340 /* "CASCADE" */
break
case OE_Restrict:
- zName = ts + 17308 /* "RESTRICT" */
+ zName = ts + 17348 /* "RESTRICT" */
break
default:
- zName = ts + 17317 /* "NO ACTION" */
+ zName = ts + 17357 /* "NO ACTION" */
break
}
return zName
@@ -109617,7 +110356,7 @@ func actionName(tls *libc.TLS, action U8) uintptr { /* sqlite3.c:129750:19: */
// 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 { /* sqlite3.c:129770:27: */
+func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130744:27: */
if eMode == int32(uint64(unsafe.Sizeof(azModeName))/uint64(unsafe.Sizeof(uintptr(0)))) {
return uintptr(0)
@@ -109626,11 +110365,11 @@ func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* sqlite3.c:
}
var azModeName = [6]uintptr{
- ts + 17327, ts + 17334, ts + 17342, ts + 17346, ts + 17210, ts + 17355,
-} /* sqlite3.c:129771:15 */
+ ts + 17367, ts + 17374, ts + 17382, ts + 17386, ts + 17250, ts + 17395,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130745:15 */
// Locate a pragma in the aPragmaName[] array.
-func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:129792:25: */
+func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130766:25: */
var upr int32
var lwr int32
var mid int32 = 0
@@ -109657,7 +110396,7 @@ func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:129792:25
// 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) { /* sqlite3.c:129813:13: */
+func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, showInternFuncs int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130787:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -109672,13 +110411,13 @@ func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, sh
continue
}
if (*FuncDef)(unsafe.Pointer(p)).FxValue != uintptr(0) {
- zType = ts + 17359 /* "w" */
+ zType = ts + 17399 /* "w" */
} else if (*FuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) {
- zType = ts + 17361 /* "a" */
+ zType = ts + 17401 /* "a" */
} else {
- zType = ts + 7400 /* "s" */
+ zType = ts + 7396 /* "s" */
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17363,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17403,
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),
@@ -109686,15 +110425,15 @@ 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) /* sqlite3.c:129821:22 */
-var azEnc = [4]uintptr{uintptr(0), ts + 17370, ts + 17375, ts + 17383 /* "utf16be" */} /* sqlite3.c:129828:23 */
+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 + 17410, ts + 17415, ts + 17423 /* "utf16be" */} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130802: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 { /* sqlite3.c:129865:12: */
+func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130839:12: */
var addr int32
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 3, 1)
addr = Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, 1, Xsqlite3VdbeCurrentAddr(tls, v)+2, 1)
@@ -109716,7 +110455,7 @@ func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* sqlite3.c:1298
// 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) { /* sqlite3.c:129889:21: */
+func Xsqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, pValue uintptr, minusFlag int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130863:21: */
bp := tls.Alloc(608)
defer tls.Free(608)
@@ -109961,7 +110700,7 @@ __4:
if !(minusFlag != 0) {
goto __5
}
- zRight = Xsqlite3MPrintf(tls, db, ts+17391, libc.VaList(bp, pValue))
+ zRight = Xsqlite3MPrintf(tls, db, ts+17431, libc.VaList(bp, pValue))
goto __6
__5:
zRight = Xsqlite3NameFromToken(tls, db, pValue)
@@ -110016,7 +110755,7 @@ __8:
if !(*(*uintptr)(unsafe.Pointer(bp + 448)) != 0) {
goto __10
}
- Xsqlite3ErrorMsg(tls, pParse, ts+3604, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 448))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3595, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 448))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 448)))
__10:
;
@@ -110604,7 +111343,7 @@ __18:
if !(zRight != 0) {
goto __63
}
- if !(Xsqlite3_stricmp(tls, zRight, ts+17395) == 0) {
+ if !(Xsqlite3_stricmp(tls, zRight, ts+17435) == 0) {
goto __64
}
b = 2
@@ -110693,7 +111432,7 @@ __71:
// PRAGMA [schema.]locking_mode
// PRAGMA [schema.]locking_mode = (normal|exclusive)
__20:
- zRet = ts + 17186 /* "normal" */
+ zRet = ts + 17226 /* "normal" */
eMode = getLockingMode(tls, zRight)
if !((*Token)(unsafe.Pointer(pId2)).Fn == uint32(0) && eMode == -1) {
@@ -110734,7 +111473,7 @@ __78:
if !(eMode == PAGER_LOCKINGMODE_EXCLUSIVE) {
goto __83
}
- zRet = ts + 17176 /* "exclusive" */
+ zRet = ts + 17216 /* "exclusive" */
__83:
;
returnSingleText(tls, v, zRet)
@@ -111062,7 +111801,7 @@ __116:
if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 504)) == 0) {
goto __119
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17400, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+17440, 0)
goto pragma_out
__119:
;
@@ -111080,7 +111819,7 @@ __120:
if !(*(*int8)(unsafe.Pointer(zRight)) != 0) {
goto __121
}
- Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+16, zRight))
+ Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+16, zRight))
goto __122
__121:
Xsqlite3_temp_directory = uintptr(0)
@@ -111108,7 +111847,7 @@ __123:
goto __125
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+17425, 0)
+ ts+17465, 0)
goto __126
__125:
if !(iDb != 1) {
@@ -111164,7 +111903,7 @@ __132:
__134:
;
if !(mask&uint64(SQLITE_WriteSchema) != uint64(0) &&
- Xsqlite3_stricmp(tls, zRight, ts+17478) == 0) {
+ Xsqlite3_stricmp(tls, zRight, ts+17518) == 0) {
goto __135
}
// IMP: R-60817-01178 If the argument is "RESET" then schema
@@ -111278,13 +112017,13 @@ __148:
Xsqlite3VdbeMultiLoad(tls, v, 1, func() uintptr {
if (*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- return ts + 17484 /* "issisii" */
+ return ts + 17524 /* "issisii" */
}
- return ts + 17492 /* "issisi" */
+ return ts + 17532 /* "issisi" */
}(),
libc.VaList(bp+24, i-nHidden,
(*Column)(unsafe.Pointer(pCol)).FzCnName,
- Xsqlite3ColumnType(tls, pCol, ts+1546),
+ Xsqlite3ColumnType(tls, pCol, ts+1515),
func() int32 {
if uint32(int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 {
return 1
@@ -111365,7 +112104,7 @@ __163:
if !(int32((*Table)(unsafe.Pointer(pTab1)).FnCol) == 0) {
goto __164
}
- zSql = Xsqlite3MPrintf(tls, db, ts+17499, libc.VaList(bp+80, (*Table)(unsafe.Pointer(pTab1)).FzName))
+ zSql = Xsqlite3MPrintf(tls, db, ts+17539, libc.VaList(bp+80, (*Table)(unsafe.Pointer(pTab1)).FzName))
if !(zSql != 0) {
goto __165
}
@@ -111375,6 +112114,13 @@ __163:
Xsqlite3DbFree(tls, db, zSql)
__165:
;
+ if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+ goto __166
+ }
+ Xsqlite3ErrorMsg(tls, (*Sqlite3)(unsafe.Pointer(db)).FpParse, ts+1451, 0)
+ (*Parse)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FpParse)).Frc = SQLITE_NOMEM
+__166:
+ ;
pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii3)*32)).FpSchema + 8
goto __162
__164:
@@ -111391,55 +112137,55 @@ __159:
;
k1 = (*Hash)(unsafe.Pointer(pHash)).Ffirst
-__166:
+__167:
if !(k1 != 0) {
- goto __168
+ goto __169
}
pTab2 = (*HashElem)(unsafe.Pointer(k1)).Fdata
if !(zRight != 0 && Xsqlite3_stricmp(tls, zRight, (*Table)(unsafe.Pointer(pTab2)).FzName) != 0) {
- goto __169
+ goto __170
}
- goto __167
-__169:
+ goto __168
+__170:
;
if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VIEW) {
- goto __170
+ goto __171
}
- zType = ts + 10361 /* "view" */
- goto __171
-__170:
+ zType = ts + 10357 /* "view" */
+ goto __172
+__171:
if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VTAB) {
- goto __172
+ goto __173
}
- zType = ts + 12617 /* "virtual" */
- goto __173
-__172:
+ zType = ts + 12639 /* "virtual" */
+ goto __174
+__173:
if !((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_Shadow) != 0) {
- goto __174
+ goto __175
}
- zType = ts + 17515 /* "shadow" */
- goto __175
-__174:
- zType = ts + 8742 /* "table" */
+ zType = ts + 17555 /* "shadow" */
+ goto __176
__175:
+ zType = ts + 8742 /* "table" */
+__176:
;
-__173:
+__174:
;
-__171:
+__172:
;
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17522,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17562,
libc.VaList(bp+88, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii3)*32)).FzDbSName,
Xsqlite3PreferredTableName(tls, (*Table)(unsafe.Pointer(pTab2)).FzName),
zType,
int32((*Table)(unsafe.Pointer(pTab2)).FnCol),
libc.Bool32((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_WithoutRowid) != U32(0)),
libc.Bool32((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_Strict) != U32(0))))
- goto __167
-__167:
- k1 = (*HashElem)(unsafe.Pointer(k1)).Fnext
- goto __166
goto __168
__168:
+ k1 = (*HashElem)(unsafe.Pointer(k1)).Fnext
+ goto __167
+ goto __169
+__169:
;
goto __155
__155:
@@ -111453,51 +112199,51 @@ __156:
__34:
if !(zRight != 0) {
- goto __176
+ goto __177
}
pIdx = Xsqlite3FindIndex(tls, db, zRight, zDb)
if !(pIdx == uintptr(0)) {
- goto __177
+ goto __178
}
// If there is no index named zRight, check to see if there is a
// WITHOUT ROWID table named zRight, and if there is, show the
// structure of the PRIMARY KEY index for that table.
pTab3 = Xsqlite3LocateTable(tls, pParse, uint32(LOCATE_NOERR), zRight, zDb)
if !(pTab3 != 0 && !((*Table)(unsafe.Pointer(pTab3)).FtabFlags&U32(TF_WithoutRowid) == U32(0))) {
- goto __178
+ goto __179
}
pIdx = Xsqlite3PrimaryKeyIndex(tls, pTab3)
-__178:
+__179:
;
-__177:
+__178:
;
if !(pIdx != 0) {
- goto __179
+ goto __180
}
iIdxDb = Xsqlite3SchemaToIndex(tls, db, (*Index)(unsafe.Pointer(pIdx)).FpSchema)
if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) {
- goto __180
+ goto __181
}
// PRAGMA index_xinfo (newer version with more rows and columns)
mx = int32((*Index)(unsafe.Pointer(pIdx)).FnColumn)
(*Parse)(unsafe.Pointer(pParse)).FnMem = 6
- goto __181
-__180:
+ goto __182
+__181:
// PRAGMA index_info (legacy version)
mx = int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)
(*Parse)(unsafe.Pointer(pParse)).FnMem = 3
-__181:
+__182:
;
pTab3 = (*Index)(unsafe.Pointer(pIdx)).FpTable
Xsqlite3CodeVerifySchema(tls, pParse, iIdxDb)
i1 = 0
-__182:
+__183:
if !(i1 < mx) {
- goto __184
+ goto __185
}
cnum = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i1)*2))
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17529, libc.VaList(bp+136, i1, int32(cnum),
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17569, libc.VaList(bp+136, i1, int32(cnum),
func() uintptr {
if int32(cnum) < 0 {
return uintptr(0)
@@ -111505,90 +112251,90 @@ __182:
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab3)).FaCol + uintptr(cnum)*24)).FzCnName
}()))
if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) {
- goto __185
+ goto __186
}
- Xsqlite3VdbeMultiLoad(tls, v, 4, ts+17534,
+ Xsqlite3VdbeMultiLoad(tls, v, 4, ts+17574,
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))))
-__185:
+__186:
;
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, (*Parse)(unsafe.Pointer(pParse)).FnMem)
- goto __183
-__183:
- i1++
- goto __182
goto __184
__184:
+ i1++
+ goto __183
+ goto __185
+__185:
;
-__179:
+__180:
;
-__176:
+__177:
;
goto __15
__35:
if !(zRight != 0) {
- goto __186
+ goto __187
}
pTab4 = Xsqlite3FindTable(tls, db, zRight, zDb)
if !(pTab4 != 0) {
- goto __187
+ goto __188
}
iTabDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab4)).FpSchema)
(*Parse)(unsafe.Pointer(pParse)).FnMem = 5
Xsqlite3CodeVerifySchema(tls, pParse, iTabDb)
pIdx1 = (*Table)(unsafe.Pointer(pTab4)).FpIndex
i2 = 0
-__188:
+__189:
if !(pIdx1 != 0) {
- goto __190
+ goto __191
}
- *(*[3]uintptr)(unsafe.Pointer(bp + 520 /* azOrigin */)) = [3]uintptr{ts + 17539, ts + 17541, ts + 16003}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17543,
+ *(*[3]uintptr)(unsafe.Pointer(bp + 520 /* azOrigin */)) = [3]uintptr{ts + 17579, ts + 17581, ts + 16043}
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17583,
libc.VaList(bp+184, i2,
(*Index)(unsafe.Pointer(pIdx1)).FzName,
libc.Bool32(int32((*Index)(unsafe.Pointer(pIdx1)).FonError) != OE_None),
*(*uintptr)(unsafe.Pointer(bp + 520 + uintptr(uint32(int32(*(*uint16)(unsafe.Pointer(pIdx1 + 100))&0x3>>0)))*8)),
libc.Bool32((*Index)(unsafe.Pointer(pIdx1)).FpPartIdxWhere != uintptr(0))))
- goto __189
-__189:
- pIdx1 = (*Index)(unsafe.Pointer(pIdx1)).FpNext
- i2++
- goto __188
goto __190
__190:
+ pIdx1 = (*Index)(unsafe.Pointer(pIdx1)).FpNext
+ i2++
+ goto __189
+ goto __191
+__191:
;
-__187:
+__188:
;
-__186:
+__187:
;
goto __15
__36:
(*Parse)(unsafe.Pointer(pParse)).FnMem = 3
i3 = 0
-__191:
+__192:
if !(i3 < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __193
+ goto __194
}
if !((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i3)*32)).FpBt == uintptr(0)) {
- goto __194
+ goto __195
}
- goto __192
-__194:
+ goto __193
+__195:
;
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17549,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17589,
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)))
- goto __192
-__192:
- i3++
- goto __191
goto __193
__193:
+ i3++
+ goto __192
+ goto __194
+__194:
;
goto __15
@@ -111597,18 +112343,18 @@ __37:
i4 = 0
(*Parse)(unsafe.Pointer(pParse)).FnMem = 2
p = (*Hash)(unsafe.Pointer(db + 640)).Ffirst
-__195:
+__196:
if !(p != 0) {
- goto __197
+ goto __198
}
pColl = (*HashElem)(unsafe.Pointer(p)).Fdata
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17553, libc.VaList(bp+248, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName))
- goto __196
-__196:
- p = (*HashElem)(unsafe.Pointer(p)).Fnext
- goto __195
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17593, libc.VaList(bp+248, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName))
goto __197
__197:
+ p = (*HashElem)(unsafe.Pointer(p)).Fnext
+ goto __196
+ goto __198
+__198:
;
goto __15
@@ -111617,45 +112363,45 @@ __38:
showInternFunc = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_InternalFunc) != U32(0))
(*Parse)(unsafe.Pointer(pParse)).FnMem = 6
i5 = 0
-__198:
+__199:
if !(i5 < SQLITE_FUNC_HASH_SZ) {
- goto __200
+ goto __201
}
p1 = *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3BuiltinFunctions)) + uintptr(i5)*8))
-__201:
+__202:
if !(p1 != 0) {
- goto __203
+ goto __204
}
pragmaFunclistLine(tls, v, p1, 1, showInternFunc)
- goto __202
-__202:
- p1 = *(*uintptr)(unsafe.Pointer(p1 + 64))
- goto __201
goto __203
__203:
+ p1 = *(*uintptr)(unsafe.Pointer(p1 + 64))
+ goto __202
+ goto __204
+__204:
;
- goto __199
-__199:
- i5++
- goto __198
goto __200
__200:
+ i5++
+ goto __199
+ goto __201
+__201:
;
j = (*Hash)(unsafe.Pointer(db + 616)).Ffirst
-__204:
+__205:
if !(j != 0) {
- goto __206
+ goto __207
}
p1 = (*HashElem)(unsafe.Pointer(j)).Fdata
pragmaFunclistLine(tls, v, p1, 0, showInternFunc)
- goto __205
-__205:
- j = (*HashElem)(unsafe.Pointer(j)).Fnext
- goto __204
goto __206
__206:
+ j = (*HashElem)(unsafe.Pointer(j)).Fnext
+ goto __205
+ goto __207
+__207:
;
goto __15
@@ -111663,65 +112409,65 @@ __206:
__39:
(*Parse)(unsafe.Pointer(pParse)).FnMem = 1
j1 = (*Hash)(unsafe.Pointer(db + 568)).Ffirst
-__207:
+__208:
if !(j1 != 0) {
- goto __209
+ goto __210
}
pMod = (*HashElem)(unsafe.Pointer(j1)).Fdata
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7400, libc.VaList(bp+264, (*Module)(unsafe.Pointer(pMod)).FzName))
- goto __208
-__208:
- j1 = (*HashElem)(unsafe.Pointer(j1)).Fnext
- goto __207
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7396, libc.VaList(bp+264, (*Module)(unsafe.Pointer(pMod)).FzName))
goto __209
__209:
+ j1 = (*HashElem)(unsafe.Pointer(j1)).Fnext
+ goto __208
+ goto __210
+__210:
;
goto __15
__40:
i6 = 0
-__210:
+__211:
if !(i6 < int32(uint64(unsafe.Sizeof(aPragmaName))/uint64(unsafe.Sizeof(PragmaName{})))) {
- goto __212
+ goto __213
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7400, libc.VaList(bp+272, aPragmaName[i6].FzName))
- goto __211
-__211:
- i6++
- goto __210
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7396, libc.VaList(bp+272, aPragmaName[i6].FzName))
goto __212
__212:
+ i6++
+ goto __211
+ goto __213
+__213:
;
goto __15
__41:
if !(zRight != 0) {
- goto __213
+ goto __214
}
pTab5 = Xsqlite3FindTable(tls, db, zRight, zDb)
if !(pTab5 != 0 && int32((*Table)(unsafe.Pointer(pTab5)).FeTabType) == TABTYP_NORM) {
- goto __214
+ goto __215
}
pFK = *(*uintptr)(unsafe.Pointer(pTab5 + 64 + 8 /* &.pFKey */))
if !(pFK != 0) {
- goto __215
+ goto __216
}
iTabDb1 = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab5)).FpSchema)
i7 = 0
(*Parse)(unsafe.Pointer(pParse)).FnMem = 8
Xsqlite3CodeVerifySchema(tls, pParse, iTabDb1)
-__216:
+__217:
if !(pFK != 0) {
- goto __217
+ goto __218
}
j2 = 0
-__218:
+__219:
if !(j2 < (*FKey)(unsafe.Pointer(pFK)).FnCol) {
- goto __220
+ goto __221
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17556,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17596,
libc.VaList(bp+280, i7,
j2,
(*FKey)(unsafe.Pointer(pFK)).FzTo,
@@ -111729,25 +112475,25 @@ __218:
(*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+17565))
- goto __219
-__219:
- j2++
- goto __218
+ ts+17605))
goto __220
__220:
+ j2++
+ goto __219
+ goto __221
+__221:
;
i7++
pFK = (*FKey)(unsafe.Pointer(pFK)).FpNextFrom
- goto __216
-__217:
+ goto __217
+__218:
+ ;
+__216:
;
__215:
;
__214:
;
-__213:
- ;
goto __15
__42: // child to parent column mapping
@@ -111757,113 +112503,113 @@ __42: // child to parent column mapping
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
-__221:
+__222:
if !(k2 != 0) {
- goto __222
+ goto __223
}
if !(zRight != 0) {
- goto __223
+ goto __224
}
pTab6 = Xsqlite3LocateTable(tls, pParse, uint32(0), zRight, zDb)
k2 = uintptr(0)
- goto __224
-__223:
+ goto __225
+__224:
pTab6 = (*HashElem)(unsafe.Pointer(k2)).Fdata
k2 = (*HashElem)(unsafe.Pointer(k2)).Fnext
-__224:
+__225:
;
if !(pTab6 == uintptr(0) || !(int32((*Table)(unsafe.Pointer(pTab6)).FeTabType) == TABTYP_NORM) || *(*uintptr)(unsafe.Pointer(pTab6 + 64 + 8)) == uintptr(0)) {
- goto __225
+ goto __226
}
- goto __221
-__225:
+ goto __222
+__226:
;
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab6)).FpSchema)
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
Xsqlite3CodeVerifySchema(tls, pParse, iDb)
Xsqlite3TableLock(tls, pParse, iDb, (*Table)(unsafe.Pointer(pTab6)).Ftnum, uint8(0), (*Table)(unsafe.Pointer(pTab6)).FzName)
if !(int32((*Table)(unsafe.Pointer(pTab6)).FnCol)+regRow > (*Parse)(unsafe.Pointer(pParse)).FnMem) {
- goto __226
+ goto __227
}
(*Parse)(unsafe.Pointer(pParse)).FnMem = int32((*Table)(unsafe.Pointer(pTab6)).FnCol) + regRow
-__226:
+__227:
;
Xsqlite3OpenTable(tls, pParse, 0, iDb, pTab6, OP_OpenRead)
Xsqlite3VdbeLoadString(tls, v, regResult, (*Table)(unsafe.Pointer(pTab6)).FzName)
i8 = 1
pFK1 = *(*uintptr)(unsafe.Pointer(pTab6 + 64 + 8 /* &.pFKey */))
-__227:
+__228:
if !(pFK1 != 0) {
- goto __229
+ goto __230
}
pParent = Xsqlite3FindTable(tls, db, (*FKey)(unsafe.Pointer(pFK1)).FzTo, zDb)
if !(pParent == uintptr(0)) {
- goto __230
+ goto __231
}
- goto __228
-__230:
+ goto __229
+__231:
;
*(*uintptr)(unsafe.Pointer(bp + 544 /* pIdx2 */)) = uintptr(0)
Xsqlite3TableLock(tls, pParse, iDb, (*Table)(unsafe.Pointer(pParent)).Ftnum, uint8(0), (*Table)(unsafe.Pointer(pParent)).FzName)
x1 = Xsqlite3FkLocateIndex(tls, pParse, pParent, pFK1, bp+544, uintptr(0))
if !(x1 == 0) {
- goto __231
+ goto __232
}
if !(*(*uintptr)(unsafe.Pointer(bp + 544)) == uintptr(0)) {
- goto __233
+ goto __234
}
Xsqlite3OpenTable(tls, pParse, i8, iDb, pParent, OP_OpenRead)
- goto __234
-__233:
+ goto __235
+__234:
Xsqlite3VdbeAddOp3(tls, v, OP_OpenRead, i8, int32((*Index)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 544 /* pIdx2 */)))).Ftnum), iDb)
Xsqlite3VdbeSetP4KeyInfo(tls, pParse, *(*uintptr)(unsafe.Pointer(bp + 544 /* pIdx2 */)))
-__234:
+__235:
;
- goto __232
-__231:
- k2 = uintptr(0)
- goto __229
+ goto __233
__232:
+ k2 = uintptr(0)
+ goto __230
+__233:
;
- goto __228
-__228:
- i8++
- pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
- goto __227
goto __229
__229:
+ i8++
+ pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
+ goto __228
+ goto __230
+__230:
;
if !(pFK1 != 0) {
- goto __235
+ goto __236
}
- goto __222
-__235:
+ goto __223
+__236:
;
if !((*Parse)(unsafe.Pointer(pParse)).FnTab < i8) {
- goto __236
+ goto __237
}
(*Parse)(unsafe.Pointer(pParse)).FnTab = i8
-__236:
+__237:
;
addrTop = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, 0)
i8 = 1
pFK1 = *(*uintptr)(unsafe.Pointer(pTab6 + 64 + 8 /* &.pFKey */))
-__237:
+__238:
if !(pFK1 != 0) {
- goto __239
+ goto __240
}
pParent = Xsqlite3FindTable(tls, db, (*FKey)(unsafe.Pointer(pFK1)).FzTo, zDb)
*(*uintptr)(unsafe.Pointer(bp + 544 /* pIdx2 */)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 552 /* aiCols */)) = uintptr(0)
if !(pParent != 0) {
- goto __240
+ goto __241
}
x1 = Xsqlite3FkLocateIndex(tls, pParse, pParent, pFK1, bp+544, bp+552)
-__240:
+__241:
;
addrOk = Xsqlite3VdbeMakeLabel(tls, pParse)
@@ -111872,15 +112618,15 @@ __240:
// row cannot cause an FK violation. Jump directly to addrOk in
// this case.
if !(regRow+(*FKey)(unsafe.Pointer(pFK1)).FnCol > (*Parse)(unsafe.Pointer(pParse)).FnMem) {
- goto __241
+ goto __242
}
(*Parse)(unsafe.Pointer(pParse)).FnMem = regRow + (*FKey)(unsafe.Pointer(pFK1)).FnCol
-__241:
+__242:
;
j3 = 0
-__242:
+__243:
if !(j3 < (*FKey)(unsafe.Pointer(pFK1)).FnCol) {
- goto __244
+ goto __245
}
if *(*uintptr)(unsafe.Pointer(bp + 552)) != 0 {
iCol = *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 552 /* aiCols */)) + uintptr(j3)*4))
@@ -111889,63 +112635,63 @@ __242:
}
Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab6, 0, iCol, regRow+j3)
Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regRow+j3, addrOk)
- goto __243
-__243:
- j3++
- goto __242
goto __244
__244:
+ j3++
+ goto __243
+ goto __245
+__245:
;
// Generate code to query the parent index for a matching parent
// key. If a match is found, jump to addrOk.
if !(*(*uintptr)(unsafe.Pointer(bp + 544)) != 0) {
- goto __245
+ goto __246
}
Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regRow, (*FKey)(unsafe.Pointer(pFK1)).FnCol, regKey,
Xsqlite3IndexAffinityStr(tls, db, *(*uintptr)(unsafe.Pointer(bp + 544 /* pIdx2 */))), (*FKey)(unsafe.Pointer(pFK1)).FnCol)
Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, i8, addrOk, regKey, 0)
- goto __246
-__245:
+ goto __247
+__246:
if !(pParent != 0) {
- goto __247
+ goto __248
}
jmp = Xsqlite3VdbeCurrentAddr(tls, v) + 2
Xsqlite3VdbeAddOp3(tls, v, OP_SeekRowid, i8, jmp, regRow)
Xsqlite3VdbeGoto(tls, v, addrOk)
-__247:
+__248:
;
-__246:
+__247:
;
// Generate code to report an FK violation to the caller.
if !((*Table)(unsafe.Pointer(pTab6)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __248
+ goto __249
}
Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, 0, regResult+1)
- goto __249
-__248:
- Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1)
+ goto __250
__249:
+ Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1)
+__250:
;
- Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+17570, libc.VaList(bp+344, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1))
+ Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+17610, 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 */)))
- goto __238
-__238:
- i8++
- pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
- goto __237
goto __239
__239:
+ i8++
+ pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
+ goto __238
+ goto __240
+__240:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Next, 0, addrTop+1)
Xsqlite3VdbeJumpHere(tls, v, addrTop)
- goto __221
-__222:
+ goto __222
+__223:
;
goto __15
@@ -111954,10 +112700,10 @@ __222:
// used will be case sensitive or not depending on the RHS.
__43:
if !(zRight != 0) {
- goto __250
+ goto __251
}
Xsqlite3RegisterLikeFunctions(tls, db, int32(Xsqlite3GetBoolean(tls, zRight, uint8(0))))
-__250:
+__251:
;
goto __15
@@ -112001,10 +112747,10 @@ __44:
// of all attached databases.
if !((*Token)(unsafe.Pointer(pId2)).Fz == uintptr(0)) {
- goto __251
+ goto __252
}
iDb = -1
-__251:
+__252:
;
// Initialize the VDBE program
@@ -112013,19 +112759,19 @@ __251:
// Set the maximum error count
*(*int32)(unsafe.Pointer(bp + 560 /* mxErr */)) = SQLITE_INTEGRITY_CHECK_ERROR_MAX
if !(zRight != 0) {
- goto __252
+ goto __253
}
if !(Xsqlite3GetInt32(tls, zRight, bp+560) != 0) {
- goto __253
+ goto __254
}
if !(*(*int32)(unsafe.Pointer(bp + 560)) <= 0) {
- goto __255
+ goto __256
}
*(*int32)(unsafe.Pointer(bp + 560 /* mxErr */)) = SQLITE_INTEGRITY_CHECK_ERROR_MAX
-__255:
+__256:
;
- goto __254
-__253:
+ goto __255
+__254:
pObjTab = Xsqlite3LocateTable(tls, pParse, uint32(0), zRight,
func() uintptr {
if iDb >= 0 {
@@ -112033,32 +112779,32 @@ __253:
}
return uintptr(0)
}())
-__254:
+__255:
;
-__252:
+__253:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, *(*int32)(unsafe.Pointer(bp + 560))-1, 1) // reg[1] holds errors left
// Do an integrity check on each database file
i9 = 0
-__256:
+__257:
if !(i9 < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __258
+ goto __259
} // Array of root page numbers of all btrees
cnt = 0 // Number of entries in aRoot[]
mxIdx = 0 // Maximum number of indexes for any table
if !(0 != 0 && i9 == 1) {
- goto __259
+ goto __260
}
- goto __257
-__259:
+ goto __258
+__260:
;
if !(iDb >= 0 && i9 != iDb) {
- goto __260
+ goto __261
}
- goto __257
-__260:
+ goto __258
+__261:
;
Xsqlite3CodeVerifySchema(tls, pParse, i9)
@@ -112071,114 +112817,114 @@ __260:
pTbls = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FpSchema + 8
cnt = 0
x2 = (*Hash)(unsafe.Pointer(pTbls)).Ffirst
-__261:
+__262:
if !(x2 != 0) {
- goto __263
+ goto __264
}
pTab7 = (*HashElem)(unsafe.Pointer(x2)).Fdata // Number of indexes on pTab
if !(pObjTab != 0 && pObjTab != pTab7) {
- goto __264
+ goto __265
}
- goto __262
-__264:
+ goto __263
+__265:
;
if !((*Table)(unsafe.Pointer(pTab7)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __265
+ goto __266
}
cnt++
-__265:
+__266:
;
nIdx = 0
pIdx3 = (*Table)(unsafe.Pointer(pTab7)).FpIndex
-__266:
+__267:
if !(pIdx3 != 0) {
- goto __268
+ goto __269
}
cnt++
- goto __267
-__267:
- pIdx3 = (*Index)(unsafe.Pointer(pIdx3)).FpNext
- nIdx++
- goto __266
goto __268
__268:
+ pIdx3 = (*Index)(unsafe.Pointer(pIdx3)).FpNext
+ nIdx++
+ goto __267
+ goto __269
+__269:
;
if !(nIdx > mxIdx) {
- goto __269
+ goto __270
}
mxIdx = nIdx
-__269:
+__270:
;
- goto __262
-__262:
- x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
- goto __261
goto __263
__263:
+ x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
+ goto __262
+ goto __264
+__264:
;
if !(cnt == 0) {
- goto __270
+ goto __271
}
- goto __257
-__270:
+ goto __258
+__271:
;
if !(pObjTab != 0) {
- goto __271
+ goto __272
}
cnt++
-__271:
+__272:
;
aRoot = Xsqlite3DbMallocRawNN(tls, db, uint64(uint64(unsafe.Sizeof(int32(0)))*uint64(cnt+1)))
if !(aRoot == uintptr(0)) {
- goto __272
+ goto __273
}
- goto __258
-__272:
+ goto __259
+__273:
;
cnt = 0
if !(pObjTab != 0) {
- goto __273
+ goto __274
}
*(*int32)(unsafe.Pointer(aRoot + uintptr(libc.PreIncInt32(&cnt, 1))*4)) = 0
-__273:
+__274:
;
x2 = (*Hash)(unsafe.Pointer(pTbls)).Ffirst
-__274:
+__275:
if !(x2 != 0) {
- goto __276
+ goto __277
}
pTab8 = (*HashElem)(unsafe.Pointer(x2)).Fdata
if !(pObjTab != 0 && pObjTab != pTab8) {
- goto __277
+ goto __278
}
- goto __275
-__277:
+ goto __276
+__278:
;
if !((*Table)(unsafe.Pointer(pTab8)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __278
+ goto __279
}
*(*int32)(unsafe.Pointer(aRoot + uintptr(libc.PreIncInt32(&cnt, 1))*4)) = int32((*Table)(unsafe.Pointer(pTab8)).Ftnum)
-__278:
+__279:
;
pIdx4 = (*Table)(unsafe.Pointer(pTab8)).FpIndex
-__279:
+__280:
if !(pIdx4 != 0) {
- goto __281
+ goto __282
}
*(*int32)(unsafe.Pointer(aRoot + uintptr(libc.PreIncInt32(&cnt, 1))*4)) = int32((*Index)(unsafe.Pointer(pIdx4)).Ftnum)
- goto __280
-__280:
- pIdx4 = (*Index)(unsafe.Pointer(pIdx4)).FpNext
- goto __279
goto __281
__281:
+ pIdx4 = (*Index)(unsafe.Pointer(pIdx4)).FpNext
+ goto __280
+ goto __282
+__282:
;
- goto __275
-__275:
- x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
- goto __274
goto __276
__276:
+ x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
+ goto __275
+ goto __277
+__277:
;
*(*int32)(unsafe.Pointer(aRoot)) = cnt
@@ -112196,7 +112942,7 @@ __276:
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+17574, libc.VaList(bp+360, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)),
+ Xsqlite3MPrintf(tls, db, ts+17614, libc.VaList(bp+360, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)),
-7)
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 2, 3, 3)
integrityCheckResultRow(tls, v)
@@ -112204,25 +112950,25 @@ __276:
// Make sure all the indices are constructed correctly.
x2 = (*Hash)(unsafe.Pointer(pTbls)).Ffirst
-__282:
+__283:
if !(x2 != 0) {
- goto __284
+ goto __285
}
pTab9 = (*HashElem)(unsafe.Pointer(x2)).Fdata
pPrior = uintptr(0)
r1 = -1
if !!(int32((*Table)(unsafe.Pointer(pTab9)).FeTabType) == TABTYP_NORM) {
- goto __285
+ goto __286
}
- goto __283
-__285:
+ goto __284
+__286:
;
if !(pObjTab != 0 && pObjTab != pTab9) {
- goto __286
+ goto __287
}
- goto __283
-__286:
+ goto __284
+__287:
;
if (*Table)(unsafe.Pointer(pTab9)).FtabFlags&U32(TF_WithoutRowid) == U32(0) {
pPk1 = uintptr(0)
@@ -112236,51 +112982,51 @@ __286:
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, 7)
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
-__287:
+__288:
if !(pIdx5 != 0) {
- goto __289
+ goto __290
}
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, 8+j4) // index entries counter
- goto __288
-__288:
- pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
- j4++
- goto __287
goto __289
__289:
+ pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
+ j4++
+ goto __288
+ goto __290
+__290:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Rewind, *(*int32)(unsafe.Pointer(bp + 564 /* iDataCur */)), 0)
loopTop = Xsqlite3VdbeAddOp2(tls, v, OP_AddImm, 7, 1)
if !!(isQuick != 0) {
- goto __290
+ goto __291
}
// Sanity check on record header decoding
Xsqlite3VdbeAddOp3(tls, v, OP_Column, *(*int32)(unsafe.Pointer(bp + 564 /* iDataCur */)), int32((*Table)(unsafe.Pointer(pTab9)).FnNVCol)-1, 3)
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_TYPEOFARG))
-__290:
+__291:
;
// Verify that all NOT NULL columns really are NOT NULL. At the
// same time verify the type of the content of STRICT tables
bStrict = libc.Bool32((*Table)(unsafe.Pointer(pTab9)).FtabFlags&U32(TF_Strict) != U32(0))
j4 = 0
-__291:
+__292:
if !(j4 < int32((*Table)(unsafe.Pointer(pTab9)).FnCol)) {
- goto __293
+ goto __294
}
pCol1 = (*Table)(unsafe.Pointer(pTab9)).FaCol + uintptr(j4)*24
if !(j4 == int32((*Table)(unsafe.Pointer(pTab9)).FiPKey)) {
- goto __294
+ goto __295
}
- goto __292
-__294:
+ goto __293
+__295:
;
if !(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf>>0) == 0 && !(bStrict != 0)) {
- goto __295
+ goto __296
}
- goto __292
-__295:
+ goto __293
+__296:
;
if bStrict != 0 {
doError = Xsqlite3VdbeMakeLabel(tls, pParse)
@@ -112289,107 +113035,107 @@ __295:
}
Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab9, *(*int32)(unsafe.Pointer(bp + 564 /* iDataCur */)), j4, 3)
if !(int32((*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, v, -1))).Fopcode) == OP_Column) {
- goto __296
+ goto __297
}
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_TYPEOFARG))
-__296:
+__297:
;
if !(uint32(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf>>0)) != 0) {
- goto __297
+ goto __298
}
jmp2 = Xsqlite3VdbeAddOp1(tls, v, OP_NotNull, 3)
- zErr = Xsqlite3MPrintf(tls, db, ts+17598, libc.VaList(bp+368, (*Table)(unsafe.Pointer(pTab9)).FzName,
+ zErr = Xsqlite3MPrintf(tls, db, ts+17638, libc.VaList(bp+368, (*Table)(unsafe.Pointer(pTab9)).FzName,
(*Column)(unsafe.Pointer(pCol1)).FzCnName))
Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr, -7)
if !(bStrict != 0 && int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4) != COLTYPE_ANY) {
- goto __298
+ goto __299
}
Xsqlite3VdbeGoto(tls, v, doError)
- goto __299
-__298:
- integrityCheckResultRow(tls, v)
+ goto __300
__299:
+ integrityCheckResultRow(tls, v)
+__300:
;
Xsqlite3VdbeJumpHere(tls, v, jmp2)
-__297:
+__298:
;
if !((*Table)(unsafe.Pointer(pTab9)).FtabFlags&U32(TF_Strict) != U32(0) &&
int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4) != COLTYPE_ANY) {
- goto __300
+ goto __301
}
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+17618,
+ zErr = Xsqlite3MPrintf(tls, db, ts+17658,
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)
Xsqlite3VdbeResolveLabel(tls, v, doError)
integrityCheckResultRow(tls, v)
Xsqlite3VdbeJumpHere(tls, v, jmp2)
-__300:
+__301:
;
- goto __292
-__292:
- j4++
- goto __291
goto __293
__293:
+ j4++
+ goto __292
+ goto __294
+__294:
;
// Verify CHECK constraints
if !((*Table)(unsafe.Pointer(pTab9)).FpCheck != 0 && (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_IgnoreChecks) == uint64(0)) {
- goto __301
+ goto __302
}
pCheck = Xsqlite3ExprListDup(tls, db, (*Table)(unsafe.Pointer(pTab9)).FpCheck, 0)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0) {
- goto __302
+ goto __303
}
addrCkFault = Xsqlite3VdbeMakeLabel(tls, pParse)
addrCkOk = Xsqlite3VdbeMakeLabel(tls, pParse)
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = *(*int32)(unsafe.Pointer(bp + 564)) + 1
k3 = (*ExprList)(unsafe.Pointer(pCheck)).FnExpr - 1
-__303:
+__304:
if !(k3 > 0) {
- goto __305
+ goto __306
}
Xsqlite3ExprIfFalse(tls, pParse, (*ExprList_item)(unsafe.Pointer(pCheck+8+uintptr(k3)*32)).FpExpr, addrCkFault, 0)
- goto __304
-__304:
- k3--
- goto __303
goto __305
__305:
+ k3--
+ goto __304
+ goto __306
+__306:
;
Xsqlite3ExprIfTrue(tls, pParse, (*ExprList_item)(unsafe.Pointer(pCheck+8)).FpExpr, addrCkOk,
SQLITE_JUMPIFNULL)
Xsqlite3VdbeResolveLabel(tls, v, addrCkFault)
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0
- zErr1 = Xsqlite3MPrintf(tls, db, ts+17640,
+ zErr1 = Xsqlite3MPrintf(tls, db, ts+17680,
libc.VaList(bp+408, (*Table)(unsafe.Pointer(pTab9)).FzName))
Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr1, -7)
integrityCheckResultRow(tls, v)
Xsqlite3VdbeResolveLabel(tls, v, addrCkOk)
-__302:
+__303:
;
Xsqlite3ExprListDelete(tls, db, pCheck)
-__301:
+__302:
;
if !!(isQuick != 0) {
- goto __306
+ goto __307
} // Omit the remaining tests for quick_check
// Validate index entries for the current row
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
-__307:
+__308:
if !(pIdx5 != 0) {
- goto __309
+ goto __310
}
ckUniq = Xsqlite3VdbeMakeLabel(tls, pParse)
if !(pPk1 == pIdx5) {
- goto __310
+ goto __311
}
- goto __308
-__310:
+ goto __309
+__311:
;
r1 = Xsqlite3GenerateIndexKey(tls, pParse, pIdx5, *(*int32)(unsafe.Pointer(bp + 564 /* iDataCur */)), 0, 0, bp+572,
pPrior, r1)
@@ -112398,9 +113144,9 @@ __310:
// 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+17670)
+ Xsqlite3VdbeLoadString(tls, v, 3, ts+17710)
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 7, 3, 3)
- Xsqlite3VdbeLoadString(tls, v, 4, ts+17675)
+ Xsqlite3VdbeLoadString(tls, v, 4, ts+17715)
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)
@@ -112410,70 +113156,70 @@ __310:
// current key. The entry is unique if (1) any column is NULL
// or (2) the next entry has a different key
if !(int32((*Index)(unsafe.Pointer(pIdx5)).FonError) != OE_None) {
- goto __311
+ goto __312
}
uniqOk = Xsqlite3VdbeMakeLabel(tls, pParse)
kk = 0
-__312:
+__313:
if !(kk < int32((*Index)(unsafe.Pointer(pIdx5)).FnKeyCol)) {
- goto __314
+ goto __315
}
iCol1 = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx5)).FaiColumn + uintptr(kk)*2)))
if !(iCol1 >= 0 && uint32(int32(*(*uint8)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab9)).FaCol + uintptr(iCol1)*24 + 8))&0xf>>0)) != 0) {
- goto __315
+ goto __316
}
- goto __313
-__315:
+ goto __314
+__316:
;
Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, r1+kk, uniqOk)
- goto __313
-__313:
- kk++
- goto __312
goto __314
__314:
+ kk++
+ goto __313
+ goto __315
+__315:
;
jmp6 = Xsqlite3VdbeAddOp1(tls, v, OP_Next, *(*int32)(unsafe.Pointer(bp + 568))+j4)
Xsqlite3VdbeGoto(tls, v, uniqOk)
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+17696)
+ Xsqlite3VdbeLoadString(tls, v, 3, ts+17736)
Xsqlite3VdbeGoto(tls, v, jmp5)
Xsqlite3VdbeResolveLabel(tls, v, uniqOk)
-__311:
+__312:
;
Xsqlite3VdbeJumpHere(tls, v, jmp4)
Xsqlite3ResolvePartIdxLabel(tls, pParse, *(*int32)(unsafe.Pointer(bp + 572 /* jmp3 */)))
- goto __308
-__308:
- pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
- j4++
- goto __307
goto __309
__309:
+ pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
+ j4++
+ goto __308
+ goto __310
+__310:
;
-__306:
+__307:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Next, *(*int32)(unsafe.Pointer(bp + 564 /* iDataCur */)), loopTop)
Xsqlite3VdbeJumpHere(tls, v, loopTop-1)
if !!(isQuick != 0) {
- goto __316
+ goto __317
}
- Xsqlite3VdbeLoadString(tls, v, 2, ts+17723)
+ Xsqlite3VdbeLoadString(tls, v, 2, ts+17763)
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
-__317:
+__318:
if !(pIdx5 != 0) {
- goto __319
+ goto __320
}
if !(pPk1 == pIdx5) {
- goto __320
+ goto __321
}
- goto __318
-__320:
+ goto __319
+__321:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Count, *(*int32)(unsafe.Pointer(bp + 568))+j4, 3)
addr1 = Xsqlite3VdbeAddOp3(tls, v, OP_Eq, 8+j4, 0, 3)
@@ -112482,41 +113228,41 @@ __320:
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 4, 2, 3)
integrityCheckResultRow(tls, v)
Xsqlite3VdbeJumpHere(tls, v, addr1)
- goto __318
-__318:
- pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
- j4++
- goto __317
goto __319
__319:
+ pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
+ j4++
+ goto __318
+ goto __320
+__320:
;
-__316:
+__317:
;
- goto __283
-__283:
- x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
- goto __282
goto __284
__284:
+ x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
+ goto __283
+ goto __285
+__285:
;
- goto __257
-__257:
- i9++
- goto __256
goto __258
__258:
+ i9++
+ goto __257
+ goto __259
+__259:
;
aOp2 = Xsqlite3VdbeAddOpList(tls, v, int32(uint64(unsafe.Sizeof(endCode))/uint64(unsafe.Sizeof(VdbeOpList{}))), uintptr(unsafe.Pointer(&endCode)), iLn5)
if !(aOp2 != 0) {
- goto __321
+ goto __322
}
(*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 + 17752 /* "ok" */
+ *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 17792 /* "ok" */
(*VdbeOp)(unsafe.Pointer(aOp2 + 5*24)).Fp4type = int8(-1)
*(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = Xsqlite3ErrStr(tls, SQLITE_CORRUPT)
-__321:
+__322:
;
Xsqlite3VdbeChangeP3(tls, v, 0, Xsqlite3VdbeCurrentAddr(tls, v)-2)
@@ -112544,32 +113290,32 @@ __321:
// useful if invoked immediately after the main database i
__45:
if !!(zRight != 0) {
- goto __322
+ goto __323
} // "PRAGMA encoding"
if !(Xsqlite3ReadSchema(tls, pParse) != 0) {
- goto __324
+ goto __325
}
goto pragma_out
-__324:
+__325:
;
returnSingleText(tls, v, encnames1[(*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).Fenc].FzName)
- goto __323
-__322: // "PRAGMA encoding = XXX"
+ goto __324
+__323: // "PRAGMA encoding = XXX"
// Only change the value of sqlite.enc if the database handle is not
// initialized. If the main database exists, the new sqlite.enc value
// will be overwritten when the schema is next loaded. If it does not
// already exists, it will be created to use the new encoding value.
if !((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_EncodingFixed) == U32(0)) {
- goto __325
+ goto __326
}
pEnc = uintptr(unsafe.Pointer(&encnames1))
-__326:
+__327:
if !((*EncName)(unsafe.Pointer(pEnc)).FzName != 0) {
- goto __328
+ goto __329
}
if !(0 == Xsqlite3StrICmp(tls, zRight, (*EncName)(unsafe.Pointer(pEnc)).FzName)) {
- goto __329
+ goto __330
}
if (*EncName)(unsafe.Pointer(pEnc)).Fenc != 0 {
enc = (*EncName)(unsafe.Pointer(pEnc)).Fenc
@@ -112578,25 +113324,25 @@ __326:
}
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema)).Fenc = enc
Xsqlite3SetTextEncoding(tls, db, enc)
- goto __328
-__329:
+ goto __329
+__330:
;
- goto __327
-__327:
- pEnc += 16
- goto __326
goto __328
__328:
+ pEnc += 16
+ goto __327
+ goto __329
+__329:
;
if !!(int32((*EncName)(unsafe.Pointer(pEnc)).FzName) != 0) {
- goto __330
+ goto __331
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17755, libc.VaList(bp+416, zRight))
-__330:
+ Xsqlite3ErrorMsg(tls, pParse, ts+17795, libc.VaList(bp+416, zRight))
+__331:
;
-__325:
+__326:
;
-__323:
+__324:
;
goto __15
@@ -112635,36 +113381,36 @@ __46:
iCookie = int32((*PragmaName)(unsafe.Pointer(pPragma)).FiArg) // Which cookie to read or write
Xsqlite3VdbeUsesBtree(tls, v, iDb)
if !(zRight != 0 && int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&PragFlg_ReadOnly == 0) {
- goto __331
+ goto __332
}
aOp3 = Xsqlite3VdbeAddOpList(tls, v, int32(uint64(unsafe.Sizeof(setCookie))/uint64(unsafe.Sizeof(VdbeOpList{}))), uintptr(unsafe.Pointer(&setCookie)), 0)
if !(0 != 0) {
- goto __333
+ goto __334
}
goto __15
-__333:
+__334:
;
(*VdbeOp)(unsafe.Pointer(aOp3)).Fp1 = iDb
(*VdbeOp)(unsafe.Pointer(aOp3 + 1*24)).Fp1 = iDb
(*VdbeOp)(unsafe.Pointer(aOp3 + 1*24)).Fp2 = iCookie
(*VdbeOp)(unsafe.Pointer(aOp3 + 1*24)).Fp3 = Xsqlite3Atoi(tls, zRight)
(*VdbeOp)(unsafe.Pointer(aOp3 + 1*24)).Fp5 = U16(1)
- goto __332
-__331:
+ goto __333
+__332:
;
aOp4 = Xsqlite3VdbeAddOpList(tls, v, int32(uint64(unsafe.Sizeof(readCookie))/uint64(unsafe.Sizeof(VdbeOpList{}))), uintptr(unsafe.Pointer(&readCookie)), 0)
if !(0 != 0) {
- goto __334
+ goto __335
}
goto __15
-__334:
+__335:
;
(*VdbeOp)(unsafe.Pointer(aOp4)).Fp1 = iDb
(*VdbeOp)(unsafe.Pointer(aOp4 + 1*24)).Fp1 = iDb
(*VdbeOp)(unsafe.Pointer(aOp4 + 1*24)).Fp3 = iCookie
Xsqlite3VdbeReusable(tls, v)
-__332:
+__333:
;
goto __15
@@ -112676,14 +113422,14 @@ __332:
__47:
i10 = 0
(*Parse)(unsafe.Pointer(pParse)).FnMem = 1
-__335:
+__336:
if !(libc.AssignUintptr(&zOpt, Xsqlite3_compileoption_get(tls, libc.PostIncInt32(&i10, 1))) != uintptr(0)) {
- goto __336
+ goto __337
}
Xsqlite3VdbeLoadString(tls, v, 1, zOpt)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1)
- goto __335
-__336:
+ goto __336
+__337:
;
Xsqlite3VdbeReusable(tls, v)
@@ -112701,31 +113447,31 @@ __48:
}()
eMode2 = SQLITE_CHECKPOINT_PASSIVE
if !(zRight != 0) {
- goto __337
- }
- if !(Xsqlite3StrICmp(tls, zRight, ts+17193) == 0) {
goto __338
}
+ if !(Xsqlite3StrICmp(tls, zRight, ts+17233) == 0) {
+ goto __339
+ }
eMode2 = SQLITE_CHECKPOINT_FULL
- goto __339
-__338:
- if !(Xsqlite3StrICmp(tls, zRight, ts+17780) == 0) {
- goto __340
+ goto __340
+__339:
+ if !(Xsqlite3StrICmp(tls, zRight, ts+17820) == 0) {
+ goto __341
}
eMode2 = SQLITE_CHECKPOINT_RESTART
- goto __341
-__340:
- if !(Xsqlite3StrICmp(tls, zRight, ts+17346) == 0) {
- goto __342
+ goto __342
+__341:
+ if !(Xsqlite3StrICmp(tls, zRight, ts+17386) == 0) {
+ goto __343
}
eMode2 = SQLITE_CHECKPOINT_TRUNCATE
-__342:
+__343:
;
-__341:
+__342:
;
-__339:
+__340:
;
-__337:
+__338:
;
(*Parse)(unsafe.Pointer(pParse)).FnMem = 3
Xsqlite3VdbeAddOp3(tls, v, OP_Checkpoint, iBt, eMode2, 1)
@@ -112741,10 +113487,10 @@ __337:
// of N.
__49:
if !(zRight != 0) {
- goto __343
+ goto __344
}
Xsqlite3_wal_autocheckpoint(tls, db, Xsqlite3Atoi(tls, zRight))
-__343:
+__344:
;
returnSingleInt(tls, v,
func() int64 {
@@ -112822,19 +113568,19 @@ __50:
__51: // Mask of operations to perform
if !(zRight != 0) {
- goto __344
+ goto __345
}
opMask = U32(Xsqlite3Atoi(tls, zRight))
if !(opMask&U32(0x02) == U32(0)) {
- goto __346
+ goto __347
}
goto __15
-__346:
+__347:
;
- goto __345
-__344:
- opMask = U32(0xfffe)
+ goto __346
__345:
+ opMask = U32(0xfffe)
+__346:
;
iTabCur = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1)
iDbLast = func() int32 {
@@ -112843,22 +113589,22 @@ __345:
}
return (*Sqlite3)(unsafe.Pointer(db)).FnDb - 1
}()
-__347:
+__348:
if !(iDb <= iDbLast) {
- goto __349
+ goto __350
}
if !(iDb == 1) {
- goto __350
+ goto __351
}
- goto __348
-__350:
+ goto __349
+__351:
;
Xsqlite3CodeVerifySchema(tls, pParse, iDb)
pSchema = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FpSchema
k4 = (*Hash)(unsafe.Pointer(pSchema + 8)).Ffirst
-__351:
+__352:
if !(k4 != 0) {
- goto __353
+ goto __354
}
pTab10 = (*HashElem)(unsafe.Pointer(k4)).Fdata
@@ -112866,68 +113612,68 @@ __351:
// having analysis statistics during the current session, then skip it.
// This also has the effect of skipping virtual tables and views
if !((*Table)(unsafe.Pointer(pTab10)).FtabFlags&U32(TF_StatsUsed) == U32(0)) {
- goto __354
+ goto __355
}
- goto __352
-__354:
+ goto __353
+__355:
;
// Reanalyze if the table is 25 times larger than the last analysis
szThreshold = LogEst(int32((*Table)(unsafe.Pointer(pTab10)).FnRowLogEst) + 46)
pIdx6 = (*Table)(unsafe.Pointer(pTab10)).FpIndex
-__355:
+__356:
if !(pIdx6 != 0) {
- goto __357
+ goto __358
}
if !!(int32(*(*uint16)(unsafe.Pointer(pIdx6 + 100))&0x80>>7) != 0) {
- goto __358
+ goto __359
}
szThreshold = int16(0) // Always analyze if any index lacks statistics
- goto __357
-__358:
+ goto __358
+__359:
;
- goto __356
-__356:
- pIdx6 = (*Index)(unsafe.Pointer(pIdx6)).FpNext
- goto __355
goto __357
__357:
+ pIdx6 = (*Index)(unsafe.Pointer(pIdx6)).FpNext
+ goto __356
+ goto __358
+__358:
;
if !(szThreshold != 0) {
- goto __359
+ goto __360
}
Xsqlite3OpenTable(tls, pParse, iTabCur, iDb, pTab10, OP_OpenRead)
Xsqlite3VdbeAddOp3(tls, v, OP_IfSmaller, iTabCur,
int32(U32(Xsqlite3VdbeCurrentAddr(tls, v)+2)+opMask&U32(1)), int32(szThreshold))
-__359:
+__360:
;
- zSubSql = Xsqlite3MPrintf(tls, db, ts+17788,
+ zSubSql = Xsqlite3MPrintf(tls, db, ts+17828,
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 __360
+ goto __361
}
r11 = Xsqlite3GetTempReg(tls, pParse)
Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, r11, 0, zSubSql, -7)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, r11, 1)
- goto __361
-__360:
- Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -7)
+ goto __362
__361:
+ Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -7)
+__362:
;
- goto __352
-__352:
- k4 = (*HashElem)(unsafe.Pointer(k4)).Fnext
- goto __351
goto __353
__353:
+ k4 = (*HashElem)(unsafe.Pointer(k4)).Fnext
+ goto __352
+ goto __354
+__354:
;
- goto __348
-__348:
- iDb++
- goto __347
goto __349
__349:
+ iDb++
+ goto __348
+ goto __350
+__350:
;
Xsqlite3VdbeAddOp0(tls, v, OP_Expire)
goto __15
@@ -112943,10 +113689,10 @@ __349:
__52:
;
if !(zRight != 0) {
- goto __362
+ goto __363
}
Xsqlite3_busy_timeout(tls, db, Xsqlite3Atoi(tls, zRight))
-__362:
+__363:
;
returnSingleInt(tls, v, int64((*Sqlite3)(unsafe.Pointer(db)).FbusyTimeout))
goto __15
@@ -112962,10 +113708,10 @@ __362:
// sqlite3_soft_heap_limit64(-1) C-language function.
__53:
if !(zRight != 0 && Xsqlite3DecOrHexToI64(tls, zRight, bp+576) == SQLITE_OK) {
- goto __363
+ goto __364
}
Xsqlite3_soft_heap_limit64(tls, *(*Sqlite3_int64)(unsafe.Pointer(bp + 576 /* N */)))
-__363:
+__364:
;
returnSingleInt(tls, v, Xsqlite3_soft_heap_limit64(tls, int64(-1)))
goto __15
@@ -112981,16 +113727,16 @@ __363:
// constraint that cannot be relaxed by an untrusted SQL script.
__54:
if !(zRight != 0 && Xsqlite3DecOrHexToI64(tls, zRight, bp+584) == SQLITE_OK) {
- goto __364
+ goto __365
}
iPrior = Xsqlite3_hard_heap_limit64(tls, int64(-1))
if !(*(*Sqlite3_int64)(unsafe.Pointer(bp + 584)) > int64(0) && (iPrior == int64(0) || iPrior > *(*Sqlite3_int64)(unsafe.Pointer(bp + 584)))) {
- goto __365
+ goto __366
}
Xsqlite3_hard_heap_limit64(tls, *(*Sqlite3_int64)(unsafe.Pointer(bp + 584 /* N1 */)))
-__365:
+__366:
;
-__364:
+__365:
;
returnSingleInt(tls, v, Xsqlite3_hard_heap_limit64(tls, int64(-1)))
goto __15
@@ -113004,10 +113750,10 @@ __55:
if !(zRight != 0 &&
Xsqlite3DecOrHexToI64(tls, zRight, bp+592) == SQLITE_OK &&
*(*Sqlite3_int64)(unsafe.Pointer(bp + 592)) >= int64(0)) {
- goto __366
+ goto __367
}
Xsqlite3_limit(tls, db, SQLITE_LIMIT_WORKER_THREADS, int32(*(*Sqlite3_int64)(unsafe.Pointer(bp + 592))&int64(0x7fffffff)))
-__366:
+__367:
;
returnSingleInt(tls, v, int64(Xsqlite3_limit(tls, db, SQLITE_LIMIT_WORKER_THREADS, -1)))
goto __15
@@ -113021,10 +113767,10 @@ __56:
if !(zRight != 0 &&
Xsqlite3DecOrHexToI64(tls, zRight, bp+600) == SQLITE_OK &&
*(*Sqlite3_int64)(unsafe.Pointer(bp + 600)) >= int64(0)) {
- goto __367
+ goto __368
}
(*Sqlite3)(unsafe.Pointer(db)).FnAnalysisLimit = int32(*(*Sqlite3_int64)(unsafe.Pointer(bp + 600)) & int64(0x7fffffff))
-__367:
+__368:
;
returnSingleInt(tls, v, int64((*Sqlite3)(unsafe.Pointer(db)).FnAnalysisLimit)) // IMP: R-57594-65522
goto __15
@@ -113038,10 +113784,10 @@ __15:
// to the PRAGMA, the implementation has not added any OP_ResultRow
// instructions to the VM.
if !(int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&PragFlg_NoColumns1 != 0 && zRight != 0) {
- goto __368
+ goto __369
}
-__368:
+__369:
;
pragma_out:
@@ -113053,9 +113799,9 @@ type EncName = struct {
FzName uintptr
Fenc U8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:131460:18 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132438:18 */
-var iLn3 int32 = 0 /* sqlite3.c:130018:22 */
+var iLn3 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130992:22 */
var getCacheSize = [9]VdbeOpList{
{Fopcode: U8(OP_Transaction)}, // 0
{Fopcode: U8(OP_ReadCookie), Fp2: int8(1), Fp3: int8(BTREE_DEFAULT_CACHE_SIZE)}, // 1
@@ -113066,16 +113812,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)},
-} /* sqlite3.c:130019:29 */
-var iLn4 int32 = 0 /* sqlite3.c:130287:26 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130993:29 */
+var iLn4 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:131261: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
-} /* sqlite3.c:130288:33 */
-var iLn5 int32 = 0 /* sqlite3.c:131410:24 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:131262:33 */
+var iLn5 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132388:24 */
var endCode = [7]VdbeOpList{
{Fopcode: U8(OP_AddImm), Fp1: int8(1)}, // 0
{Fopcode: U8(OP_IfNotZero), Fp1: int8(1), Fp2: int8(4)}, // 1
@@ -113084,27 +113830,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
-} /* sqlite3.c:131411:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132389:31 */
var encnames1 = [9]EncName{
- {FzName: ts + 17806, Fenc: U8(SQLITE_UTF8)},
- {FzName: ts + 17811, Fenc: U8(SQLITE_UTF8)}, // Must be element [1]
- {FzName: ts + 17817, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2]
- {FzName: ts + 17826, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3]
- {FzName: ts + 17835, Fenc: U8(SQLITE_UTF16LE)},
- {FzName: ts + 17843, Fenc: U8(SQLITE_UTF16BE)},
- {FzName: ts + 17851},
- {FzName: ts + 17858},
+ {FzName: ts + 17846, Fenc: U8(SQLITE_UTF8)},
+ {FzName: ts + 17851, Fenc: U8(SQLITE_UTF8)}, // Must be element [1]
+ {FzName: ts + 17857, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2]
+ {FzName: ts + 17866, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3]
+ {FzName: ts + 17875, Fenc: U8(SQLITE_UTF16LE)},
+ {FzName: ts + 17883, Fenc: U8(SQLITE_UTF16BE)},
+ {FzName: ts + 17891},
+ {FzName: ts + 17898},
{},
-} /* sqlite3.c:131463:7 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132441:7 */
var setCookie = [2]VdbeOpList{
{Fopcode: U8(OP_Transaction), Fp2: int8(1)}, // 0
{Fopcode: U8(OP_SetCookie)}, // 1
-} /* sqlite3.c:131543:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132521: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)},
-} /* sqlite3.c:131558:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132536:31 */
// ****************************************************************************
//
// Implementation of an eponymous virtual table that runs a pragma.
@@ -113116,24 +113862,24 @@ type PragmaVtab1 = struct {
FnHidden U8
FiHidden U8
F__ccgo_pad1 [6]byte
-} /* sqlite3.c:131918:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132896:9 */
// ****************************************************************************
//
// Implementation of an eponymous virtual table that runs a pragma.
//
-type PragmaVtab = PragmaVtab1 /* sqlite3.c:131918:27 */
+type PragmaVtab = PragmaVtab1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132896:27 */
type PragmaVtabCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpPragma uintptr
FiRowid Sqlite_int64
FazArg [2]uintptr
-} /* sqlite3.c:131919:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132897:9 */
-type PragmaVtabCursor = PragmaVtabCursor1 /* sqlite3.c:131919:33 */
+type PragmaVtabCursor = PragmaVtabCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132897: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 { /* sqlite3.c:131937:12: */
+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: */
bp := tls.Alloc(264)
defer tls.Free(264)
@@ -113150,7 +113896,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+17864)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17904)
i = 0
j = int32((*PragmaName)(unsafe.Pointer(pPragma)).FiPragCName)
__1:
@@ -113158,7 +113904,7 @@ __1:
goto __3
}
{
- Xsqlite3_str_appendf(tls, bp+32, ts+17879, libc.VaList(bp, int32(cSep), pragCName[j]))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17919, libc.VaList(bp, int32(cSep), pragCName[j]))
cSep = int8(',')
}
@@ -113171,19 +113917,19 @@ __2:
__3:
;
if i == 0 {
- Xsqlite3_str_appendf(tls, bp+32, ts+17886, libc.VaList(bp+16, (*PragmaName)(unsafe.Pointer(pPragma)).FzName))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17926, 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+17892)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17932)
j++
}
if int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(PragFlg_SchemaOpt|PragFlg_SchemaReq) != 0 {
- Xsqlite3_str_appendall(tls, bp+32, ts+17904)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17944)
j++
}
- Xsqlite3_str_append(tls, bp+32, ts+4880, 1)
+ Xsqlite3_str_append(tls, bp+32, ts+4889, 1)
Xsqlite3StrAccumFinish(tls, bp+32)
rc = Xsqlite3_declare_vtab(tls, db, bp+64)
@@ -113199,7 +113945,7 @@ __3:
(*PragmaVtab)(unsafe.Pointer(pTab)).FnHidden = U8(j)
}
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
}
*(*uintptr)(unsafe.Pointer(ppVtab)) = pTab
@@ -113207,7 +113953,7 @@ __3:
}
// Pragma virtual table module xDisconnect method.
-func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:131999:12: */
+func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132977:12: */
var pTab uintptr = pVtab
Xsqlite3_free(tls, pTab)
return SQLITE_OK
@@ -113219,7 +113965,7 @@ func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:131
// 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 { /* sqlite3.c:132012:12: */
+func pragmaVtabBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132990:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -113284,7 +114030,7 @@ __3:
}
// Create a new cursor for the pragma virtual table
-func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* sqlite3.c:132049:12: */
+func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133027:12: */
var pCsr uintptr
pCsr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(PragmaVtabCursor{})))
if pCsr == uintptr(0) {
@@ -113297,7 +114043,7 @@ func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* s
}
// Clear all content from pragma virtual table cursor.
-func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:132060:13: */
+func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133038:13: */
var i int32
Xsqlite3_finalize(tls, (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma)
(*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma = uintptr(0)
@@ -113308,7 +114054,7 @@ func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:132060:13
}
// Close a pragma virtual table cursor
-func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:132071:12: */
+func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133049:12: */
var pCsr uintptr = cur
pragmaVtabCursorClear(tls, pCsr)
Xsqlite3_free(tls, pCsr)
@@ -113316,7 +114062,7 @@ func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:132071:12:
}
// Advance the pragma virtual table cursor to the next row
-func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:132079:12: */
+func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133057:12: */
var pCsr uintptr = pVtabCursor
var rc int32 = SQLITE_OK
@@ -113332,7 +114078,7 @@ func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:132
}
// Pragma virtual table module xFilter method.
-func pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3.c:132097:12: */
+func pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133075:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -113362,7 +114108,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+3604, libc.VaList(bp, zText))
+ *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, zText))
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) == uintptr(0) {
return SQLITE_NOMEM
}
@@ -113378,13 +114124,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+17919)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17959)
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 {
- Xsqlite3_str_appendf(tls, bp+32, ts+17927, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8))))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17967, 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+17931, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17971, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
}
zSql = Xsqlite3StrAccumFinish(tls, bp+32)
if zSql == uintptr(0) {
@@ -113393,21 +114139,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+3604, libc.VaList(bp+24, Xsqlite3_errmsg(tls, (*PragmaVtab)(unsafe.Pointer(pTab)).Fdb)))
+ (*PragmaVtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+3595, 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 { /* sqlite3.c:132147:12: */
+func pragmaVtabEof(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133125: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 { /* sqlite3.c:132155:12: */
+func pragmaVtabColumn(tls *libc.TLS, pVtabCursor uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133133:12: */
var pCsr uintptr = pVtabCursor
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab
if i < int32((*PragmaVtab)(unsafe.Pointer(pTab)).FiHidden) {
@@ -113419,7 +114165,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 { /* sqlite3.c:132173:12: */
+func pragmaVtabRowid(tls *libc.TLS, pVtabCursor uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133151:12: */
var pCsr uintptr = pVtabCursor
*(*Sqlite_int64)(unsafe.Pointer(p)) = (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FiRowid
return SQLITE_OK
@@ -113437,12 +114183,12 @@ var pragmaVtabModule = Sqlite3_module{ // xCreate - create a table
FxEof: 0, // xEof
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:132180:29 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133158: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 { /* sqlite3.c:132212:23: */
+func Xsqlite3PragmaVtabRegister(tls *libc.TLS, db uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133190:23: */
var pName uintptr
pName = pragmaLocate(tls, zName+uintptr(7))
@@ -113475,7 +114221,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) { /* sqlite3.c:132249:13: */
+func corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133227:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -113486,39 +114232,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+17935, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)),
+ ts+17975, 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, 132272)
+ (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133250)
} 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 + 4931 /* "?" */
+ zObj = ts + 4940 /* "?" */
}
- z = Xsqlite3MPrintf(tls, db, ts+17963, libc.VaList(bp+32, zObj))
+ z = Xsqlite3MPrintf(tls, db, ts+18003, libc.VaList(bp+32, zObj))
if zExtra != 0 && *(*int8)(unsafe.Pointer(zExtra)) != 0 {
- z = Xsqlite3MPrintf(tls, db, ts+17994, libc.VaList(bp+40, z, zExtra))
+ z = Xsqlite3MPrintf(tls, db, ts+18034, libc.VaList(bp+40, z, zExtra))
}
*(*uintptr)(unsafe.Pointer((*InitData)(unsafe.Pointer(pData)).FpzErrMsg)) = z
- (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 132279)
+ (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133257)
}
}
var azAlterType = [3]uintptr{
- ts + 18002,
- ts + 18009,
- ts + 18021,
-} /* sqlite3.c:132260:23 */
+ ts + 18042,
+ ts + 18049,
+ ts + 18061,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133238: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 { /* sqlite3.c:132288:20: */
+func Xsqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133266: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 {
@@ -113540,7 +114286,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 { /* sqlite3.c:132322:20: */
+func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133300:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -113585,7 +114331,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+14036)
+ corruptSchema(tls, pData, argv, ts+14058)
}
}
libc.SetBitFieldPtr8Uint32(db+192+8, uint32(0), 0, 0x1)
@@ -113623,13 +114369,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+18032)
+ corruptSchema(tls, pData, argv, ts+18072)
} 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+14036)
+ corruptSchema(tls, pData, argv, ts+14058)
}
}
}
@@ -113642,7 +114388,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 { /* sqlite3.c:132425:20: */
+func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFlags U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133403:20: */
bp := tls.Alloc(124)
defer tls.Free(124)
@@ -113675,13 +114421,13 @@ func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
*(*uintptr)(unsafe.Pointer(bp + 16)) = ts + 8742 /* "table" */
*(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) = libc.AssignUintptr(&zSchemaTabName, func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}())
*(*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 + 18045 /* "CREATE TABLE x(t..." */
+ *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 7806 /* "1" */
+ *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 18085 /* "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
@@ -113794,7 +114540,7 @@ __10:
goto __13
}
Xsqlite3SetString(tls, pzErrMsg, db,
- ts+11616)
+ ts+11641)
rc = SQLITE_ERROR
goto initone_error_out
__13:
@@ -113834,7 +114580,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+18117)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+18157)
rc = SQLITE_ERROR
goto initone_error_out
__17:
@@ -113856,7 +114602,7 @@ __18:
(*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer(pDb)).FpBt)
zSql = Xsqlite3MPrintf(tls, db,
- ts+18141,
+ ts+18181,
libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zSchemaTabName))
xAuth = (*Sqlite3)(unsafe.Pointer(db)).FxAuth
@@ -113888,7 +114634,7 @@ __20:
pDb = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32
goto __22
__21:
- if !(rc == SQLITE_OK || (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_NoSchemaError) != 0) {
+ if !(rc == SQLITE_OK || (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_NoSchemaError) != 0 && rc != SQLITE_NOMEM) {
goto __23
}
// Hack: If the SQLITE_NoSchemaError flag is set, then consider
@@ -113943,7 +114689,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 { /* sqlite3.c:132664:20: */
+func Xsqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133642:20: */
var i int32
var rc int32
var commit_internal int32 = libc.BoolInt32(!((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != 0))
@@ -113975,7 +114721,7 @@ func Xsqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:132696:20: */
+func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133674:20: */
var rc int32 = SQLITE_OK
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -113994,7 +114740,7 @@ func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:1326
// 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) { /* sqlite3.c:132718:13: */
+func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133696:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -114047,7 +114793,7 @@ func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:132718:13: */
//
// 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 { /* sqlite3.c:132768:20: */
+func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133746:20: */
var i int32 = -32768
// If pSchema is NULL, then return -32768. This happens when code in
@@ -114074,8 +114820,10 @@ func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { /
}
// Free all memory allocations in the pParse object
-func Xsqlite3ParserReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:132798:21: */
+func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133776:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
+
+ Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FaTableLock)
for (*Parse)(unsafe.Pointer(pParse)).FpCleanup != 0 {
var pCleanup uintptr = (*Parse)(unsafe.Pointer(pParse)).FpCleanup
(*Parse)(unsafe.Pointer(pParse)).FpCleanup = (*ParseCleanup)(unsafe.Pointer(pCleanup)).FpNext
@@ -114088,16 +114836,17 @@ func Xsqlite3ParserReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:132798:21
if (*Parse)(unsafe.Pointer(pParse)).FpConstExpr != 0 {
Xsqlite3ExprListDelete(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpConstExpr)
}
- if db != 0 {
- *(*U32)(unsafe.Pointer(db + 440)) -= U32((*Parse)(unsafe.Pointer(pParse)).FdisableLookaside)
- (*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz = func() uint16 {
- if (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable != 0 {
- return uint16(0)
- }
- return (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FszTrue
- }()
- }
+ *(*U32)(unsafe.Pointer(db + 440)) -= U32((*Parse)(unsafe.Pointer(pParse)).FdisableLookaside)
+ (*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz = func() uint16 {
+ if (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable != 0 {
+ return uint16(0)
+ }
+ return (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FszTrue
+ }()
+
+ (*Sqlite3)(unsafe.Pointer(db)).FpParse = (*Parse)(unsafe.Pointer(pParse)).FpOuterParse
+ (*Parse)(unsafe.Pointer(pParse)).Fdb = uintptr(0)
(*Parse)(unsafe.Pointer(pParse)).FdisableLookaside = U8(0)
}
@@ -114109,7 +114858,7 @@ func Xsqlite3ParserReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:132798:21
// cost for this mechansim (an extra malloc), so it should not be used
// for common cleanups that happen on most calls. But for less
// common cleanups, we save a single NULL-pointer comparison in
-// sqlite3ParserReset(), which reduces the total CPU cycle count.
+// sqlite3ParseObjectReset(), which reduces the total CPU cycle count.
//
// If a memory allocation error occurs, then the cleanup happens immediately.
// When either SQLITE_DEBUG or SQLITE_COVERAGE_TEST are defined, the
@@ -114127,7 +114876,7 @@ func Xsqlite3ParserReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:132798:21
// return value thereafter. Something like this:
//
// pObj = sqlite3ParserAddCleanup(pParse, destructor, pObj);
-func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, pPtr uintptr) uintptr { /* sqlite3.c:132846:21: */
+func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, pPtr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133831: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
@@ -114143,40 +114892,68 @@ func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, p
return pPtr
}
+// Turn bulk memory into a valid Parse object and link that Parse object
+// into database connection db.
+//
+// Call sqlite3ParseObjectReset() to undo this operation.
+//
+// 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: */
+ 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))
+
+ (*Parse)(unsafe.Pointer(pParse)).FpOuterParse = (*Sqlite3)(unsafe.Pointer(db)).FpParse
+ (*Sqlite3)(unsafe.Pointer(db)).FpParse = pParse
+ (*Parse)(unsafe.Pointer(pParse)).Fdb = db
+ if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ Xsqlite3ErrorMsg(tls, pParse, ts+1451, 0)
+ }
+}
+
+// Maximum number of times that we will try again to prepare a statement
+// 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 { /* sqlite3.c:132870:12: */
+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: */
bp := tls.Alloc(424)
defer tls.Free(424)
- // var zErrMsg uintptr at bp+416, 8
- // Error message
var rc int32 // Result code
var i int32 // Loop counter
- // var sParse Parse at bp+16, 400
+ // var sParse Parse at bp+16, 408
var zDb uintptr
var pBt uintptr
var zSqlCopy uintptr
var mxLen int32
var pT uintptr
- *(*uintptr)(unsafe.Pointer(bp + 416 /* zErrMsg */)) = uintptr(0)
rc = SQLITE_OK // Parsing context
- libc.Xmemset(tls, bp+16, 0, uint64(uintptr(0)+216))
- libc.Xmemset(tls, bp+16+uintptr(uint64(uintptr(0)+264)), 0, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+264))
+ // sqlite3ParseObjectInit(&sParse, db); // inlined for performance
+ libc.Xmemset(tls, bp+16+uintptr(uint64(uintptr(0)+8)), 0, uint64(uintptr(0)+216)-uint64(uintptr(0)+8))
+ libc.Xmemset(tls, bp+16+uintptr(uint64(uintptr(0)+272)), 0, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272))
+ (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FpOuterParse = (*Sqlite3)(unsafe.Pointer(db)).FpParse
+ (*Sqlite3)(unsafe.Pointer(db)).FpParse = bp + 16 /* &sParse */
+ (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).Fdb = db
(*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FpReprepare = pReprepare
- // assert( !db->mallocFailed ); // not true with SQLITE_USE_ALLOCA
+ if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+ goto __1
+ }
+ Xsqlite3ErrorMsg(tls, bp+16, ts+1451, 0)
+__1:
+ ;
// For a long-term use prepared statement avoid the use of
// lookaside memory.
if !(prepFlags&U32(SQLITE_PREPARE_PERSISTENT) != 0) {
- goto __1
+ goto __2
}
(*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FdisableLookaside++
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz = U16(0)
-__1:
+__2:
;
(*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FdisableVtab = U8(libc.Bool32(prepFlags&U32(SQLITE_PREPARE_NO_VTAB) != U32(0)))
@@ -114203,159 +114980,158 @@ __1:
// but it does *not* override schema lock detection, so this all still
// works even if READ_UNCOMMITTED is set.
if !!(int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) != 0) {
- goto __2
+ goto __3
}
i = 0
-__3:
+__4:
if !(i < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __5
+ goto __6
}
pBt = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32)).FpBt
if !(pBt != 0) {
- goto __6
+ goto __7
}
rc = Xsqlite3BtreeSchemaLocked(tls, pBt)
if !(rc != 0) {
- goto __7
+ goto __8
}
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32)).FzDbSName
- Xsqlite3ErrorWithMsg(tls, db, rc, ts+18175, libc.VaList(bp, zDb))
+ Xsqlite3ErrorWithMsg(tls, db, rc, ts+18215, libc.VaList(bp, zDb))
goto end_prepare
-__7:
+__8:
;
-__6:
+__7:
;
- goto __4
-__4:
- i++
- goto __3
goto __5
__5:
+ i++
+ goto __4
+ goto __6
+__6:
;
-__2:
+__3:
;
Xsqlite3VtabUnlockList(tls, db)
- (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).Fdb = db
if !(nBytes >= 0 && (nBytes == 0 || int32(*(*int8)(unsafe.Pointer(zSql + uintptr(nBytes-1)))) != 0)) {
- goto __8
+ goto __9
}
mxLen = *(*int32)(unsafe.Pointer(db + 136 + 1*4))
if !(nBytes > mxLen) {
- goto __10
+ goto __11
}
- Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+18205, 0)
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+18245, 0)
rc = Xsqlite3ApiExit(tls, db, SQLITE_TOOBIG)
goto end_prepare
-__10:
+__11:
;
zSqlCopy = Xsqlite3DbStrNDup(tls, db, zSql, uint64(nBytes))
if !(zSqlCopy != 0) {
- goto __11
+ goto __12
}
- Xsqlite3RunParser(tls, bp+16, zSqlCopy, bp+416)
+ Xsqlite3RunParser(tls, bp+16, zSqlCopy)
(*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FzTail = zSql + uintptr((int64((*Parse)(unsafe.Pointer(bp+16)).FzTail)-int64(zSqlCopy))/1)
Xsqlite3DbFree(tls, db, zSqlCopy)
- goto __12
-__11:
- (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FzTail = zSql + uintptr(nBytes)
+ goto __13
__12:
+ (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FzTail = zSql + uintptr(nBytes)
+__13:
;
- goto __9
-__8:
- Xsqlite3RunParser(tls, bp+16, zSql, bp+416)
+ goto __10
__9:
+ Xsqlite3RunParser(tls, bp+16, zSql)
+__10:
;
if !(pzTail != 0) {
- goto __13
+ goto __14
}
*(*uintptr)(unsafe.Pointer(pzTail)) = (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FzTail
-__13:
+__14:
;
if !(int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy) == 0) {
- goto __14
+ goto __15
}
Xsqlite3VdbeSetSql(tls, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FpVdbe, zSql, int32((int64((*Parse)(unsafe.Pointer(bp+16)).FzTail)-int64(zSql))/1), uint8(prepFlags))
-__14:
+__15:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __15
+ goto __16
}
(*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).Frc = SQLITE_NOMEM
(*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FcheckSchema = U8(0)
-__15:
+__16:
;
if !((*Parse)(unsafe.Pointer(bp+16)).Frc != SQLITE_OK && (*Parse)(unsafe.Pointer(bp+16)).Frc != SQLITE_DONE) {
- goto __16
+ goto __17
}
if !((*Parse)(unsafe.Pointer(bp+16)).FcheckSchema != 0 && int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy) == 0) {
- goto __18
+ goto __19
}
schemaIsValid(tls, bp+16)
-__18:
+__19:
;
if !((*Parse)(unsafe.Pointer(bp+16)).FpVdbe != 0) {
- goto __19
+ goto __20
}
Xsqlite3VdbeFinalize(tls, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FpVdbe)
-__19:
+__20:
;
rc = (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).Frc
- if !(*(*uintptr)(unsafe.Pointer(bp + 416)) != 0) {
- goto __20
+ if !((*Parse)(unsafe.Pointer(bp+16)).FzErrMsg != 0) {
+ goto __21
}
- Xsqlite3ErrorWithMsg(tls, db, rc, ts+3604, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 416 /* zErrMsg */))))
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 416 /* zErrMsg */)))
- goto __21
-__20:
- Xsqlite3Error(tls, db, rc)
+ Xsqlite3ErrorWithMsg(tls, db, rc, ts+3595, libc.VaList(bp+8, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg))
+ Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)
+ goto __22
__21:
+ Xsqlite3Error(tls, db, rc)
+__22:
;
- goto __17
-__16:
+ goto __18
+__17:
;
*(*uintptr)(unsafe.Pointer(ppStmt)) = (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FpVdbe
rc = SQLITE_OK
Xsqlite3ErrorClear(tls, db)
-__17:
+__18:
;
// Delete any TriggerPrg structures allocated while parsing this statement.
-__22:
+__23:
if !((*Parse)(unsafe.Pointer(bp+16)).FpTriggerPrg != 0) {
- goto __23
+ goto __24
}
pT = (*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FpTriggerPrg
(*Parse)(unsafe.Pointer(bp + 16 /* &sParse */)).FpTriggerPrg = (*TriggerPrg)(unsafe.Pointer(pT)).FpNext
Xsqlite3DbFree(tls, db, pT)
- goto __22
-__23:
+ goto __23
+__24:
;
end_prepare:
- Xsqlite3ParserReset(tls, bp+16)
+ Xsqlite3ParseObjectReset(tls, bp+16)
return rc
}
-func sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pOld uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:133011:12: */
+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: */
var rc int32
var cnt int32 = 0
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
if !(Xsqlite3SafetyCheckOk(tls, db) != 0) || zSql == uintptr(0) {
- return Xsqlite3MisuseError(tls, 133028)
+ return Xsqlite3MisuseError(tls, 134042)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
Xsqlite3BtreeEnterAll(tls, db)
- for ok := true; ok; ok = rc == SQLITE_ERROR|int32(2)<<8 ||
+ for __ccgo := true; __ccgo; __ccgo = rc == SQLITE_ERROR|int32(2)<<8 && libc.PostIncInt32(&cnt, 1) < SQLITE_MAX_PREPARE_RETRY ||
rc == SQLITE_SCHEMA && func() int32 { Xsqlite3ResetOneSchema(tls, db, -1); return libc.PostIncInt32(&cnt, 1) }() == 0 {
// Make multiple attempts to compile the SQL, until it either succeeds
// or encounters a permanent error. A schema problem after one schema
@@ -114380,7 +115156,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 { /* sqlite3.c:133058:20: */
+func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134072:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -114419,14 +115195,14 @@ func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:133058:20:
// 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 { /* sqlite3.c:133097:16: */
+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: */
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 { /* sqlite3.c:133109:16: */
+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: */
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
@@ -114439,7 +115215,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 { /* sqlite3.c:133127:16: */
+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: */
var rc int32
// EVIDENCE-OF: R-56861-42673 sqlite3_prepare_v3() differs from
// sqlite3_prepare_v2() only in having the extra prepFlags parameter,
@@ -114456,7 +115232,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 { /* sqlite3.c:133155:12: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -114469,7 +115245,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, 133176)
+ return Xsqlite3MisuseError(tls, 134190)
}
if nBytes >= 0 {
var sz int32
@@ -114504,21 +115280,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 { /* sqlite3.c:133213:16: */
+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: */
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 { /* sqlite3.c:133225:16: */
+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: */
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 { /* sqlite3.c:133237:16: */
+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: */
var rc int32
rc = sqlite3Prepare16(tls, db, zSql, nBytes,
uint32(SQLITE_PREPARE_SAVESQL)|prepFlags&uint32(SQLITE_PREPARE_MASK),
@@ -114552,7 +115328,7 @@ type DistinctCtx1 = struct {
F__ccgo_pad1 [2]byte
FtabTnct int32
FaddrTnct int32
-} /* sqlite3.c:133278:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134292:9 */
//************* End of prepare.c ********************************************
//************* Begin file select.c *****************************************
@@ -114573,7 +115349,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 /* sqlite3.c:133278:28 */
+type DistinctCtx = DistinctCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134292: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.
@@ -114603,7 +115379,7 @@ type SortCtx1 = struct {
FsortFlags U8
F__ccgo_pad1 [3]byte
FpDeferredRowLoad uintptr
-} /* sqlite3.c:133304:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134318: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.
@@ -114621,19 +115397,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 /* sqlite3.c:133304:24 */
+type SortCtx = SortCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134318:24 */
type RowLoadInfo1 = struct {
FregResult int32
FecelFlags U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:133304:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134318: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) { /* sqlite3.c:133334:13: */
+func clearSelect(tls *libc.TLS, db uintptr, p uintptr, bFree int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134348:13: */
for p != 0 {
var pPrior uintptr = (*Select)(unsafe.Pointer(p)).FpPrior
Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(p)).FpEList)
@@ -114662,7 +115438,7 @@ func clearSelect(tls *libc.TLS, db uintptr, p uintptr, bFree int32) { /* sqlite3
}
// Initialize a SelectDest structure.
-func Xsqlite3SelectDestInit(tls *libc.TLS, pDest uintptr, eDest int32, iParm int32) { /* sqlite3.c:133363:21: */
+func Xsqlite3SelectDestInit(tls *libc.TLS, pDest uintptr, eDest int32, iParm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134377:21: */
(*SelectDest)(unsafe.Pointer(pDest)).FeDest = U8(eDest)
(*SelectDest)(unsafe.Pointer(pDest)).FiSDParm = iParm
(*SelectDest)(unsafe.Pointer(pDest)).FiSDParm2 = 0
@@ -114673,7 +115449,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 { /* sqlite3.c:133377: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-3380500/sqlite3.c:134391:23: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -114723,14 +115499,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) { /* sqlite3.c:133435:21: */
+func Xsqlite3SelectDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134449: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 { /* sqlite3.c:133442:15: */
+func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134456:15: */
for (*Select)(unsafe.Pointer(p)).FpNext != 0 {
p = (*Select)(unsafe.Pointer(p)).FpNext
}
@@ -114752,7 +115528,7 @@ func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:133442:15: *
//
// 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 { /* sqlite3.c:133464:20: */
+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)
@@ -114789,24 +115565,24 @@ func Xsqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC
}
}
if jointype&(JT_INNER|JT_OUTER) == JT_INNER|JT_OUTER || jointype&JT_ERROR != 0 {
- var zSp uintptr = ts + 10769 /* " " */
+ var zSp uintptr = ts + 10786 /* " " */
if pC == uintptr(0) {
zSp++
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+18224, libc.VaList(bp, pA, pB, zSp, pC))
+ ts+18264, 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+18268, 0)
+ ts+18308, 0)
jointype = JT_INNER
}
return jointype
}
-var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 18323)) /* sqlite3.c:133469:21 */
+var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 18363)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134483:21 */
var aKeyword = [7]struct {
Fi U8
FnChar U8
@@ -114819,11 +115595,11 @@ var aKeyword = [7]struct {
/* 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)},
-} /* sqlite3.c:133474:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134488: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 { /* sqlite3.c:133525:20: */
+func Xsqlite3ColumnIndex(tls *libc.TLS, pTab uintptr, zCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134539:20: */
var i int32
var h U8 = Xsqlite3StrIHash(tls, zCol)
var pCol uintptr
@@ -114857,7 +115633,7 @@ __3:
// 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 { /* sqlite3.c:133544:12: */
+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: */
var i int32 // For looping over tables in pSrc
var iCol int32 // Index of column matching zCol
@@ -114885,7 +115661,7 @@ func tableAndColumnIndex(tls *libc.TLS, pSrc uintptr, N int32, zCol uintptr, piT
// 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) { /* sqlite3.c:133582:13: */
+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
@@ -114901,13 +115677,13 @@ func addWhereTerm(tls *libc.TLS, pParse uintptr, pSrc uintptr, iLeft int32, iCol
if pEq != 0 && isOuterJoin != 0 {
*(*U32)(unsafe.Pointer(pEq + 4)) |= U32(EP_FromJoin)
- (*Expr)(unsafe.Pointer(pEq)).FiRightJoinTable = (*Expr)(unsafe.Pointer(pE2)).FiTable
+ *(*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.iRightJoinTable to iTable for every term in the
+// And set the Expr.w.iRightJoinTable to iTable for every term in the
// expression.
//
// The EP_FromJoin property is used on terms of an expression to tell
@@ -114917,8 +115693,8 @@ func addWhereTerm(tls *libc.TLS, pParse uintptr, pSrc uintptr, iLeft int32, iCol
// WHERE clause during join processing but we need to remember that they
// originated in the ON or USING clause.
//
-// The Expr.iRightJoinTable tells the WHERE clause processing that the
-// expression depends on table iRightJoinTable even if that table is not
+// The Expr.w.iRightJoinTable tells the WHERE clause processing that the
+// expression depends on table w.iRightJoinTable even if that table is not
// explicitly mentioned in the expression. That information is needed
// for cases like this:
//
@@ -114930,11 +115706,11 @@ 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) { /* sqlite3.c:133644:21: */
+func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134658:21: */
for p != 0 {
*(*U32)(unsafe.Pointer(p + 4)) |= U32(EP_FromJoin)
- (*Expr)(unsafe.Pointer(p)).FiRightJoinTable = iTable
+ *(*int32)(unsafe.Pointer(p + 52)) = iTable
if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_FUNCTION {
if *(*uintptr)(unsafe.Pointer(p + 32)) != 0 {
@@ -114950,14 +115726,14 @@ func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:
}
// Undo the work of sqlite3SetJoinExpr(). In the expression p, convert every
-// term that is marked with EP_FromJoin and iRightJoinTable==iTable into
+// term that is marked with EP_FromJoin and w.iRightJoinTable==iTable into
// an ordinary term that omits the EP_FromJoin mark.
//
// This happens when a LEFT JOIN is simplified into an ordinary JOIN.
-func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:133670:13: */
+func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134684:13: */
for p != 0 {
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_FromJoin) != U32(0) &&
- (iTable < 0 || (*Expr)(unsafe.Pointer(p)).FiRightJoinTable == iTable) {
+ (iTable < 0 || *(*int32)(unsafe.Pointer(p + 52)) == iTable) {
*(*U32)(unsafe.Pointer(p + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_FromJoin))
}
if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(p)).FiTable == iTable {
@@ -114989,7 +115765,7 @@ func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:133670
// also attached to the left entry.
//
// This routine returns the number of errors encountered.
-func sqliteProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:133707:12: */
+func sqliteProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134721:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -115021,7 +115797,7 @@ __1:
if int32((*SrcItem)(unsafe.Pointer(pRight)).Ffg.Fjointype)&JT_NATURAL != 0 {
if (*SrcItem)(unsafe.Pointer(pRight)).FpOn != 0 || (*SrcItem)(unsafe.Pointer(pRight)).FpUsing != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+18357, libc.VaList(bp, 0))
+ ts+18397, libc.VaList(bp, 0))
return 1
}
for j = 0; j < int32((*Table)(unsafe.Pointer(pRightTab)).FnCol); j++ {
@@ -115045,7 +115821,7 @@ __1:
// 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+18407, 0)
+ ts+18447, 0)
return 1
}
@@ -115080,7 +115856,7 @@ __1:
if iRightCol < 0 ||
!(tableAndColumnIndex(tls, pSrc, i+1, zName, bp+24, bp+28, 0) != 0) {
Xsqlite3ErrorMsg(tls, pParse,
- ts+18462, libc.VaList(bp+8, zName))
+ ts+18502, 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,
@@ -115103,11 +115879,11 @@ __3:
// 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 /* sqlite3.c:133799:28 */
+type RowLoadInfo = RowLoadInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134813: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) { /* sqlite3.c:133813:13: */
+func innerLoopLoadRow(tls *libc.TLS, pParse uintptr, pSelect uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134827:13: */
Xsqlite3ExprCodeExprList(tls, pParse, (*Select)(unsafe.Pointer(pSelect)).FpEList, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FregResult,
0, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FecelFlags)
}
@@ -115116,7 +115892,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 { /* sqlite3.c:133834:12: */
+func makeSorterRecord(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regBase int32, nBase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134848: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)
@@ -115129,7 +115905,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) { /* sqlite3.c:133855:13: */
+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: */
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
@@ -115272,7 +116048,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) { /* sqlite3.c:133997:13: */
+func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135011:13: */
if iOffset > 0 {
Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, iOffset, iContinue, 1)
@@ -115320,7 +116096,7 @@ func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* s
// 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 { /* sqlite3.c:134051:12: */
+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: */
var iRet int32 = 0
var nResultCol int32 = (*ExprList)(unsafe.Pointer(pEList)).FnExpr
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -115401,7 +116177,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) { /* sqlite3.c:134135:13: */
+func fixDistinctOpenEph(tls *libc.TLS, pParse uintptr, eTnctType int32, iVal int32, iOpenEphAddr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135149:13: */
if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 &&
(eTnctType == WHERE_DISTINCT_UNIQUE || eTnctType == WHERE_DISTINCT_ORDERED) {
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -115429,7 +116205,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) { /* sqlite3.c:134257: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-3380500/sqlite3.c:135271:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -115785,7 +116561,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 { /* sqlite3.c:134651:24: */
+func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135665: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 {
@@ -115797,13 +116573,13 @@ func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr {
(*KeyInfo)(unsafe.Pointer(p)).FnRef = U32(1)
libc.Xmemset(tls, p+1*40, 0, uint64(nExtra))
} else {
- Xsqlite3OomFault(tls, db)
+ return Xsqlite3OomFault(tls, db)
}
return p
}
// Deallocate a KeyInfo object
-func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* sqlite3.c:134671:21: */
+func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135685:21: */
if p != 0 {
(*KeyInfo)(unsafe.Pointer(p)).FnRef--
@@ -115814,7 +116590,7 @@ func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* sqlite3.c:134671:21: */
}
// Make a new pointer to a KeyInfo object
-func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:134682:24: */
+func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135696:24: */
if p != 0 {
(*KeyInfo)(unsafe.Pointer(p)).FnRef++
@@ -115834,7 +116610,7 @@ func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:134682:
// 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 { /* sqlite3.c:134714:24: */
+func Xsqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, iStart int32, nExtra int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135728:24: */
var nExpr int32
var pInfo uintptr
var pItem uintptr
@@ -115868,20 +116644,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 { /* sqlite3.c:134741:27: */
+func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135755:27: */
var z uintptr
switch id {
case TK_ALL:
- z = ts + 18526 /* "UNION ALL" */
+ z = ts + 18566 /* "UNION ALL" */
break
case TK_INTERSECT:
- z = ts + 18536 /* "INTERSECT" */
+ z = ts + 18576 /* "INTERSECT" */
break
case TK_EXCEPT:
- z = ts + 18546 /* "EXCEPT" */
+ z = ts + 18586 /* "EXCEPT" */
break
default:
- z = ts + 18553 /* "UNION" */
+ z = ts + 18593 /* "UNION" */
break
}
return z
@@ -115895,11 +116671,11 @@ func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:134741
//
// 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) { /* sqlite3.c:134763:13: */
+func explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135777:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18559, libc.VaList(bp, zUsage))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18599, libc.VaList(bp, zUsage))
}
// Assign expression b to lvalue a. A second, no-op, version of this macro
@@ -115912,7 +116688,7 @@ func explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) { /* sqlite
// 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) { /* sqlite3.c:134789:13: */
+func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, nColumn int32, pDest uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135803: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
@@ -115940,6 +116716,9 @@ func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, n
iTab = (*SortCtx)(unsafe.Pointer(pSort)).FiECursor
if eDest == SRT_Output || eDest == SRT_Coroutine || eDest == SRT_Mem {
+ if eDest == SRT_Mem && (*Select)(unsafe.Pointer(p)).FiOffset != 0 {
+ Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, (*SelectDest)(unsafe.Pointer(pDest)).FiSdst)
+ }
regRowid = 0
regRow = (*SelectDest)(unsafe.Pointer(pDest)).FiSdst
} else {
@@ -116088,7 +116867,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 { /* sqlite3.c:135014:19: */
+func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, pzOrigTab uintptr, pzOrigCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136031:19: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -116165,8 +116944,8 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr,
}
if iCol < 0 {
- zType = ts + 1093 /* "INTEGER" */
- *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 16115 /* "rowid" */
+ zType = ts + 1080 /* "INTEGER" */
+ *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 16155 /* "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))
@@ -116212,7 +116991,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) { /* sqlite3.c:135165:13: */
+func generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pEList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136182:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -116269,7 +117048,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) { /* sqlite3.c:135232:21: */
+func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136249:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -116321,25 +117100,29 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
}
if iCol < 0 {
- zCol = ts + 16115 /* "rowid" */
+ zCol = ts + 16155 /* "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+11902, 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) }{Xsqlite3OomFault})))
+ zName = Xsqlite3MPrintf(tls, db, ts+11927, 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})))
} 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+18582, libc.VaList(bp+16, i+1))
+ z = Xsqlite3MPrintf(tls, db, ts+18622, 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) }{Xsqlite3OomFault})))
+ Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, z, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
+ }{Xsqlite3OomFault})))
}
}
generateColumnTypes(tls, pParse, pTabList, pEList)
@@ -116365,7 +117148,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 { /* sqlite3.c:135325:20: */
+func Xsqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr, pnCol uintptr, paCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136342:20: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -116426,7 +117209,7 @@ __1:
if iCol >= 0 {
zName = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*24)).FzCnName
} else {
- zName = ts + 16115 /* "rowid" */
+ zName = ts + 16155 /* "rowid" */
}
} else if int32((*Expr)(unsafe.Pointer(pColExpr)).Fop) == TK_ID {
@@ -116439,7 +117222,7 @@ __1:
if zName != 0 && !(Xsqlite3IsTrueOrFalse(tls, zName) != 0) {
zName = Xsqlite3DbStrDup(tls, db, zName)
} else {
- zName = Xsqlite3MPrintf(tls, db, ts+18582, libc.VaList(bp, i+1))
+ zName = Xsqlite3MPrintf(tls, db, ts+18622, libc.VaList(bp, i+1))
}
// Make sure the column name is unique. If the name is not unique,
@@ -116454,7 +117237,7 @@ __1:
nName = j
}
}
- zName = Xsqlite3MPrintf(tls, db, ts+18591, libc.VaList(bp+8, nName, zName, libc.PreIncUint32(&*(*U32)(unsafe.Pointer(bp + 56 /* cnt */)), 1)))
+ zName = Xsqlite3MPrintf(tls, db, ts+18631, 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)
}
@@ -116497,7 +117280,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) { /* sqlite3.c:135432:21: */
+func Xsqlite3SelectAddColumnTypeAndCollation(tls *libc.TLS, pParse uintptr, pTab uintptr, pSelect uintptr, aff int8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136449:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -116566,7 +117349,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 { /* sqlite3.c:135487:22: */
+func Xsqlite3ResultSetOfSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, aff int8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136504:22: */
var pTab uintptr
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var savedFlags U64
@@ -116601,7 +117384,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 { /* sqlite3.c:135520:21: */
+func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136537:21: */
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpVdbe
}
@@ -116633,7 +117416,7 @@ func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* sqlite3.c:13552
// 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) { /* sqlite3.c:135556:13: */
+func computeLimitRegisters(tls *libc.TLS, pParse uintptr, p uintptr, iBreak int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136573:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -116690,7 +117473,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 { /* sqlite3.c:135613:16: */
+func multiSelectCollSeq(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136630:16: */
var pRet uintptr
if (*Select)(unsafe.Pointer(p)).FpPrior != 0 {
pRet = multiSelectCollSeq(tls, pParse, (*Select)(unsafe.Pointer(p)).FpPrior, iCol)
@@ -116714,7 +117497,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 { /* sqlite3.c:135639:16: */
+func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136656:16: */
var pOrderBy uintptr = (*Select)(unsafe.Pointer(p)).FpOrderBy
var nOrderBy int32
if pOrderBy != uintptr(0) {
@@ -116783,7 +117566,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) { /* sqlite3.c:135705:13: */
+func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136722:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -116819,7 +117602,7 @@ func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
if !((*Select)(unsafe.Pointer(p)).FpWin != 0) {
goto __1
}
- Xsqlite3ErrorMsg(tls, pParse, ts+18599, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18639, 0)
return
__1:
;
@@ -116929,7 +117712,7 @@ __12:
if !((*Select)(unsafe.Pointer(pFirstRec)).FselFlags&U32(SF_Aggregate) != 0) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+18648, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18688, 0)
goto end_of_recursive_query
__15:
;
@@ -116951,7 +117734,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+18690, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18730, 0)
rc = Xsqlite3Select(tls, pParse, pSetup, bp)
(*Select)(unsafe.Pointer(pSetup)).FpNext = p
if !(rc != 0) {
@@ -116994,7 +117777,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+18696, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18736, 0)
Xsqlite3Select(tls, pParse, p, bp)
(*Select)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup
@@ -117024,7 +117807,7 @@ end_of_recursive_query:
// 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 { /* sqlite3.c:135881:12: */
+func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136898:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -117032,7 +117815,7 @@ func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
var rc int32 = 0
var bShowAll int32 = libc.Bool32((*Select)(unsafe.Pointer(p)).FpLimit == uintptr(0))
- for ok := true; ok; ok = 1 != 0 {
+ for __ccgo := true; __ccgo; __ccgo = 1 != 0 {
if (*Select)(unsafe.Pointer(p)).FpWin != 0 {
return -1
@@ -117044,11 +117827,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+18711, libc.VaList(bp, nRow, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18751, libc.VaList(bp, nRow, func() uintptr {
if nRow == 1 {
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
- return ts + 18734 /* "S" */
+ return ts + 18774 /* "S" */
}()))
for p != 0 {
selectInnerLoop(tls, pParse, p, -1, uintptr(0), uintptr(0), pDest, 1, 1)
@@ -117064,7 +117847,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 { /* sqlite3.c:135918:12: */
+func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136935:12: */
for p != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Recursive) != U32(0) {
p = (*Select)(unsafe.Pointer(p)).FpPrior
}
@@ -117100,7 +117883,7 @@ func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:135918:12: */
//
// 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 { /* sqlite3.c:135954:12: */
+func multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136971:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -117200,8 +117983,8 @@ __6:
if !((*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0)) {
goto __8
}
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18736, 0)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18751, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18776, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18791, 0)
__8:
;
@@ -117250,7 +118033,7 @@ __16:
;
__15:
;
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18526, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18566, 0)
rc = Xsqlite3Select(tls, pParse, p, bp+16)
@@ -117326,7 +118109,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+18770, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18810, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
rc = Xsqlite3Select(tls, pParse, p, bp+64)
@@ -117398,7 +118181,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+18770, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18810, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
rc = Xsqlite3Select(tls, pParse, p, bp+104)
@@ -117563,15 +118346,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) { /* sqlite3.c:136310:21: */
+func Xsqlite3SelectWrongNumTermsError(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137327:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Values) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+18791, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18831, 0)
} else {
Xsqlite3ErrorMsg(tls, pParse,
- ts+18837,
+ ts+18877,
libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
}
}
@@ -117594,7 +118377,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 { /* sqlite3.c:136340: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-3380500/sqlite3.c:137357:12: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var iContinue int32
var addr int32
@@ -117790,13 +118573,15 @@ 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 { /* sqlite3.c:136548:12: */
+func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137565:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
var i int32
var j int32 // Loop counters
var pPrior uintptr // Another SELECT immediately to our left
+ var pSplit uintptr // Left-most SELECT in the right-hand group
+ var nSelect int32 // Number of SELECT statements in the compound
var v uintptr // Generate code to this VDBE
// var destA SelectDest at bp+8, 40
// Destination for coroutine A
@@ -117841,7 +118626,6 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
// Patch up the ORDER BY clause
op = int32((*Select)(unsafe.Pointer(p)).Fop)
- pPrior = (*Select)(unsafe.Pointer(p)).FpPrior
pOrderBy = (*Select)(unsafe.Pointer(p)).FpOrderBy
@@ -117923,10 +118707,6 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
pKeyMerge = uintptr(0)
}
- // Reattach the ORDER BY clause to the query.
- (*Select)(unsafe.Pointer(p)).FpOrderBy = pOrderBy
- (*Select)(unsafe.Pointer(pPrior)).FpOrderBy = Xsqlite3ExprListDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pOrderBy, 0)
-
// Allocate a range of temporary registers and the KeyInfo needed
// for the logic that removes duplicate result rows when the
// operator is UNION, EXCEPT, or INTERSECT (but not UNION ALL).
@@ -117949,12 +118729,30 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
}
// Separate the left and the right query from one another
- (*Select)(unsafe.Pointer(p)).FpPrior = uintptr(0)
- (*Select)(unsafe.Pointer(pPrior)).FpNext = uintptr(0)
- Xsqlite3ResolveOrderGroupBy(tls, pParse, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+7101)
- if (*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0) {
- Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+7101)
+ nSelect = 1
+ if (op == TK_ALL || op == TK_UNION) &&
+ (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_BalancedMerge) == U32(0) {
+ for pSplit = p; (*Select)(unsafe.Pointer(pSplit)).FpPrior != uintptr(0) && int32((*Select)(unsafe.Pointer(pSplit)).Fop) == op; pSplit = (*Select)(unsafe.Pointer(pSplit)).FpPrior {
+ nSelect++
+
+ }
}
+ if nSelect <= 3 {
+ pSplit = p
+ } else {
+ pSplit = p
+ for i = 2; i < nSelect; i = i + 2 {
+ pSplit = (*Select)(unsafe.Pointer(pSplit)).FpPrior
+ }
+ }
+ pPrior = (*Select)(unsafe.Pointer(pSplit)).FpPrior
+
+ (*Select)(unsafe.Pointer(pSplit)).FpPrior = uintptr(0)
+ (*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+7097)
+ Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+7097)
// Compute the limit registers
computeLimitRegisters(tls, pParse, p, labelEnd)
@@ -117982,7 +118780,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+18919, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18959, 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.
@@ -117990,7 +118788,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+18930, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18970, 0)
Xsqlite3Select(tls, pParse, pPrior, bp+8)
Xsqlite3VdbeEndCoroutine(tls, v, regAddrA)
Xsqlite3VdbeJumpHere(tls, v, addr1)
@@ -118004,7 +118802,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+18935, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18975, 0)
Xsqlite3Select(tls, pParse, p, bp+48)
(*Select)(unsafe.Pointer(p)).FiLimit = savedLimit
(*Select)(unsafe.Pointer(p)).FiOffset = savedOffset
@@ -118099,12 +118897,11 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
// Reassembly the compound query so that it will be freed correctly
// by the calling function
- if (*Select)(unsafe.Pointer(p)).FpPrior != 0 {
- Xsqlite3SelectDelete(tls, db, (*Select)(unsafe.Pointer(p)).FpPrior)
+ if (*Select)(unsafe.Pointer(pSplit)).FpPrior != 0 {
+ Xsqlite3SelectDelete(tls, db, (*Select)(unsafe.Pointer(pSplit)).FpPrior)
}
- (*Select)(unsafe.Pointer(p)).FpPrior = pPrior
- (*Select)(unsafe.Pointer(pPrior)).FpNext = p
-
+ (*Select)(unsafe.Pointer(pSplit)).FpPrior = pPrior
+ (*Select)(unsafe.Pointer(pPrior)).FpNext = pSplit
Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy)
(*Select)(unsafe.Pointer(pPrior)).FpOrderBy = uintptr(0)
@@ -118126,14 +118923,14 @@ type SubstContext1 = struct {
FisLeftJoin int32
F__ccgo_pad1 [4]byte
FpEList uintptr
-} /* sqlite3.c:136860:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137890: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 /* sqlite3.c:136866:3 */
+type SubstContext = SubstContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137896:3 */
// Scan through the expression pExpr. Replace every reference to
// a column in table number iTable with a copy of the iColumn-th
@@ -118146,7 +118943,7 @@ type SubstContext = SubstContext1 /* sqlite3.c:136866:3 */
// 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 { /* sqlite3.c:136885:13: */
+func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137915:13: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -118154,8 +118951,8 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* sqlite
return uintptr(0)
}
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) &&
- (*Expr)(unsafe.Pointer(pExpr)).FiRightJoinTable == (*SubstContext)(unsafe.Pointer(pSubst)).FiTable {
- (*Expr)(unsafe.Pointer(pExpr)).FiRightJoinTable = (*SubstContext)(unsafe.Pointer(pSubst)).FiNewTable
+ *(*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 &&
(*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SubstContext)(unsafe.Pointer(pSubst)).FiTable &&
@@ -118187,7 +118984,7 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* sqlite
*(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_CanBeNull)
}
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) {
- Xsqlite3SetJoinExpr(tls, pNew, (*Expr)(unsafe.Pointer(pExpr)).FiRightJoinTable)
+ Xsqlite3SetJoinExpr(tls, pNew, *(*int32)(unsafe.Pointer(pExpr + 52)))
}
Xsqlite3ExprDelete(tls, db, pExpr)
pExpr = pNew
@@ -118201,7 +118998,7 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* sqlite
if pColl != 0 {
return (*CollSeq)(unsafe.Pointer(pColl)).FzName
}
- return ts + 1073
+ return ts + 1060
}())
}
*(*U32)(unsafe.Pointer(pExpr + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_Collate))
@@ -118229,7 +119026,7 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* sqlite
return pExpr
}
-func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* sqlite3.c:136970:13: */
+func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138000:13: */
var i int32
if pList == uintptr(0) {
return
@@ -118239,14 +119036,14 @@ func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* sqlite3.c:
}
}
-func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* sqlite3.c:136980:13: */
+func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138010:13: */
var pSrc uintptr
var pItem uintptr
var i int32
if !(p != 0) {
return
}
- for ok := true; ok; ok = doPrior != 0 && libc.AssignUintptr(&p, (*Select)(unsafe.Pointer(p)).FpPrior) != uintptr(0) {
+ for __ccgo := true; __ccgo; __ccgo = doPrior != 0 && libc.AssignUintptr(&p, (*Select)(unsafe.Pointer(p)).FpPrior) != uintptr(0) {
substExprList(tls, pSubst, (*Select)(unsafe.Pointer(p)).FpEList)
substExprList(tls, pSubst, (*Select)(unsafe.Pointer(p)).FpGroupBy)
substExprList(tls, pSubst, (*Select)(unsafe.Pointer(p)).FpOrderBy)
@@ -118282,7 +119079,7 @@ func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* s
//
// This routine scans the entire SELECT statement and recomputes the
// pSrcItem->colUsed mask.
-func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:137015:12: */
+func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138045:12: */
var pItem uintptr
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN {
return WRC_Continue
@@ -118298,7 +119095,7 @@ func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int
return WRC_Continue
}
-func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* sqlite3.c:137024:13: */
+func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138054:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -118330,7 +119127,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) { /* sqlite3.c:137053:13: */
+func srclistRenumberCursors(tls *libc.TLS, pParse uintptr, aCsrMap uintptr, pSrc uintptr, iExcept int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138083:13: */
var i int32
var pItem uintptr
i = 0
@@ -118363,7 +119160,7 @@ __3:
}
// *piCursor is a cursor number. Change it if it needs to be mapped.
-func renumberCursorDoMapping(tls *libc.TLS, pWalker uintptr, piCursor uintptr) { /* sqlite3.c:137079:13: */
+func renumberCursorDoMapping(tls *libc.TLS, pWalker uintptr, piCursor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138109: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 {
@@ -118373,7 +119170,7 @@ 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 { /* sqlite3.c:137091:12: */
+func renumberCursorsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138121:12: */
var op int32 = int32((*Expr)(unsafe.Pointer(pExpr)).Fop)
if op == TK_COLUMN || op == TK_IF_NULL_ROW {
renumberCursorDoMapping(tls, pWalker, pExpr+44)
@@ -118400,7 +119197,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) { /* sqlite3.c:137120:13: */
+func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aCsrMap uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138150:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -118570,7 +119367,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 { /* sqlite3.c:137291:12: */
+func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAgg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138321:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -118995,7 +119792,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 /* sqlite3.c:137715:27 */
+type WhereConst = WhereConst1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138745: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.
@@ -119003,7 +119800,7 @@ type WhereConst = WhereConst1 /* sqlite3.c:137715:27 */
// 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) { /* sqlite3.c:137733:13: */
+func constInsert(tls *libc.TLS, pConst uintptr, pColumn uintptr, pValue uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138763:13: */
var i int32
if (*Expr)(unsafe.Pointer(pColumn)).Fflags&U32(EP_FixedCol) != U32(0) {
@@ -119045,7 +119842,7 @@ 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) { /* sqlite3.c:137781:13: */
+func findConstInWhere(tls *libc.TLS, pConst uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138811:13: */
var pRight uintptr
var pLeft uintptr
if pExpr == uintptr(0) {
@@ -119080,7 +119877,7 @@ func findConstInWhere(tls *libc.TLS, pConst uintptr, pExpr uintptr) { /* sqlite3
// 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 { /* sqlite3.c:137812:12: */
+func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintptr, bIgnoreAffBlob int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138842:12: */
var i int32
if *(*U8)(unsafe.Pointer((*WhereConst)(unsafe.Pointer(pConst)).FpOomFault)) != 0 {
return WRC_Prune
@@ -119134,7 +119931,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 { /* sqlite3.c:137861:12: */
+func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138891:12: */
var pConst uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
if (*WhereConst)(unsafe.Pointer(pConst)).FbHasAffBlob != 0 {
@@ -119201,7 +119998,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 { /* sqlite3.c:137932:12: */
+func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138962:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -119211,8 +120008,8 @@ func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sql
var nChng int32 = 0
(*WhereConst)(unsafe.Pointer(bp /* &x */)).FpParse = pParse
- (*WhereConst)(unsafe.Pointer(bp /* &x */)).FpOomFault = (*Parse)(unsafe.Pointer(pParse)).Fdb + 99
- for ok := true; ok; ok = (*WhereConst)(unsafe.Pointer(bp)).FnChng != 0 {
+ (*WhereConst)(unsafe.Pointer(bp /* &x */)).FpOomFault = (*Parse)(unsafe.Pointer(pParse)).Fdb + 103
+ for __ccgo := true; __ccgo; __ccgo = (*WhereConst)(unsafe.Pointer(bp)).FnChng != 0 {
(*WhereConst)(unsafe.Pointer(bp /* &x */)).FnConst = 0
(*WhereConst)(unsafe.Pointer(bp /* &x */)).FnChng = 0
(*WhereConst)(unsafe.Pointer(bp /* &x */)).FapExpr = uintptr(0)
@@ -119254,7 +120051,7 @@ func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sql
//
// * 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 { /* sqlite3.c:137983:12: */
+func pushDownWindowCheck(tls *libc.TLS, pParse uintptr, pSubq uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139013:12: */
return Xsqlite3ExprIsConstantOrGroupBy(tls, pParse, pExpr, (*Window)(unsafe.Pointer((*Select)(unsafe.Pointer(pSubq)).FpWin)).FpPartition)
}
@@ -119325,7 +120122,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, iCursor int32, isLeftJoin int32) int32 { /* sqlite3.c:138061:12: */
+func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139091:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -119355,19 +120152,11 @@ func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uin
return 0 // restriction (3)
}
for int32((*Expr)(unsafe.Pointer(pWhere)).Fop) == TK_AND {
- nChng = nChng + pushDownWhereTerms(tls, pParse, pSubq, (*Expr)(unsafe.Pointer(pWhere)).FpRight,
- iCursor, isLeftJoin)
+ nChng = nChng + pushDownWhereTerms(tls, pParse, pSubq, (*Expr)(unsafe.Pointer(pWhere)).FpRight, pSrc)
pWhere = (*Expr)(unsafe.Pointer(pWhere)).FpLeft
}
- if isLeftJoin != 0 &&
- (libc.Bool32((*Expr)(unsafe.Pointer(pWhere)).Fflags&U32(EP_FromJoin) != U32(0)) == 0 ||
- (*Expr)(unsafe.Pointer(pWhere)).FiRightJoinTable != iCursor) {
- return 0 // restriction (4)
- }
- if (*Expr)(unsafe.Pointer(pWhere)).Fflags&U32(EP_FromJoin) != U32(0) && (*Expr)(unsafe.Pointer(pWhere)).FiRightJoinTable != iCursor {
- return 0 // restriction (5)
- }
- if Xsqlite3ExprIsTableConstant(tls, pWhere, iCursor) != 0 {
+
+ if Xsqlite3ExprIsTableConstraint(tls, pWhere, pSrc) != 0 {
nChng++
*(*U32)(unsafe.Pointer(pSubq + 4)) |= U32(SF_PushDown)
for pSubq != 0 {
@@ -119376,8 +120165,8 @@ func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uin
pNew = Xsqlite3ExprDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWhere, 0)
unsetJoinExpr(tls, pNew, -1)
(*SubstContext)(unsafe.Pointer(bp /* &x */)).FpParse = pParse
- (*SubstContext)(unsafe.Pointer(bp /* &x */)).FiTable = iCursor
- (*SubstContext)(unsafe.Pointer(bp /* &x */)).FiNewTable = iCursor
+ (*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 */)).FpEList = (*Select)(unsafe.Pointer(pSubq)).FpEList
pNew = substExpr(tls, bp, pNew)
@@ -119412,7 +120201,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 { /* sqlite3.c:138163:11: */
+func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139197:11: */
var eRet int32 = WHERE_ORDERBY_NORMAL // Return value
var pEList uintptr // Arguments to agg function
var zFunc uintptr // Name of aggregate function pFunc
@@ -119428,12 +120217,12 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8
}
zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8))
- if Xsqlite3StrICmp(tls, zFunc, ts+15024) == 0 {
+ if Xsqlite3StrICmp(tls, zFunc, ts+15049) == 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+15028) == 0 {
+ } else if Xsqlite3StrICmp(tls, zFunc, ts+15053) == 0 {
eRet = WHERE_ORDERBY_MAX
sortFlags = U8(KEYINFO_ORDER_DESC)
} else {
@@ -119462,7 +120251,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 { /* sqlite3.c:138218:14: */
+func isSimpleCount(tls *libc.TLS, p uintptr, pAggInfo uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139252:14: */
var pTab uintptr
var pExpr uintptr
@@ -119502,7 +120291,7 @@ func isSimpleCount(tls *libc.TLS, p uintptr, pAggInfo uintptr) uintptr { /* sqli
// 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 { /* sqlite3.c:138256:20: */
+func Xsqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139290:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -119513,7 +120302,7 @@ func Xsqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32
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+18941, libc.VaList(bp, zIndexedBy, 0))
+ Xsqlite3ErrorMsg(tls, pParse, ts+18981, libc.VaList(bp, zIndexedBy, 0))
(*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1)
return SQLITE_ERROR
}
@@ -119541,7 +120330,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 { /* sqlite3.c:138298:12: */
+func convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139332:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -119620,12 +120409,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 { /* sqlite3.c:138363:12: */
+func cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139397: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+18959, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+18999, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName))
return 1
}
return 0
@@ -119639,7 +120428,7 @@ func cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* s
//
// 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 { /* sqlite3.c:138382:19: */
+func searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139416:19: */
var zName uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FzName
var p uintptr
@@ -119674,7 +120463,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 { /* sqlite3.c:138421:21: */
+func Xsqlite3WithPush(tls *libc.TLS, pParse uintptr, pWith uintptr, bFree U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139455:21: */
if pWith != 0 {
if bFree != 0 {
pWith = Xsqlite3ParserAddCleanup(tls, pParse,
@@ -119707,7 +120496,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 { /* sqlite3.c:138452:12: */
+func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139486:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -119790,7 +120579,7 @@ 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+18982, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19022, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96))))
return 2
}
libc.SetBitFieldPtr16Uint32(pFrom+60+4, uint32(1), 7, 0x80)
@@ -119817,7 +120606,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 5, 0x20)
if (*Select)(unsafe.Pointer(pRecTerm)).FselFlags&U32(SF_Recursive) != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+19002, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName))
+ ts+19042, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName))
return 2
}
*(*U32)(unsafe.Pointer(pRecTerm + 4)) |= U32(SF_Recursive)
@@ -119833,7 +120622,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
pRecTerm = (*Select)(unsafe.Pointer(pRecTerm)).FpPrior
}
- (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19045 /* "circular referen..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19085 /* "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 {
@@ -119859,7 +120648,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+19068,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19108,
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
@@ -119870,9 +120659,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 + 19106 /* "multiple recursi..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19146 /* "multiple recursi..." */
} else {
- (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19140 /* "recursive refere..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19180 /* "recursive refere..." */
}
Xsqlite3WalkSelect(tls, pWalker, pSel)
}
@@ -119889,7 +120678,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) { /* sqlite3.c:138636:21: */
+func Xsqlite3SelectPopWith(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139670: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
@@ -119905,7 +120694,7 @@ func Xsqlite3SelectPopWith(tls *libc.TLS, pWalker uintptr, p uintptr) { /* sqlit
// 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 { /* sqlite3.c:138655:20: */
+func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139689:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -119920,7 +120709,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+19178, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
+ (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+19218, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
}
for (*Select)(unsafe.Pointer(pSel)).FpPrior != 0 {
pSel = (*Select)(unsafe.Pointer(pSel)).FpPrior
@@ -119959,7 +120748,7 @@ 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 { /* sqlite3.c:138707:12: */
+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)
@@ -120047,7 +120836,7 @@ __1:
return WRC_Abort
}
if (*Table)(unsafe.Pointer(pTab)).FnTabRef >= U32(0xffff) {
- Xsqlite3ErrorMsg(tls, pParse, ts+19190,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19230,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
(*SrcItem)(unsafe.Pointer(pFrom)).FpTab = uintptr(0)
return WRC_Abort
@@ -120066,7 +120855,7 @@ __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+19229,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19269,
libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
}
(*SrcItem)(unsafe.Pointer(pFrom)).FpSelect = Xsqlite3SelectDup(tls, db, *(*uintptr)(unsafe.Pointer(pTab + 64)), 0)
@@ -120074,7 +120863,7 @@ __1:
uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x40>>6)) != 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+19260,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19300,
libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
}
@@ -120103,7 +120892,8 @@ __3:
;
// Process NATURAL keywords, and ON and USING clauses of joins.
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || sqliteProcessJoin(tls, pParse, p) != 0 {
+
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || sqliteProcessJoin(tls, pParse, p) != 0 {
return WRC_Abort
}
@@ -120189,7 +120979,7 @@ __3:
if iDb >= 0 {
zSchemaName = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
} else {
- zSchemaName = ts + 19293 /* "*" */
+ zSchemaName = ts + 6318 /* "*" */
}
}
for j = 0; j < int32((*Table)(unsafe.Pointer(pTab)).FnCol); j++ {
@@ -120238,7 +121028,7 @@ __3:
pExpr = Xsqlite3PExpr(tls, pParse, TK_DOT, pLeft, pExpr)
}
if longNames != 0 {
- zColname = Xsqlite3MPrintf(tls, db, ts+11902, libc.VaList(bp+24, zTabName, zName))
+ zColname = Xsqlite3MPrintf(tls, db, ts+11927, libc.VaList(bp+24, zTabName, zName))
zToFree = zColname
}
} else {
@@ -120254,7 +121044,7 @@ __3:
(*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3DbStrDup(tls, db, (*ExprList_item)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList+8+uintptr(j)*32)).FzEName)
} else {
- (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+19295,
+ (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+19333,
libc.VaList(bp+40, zSchemaName, zTabName, zColname))
}
@@ -120274,9 +121064,9 @@ __3:
;
if !(tableSeen != 0) {
if zTName != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+19304, libc.VaList(bp+64, zTName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19342, libc.VaList(bp+64, zTName))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+19322, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19360, 0)
}
}
}
@@ -120286,7 +121076,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+19342, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19380, 0)
return WRC_Abort
}
if elistFlags&U32(EP_HasFunc|EP_Subquery) != U32(0) {
@@ -120307,7 +121097,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) { /* sqlite3.c:139033:13: */
+func sqlite3SelectExpand(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140068:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -120345,7 +121135,7 @@ func sqlite3SelectExpand(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sq
// 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) { /* sqlite3.c:139063:13: */
+func selectAddSubqueryTypeInfo(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140098:13: */
var pParse uintptr
var i int32
var pTabList uintptr
@@ -120393,7 +121183,7 @@ __3:
// SELECT statement.
//
// Use this routine after name resolution.
-func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sqlite3.c:139098:13: */
+func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140133:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -120422,7 +121212,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) { /* sqlite3.c:139122:21: */
+func Xsqlite3SelectPrep(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140157:21: */
if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
return
@@ -120431,11 +121221,11 @@ func Xsqlite3SelectPrep(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintp
return
}
sqlite3SelectExpand(tls, pParse, p)
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
Xsqlite3ResolveSelectNames(tls, pParse, p, pOuterNC)
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
sqlite3SelectAddTypeInfo(tls, pParse, p)
@@ -120447,7 +121237,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) { /* sqlite3.c:139145:13: */
+func resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140181:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -120455,10 +121245,11 @@ func resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* sqli
var i int32
var pFunc uintptr
var nReg int32 = (*AggInfo)(unsafe.Pointer(pAggInfo)).FnFunc + (*AggInfo)(unsafe.Pointer(pAggInfo)).FnColumn
+
if nReg == 0 {
return
}
- if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
Xsqlite3VdbeAddOp3(tls, v, OP_Null, 0, (*AggInfo)(unsafe.Pointer(pAggInfo)).FmnReg, (*AggInfo)(unsafe.Pointer(pAggInfo)).FmxReg)
@@ -120474,13 +121265,13 @@ __1:
if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != 1 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+19373, 0)
+ ts+19411, 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+19424, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19462, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
}
@@ -120496,7 +121287,7 @@ __3:
// Invoke the OP_AggFinalize opcode for every aggregate function
// in the AggInfo structure.
-func finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* sqlite3.c:139189:13: */
+func finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140227:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
var pF uintptr
@@ -120535,7 +121326,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) { /* sqlite3.c:139212:13: */
+func updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo uintptr, eDistinctType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140250:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
var regHit int32 = 0
@@ -120676,25 +121467,25 @@ __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) { /* sqlite3.c:139314:13: */
+func explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140352: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+19457,
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19495,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
func() uintptr {
if bCover != 0 {
- return ts + 19469 /* " USING COVERING ..." */
+ return ts + 19507 /* " USING COVERING ..." */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
func() uintptr {
if bCover != 0 {
return (*Index)(unsafe.Pointer(pIdx)).FzName
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()))
}
}
@@ -120708,7 +121499,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 { /* sqlite3.c:139343:12: */
+func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140381: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
@@ -120722,7 +121513,7 @@ func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 {
libc.Bool32((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin|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+7806)
if pNew != 0 {
var pWhere uintptr = (*Select)(unsafe.Pointer(pS)).FpWhere
{
@@ -120754,7 +121545,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) { /* sqlite3.c:139387:13: */
+func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140425:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -120772,7 +121563,7 @@ func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:1393
// 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 { /* sqlite3.c:139407:16: */
+func isSelfJoinView(tls *libc.TLS, pTabList uintptr, pThis uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140445:16: */
var pItem uintptr
if (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pThis)).FpSelect)).FselFlags&U32(SF_PushDown) != 0 {
@@ -120813,7 +121604,7 @@ func isSelfJoinView(tls *libc.TLS, pTabList uintptr, pThis uintptr) uintptr { /*
}
// Deallocate a single AggInfo object
-func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:139442:13: */
+func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140480:13: */
Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaCol)
Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaFunc)
Xsqlite3DbFreeNN(tls, db, p)
@@ -120830,7 +121621,7 @@ func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:139442:13:
//
// 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 { /* sqlite3.c:139550:20: */
+func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140588:20: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -120963,13 +121754,15 @@ func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int
*(*uintptr)(unsafe.Pointer(bp + 208 /* pMinMaxOrderBy */)) = uintptr(0) // Flag for min/max queries
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
+
v = Xsqlite3GetVdbe(tls, pParse)
- if !(p == uintptr(0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || (*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
+ if !(p == uintptr(0) || (*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __1
}
return 1
__1:
;
+
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_SELECT, uintptr(0), uintptr(0), uintptr(0)) != 0) {
goto __2
}
@@ -120999,7 +121792,7 @@ __4:
__3:
;
Xsqlite3SelectPrep(tls, pParse, p, uintptr(0))
- if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __5
}
goto select_end
@@ -121029,7 +121822,7 @@ __7:
goto __10
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+19492,
+ ts+19530,
libc.VaList(bp, func() uintptr {
if (*SrcItem)(unsafe.Pointer(p0)).FzAlias != 0 {
return (*SrcItem)(unsafe.Pointer(p0)).FzAlias
@@ -121115,7 +121908,7 @@ __17:
if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) != (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList)).FnExpr) {
goto __18
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19546,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19584,
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:
@@ -121289,7 +122082,7 @@ __30:
if !((*SrcItem)(unsafe.Pointer(pItem1)).FcolUsed == uint64(0) && (*SrcItem)(unsafe.Pointer(pItem1)).FzName != uintptr(0)) {
goto __33
}
- Xsqlite3AuthCheck(tls, pParse, SQLITE_READ, (*SrcItem)(unsafe.Pointer(pItem1)).FzName, ts+1546, (*SrcItem)(unsafe.Pointer(pItem1)).FzDatabase)
+ Xsqlite3AuthCheck(tls, pParse, SQLITE_READ, (*SrcItem)(unsafe.Pointer(pItem1)).FzName, ts+1515, (*SrcItem)(unsafe.Pointer(pItem1)).FzDatabase)
__33:
;
@@ -121310,15 +122103,14 @@ __34:
// (SQLITE_MAX_EXPR_DEPTH-Parse.nHeight) height. This is a bit
// more conservative than necessary, but much easier than enforcing
// an exact limit.
- *(*int32)(unsafe.Pointer(pParse + 292)) += Xsqlite3SelectExprHeight(tls, p)
+ *(*int32)(unsafe.Pointer(pParse + 300)) += Xsqlite3SelectExprHeight(tls, p)
// 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) &&
- pushDownWhereTerms(tls, pParse, pSub1, (*Select)(unsafe.Pointer(p)).FpWhere, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor,
- libc.Bool32(int32((*SrcItem)(unsafe.Pointer(pItem1)).Ffg.Fjointype)&JT_OUTER != 0)) != 0) {
+ pushDownWhereTerms(tls, pParse, pSub1, (*Select)(unsafe.Pointer(p)).FpWhere, pItem1) != 0) {
goto __35
}
@@ -121355,7 +122147,7 @@ __36:
(*SrcItem)(unsafe.Pointer(pItem1)).FaddrFillSub = addrTop
Xsqlite3SelectDestInit(tls, bp+96, SRT_Coroutine, (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19586, libc.VaList(bp+32, pItem1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19624, 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)
@@ -121418,7 +122210,7 @@ __45:
__46:
;
Xsqlite3SelectDestInit(tls, bp+96, SRT_EphemTab, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19601, libc.VaList(bp+40, pItem1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19639, 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) {
@@ -121453,7 +122245,7 @@ __38:
goto select_end
__49:
;
- *(*int32)(unsafe.Pointer(pParse + 292)) -= Xsqlite3SelectExprHeight(tls, p)
+ *(*int32)(unsafe.Pointer(pParse + 300)) -= Xsqlite3SelectExprHeight(tls, p)
(*Parse)(unsafe.Pointer(pParse)).FzAuthContext = zSavedAuthContext
goto __31
__31:
@@ -121586,7 +122378,7 @@ __60:
// Begin the database scan.
pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FpOrderBy,
- (*Select)(unsafe.Pointer(p)).FpEList, wctrlFlags, int32((*Select)(unsafe.Pointer(p)).FnSelectRow))
+ (*Select)(unsafe.Pointer(p)).FpEList, p, wctrlFlags, int32((*Select)(unsafe.Pointer(p)).FnSelectRow))
if !(pWInfo == uintptr(0)) {
goto __61
}
@@ -121912,7 +122704,7 @@ __96:
Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, regReset, addrReset)
pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, pGroupBy, pDistinct,
- uint16(WHERE_GROUPBY|func() int32 {
+ uintptr(0), uint16(WHERE_GROUPBY|func() int32 {
if orderByGrp != 0 {
return WHERE_SORTBYGROUP
}
@@ -121940,9 +122732,9 @@ __98:
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 + 19617 /* "DISTINCT" */
+ return ts + 19655 /* "DISTINCT" */
}
- return ts + 19626 /* "GROUP BY" */
+ return ts + 19664 /* "GROUP BY" */
}())
groupBySort = 1
@@ -122305,7 +123097,7 @@ __129:
// be an appropriate ORDER BY expression for the optimization.
pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, *(*uintptr)(unsafe.Pointer(bp + 208 /* pMinMaxOrderBy */)),
- pDistinct1, uint16(int32(minMaxFlag)|int32(distFlag1)), 0)
+ pDistinct1, uintptr(0), uint16(int32(minMaxFlag)|int32(distFlag1)), 0)
if !(pWInfo == uintptr(0)) {
goto __137
}
@@ -122355,7 +123147,7 @@ __59:
if !(int32((*DistinctCtx)(unsafe.Pointer(bp+136)).FeTnctType) == WHERE_DISTINCT_UNORDERED) {
goto __141
}
- explainTempTable(tls, pParse, ts+19617)
+ explainTempTable(tls, pParse, ts+19655)
__141:
;
@@ -122367,9 +123159,9 @@ __141:
explainTempTable(tls, pParse,
func() uintptr {
if (*SortCtx)(unsafe.Pointer(bp+48)).FnOBSat > 0 {
- return ts + 19635 /* "RIGHT PART OF OR..." */
+ return ts + 19673 /* "RIGHT PART OF OR..." */
}
- return ts + 19658 /* "ORDER BY" */
+ return ts + 19696 /* "ORDER BY" */
}())
generateSortTail(tls, pParse, p, bp+48, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pDest)
@@ -122387,7 +123179,7 @@ __142:
// successful coding of the SELECT.
select_end:
;
- *(*int32)(unsafe.Pointer(pParse + 48)) += int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed)
+
Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 208 /* pMinMaxOrderBy */)))
Xsqlite3VdbeExplainPop(tls, pParse)
@@ -122425,7 +123217,7 @@ type TabResult1 = struct {
FnData U32
Frc int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:140810:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:141850:9 */
//************* End of select.c *********************************************
//************* Begin file table.c ******************************************
@@ -122449,12 +123241,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 /* sqlite3.c:140818:3 */
+type TabResult = TabResult1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:141858: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 { /* sqlite3.c:140825:12: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -122503,7 +123295,7 @@ __7:
if !(i < nCol) {
goto __9
}
- z = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8))))
+ z = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8))))
if !(z == uintptr(0)) {
goto __10
}
@@ -122525,7 +123317,7 @@ __5:
}
Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(p)).FzErrMsg)
(*TabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls,
- ts+19667, 0)
+ ts+19705, 0)
(*TabResult)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
return 1
__11:
@@ -122585,7 +123377,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 { /* sqlite3.c:140899:16: */
+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: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -122624,7 +123416,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+3604, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg))
}
Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg)
}
@@ -122657,7 +123449,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) { /* sqlite3.c:140968:17: */
+func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142008:17: */
if azResult != 0 {
var i int32
var n int32
@@ -122688,7 +123480,7 @@ func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* sqlite3.c:140968:
// #include "sqliteInt.h"
// Delete a linked list of TriggerStep structures.
-func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) { /* sqlite3.c:141003:21: */
+func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142043:21: */
for pTriggerStep != 0 {
var pTmp uintptr = pTriggerStep
pTriggerStep = (*TriggerStep)(unsafe.Pointer(pTriggerStep)).FpNext
@@ -122717,7 +123509,7 @@ 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 { /* sqlite3.c:141034:24: */
+func Xsqlite3TriggerList(tls *libc.TLS, pParse uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142074: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
@@ -122755,7 +123547,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) { /* sqlite3.c:141090: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-3380500/sqlite3.c:142130:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -122785,7 +123577,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+19732, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19770, 0)
goto trigger_cleanup
__3:
;
@@ -122846,7 +123638,7 @@ __7:
__8:
;
- Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+19778, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))
+ Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+19816, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))
if !(Xsqlite3FixSrcList(tls, bp+40, pTableName) != 0) {
goto __9
}
@@ -122864,7 +123656,7 @@ __10:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __11
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19786, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19824, 0)
goto trigger_orphan_error
__11:
;
@@ -122879,7 +123671,7 @@ __11:
goto trigger_cleanup
__12:
;
- if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+19778, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) {
+ if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+19816, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) {
goto __13
}
goto trigger_cleanup
@@ -122895,7 +123687,7 @@ __13:
if !!(noErr != 0) {
goto __16
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19827, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19865, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))))
goto __17
__16:
;
@@ -122912,7 +123704,7 @@ __14:
if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8000, 7) == 0) {
goto __18
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19853, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19891, 0)
goto trigger_cleanup
__18:
;
@@ -122922,12 +123714,12 @@ __18:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW && tr_tm != TK_INSTEAD) {
goto __19
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19891,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19929,
libc.VaList(bp+8, func() uintptr {
if tr_tm == TK_BEFORE {
- return ts + 19928 /* "BEFORE" */
+ return ts + 19966 /* "BEFORE" */
}
- return ts + 19935 /* "AFTER" */
+ return ts + 19973 /* "AFTER" */
}(), pTableName+8 /* &.a */))
goto trigger_orphan_error
__19:
@@ -122936,7 +123728,7 @@ __19:
goto __20
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+19941, libc.VaList(bp+24, pTableName+8))
+ ts+19979, libc.VaList(bp+24, pTableName+8))
goto trigger_orphan_error
__20:
;
@@ -122966,9 +123758,9 @@ __23:
;
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr {
if !(0 != 0) && iTabDb == 1 {
- return ts + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}(), uintptr(0), zDb) != 0) {
goto __24
}
@@ -123062,7 +123854,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) { /* sqlite3.c:141297:21: */
+func Xsqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAll uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142337:21: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -123102,7 +123894,7 @@ __2:
__3:
;
Xsqlite3TokenInit(tls, bp+40, (*Trigger)(unsafe.Pointer(pTrig)).FzName)
- Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+19778, bp+40)
+ Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+19816, 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
@@ -123139,13 +123931,13 @@ __8:
Xsqlite3NestedParse(tls, pParse,
- ts+19987,
+ ts+20025,
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+20062, libc.VaList(bp+32, zName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+20100, libc.VaList(bp+32, zName)), uint16(0))
__7:
;
__6:
@@ -123186,7 +123978,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 { /* sqlite3.c:141385:13: */
+func triggerSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142425:13: */
var z uintptr = Xsqlite3DbSpanDup(tls, db, zStart, zEnd)
var i int32
if z != 0 {
@@ -123204,7 +123996,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 { /* sqlite3.c:141399:28: */
+func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142439:28: */
var pTriggerStep uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(TriggerStep{})))
if pTriggerStep == uintptr(0) {
Xsqlite3SelectDelete(tls, db, pSelect)
@@ -123221,10 +124013,13 @@ 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 { /* sqlite3.c:141423:20: */
+func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142463:20: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
+ return uintptr(0)
+ }
pTriggerStep = Xsqlite3DbMallocZero(tls, db, uint64(uint64(unsafe.Sizeof(TriggerStep{}))+uint64((*Token)(unsafe.Pointer(pName)).Fn)+uint64(1)))
if pTriggerStep != 0 {
var z uintptr = pTriggerStep + 1*96
@@ -123245,7 +124040,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 { /* sqlite3.c:141455: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-3380500/sqlite3.c:142496:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123277,7 +124072,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 { /* sqlite3.c:141500: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-3380500/sqlite3.c:142541:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123306,7 +124101,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 { /* sqlite3.c:141540:28: */
+func Xsqlite3TriggerDeleteStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pWhere uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142581:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123325,7 +124120,7 @@ func Xsqlite3TriggerDeleteStep(tls *libc.TLS, pParse uintptr, pTableName uintptr
}
// Recursively delete a Trigger structure
-func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* sqlite3.c:141567:21: */
+func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142608:21: */
if pTrigger == uintptr(0) || (*Trigger)(unsafe.Pointer(pTrigger)).FbReturning != 0 {
return
}
@@ -123345,7 +124140,7 @@ func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* sql
// 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) { /* sqlite3.c:141585:21: */
+func Xsqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142626:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -123411,7 +124206,7 @@ __5:
if !!(noErr != 0) {
goto __9
}
- Xsqlite3ErrorMsg(tls, pParse, ts+20091, libc.VaList(bp, pName+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20129, libc.VaList(bp, pName+8))
goto __10
__9:
Xsqlite3CodeVerifyNamedSchema(tls, pParse, zDb)
@@ -123429,12 +124224,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 { /* sqlite3.c:141627:14: */
+func tableOfTrigger(tls *libc.TLS, pTrigger uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142668: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) { /* sqlite3.c:141635:21: */
+func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142676:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -123452,9 +124247,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 + 11989
+ return ts + 12014
}
- return ts + 5806
+ return ts + 5825
}()
if iDb == 1 {
code = SQLITE_DROP_TEMP_TRIGGER
@@ -123467,7 +124262,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+20111,
+ ts+20149,
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)
@@ -123475,7 +124270,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) { /* sqlite3.c:141673:21: */
+func Xsqlite3UnlinkAndDeleteTrigger(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142714:21: */
var pTrigger uintptr
var pHash uintptr
@@ -123506,7 +124301,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 { /* sqlite3.c:141707:12: */
+func checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142748:12: */
var e int32
if pIdList == uintptr(0) || pEList == uintptr(0) {
return 1
@@ -123523,7 +124318,7 @@ func checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) int32 {
// 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 { /* sqlite3.c:141722:24: */
+func Xsqlite3TriggersExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, pChanges uintptr, pMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142763:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -123586,12 +124381,12 @@ __9:
goto __15
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20173,
+ ts+20211,
libc.VaList(bp, func() uintptr {
if op == TK_DELETE {
- return ts + 20221 /* "DELETE" */
+ return ts + 20259 /* "DELETE" */
}
- return ts + 20228 /* "UPDATE" */
+ return ts + 20266 /* "UPDATE" */
}()))
__15:
;
@@ -123650,7 +124445,7 @@ __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 { /* sqlite3.c:141796:24: */
+func Xsqlite3TriggerStepSrc(tls *libc.TLS, pParse uintptr, pStep uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142837:24: */
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)
@@ -123675,7 +124470,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 { /* sqlite3.c:141827:12: */
+func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142868:12: */
if int32((*Expr)(unsafe.Pointer(pTerm)).Fop) == TK_ASTERISK {
return 1
@@ -123687,7 +124482,7 @@ func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* sql
if int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pTerm)).FpRight)).Fop) != TK_ASTERISK {
return 0
}
- Xsqlite3ErrorMsg(tls, pParse, ts+20235, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20273, 0)
return 1
}
@@ -123696,7 +124491,7 @@ func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* sql
//
// 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 { /* sqlite3.c:141847:17: */
+func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142888:17: */
var pNew uintptr = uintptr(0)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var i int32
@@ -123737,7 +124532,7 @@ 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) { /* sqlite3.c:141890:13: */
+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)
@@ -123759,7 +124554,8 @@ func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab
(*SrcItem)(unsafe.Pointer(bp + 128 + 8)).FpTab = pTab
(*SrcItem)(unsafe.Pointer(bp + 128 + 8)).FiCursor = -1
Xsqlite3SelectPrep(tls, pParse, bp, uintptr(0))
- if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 && (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
+
Xsqlite3GenerateColumnNames(tls, pParse, bp)
}
Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(bp /* &sSelect */)).FpEList)
@@ -123788,6 +124584,9 @@ func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab
var pCol uintptr = (*ExprList_item)(unsafe.Pointer(pNew + 8 + uintptr(i)*32)).FpExpr
// Due to !db->mallocFailed ~9 lines above
Xsqlite3ExprCodeFactorable(tls, pParse, pCol, reg+i)
+ if int32(Xsqlite3ExprAffinity(tls, pCol)) == SQLITE_AFF_REAL {
+ Xsqlite3VdbeAddOp1(tls, v, OP_RealAffinity, reg+i)
+ }
}
Xsqlite3VdbeAddOp3(tls, v, OP_MakeRecord, reg, i, reg+i)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, (*Returning)(unsafe.Pointer(pReturning)).FiRetCur, reg+i+1)
@@ -123801,7 +124600,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 { /* sqlite3.c:141961:12: */
+func codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orconf int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143007:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -123831,7 +124630,7 @@ 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+5993, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)),
+ Xsqlite3MPrintf(tls, db, ts+6012, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)),
-7)
}
@@ -123888,7 +124687,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) { /* sqlite3.c:142065:13: */
+func transferParseError(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143111:13: */
if (*Parse)(unsafe.Pointer(pTo)).FnErr == 0 {
(*Parse)(unsafe.Pointer(pTo)).FzErrMsg = (*Parse)(unsafe.Pointer(pFrom)).FzErrMsg
@@ -123901,9 +124700,9 @@ func transferParseError(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* sqlite3.
// 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 { /* sqlite3.c:142081:19: */
- bp := tls.Alloc(64)
- defer tls.Free(64)
+func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143127:19: */
+ bp := tls.Alloc(472)
+ defer tls.Free(472)
var pTop uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
@@ -123915,11 +124714,12 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt
var pPrg uintptr // Value to return
var pWhen uintptr = uintptr(0) // Duplicate of trigger WHEN expression
var v uintptr // Temporary VM
- // var sNC NameContext at bp+8, 56
+ // var sNC NameContext at bp+416, 56
// Name context for sub-vdbe
var pProgram uintptr = uintptr(0) // Sub-vdbe for trigger program
- var pSubParse uintptr // Parse context for sub-vdbe
var iEndTrigger int32 = 0 // Label to jump to if WHEN is false
+ // var sSubParse Parse at bp+8, 408
+ // Parse context for sub-vdbe
// Allocate the TriggerPrg and SubProgram objects. To ensure that they
// are freed if an error occurs, link them into the Parse.pTriggerPrg
@@ -123942,26 +124742,22 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt
// Allocate and populate a new Parse context to use for coding the
// trigger sub-program.
- pSubParse = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Parse{})))
- if !(pSubParse != 0) {
- return uintptr(0)
- }
- libc.Xmemset(tls, bp+8, 0, uint64(unsafe.Sizeof(NameContext{})))
- (*NameContext)(unsafe.Pointer(bp + 8 /* &sNC */)).FpParse = pSubParse
- (*Parse)(unsafe.Pointer(pSubParse)).Fdb = db
- (*Parse)(unsafe.Pointer(pSubParse)).FpTriggerTab = pTab
- (*Parse)(unsafe.Pointer(pSubParse)).FpToplevel = pTop
- (*Parse)(unsafe.Pointer(pSubParse)).FzAuthContext = (*Trigger)(unsafe.Pointer(pTrigger)).FzName
- (*Parse)(unsafe.Pointer(pSubParse)).FeTriggerOp = (*Trigger)(unsafe.Pointer(pTrigger)).Fop
- (*Parse)(unsafe.Pointer(pSubParse)).FnQueryLoop = (*Parse)(unsafe.Pointer(pParse)).FnQueryLoop
- (*Parse)(unsafe.Pointer(pSubParse)).FdisableVtab = (*Parse)(unsafe.Pointer(pParse)).FdisableVtab
-
- v = Xsqlite3GetVdbe(tls, pSubParse)
+ Xsqlite3ParseObjectInit(tls, bp+8, db)
+ libc.Xmemset(tls, bp+416, 0, uint64(unsafe.Sizeof(NameContext{})))
+ (*NameContext)(unsafe.Pointer(bp + 416 /* &sNC */)).FpParse = bp + 8 /* &sSubParse */
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FpTriggerTab = pTab
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FpToplevel = pTop
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FzAuthContext = (*Trigger)(unsafe.Pointer(pTrigger)).FzName
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FeTriggerOp = (*Trigger)(unsafe.Pointer(pTrigger)).Fop
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FnQueryLoop = (*Parse)(unsafe.Pointer(pParse)).FnQueryLoop
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FdisableVtab = (*Parse)(unsafe.Pointer(pParse)).FdisableVtab
+
+ v = Xsqlite3GetVdbe(tls, bp+8)
if v != 0 {
if (*Trigger)(unsafe.Pointer(pTrigger)).FzName != 0 {
Xsqlite3VdbeChangeP4(tls, v, -1,
- Xsqlite3MPrintf(tls, db, ts+20277, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7)
+ Xsqlite3MPrintf(tls, db, ts+20315, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7)
}
// If one was specified, code the WHEN clause. If it evaluates to false
@@ -123970,15 +124766,15 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt
if (*Trigger)(unsafe.Pointer(pTrigger)).FpWhen != 0 {
pWhen = Xsqlite3ExprDup(tls, db, (*Trigger)(unsafe.Pointer(pTrigger)).FpWhen, 0)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 &&
- SQLITE_OK == Xsqlite3ResolveExprNames(tls, bp+8, pWhen) {
- iEndTrigger = Xsqlite3VdbeMakeLabel(tls, pSubParse)
- Xsqlite3ExprIfFalse(tls, pSubParse, pWhen, iEndTrigger, SQLITE_JUMPIFNULL)
+ SQLITE_OK == Xsqlite3ResolveExprNames(tls, bp+416, pWhen) {
+ iEndTrigger = Xsqlite3VdbeMakeLabel(tls, bp+8)
+ Xsqlite3ExprIfFalse(tls, bp+8, pWhen, iEndTrigger, SQLITE_JUMPIFNULL)
}
Xsqlite3ExprDelete(tls, db, pWhen)
}
// Code the trigger program into the sub-vdbe.
- codeTriggerProgram(tls, pSubParse, (*Trigger)(unsafe.Pointer(pTrigger)).Fstep_list, orconf)
+ codeTriggerProgram(tls, bp+8, (*Trigger)(unsafe.Pointer(pTrigger)).Fstep_list, orconf)
// Insert an OP_Halt at the end of the sub-program.
if iEndTrigger != 0 {
@@ -123986,21 +124782,23 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt
}
Xsqlite3VdbeAddOp0(tls, v, OP_Halt)
- transferParseError(tls, pParse, pSubParse)
- if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 && (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
+ transferParseError(tls, pParse, bp+8)
+
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
+
(*SubProgram)(unsafe.Pointer(pProgram)).FaOp = Xsqlite3VdbeTakeOpArray(tls, v, pProgram+8, pTop+128)
}
- (*SubProgram)(unsafe.Pointer(pProgram)).FnMem = (*Parse)(unsafe.Pointer(pSubParse)).FnMem
- (*SubProgram)(unsafe.Pointer(pProgram)).FnCsr = (*Parse)(unsafe.Pointer(pSubParse)).FnTab
+ (*SubProgram)(unsafe.Pointer(pProgram)).FnMem = (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FnMem
+ (*SubProgram)(unsafe.Pointer(pProgram)).FnCsr = (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).FnTab
(*SubProgram)(unsafe.Pointer(pProgram)).Ftoken = pTrigger
- *(*U32)(unsafe.Pointer(pPrg + 28)) = (*Parse)(unsafe.Pointer(pSubParse)).Foldmask
- *(*U32)(unsafe.Pointer(pPrg + 28 + 1*4)) = (*Parse)(unsafe.Pointer(pSubParse)).Fnewmask
+ *(*U32)(unsafe.Pointer(pPrg + 28)) = (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).Foldmask
+ *(*U32)(unsafe.Pointer(pPrg + 28 + 1*4)) = (*Parse)(unsafe.Pointer(bp + 8 /* &sSubParse */)).Fnewmask
Xsqlite3VdbeDelete(tls, v)
+ } else {
+ transferParseError(tls, pParse, bp+8)
}
- Xsqlite3ParserReset(tls, pSubParse)
- Xsqlite3DbFree(tls, db, pSubParse)
-
+ Xsqlite3ParseObjectReset(tls, bp+8)
return pPrg
}
@@ -124008,7 +124806,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 { /* sqlite3.c:142196:19: */
+func getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143241:19: */
var pRoot uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -124027,6 +124825,7 @@ func getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr
// If an existing TriggerPrg could not be located, create a new one.
if !(pPrg != 0) {
pPrg = codeRowTrigger(tls, pParse, pTrigger, pTab, orconf)
+ (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FerrByteOffset = -1
}
return pPrg
@@ -124036,7 +124835,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) { /* sqlite3.c:142230:21: */
+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: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Main VM
var pPrg uintptr
pPrg = getRowTrigger(tls, pParse, p, pTab, orconf)
@@ -124096,7 +124895,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) { /* sqlite3.c:142302: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-3380500/sqlite3.c:143348:21: */
var p uintptr // Used to iterate through pTrigger list
for p = pTrigger; p != 0; p = (*Trigger)(unsafe.Pointer(p)).FpNext {
@@ -124144,7 +124943,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 { /* sqlite3.c:142372: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-3380500/sqlite3.c:143418:20: */
var op int32
if pChanges != 0 {
op = TK_UPDATE
@@ -124201,7 +125000,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) { /* sqlite3.c:142470:21: */
+func Xsqlite3ColumnDefault(tls *libc.TLS, v uintptr, pTab uintptr, i int32, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143516:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -124231,7 +125030,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 { /* sqlite3.c:142503:12: */
+func indexColumnIsBeingUpdated(tls *libc.TLS, pIdx uintptr, iCol int32, aXRef uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143549:12: */
var iIdxCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2))
// Cannot index rowid
if int32(iIdxCol) >= 0 {
@@ -124252,7 +125051,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 { /* sqlite3.c:142533:12: */
+func indexWhereClauseMightChange(tls *libc.TLS, pIdx uintptr, aXRef uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143579:12: */
if (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere == uintptr(0) {
return 0
}
@@ -124264,7 +125063,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 { /* sqlite3.c:142549:13: */
+func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143595:13: */
var pRet uintptr = Xsqlite3PExpr(tls, pParse, TK_ROW, uintptr(0), uintptr(0))
if pRet != 0 {
(*Expr)(unsafe.Pointer(pRet)).FiColumn = YnVar(iCol + 1)
@@ -124308,7 +125107,7 @@ func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* sqlit
// records with automatically assigned integer keys For intkey tables, the
// rowid value in <other-columns> is used as the integer key, and the
// remaining fields make up the table record.
-func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pChanges uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* sqlite3.c:142593: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-3380500/sqlite3.c:143639:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -124391,7 +125190,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) { /* sqlite3.c:142690: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-3380500/sqlite3.c:143736:21: */
bp := tls.Alloc(108)
defer tls.Free(108)
@@ -124491,7 +125290,8 @@ func Xsqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
libc.Xmemset(tls, bp+16, 0, uint64(unsafe.Sizeof(AuthContext{})))
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __1
}
goto update_cleanup
@@ -124671,7 +125471,7 @@ __25:
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20291,
+ ts+20329,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName))
goto update_cleanup
__27:
@@ -124703,7 +125503,7 @@ __21:
iRowidExpr = i
goto __30
__29:
- Xsqlite3ErrorMsg(tls, pParse, ts+20327, libc.VaList(bp+8, (*ExprList_item)(unsafe.Pointer(pChanges+8+uintptr(i)*32)).FzEName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20365, 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:
@@ -124714,7 +125514,7 @@ __28:
rc = Xsqlite3AuthCheck(tls, pParse, SQLITE_UPDATE, (*Table)(unsafe.Pointer(pTab)).FzName,
func() uintptr {
if j < 0 {
- return ts + 7584 /* "ROWID" */
+ return ts + 7581 /* "ROWID" */
}
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*24)).FzCnName
}(),
@@ -125086,7 +125886,7 @@ __76:
flags = flags | WHERE_ONEPASS_MULTIROW
__78:
;
- pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, uintptr(0), uintptr(0), uint16(flags), iIdxCur)
+ pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, uintptr(0), uintptr(0), uintptr(0), uint16(flags), iIdxCur)
if !(pWInfo == uintptr(0)) {
goto __79
}
@@ -125744,9 +126544,7 @@ __168:
if !(regRowCount != 0) {
goto __169
}
- Xsqlite3VdbeAddOp2(tls, v, OP_ChngCntRow, regRowCount, 1)
- Xsqlite3VdbeSetNumCols(tls, v, 1)
- Xsqlite3VdbeSetColName(tls, v, 0, COLNAME_NAME, ts+20346, uintptr(0))
+ Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+20384)
__169:
;
@@ -125782,7 +126580,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) { /* sqlite3.c:143582: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-3380500/sqlite3.c:144628:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -125850,7 +126648,8 @@ func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintpt
regRowid = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
// Start scanning the virtual table
- pWInfo = Xsqlite3WhereBegin(tls, pParse, pSrc, pWhere, uintptr(0), uintptr(0), uint16(WHERE_ONEPASS_DESIRED), 0)
+ pWInfo = Xsqlite3WhereBegin(tls,
+ pParse, pSrc, pWhere, uintptr(0), uintptr(0), uintptr(0), uint16(WHERE_ONEPASS_DESIRED), 0)
if pWInfo == uintptr(0) {
return
}
@@ -125954,8 +126753,8 @@ 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) { /* sqlite3.c:143768:29: */
- for ok := true; ok; ok = p != 0 {
+func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144816:29: */
+ for __ccgo := true; __ccgo; __ccgo = p != 0 {
var pNext uintptr = (*Upsert)(unsafe.Pointer(p)).FpNextUpsert
Xsqlite3ExprListDelete(tls, db, (*Upsert)(unsafe.Pointer(p)).FpUpsertTarget)
Xsqlite3ExprDelete(tls, db, (*Upsert)(unsafe.Pointer(p)).FpUpsertTargetWhere)
@@ -125967,14 +126766,14 @@ func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:143768:29
}
}
-func Xsqlite3UpsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:143780:21: */
+func Xsqlite3UpsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144828:21: */
if p != 0 {
upsertDelete(tls, db, p)
}
}
// Duplicate an Upsert object.
-func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:143788:23: */
+func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144836:23: */
if p == uintptr(0) {
return uintptr(0)
}
@@ -125987,7 +126786,7 @@ func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite
}
// Create a new Upsert object.
-func Xsqlite3UpsertNew(tls *libc.TLS, db uintptr, pTarget uintptr, pTargetWhere uintptr, pSet uintptr, pWhere uintptr, pNext uintptr) uintptr { /* sqlite3.c:143802:23: */
+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: */
var pNew uintptr
pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Upsert{})))
if pNew == uintptr(0) {
@@ -126013,7 +126812,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 { /* sqlite3.c:143837:20: */
+func Xsqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr, pUpsert uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144885:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
@@ -126133,10 +126932,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+20359, libc.VaList(bp, nClause+1))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([16]int8{})), bp+216, ts+20397, libc.VaList(bp, nClause+1))
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20363, libc.VaList(bp+8, bp+216))
+ ts+20401, libc.VaList(bp+8, bp+216))
return SQLITE_ERROR
}
@@ -126155,7 +126954,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 { /* sqlite3.c:143964:20: */
+func Xsqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145012:20: */
var pNext uintptr
if pUpsert == uintptr(0) {
return 0
@@ -126177,7 +126976,7 @@ func Xsqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:143980:23: */
+func Xsqlite3UpsertOfIndex(tls *libc.TLS, pUpsert uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145028:23: */
for pUpsert != 0 &&
(*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertTarget != uintptr(0) &&
(*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertIdx != pIdx {
@@ -126193,7 +126992,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) { /* sqlite3.c:144000:21: */
+func Xsqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab uintptr, pIdx uintptr, iCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145048: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
@@ -126227,7 +127026,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+12043, -1)
+ ts+12068, -1)
Xsqlite3MayAbort(tls, pParse)
Xsqlite3VdbeJumpHere(tls, v, i)
}
@@ -126273,7 +127072,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 { /* sqlite3.c:144097:12: */
+func execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145145:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -126295,7 +127094,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+20436, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+20440, uint64(3)) == 0) {
+ (libc.Xstrncmp(tls, zSubSql, ts+20474, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+20478, uint64(3)) == 0) {
rc = execSql(tls, db, pzErrMsg, zSubSql)
if rc != SQLITE_OK {
break
@@ -126313,7 +127112,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 { /* sqlite3.c:144127:12: */
+func execSqlF(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145175:12: */
var z uintptr
var ap Va_list
_ = ap
@@ -126357,7 +127156,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) { /* sqlite3.c:144170:21: */
+func Xsqlite3Vacuum(tls *libc.TLS, pParse uintptr, pNm uintptr, pInto uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145218:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pNm
@@ -126414,7 +127213,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 { /* sqlite3.c:144208:36: */
+func Xsqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145256:36: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -126445,14 +127244,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+20444)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20482)
return SQLITE_ERROR // IMP: R-12218-18073
__1:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive > 1) {
goto __2
}
- Xsqlite3SetString(tls, pzErrMsg, db, ts+20484)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20522)
return SQLITE_ERROR // IMP: R-15610-35227
__2:
;
@@ -126463,7 +127262,7 @@ __2:
if !(Xsqlite3_value_type(tls, pOut) != SQLITE_TEXT) {
goto __5
}
- Xsqlite3SetString(tls, pzErrMsg, db, ts+20527)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20565)
return SQLITE_ERROR
__5:
;
@@ -126472,7 +127271,7 @@ __5:
*(*uint32)(unsafe.Pointer(db + 76)) |= uint32(SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
goto __4
__3:
- zOut = ts + 1546 /* "" */
+ zOut = ts + 1515 /* "" */
__4:
;
@@ -126508,7 +127307,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+20545, libc.VaList(bp, zOut))
+ rc = execSqlF(tls, db, pzErrMsg, ts+20583, libc.VaList(bp, zOut))
(*Sqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags
if !(rc != SQLITE_OK) {
goto __6
@@ -126529,7 +127328,7 @@ __6:
goto __8
}
rc = SQLITE_ERROR
- Xsqlite3SetString(tls, pzErrMsg, db, ts+20568)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20606)
goto end_of_vacuum
__8:
;
@@ -126545,7 +127344,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+14399)
+ rc = execSql(tls, db, pzErrMsg, ts+14421)
if !(rc != SQLITE_OK) {
goto __9
}
@@ -126597,7 +127396,7 @@ __12:
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(nDb) // force new CREATE statements into vacuum_db
rc = execSqlF(tls, db, pzErrMsg,
- ts+20595,
+ ts+20633,
libc.VaList(bp+8, zDbMain))
if !(rc != SQLITE_OK) {
goto __13
@@ -126607,7 +127406,7 @@ __13:
;
rc = execSqlF(tls, db, pzErrMsg,
- ts+20703,
+ ts+20741,
libc.VaList(bp+16, zDbMain))
if !(rc != SQLITE_OK) {
goto __14
@@ -126622,7 +127421,7 @@ __14:
// the contents to the temporary database.
rc = execSqlF(tls, db, pzErrMsg,
- ts+20757,
+ ts+20795,
libc.VaList(bp+24, zDbMain))
*(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_Vacuum))
@@ -126639,7 +127438,7 @@ __15:
// from the schema table.
rc = execSqlF(tls, db, pzErrMsg,
- ts+20908,
+ ts+20946,
libc.VaList(bp+32, zDbMain))
if !(rc != 0) {
goto __16
@@ -126752,7 +127551,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
-} /* sqlite3.c:144401:32 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145449: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
@@ -126760,7 +127559,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 { /* sqlite3.c:144513:23: */
+func Xsqlite3VtabCreateModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145561:23: */
var pMod uintptr
var pDel uintptr
var zCopy uintptr
@@ -126800,7 +127599,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 { /* sqlite3.c:144561:12: */
+func createModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145609:12: */
var rc int32 = SQLITE_OK
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -126814,18 +127613,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 { /* sqlite3.c:144582:16: */
+func Xsqlite3_create_module(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145630: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 { /* sqlite3.c:144597:16: */
+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: */
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 { /* sqlite3.c:144614:16: */
+func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145662:16: */
var pThis uintptr
var pNext uintptr
for pThis = (*Hash)(unsafe.Pointer(db + 568)).Ffirst; pThis != 0; pThis = pNext {
@@ -126846,7 +127645,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) { /* sqlite3.c:144636:21: */
+func Xsqlite3VtabModuleUnref(tls *libc.TLS, db uintptr, pMod uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145684:21: */
(*Module)(unsafe.Pointer(pMod)).FnRefModule--
if (*Module)(unsafe.Pointer(pMod)).FnRefModule == 0 {
@@ -126864,14 +127663,14 @@ func Xsqlite3VtabModuleUnref(tls *libc.TLS, db uintptr, pMod uintptr) { /* sqlit
//
// 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) { /* sqlite3.c:144656:21: */
+func Xsqlite3VtabLock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145704: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 { /* sqlite3.c:144666:23: */
+func Xsqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145714: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 {
@@ -126881,7 +127680,7 @@ func Xsqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) uintptr { /* sql
// 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) { /* sqlite3.c:144677:21: */
+func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145725:21: */
var db uintptr = (*VTable)(unsafe.Pointer(pVTab)).Fdb
(*VTable)(unsafe.Pointer(pVTab)).FnRef--
@@ -126902,7 +127701,7 @@ func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* sqlite3.c:144677:21:
// 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 { /* sqlite3.c:144703:15: */
+func vtabDisconnectAll(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145751:15: */
var pRet uintptr = uintptr(0)
var pVTable uintptr
@@ -126939,7 +127738,7 @@ func vtabDisconnectAll(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite
// 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) { /* sqlite3.c:144746:21: */
+func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145794:21: */
var ppVTab uintptr
for ppVTab = p + 64 + 16; *(*uintptr)(unsafe.Pointer(ppVTab)) != 0; ppVTab = *(*uintptr)(unsafe.Pointer(ppVTab)) + 40 {
@@ -126970,13 +127769,13 @@ func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c
//
// As a result, a sqlite3.pDisconnect cannot be accessed simultaneously
// by multiple threads. It is thread-safe.
-func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* sqlite3.c:144784:21: */
+func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145832:21: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpDisconnect
if p != 0 {
(*Sqlite3)(unsafe.Pointer(db)).FpDisconnect = uintptr(0)
Xsqlite3ExpirePreparedStatements(tls, db, 0)
- for ok := true; ok; ok = p != 0 {
+ for __ccgo := true; __ccgo; __ccgo = p != 0 {
var pNext uintptr = (*VTable)(unsafe.Pointer(p)).FpNext
Xsqlite3VtabUnlock(tls, p)
p = pNext
@@ -126996,7 +127795,7 @@ func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* sqlite3.c:144784:21:
// 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) { /* sqlite3.c:144815:21: */
+func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145863:21: */
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) {
vtabDisconnectAll(tls, uintptr(0), p)
@@ -127016,7 +127815,7 @@ func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:1448
// 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) { /* sqlite3.c:144833:13: */
+func addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145881:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -127026,7 +127825,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+12273, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12295, 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) {
@@ -127042,7 +127841,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) { /* sqlite3.c:144859:21: */
+func Xsqlite3VtabBeginParse(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pModuleName uintptr, ifNotExists int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145907:21: */
var pTable uintptr // The new virtual table
var db uintptr // Database connection
@@ -127077,7 +127876,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) { /* sqlite3.c:144908:13: */
+func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145956: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)
@@ -127088,7 +127887,7 @@ func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:144908:13:
// The parser calls this routine after the CREATE VIRTUAL TABLE statement
// has been completely parsed.
-func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* sqlite3.c:144921:21: */
+func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145969:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -127123,7 +127922,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* s
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+21038, libc.VaList(bp, pParse+248))
+ zStmt = Xsqlite3MPrintf(tls, db, ts+21076, 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
@@ -127135,7 +127934,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* s
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema)
Xsqlite3NestedParse(tls, pParse,
- ts+21062,
+ ts+21100,
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,
@@ -127145,7 +127944,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* s
Xsqlite3ChangeCookie(tls, pParse, iDb)
Xsqlite3VdbeAddOp0(tls, v, OP_Expire)
- zWhere = Xsqlite3MPrintf(tls, db, ts+21161, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt))
+ zWhere = Xsqlite3MPrintf(tls, db, ts+21199, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt))
Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0))
Xsqlite3DbFree(tls, db, zStmt)
@@ -127172,7 +127971,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* s
// 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) { /* sqlite3.c:145004:21: */
+func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146052:21: */
addArgumentToVtab(tls, pParse)
(*Parse)(unsafe.Pointer(pParse)).FsArg.Fz = uintptr(0)
(*Parse)(unsafe.Pointer(pParse)).FsArg.Fn = uint32(0)
@@ -127180,8 +127979,8 @@ func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:145004:21
// 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) { /* sqlite3.c:145014:21: */
- var pArg uintptr = pParse + 360
+func Xsqlite3VtabArgExtend(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146062:21: */
+ var pArg uintptr = pParse + 368
if (*Token)(unsafe.Pointer(pArg)).Fz == uintptr(0) {
(*Token)(unsafe.Pointer(pArg)).Fz = (*Token)(unsafe.Pointer(p)).Fz
(*Token)(unsafe.Pointer(pArg)).Fn = (*Token)(unsafe.Pointer(p)).Fn
@@ -127194,7 +127993,7 @@ func Xsqlite3VtabArgExtend(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite
// 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 { /* sqlite3.c:145030:12: */
+func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, xConstruct uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146078:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -127215,7 +128014,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+21180, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+21218, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
return SQLITE_LOCKED
}
}
@@ -127255,9 +128054,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+21222, libc.VaList(bp+8, zModuleName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+21260, libc.VaList(bp+8, zModuleName))
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+3604, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+3595, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))
}
Xsqlite3DbFree(tls, db, pVTable)
@@ -127269,7 +128068,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 + 21252 /* "vtable construct..." */
+ var zFormat uintptr = ts + 21290 /* "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
@@ -127285,12 +128084,12 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
*(*uintptr)(unsafe.Pointer(pTab + 64 + 16 /* &.p */)) = pVTable
for iCol = 0; iCol < int32((*Table)(unsafe.Pointer(pTab)).FnCol); iCol++ {
- var zType uintptr = Xsqlite3ColumnType(tls, (*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24, ts+1546)
+ var zType uintptr = Xsqlite3ColumnType(tls, (*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24, ts+1515)
var nType int32
var i int32 = 0
nType = Xsqlite3Strlen30(tls, zType)
for i = 0; i < nType; i++ {
- if 0 == Xsqlite3_strnicmp(tls, ts+16006, zType+uintptr(i), 6) &&
+ if 0 == Xsqlite3_strnicmp(tls, ts+16046, 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
@@ -127330,7 +128129,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 { /* sqlite3.c:145166:20: */
+func Xsqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146214:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -127349,13 +128148,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+21298, libc.VaList(bp, zModule))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21336, 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+3604, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3595, 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 */)))
@@ -127366,7 +128165,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 { /* sqlite3.c:145202:12: */
+func growVTrans(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146250:12: */
var ARRAY_INCR int32 = 5
// Grow the sqlite3.aVTrans array if required
@@ -127386,7 +128185,7 @@ func growVTrans(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:145202:12: */
// 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) { /* sqlite3.c:145225:13: */
+func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146273: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)
@@ -127398,7 +128197,7 @@ func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* sqlite3.c:145225
// 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 { /* sqlite3.c:145239:20: */
+func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146287:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -127417,7 +128216,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+21298, libc.VaList(bp, zMod))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+21336, 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)
@@ -127438,15 +128237,14 @@ 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 { /* sqlite3.c:145280:16: */
+func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146328:16: */
bp := tls.Alloc(416)
defer tls.Free(416)
var pCtx uintptr
var rc int32 = SQLITE_OK
var pTab uintptr
- *(*uintptr)(unsafe.Pointer(bp + 408 /* zErr */)) = uintptr(0)
- // var sParse Parse at bp+8, 400
+ // var sParse Parse at bp+8, 408
var initBusy int32
@@ -127455,13 +128253,13 @@ 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, 145298)
+ return Xsqlite3MisuseError(tls, 146345)
}
pTab = (*VtabCtx)(unsafe.Pointer(pCtx)).FpTab
- libc.Xmemset(tls, bp+8, 0, uint64(unsafe.Sizeof(Parse{})))
+ Xsqlite3ParseObjectInit(tls, bp+8, db)
(*Parse)(unsafe.Pointer(bp + 8 /* &sParse */)).FeParseMode = U8(PARSE_MODE_DECLARE_VTAB)
- (*Parse)(unsafe.Pointer(bp + 8 /* &sParse */)).Fdb = db
+ (*Parse)(unsafe.Pointer(bp + 8 /* &sParse */)).FdisableTriggers = U8(1)
// We should never be able to reach this point while loading the
// schema. Nevertheless, defend against that (turn off db->init.busy)
// in case a bug arises.
@@ -127469,10 +128267,11 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3
initBusy = int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy)
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(0)
(*Parse)(unsafe.Pointer(bp + 8 /* &sParse */)).FnQueryLoop = U32(1)
- if SQLITE_OK == Xsqlite3RunParser(tls, bp+8, zCreateTable, bp+408) &&
- (*Parse)(unsafe.Pointer(bp+8)).FpNewTable != 0 &&
+ if SQLITE_OK == Xsqlite3RunParser(tls, bp+8, zCreateTable) &&
+ (*Parse)(unsafe.Pointer(bp+8)).FpNewTable != uintptr(0) &&
!(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) &&
int32((*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(bp+8)).FpNewTable)).FeTabType) == TABTYP_NORM {
+
if !(int32((*Table)(unsafe.Pointer(pTab)).FaCol) != 0) {
var pNew uintptr = (*Parse)(unsafe.Pointer(bp + 8 /* &sParse */)).FpNewTable
var pIdx uintptr
@@ -127500,13 +128299,14 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3
}
(*VtabCtx)(unsafe.Pointer(pCtx)).FbDeclared = 1
} else {
- Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, func() uintptr {
- if *(*uintptr)(unsafe.Pointer(bp + 408)) != 0 {
- return ts + 3604 /* "%s" */
- }
- return uintptr(0)
- }(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 408 /* zErr */))))
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 408 /* zErr */)))
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR,
+ func() uintptr {
+ if (*Parse)(unsafe.Pointer(bp+8)).FzErrMsg != 0 {
+ return ts + 3595 /* "%s" */
+ }
+ return uintptr(0)
+ }(), libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+8 /* &sParse */)).FzErrMsg))
+ Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(bp+8 /* &sParse */)).FzErrMsg)
rc = SQLITE_ERROR
}
(*Parse)(unsafe.Pointer(bp + 8 /* &sParse */)).FeParseMode = U8(PARSE_MODE_NORMAL)
@@ -127515,7 +128315,7 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3
Xsqlite3VdbeFinalize(tls, (*Parse)(unsafe.Pointer(bp+8 /* &sParse */)).FpVdbe)
}
Xsqlite3DeleteTable(tls, db, (*Parse)(unsafe.Pointer(bp+8 /* &sParse */)).FpNewTable)
- Xsqlite3ParserReset(tls, bp+8)
+ Xsqlite3ParseObjectReset(tls, bp+8)
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(initBusy)
rc = Xsqlite3ApiExit(tls, db, rc)
@@ -127528,7 +128328,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 { /* sqlite3.c:145373:20: */
+func Xsqlite3VtabCallDestroy(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146422:20: */
var rc int32 = SQLITE_OK
var pTab uintptr
@@ -127573,7 +128373,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) { /* sqlite3.c:145417:13: */
+func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146466:13: */
var i int32
if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 {
var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans
@@ -127603,7 +128403,7 @@ func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* sqlite3.c:14541
// 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 { /* sqlite3.c:145445:20: */
+func Xsqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146494:20: */
var i int32
var rc int32 = SQLITE_OK
var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans
@@ -127625,14 +128425,14 @@ func Xsqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:145467:20: */
+func Xsqlite3VtabRollback(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146516: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 { /* sqlite3.c:145476:20: */
+func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146525:20: */
callFinaliser(tls, db, int32(uintptr(0)+128))
return SQLITE_OK
}
@@ -127643,7 +128443,7 @@ func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:145476:2
//
// 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 { /* sqlite3.c:145489:20: */
+func Xsqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146538:20: */
var rc int32 = SQLITE_OK
var pModule uintptr
@@ -127704,7 +128504,7 @@ func Xsqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) int32 { /* sqli
// 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 { /* sqlite3.c:145549:20: */
+func Xsqlite3VtabSavepoint(tls *libc.TLS, db uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146598:20: */
var rc int32 = SQLITE_OK
if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 {
@@ -127752,7 +128552,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 { /* sqlite3.c:145597:24: */
+func Xsqlite3VtabOverloadFunction(tls *libc.TLS, db uintptr, pDef uintptr, nArg int32, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146646:24: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -127819,7 +128619,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) { /* sqlite3.c:145667:21: */
+func Xsqlite3VtabMakeWritable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146716:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -127858,7 +128658,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 { /* sqlite3.c:145701:20: */
+func Xsqlite3VtabEponymousTableInit(tls *libc.TLS, pParse uintptr, pMod uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146750:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -127894,7 +128694,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+3604, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3595, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))))
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))
Xsqlite3VtabEponymousTableClear(tls, db, pMod)
}
@@ -127903,7 +128703,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) { /* sqlite3.c:145739:21: */
+func Xsqlite3VtabEponymousTableClear(tls *libc.TLS, db uintptr, pMod uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146788: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
@@ -127920,19 +128720,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 { /* sqlite3.c:145758:16: */
+func Xsqlite3_vtab_on_conflict(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146807: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),
-} /* sqlite3.c:145759:30 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146808: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 { /* sqlite3.c:145776:16: */
+func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146825:16: */
var ap Va_list
_ = ap
var rc int32 = SQLITE_OK
@@ -127941,7 +128741,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, 145787)
+ rc = Xsqlite3MisuseError(tls, 146836)
} else {
ap = va
@@ -127969,7 +128769,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32
fallthrough
default:
{
- rc = Xsqlite3MisuseError(tls, 145805)
+ rc = Xsqlite3MisuseError(tls, 146854)
break
}
@@ -128030,10 +128830,10 @@ type WhereClause1 = struct {
F__ccgo_pad1 [2]byte
FnTerm int32
FnSlot int32
- F__ccgo_pad2 [4]byte
+ FnBase int32
Fa uintptr
FaStatic [8]WhereTerm
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
//************* End of vtab.c ***********************************************
//************* Begin file wherecode.c **************************************
@@ -128073,23 +128873,23 @@ type WhereClause1 = struct {
// a separate source file for easier editing.
// Forward references
-type WhereClause = WhereClause1 /* sqlite3.c:145865:28 */
+type WhereClause = WhereClause1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146914:28 */
type WhereMaskSet1 = struct {
FbVarSelect int32
Fn int32
Fix [64]int32
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
-type WhereMaskSet = WhereMaskSet1 /* sqlite3.c:145866:29 */
+type WhereMaskSet = WhereMaskSet1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146915:29 */
type WhereOrInfo1 = struct {
Fwc WhereClause
Findexable Bitmask
-} /* sqlite3.c:145867:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146916:9 */
-type WhereOrInfo = WhereOrInfo1 /* sqlite3.c:145867:28 */
-type WhereAndInfo1 = struct{ Fwc WhereClause } /* sqlite3.c:145868: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 WhereAndInfo = WhereAndInfo1 /* sqlite3.c:145868:29 */
+type WhereAndInfo = WhereAndInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146917:29 */
type WhereLevel1 = struct {
FiLeftJoin int32
FiTabCur int32
@@ -128102,12 +128902,14 @@ type WhereLevel1 = struct {
FaddrBody int32
FregBignull int32
FaddrBignull int32
+ FregFilter int32
FiFrom U8
Fop U8
Fp3 U8
Fp5 U8
Fp1 int32
Fp2 int32
+ F__ccgo_pad1 [4]byte
Fu struct {
Fin struct {
FnIn int32
@@ -128117,9 +128919,9 @@ type WhereLevel1 = struct {
}
FpWLoop uintptr
FnotReady Bitmask
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
-type WhereLevel = WhereLevel1 /* sqlite3.c:145869:27 */
+type WhereLevel = WhereLevel1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146918:27 */
type WhereLoop1 = struct {
Fprereq Bitmask
FmaskSelf Bitmask
@@ -128136,6 +128938,7 @@ type WhereLoop1 = struct {
FnDistinctCol U16
FpIndex uintptr
}
+ F__ccgo_pad1 [16]byte
}
FwsFlags U32
FnLTerm U16
@@ -128145,9 +128948,9 @@ type WhereLoop1 = struct {
FaLTerm uintptr
FpNextLoop uintptr
FaLTermSpace [3]uintptr
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
-type WhereLoop = WhereLoop1 /* sqlite3.c:145870:26 */
+type WhereLoop = WhereLoop1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146919:26 */
type WherePath1 = struct {
FmaskLoop Bitmask
FrevLoop Bitmask
@@ -128157,9 +128960,9 @@ type WherePath1 = struct {
FisOrdered I8
F__ccgo_pad1 [1]byte
FaLoop uintptr
-} /* sqlite3.c:145871:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146920:9 */
-type WherePath = WherePath1 /* sqlite3.c:145871:26 */
+type WherePath = WherePath1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146920:26 */
type WhereTerm1 = struct {
FpExpr uintptr
FpWC uintptr
@@ -128179,13 +128982,12 @@ type WhereTerm1 = struct {
}
FprereqRight Bitmask
FprereqAll Bitmask
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
-type WhereTerm = WhereTerm1 /* sqlite3.c:145872:26 */
+type WhereTerm = WhereTerm1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146921:26 */
type WhereLoopBuilder1 = struct {
FpWInfo uintptr
FpWC uintptr
- FpOrderBy uintptr
FpNew uintptr
FpOrSet uintptr
FpRec uintptr
@@ -128195,41 +128997,41 @@ type WhereLoopBuilder1 = struct {
F__ccgo_pad1 [2]byte
FiPlanLimit uint32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:145873:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:9 */
-type WhereLoopBuilder = WhereLoopBuilder1 /* sqlite3.c:145873:33 */
+type WhereLoopBuilder = WhereLoopBuilder1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:33 */
type WhereScan1 = struct {
FpOrigWC uintptr
FpWC uintptr
FzCollName uintptr
FpIdxExpr uintptr
+ Fk int32
+ FopMask U32
Fidxaff int8
- FnEquiv uint8
FiEquiv uint8
+ FnEquiv uint8
F__ccgo_pad1 [1]byte
- FopMask U32
- Fk int32
FaiCur [11]int32
FaiColumn [11]I16
F__ccgo_pad2 [2]byte
-} /* sqlite3.c:145874:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146923:9 */
-type WhereScan = WhereScan1 /* sqlite3.c:145874:26 */
+type WhereScan = WhereScan1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146923:26 */
type WhereOrCost1 = struct {
Fprereq Bitmask
FrRun LogEst
FnOut LogEst
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:145873:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:9 */
-type WhereOrCost = WhereOrCost1 /* sqlite3.c:145875:28 */
+type WhereOrCost = WhereOrCost1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146924:28 */
type WhereOrSet1 = struct {
Fn U16
F__ccgo_pad1 [6]byte
Fa [3]WhereOrCost
-} /* sqlite3.c:145873:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:9 */
-type WhereOrSet = WhereOrSet1 /* sqlite3.c:145876:27 */
+type WhereOrSet = WhereOrSet1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146925:27 */
// This object contains information needed to implement a single nested
// loop in WHERE clause.
@@ -128251,7 +129053,7 @@ type InLoop = struct {
FnPrefix int32
FeEndLoopOp U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:145915:7 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146965:7 */
// Allowed values for WhereLoopBuider.bldFlags
@@ -128277,7 +129079,7 @@ type WhereExprMod1 = struct {
FpNext uintptr
FpExpr uintptr
Forig Expr
-} /* sqlite3.c:14311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */
// Allowed values for WhereLoopBuider.bldFlags
@@ -128299,7 +129101,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 /* sqlite3.c:146279:29 */
+type WhereExprMod = WhereExprMod1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147327:29 */
// Bitmasks for the operators on WhereTerm objects. These are all
// operators that are of interest to the query planner. An
@@ -128321,13 +129123,13 @@ type WhereExprMod = WhereExprMod1 /* sqlite3.c:146279:29 */
//************* 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 { /* sqlite3.c:146460:19: */
+func explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147521:19: */
i = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i)*2)))
if i == -2 {
- return ts + 21317 /* "<expr>" */
+ return ts + 21355 /* "<expr>" */
}
if i == -1 {
- return ts + 16115 /* "rowid" */
+ return ts + 16155 /* "rowid" */
}
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*24)).FzCnName
}
@@ -128338,39 +129140,39 @@ func explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) uintptr { /* s
// 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) { /* sqlite3.c:146475:13: */
+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: */
var i int32
if bAnd != 0 {
- Xsqlite3_str_append(tls, pStr, ts+21324, 5)
+ Xsqlite3_str_append(tls, pStr, ts+21362, 5)
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+21330, 1)
+ Xsqlite3_str_append(tls, pStr, ts+21368, 1)
}
for i = 0; i < nTerm; i++ {
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+12663, 1)
+ Xsqlite3_str_append(tls, pStr, ts+12685, 1)
}
Xsqlite3_str_appendall(tls, pStr, explainIndexColumnName(tls, pIdx, iTerm+i))
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+4880, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4889, 1)
}
Xsqlite3_str_append(tls, pStr, zOp, 1)
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+21330, 1)
+ Xsqlite3_str_append(tls, pStr, ts+21368, 1)
}
for i = 0; i < nTerm; i++ {
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+12663, 1)
+ Xsqlite3_str_append(tls, pStr, ts+12685, 1)
}
- Xsqlite3_str_append(tls, pStr, ts+4931, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4940, 1)
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+4880, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4889, 1)
}
}
@@ -128386,7 +129188,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) { /* sqlite3.c:146519:13: */
+func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147580:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -128399,29 +129201,29 @@ func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* sqlite3.
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+21332, 2)
+ Xsqlite3_str_append(tls, pStr, ts+21370, 2)
for i = 0; i < int32(nEq); i++ {
var z uintptr = explainIndexColumnName(tls, pIndex, i)
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+21324, 5)
+ Xsqlite3_str_append(tls, pStr, ts+21362, 5)
}
Xsqlite3_str_appendf(tls, pStr, func() uintptr {
if i >= int32(nSkip) {
- return ts + 21335 /* "%s=?" */
+ return ts + 21373 /* "%s=?" */
}
- return ts + 21340 /* "ANY(%s)" */
+ return ts + 21378 /* "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+21348)
+ explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */))), j, i, ts+21386)
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+21350)
+ explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */))), j, i, ts+21388)
}
- Xsqlite3_str_append(tls, pStr, ts+4880, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4889, 1)
}
// This function is a no-op unless currently processing an EXPLAIN QUERY PLAN
@@ -128431,9 +129233,9 @@ func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* sqlite3.
//
// 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 { /* sqlite3.c:146553:20: */
- bp := tls.Alloc(180)
- defer tls.Free(180)
+func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr, pLevel uintptr, wctrlFlags U16) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147614:20: */
+ bp := tls.Alloc(196)
+ defer tls.Free(196)
var ret int32 = 0
if int32((*Parse)(unsafe.Pointer(func() uintptr {
@@ -128449,9 +129251,9 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
var pLoop uintptr // The controlling WhereLoop object
var flags U32 // Flags that describe this loop
var zMsg uintptr // Text to add to EQP output
- // var str StrAccum at bp+48, 32
+ // var str StrAccum at bp+64, 32
// EQP output string
- // var zBuf [100]int8 at bp+80, 100
+ // var zBuf [100]int8 at bp+96, 100
// Initial space for EQP output string
pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
@@ -128464,13 +129266,13 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
flags&U32(WHERE_VIRTUALTABLE) == U32(0) && int32(*(*U16)(unsafe.Pointer(pLoop + 24))) > 0 ||
int32(wctrlFlags)&(WHERE_ORDERBY_MIN|WHERE_ORDERBY_MAX) != 0)
- Xsqlite3StrAccumInit(tls, bp+48, db, bp+80, int32(unsafe.Sizeof([100]int8{})), SQLITE_MAX_LENGTH)
- (*StrAccum)(unsafe.Pointer(bp + 48 /* &str */)).FprintfFlags = U8(SQLITE_PRINTF_INTERNAL)
- Xsqlite3_str_appendf(tls, bp+48, ts+21352, libc.VaList(bp, func() 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+21390, libc.VaList(bp, func() uintptr {
if isSearch != 0 {
- return ts + 21358 /* "SEARCH" */
+ return ts + 21396 /* "SEARCH" */
}
- return ts + 21365 /* "SCAN" */
+ return ts + 21403 /* "SCAN" */
}(), pItem))
if flags&U32(WHERE_IPK|WHERE_VIRTUALTABLE) == U32(0) {
var zFmt uintptr = uintptr(0)
@@ -128480,41 +129282,43 @@ 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 + 10817 /* "PRIMARY KEY" */
+ zFmt = ts + 10842 /* "PRIMARY KEY" */
}
} else if flags&U32(WHERE_PARTIALIDX) != 0 {
- zFmt = ts + 21370 /* "AUTOMATIC PARTIA..." */
+ zFmt = ts + 21408 /* "AUTOMATIC PARTIA..." */
} else if flags&U32(WHERE_AUTO_INDEX) != 0 {
- zFmt = ts + 21403 /* "AUTOMATIC COVERI..." */
+ zFmt = ts + 21441 /* "AUTOMATIC COVERI..." */
} else if flags&U32(WHERE_IDX_ONLY) != 0 {
- zFmt = ts + 21428 /* "COVERING INDEX %..." */
+ zFmt = ts + 21466 /* "COVERING INDEX %..." */
} else {
- zFmt = ts + 21446 /* "INDEX %s" */
+ zFmt = ts + 21484 /* "INDEX %s" */
}
if zFmt != 0 {
- Xsqlite3_str_append(tls, bp+48, ts+21455, 7)
- Xsqlite3_str_appendf(tls, bp+48, zFmt, libc.VaList(bp+16, (*Index)(unsafe.Pointer(pIdx)).FzName))
- explainIndexRange(tls, bp+48, pLoop)
+ Xsqlite3_str_append(tls, bp+64, ts+21493, 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 zRangeOp uintptr
+ var cRangeOp int8
+ var zRowid uintptr = ts + 16155 /* "rowid" */
+ Xsqlite3_str_appendf(tls, bp+64, ts+21501, libc.VaList(bp+24, zRowid))
if flags&U32(WHERE_COLUMN_EQ|WHERE_COLUMN_IN) != 0 {
- zRangeOp = ts + 21463 /* "=" */
+ cRangeOp = int8('=')
} else if flags&U32(WHERE_BOTH_LIMIT) == U32(WHERE_BOTH_LIMIT) {
- zRangeOp = ts + 21465 /* ">? AND rowid<" */
+ Xsqlite3_str_appendf(tls, bp+64, ts+21532, libc.VaList(bp+32, zRowid))
+ cRangeOp = int8('<')
} else if flags&U32(WHERE_BTM_LIMIT) != 0 {
- zRangeOp = ts + 21348 /* ">" */
+ cRangeOp = int8('>')
} else {
- zRangeOp = ts + 21350 /* "<" */
+ cRangeOp = int8('<')
}
- Xsqlite3_str_appendf(tls, bp+48,
- ts+21479, libc.VaList(bp+24, zRangeOp))
+ Xsqlite3_str_appendf(tls, bp+64, ts+21542, libc.VaList(bp+40, int32(cRangeOp)))
} else if flags&U32(WHERE_VIRTUALTABLE) != U32(0) {
- Xsqlite3_str_appendf(tls, bp+48, ts+21517,
- libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pLoop + 24)), *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.idxStr */))))
+ Xsqlite3_str_appendf(tls, bp+64, ts+21547,
+ libc.VaList(bp+48, *(*int32)(unsafe.Pointer(pLoop + 24)), *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */))))
}
- zMsg = Xsqlite3StrAccumFinish(tls, bp+48)
+ zMsg = Xsqlite3StrAccumFinish(tls, bp+64)
ret = Xsqlite3VdbeAddOp4(tls, v, OP_Explain, Xsqlite3VdbeCurrentAddr(tls, v),
(*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -7)
@@ -128522,6 +129326,57 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
return ret
}
+// Add a single OP_Explain opcode that describes a Bloom filter.
+//
+// Or if not processing EXPLAIN QUERY PLAN and not in a SQLITE_DEBUG and/or
+// SQLITE_ENABLE_STMT_SCANSTATUS build, then OP_Explain opcodes are not
+// required and this routine is a no-op.
+//
+// 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: */
+ 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 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
+ var i int32 // Loop counter
+ var pLoop uintptr // The where loop
+ // var str StrAccum at bp+24, 32
+ // EQP output string
+ // var zBuf [100]int8 at bp+56, 100
+ // Initial space for EQP output string
+
+ 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+21574, 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+21373, 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+21595, 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+21362, 5)
+ }
+ Xsqlite3_str_appendf(tls, bp+24, ts+21373, libc.VaList(bp+16, z))
+ }
+ }
+ Xsqlite3_str_append(tls, bp+24, ts+4889, 1)
+ zMsg = Xsqlite3StrAccumFinish(tls, bp+24)
+ ret = Xsqlite3VdbeAddOp4(tls, v, OP_Explain, Xsqlite3VdbeCurrentAddr(tls, v),
+ (*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -7)
+ return ret
+}
+
// Disable a term in the WHERE clause. Except, do not disable the term
// if it controls a LEFT OUTER JOIN and it did not originate in the ON
// or USING clause of that join.
@@ -128562,7 +129417,7 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
// 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) { /* sqlite3.c:146720:13: */
+func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147839:13: */
var nLoop int32 = 0
for int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_CODED == 0 &&
@@ -128595,7 +129450,7 @@ func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* sqlite3.c:14
//
// 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) { /* sqlite3.c:146758:13: */
+func codeApplyAffinity(tls *libc.TLS, pParse uintptr, base int32, n int32, zAff uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147877:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
if zAff == uintptr(0) {
@@ -128628,7 +129483,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) { /* sqlite3.c:146795:13: */
+func updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147914:13: */
var i int32
for i = 0; i < n; i++ {
var p uintptr = Xsqlite3VectorFieldSubexpr(tls, pRight, i)
@@ -128666,7 +129521,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 { /* sqlite3.c:146841:13: */
+func removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, pLoop uintptr, pX uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147960:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pNew uintptr
pNew = Xsqlite3ExprDup(tls, db, pX, 0)
@@ -128741,7 +129596,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 { /* sqlite3.c:146930:12: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -128813,19 +129668,19 @@ func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintp
return OP_Rewind
}(), *(*int32)(unsafe.Pointer(bp /* iTab */)), 0)
- *(*U32)(unsafe.Pointer(pLoop + 40)) |= U32(WHERE_IN_ABLE)
- if *(*int32)(unsafe.Pointer(pLevel + 56)) == 0 {
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_IN_ABLE)
+ if *(*int32)(unsafe.Pointer(pLevel + 64)) == 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 + 40)) |= U32(WHERE_IN_EARLYOUT)
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_IN_EARLYOUT)
}
- i = *(*int32)(unsafe.Pointer(pLevel + 56))
- *(*int32)(unsafe.Pointer(pLevel + 56)) += nEq
- *(*uintptr)(unsafe.Pointer(pLevel + 56 + 8 /* &.aInLoop */)) = Xsqlite3DbReallocOrFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(pLevel + 56 + 8 /* &.aInLoop */)),
- uint64(uint64(unsafe.Sizeof(InLoop{}))*uint64(*(*int32)(unsafe.Pointer(pLevel + 56)))))
- pIn = *(*uintptr)(unsafe.Pointer(pLevel + 56 + 8 /* &.aInLoop */))
+ 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 */))
if pIn != 0 {
var iMap int32 = 0 // Index in aiMap[]
pIn += 20 * uintptr(i)
@@ -128870,7 +129725,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 + 56)) = 0
+ *(*int32)(unsafe.Pointer(pLevel + 64)) = 0
}
Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, aiMap)
}
@@ -128934,7 +129789,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 { /* sqlite3.c:147126:12: */
+func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev int32, nExtraReg int32, pzAff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148245: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
@@ -128971,6 +129826,7 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in
}(), iIdxCur)
j = Xsqlite3VdbeAddOp0(tls, v, OP_Goto)
+
(*WhereLevel)(unsafe.Pointer(pLevel)).FaddrSkip = Xsqlite3VdbeAddOp4Int(tls, v, func() int32 {
if bRev != 0 {
return OP_SeekLT
@@ -129004,6 +129860,9 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in
Xsqlite3VdbeAddOp2(tls, v, OP_Copy, r1, regBase+j)
}
}
+ }
+ for j = int32(nSkip); j < int32(nEq); j++ {
+ pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8))
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 {
if (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_xIsSelect) != 0 {
// No affinity ever needs to be (or should be) applied to a value
@@ -129020,7 +129879,8 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in
Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regBase+j, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk)
}
- if int32((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed) == 0 && (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
+
if int32(Xsqlite3CompareAffinity(tls, pRight, *(*int8)(unsafe.Pointer(zAff + uintptr(j))))) == SQLITE_AFF_BLOB {
*(*int8)(unsafe.Pointer(zAff + uintptr(j))) = int8(SQLITE_AFF_BLOB)
}
@@ -129050,11 +129910,11 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in
// 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) { /* sqlite3.c:147499:13: */
+func codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32, iIdxCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148623: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+68, uint32(1), 0, 0x1)
+ 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 &&
(*Parse)(unsafe.Pointer(func() uintptr {
@@ -129091,7 +129951,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) { /* sqlite3.c:147543:13: */
+func codeExprOrVector(tls *libc.TLS, pParse uintptr, p uintptr, iReg int32, nReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148667:13: */
if p != 0 && Xsqlite3ExprIsVector(tls, p) != 0 {
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_xIsSelect) != U32(0) {
@@ -129119,10 +129979,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 /* sqlite3.c:147583:3 */
+type IdxExprTrans = IdxExprTrans1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148707:3 */
// Preserve pExpr on the WhereETrans list of the WhereInfo.
-func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* sqlite3.c:147588:13: */
+func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148712:13: */
var pNew uintptr
pNew = Xsqlite3DbMallocRaw(tls, (*IdxExprTrans)(unsafe.Pointer(pTrans)).Fdb, uint64(unsafe.Sizeof(WhereExprMod{})))
if pNew == uintptr(0) {
@@ -129139,9 +129999,10 @@ func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* sqlite3.c:1
//
// 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 { /* sqlite3.c:147604:12: */
+func whereIndexExprTransNode(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148728: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)
preserveExpr(tls, pX, pExpr)
(*Expr)(unsafe.Pointer(pExpr)).FaffExpr = Xsqlite3ExprAffinity(tls, pExpr)
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_COLUMN)
@@ -129159,7 +130020,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 { /* sqlite3.c:147626:12: */
+func whereIndexExprTransColumn(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148751: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 {
@@ -129181,7 +130042,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) { /* sqlite3.c:147651:13: */
+func whereIndexExprTrans(tls *libc.TLS, pIdx uintptr, iTabCur int32, iIdxCur int32, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148776:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -129246,7 +130107,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) { /* sqlite3.c:147715:13: */
+func whereApplyPartialIndexConstraints(tls *libc.TLS, pTruth uintptr, iTabCur int32, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148840:13: */
var i int32
var pTerm uintptr
for int32((*Expr)(unsafe.Pointer(pTruth)).Fop) == TK_AND {
@@ -129279,9 +130140,68 @@ __2:
__3:
}
+// This routine is called right after An OP_Filter has been generated and
+// before the corresponding index search has been performed. This routine
+// checks to see if there are additional Bloom filters in inner loops that
+// can be checked prior to doing the index lookup. If there are available
+// inner-loop Bloom filters, then evaluate those filters now, before the
+// index lookup. The idea is that a Bloom filter check is way faster than
+// an index lookup, and the Bloom filter might return false, meaning that
+// the index lookup can be skipped.
+//
+// We know that an inner loop uses a Bloom filter because it has the
+// 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: */
+ 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 pLoop uintptr = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
+ if (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter == 0 {
+ continue
+ }
+ if (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop)).FnSkip != 0 {
+ continue
+ }
+ // ,--- Because sqlite3ConstructBloomFilter() has will not have set
+ // vvvvv--' pLevel->regFilter if this were true.
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).Fprereq&notReady != 0 {
+ continue
+ }
+
+ (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk = addrNxt
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != 0 {
+ var pTerm uintptr = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm))
+ var regRowid int32
+
+ regRowid = Xsqlite3GetTempReg(tls, pParse)
+ regRowid = codeEqualityTerm(tls, pParse, pTerm, pLevel, 0, 0, regRowid)
+ Xsqlite3VdbeAddOp4Int(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter,
+ addrNxt, regRowid, 1)
+
+ } else {
+ var nEq U16 = *(*U16)(unsafe.Pointer(pLoop + 24))
+ var r1 int32
+ // var zStartAff uintptr at bp, 8
+
+ r1 = codeAllEqualityTerms(tls, pParse, pLevel, 0, 0, bp)
+ codeApplyAffinity(tls, pParse, r1, int32(nEq), *(*uintptr)(unsafe.Pointer(bp /* zStartAff */)))
+ Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(bp /* zStartAff */)))
+ Xsqlite3VdbeAddOp4Int(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter,
+ addrNxt, r1, int32(nEq))
+
+ }
+ (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter = 0
+ (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk = 0
+ }
+}
+
// 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 { /* sqlite3.c:147740:24: */
+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: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -129303,12 +130223,12 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
var pIdx uintptr = uintptr(0) // Index used by loop (if any)
var iLoop int32 // Iteration of constraint generator loop
- pWC = pWInfo + 104
+ pWC = pWInfo + 112
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
iCur = (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor
- (*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady = notReady & ^Xsqlite3WhereGetMask(tls, pWInfo+592, iCur)
+ (*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady = notReady & ^Xsqlite3WhereGetMask(tls, pWInfo+600, iCur)
bRev = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FrevMask >> iLevel & uint64(1))
// Create labels for the "break" and "continue" instructions
@@ -129335,9 +130255,9 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// 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+856 /* &.a */ +uintptr(j)*88)).FiLeftJoin == 0; j-- {
+ for j = iLevel; j > 0 && (*WhereLevel)(unsafe.Pointer(pWInfo+864 /* &.a */ +uintptr(j)*96)).FiLeftJoin == 0; j-- {
}
- addrHalt = (*WhereLevel)(unsafe.Pointer(pWInfo + 856 + uintptr(j)*88)).FaddrBrk
+ addrHalt = (*WhereLevel)(unsafe.Pointer(pWInfo + 864 + uintptr(j)*96)).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 {
@@ -129352,7 +130272,6 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
var iReg int32 // P3 Value for OP_VFilter
var addrNotFound int32
var nConstraint int32 = int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnLTerm)
- var iIn int32 // Counter for IN constraints
iReg = Xsqlite3GetTempRange(tls, pParse, nConstraint+2)
addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk
@@ -129363,29 +130282,47 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
continue
}
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 {
- codeEqualityTerm(tls, pParse, pTerm, pLevel, j, bRev, iTarget)
- addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt
+ 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 {
+
+ Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*Select)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpLimit)).FiOffset)
+
+ }
}
}
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 + 8 /* &.idxStr */)),
+ *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)),
func() int32 {
- if *(*U8)(unsafe.Pointer(pLoop + 24 + 4)) != 0 {
+ if U32(int32(*(*uint8)(unsafe.Pointer(pLoop + 24 + 4))&0x1>>0)) != 0 {
return -7
}
return -1
}())
- *(*U8)(unsafe.Pointer(pLoop + 24 + 4 /* &.needFree */)) = U8(0)
+ 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 + 8 /* &.idxStr */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)) = uintptr(0)
}
(*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur
(*WhereLevel)(unsafe.Pointer(pLevel)).Fop = func() uint8 {
@@ -129396,42 +130333,52 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}()
(*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v)
- if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_ABLE) != 0 {
- iIn = *(*int32)(unsafe.Pointer(pLevel + 56))
- } else {
- iIn = 0
- }
- for j = nConstraint - 1; j >= 0; j-- {
+ for j = 0; j < nConstraint; j++ {
pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8))
- if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 {
- iIn--
- }
- if j < 16 && int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 6)))>>j&1 != 0 {
+ if j < 16 && int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 8)))>>j&1 != 0 {
disableTerm(tls, pLevel, pTerm)
- } else if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 &&
- Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft) == 1 {
+ continue
+ }
+ 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 {
- if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
-
- pOp = Xsqlite3VdbeGetOp(tls, v, *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLevel + 56 + 8)) + uintptr(iIn)*20 + 4 /* &.addrInTop */)))
-
- Xsqlite3VdbeAddOp3(tls, v, int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode), (*VdbeOp)(unsafe.Pointer(pOp)).Fp1, (*VdbeOp)(unsafe.Pointer(pOp)).Fp2, (*VdbeOp)(unsafe.Pointer(pOp)).Fp3)
+ 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
+ }
}
// 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
+
+ if iFld > 0 {
- if pCompare != 0 {
- (*Expr)(unsafe.Pointer(pCompare)).FpLeft = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft
+ (*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
@@ -129439,8 +130386,8 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
pParse, pCompare, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont, SQLITE_JUMPIFNULL)
}
(*Expr)(unsafe.Pointer(pCompare)).FpLeft = uintptr(0)
- Xsqlite3ExprDelete(tls, db, pCompare)
}
+ Xsqlite3ExprDelete(tls, db, pCompare)
}
}
@@ -129465,6 +130412,12 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
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)
@@ -129746,6 +130699,12 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 1, regBignull)
}
+ if (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter != 0 {
+ Xsqlite3VdbeAddOp4Int(tls, v, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, addrNxt,
+ regBase, int32(nEq))
+
+ filterPullDown(tls, pParse, pWInfo, iLevel, addrNxt, notReady)
+ }
op = int32(aStartOp[start_constraints<<2+startEq<<1+bRev])
@@ -130014,7 +130973,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
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)*88)).FiFrom)*112, uint64(unsafe.Sizeof(SrcItem{})))
+ 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
@@ -130046,7 +131005,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
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 z
+ // 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.
//
@@ -130058,6 +131017,20 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// 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++ {
@@ -130066,13 +131039,15 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
continue
}
- if int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0 {
+ 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)
}
@@ -130089,7 +131064,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// 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+21544, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21603, 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 {
@@ -130108,15 +131083,15 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
pOrExpr = pAndExpr
}
// Loop through table entries that match term pOrTerm.
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21559, libc.VaList(bp, ii+1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21618, libc.VaList(bp, ii+1))
- pSubWInfo = Xsqlite3WhereBegin(tls, pParse, pOrTab, pOrExpr, uintptr(0), uintptr(0),
+ 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+856, uint16(0))
+ pParse, pOrTab, pSubWInfo+864, uint16(0))
_ = addrExplain
_ = addrExplain
@@ -130191,7 +131166,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// 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 + 68))&0x2>>1)) != 0 {
+ if uint32(int32(*(*uint8)(unsafe.Pointer(pSubWInfo + 76))&0x2>>1)) != 0 {
untestedTerms = 1
}
@@ -130206,7 +131181,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// 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 + 856)).FpWLoop
+ 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) &&
@@ -130217,7 +131192,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
pCov = uintptr(0)
}
if Xsqlite3WhereUsesDeferredSeek(tls, pSubWInfo) != 0 {
- libc.SetBitFieldPtr8Uint32(pWInfo+68, uint32(1), 0, 0x1)
+ libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 0, 0x1)
}
// Finish the loop through table entries that match term pOrTerm.
@@ -130229,7 +131204,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
Xsqlite3VdbeExplainPop(tls, pParse)
- *(*uintptr)(unsafe.Pointer(pLevel + 56)) = pCov
+ *(*uintptr)(unsafe.Pointer(pLevel + 64)) = pCov
if pCov != 0 {
(*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur = iCovCur
}
@@ -130282,7 +131257,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
return 2
}()
- for ok := true; ok; ok = iLoop > 0 {
+ 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
@@ -130299,7 +131274,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady != uint64(0) {
- libc.SetBitFieldPtr8Uint32(pWInfo+68, uint32(1), 1, 0x2)
+ libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 1, 0x2)
goto __2
}
pE = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr
@@ -130353,7 +131328,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// then we cannot use the "t1.a=t2.b" constraint, but we can code
// the implied "t1.a=123" constraint.
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa
- j = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm
+ j = (*WhereClause)(unsafe.Pointer(pWC)).FnBase
__4:
if !(j > 0) {
goto __6
@@ -130418,7 +131393,7 @@ __6:
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa
j = 0
__7:
- if !(j < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm) {
+ if !(j < (*WhereClause)(unsafe.Pointer(pWC)).FnBase) {
goto __9
}
{
@@ -130456,24 +131431,24 @@ 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)
-} /* sqlite3.c:148089:21 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:149307: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)
-} /* sqlite3.c:148099:21 */
-var aStep = [2]U8{U8(OP_Next), U8(OP_Prev)} /* sqlite3.c:148794:21 */
-var aStart = [2]U8{U8(OP_Rewind), U8(OP_Last)} /* sqlite3.c:148795:21 */
+} /* 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 */
// Deallocate all memory associated with a WhereOrInfo object.
-func whereOrInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:149004:13: */
+func whereOrInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150245: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) { /* sqlite3.c:149012:13: */
+func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150253:13: */
Xsqlite3WhereClauseClear(tls, p)
Xsqlite3DbFree(tls, db, p)
}
@@ -130495,7 +131470,7 @@ func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:149
// 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 { /* sqlite3.c:149036:12: */
+func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150277:12: */
var pTerm uintptr
var idx int32
@@ -130517,6 +131492,9 @@ func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32
(*WhereClause)(unsafe.Pointer(pWC)).FnSlot = int32(uint64(Xsqlite3DbMallocSize(tls, db, (*WhereClause)(unsafe.Pointer(pWC)).Fa)) / uint64(unsafe.Sizeof(WhereTerm{})))
}
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 {
+ (*WhereClause)(unsafe.Pointer(pWC)).FnBase = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm
+ }
if p != 0 && (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_Unlikely) != U32(0) {
(*WhereTerm)(unsafe.Pointer(pTerm)).FtruthProb = LogEst(int32(Xsqlite3LogEst(tls, uint64((*Expr)(unsafe.Pointer(p)).FiTable))) - 270)
} else {
@@ -130534,14 +131512,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 { /* sqlite3.c:149077:12: */
+func allowedOp(tls *libc.TLS, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150319: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 { /* sqlite3.c:149089:12: */
+func exprCommute(tls *libc.TLS, pParse uintptr, pExpr uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150331: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) {
@@ -130561,7 +131539,7 @@ func exprCommute(tls *libc.TLS, pParse uintptr, pExpr uintptr) U16 { /* sqlite3.
}
// Translate from TK_xx operator to WO_xx bitmask.
-func operatorMask(tls *libc.TLS, op int32) U16 { /* sqlite3.c:149112:12: */
+func operatorMask(tls *libc.TLS, op int32) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150354:12: */
var c U16
if op == TK_IN {
@@ -130588,7 +131566,7 @@ func operatorMask(tls *libc.TLS, op int32) U16 { /* sqlite3.c:149112:12: */
// 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 { /* sqlite3.c:149150:12: */
+func isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintptr, pisComplete uintptr, pnoCase uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150392:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -130760,7 +131738,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 { /* sqlite3.c:149329:12: */
+func isAuxiliaryVtabOperator(tls *libc.TLS, db uintptr, pExpr uintptr, peOp2 uintptr, ppLeft uintptr, ppRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150571:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -130865,26 +131843,26 @@ type Op2 = struct {
FzOp uintptr
FeOp2 uint8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:149337:18 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150579:18 */
var aOp = [4]Op2{
- {FzOp: ts + 15964, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)},
- {FzOp: ts + 15286, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)},
- {FzOp: ts + 14827, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)},
- {FzOp: ts + 21568, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)},
-} /* sqlite3.c:149340:7 */
+ {FzOp: ts + 16004, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)},
+ {FzOp: ts + 15326, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)},
+ {FzOp: ts + 14852, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)},
+ {FzOp: ts + 21627, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150582: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) { /* sqlite3.c:149441:13: */
+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)
- (*Expr)(unsafe.Pointer(pDerived)).FiRightJoinTable = (*Expr)(unsafe.Pointer(pBase)).FiRightJoinTable
+ *(*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) { /* sqlite3.c:149451:13: */
+func markTermAsChild(tls *libc.TLS, pWC uintptr, iChild int32, iParent int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150693: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++
@@ -130893,7 +131871,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 { /* sqlite3.c:149462:18: */
+func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150704:18: */
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator) != WO_AND {
if N == 0 {
return pTerm
@@ -130924,7 +131902,7 @@ func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* sqlite3
// The following is NOT generated:
//
// x<y OR x>y --> x!=y
-func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintptr, pTwo uintptr) { /* sqlite3.c:149492:13: */
+func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintptr, pTwo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150734: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
@@ -131057,7 +132035,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) { /* sqlite3.c:149619:13: */
+func exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150861: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
@@ -131129,7 +132107,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+592, (*WhereTerm)(unsafe.Pointer(pAndTerm)).FleftCursor)
+ b = b | Xsqlite3WhereGetMask(tls, pWInfo+600, (*WhereTerm)(unsafe.Pointer(pAndTerm)).FleftCursor)
}
}
@@ -131148,10 +132126,10 @@ __1:
// corresponding TERM_VIRTUAL term
} else {
var b Bitmask
- b = Xsqlite3WhereGetMask(tls, pWInfo+592, (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor)
+ b = Xsqlite3WhereGetMask(tls, pWInfo+600, (*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+592, (*WhereTerm)(unsafe.Pointer(pOther)).FleftCursor)
+ b = b | Xsqlite3WhereGetMask(tls, pWInfo+600, (*WhereTerm)(unsafe.Pointer(pOther)).FleftCursor)
}
indexable = indexable & b
if int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FeOperator)&WO_EQ == 0 {
@@ -131233,14 +132211,14 @@ __3:
}
{
- *(*U16)(unsafe.Pointer(pOrTerm + 18)) &= libc.Uint16FromInt32(libc.CplInt32(TERM_OR_OK))
+ *(*U16)(unsafe.Pointer(pOrTerm + 18)) &= libc.Uint16FromInt32(libc.CplInt32(TERM_OK))
if (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor == iCursor {
// This is the 2-bit case and we are on the second iteration and
// current term is from the first iteration. So skip this term.
goto __8
}
- if chngToIN&Xsqlite3WhereGetMask(tls, pWInfo+592,
+ if chngToIN&Xsqlite3WhereGetMask(tls, pWInfo+600,
(*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
@@ -131281,7 +132259,7 @@ __3:
{
if (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor != iCursor {
- *(*U16)(unsafe.Pointer(pOrTerm + 18)) &= libc.Uint16FromInt32(libc.CplInt32(TERM_OR_OK))
+ *(*U16)(unsafe.Pointer(pOrTerm + 18)) &= libc.Uint16FromInt32(libc.CplInt32(TERM_OK))
} else if *(*int32)(unsafe.Pointer(pOrTerm + 32)) != iColumn || iColumn == -2 &&
Xsqlite3ExprCompare(tls, pParse, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pOrTerm)).FpExpr)).FpLeft, pLeft, -1) != 0 {
okToChngToIN = 0
@@ -131296,7 +132274,7 @@ __3:
if affRight != 0 && affRight != affLeft {
okToChngToIN = 0
} else {
- *(*U16)(unsafe.Pointer(pOrTerm + 18)) |= U16(TERM_OR_OK)
+ *(*U16)(unsafe.Pointer(pOrTerm + 18)) |= U16(TERM_OK)
}
}
@@ -131326,7 +132304,7 @@ __3:
goto __15
}
{
- if int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FwtFlags)&TERM_OR_OK == 0 {
+ if int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FwtFlags)&TERM_OK == 0 {
goto __14
}
@@ -131376,7 +132354,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 { /* sqlite3.c:149893:12: */
+func termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151135:12: */
var aff1 int8
var aff2 int8
var pColl uintptr
@@ -131405,7 +132383,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 { /* sqlite3.c:149916:16: */
+func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151158:16: */
var mask Bitmask = uint64(0)
for pS != 0 {
var pSrc uintptr = (*Select)(unsafe.Pointer(pS)).FpSrc
@@ -131440,7 +132418,7 @@ func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* s
// 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 { /* sqlite3.c:149953:28: */
+func exprMightBeIndexed2(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151195:28: */
var pIdx uintptr
var i int32
var iCur int32
@@ -131478,7 +132456,7 @@ __3:
return 0
}
-func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr, op int32) int32 { /* sqlite3.c:149977:12: */
+func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151219: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.
@@ -131519,7 +132497,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) { /* sqlite3.c:150025:13: */
+func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151267:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -131542,10 +132520,13 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return
}
+
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxTerm)*56
- pMaskSet = pWInfo + 592
+ pMaskSet = pWInfo + 600
pExpr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr
+ // Because malloc() has not failed
+ (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).FbVarSelect = 0
prereqLeft = Xsqlite3WhereExprUsage(tls, pMaskSet, (*Expr)(unsafe.Pointer(pExpr)).FpLeft)
op = int32((*Expr)(unsafe.Pointer(pExpr)).Fop)
if op == TK_IN {
@@ -131558,23 +132539,28 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
} else {
(*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight = Xsqlite3WhereExprListUsage(tls, pMaskSet, *(*uintptr)(unsafe.Pointer(pExpr + 32)))
}
- } else if op == TK_ISNULL {
- (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight = uint64(0)
+ prereqAll = prereqLeft | (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight
} else {
(*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight = Xsqlite3WhereExprUsage(tls, pMaskSet, (*Expr)(unsafe.Pointer(pExpr)).FpRight)
+ if (*Expr)(unsafe.Pointer(pExpr)).FpLeft == uintptr(0) ||
+ (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_xIsSelect|EP_IfNullRow) != U32(0) ||
+ *(*uintptr)(unsafe.Pointer(pExpr + 32)) != uintptr(0) {
+ prereqAll = Xsqlite3WhereExprUsageNN(tls, pMaskSet, pExpr)
+ } else {
+ prereqAll = prereqLeft | (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight
+ }
}
- (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).FbVarSelect = 0
- prereqAll = Xsqlite3WhereExprUsageNN(tls, pMaskSet, pExpr)
if (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).FbVarSelect != 0 {
*(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_VARSELECT)
}
+
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) {
- var x Bitmask = Xsqlite3WhereGetMask(tls, pMaskSet, (*Expr)(unsafe.Pointer(pExpr)).FiRightJoinTable)
+ 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+21575, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21634, 0)
return
}
}
@@ -131655,7 +132641,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
0 == Xsqlite3ExprCanBeNull(tls, pLeft) {
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_TRUEFALSE)
- *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6625 /* "false" */
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6632 /* "false" */
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse)
(*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = uint64(0)
(*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(0)
@@ -131758,7 +132744,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
}
zCollSeqName = func() uintptr {
if *(*int32)(unsafe.Pointer(bp + 20)) != 0 {
- return ts + 21616 /* "NOCASE" */
+ return ts + 21675 /* "NOCASE" */
}
return uintptr(unsafe.Pointer(&Xsqlite3StrBINARY))
}()
@@ -131792,6 +132778,8 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
//
// This is only required if at least one side of the comparison operation
// is not a sub-select.
+ //
+ // tag-20220128a
if (int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_EQ || int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_IS) &&
libc.AssignInt32(&nLeft, Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft)) > 1 &&
Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer(pExpr)).FpRight) == nLeft &&
@@ -131807,7 +132795,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
pNew = Xsqlite3PExpr(tls, pParse, int32((*Expr)(unsafe.Pointer(pExpr)).Fop), pLeft, pRight)
transferJoinMarkings(tls, pNew, pExpr)
- idxNew = whereClauseInsert(tls, pWC, pNew, uint16(TERM_DYNAMIC))
+ idxNew = whereClauseInsert(tls, pWC, pNew, uint16(TERM_DYNAMIC|TERM_SLICE))
exprAnalyze(tls, pSrc, pWC, idxNew)
}
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxTerm)*56
@@ -131823,7 +132811,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
var i int32
for i = 0; i < Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft); i++ {
var idxNew int32
- idxNew = whereClauseInsert(tls, pWC, pExpr, uint16(TERM_VIRTUAL))
+ idxNew = whereClauseInsert(tls, pWC, pExpr, uint16(TERM_VIRTUAL|TERM_SLICE))
*(*int32)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxNew)*56 + 32 + 4 /* &.iField */)) = i + 1
exprAnalyze(tls, pSrc, pWC, idxNew)
markTermAsChild(tls, pWC, idxNew, idxTerm)
@@ -131846,7 +132834,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
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)
- (*Expr)(unsafe.Pointer(pNewExpr)).FiRightJoinTable = (*Expr)(unsafe.Pointer(pExpr)).FiRightJoinTable
+ *(*int32)(unsafe.Pointer(pNewExpr + 52)) = *(*int32)(unsafe.Pointer(pExpr + 52))
}
idxNew = whereClauseInsert(tls, pWC, pNewExpr, uint16(TERM_VIRTUAL|TERM_DYNAMIC))
@@ -131877,7 +132865,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
*(*Bitmask)(unsafe.Pointer(pTerm + 40)) |= extraRight
}
-var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* sqlite3.c:150177:21 */
+var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151436:21 */
// **************************************************************************
//
@@ -131900,7 +132888,7 @@ var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* sqlite3.c:150177:21 */
// 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) { /* sqlite3.c:150470:21: */
+func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151732:21: */
var pE2 uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
(*WhereClause)(unsafe.Pointer(pWC)).Fop = op
@@ -131915,12 +132903,123 @@ func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* s
}
}
+// Add either a LIMIT (if eMatchOp==SQLITE_INDEX_CONSTRAINT_LIMIT) or
+// OFFSET (if eMatchOp==SQLITE_INDEX_CONSTRAINT_OFFSET) term to the
+// where-clause passed as the first argument. The value for the term
+// is found in register iReg.
+//
+// In the common case where the value is a simple integer
+// (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: */
+ bp := tls.Alloc(4)
+ defer tls.Free(4)
+
+ var pParse uintptr = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse
+ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
+ var pNew uintptr
+ *(*int32)(unsafe.Pointer(bp /* iVal */)) = 0
+
+ if Xsqlite3ExprIsInteger(tls, pExpr, bp) != 0 && *(*int32)(unsafe.Pointer(bp)) >= 0 {
+ var pVal uintptr = Xsqlite3Expr(tls, db, TK_INTEGER, uintptr(0))
+ if pVal == uintptr(0) {
+ return
+ }
+ *(*U32)(unsafe.Pointer(pVal + 4)) |= U32(EP_IntValue)
+ *(*int32)(unsafe.Pointer(pVal + 8)) = *(*int32)(unsafe.Pointer(bp /* iVal */))
+ pNew = Xsqlite3PExpr(tls, pParse, TK_MATCH, uintptr(0), pVal)
+ } else {
+ var pVal uintptr = Xsqlite3Expr(tls, db, TK_REGISTER, uintptr(0))
+ if pVal == uintptr(0) {
+ return
+ }
+ (*Expr)(unsafe.Pointer(pVal)).FiTable = iReg
+ pNew = Xsqlite3PExpr(tls, pParse, TK_MATCH, uintptr(0), pVal)
+ }
+ if pNew != 0 {
+ var pTerm uintptr
+ var idx int32
+ idx = whereClauseInsert(tls, pWC, pNew, uint16(TERM_DYNAMIC|TERM_VIRTUAL))
+ pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idx)*56
+ (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor = iCsr
+ (*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(WO_AUX)
+ (*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp = U8(eMatchOp)
+ }
+}
+
+// Possibly add terms corresponding to the LIMIT and OFFSET clauses of the
+// SELECT statement passed as the second argument. These terms are only
+// added if:
+//
+// 1. The SELECT statement has a LIMIT clause, and
+// 2. The SELECT statement is not an aggregate or DISTINCT query, and
+// 3. The SELECT statement has exactly one object in its from clause, and
+// that object is a virtual table, and
+// 4. There are no terms in the WHERE clause that will not be passed
+// to the virtual table xBestIndex method.
+// 5. The ORDER BY clause, if any, will be made available to the xBestIndex
+// method.
+//
+// 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: */
+
+ if p != 0 && (*Select)(unsafe.Pointer(p)).FpLimit != 0 &&
+ (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct|SF_Aggregate) == U32(0) &&
+ ((*SrcList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc)).FnSrc == 1 && int32((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc+8)).FpTab)).FeTabType) == TABTYP_VTAB) {
+ var pOrderBy uintptr = (*Select)(unsafe.Pointer(p)).FpOrderBy
+ var iCsr int32 = (*SrcItem)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc + 8)).FiCursor
+ var ii int32
+
+ // Check condition (4). Return early if it is not met.
+ for ii = 0; ii < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm; ii++ {
+ if int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(ii)*56)).FwtFlags)&TERM_CODED != 0 {
+ // This term is a vector operation that has been decomposed into
+ // other, subsequent terms. It can be ignored. See tag-20220128a
+
+ continue
+ }
+ if (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(ii)*56)).FleftCursor != iCsr {
+ return
+ }
+ }
+
+ // Check condition (5). Return early if it is not met.
+ if pOrderBy != 0 {
+ for ii = 0; ii < (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr; ii++ {
+ var pExpr uintptr = (*ExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(ii)*32)).FpExpr
+ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN {
+ return
+ }
+ if (*Expr)(unsafe.Pointer(pExpr)).FiTable != iCsr {
+ return
+ }
+ if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(ii)*32)).FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 {
+ return
+ }
+ }
+ }
+
+ // All conditions are met. Add the terms to the where-clause object.
+
+ whereAddLimitExpr(tls, pWC, (*Select)(unsafe.Pointer(p)).FiLimit, (*Expr)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpLimit)).FpLeft,
+ iCsr, SQLITE_INDEX_CONSTRAINT_LIMIT)
+ if (*Select)(unsafe.Pointer(p)).FiOffset > 0 {
+ whereAddLimitExpr(tls, pWC, (*Select)(unsafe.Pointer(p)).FiOffset, (*Expr)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpLimit)).FpRight,
+ iCsr, SQLITE_INDEX_CONSTRAINT_OFFSET)
+ }
+ }
+}
+
// Initialize a preallocated WhereClause structure.
-func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* sqlite3.c:150486:21: */
+func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151855:21: */
(*WhereClause)(unsafe.Pointer(pWC)).FpWInfo = pWInfo
(*WhereClause)(unsafe.Pointer(pWC)).FhasOr = U8(0)
(*WhereClause)(unsafe.Pointer(pWC)).FpOuter = uintptr(0)
(*WhereClause)(unsafe.Pointer(pWC)).FnTerm = 0
+ (*WhereClause)(unsafe.Pointer(pWC)).FnBase = 0
(*WhereClause)(unsafe.Pointer(pWC)).FnSlot = int32(uint64(unsafe.Sizeof([8]WhereTerm{})) / uint64(unsafe.Sizeof(WhereTerm{})))
(*WhereClause)(unsafe.Pointer(pWC)).Fa = pWC + 40 /* &.aStatic */
}
@@ -131928,35 +133027,32 @@ func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* sq
// 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) { /* sqlite3.c:150503:21: */
- var i int32
- var a uintptr
+func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151873:21: */
var db uintptr = (*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse)).Fdb
- i = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm - 1
- a = (*WhereClause)(unsafe.Pointer(pWC)).Fa
-__1:
- if !(i >= 0) {
- goto __3
- }
- {
- if int32((*WhereTerm)(unsafe.Pointer(a)).FwtFlags)&TERM_DYNAMIC != 0 {
- Xsqlite3ExprDelete(tls, db, (*WhereTerm)(unsafe.Pointer(a)).FpExpr)
- }
- if int32((*WhereTerm)(unsafe.Pointer(a)).FwtFlags)&TERM_ORINFO != 0 {
- whereOrInfoDelete(tls, db, *(*uintptr)(unsafe.Pointer(a + 32)))
- } else if int32((*WhereTerm)(unsafe.Pointer(a)).FwtFlags)&TERM_ANDINFO != 0 {
- whereAndInfoDelete(tls, db, *(*uintptr)(unsafe.Pointer(a + 32)))
- }
+ if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 0 {
+ var a uintptr = (*WhereClause)(unsafe.Pointer(pWC)).Fa
+ var aLast uintptr = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr((*WhereClause)(unsafe.Pointer(pWC)).FnTerm-1)*56
+ for 1 != 0 {
+
+ if int32((*WhereTerm)(unsafe.Pointer(a)).FwtFlags)&TERM_DYNAMIC != 0 {
+ Xsqlite3ExprDelete(tls, db, (*WhereTerm)(unsafe.Pointer(a)).FpExpr)
+ }
+ if int32((*WhereTerm)(unsafe.Pointer(a)).FwtFlags)&(TERM_ORINFO|TERM_ANDINFO) != 0 {
+ if int32((*WhereTerm)(unsafe.Pointer(a)).FwtFlags)&TERM_ORINFO != 0 {
+
+ whereOrInfoDelete(tls, db, *(*uintptr)(unsafe.Pointer(a + 32)))
+ } else {
+
+ whereAndInfoDelete(tls, db, *(*uintptr)(unsafe.Pointer(a + 32)))
+ }
+ }
+ if a == aLast {
+ break
+ }
+ a += 56
+ }
}
- goto __2
-__2:
- i--
- a += 56
- goto __1
- goto __3
-__3:
- ;
if (*WhereClause)(unsafe.Pointer(pWC)).Fa != pWC+40 {
Xsqlite3DbFree(tls, db, (*WhereClause)(unsafe.Pointer(pWC)).Fa)
}
@@ -131965,14 +133061,34 @@ __3:
// These routines walk (recursively) an expression tree and generate
// a bitmask indicating which tables are used in that expression
// tree.
-func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:150528:24: */
+//
+// sqlite3WhereExprUsage(MaskSet, Expr) ->
+//
+// Return a Bitmask of all tables referenced by Expr. Expr can be
+// be NULL, in which case 0 is returned.
+//
+// sqlite3WhereExprUsageNN(MaskSet, Expr) ->
+//
+// Same as sqlite3WhereExprUsage() except that Expr must not be
+// NULL. The "NN" suffix on the name stands for "Not Null".
+//
+// sqlite3WhereExprListUsage(MaskSet, ExprList) ->
+//
+// Return a Bitmask of all tables referenced by every expression
+// in the expression list ExprList. ExprList can be NULL, in which
+// case 0 is returned.
+//
+// sqlite3WhereExprUsageFull(MaskSet, ExprList) ->
+//
+// Internal use only. Called only by sqlite3WhereExprUsageNN() for
+// complex expressions that require pushing register values onto
+// the stack. Many calls to sqlite3WhereExprUsageNN() do not need
+// the more complex analysis done by this routine. Hence, the
+// computations done by this routine are broken out into a separate
+// "no-inline" function to avoid the stack push overhead in the
+// common case where it is not needed.
+func sqlite3WhereExprUsageFull(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151941:32: */
var mask Bitmask
- 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) {
-
- return uint64(0)
- }
if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_IF_NULL_ROW {
mask = Xsqlite3WhereGetMask(tls, pMaskSet, (*Expr)(unsafe.Pointer(p)).FiTable)
} else {
@@ -132001,14 +133117,24 @@ func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmas
return mask
}
-func Xsqlite3WhereExprUsage(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:150557:24: */
+func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151967: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) {
+
+ return uint64(0)
+ }
+ return sqlite3WhereExprUsageFull(tls, pMaskSet, p)
+}
+
+func Xsqlite3WhereExprUsage(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151976:24: */
if p != 0 {
return Xsqlite3WhereExprUsageNN(tls, pMaskSet, p)
}
return uint64(0)
}
-func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) Bitmask { /* sqlite3.c:150560:24: */
+func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151979:24: */
var i int32
var mask Bitmask = uint64(0)
if pList != 0 {
@@ -132025,7 +133151,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) { /* sqlite3.c:150580:21: */
+func Xsqlite3WhereExprAnalyze(tls *libc.TLS, pTabList uintptr, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151999:21: */
var i int32
for i = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm - 1; i >= 0; i-- {
exprAnalyze(tls, pTabList, pWC, i)
@@ -132037,7 +133163,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) { /* sqlite3.c:150597:21: */
+func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152016:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -132062,7 +133188,7 @@ func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC
k++
}
if k >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) {
- Xsqlite3ErrorMsg(tls, pParse, ts+21623,
+ Xsqlite3ErrorMsg(tls, pParse, ts+21682,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, j))
return
}
@@ -132074,6 +133200,7 @@ 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)
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)
@@ -132113,9 +133240,14 @@ func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC
// next. As long as allocateIndexInfo() and sqlite3_vtab_collation()
// agree on the structure, all will be well.
type HiddenIndexInfo1 = struct {
- FpWC uintptr
- FpParse uintptr
-} /* sqlite3.c:150668:9 */
+ FpWC uintptr
+ FpParse uintptr
+ FeDistinct int32
+ FmIn U32
+ FmHandleIn U32
+ F__ccgo_pad1 [4]byte
+ FaRhs [1]uintptr
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152088:9 */
//************* End of whereexpr.c ******************************************
//************* Begin file where.c ******************************************
@@ -132145,16 +133277,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 /* sqlite3.c:150668:32 */
+type HiddenIndexInfo = HiddenIndexInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152088:32 */
// Return the estimated number of output rows from a WHERE clause
-func Xsqlite3WhereOutputRowCount(tls *libc.TLS, pWInfo uintptr) LogEst { /* sqlite3.c:150680:23: */
+func Xsqlite3WhereOutputRowCount(tls *libc.TLS, pWInfo uintptr) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152106: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 { /* sqlite3.c:150688:20: */
+func Xsqlite3WhereIsDistinct(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152114:20: */
return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct)
}
@@ -132164,7 +133296,7 @@ func Xsqlite3WhereIsDistinct(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c
// 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 { /* sqlite3.c:150700:20: */
+func Xsqlite3WhereIsOrdered(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152126:20: */
return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat)
}
@@ -132189,14 +133321,14 @@ func Xsqlite3WhereIsOrdered(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:
// 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 { /* sqlite3.c:150727:20: */
+func Xsqlite3WhereOrderByLimitOptLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152153:20: */
var pInner uintptr
- if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 68))&0x4>>2) != 0) {
+ 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 + 856 + uintptr(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1)*88
+ pInner = pWInfo + 864 + uintptr(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1)*96
return (*WhereLevel)(unsafe.Pointer(pInner)).FaddrNxt
}
@@ -132210,17 +133342,17 @@ 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) { /* sqlite3.c:150750:21: */
+func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152176:21: */
var pInner uintptr
var i int32
- if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 68))&0x4>>2) != 0) {
+ if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 76))&0x4>>2) != 0) {
return
}
if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat) == 0 {
return
}
for i = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - 1; i >= 0; i-- {
- pInner = pWInfo + 856 + uintptr(i)*88
+ pInner = pWInfo + 864 + uintptr(i)*96
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
@@ -132231,14 +133363,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 { /* sqlite3.c:150769:20: */
+func Xsqlite3WhereContinueLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152195: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 { /* sqlite3.c:150778:20: */
+func Xsqlite3WhereBreakLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152204:20: */
return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak
}
@@ -132257,19 +133389,19 @@ func Xsqlite3WhereBreakLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c
//
// 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 { /* sqlite3.c:150799:20: */
- libc.Xmemcpy(tls, aiCur, pWInfo+40, uint64(unsafe.Sizeof(int32(0)))*uint64(2))
+func Xsqlite3WhereOkOnePass(tls *libc.TLS, pWInfo uintptr, aiCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152225: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 { /* sqlite3.c:150815:20: */
- return int32(*(*uint8)(unsafe.Pointer(pWInfo + 68)) & 0x1 >> 0)
+func Xsqlite3WhereUsesDeferredSeek(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152241: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) { /* sqlite3.c:150822:13: */
+func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152248: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{})))
}
@@ -132279,7 +133411,7 @@ func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* sqlite3.c:1508
// 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 { /* sqlite3.c:150834:12: */
+func whereOrInsert(tls *libc.TLS, pSet uintptr, prereq Bitmask, rRun LogEst, nOut LogEst) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152260:12: */
var i U16
var p uintptr
i = (*WhereOrSet)(unsafe.Pointer(pSet)).Fn
@@ -132356,10 +133488,13 @@ __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 { /* sqlite3.c:150871:24: */
+func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152297:24: */
var i int32
- for i = 0; i < (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).Fn; i++ {
+ if *(*int32)(unsafe.Pointer(pMaskSet + 8)) == iCursor {
+ return uint64(1)
+ }
+ for i = 1; i < (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).Fn; i++ {
if *(*int32)(unsafe.Pointer(pMaskSet + 8 + uintptr(i)*4)) == iCursor {
return Bitmask(uint64(1)) << i
}
@@ -132373,14 +133508,14 @@ func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmas
// 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) { /* sqlite3.c:150890:13: */
+func createMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152321: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 { /* sqlite3.c:150899:13: */
+func whereRightSubexprIsColumn(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152330: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
@@ -132391,7 +133526,7 @@ func whereRightSubexprIsColumn(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:
// 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 { /* sqlite3.c:150912:18: */
+func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152343: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
@@ -132404,7 +133539,7 @@ func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* sqlite3.c:150912:1
iColumn = *(*I16)(unsafe.Pointer(pScan + 88 + uintptr(int32((*WhereScan)(unsafe.Pointer(pScan)).FiEquiv)-1)*2))
iCur = *(*int32)(unsafe.Pointer(pScan + 44 + uintptr(int32((*WhereScan)(unsafe.Pointer(pScan)).FiEquiv)-1)*4))
- for ok := true; ok; ok = pWC != uintptr(0) {
+ for __ccgo := true; __ccgo; __ccgo = pWC != uintptr(0) {
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(k)*56
__1:
if !(k < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm) {
@@ -132495,7 +133630,7 @@ func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* sqlite3.c:150912:1
// 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 { /* sqlite3.c:151014:34: */
+func whereScanInitIndexExpr(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152445:34: */
(*WhereScan)(unsafe.Pointer(pScan)).Fidxaff = Xsqlite3ExprAffinity(tls, (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr)
return whereScanNext(tls, pScan)
}
@@ -132517,7 +133652,7 @@ func whereScanInitIndexExpr(tls *libc.TLS, pScan uintptr) uintptr { /* sqlite3.c
//
// 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 { /* sqlite3.c:151038:18: */
+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: */
(*WhereScan)(unsafe.Pointer(pScan)).FpOrigWC = pWC
(*WhereScan)(unsafe.Pointer(pScan)).FpWC = pWC
(*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr = uintptr(0)
@@ -132531,16 +133666,16 @@ func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColum
if pIdx != 0 {
var j int32 = iColumn
iColumn = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j)*2)))
- if iColumn == -2 {
- (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr = (*ExprList_item)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaColExpr + 8 + uintptr(j)*32)).FpExpr
- (*WhereScan)(unsafe.Pointer(pScan)).FzCollName = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(j)*8))
- *(*I16)(unsafe.Pointer(pScan + 88)) = int16(-2)
- return whereScanInitIndexExpr(tls, pScan)
- } else if iColumn == int32((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FiPKey) {
+ if iColumn == int32((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FiPKey) {
iColumn = -1
} else if iColumn >= 0 {
(*WhereScan)(unsafe.Pointer(pScan)).Fidxaff = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(iColumn)*24)).Faffinity
(*WhereScan)(unsafe.Pointer(pScan)).FzCollName = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(j)*8))
+ } else if iColumn == -2 {
+ (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr = (*ExprList_item)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaColExpr + 8 + uintptr(j)*32)).FpExpr
+ (*WhereScan)(unsafe.Pointer(pScan)).FzCollName = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(j)*8))
+ *(*I16)(unsafe.Pointer(pScan + 88)) = int16(-2)
+ return whereScanInitIndexExpr(tls, pScan)
}
} else if iColumn == -2 {
return uintptr(0)
@@ -132572,7 +133707,7 @@ func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColum
// the form "X <op> Y" where Y is a column in another table if no terms of
// the form "X <op> <const-expr>" exist. If no terms with a constant RHS
// exist, try to return a term that does not use WO_EQUIV.
-func Xsqlite3WhereFindTerm(tls *libc.TLS, pWC uintptr, iCur int32, iColumn int32, notReady Bitmask, op U32, pIdx uintptr) uintptr { /* sqlite3.c:151102:26: */
+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: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -132602,7 +133737,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 { /* sqlite3.c:151136:12: */
+func findIndexCol(tls *libc.TLS, pParse uintptr, pList uintptr, iBase int32, pIdx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152567:12: */
var i int32
var zColl uintptr = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(iCol)*8))
@@ -132623,7 +133758,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 { /* sqlite3.c:151166:12: */
+func indexColumnNotNull(tls *libc.TLS, pIdx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152597:12: */
var j int32
j = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2)))
@@ -132644,7 +133779,7 @@ func indexColumnNotNull(tls *libc.TLS, pIdx uintptr, iCol int32) int32 { /* sqli
//
// 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 { /* sqlite3.c:151189:12: */
+func isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC uintptr, pDistinct uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152620:12: */
var pTab uintptr
var pIdx uintptr
var i int32
@@ -132714,7 +133849,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 { /* sqlite3.c:151253:15: */
+func estLog(tls *libc.TLS, N LogEst) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152684:15: */
if int32(N) <= 10 {
return int16(0)
}
@@ -132731,7 +133866,7 @@ func estLog(tls *libc.TLS, N LogEst) LogEst { /* sqlite3.c:151253:15: */
// 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) { /* sqlite3.c:151269:13: */
+func translateColumnToCopy(tls *libc.TLS, pParse uintptr, iStart int32, iTabCur int32, iRegister int32, iAutoidxCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152700:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var pOp uintptr = Xsqlite3VdbeGetOp(tls, v, iStart)
var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v)
@@ -132774,7 +133909,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 { /* sqlite3.c:151351:12: */
+func termCanDriveIndex(tls *libc.TLS, pTerm uintptr, pSrc uintptr, notReady Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152784:12: */
var aff int8
if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
return 0
@@ -132808,7 +133943,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) { /* sqlite3.c:151385:13: */
+func constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, pSrc uintptr, notReady Bitmask, pLevel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152818:29: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -132867,11 +134002,11 @@ __1:
goto __3
}
pExpr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr
- // table of a LEFT JOIN
- if !((*WhereLoop)(unsafe.Pointer(pLoop)).Fprereq == uint64(0) &&
- int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VIRTUAL == 0 &&
- !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) &&
- Xsqlite3ExprIsTableConstant(tls, pExpr, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor) != 0) {
+ // Make the automatic index a partial index if there are terms in the
+ // WHERE clause (or the ON clause of a LEFT join) that constrain which
+ // rows of the target table (pSrc) that can be used.
+ if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VIRTUAL == 0 &&
+ Xsqlite3ExprIsTableConstraint(tls, pExpr, pSrc) != 0) {
goto __4
}
pPartial = Xsqlite3ExprAnd(tls, pParse, pPartial,
@@ -132893,7 +134028,7 @@ __4:
goto __6
}
Xsqlite3_log(tls, SQLITE_WARNING|int32(1)<<8,
- ts+21659, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName,
+ ts+21718, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName,
(*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTable)).FaCol+uintptr(iCol)*24)).FzCnName))
sentWarning = U8(1)
__6:
@@ -132921,7 +134056,7 @@ __2:
__3:
;
- *(*U16)(unsafe.Pointer(pLoop + 24)) = libc.AssignPtrUint16(pLoop+44, U16(nKeyCol))
+ *(*U16)(unsafe.Pointer(pLoop + 24)) = libc.AssignPtrUint16(pLoop+60, U16(nKeyCol))
(*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags = U32(WHERE_COLUMN_EQ | WHERE_IDX_ONLY | WHERE_INDEXED |
WHERE_AUTO_INDEX)
@@ -132974,7 +134109,7 @@ __13:
__14:
;
*(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) = pIdx
- (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 21685 /* "auto-index" */
+ (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 21744 /* "auto-index" */
(*Index)(unsafe.Pointer(pIdx)).FpTable = pTable
n = 0
idxCols = uint64(0)
@@ -133073,42 +134208,57 @@ __24:
Xsqlite3VdbeAddOp2(tls, v, OP_OpenAutoindex, (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur, nKeyCol+1)
Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pIdx)
+ if !((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FdbOptFlags&U32(SQLITE_BloomFilter) == U32(0)) {
+ goto __28
+ }
+ (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
+ Xsqlite3VdbeAddOp2(tls, v, OP_Blob, 10000, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter)
+__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) {
- goto __28
+ goto __29
}
regYield = (*SrcItem)(unsafe.Pointer(pTabItem)).FregReturn
addrCounter = Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, 0)
Xsqlite3VdbeAddOp3(tls, v, OP_InitCoroutine, regYield, 0, (*SrcItem)(unsafe.Pointer(pTabItem)).FaddrFillSub)
addrTop = Xsqlite3VdbeAddOp1(tls, v, OP_Yield, regYield)
- goto __29
-__28:
- addrTop = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur)
+ goto __30
__29:
+ addrTop = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur)
+__30:
;
if !(pPartial != 0) {
- goto __30
+ goto __31
}
iContinue = Xsqlite3VdbeMakeLabel(tls, pParse)
Xsqlite3ExprIfFalse(tls, pParse, pPartial, iContinue, SQLITE_JUMPIFNULL)
- *(*U32)(unsafe.Pointer(pLoop + 40)) |= U32(WHERE_PARTIALIDX)
-__30:
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_PARTIALIDX)
+__31:
;
regRecord = Xsqlite3GetTempReg(tls, pParse)
regBase = Xsqlite3GenerateIndexKey(tls,
pParse, pIdx, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, regRecord, 0, uintptr(0), uintptr(0), 0)
+ if !((*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter != 0) {
+ goto __32
+ }
+ Xsqlite3VdbeAddOp4Int(tls, v, OP_FilterAdd, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, 0,
+ regBase, int32(*(*U16)(unsafe.Pointer(pLoop + 24))))
+__32:
+ ;
Xsqlite3VdbeAddOp2(tls, v, OP_IdxInsert, (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur, regRecord)
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_USESEEKRESULT))
if !(pPartial != 0) {
- goto __31
+ goto __33
}
Xsqlite3VdbeResolveLabel(tls, v, iContinue)
-__31:
+__33:
;
if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x10>>4)) != 0) {
- goto __32
+ goto __34
}
Xsqlite3VdbeChangeP2(tls, v, addrCounter, regBase+n)
@@ -133116,11 +134266,11 @@ __31:
(*SrcItem)(unsafe.Pointer(pTabItem)).FregResult, (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur)
Xsqlite3VdbeGoto(tls, v, addrTop)
libc.SetBitFieldPtr16Uint32(pTabItem+60+4, uint32(0), 4, 0x10)
- goto __33
-__32:
+ goto __35
+__34:
Xsqlite3VdbeAddOp2(tls, v, OP_Next, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, addrTop+1)
Xsqlite3VdbeChangeP5(tls, v, uint16(SQLITE_STMTSTATUS_AUTOINDEX))
-__33:
+__35:
;
Xsqlite3VdbeJumpHere(tls, v, addrTop)
Xsqlite3ReleaseTempReg(tls, pParse, regRecord)
@@ -133132,13 +134282,134 @@ end_auto_index_create:
Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pPartial)
}
+// Generate bytecode that will initialize a Bloom filter that is appropriate
+// for pLevel.
+//
+// If there are inner loops within pLevel that have the WHERE_BLOOMFILTER
+// flag set, initialize a Bloomfilter for them as well. Except don't do
+// this recursive initialization if the SQLITE_BloomPulldown optimization has
+// been turned off.
+//
+// When the Bloom filter is initialized, the WHERE_BLOOMFILTER flag is cleared
+// from the loop, but the regFilter value is set to a register that implements
+// the Bloom filter. When regFilter is positive, the
+// sqlite3WhereCodeOneLoopStart() will generate code to test the Bloom filter
+// and skip the subsequence B-Tree seek if the Bloom filter indicates that
+// no matching rows exist.
+//
+// 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: */
+ var addrOnce int32 // Address of opening OP_Once
+ var addrTop int32 // Address of OP_Rewind
+ var addrCont int32 // Jump here to skip a row
+ var pTerm uintptr // For looping over WHERE clause terms
+ var pWCEnd uintptr // Last WHERE clause term
+ var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse // Parsing context
+ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // VDBE under construction
+ var pLoop uintptr = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop // The loop being coded
+ var iCur int32 // Cursor for table getting the filter
+
+ addrOnce = Xsqlite3VdbeAddOp0(tls, v, OP_Once)
+ for __ccgo := true; __ccgo; __ccgo = iLevel < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) {
+ var pItem uintptr
+ var pTab uintptr
+ var sz U64
+ Xsqlite3WhereExplainBloomFilter(tls, pParse, pWInfo, pLevel)
+ addrCont = Xsqlite3VdbeMakeLabel(tls, pParse)
+ iCur = (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur
+ (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
+
+ // The Bloom filter is a Blob held in a register. Initialize it
+ // to zero-filled blob of at least 80K bits, but maybe more if the
+ // estimated size of the table is larger. We could actually
+ // measure the size of the table at run-time using OP_Count with
+ // 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
+
+ pTab = (*SrcItem)(unsafe.Pointer(pItem)).FpTab
+
+ sz = Xsqlite3LogEstToInt(tls, (*Table)(unsafe.Pointer(pTab)).FnRowLogEst)
+ if sz < uint64(10000) {
+ sz = uint64(10000)
+ } else if sz > uint64(10000000) {
+ sz = uint64(10000000)
+ }
+ Xsqlite3VdbeAddOp2(tls, v, OP_Blob, int32(sz), (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter)
+
+ addrTop = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, iCur)
+ pWCEnd = (*WhereInfo)(unsafe.Pointer(pWInfo)).FsWC.Fa + uintptr((*WhereInfo)(unsafe.Pointer(pWInfo)).FsWC.FnTerm)*56
+ for pTerm = (*WhereInfo)(unsafe.Pointer(pWInfo)).FsWC.Fa; pTerm < pWCEnd; pTerm += 56 {
+ var pExpr uintptr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr
+ if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VIRTUAL == 0 &&
+ Xsqlite3ExprIsTableConstraint(tls, pExpr, pItem) != 0 {
+ Xsqlite3ExprIfFalse(tls, pParse, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, addrCont, SQLITE_JUMPIFNULL)
+ }
+ }
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != 0 {
+ var r1 int32 = Xsqlite3GetTempReg(tls, pParse)
+ Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, iCur, r1)
+ Xsqlite3VdbeAddOp4Int(tls, v, OP_FilterAdd, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, 0, r1, 1)
+ Xsqlite3ReleaseTempReg(tls, pParse, r1)
+ } else {
+ var pIdx uintptr = *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */))
+ var n int32 = int32(*(*U16)(unsafe.Pointer(pLoop + 24)))
+ var r1 int32 = Xsqlite3GetTempRange(tls, pParse, n)
+ var jj int32
+ for jj = 0; jj < n; jj++ {
+ var iCol int32 = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(jj)*2)))
+
+ Xsqlite3ExprCodeGetColumnOfTable(tls, v, (*Index)(unsafe.Pointer(pIdx)).FpTable, iCur, iCol, r1+jj)
+ }
+ Xsqlite3VdbeAddOp4Int(tls, v, OP_FilterAdd, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, 0, r1, n)
+ Xsqlite3ReleaseTempRange(tls, pParse, r1, n)
+ }
+ Xsqlite3VdbeResolveLabel(tls, v, addrCont)
+ Xsqlite3VdbeAddOp2(tls, v, OP_Next, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, addrTop+1)
+
+ Xsqlite3VdbeJumpHere(tls, v, addrTop)
+ *(*U32)(unsafe.Pointer(pLoop + 56)) &= libc.Uint32FromInt32(libc.CplInt32(WHERE_BLOOMFILTER))
+ if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FdbOptFlags&U32(SQLITE_BloomPulldown) != U32(0) {
+ break
+ }
+ 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 {
+ continue
+ }
+ pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
+ if pLoop == uintptr(0) {
+ continue
+ }
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).Fprereq&notReady != 0 {
+ continue
+ }
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BLOOMFILTER|WHERE_COLUMN_IN) ==
+ U32(WHERE_BLOOMFILTER) {
+ // This is a candidate for bloom-filter pull-down (early evaluation).
+ // The test that WHERE_COLUMN_IN is omitted is important, as we are
+ // not able to do early evaluation of bloom filters that make use of
+ // the IN operator
+ break
+ }
+ }
+ }
+ Xsqlite3VdbeJumpHere(tls, v, addrOnce)
+}
+
// 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 sqlite3_free().
-func allocateIndexInfo(tls *libc.TLS, pParse uintptr, pWC uintptr, mUnusable Bitmask, pSrc uintptr, pOrderBy uintptr, pmNoOmit uintptr) uintptr { /* sqlite3.c:151598:27: */
+// 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: */
var i int32
var j int32
var nTerm int32
+ var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse
var pIdxCons uintptr
var pIdxOrderBy uintptr
var pUsage uintptr
@@ -133147,9 +134418,15 @@ func allocateIndexInfo(tls *libc.TLS, pParse uintptr, pWC uintptr, mUnusable Bit
var nOrderBy int32
var pIdxInfo uintptr
var mNoOmit U16 = U16(0)
+ var pTab uintptr
+ var eDistinct int32 = 0
+ var pOrderBy uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy
+
+ pTab = (*SrcItem)(unsafe.Pointer(pSrc)).FpTab
- // Count the number of possible WHERE clause constraints referring
- // to this virtual table
+ // Find all WHERE clause constraints referring to this virtual table.
+ // Mark each term with the TERM_OK flag. Set nTerm to the number of
+ // terms found.
i = libc.AssignInt32(&nTerm, 0)
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa
__1:
@@ -133157,6 +134434,7 @@ __1:
goto __3
}
{
+ *(*U16)(unsafe.Pointer(pTerm + 18)) &= libc.Uint16FromInt32(libc.CplInt32(TERM_OK))
if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
goto __2
}
@@ -133171,7 +134449,15 @@ __1:
goto __2
}
+ // tag-20191211-002: WHERE-clause constraints are not useful to the
+ // right-hand table of a LEFT 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
+ }
nTerm++
+ *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_OK)
}
goto __2
@@ -133191,36 +134477,75 @@ __3:
var n int32 = (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr
for i = 0; i < n; i++ {
var pExpr uintptr = (*ExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32)).FpExpr
- if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN || (*Expr)(unsafe.Pointer(pExpr)).FiTable != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
- break
+ var pE2 uintptr
+
+ // Skip over constant terms in the ORDER BY clause
+ if Xsqlite3ExprIsConstant(tls, pExpr) != 0 {
+ continue
}
+
+ // 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 {
break
}
+
+ // First case - a direct column references without a COLLATE operator
+ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
+
+ continue
+ }
+
+ // 2nd case - a column reference with a COLLATE operator. Only match
+ // of the COLLATE operator matches the collation of the column.
+ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLLATE &&
+ int32((*Expr)(unsafe.Pointer(libc.AssignUintptr(&pE2, (*Expr)(unsafe.Pointer(pExpr)).FpLeft))).Fop) == TK_COLUMN &&
+ (*Expr)(unsafe.Pointer(pE2)).FiTable == (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
+ var zColl uintptr // The collating sequence name
+
+ (*Expr)(unsafe.Pointer(pExpr)).FiColumn = (*Expr)(unsafe.Pointer(pE2)).FiColumn
+ if int32((*Expr)(unsafe.Pointer(pE2)).FiColumn) < 0 {
+ continue
+ } // Collseq does not matter for rowid
+ zColl = Xsqlite3ColumnColl(tls, (*Table)(unsafe.Pointer(pTab)).FaCol+uintptr((*Expr)(unsafe.Pointer(pE2)).FiColumn)*24)
+ if zColl == uintptr(0) {
+ zColl = uintptr(unsafe.Pointer(&Xsqlite3StrBINARY))
+ }
+ if Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(pExpr + 8)), zColl) == 0 {
+ continue
+ }
+ }
+
+ // No matches cause a break out of the loop
+ break
}
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)
+ }
}
}
// Allocate the sqlite3_index_info structure
pIdxInfo = Xsqlite3DbMallocZero(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(uint64(unsafe.Sizeof(Sqlite3_index_info{}))+
(uint64(unsafe.Sizeof(sqlite3_index_constraint{}))+uint64(unsafe.Sizeof(sqlite3_index_constraint_usage{})))*uint64(nTerm)+
- uint64(unsafe.Sizeof(sqlite3_index_orderby{}))*uint64(nOrderBy)+uint64(unsafe.Sizeof(HiddenIndexInfo1{}))))
+ uint64(unsafe.Sizeof(sqlite3_index_orderby{}))*uint64(nOrderBy)+uint64(unsafe.Sizeof(HiddenIndexInfo1{}))+
+ uint64(unsafe.Sizeof(uintptr(0)))*uint64(nTerm)))
if pIdxInfo == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+6031, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+1451, 0)
return uintptr(0)
}
pHidden = pIdxInfo + 1*96
- pIdxCons = pHidden + 1*16
+ pIdxCons = pHidden + 32 + uintptr(nTerm)*8
pIdxOrderBy = pIdxCons + uintptr(nTerm)*12
pUsage = pIdxOrderBy + uintptr(nOrderBy)*8
- (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnOrderBy = nOrderBy
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint = pIdxCons
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaOrderBy = pIdxOrderBy
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage = pUsage
(*HiddenIndexInfo1)(unsafe.Pointer(pHidden)).FpWC = pWC
(*HiddenIndexInfo1)(unsafe.Pointer(pHidden)).FpParse = pParse
+ (*HiddenIndexInfo1)(unsafe.Pointer(pHidden)).FeDistinct = eDistinct
+ (*HiddenIndexInfo1)(unsafe.Pointer(pHidden)).FmIn = U32(0)
i = libc.AssignInt32(&j, 0)
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa
__4:
@@ -133229,32 +134554,21 @@ __4:
}
{
var op U16
- if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
- goto __5
- }
- if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight&mUnusable != 0 {
- goto __5
- }
-
- if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&libc.CplInt32(WO_EQUIV) == 0 {
- goto __5
- }
- if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VNULL != 0 {
- goto __5
- }
-
- // tag-20191211-002: WHERE-clause constraints are not useful to the
- // right-hand table of a LEFT 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)) {
+ if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_OK == 0 {
goto __5
}
-
(*sqlite3_index_constraint)(unsafe.Pointer(pIdxCons + uintptr(j)*12)).FiColumn = *(*int32)(unsafe.Pointer(pTerm + 32))
(*sqlite3_index_constraint)(unsafe.Pointer(pIdxCons + uintptr(j)*12)).FiTermOffset = i
op = U16(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator) & WO_ALL)
if int32(op) == WO_IN {
+ if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_SLICE == 0 {
+ *(*U32)(unsafe.Pointer(pHidden + 20)) |= func() uint32 {
+ if j <= 31 {
+ return uint32(uint32(1)) << j
+ }
+ return uint32(0)
+ }()
+ }
op = U16(WO_EQ)
}
if int32(op) == WO_AUX {
@@ -133297,17 +134611,39 @@ __5:
goto __6
__6:
;
+
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint = j
- for i = 0; i < nOrderBy; i++ {
+ for i = libc.AssignInt32(&j, 0); i < nOrderBy; i++ {
var pExpr uintptr = (*ExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32)).FpExpr
- (*sqlite3_index_orderby)(unsafe.Pointer(pIdxOrderBy + uintptr(i)*8)).FiColumn = int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn)
- (*sqlite3_index_orderby)(unsafe.Pointer(pIdxOrderBy + uintptr(i)*8)).Fdesc = uint8(int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags) & KEYINFO_ORDER_DESC)
+ if Xsqlite3ExprIsConstant(tls, pExpr) != 0 {
+ continue
+ }
+
+ (*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)
+ j++
}
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnOrderBy = j
*(*U16)(unsafe.Pointer(pmNoOmit)) = mNoOmit
return pIdxInfo
}
+// 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: */
+ var pHidden uintptr
+ var i int32
+
+ pHidden = pIdxInfo + 1*96
+
+ for i = 0; i < (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint; i++ {
+ Xsqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer(pHidden + 32 + uintptr(i)*8))) // IMP: R-14553-25174
+ *(*uintptr)(unsafe.Pointer(pHidden + 32 + uintptr(i)*8)) = uintptr(0)
+ }
+ Xsqlite3DbFree(tls, db, pIdxInfo)
+}
+
// The table object reference passed as the second argument to this function
// must represent a virtual table. This function invokes the xBestIndex()
// method of the virtual table with the sqlite3_index_info object that
@@ -133322,24 +134658,26 @@ __6:
// 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 { /* sqlite3.c:151755:12: */
+func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153394:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var pVtab uintptr = (*VTable)(unsafe.Pointer(Xsqlite3GetVTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pTab))).FpVtab
var rc int32
+ (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FnSchemaLock++
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer((*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FpModule)).FxBestIndex})).f(tls, pVtab, p)
+ (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FnSchemaLock--
if rc != SQLITE_OK && rc != SQLITE_CONSTRAINT {
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+3604, libc.VaList(bp, Xsqlite3ErrStr(tls, rc)))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3595, libc.VaList(bp, Xsqlite3ErrStr(tls, rc)))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+3604, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3595, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg))
}
}
Xsqlite3_free(tls, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg)
@@ -133358,7 +134696,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 { /* sqlite3.c:151792:12: */
+func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, roundUp int32, aStat uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153433: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
@@ -133417,7 +134755,7 @@ func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, ro
nField = int32((*UnpackedRecord)(unsafe.Pointer(pRec)).FnField)
iCol = 0
iSample = (*Index)(unsafe.Pointer(pIdx)).FnSample * nField
- for ok := true; ok; ok = res != 0 && iMin < iSample {
+ for __ccgo := true; __ccgo; __ccgo = res != 0 && iMin < iSample {
var iSamp int32 // Index in aSample[] of test sample
var n int32 // Number of fields in test sample
@@ -133497,7 +134835,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 { /* sqlite3.c:151984:15: */
+func whereRangeAdjust(tls *libc.TLS, pTerm uintptr, nNew LogEst) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153625:15: */
var nRet LogEst = nNew
if pTerm != 0 {
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FtruthProb) <= 0 {
@@ -133510,7 +134848,7 @@ func whereRangeAdjust(tls *libc.TLS, pTerm uintptr, nNew LogEst) LogEst { /* sql
}
// Return the affinity for a single column of an index.
-func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol int32) int8 { /* sqlite3.c:152001:21: */
+func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol int32) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153642:21: */
if !(int32((*Index)(unsafe.Pointer(pIdx)).FzColAff) != 0) {
if Xsqlite3IndexAffinityStr(tls, db, pIdx) == uintptr(0) {
@@ -133554,7 +134892,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 { /* sqlite3.c:152048:12: */
+func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr, pbDone uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153689:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -133669,7 +135007,7 @@ func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper
// used, a single range inequality reduces the search space by a factor of 4.
// and a pair of constraints (x>? AND x<?) reduces the expected number of
// rows visited by a factor of 64.
-func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr) int32 { /* sqlite3.c:152160:12: */
+func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153801:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -133865,7 +135203,7 @@ func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower u
// required for string comparison, or if unable to allocate memory
// for a UTF conversion required for comparison. The error is stored
// in the pParse structure.
-func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr uintptr, pnRow uintptr) int32 { /* sqlite3.c:152341:12: */
+func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153982:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -133921,7 +135259,7 @@ func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr ui
// required for string comparison, or if unable to allocate memory
// for a UTF conversion required for comparison. The error is stored
// in the pParse structure.
-func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintptr, pnRow uintptr) int32 { /* sqlite3.c:152405:12: */
+func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154046:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -133954,20 +135292,20 @@ func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintp
// Convert bulk memory into a valid WhereLoop that can be passed
// to whereLoopClear harmlessly.
-func whereLoopInit(tls *libc.TLS, p uintptr) { /* sqlite3.c:152552:13: */
- (*WhereLoop)(unsafe.Pointer(p)).FaLTerm = p + 72 /* &.aLTermSpace */
+func whereLoopInit(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154193:13: */
+ (*WhereLoop)(unsafe.Pointer(p)).FaLTerm = p + 88 /* &.aLTermSpace */
(*WhereLoop)(unsafe.Pointer(p)).FnLTerm = U16(0)
(*WhereLoop)(unsafe.Pointer(p)).FnLSlot = U16(int32(uint64(unsafe.Sizeof([3]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0)))))
(*WhereLoop)(unsafe.Pointer(p)).FwsFlags = U32(0)
}
// Clear the WhereLoop.u union. Leave WhereLoop.pLTerm intact.
-func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:152562:13: */
+func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154203:13: */
if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE|WHERE_AUTO_INDEX) != 0 {
- if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0) && *(*U8)(unsafe.Pointer(p + 24 + 4)) != 0 {
- Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(p + 24 + 8 /* &.idxStr */)))
- *(*U8)(unsafe.Pointer(p + 24 + 4 /* &.needFree */)) = U8(0)
- *(*uintptr)(unsafe.Pointer(p + 24 + 8 /* &.idxStr */)) = uintptr(0)
+ if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0) && U32(int32(*(*uint8)(unsafe.Pointer(p + 24 + 4))&0x1>>0)) != 0 {
+ Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(p + 24 + 16 /* &.idxStr */)))
+ libc.SetBitFieldPtr8Uint32(p+24+4, U32(0), 0, 0x1)
+ *(*uintptr)(unsafe.Pointer(p + 24 + 16 /* &.idxStr */)) = uintptr(0)
} else if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_AUTO_INDEX) != U32(0) && *(*uintptr)(unsafe.Pointer(p + 24 + 8)) != uintptr(0) {
Xsqlite3DbFree(tls, db, (*Index)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 24 + 8 /* &.pIndex */)))).FzColAff)
Xsqlite3DbFreeNN(tls, db, *(*uintptr)(unsafe.Pointer(p + 24 + 8 /* &.pIndex */)))
@@ -133977,8 +135315,8 @@ func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:15
}
// Deallocate internal memory used by a WhereLoop object
-func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:152579:13: */
- if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+72 {
+func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154220:13: */
+ if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+88 {
Xsqlite3DbFreeNN(tls, db, (*WhereLoop)(unsafe.Pointer(p)).FaLTerm)
}
whereLoopClearUnion(tls, db, p)
@@ -133986,7 +135324,7 @@ func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:152579:
}
// Increase the memory allocation for pLoop->aLTerm[] to be at least n.
-func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* sqlite3.c:152588:12: */
+func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154229:12: */
var paNew uintptr
if int32((*WhereLoop)(unsafe.Pointer(p)).FnLSlot) >= n {
return SQLITE_OK
@@ -133997,7 +135335,7 @@ func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* s
return SQLITE_NOMEM
}
libc.Xmemcpy(tls, paNew, (*WhereLoop)(unsafe.Pointer(p)).FaLTerm, uint64(unsafe.Sizeof(uintptr(0)))*uint64((*WhereLoop)(unsafe.Pointer(p)).FnLSlot))
- if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+72 {
+ if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+88 {
Xsqlite3DbFreeNN(tls, db, (*WhereLoop)(unsafe.Pointer(p)).FaLTerm)
}
(*WhereLoop)(unsafe.Pointer(p)).FaLTerm = paNew
@@ -134006,16 +135344,16 @@ func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* s
}
// Transfer content from the second pLoop into the first.
-func whereLoopXfer(tls *libc.TLS, db uintptr, pTo uintptr, pFrom uintptr) int32 { /* sqlite3.c:152604:12: */
+func whereLoopXfer(tls *libc.TLS, db uintptr, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154245: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)+48))
+ libc.Xmemset(tls, pTo, 0, uint64(uintptr(0)+64))
return SQLITE_NOMEM
}
- libc.Xmemcpy(tls, pTo, pFrom, uint64(uintptr(0)+48))
+ libc.Xmemcpy(tls, pTo, pFrom, uint64(uintptr(0)+64))
libc.Xmemcpy(tls, (*WhereLoop)(unsafe.Pointer(pTo)).FaLTerm, (*WhereLoop)(unsafe.Pointer(pFrom)).FaLTerm, uint64((*WhereLoop)(unsafe.Pointer(pTo)).FnLTerm)*uint64(unsafe.Sizeof(uintptr(0))))
if (*WhereLoop)(unsafe.Pointer(pFrom)).FwsFlags&U32(WHERE_VIRTUALTABLE) != 0 {
- *(*U8)(unsafe.Pointer(pFrom + 24 + 4 /* &.needFree */)) = U8(0)
+ libc.SetBitFieldPtr8Uint32(pFrom+24+4, U32(0), 0, 0x1)
} else if (*WhereLoop)(unsafe.Pointer(pFrom)).FwsFlags&U32(WHERE_AUTO_INDEX) != U32(0) {
*(*uintptr)(unsafe.Pointer(pFrom + 24 + 8 /* &.pIndex */)) = uintptr(0)
}
@@ -134023,23 +135361,23 @@ 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) { /* sqlite3.c:152623:13: */
+func whereLoopDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154264:13: */
whereLoopClear(tls, db, p)
Xsqlite3DbFreeNN(tls, db, p)
}
// Free a WhereInfo structure
-func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* sqlite3.c:152631:13: */
+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 + 856 + uintptr(i)*88
+ 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) {
- Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pLevel + 56 + 8 /* &.aInLoop */)))
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8 /* &.aInLoop */)))
}
}
- Xsqlite3WhereClauseClear(tls, pWInfo+104)
+ Xsqlite3WhereClauseClear(tls, pWInfo+112)
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
@@ -134050,7 +135388,7 @@ func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* sqlite3.c:152
}
// Undo all Expr node modifications
-func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:152653:13: */
+func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154294: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
@@ -134076,7 +135414,7 @@ func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:152653:13:
// 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 { /* sqlite3.c:152681:12: */
+func whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154322: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) {
@@ -134120,7 +135458,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) { /* sqlite3.c:152719:13: */
+func whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154360:13: */
if (*WhereLoop)(unsafe.Pointer(pTemplate)).FwsFlags&U32(WHERE_INDEXED) == U32(0) {
return
}
@@ -134179,7 +135517,7 @@ func whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) { /* sqlit
// 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 { /* sqlite3.c:152760:18: */
+func whereLoopFindLesser(tls *libc.TLS, ppPrev uintptr, pTemplate uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154401:18: */
var p uintptr
p = *(*uintptr)(unsafe.Pointer(ppPrev))
__1:
@@ -134237,7 +135575,7 @@ __1:
}
goto __2
__2:
- ppPrev = p + 64
+ ppPrev = p + 80
p = *(*uintptr)(unsafe.Pointer(ppPrev))
goto __1
goto __3
@@ -134268,7 +135606,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 { /* sqlite3.c:152848:12: */
+func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154489:12: */
var ppPrev uintptr
var p uintptr
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
@@ -134298,7 +135636,7 @@ func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 {
}
// Look for an existing WhereLoop to replace with pTemplate
- ppPrev = whereLoopFindLesser(tls, pWInfo+80, pTemplate)
+ ppPrev = whereLoopFindLesser(tls, pWInfo+88, pTemplate)
if ppPrev == uintptr(0) {
// There already exists a WhereLoop on the list that is better
@@ -134323,7 +135661,7 @@ func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 {
// We will be overwriting WhereLoop p[]. But before we do, first
// go through the rest of the list and delete any other entries besides
// p[] that are also supplated by pTemplate
- var ppTail uintptr = p + 64
+ var ppTail uintptr = p + 80
var pToDel uintptr
for *(*uintptr)(unsafe.Pointer(ppTail)) != 0 {
ppTail = whereLoopFindLesser(tls, ppTail, pTemplate)
@@ -134375,7 +135713,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) { /* sqlite3.c:152985:13: */
+func whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow LogEst) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154626:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -134386,7 +135724,7 @@ func whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow LogEs
var j int32
var iReduce LogEst = int16(0) // pLoop->nOut should not exceed nRow-iReduce
- i = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm
+ i = (*WhereClause)(unsafe.Pointer(pWC)).FnBase
pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa
__1:
if !(i > 0) {
@@ -134394,13 +135732,13 @@ __1:
}
{
- if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VIRTUAL != 0 {
- goto __3
+ if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&notAllowed != uint64(0) {
+ goto __2
}
if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf == uint64(0) {
goto __2
}
- if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&notAllowed != uint64(0) {
+ if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VIRTUAL != 0 {
goto __2
}
for j = int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnLTerm) - 1; j >= 0; j-- {
@@ -134416,6 +135754,20 @@ __1:
}
}
if j < 0 {
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf == (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll {
+ // If there are extra terms in the WHERE clause not used by an index
+ // that depend only on the table being scanned, and that will tend to
+ // cause many rows to be omitted, then mark that table as
+ // "self-culling".
+ //
+ // 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.
+ 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 {
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_SELFCULL)
+ }
+ }
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FtruthProb) <= 0 {
// If a truth probability is specified using the likelihood() hints,
// then use the probability provided by the application.
@@ -134471,7 +135823,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 { /* sqlite3.c:153055:12: */
+func whereRangeVectorLen(tls *libc.TLS, pParse uintptr, iCur int32, pIdx uintptr, nEq int32, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154714:12: */
var nCmp int32 = Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft)
var i int32
@@ -134539,7 +135891,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 { /* sqlite3.c:153129:12: */
+func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProbe uintptr, nInMul LogEst) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154788:12: */
bp := tls.Alloc(116)
defer tls.Free(116)
@@ -134622,9 +135974,9 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb
}
if int32((*Index)(unsafe.Pointer(pProbe)).FonError) != OE_None && int32(saved_nEq) == int32((*Index)(unsafe.Pointer(pProbe)).FnKeyCol)-1 {
- *(*uint8)(unsafe.Pointer(pBuilder + 52)) |= uint8(SQLITE_BLDF1_UNIQUE)
+ *(*uint8)(unsafe.Pointer(pBuilder + 44)) |= uint8(SQLITE_BLDF1_UNIQUE)
} else {
- *(*uint8)(unsafe.Pointer(pBuilder + 52)) |= uint8(SQLITE_BLDF1_INDEXED)
+ *(*uint8)(unsafe.Pointer(pBuilder + 44)) |= uint8(SQLITE_BLDF1_INDEXED)
}
(*WhereLoop)(unsafe.Pointer(pNew)).FwsFlags = saved_wsFlags
*(*U16)(unsafe.Pointer(pNew + 24)) = saved_nEq
@@ -134689,34 +136041,34 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb
} else if int32(nInMul) < 2 && (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_SeekScan) == U32(0) {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_IN_SEEKSCAN)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_IN_SEEKSCAN)
} else {
continue
}
}
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_COLUMN_IN)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_COLUMN_IN)
} else if int32(eOp)&(WO_EQ|WO_IS) != 0 {
var iCol int32 = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pProbe)).FaiColumn + uintptr(saved_nEq)*2)))
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_COLUMN_EQ)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_COLUMN_EQ)
if iCol == -1 ||
iCol >= 0 && int32(nInMul) == 0 && int32(saved_nEq) == int32((*Index)(unsafe.Pointer(pProbe)).FnKeyCol)-1 {
if iCol == -1 || uint32(int32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x8>>3)) != 0 ||
int32((*Index)(unsafe.Pointer(pProbe)).FnKeyCol) == 1 && (*Index)(unsafe.Pointer(pProbe)).FonError != 0 && int32(eOp) == WO_EQ {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_ONEROW)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_ONEROW)
} else {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_UNQ_WANTED)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_UNQ_WANTED)
}
}
if int32((*WhereScan)(unsafe.Pointer(bp)).FiEquiv) > 1 {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_TRANSCONS)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_TRANSCONS)
}
} else if int32(eOp)&WO_ISNULL != 0 {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_COLUMN_NULL)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_COLUMN_NULL)
} else if int32(eOp)&(int32(WO_EQ)<<(TK_GT-TK_EQ)|int32(WO_EQ)<<(TK_GE-TK_EQ)) != 0 {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_COLUMN_RANGE | WHERE_BTM_LIMIT)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_COLUMN_RANGE | WHERE_BTM_LIMIT)
*(*U16)(unsafe.Pointer(pNew + 24 + 2 /* &.nBtm */)) = U16(whereRangeVectorLen(tls,
pParse, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor, pProbe, int32(saved_nEq), pTerm))
pBtm = pTerm
@@ -134730,12 +136082,12 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb
break
} // OOM
*(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(libc.PostIncUint16(&(*WhereLoop)(unsafe.Pointer(pNew)).FnLTerm, 1))*8)) = pTop
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_TOP_LIMIT)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_TOP_LIMIT)
*(*U16)(unsafe.Pointer(pNew + 24 + 4 /* &.nTop */)) = U16(1)
}
} else {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_COLUMN_RANGE | WHERE_TOP_LIMIT)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_COLUMN_RANGE | WHERE_TOP_LIMIT)
*(*U16)(unsafe.Pointer(pNew + 24 + 4 /* &.nTop */)) = U16(whereRangeVectorLen(tls,
pParse, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor, pProbe, int32(saved_nEq), pTerm))
pTop = pTerm
@@ -134793,7 +136145,7 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb
// If the term has previously been used with an assumption of
// higher selectivity, then set the flag to rerun the
// loop computations.
- *(*uint8)(unsafe.Pointer(pBuilder + 53)) |= uint8(SQLITE_BLDF2_2NDPASS)
+ *(*uint8)(unsafe.Pointer(pBuilder + 45)) |= uint8(SQLITE_BLDF2_2NDPASS)
}
}
if int32((*WhereLoop)(unsafe.Pointer(pNew)).FnOut) > int32(saved_nOut) {
@@ -134877,7 +136229,7 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb
*(*U16)(unsafe.Pointer(pNew + 24))++
(*WhereLoop)(unsafe.Pointer(pNew)).FnSkip++
*(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(libc.PostIncUint16(&(*WhereLoop)(unsafe.Pointer(pNew)).FnLTerm, 1))*8)) = uintptr(0)
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_SKIPSCAN)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_SKIPSCAN)
nIter = LogEst(int32(*(*LogEst)(unsafe.Pointer((*Index)(unsafe.Pointer(pProbe)).FaiRowLogEst + uintptr(saved_nEq)*2))) - int32(*(*LogEst)(unsafe.Pointer((*Index)(unsafe.Pointer(pProbe)).FaiRowLogEst + uintptr(int32(saved_nEq)+1)*2))))
*(*LogEst)(unsafe.Pointer(pNew + 22)) -= LogEst(int32(nIter))
// TUNING: Because uncertainties in the estimates for skip-scan queries,
@@ -134899,7 +136251,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 { /* sqlite3.c:153529:12: */
+func indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr, iCursor int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155188:12: */
var pOB uintptr
var aColExpr uintptr
var ii int32
@@ -134941,7 +136293,7 @@ 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 { /* sqlite3.c:153563:12: */
+func whereUsablePartialIndex(tls *libc.TLS, iTab int32, isLeft int32, pWC uintptr, pWhere uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155222:12: */
var i int32
var pTerm uintptr
var pParse uintptr = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse
@@ -134963,7 +136315,7 @@ __1:
{
var pExpr uintptr
pExpr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr
- if (!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) || (*Expr)(unsafe.Pointer(pExpr)).FiRightJoinTable == iTab) &&
+ 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)) &&
Xsqlite3ExprImpliesExpr(tls, pParse, pExpr, pWhere, iTab) != 0 &&
int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VNULL == 0 {
@@ -135016,7 +136368,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 { /* sqlite3.c:153627:12: */
+func whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155286:12: */
bp := tls.Alloc(158)
defer tls.Free(158)
@@ -135240,7 +136592,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 + 104
+ var pWC2 uintptr = pWInfo + 112
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) {
@@ -135300,6 +136652,13 @@ __3:
return rc
}
+// 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: */
+
+ return libc.Bool32(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) >= SQLITE_INDEX_CONSTRAINT_LIMIT &&
+ int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) <= SQLITE_INDEX_CONSTRAINT_OFFSET)
+}
+
// Argument pIdxInfo is already populated with all constraints that may
// be used by the virtual table identified by pBuilder->pNew->iTab. This
// function marks a subset of those constraints usable, invokes the
@@ -135318,11 +136677,12 @@ __3:
//
// 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) int32 { /* sqlite3.c:153902: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-3380500/sqlite3.c:155570:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var pWC uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWC
+ var pHidden uintptr = pIdxInfo + 1*96
var pIdxCons uintptr
var pUsage uintptr = (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage
var i int32
@@ -135348,7 +136708,8 @@ __1:
var pTerm uintptr = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr((*sqlite3_index_constraint)(unsafe.Pointer(pIdxCons)).FiTermOffset)*56
(*sqlite3_index_constraint)(unsafe.Pointer(pIdxCons)).Fusable = uint8(0)
if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight&mUsable == (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight &&
- int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&int32(mExclude) == 0 {
+ int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&int32(mExclude) == 0 &&
+ (pbRetryLimit != 0 || !(isLimitTerm(tls, pTerm) != 0)) {
(*sqlite3_index_constraint)(unsafe.Pointer(pIdxCons)).Fusable = uint8(1)
}
@@ -135372,6 +136733,7 @@ __3:
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedRows = int64(25)
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxFlags = 0
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FcolUsed = Sqlite3_uint64(Sqlite3_int64((*SrcItem)(unsafe.Pointer(pSrc)).FcolUsed))
+ (*HiddenIndexInfo)(unsafe.Pointer(pHidden)).FmHandleIn = U32(0)
// Invoke the virtual table xBestIndex() method
rc = vtabBestIndex(tls, pParse, (*SrcItem)(unsafe.Pointer(pSrc)).FpTab, pIdxInfo)
@@ -135388,10 +136750,19 @@ __3:
mxTerm = -1
- for i = 0; i < nConstraint; i++ {
- *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)) = uintptr(0)
- }
- *(*U16)(unsafe.Pointer(pNew + 24 + 6 /* &.omitMask */)) = U16(0)
+ libc.Xmemset(tls, (*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm, 0, uint64(unsafe.Sizeof(uintptr(0)))*uint64(nConstraint))
+ libc.Xmemset(tls, pNew+24, 0, uint64(unsafe.Sizeof(struct {
+ FidxNum int32
+ FneedFree uint8 /* u32 needFree: 1, u32 bOmitOffset: 1 */
+ F__ccgo_pad1 [1]byte
+ FisOrdered I8
+ F__ccgo_pad2 [1]byte
+ FomitMask U16
+ F__ccgo_pad3 [6]byte
+ FidxStr uintptr
+ FmHandleIn U32
+ F__ccgo_pad4 [4]byte
+ }{})))
pIdxCons = *(*uintptr)(unsafe.Pointer(pIdxInfo + 8))
i = 0
__4:
@@ -135408,7 +136779,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+21696, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21755, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return SQLITE_ERROR
}
@@ -135424,12 +136795,22 @@ __4:
if (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage+uintptr(i)*8)).Fomit != 0 {
if i < 16 && int32(1)<<i&int32(mNoOmit) == 0 {
- *(*U16)(unsafe.Pointer(pNew + 24 + 6)) |= U16(int32(1) << iTerm)
+ *(*U16)(unsafe.Pointer(pNew + 24 + 8)) |= U16(int32(1) << iTerm)
} else {
}
+ if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) == SQLITE_INDEX_CONSTRAINT_OFFSET {
+ libc.SetBitFieldPtr8Uint32(pNew+24+4, U32(1), 1, 0x2)
+ }
}
- if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 {
+ if func() uint32 {
+ if i <= 31 {
+ return uint32(uint32(1)) << i
+ }
+ return uint32(0)
+ }()&(*HiddenIndexInfo)(unsafe.Pointer(pHidden)).FmHandleIn != 0 {
+ *(*U32)(unsafe.Pointer(pNew + 24 + 24)) |= uint32(uint32(1)) << iTerm
+ } else if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 {
// A virtual table that is constrained by an IN clause may not
// consume the ORDER BY clause because (1) the order of IN terms
// is not necessarily related to the order of output terms and
@@ -135439,6 +136820,21 @@ __4:
*(*int32)(unsafe.Pointer(pIdxInfo + 80)) &= libc.CplInt32(SQLITE_INDEX_SCAN_UNIQUE)
*(*int32)(unsafe.Pointer(pbIn)) = 1
}
+
+ if isLimitTerm(tls, pTerm) != 0 && *(*int32)(unsafe.Pointer(pbIn)) != 0 {
+ // If there is an IN(...) term handled as an == (separate call to
+ // xFilter for each value on the RHS of the IN) and a LIMIT or
+ // OFFSET term handled as well, the plan is unusable. Set output
+ // variable *pbRetryLimit to true to tell the caller to retry with
+ // LIMIT and OFFSET disabled.
+ if (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr != 0 {
+ Xsqlite3_free(tls, (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr)
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = uintptr(0)
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr = 0
+ }
+ *(*int32)(unsafe.Pointer(pbRetryLimit)) = 1
+ return SQLITE_OK
+ }
}
}
@@ -135456,17 +136852,17 @@ __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+21696, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21755, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return SQLITE_ERROR
}
}
*(*int32)(unsafe.Pointer(pNew + 24)) = (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum
- *(*U8)(unsafe.Pointer(pNew + 24 + 4 /* &.needFree */)) = U8((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr)
+ libc.SetBitFieldPtr8Uint32(pNew+24+4, U32((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr), 0, 0x1)
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr = 0
- *(*uintptr)(unsafe.Pointer(pNew + 24 + 8 /* &.idxStr */)) = (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr
- *(*I8)(unsafe.Pointer(pNew + 24 + 5 /* &.isOrdered */)) = func() int8 {
+ *(*uintptr)(unsafe.Pointer(pNew + 24 + 16 /* &.idxStr */)) = (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr
+ *(*I8)(unsafe.Pointer(pNew + 24 + 6 /* &.isOrdered */)) = func() int8 {
if (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).ForderByConsumed != 0 {
return int8((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnOrderBy)
}
@@ -135479,25 +136875,33 @@ __6:
// Set the WHERE_ONEROW flag if the xBestIndex() method indicated
// that the scan will visit at most one row. Clear it otherwise.
if (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxFlags&SQLITE_INDEX_SCAN_UNIQUE != 0 {
- *(*U32)(unsafe.Pointer(pNew + 40)) |= U32(WHERE_ONEROW)
+ *(*U32)(unsafe.Pointer(pNew + 56)) |= U32(WHERE_ONEROW)
} else {
- *(*U32)(unsafe.Pointer(pNew + 40)) &= libc.Uint32FromInt32(libc.CplInt32(WHERE_ONEROW))
+ *(*U32)(unsafe.Pointer(pNew + 56)) &= libc.Uint32FromInt32(libc.CplInt32(WHERE_ONEROW))
}
rc = whereLoopInsert(tls, pBuilder, pNew)
- if *(*U8)(unsafe.Pointer(pNew + 24 + 4)) != 0 {
- Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(pNew + 24 + 8 /* &.idxStr */)))
- *(*U8)(unsafe.Pointer(pNew + 24 + 4 /* &.needFree */)) = U8(0)
+ if U32(int32(*(*uint8)(unsafe.Pointer(pNew + 24 + 4))&0x1>>0)) != 0 {
+ Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(pNew + 24 + 16 /* &.idxStr */)))
+ libc.SetBitFieldPtr8Uint32(pNew+24+4, U32(0), 0, 0x1)
}
return rc
}
-// If this function is invoked from within an xBestIndex() callback, it
-// returns a pointer to a buffer containing the name of the collation
-// sequence associated with element iCons of the sqlite3_index_info.aConstraint
-// array. Or, if iCons is out of range or there is no active xBestIndex
-// call, return NULL.
-func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintptr { /* sqlite3.c:154062:23: */
+// Return the collating sequence for a constraint passed into xBestIndex.
+//
+// pIdxInfo must be an sqlite3_index_info structure passed into xBestIndex.
+// This routine depends on there being a HiddenIndexInfo structure immediately
+// following the sqlite3_index_info structure.
+//
+// Return a pointer to the collation name:
+//
+// 1. If there is an explicit COLLATE operator on the constaint, return it.
+//
+// 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: */
var pHidden uintptr = pIdxInfo + 1*96
var zRet uintptr = uintptr(0)
if iCons >= 0 && iCons < (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint {
@@ -135517,6 +136921,64 @@ func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintp
return zRet
}
+// 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: */
+ var pHidden uintptr = pIdxInfo + 1*96
+ var m U32 = func() uint32 {
+ if iCons <= 31 {
+ return uint32(uint32(1)) << iCons
+ }
+ return uint32(0)
+ }()
+ if m&(*HiddenIndexInfo)(unsafe.Pointer(pHidden)).FmIn != 0 {
+ if bHandle == 0 {
+ *(*U32)(unsafe.Pointer(pHidden + 24)) &= ^m
+ } else if bHandle > 0 {
+ *(*U32)(unsafe.Pointer(pHidden + 24)) |= m
+ }
+ return 1
+ }
+ return 0
+}
+
+// This interface is callable from within the xBestIndex callback only.
+//
+// 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: */
+ var pH uintptr = pIdxInfo + 1*96
+ var pVal uintptr = uintptr(0)
+ var rc int32 = SQLITE_OK
+ if iCons < 0 || iCons >= (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint {
+ rc = SQLITE_MISUSE // EV: R-30545-25046
+ } else {
+ if *(*uintptr)(unsafe.Pointer(pH + 32 + uintptr(iCons)*8)) == uintptr(0) {
+ var pTerm uintptr = (*WhereClause)(unsafe.Pointer((*HiddenIndexInfo)(unsafe.Pointer(pH)).FpWC)).Fa + uintptr((*sqlite3_index_constraint)(unsafe.Pointer((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint+uintptr(iCons)*12)).FiTermOffset)*56
+ rc = Xsqlite3ValueFromExpr(tls,
+ (*Parse)(unsafe.Pointer((*HiddenIndexInfo)(unsafe.Pointer(pH)).FpParse)).Fdb, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpRight, (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer((*HiddenIndexInfo)(unsafe.Pointer(pH)).FpParse)).Fdb)).Fenc,
+ uint8(SQLITE_AFF_BLOB), pH+32+uintptr(iCons)*8)
+
+ }
+ pVal = *(*uintptr)(unsafe.Pointer(pH + 32 + uintptr(iCons)*8))
+ }
+ *(*uintptr)(unsafe.Pointer(ppVal)) = pVal
+
+ if rc == SQLITE_OK && pVal == uintptr(0) { // IMP: R-19933-32160
+ rc = SQLITE_NOTFOUND // IMP: R-36424-56542
+ }
+
+ return rc
+}
+
+// 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: */
+ var pHidden uintptr = pIdxInfo + 1*96
+
+ return (*HiddenIndexInfo)(unsafe.Pointer(pHidden)).FeDistinct
+}
+
// Add all WhereLoop objects for a table of the join identified by
// pBuilder->pNew->iTab. That table is guaranteed to be a virtual table.
//
@@ -135540,9 +137002,9 @@ func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintp
// 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 { /* sqlite3.c:154102:12: */
- bp := tls.Alloc(8)
- defer tls.Free(8)
+func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155884:12: */
+ bp := tls.Alloc(12)
+ defer tls.Free(12)
var rc int32 = SQLITE_OK // Return code
var pWInfo uintptr // WHERE analysis context
@@ -135557,30 +137019,37 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus
var mBest Bitmask // Tables used by best possible plan
// var mNoOmit U16 at bp, 2
+ *(*int32)(unsafe.Pointer(bp + 8 /* bRetry */)) = 0 // True to retry with LIMIT/OFFSET disabled
+
pWInfo = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
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
- p = allocateIndexInfo(tls, pParse, pWC, mUnusable, pSrc, (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpOrderBy,
- bp)
+ p = allocateIndexInfo(tls, pWInfo, pWC, mUnusable, pSrc, bp)
if p == uintptr(0) {
return SQLITE_NOMEM
}
(*WhereLoop)(unsafe.Pointer(pNew)).FrSetup = int16(0)
(*WhereLoop)(unsafe.Pointer(pNew)).FwsFlags = U32(WHERE_VIRTUALTABLE)
(*WhereLoop)(unsafe.Pointer(pNew)).FnLTerm = U16(0)
- *(*U8)(unsafe.Pointer(pNew + 24 + 4 /* &.needFree */)) = U8(0)
+ libc.SetBitFieldPtr8Uint32(pNew+24+4, U32(0), 0, 0x1)
nConstraint = (*Sqlite3_index_info)(unsafe.Pointer(p)).FnConstraint
if whereLoopResize(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pNew, nConstraint) != 0 {
- Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, p)
+ freeIndexInfo(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, p)
return SQLITE_NOMEM
}
// First call xBestIndex() with all constraints usable.
- rc = whereLoopAddVirtualOne(tls, pBuilder, mPrereq, libc.Uint64(libc.Uint64FromInt32(-1)), uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4)
+ rc = whereLoopAddVirtualOne(tls,
+ pBuilder, mPrereq, libc.Uint64(libc.Uint64FromInt32(-1)), uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4, bp+8)
+ if *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
+
+ rc = whereLoopAddVirtualOne(tls,
+ pBuilder, mPrereq, libc.Uint64(libc.Uint64FromInt32(-1)), uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4, uintptr(0))
+ }
// If the call to xBestIndex() with all terms enabled produced a plan
// that does not require any source tables (IOW: a plan with mBest==0)
@@ -135598,7 +137067,7 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus
if *(*int32)(unsafe.Pointer(bp + 4)) != 0 {
rc = whereLoopAddVirtualOne(tls,
- pBuilder, mPrereq, libc.Uint64(libc.Uint64FromInt32(-1)), uint16(WO_IN), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4)
+ pBuilder, mPrereq, libc.Uint64(libc.Uint64FromInt32(-1)), uint16(WO_IN), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4, uintptr(0))
mBestNoIn = (*WhereLoop)(unsafe.Pointer(pNew)).Fprereq & ^mPrereq
if mBestNoIn == uint64(0) {
@@ -135628,7 +137097,7 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus
}
rc = whereLoopAddVirtualOne(tls,
- pBuilder, mPrereq, mNext|mPrereq, uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4)
+ pBuilder, mPrereq, mNext|mPrereq, uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4, uintptr(0))
if (*WhereLoop)(unsafe.Pointer(pNew)).Fprereq == mPrereq {
seenZero = 1
if *(*int32)(unsafe.Pointer(bp + 4)) == 0 {
@@ -135643,7 +137112,7 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus
if rc == SQLITE_OK && seenZero == 0 {
rc = whereLoopAddVirtualOne(tls,
- pBuilder, mPrereq, mPrereq, uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4)
+ pBuilder, mPrereq, mPrereq, uint16(0), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4, uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 4)) == 0 {
seenZeroNoIN = 1
}
@@ -135655,23 +137124,23 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus
if rc == SQLITE_OK && seenZeroNoIN == 0 {
rc = whereLoopAddVirtualOne(tls,
- pBuilder, mPrereq, mPrereq, uint16(WO_IN), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4)
+ pBuilder, mPrereq, mPrereq, uint16(WO_IN), p, *(*U16)(unsafe.Pointer(bp /* mNoOmit */)), bp+4, uintptr(0))
}
}
if (*Sqlite3_index_info)(unsafe.Pointer(p)).FneedToFreeIdxStr != 0 {
Xsqlite3_free(tls, (*Sqlite3_index_info)(unsafe.Pointer(p)).FidxStr)
}
- Xsqlite3DbFreeNN(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, p)
+ freeIndexInfo(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, p)
return rc
}
// 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 { /* sqlite3.c:154225:12: */
- bp := tls.Alloc(720)
- defer tls.Free(720)
+func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156015:12: */
+ bp := tls.Alloc(712)
+ defer tls.Free(712)
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
var pWC uintptr
@@ -135682,7 +137151,7 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable
var iCur int32
// var tempWC WhereClause at bp+112, 488
- // var sSubBuild WhereLoopBuilder at bp+600, 64
+ // var sSubBuild WhereLoopBuilder at bp+600, 56
// var sSum WhereOrSet at bp, 56
@@ -135708,7 +137177,6 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable
var j int32
*(*WhereLoopBuilder)(unsafe.Pointer(bp + 600 /* sSubBuild */)) = *(*WhereLoopBuilder)(unsafe.Pointer(pBuilder))
- (*WhereLoopBuilder)(unsafe.Pointer(bp + 600 /* &sSubBuild */)).FpOrderBy = uintptr(0)
(*WhereLoopBuilder)(unsafe.Pointer(bp + 600 /* &sSubBuild */)).FpOrSet = bp + 56 /* &sCur */
for pOrTerm = (*WhereClause)(unsafe.Pointer(pOrWC)).Fa; pOrTerm < pOrWCEnd; pOrTerm += 56 {
@@ -135719,6 +137187,7 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable
(*WhereClause)(unsafe.Pointer(bp + 112 /* &tempWC */)).FpOuter = pWC
(*WhereClause)(unsafe.Pointer(bp + 112 /* &tempWC */)).Fop = U8(TK_AND)
(*WhereClause)(unsafe.Pointer(bp + 112 /* &tempWC */)).FnTerm = 1
+ (*WhereClause)(unsafe.Pointer(bp + 112 /* &tempWC */)).FnBase = 1
(*WhereClause)(unsafe.Pointer(bp + 112 /* &tempWC */)).Fa = pOrTerm
(*WhereLoopBuilder)(unsafe.Pointer(bp + 600 /* &sSubBuild */)).FpWC = bp + 112 /* &tempWC */
} else {
@@ -135741,15 +137210,15 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable
whereOrMove(tls, bp, bp+56)
once = 0
} else {
- // var sPrev WhereOrSet at bp+664, 56
+ // var sPrev WhereOrSet at bp+656, 56
- whereOrMove(tls, bp+664, bp)
+ whereOrMove(tls, bp+656, bp)
(*WhereOrSet)(unsafe.Pointer(bp /* &sSum */)).Fn = U16(0)
- for i = 0; i < int32((*WhereOrSet)(unsafe.Pointer(bp+664 /* &sPrev */)).Fn); i++ {
+ for i = 0; i < int32((*WhereOrSet)(unsafe.Pointer(bp+656 /* &sPrev */)).Fn); i++ {
for j = 0; j < int32((*WhereOrSet)(unsafe.Pointer(bp+56 /* &sCur */)).Fn); j++ {
- whereOrInsert(tls, bp, (*WhereOrCost)(unsafe.Pointer(bp+664+8+uintptr(i)*16)).Fprereq|(*WhereOrCost)(unsafe.Pointer(bp+56+8+uintptr(j)*16)).Fprereq,
- Xsqlite3LogEstAdd(tls, (*WhereOrCost)(unsafe.Pointer(bp+664+8+uintptr(i)*16)).FrRun, (*WhereOrCost)(unsafe.Pointer(bp+56+8+uintptr(j)*16)).FrRun),
- Xsqlite3LogEstAdd(tls, (*WhereOrCost)(unsafe.Pointer(bp+664+8+uintptr(i)*16)).FnOut, (*WhereOrCost)(unsafe.Pointer(bp+56+8+uintptr(j)*16)).FnOut))
+ whereOrInsert(tls, bp, (*WhereOrCost)(unsafe.Pointer(bp+656+8+uintptr(i)*16)).Fprereq|(*WhereOrCost)(unsafe.Pointer(bp+56+8+uintptr(j)*16)).Fprereq,
+ Xsqlite3LogEstAdd(tls, (*WhereOrCost)(unsafe.Pointer(bp+656+8+uintptr(i)*16)).FrRun, (*WhereOrCost)(unsafe.Pointer(bp+56+8+uintptr(j)*16)).FrRun),
+ Xsqlite3LogEstAdd(tls, (*WhereOrCost)(unsafe.Pointer(bp+656+8+uintptr(i)*16)).FnOut, (*WhereOrCost)(unsafe.Pointer(bp+56+8+uintptr(j)*16)).FnOut))
}
}
}
@@ -135767,6 +137236,7 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable
FnDistinctCol U16
FpIndex uintptr
}
+ F__ccgo_pad1 [16]byte
}{})))
for i = 0; rc == SQLITE_OK && i < int32((*WhereOrSet)(unsafe.Pointer(bp /* &sSum */)).Fn); i++ {
// TUNING: Currently sSum.a[i].rRun is set to the sum of the costs
@@ -135793,7 +137263,7 @@ 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 { /* sqlite3.c:154351:12: */
+func whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156141:12: */
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
var mPrereq Bitmask = uint64(0)
var mPrior Bitmask = uint64(0)
@@ -135818,8 +137288,8 @@ __1:
{
var mUnusable Bitmask = uint64(0)
(*WhereLoop)(unsafe.Pointer(pNew)).FiTab = U8(iTab)
- *(*uint32)(unsafe.Pointer(pBuilder + 56)) += uint32(SQLITE_QUERY_PLANNER_LIMIT_INCR)
- (*WhereLoop)(unsafe.Pointer(pNew)).FmaskSelf = Xsqlite3WhereGetMask(tls, pWInfo+592, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor)
+ *(*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.
@@ -135831,7 +137301,7 @@ __1:
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+592, (*SrcItem)(unsafe.Pointer(p)).FiCursor)
+ mUnusable = mUnusable | Xsqlite3WhereGetMask(tls, pWInfo+600, (*SrcItem)(unsafe.Pointer(p)).FiCursor)
}
}
rc = whereLoopAddVirtual(tls, pBuilder, mPrereq, mUnusable)
@@ -135845,7 +137315,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+21722, 0)
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+21781, 0)
rc = SQLITE_OK
} else {
goto __3
@@ -135881,7 +137351,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 { /* sqlite3.c:154429:11: */
+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: */
var revSet U8 // True if rev is known
var rev U8 // Composite sort order
var revIdx U8 // Index sort order
@@ -135958,7 +137428,7 @@ 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 + 5)) != 0 && int32(wctrlFlags)&WHERE_DISTINCTBY == 0 {
+ if *(*I8)(unsafe.Pointer(pLoop + 24 + 6)) != 0 && int32(wctrlFlags)&WHERE_DISTINCTBY == 0 {
obSat = obDone
}
break
@@ -135985,7 +137455,7 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
if (*Expr)(unsafe.Pointer(pOBExpr)).FiTable != iCur {
continue
}
- pTerm = Xsqlite3WhereFindTerm(tls, pWInfo+104, iCur, int32((*Expr)(unsafe.Pointer(pOBExpr)).FiColumn),
+ pTerm = Xsqlite3WhereFindTerm(tls, pWInfo+112, iCur, int32((*Expr)(unsafe.Pointer(pOBExpr)).FiColumn),
^ready, uint32(eqOpMask), uintptr(0))
if pTerm == uintptr(0) {
continue
@@ -136162,7 +137632,7 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
}
if isMatch != 0 && int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 {
if j == int32(*(*U16)(unsafe.Pointer(pLoop + 24))) {
- *(*U32)(unsafe.Pointer(pLoop + 40)) |= U32(WHERE_BIGNULL_SORT)
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_BIGNULL_SORT)
} else {
isMatch = U8(0)
}
@@ -136198,7 +137668,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+592, p)
+ mTerm = Xsqlite3WhereExprUsage(tls, pWInfo+600, p)
if mTerm == uint64(0) && !(Xsqlite3ExprIsConstant(tls, p) != 0) {
continue
}
@@ -136249,15 +137719,15 @@ 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 { /* sqlite3.c:154774:20: */
+func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156564:20: */
- return int32(*(*uint8)(unsafe.Pointer(pWInfo + 68)) & 0x8 >> 3)
+ return int32(*(*uint8)(unsafe.Pointer(pWInfo + 76)) & 0x8 >> 3)
}
// 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 { /* sqlite3.c:154797:15: */
+func whereSortingCost(tls *libc.TLS, pWInfo uintptr, nRow LogEst, nOrderBy int32, nSorted int32) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156587:15: */
// TUNING: Estimated cost of a full external sort, where N is
// the number of rows to sort is:
//
@@ -136304,7 +137774,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 { /* sqlite3.c:154850:12: */
+func wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst LogEst) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156640:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -136619,7 +138089,7 @@ __3:
}
if nFrom == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+21757, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21816, 0)
Xsqlite3DbFreeNN(tls, db, pSpace)
return SQLITE_ERROR
}
@@ -136634,7 +138104,7 @@ __3:
// Load the lowest cost path into pWInfo
for iLoop = 0; iLoop < nLoop; iLoop++ {
- var pLevel uintptr = pWInfo + 856 + uintptr(iLoop)*88
+ var pLevel uintptr = pWInfo + 864 + uintptr(iLoop)*96
(*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
@@ -136651,7 +138121,7 @@ __3:
(*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_ORDERED)
}
}
- libc.SetBitFieldPtr8Uint32(pWInfo+68, uint32(0), 2, 0x4)
+ libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(0), 2, 0x4)
if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy != 0 {
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 {
@@ -136671,7 +138141,7 @@ __3:
uint16(WHERE_ORDERBY_LIMIT), uint16(nLoop-1), *(*uintptr)(unsafe.Pointer((*WherePath)(unsafe.Pointer(pFrom)).FaLoop + uintptr(nLoop-1)*8)), bp+16))
if rc == (*ExprList)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy)).FnExpr {
- libc.SetBitFieldPtr8Uint32(pWInfo+68, uint32(1), 2, 0x4)
+ libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 2, 0x4)
(*WhereInfo)(unsafe.Pointer(pWInfo)).FrevMask = *(*Bitmask)(unsafe.Pointer(bp + 16 /* m */))
}
}
@@ -136679,7 +138149,7 @@ __3:
} else if nLoop != 0 &&
int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat) == 1 &&
int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&(WHERE_ORDERBY_MIN|WHERE_ORDERBY_MAX) != 0 {
- libc.SetBitFieldPtr8Uint32(pWInfo+68, uint32(1), 2, 0x4)
+ libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 2, 0x4)
}
}
if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_SORTBYGROUP != 0 &&
@@ -136689,7 +138159,7 @@ __3:
pFrom, uint16(0), uint16(nLoop-1), *(*uintptr)(unsafe.Pointer((*WherePath)(unsafe.Pointer(pFrom)).FaLoop + uintptr(nLoop-1)*8)), bp+24))
if nOrder == (*ExprList)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy)).FnExpr {
- libc.SetBitFieldPtr8Uint32(pWInfo+68, uint32(1), 3, 0x8)
+ libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 3, 0x8)
(*WhereInfo)(unsafe.Pointer(pWInfo)).FrevMask = *(*Bitmask)(unsafe.Pointer(bp + 24 /* revMask */))
}
}
@@ -136711,7 +138181,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 { /* sqlite3.c:155242:12: */
+func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157032:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -136740,7 +138210,7 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:155242:
return 0
}
iCur = (*SrcItem)(unsafe.Pointer(pItem)).FiCursor
- pWC = pWInfo + 104
+ pWC = pWInfo + 112
pLoop = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpNew
(*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags = U32(0)
(*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip = U16(0)
@@ -136786,7 +138256,7 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:155242:
}
(*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags = U32(WHERE_COLUMN_EQ | WHERE_ONEROW | WHERE_INDEXED)
if uint32(int32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x20>>5)) != 0 || (*SrcItem)(unsafe.Pointer(pItem)).FcolUsed&(*Index)(unsafe.Pointer(pIdx)).FcolNotIdxed == uint64(0) {
- *(*U32)(unsafe.Pointer(pLoop + 40)) |= U32(WHERE_IDX_ONLY)
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_IDX_ONLY)
}
(*WhereLoop)(unsafe.Pointer(pLoop)).FnLTerm = U16(j)
*(*U16)(unsafe.Pointer(pLoop + 24)) = U16(j)
@@ -136798,10 +138268,10 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:155242:
}
if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags != 0 {
(*WhereLoop)(unsafe.Pointer(pLoop)).FnOut = int16(1)
- (*WhereLevel)(unsafe.Pointer(pWInfo + 856)).FpWLoop = pLoop
+ (*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop = pLoop
(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf = uint64(1) // sqlite3WhereGetMask(&pWInfo->sMaskSet, iCur);
- (*WhereLevel)(unsafe.Pointer(pWInfo + 856)).FiTabCur = iCur
+ (*WhereLevel)(unsafe.Pointer(pWInfo + 864)).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)
@@ -136810,7 +138280,7 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:155242:
(*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNIQUE)
}
if int32((*WhereScan)(unsafe.Pointer(bp)).FiEquiv) > 1 {
- *(*U32)(unsafe.Pointer(pLoop + 40)) |= U32(WHERE_TRANSCONS)
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_TRANSCONS)
}
return 1
}
@@ -136818,7 +138288,7 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:155242:
}
// Helper function for exprIsDeterministic().
-func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:155333:12: */
+func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157123: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
@@ -136829,7 +138299,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 { /* sqlite3.c:155346:12: */
+func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157136:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -136847,6 +138317,135 @@ func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:155346:1
return int32((*Walker)(unsafe.Pointer(bp /* &w */)).FeCode)
}
+// Attempt to omit tables from a join that do not affect the result.
+// For a table to not affect the result, the following must be true:
+//
+// 1) The query must not be an aggregate.
+// 2) The table must be the RHS of a LEFT JOIN.
+// 3) Either the query must be DISTINCT, or else the ON or USING clause
+// must contain a constraint that limits the scan of the table to
+// at most a single row.
+// 4) The table must not be referenced by any part of the query apart
+// from its own USING or ON clause.
+//
+// For example, given:
+//
+// CREATE TABLE t1(ipk INTEGER PRIMARY KEY, v1);
+// CREATE TABLE t2(ipk INTEGER PRIMARY KEY, v2);
+// CREATE TABLE t3(ipk INTEGER PRIMARY KEY, v3);
+//
+// then table t2 can be omitted from the following:
+//
+// SELECT v1, v3 FROM t1
+// LEFT JOIN t2 ON (t1.ipk=t2.ipk)
+// LEFT JOIN t3 ON (t1.ipk=t3.ipk)
+//
+// or from:
+//
+// SELECT DISTINCT v1, v3 FROM t1
+// LEFT JOIN t2
+// LEFT JOIN t3 ON (t1.ipk=t3.ipk)
+func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157197:32: */
+ var i int32
+ var tabUsed Bitmask
+
+ // Preconditions checked by the caller
+
+ // 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)
+ if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy != 0 {
+ tabUsed = tabUsed | Xsqlite3WhereExprListUsage(tls, pWInfo+600, (*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 {
+ continue
+ }
+ if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_WANT_DISTINCT == 0 &&
+ (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_ONEROW) == U32(0) {
+ continue
+ }
+ if tabUsed&(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf != uint64(0) {
+ continue
+ }
+ 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)) ||
+ *(*int32)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + 52)) != (*SrcItem)(unsafe.Pointer(pItem)).FiCursor {
+ break
+ }
+ }
+ }
+ if pTerm < pEnd {
+ continue
+ }
+
+ notReady = notReady & ^(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf
+ 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) {
+ *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED)
+ }
+ }
+ 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))
+ }
+ (*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel--
+
+ }
+ return notReady
+}
+
+// Check to see if there are any SEARCH loops that might benefit from
+// using a Bloom filter. Consider a Bloom filter if:
+//
+// (1) The SEARCH happens more than N times where N is the number
+// of rows in the table that is being considered for the Bloom
+// filter.
+// (2) Some searches are expected to find zero rows. (This is determined
+// by the WHERE_SELFCULL flag on the term.)
+// (3) Bloom-filter processing is not disabled. (Checked by the
+// caller.)
+// (4) The size of the table being searched is known by ANALYZE.
+//
+// This block of code merely checks to see if a Bloom filter would be
+// appropriate, and if so sets the WHERE_BLOOMFILTER flag on the
+// WhereLoop. The implementation of the Bloom filter comes further
+// down where the code for each WhereLoop is generated.
+func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157276:29: */
+ var i int32
+ var nSearch LogEst
+
+ nSearch = (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 864)).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 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 pTab uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FpTab
+ *(*U32)(unsafe.Pointer(pTab + 48)) |= U32(TF_StatsUsed)
+ if int32(nSearch) > int32((*Table)(unsafe.Pointer(pTab)).FnRowLogEst) &&
+ (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasStat1) != U32(0) {
+
+ *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_BLOOMFILTER)
+ *(*U32)(unsafe.Pointer(pLoop + 56)) &= libc.Uint32FromInt32(libc.CplInt32(WHERE_IDX_ONLY))
+
+ }
+ }
+ nSearch = LogEst(int32(nSearch) + int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnOut))
+ }
+}
+
// Generate the beginning of the loop used for WHERE clause processing.
// The return value is a pointer to an opaque structure that contains
// information needed to terminate the loop. Later, the calling routine
@@ -136933,16 +138532,16 @@ func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:155346:1
// 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, wctrlFlags U16, iAuxArg int32) uintptr { /* sqlite3.c:155466:26: */
- bp := tls.Alloc(72)
- defer tls.Free(72)
+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: */
+ bp := tls.Alloc(64)
+ defer tls.Free(64)
var nByteWInfo int32 // Num. bytes allocated for WhereInfo struct
var nTabList int32 // Number of elements in pTabList
var pWInfo uintptr // Will become the return value of this function
var v uintptr // The virtual database engine
var notReady Bitmask // Cursors that are not yet positioned
- // var sWLB WhereLoopBuilder at bp+8, 64
+ // var sWLB WhereLoopBuilder at bp+8, 56
// The WhereLoop builder
var pMaskSet uintptr // The expression mask set
var pLevel uintptr // A single level in pWInfo->a[]
@@ -136953,12 +138552,6 @@ func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
var bFordelete U8
var pT uintptr
var p uintptr
- var nByte int32
- var pTerm uintptr
- var pEnd uintptr
- var pItem uintptr
- var i int32
- var tabUsed Bitmask
var wsFlags int32
var bOnerow int32
var pVTab uintptr
@@ -136996,26 +138589,16 @@ func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
pOrderBy = uintptr(0)
__1:
;
- (*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpOrderBy = pOrderBy
-
- // Disable the DISTINCT optimization if SQLITE_DistinctOpt is set via
- // sqlite3_test_ctrl(SQLITE_TESTCTRL_OPTIMIZATIONS,...)
- if !((*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_DistinctOpt) != U32(0)) {
- goto __2
- }
- wctrlFlags = libc.Uint16FromInt32(int32(wctrlFlags) & libc.CplInt32(WHERE_WANT_DISTINCT))
-__2:
- ;
// The number of tables in the FROM clause is limited by the number of
// bits in a Bitmask
if !((*SrcList)(unsafe.Pointer(pTabList)).FnSrc > int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))) {
- goto __3
+ goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+21775, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21834, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))))
return uintptr(0)
-__3:
+__2:
;
// This function normally generates a nested loop for all tables in
@@ -137037,60 +138620,65 @@ __3:
nByteWInfo = int32((uint64(unsafe.Sizeof(WhereInfo{})) + uint64(nTabList-1)*uint64(unsafe.Sizeof(WhereLevel{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7)))
pWInfo = Xsqlite3DbMallocRawNN(tls, db, uint64(uint64(nByteWInfo)+uint64(unsafe.Sizeof(WhereLoop{}))))
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __4
+ goto __3
}
Xsqlite3DbFree(tls, db, pWInfo)
pWInfo = uintptr(0)
goto whereBeginError
-__4:
+__3:
;
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse = pParse
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList = pTabList
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy = pOrderBy
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpWhere = pWhere
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpResultSet = pResultSet
- *(*int32)(unsafe.Pointer(pWInfo + 40)) = libc.AssignPtrInt32(pWInfo+40+1*4, -1)
+ *(*int32)(unsafe.Pointer(pWInfo + 48)) = libc.AssignPtrInt32(pWInfo+48+1*4, -1)
(*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel = U8(nTabList)
- (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak = libc.AssignPtrInt32(pWInfo+48, Xsqlite3VdbeMakeLabel(tls, pParse))
+ (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak = libc.AssignPtrInt32(pWInfo+56, Xsqlite3VdbeMakeLabel(tls, pParse))
(*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags = wctrlFlags
(*WhereInfo)(unsafe.Pointer(pWInfo)).FiLimit = LogEst(iAuxArg)
(*WhereInfo)(unsafe.Pointer(pWInfo)).FsavedNQueryLoop = int32((*Parse)(unsafe.Pointer(pParse)).FnQueryLoop)
- libc.Xmemset(tls, pWInfo+65, 0,
- uint64(uintptr(0)+104)-uint64(uintptr(0)+65))
- libc.Xmemset(tls, pWInfo+856, 0, uint64(unsafe.Sizeof(WhereLoop{}))+uint64(nTabList)*uint64(unsafe.Sizeof(WhereLevel{})))
+ (*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{})))
// ONEPASS defaults to OFF
- pMaskSet = pWInfo + 592
+ pMaskSet = pWInfo + 600
+ (*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 + 104
+ (*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpWC = pWInfo + 112
(*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.
- (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).Fn = 0
- Xsqlite3WhereClauseInit(tls, pWInfo+104, pWInfo)
- Xsqlite3WhereSplit(tls, pWInfo+104, pWhere, uint8(TK_AND))
+ Xsqlite3WhereClauseInit(tls, pWInfo+112, pWInfo)
+ Xsqlite3WhereSplit(tls, pWInfo+112, pWhere, uint8(TK_AND))
// Special case: No FROM clause
if !(nTabList == 0) {
- goto __5
+ goto __4
}
if !(pOrderBy != 0) {
- goto __7
+ goto __6
}
(*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat = I8((*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr)
-__7:
+__6:
;
- if !(int32(wctrlFlags)&WHERE_WANT_DISTINCT != 0) {
- goto __8
+ if !(int32(wctrlFlags)&WHERE_WANT_DISTINCT != 0 &&
+ (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_DistinctOpt) == U32(0)) {
+ goto __7
}
(*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNIQUE)
-__8:
+__7:
;
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+21803, 0)
- goto __6
-__5:
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+21862, 0)
+ goto __5
+__4:
// Assign a bit from the bitmask to every term in the FROM clause.
//
// The N-th term of the FROM clause is assigned a bitmask of 1<<N.
@@ -137105,27 +138693,28 @@ __5:
// equal to pTabList->nSrc but might be shortened to 1 if the
// WHERE_OR_SUBCLAUSE flag is set.
ii = 0
-__9:
+__8:
createMask(tls, pMaskSet, (*SrcItem)(unsafe.Pointer(pTabList+8+uintptr(ii)*112)).FiCursor)
- Xsqlite3WhereTabFuncArgs(tls, pParse, pTabList+8+uintptr(ii)*112, pWInfo+104)
- goto __10
-__10:
+ Xsqlite3WhereTabFuncArgs(tls, pParse, pTabList+8+uintptr(ii)*112, pWInfo+112)
+ goto __9
+__9:
if libc.PreIncInt32(&ii, 1) < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc {
- goto __9
+ goto __8
}
- goto __11
-__11:
+ goto __10
+__10:
;
-__6:
+__5:
;
// Analyze all of the subexpressions.
- Xsqlite3WhereExprAnalyze(tls, pTabList, pWInfo+104)
+ Xsqlite3WhereExprAnalyze(tls, pTabList, pWInfo+112)
+ Xsqlite3WhereAddLimit(tls, pWInfo+112, pLimit)
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __12
+ goto __11
}
goto whereBeginError
-__12:
+__11:
;
// Special case: WHERE terms that do not refer to any tables in the join
@@ -137139,66 +138728,77 @@ __12:
// FROM ... WHERE random()>0; -- eval random() once per row
// FROM ... WHERE (SELECT random())>0; -- eval random() once overall
ii = 0
-__13:
- if !(ii < (*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpWC)).FnTerm) {
- goto __15
+__12:
+ if !(ii < (*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpWC)).FnBase) {
+ goto __14
}
pT = (*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpWC)).Fa + uintptr(ii)*56
if !(int32((*WhereTerm)(unsafe.Pointer(pT)).FwtFlags)&TERM_VIRTUAL != 0) {
- goto __16
+ goto __15
}
- goto __14
-__16:
+ goto __13
+__15:
;
if !((*WhereTerm)(unsafe.Pointer(pT)).FprereqAll == uint64(0) && (nTabList == 0 || exprIsDeterministic(tls, (*WhereTerm)(unsafe.Pointer(pT)).FpExpr) != 0)) {
- goto __17
+ goto __16
}
Xsqlite3ExprIfFalse(tls, pParse, (*WhereTerm)(unsafe.Pointer(pT)).FpExpr, (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak, SQLITE_JUMPIFNULL)
*(*U16)(unsafe.Pointer(pT + 18)) |= U16(TERM_CODED)
-__17:
+__16:
;
+ goto __13
+__13:
+ ii++
+ goto __12
goto __14
__14:
- ii++
- goto __13
- goto __15
-__15:
;
if !(int32(wctrlFlags)&WHERE_WANT_DISTINCT != 0) {
+ goto __17
+ }
+ if !((*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_DistinctOpt) != U32(0)) {
goto __18
}
- if !(isDistinctRedundant(tls, pParse, pTabList, pWInfo+104, pResultSet) != 0) {
- goto __19
+ // Disable the DISTINCT optimization if SQLITE_DistinctOpt is set via
+ // sqlite3_test_ctrl(SQLITE_TESTCTRL_OPTIMIZATIONS,...)
+ wctrlFlags = libc.Uint16FromInt32(int32(wctrlFlags) & libc.CplInt32(WHERE_WANT_DISTINCT))
+ *(*U16)(unsafe.Pointer(pWInfo + 68)) &= libc.Uint16FromInt32(libc.CplInt32(WHERE_WANT_DISTINCT))
+ goto __19
+__18:
+ if !(isDistinctRedundant(tls, pParse, pTabList, pWInfo+112, pResultSet) != 0) {
+ goto __20
}
// The DISTINCT marking is pointless. Ignore it.
(*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNIQUE)
- goto __20
-__19:
+ goto __21
+__20:
if !(pOrderBy == uintptr(0)) {
- goto __21
+ goto __22
}
// Try to ORDER BY the result set to make distinct processing easier
- *(*U16)(unsafe.Pointer(pWInfo + 60)) |= U16(WHERE_DISTINCTBY)
+ *(*U16)(unsafe.Pointer(pWInfo + 68)) |= U16(WHERE_DISTINCTBY)
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy = pResultSet
+__22:
+ ;
__21:
;
-__20:
+__19:
;
-__18:
+__17:
;
// Construct the WhereLoop objects
if !(nTabList != 1 || whereShortCut(tls, bp+8) == 0) {
- goto __22
+ goto __23
}
rc = whereLoopAddAll(tls, bp+8)
if !(rc != 0) {
- goto __23
+ goto __24
}
goto whereBeginError
-__23:
+__24:
;
// If one or more WhereTerm.truthProb values were used in estimating
@@ -137207,200 +138807,95 @@ __23:
// then we need to rerun the whole loop building process so that all
// loops will be built using the revised truthProb values.
if !(int32((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FbldFlags2)&SQLITE_BLDF2_2NDPASS != 0) {
- goto __24
+ goto __25
}
-__25:
+__26:
if !((*WhereInfo)(unsafe.Pointer(pWInfo)).FpLoops != 0) {
- goto __26
+ goto __27
}
p = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpLoops
(*WhereInfo)(unsafe.Pointer(pWInfo)).FpLoops = (*WhereLoop)(unsafe.Pointer(p)).FpNextLoop
whereLoopDelete(tls, db, p)
- goto __25
-__26:
+ goto __26
+__27:
;
rc = whereLoopAddAll(tls, bp+8)
if !(rc != 0) {
- goto __27
+ goto __28
}
goto whereBeginError
-__27:
+__28:
;
-__24:
+__25:
;
wherePathSolver(tls, pWInfo, int16(0))
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __28
+ goto __29
}
goto whereBeginError
-__28:
+__29:
;
if !((*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy != 0) {
- goto __29
+ goto __30
}
wherePathSolver(tls, pWInfo, int16(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnRowOut)+1))
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __30
+ goto __31
}
goto whereBeginError
-__30:
+__31:
;
-__29:
+__30:
;
-__22:
+__23:
;
if !((*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ReverseOrder) != uint64(0)) {
- goto __31
+ goto __32
}
(*WhereInfo)(unsafe.Pointer(pWInfo)).FrevMask = libc.Uint64(libc.Uint64FromInt32(-1))
-__31:
+__32:
;
- if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __32
+ if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
+ goto __33
}
goto whereBeginError
-__32:
+__33:
;
- // Attempt to omit tables from the join that do not affect the result.
- // For a table to not affect the result, the following must be true:
- //
- // 1) The query must not be an aggregate.
- // 2) The table must be the RHS of a LEFT JOIN.
- // 3) Either the query must be DISTINCT, or else the ON or USING clause
- // must contain a constraint that limits the scan of the table to
- // at most a single row.
- // 4) The table must not be referenced by any part of the query apart
- // from its own USING or ON clause.
- //
- // For example, given:
- //
- // CREATE TABLE t1(ipk INTEGER PRIMARY KEY, v1);
- // CREATE TABLE t2(ipk INTEGER PRIMARY KEY, v2);
- // CREATE TABLE t3(ipk INTEGER PRIMARY KEY, v3);
+ // Attempt to omit tables from a join that do not affect the result.
+ // See the comment on whereOmitNoopJoin() for further information.
//
- // then table t2 can be omitted from the following:
- //
- // SELECT v1, v3 FROM t1
- // LEFT JOIN t2 ON (t1.ipk=t2.ipk)
- // LEFT JOIN t3 ON (t1.ipk=t3.ipk)
- //
- // or from:
- //
- // SELECT DISTINCT v1, v3 FROM t1
- // LEFT JOIN t2
- // LEFT JOIN t3 ON (t1.ipk=t3.ipk)
+ // This query optimization is factored out into a separate "no-inline"
+ // procedure to keep the sqlite3WhereBegin() procedure from becoming
+ // too large. If sqlite3WhereBegin() becomes too large, that prevents
+ // some C-compiler optimizers from in-lining the
+ // sqlite3WhereCodeOneLoopStart() procedure, and it is important to
+ // in-line sqlite3WhereCodeOneLoopStart() for performance reasons.
notReady = libc.CplUint64(uint64(0))
if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) >= 2 &&
pResultSet != uintptr(0) &&
0 == int32(wctrlFlags)&WHERE_AGG_DISTINCT &&
(*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_OmitNoopJoin) == U32(0)) {
- goto __33
- }
- tabUsed = Xsqlite3WhereExprListUsage(tls, pMaskSet, pResultSet)
- if !((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpOrderBy != 0) {
goto __34
}
- tabUsed = tabUsed | Xsqlite3WhereExprListUsage(tls, pMaskSet, (*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpOrderBy)
+ notReady = whereOmitNoopJoin(tls, pWInfo, notReady)
+ nTabList = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)
+
__34:
;
- i = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - 1
-__35:
- if !(i >= 1) {
- goto __37
- }
- pLoop = (*WhereLevel)(unsafe.Pointer(pWInfo + 856 + uintptr(i)*88)).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) {
- goto __38
- }
- goto __36
-__38:
- ;
- if !(int32(wctrlFlags)&WHERE_WANT_DISTINCT == 0 &&
- (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_ONEROW) == U32(0)) {
- goto __39
- }
- goto __36
-__39:
- ;
- if !(tabUsed&(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf != uint64(0)) {
- goto __40
- }
- goto __36
-__40:
- ;
- pEnd = (*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpWC)).Fa + uintptr((*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp+8)).FpWC)).FnTerm)*56
- pTerm = (*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpWC)).Fa
-__41:
- if !(pTerm < pEnd) {
- goto __43
- }
- if !((*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf != uint64(0)) {
- goto __44
- }
- if !(!((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0)) ||
- (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FiRightJoinTable != (*SrcItem)(unsafe.Pointer(pItem)).FiCursor) {
- goto __45
- }
- goto __43
-__45:
- ;
-__44:
- ;
- goto __42
-__42:
- pTerm += 56
- goto __41
- goto __43
-__43:
- ;
- if !(pTerm < pEnd) {
- goto __46
- }
- goto __36
-__46:
- ;
- notReady = notReady & ^(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf
- pTerm = (*WhereClause)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpWC)).Fa
-__47:
- if !(pTerm < pEnd) {
- goto __49
- }
- if !((*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf != uint64(0)) {
- goto __50
- }
- *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED)
-__50:
- ;
- goto __48
-__48:
- pTerm += 56
- goto __47
- goto __49
-__49:
- ;
- if !(i != int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1) {
- goto __51
+ // Check to see if there are any SEARCH loops that might benefit from
+ // using a Bloom filter.
+ if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) >= 2 &&
+ (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_BloomFilter) == U32(0)) {
+ goto __35
}
- nByte = int32(uint64(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1-i) * uint64(unsafe.Sizeof(WhereLevel{})))
- libc.Xmemmove(tls, pWInfo+856+uintptr(i)*88, pWInfo+856+uintptr(i+1)*88, uint64(nByte))
-__51:
- ;
- (*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel--
- nTabList--
- goto __36
-__36:
- i--
- goto __35
- goto __37
-__37:
- ;
-__33:
+ whereCheckIfBloomFilterIsUseful(tls, pWInfo)
+__35:
;
+
*(*U32)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse + 200)) += U32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnRowOut)
// If the caller is an UPDATE or DELETE statement that is requesting
@@ -137423,15 +138918,15 @@ __33:
// that use the OR optimization.
if !(int32(wctrlFlags)&WHERE_ONEPASS_DESIRED != 0) {
- goto __52
+ goto __36
}
- wsFlags = int32((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 856)).FpWLoop)).FwsFlags)
+ wsFlags = int32((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop)).FwsFlags)
bOnerow = libc.Bool32(wsFlags&WHERE_ONEROW != 0)
if !(bOnerow != 0 || 0 != int32(wctrlFlags)&WHERE_ONEPASS_MULTIROW &&
!(int32((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pTabList+8)).FpTab)).FeTabType) == TABTYP_VTAB) &&
(0 == wsFlags&WHERE_MULTI_OR || int32(wctrlFlags)&WHERE_DUPLICATES_OK != 0)) {
- goto __53
+ goto __37
}
(*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass = func() uint8 {
if bOnerow != 0 {
@@ -137440,29 +138935,29 @@ __33:
return uint8(ONEPASS_MULTI)
}()
if !((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pTabList+8)).FpTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) && wsFlags&WHERE_IDX_ONLY != 0) {
- goto __54
+ goto __38
}
if !(int32(wctrlFlags)&WHERE_ONEPASS_MULTIROW != 0) {
- goto __55
+ goto __39
}
bFordelete = U8(OPFLAG_FORDELETE)
-__55:
+__39:
;
- (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 856)).FpWLoop)).FwsFlags = U32(wsFlags & libc.CplInt32(WHERE_IDX_ONLY))
-__54:
+ (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop)).FwsFlags = U32(wsFlags & libc.CplInt32(WHERE_IDX_ONLY))
+__38:
;
-__53:
+__37:
;
-__52:
+__36:
;
// Open all tables in the pTabList and any indices selected for
// searching those tables.
ii = 0
- pLevel = pWInfo + 856 /* &.a */
-__56:
+ pLevel = pWInfo + 864 /* &.a */
+__40:
if !(ii < nTabList) {
- goto __58
+ goto __42
}
pTabItem = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112
@@ -137470,82 +138965,83 @@ __56:
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema)
pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Ephemeral) != U32(0) || int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
- goto __59
+ goto __43
}
// Do nothing
- goto __60
-__59:
+ goto __44
+__43:
if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0)) {
- goto __61
+ goto __45
}
pVTab = Xsqlite3GetVTable(tls, db, pTab)
iCur = (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor
Xsqlite3VdbeAddOp4(tls, v, OP_VOpen, iCur, 0, 0, pVTab, -12)
- goto __62
-__61:
+ goto __46
+__45:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
- goto __63
+ goto __47
}
// noop
- goto __64
-__63:
+ goto __48
+__47:
if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IDX_ONLY) == U32(0) &&
int32(wctrlFlags)&WHERE_OR_SUBCLAUSE == 0) {
- goto __65
+ goto __49
}
op = OP_OpenRead
if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass) != ONEPASS_OFF) {
- goto __67
+ goto __51
}
op = OP_OpenWrite
- *(*int32)(unsafe.Pointer(pWInfo + 40)) = (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor
-__67:
+ *(*int32)(unsafe.Pointer(pWInfo + 48)) = (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor
+__51:
;
Xsqlite3OpenTable(tls, pParse, (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor, iDb, pTab, op)
if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass) == ONEPASS_OFF &&
int32((*Table)(unsafe.Pointer(pTab)).FnCol) < int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)) &&
- (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasGenerated|TF_WithoutRowid) == U32(0)) {
- goto __68
+ (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasGenerated|TF_WithoutRowid) == U32(0) &&
+ (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_AUTO_INDEX|WHERE_BLOOMFILTER) == U32(0)) {
+ goto __52
}
// If we know that only a prefix of the record will be used,
// it is advantageous to reduce the "column count" field in
// the P4 operand of the OP_OpenRead/Write opcode.
b = (*SrcItem)(unsafe.Pointer(pTabItem)).FcolUsed
n = 0
-__69:
+__53:
if !(b != 0) {
- goto __71
+ goto __55
}
- goto __70
-__70:
+ goto __54
+__54:
b = b >> 1
n++
- goto __69
- goto __71
-__71:
+ goto __53
+ goto __55
+__55:
;
Xsqlite3VdbeChangeP4(tls, v, -1, uintptr(int64(n)), -3)
-__68:
+__52:
;
Xsqlite3VdbeChangeP5(tls, v, uint16(bFordelete))
- goto __66
-__65:
+ goto __50
+__49:
Xsqlite3TableLock(tls, pParse, iDb, (*Table)(unsafe.Pointer(pTab)).Ftnum, uint8(0), (*Table)(unsafe.Pointer(pTab)).FzName)
-__66:
+__50:
;
-__64:
+__48:
;
-__62:
+__46:
;
-__60:
+__44:
;
if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_INDEXED) != 0) {
- goto __72
+ goto __56
}
pIx = *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */))
op1 = OP_OpenRead
@@ -137553,51 +139049,51 @@ __60:
if !(!((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) && int32(*(*uint16)(unsafe.Pointer(pIx + 100))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY &&
int32(wctrlFlags)&WHERE_OR_SUBCLAUSE != 0) {
- goto __73
+ goto __57
}
// This is one term of an OR-optimization using the PRIMARY KEY of a
// WITHOUT ROWID table. No need for a separate index
iIndexCur = (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur
op1 = 0
- goto __74
-__73:
+ goto __58
+__57:
if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass) != ONEPASS_OFF) {
- goto __75
+ goto __59
}
pJ = (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pTabItem)).FpTab)).FpIndex
iIndexCur = iAuxArg
-__77:
+__61:
if !(pJ != 0 && pJ != pIx) {
- goto __78
+ goto __62
}
iIndexCur++
pJ = (*Index)(unsafe.Pointer(pJ)).FpNext
- goto __77
-__78:
+ goto __61
+__62:
;
op1 = OP_OpenWrite
- *(*int32)(unsafe.Pointer(pWInfo + 40 + 1*4)) = iIndexCur
- goto __76
-__75:
+ *(*int32)(unsafe.Pointer(pWInfo + 48 + 1*4)) = iIndexCur
+ goto __60
+__59:
if !(iAuxArg != 0 && int32(wctrlFlags)&WHERE_OR_SUBCLAUSE != 0) {
- goto __79
+ goto __63
}
iIndexCur = iAuxArg
op1 = OP_ReopenIdx
- goto __80
-__79:
+ goto __64
+__63:
iIndexCur = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1)
-__80:
+__64:
;
-__76:
+__60:
;
-__74:
+__58:
;
(*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur = iIndexCur
if !(op1 != 0) {
- goto __81
+ goto __65
}
Xsqlite3VdbeAddOp3(tls, v, op1, iIndexCur, int32((*Index)(unsafe.Pointer(pIx)).Ftnum), iDb)
Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pIx)
@@ -137607,66 +139103,74 @@ __74:
(*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_SEEKSCAN) == U32(0) &&
int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_ORDERBY_MIN == 0 &&
int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct) != WHERE_DISTINCT_ORDERED) {
- goto __82
+ goto __66
}
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_SEEKEQ))
-__82:
+__66:
;
-__81:
+__65:
;
-__72:
+__56:
;
if !(iDb >= 0) {
- goto __83
+ goto __67
}
Xsqlite3CodeVerifySchema(tls, pParse, iDb)
-__83:
+__67:
;
- goto __57
-__57:
+ goto __41
+__41:
ii++
- pLevel += 88
- goto __56
- goto __58
-__58:
+ pLevel += 96
+ goto __40
+ goto __42
+__42:
;
(*WhereInfo)(unsafe.Pointer(pWInfo)).FiTop = Xsqlite3VdbeCurrentAddr(tls, v)
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __84
+ goto __68
}
goto whereBeginError
-__84:
+__68:
;
// 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
-__85:
+__69:
if !(ii < nTabList) {
- goto __87
+ goto __71
}
if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
- goto __88
+ goto __72
}
goto whereBeginError
-__88:
+__72:
;
- pLevel = pWInfo + 856 + uintptr(ii)*88
+ pLevel = pWInfo + 864 + uintptr(ii)*96
wsFlags1 = int32((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop)).FwsFlags)
- if !((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop)).FwsFlags&U32(WHERE_AUTO_INDEX) != U32(0)) {
- goto __89
+ if !(wsFlags1&(WHERE_AUTO_INDEX|WHERE_BLOOMFILTER) != 0) {
+ goto __73
}
- constructAutomaticIndex(tls, pParse, pWInfo+104,
+ if !(wsFlags1&WHERE_AUTO_INDEX != 0) {
+ goto __74
+ }
+ constructAutomaticIndex(tls, pParse, pWInfo+112,
pTabList+8+uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112, notReady, pLevel)
+ goto __75
+__74:
+ sqlite3ConstructBloomFilter(tls, pWInfo, ii, pLevel, notReady)
+__75:
+ ;
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __90
+ goto __76
}
goto whereBeginError
-__90:
+__76:
;
-__89:
+__73:
;
addrExplain = Xsqlite3WhereExplainOneScan(tls,
pParse, pTabList, pLevel, wctrlFlags)
@@ -137674,17 +139178,17 @@ __89:
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 __91
+ goto __77
}
_ = addrExplain
-__91:
+__77:
;
- goto __86
-__86:
+ goto __70
+__70:
ii++
- goto __85
- goto __87
-__87:
+ goto __69
+ goto __71
+__71:
;
// Done.
@@ -137695,13 +139199,13 @@ __87:
// Jump here if malloc fails
whereBeginError:
if !(pWInfo != 0) {
- goto __92
+ goto __78
}
whereUndoExprMods(tls, pWInfo)
(*Parse)(unsafe.Pointer(pParse)).FnQueryLoop = U32((*WhereInfo)(unsafe.Pointer(pWInfo)).FsavedNQueryLoop)
whereInfoFree(tls, db, pWInfo)
-__92:
+__78:
;
return uintptr(0)
}
@@ -137713,7 +139217,7 @@ __92:
// Generate the end of the WHERE loop. See comments on
// sqlite3WhereBegin() for additional information.
-func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:156066:21: */
+func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157986:21: */
var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
@@ -137727,7 +139231,7 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:156066:21: *
for i = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - 1; i >= 0; i-- {
var addr int32
- pLevel = pWInfo + 856 + uintptr(i)*88
+ pLevel = pWInfo + 864 + uintptr(i)*96
pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
if int32((*WhereLevel)(unsafe.Pointer(pLevel)).Fop) != OP_Noop {
var addrSeek int32 = 0
@@ -137771,12 +139275,12 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:156066:21: *
} else {
Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont)
}
- if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_ABLE) != U32(0) && *(*int32)(unsafe.Pointer(pLevel + 56)) > 0 {
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_ABLE) != U32(0) && *(*int32)(unsafe.Pointer(pLevel + 64)) > 0 {
var pIn uintptr
var j int32
Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt)
- j = *(*int32)(unsafe.Pointer(pLevel + 56))
- pIn = *(*uintptr)(unsafe.Pointer(pLevel + 56 + 8)) + uintptr(j-1)*20
+ j = *(*int32)(unsafe.Pointer(pLevel + 64))
+ pIn = *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8)) + uintptr(j-1)*20
__1:
if !(j > 0) {
goto __3
@@ -137843,9 +139347,9 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:156066:21: *
Xsqlite3VdbeAddOp1(tls, v, OP_NullRow, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur)
}
if ws&WHERE_INDEXED != 0 ||
- ws&WHERE_MULTI_OR != 0 && *(*uintptr)(unsafe.Pointer(pLevel + 56)) != 0 {
+ ws&WHERE_MULTI_OR != 0 && *(*uintptr)(unsafe.Pointer(pLevel + 64)) != 0 {
if ws&WHERE_MULTI_OR != 0 {
- var pIx uintptr = *(*uintptr)(unsafe.Pointer(pLevel + 56))
+ var pIx uintptr = *(*uintptr)(unsafe.Pointer(pLevel + 64))
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)
@@ -137867,7 +139371,7 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:156066:21: *
Xsqlite3VdbeResolveLabel(tls, v, (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak)
i = 0
- pLevel = pWInfo + 856 /* &.a */
+ pLevel = pWInfo + 864 /* &.a */
__4:
if !(i < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)) {
goto __6
@@ -137906,7 +139410,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 + 56))
+ pIdx = *(*uintptr)(unsafe.Pointer(pLevel + 64))
}
if pIdx != 0 &&
!(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
@@ -137919,14 +139423,16 @@ __4:
pOp = Xsqlite3VdbeGetOp(tls, v, k)
pLastOp = pOp + uintptr(last-k)*24
- for ok := true; ok; ok = libc.PreIncUintptr(&pOp, 24) < pLastOp {
+ for __ccgo := true; __ccgo; __ccgo = libc.PreIncUintptr(&pOp, 24) < pLastOp {
if (*VdbeOp)(unsafe.Pointer(pOp)).Fp1 != (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur {
// no-op
} else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Column ||
int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Offset {
var x int32 = (*VdbeOp)(unsafe.Pointer(pOp)).Fp2
- if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
+ if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Offset {
+ // Do not need to translate the column number
+ } else if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
var pPk uintptr = Xsqlite3PrimaryKeyIndex(tls, pTab)
x = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk)).FaiColumn + uintptr(x)*2)))
@@ -137939,8 +139445,12 @@ __4:
(*VdbeOp)(unsafe.Pointer(pOp)).Fp2 = x
(*VdbeOp)(unsafe.Pointer(pOp)).Fp1 = (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur
- }
+ } else {
+ // Unable to translate the table reference into an index
+ // reference. Verify that this is harmless - that the
+ // table being referenced really is open.
+ }
} else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Rowid {
(*VdbeOp)(unsafe.Pointer(pOp)).Fp1 = (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur
(*VdbeOp)(unsafe.Pointer(pOp)).Fopcode = U8(OP_IdxRowid)
@@ -137956,7 +139466,7 @@ __4:
goto __5
__5:
i++
- pLevel += 88
+ pLevel += 96
goto __4
goto __6
__6:
@@ -138111,7 +139621,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) { /* sqlite3.c:156504:13: */
+func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158442:13: */
var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0))))
if p != 0 {
*(*I64)(unsafe.Pointer(p))++
@@ -138120,7 +139630,7 @@ func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
}
-func row_numberValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156514:13: */
+func row_numberValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158452:13: */
var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0))))
Xsqlite3_result_int64(tls, pCtx, func() int64 {
if p != 0 {
@@ -138136,13 +139646,13 @@ type CallCount = struct {
FnValue I64
FnStep I64
FnTotal I64
-} /* sqlite3.c:156523:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158461: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) { /* sqlite3.c:156535:13: */
+func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158473:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138152,7 +139662,7 @@ func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
}
-func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156546:13: */
+func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158484:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138170,9 +139680,9 @@ func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156546:13:
type NthValueCtx = struct {
FnStep I64
FpValue uintptr
-} /* sqlite3.c:156563:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158501:1 */
-func nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:156567:13: */
+func nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158505:13: */
var p uintptr
var fVal float64
var iVal I64
@@ -138235,10 +139745,10 @@ __1:
error_out:
Xsqlite3_result_error(tls,
- pCtx, ts+21821, -1)
+ pCtx, ts+21880, -1)
}
-func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156608:13: */
+func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158546:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 {
@@ -138248,7 +139758,7 @@ func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156608:13
}
}
-func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:156620:13: */
+func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158558:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{})))
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue == uintptr(0) {
@@ -138261,7 +139771,7 @@ func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
}
-func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156636:13: */
+func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158574:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{})))
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 {
@@ -138275,7 +139785,7 @@ func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156636:
// 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) { /* sqlite3.c:156654:13: */
+func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158592:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138288,7 +139798,7 @@ func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* s
_ = apArg
}
-func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156670:13: */
+func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158608:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138301,7 +139811,7 @@ func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156670:13: */
// 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) { /* sqlite3.c:156685:13: */
+func percent_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158623:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138311,7 +139821,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) { /* sqlite3.c:156698:13: */
+func percent_rankInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158636:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138319,7 +139829,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) { /* sqlite3.c:156709:13: */
+func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158647:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138337,7 +139847,7 @@ func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156709:13
// 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) { /* sqlite3.c:156730:13: */
+func cume_distStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158668:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138347,7 +139857,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) { /* sqlite3.c:156743:13: */
+func cume_distInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158681:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138355,7 +139865,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) { /* sqlite3.c:156754:13: */
+func cume_distValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158692:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 {
@@ -138369,13 +139879,13 @@ type NtileCtx = struct {
FnTotal I64
FnParam I64
FiRow I64
-} /* sqlite3.c:156767:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158705: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) { /* sqlite3.c:156779:13: */
+func ntileStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158717:13: */
var p uintptr
_ = nArg
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{})))
@@ -138384,14 +139894,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+21877, -1)
+ pCtx, ts+21936, -1)
}
}
(*NtileCtx)(unsafe.Pointer(p)).FnTotal++
}
}
-func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:156799:13: */
+func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158737:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138399,7 +139909,7 @@ func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* s
(*NtileCtx)(unsafe.Pointer(p)).FiRow++
}
-func ntileValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156810:13: */
+func ntileValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158748:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{})))
if p != 0 && (*NtileCtx)(unsafe.Pointer(p)).FnParam > int64(0) {
@@ -138425,10 +139935,10 @@ type LastValueCtx = struct {
FpVal uintptr
FnVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:156837:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158775:1 */
// Implementation of last_value().
-func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:156845:13: */
+func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158783:13: */
var p uintptr
_ = nArg
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{})))
@@ -138443,7 +139953,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) { /* sqlite3.c:156863:13: */
+func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158801:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138457,7 +139967,7 @@ func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) {
}
}
-func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156880:13: */
+func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158818:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 {
@@ -138465,7 +139975,7 @@ func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156880:13:
}
}
-func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156887:13: */
+func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158825:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{})))
if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 {
@@ -138481,17 +139991,17 @@ func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156887:1
// comparison of the zName pointer. Example:
//
// if( pFuncDef->zName==row_valueName ){ ... }
-var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 21922)) /* sqlite3.c:156905:19 */
-var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 21933)) /* sqlite3.c:156906:19 */
-var rankName = *(*[5]int8)(unsafe.Pointer(ts + 21944)) /* sqlite3.c:156907:19 */
-var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 21949)) /* sqlite3.c:156908:19 */
-var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 21962)) /* sqlite3.c:156909:19 */
-var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 21972)) /* sqlite3.c:156910:19 */
-var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 21978)) /* sqlite3.c:156911:19 */
-var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 21989)) /* sqlite3.c:156912:19 */
-var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 21999)) /* sqlite3.c:156913:19 */
-var leadName = *(*[5]int8)(unsafe.Pointer(ts + 22011)) /* sqlite3.c:156914:19 */
-var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22016 /* "lag" */)) /* sqlite3.c:156915:19 */
+var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 21981)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158843:19 */
+var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 21992)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158844:19 */
+var rankName = *(*[5]int8)(unsafe.Pointer(ts + 22003)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158845:19 */
+var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 22008)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158846:19 */
+var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 22021)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158847:19 */
+var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 22031)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158848:19 */
+var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 22037)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158849:19 */
+var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 22048)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158850:19 */
+var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 22058)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158851:19 */
+var leadName = *(*[5]int8)(unsafe.Pointer(ts + 22070)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158852:19 */
+var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22075 /* "lag" */)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158853:19 */
// No-op implementations of xStep() and xFinalize(). Used as place-holders
// for built-in window functions that never call those interfaces.
@@ -138500,7 +140010,7 @@ var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22016 /* "lag" */)) /* sqlite3.c:1
// 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) { /* sqlite3.c:156926:13: */ //NO_TEST
+func noopStepFunc(tls *libc.TLS, p uintptr, n int32, a uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158864:13: */ //NO_TEST
_ = p //NO_TEST
_ = n //NO_TEST
_ = a //NO_TEST
@@ -138508,7 +140018,7 @@ func noopStepFunc(tls *libc.TLS, p uintptr, n int32, a uintptr) { /* sqlite3.c:1
}
//NO_TEST
-func noopValueFunc(tls *libc.TLS, p uintptr) { /* sqlite3.c:156936:13: */
+func noopValueFunc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158874:13: */
_ = p /*no-op*/
}
@@ -138523,7 +140033,7 @@ func noopValueFunc(tls *libc.TLS, p uintptr) { /* sqlite3.c:156936:13: */
// xInverse.
// Register those built-in window functions that are not also aggregates.
-func Xsqlite3WindowFunctions(tls *libc.TLS) { /* sqlite3.c:156967:21: */
+func Xsqlite3WindowFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158905:21: */
Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aWindowFuncs)), int32(uint64(unsafe.Sizeof(aWindowFuncs))/uint64(unsafe.Sizeof(FuncDef{}))))
}
@@ -138542,9 +140052,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}} /* sqlite3.c:156968: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-3380500/sqlite3.c:158906:18 */
-func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uintptr { /* sqlite3.c:156988:15: */
+func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158926:15: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -138555,7 +140065,7 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin
}
}
if p == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+22020, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22079, libc.VaList(bp, zName))
}
return p
}
@@ -138575,7 +140085,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) { /* sqlite3.c:157016:21: */
+func Xsqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uintptr, pFunc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158954:21: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -138599,12 +140109,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+22039, 0)
+ ts+22098, 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+22110, 0)
+ ts+22169, 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},
@@ -138627,7 +140137,7 @@ 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+7806)
}
break
}
@@ -138643,16 +140153,16 @@ type WindowUpdate = struct {
FeStart int32
FeEnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:157051:7 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158989:7 */
// Context object passed through sqlite3WalkExprList() to
// selectWindowRewriteExprCb() by selectWindowRewriteEList().
-type WindowRewrite = WindowRewrite1 /* sqlite3.c:157091:30 */
+type WindowRewrite = WindowRewrite1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159029: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 { /* sqlite3.c:157105:12: */
+func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159043:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse
@@ -138751,7 +140261,7 @@ func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) in
return WRC_Continue
}
-func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* sqlite3.c:157187:12: */
+func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159125:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSave uintptr = (*WindowRewrite1)(unsafe.Pointer(p)).FpSubSelect
if pSave == pSelect {
@@ -138775,7 +140285,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) { /* sqlite3.c:157214:13: */
+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: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -138807,7 +140317,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 { /* sqlite3.c:157248:17: */
+func exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend uintptr, bIntToNull int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159186:17: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -138853,7 +140363,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 { /* sqlite3.c:157290:12: */
+func sqlite3WindowExtraAggFuncDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159228: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++
@@ -138861,14 +140371,14 @@ func sqlite3WindowExtraAggFuncDepth(tls *libc.TLS, pWalker uintptr, pExpr uintpt
return WRC_Continue
}
-func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:157299:12: */
+func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159237: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+7893, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ ts+22232, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
}
return WRC_Continue
}
@@ -138878,12 +140388,15 @@ 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 { /* sqlite3.c:157315:20: */
+func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159253:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
var rc int32 = SQLITE_OK
- if (*Select)(unsafe.Pointer(p)).FpWin != 0 && (*Select)(unsafe.Pointer(p)).FpPrior == uintptr(0) && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_WinRewrite) == U32(0) {
+ if (*Select)(unsafe.Pointer(p)).FpWin != 0 &&
+ (*Select)(unsafe.Pointer(p)).FpPrior == uintptr(0) &&
+ (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_WinRewrite) == U32(0) &&
+ !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pSub uintptr = uintptr(0) // The subquery
@@ -139000,7 +140513,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+7402))
+ Xsqlite3Expr(tls, db, TK_INTEGER, ts+7398))
}
pSub = Xsqlite3SelectNew(tls,
@@ -139054,18 +140567,12 @@ func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /*
}{Xsqlite3DbFree})), pTab)
}
- if rc != 0 {
- if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
-
- Xsqlite3ErrorToParser(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, SQLITE_NOMEM)
- }
- }
return rc
}
// Unlink the Window object from the Select to which it is attached,
// if it is attached.
-func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* sqlite3.c:157479:21: */
+func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159417: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 {
@@ -139076,7 +140583,7 @@ func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* sqlite3.c:157
}
// Free the Window object passed as the second argument.
-func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:157490:21: */
+func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159428:21: */
if p != 0 {
Xsqlite3WindowUnlinkFromSelect(tls, p)
Xsqlite3ExprDelete(tls, db, (*Window)(unsafe.Pointer(p)).FpFilter)
@@ -139091,7 +140598,7 @@ func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:1
}
// Free the linked list of Window objects starting at the second argument.
-func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:157507:21: */
+func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159445:21: */
for p != 0 {
var pNext uintptr = (*Window)(unsafe.Pointer(p)).FpNextWin
Xsqlite3WindowDelete(tls, db, p)
@@ -139104,7 +140611,7 @@ func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3
// 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 { /* sqlite3.c:157522:13: */
+func sqlite3WindowOffsetExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159460:13: */
if 0 == Xsqlite3ExprIsConstant(tls, pExpr) {
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
Xsqlite3RenameExprUnmap(tls, pParse, pExpr)
@@ -139116,7 +140623,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 { /* sqlite3.c:157534:23: */
+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: */
var pWin uintptr
var bImplicitFrame int32
pWin = uintptr(0)
@@ -139149,7 +140656,7 @@ __1:
eStart == TK_FOLLOWING && (eEnd == TK_PRECEDING || eEnd == TK_CURRENT)) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+22173, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+22258, 0)
goto windowAllocErr
__2:
;
@@ -139185,7 +140692,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 { /* sqlite3.c:157606:23: */
+func Xsqlite3WindowAssemble(tls *libc.TLS, pParse uintptr, pWin uintptr, pPartition uintptr, pOrderBy uintptr, pBase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159544:23: */
if pWin != 0 {
(*Window)(unsafe.Pointer(pWin)).FpPartition = pPartition
(*Window)(unsafe.Pointer(pWin)).FpOrderBy = pOrderBy
@@ -139204,7 +140711,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) { /* sqlite3.c:157633:21: */
+func Xsqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159571:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -139215,15 +140722,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 + 22205 /* "PARTITION clause" */
+ zErr = ts + 22290 /* "PARTITION clause" */
} else if (*Window)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*Window)(unsafe.Pointer(pWin)).FpOrderBy != 0 {
- zErr = ts + 22222 /* "ORDER BY clause" */
+ zErr = ts + 22307 /* "ORDER BY clause" */
} else if int32((*Window)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 {
- zErr = ts + 22238 /* "frame specificat..." */
+ zErr = ts + 22323 /* "frame specificat..." */
}
if zErr != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+22258, libc.VaList(bp, zErr, (*Window)(unsafe.Pointer(pWin)).FzBase))
+ ts+22343, 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 {
@@ -139238,7 +140745,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) { /* sqlite3.c:157667:21: */
+func Xsqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159605:21: */
if p != 0 {
*(*uintptr)(unsafe.Pointer(p + 64)) = pWin
@@ -139246,7 +140753,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+22291, 0)
+ ts+22376, 0)
}
} else {
Xsqlite3WindowDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWin)
@@ -139257,7 +140764,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) { /* sqlite3.c:157690:21: */
+func Xsqlite3WindowLink(tls *libc.TLS, pSel uintptr, pWin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159628: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
@@ -139277,7 +140784,7 @@ func Xsqlite3WindowLink(tls *libc.TLS, pSel uintptr, pWin uintptr) { /* sqlite3.
// 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 { /* sqlite3.c:157712:20: */
+func Xsqlite3WindowCompare(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr, bFilter int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159650:20: */
var res int32
if p1 == uintptr(0) || p2 == uintptr(0) {
return 1
@@ -139317,7 +140824,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) { /* sqlite3.c:157746:21: */
+func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159684: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
@@ -139393,14 +140900,14 @@ 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) { /* sqlite3.c:157833:13: */
+func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159771:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var regZero int32 = Xsqlite3GetTempReg(tls, pParse)
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regZero)
if eCond >= WINDOW_STARTING_NUM {
var regString int32 = Xsqlite3GetTempReg(tls, pParse)
- Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, regString, 0, ts+1546, -1)
+ Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, regString, 0, ts+1515, -1)
Xsqlite3VdbeAddOp3(tls, v, OP_Ge, regString, Xsqlite3VdbeCurrentAddr(tls, v)+2, reg)
Xsqlite3VdbeChangeP5(tls, v, uint16(SQLITE_AFF_NUMERIC|SQLITE_JUMPIFNULL))
@@ -139422,17 +140929,17 @@ func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /
}
var azErr = [5]uintptr{
- ts + 22338,
- ts + 22391,
- ts + 21821,
- ts + 22442,
- ts + 22494,
-} /* sqlite3.c:157834:21 */
-var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* sqlite3.c:157841:14 */
+ ts + 22423,
+ ts + 22476,
+ ts + 21880,
+ ts + 22527,
+ ts + 22579,
+} /* 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 */
// 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 { /* sqlite3.c:157880:12: */
+func windowArgCount(tls *libc.TLS, pWin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159818:12: */
var pList uintptr
pList = *(*uintptr)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpOwner + 32))
@@ -139457,19 +140964,19 @@ type WindowCodeArg1 = struct {
Fcurrent WindowCsrAndReg
Fend WindowCsrAndReg
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:157887:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159825:9 */
-type WindowCodeArg = WindowCodeArg1 /* sqlite3.c:157887:30 */
+type WindowCodeArg = WindowCodeArg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159825:30 */
type WindowCsrAndReg1 = struct {
Fcsr int32
Freg int32
-} /* sqlite3.c:157887:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159825:9 */
-type WindowCsrAndReg = WindowCsrAndReg1 /* sqlite3.c:157888:32 */
+type WindowCsrAndReg = WindowCsrAndReg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159826: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) { /* sqlite3.c:157972:13: */
+func windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159910:13: */
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var pOrderBy uintptr = (*Window)(unsafe.Pointer(pMWin)).FpOrderBy
if pOrderBy != 0 {
@@ -139505,7 +141012,7 @@ func windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) { /* s
//
// 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) { /* sqlite3.c:158009:13: */
+func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse int32, reg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159947:13: */
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var pWin uintptr
@@ -139576,7 +141083,7 @@ func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse
for iEnd = Xsqlite3VdbeCurrentAddr(tls, v); iOp < iEnd; iOp++ {
var pOp uintptr = Xsqlite3VdbeGetOp(tls, v, iOp)
- if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Column && (*VdbeOp)(unsafe.Pointer(pOp)).Fp1 == (*Window)(unsafe.Pointer(pWin)).FiEphCsr {
+ if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Column && (*VdbeOp)(unsafe.Pointer(pOp)).Fp1 == (*Window)(unsafe.Pointer(pMWin)).FiEphCsr {
(*VdbeOp)(unsafe.Pointer(pOp)).Fp1 = csr
}
}
@@ -139612,7 +141119,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) { /* sqlite3.c:158126:13: */
+func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160064:13: */
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
@@ -139648,7 +141155,7 @@ func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* sqlite3.c:158126:
// 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) { /* sqlite3.c:158165:13: */
+func windowFullScan(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160103:13: */
var pWin uintptr
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
@@ -139755,7 +141262,7 @@ func windowFullScan(tls *libc.TLS, p uintptr) { /* sqlite3.c:158165:13: */
// first_value()
// lag()
// lead()
-func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* sqlite3.c:158271:13: */
+func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160209:13: */
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var v uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpVdbe
@@ -139838,7 +141345,7 @@ func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* sqlite3.c:158271:13: */
// 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 { /* sqlite3.c:158348:12: */
+func windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160286:12: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var regArg int32
var nArg int32 = 0
@@ -139873,7 +141380,7 @@ func windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) int32 { /* sq
// 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 { /* sqlite3.c:158380:12: */
+func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160318:12: */
var pWin uintptr
if (*Window)(unsafe.Pointer(pMWin)).FregStartRowid != 0 {
return 1
@@ -139898,7 +141405,7 @@ func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* sqlite3.c:158380:
// 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) { /* sqlite3.c:158406:13: */
+func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int32, regOld int32, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160344:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if pOrderBy != 0 {
var nVal int32 = (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr
@@ -139935,7 +141442,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) { /* sqlite3.c:158452:13: */
+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: */
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
@@ -140031,7 +141538,7 @@ func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal
// the add/subtract is skipped for these, as required. If reg1 is a NULL,
// then the arithmetic is performed, but since adding or subtracting from
// NULL is always NULL anyway, this case is handled as required too.
- Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, regString, 0, ts+1546, -1)
+ Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, regString, 0, ts+1515, -1)
addrGe = Xsqlite3VdbeAddOp3(tls, v, OP_Ge, regString, 0, reg1)
if op == OP_Ge && arith == OP_Add || op == OP_Le && arith == OP_Subtract {
@@ -140058,7 +141565,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 { /* sqlite3.c:158585:12: */
+func windowCodeOp(tls *libc.TLS, p uintptr, op int32, regCountdown int32, jumpOnEof int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160523:12: */
var csr int32
var reg int32
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
@@ -140206,7 +141713,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 { /* sqlite3.c:158734:23: */
+func Xsqlite3WindowDup(tls *libc.TLS, db uintptr, pOwner uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160672:23: */
var pNew uintptr = uintptr(0)
if p != 0 {
pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Window{})))
@@ -140237,7 +141744,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 { /* sqlite3.c:158767:23: */
+func Xsqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160705:23: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -140262,7 +141769,7 @@ func Xsqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sq
//
// 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 { /* sqlite3.c:158789:12: */
+func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160727:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -140610,7 +142117,7 @@ func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* s
//
// 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) { /* sqlite3.c:159136:21: */
+func Xsqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uintptr, regGosub int32, addrGosub int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161074:21: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -141007,17 +142514,17 @@ type TrigEvent = struct {
Fa int32
F__ccgo_pad1 [4]byte
Fb uintptr
-} /* sqlite3.c:159536:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161474:1 */
type FrameBound = struct {
FeType int32
F__ccgo_pad1 [4]byte
FpExpr uintptr
-} /* sqlite3.c:159538:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161476:1 */
// Disable lookaside memory allocation for objects that might be
// shared across database connections.
-func disableLookaside(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:159544:13: */
+func disableLookaside(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161482:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
(*Parse)(unsafe.Pointer(pParse)).FdisableLookaside++
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++
@@ -141027,7 +142534,7 @@ func disableLookaside(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:159544:13: *
// 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) { /* sqlite3.c:159577:15: */
+func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161515:15: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -141046,19 +142553,19 @@ func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlit
}
cnt++
if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != 0 || (*Select)(unsafe.Pointer(pLoop)).FpLimit != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+22544,
+ Xsqlite3ErrorMsg(tls, pParse, ts+22629,
libc.VaList(bp, func() uintptr {
if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != uintptr(0) {
- return ts + 19658 /* "ORDER BY" */
+ return ts + 19696 /* "ORDER BY" */
}
- return ts + 22586 /* "LIMIT" */
+ return ts + 22671 /* "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+22592, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+22677, 0)
}
}
@@ -141066,7 +142573,7 @@ func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlit
// 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 { /* sqlite3.c:159608:17: */
+func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161546:17: */
if pSelect != 0 {
(*Select)(unsafe.Pointer(pSelect)).FpWith = pWith
parserDoubleLinkSelect(tls, pParse, pSelect)
@@ -141077,10 +142584,8 @@ func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith ui
}
-// Construct a new Expr object from a single identifier. Use the
-// new Expr to populate pOut. Set the span of pOut to be the identifier
-// that created the expression.
-func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* sqlite3.c:159623:15: */
+// 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: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*Token)(unsafe.Pointer(bp)) = t
@@ -141103,6 +142608,7 @@ func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* sq
*(*uintptr)(unsafe.Pointer(p + 8)) = p + 1*72
libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(p + 8)), (*Token)(unsafe.Pointer(bp /* &t */)).Fz, uint64((*Token)(unsafe.Pointer(bp /* &t */)).Fn))
*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 8)) + uintptr((*Token)(unsafe.Pointer(bp /* &t */)).Fn))) = int8(0)
+ *(*int32)(unsafe.Pointer(p + 52)) = int32((int64((*Token)(unsafe.Pointer(bp)).Fz) - int64((*Parse)(unsafe.Pointer(pParse)).FzTail)) / 1)
if int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 8)))))])&0x80 != 0 {
Xsqlite3DequoteExpr(tls, p)
}
@@ -141117,7 +142623,7 @@ func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* sq
// 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) { /* sqlite3.c:159658:15: */
+func binaryToUnaryIfNull(tls *libc.TLS, pParse uintptr, pY uintptr, pA uintptr, op int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161594: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)
@@ -141131,14 +142637,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 { /* sqlite3.c:159672:19: */
+func parserAddExprIdListTerm(tls *libc.TLS, pParse uintptr, pPrior uintptr, pIdToken uintptr, hasCollate int32, sortOrder int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161608: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+22626,
+ Xsqlite3ErrorMsg(tls, pParse, ts+22711,
libc.VaList(bp, (*Token)(unsafe.Pointer(pIdToken)).Fn, (*Token)(unsafe.Pointer(pIdToken)).Fz))
}
Xsqlite3ExprListSetName(tls, pParse, p, pIdToken, 1)
@@ -141206,7 +142712,7 @@ type YYMINORTYPE = struct {
F__ccgo_pad1 [0]uint64
Fyyinit int32
F__ccgo_pad2 [12]byte
-} /* sqlite3.c:159963:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161900:3 */
//************ End control #defines ******************************************
// Define the yytestcase() macro to be a no-op if is not already defined
@@ -141267,600 +142773,606 @@ type YYMINORTYPE = struct {
// yy_default[] Default action for each state.
//
// Begin parsing tables *********************************************
-var yy_action = [2037]uint16{
- /* 0 */ uint16(564), uint16(115), uint16(112), uint16(220), uint16(169), uint16(199), uint16(115), uint16(112), uint16(220), uint16(564),
- /* 10 */ uint16(375), uint16(1266), uint16(564), uint16(376), uint16(564), uint16(270), uint16(1309), uint16(1309), uint16(406), uint16(407),
- /* 20 */ uint16(1084), uint16(199), uint16(1513), uint16(41), uint16(41), uint16(515), uint16(489), uint16(521), uint16(558), uint16(558),
- /* 30 */ uint16(558), uint16(965), uint16(41), uint16(41), uint16(395), uint16(41), uint16(41), uint16(51), uint16(51), uint16(966),
- /* 40 */ uint16(296), uint16(1269), uint16(296), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044),
- /* 50 */ uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(564), uint16(407),
- /* 60 */ uint16(275), uint16(275), uint16(275), uint16(275), uint16(1268), uint16(115), uint16(112), uint16(220), uint16(115), uint16(112),
- /* 70 */ uint16(220), uint16(1512), uint16(846), uint16(561), uint16(516), uint16(561), uint16(115), uint16(112), uint16(220), uint16(250),
- /* 80 */ uint16(217), uint16(71), uint16(71), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044),
- /* 90 */ uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(440), uint16(440),
- /* 100 */ uint16(440), uint16(1149), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117),
- /* 110 */ uint16(117), uint16(116), uint16(442), uint16(1183), uint16(1149), uint16(116), uint16(442), uint16(1149), uint16(546), uint16(513),
- /* 120 */ uint16(1548), uint16(1554), uint16(374), uint16(442), uint16(6), uint16(1183), uint16(1154), uint16(522), uint16(1154), uint16(407),
- /* 130 */ uint16(1556), uint16(461), uint16(373), uint16(1554), uint16(535), uint16(99), uint16(463), uint16(332), uint16(121), uint16(121),
- /* 140 */ uint16(121), uint16(121), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117),
- /* 150 */ uint16(117), uint16(116), uint16(442), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044),
- /* 160 */ uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(1257), uint16(1183),
- /* 170 */ uint16(1184), uint16(1185), uint16(243), uint16(1064), uint16(564), uint16(502), uint16(499), uint16(498), uint16(567), uint16(124),
- /* 180 */ uint16(567), uint16(1183), uint16(1184), uint16(1185), uint16(474), uint16(497), uint16(119), uint16(119), uint16(119), uint16(119),
- /* 190 */ uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(70), uint16(70), uint16(407),
- /* 200 */ uint16(121), uint16(121), uint16(121), uint16(121), uint16(114), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442),
- /* 210 */ uint16(1409), uint16(1469), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117),
- /* 220 */ uint16(117), uint16(116), uint16(442), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044),
- /* 230 */ uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(407), uint16(1031),
- /* 240 */ uint16(1031), uint16(1042), uint16(1045), uint16(81), uint16(382), uint16(541), uint16(378), uint16(80), uint16(119), uint16(119),
- /* 250 */ uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(381),
- /* 260 */ uint16(463), uint16(332), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034),
- /* 270 */ uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(262), uint16(215), uint16(512),
- /* 280 */ uint16(1424), uint16(422), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117),
- /* 290 */ uint16(117), uint16(116), uint16(442), uint16(1231), uint16(1), uint16(1), uint16(571), uint16(2), uint16(1235), uint16(1573),
- /* 300 */ uint16(571), uint16(2), uint16(1235), uint16(307), uint16(1149), uint16(141), uint16(1600), uint16(307), uint16(407), uint16(141),
- /* 310 */ uint16(1183), uint16(361), uint16(1317), uint16(1035), uint16(866), uint16(531), uint16(1317), uint16(1149), uint16(359), uint16(1567),
- /* 320 */ uint16(1149), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117),
- /* 330 */ uint16(116), uint16(442), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034),
- /* 340 */ uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(275), uint16(275), uint16(1001),
- /* 350 */ uint16(426), uint16(275), uint16(275), uint16(1128), uint16(1627), uint16(1021), uint16(1627), uint16(137), uint16(542), uint16(1541),
- /* 360 */ uint16(561), uint16(272), uint16(950), uint16(950), uint16(561), uint16(1423), uint16(1183), uint16(1184), uint16(1185), uint16(1594),
- /* 370 */ uint16(866), uint16(1012), uint16(530), uint16(315), uint16(231), uint16(1011), uint16(468), uint16(1276), uint16(231), uint16(119),
- /* 380 */ uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442),
- /* 390 */ uint16(1570), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117),
- /* 400 */ uint16(116), uint16(442), uint16(330), uint16(359), uint16(1567), uint16(564), uint16(446), uint16(1011), uint16(1011), uint16(1013),
- /* 410 */ uint16(446), uint16(207), uint16(564), uint16(306), uint16(555), uint16(407), uint16(363), uint16(1021), uint16(363), uint16(346),
- /* 420 */ uint16(184), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(71), uint16(71),
- /* 430 */ uint16(439), uint16(438), uint16(1126), uint16(1012), uint16(472), uint16(71), uint16(71), uint16(1011), uint16(205), uint16(122),
- /* 440 */ uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120), uint16(120),
- /* 450 */ uint16(121), uint16(121), uint16(121), uint16(121), uint16(219), uint16(219), uint16(472), uint16(1183), uint16(407), uint16(570),
- /* 460 */ uint16(1183), uint16(1235), uint16(503), uint16(1477), uint16(149), uint16(546), uint16(307), uint16(489), uint16(141), uint16(1011),
- /* 470 */ uint16(1011), uint16(1013), uint16(546), uint16(140), uint16(545), uint16(1317), uint16(1214), uint16(191), uint16(1214), uint16(950),
- /* 480 */ uint16(950), uint16(514), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034),
- /* 490 */ uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(563), uint16(119), uint16(119),
- /* 500 */ uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(283),
- /* 510 */ uint16(275), uint16(275), uint16(415), uint16(1183), uint16(1184), uint16(1185), uint16(1183), uint16(1184), uint16(1185), uint16(372),
- /* 520 */ uint16(1183), uint16(243), uint16(344), uint16(561), uint16(502), uint16(499), uint16(498), uint16(1539), uint16(407), uint16(1540),
- /* 530 */ uint16(1183), uint16(288), uint16(870), uint16(143), uint16(497), uint16(1549), uint16(185), uint16(231), uint16(9), uint16(6),
- /* 540 */ uint16(253), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117),
- /* 550 */ uint16(116), uint16(442), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034),
- /* 560 */ uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(407), uint16(137), uint16(446),
- /* 570 */ uint16(447), uint16(863), uint16(169), uint16(1183), uint16(397), uint16(1204), uint16(1183), uint16(1184), uint16(1185), uint16(931),
- /* 580 */ uint16(526), uint16(1001), uint16(98), uint16(339), uint16(564), uint16(342), uint16(1183), uint16(1184), uint16(1185), uint16(306),
- /* 590 */ uint16(555), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034),
- /* 600 */ uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(452), uint16(71), uint16(71), uint16(275),
- /* 610 */ uint16(275), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117),
- /* 620 */ uint16(116), uint16(442), uint16(561), uint16(417), uint16(306), uint16(555), uint16(1183), uint16(1307), uint16(1307), uint16(1183),
- /* 630 */ uint16(1184), uint16(1185), uint16(1204), uint16(1149), uint16(330), uint16(458), uint16(318), uint16(407), uint16(363), uint16(470),
- /* 640 */ uint16(431), uint16(1167), uint16(32), uint16(541), uint16(527), uint16(350), uint16(1149), uint16(1629), uint16(393), uint16(1149),
- /* 650 */ uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116),
- /* 660 */ uint16(442), uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034),
- /* 670 */ uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(407), uint16(199), uint16(472), uint16(1183),
- /* 680 */ uint16(1022), uint16(472), uint16(1183), uint16(1184), uint16(1185), uint16(386), uint16(151), uint16(539), uint16(1548), uint16(277),
- /* 690 */ uint16(400), uint16(137), uint16(6), uint16(317), uint16(5), uint16(564), uint16(562), uint16(3), uint16(920), uint16(920),
- /* 700 */ uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120),
- /* 710 */ uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(411), uint16(505), uint16(83), uint16(71), uint16(71),
- /* 720 */ uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116),
- /* 730 */ uint16(442), uint16(1183), uint16(218), uint16(428), uint16(1183), uint16(1183), uint16(1184), uint16(1185), uint16(363), uint16(261),
- /* 740 */ uint16(278), uint16(358), uint16(508), uint16(353), uint16(507), uint16(248), uint16(407), uint16(306), uint16(555), uint16(1539),
- /* 750 */ uint16(1006), uint16(349), uint16(363), uint16(291), uint16(489), uint16(302), uint16(293), uint16(1542), uint16(281), uint16(119),
- /* 760 */ uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442),
- /* 770 */ uint16(122), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120),
- /* 780 */ uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(407), uint16(148), uint16(1183), uint16(1184), uint16(1185),
- /* 790 */ uint16(1183), uint16(1184), uint16(1185), uint16(275), uint16(275), uint16(1304), uint16(1257), uint16(1283), uint16(483), uint16(1476),
- /* 800 */ uint16(150), uint16(489), uint16(480), uint16(564), uint16(1187), uint16(1304), uint16(561), uint16(1587), uint16(1255), uint16(122),
- /* 810 */ uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120), uint16(120),
- /* 820 */ uint16(121), uint16(121), uint16(121), uint16(121), uint16(564), uint16(886), uint16(13), uint16(13), uint16(520), uint16(119),
- /* 830 */ uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442),
- /* 840 */ uint16(1183), uint16(420), uint16(417), uint16(564), uint16(269), uint16(269), uint16(1316), uint16(13), uint16(13), uint16(1539),
- /* 850 */ uint16(1546), uint16(16), uint16(16), uint16(322), uint16(6), uint16(407), uint16(506), uint16(561), uint16(1089), uint16(1089),
- /* 860 */ uint16(486), uint16(1187), uint16(425), uint16(1539), uint16(887), uint16(292), uint16(71), uint16(71), uint16(119), uint16(119),
- /* 870 */ uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(122),
- /* 880 */ uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120), uint16(120),
- /* 890 */ uint16(121), uint16(121), uint16(121), uint16(121), uint16(564), uint16(12), uint16(1183), uint16(1184), uint16(1185), uint16(407),
- /* 900 */ uint16(275), uint16(275), uint16(451), uint16(303), uint16(834), uint16(835), uint16(836), uint16(417), uint16(489), uint16(276),
- /* 910 */ uint16(276), uint16(1547), uint16(284), uint16(561), uint16(319), uint16(6), uint16(321), uint16(71), uint16(71), uint16(429),
- /* 920 */ uint16(451), uint16(450), uint16(561), uint16(952), uint16(101), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044),
- /* 930 */ uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(119), uint16(119),
- /* 940 */ uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(1105),
- /* 950 */ uint16(1183), uint16(489), uint16(564), uint16(1312), uint16(437), uint16(455), uint16(478), uint16(564), uint16(246), uint16(245),
- /* 960 */ uint16(244), uint16(1409), uint16(1545), uint16(547), uint16(1106), uint16(405), uint16(6), uint16(1544), uint16(196), uint16(1258),
- /* 970 */ uint16(413), uint16(6), uint16(105), uint16(462), uint16(103), uint16(71), uint16(71), uint16(286), uint16(564), uint16(1107),
- /* 980 */ uint16(13), uint16(13), uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117),
- /* 990 */ uint16(117), uint16(116), uint16(442), uint16(451), uint16(104), uint16(427), uint16(337), uint16(320), uint16(275), uint16(275),
- /* 1000 */ uint16(906), uint16(13), uint16(13), uint16(564), uint16(1482), uint16(1105), uint16(1183), uint16(1184), uint16(1185), uint16(126),
- /* 1010 */ uint16(907), uint16(561), uint16(546), uint16(564), uint16(407), uint16(478), uint16(295), uint16(1321), uint16(253), uint16(200),
- /* 1020 */ uint16(1106), uint16(548), uint16(1482), uint16(1484), uint16(280), uint16(1409), uint16(55), uint16(55), uint16(1287), uint16(561),
- /* 1030 */ uint16(478), uint16(380), uint16(423), uint16(951), uint16(407), uint16(1107), uint16(71), uint16(71), uint16(122), uint16(123),
- /* 1040 */ uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121),
- /* 1050 */ uint16(121), uint16(121), uint16(121), uint16(1204), uint16(407), uint16(287), uint16(552), uint16(309), uint16(122), uint16(123),
- /* 1060 */ uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121),
- /* 1070 */ uint16(121), uint16(121), uint16(121), uint16(441), uint16(1128), uint16(1628), uint16(146), uint16(1628), uint16(122), uint16(111),
- /* 1080 */ uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034), uint16(120), uint16(120), uint16(121),
- /* 1090 */ uint16(121), uint16(121), uint16(121), uint16(404), uint16(403), uint16(1482), uint16(424), uint16(119), uint16(119), uint16(119),
- /* 1100 */ uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(1183), uint16(564),
- /* 1110 */ uint16(1204), uint16(544), uint16(1086), uint16(858), uint16(329), uint16(361), uint16(1086), uint16(119), uint16(119), uint16(119),
- /* 1120 */ uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(564), uint16(294),
- /* 1130 */ uint16(144), uint16(523), uint16(56), uint16(56), uint16(224), uint16(564), uint16(510), uint16(119), uint16(119), uint16(119),
- /* 1140 */ uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116), uint16(442), uint16(484), uint16(1409),
- /* 1150 */ uint16(537), uint16(15), uint16(15), uint16(1126), uint16(434), uint16(439), uint16(438), uint16(407), uint16(13), uint16(13),
- /* 1160 */ uint16(1523), uint16(12), uint16(926), uint16(1211), uint16(1183), uint16(1184), uint16(1185), uint16(925), uint16(1213), uint16(536),
- /* 1170 */ uint16(858), uint16(557), uint16(413), uint16(193), uint16(1525), uint16(494), uint16(1212), uint16(448), uint16(1160), uint16(1222),
- /* 1180 */ uint16(1183), uint16(564), uint16(123), uint16(113), uint16(1207), uint16(1207), uint16(1041), uint16(1044), uint16(1034), uint16(1034),
- /* 1190 */ uint16(120), uint16(120), uint16(121), uint16(121), uint16(121), uint16(121), uint16(1521), uint16(1149), uint16(564), uint16(965),
- /* 1200 */ uint16(564), uint16(1214), uint16(247), uint16(1214), uint16(13), uint16(13), uint16(1409), uint16(966), uint16(538), uint16(564),
- /* 1210 */ uint16(1149), uint16(108), uint16(556), uint16(1149), uint16(4), uint16(310), uint16(392), uint16(1227), uint16(17), uint16(194),
- /* 1220 */ uint16(485), uint16(43), uint16(43), uint16(57), uint16(57), uint16(306), uint16(555), uint16(524), uint16(559), uint16(1160),
- /* 1230 */ uint16(464), uint16(564), uint16(44), uint16(44), uint16(392), uint16(1127), uint16(1183), uint16(1184), uint16(1185), uint16(479),
- /* 1240 */ uint16(119), uint16(119), uint16(119), uint16(119), uint16(118), uint16(118), uint16(117), uint16(117), uint16(117), uint16(116),
- /* 1250 */ uint16(442), uint16(443), uint16(564), uint16(327), uint16(13), uint16(13), uint16(564), uint16(418), uint16(1315), uint16(414),
- /* 1260 */ uint16(171), uint16(564), uint16(311), uint16(553), uint16(213), uint16(529), uint16(1253), uint16(564), uint16(517), uint16(543),
- /* 1270 */ uint16(412), uint16(108), uint16(556), uint16(137), uint16(4), uint16(58), uint16(58), uint16(435), uint16(314), uint16(59),
- /* 1280 */ uint16(59), uint16(274), uint16(217), uint16(549), uint16(60), uint16(60), uint16(349), uint16(476), uint16(559), uint16(1353),
- /* 1290 */ uint16(61), uint16(61), uint16(1021), uint16(275), uint16(275), uint16(1228), uint16(213), uint16(564), uint16(106), uint16(106),
- /* 1300 */ uint16(8), uint16(275), uint16(275), uint16(275), uint16(275), uint16(107), uint16(561), uint16(443), uint16(566), uint16(565),
- /* 1310 */ uint16(564), uint16(443), uint16(1011), uint16(1228), uint16(561), uint16(564), uint16(561), uint16(564), uint16(275), uint16(275),
- /* 1320 */ uint16(62), uint16(62), uint16(1352), uint16(553), uint16(247), uint16(456), uint16(564), uint16(98), uint16(110), uint16(306),
- /* 1330 */ uint16(555), uint16(561), uint16(564), uint16(45), uint16(45), uint16(405), uint16(1203), uint16(533), uint16(46), uint16(46),
- /* 1340 */ uint16(47), uint16(47), uint16(532), uint16(465), uint16(1011), uint16(1011), uint16(1013), uint16(1014), uint16(27), uint16(49),
- /* 1350 */ uint16(49), uint16(564), uint16(1021), uint16(405), uint16(469), uint16(50), uint16(50), uint16(564), uint16(106), uint16(106),
- /* 1360 */ uint16(305), uint16(564), uint16(84), uint16(204), uint16(405), uint16(107), uint16(564), uint16(443), uint16(566), uint16(565),
- /* 1370 */ uint16(405), uint16(564), uint16(1011), uint16(564), uint16(63), uint16(63), uint16(564), uint16(1599), uint16(564), uint16(895),
- /* 1380 */ uint16(64), uint16(64), uint16(457), uint16(477), uint16(65), uint16(65), uint16(147), uint16(96), uint16(38), uint16(14),
- /* 1390 */ uint16(14), uint16(1528), uint16(412), uint16(564), uint16(66), uint16(66), uint16(128), uint16(128), uint16(926), uint16(67),
- /* 1400 */ uint16(67), uint16(52), uint16(52), uint16(925), uint16(1011), uint16(1011), uint16(1013), uint16(1014), uint16(27), uint16(1572),
- /* 1410 */ uint16(1171), uint16(445), uint16(208), uint16(1123), uint16(279), uint16(394), uint16(68), uint16(68), uint16(228), uint16(390),
- /* 1420 */ uint16(390), uint16(389), uint16(264), uint16(387), uint16(1171), uint16(445), uint16(843), uint16(877), uint16(279), uint16(108),
- /* 1430 */ uint16(556), uint16(453), uint16(4), uint16(390), uint16(390), uint16(389), uint16(264), uint16(387), uint16(564), uint16(225),
- /* 1440 */ uint16(843), uint16(313), uint16(328), uint16(1003), uint16(98), uint16(252), uint16(559), uint16(544), uint16(471), uint16(312),
- /* 1450 */ uint16(252), uint16(564), uint16(208), uint16(225), uint16(564), uint16(313), uint16(473), uint16(30), uint16(252), uint16(279),
- /* 1460 */ uint16(466), uint16(69), uint16(69), uint16(312), uint16(390), uint16(390), uint16(389), uint16(264), uint16(387), uint16(443),
- /* 1470 */ uint16(333), uint16(843), uint16(98), uint16(564), uint16(53), uint16(53), uint16(323), uint16(157), uint16(157), uint16(227),
- /* 1480 */ uint16(495), uint16(553), uint16(249), uint16(289), uint16(225), uint16(564), uint16(313), uint16(162), uint16(31), uint16(1501),
- /* 1490 */ uint16(135), uint16(564), uint16(1500), uint16(227), uint16(312), uint16(533), uint16(158), uint16(158), uint16(885), uint16(884),
- /* 1500 */ uint16(534), uint16(162), uint16(873), uint16(301), uint16(135), uint16(564), uint16(481), uint16(226), uint16(76), uint16(76),
- /* 1510 */ uint16(1021), uint16(347), uint16(1071), uint16(98), uint16(54), uint16(54), uint16(106), uint16(106), uint16(1067), uint16(564),
- /* 1520 */ uint16(249), uint16(226), uint16(519), uint16(107), uint16(227), uint16(443), uint16(566), uint16(565), uint16(72), uint16(72),
- /* 1530 */ uint16(1011), uint16(334), uint16(162), uint16(564), uint16(230), uint16(135), uint16(108), uint16(556), uint16(959), uint16(4),
- /* 1540 */ uint16(252), uint16(408), uint16(129), uint16(129), uint16(564), uint16(1349), uint16(306), uint16(555), uint16(564), uint16(923),
- /* 1550 */ uint16(564), uint16(110), uint16(226), uint16(559), uint16(564), uint16(408), uint16(73), uint16(73), uint16(564), uint16(873),
- /* 1560 */ uint16(306), uint16(555), uint16(1011), uint16(1011), uint16(1013), uint16(1014), uint16(27), uint16(130), uint16(130), uint16(1071),
- /* 1570 */ uint16(449), uint16(131), uint16(131), uint16(127), uint16(127), uint16(357), uint16(443), uint16(156), uint16(156), uint16(892),
- /* 1580 */ uint16(893), uint16(155), uint16(155), uint16(338), uint16(449), uint16(356), uint16(408), uint16(564), uint16(553), uint16(968),
- /* 1590 */ uint16(969), uint16(306), uint16(555), uint16(1015), uint16(341), uint16(564), uint16(108), uint16(556), uint16(564), uint16(4),
- /* 1600 */ uint16(1132), uint16(1286), uint16(533), uint16(564), uint16(856), uint16(343), uint16(145), uint16(532), uint16(345), uint16(1300),
- /* 1610 */ uint16(136), uint16(136), uint16(1083), uint16(559), uint16(1083), uint16(449), uint16(564), uint16(1021), uint16(134), uint16(134),
- /* 1620 */ uint16(1284), uint16(132), uint16(132), uint16(106), uint16(106), uint16(1285), uint16(133), uint16(133), uint16(564), uint16(352),
- /* 1630 */ uint16(107), uint16(564), uint16(443), uint16(566), uint16(565), uint16(1340), uint16(443), uint16(1011), uint16(362), uint16(75),
- /* 1640 */ uint16(75), uint16(1082), uint16(564), uint16(1082), uint16(564), uint16(924), uint16(1561), uint16(110), uint16(553), uint16(551),
- /* 1650 */ uint16(1015), uint16(77), uint16(77), uint16(1361), uint16(74), uint16(74), uint16(1408), uint16(1336), uint16(1347), uint16(550),
- /* 1660 */ uint16(1414), uint16(1265), uint16(1256), uint16(1244), uint16(1243), uint16(42), uint16(42), uint16(48), uint16(48), uint16(1011),
- /* 1670 */ uint16(1011), uint16(1013), uint16(1014), uint16(27), uint16(1245), uint16(1580), uint16(490), uint16(1021), uint16(267), uint16(202),
- /* 1680 */ uint16(1333), uint16(365), uint16(11), uint16(106), uint16(106), uint16(930), uint16(367), uint16(210), uint16(369), uint16(391),
- /* 1690 */ uint16(107), uint16(1395), uint16(443), uint16(566), uint16(565), uint16(223), uint16(1390), uint16(1011), uint16(500), uint16(454),
- /* 1700 */ uint16(282), uint16(1400), uint16(285), uint16(108), uint16(556), uint16(214), uint16(4), uint16(325), uint16(1383), uint16(1283),
- /* 1710 */ uint16(475), uint16(355), uint16(1473), uint16(1583), uint16(1472), uint16(1399), uint16(371), uint16(1222), uint16(326), uint16(398),
- /* 1720 */ uint16(559), uint16(290), uint16(331), uint16(197), uint16(100), uint16(556), uint16(209), uint16(4), uint16(198), uint16(1011),
- /* 1730 */ uint16(1011), uint16(1013), uint16(1014), uint16(27), uint16(385), uint16(256), uint16(1520), uint16(1518), uint16(554), uint16(1219),
- /* 1740 */ uint16(416), uint16(559), uint16(83), uint16(443), uint16(173), uint16(206), uint16(182), uint16(221), uint16(459), uint16(167),
- /* 1750 */ uint16(177), uint16(460), uint16(175), uint16(493), uint16(233), uint16(553), uint16(79), uint16(178), uint16(1396), uint16(179),
- /* 1760 */ uint16(35), uint16(180), uint16(96), uint16(1402), uint16(443), uint16(396), uint16(36), uint16(467), uint16(1478), uint16(1401),
- /* 1770 */ uint16(482), uint16(237), uint16(1404), uint16(399), uint16(82), uint16(186), uint16(553), uint16(1467), uint16(89), uint16(488),
- /* 1780 */ uint16(190), uint16(268), uint16(239), uint16(491), uint16(1021), uint16(340), uint16(240), uint16(401), uint16(1246), uint16(1489),
- /* 1790 */ uint16(106), uint16(106), uint16(336), uint16(509), uint16(1294), uint16(241), uint16(1303), uint16(107), uint16(430), uint16(443),
- /* 1800 */ uint16(566), uint16(565), uint16(1302), uint16(91), uint16(1011), uint16(1021), uint16(1598), uint16(1301), uint16(1273), uint16(215),
- /* 1810 */ uint16(1597), uint16(106), uint16(106), uint16(402), uint16(877), uint16(432), uint16(354), uint16(1272), uint16(107), uint16(1271),
- /* 1820 */ uint16(443), uint16(566), uint16(565), uint16(1596), uint16(1566), uint16(1011), uint16(1293), uint16(433), uint16(518), uint16(299),
- /* 1830 */ uint16(300), uint16(360), uint16(95), uint16(525), uint16(1344), uint16(364), uint16(1011), uint16(1011), uint16(1013), uint16(1014),
- /* 1840 */ uint16(27), uint16(254), uint16(255), uint16(1552), uint16(436), uint16(1551), uint16(125), uint16(544), uint16(10), uint16(379),
- /* 1850 */ uint16(1326), uint16(1453), uint16(102), uint16(97), uint16(1345), uint16(528), uint16(304), uint16(1011), uint16(1011), uint16(1013),
- /* 1860 */ uint16(1014), uint16(27), uint16(366), uint16(377), uint16(1343), uint16(1342), uint16(368), uint16(370), uint16(1325), uint16(384),
- /* 1870 */ uint16(201), uint16(383), uint16(34), uint16(1368), uint16(1367), uint16(568), uint16(1177), uint16(266), uint16(263), uint16(265),
- /* 1880 */ uint16(1505), uint16(159), uint16(569), uint16(1241), uint16(1236), uint16(1506), uint16(160), uint16(142), uint16(1504), uint16(1503),
- /* 1890 */ uint16(297), uint16(211), uint16(830), uint16(161), uint16(212), uint16(78), uint16(444), uint16(203), uint16(308), uint16(222),
- /* 1900 */ uint16(1081), uint16(139), uint16(1079), uint16(316), uint16(174), uint16(163), uint16(1203), uint16(229), uint16(176), uint16(909),
- /* 1910 */ uint16(324), uint16(232), uint16(1095), uint16(181), uint16(409), uint16(410), uint16(172), uint16(164), uint16(165), uint16(419),
- /* 1920 */ uint16(183), uint16(85), uint16(86), uint16(421), uint16(166), uint16(87), uint16(88), uint16(1098), uint16(1094), uint16(234),
- /* 1930 */ uint16(235), uint16(152), uint16(18), uint16(236), uint16(335), uint16(1087), uint16(1216), uint16(252), uint16(187), uint16(487),
- /* 1940 */ uint16(238), uint16(188), uint16(37), uint16(845), uint16(492), uint16(356), uint16(242), uint16(496), uint16(351), uint16(501),
- /* 1950 */ uint16(189), uint16(90), uint16(19), uint16(504), uint16(348), uint16(20), uint16(875), uint16(92), uint16(298), uint16(168),
- /* 1960 */ uint16(888), uint16(153), uint16(93), uint16(511), uint16(94), uint16(1165), uint16(154), uint16(1047), uint16(1134), uint16(39),
- /* 1970 */ uint16(216), uint16(1133), uint16(271), uint16(273), uint16(958), uint16(192), uint16(953), uint16(110), uint16(1151), uint16(1155),
- /* 1980 */ uint16(251), uint16(7), uint16(21), uint16(1159), uint16(1139), uint16(22), uint16(1153), uint16(33), uint16(23), uint16(24),
- /* 1990 */ uint16(25), uint16(540), uint16(1158), uint16(195), uint16(98), uint16(1062), uint16(26), uint16(1048), uint16(1046), uint16(1050),
- /* 2000 */ uint16(1104), uint16(1051), uint16(1103), uint16(257), uint16(258), uint16(28), uint16(40), uint16(1173), uint16(1016), uint16(857),
- /* 2010 */ uint16(109), uint16(29), uint16(560), uint16(388), uint16(138), uint16(1172), uint16(259), uint16(170), uint16(260), uint16(1232),
- /* 2020 */ uint16(1232), uint16(919), uint16(1232), uint16(1232), uint16(1232), uint16(1232), uint16(1232), uint16(1232), uint16(1232), uint16(1232),
- /* 2030 */ uint16(1232), uint16(1232), uint16(1589), uint16(1232), uint16(1232), uint16(1232), uint16(1588),
-} /* sqlite3.c:160057:27 */
-var yy_lookahead = [2221]uint16{
- /* 0 */ uint16(192), uint16(273), uint16(274), uint16(275), uint16(192), uint16(192), uint16(273), uint16(274), uint16(275), uint16(192),
- /* 10 */ uint16(218), uint16(215), uint16(192), uint16(218), uint16(192), uint16(212), uint16(234), uint16(235), uint16(205), uint16(19),
- /* 20 */ uint16(11), uint16(192), uint16(294), uint16(215), uint16(216), uint16(203), uint16(192), uint16(203), uint16(209), uint16(210),
- /* 30 */ uint16(211), uint16(31), uint16(215), uint16(216), uint16(205), uint16(215), uint16(216), uint16(215), uint16(216), uint16(39),
- /* 40 */ uint16(227), uint16(215), uint16(229), 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(192), uint16(19),
- /* 60 */ uint16(238), uint16(239), uint16(238), uint16(239), uint16(215), uint16(273), uint16(274), uint16(275), uint16(273), uint16(274),
- /* 70 */ uint16(275), uint16(237), uint16(21), uint16(251), uint16(252), uint16(251), uint16(273), uint16(274), uint16(275), uint16(255),
- /* 80 */ uint16(256), uint16(215), uint16(216), 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(209), uint16(210),
- /* 100 */ uint16(211), uint16(76), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109),
- /* 110 */ uint16(110), uint16(111), uint16(112), uint16(59), uint16(89), uint16(111), uint16(112), uint16(92), uint16(252), uint16(307),
- /* 120 */ uint16(308), uint16(313), uint16(314), uint16(112), uint16(312), uint16(59), uint16(86), uint16(261), uint16(88), uint16(19),
- /* 130 */ uint16(313), uint16(80), uint16(315), uint16(313), uint16(314), uint16(25), uint16(127), uint16(128), uint16(54), uint16(55),
- /* 140 */ uint16(56), uint16(57), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109),
- /* 150 */ uint16(110), uint16(111), uint16(112), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49),
- /* 160 */ uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(192), uint16(115),
- /* 170 */ uint16(116), uint16(117), uint16(118), uint16(122), uint16(192), uint16(121), uint16(122), uint16(123), uint16(202), uint16(69),
- /* 180 */ uint16(204), uint16(115), uint16(116), uint16(117), uint16(192), uint16(131), uint16(102), uint16(103), uint16(104), uint16(105),
- /* 190 */ uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(215), uint16(216), uint16(19),
- /* 200 */ uint16(54), uint16(55), uint16(56), uint16(57), uint16(58), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112),
- /* 210 */ uint16(192), uint16(160), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109),
- /* 220 */ uint16(110), uint16(111), uint16(112), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49),
- /* 230 */ uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(19), uint16(46),
- /* 240 */ uint16(47), uint16(48), uint16(49), uint16(24), uint16(248), uint16(192), uint16(250), uint16(67), uint16(102), uint16(103),
- /* 250 */ uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(277),
- /* 260 */ uint16(127), uint16(128), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50),
- /* 270 */ uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(26), uint16(164), uint16(165),
- /* 280 */ uint16(272), uint16(263), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109),
- /* 290 */ uint16(110), uint16(111), uint16(112), uint16(184), uint16(185), uint16(186), uint16(187), uint16(188), uint16(189), uint16(186),
- /* 300 */ uint16(187), uint16(188), uint16(189), uint16(194), uint16(76), uint16(196), uint16(229), uint16(194), uint16(19), uint16(196),
- /* 310 */ uint16(59), uint16(192), uint16(203), uint16(120), uint16(59), uint16(87), uint16(203), uint16(89), uint16(310), uint16(311),
- /* 320 */ uint16(92), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110),
- /* 330 */ uint16(111), uint16(112), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50),
- /* 340 */ uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(238), uint16(239), uint16(73),
- /* 350 */ uint16(231), uint16(238), uint16(239), uint16(22), uint16(23), uint16(100), uint16(25), uint16(81), uint16(305), uint16(306),
- /* 360 */ uint16(251), uint16(23), uint16(25), uint16(25), uint16(251), uint16(272), uint16(115), uint16(116), uint16(117), uint16(214),
- /* 370 */ uint16(115), uint16(116), uint16(144), uint16(192), uint16(265), uint16(120), uint16(114), uint16(222), uint16(265), uint16(102),
- /* 380 */ uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112),
- /* 390 */ uint16(192), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110),
- /* 400 */ uint16(111), uint16(112), uint16(126), uint16(310), uint16(311), uint16(192), uint16(297), uint16(152), uint16(153), uint16(154),
- /* 410 */ uint16(297), uint16(149), uint16(192), uint16(137), uint16(138), uint16(19), uint16(192), uint16(100), uint16(192), uint16(23),
- /* 420 */ uint16(22), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(215), uint16(216),
- /* 430 */ uint16(106), uint16(107), uint16(101), uint16(116), uint16(192), uint16(215), uint16(216), uint16(120), uint16(149), uint16(43),
- /* 440 */ uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53),
- /* 450 */ uint16(54), uint16(55), uint16(56), uint16(57), uint16(117), uint16(117), uint16(192), uint16(59), uint16(19), uint16(187),
- /* 460 */ uint16(59), uint16(189), uint16(23), uint16(282), uint16(240), uint16(252), uint16(194), uint16(192), uint16(196), uint16(152),
- /* 470 */ uint16(153), uint16(154), uint16(252), uint16(72), uint16(261), uint16(203), uint16(152), uint16(25), uint16(154), uint16(142),
- /* 480 */ uint16(142), uint16(261), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50),
- /* 490 */ uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(192), uint16(102), uint16(103),
- /* 500 */ uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(267),
- /* 510 */ uint16(238), uint16(239), uint16(237), uint16(115), uint16(116), uint16(117), uint16(115), uint16(116), uint16(117), uint16(192),
- /* 520 */ uint16(59), uint16(118), uint16(16), uint16(251), uint16(121), uint16(122), uint16(123), uint16(303), uint16(19), uint16(303),
- /* 530 */ uint16(59), uint16(267), uint16(23), uint16(72), uint16(131), uint16(308), uint16(22), uint16(265), uint16(22), uint16(312),
- /* 540 */ uint16(24), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110),
- /* 550 */ uint16(111), uint16(112), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50),
- /* 560 */ uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(19), uint16(81), uint16(297),
- /* 570 */ uint16(295), uint16(23), uint16(192), uint16(59), uint16(203), uint16(59), uint16(115), uint16(116), uint16(117), uint16(108),
- /* 580 */ uint16(192), uint16(73), uint16(25), uint16(77), uint16(192), uint16(79), uint16(115), uint16(116), uint16(117), uint16(137),
- /* 590 */ uint16(138), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51),
- /* 600 */ uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(119), uint16(215), uint16(216), uint16(238),
- /* 610 */ uint16(239), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110),
- /* 620 */ uint16(111), uint16(112), uint16(251), uint16(192), uint16(137), uint16(138), uint16(59), uint16(234), uint16(235), uint16(115),
- /* 630 */ uint16(116), uint16(117), uint16(116), uint16(76), uint16(126), uint16(127), uint16(128), uint16(19), uint16(192), uint16(268),
- /* 640 */ uint16(19), uint16(23), uint16(22), uint16(192), uint16(252), uint16(24), uint16(89), uint16(300), uint16(301), uint16(92),
- /* 650 */ uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111),
- /* 660 */ uint16(112), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51),
- /* 670 */ uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(19), uint16(192), uint16(192), uint16(59),
- /* 680 */ uint16(23), uint16(192), uint16(115), uint16(116), uint16(117), uint16(200), uint16(240), uint16(307), uint16(308), uint16(22),
- /* 690 */ uint16(205), uint16(81), uint16(312), uint16(262), uint16(22), uint16(192), uint16(133), uint16(22), uint16(135), uint16(136),
- /* 700 */ uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52),
- /* 710 */ uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(197), uint16(95), uint16(150), uint16(215), uint16(216),
- /* 720 */ uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111),
- /* 730 */ uint16(112), uint16(59), uint16(192), uint16(112), uint16(59), uint16(115), uint16(116), uint16(117), uint16(192), uint16(118),
- /* 740 */ uint16(119), uint16(120), uint16(121), uint16(122), uint16(123), uint16(124), uint16(19), uint16(137), uint16(138), uint16(303),
- /* 750 */ uint16(23), uint16(130), uint16(192), uint16(267), uint16(192), uint16(252), uint16(267), uint16(306), uint16(203), uint16(102),
- /* 760 */ uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112),
- /* 770 */ uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52),
- /* 780 */ uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(19), uint16(240), uint16(115), uint16(116), uint16(117),
- /* 790 */ uint16(115), uint16(116), uint16(117), uint16(238), uint16(239), uint16(222), uint16(192), uint16(224), uint16(280), uint16(237),
- /* 800 */ uint16(240), uint16(192), uint16(284), uint16(192), uint16(59), uint16(232), uint16(251), uint16(140), uint16(204), uint16(43),
- /* 810 */ uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53),
- /* 820 */ uint16(54), uint16(55), uint16(56), uint16(57), uint16(192), uint16(35), uint16(215), uint16(216), uint16(192), uint16(102),
- /* 830 */ uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112),
- /* 840 */ uint16(59), uint16(230), uint16(192), uint16(192), uint16(238), uint16(239), uint16(237), uint16(215), uint16(216), uint16(303),
- /* 850 */ uint16(308), uint16(215), uint16(216), uint16(16), uint16(312), uint16(19), uint16(66), uint16(251), uint16(126), uint16(127),
- /* 860 */ uint16(128), uint16(116), uint16(230), uint16(303), uint16(74), uint16(203), uint16(215), uint16(216), uint16(102), uint16(103),
- /* 870 */ uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(43),
- /* 880 */ uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53),
- /* 890 */ uint16(54), uint16(55), uint16(56), uint16(57), uint16(192), uint16(212), uint16(115), uint16(116), uint16(117), uint16(19),
- /* 900 */ uint16(238), uint16(239), uint16(192), uint16(252), uint16(7), uint16(8), uint16(9), uint16(192), uint16(192), uint16(238),
- /* 910 */ uint16(239), uint16(308), uint16(262), uint16(251), uint16(77), uint16(312), uint16(79), uint16(215), uint16(216), uint16(129),
- /* 920 */ uint16(210), uint16(211), uint16(251), uint16(142), uint16(158), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49),
- /* 930 */ uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(102), uint16(103),
- /* 940 */ uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(12),
- /* 950 */ uint16(59), uint16(192), uint16(192), uint16(237), uint16(252), uint16(243), uint16(192), uint16(192), uint16(126), uint16(127),
- /* 960 */ uint16(128), uint16(192), uint16(308), uint16(203), uint16(27), uint16(253), uint16(312), uint16(308), uint16(285), uint16(207),
- /* 970 */ uint16(208), uint16(312), uint16(157), uint16(290), uint16(159), uint16(215), uint16(216), uint16(262), uint16(192), uint16(42),
- /* 980 */ uint16(215), uint16(216), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109),
- /* 990 */ uint16(110), uint16(111), uint16(112), uint16(283), uint16(158), uint16(230), uint16(237), uint16(160), uint16(238), uint16(239),
- /* 1000 */ uint16(63), uint16(215), uint16(216), uint16(192), uint16(192), uint16(12), uint16(115), uint16(116), uint16(117), uint16(22),
- /* 1010 */ uint16(73), uint16(251), uint16(252), uint16(192), uint16(19), uint16(192), uint16(230), uint16(239), uint16(24), uint16(24),
- /* 1020 */ uint16(27), uint16(261), uint16(210), uint16(211), uint16(99), uint16(192), uint16(215), uint16(216), uint16(225), uint16(251),
- /* 1030 */ uint16(192), uint16(192), uint16(263), uint16(142), uint16(19), uint16(42), uint16(215), uint16(216), uint16(43), uint16(44),
- /* 1040 */ uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54),
- /* 1050 */ uint16(55), uint16(56), uint16(57), uint16(59), uint16(19), uint16(291), uint16(63), uint16(132), uint16(43), uint16(44),
- /* 1060 */ uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54),
- /* 1070 */ uint16(55), uint16(56), uint16(57), uint16(252), uint16(22), uint16(23), uint16(22), uint16(25), uint16(43), uint16(44),
- /* 1080 */ uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54),
- /* 1090 */ uint16(55), uint16(56), uint16(57), uint16(106), uint16(107), uint16(283), uint16(263), uint16(102), uint16(103), uint16(104),
- /* 1100 */ uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(59), uint16(192),
- /* 1110 */ uint16(116), uint16(144), uint16(29), uint16(59), uint16(291), uint16(192), uint16(33), uint16(102), uint16(103), uint16(104),
- /* 1120 */ uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(192), uint16(291),
- /* 1130 */ uint16(163), uint16(19), uint16(215), uint16(216), uint16(15), uint16(192), uint16(108), uint16(102), uint16(103), uint16(104),
- /* 1140 */ uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(65), uint16(192),
- /* 1150 */ uint16(66), uint16(215), uint16(216), uint16(101), uint16(231), uint16(106), uint16(107), uint16(19), uint16(215), uint16(216),
- /* 1160 */ uint16(192), uint16(212), uint16(134), uint16(114), uint16(115), uint16(116), uint16(117), uint16(139), uint16(119), uint16(85),
- /* 1170 */ uint16(116), uint16(207), uint16(208), uint16(230), uint16(192), uint16(19), uint16(127), uint16(192), uint16(94), uint16(60),
- /* 1180 */ uint16(59), uint16(192), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51),
- /* 1190 */ uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(192), uint16(76), uint16(192), uint16(31),
- /* 1200 */ uint16(192), uint16(152), uint16(46), uint16(154), uint16(215), uint16(216), uint16(192), uint16(39), uint16(87), uint16(192),
- /* 1210 */ uint16(89), uint16(19), uint16(20), uint16(92), uint16(22), uint16(192), uint16(22), uint16(23), uint16(22), uint16(230),
- /* 1220 */ uint16(263), uint16(215), uint16(216), uint16(215), uint16(216), uint16(137), uint16(138), uint16(115), uint16(36), uint16(145),
- /* 1230 */ uint16(128), uint16(192), uint16(215), uint16(216), uint16(22), uint16(23), uint16(115), uint16(116), uint16(117), uint16(290),
- /* 1240 */ uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111),
- /* 1250 */ uint16(112), uint16(59), uint16(192), uint16(151), uint16(215), uint16(216), uint16(192), uint16(61), uint16(203), uint16(298),
- /* 1260 */ uint16(299), uint16(192), uint16(192), uint16(71), uint16(25), uint16(144), uint16(203), uint16(192), uint16(203), uint16(230),
- /* 1270 */ uint16(114), uint16(19), uint16(20), uint16(81), uint16(22), uint16(215), uint16(216), uint16(263), uint16(192), uint16(215),
- /* 1280 */ uint16(216), uint16(255), uint16(256), uint16(203), uint16(215), uint16(216), uint16(130), uint16(19), uint16(36), uint16(192),
- /* 1290 */ uint16(215), uint16(216), uint16(100), uint16(238), uint16(239), uint16(101), uint16(25), uint16(192), uint16(106), uint16(107),
- /* 1300 */ uint16(48), uint16(238), uint16(239), uint16(238), uint16(239), uint16(113), uint16(251), uint16(115), uint16(116), uint16(117),
- /* 1310 */ uint16(192), uint16(59), uint16(120), uint16(101), uint16(251), uint16(192), uint16(251), uint16(192), uint16(238), uint16(239),
- /* 1320 */ uint16(215), uint16(216), uint16(192), uint16(71), uint16(46), uint16(243), uint16(192), uint16(25), uint16(25), uint16(137),
- /* 1330 */ uint16(138), uint16(251), uint16(192), uint16(215), uint16(216), uint16(253), uint16(25), uint16(85), uint16(215), uint16(216),
- /* 1340 */ uint16(215), uint16(216), uint16(90), uint16(243), uint16(152), uint16(153), uint16(154), uint16(155), uint16(156), uint16(215),
- /* 1350 */ uint16(216), uint16(192), uint16(100), uint16(253), uint16(243), uint16(215), uint16(216), uint16(192), uint16(106), uint16(107),
- /* 1360 */ uint16(243), uint16(192), uint16(148), uint16(149), uint16(253), uint16(113), uint16(192), uint16(115), uint16(116), uint16(117),
- /* 1370 */ uint16(253), uint16(192), uint16(120), uint16(192), uint16(215), uint16(216), uint16(192), uint16(23), uint16(192), uint16(25),
- /* 1380 */ uint16(215), uint16(216), uint16(192), uint16(115), uint16(215), uint16(216), uint16(22), uint16(148), uint16(24), uint16(215),
- /* 1390 */ uint16(216), uint16(192), uint16(114), uint16(192), uint16(215), uint16(216), uint16(215), uint16(216), uint16(134), uint16(215),
- /* 1400 */ uint16(216), uint16(215), uint16(216), uint16(139), uint16(152), uint16(153), uint16(154), uint16(155), uint16(156), uint16(0),
- /* 1410 */ uint16(1), uint16(2), uint16(141), uint16(23), uint16(5), uint16(25), uint16(215), uint16(216), uint16(24), uint16(10),
- /* 1420 */ uint16(11), uint16(12), uint16(13), uint16(14), uint16(1), uint16(2), uint16(17), uint16(125), uint16(5), uint16(19),
- /* 1430 */ uint16(20), uint16(268), uint16(22), uint16(10), uint16(11), uint16(12), uint16(13), uint16(14), uint16(192), uint16(30),
- /* 1440 */ uint16(17), uint16(32), uint16(23), uint16(23), uint16(25), uint16(25), uint16(36), uint16(144), uint16(23), uint16(40),
- /* 1450 */ uint16(25), uint16(192), uint16(141), uint16(30), uint16(192), uint16(32), uint16(23), uint16(22), uint16(25), uint16(5),
- /* 1460 */ uint16(128), uint16(215), uint16(216), uint16(40), uint16(10), uint16(11), uint16(12), uint16(13), uint16(14), uint16(59),
- /* 1470 */ uint16(23), uint16(17), uint16(25), uint16(192), uint16(215), uint16(216), uint16(192), uint16(215), uint16(216), uint16(70),
- /* 1480 */ uint16(23), uint16(71), uint16(25), uint16(151), uint16(30), uint16(192), uint16(32), uint16(78), uint16(53), uint16(192),
- /* 1490 */ uint16(81), uint16(192), uint16(192), uint16(70), uint16(40), uint16(85), uint16(215), uint16(216), uint16(119), uint16(120),
- /* 1500 */ uint16(90), uint16(78), uint16(59), uint16(254), uint16(81), uint16(192), uint16(192), uint16(98), uint16(215), uint16(216),
- /* 1510 */ uint16(100), uint16(23), uint16(59), uint16(25), uint16(215), uint16(216), uint16(106), uint16(107), uint16(23), uint16(192),
- /* 1520 */ uint16(25), uint16(98), uint16(19), uint16(113), uint16(70), uint16(115), uint16(116), uint16(117), uint16(215), uint16(216),
- /* 1530 */ uint16(120), uint16(192), uint16(78), uint16(192), uint16(140), uint16(81), uint16(19), uint16(20), uint16(23), uint16(22),
- /* 1540 */ uint16(25), uint16(132), uint16(215), uint16(216), uint16(192), uint16(192), uint16(137), uint16(138), uint16(192), uint16(23),
- /* 1550 */ uint16(192), uint16(25), uint16(98), uint16(36), uint16(192), uint16(132), uint16(215), uint16(216), uint16(192), uint16(116),
- /* 1560 */ uint16(137), uint16(138), uint16(152), uint16(153), uint16(154), uint16(155), uint16(156), uint16(215), uint16(216), uint16(116),
- /* 1570 */ uint16(161), uint16(215), uint16(216), uint16(215), uint16(216), uint16(120), uint16(59), uint16(215), uint16(216), uint16(7),
- /* 1580 */ uint16(8), uint16(215), uint16(216), uint16(192), uint16(161), uint16(130), uint16(132), uint16(192), uint16(71), uint16(83),
- /* 1590 */ uint16(84), uint16(137), uint16(138), uint16(59), uint16(192), uint16(192), uint16(19), uint16(20), uint16(192), uint16(22),
- /* 1600 */ uint16(97), uint16(225), uint16(85), uint16(192), uint16(23), uint16(192), uint16(25), uint16(90), uint16(192), uint16(192),
- /* 1610 */ uint16(215), uint16(216), uint16(152), uint16(36), uint16(154), uint16(161), uint16(192), uint16(100), uint16(215), uint16(216),
- /* 1620 */ uint16(192), uint16(215), uint16(216), uint16(106), uint16(107), uint16(225), uint16(215), uint16(216), uint16(192), uint16(192),
- /* 1630 */ uint16(113), uint16(192), uint16(115), uint16(116), uint16(117), uint16(257), uint16(59), uint16(120), uint16(192), uint16(215),
- /* 1640 */ uint16(216), uint16(152), uint16(192), uint16(154), uint16(192), uint16(23), uint16(317), uint16(25), uint16(71), uint16(235),
- /* 1650 */ uint16(116), uint16(215), uint16(216), uint16(192), uint16(215), uint16(216), uint16(192), uint16(192), uint16(192), uint16(192),
- /* 1660 */ uint16(192), uint16(192), uint16(192), uint16(192), uint16(192), uint16(215), uint16(216), uint16(215), uint16(216), uint16(152),
- /* 1670 */ uint16(153), uint16(154), uint16(155), uint16(156), uint16(192), uint16(192), uint16(287), uint16(100), uint16(286), uint16(241),
- /* 1680 */ uint16(254), uint16(254), uint16(242), uint16(106), uint16(107), uint16(108), uint16(254), uint16(213), uint16(254), uint16(190),
- /* 1690 */ uint16(113), uint16(270), uint16(115), uint16(116), uint16(117), uint16(296), uint16(266), uint16(120), uint16(219), uint16(258),
- /* 1700 */ uint16(244), uint16(270), uint16(258), uint16(19), uint16(20), uint16(228), uint16(22), uint16(292), uint16(266), uint16(224),
- /* 1710 */ uint16(292), uint16(218), uint16(218), uint16(195), uint16(218), uint16(270), uint16(258), uint16(60), uint16(245), uint16(270),
- /* 1720 */ uint16(36), uint16(245), uint16(244), uint16(248), uint16(19), uint16(20), uint16(242), uint16(22), uint16(248), uint16(152),
- /* 1730 */ uint16(153), uint16(154), uint16(155), uint16(156), uint16(244), uint16(140), uint16(199), uint16(199), uint16(279), uint16(38),
- /* 1740 */ uint16(199), uint16(36), uint16(150), uint16(59), uint16(296), uint16(149), uint16(22), uint16(296), uint16(18), uint16(43),
- /* 1750 */ uint16(236), uint16(199), uint16(233), uint16(18), uint16(198), uint16(71), uint16(293), uint16(236), uint16(271), uint16(236),
- /* 1760 */ uint16(269), uint16(236), uint16(148), uint16(271), uint16(59), uint16(245), uint16(269), uint16(245), uint16(282), uint16(271),
- /* 1770 */ uint16(199), uint16(198), uint16(233), uint16(245), uint16(293), uint16(233), uint16(71), uint16(245), uint16(157), uint16(62),
- /* 1780 */ uint16(22), uint16(199), uint16(198), uint16(220), uint16(100), uint16(199), uint16(198), uint16(220), uint16(199), uint16(289),
- /* 1790 */ uint16(106), uint16(107), uint16(288), uint16(114), uint16(226), uint16(198), uint16(217), uint16(113), uint16(64), uint16(115),
- /* 1800 */ uint16(116), uint16(117), uint16(217), uint16(22), uint16(120), uint16(100), uint16(223), uint16(217), uint16(217), uint16(164),
- /* 1810 */ uint16(223), uint16(106), uint16(107), uint16(220), uint16(125), uint16(24), uint16(217), uint16(219), uint16(113), uint16(217),
- /* 1820 */ uint16(115), uint16(116), uint16(117), uint16(217), uint16(311), uint16(120), uint16(226), uint16(112), uint16(304), uint16(281),
- /* 1830 */ uint16(281), uint16(220), uint16(114), uint16(143), uint16(260), uint16(259), uint16(152), uint16(153), uint16(154), uint16(155),
- /* 1840 */ uint16(156), uint16(199), uint16(91), uint16(316), uint16(82), uint16(316), uint16(147), uint16(144), uint16(22), uint16(199),
- /* 1850 */ uint16(249), uint16(276), uint16(157), uint16(146), uint16(260), uint16(145), uint16(278), uint16(152), uint16(153), uint16(154),
- /* 1860 */ uint16(155), uint16(156), uint16(259), uint16(248), uint16(260), uint16(260), uint16(259), uint16(259), uint16(249), uint16(245),
- /* 1870 */ uint16(247), uint16(246), uint16(25), uint16(264), uint16(264), uint16(201), uint16(13), uint16(6), uint16(193), uint16(193),
- /* 1880 */ uint16(212), uint16(206), uint16(191), uint16(191), uint16(191), uint16(212), uint16(206), uint16(221), uint16(212), uint16(212),
- /* 1890 */ uint16(221), uint16(213), uint16(4), uint16(206), uint16(213), uint16(212), uint16(3), uint16(22), uint16(162), uint16(15),
- /* 1900 */ uint16(23), uint16(16), uint16(23), uint16(138), uint16(150), uint16(129), uint16(25), uint16(24), uint16(141), uint16(20),
- /* 1910 */ uint16(16), uint16(143), uint16(1), uint16(141), uint16(302), uint16(302), uint16(299), uint16(129), uint16(129), uint16(61),
- /* 1920 */ uint16(150), uint16(53), uint16(53), uint16(37), uint16(129), uint16(53), uint16(53), uint16(115), uint16(1), uint16(34),
- /* 1930 */ uint16(140), uint16(5), uint16(22), uint16(114), uint16(160), uint16(68), uint16(75), uint16(25), uint16(68), uint16(41),
- /* 1940 */ uint16(140), uint16(114), uint16(24), uint16(20), uint16(19), uint16(130), uint16(124), uint16(67), uint16(24), uint16(67),
- /* 1950 */ uint16(22), uint16(22), uint16(22), uint16(96), uint16(23), uint16(22), uint16(59), uint16(22), uint16(67), uint16(37),
- /* 1960 */ uint16(28), uint16(23), uint16(148), uint16(22), uint16(25), uint16(23), uint16(23), uint16(23), uint16(23), uint16(22),
- /* 1970 */ uint16(140), uint16(97), uint16(23), uint16(23), uint16(115), uint16(22), uint16(142), uint16(25), uint16(88), uint16(75),
- /* 1980 */ uint16(34), uint16(44), uint16(34), uint16(75), uint16(23), uint16(34), uint16(86), uint16(22), uint16(34), uint16(34),
- /* 1990 */ uint16(34), uint16(24), uint16(93), uint16(25), uint16(25), uint16(23), uint16(34), uint16(23), uint16(23), uint16(23),
- /* 2000 */ uint16(23), uint16(11), uint16(23), uint16(25), uint16(22), uint16(22), uint16(22), uint16(1), uint16(23), uint16(23),
- /* 2010 */ uint16(22), uint16(22), uint16(25), uint16(15), uint16(23), uint16(1), uint16(140), uint16(25), uint16(140), uint16(318),
- /* 2020 */ uint16(318), uint16(134), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2030 */ uint16(318), uint16(318), uint16(140), uint16(318), uint16(318), uint16(318), uint16(140), uint16(318), uint16(318), uint16(318),
- /* 2040 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2050 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2060 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2070 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2080 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2090 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2100 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2110 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2120 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2130 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2140 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2150 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2160 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2170 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2180 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2190 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2200 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2210 */ uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318), uint16(318),
- /* 2220 */ uint16(318),
-} /* sqlite3.c:160263:25 */
-var yy_shift_ofst = [572]uint16{
- /* 0 */ uint16(1423), uint16(1409), uint16(1454), uint16(1192), uint16(1192), uint16(610), uint16(1252), uint16(1410), uint16(1517), uint16(1684),
- /* 10 */ uint16(1684), uint16(1684), uint16(276), uint16(0), uint16(0), uint16(180), uint16(1015), uint16(1684), uint16(1684), uint16(1684),
- /* 20 */ uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684),
- /* 30 */ uint16(1049), uint16(1049), uint16(1121), uint16(1121), uint16(54), uint16(487), uint16(610), uint16(610), uint16(610), uint16(610),
- /* 40 */ uint16(610), uint16(40), uint16(110), uint16(219), uint16(289), uint16(396), uint16(439), uint16(509), uint16(548), uint16(618),
- /* 50 */ uint16(657), uint16(727), uint16(766), uint16(836), uint16(995), uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015),
- /* 60 */ uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015), uint16(1015),
- /* 70 */ uint16(1015), uint16(1015), uint16(1015), uint16(1035), uint16(1015), uint16(1138), uint16(880), uint16(880), uint16(1577), uint16(1684),
- /* 80 */ uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684),
- /* 90 */ uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684),
- /* 100 */ uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684),
- /* 110 */ uint16(1684), uint16(1684), uint16(1684), uint16(1705), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684),
- /* 120 */ uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(1684), uint16(146), uint16(84), uint16(84),
- /* 130 */ uint16(84), uint16(84), uint16(84), uint16(277), uint16(315), uint16(401), uint16(97), uint16(461), uint16(251), uint16(66),
- /* 140 */ uint16(66), uint16(51), uint16(1156), uint16(66), uint16(66), uint16(324), uint16(324), uint16(66), uint16(452), uint16(452),
- /* 150 */ uint16(452), uint16(452), uint16(133), uint16(114), uint16(114), uint16(4), uint16(11), uint16(2037), uint16(2037), uint16(621),
- /* 160 */ uint16(621), uint16(621), uint16(567), uint16(398), uint16(398), uint16(398), uint16(398), uint16(937), uint16(937), uint16(228),
- /* 170 */ uint16(251), uint16(331), uint16(1052), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66),
- /* 180 */ uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66),
- /* 190 */ uint16(66), uint16(66), uint16(66), uint16(557), uint16(557), uint16(66), uint16(9), uint16(25), uint16(25), uint16(745),
- /* 200 */ uint16(745), uint16(967), uint16(1088), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037),
- /* 210 */ uint16(255), uint16(317), uint16(317), uint16(514), uint16(403), uint16(620), uint16(471), uint16(672), uint16(781), uint16(891),
- /* 220 */ uint16(675), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66),
- /* 230 */ uint16(66), uint16(508), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66),
- /* 240 */ uint16(66), uint16(66), uint16(66), uint16(66), uint16(790), uint16(790), uint16(790), uint16(66), uint16(66), uint16(66),
- /* 250 */ uint16(338), uint16(66), uint16(66), uint16(66), uint16(516), uint16(1084), uint16(66), uint16(66), uint16(993), uint16(66),
- /* 260 */ uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(66), uint16(732), uint16(1083), uint16(563),
- /* 270 */ uint16(994), uint16(994), uint16(994), uint16(994), uint16(337), uint16(563), uint16(563), uint16(1028), uint16(987), uint16(897),
- /* 280 */ uint16(1119), uint16(262), uint16(1214), uint16(1271), uint16(1112), uint16(1214), uint16(1112), uint16(1268), uint16(1239), uint16(262),
- /* 290 */ uint16(262), uint16(1239), uint16(262), uint16(1271), uint16(1268), uint16(1302), uint16(1354), uint16(1278), uint16(1168), uint16(1168),
- /* 300 */ uint16(1168), uint16(1112), uint16(1303), uint16(1303), uint16(815), uint16(1311), uint16(1264), uint16(1364), uint16(1657), uint16(1657),
- /* 310 */ uint16(1595), uint16(1595), uint16(1701), uint16(1701), uint16(1595), uint16(1592), uint16(1596), uint16(1724), uint16(1706), uint16(1730),
- /* 320 */ uint16(1730), uint16(1730), uint16(1730), uint16(1595), uint16(1735), uint16(1614), uint16(1596), uint16(1596), uint16(1614), uint16(1724),
- /* 330 */ uint16(1706), uint16(1614), uint16(1706), uint16(1614), uint16(1595), uint16(1735), uint16(1621), uint16(1717), uint16(1595), uint16(1735),
- /* 340 */ uint16(1758), uint16(1595), uint16(1735), uint16(1595), uint16(1735), uint16(1758), uint16(1679), uint16(1679), uint16(1679), uint16(1734),
- /* 350 */ uint16(1781), uint16(1781), uint16(1758), uint16(1679), uint16(1689), uint16(1679), uint16(1734), uint16(1679), uint16(1679), uint16(1645),
- /* 360 */ uint16(1791), uint16(1715), uint16(1715), uint16(1758), uint16(1690), uint16(1718), uint16(1690), uint16(1718), uint16(1690), uint16(1718),
- /* 370 */ uint16(1690), uint16(1718), uint16(1595), uint16(1751), uint16(1751), uint16(1762), uint16(1762), uint16(1699), uint16(1703), uint16(1826),
- /* 380 */ uint16(1595), uint16(1695), uint16(1699), uint16(1707), uint16(1710), uint16(1614), uint16(1847), uint16(1863), uint16(1863), uint16(1871),
- /* 390 */ uint16(1871), uint16(1871), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037),
- /* 400 */ uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(2037), uint16(193), uint16(837), uint16(1194),
- /* 410 */ uint16(1212), uint16(506), uint16(832), uint16(1054), uint16(1390), uint16(925), uint16(1435), uint16(1394), uint16(1102), uint16(1332),
- /* 420 */ uint16(1419), uint16(1196), uint16(1420), uint16(1425), uint16(1433), uint16(1447), uint16(1457), uint16(1488), uint16(1443), uint16(1379),
- /* 430 */ uint16(1572), uint16(1455), uint16(1503), uint16(1453), uint16(1495), uint16(1515), uint16(1506), uint16(1526), uint16(1460), uint16(1489),
- /* 440 */ uint16(1581), uint16(1622), uint16(1534), uint16(667), uint16(1888), uint16(1893), uint16(1875), uint16(1736), uint16(1884), uint16(1885),
- /* 450 */ uint16(1877), uint16(1879), uint16(1765), uint16(1754), uint16(1776), uint16(1881), uint16(1881), uint16(1883), uint16(1767), uint16(1889),
- /* 460 */ uint16(1768), uint16(1894), uint16(1911), uint16(1772), uint16(1788), uint16(1881), uint16(1789), uint16(1858), uint16(1886), uint16(1881),
- /* 470 */ uint16(1770), uint16(1868), uint16(1869), uint16(1872), uint16(1873), uint16(1795), uint16(1812), uint16(1895), uint16(1790), uint16(1927),
- /* 480 */ uint16(1926), uint16(1910), uint16(1819), uint16(1774), uint16(1867), uint16(1912), uint16(1870), uint16(1861), uint16(1898), uint16(1800),
- /* 490 */ uint16(1827), uint16(1918), uint16(1923), uint16(1925), uint16(1815), uint16(1822), uint16(1928), uint16(1880), uint16(1929), uint16(1930),
- /* 500 */ uint16(1931), uint16(1933), uint16(1882), uint16(1897), uint16(1924), uint16(1857), uint16(1932), uint16(1935), uint16(1891), uint16(1922),
- /* 510 */ uint16(1938), uint16(1814), uint16(1941), uint16(1942), uint16(1943), uint16(1944), uint16(1939), uint16(1945), uint16(1947), uint16(1874),
- /* 520 */ uint16(1830), uint16(1949), uint16(1950), uint16(1859), uint16(1946), uint16(1953), uint16(1834), uint16(1952), uint16(1948), uint16(1951),
- /* 530 */ uint16(1954), uint16(1955), uint16(1890), uint16(1904), uint16(1900), uint16(1937), uint16(1908), uint16(1899), uint16(1956), uint16(1961),
- /* 540 */ uint16(1965), uint16(1967), uint16(1968), uint16(1969), uint16(1962), uint16(1972), uint16(1952), uint16(1974), uint16(1975), uint16(1976),
- /* 550 */ uint16(1977), uint16(1978), uint16(1979), uint16(1982), uint16(1990), uint16(1983), uint16(1984), uint16(1985), uint16(1986), uint16(1988),
- /* 560 */ uint16(1989), uint16(1987), uint16(1887), uint16(1876), uint16(1878), uint16(1892), uint16(1896), uint16(1992), uint16(1991), uint16(1998),
- /* 570 */ uint16(2006), uint16(2014),
-} /* sqlite3.c:160491:33 */
-var yy_reduce_ofst = [407]int16{
- /* 0 */ int16(109), int16(113), int16(272), int16(760), int16(-178), int16(-176), int16(-192), int16(-183), int16(-180), int16(-134),
- /* 10 */ int16(213), int16(220), int16(371), int16(-208), int16(-205), int16(-272), int16(-197), int16(611), int16(632), int16(765),
- /* 20 */ int16(786), int16(392), int16(943), int16(989), int16(503), int16(651), int16(1039), int16(-18), int16(702), int16(821),
- /* 30 */ int16(710), int16(812), int16(-188), int16(380), int16(-187), int16(555), int16(662), int16(1055), int16(1063), int16(1065),
- /* 40 */ int16(1080), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267),
- /* 50 */ int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267),
- /* 60 */ int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267),
- /* 70 */ int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(636), int16(811),
- /* 80 */ int16(917), int16(936), int16(1006), int16(1008), int16(1017), int16(1060), int16(1064), int16(1069), int16(1075), int16(1105),
- /* 90 */ int16(1118), int16(1123), int16(1125), int16(1134), int16(1140), int16(1159), int16(1165), int16(1169), int16(1174), int16(1179),
- /* 100 */ int16(1181), int16(1184), int16(1186), int16(1201), int16(1246), int16(1259), int16(1262), int16(1281), int16(1293), int16(1299),
- /* 110 */ int16(1313), int16(1327), int16(1341), int16(1352), int16(1356), int16(1358), int16(1362), int16(1366), int16(1395), int16(1403),
- /* 120 */ int16(1406), int16(1411), int16(1424), int16(1436), int16(1439), int16(1450), int16(1452), int16(-267), int16(-267), int16(-267),
- /* 130 */ int16(-267), int16(-267), int16(-267), int16(-267), int16(-267), int16(224), int16(-267), int16(446), int16(-24), int16(275),
- /* 140 */ int16(546), int16(518), int16(573), int16(560), int16(53), int16(-181), int16(-111), int16(485), int16(606), int16(671),
- /* 150 */ int16(606), int16(671), int16(683), int16(8), int16(93), int16(-267), int16(-267), int16(-267), int16(-267), int16(155),
- /* 160 */ int16(155), int16(155), int16(181), int16(242), int16(264), int16(486), int16(489), int16(-218), int16(393), int16(227),
- /* 170 */ int16(604), int16(347), int16(347), int16(-171), int16(431), int16(650), int16(715), int16(-166), int16(562), int16(609),
- /* 180 */ int16(716), int16(764), int16(18), int16(823), int16(769), int16(833), int16(838), int16(957), int16(759), int16(119),
- /* 190 */ int16(923), int16(226), int16(1014), int16(542), int16(603), int16(451), int16(949), int16(654), int16(659), int16(762),
- /* 200 */ int16(964), int16(-4), int16(778), int16(961), int16(712), int16(1082), int16(1100), int16(1111), int16(1026), int16(1117),
- /* 210 */ int16(-204), int16(-174), int16(-151), int16(-8), int16(77), int16(198), int16(305), int16(327), int16(388), int16(540),
- /* 220 */ int16(839), int16(968), int16(982), int16(985), int16(1004), int16(1023), int16(1070), int16(1086), int16(1097), int16(1130),
- /* 230 */ int16(1190), int16(1163), int16(1199), int16(1284), int16(1297), int16(1300), int16(1314), int16(1339), int16(1353), int16(1391),
- /* 240 */ int16(1402), int16(1413), int16(1416), int16(1417), int16(803), int16(1376), int16(1400), int16(1428), int16(1437), int16(1446),
- /* 250 */ int16(1378), int16(1461), int16(1464), int16(1465), int16(1249), int16(1329), int16(1466), int16(1467), int16(1414), int16(1468),
- /* 260 */ int16(305), int16(1469), int16(1470), int16(1471), int16(1472), int16(1482), int16(1483), int16(1389), int16(1392), int16(1438),
- /* 270 */ int16(1426), int16(1427), int16(1432), int16(1434), int16(1378), int16(1438), int16(1438), int16(1440), int16(1474), int16(1499),
- /* 280 */ int16(1399), int16(1421), int16(1430), int16(1456), int16(1441), int16(1442), int16(1444), int16(1415), int16(1473), int16(1431),
- /* 290 */ int16(1445), int16(1476), int16(1449), int16(1478), int16(1418), int16(1479), int16(1477), int16(1485), int16(1493), int16(1494),
- /* 300 */ int16(1496), int16(1458), int16(1475), int16(1480), int16(1459), int16(1490), int16(1484), int16(1518), int16(1448), int16(1451),
- /* 310 */ int16(1537), int16(1538), int16(1463), int16(1481), int16(1541), int16(1486), int16(1487), int16(1491), int16(1519), int16(1514),
- /* 320 */ int16(1521), int16(1523), int16(1525), int16(1552), int16(1556), int16(1520), int16(1492), int16(1498), int16(1522), int16(1497),
- /* 330 */ int16(1539), int16(1528), int16(1542), int16(1532), int16(1571), int16(1573), int16(1500), int16(1504), int16(1582), int16(1584),
- /* 340 */ int16(1563), int16(1586), int16(1588), int16(1589), int16(1597), int16(1567), int16(1579), int16(1585), int16(1590), int16(1568),
- /* 350 */ int16(1583), int16(1587), int16(1593), int16(1591), int16(1598), int16(1599), int16(1600), int16(1602), int16(1606), int16(1513),
- /* 360 */ int16(1524), int16(1548), int16(1549), int16(1611), int16(1574), int16(1576), int16(1594), int16(1603), int16(1604), int16(1607),
- /* 370 */ int16(1605), int16(1608), int16(1642), int16(1527), int16(1529), int16(1609), int16(1610), int16(1601), int16(1615), int16(1575),
- /* 380 */ int16(1650), int16(1578), int16(1619), int16(1623), int16(1625), int16(1624), int16(1674), int16(1685), int16(1686), int16(1691),
- /* 390 */ int16(1692), int16(1693), int16(1612), int16(1613), int16(1617), int16(1675), int16(1668), int16(1673), int16(1676), int16(1677),
- /* 400 */ int16(1680), int16(1666), int16(1669), int16(1678), int16(1681), int16(1683), int16(1687),
-} /* sqlite3.c:160554:20 */
-var yy_default = [572]uint16{
- /* 0 */ uint16(1633), uint16(1633), uint16(1633), uint16(1462), uint16(1230), uint16(1341), uint16(1230), uint16(1230), uint16(1230), uint16(1462),
- /* 10 */ uint16(1462), uint16(1462), uint16(1230), uint16(1371), uint16(1371), uint16(1515), uint16(1263), uint16(1230), uint16(1230), uint16(1230),
- /* 20 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1461), uint16(1230), uint16(1230),
- /* 30 */ uint16(1230), uint16(1230), uint16(1550), uint16(1550), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 40 */ uint16(1230), uint16(1230), uint16(1380), uint16(1230), uint16(1387), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 50 */ uint16(1463), uint16(1464), uint16(1230), uint16(1230), uint16(1230), uint16(1514), uint16(1516), uint16(1479), uint16(1394), uint16(1393),
- /* 60 */ uint16(1392), uint16(1391), uint16(1497), uint16(1358), uint16(1385), uint16(1378), uint16(1382), uint16(1457), uint16(1458), uint16(1456),
- /* 70 */ uint16(1460), uint16(1464), uint16(1463), uint16(1230), uint16(1381), uint16(1428), uint16(1442), uint16(1427), uint16(1230), uint16(1230),
- /* 80 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 90 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 100 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 110 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 120 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1436), uint16(1441), uint16(1447),
- /* 130 */ uint16(1440), uint16(1437), uint16(1430), uint16(1429), uint16(1431), uint16(1230), uint16(1432), uint16(1230), uint16(1254), uint16(1230),
- /* 140 */ uint16(1230), uint16(1251), uint16(1305), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1534), uint16(1533),
- /* 150 */ uint16(1230), uint16(1230), uint16(1263), uint16(1422), uint16(1421), uint16(1433), uint16(1434), uint16(1444), uint16(1443), uint16(1522),
- /* 160 */ uint16(1586), uint16(1585), uint16(1480), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1550),
- /* 170 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 180 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 190 */ uint16(1230), uint16(1230), uint16(1230), uint16(1550), uint16(1550), uint16(1230), uint16(1263), uint16(1550), uint16(1550), uint16(1259),
- /* 200 */ uint16(1259), uint16(1365), uint16(1230), uint16(1529), uint16(1332), uint16(1332), uint16(1332), uint16(1332), uint16(1341), uint16(1332),
- /* 210 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 220 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1519), uint16(1517), uint16(1230), uint16(1230), uint16(1230),
- /* 230 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 240 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 250 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1337), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 260 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1579), uint16(1230), uint16(1492), uint16(1319),
- /* 270 */ uint16(1337), uint16(1337), uint16(1337), uint16(1337), uint16(1339), uint16(1320), uint16(1318), uint16(1331), uint16(1264), uint16(1237),
- /* 280 */ uint16(1625), uint16(1397), uint16(1386), uint16(1338), uint16(1360), uint16(1386), uint16(1360), uint16(1622), uint16(1384), uint16(1397),
- /* 290 */ uint16(1397), uint16(1384), uint16(1397), uint16(1338), uint16(1622), uint16(1280), uint16(1602), uint16(1275), uint16(1371), uint16(1371),
- /* 300 */ uint16(1371), uint16(1360), uint16(1365), uint16(1365), uint16(1459), uint16(1338), uint16(1331), uint16(1230), uint16(1625), uint16(1625),
- /* 310 */ uint16(1346), uint16(1346), uint16(1624), uint16(1624), uint16(1346), uint16(1480), uint16(1609), uint16(1406), uint16(1308), uint16(1314),
- /* 320 */ uint16(1314), uint16(1314), uint16(1314), uint16(1346), uint16(1248), uint16(1384), uint16(1609), uint16(1609), uint16(1384), uint16(1406),
- /* 330 */ uint16(1308), uint16(1384), uint16(1308), uint16(1384), uint16(1346), uint16(1248), uint16(1496), uint16(1619), uint16(1346), uint16(1248),
- /* 340 */ uint16(1470), uint16(1346), uint16(1248), uint16(1346), uint16(1248), uint16(1470), uint16(1306), uint16(1306), uint16(1306), uint16(1295),
- /* 350 */ uint16(1230), uint16(1230), uint16(1470), uint16(1306), uint16(1280), uint16(1306), uint16(1295), uint16(1306), uint16(1306), uint16(1568),
- /* 360 */ uint16(1230), uint16(1474), uint16(1474), uint16(1470), uint16(1364), uint16(1359), uint16(1364), uint16(1359), uint16(1364), uint16(1359),
- /* 370 */ uint16(1364), uint16(1359), uint16(1346), uint16(1560), uint16(1560), uint16(1374), uint16(1374), uint16(1379), uint16(1365), uint16(1465),
- /* 380 */ uint16(1346), uint16(1230), uint16(1379), uint16(1377), uint16(1375), uint16(1384), uint16(1298), uint16(1582), uint16(1582), uint16(1578),
- /* 390 */ uint16(1578), uint16(1578), uint16(1630), uint16(1630), uint16(1529), uint16(1595), uint16(1263), uint16(1263), uint16(1263), uint16(1263),
- /* 400 */ uint16(1595), uint16(1282), uint16(1282), uint16(1264), uint16(1264), uint16(1263), uint16(1595), uint16(1230), uint16(1230), uint16(1230),
- /* 410 */ uint16(1230), uint16(1230), uint16(1230), uint16(1590), uint16(1230), uint16(1524), uint16(1481), uint16(1350), uint16(1230), uint16(1230),
- /* 420 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 430 */ uint16(1230), uint16(1230), uint16(1535), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 440 */ uint16(1230), uint16(1230), uint16(1230), uint16(1411), uint16(1230), uint16(1233), uint16(1526), uint16(1230), uint16(1230), uint16(1230),
- /* 450 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1388), uint16(1389), uint16(1351), uint16(1230), uint16(1230),
- /* 460 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1403), uint16(1230), uint16(1230), uint16(1230), uint16(1398),
- /* 470 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1621), uint16(1230),
- /* 480 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1495), uint16(1494), uint16(1230), uint16(1230), uint16(1348),
- /* 490 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 500 */ uint16(1230), uint16(1230), uint16(1230), uint16(1278), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 510 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 520 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1376), uint16(1230), uint16(1230),
- /* 530 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 540 */ uint16(1230), uint16(1230), uint16(1565), uint16(1366), uint16(1230), uint16(1230), uint16(1612), uint16(1230), uint16(1230), uint16(1230),
- /* 550 */ uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230), uint16(1230),
- /* 560 */ uint16(1230), uint16(1606), uint16(1322), uint16(1413), uint16(1230), uint16(1412), uint16(1416), uint16(1252), uint16(1230), uint16(1242),
- /* 570 */ uint16(1230), uint16(1230),
-} /* sqlite3.c:160597:27 */
+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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 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),
+ /* 2130 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2140 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2150 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2160 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2170 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2180 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2190 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2200 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 2210 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319),
+ /* 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),
+ /* 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 */
+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 */
//********* End of lemon-generated parsing tables ****************************
// The next table maps tokens (terminal symbols) into fallback tokens.
@@ -141876,7 +143388,7 @@ var yy_default = [572]uint16{
// This feature can be used, for example, to cause some keywords in a language
// to revert to identifiers if they keyword does not apply in the context where
// it appears.
-var yyFallback = [184]uint16{
+var yyFallback = [185]uint16{
uint16(0), // $ => nothing
uint16(0), // SEMI => nothing
uint16(59), // EXPLAIN => ID
@@ -141989,6 +143501,7 @@ var yyFallback = [184]uint16{
uint16(0), // SLASH => nothing
uint16(0), // REM => nothing
uint16(0), // CONCAT => nothing
+ uint16(0), // PTR => nothing
uint16(0), // COLLATE => nothing
uint16(0), // BITNOT => nothing
uint16(0), // ON => nothing
@@ -142061,7 +143574,7 @@ var yyFallback = [184]uint16{
uint16(0), // ERROR => nothing
uint16(0), // SPACE => nothing
uint16(0), // ILLEGAL => nothing
-} /* sqlite3.c:160674:25 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162617:25 */
// The following structure represents a single element of the
// parser's stack. Information stored includes:
@@ -142083,9 +143596,9 @@ type yyStackEntry = struct {
Fmajor uint16
F__ccgo_pad1 [4]byte
Fminor YYMINORTYPE
-} /* sqlite3.c:160878:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162822:1 */
-type YyStackEntry = yyStackEntry /* sqlite3.c:160885:29 */
+type YyStackEntry = yyStackEntry /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162829:29 */
// The state of the parser is completely contained in an instance of
// the following structure
@@ -142094,9 +143607,9 @@ type yyParser = struct {
FpParse uintptr
Fyystack [100]YyStackEntry
FyystackEnd uintptr
-} /* sqlite3.c:160889:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162833:1 */
-type YyParser = yyParser /* sqlite3.c:160908:25 */
+type YyParser = yyParser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162852:25 */
// #include <assert.h>
@@ -142106,7 +143619,7 @@ type YyParser = yyParser /* sqlite3.c:160908:25 */
// grammar.
// Initialize a new parser that has already been allocated.
-func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { /* sqlite3.c:161721:21: */
+func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163667:21: */
var yypParser uintptr = yypRawParser
(*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
(*YyParser)(unsafe.Pointer(yypParser)).Fyytos = yypParser + 16 /* &.yystack */
@@ -142121,7 +143634,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) { /* sqlite3.c:161779:13: */
+func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163725:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
switch int32(yymajor) {
@@ -142135,137 +143648,137 @@ func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor ui
// which appear on the RHS of the rule, but which are *not* used
// inside the C code.
//******** Begin destructor definitions **************************************
- case 203:
+ case 204:
fallthrough // select
- case 238:
- fallthrough // selectnowith
case 239:
+ fallthrough // selectnowith
+ case 240:
fallthrough // oneselect
- case 251: /* values */
+ case 252: /* values */
{
Xsqlite3SelectDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 215:
- fallthrough // term
case 216:
+ fallthrough // term
+ case 217:
fallthrough // expr
- case 245:
+ case 246:
fallthrough // where_opt
- case 247:
+ case 248:
fallthrough // having_opt
- case 259:
+ case 260:
fallthrough // on_opt
- case 266:
+ case 267:
fallthrough // where_opt_ret
- case 277:
+ case 278:
fallthrough // case_operand
- case 279:
+ case 280:
fallthrough // case_else
- case 282:
+ case 283:
fallthrough // vinto
- case 289:
+ case 290:
fallthrough // when_clause
- case 294:
+ case 295:
fallthrough // key_opt
- case 310: /* filter_clause */
+ case 311: /* filter_clause */
{
Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 220:
+ case 221:
fallthrough // eidlist_opt
- case 230:
- fallthrough // sortlist
case 231:
+ fallthrough // sortlist
+ case 232:
fallthrough // eidlist
- case 243:
+ case 244:
fallthrough // selcollist
- case 246:
+ case 247:
fallthrough // groupby_opt
- case 248:
+ case 249:
fallthrough // orderby_opt
- case 252:
- fallthrough // nexprlist
case 253:
+ fallthrough // nexprlist
+ case 254:
fallthrough // sclp
- case 261:
+ case 262:
fallthrough // exprlist
- case 267:
+ case 268:
fallthrough // setlist
- case 276:
+ case 277:
fallthrough // paren_exprlist
- case 278:
+ case 279:
fallthrough // case_exprlist
- case 309: /* part_opt */
+ case 310: /* part_opt */
{
Xsqlite3ExprListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 237:
+ case 238:
fallthrough // fullname
- case 244:
+ case 245:
fallthrough // from
- case 255:
- fallthrough // seltablist
case 256:
+ fallthrough // seltablist
+ case 257:
fallthrough // stl_prefix
- case 262: /* xfullname */
+ case 263: /* xfullname */
{
Xsqlite3SrcListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 240: /* wqlist */
+ case 241: /* wqlist */
{
Xsqlite3WithDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 250:
+ case 251:
fallthrough // window_clause
- case 305: /* windowdefn_list */
+ case 306: /* windowdefn_list */
{
Xsqlite3WindowListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 260:
+ case 261:
fallthrough // using_opt
- case 263:
+ case 264:
fallthrough // idlist
- case 269: /* idlist_opt */
+ case 270: /* idlist_opt */
{
Xsqlite3IdListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 272:
+ case 273:
fallthrough // filter_over
- case 306:
- fallthrough // windowdefn
case 307:
- fallthrough // window
+ fallthrough // windowdefn
case 308:
+ fallthrough // window
+ case 309:
fallthrough // frame_opt
- case 311: /* over_clause */
+ case 312: /* over_clause */
{
Xsqlite3WindowDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 285:
+ case 286:
fallthrough // trigger_cmd_list
- case 290: /* trigger_cmd */
+ case 291: /* trigger_cmd */
{
Xsqlite3DeleteTriggerStep(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
}
break
- case 287: /* trigger_event */
+ case 288: /* trigger_event */
{
Xsqlite3IdListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, (*TrigEvent)(unsafe.Pointer(yypminor)).Fb)
}
break
- case 313:
- fallthrough // frame_bound
case 314:
+ fallthrough // frame_bound
+ case 315:
fallthrough // frame_bound_s
- case 315: /* frame_bound_e */
+ case 316: /* frame_bound_e */
{
Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, (*FrameBound)(unsafe.Pointer(yypminor)).FpExpr)
}
@@ -142280,7 +143793,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) { /* sqlite3.c:161904:13: */
+func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163850:13: */
var yytos uintptr
yytos = libc.PostDecUintptr(&(*YyParser)(unsafe.Pointer(pParser)).Fyytos, 24)
@@ -142288,7 +143801,7 @@ func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* sqlite3.c:161904:1
}
// Clear all secondary memory allocations from the parser
-func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:161922:21: */
+func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163868:21: */
var pParser uintptr = p
for (*YyParser)(unsafe.Pointer(pParser)).Fyytos > pParser+16 {
yy_pop_parser_stack(tls, pParser)
@@ -142311,14 +143824,14 @@ func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:161922:21:
// 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 { /* sqlite3.c:162002:21: */
+func yy_find_shift_action(tls *libc.TLS, iLookAhead uint16, stateno uint16) uint16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163948:21: */
var i int32
if int32(stateno) > YY_MAX_SHIFT {
return stateno
}
- for ok := true; ok; ok = 1 != 0 {
+ for __ccgo := true; __ccgo; __ccgo = 1 != 0 {
i = int32(yy_shift_ofst[stateno])
i = i + int32(iLookAhead)
@@ -142351,7 +143864,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 { /* sqlite3.c:162067:21: */
+func yy_find_reduce_action(tls *libc.TLS, stateno uint16, iLookAhead uint16) uint16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164013:21: */
var i int32
i = int32(yy_reduce_ofst[stateno])
@@ -142362,7 +143875,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) { /* sqlite3.c:162096:13: */
+func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164042:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
for (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > yypParser+16 {
@@ -142372,7 +143885,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:162096:13:
// stack every overflows
//******* Begin %stack_overflow code *****************************************
- Xsqlite3ErrorMsg(tls, pParse, ts+22664, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+22749, 0)
//******* End %stack_overflow code *******************************************
(*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
@@ -142381,7 +143894,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:162096:13:
// 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) { /* sqlite3.c:162139:13: */
+func yy_shift(tls *libc.TLS, yypParser uintptr, yyNewState uint16, yyMajor uint16, yyMinor Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164085:13: */
var yytos uintptr
(*YyParser)(unsafe.Pointer(yypParser)).Fyytos += 24
if (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > (*YyParser)(unsafe.Pointer(yypParser)).FyystackEnd {
@@ -142401,413 +143914,414 @@ 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 = [401]uint16{
- uint16(188), // (0) explain ::= EXPLAIN
- uint16(188), // (1) explain ::= EXPLAIN QUERY PLAN
- uint16(187), // (2) cmdx ::= cmd
- uint16(189), // (3) cmd ::= BEGIN transtype trans_opt
- uint16(190), // (4) transtype ::=
- uint16(190), // (5) transtype ::= DEFERRED
- uint16(190), // (6) transtype ::= IMMEDIATE
- uint16(190), // (7) transtype ::= EXCLUSIVE
- uint16(189), // (8) cmd ::= COMMIT|END trans_opt
- uint16(189), // (9) cmd ::= ROLLBACK trans_opt
- uint16(189), // (10) cmd ::= SAVEPOINT nm
- uint16(189), // (11) cmd ::= RELEASE savepoint_opt nm
- uint16(189), // (12) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm
- uint16(194), // (13) create_table ::= createkw temp TABLE ifnotexists nm dbnm
- uint16(196), // (14) createkw ::= CREATE
- uint16(198), // (15) ifnotexists ::=
- uint16(198), // (16) ifnotexists ::= IF NOT EXISTS
- uint16(197), // (17) temp ::= TEMP
- uint16(197), // (18) temp ::=
- uint16(195), // (19) create_table_args ::= LP columnlist conslist_opt RP table_option_set
- uint16(195), // (20) create_table_args ::= AS select
- uint16(202), // (21) table_option_set ::=
- uint16(202), // (22) table_option_set ::= table_option_set COMMA table_option
- uint16(204), // (23) table_option ::= WITHOUT nm
- uint16(204), // (24) table_option ::= nm
- uint16(205), // (25) columnname ::= nm typetoken
- uint16(207), // (26) typetoken ::=
- uint16(207), // (27) typetoken ::= typename LP signed RP
- uint16(207), // (28) typetoken ::= typename LP signed COMMA signed RP
- uint16(208), // (29) typename ::= typename ID|STRING
- uint16(212), // (30) scanpt ::=
- uint16(213), // (31) scantok ::=
- uint16(214), // (32) ccons ::= CONSTRAINT nm
- uint16(214), // (33) ccons ::= DEFAULT scantok term
- uint16(214), // (34) ccons ::= DEFAULT LP expr RP
- uint16(214), // (35) ccons ::= DEFAULT PLUS scantok term
- uint16(214), // (36) ccons ::= DEFAULT MINUS scantok term
- uint16(214), // (37) ccons ::= DEFAULT scantok ID|INDEXED
- uint16(214), // (38) ccons ::= NOT NULL onconf
- uint16(214), // (39) ccons ::= PRIMARY KEY sortorder onconf autoinc
- uint16(214), // (40) ccons ::= UNIQUE onconf
- uint16(214), // (41) ccons ::= CHECK LP expr RP
- uint16(214), // (42) ccons ::= REFERENCES nm eidlist_opt refargs
- uint16(214), // (43) ccons ::= defer_subclause
- uint16(214), // (44) ccons ::= COLLATE ID|STRING
- uint16(223), // (45) generated ::= LP expr RP
- uint16(223), // (46) generated ::= LP expr RP ID
- uint16(219), // (47) autoinc ::=
- uint16(219), // (48) autoinc ::= AUTOINCR
- uint16(221), // (49) refargs ::=
- uint16(221), // (50) refargs ::= refargs refarg
- uint16(224), // (51) refarg ::= MATCH nm
- uint16(224), // (52) refarg ::= ON INSERT refact
- uint16(224), // (53) refarg ::= ON DELETE refact
- uint16(224), // (54) refarg ::= ON UPDATE refact
- uint16(225), // (55) refact ::= SET NULL
- uint16(225), // (56) refact ::= SET DEFAULT
- uint16(225), // (57) refact ::= CASCADE
- uint16(225), // (58) refact ::= RESTRICT
- uint16(225), // (59) refact ::= NO ACTION
- uint16(222), // (60) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt
- uint16(222), // (61) defer_subclause ::= DEFERRABLE init_deferred_pred_opt
- uint16(226), // (62) init_deferred_pred_opt ::=
- uint16(226), // (63) init_deferred_pred_opt ::= INITIALLY DEFERRED
- uint16(226), // (64) init_deferred_pred_opt ::= INITIALLY IMMEDIATE
- uint16(201), // (65) conslist_opt ::=
- uint16(228), // (66) tconscomma ::= COMMA
- uint16(229), // (67) tcons ::= CONSTRAINT nm
- uint16(229), // (68) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf
- uint16(229), // (69) tcons ::= UNIQUE LP sortlist RP onconf
- uint16(229), // (70) tcons ::= CHECK LP expr RP onconf
- uint16(229), // (71) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt
- uint16(232), // (72) defer_subclause_opt ::=
- uint16(217), // (73) onconf ::=
- uint16(217), // (74) onconf ::= ON CONFLICT resolvetype
- uint16(233), // (75) orconf ::=
- uint16(233), // (76) orconf ::= OR resolvetype
- uint16(234), // (77) resolvetype ::= IGNORE
- uint16(234), // (78) resolvetype ::= REPLACE
- uint16(189), // (79) cmd ::= DROP TABLE ifexists fullname
- uint16(236), // (80) ifexists ::= IF EXISTS
- uint16(236), // (81) ifexists ::=
- uint16(189), // (82) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select
- uint16(189), // (83) cmd ::= DROP VIEW ifexists fullname
- uint16(189), // (84) cmd ::= select
- uint16(203), // (85) select ::= WITH wqlist selectnowith
- uint16(203), // (86) select ::= WITH RECURSIVE wqlist selectnowith
- uint16(203), // (87) select ::= selectnowith
- uint16(238), // (88) selectnowith ::= selectnowith multiselect_op oneselect
- uint16(241), // (89) multiselect_op ::= UNION
- uint16(241), // (90) multiselect_op ::= UNION ALL
- uint16(241), // (91) multiselect_op ::= EXCEPT|INTERSECT
- uint16(239), // (92) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt
- uint16(239), // (93) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt
- uint16(251), // (94) values ::= VALUES LP nexprlist RP
- uint16(251), // (95) values ::= values COMMA LP nexprlist RP
- uint16(242), // (96) distinct ::= DISTINCT
- uint16(242), // (97) distinct ::= ALL
- uint16(242), // (98) distinct ::=
- uint16(253), // (99) sclp ::=
- uint16(243), // (100) selcollist ::= sclp scanpt expr scanpt as
- uint16(243), // (101) selcollist ::= sclp scanpt STAR
- uint16(243), // (102) selcollist ::= sclp scanpt nm DOT STAR
- uint16(254), // (103) as ::= AS nm
- uint16(254), // (104) as ::=
- uint16(244), // (105) from ::=
- uint16(244), // (106) from ::= FROM seltablist
- uint16(256), // (107) stl_prefix ::= seltablist joinop
- uint16(256), // (108) stl_prefix ::=
- uint16(255), // (109) seltablist ::= stl_prefix nm dbnm as indexed_opt on_opt using_opt
- uint16(255), // (110) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_opt using_opt
- uint16(255), // (111) seltablist ::= stl_prefix LP select RP as on_opt using_opt
- uint16(255), // (112) seltablist ::= stl_prefix LP seltablist RP as on_opt using_opt
- uint16(199), // (113) dbnm ::=
- uint16(199), // (114) dbnm ::= DOT nm
- uint16(237), // (115) fullname ::= nm
- uint16(237), // (116) fullname ::= nm DOT nm
- uint16(262), // (117) xfullname ::= nm
- uint16(262), // (118) xfullname ::= nm DOT nm
- uint16(262), // (119) xfullname ::= nm DOT nm AS nm
- uint16(262), // (120) xfullname ::= nm AS nm
- uint16(257), // (121) joinop ::= COMMA|JOIN
- uint16(257), // (122) joinop ::= JOIN_KW JOIN
- uint16(257), // (123) joinop ::= JOIN_KW nm JOIN
- uint16(257), // (124) joinop ::= JOIN_KW nm nm JOIN
- uint16(259), // (125) on_opt ::= ON expr
- uint16(259), // (126) on_opt ::=
- uint16(258), // (127) indexed_opt ::=
- uint16(258), // (128) indexed_opt ::= INDEXED BY nm
- uint16(258), // (129) indexed_opt ::= NOT INDEXED
- uint16(260), // (130) using_opt ::= USING LP idlist RP
- uint16(260), // (131) using_opt ::=
- uint16(248), // (132) orderby_opt ::=
- uint16(248), // (133) orderby_opt ::= ORDER BY sortlist
- uint16(230), // (134) sortlist ::= sortlist COMMA expr sortorder nulls
- uint16(230), // (135) sortlist ::= expr sortorder nulls
- uint16(218), // (136) sortorder ::= ASC
- uint16(218), // (137) sortorder ::= DESC
- uint16(218), // (138) sortorder ::=
- uint16(264), // (139) nulls ::= NULLS FIRST
- uint16(264), // (140) nulls ::= NULLS LAST
- uint16(264), // (141) nulls ::=
- uint16(246), // (142) groupby_opt ::=
- uint16(246), // (143) groupby_opt ::= GROUP BY nexprlist
- uint16(247), // (144) having_opt ::=
- uint16(247), // (145) having_opt ::= HAVING expr
- uint16(249), // (146) limit_opt ::=
- uint16(249), // (147) limit_opt ::= LIMIT expr
- uint16(249), // (148) limit_opt ::= LIMIT expr OFFSET expr
- uint16(249), // (149) limit_opt ::= LIMIT expr COMMA expr
- uint16(189), // (150) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret
- uint16(245), // (151) where_opt ::=
- uint16(245), // (152) where_opt ::= WHERE expr
- uint16(266), // (153) where_opt_ret ::=
- uint16(266), // (154) where_opt_ret ::= WHERE expr
- uint16(266), // (155) where_opt_ret ::= RETURNING selcollist
- uint16(266), // (156) where_opt_ret ::= WHERE expr RETURNING selcollist
- uint16(189), // (157) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret
- uint16(267), // (158) setlist ::= setlist COMMA nm EQ expr
- uint16(267), // (159) setlist ::= setlist COMMA LP idlist RP EQ expr
- uint16(267), // (160) setlist ::= nm EQ expr
- uint16(267), // (161) setlist ::= LP idlist RP EQ expr
- uint16(189), // (162) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert
- uint16(189), // (163) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning
- uint16(270), // (164) upsert ::=
- uint16(270), // (165) upsert ::= RETURNING selcollist
- uint16(270), // (166) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert
- uint16(270), // (167) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert
- uint16(270), // (168) upsert ::= ON CONFLICT DO NOTHING returning
- uint16(270), // (169) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning
- uint16(271), // (170) returning ::= RETURNING selcollist
- uint16(268), // (171) insert_cmd ::= INSERT orconf
- uint16(268), // (172) insert_cmd ::= REPLACE
- uint16(269), // (173) idlist_opt ::=
- uint16(269), // (174) idlist_opt ::= LP idlist RP
- uint16(263), // (175) idlist ::= idlist COMMA nm
- uint16(263), // (176) idlist ::= nm
- uint16(216), // (177) expr ::= LP expr RP
- uint16(216), // (178) expr ::= ID|INDEXED
- uint16(216), // (179) expr ::= JOIN_KW
- uint16(216), // (180) expr ::= nm DOT nm
- uint16(216), // (181) expr ::= nm DOT nm DOT nm
- uint16(215), // (182) term ::= NULL|FLOAT|BLOB
- uint16(215), // (183) term ::= STRING
- uint16(215), // (184) term ::= INTEGER
- uint16(216), // (185) expr ::= VARIABLE
- uint16(216), // (186) expr ::= expr COLLATE ID|STRING
- uint16(216), // (187) expr ::= CAST LP expr AS typetoken RP
- uint16(216), // (188) expr ::= ID|INDEXED LP distinct exprlist RP
- uint16(216), // (189) expr ::= ID|INDEXED LP STAR RP
- uint16(216), // (190) expr ::= ID|INDEXED LP distinct exprlist RP filter_over
- uint16(216), // (191) expr ::= ID|INDEXED LP STAR RP filter_over
- uint16(215), // (192) term ::= CTIME_KW
- uint16(216), // (193) expr ::= LP nexprlist COMMA expr RP
- uint16(216), // (194) expr ::= expr AND expr
- uint16(216), // (195) expr ::= expr OR expr
- uint16(216), // (196) expr ::= expr LT|GT|GE|LE expr
- uint16(216), // (197) expr ::= expr EQ|NE expr
- uint16(216), // (198) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr
- uint16(216), // (199) expr ::= expr PLUS|MINUS expr
- uint16(216), // (200) expr ::= expr STAR|SLASH|REM expr
- uint16(216), // (201) expr ::= expr CONCAT expr
- uint16(273), // (202) likeop ::= NOT LIKE_KW|MATCH
- uint16(216), // (203) expr ::= expr likeop expr
- uint16(216), // (204) expr ::= expr likeop expr ESCAPE expr
- uint16(216), // (205) expr ::= expr ISNULL|NOTNULL
- uint16(216), // (206) expr ::= expr NOT NULL
- uint16(216), // (207) expr ::= expr IS expr
- uint16(216), // (208) expr ::= expr IS NOT expr
- uint16(216), // (209) expr ::= NOT expr
- uint16(216), // (210) expr ::= BITNOT expr
- uint16(216), // (211) expr ::= PLUS|MINUS expr
- uint16(274), // (212) between_op ::= BETWEEN
- uint16(274), // (213) between_op ::= NOT BETWEEN
- uint16(216), // (214) expr ::= expr between_op expr AND expr
- uint16(275), // (215) in_op ::= IN
- uint16(275), // (216) in_op ::= NOT IN
- uint16(216), // (217) expr ::= expr in_op LP exprlist RP
- uint16(216), // (218) expr ::= LP select RP
- uint16(216), // (219) expr ::= expr in_op LP select RP
- uint16(216), // (220) expr ::= expr in_op nm dbnm paren_exprlist
- uint16(216), // (221) expr ::= EXISTS LP select RP
- uint16(216), // (222) expr ::= CASE case_operand case_exprlist case_else END
- uint16(278), // (223) case_exprlist ::= case_exprlist WHEN expr THEN expr
- uint16(278), // (224) case_exprlist ::= WHEN expr THEN expr
- uint16(279), // (225) case_else ::= ELSE expr
- uint16(279), // (226) case_else ::=
- uint16(277), // (227) case_operand ::= expr
- uint16(277), // (228) case_operand ::=
- uint16(261), // (229) exprlist ::=
- uint16(252), // (230) nexprlist ::= nexprlist COMMA expr
- uint16(252), // (231) nexprlist ::= expr
- uint16(276), // (232) paren_exprlist ::=
- uint16(276), // (233) paren_exprlist ::= LP exprlist RP
- uint16(189), // (234) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt
- uint16(280), // (235) uniqueflag ::= UNIQUE
- uint16(280), // (236) uniqueflag ::=
- uint16(220), // (237) eidlist_opt ::=
- uint16(220), // (238) eidlist_opt ::= LP eidlist RP
- uint16(231), // (239) eidlist ::= eidlist COMMA nm collate sortorder
- uint16(231), // (240) eidlist ::= nm collate sortorder
- uint16(281), // (241) collate ::=
- uint16(281), // (242) collate ::= COLLATE ID|STRING
- uint16(189), // (243) cmd ::= DROP INDEX ifexists fullname
- uint16(189), // (244) cmd ::= VACUUM vinto
- uint16(189), // (245) cmd ::= VACUUM nm vinto
- uint16(282), // (246) vinto ::= INTO expr
- uint16(282), // (247) vinto ::=
- uint16(189), // (248) cmd ::= PRAGMA nm dbnm
- uint16(189), // (249) cmd ::= PRAGMA nm dbnm EQ nmnum
- uint16(189), // (250) cmd ::= PRAGMA nm dbnm LP nmnum RP
- uint16(189), // (251) cmd ::= PRAGMA nm dbnm EQ minus_num
- uint16(189), // (252) cmd ::= PRAGMA nm dbnm LP minus_num RP
- uint16(210), // (253) plus_num ::= PLUS INTEGER|FLOAT
- uint16(211), // (254) minus_num ::= MINUS INTEGER|FLOAT
- uint16(189), // (255) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END
- uint16(284), // (256) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause
- uint16(286), // (257) trigger_time ::= BEFORE|AFTER
- uint16(286), // (258) trigger_time ::= INSTEAD OF
- uint16(286), // (259) trigger_time ::=
- uint16(287), // (260) trigger_event ::= DELETE|INSERT
- uint16(287), // (261) trigger_event ::= UPDATE
- uint16(287), // (262) trigger_event ::= UPDATE OF idlist
- uint16(289), // (263) when_clause ::=
- uint16(289), // (264) when_clause ::= WHEN expr
- uint16(285), // (265) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI
- uint16(285), // (266) trigger_cmd_list ::= trigger_cmd SEMI
- uint16(291), // (267) trnm ::= nm DOT nm
- uint16(292), // (268) tridxby ::= INDEXED BY nm
- uint16(292), // (269) tridxby ::= NOT INDEXED
- uint16(290), // (270) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt
- uint16(290), // (271) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt
- uint16(290), // (272) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt
- uint16(290), // (273) trigger_cmd ::= scanpt select scanpt
- uint16(216), // (274) expr ::= RAISE LP IGNORE RP
- uint16(216), // (275) expr ::= RAISE LP raisetype COMMA nm RP
- uint16(235), // (276) raisetype ::= ROLLBACK
- uint16(235), // (277) raisetype ::= ABORT
- uint16(235), // (278) raisetype ::= FAIL
- uint16(189), // (279) cmd ::= DROP TRIGGER ifexists fullname
- uint16(189), // (280) cmd ::= ATTACH database_kw_opt expr AS expr key_opt
- uint16(189), // (281) cmd ::= DETACH database_kw_opt expr
- uint16(294), // (282) key_opt ::=
- uint16(294), // (283) key_opt ::= KEY expr
- uint16(189), // (284) cmd ::= REINDEX
- uint16(189), // (285) cmd ::= REINDEX nm dbnm
- uint16(189), // (286) cmd ::= ANALYZE
- uint16(189), // (287) cmd ::= ANALYZE nm dbnm
- uint16(189), // (288) cmd ::= ALTER TABLE fullname RENAME TO nm
- uint16(189), // (289) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist
- uint16(189), // (290) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm
- uint16(295), // (291) add_column_fullname ::= fullname
- uint16(189), // (292) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm
- uint16(189), // (293) cmd ::= create_vtab
- uint16(189), // (294) cmd ::= create_vtab LP vtabarglist RP
- uint16(297), // (295) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm
- uint16(299), // (296) vtabarg ::=
- uint16(300), // (297) vtabargtoken ::= ANY
- uint16(300), // (298) vtabargtoken ::= lp anylist RP
- uint16(301), // (299) lp ::= LP
- uint16(265), // (300) with ::= WITH wqlist
- uint16(265), // (301) with ::= WITH RECURSIVE wqlist
- uint16(304), // (302) wqas ::= AS
- uint16(304), // (303) wqas ::= AS MATERIALIZED
- uint16(304), // (304) wqas ::= AS NOT MATERIALIZED
- uint16(303), // (305) wqitem ::= nm eidlist_opt wqas LP select RP
- uint16(240), // (306) wqlist ::= wqitem
- uint16(240), // (307) wqlist ::= wqlist COMMA wqitem
- uint16(305), // (308) windowdefn_list ::= windowdefn
- uint16(305), // (309) windowdefn_list ::= windowdefn_list COMMA windowdefn
- uint16(306), // (310) windowdefn ::= nm AS LP window RP
- uint16(307), // (311) window ::= PARTITION BY nexprlist orderby_opt frame_opt
- uint16(307), // (312) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt
- uint16(307), // (313) window ::= ORDER BY sortlist frame_opt
- uint16(307), // (314) window ::= nm ORDER BY sortlist frame_opt
- uint16(307), // (315) window ::= frame_opt
- uint16(307), // (316) window ::= nm frame_opt
- uint16(308), // (317) frame_opt ::=
- uint16(308), // (318) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt
- uint16(308), // (319) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt
- uint16(312), // (320) range_or_rows ::= RANGE|ROWS|GROUPS
- uint16(314), // (321) frame_bound_s ::= frame_bound
- uint16(314), // (322) frame_bound_s ::= UNBOUNDED PRECEDING
- uint16(315), // (323) frame_bound_e ::= frame_bound
- uint16(315), // (324) frame_bound_e ::= UNBOUNDED FOLLOWING
- uint16(313), // (325) frame_bound ::= expr PRECEDING|FOLLOWING
- uint16(313), // (326) frame_bound ::= CURRENT ROW
- uint16(316), // (327) frame_exclude_opt ::=
- uint16(316), // (328) frame_exclude_opt ::= EXCLUDE frame_exclude
- uint16(317), // (329) frame_exclude ::= NO OTHERS
- uint16(317), // (330) frame_exclude ::= CURRENT ROW
- uint16(317), // (331) frame_exclude ::= GROUP|TIES
- uint16(250), // (332) window_clause ::= WINDOW windowdefn_list
- uint16(272), // (333) filter_over ::= filter_clause over_clause
- uint16(272), // (334) filter_over ::= over_clause
- uint16(272), // (335) filter_over ::= filter_clause
- uint16(311), // (336) over_clause ::= OVER LP window RP
- uint16(311), // (337) over_clause ::= OVER nm
- uint16(310), // (338) filter_clause ::= FILTER LP WHERE expr RP
- uint16(184), // (339) input ::= cmdlist
- uint16(185), // (340) cmdlist ::= cmdlist ecmd
- uint16(185), // (341) cmdlist ::= ecmd
- uint16(186), // (342) ecmd ::= SEMI
- uint16(186), // (343) ecmd ::= cmdx SEMI
- uint16(186), // (344) ecmd ::= explain cmdx SEMI
- uint16(191), // (345) trans_opt ::=
- uint16(191), // (346) trans_opt ::= TRANSACTION
- uint16(191), // (347) trans_opt ::= TRANSACTION nm
- uint16(193), // (348) savepoint_opt ::= SAVEPOINT
- uint16(193), // (349) savepoint_opt ::=
- uint16(189), // (350) cmd ::= create_table create_table_args
- uint16(202), // (351) table_option_set ::= table_option
- uint16(200), // (352) columnlist ::= columnlist COMMA columnname carglist
- uint16(200), // (353) columnlist ::= columnname carglist
- uint16(192), // (354) nm ::= ID|INDEXED
- uint16(192), // (355) nm ::= STRING
- uint16(192), // (356) nm ::= JOIN_KW
- uint16(207), // (357) typetoken ::= typename
- uint16(208), // (358) typename ::= ID|STRING
- uint16(209), // (359) signed ::= plus_num
- uint16(209), // (360) signed ::= minus_num
- uint16(206), // (361) carglist ::= carglist ccons
- uint16(206), // (362) carglist ::=
- uint16(214), // (363) ccons ::= NULL onconf
- uint16(214), // (364) ccons ::= GENERATED ALWAYS AS generated
- uint16(214), // (365) ccons ::= AS generated
- uint16(201), // (366) conslist_opt ::= COMMA conslist
- uint16(227), // (367) conslist ::= conslist tconscomma tcons
- uint16(227), // (368) conslist ::= tcons
- uint16(228), // (369) tconscomma ::=
- uint16(232), // (370) defer_subclause_opt ::= defer_subclause
- uint16(234), // (371) resolvetype ::= raisetype
- uint16(238), // (372) selectnowith ::= oneselect
- uint16(239), // (373) oneselect ::= values
- uint16(253), // (374) sclp ::= selcollist COMMA
- uint16(254), // (375) as ::= ID|STRING
- uint16(271), // (376) returning ::=
- uint16(216), // (377) expr ::= term
- uint16(273), // (378) likeop ::= LIKE_KW|MATCH
- uint16(261), // (379) exprlist ::= nexprlist
- uint16(283), // (380) nmnum ::= plus_num
- uint16(283), // (381) nmnum ::= nm
- uint16(283), // (382) nmnum ::= ON
- uint16(283), // (383) nmnum ::= DELETE
- uint16(283), // (384) nmnum ::= DEFAULT
- uint16(210), // (385) plus_num ::= INTEGER|FLOAT
- uint16(288), // (386) foreach_clause ::=
- uint16(288), // (387) foreach_clause ::= FOR EACH ROW
- uint16(291), // (388) trnm ::= nm
- uint16(292), // (389) tridxby ::=
- uint16(293), // (390) database_kw_opt ::= DATABASE
- uint16(293), // (391) database_kw_opt ::=
- uint16(296), // (392) kwcolumn_opt ::=
- uint16(296), // (393) kwcolumn_opt ::= COLUMNKW
- uint16(298), // (394) vtabarglist ::= vtabarg
- uint16(298), // (395) vtabarglist ::= vtabarglist COMMA vtabarg
- uint16(299), // (396) vtabarg ::= vtabarg vtabargtoken
- uint16(302), // (397) anylist ::=
- uint16(302), // (398) anylist ::= anylist LP anylist RP
- uint16(302), // (399) anylist ::= anylist ANY
- uint16(265), // (400) with ::=
-} /* sqlite3.c:162180:25 */
+var yyRuleInfoLhs = [402]uint16{
+ uint16(189), // (0) explain ::= EXPLAIN
+ uint16(189), // (1) explain ::= EXPLAIN QUERY PLAN
+ uint16(188), // (2) cmdx ::= cmd
+ uint16(190), // (3) cmd ::= BEGIN transtype trans_opt
+ uint16(191), // (4) transtype ::=
+ uint16(191), // (5) transtype ::= DEFERRED
+ uint16(191), // (6) transtype ::= IMMEDIATE
+ uint16(191), // (7) transtype ::= EXCLUSIVE
+ uint16(190), // (8) cmd ::= COMMIT|END trans_opt
+ uint16(190), // (9) cmd ::= ROLLBACK trans_opt
+ uint16(190), // (10) cmd ::= SAVEPOINT nm
+ uint16(190), // (11) cmd ::= RELEASE savepoint_opt nm
+ uint16(190), // (12) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm
+ uint16(195), // (13) create_table ::= createkw temp TABLE ifnotexists nm dbnm
+ uint16(197), // (14) createkw ::= CREATE
+ uint16(199), // (15) ifnotexists ::=
+ uint16(199), // (16) ifnotexists ::= IF NOT EXISTS
+ uint16(198), // (17) temp ::= TEMP
+ uint16(198), // (18) temp ::=
+ uint16(196), // (19) create_table_args ::= LP columnlist conslist_opt RP table_option_set
+ uint16(196), // (20) create_table_args ::= AS select
+ uint16(203), // (21) table_option_set ::=
+ uint16(203), // (22) table_option_set ::= table_option_set COMMA table_option
+ uint16(205), // (23) table_option ::= WITHOUT nm
+ uint16(205), // (24) table_option ::= nm
+ uint16(206), // (25) columnname ::= nm typetoken
+ uint16(208), // (26) typetoken ::=
+ uint16(208), // (27) typetoken ::= typename LP signed RP
+ uint16(208), // (28) typetoken ::= typename LP signed COMMA signed RP
+ uint16(209), // (29) typename ::= typename ID|STRING
+ uint16(213), // (30) scanpt ::=
+ uint16(214), // (31) scantok ::=
+ uint16(215), // (32) ccons ::= CONSTRAINT nm
+ uint16(215), // (33) ccons ::= DEFAULT scantok term
+ uint16(215), // (34) ccons ::= DEFAULT LP expr RP
+ uint16(215), // (35) ccons ::= DEFAULT PLUS scantok term
+ uint16(215), // (36) ccons ::= DEFAULT MINUS scantok term
+ uint16(215), // (37) ccons ::= DEFAULT scantok ID|INDEXED
+ uint16(215), // (38) ccons ::= NOT NULL onconf
+ uint16(215), // (39) ccons ::= PRIMARY KEY sortorder onconf autoinc
+ uint16(215), // (40) ccons ::= UNIQUE onconf
+ uint16(215), // (41) ccons ::= CHECK LP expr RP
+ uint16(215), // (42) ccons ::= REFERENCES nm eidlist_opt refargs
+ uint16(215), // (43) ccons ::= defer_subclause
+ uint16(215), // (44) ccons ::= COLLATE ID|STRING
+ uint16(224), // (45) generated ::= LP expr RP
+ uint16(224), // (46) generated ::= LP expr RP ID
+ uint16(220), // (47) autoinc ::=
+ uint16(220), // (48) autoinc ::= AUTOINCR
+ uint16(222), // (49) refargs ::=
+ uint16(222), // (50) refargs ::= refargs refarg
+ uint16(225), // (51) refarg ::= MATCH nm
+ uint16(225), // (52) refarg ::= ON INSERT refact
+ uint16(225), // (53) refarg ::= ON DELETE refact
+ uint16(225), // (54) refarg ::= ON UPDATE refact
+ uint16(226), // (55) refact ::= SET NULL
+ uint16(226), // (56) refact ::= SET DEFAULT
+ uint16(226), // (57) refact ::= CASCADE
+ uint16(226), // (58) refact ::= RESTRICT
+ uint16(226), // (59) refact ::= NO ACTION
+ uint16(223), // (60) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt
+ uint16(223), // (61) defer_subclause ::= DEFERRABLE init_deferred_pred_opt
+ uint16(227), // (62) init_deferred_pred_opt ::=
+ uint16(227), // (63) init_deferred_pred_opt ::= INITIALLY DEFERRED
+ uint16(227), // (64) init_deferred_pred_opt ::= INITIALLY IMMEDIATE
+ uint16(202), // (65) conslist_opt ::=
+ uint16(229), // (66) tconscomma ::= COMMA
+ uint16(230), // (67) tcons ::= CONSTRAINT nm
+ uint16(230), // (68) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf
+ uint16(230), // (69) tcons ::= UNIQUE LP sortlist RP onconf
+ uint16(230), // (70) tcons ::= CHECK LP expr RP onconf
+ uint16(230), // (71) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt
+ uint16(233), // (72) defer_subclause_opt ::=
+ uint16(218), // (73) onconf ::=
+ uint16(218), // (74) onconf ::= ON CONFLICT resolvetype
+ uint16(234), // (75) orconf ::=
+ uint16(234), // (76) orconf ::= OR resolvetype
+ uint16(235), // (77) resolvetype ::= IGNORE
+ uint16(235), // (78) resolvetype ::= REPLACE
+ uint16(190), // (79) cmd ::= DROP TABLE ifexists fullname
+ uint16(237), // (80) ifexists ::= IF EXISTS
+ uint16(237), // (81) ifexists ::=
+ uint16(190), // (82) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select
+ uint16(190), // (83) cmd ::= DROP VIEW ifexists fullname
+ uint16(190), // (84) cmd ::= select
+ uint16(204), // (85) select ::= WITH wqlist selectnowith
+ uint16(204), // (86) select ::= WITH RECURSIVE wqlist selectnowith
+ uint16(204), // (87) select ::= selectnowith
+ uint16(239), // (88) selectnowith ::= selectnowith multiselect_op oneselect
+ uint16(242), // (89) multiselect_op ::= UNION
+ uint16(242), // (90) multiselect_op ::= UNION ALL
+ uint16(242), // (91) multiselect_op ::= EXCEPT|INTERSECT
+ uint16(240), // (92) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt
+ uint16(240), // (93) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt
+ uint16(252), // (94) values ::= VALUES LP nexprlist RP
+ uint16(252), // (95) values ::= values COMMA LP nexprlist RP
+ uint16(243), // (96) distinct ::= DISTINCT
+ uint16(243), // (97) distinct ::= ALL
+ uint16(243), // (98) distinct ::=
+ uint16(254), // (99) sclp ::=
+ uint16(244), // (100) selcollist ::= sclp scanpt expr scanpt as
+ uint16(244), // (101) selcollist ::= sclp scanpt STAR
+ uint16(244), // (102) selcollist ::= sclp scanpt nm DOT STAR
+ uint16(255), // (103) as ::= AS nm
+ uint16(255), // (104) as ::=
+ uint16(245), // (105) from ::=
+ 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(249), // (132) orderby_opt ::=
+ uint16(249), // (133) orderby_opt ::= ORDER BY sortlist
+ uint16(231), // (134) sortlist ::= sortlist COMMA expr sortorder nulls
+ uint16(231), // (135) sortlist ::= expr sortorder nulls
+ uint16(219), // (136) sortorder ::= ASC
+ uint16(219), // (137) sortorder ::= DESC
+ uint16(219), // (138) sortorder ::=
+ uint16(265), // (139) nulls ::= NULLS FIRST
+ uint16(265), // (140) nulls ::= NULLS LAST
+ uint16(265), // (141) nulls ::=
+ uint16(247), // (142) groupby_opt ::=
+ uint16(247), // (143) groupby_opt ::= GROUP BY nexprlist
+ uint16(248), // (144) having_opt ::=
+ uint16(248), // (145) having_opt ::= HAVING expr
+ uint16(250), // (146) limit_opt ::=
+ uint16(250), // (147) limit_opt ::= LIMIT expr
+ uint16(250), // (148) limit_opt ::= LIMIT expr OFFSET expr
+ uint16(250), // (149) limit_opt ::= LIMIT expr COMMA expr
+ uint16(190), // (150) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret
+ uint16(246), // (151) where_opt ::=
+ uint16(246), // (152) where_opt ::= WHERE expr
+ uint16(267), // (153) where_opt_ret ::=
+ uint16(267), // (154) where_opt_ret ::= WHERE expr
+ uint16(267), // (155) where_opt_ret ::= RETURNING selcollist
+ uint16(267), // (156) where_opt_ret ::= WHERE expr RETURNING selcollist
+ uint16(190), // (157) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret
+ uint16(268), // (158) setlist ::= setlist COMMA nm EQ expr
+ uint16(268), // (159) setlist ::= setlist COMMA LP idlist RP EQ expr
+ uint16(268), // (160) setlist ::= nm EQ expr
+ uint16(268), // (161) setlist ::= LP idlist RP EQ expr
+ uint16(190), // (162) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert
+ uint16(190), // (163) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning
+ uint16(271), // (164) upsert ::=
+ uint16(271), // (165) upsert ::= RETURNING selcollist
+ uint16(271), // (166) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert
+ uint16(271), // (167) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert
+ uint16(271), // (168) upsert ::= ON CONFLICT DO NOTHING returning
+ uint16(271), // (169) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning
+ uint16(272), // (170) returning ::= RETURNING selcollist
+ uint16(269), // (171) insert_cmd ::= INSERT orconf
+ 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(217), // (177) expr ::= LP expr RP
+ uint16(217), // (178) expr ::= ID|INDEXED
+ uint16(217), // (179) expr ::= JOIN_KW
+ uint16(217), // (180) expr ::= nm DOT nm
+ uint16(217), // (181) expr ::= nm DOT nm DOT nm
+ uint16(216), // (182) term ::= NULL|FLOAT|BLOB
+ uint16(216), // (183) term ::= STRING
+ uint16(216), // (184) term ::= INTEGER
+ uint16(217), // (185) expr ::= VARIABLE
+ uint16(217), // (186) expr ::= expr COLLATE ID|STRING
+ uint16(217), // (187) expr ::= CAST LP expr AS typetoken RP
+ uint16(217), // (188) expr ::= ID|INDEXED LP distinct exprlist RP
+ uint16(217), // (189) expr ::= ID|INDEXED LP STAR RP
+ uint16(217), // (190) expr ::= ID|INDEXED LP distinct exprlist RP filter_over
+ uint16(217), // (191) expr ::= ID|INDEXED LP STAR RP filter_over
+ uint16(216), // (192) term ::= CTIME_KW
+ uint16(217), // (193) expr ::= LP nexprlist COMMA expr RP
+ uint16(217), // (194) expr ::= expr AND expr
+ uint16(217), // (195) expr ::= expr OR expr
+ uint16(217), // (196) expr ::= expr LT|GT|GE|LE expr
+ uint16(217), // (197) expr ::= expr EQ|NE expr
+ uint16(217), // (198) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr
+ uint16(217), // (199) expr ::= expr PLUS|MINUS expr
+ uint16(217), // (200) expr ::= expr STAR|SLASH|REM expr
+ uint16(217), // (201) expr ::= expr CONCAT expr
+ uint16(274), // (202) likeop ::= NOT LIKE_KW|MATCH
+ uint16(217), // (203) expr ::= expr likeop expr
+ uint16(217), // (204) expr ::= expr likeop expr ESCAPE expr
+ uint16(217), // (205) expr ::= expr ISNULL|NOTNULL
+ 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 */
// For rule J, yyRuleInfoNRhs[J] contains the negative of the number
// of symbols on the right-hand side of that rule.
-var yyRuleInfoNRhs = [401]int8{
+var yyRuleInfoNRhs = [402]int8{
int8(-1), // (0) explain ::= EXPLAIN
int8(-3), // (1) explain ::= EXPLAIN QUERY PLAN
int8(-1), // (2) cmdx ::= cmd
@@ -143020,196 +144534,197 @@ var yyRuleInfoNRhs = [401]int8{
int8(-2), // (209) expr ::= NOT expr
int8(-2), // (210) expr ::= BITNOT expr
int8(-2), // (211) expr ::= PLUS|MINUS expr
- int8(-1), // (212) between_op ::= BETWEEN
- int8(-2), // (213) between_op ::= NOT BETWEEN
- int8(-5), // (214) expr ::= expr between_op expr AND expr
- int8(-1), // (215) in_op ::= IN
- int8(-2), // (216) in_op ::= NOT IN
- int8(-5), // (217) expr ::= expr in_op LP exprlist RP
- int8(-3), // (218) expr ::= LP select RP
- int8(-5), // (219) expr ::= expr in_op LP select RP
- int8(-5), // (220) expr ::= expr in_op nm dbnm paren_exprlist
- int8(-4), // (221) expr ::= EXISTS LP select RP
- int8(-5), // (222) expr ::= CASE case_operand case_exprlist case_else END
- int8(-5), // (223) case_exprlist ::= case_exprlist WHEN expr THEN expr
- int8(-4), // (224) case_exprlist ::= WHEN expr THEN expr
- int8(-2), // (225) case_else ::= ELSE expr
- int8(0), // (226) case_else ::=
- int8(-1), // (227) case_operand ::= expr
- int8(0), // (228) case_operand ::=
- int8(0), // (229) exprlist ::=
- int8(-3), // (230) nexprlist ::= nexprlist COMMA expr
- int8(-1), // (231) nexprlist ::= expr
- int8(0), // (232) paren_exprlist ::=
- int8(-3), // (233) paren_exprlist ::= LP exprlist RP
- int8(-12), // (234) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt
- int8(-1), // (235) uniqueflag ::= UNIQUE
- int8(0), // (236) uniqueflag ::=
- int8(0), // (237) eidlist_opt ::=
- int8(-3), // (238) eidlist_opt ::= LP eidlist RP
- int8(-5), // (239) eidlist ::= eidlist COMMA nm collate sortorder
- int8(-3), // (240) eidlist ::= nm collate sortorder
- int8(0), // (241) collate ::=
- int8(-2), // (242) collate ::= COLLATE ID|STRING
- int8(-4), // (243) cmd ::= DROP INDEX ifexists fullname
- int8(-2), // (244) cmd ::= VACUUM vinto
- int8(-3), // (245) cmd ::= VACUUM nm vinto
- int8(-2), // (246) vinto ::= INTO expr
- int8(0), // (247) vinto ::=
- int8(-3), // (248) cmd ::= PRAGMA nm dbnm
- int8(-5), // (249) cmd ::= PRAGMA nm dbnm EQ nmnum
- int8(-6), // (250) cmd ::= PRAGMA nm dbnm LP nmnum RP
- int8(-5), // (251) cmd ::= PRAGMA nm dbnm EQ minus_num
- int8(-6), // (252) cmd ::= PRAGMA nm dbnm LP minus_num RP
- int8(-2), // (253) plus_num ::= PLUS INTEGER|FLOAT
- int8(-2), // (254) minus_num ::= MINUS INTEGER|FLOAT
- int8(-5), // (255) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END
- int8(-11), // (256) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause
- int8(-1), // (257) trigger_time ::= BEFORE|AFTER
- int8(-2), // (258) trigger_time ::= INSTEAD OF
- int8(0), // (259) trigger_time ::=
- int8(-1), // (260) trigger_event ::= DELETE|INSERT
- int8(-1), // (261) trigger_event ::= UPDATE
- int8(-3), // (262) trigger_event ::= UPDATE OF idlist
- int8(0), // (263) when_clause ::=
- int8(-2), // (264) when_clause ::= WHEN expr
- int8(-3), // (265) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI
- int8(-2), // (266) trigger_cmd_list ::= trigger_cmd SEMI
- int8(-3), // (267) trnm ::= nm DOT nm
- int8(-3), // (268) tridxby ::= INDEXED BY nm
- int8(-2), // (269) tridxby ::= NOT INDEXED
- int8(-9), // (270) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt
- int8(-8), // (271) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt
- int8(-6), // (272) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt
- int8(-3), // (273) trigger_cmd ::= scanpt select scanpt
- int8(-4), // (274) expr ::= RAISE LP IGNORE RP
- int8(-6), // (275) expr ::= RAISE LP raisetype COMMA nm RP
- int8(-1), // (276) raisetype ::= ROLLBACK
- int8(-1), // (277) raisetype ::= ABORT
- int8(-1), // (278) raisetype ::= FAIL
- int8(-4), // (279) cmd ::= DROP TRIGGER ifexists fullname
- int8(-6), // (280) cmd ::= ATTACH database_kw_opt expr AS expr key_opt
- int8(-3), // (281) cmd ::= DETACH database_kw_opt expr
- int8(0), // (282) key_opt ::=
- int8(-2), // (283) key_opt ::= KEY expr
- int8(-1), // (284) cmd ::= REINDEX
- int8(-3), // (285) cmd ::= REINDEX nm dbnm
- int8(-1), // (286) cmd ::= ANALYZE
- int8(-3), // (287) cmd ::= ANALYZE nm dbnm
- int8(-6), // (288) cmd ::= ALTER TABLE fullname RENAME TO nm
- int8(-7), // (289) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist
- int8(-6), // (290) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm
- int8(-1), // (291) add_column_fullname ::= fullname
- int8(-8), // (292) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm
- int8(-1), // (293) cmd ::= create_vtab
- int8(-4), // (294) cmd ::= create_vtab LP vtabarglist RP
- int8(-8), // (295) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm
- int8(0), // (296) vtabarg ::=
- int8(-1), // (297) vtabargtoken ::= ANY
- int8(-3), // (298) vtabargtoken ::= lp anylist RP
- int8(-1), // (299) lp ::= LP
- int8(-2), // (300) with ::= WITH wqlist
- int8(-3), // (301) with ::= WITH RECURSIVE wqlist
- int8(-1), // (302) wqas ::= AS
- int8(-2), // (303) wqas ::= AS MATERIALIZED
- int8(-3), // (304) wqas ::= AS NOT MATERIALIZED
- int8(-6), // (305) wqitem ::= nm eidlist_opt wqas LP select RP
- int8(-1), // (306) wqlist ::= wqitem
- int8(-3), // (307) wqlist ::= wqlist COMMA wqitem
- int8(-1), // (308) windowdefn_list ::= windowdefn
- int8(-3), // (309) windowdefn_list ::= windowdefn_list COMMA windowdefn
- int8(-5), // (310) windowdefn ::= nm AS LP window RP
- int8(-5), // (311) window ::= PARTITION BY nexprlist orderby_opt frame_opt
- int8(-6), // (312) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt
- int8(-4), // (313) window ::= ORDER BY sortlist frame_opt
- int8(-5), // (314) window ::= nm ORDER BY sortlist frame_opt
- int8(-1), // (315) window ::= frame_opt
- int8(-2), // (316) window ::= nm frame_opt
- int8(0), // (317) frame_opt ::=
- int8(-3), // (318) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt
- int8(-6), // (319) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt
- int8(-1), // (320) range_or_rows ::= RANGE|ROWS|GROUPS
- int8(-1), // (321) frame_bound_s ::= frame_bound
- int8(-2), // (322) frame_bound_s ::= UNBOUNDED PRECEDING
- int8(-1), // (323) frame_bound_e ::= frame_bound
- int8(-2), // (324) frame_bound_e ::= UNBOUNDED FOLLOWING
- int8(-2), // (325) frame_bound ::= expr PRECEDING|FOLLOWING
- int8(-2), // (326) frame_bound ::= CURRENT ROW
- int8(0), // (327) frame_exclude_opt ::=
- int8(-2), // (328) frame_exclude_opt ::= EXCLUDE frame_exclude
- int8(-2), // (329) frame_exclude ::= NO OTHERS
- int8(-2), // (330) frame_exclude ::= CURRENT ROW
- int8(-1), // (331) frame_exclude ::= GROUP|TIES
- int8(-2), // (332) window_clause ::= WINDOW windowdefn_list
- int8(-2), // (333) filter_over ::= filter_clause over_clause
- int8(-1), // (334) filter_over ::= over_clause
- int8(-1), // (335) filter_over ::= filter_clause
- int8(-4), // (336) over_clause ::= OVER LP window RP
- int8(-2), // (337) over_clause ::= OVER nm
- int8(-5), // (338) filter_clause ::= FILTER LP WHERE expr RP
- int8(-1), // (339) input ::= cmdlist
- int8(-2), // (340) cmdlist ::= cmdlist ecmd
- int8(-1), // (341) cmdlist ::= ecmd
- int8(-1), // (342) ecmd ::= SEMI
- int8(-2), // (343) ecmd ::= cmdx SEMI
- int8(-3), // (344) ecmd ::= explain cmdx SEMI
- int8(0), // (345) trans_opt ::=
- int8(-1), // (346) trans_opt ::= TRANSACTION
- int8(-2), // (347) trans_opt ::= TRANSACTION nm
- int8(-1), // (348) savepoint_opt ::= SAVEPOINT
- int8(0), // (349) savepoint_opt ::=
- int8(-2), // (350) cmd ::= create_table create_table_args
- int8(-1), // (351) table_option_set ::= table_option
- int8(-4), // (352) columnlist ::= columnlist COMMA columnname carglist
- int8(-2), // (353) columnlist ::= columnname carglist
- int8(-1), // (354) nm ::= ID|INDEXED
- int8(-1), // (355) nm ::= STRING
- int8(-1), // (356) nm ::= JOIN_KW
- int8(-1), // (357) typetoken ::= typename
- int8(-1), // (358) typename ::= ID|STRING
- int8(-1), // (359) signed ::= plus_num
- int8(-1), // (360) signed ::= minus_num
- int8(-2), // (361) carglist ::= carglist ccons
- int8(0), // (362) carglist ::=
- int8(-2), // (363) ccons ::= NULL onconf
- int8(-4), // (364) ccons ::= GENERATED ALWAYS AS generated
- int8(-2), // (365) ccons ::= AS generated
- int8(-2), // (366) conslist_opt ::= COMMA conslist
- int8(-3), // (367) conslist ::= conslist tconscomma tcons
- int8(-1), // (368) conslist ::= tcons
- int8(0), // (369) tconscomma ::=
- int8(-1), // (370) defer_subclause_opt ::= defer_subclause
- int8(-1), // (371) resolvetype ::= raisetype
- int8(-1), // (372) selectnowith ::= oneselect
- int8(-1), // (373) oneselect ::= values
- int8(-2), // (374) sclp ::= selcollist COMMA
- int8(-1), // (375) as ::= ID|STRING
- int8(0), // (376) returning ::=
- int8(-1), // (377) expr ::= term
- int8(-1), // (378) likeop ::= LIKE_KW|MATCH
- int8(-1), // (379) exprlist ::= nexprlist
- int8(-1), // (380) nmnum ::= plus_num
- int8(-1), // (381) nmnum ::= nm
- int8(-1), // (382) nmnum ::= ON
- int8(-1), // (383) nmnum ::= DELETE
- int8(-1), // (384) nmnum ::= DEFAULT
- int8(-1), // (385) plus_num ::= INTEGER|FLOAT
- int8(0), // (386) foreach_clause ::=
- int8(-3), // (387) foreach_clause ::= FOR EACH ROW
- int8(-1), // (388) trnm ::= nm
- int8(0), // (389) tridxby ::=
- int8(-1), // (390) database_kw_opt ::= DATABASE
- int8(0), // (391) database_kw_opt ::=
- int8(0), // (392) kwcolumn_opt ::=
- int8(-1), // (393) kwcolumn_opt ::= COLUMNKW
- int8(-1), // (394) vtabarglist ::= vtabarg
- int8(-3), // (395) vtabarglist ::= vtabarglist COMMA vtabarg
- int8(-2), // (396) vtabarg ::= vtabarg vtabargtoken
- int8(0), // (397) anylist ::=
- int8(-4), // (398) anylist ::= anylist LP anylist RP
- int8(-2), // (399) anylist ::= anylist ANY
- int8(0), // (400) with ::=
-} /* sqlite3.c:162586:26 */
+ 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 */
// Forward Declaration
@@ -143221,7 +144736,7 @@ var yyRuleInfoNRhs = [401]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 { /* sqlite3.c:163002:21: */
+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)
@@ -143276,7 +144791,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
fallthrough
case uint32(7): /* transtype ::= EXCLUSIVE */
fallthrough
- case uint32(320): /* range_or_rows ::= RANGE|ROWS|GROUPS */
+ case uint32(321): /* range_or_rows ::= RANGE|ROWS|GROUPS */
{
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/
}
@@ -143327,7 +144842,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
fallthrough
case uint32(98): /* distinct ::= */
fallthrough
- case uint32(241): /* collate ::= */
+ case uint32(242): /* collate ::= */
{
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = 0
}
@@ -143366,21 +144881,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+16115, 5) == 0 {
+ if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(5) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+16155, 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+22686, libc.VaList(bp, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22771, 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+16028, 6) == 0 {
+ if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+16068, 6) == 0 {
*(*U32)(unsafe.Pointer(bp + 40)) = U32(TF_Strict)
} else {
*(*U32)(unsafe.Pointer(bp + 40)) = U32(0)
- Xsqlite3ErrorMsg(tls, pParse, ts+22686, libc.VaList(bp+16, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22771, 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))
@@ -143593,11 +145108,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(213): /* between_op ::= NOT BETWEEN */
+ case uint32(214): /* between_op ::= NOT BETWEEN */
fallthrough
- case uint32(216): /* in_op ::= NOT IN */
+ case uint32(217): /* in_op ::= NOT IN */
fallthrough
- case uint32(242): /* collate ::= COLLATE ID|STRING */
+ case uint32(243): /* collate ::= COLLATE ID|STRING */
{
*(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = 1
}
@@ -143793,11 +145308,11 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
fallthrough
case uint32(142): /* groupby_opt ::= */
fallthrough
- case uint32(229): /* exprlist ::= */
+ case uint32(230): /* exprlist ::= */
fallthrough
- case uint32(232): /* paren_exprlist ::= */
+ case uint32(233): /* paren_exprlist ::= */
fallthrough
- case uint32(237): /* eidlist_opt ::= */
+ case uint32(238): /* eidlist_opt ::= */
{
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
}
@@ -143820,7 +145335,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
case uint32(102): /* selcollist ::= sclp scanpt nm DOT STAR */
{
var pRight uintptr = Xsqlite3PExpr(tls, pParse, TK_ASTERISK, uintptr(0), uintptr(0))
- var pLeft uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_ID, yymsp+libc.UintptrFromInt32(-2)*24+8, 1)
+ var pLeft uintptr = tokenExpr(tls, pParse, TK_ID, *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)))
var pDot uintptr = Xsqlite3PExpr(tls, pParse, TK_DOT, pLeft, pRight)
*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), pDot)
}
@@ -143829,9 +145344,9 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
fallthrough // as ::= AS nm
case uint32(114): /* dbnm ::= DOT nm */
fallthrough
- case uint32(253): /* plus_num ::= PLUS INTEGER|FLOAT */
+ case uint32(254): /* plus_num ::= PLUS INTEGER|FLOAT */
fallthrough
- case uint32(254): /* minus_num ::= MINUS INTEGER|FLOAT */
+ case uint32(255): /* minus_num ::= MINUS INTEGER|FLOAT */
{
*(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8))
}
@@ -143985,9 +145500,9 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
fallthrough
case uint32(154): /* where_opt_ret ::= WHERE expr */
fallthrough
- case uint32(225): /* case_else ::= ELSE expr */
+ case uint32(226): /* case_else ::= ELSE expr */
fallthrough
- case uint32(246): /* vinto ::= INTO expr */
+ case uint32(247): /* vinto ::= INTO expr */
{
*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
}
@@ -144002,11 +145517,11 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
fallthrough
case uint32(153): /* where_opt_ret ::= */
fallthrough
- case uint32(226): /* case_else ::= */
+ case uint32(227): /* case_else ::= */
fallthrough
- case uint32(228): /* case_operand ::= */
+ case uint32(229): /* case_operand ::= */
fallthrough
- case uint32(247): /* vinto ::= */
+ case uint32(248): /* vinto ::= */
{
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
}
@@ -144116,7 +145631,7 @@ 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+22713)
+ Xsqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), ts+22798)
*(*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)))
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))
}
@@ -144219,25 +145734,20 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
break
case uint32(180): /* expr ::= nm DOT nm */
{
- var temp1 uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_ID, yymsp+libc.UintptrFromInt32(-2)*24+8, 1)
- var temp2 uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_ID, yymsp+8, 1)
- if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
- Xsqlite3RenameTokenMap(tls, pParse, temp2, yymsp+8)
- Xsqlite3RenameTokenMap(tls, pParse, temp1, yymsp+libc.UintptrFromInt32(-2)*24+8)
- }
+ var temp1 uintptr = tokenExpr(tls, pParse, TK_ID, *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)))
+ var temp2 uintptr = tokenExpr(tls, pParse, TK_ID, *(*Token)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3PExpr(tls, pParse, TK_DOT, temp1, temp2)
}
*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40))
break
case uint32(181): /* expr ::= nm DOT nm DOT nm */
{
- var temp1 uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_ID, yymsp+libc.UintptrFromInt32(-4)*24+8, 1)
- var temp2 uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_ID, yymsp+libc.UintptrFromInt32(-2)*24+8, 1)
- var temp3 uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_ID, yymsp+8, 1)
+ var temp1 uintptr = tokenExpr(tls, pParse, TK_ID, *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)))
+ var temp2 uintptr = tokenExpr(tls, pParse, TK_ID, *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)))
+ var temp3 uintptr = tokenExpr(tls, pParse, TK_ID, *(*Token)(unsafe.Pointer(yymsp + 8)))
var temp4 uintptr = Xsqlite3PExpr(tls, pParse, TK_DOT, temp2, temp3)
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
- Xsqlite3RenameTokenMap(tls, pParse, temp3, yymsp+8)
- Xsqlite3RenameTokenMap(tls, pParse, temp2, yymsp+libc.UintptrFromInt32(-2)*24+8)
+ Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), temp1)
}
*(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3PExpr(tls, pParse, TK_DOT, temp1, temp4)
}
@@ -144253,6 +145763,9 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
case uint32(184): /* term ::= INTEGER */
{
*(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_INTEGER, yymsp+8, 1)
+ if *(*uintptr)(unsafe.Pointer(bp + 40)) != 0 {
+ *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 40)) + 52)) = int32((int64((*Token)(unsafe.Pointer(yymsp+8)).Fz) - int64((*Parse)(unsafe.Pointer(pParse)).FzTail)) / 1)
+ }
}
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40))
break
@@ -144269,7 +145782,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
*(*Token)(unsafe.Pointer(bp + 112 /* t */)) = *(*Token)(unsafe.Pointer(yymsp + 8)) //A-overwrites-X
if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+22722, libc.VaList(bp+32, bp+112))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22807, libc.VaList(bp+32, bp+112))
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = uintptr(0)
} else {
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3PExpr(tls, pParse, TK_REGISTER, uintptr(0), uintptr(0))
@@ -144438,14 +145951,22 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
//A-overwrites-B
}
break
- case uint32(212):
+ case uint32(212): /* 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)))
+ *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3ExprFunction(tls, pParse, pList, yymsp+libc.UintptrFromInt32(-1)*24+8, 0)
+ }
+ *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40))
+ break
+ case uint32(213):
fallthrough // between_op ::= BETWEEN
- case uint32(215): /* in_op ::= IN */
+ case uint32(216): /* in_op ::= IN */
{
*(*int32)(unsafe.Pointer(yymsp + 8)) = 0
}
break
- case uint32(214): /* expr ::= expr between_op expr AND expr */
+ case uint32(215): /* 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)))
@@ -144460,7 +145981,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
}
break
- case uint32(217): /* expr ::= expr in_op LP exprlist RP */
+ case uint32(218): /* expr ::= expr in_op LP exprlist RP */
{
if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) == uintptr(0) {
// Expressions of the form
@@ -144473,9 +145994,9 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
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 {
if *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) != 0 {
- return ts + 7809 /* "1" */
+ return ts + 7806 /* "1" */
}
- return ts + 7402 /* "0" */
+ return ts + 7398 /* "0" */
}())
} else {
var pRHS uintptr = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + 8)).FpExpr
@@ -144507,14 +146028,14 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
break
- case uint32(218): /* expr ::= LP select RP */
+ case uint32(219): /* 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(219): /* expr ::= expr in_op LP select RP */
+ case uint32(220): /* 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)))
@@ -144524,7 +146045,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
break
- case uint32(220): /* expr ::= expr in_op nm dbnm paren_exprlist */
+ case uint32(221): /* 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))
@@ -144544,7 +146065,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
break
- case uint32(221): /* expr ::= EXISTS LP select RP */
+ case uint32(222): /* 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)))
@@ -144552,7 +146073,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
break
- case uint32(222): /* expr ::= CASE case_operand case_exprlist case_else END */
+ case uint32(223): /* 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 {
@@ -144569,41 +146090,41 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
}
break
- case uint32(223): /* case_exprlist ::= case_exprlist WHEN expr THEN expr */
+ case uint32(224): /* 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(224): /* case_exprlist ::= WHEN expr THEN expr */
+ case uint32(225): /* 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(227): /* case_operand ::= expr */
+ case uint32(228): /* case_operand ::= expr */
{
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) /*A-overwrites-X*/
}
break
- case uint32(230): /* nexprlist ::= nexprlist COMMA expr */
+ case uint32(231): /* 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(231): /* nexprlist ::= expr */
+ case uint32(232): /* nexprlist ::= expr */
{
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-Y*/
}
break
- case uint32(233):
+ case uint32(234):
fallthrough // paren_exprlist ::= LP exprlist RP
- case uint32(238): /* eidlist_opt ::= LP eidlist RP */
+ case uint32(239): /* 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(234): /* cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
+ case uint32(235): /* 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)),
@@ -144613,69 +146134,69 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
}
break
- case uint32(235):
+ case uint32(236):
fallthrough // uniqueflag ::= UNIQUE
- case uint32(277): /* raisetype ::= ABORT */
+ case uint32(278): /* raisetype ::= ABORT */
{
*(*int32)(unsafe.Pointer(yymsp + 8)) = OE_Abort
}
break
- case uint32(236): /* uniqueflag ::= */
+ case uint32(237): /* uniqueflag ::= */
{
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = OE_None
}
break
- case uint32(239): /* eidlist ::= eidlist COMMA nm collate sortorder */
+ case uint32(240): /* 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(240): /* eidlist ::= nm collate sortorder */
+ case uint32(241): /* 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(243): /* cmd ::= DROP INDEX ifexists fullname */
+ case uint32(244): /* 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(244): /* cmd ::= VACUUM vinto */
+ case uint32(245): /* cmd ::= VACUUM vinto */
{
Xsqlite3Vacuum(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
}
break
- case uint32(245): /* cmd ::= VACUUM nm vinto */
+ case uint32(246): /* cmd ::= VACUUM nm vinto */
{
Xsqlite3Vacuum(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
}
break
- case uint32(248): /* cmd ::= PRAGMA nm dbnm */
+ case uint32(249): /* cmd ::= PRAGMA nm dbnm */
{
Xsqlite3Pragma(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, yymsp+8, uintptr(0), 0)
}
break
- case uint32(249): /* cmd ::= PRAGMA nm dbnm EQ nmnum */
+ case uint32(250): /* 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(250): /* cmd ::= PRAGMA nm dbnm LP nmnum RP */
+ case uint32(251): /* 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(251): /* cmd ::= PRAGMA nm dbnm EQ minus_num */
+ case uint32(252): /* 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(252): /* cmd ::= PRAGMA nm dbnm LP minus_num RP */
+ case uint32(253): /* 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(255): /* cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
+ case uint32(256): /* cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
{
// var all Token at bp+128, 16
@@ -144684,7 +146205,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
Xsqlite3FinishTrigger(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), bp+128)
}
break
- case uint32(256): /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
+ case uint32(257): /* 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 {
@@ -144695,109 +146216,109 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}() //A-overwrites-T
}
break
- case uint32(257): /* trigger_time ::= BEFORE|AFTER */
+ case uint32(258): /* trigger_time ::= BEFORE|AFTER */
{
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/
}
break
- case uint32(258): /* trigger_time ::= INSTEAD OF */
+ case uint32(259): /* trigger_time ::= INSTEAD OF */
{
*(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = TK_INSTEAD
}
break
- case uint32(259): /* trigger_time ::= */
+ case uint32(260): /* trigger_time ::= */
{
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = TK_BEFORE
}
break
- case uint32(260):
+ case uint32(261):
fallthrough // trigger_event ::= DELETE|INSERT
- case uint32(261): /* trigger_event ::= UPDATE */
+ case uint32(262): /* 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(262): /* trigger_event ::= UPDATE OF idlist */
+ case uint32(263): /* 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(263):
+ case uint32(264):
fallthrough // when_clause ::=
- case uint32(282): /* key_opt ::= */
+ case uint32(283): /* key_opt ::= */
{
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
}
break
- case uint32(264):
+ case uint32(265):
fallthrough // when_clause ::= WHEN expr
- case uint32(283): /* key_opt ::= KEY expr */
+ case uint32(284): /* key_opt ::= KEY expr */
{
*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
}
break
- case uint32(265): /* trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
+ case uint32(266): /* 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(266): /* trigger_cmd_list ::= trigger_cmd SEMI */
+ case uint32(267): /* 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(267): /* trnm ::= nm DOT nm */
+ case uint32(268): /* trnm ::= nm DOT nm */
{
*(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8))
Xsqlite3ErrorMsg(tls, pParse,
- ts+22746, 0)
+ ts+22831, 0)
}
break
- case uint32(268): /* tridxby ::= INDEXED BY nm */
+ case uint32(269): /* tridxby ::= INDEXED BY nm */
{
Xsqlite3ErrorMsg(tls, pParse,
- ts+22841, 0)
+ ts+22926, 0)
}
break
- case uint32(269): /* tridxby ::= NOT INDEXED */
+ case uint32(270): /* tridxby ::= NOT INDEXED */
{
Xsqlite3ErrorMsg(tls, pParse,
- ts+22925, 0)
+ ts+23010, 0)
}
break
- case uint32(270): /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
+ case uint32(271): /* 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(271): /* trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
+ case uint32(272): /* 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.yy95-overwrites-yymsp[-6].minor.yy64
+ *(*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(272): /* trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
+ case uint32(273): /* 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(273): /* trigger_cmd ::= scanpt select scanpt */
+ case uint32(274): /* 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.yy95-overwrites-yymsp[-1].minor.yy303*/
+ *(*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(274): /* expr ::= RAISE LP IGNORE RP */
+ case uint32(275): /* 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 {
@@ -144805,7 +146326,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
}
break
- case uint32(275): /* expr ::= RAISE LP raisetype COMMA nm RP */
+ case uint32(276): /* 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 {
@@ -144813,151 +146334,151 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
}
break
- case uint32(276): /* raisetype ::= ROLLBACK */
+ case uint32(277): /* raisetype ::= ROLLBACK */
{
*(*int32)(unsafe.Pointer(yymsp + 8)) = OE_Rollback
}
break
- case uint32(278): /* raisetype ::= FAIL */
+ case uint32(279): /* raisetype ::= FAIL */
{
*(*int32)(unsafe.Pointer(yymsp + 8)) = OE_Fail
}
break
- case uint32(279): /* cmd ::= DROP TRIGGER ifexists fullname */
+ case uint32(280): /* 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(280): /* cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
+ case uint32(281): /* 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(281): /* cmd ::= DETACH database_kw_opt expr */
+ case uint32(282): /* cmd ::= DETACH database_kw_opt expr */
{
Xsqlite3Detach(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
}
break
- case uint32(284): /* cmd ::= REINDEX */
+ case uint32(285): /* cmd ::= REINDEX */
{
Xsqlite3Reindex(tls, pParse, uintptr(0), uintptr(0))
}
break
- case uint32(285): /* cmd ::= REINDEX nm dbnm */
+ case uint32(286): /* cmd ::= REINDEX nm dbnm */
{
Xsqlite3Reindex(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, yymsp+8)
}
break
- case uint32(286): /* cmd ::= ANALYZE */
+ case uint32(287): /* cmd ::= ANALYZE */
{
Xsqlite3Analyze(tls, pParse, uintptr(0), uintptr(0))
}
break
- case uint32(287): /* cmd ::= ANALYZE nm dbnm */
+ case uint32(288): /* cmd ::= ANALYZE nm dbnm */
{
Xsqlite3Analyze(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, yymsp+8)
}
break
- case uint32(288): /* cmd ::= ALTER TABLE fullname RENAME TO nm */
+ case uint32(289): /* cmd ::= ALTER TABLE fullname RENAME TO nm */
{
Xsqlite3AlterRenameTable(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), yymsp+8)
}
break
- case uint32(289): /* cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
+ case uint32(290): /* 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(290): /* cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
+ case uint32(291): /* 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(291): /* add_column_fullname ::= fullname */
+ case uint32(292): /* add_column_fullname ::= fullname */
{
disableLookaside(tls, pParse)
Xsqlite3AlterBeginAddColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
}
break
- case uint32(292): /* cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
+ case uint32(293): /* 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(293): /* cmd ::= create_vtab */
+ case uint32(294): /* cmd ::= create_vtab */
{
Xsqlite3VtabFinishParse(tls, pParse, uintptr(0))
}
break
- case uint32(294): /* cmd ::= create_vtab LP vtabarglist RP */
+ case uint32(295): /* cmd ::= create_vtab LP vtabarglist RP */
{
Xsqlite3VtabFinishParse(tls, pParse, yymsp+8)
}
break
- case uint32(295): /* create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
+ case uint32(296): /* 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(296): /* vtabarg ::= */
+ case uint32(297): /* vtabarg ::= */
{
Xsqlite3VtabArgInit(tls, pParse)
}
break
- case uint32(297):
+ case uint32(298):
fallthrough // vtabargtoken ::= ANY
- case uint32(298): /* vtabargtoken ::= lp anylist RP */
+ case uint32(299): /* vtabargtoken ::= lp anylist RP */
fallthrough
- case uint32(299): /* lp ::= LP */
+ case uint32(300): /* lp ::= LP */
{
Xsqlite3VtabArgExtend(tls, pParse, yymsp+8)
}
break
- case uint32(300):
+ case uint32(301):
fallthrough // with ::= WITH wqlist
- case uint32(301): /* with ::= WITH RECURSIVE wqlist */
+ case uint32(302): /* with ::= WITH RECURSIVE wqlist */
{
Xsqlite3WithPush(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uint8(1))
}
break
- case uint32(302): /* wqas ::= AS */
+ case uint32(303): /* wqas ::= AS */
{
*(*U8)(unsafe.Pointer(yymsp + 8)) = U8(M10d_Any)
}
break
- case uint32(303): /* wqas ::= AS MATERIALIZED */
+ case uint32(304): /* wqas ::= AS MATERIALIZED */
{
*(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = U8(M10d_Yes)
}
break
- case uint32(304): /* wqas ::= AS NOT MATERIALIZED */
+ case uint32(305): /* wqas ::= AS NOT MATERIALIZED */
{
*(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = U8(M10d_No)
}
break
- case uint32(305): /* wqitem ::= nm eidlist_opt wqas LP select RP */
+ case uint32(306): /* 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(306): /* wqlist ::= wqitem */
+ case uint32(307): /* wqlist ::= wqitem */
{
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3WithAdd(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) //A-overwrites-X
}
break
- case uint32(307): /* wqlist ::= wqlist COMMA wqitem */
+ case uint32(308): /* 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(308): /* windowdefn_list ::= windowdefn */
+ case uint32(309): /* 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(309): /* windowdefn_list ::= windowdefn_list COMMA windowdefn */
+ case uint32(310): /* windowdefn_list ::= windowdefn_list COMMA windowdefn */
{
Xsqlite3WindowChain(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)))
@@ -144966,7 +146487,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(310): /* windowdefn ::= nm AS LP window RP */
+ case uint32(311): /* 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))
@@ -144975,113 +146496,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(311): /* window ::= PARTITION BY nexprlist orderby_opt frame_opt */
+ case uint32(312): /* 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(312): /* window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
+ case uint32(313): /* 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(313): /* window ::= ORDER BY sortlist frame_opt */
+ case uint32(314): /* 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(314): /* window ::= nm ORDER BY sortlist frame_opt */
+ case uint32(315): /* 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(315):
+ case uint32(316):
fallthrough // window ::= frame_opt
- case uint32(334): /* filter_over ::= over_clause */
+ case uint32(335): /* 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(316): /* window ::= nm frame_opt */
+ case uint32(317): /* 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(317): /* frame_opt ::= */
+ case uint32(318): /* 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(318): /* frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
+ case uint32(319): /* 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(319): /* frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
+ case uint32(320): /* 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(321):
+ case uint32(322):
fallthrough // frame_bound_s ::= frame_bound
- case uint32(323): /* frame_bound_e ::= frame_bound */
+ case uint32(324): /* 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(322):
+ case uint32(323):
fallthrough // frame_bound_s ::= UNBOUNDED PRECEDING
- case uint32(324): /* frame_bound_e ::= UNBOUNDED FOLLOWING */
+ case uint32(325): /* frame_bound_e ::= UNBOUNDED FOLLOWING */
fallthrough
- case uint32(326): /* frame_bound ::= CURRENT ROW */
+ case uint32(327): /* 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(325): /* frame_bound ::= expr PRECEDING|FOLLOWING */
+ case uint32(326): /* 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(327): /* frame_exclude_opt ::= */
+ case uint32(328): /* frame_exclude_opt ::= */
{
*(*U8)(unsafe.Pointer(yymsp + 1*24 + 8)) = U8(0)
}
break
- case uint32(328): /* frame_exclude_opt ::= EXCLUDE frame_exclude */
+ case uint32(329): /* frame_exclude_opt ::= EXCLUDE frame_exclude */
{
*(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*U8)(unsafe.Pointer(yymsp + 8))
}
break
- case uint32(329):
+ case uint32(330):
fallthrough // frame_exclude ::= NO OTHERS
- case uint32(330): /* frame_exclude ::= CURRENT ROW */
+ case uint32(331): /* 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(331): /* frame_exclude ::= GROUP|TIES */
+ case uint32(332): /* frame_exclude ::= GROUP|TIES */
{
*(*U8)(unsafe.Pointer(yymsp + 8)) = U8((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/
}
break
- case uint32(332): /* window_clause ::= WINDOW windowdefn_list */
+ case uint32(333): /* window_clause ::= WINDOW windowdefn_list */
{
*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
}
break
- case uint32(333): /* filter_over ::= filter_clause over_clause */
+ case uint32(334): /* 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))
@@ -145092,7 +146613,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(335): /* filter_over ::= filter_clause */
+ case uint32(336): /* 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 {
@@ -145104,13 +146625,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(336): /* over_clause ::= OVER LP window RP */
+ case uint32(337): /* 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(337): /* over_clause ::= OVER nm */
+ case uint32(338): /* 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 {
@@ -145118,74 +146639,74 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
}
}
break
- case uint32(338): /* filter_clause ::= FILTER LP WHERE expr RP */
+ case uint32(339): /* 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:
- /* (339) input ::= cmdlist */
- /* (340) cmdlist ::= cmdlist ecmd */
- /* (341) cmdlist ::= ecmd (OPTIMIZED OUT) */
- /* (342) ecmd ::= SEMI */
- /* (343) ecmd ::= cmdx SEMI */
- /* (344) ecmd ::= explain cmdx SEMI (NEVER REDUCES) */
- /* (345) trans_opt ::= */
- /* (346) trans_opt ::= TRANSACTION */
- /* (347) trans_opt ::= TRANSACTION nm */
- /* (348) savepoint_opt ::= SAVEPOINT */
- /* (349) savepoint_opt ::= */
- /* (350) cmd ::= create_table create_table_args */
- /* (351) table_option_set ::= table_option (OPTIMIZED OUT) */
- /* (352) columnlist ::= columnlist COMMA columnname carglist */
- /* (353) columnlist ::= columnname carglist */
- /* (354) nm ::= ID|INDEXED */
- /* (355) nm ::= STRING */
- /* (356) nm ::= JOIN_KW */
- /* (357) typetoken ::= typename */
- /* (358) typename ::= ID|STRING */
- /* (359) signed ::= plus_num (OPTIMIZED OUT) */
- /* (360) signed ::= minus_num (OPTIMIZED OUT) */
- /* (361) carglist ::= carglist ccons */
- /* (362) carglist ::= */
- /* (363) ccons ::= NULL onconf */
- /* (364) ccons ::= GENERATED ALWAYS AS generated */
- /* (365) ccons ::= AS generated */
- /* (366) conslist_opt ::= COMMA conslist */
- /* (367) conslist ::= conslist tconscomma tcons */
- /* (368) conslist ::= tcons (OPTIMIZED OUT) */
- /* (369) tconscomma ::= */
- /* (370) defer_subclause_opt ::= defer_subclause (OPTIMIZED OUT) */
- /* (371) resolvetype ::= raisetype (OPTIMIZED OUT) */
- /* (372) selectnowith ::= oneselect (OPTIMIZED OUT) */
- /* (373) oneselect ::= values */
- /* (374) sclp ::= selcollist COMMA */
- /* (375) as ::= ID|STRING */
- /* (376) returning ::= */
- /* (377) expr ::= term (OPTIMIZED OUT) */
- /* (378) likeop ::= LIKE_KW|MATCH */
- /* (379) exprlist ::= nexprlist */
- /* (380) nmnum ::= plus_num (OPTIMIZED OUT) */
- /* (381) nmnum ::= nm (OPTIMIZED OUT) */
- /* (382) nmnum ::= ON */
- /* (383) nmnum ::= DELETE */
- /* (384) nmnum ::= DEFAULT */
- /* (385) plus_num ::= INTEGER|FLOAT */
- /* (386) foreach_clause ::= */
- /* (387) foreach_clause ::= FOR EACH ROW */
- /* (388) trnm ::= nm */
- /* (389) tridxby ::= */
- /* (390) database_kw_opt ::= DATABASE */
- /* (391) database_kw_opt ::= */
- /* (392) kwcolumn_opt ::= */
- /* (393) kwcolumn_opt ::= COLUMNKW */
- /* (394) vtabarglist ::= vtabarg */
- /* (395) vtabarglist ::= vtabarglist COMMA vtabarg */
- /* (396) vtabarg ::= vtabarg vtabargtoken */
- /* (397) anylist ::= */
- /* (398) anylist ::= anylist LP anylist RP */
- /* (399) anylist ::= anylist ANY */
- /* (400) with ::= */
+ /* (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 ::= */
break
//********* End reduce actions ***********************************************
}
@@ -145210,7 +146731,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) { /* sqlite3.c:164554:13: */
+func yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, yyminor Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166506:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
*(*Token)(unsafe.Pointer(bp + 8)) = yyminor
@@ -145220,9 +146741,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+22722, libc.VaList(bp, bp+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22807, libc.VaList(bp, bp+8))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+23010, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+23095, 0)
}
//*********** End %syntax_error code *****************************************
@@ -145230,7 +146751,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) { /* sqlite3.c:164578:13: */
+func yy_accept(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166530:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
@@ -145260,7 +146781,7 @@ func yy_accept(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:164578:13: */
//
// Outputs:
// None.
-func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { /* sqlite3.c:164619:21: */
+func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166571:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -145314,7 +146835,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 { /* sqlite3.c:164836:20: */
+func Xsqlite3ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166788:20: */
return int32(yyFallback[iToken])
}
@@ -145365,7 +146886,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),
-} /* sqlite3.c:164908:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166860:28 */
// The charMap() macro maps alphabetic characters (only) into their
// lower-case ASCII equivalent. On ASCII machines, this is just
@@ -145451,7 +146972,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'),
-} /* sqlite3.c:165024:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166976: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),
@@ -145464,7 +146985,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),
-} /* sqlite3.c:165064:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167016: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.
@@ -145481,7 +147002,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),
-} /* sqlite3.c:165079:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167031: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),
@@ -145496,7 +147017,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),
-} /* sqlite3.c:165094:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167046:28 */
// aKWOffset[i] is the index into zKWText[] of the start of
// the text for the i-th keyword.
var aKWOffset = [147]uint16{
@@ -145512,7 +147033,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),
-} /* sqlite3.c:165110:33 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167062: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),
@@ -145545,7 +147066,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),
-} /* sqlite3.c:165125:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167077:28 */
// Hash table decoded:
// 0: INSERT
@@ -145678,7 +147199,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 { /* sqlite3.c:165289:12: */
+func keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167241:12: */
var i int32
var j int32
var zKW uintptr
@@ -145856,7 +147377,7 @@ func keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) int32 { /* sq
return n
}
-func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3.c:165463:20: */
+func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167415:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -145865,7 +147386,7 @@ func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3.c
return *(*int32)(unsafe.Pointer(bp /* id */))
}
-func Xsqlite3_keyword_name(tls *libc.TLS, i int32, pzName uintptr, pnName uintptr) int32 { /* sqlite3.c:165469:16: */
+func Xsqlite3_keyword_name(tls *libc.TLS, i int32, pzName uintptr, pnName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167421:16: */
if i < 0 || i >= SQLITE_N_KEYWORD {
return SQLITE_ERROR
}
@@ -145874,11 +147395,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 { /* sqlite3.c:165475:16: */
+func Xsqlite3_keyword_count(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167427:16: */
return SQLITE_N_KEYWORD
}
-func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /* sqlite3.c:165476:16: */
+func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167428:16: */
return libc.Bool32(TK_ID != Xsqlite3KeywordCode(tls, zName, nName))
}
@@ -145901,20 +147422,20 @@ 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 { /* sqlite3.c:165523:20: */
+func Xsqlite3IsIdChar(tls *libc.TLS, c U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167475: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 { /* sqlite3.c:165530:12: */
+func getToken(tls *libc.TLS, pz uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167482:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
var z uintptr = *(*uintptr)(unsafe.Pointer(pz))
// var t int32 at bp, 4
// Token type to return
- for ok := true; ok; ok = *(*int32)(unsafe.Pointer(bp)) == TK_SPACE {
+ for __ccgo := true; __ccgo; __ccgo = *(*int32)(unsafe.Pointer(bp)) == TK_SPACE {
z += uintptr(Xsqlite3GetToken(tls, z, bp))
}
if *(*int32)(unsafe.Pointer(bp)) == TK_ID ||
@@ -145957,7 +147478,7 @@ func getToken(tls *libc.TLS, pz uintptr) int32 { /* sqlite3.c:165530:12: */
//
// * the previous token was TK_RP, and
// * the next token is TK_LP.
-func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:165579:12: */
+func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167531:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -145974,7 +147495,7 @@ func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:165579:
return TK_WINDOW
}
-func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* sqlite3.c:165587:12: */
+func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167539:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -145988,7 +147509,7 @@ func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* sq
return TK_ID
}
-func analyzeFilterKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* sqlite3.c:165594:12: */
+func analyzeFilterKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167546:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -146001,7 +147522,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 { /* sqlite3.c:165606:20: */
+func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167558:20: */
var i int32
var c int32
switch int32(aiClass[*(*uint8)(unsafe.Pointer(z))]) { // Switch on the character-class of the first byte
@@ -146023,6 +147544,9 @@ func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* sq
}
*(*int32)(unsafe.Pointer(tokenType)) = TK_SPACE // IMP: R-22934-25134
return i
+ } else if int32(*(*uint8)(unsafe.Pointer(z + 1))) == '>' {
+ *(*int32)(unsafe.Pointer(tokenType)) = TK_PTR
+ return 2 + libc.Bool32(int32(*(*uint8)(unsafe.Pointer(z + 2))) == '>')
}
*(*int32)(unsafe.Pointer(tokenType)) = TK_MINUS
return 1
@@ -146264,7 +147788,7 @@ func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* sq
if int32(Xsqlite3CtypeMap[uint8(c)])&0x46 != 0 {
n++
} else if c == '(' && n > 0 {
- for ok := true; ok; ok = libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i))))) != 0 && !(int32(Xsqlite3CtypeMap[uint8(c)])&0x01 != 0) && c != ')' {
+ for __ccgo := true; __ccgo; __ccgo = libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i))))) != 0 && !(int32(Xsqlite3CtypeMap[uint8(c)])&0x01 != 0) && c != ')' {
i++
}
if c == ')' {
@@ -146359,25 +147883,21 @@ func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* sq
return i
}
-// Run the parser on the given SQL string. The parser structure is
-// passed in. An SQLITE_ status code is returned. If an error occurs
-// then an and attempt is made to write an error message into
-// memory obtained from sqlite3_malloc() and to make *pzErrMsg point to that
-// error message.
-func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:165901:20: */
- bp := tls.Alloc(2468)
- defer tls.Free(2468)
+// 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: */
+ bp := tls.Alloc(2480)
+ defer tls.Free(2480)
var nErr int32 = 0 // Number of errors encountered
var pEngine uintptr // The LEMON-generated LALR(1) parser
var n int32 = 0 // Length of the next token token
- // var tokenType int32 at bp+2464, 4
+ // var tokenType int32 at bp+2456, 4
// type of the next token
var lastTokenParsed int32 = -1 // type of the previous token
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // The database connection
var mxSqlLen int32 // Max length of an SQL string
var pParentParse uintptr = uintptr(0) // Outer parse context, if any
- // var sEngine YyParser at bp+40, 2424
+ // var sEngine YyParser at bp+32, 2424
// Space to hold the Lemon-generated Parser object
mxSqlLen = *(*int32)(unsafe.Pointer(db + 136 + 1*4))
@@ -146386,26 +147906,26 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr, pzErrMsg uin
}
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_OK
(*Parse)(unsafe.Pointer(pParse)).FzTail = zSql
-
- pEngine = bp + 40 /* &sEngine */
+ pEngine = bp + 32 /* &sEngine */
Xsqlite3ParserInit(tls, pEngine, pParse)
pParentParse = (*Sqlite3)(unsafe.Pointer(db)).FpParse
(*Sqlite3)(unsafe.Pointer(db)).FpParse = pParse
for 1 != 0 {
- n = Xsqlite3GetToken(tls, zSql, bp+2464)
+ n = Xsqlite3GetToken(tls, zSql, bp+2456)
mxSqlLen = mxSqlLen - n
if mxSqlLen < 0 {
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_TOOBIG
break
}
- if *(*int32)(unsafe.Pointer(bp + 2464)) >= TK_WINDOW {
+ if *(*int32)(unsafe.Pointer(bp + 2456)) >= TK_WINDOW {
if libc.AtomicLoadNInt32(db+432, 0) != 0 {
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_INTERRUPT
+ (*Parse)(unsafe.Pointer(pParse)).FnErr++
break
}
- if *(*int32)(unsafe.Pointer(bp + 2464)) == TK_SPACE {
+ if *(*int32)(unsafe.Pointer(bp + 2456)) == TK_SPACE {
zSql += uintptr(n)
continue
}
@@ -146413,31 +147933,35 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr, pzErrMsg uin
// Upon reaching the end of input, call the parser two more times
// with tokens TK_SEMI and 0, in that order.
if lastTokenParsed == TK_SEMI {
- *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */)) = 0
+ *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */)) = 0
} else if lastTokenParsed == 0 {
break
} else {
- *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */)) = TK_SEMI
+ *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */)) = TK_SEMI
}
n = 0
- } else if *(*int32)(unsafe.Pointer(bp + 2464)) == TK_WINDOW {
+ } else if *(*int32)(unsafe.Pointer(bp + 2456)) == TK_WINDOW {
- *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */)) = analyzeWindowKeyword(tls, zSql+6)
- } else if *(*int32)(unsafe.Pointer(bp + 2464)) == TK_OVER {
+ *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */)) = analyzeWindowKeyword(tls, zSql+6)
+ } else if *(*int32)(unsafe.Pointer(bp + 2456)) == TK_OVER {
- *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */)) = analyzeOverKeyword(tls, zSql+4, lastTokenParsed)
- } else if *(*int32)(unsafe.Pointer(bp + 2464)) == TK_FILTER {
+ *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */)) = analyzeOverKeyword(tls, zSql+4, lastTokenParsed)
+ } else if *(*int32)(unsafe.Pointer(bp + 2456)) == TK_FILTER {
- *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */)) = analyzeFilterKeyword(tls, zSql+6, lastTokenParsed)
+ *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */)) = analyzeFilterKeyword(tls, zSql+6, lastTokenParsed)
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+23027, libc.VaList(bp, n, zSql))
+ // var x Token at bp+2464, 16
+
+ (*Token)(unsafe.Pointer(bp + 2464 /* &x */)).Fz = zSql
+ (*Token)(unsafe.Pointer(bp + 2464 /* &x */)).Fn = uint32(n)
+ Xsqlite3ErrorMsg(tls, pParse, ts+23112, libc.VaList(bp, bp+2464))
break
}
}
(*Parse)(unsafe.Pointer(pParse)).FsLastToken.Fz = zSql
(*Parse)(unsafe.Pointer(pParse)).FsLastToken.Fn = uint32(n)
- Xsqlite3Parser(tls, pEngine, *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */)), (*Parse)(unsafe.Pointer(pParse)).FsLastToken)
- lastTokenParsed = *(*int32)(unsafe.Pointer(bp + 2464 /* tokenType */))
+ Xsqlite3Parser(tls, pEngine, *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */)), (*Parse)(unsafe.Pointer(pParse)).FsLastToken)
+ lastTokenParsed = *(*int32)(unsafe.Pointer(bp + 2456 /* tokenType */))
zSql += uintptr(n)
if (*Parse)(unsafe.Pointer(pParse)).Frc != SQLITE_OK {
@@ -146449,36 +147973,23 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr, pzErrMsg uin
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_NOMEM
}
- if (*Parse)(unsafe.Pointer(pParse)).Frc != SQLITE_OK && (*Parse)(unsafe.Pointer(pParse)).Frc != SQLITE_DONE && (*Parse)(unsafe.Pointer(pParse)).FzErrMsg == uintptr(0) {
- (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+3604, libc.VaList(bp+16, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc)))
- }
-
- if (*Parse)(unsafe.Pointer(pParse)).FzErrMsg != 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = (*Parse)(unsafe.Pointer(pParse)).FzErrMsg
- Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+23054,
- libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pzErrMsg)), (*Parse)(unsafe.Pointer(pParse)).FzTail))
- (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = uintptr(0)
+ 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+3595, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc)))
+ }
+ Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+23137, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail))
nErr++
}
(*Parse)(unsafe.Pointer(pParse)).FzTail = zSql
- if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 && (*Parse)(unsafe.Pointer(pParse)).FnErr > 0 && int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 {
- Xsqlite3VdbeDelete(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe)
- (*Parse)(unsafe.Pointer(pParse)).FpVdbe = uintptr(0)
- }
- if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 {
- Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FaTableLock)
- (*Parse)(unsafe.Pointer(pParse)).FaTableLock = uintptr(0)
- (*Parse)(unsafe.Pointer(pParse)).FnTableLock = 0
- }
Xsqlite3_free(tls, (*Parse)(unsafe.Pointer(pParse)).FapVtabLock)
- if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_NORMAL) {
+ if (*Parse)(unsafe.Pointer(pParse)).FpNewTable != 0 && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_NORMAL) {
// If the pParse->declareVtab flag is set, do not delete any table
// structure built up in pParse->pNewTable. The calling code (see vtab.c)
// will take responsibility for freeing the Table structure.
Xsqlite3DeleteTable(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpNewTable)
}
- if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
+ 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)
@@ -146563,7 +148074,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr, pzErrMsg uin
// 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 { /* sqlite3.c:166305:16: */
+func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168244:16: */
var state U8 = U8(0) // Current state, using numbers defined in header comment
var token U8
@@ -146666,7 +148177,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:166305:
fallthrough
case 'C':
{
- if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+23065, 6) == 0 {
+ if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+23148, 6) == 0 {
token = U8(TkCREATE)
} else {
token = U8(TkOTHER)
@@ -146679,11 +148190,11 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:166305:
fallthrough
case 'T':
{
- if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+19778, 7) == 0 {
+ if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+19816, 7) == 0 {
token = U8(TkTRIGGER)
- } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+23072, 4) == 0 {
+ } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+23155, 4) == 0 {
token = U8(TkTEMP)
- } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+23077, 9) == 0 {
+ } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+23160, 9) == 0 {
token = U8(TkTEMP)
} else {
token = U8(TkOTHER)
@@ -146696,9 +148207,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:166305:
fallthrough
case 'E':
{
- if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+23087, 3) == 0 {
+ if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+23170, 3) == 0 {
token = U8(TkEND)
- } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+23091, 7) == 0 {
+ } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+23174, 7) == 0 {
token = U8(TkEXPLAIN)
} else {
token = U8(TkOTHER)
@@ -146740,12 +148251,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)},
-} /* sqlite3.c:166313:19 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168252: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 { /* sqlite3.c:166470:16: */
+func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168409:16: */
var pVal uintptr
var zSql8 uintptr
var rc int32
@@ -146772,7 +148283,7 @@ func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:16647
// 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 { /* sqlite3.c:166622:12: */
+func sqlite3TestExtInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168561:12: */
_ = db
return Xsqlite3FaultSim(tls, 500)
}
@@ -146784,11 +148295,11 @@ var sqlite3BuiltinExtensions = [4]uintptr{
0,
0,
0,
-} /* sqlite3.c:166652:12 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168588: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 { /* sqlite3.c:166699:23: */
+func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168635:23: */
return uintptr(unsafe.Pointer(&Xsqlite3_version))
}
@@ -146801,14 +148312,14 @@ func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* sqlite3.c:166699:23: */
// 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 { /* sqlite3.c:166712:16: */
+func Xsqlite3_libversion_number(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168648: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 { /* sqlite3.c:166718:16: */
+func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168654:16: */
return SQLITE_THREADSAFE
}
@@ -146821,14 +148332,14 @@ func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* sqlite3.c:166718:16: */
// temporary files.
//
// See also the "PRAGMA temp_store_directory" SQL command.
-var Xsqlite3_temp_directory uintptr = uintptr(0) /* sqlite3.c:166749:17 */
+var Xsqlite3_temp_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168685: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) /* sqlite3.c:166758:17 */
+var Xsqlite3_data_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168694:17 */
// Initialize SQLite.
//
@@ -146859,7 +148370,7 @@ var Xsqlite3_data_directory uintptr = uintptr(0) /* sqlite3.c:166758:17 */
//
// * Recursive calls to this routine from thread X return immediately
// without blocking.
-func Xsqlite3_initialize(tls *libc.TLS) int32 { /* sqlite3.c:166791:16: */
+func Xsqlite3_initialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168727:16: */
var pMainMtx uintptr // The main static mutex
var rc int32 // Result code
@@ -146985,7 +148496,7 @@ func Xsqlite3_initialize(tls *libc.TLS) int32 { /* sqlite3.c:166791:16: */
// 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 { /* sqlite3.c:166966:16: */
+func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168902:16: */
if Xsqlite3Config.FisInit != 0 {
Xsqlite3_os_end(tls)
@@ -147024,7 +148535,7 @@ func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* sqlite3.c:166966:16: */
// 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 { /* sqlite3.c:167020:16: */
+func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168956:16: */
var ap Va_list
_ = ap
var rc int32 = SQLITE_OK
@@ -147032,7 +148543,7 @@ func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlite3.c:1
// sqlite3_config() shall return SQLITE_MISUSE if it is invoked while
// the SQLite library is in use.
if Xsqlite3Config.FisInit != 0 {
- return Xsqlite3MisuseError(tls, 167026)
+ return Xsqlite3MisuseError(tls, 168962)
}
ap = va
@@ -147302,7 +148813,7 @@ func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlite3.c:1
// 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 { /* sqlite3.c:167338:12: */
+func setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169274:12: */
var pStart uintptr
var szAlloc Sqlite3_int64 = Sqlite3_int64(sz) * Sqlite3_int64(cnt)
var nBig int32 // Number of full-size slots
@@ -147400,13 +148911,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 { /* sqlite3.c:167438:26: */
+func Xsqlite3_db_mutex(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169374: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 { /* sqlite3.c:167452:16: */
+func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169388:16: */
var i int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -147425,7 +148936,7 @@ func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:
// Flush any dirty pages in the pager-cache for any attached database
// to disk.
-func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167476:16: */
+func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169412:16: */
var i int32
var rc int32 = SQLITE_OK
var bSeenBusy int32 = 0
@@ -147454,7 +148965,7 @@ func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:1674
}
// Configuration settings for an individual database connection
-func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* sqlite3.c:167505:16: */
+func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169441:16: */
var ap Va_list
_ = ap
var rc int32
@@ -147533,11 +149044,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)},
-} /* sqlite3.c:167528:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169464: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 { /* sqlite3.c:167580:12: */
+func binCollFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169516:12: */
var rc int32
var n int32
_ = NotUsed
@@ -147559,7 +149070,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 { /* sqlite3.c:167603:12: */
+func rtrimCollFunc(tls *libc.TLS, pUser uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169539:12: */
var pK1 uintptr = pKey1
var pK2 uintptr = pKey2
for nKey1 != 0 && int32(*(*U8)(unsafe.Pointer(pK1 + uintptr(nKey1-1)))) == ' ' {
@@ -147572,7 +149083,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 { /* sqlite3.c:167618:20: */
+func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169554: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
@@ -147586,7 +149097,7 @@ func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:167618:20:
// 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 { /* sqlite3.c:167632:12: */
+func nocaseCollatingFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169568:12: */
var r int32 = Xsqlite3_strnicmp(tls,
pKey1, pKey2, func() int32 {
if nKey1 < nKey2 {
@@ -147602,39 +149113,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 { /* sqlite3.c:167649:25: */
+func Xsqlite3_last_insert_rowid(tls *libc.TLS, db uintptr) Sqlite_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169585: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) { /* sqlite3.c:167662:17: */
+func Xsqlite3_set_last_insert_rowid(tls *libc.TLS, db uintptr, iRowid Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169598: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 { /* sqlite3.c:167677:26: */
+func Xsqlite3_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169613:26: */
return (*Sqlite3)(unsafe.Pointer(db)).FnChange
}
-func Xsqlite3_changes(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167686:16: */
+func Xsqlite3_changes(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169622: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 { /* sqlite3.c:167693:26: */
+func Xsqlite3_total_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169629:26: */
return (*Sqlite3)(unsafe.Pointer(db)).FnTotalChange
}
-func Xsqlite3_total_changes(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167702:16: */
+func Xsqlite3_total_changes(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169638: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) { /* sqlite3.c:167711:21: */
+func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169647: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
@@ -147649,7 +149160,7 @@ func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* sqlite3.c:167711:21
// 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) { /* sqlite3.c:167728:13: */
+func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169664:13: */
var pDestructor uintptr
pDestructor = *(*uintptr)(unsafe.Pointer(p + 64))
@@ -147664,7 +149175,7 @@ func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:167728
// 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) { /* sqlite3.c:167745:13: */
+func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169681:13: */
var i int32
var p uintptr
Xsqlite3BtreeEnterAll(tls, db)
@@ -147691,7 +149202,7 @@ func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* sqlite3.c:167745:13: */
// Return TRUE if database connection db has unfinalized prepared
// statements or unfinished sqlite3_backup objects.
-func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167776:12: */
+func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169712:12: */
var j int32
if (*Sqlite3)(unsafe.Pointer(db)).FpVdbe != 0 {
@@ -147707,14 +149218,14 @@ func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167776:12:
}
// Close an existing SQLite database
-func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* sqlite3.c:167790:12: */
+func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169726: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, 167797)
+ return Xsqlite3MisuseError(tls, 169733)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_CLOSE != 0 {
@@ -147738,7 +149249,7 @@ func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* sqlit
// SQLITE_BUSY if the connection can not be closed immediately.
if !(forceZombie != 0) && connectionIsBusy(tls, db) != 0 {
Xsqlite3ErrorWithMsg(tls, db, SQLITE_BUSY,
- ts+23099, 0)
+ ts+23182, 0)
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
return SQLITE_BUSY
}
@@ -147751,7 +149262,7 @@ func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* sqlit
// 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 { /* sqlite3.c:167844:16: */
+func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169780:16: */
var iDb int32
var nDb int32
var iTxn int32 = -1
@@ -147788,11 +149299,11 @@ func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) int32 { /* s
// 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 { /* sqlite3.c:167879:16: */
+func Xsqlite3_close(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169815:16: */
return sqlite3Close(tls, db, 0)
}
-func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167880:16: */
+func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169816:16: */
return sqlite3Close(tls, db, 1)
}
@@ -147802,7 +149313,7 @@ func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:167880:16
// 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) { /* sqlite3.c:167891:21: */
+func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169827:21: */
var i uintptr // Hash table iterator
var j int32
@@ -147856,7 +149367,7 @@ func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* sqlite3.c:
var pNext uintptr
var p uintptr
p = (*HashElem)(unsafe.Pointer(i)).Fdata
- for ok := true; ok; ok = p != 0 {
+ for __ccgo := true; __ccgo; __ccgo = p != 0 {
functionDestroy(tls, db, p)
pNext = (*FuncDef)(unsafe.Pointer(p)).FpNext
Xsqlite3DbFree(tls, db, p)
@@ -147912,7 +149423,7 @@ func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* sqlite3.c:
// 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) { /* sqlite3.c:168014:21: */
+func Xsqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169950:21: */
var i int32
var inTrans int32 = 0
var schemaChange int32
@@ -147962,24 +149473,24 @@ func Xsqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) { /* sqlite3
// Return a static string that describes the kind of error specified in the
// argument.
-func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:168175:27: */
- var zErr uintptr = ts + 23167 /* "unknown error" */
+func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170111:27: */
+ var zErr uintptr = ts + 23250 /* "unknown error" */
switch rc {
case SQLITE_ABORT | int32(2)<<8:
{
- zErr = ts + 23181 /* "abort due to ROL..." */
+ zErr = ts + 23264 /* "abort due to ROL..." */
break
}
case SQLITE_ROW:
{
- zErr = ts + 23203 /* "another row avai..." */
+ zErr = ts + 23286 /* "another row avai..." */
break
}
case SQLITE_DONE:
{
- zErr = ts + 23225 /* "no more rows ava..." */
+ zErr = ts + 23308 /* "no more rows ava..." */
break
}
@@ -147997,36 +149508,36 @@ func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:168175:27: *
}
var aMsg = [29]uintptr{
- ts + 23248,
- ts + 23261,
+ ts + 23331,
+ ts + 23344,
/* SQLITE_INTERNAL */ uintptr(0),
- ts + 23277,
- ts + 23302,
- ts + 23316,
- ts + 23335,
- ts + 6031,
ts + 23360,
- ts + 23397,
- ts + 23409,
- ts + 23424,
- ts + 23457,
- ts + 23475,
- ts + 23500,
- ts + 23529,
+ ts + 23385,
+ ts + 23399,
+ ts + 23418,
+ ts + 1451,
+ ts + 23443,
+ ts + 23480,
+ ts + 23492,
+ ts + 23507,
+ ts + 23540,
+ ts + 23558,
+ ts + 23583,
+ ts + 23612,
/* SQLITE_EMPTY */ uintptr(0),
- ts + 5761,
- ts + 5257,
- ts + 23546,
- ts + 23564,
- ts + 23582,
+ ts + 5780,
+ ts + 5266,
+ ts + 23629,
+ ts + 23647,
+ ts + 23665,
/* SQLITE_NOLFS */ uintptr(0),
- ts + 23616,
+ ts + 23699,
/* SQLITE_FORMAT */ uintptr(0),
- ts + 23637,
- ts + 23663,
- ts + 23686,
- ts + 23707,
-} /* sqlite3.c:168176:20 */
+ ts + 23720,
+ ts + 23746,
+ ts + 23769,
+ ts + 23790,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170112:20 */
// This routine implements a busy callback that sleeps and tries
// again until a timeout value is reached. The timeout value is
@@ -148035,7 +149546,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 { /* sqlite3.c:168245:12: */
+func sqliteDefaultBusyCallback(tls *libc.TLS, ptr uintptr, count int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170181:12: */
var db uintptr = ptr
var tmout int32 = (*Sqlite3)(unsafe.Pointer(db)).FbusyTimeout
var delay int32
@@ -148058,8 +149569,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)} /* sqlite3.c:168252: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)} /* sqlite3.c:168254: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-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 */
// Invoke the given busy handler.
//
@@ -148068,7 +149579,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 { /* sqlite3.c:168297:20: */
+func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170233:20: */
var rc int32
if (*BusyHandler)(unsafe.Pointer(p)).FxBusyHandler == uintptr(0) || (*BusyHandler)(unsafe.Pointer(p)).FnBusy < 0 {
return 0
@@ -148086,7 +149597,7 @@ func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:16
// 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 { /* sqlite3.c:168313:16: */
+func Xsqlite3_busy_handler(tls *libc.TLS, db uintptr, xBusy uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170249:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FxBusyHandler = xBusy
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FpBusyArg = pArg
@@ -148099,7 +149610,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) { /* sqlite3.c:168336:17: */
+func Xsqlite3_progress_handler(tls *libc.TLS, db uintptr, nOps int32, xProgress uintptr, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170272:17: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if nOps > 0 {
(*Sqlite3)(unsafe.Pointer(db)).FxProgress = xProgress
@@ -148115,7 +149626,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 { /* sqlite3.c:168367:16: */
+func Xsqlite3_busy_timeout(tls *libc.TLS, db uintptr, ms int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170303:16: */
if ms > 0 {
Xsqlite3_busy_handler(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -148129,7 +149640,7 @@ func Xsqlite3_busy_timeout(tls *libc.TLS, db uintptr, ms int32) int32 { /* sqlit
}
// Cause any pending operation to stop at its earliest opportunity.
-func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* sqlite3.c:168384:17: */
+func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170320:17: */
libc.AtomicStoreNInt32(db+432, int32(1), 0)
}
@@ -148137,7 +149648,7 @@ func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* sqlite3.c:168384:17: */
// 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 { /* sqlite3.c:168401: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-3380500/sqlite3.c:170337:20: */
var p uintptr
var extraFlags int32
@@ -148147,7 +149658,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, 168426)
+ return Xsqlite3MisuseError(tls, 170362)
}
extraFlags = enc & (SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS)
@@ -148205,7 +149716,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+23723, 0)
+ ts+23806, 0)
return SQLITE_BUSY
} else {
@@ -148252,7 +149763,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 { /* sqlite3.c:168535: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-3380500/sqlite3.c:170471:12: */
var rc int32
var pArg uintptr
rc = SQLITE_ERROR
@@ -148294,22 +149805,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 { /* sqlite3.c:168586: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-3380500/sqlite3.c:170522: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 { /* sqlite3.c:168599: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-3380500/sqlite3.c:170535: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 { /* sqlite3.c:168613: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-3380500/sqlite3.c:170549: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 { /* sqlite3.c:168630: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-3380500/sqlite3.c:170566:16: */
var rc int32
var zFunc8 uintptr
@@ -148329,7 +149840,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) { /* sqlite3.c:168666:13: */
+func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170602:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148338,7 +149849,7 @@ func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUs
_ = NotUsed
_ = NotUsed2
zErr = Xsqlite3_mprintf(tls,
- ts+23786, libc.VaList(bp, zName))
+ ts+23869, libc.VaList(bp, zName))
Xsqlite3_result_error(tls, context, zErr, -1)
Xsqlite3_free(tls, zErr)
}
@@ -148353,7 +149864,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 { /* sqlite3.c:168692:16: */
+func Xsqlite3_overload_function(tls *libc.TLS, db uintptr, zName uintptr, nArg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170628:16: */
var rc int32
var zCopy uintptr
@@ -148379,7 +149890,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 { /* sqlite3.c:168725:17: */
+func Xsqlite3_trace(tls *libc.TLS, db uintptr, xTrace uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170661:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -148397,7 +149908,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 { /* sqlite3.c:168746:16: */
+func Xsqlite3_trace_v2(tls *libc.TLS, db uintptr, mTrace uint32, xTrace uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170682:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if mTrace == uint32(0) {
xTrace = uintptr(0)
@@ -148418,16 +149929,16 @@ 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 { /* sqlite3.c:168776:17: */
+func Xsqlite3_profile(tls *libc.TLS, db uintptr, xProfile uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170712:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pOld = (*Sqlite3)(unsafe.Pointer(db)).FpProfileArg
(*Sqlite3)(unsafe.Pointer(db)).FxProfile = xProfile
(*Sqlite3)(unsafe.Pointer(db)).FpProfileArg = pArg
- *(*U8)(unsafe.Pointer(db + 106)) &= U8(SQLITE_TRACE_NONLEGACY_MASK)
+ *(*U8)(unsafe.Pointer(db + 110)) &= U8(SQLITE_TRACE_NONLEGACY_MASK)
if (*Sqlite3)(unsafe.Pointer(db)).FxProfile != 0 {
- *(*U8)(unsafe.Pointer(db + 106)) |= U8(SQLITE_TRACE_XPROFILE)
+ *(*U8)(unsafe.Pointer(db + 110)) |= U8(SQLITE_TRACE_XPROFILE)
}
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
return pOld
@@ -148436,7 +149947,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 { /* sqlite3.c:168806:17: */
+func Xsqlite3_commit_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170742:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -148449,7 +149960,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 { /* sqlite3.c:168831:17: */
+func Xsqlite3_update_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170767:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -148462,7 +149973,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 { /* sqlite3.c:168856:17: */
+func Xsqlite3_rollback_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170792:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -148475,7 +149986,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 { /* sqlite3.c:168882:17: */
+func Xsqlite3_preupdate_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170818:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pRet = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdateArg
@@ -148487,7 +149998,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 { /* sqlite3.c:168902:16: */
+func Xsqlite3_autovacuum_pages(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170838: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)
@@ -148503,7 +150014,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 { /* sqlite3.c:168933:20: */
+func Xsqlite3WalDefaultHook(tls *libc.TLS, pClientData uintptr, db uintptr, zDb uintptr, nFrame int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170869:20: */
if nFrame >= int32(pClientData) {
Xsqlite3BeginBenignMalloc(tls)
Xsqlite3_wal_checkpoint(tls, db, zDb)
@@ -148521,7 +150032,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 { /* sqlite3.c:168959:16: */
+func Xsqlite3_wal_autocheckpoint(tls *libc.TLS, db uintptr, nFrame int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170895:16: */
if nFrame > 0 {
Xsqlite3_wal_hook(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32) int32
@@ -148534,7 +150045,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 { /* sqlite3.c:168980:17: */
+func Xsqlite3_wal_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170916:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pRet = (*Sqlite3)(unsafe.Pointer(db)).FpWalArg
@@ -148545,7 +150056,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 { /* sqlite3.c:169007:16: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148574,7 +150085,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+23837, libc.VaList(bp, zDb))
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+23920, libc.VaList(bp, zDb))
} else {
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0
rc = Xsqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt)
@@ -148595,7 +150106,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 { /* sqlite3.c:169071:16: */
+func Xsqlite3_wal_checkpoint(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171007: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))
@@ -148619,7 +150130,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 { /* sqlite3.c:169098:20: */
+func Xsqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171034: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
@@ -148661,19 +150172,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 { /* sqlite3.c:169144:20: */
+func Xsqlite3TempInMemory(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171080: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 { /* sqlite3.c:169165:23: */
+func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171101:23: */
var z uintptr
if !(db != 0) {
return Xsqlite3ErrStr(tls, SQLITE_NOMEM)
}
if !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3ErrStr(tls, Xsqlite3MisuseError(tls, 169171))
+ return Xsqlite3ErrStr(tls, Xsqlite3MisuseError(tls, 171107))
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -148694,9 +150205,20 @@ func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:169165:23
return z
}
+// 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: */
+ 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)
+ iOffset = (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset
+ Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
+ }
+ return iOffset
+}
+
// Return UTF-16 encoded English language explanation of the most recent
// error.
-func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:169193:23: */
+func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171142:23: */
var z uintptr
if !(db != 0) {
return uintptr(uintptr(unsafe.Pointer(&outOfMem)))
@@ -148725,18 +150247,18 @@ func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:169193:
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),
-} /* sqlite3.c:169194:20 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171143: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),
-} /* sqlite3.c:169197:20 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171146: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 { /* sqlite3.c:169235:16: */
+func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171184:16: */
if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3MisuseError(tls, 169237)
+ return Xsqlite3MisuseError(tls, 171186)
}
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return SQLITE_NOMEM
@@ -148744,9 +150266,9 @@ func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169235:16:
return (*Sqlite3)(unsafe.Pointer(db)).FerrCode & (*Sqlite3)(unsafe.Pointer(db)).FerrMask
}
-func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169244:16: */
+func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171193:16: */
if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3MisuseError(tls, 169246)
+ return Xsqlite3MisuseError(tls, 171195)
}
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return SQLITE_NOMEM
@@ -148754,7 +150276,7 @@ func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:1
return (*Sqlite3)(unsafe.Pointer(db)).FerrCode
}
-func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169253:16: */
+func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171202:16: */
if db != 0 {
return (*Sqlite3)(unsafe.Pointer(db)).FiSysErrno
}
@@ -148764,13 +150286,13 @@ func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:16925
// 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 { /* sqlite3.c:169262:23: */
+func Xsqlite3_errstr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171211: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 { /* sqlite3.c:169270:12: */
+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: */
var pColl uintptr
var enc2 int32
@@ -148783,7 +150305,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, 169294)
+ return Xsqlite3MisuseError(tls, 171243)
}
// Check if this call is removing or replacing an existing collation
@@ -148793,7 +150315,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+23858, 0)
+ ts+23941, 0)
return SQLITE_BUSY
}
Xsqlite3ExpirePreparedStatements(tls, db, 0)
@@ -148846,7 +150368,7 @@ var aHardLimit = [12]int32{
SQLITE_MAX_VARIABLE_NUMBER, // IMP: R-38091-32352
SQLITE_MAX_TRIGGER_DEPTH,
SQLITE_MAX_WORKER_THREADS,
-} /* sqlite3.c:169347:18 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171296:18 */
// Make sure the hard limits are set to reasonable values
@@ -148858,7 +150380,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 { /* sqlite3.c:169410:16: */
+func Xsqlite3_limit(tls *libc.TLS, db uintptr, limitId int32, newLimit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171359:16: */
var oldLimit int32
// EVIDENCE-OF: R-30189-54097 For each limit category SQLITE_LIMIT_NAME
@@ -148905,7 +150427,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 { /* sqlite3.c:169482:20: */
+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: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -148938,7 +150460,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+23926, uint64(5)) == 0) {
+ nUri >= 5 && libc.Xmemcmp(tls, zUri, ts+24009, uint64(5)) == 0) {
goto __1
} // Input character index
iOut = 0 // Output character index
@@ -148986,10 +150508,10 @@ __8:
goto __8
__9:
;
- if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+23932, zUri+7, uint64(9)) != 0)) {
+ if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+24015, zUri+7, uint64(9)) != 0)) {
goto __10
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+23942,
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24025,
libc.VaList(bp, iIn-7, zUri+7))
rc = SQLITE_ERROR
goto parse_uri_out
@@ -149111,7 +150633,7 @@ __27:
zVal = zOpt + uintptr(nOpt+1)
nVal = Xsqlite3Strlen30(tls, zVal)
- if !(nOpt == 3 && libc.Xmemcmp(tls, ts+23970, zOpt, uint64(3)) == 0) {
+ if !(nOpt == 3 && libc.Xmemcmp(tls, ts+24053, zOpt, uint64(3)) == 0) {
goto __29
}
zVfs = zVal
@@ -149122,17 +150644,17 @@ __29:
mask = 0
limit = 0
- if !(nOpt == 5 && libc.Xmemcmp(tls, ts+23974, zOpt, uint64(5)) == 0) {
+ if !(nOpt == 5 && libc.Xmemcmp(tls, ts+24057, zOpt, uint64(5)) == 0) {
goto __31
}
mask = SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_PRIVATECACHE
aMode = uintptr(unsafe.Pointer(&aCacheMode))
limit = mask
- zModeType = ts + 23974 /* "cache" */
+ zModeType = ts + 24057 /* "cache" */
__31:
;
- if !(nOpt == 4 && libc.Xmemcmp(tls, ts+23980, zOpt, uint64(4)) == 0) {
+ if !(nOpt == 4 && libc.Xmemcmp(tls, ts+24063, zOpt, uint64(4)) == 0) {
goto __32
}
@@ -149140,7 +150662,7 @@ __31:
SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY
aMode = uintptr(unsafe.Pointer(&aOpenMode))
limit = int32(uint32(mask) & flags)
- zModeType = ts + 3213 /* "access" */
+ zModeType = ts + 3204 /* "access" */
__32:
;
@@ -149171,7 +150693,7 @@ __36:
if !(mode == 0) {
goto __38
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+23985, libc.VaList(bp+16, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24068, libc.VaList(bp+16, zModeType, zVal))
rc = SQLITE_ERROR
goto parse_uri_out
__38:
@@ -149179,7 +150701,7 @@ __38:
if !(mode&libc.CplInt32(SQLITE_OPEN_MEMORY) > limit) {
goto __39
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24005,
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24088,
libc.VaList(bp+32, zModeType, zVal))
rc = SQLITE_PERM
goto parse_uri_out
@@ -149222,7 +150744,7 @@ __2:
if !(*(*uintptr)(unsafe.Pointer(ppVfs)) == uintptr(0)) {
goto __42
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24029, libc.VaList(bp+48, zVfs))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24112, libc.VaList(bp+48, zVfs))
rc = SQLITE_ERROR
__42:
;
@@ -149243,24 +150765,24 @@ type OpenMode = struct {
Fz uintptr
Fmode int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:169624:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171573:9 */
var aCacheMode = [3]OpenMode{
- {Fz: ts + 24045, Fmode: SQLITE_OPEN_SHAREDCACHE},
- {Fz: ts + 24052, Fmode: SQLITE_OPEN_PRIVATECACHE},
+ {Fz: ts + 24128, Fmode: SQLITE_OPEN_SHAREDCACHE},
+ {Fz: ts + 24135, Fmode: SQLITE_OPEN_PRIVATECACHE},
{},
-} /* sqlite3.c:169633:34 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171582:34 */
var aOpenMode = [5]OpenMode{
- {Fz: ts + 24060, Fmode: SQLITE_OPEN_READONLY},
- {Fz: ts + 24063, Fmode: SQLITE_OPEN_READWRITE},
- {Fz: ts + 24066, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE},
- {Fz: ts + 17210, Fmode: SQLITE_OPEN_MEMORY},
+ {Fz: ts + 24143, Fmode: SQLITE_OPEN_READONLY},
+ {Fz: ts + 24146, Fmode: SQLITE_OPEN_READWRITE},
+ {Fz: ts + 24149, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE},
+ {Fz: ts + 17250, Fmode: SQLITE_OPEN_MEMORY},
{},
-} /* sqlite3.c:169645:34 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171594: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 { /* sqlite3.c:169719:19: */
+func uriParameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171668:19: */
zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1)
for zFilename != uintptr(0) && *(*int8)(unsafe.Pointer(zFilename)) != 0 {
var x int32 = libc.Xstrcmp(tls, zFilename, zParam)
@@ -149276,7 +150798,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 { /* sqlite3.c:169737:12: */
+func openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, flags uint32, zVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171686:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
*(*uint32)(unsafe.Pointer(bp + 8)) = flags
@@ -149428,10 +150950,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+21616, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ createCollation(tls, db, ts+21675, 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+24070, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ createCollation(tls, db, ts+24153, 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) {
@@ -149460,7 +150982,7 @@ __15:
if !(int32(1)<<(*(*uint32)(unsafe.Pointer(bp + 8))&uint32(7))&0x46 == 0) {
goto __16
}
- rc = Xsqlite3MisuseError(tls, 169950) // IMP: R-18321-05872
+ rc = Xsqlite3MisuseError(tls, 171899) // IMP: R-18321-05872
goto __17
__16:
rc = Xsqlite3ParseUri(tls, zVfs, zFilename, bp+8, db, bp+16, bp+24)
@@ -149477,7 +150999,7 @@ __19:
;
Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 {
- return ts + 3604 /* "%s" */
+ return ts + 3595 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */))))
@@ -149515,9 +151037,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 + 6308 /* "main" */
+ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FzDbSName = ts + 6313 /* "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 + 23072 /* "temp" */
+ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 23155 /* "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)
@@ -149616,17 +151138,17 @@ __32:
}
// Open a new database handle.
-func Xsqlite3_open(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* sqlite3.c:170072:16: */
+func Xsqlite3_open(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172021: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 { /* sqlite3.c:170079:16: */
+func Xsqlite3_open_v2(tls *libc.TLS, filename uintptr, ppDb uintptr, flags int32, zVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172028: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 { /* sqlite3.c:170092:16: */
+func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172041:16: */
var zFilename8 uintptr // zFilename encoded in UTF-8 instead of UTF-16
var pVal uintptr
var rc int32
@@ -149637,7 +151159,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /*
return rc
}
if zFilename == uintptr(0) {
- zFilename = ts + 24076 /* "\x00\x00" */
+ zFilename = ts + 24159 /* "\x00\x00" */
}
pVal = Xsqlite3ValueNew(tls, uintptr(0))
Xsqlite3ValueSetStr(tls, pVal, -1, zFilename, uint8(SQLITE_UTF16LE), uintptr(0))
@@ -149647,7 +151169,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /*
uint32(SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE), uintptr(0))
if rc == SQLITE_OK && !(int32((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppDb)))).FaDb)).FpSchema)).FschemaFlags)&DB_SchemaLoaded == DB_SchemaLoaded) {
- (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppDb)))).FaDb)).FpSchema)).Fenc = libc.AssignPtrUint8(*(*uintptr)(unsafe.Pointer(ppDb))+96, U8(SQLITE_UTF16LE))
+ (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppDb)))).FaDb)).FpSchema)).Fenc = libc.AssignPtrUint8(*(*uintptr)(unsafe.Pointer(ppDb))+100, U8(SQLITE_UTF16LE))
}
} else {
rc = SQLITE_NOMEM
@@ -149658,12 +151180,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 { /* sqlite3.c:170131:16: */
+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: */
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 { /* sqlite3.c:170144: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-3380500/sqlite3.c:172093:16: */
var rc int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -149675,7 +151197,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 { /* sqlite3.c:170169:16: */
+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: */
var rc int32 = SQLITE_OK
var zName8 uintptr
@@ -149693,7 +151215,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 { /* sqlite3.c:170199:16: */
+func Xsqlite3_collation_needed(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172148:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = xCollNeeded
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = uintptr(0)
@@ -149704,7 +151226,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 { /* sqlite3.c:170220:16: */
+func Xsqlite3_collation_needed16(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded16 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172169:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = uintptr(0)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = xCollNeeded16
@@ -149715,7 +151237,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 { /* sqlite3.c:170242:16: */
+func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172191:16: */
return SQLITE_OK
}
@@ -149723,7 +151245,7 @@ func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* sqlite3.c:170242:16: */
// 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 { /* sqlite3.c:170253:16: */
+func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172202:16: */
return int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)
}
@@ -149736,28 +151258,28 @@ func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:170
//
// 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 { /* sqlite3.c:170274:20: */
+func Xsqlite3ReportError(tls *libc.TLS, iErr int32, lineno int32, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172223:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
- Xsqlite3_log(tls, iErr, ts+24079,
+ Xsqlite3_log(tls, iErr, ts+24162,
libc.VaList(bp, zType, lineno, uintptr(20)+Xsqlite3_sourceid(tls)))
return iErr
}
-func Xsqlite3CorruptError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:170279:20: */
+func Xsqlite3CorruptError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172228:20: */
- return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+24104)
+ return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+24187)
}
-func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:170283:20: */
+func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172232:20: */
- return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+24124)
+ return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+24207)
}
-func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:170287:20: */
+func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172236:20: */
- return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+24131)
+ return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+24214)
}
// This is a convenience routine that makes sure that all thread-specific
@@ -149765,12 +151287,12 @@ func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:170
//
// 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) { /* sqlite3.c:170318:17: */
+func Xsqlite3_thread_cleanup(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172267: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 { /* sqlite3.c:170326: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-3380500/sqlite3.c:172275:16: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -149884,7 +151406,7 @@ __4:
autoinc = libc.Bool32(int32((*Table)(unsafe.Pointer(pTab)).FiPKey) == iCol && (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Autoincrement) != U32(0))
goto __13
__12:
- zDataType = ts + 1093 /* "INTEGER" */
+ zDataType = ts + 1080 /* "INTEGER" */
primarykey = 1
__13:
;
@@ -149936,14 +151458,14 @@ __19:
goto __20
}
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))
- *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+24148, libc.VaList(bp, zTableName,
+ *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+24231, libc.VaList(bp, zTableName,
zColumnName))
rc = SQLITE_ERROR
__20:
;
Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 {
- return ts + 3604 /* "%s" */
+ return ts + 3595 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */))))
@@ -149954,7 +151476,7 @@ __20:
}
// Sleep for a little while. Return the amount of time slept.
-func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* sqlite3.c:170444:16: */
+func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172393:16: */
var pVfs uintptr
var rc int32
pVfs = Xsqlite3_vfs_find(tls, uintptr(0))
@@ -149969,7 +151491,7 @@ func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* sqlite3.c:170444:16: */
}
// Enable or disable the extended result codes.
-func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int32 { /* sqlite3.c:170460:16: */
+func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172409:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FerrMask = func() int32 {
if onoff != 0 {
@@ -149982,7 +151504,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 { /* sqlite3.c:170473:16: */
+func Xsqlite3_file_control(tls *libc.TLS, db uintptr, zDbName uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172422:16: */
var rc int32 = SQLITE_ERROR
var pBtree uintptr
@@ -150027,7 +151549,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 { /* sqlite3.c:170523:16: */
+func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172472:16: */
var rc int32 = 0
var ap Va_list
_ = ap
@@ -150244,13 +151766,26 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlit
}
- // sqlite3_test_control(SQLITE_TESTCTRL_LOCALTIME_FAULT, int onoff);
+ // sqlite3_test_control(SQLITE_TESTCTRL_LOCALTIME_FAULT, onoff, xAlt);
+ //
+ // If parameter onoff is 1, subsequent calls to localtime() fail.
+ // If 2, then invoke xAlt() instead of localtime(). If 0, normal
+ // processing.
//
- // If parameter onoff is non-zero, subsequent calls to localtime()
- // and its variants fail. If onoff is zero, undo this setting.
+ // xAlt arguments are void pointers, but they really want to be:
+ //
+ // int xAlt(const time_t*, struct tm*);
+ //
+ // xAlt should write results in to struct tm object of its 2nd argument
+ // and return zero on success, or return non-zero on failure.
case SQLITE_TESTCTRL_LOCALTIME_FAULT:
{
Xsqlite3Config.FbLocaltimeFault = int32(libc.VaInt32(&ap))
+ if Xsqlite3Config.FbLocaltimeFault == 2 {
+ Xsqlite3Config.FxAltLocaltime = libc.VaUintptr(&ap)
+ } else {
+ Xsqlite3Config.FxAltLocaltime = uintptr(0)
+ }
break
}
@@ -150442,6 +151977,26 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlit
}
+ // sqlite3_test_control(SQLITE_TESTCTRL_LOGEST,
+ // double fIn, // Input value
+ // int *pLogEst, // sqlite3LogEstFromDouble(fIn)
+ // u64 *pInt, // sqlite3LogEstToInt(*pLogEst)
+ // int *pLogEst2 // sqlite3LogEst(*pInt)
+ // );
+ //
+ // Test access for the LogEst conversion routines.
+ case SQLITE_TESTCTRL_LOGEST:
+ {
+ 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))
+ break
+
+ }
+
}
_ = ap
return rc
@@ -150453,7 +152008,7 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:170981:19: */
+func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172968: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--
}
@@ -150462,7 +152017,7 @@ func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:170981:19
// 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 { /* sqlite3.c:170992:13: */
+func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172979:13: */
var n Size_t = libc.Xstrlen(tls, z)
libc.Xmemcpy(tls, p, z, n+uint64(1))
return p + uintptr(n) + uintptr(1)
@@ -150475,7 +152030,7 @@ func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* sqlite3.c:1709
//
// 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 { /* sqlite3.c:171007:17: */
+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: */
var nByte Sqlite3_int64
var i int32
var pResult uintptr
@@ -150506,7 +152061,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) { /* sqlite3.c:171043:17: */
+func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173030:17: */
if p == uintptr(0) {
return
}
@@ -150523,7 +152078,7 @@ func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* sqlite3.c:171043:17:
// 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 { /* sqlite3.c:171061:23: */
+func Xsqlite3_uri_parameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173048:23: */
if zFilename == uintptr(0) || zParam == uintptr(0) {
return uintptr(0)
}
@@ -150532,7 +152087,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 { /* sqlite3.c:171070:23: */
+func Xsqlite3_uri_key(tls *libc.TLS, zFilename uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173057:23: */
if zFilename == uintptr(0) || N < 0 {
return uintptr(0)
}
@@ -150549,7 +152104,7 @@ func Xsqlite3_uri_key(tls *libc.TLS, zFilename uintptr, N int32) uintptr { /* sq
}
// Return a boolean value for a query parameter.
-func Xsqlite3_uri_boolean(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt int32) int32 { /* sqlite3.c:171084:16: */
+func Xsqlite3_uri_boolean(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173071:16: */
var z uintptr = Xsqlite3_uri_parameter(tls, zFilename, zParam)
bDflt = libc.Bool32(bDflt != 0)
if z != 0 {
@@ -150559,7 +152114,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 { /* sqlite3.c:171093:26: */
+func Xsqlite3_uri_int64(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173080:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -150580,14 +152135,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 { /* sqlite3.c:171116:23: */
+func Xsqlite3_filename_database(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173103:23: */
if zFilename == uintptr(0) {
return uintptr(0)
}
return databaseName(tls, zFilename)
}
-func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:171120:23: */
+func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173107:23: */
if zFilename == uintptr(0) {
return uintptr(0)
}
@@ -150600,7 +152155,7 @@ func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* sq
return zFilename + uintptr(1)
}
-func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:171130:23: */
+func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173117:23: */
zFilename = Xsqlite3_filename_journal(tls, zFilename)
if zFilename != 0 {
zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1)
@@ -150609,7 +152164,7 @@ func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite
}
// Return the Btree pointer identified by zDbName. Return NULL if not found.
-func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* sqlite3.c:171143:22: */
+func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173130:22: */
var iDb int32
if zDbName != 0 {
iDb = Xsqlite3FindDbName(tls, db, zDbName)
@@ -150624,7 +152179,7 @@ func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr {
// Return the filename of the database associated with a database
// connection.
-func Xsqlite3_db_filename(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* sqlite3.c:171152:23: */
+func Xsqlite3_db_filename(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173139:23: */
var pBt uintptr
pBt = Xsqlite3DbNameToBtree(tls, db, zDbName)
if pBt != 0 {
@@ -150635,7 +152190,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 { /* sqlite3.c:171168:16: */
+func Xsqlite3_db_readonly(tls *libc.TLS, db uintptr, zDbName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173155:16: */
var pBt uintptr
pBt = Xsqlite3DbNameToBtree(tls, db, zDbName)
if pBt != 0 {
@@ -150646,7 +152201,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 { /* sqlite3.c:171185:16: */
+func Xsqlite3_snapshot_get(tls *libc.TLS, db uintptr, zDb uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173172:16: */
var rc int32 = SQLITE_ERROR
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -150669,7 +152224,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 { /* sqlite3.c:171221:16: */
+func Xsqlite3_snapshot_open(tls *libc.TLS, db uintptr, zDb uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173208:16: */
var rc int32 = SQLITE_ERROR
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -150712,7 +152267,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 { /* sqlite3.c:171277:16: */
+func Xsqlite3_snapshot_recover(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173264:16: */
var rc int32 = SQLITE_ERROR
var iDb int32
@@ -150733,7 +152288,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) { /* sqlite3.c:171308:17: */
+func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173295:17: */
Xsqlite3_free(tls, pSnapshot)
}
@@ -150742,7 +152297,7 @@ func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* sqlite3.c:171
//
// 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 { /* sqlite3.c:171321:16: */
+func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173308:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -150754,7 +152309,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* sql
azCompileOpt = Xsqlite3CompileOptions(tls, bp)
- if Xsqlite3_strnicmp(tls, zOptName, ts+24176, 7) == 0 {
+ if Xsqlite3_strnicmp(tls, zOptName, ts+24259, 7) == 0 {
zOptName += uintptr(7)
}
n = Xsqlite3Strlen30(tls, zOptName)
@@ -150772,7 +152327,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* sql
// 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 { /* sqlite3.c:171354:23: */
+func Xsqlite3_compileoption_get(tls *libc.TLS, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173341:23: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -150817,11 +152372,11 @@ func Xsqlite3_compileoption_get(tls *libc.TLS, N int32) uintptr { /* sqlite3.c:1
// 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) /* sqlite3.c:171406:16 */
+var sqlite3BlockedList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173393: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) { /* sqlite3.c:171449:13: */
+func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173436:13: */
var pp uintptr
for pp = uintptr(unsafe.Pointer(&sqlite3BlockedList)); *(*uintptr)(unsafe.Pointer(pp)) != 0; pp = *(*uintptr)(unsafe.Pointer(pp)) + 832 {
@@ -150834,7 +152389,7 @@ func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* sqlite3.c:171449:13:
// 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) { /* sqlite3.c:171464:13: */
+func addToBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173451: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 {
@@ -150844,13 +152399,13 @@ func addToBlockedList(tls *libc.TLS, db uintptr) { /* sqlite3.c:171464:13: */
}
// Obtain the STATIC_MAIN mutex.
-func enterMutex(tls *libc.TLS) { /* sqlite3.c:171479:13: */
+func enterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173466:13: */
Xsqlite3_mutex_enter(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN))
}
// Release the STATIC_MAIN mutex.
-func leaveMutex(tls *libc.TLS) { /* sqlite3.c:171487:13: */
+func leaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173474:13: */
Xsqlite3_mutex_leave(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN))
}
@@ -150874,7 +152429,7 @@ func leaveMutex(tls *libc.TLS) { /* sqlite3.c:171487:13: */
// 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 { /* sqlite3.c:171514:16: */
+func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173501:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pArg
@@ -150917,7 +152472,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 + 24184 /* "database is dead..." */
+ return ts + 24267 /* "database is dead..." */
}
return uintptr(0)
}(), 0)
@@ -150929,7 +152484,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) { /* sqlite3.c:171564:21: */
+func Xsqlite3ConnectionBlocked(tls *libc.TLS, db uintptr, pBlocker uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173551:21: */
enterMutex(tls)
if (*Sqlite3)(unsafe.Pointer(db)).FpBlockingConnection == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FpUnlockConnection == uintptr(0) {
addToBlockedList(tls, db)
@@ -150955,7 +152510,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) { /* sqlite3.c:171592:21: */
+func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173579:21: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -151059,7 +152614,7 @@ func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* sqlite3.c:171592
// 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) { /* sqlite3.c:171691:21: */
+func Xsqlite3ConnectionClosed(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173678:21: */
Xsqlite3ConnectionUnlocked(tls, db)
enterMutex(tls)
removeFromBlockedList(tls, db)
@@ -151620,7 +153175,7 @@ func Xsqlite3ConnectionClosed(tls *libc.TLS, db uintptr) { /* sqlite3.c:171691:2
// DO NOT EDIT THIS MACHINE GENERATED FILE.
//************* End of fts3_unicode2.c **************************************
-//************* Begin file json1.c ******************************************
+//************* Begin file json.c *******************************************
// 2015-08-12
//
// The author disclaims copyright to this source code. In place of
@@ -151632,29 +153187,17 @@ func Xsqlite3ConnectionClosed(tls *libc.TLS, db uintptr) { /* sqlite3.c:171691:2
//
//
//
-// This SQLite extension implements JSON functions. The interface is
-// modeled after MySQL JSON functions:
+// This SQLite JSON functions.
//
-// https://dev.mysql.com/doc/refman/5.7/en/json.html
+// This file began as an extension in ext/misc/json1.c in 2015. That
+// extension proved so useful that it has now been moved into the core.
//
// For the time being, all JSON is stored as pure text. (We might add
// a JSONB type in the future which stores a binary encoding of JSON in
// a BLOB, but there is no support for JSONB in the current implementation.
// This implementation parses JSON text at 250 MB/s, so it is hard to see
// how JSONB might improve on that.)
-
-// #include <assert.h>
-// #include <string.h>
-// #include <stdlib.h>
-// #include <stdarg.h>
-
-// Mark a function parameter as unused, to suppress nuisance compiler
-// warnings.
-
-// Versions of isspace(), isalnum() and isdigit() to which it is safe
-// to pass signed char values.
-// Use the SQLite core versions if this routine is part of the
-// SQLite amalgamation
+// #include "sqliteInt.h"
// Growing our own isspace() routine this way is twice as fast as
// the library isspace() function, resulting in a 7% overall performance
@@ -151676,12 +153219,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),
-} /* sqlite3.c:191293:19 */
-
-// Some of the testcase() macros in this file are problematic for gcov
-// in that they generate false-miss errors randomly. This is a gcov problem,
-// not a problem in this case. But to work around it, we disable the
-// problematic test cases for production builds.
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193255:19 */
// Objects
type JsonString1 = struct {
@@ -151693,15 +153231,10 @@ type JsonString1 = struct {
FbErr U8
FzSpace [100]int8
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:191350:9 */
-
-// Some of the testcase() macros in this file are problematic for gcov
-// in that they generate false-miss errors randomly. This is a gcov problem,
-// not a problem in this case. But to work around it, we disable the
-// problematic test cases for production builds.
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193282:9 */
// Objects
-type JsonString = JsonString1 /* sqlite3.c:191350:27 */
+type JsonString = JsonString1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193282:27 */
type JsonNode1 = struct {
FeType U8
FjnFlags U8
@@ -151709,9 +153242,9 @@ type JsonNode1 = struct {
F__ccgo_pad1 [1]byte
Fn U32
Fu struct{ FzJContent uintptr }
-} /* sqlite3.c:191351:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193283:9 */
-type JsonNode = JsonNode1 /* sqlite3.c:191351:25 */
+type JsonNode = JsonNode1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193283:25 */
type JsonParse1 = struct {
FnNode U32
FnAlloc U32
@@ -151724,9 +153257,9 @@ type JsonParse1 = struct {
FnJson int32
FiHold U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:191352:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193284:9 */
-type JsonParse = JsonParse1 /* sqlite3.c:191352:26 */
+type JsonParse = JsonParse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193284:26 */
// JSON type values
@@ -151734,8 +153267,8 @@ type JsonParse = JsonParse1 /* sqlite3.c:191352:26 */
// Names of the various JSON types:
var jsonType = [8]uintptr{
- ts + 6108, ts + 6620, ts + 6625, ts + 6118, ts + 6113, ts + 7875, ts + 24207, ts + 24213,
-} /* sqlite3.c:191385:19 */
+ ts + 6113, ts + 6627, ts + 6632, ts + 6123, ts + 6118, ts + 7873, ts + 24290, ts + 24296,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193317:19 */
// Maximum nesting depth of JSON for this implementation.
//
@@ -151749,7 +153282,7 @@ var jsonType = [8]uintptr{
//
// Set the JsonString object to an empty string
-func jsonZero(tls *libc.TLS, p uintptr) { /* sqlite3.c:191446:13: */
+func jsonZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193378: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)
@@ -151757,7 +153290,7 @@ func jsonZero(tls *libc.TLS, p uintptr) { /* sqlite3.c:191446:13: */
}
// Initialize the JsonString object
-func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* sqlite3.c:191455:13: */
+func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193387:13: */
(*JsonString)(unsafe.Pointer(p)).FpCtx = pCtx
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(0)
jsonZero(tls, p)
@@ -151765,7 +153298,7 @@ func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* sqlite3.c:191455:13:
// Free all allocated memory and reset the JsonString object back to its
// initial state.
-func jsonReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:191465:13: */
+func jsonReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193397:13: */
if !(int32((*JsonString)(unsafe.Pointer(p)).FbStatic) != 0) {
Xsqlite3_free(tls, (*JsonString)(unsafe.Pointer(p)).FzBuf)
}
@@ -151773,7 +153306,7 @@ func jsonReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:191465:13: */
}
// Report an out-of-memory (OOM) condition
-func jsonOom(tls *libc.TLS, p uintptr) { /* sqlite3.c:191473:13: */
+func jsonOom(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193405:13: */
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(1)
Xsqlite3_result_error_nomem(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx)
jsonReset(tls, p)
@@ -151781,7 +153314,7 @@ func jsonOom(tls *libc.TLS, p uintptr) { /* sqlite3.c:191473:13: */
// 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 { /* sqlite3.c:191482:12: */
+func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193414:12: */
var nTotal U64
if U64(N) < (*JsonString)(unsafe.Pointer(p)).FnAlloc {
nTotal = (*JsonString)(unsafe.Pointer(p)).FnAlloc * uint64(2)
@@ -151814,7 +153347,7 @@ func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* sqlite3.c:191482:12: *
}
// Append N bytes from zIn onto the end of the JsonString string.
-func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* sqlite3.c:191509:13: */
+func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193441:13: */
if N == U32(0) {
return
}
@@ -151826,7 +153359,7 @@ func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* sqlite3.c:
}
// Append formatted text (not to exceed N bytes) to the JsonString.
-func jsonPrintf(tls *libc.TLS, N int32, p uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:191518:13: */
+func jsonPrintf(tls *libc.TLS, N int32, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193450: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 {
@@ -151839,7 +153372,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) { /* sqlite3.c:191529:13: */
+func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193461:13: */
if (*JsonString)(unsafe.Pointer(p)).FnUsed >= (*JsonString)(unsafe.Pointer(p)).FnAlloc && jsonGrow(tls, p, uint32(1)) != 0 {
return
}
@@ -151848,7 +153381,7 @@ func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* sqlite3.c:191529:13:
// Append a comma separator to the output buffer, if the previous
// character is not '[' or '{'.
-func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* sqlite3.c:191537:13: */
+func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193469:13: */
var c int8
if (*JsonString)(unsafe.Pointer(p)).FnUsed == uint64(0) {
return
@@ -151863,7 +153396,7 @@ func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* sqlite3.c:191537:13: */
// 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) { /* sqlite3.c:191549:13: */
+func jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193481: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) {
@@ -151914,7 +153447,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 + 24220 + uintptr(int32(c)&0xf))))
+ c = uint8(*(*int8)(unsafe.Pointer(ts + 24303 + uintptr(int32(c)&0xf))))
__8:
;
__6:
@@ -151934,15 +153467,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),
-} /* sqlite3.c:191560:25 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193492:25 */
// Append a function parameter value to the JSON string under
// construction.
-func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* sqlite3.c:191592:13: */
+func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193524:13: */
switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_NULL:
{
- jsonAppendRaw(tls, p, ts+6108, uint32(4))
+ jsonAppendRaw(tls, p, ts+6113, uint32(4))
break
}
@@ -151971,7 +153504,7 @@ func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* sqlite3.c:19
default:
{
if int32((*JsonString)(unsafe.Pointer(p)).FbErr) == 0 {
- Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+24237, -1)
+ Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+24320, -1)
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(2)
jsonReset(tls, p)
}
@@ -151982,7 +153515,7 @@ func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* sqlite3.c:19
}
// Make the JSON in p the result of the SQL function.
-func jsonResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:191632:13: */
+func jsonResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193564: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 {
@@ -152009,7 +153542,7 @@ func jsonResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:191632:13: */
// 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 { /* sqlite3.c:191655:12: */
+func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193587:12: */
if int32((*JsonNode)(unsafe.Pointer(pNode)).FeType) >= JSON_ARRAY {
return (*JsonNode)(unsafe.Pointer(pNode)).Fn + U32(1)
}
@@ -152018,7 +153551,7 @@ func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* sqlite3.c:191655:12: */
// Reclaim all memory allocated by a JsonParse object. But do not
// delete the JsonParse object itself.
-func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:191663:13: */
+func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193595:13: */
Xsqlite3_free(tls, (*JsonParse)(unsafe.Pointer(pParse)).FaNode)
(*JsonParse)(unsafe.Pointer(pParse)).FaNode = uintptr(0)
(*JsonParse)(unsafe.Pointer(pParse)).FnNode = U32(0)
@@ -152028,7 +153561,7 @@ func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:191663:13: */
}
// Free a JsonParse object that was obtained from sqlite3_malloc().
-func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:191675:13: */
+func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193607:13: */
jsonParseReset(tls, pParse)
Xsqlite3_free(tls, pParse)
}
@@ -152036,7 +153569,7 @@ func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:191675:13: */
// 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) { /* sqlite3.c:191685:13: */
+func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193617: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) {
@@ -152051,19 +153584,19 @@ func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr
default:
{
- jsonAppendRaw(tls, pOut, ts+6108, uint32(4))
+ jsonAppendRaw(tls, pOut, ts+6113, uint32(4))
break
}
case JSON_TRUE:
{
- jsonAppendRaw(tls, pOut, ts+6620, uint32(4))
+ jsonAppendRaw(tls, pOut, ts+6627, uint32(4))
break
}
case JSON_FALSE:
{
- jsonAppendRaw(tls, pOut, ts+6625, uint32(5))
+ jsonAppendRaw(tls, pOut, ts+6632, uint32(5))
break
}
@@ -152138,7 +153671,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) { /* sqlite3.c:191774:13: */
+func jsonReturnJson(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193706:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -152153,14 +153686,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 { /* sqlite3.c:191791:11: */
+func jsonHexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193723: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 { /* sqlite3.c:191804:12: */
+func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193736:12: */
var v U32
v = U32(int32(jsonHexToInt(tls, int32(*(*int8)(unsafe.Pointer(z)))))<<12 +
@@ -152171,7 +153704,7 @@ func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* sqlite3.c:191804:12: */
}
// Make the JsonNode the return value of the function.
-func jsonReturn(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* sqlite3.c:191820:13: */
+func jsonReturn(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193752:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -152452,7 +153985,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 { /* sqlite3.c:191993:26: */
+func jsonParseAddNodeExpand(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193925:26: */
var nNew U32
var pNew uintptr
@@ -152474,7 +154007,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 { /* sqlite3.c:192020:12: */
+func jsonParseAddNode(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193952: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)
@@ -152489,7 +154022,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 { /* sqlite3.c:192042:12: */
+func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193974:12: */
var i int32
for i = 0; i < 4; i++ {
if !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x08 != 0) {
@@ -152505,7 +154038,7 @@ func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:192042:12: */
// 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 { /* sqlite3.c:192056:12: */
+func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193988:12: */
var c int8
var j U32
var iThis int32
@@ -152639,17 +154172,17 @@ func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* sqlite3.c:1
}
return int32(j + U32(1))
} else if int32(c) == 'n' &&
- libc.Xstrncmp(tls, z+uintptr(i), ts+6108, uint64(4)) == 0 &&
+ libc.Xstrncmp(tls, z+uintptr(i), ts+6113, 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+6620, uint64(4)) == 0 &&
+ libc.Xstrncmp(tls, z+uintptr(i), ts+6627, 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+6625, uint64(5)) == 0 &&
+ libc.Xstrncmp(tls, z+uintptr(i), ts+6632, 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))
@@ -152732,7 +154265,7 @@ func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* sqlite3.c:1
// pParse.
//
// pParse is uninitialized when this routine is called.
-func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 { /* sqlite3.c:192217:12: */
+func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194149:12: */
var i int32
libc.Xmemset(tls, pParse, 0, uint64(unsafe.Sizeof(JsonParse{})))
if zJson == uintptr(0) {
@@ -152757,7 +154290,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+24266, -1)
+ Xsqlite3_result_error(tls, pCtx, ts+24349, -1)
}
}
jsonParseReset(tls, pParse)
@@ -152768,7 +154301,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) { /* sqlite3.c:192250:13: */
+func jsonParseFillInParentage(tls *libc.TLS, pParse uintptr, i U32, iParent U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194182: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
@@ -152799,7 +154332,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 { /* sqlite3.c:192277:12: */
+func jsonParseFindParents(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194209:12: */
var aUp uintptr
aUp = libc.AssignPtrUintptr(pParse+24, Xsqlite3_malloc64(tls, uint64(uint64(unsafe.Sizeof(U32(0)))*uint64((*JsonParse)(unsafe.Pointer(pParse)).FnNode))))
@@ -152819,7 +154352,7 @@ func jsonParseFindParents(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:19
// 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 { /* sqlite3.c:192303:18: */
+func jsonParseCached(tls *libc.TLS, pCtx uintptr, argv uintptr, pErrCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194235: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
@@ -152876,7 +154409,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 { /* sqlite3.c:192365:12: */
+func jsonLabelCompare(tls *libc.TLS, pNode uintptr, zKey uintptr, nKey U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194297:12: */
if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_RAW != 0 {
if (*JsonNode)(unsafe.Pointer(pNode)).Fn != nKey {
@@ -152899,7 +154432,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 { /* sqlite3.c:192388:17: */
+func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194320:17: */
var i U32
var j U32
var nKey U32
@@ -152927,15 +154460,16 @@ func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pAp
*(*uintptr)(unsafe.Pointer(pzErr)) = zPath
return uintptr(0)
}
+
} else {
zKey = zPath
for i = U32(0); *(*int8)(unsafe.Pointer(zPath + uintptr(i))) != 0 && int32(*(*int8)(unsafe.Pointer(zPath + uintptr(i)))) != '.' && int32(*(*int8)(unsafe.Pointer(zPath + uintptr(i)))) != '['; i++ {
}
nKey = i
- }
- if nKey == U32(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = zPath
- return uintptr(0)
+ if nKey == U32(0) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = zPath
+ return uintptr(0)
+ }
}
j = U32(1)
for {
@@ -153008,7 +154542,7 @@ func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pAp
if int32(*(*int8)(unsafe.Pointer(zPath + 2))) == '-' && int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPath + 3)))])&0x04 != 0 {
var x uint32 = uint32(0)
j = U32(3)
- for ok := true; ok; ok = int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPath + uintptr(j))))])&0x04 != 0 {
+ for __ccgo := true; __ccgo; __ccgo = int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPath + uintptr(j))))])&0x04 != 0 {
x = x*uint32(10) + uint32(*(*int8)(unsafe.Pointer(zPath + uintptr(j)))) - uint32('0')
j++
}
@@ -153074,7 +154608,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 { /* sqlite3.c:192540:17: */
+func jsonLookupAppend(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194473:17: */
*(*int32)(unsafe.Pointer(pApnd)) = 1
if int32(*(*int8)(unsafe.Pointer(zPath))) == 0 {
jsonParseAddNode(tls, pParse, uint32(JSON_NULL), uint32(0), uintptr(0))
@@ -153085,7 +154619,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+24281, uint64(3)) == 0 {
+ } else if libc.Xstrncmp(tls, zPath, ts+24364, uint64(3)) == 0 {
jsonParseAddNode(tls, pParse, uint32(JSON_ARRAY), uint32(0), uintptr(0))
} else {
return uintptr(0)
@@ -153098,11 +154632,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 { /* sqlite3.c:192566:13: */
+func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194499:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- return Xsqlite3_mprintf(tls, ts+24285, libc.VaList(bp, zErr))
+ return Xsqlite3_mprintf(tls, ts+24368, libc.VaList(bp, zErr))
}
// Do a node lookup using zPath. Return a pointer to the node on success.
@@ -153113,7 +154647,7 @@ func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* sqlite3.c:192
//
// 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 { /* sqlite3.c:192580:17: */
+func jsonLookup(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194513:17: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -153165,18 +154699,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) { /* sqlite3.c:192617:13: */
+func jsonWrongNumArgs(tls *libc.TLS, pCtx uintptr, zFuncName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194550:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- var zMsg uintptr = Xsqlite3_mprintf(tls, ts+24311,
+ var zMsg uintptr = Xsqlite3_mprintf(tls, ts+24394,
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) { /* sqlite3.c:192630:13: */
+func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194563:13: */
var i int32
var n int32
@@ -153207,7 +154741,7 @@ func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:192630:13:
// 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) { /* sqlite3.c:192719:13: */
+func jsonQuoteFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194652:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -153224,7 +154758,7 @@ func jsonQuoteFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sq
// 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) { /* sqlite3.c:192738:13: */
+func jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194671:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -153247,7 +154781,7 @@ func jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sq
//
// 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) { /* sqlite3.c:192765:13: */
+func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194698:13: */
var p uintptr // The parse
var n Sqlite3_int64 = int64(0)
var i U32
@@ -153276,23 +154810,37 @@ func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
Xsqlite3_result_int64(tls, ctx, n)
}
+// Bit values for the flags passed into jsonExtractFunc() or
+// jsonSetFunc() via the user-data value.
+
// json_extract(JSON, PATH, ...)
+// "->"(JSON,PATH)
+// "->>"(JSON,PATH)
+//
+// Return the element described by PATH. Return NULL if that PATH element
+// is not found.
//
-// Return the element described by PATH. Return NULL if there is no
-// PATH element. If there are multiple PATHs, then return a JSON array
-// with the result from each path. Throw an error if the JSON or any PATH
-// is malformed.
-func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:192804:13: */
+// If JSON_JSON is set or if more that one PATH argument is supplied then
+// always return a JSON representation of the result. If JSON_SQL is set,
+// then always return an SQL representation of the result. If neither flag
+// is present and argc==2, then return JSON for objects and arrays and SQL
+// for all other values.
+//
+// When multiple PATH arguments are supplied, the result is a JSON array
+// containing the result of each PATH.
+//
+// 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: */
bp := tls.Alloc(136)
defer tls.Free(136)
var p uintptr // The parse
var pNode uintptr
var zPath uintptr
+ var flags int32 = int32(Xsqlite3_user_data(tls, ctx))
// var jx JsonString at bp, 136
- var i int32
-
if argc < 2 {
return
}
@@ -153300,35 +154848,84 @@ func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /*
if p == uintptr(0) {
return
}
- jsonInit(tls, bp, ctx)
- jsonAppendChar(tls, bp, int8('['))
- for i = 1; i < argc; i++ {
- zPath = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
- pNode = jsonLookup(tls, p, zPath, uintptr(0), ctx)
- if (*JsonParse)(unsafe.Pointer(p)).FnErr != 0 {
- break
+ if argc == 2 {
+ // With a single PATH argument
+ zPath = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8)))
+ if zPath == uintptr(0) {
+ return
}
- if argc > 2 {
+ if flags&JSON_ABPATH != 0 {
+ if int32(*(*int8)(unsafe.Pointer(zPath))) != '$' {
+ // The -> and ->> operators accept abbreviated PATH arguments. This
+ // is mostly for compatibility with PostgreSQL, but also for
+ // convenience.
+ //
+ // NUMBER ==> $[NUMBER] // PG compatible
+ // LABEL ==> $.LABEL // PG compatible
+ // [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+24437, uint32(2))
+ jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath))))
+ jsonAppendRaw(tls, bp, ts+4930, uint32(2))
+ } else {
+ jsonAppendRaw(tls, bp, ts+24440, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '[')))
+ jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath))))
+ jsonAppendChar(tls, bp, int8(0))
+ }
+ if (*JsonString)(unsafe.Pointer(bp)).FbErr != 0 {
+ pNode = uintptr(0)
+ } else {
+ pNode = jsonLookup(tls, p, (*JsonString)(unsafe.Pointer(bp /* &jx */)).FzBuf, uintptr(0), ctx)
+ }
+ jsonReset(tls, bp)
+ } else {
+ pNode = jsonLookup(tls, p, zPath, uintptr(0), ctx)
+ }
+ if pNode != 0 {
+ if flags&JSON_JSON != 0 {
+ jsonReturnJson(tls, pNode, ctx, uintptr(0))
+ } else {
+ jsonReturn(tls, pNode, ctx, uintptr(0))
+ Xsqlite3_result_subtype(tls, ctx, uint32(0))
+ }
+ }
+ } else {
+ pNode = jsonLookup(tls, p, zPath, uintptr(0), ctx)
+ if int32((*JsonParse)(unsafe.Pointer(p)).FnErr) == 0 && pNode != 0 {
+ jsonReturn(tls, pNode, ctx, uintptr(0))
+ }
+ }
+ } else {
+ // Two or more PATH arguments results in a JSON array with each
+ // element of the array being the value selected by one of the PATHs
+ var i int32
+ jsonInit(tls, bp, ctx)
+ jsonAppendChar(tls, bp, int8('['))
+ for i = 1; i < argc; i++ {
+ zPath = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ pNode = jsonLookup(tls, p, zPath, uintptr(0), ctx)
+ if (*JsonParse)(unsafe.Pointer(p)).FnErr != 0 {
+ break
+ }
jsonAppendSeparator(tls, bp)
if pNode != 0 {
jsonRenderNode(tls, pNode, bp, uintptr(0))
} else {
- jsonAppendRaw(tls, bp, ts+6108, uint32(4))
+ jsonAppendRaw(tls, bp, ts+6113, uint32(4))
}
- } else if pNode != 0 {
- jsonReturn(tls, pNode, ctx, uintptr(0))
}
+ if i == argc {
+ jsonAppendChar(tls, bp, int8(']'))
+ jsonResult(tls, bp)
+ Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
+ }
+ jsonReset(tls, bp)
}
- if argc > 2 && i == argc {
- jsonAppendChar(tls, bp, int8(']'))
- jsonResult(tls, bp)
- Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
- }
- jsonReset(tls, bp)
}
// This is the RFC 7396 MergePatch algorithm.
-func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) uintptr { /* sqlite3.c:192845:17: */
+func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194841:17: */
var i U32
var j U32
var iRoot U32
@@ -153401,7 +154998,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) { /* sqlite3.c:192927:13: */
+func jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194923:13: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -153433,7 +155030,7 @@ func jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sq
// 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) { /* sqlite3.c:192959:13: */
+func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194955:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -153445,14 +155042,14 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* s
if argc&1 != 0 {
Xsqlite3_result_error(tls, ctx,
- ts+24354, -1)
+ ts+24443, -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+24405, -1)
+ Xsqlite3_result_error(tls, ctx, ts+24494, -1)
jsonReset(tls, bp)
return
}
@@ -153472,7 +155069,7 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* s
//
// 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) { /* sqlite3.c:193001:13: */
+func jsonRemoveFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194997:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -153541,7 +155138,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) { /* sqlite3.c:193034:13: */
+func jsonReplaceFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195030:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -153560,7 +155157,7 @@ __1:
if !(argc&1 == 0) {
goto __2
}
- jsonWrongNumArgs(tls, ctx, ts+15219)
+ jsonWrongNumArgs(tls, ctx, ts+15259)
return
__2:
;
@@ -153624,7 +155221,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) { /* sqlite3.c:193085:13: */
+func jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195082:13: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -153636,7 +155233,7 @@ func jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqli
// var bApnd int32 at bp+48, 4
var bIsSet int32
- bIsSet = *(*int32)(unsafe.Pointer(Xsqlite3_user_data(tls, ctx)))
+ bIsSet = libc.Bool32(Xsqlite3_user_data(tls, ctx) != uintptr(0))
if !(argc < 1) {
goto __1
@@ -153649,9 +155246,9 @@ __1:
}
jsonWrongNumArgs(tls, ctx, func() uintptr {
if bIsSet != 0 {
- return ts + 24439 /* "set" */
+ return ts + 24528 /* "set" */
}
- return ts + 24443 /* "insert" */
+ return ts + 24532 /* "insert" */
}())
return
__2:
@@ -153720,9 +155317,9 @@ jsonSetDone:
// json_type(JSON)
// json_type(JSON, PATH)
//
-// Return the top-level "type" of a JSON string. Throw an error if
-// either the JSON or PATH inputs are not well-formed.
-func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:193138:13: */
+// 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: */
var p uintptr // The parse
var zPath uintptr
var pNode uintptr
@@ -153746,7 +155343,7 @@ func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sql
//
// 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) { /* sqlite3.c:193166:13: */
+func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195163:13: */
var p uintptr // The parse
_ = argc
p = jsonParseCached(tls, ctx, argv, uintptr(0))
@@ -153760,7 +155357,7 @@ func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sq
// 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) { /* sqlite3.c:193186:13: */
+func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195183:13: */
var pStr uintptr
_ = argc
pStr = Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(JsonString{})))
@@ -153776,7 +155373,7 @@ func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sq
}
}
-func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:193205:13: */
+func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195202:13: */
var pStr uintptr
pStr = Xsqlite3_aggregate_context(tls, ctx, 0)
if pStr != 0 {
@@ -153801,16 +155398,16 @@ func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:
(*JsonString)(unsafe.Pointer(pStr)).FnUsed--
}
} else {
- Xsqlite3_result_text(tls, ctx, ts+24450, 2, uintptr(0))
+ Xsqlite3_result_text(tls, ctx, ts+24539, 2, uintptr(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
-func jsonArrayValue(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193227:13: */
+func jsonArrayValue(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195224:13: */
jsonArrayCompute(tls, ctx, 0)
}
-func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193230:13: */
+func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195227:13: */
jsonArrayCompute(tls, ctx, 1)
}
@@ -153818,7 +155415,7 @@ func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193230:13: */
// 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) { /* sqlite3.c:193241:13: */
+func jsonGroupInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195238:13: */
var i uint32
var inStr int32 = 0
var nNest int32 = 0
@@ -153860,7 +155457,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) { /* sqlite3.c:193289:13: */
+func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195286:13: */
var pStr uintptr
var z uintptr
var n U32
@@ -153882,7 +155479,7 @@ func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* s
}
}
-func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:193314:13: */
+func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195311:13: */
var pStr uintptr
pStr = Xsqlite3_aggregate_context(tls, ctx, 0)
if pStr != 0 {
@@ -153906,16 +155503,16 @@ func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c
(*JsonString)(unsafe.Pointer(pStr)).FnUsed--
}
} else {
- Xsqlite3_result_text(tls, ctx, ts+24453, 2, uintptr(0))
+ Xsqlite3_result_text(tls, ctx, ts+24542, 2, uintptr(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
-func jsonObjectValue(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193335:13: */
+func jsonObjectValue(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195332:13: */
jsonObjectCompute(tls, ctx, 0)
}
-func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193338:13: */
+func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195335:13: */
jsonObjectCompute(tls, ctx, 1)
}
@@ -153935,16 +155532,16 @@ type JsonEachCursor1 = struct {
FzJson uintptr
FzRoot uintptr
FsParse JsonParse
-} /* sqlite3.c:193348:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195345:9 */
// ***************************************************************************
//
// The json_each virtual table
//
-type JsonEachCursor = JsonEachCursor1 /* sqlite3.c:193348:31 */
+type JsonEachCursor = JsonEachCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195345: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 { /* sqlite3.c:193363:12: */
+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: */
var pNew uintptr
var rc int32
@@ -153959,7 +155556,7 @@ func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv u
_ = pAux
rc = Xsqlite3_declare_vtab(tls, db,
- ts+24456)
+ ts+24545)
if rc == SQLITE_OK {
pNew = libc.AssignPtrUintptr(ppVtab, Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_vtab{}))))
if pNew == uintptr(0) {
@@ -153972,13 +155569,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 { /* sqlite3.c:193405:12: */
+func jsonEachDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195402: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 { /* sqlite3.c:193411:12: */
+func jsonEachOpenEach(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195408:12: */
var pCur uintptr
_ = p
@@ -153992,7 +155589,7 @@ func jsonEachOpenEach(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* sql
}
// constructor for a JsonEachCursor object for json_tree().
-func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* sqlite3.c:193423:12: */
+func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195420:12: */
var rc int32 = jsonEachOpenEach(tls, p, ppCursor)
if rc == SQLITE_OK {
var pCur uintptr = *(*uintptr)(unsafe.Pointer(ppCursor))
@@ -154003,7 +155600,7 @@ func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* sql
// Reset a JsonEachCursor back to its original state. Free any memory
// held.
-func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:193434:13: */
+func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195431:13: */
Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzJson)
Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot)
jsonParseReset(tls, p+48)
@@ -154016,7 +155613,7 @@ func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:193434:13: */
}
// Destructor for a jsonEachCursor object
-func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:193447:12: */
+func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195444:12: */
var p uintptr = cur
jsonEachCursorReset(tls, p)
Xsqlite3_free(tls, cur)
@@ -154025,13 +155622,13 @@ func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:193447:12: *
// Return TRUE if the jsonEachCursor object has been advanced off the end
// of the JSON object
-func jsonEachEof(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:193456:12: */
+func jsonEachEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195453: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 { /* sqlite3.c:193462:12: */
+func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195459: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 {
@@ -154081,10 +155678,34 @@ func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:193462:12: */
return SQLITE_OK
}
+// 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: */
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+
+ var jj int32
+ var nn int32
+ var z uintptr
+
+ z = *(*uintptr)(unsafe.Pointer(pNode + 8))
+ nn = int32((*JsonNode)(unsafe.Pointer(pNode)).Fn)
+
+ if nn > 2 && int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + 1)))])&0x02 != 0 {
+ for jj = 2; jj < nn-1 && int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(jj))))])&0x06 != 0; jj++ {
+ }
+ if jj == nn-1 {
+ z++
+ nn = nn - 2
+ }
+ }
+ jsonPrintf(tls, nn+2, pStr, ts+24628, 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) { /* sqlite3.c:193506:13: */
- bp := tls.Alloc(24)
- defer tls.Free(24)
+func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195530:13: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
var pNode uintptr
var pUp uintptr
@@ -154099,21 +155720,20 @@ func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* sql
pUp = (*JsonEachCursor)(unsafe.Pointer(p)).FsParse.FaNode + uintptr(iUp)*16
if int32((*JsonNode)(unsafe.Pointer(pUp)).FeType) == JSON_ARRAY {
- jsonPrintf(tls, 30, pStr, ts+24539, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8))))
+ jsonPrintf(tls, 30, pStr, ts+24634, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8))))
} else {
if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_LABEL == 0 {
pNode -= 16
}
-
- jsonPrintf(tls, int32((*JsonNode)(unsafe.Pointer(pNode)).Fn+U32(1)), pStr, ts+24544, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pNode)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pNode + 8))+uintptr(1)))
+ jsonAppendObjectPathElement(tls, pStr, pNode)
}
}
// Return the value of a column
-func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:193536:12: */
- bp := tls.Alloc(296)
- defer tls.Free(296)
+func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195557:12: */
+ bp := tls.Alloc(280)
+ defer tls.Free(280)
var p uintptr = cur
var pThis uintptr = (*JsonEachCursor)(unsafe.Pointer(p)).FsParse.FaNode + uintptr((*JsonEachCursor)(unsafe.Pointer(p)).Fi)*16
@@ -154188,36 +155808,35 @@ func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /*
}
case JEACH_FULLKEY:
{
- // var x JsonString at bp+24, 136
+ // var x JsonString at bp+8, 136
- jsonInit(tls, bp+24, ctx)
+ jsonInit(tls, bp+8, ctx)
if (*JsonEachCursor)(unsafe.Pointer(p)).FbRecursive != 0 {
- jsonEachComputePath(tls, p, bp+24, (*JsonEachCursor)(unsafe.Pointer(p)).Fi)
+ jsonEachComputePath(tls, p, bp+8, (*JsonEachCursor)(unsafe.Pointer(p)).Fi)
} else {
if (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot != 0 {
- jsonAppendRaw(tls, bp+24, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot, uint32(int32(libc.Xstrlen(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot))))
+ jsonAppendRaw(tls, bp+8, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot, uint32(int32(libc.Xstrlen(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot))))
} else {
- jsonAppendChar(tls, bp+24, int8('$'))
+ jsonAppendChar(tls, bp+8, int8('$'))
}
if int32((*JsonEachCursor)(unsafe.Pointer(p)).FeType) == JSON_ARRAY {
- jsonPrintf(tls, 30, bp+24, ts+24539, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid))
+ jsonPrintf(tls, 30, bp+8, ts+24634, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid))
} else if int32((*JsonEachCursor)(unsafe.Pointer(p)).FeType) == JSON_OBJECT {
-
- jsonPrintf(tls, int32((*JsonNode)(unsafe.Pointer(pThis)).Fn), bp+24, ts+24544, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pThis)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pThis + 8))+uintptr(1)))
+ jsonAppendObjectPathElement(tls, bp+8, pThis)
}
}
- jsonResult(tls, bp+24)
+ jsonResult(tls, bp+8)
break
}
case JEACH_PATH:
{
if (*JsonEachCursor)(unsafe.Pointer(p)).FbRecursive != 0 {
- // var x JsonString at bp+160, 136
+ // var x JsonString at bp+144, 136
- jsonInit(tls, bp+160, ctx)
- jsonEachComputePath(tls, p, bp+160, *(*U32)(unsafe.Pointer((*JsonEachCursor)(unsafe.Pointer(p)).FsParse.FaUp + uintptr((*JsonEachCursor)(unsafe.Pointer(p)).Fi)*4)))
- jsonResult(tls, bp+160)
+ jsonInit(tls, bp+144, ctx)
+ jsonEachComputePath(tls, p, bp+144, *(*U32)(unsafe.Pointer((*JsonEachCursor)(unsafe.Pointer(p)).FsParse.FaUp + uintptr((*JsonEachCursor)(unsafe.Pointer(p)).Fi)*4)))
+ jsonResult(tls, bp+144)
break
}
@@ -154227,7 +155846,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 + 24550 /* "$" */
+ zRoot = ts + 24639 /* "$" */
}
Xsqlite3_result_text(tls, ctx, zRoot, -1, uintptr(0))
break
@@ -154245,7 +155864,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 { /* sqlite3.c:193637:12: */
+func jsonEachRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195657:12: */
var p uintptr = cur
*(*Sqlite_int64)(unsafe.Pointer(pRowid)) = Sqlite_int64((*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)
return SQLITE_OK
@@ -154255,7 +155874,7 @@ func jsonEachRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:193648:12: */
+func jsonEachBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195668:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -154330,7 +155949,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 { /* sqlite3.c:193707:12: */
+func jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195727:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -154359,7 +155978,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+24266, 0)
+ (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+24349, 0)
if (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 {
rc = SQLITE_ERROR
}
@@ -154435,7 +156054,7 @@ var jsonEachModule = Sqlite3_module{ // xCreate
FxEof: 0, // xEof - check for end of scan
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:193788:23 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195808:23 */
// The methods of the json_tree virtual table.
var jsonTreeModule = Sqlite3_module{ // xCreate
@@ -154449,43 +156068,38 @@ var jsonTreeModule = Sqlite3_module{ // xCreate
FxEof: 0, // xEof - check for end of scan
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:193816:23 */
-
-// ***************************************************************************
-//
-// The following routines are the only publically visible identifiers in this
-// file. Call the following routines in order to register the various SQL
-// functions and the virtual table implemented by this file.
-//
-
-func Xsqlite3Json1Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:193850:20: */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195836:23 */
+
+// Register JSON functions.
+func Xsqlite3RegisterJsonFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195868: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 + 24641},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24646},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24657},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24657},
+ {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), FpUserData: uintptr(int64(JSON_JSON)), FxSFunc: 0, FzName: ts + 24688},
+ {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 + 24691},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24695},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24707},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24719},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24730},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24741},
+ {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_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_ISSET)), FxSFunc: 0, FzName: ts + 24766},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24775},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24775},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24785},
+ {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 + 24796},
+ {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 + 24813}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195870:18 */
+
+// Register the JSON table-valued functions
+func Xsqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195907:20: */
var rc int32 = SQLITE_OK
var i uint32
- for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(aFunc))/uint64(unsafe.Sizeof(struct {
- FzName uintptr
- FnArg int32
- Fflag int32
- FxFunc uintptr
- }{})) && rc == SQLITE_OK; i++ {
- rc = Xsqlite3_create_function(tls, db, aFunc[i].FzName, aFunc[i].FnArg, enc,
- uintptr(unsafe.Pointer(&aFunc))+uintptr(i)*24+12,
- aFunc[i].FxFunc, uintptr(0), uintptr(0))
- }
- for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(aAgg))/uint64(unsafe.Sizeof(struct {
- FzName uintptr
- FnArg int32
- F__ccgo_pad1 [4]byte
- FxStep uintptr
- FxFinal uintptr
- FxValue uintptr
- }{})) && rc == SQLITE_OK; i++ {
- rc = Xsqlite3_create_window_function(tls, db, aAgg[i].FzName, aAgg[i].FnArg,
- SQLITE_SUBTYPE|enc, uintptr(0),
- aAgg[i].FxStep, aAgg[i].FxFinal,
- aAgg[i].FxValue, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*libc.TLS, uintptr, int32, uintptr)
- }{jsonGroupInverse})), uintptr(0))
- }
for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(aMod))/uint64(unsafe.Sizeof(struct {
FzName uintptr
FpModule uintptr
@@ -154495,49 +156109,13 @@ func Xsqlite3Json1Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:193850:20
return rc
}
-var aFunc = [15]struct {
- FzName uintptr
- FnArg int32
- Fflag int32
- FxFunc uintptr
-}{
- {FzName: ts + 24552 /* "json" */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24557 /* "json_array" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24568 /* "json_array_lengt..." */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24568 /* "json_array_lengt..." */, FnArg: 2, FxFunc: 0},
- {FzName: ts + 24586 /* "json_extract" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24599 /* "json_insert" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24611 /* "json_object" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24623 /* "json_patch" */, FnArg: 2, FxFunc: 0},
- {FzName: ts + 24634 /* "json_quote" */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24645 /* "json_remove" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24657 /* "json_replace" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24670 /* "json_set" */, FnArg: -1, Fflag: 1, FxFunc: 0},
- {FzName: ts + 24679 /* "json_type" */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24679 /* "json_type" */, FnArg: 2, FxFunc: 0},
- {FzName: ts + 24689 /* "json_valid" */, FnArg: 1, FxFunc: 0},
-} /* sqlite3.c:193858:5 */
-var aAgg = [2]struct {
- FzName uintptr
- FnArg int32
- F__ccgo_pad1 [4]byte
- FxStep uintptr
- FxFinal uintptr
- FxValue uintptr
-}{
- {FzName: ts + 24700 /* "json_group_array" */, FnArg: 1,
- FxStep: 0, FxFinal: 0, FxValue: 0},
- {FzName: ts + 24717 /* "json_group_objec..." */, FnArg: 2,
- FxStep: 0, FxFinal: 0, FxValue: 0},
-} /* sqlite3.c:193887:5 */
var aMod = [2]struct {
FzName uintptr
FpModule uintptr
}{
- {FzName: ts + 24735 /* "json_each" */, FpModule: 0},
- {FzName: ts + 24745 /* "json_tree" */, FpModule: 0},
-} /* sqlite3.c:193897:5 */
-var enc int32 = SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS /* sqlite3.c:193902:20 */ // In the SQLite core
+ {FzName: ts + 24831 /* "json_each" */, FpModule: 0},
+ {FzName: ts + 24841 /* "json_tree" */, FpModule: 0},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195912:5 */ // In the SQLite core
// If building separately, we will need some setup that is normally
// found in sqliteInt.h
@@ -154584,7 +156162,7 @@ type Rtree1 = struct {
FpDeleteParent uintptr
FpWriteAux uintptr
FaHash [97]uintptr
-} /* sqlite3.c:194055:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196035:9 */
// In the SQLite core
@@ -154598,7 +156176,7 @@ type Rtree1 = struct {
// The following macro is used to suppress compiler warnings.
-type Rtree = Rtree1 /* sqlite3.c:194055:22 */
+type Rtree = Rtree1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196035:22 */
type RtreeCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FatEOF U8
@@ -154619,9 +156197,9 @@ type RtreeCursor1 = struct {
FaNode [5]uintptr
FanQueue [41]U32
F__ccgo_pad4 [4]byte
-} /* sqlite3.c:194056:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:9 */
-type RtreeCursor = RtreeCursor1 /* sqlite3.c:194056:28 */
+type RtreeCursor = RtreeCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:28 */
type RtreeNode1 = struct {
FpParent uintptr
FiNode I64
@@ -154629,23 +156207,23 @@ type RtreeNode1 = struct {
FisDirty int32
FzData uintptr
FpNext uintptr
-} /* sqlite3.c:194055:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196035:9 */
-type RtreeNode = RtreeNode1 /* sqlite3.c:194057:26 */
+type RtreeNode = RtreeNode1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196037:26 */
type RtreeCell1 = struct {
FiRowid I64
FaCoord [10]RtreeCoord
-} /* sqlite3.c:194058:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196038:9 */
-type RtreeCell = RtreeCell1 /* sqlite3.c:194058:26 */
+type RtreeCell = RtreeCell1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196038:26 */
type RtreeConstraint1 = struct {
FiCoord int32
Fop int32
Fu struct{ FrValue RtreeDValue }
FpInfo uintptr
-} /* sqlite3.c:194056:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:9 */
-type RtreeConstraint = RtreeConstraint1 /* sqlite3.c:194059:32 */
+type RtreeConstraint = RtreeConstraint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196039:32 */
type RtreeMatchArg1 = struct {
FiSize U32
F__ccgo_pad1 [4]byte
@@ -154654,20 +156232,20 @@ type RtreeMatchArg1 = struct {
F__ccgo_pad2 [4]byte
FapSqlParam uintptr
FaParam [1]RtreeDValue
-} /* sqlite3.c:194060:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196040:9 */
-type RtreeMatchArg = RtreeMatchArg1 /* sqlite3.c:194060:30 */
+type RtreeMatchArg = RtreeMatchArg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196040:30 */
type RtreeGeomCallback1 = struct {
FxGeom uintptr
FxQueryFunc uintptr
FxDestructor uintptr
FpContext uintptr
-} /* sqlite3.c:194060:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196040:9 */
-type RtreeGeomCallback = RtreeGeomCallback1 /* sqlite3.c:194061:34 */
-type RtreeCoord1 = struct{ Ff RtreeValue } /* sqlite3.c:194058: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 RtreeCoord = RtreeCoord1 /* sqlite3.c:194062:26 */
+type RtreeCoord = RtreeCoord1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196042:26 */
type RtreeSearchPoint1 = struct {
FrScore RtreeDValue
Fid Sqlite3_int64
@@ -154675,17 +156253,17 @@ type RtreeSearchPoint1 = struct {
FeWithin U8
FiCell U8
F__ccgo_pad1 [5]byte
-} /* sqlite3.c:194056:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:9 */
-type RtreeSearchPoint = RtreeSearchPoint1 /* sqlite3.c:194063:33 */
+type RtreeSearchPoint = RtreeSearchPoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196043: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 /* sqlite3.c:194160:18 */ // High accuracy coordinate
-type RtreeValue = float32 /* sqlite3.c:194161:17 */
+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 */
// 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
@@ -154711,16 +156289,16 @@ type RtreeValue = float32 /* sqlite3.c:194161:17 */
// 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 { /* sqlite3.c:194445:12: */
+func readInt16(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196425:12: */
return int32(*(*U8)(unsafe.Pointer(p)))<<8 + int32(*(*U8)(unsafe.Pointer(p + 1)))
}
-func readCoord(tls *libc.TLS, p uintptr, pCoord uintptr) { /* sqlite3.c:194448:13: */
+func readCoord(tls *libc.TLS, p uintptr, pCoord uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196428:13: */
// p is always 4-byte aligned
*(*U32)(unsafe.Pointer(pCoord)) = libc.X__builtin_bswap32(tls, *(*U32)(unsafe.Pointer(p)))
}
-func readInt64(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:194465:12: */
+func readInt64(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196445:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -154733,12 +156311,12 @@ func readInt64(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:194465:12: */
// 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) { /* sqlite3.c:194497:13: */
+func writeInt16(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196477: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 { /* sqlite3.c:194501:12: */
+func writeCoord(tls *libc.TLS, p uintptr, pCoord uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196481:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -154751,7 +156329,7 @@ func writeCoord(tls *libc.TLS, p uintptr, pCoord uintptr) int32 { /* sqlite3.c:1
return 4
}
-func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* sqlite3.c:194524:12: */
+func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196504:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*I64)(unsafe.Pointer(bp)) = i
@@ -154762,7 +156340,7 @@ func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* sqlite3.c:194524:12:
}
// Increment the reference count of node p.
-func nodeReference(tls *libc.TLS, p uintptr) { /* sqlite3.c:194549:13: */
+func nodeReference(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196529:13: */
if p != 0 {
(*RtreeNode)(unsafe.Pointer(p)).FnRef++
@@ -154770,20 +156348,20 @@ func nodeReference(tls *libc.TLS, p uintptr) { /* sqlite3.c:194549:13: */
}
// Clear the content of node p (set all bytes to 0x00).
-func nodeZero(tls *libc.TLS, pRtree uintptr, p uintptr) { /* sqlite3.c:194559:13: */
+func nodeZero(tls *libc.TLS, pRtree uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196539: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 { /* sqlite3.c:194568:21: */
+func nodeHash(tls *libc.TLS, iNode I64) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196548: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 { /* sqlite3.c:194576:18: */
+func nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196556: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 {
}
@@ -154791,7 +156369,7 @@ func nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode I64) uintptr { /* sqlit
}
// Add node pNode to the node hash table.
-func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* sqlite3.c:194585:13: */
+func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196565:13: */
var iHash int32
iHash = int32(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))
@@ -154800,7 +156378,7 @@ func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* sqlite3.c
}
// Remove node pNode from the node hash table.
-func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* sqlite3.c:194596:13: */
+func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196576:13: */
var pp uintptr
if (*RtreeNode)(unsafe.Pointer(pNode)).FiNode != int64(0) {
pp = pRtree + 192 + uintptr(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))*8
@@ -154815,7 +156393,7 @@ func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* sqlite3.c
// 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 { /* sqlite3.c:194612:18: */
+func nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196592:18: */
var pNode uintptr
pNode = Xsqlite3_malloc64(tls, uint64(uint64(unsafe.Sizeof(RtreeNode{}))+uint64((*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize)))
if pNode != 0 {
@@ -154831,7 +156409,7 @@ func nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) uintptr { /* sqlite
}
// Clear the Rtree.pNodeBlob object
-func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:194630:13: */
+func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196610: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)
@@ -154840,7 +156418,7 @@ func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:194630:13: */
}
// Obtain a reference to an r-tree node.
-func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNode uintptr) int32 { /* sqlite3.c:194641:12: */
+func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196621:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -154872,11 +156450,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+24755, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
+ var zTab uintptr = Xsqlite3_mprintf(tls, ts+24851, 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+24763, iNode, 0,
+ rc = Xsqlite3_blob_open(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, zTab, ts+24859, iNode, 0,
pRtree+112)
Xsqlite3_free(tls, zTab)
}
@@ -154950,7 +156528,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) { /* sqlite3.c:194754:13: */
+func nodeOverwriteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iCell int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196734: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))
@@ -154961,7 +156539,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) { /* sqlite3.c:194772:13: */
+func nodeDeleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196752: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)
@@ -154974,7 +156552,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 { /* sqlite3.c:194787:12: */
+func nodeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196767:12: */
var nCell int32 // Current number of cells in pNode
var nMaxCell int32 // Maximum number of cells for pNode
@@ -154991,7 +156569,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 { /* sqlite3.c:194811:12: */
+func nodeWrite(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196791:12: */
var rc int32 = SQLITE_OK
if (*RtreeNode)(unsafe.Pointer(pNode)).FisDirty != 0 {
var p uintptr = (*Rtree)(unsafe.Pointer(pRtree)).FpWriteNode
@@ -155015,7 +156593,7 @@ func nodeWrite(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite3.
// 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 { /* sqlite3.c:194837:12: */
+func nodeRelease(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196817:12: */
var rc int32 = SQLITE_OK
if pNode != 0 {
@@ -155041,26 +156619,26 @@ func nodeRelease(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:194866:12: */
+func nodeGetRowid(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196846: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) { /* sqlite3.c:194878:13: */
+func nodeGetCoord(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iCoord int32, pCoord uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196858: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) { /* sqlite3.c:194892:13: */
+func nodeGetCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, pCell uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196872:13: */
var pData uintptr
var pCoord uintptr
var ii int32 = 0
(*RtreeCell)(unsafe.Pointer(pCell)).FiRowid = nodeGetRowid(tls, pRtree, pNode, iCell)
pData = (*RtreeNode)(unsafe.Pointer(pNode)).FzData + uintptr(12+int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*iCell)
pCoord = pCell + 8 /* &.aCoord */
- for ok := true; ok; ok = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
+ for __ccgo := true; __ccgo; __ccgo = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
readCoord(tls, pData, pCoord+uintptr(ii)*4)
readCoord(tls, pData+uintptr(4), pCoord+uintptr(ii+1)*4)
pData += uintptr(8)
@@ -155069,23 +156647,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 { /* sqlite3.c:194923:12: */
+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: */
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 { /* sqlite3.c:194936:12: */
+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: */
return rtreeInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 0)
}
// Increment the r-tree reference count.
-func rtreeReference(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:194949:13: */
+func rtreeReference(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196929: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) { /* sqlite3.c:194957:13: */
+func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196937:13: */
(*Rtree)(unsafe.Pointer(pRtree)).FnBusy--
if (*Rtree)(unsafe.Pointer(pRtree)).FnBusy == U32(0) {
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0)
@@ -155107,13 +156685,13 @@ func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:194957:13: */
}
// Rtree virtual table module xDisconnect method.
-func rtreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:194981:12: */
+func rtreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196961:12: */
rtreeRelease(tls, pVtab)
return SQLITE_OK
}
// Rtree virtual table module xDestroy method.
-func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:194989:12: */
+func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196969:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -155121,7 +156699,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:194989:12:
var rc int32
var zCreate uintptr = Xsqlite3_mprintf(tls,
- ts+24768,
+ ts+24864,
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))
@@ -155140,7 +156718,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:194989:12:
}
// Rtree virtual table module xOpen method.
-func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite3.c:195017:12: */
+func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196997:12: */
var rc int32 = SQLITE_NOMEM
var pRtree uintptr = pVTab
var pCsr uintptr
@@ -155158,7 +156736,7 @@ func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite
}
// Reset a cursor back to its initial state.
-func resetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:195038:13: */
+func resetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197018:13: */
var pRtree uintptr = (*RtreeCursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var ii int32
var pStmt uintptr
@@ -155188,7 +156766,7 @@ func resetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:195038:13: */
}
// Rtree virtual table module xClose method.
-func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195066:12: */
+func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197046:12: */
var pRtree uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
var pCsr uintptr = cur
@@ -155204,7 +156782,7 @@ func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195066:12: */
//
// 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 { /* sqlite3.c:195084:12: */
+func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197064:12: */
var pCsr uintptr = cur
return int32((*RtreeCursor)(unsafe.Pointer(pCsr)).FatEOF)
}
@@ -155221,7 +156799,7 @@ func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195084:12: */
// 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 { /* sqlite3.c:195139:12: */
+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: */
bp := tls.Alloc(92)
defer tls.Free(92)
@@ -155333,7 +156911,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) { /* sqlite3.c:195215:13: */
+func rtreeNonleafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197195:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -155431,7 +157009,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) { /* sqlite3.c:195272:13: */
+func rtreeLeafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197252:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -155486,7 +157064,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 { /* sqlite3.c:195302:12: */
+func nodeRowidIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, iRowid I64, piIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197282:12: */
var ii int32
var nCell int32 = readInt16(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+2)
@@ -155502,7 +157080,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 { /* sqlite3.c:195325:12: */
+func nodeParentIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, piIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197305:12: */
var pParent uintptr = (*RtreeNode)(unsafe.Pointer(pNode)).FpParent
if pParent != 0 {
return nodeRowidIndex(tls, pRtree, pParent, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode, piIndex)
@@ -155521,7 +157099,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 { /* sqlite3.c:195345:12: */
+func rtreeSearchPointCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197325:12: */
if (*RtreeSearchPoint)(unsafe.Pointer(pA)).FrScore < (*RtreeSearchPoint)(unsafe.Pointer(pB)).FrScore {
return -1
}
@@ -155538,7 +157116,7 @@ func rtreeSearchPointCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* s
}
// Interchange two search points in a cursor.
-func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* sqlite3.c:195359:13: */
+func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197339: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))
@@ -155558,7 +157136,7 @@ func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* sqlit
}
// Return the search point with the lowest current score.
-func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* sqlite3.c:195380:25: */
+func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197360:25: */
if (*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint != 0 {
return pCur + 64
}
@@ -155569,7 +157147,7 @@ func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* sqlite3.c:1
}
// Get the RtreeNode for the search point with the lowest score.
-func rtreeNodeOfFirstSearchPoint(tls *libc.TLS, pCur uintptr, pRC uintptr) uintptr { /* sqlite3.c:195387:18: */
+func rtreeNodeOfFirstSearchPoint(tls *libc.TLS, pCur uintptr, pRC uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197367:18: */
var id Sqlite3_int64
var ii int32 = 1 - int32((*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint)
@@ -155586,7 +157164,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 { /* sqlite3.c:195403:25: */
+func rtreeEnqueue(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197383:25: */
var i int32
var j int32
var pNew uintptr
@@ -155620,7 +157198,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 { /* sqlite3.c:195438:25: */
+func rtreeSearchPointNew(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197418:25: */
var pNew uintptr
var pFirst uintptr
pFirst = rtreeSearchPointFirst(tls, pCur)
@@ -155656,7 +157234,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) { /* sqlite3.c:195506:13: */
+func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197486:13: */
var i int32
var j int32
var k int32
@@ -155704,7 +157282,7 @@ func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* sqlite3.c:195506:13: */
// 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 { /* sqlite3.c:195554:12: */
+func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197534:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -155797,7 +157375,7 @@ func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:195554:12
}
// Rtree virtual table module xNext method.
-func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:195635:12: */
+func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197615:12: */
var pCsr uintptr = pVtabCursor
var rc int32 = SQLITE_OK
@@ -155813,7 +157391,7 @@ func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:195635:1
}
// Rtree virtual table module xRowid method.
-func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* sqlite3.c:195653:12: */
+func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197633:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -155828,7 +157406,7 @@ func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* s
}
// Rtree virtual table module xColumn method.
-func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:195667:12: */
+func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197647:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -155889,7 +157467,7 @@ func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sq
// 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 { /* sqlite3.c:195721:12: */
+func findLeafNode(tls *libc.TLS, pRtree uintptr, iRowid I64, ppLeaf uintptr, piNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197701:12: */
var rc int32
*(*uintptr)(unsafe.Pointer(ppLeaf)) = uintptr(0)
Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpReadRowid, 1, iRowid)
@@ -155910,12 +157488,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 { /* sqlite3.c:195747:12: */
+func deserializeGeometry(tls *libc.TLS, pValue uintptr, pCons uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197727:12: */
var pBlob uintptr
var pSrc uintptr // BLOB returned by geometry function
var pInfo uintptr // Callback information
- pSrc = Xsqlite3_value_pointer(tls, pValue, ts+24850)
+ pSrc = Xsqlite3_value_pointer(tls, pValue, ts+24946)
if pSrc == uintptr(0) {
return SQLITE_ERROR
}
@@ -155942,7 +157520,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 { /* sqlite3.c:195777:12: */
+func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197757:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -156085,7 +157663,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 { /* sqlite3.c:195930:12: */
+func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197910:12: */
bp := tls.Alloc(49)
defer tls.Free(49)
@@ -156180,7 +157758,7 @@ func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* sql
(*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+3604, libc.VaList(bp, bp+8))) {
+ if iIdx > 0 && uintptr(0) == libc.AssignPtrUintptr(pIdxInfo+48, Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, bp+8))) {
return SQLITE_NOMEM
}
@@ -156192,7 +157770,7 @@ func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* sql
}
// Return the N-dimensional volumn of the cell stored in *p.
-func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* sqlite3.c:196019:20: */
+func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197999:20: */
var area RtreeDValue = RtreeDValue(1)
if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 {
@@ -156235,10 +157813,10 @@ func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* sqlite3
// 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 { /* sqlite3.c:196049:20: */
+func cellMargin(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198029:20: */
var margin RtreeDValue = RtreeDValue(0)
var ii int32 = int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) - 2
- for ok := true; ok; ok = ii >= 0 {
+ for __ccgo := true; __ccgo; __ccgo = ii >= 0 {
margin = margin + (func() float64 {
if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 {
return float64(*(*RtreeValue)(unsafe.Pointer(p + 8 + uintptr(ii+1)*4)))
@@ -156256,10 +157834,10 @@ func cellMargin(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* sqlit
}
// Store the union of cells p1 and p2 in p1.
-func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* sqlite3.c:196062:13: */
+func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198042:13: */
var ii int32 = 0
if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 {
- for ok := true; ok; ok = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
+ for __ccgo := true; __ccgo; __ccgo = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
*(*RtreeValue)(unsafe.Pointer(p1 + 8 + uintptr(ii)*4)) = func() float32 {
if *(*RtreeValue)(unsafe.Pointer(p1 + 8 + uintptr(ii)*4)) < *(*RtreeValue)(unsafe.Pointer(p2 + 8 + uintptr(ii)*4)) {
return *(*RtreeValue)(unsafe.Pointer(p1 + 8 + uintptr(ii)*4))
@@ -156275,7 +157853,7 @@ func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* sqlit
ii = ii + 2
}
} else {
- for ok1 := true; ok1; ok1 = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
+ for __ccgo1 := true; __ccgo1; __ccgo1 = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
*(*int32)(unsafe.Pointer(p1 + 8 + uintptr(ii)*4)) = func() int32 {
if *(*int32)(unsafe.Pointer(p1 + 8 + uintptr(ii)*4)) < *(*int32)(unsafe.Pointer(p2 + 8 + uintptr(ii)*4)) {
return *(*int32)(unsafe.Pointer(p1 + 8 + uintptr(ii)*4))
@@ -156295,7 +157873,7 @@ func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* sqlit
// 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 { /* sqlite3.c:196083:12: */
+func cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198063: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 {
@@ -156310,7 +157888,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 { /* sqlite3.c:196101:20: */
+func cellGrowth(tls *libc.TLS, pRtree uintptr, p uintptr, pCell uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198081:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -156323,7 +157901,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 { /* sqlite3.c:196110:20: */
+func cellOverlap(tls *libc.TLS, pRtree uintptr, p uintptr, aCell uintptr, nCell int32) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198090:20: */
var ii int32
var overlap RtreeDValue = 0.0
for ii = 0; ii < nCell; ii++ {
@@ -156398,7 +157976,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 { /* sqlite3.c:196142:12: */
+func sChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, ppLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198122:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -156454,7 +158032,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 { /* sqlite3.c:196202:12: */
+func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198182:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -156490,7 +158068,7 @@ func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) in
}
// Write mapping (iRowid->iNode) to the <rtree>_rowid table.
-func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlite3_int64) int32 { /* sqlite3.c:196240:12: */
+func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198220: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)
@@ -156498,7 +158076,7 @@ func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlit
}
// Write mapping (iNode->iPar) to the <rtree>_parent table.
-func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite3_int64) int32 { /* sqlite3.c:196250:12: */
+func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198230: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)
@@ -156520,7 +158098,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) { /* sqlite3.c:196277:13: */
+func sSortByDistance(tls *libc.TLS, aIdx uintptr, nIdx int32, aDistance uintptr, aSpare uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198257:13: */
if nIdx > 1 {
var iLeft int32 = 0
var iRight int32 = 0
@@ -156568,7 +158146,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) { /* sqlite3.c:196343:13: */
+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: */
if nIdx > 1 {
var iLeft int32 = 0
@@ -156624,7 +158202,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 { /* sqlite3.c:196402:12: */
+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: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -156723,7 +158301,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 { /* sqlite3.c:196500:12: */
+func updateMapping(tls *libc.TLS, pRtree uintptr, iRowid I64, pNode uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198480:12: */
var xSetMapping uintptr
xSetMapping = func() uintptr {
if iHeight == 0 {
@@ -156757,7 +158335,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 { /* sqlite3.c:196524:12: */
+func sSplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198504:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -156992,7 +158570,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 { /* sqlite3.c:196672:12: */
+func fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198652: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) {
@@ -157027,7 +158605,7 @@ func fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) int32 { /* sqli
return rc
}
-func removeNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, iHeight int32) int32 { /* sqlite3.c:196707:12: */
+func removeNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198687:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -157077,7 +158655,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 { /* sqlite3.c:196757:12: */
+func fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198737:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -157108,7 +158686,7 @@ func fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sql
// 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 { /* sqlite3.c:196784:12: */
+func deleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198764:12: */
var pParent uintptr
var rc int32
@@ -157137,7 +158715,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 { /* sqlite3.c:196815:12: */
+func sReinsert(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198795:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -157252,7 +158830,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 { /* sqlite3.c:196920:12: */
+func rtreeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198900:12: */
var rc int32 = SQLITE_OK
if iHeight > 0 {
var pChild uintptr = nodeHashLookup(tls, pRtree, (*RtreeCell)(unsafe.Pointer(pCell)).FiRowid)
@@ -157282,7 +158860,7 @@ func rtreeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr
return rc
}
-func reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite3.c:196955:12: */
+func reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198935:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -157313,7 +158891,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 { /* sqlite3.c:196984:12: */
+func rtreeNewRowid(tls *libc.TLS, pRtree uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198964:12: */
var rc int32
Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 1)
Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 2)
@@ -157324,7 +158902,7 @@ func rtreeNewRowid(tls *libc.TLS, pRtree uintptr, piRowid uintptr) int32 { /* sq
}
// Remove the entry with rowid=iDelete from the r-tree structure.
-func rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Sqlite3_int64) int32 { /* sqlite3.c:196997:12: */
+func rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198977:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -157413,7 +158991,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 { /* sqlite3.c:197094:19: */
+func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199074:19: */
var d float64 = Xsqlite3_value_double(tls, v)
var f float32 = float32(d)
if float64(f) > d {
@@ -157427,7 +159005,7 @@ func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:197094:1
return f
}
-func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:197102:19: */
+func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199082:19: */
var d float64 = Xsqlite3_value_double(tls, v)
var f float32 = float32(d)
if float64(f) < d {
@@ -157452,7 +159030,7 @@ func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:197102:19:
// (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 { /* sqlite3.c:197125:12: */
+func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199105:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -157460,7 +159038,7 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /*
var zSql uintptr
var rc int32
- zSql = Xsqlite3_mprintf(tls, ts+24864, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, ts+24960, 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 {
@@ -157472,12 +159050,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+24884, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol))
+ ts+24980, 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+24916, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
+ ts+25012, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
}
}
@@ -157491,7 +159069,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 { /* sqlite3.c:197163:12: */
+func rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199143:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -157720,7 +159298,7 @@ constraint:
}
// Called when a transaction starts.
-func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:197311:12: */
+func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199291:12: */
var pRtree uintptr = pVtab
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans++
@@ -157729,7 +159307,7 @@ func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:19
// 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 { /* sqlite3.c:197322:12: */
+func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199302:12: */
var pRtree uintptr = pVtab
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0)
nodeBlobReset(tls, pRtree)
@@ -157737,7 +159315,7 @@ func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:1973
}
// The xRename method for rtree module virtual tables.
-func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqlite3.c:197332:12: */
+func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199312:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -157745,7 +159323,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqli
var rc int32 = SQLITE_NOMEM
var zSql uintptr = Xsqlite3_mprintf(tls,
- ts+24953, 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+25049, 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))
@@ -157766,7 +159344,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqli
// INSERT INTO rtree...
// DROP TABLE <tablename>; -- Would fail with SQLITE_LOCKED
// COMMIT;
-func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* sqlite3.c:197365:12: */
+func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199345:12: */
var pRtree uintptr = pVtab
var iwt U8 = (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans
_ = iSavepoint
@@ -157779,11 +159357,11 @@ func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* s
// 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 { /* sqlite3.c:197380:12: */
+func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199360:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
- var zFmt uintptr = ts + 25098 /* "SELECT stat FROM..." */
+ var zFmt uintptr = ts + 25194 /* "SELECT stat FROM..." */
var zSql uintptr
// var p uintptr at bp+16, 8
@@ -157791,7 +159369,7 @@ func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* sqlit
var nRow I64 = int64(RTREE_MIN_ROWEST)
rc = Xsqlite3_table_column_metadata(tls,
- db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+11189, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
+ db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+11214, 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 {
@@ -157823,7 +159401,7 @@ func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:197414:12: */
+func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199394: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 {
@@ -157834,8 +159412,8 @@ func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:197414:1
}
var azName1 = [3]uintptr{
- ts + 25154, ts + 4983, ts + 16115,
-} /* sqlite3.c:197415:21 */
+ ts + 25250, ts + 4992, ts + 16155,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199395:21 */
var rtreeModule = Sqlite3_module{
FiVersion: 3, // iVersion
@@ -157859,9 +159437,9 @@ var rtreeModule = Sqlite3_module{
FxRename: 0, // xRename - rename the table
FxSavepoint: 0, // xRollbackTo
FxShadowName: 0, // xShadowName
-} /* sqlite3.c:197425:23 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199405:23 */
-func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefix uintptr, isCreate int32) int32 { /* sqlite3.c:197452:12: */
+func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefix uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199432:12: */
bp := tls.Alloc(232)
defer tls.Free(232)
@@ -157878,19 +159456,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+25159,
+ ts+25255,
libc.VaList(bp, zDb, zPrefix))
for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux); ii++ {
- Xsqlite3_str_appendf(tls, p, ts+25221, libc.VaList(bp+16, ii))
+ Xsqlite3_str_appendf(tls, p, ts+25317, libc.VaList(bp+16, ii))
}
Xsqlite3_str_appendf(tls, p,
- ts+25226,
+ ts+25322,
libc.VaList(bp+24, zDb, zPrefix))
Xsqlite3_str_appendf(tls, p,
- ts+25290,
+ ts+25386,
libc.VaList(bp+40, zDb, zPrefix))
Xsqlite3_str_appendf(tls, p,
- ts+25360,
+ ts+25456,
libc.VaList(bp+56, zDb, zPrefix, (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize))
zCreate = Xsqlite3_str_finish(tls, p)
if !(zCreate != 0) {
@@ -157921,7 +159499,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 + 25409 /* "INSERT INTO\"%w\"...." */
+ zFormat = ts + 25505 /* "INSERT INTO\"%w\"...." */
}
zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+80, zDb, zPrefix))
if zSql != 0 {
@@ -157933,7 +159511,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+25517,
+ ts+25613,
libc.VaList(bp+96, zDb, zPrefix))
if (*Rtree)(unsafe.Pointer(pRtree)).FzReadAuxSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -157941,18 +159519,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+25562, libc.VaList(bp+112, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, ts+25658, 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+12663, 1)
+ Xsqlite3_str_append(tls, p, ts+12685, 1)
}
if ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) {
- Xsqlite3_str_appendf(tls, p, ts+25589, libc.VaList(bp+128, ii, ii+2, ii))
+ Xsqlite3_str_appendf(tls, p, ts+25685, libc.VaList(bp+128, ii, ii+2, ii))
} else {
- Xsqlite3_str_appendf(tls, p, ts+25611, libc.VaList(bp+152, ii, ii+2))
+ Xsqlite3_str_appendf(tls, p, ts+25707, libc.VaList(bp+152, ii, ii+2))
}
}
- Xsqlite3_str_appendf(tls, p, ts+25619, 0)
+ Xsqlite3_str_appendf(tls, p, ts+25715, 0)
zSql = Xsqlite3_str_finish(tls, p)
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -157968,24 +159546,24 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi
var azSql = [8]uintptr{
- ts + 25635,
- ts + 25688,
+ ts + 25731,
+ ts + 25784,
- ts + 25733,
- ts + 25785,
- ts + 25839,
+ ts + 25829,
+ ts + 25881,
+ ts + 25935,
- ts + 25884,
- ts + 25942,
- ts + 25997,
-} /* sqlite3.c:197462:21 */
+ ts + 25980,
+ ts + 26038,
+ ts + 26093,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199442: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 { /* sqlite3.c:197585:12: */
+func getIntFromStmt(tls *libc.TLS, db uintptr, zSql uintptr, piVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199565:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -158016,7 +159594,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 { /* sqlite3.c:197615:12: */
+func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199595:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -158024,7 +159602,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+26044, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb))
+ zSql = Xsqlite3_mprintf(tls, ts+26140, 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
@@ -158032,19 +159610,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+3604, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db)))
}
} else {
zSql = Xsqlite3_mprintf(tls,
- ts+26064,
+ ts+26160,
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+3604, libc.VaList(bp+32, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, 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+26121,
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+26217,
libc.VaList(bp+40, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
}
}
@@ -158054,7 +159632,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 { /* sqlite3.c:197658:12: */
+func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199638:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -158069,7 +159647,7 @@ func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:197658:12:
// 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 { /* sqlite3.c:197672:12: */
+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: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -158095,17 +159673,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 + 26156,
- ts + 26199,
- ts + 26234,
- ts + 26270,
+ ts + 26252,
+ ts + 26295,
+ ts + 26330,
+ ts + 26366,
}
// 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+3604, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8))))
return SQLITE_ERROR
__1:
;
@@ -158135,7 +159713,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+26307,
+ Xsqlite3_str_appendf(tls, pSql, ts+26403,
libc.VaList(bp+16, rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8))))
ii = 4
__3:
@@ -158147,7 +159725,7 @@ __3:
goto __6
}
(*Rtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, ts+26331, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
+ Xsqlite3_str_appendf(tls, pSql, ts+26427, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
goto __7
__6:
if !(int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux) > 0) {
@@ -158170,7 +159748,7 @@ __4:
goto __5
__5:
;
- Xsqlite3_str_appendf(tls, pSql, ts+26337, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+26433, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !!(zSql != 0) {
goto __10
@@ -158181,14 +159759,14 @@ __10:
if !(ii < argc) {
goto __12
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(bp + 96 + 4*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, 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+3604, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db)))
__14:
;
__13:
@@ -158231,7 +159809,7 @@ __17:
if !(iErr != 0) {
goto __22
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8))))
goto rtreeInit_fail
__22:
;
@@ -158249,7 +159827,7 @@ __23:
if !(rc != 0) {
goto __24
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db)))
goto rtreeInit_fail
__24:
;
@@ -158269,7 +159847,7 @@ __25:
return rc
}
-var azFormat = [2]uintptr{ts + 26340, ts + 26351} /* sqlite3.c:197738:25 */
+var azFormat = [2]uintptr{ts + 26436, ts + 26447} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199718:25 */
// Implementation of a scalar function that decodes r-tree nodes to
// human readable strings. This can be used for debugging and analysis.
@@ -158285,7 +159863,7 @@ var azFormat = [2]uintptr{ts + 26340, ts + 26351} /* sqlite3.c:197738:25 */
// entry for each cell in the r-tree node. Each entry is itself a
// list, containing the 8-byte rowid/pageno followed by the
// <num-dimension>*2 coordinates.
-func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:197809:13: */
+func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199789:13: */
bp := tls.Alloc(1072)
defer tls.Free(1072)
@@ -158327,13 +159905,13 @@ func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlit
nodeGetCell(tls, bp+56, bp+16, ii, bp+1024)
if ii > 0 {
- Xsqlite3_str_append(tls, pOut, ts+10769, 1)
+ Xsqlite3_str_append(tls, pOut, ts+10786, 1)
}
- Xsqlite3_str_appendf(tls, pOut, ts+26361, libc.VaList(bp, (*RtreeCell)(unsafe.Pointer(bp+1024 /* &cell */)).FiRowid))
+ Xsqlite3_str_appendf(tls, pOut, ts+26457, 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+26367, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4)))))
+ Xsqlite3_str_appendf(tls, pOut, ts+26463, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4)))))
}
- Xsqlite3_str_append(tls, pOut, ts+26371, 1)
+ Xsqlite3_str_append(tls, pOut, ts+26467, 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})))
@@ -158348,11 +159926,11 @@ func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlit
// 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) { /* sqlite3.c:197861:13: */
+func rtreedepth(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199841: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+26373, -1)
+ Xsqlite3_result_error(tls, ctx, ts+26469, -1)
} else {
var zBlob uintptr = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if zBlob != 0 {
@@ -158380,15 +159958,15 @@ type RtreeCheck1 = struct {
FzReport uintptr
FnErr int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:197882:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199862:9 */
// Context object passed between the various routines that make up the
// implementation of integrity-check function rtreecheck().
-type RtreeCheck = RtreeCheck1 /* sqlite3.c:197882:27 */
+type RtreeCheck = RtreeCheck1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199862: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) { /* sqlite3.c:197904:13: */
+func rtreeCheckReset(tls *libc.TLS, pCheck uintptr, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199884:13: */
var rc int32 = Xsqlite3_reset(tls, pStmt)
if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK {
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = rc
@@ -158401,7 +159979,7 @@ func rtreeCheckReset(tls *libc.TLS, pCheck uintptr, pStmt uintptr) { /* sqlite3.
//
// 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 { /* sqlite3.c:197917:21: */
+func rtreeCheckPrepare(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199897:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -158429,7 +160007,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) { /* sqlite3.c:197946:13: */
+func rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199926:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -158441,12 +160019,12 @@ 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+26406,
+ (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, ts+26502,
libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport, func() uintptr {
if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport != 0 {
- return ts + 3985 /* "\n" */
+ return ts + 3994 /* "\n" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), z))
if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport == uintptr(0) {
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = SQLITE_NOMEM
@@ -158469,7 +160047,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 { /* sqlite3.c:197980:11: */
+func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199960:11: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -158477,7 +160055,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+26413,
+ ts+26509,
libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
}
@@ -158496,7 +160074,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+26458, libc.VaList(bp+16, iNode))
+ rtreeCheckAppendMsg(tls, pCheck, ts+26554, libc.VaList(bp+16, iNode))
}
}
@@ -158513,15 +160091,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) { /* sqlite3.c:198024:13: */
+func rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey I64, iVal I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200004: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 + 26490,
- ts + 26544,
+ ts + 26586,
+ ts + 26640,
}
if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) {
@@ -158536,23 +160114,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+26592,
+ rtreeCheckAppendMsg(tls, pCheck, ts+26688,
libc.VaList(bp+16, iKey, iVal, func() uintptr {
if bLeaf != 0 {
- return ts + 26637 /* "%_rowid" */
+ return ts + 26733 /* "%_rowid" */
}
- return ts + 26645 /* "%_parent" */
+ return ts + 26741 /* "%_parent" */
}()))
} else if rc == SQLITE_ROW {
var ii I64 = Xsqlite3_column_int64(tls, pStmt, 0)
if ii != iVal {
rtreeCheckAppendMsg(tls, pCheck,
- ts+26654,
+ ts+26750,
libc.VaList(bp+40, iKey, ii, func() uintptr {
if bLeaf != 0 {
- return ts + 26637 /* "%_rowid" */
+ return ts + 26733 /* "%_rowid" */
}
- return ts + 26645 /* "%_parent" */
+ return ts + 26741 /* "%_parent" */
}(), iKey, iVal))
}
}
@@ -158569,7 +160147,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) { /* sqlite3.c:198076:13: */
+func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, pCell uintptr, pParent uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200056:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -158595,7 +160173,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+26712, libc.VaList(bp, i, iCell, iNode))
+ ts+26808, libc.VaList(bp, i, iCell, iNode))
}
if pParent != 0 {
@@ -158615,7 +160193,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+26760, libc.VaList(bp+24, i, iCell, iNode))
+ ts+26856, libc.VaList(bp+24, i, iCell, iNode))
}
}
}
@@ -158627,7 +160205,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) { /* sqlite3.c:198122:13: */
+func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr, iNode I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200102:13: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -158638,14 +160216,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+26827, libc.VaList(bp, iNode, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */))))
+ ts+26923, 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+26861, libc.VaList(bp+16, iDepth))
+ rtreeCheckAppendMsg(tls, pCheck, ts+26957, libc.VaList(bp+16, iDepth))
Xsqlite3_free(tls, aNode)
return
}
@@ -158653,7 +160231,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+26891,
+ ts+26987,
libc.VaList(bp+24, iNode, nCell, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */))))
} else {
for i = 0; i < nCell; i++ {
@@ -158681,20 +160259,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) { /* sqlite3.c:198185:13: */
+func rtreeCheckCount(tls *libc.TLS, pCheck uintptr, zTbl uintptr, nExpect I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200165: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+26946,
+ pCount = rtreeCheckPrepare(tls, pCheck, ts+27042,
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+26977, libc.VaList(bp+24, zTbl, nExpect, nActual))
+ ts+27073, libc.VaList(bp+24, zTbl, nExpect, nActual))
}
}
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount)
@@ -158704,7 +160282,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 { /* sqlite3.c:198209:12: */
+func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzReport uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200189:12: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -158724,13 +160302,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+14399, uintptr(0), uintptr(0), uintptr(0))
+ (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = Xsqlite3_exec(tls, db, ts+14421, 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+27044, libc.VaList(bp, zDb, zTab))
+ pStmt = rtreeCheckPrepare(tls, bp+32, ts+27140, libc.VaList(bp, zDb, zTab))
if pStmt != 0 {
nAux = Xsqlite3_column_count(tls, pStmt) - 2
Xsqlite3_finalize(tls, pStmt)
@@ -158740,12 +160318,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+24864, libc.VaList(bp+16, zDb, zTab))
+ pStmt = rtreeCheckPrepare(tls, bp+32, ts+24960, 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+27072, 0)
+ rtreeCheckAppendMsg(tls, bp+32, ts+27168, 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)
}
@@ -158760,8 +160338,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+27103, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf))
- rtreeCheckCount(tls, bp+32, ts+27110, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf))
+ rtreeCheckCount(tls, bp+32, ts+27199, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf))
+ rtreeCheckCount(tls, bp+32, ts+27206, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf))
}
// Finalize SQL statements used by the integrity-check
@@ -158771,7 +160349,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+27118, uintptr(0), uintptr(0), uintptr(0))
+ var rc int32 = Xsqlite3_exec(tls, db, ts+27214, uintptr(0), uintptr(0), uintptr(0))
if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK {
(*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = rc
}
@@ -158811,13 +160389,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) { /* sqlite3.c:198316:13: */
+func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200296:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
if nArg != 1 && nArg != 2 {
Xsqlite3_result_error(tls, ctx,
- ts+27122, -1)
+ ts+27218, -1)
} else {
var rc int32
*(*uintptr)(unsafe.Pointer(bp /* zReport */)) = uintptr(0)
@@ -158825,7 +160403,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqli
var zTab uintptr
if nArg == 1 {
zTab = zDb
- zDb = ts + 6308 /* "main" */
+ zDb = ts + 6313 /* "main" */
} else {
zTab = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg + 1*8)))
}
@@ -158835,7 +160413,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqli
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
return *(*uintptr)(unsafe.Pointer(bp /* zReport */))
}
- return ts + 17752 /* "ok" */
+ return ts + 17792 /* "ok" */
}(), -1, libc.UintptrFromInt32(-1))
} else {
Xsqlite3_result_error_code(tls, ctx, rc)
@@ -158867,10 +160445,14 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqli
// Enable -DGEOPOLY_ENABLE_DEBUG for debugging facilities
+// Character class routines
+// Use the SQLite core versions if this routine is part of the
+// SQLite amalgamation
+
// Compiler and version
// Datatype for coordinates
-type GeoCoord = float32 /* sqlite3.c:198440:15 */
+type GeoCoord = float32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200417:15 */
// Internal representation of a polygon.
//
@@ -158896,7 +160478,7 @@ type GeoPoly1 = struct {
FnVertex int32
Fhdr [4]uint8
Fa [8]GeoCoord
-} /* sqlite3.c:198464:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200441:9 */
// Internal representation of a polygon.
//
@@ -158918,7 +160500,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 /* sqlite3.c:198464:24 */
+type GeoPoly = GeoPoly1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200441:24 */
// The size of a memory allocation needed for a GeoPoly object sufficient
// to hold N coordinate pairs.
@@ -158935,7 +160517,7 @@ type GeoParse1 = struct {
FnErr int32
F__ccgo_pad1 [4]byte
Fa uintptr
-} /* sqlite3.c:198487:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200464:9 */
// The size of a memory allocation needed for a GeoPoly object sufficient
// to hold N coordinate pairs.
@@ -158945,10 +160527,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 /* sqlite3.c:198487:25 */
+type GeoParse = GeoParse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200464:25 */
// Do a 4-byte byte swap
-func geopolySwab32(tls *libc.TLS, a uintptr) { /* sqlite3.c:198497:13: */
+func geopolySwab32(tls *libc.TLS, a uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200474:13: */
var t uint8 = *(*uint8)(unsafe.Pointer(a))
*(*uint8)(unsafe.Pointer(a)) = *(*uint8)(unsafe.Pointer(a + 3))
*(*uint8)(unsafe.Pointer(a + 3)) = t
@@ -158958,7 +160540,7 @@ func geopolySwab32(tls *libc.TLS, a uintptr) { /* sqlite3.c:198497:13: */
}
// Skip whitespace. Return the next non-whitespace character.
-func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* sqlite3.c:198507:13: */
+func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200484:13: */
for jsonIsSpace[*(*uint8)(unsafe.Pointer((*GeoParse)(unsafe.Pointer(p)).Fz))] != 0 {
(*GeoParse)(unsafe.Pointer(p)).Fz++
}
@@ -158967,7 +160549,7 @@ func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* sqlite3.c:198507:13: *
// 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 { /* sqlite3.c:198515:12: */
+func geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200492:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -159039,7 +160621,7 @@ func geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) int32 { /* sqlit
// that object.
//
// If any error occurs, return NULL.
-func geopolyParseJson(tls *libc.TLS, z uintptr, pRc uintptr) uintptr { /* sqlite3.c:198573:16: */
+func geopolyParseJson(tls *libc.TLS, z uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200550:16: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -159181,7 +160763,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 { /* sqlite3.c:198650:16: */
+func geopolyFuncParam(tls *libc.TLS, pCtx uintptr, pVal uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200627:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -159250,7 +160832,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) { /* sqlite3.c:198711:13: */
+func geopolyBlobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200688:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
Xsqlite3_result_blob(tls, context, p+4,
@@ -159263,7 +160845,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) { /* sqlite3.c:198730:13: */
+func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200707:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -159272,11 +160854,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+27173, 1)
+ Xsqlite3_str_append(tls, x, ts+27269, 1)
for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ {
- Xsqlite3_str_appendf(tls, x, ts+27175, 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+27271, 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+27186, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
+ Xsqlite3_str_appendf(tls, x, ts+27282, 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)
}
@@ -159286,7 +160868,7 @@ func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
//
// Interpret X as a polygon and render it as a SVG <polyline>.
// Additional arguments are added as attributes to the <polyline>.
-func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:198756:13: */
+func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200733:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -159300,19 +160882,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+27197, 0)
+ Xsqlite3_str_appendf(tls, x, ts+27293, 0)
for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ {
- Xsqlite3_str_appendf(tls, x, ts+27215, 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+27311, 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+27223, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
+ Xsqlite3_str_appendf(tls, x, ts+27319, 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+27231, libc.VaList(bp+40, z))
+ Xsqlite3_str_appendf(tls, x, ts+27327, libc.VaList(bp+40, z))
}
}
- Xsqlite3_str_appendf(tls, x, ts+27235, 0)
+ Xsqlite3_str_appendf(tls, x, ts+27331, 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)
}
@@ -159332,7 +160914,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) { /* sqlite3.c:198803:13: */
+func geopolyXformFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200780: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)))
@@ -159365,7 +160947,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 { /* sqlite3.c:198839:15: */
+func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200816:15: */
var rArea float64 = 0.0
var ii int32
for ii = 0; ii < (*GeoPoly)(unsafe.Pointer(p)).FnVertex-1; ii++ {
@@ -159385,7 +160967,7 @@ func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* sqlite3.c:198839:15: */
// 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) { /* sqlite3.c:198861:13: */
+func geopolyAreaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200838:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
Xsqlite3_result_double(tls, context, geopolyArea(tls, p))
@@ -159404,7 +160986,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) { /* sqlite3.c:198886:13: */
+func geopolyCcwFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200863:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
if geopolyArea(tls, p) < 0.0 {
@@ -159440,7 +161022,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 { /* sqlite3.c:198914:15: */
+func geopolySine(tls *libc.TLS, r float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200891:15: */
if r >= float64(1.5)*3.1415926535897932385 {
r = r - float64(2.0)*3.1415926535897932385
@@ -159460,7 +161042,7 @@ func geopolySine(tls *libc.TLS, r float64) float64 { /* sqlite3.c:198914:15: */
//
// 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) { /* sqlite3.c:198935:13: */
+func geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200912:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -159505,7 +161087,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 { /* sqlite3.c:198978:16: */
+func geopolyBBox(tls *libc.TLS, context uintptr, pPoly uintptr, aCoord uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200955:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -159646,7 +161228,7 @@ __4:
}
// Implementation of the geopoly_bbox(X) SQL function.
-func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:199049:13: */
+func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201026: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,
@@ -159659,13 +161241,13 @@ func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
type GeoBBox1 = struct {
FisInit int32
Fa [4]RtreeCoord
-} /* sqlite3.c:199065:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201042:9 */
// State vector for the geopoly_group_bbox() aggregate function.
-type GeoBBox = GeoBBox1 /* sqlite3.c:199065:24 */
+type GeoBBox = GeoBBox1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201042:24 */
// Implementation of the geopoly_group_bbox(X) aggregate SQL function.
-func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:199075:13: */
+func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201052:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -159699,7 +161281,7 @@ func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
}
-func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* sqlite3.c:199098:13: */
+func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201075:13: */
var p uintptr
var pBBox uintptr
pBBox = Xsqlite3_aggregate_context(tls, context, 0)
@@ -159726,7 +161308,7 @@ func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* sqlite3.c:199098:13:
//
// 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 { /* sqlite3.c:199128:12: */
+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: */
var y float64
if x0 == x1 && y0 == y1 {
return 2
@@ -159767,7 +161349,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) { /* sqlite3.c:199159:13: */
+func geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201136: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)))
@@ -159805,7 +161387,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) { /* sqlite3.c:199202:13: */
+func geopolyWithinFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201179: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 {
@@ -159837,10 +161419,10 @@ type GeoEvent1 = struct {
F__ccgo_pad1 [4]byte
FpSeg uintptr
FpNext uintptr
-} /* sqlite3.c:199222:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201199:9 */
// Objects used by the overlap algorihm.
-type GeoEvent = GeoEvent1 /* sqlite3.c:199222:25 */
+type GeoEvent = GeoEvent1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201199:25 */
type GeoSegment1 = struct {
FC float64
FB float64
@@ -159851,20 +161433,20 @@ type GeoSegment1 = struct {
Fidx uint32
F__ccgo_pad2 [4]byte
FpNext uintptr
-} /* sqlite3.c:199222:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201199:9 */
-type GeoSegment = GeoSegment1 /* sqlite3.c:199223:27 */
+type GeoSegment = GeoSegment1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201200:27 */
type GeoOverlap1 = struct {
FaEvent uintptr
FaSegment uintptr
FnEvent int32
FnSegment int32
-} /* sqlite3.c:199224:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201201:9 */
-type GeoOverlap = GeoOverlap1 /* sqlite3.c:199224:27 */
+type GeoOverlap = GeoOverlap1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201201: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) { /* sqlite3.c:199249:13: */
+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: */
var pSeg uintptr
var pEvent uintptr
if x0 == x1 {
@@ -159898,7 +161480,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) { /* sqlite3.c:199293:13: */
+func geopolyAddSegments(tls *libc.TLS, p uintptr, pPoly uintptr, side uint8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201270:13: */
var i uint32
var x uintptr
for i = uint32(0); i < uint32((*GeoPoly)(unsafe.Pointer(pPoly)).FnVertex)-uint32(1); i++ {
@@ -159910,7 +161492,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 { /* sqlite3.c:199311:17: */
+func geopolyEventMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201288:17: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -159940,7 +161522,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 { /* sqlite3.c:199333:17: */
+func geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201310:17: */
bp := tls.Alloc(400)
defer tls.Free(400)
@@ -159970,7 +161552,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 { /* sqlite3.c:199358:19: */
+func geopolySegmentMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201335:19: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -160005,7 +161587,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 { /* sqlite3.c:199383:19: */
+func geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201360:19: */
bp := tls.Alloc(400)
defer tls.Free(400)
@@ -160035,7 +161617,7 @@ func geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) uintptr { /* sqlit
}
// Determine the overlap between two polygons
-func geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* sqlite3.c:199409:12: */
+func geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201386:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -160271,7 +161853,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) { /* sqlite3.c:199532:13: */
+func geopolyOverlapFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201509: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 {
@@ -160287,7 +161869,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) { /* sqlite3.c:199554:13: */
+func geopolyDebugFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201531:13: */
}
// This function is the implementation of both the xConnect and xCreate
@@ -160297,7 +161879,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 { /* sqlite3.c:199573:12: */
+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: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -160337,7 +161919,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+27248, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+27344, 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
@@ -160346,7 +161928,7 @@ __2:
goto __4
}
(*Rtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, ts+27270, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
+ Xsqlite3_str_appendf(tls, pSql, ts+27366, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
goto __3
__3:
ii++
@@ -160354,7 +161936,7 @@ __3:
goto __4
__4:
;
- Xsqlite3_str_appendf(tls, pSql, ts+26337, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+26433, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !!(zSql != 0) {
goto __5
@@ -160365,7 +161947,7 @@ __5:
if !(SQLITE_OK != libc.AssignInt32(&rc, Xsqlite3_declare_vtab(tls, db, zSql))) {
goto __7
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
__7:
;
__6:
@@ -160391,7 +161973,7 @@ __9:
if !(rc != 0) {
goto __10
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3604, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
goto geopolyInit_fail
__10:
;
@@ -160412,12 +161994,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 { /* sqlite3.c:199657:12: */
+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: */
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 { /* sqlite3.c:199670:12: */
+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: */
return geopolyInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 0)
}
@@ -160431,7 +162013,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 { /* sqlite3.c:199693:12: */
+func geopolyFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201670:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -160598,7 +162180,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 { /* sqlite3.c:199825:12: */
+func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201802:12: */
var ii int32
var iRowidTerm int32 = -1
var iFuncTerm int32 = -1
@@ -160624,7 +162206,7 @@ func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* s
if iRowidTerm >= 0 {
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = 1
- (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 16115 /* "rowid" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 16155 /* "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
@@ -160634,7 +162216,7 @@ func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* s
}
if iFuncTerm >= 0 {
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = idxNum
- (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27274 /* "rtree" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27370 /* "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
@@ -160642,14 +162224,14 @@ func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* s
return SQLITE_OK
}
(*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = 4
- (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27280 /* "fullscan" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27376 /* "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 { /* sqlite3.c:199877:12: */
+func geopolyColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201854:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -160714,7 +162296,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 { /* sqlite3.c:199932:12: */
+func geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201909:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -160781,7 +162363,7 @@ __1:
if !(*(*int32)(unsafe.Pointer(bp + 48)) == SQLITE_ERROR) {
goto __4
}
- (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+27289, 0)
+ (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+27385, 0)
__4:
;
goto geopoly_update_end
@@ -160925,15 +162507,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 { /* sqlite3.c:200069:12: */
- if Xsqlite3_stricmp(tls, zName, ts+27329) == 0 {
+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+27425) == 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+27345) == 0 {
+ if Xsqlite3_stricmp(tls, zName, ts+27441) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{geopolyWithinFunc}))
@@ -160966,12 +162548,12 @@ var geopolyModule = Sqlite3_module{
FxRename: 0, // xRename - rename the table
FxSavepoint: 0, // xRollbackTo
FxShadowName: 0, // xShadowName
-} /* sqlite3.c:200090:23 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202067:23 */
-func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:200117:12: */
+func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202094:12: */
var rc int32 = SQLITE_OK
var i int32
- for i = 0; uint64(i) < uint64(unsafe.Sizeof(aFunc1))/uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < uint64(unsafe.Sizeof(aFunc))/uint64(unsafe.Sizeof(struct {
FxFunc uintptr
FnArg int8
FbPure uint8
@@ -160979,57 +162561,57 @@ func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:200117
FzName uintptr
}{})) && rc == SQLITE_OK; i++ {
var enc int32
- if aFunc1[i].FbPure != 0 {
+ if aFunc[i].FbPure != 0 {
enc = SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS
} else {
enc = SQLITE_UTF8 | SQLITE_DIRECTONLY
}
- rc = Xsqlite3_create_function(tls, db, aFunc1[i].FzName, int32(aFunc1[i].FnArg),
+ rc = Xsqlite3_create_function(tls, db, aFunc[i].FzName, int32(aFunc[i].FnArg),
enc, uintptr(0),
- aFunc1[i].FxFunc, uintptr(0), uintptr(0))
+ aFunc[i].FxFunc, uintptr(0), uintptr(0))
}
- for i = 0; uint64(i) < uint64(unsafe.Sizeof(aAgg1))/uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < uint64(unsafe.Sizeof(aAgg))/uint64(unsafe.Sizeof(struct {
FxStep uintptr
FxFinal uintptr
FzName uintptr
}{})) && rc == SQLITE_OK; i++ {
- rc = Xsqlite3_create_function(tls, db, aAgg1[i].FzName, 1,
+ rc = Xsqlite3_create_function(tls, db, aAgg[i].FzName, 1,
SQLITE_UTF8|SQLITE_DETERMINISTIC|SQLITE_INNOCUOUS, uintptr(0),
- uintptr(0), aAgg1[i].FxStep, aAgg1[i].FxFinal)
+ uintptr(0), aAgg[i].FxStep, aAgg[i].FxFinal)
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_module_v2(tls, db, ts+27360, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+27456, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0))
}
return rc
}
-var aFunc1 = [12]struct {
+var aFunc = [12]struct {
FxFunc uintptr
FnArg int8
FbPure uint8
F__ccgo_pad1 [6]byte
FzName uintptr
}{
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27368 /* "geopoly_area" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27381 /* "geopoly_blob" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27394 /* "geopoly_json" */},
- {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 27407 /* "geopoly_svg" */},
- {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27345 /* "geopoly_within" */},
- {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 27419 /* "geopoly_contains..." */},
- {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27329 /* "geopoly_overlap" */},
- {FxFunc: 0, FnArg: int8(1), FzName: ts + 27442 /* "geopoly_debug" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27456 /* "geopoly_bbox" */},
- {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 27469 /* "geopoly_xform" */},
- {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 27483 /* "geopoly_regular" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27499 /* "geopoly_ccw" */},
-} /* sqlite3.c:200124:5 */
-var aAgg1 = [1]struct {
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27464 /* "geopoly_area" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27477 /* "geopoly_blob" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27490 /* "geopoly_json" */},
+ {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 27503 /* "geopoly_svg" */},
+ {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27441 /* "geopoly_within" */},
+ {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 27515 /* "geopoly_contains..." */},
+ {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27425 /* "geopoly_overlap" */},
+ {FxFunc: 0, FnArg: int8(1), FzName: ts + 27538 /* "geopoly_debug" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27552 /* "geopoly_bbox" */},
+ {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 27565 /* "geopoly_xform" */},
+ {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 27579 /* "geopoly_regular" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27595 /* "geopoly_ccw" */},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202101:5 */
+var aAgg = [1]struct {
FxStep uintptr
FxFinal uintptr
FzName uintptr
}{
- {FxStep: 0, FxFinal: 0, FzName: ts + 27511 /* "geopoly_group_bb..." */},
-} /* sqlite3.c:200142:5 */
+ {FxStep: 0, FxFinal: 0, FzName: ts + 27607 /* "geopoly_group_bb..." */},
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202119:5 */
//************* End of geopoly.c ********************************************
//************* Continuing where we left off in rtree.c *********************
@@ -161037,30 +162619,30 @@ var aAgg1 = [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 { /* sqlite3.c:200177:20: */
+func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202154:20: */
var utf8 int32 = SQLITE_UTF8
var rc int32
- rc = Xsqlite3_create_function(tls, db, ts+27530, 2, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+27626, 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+27540, 1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+27636, 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+27551, -1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+27647, -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+27274, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+27370, 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+27562, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+27658, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
}
if rc == SQLITE_OK {
rc = sqlite3_geopoly_init(tls, db)
@@ -161074,7 +162656,7 @@ func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:200177:20
// 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) { /* sqlite3.c:200216:13: */
+func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202193: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)
@@ -161083,7 +162665,7 @@ func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* sqlite3.c:200216:13: */
}
// This routine frees the BLOB that is returned by geomCallback().
-func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:200225:13: */
+func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202202:13: */
var i int32
var p uintptr = pArg
for i = 0; i < (*RtreeMatchArg)(unsafe.Pointer(p)).FnParam; i++ {
@@ -161104,7 +162686,7 @@ func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:200225:13: */
// 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) { /* sqlite3.c:200248:13: */
+func geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202225:13: */
var pGeomCtx uintptr = Xsqlite3_user_data(tls, ctx)
var pBlob uintptr
var nBlob Sqlite3_int64
@@ -161132,13 +162714,13 @@ func geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* sql
Xsqlite3_result_error_nomem(tls, ctx)
rtreeMatchArgFree(tls, pBlob)
} else {
- Xsqlite3_result_pointer(tls, ctx, pBlob, ts+24850, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{rtreeMatchArgFree})))
+ Xsqlite3_result_pointer(tls, ctx, pBlob, ts+24946, *(*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 { /* sqlite3.c:200286:16: */
+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: */
var pGeomCtx uintptr // Context object for new user-function
// Allocate and populate the context object.
@@ -161158,7 +162740,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 { /* sqlite3.c:200310:16: */
+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: */
var pGeomCtx uintptr // Context object for new user-function
// Allocate and populate the context object.
@@ -161614,7 +163196,7 @@ type sqlite3rbu = struct {
FnRbu int32
F__ccgo_pad6 [4]byte
FpRbuFd uintptr
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
//************* End of rtree.c **********************************************
//************* Begin file icu.c ********************************************
@@ -162015,7 +163597,7 @@ type sqlite3rbu = struct {
// #include "sqlite3.h" ** Required for error code definitions **
-type Sqlite3rbu = sqlite3rbu /* sqlite3.c:201540:27 */
+type Sqlite3rbu = sqlite3rbu /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:27 */
//************* End of sqlite3rbu.h *****************************************
//************* Continuing where we left off in sqlite3rbu.c ****************
@@ -162080,7 +163662,7 @@ type Sqlite3rbu = sqlite3rbu /* sqlite3.c:201540:27 */
type RbuFrame1 = struct {
FiDbPage U32
FiWalFrame U32
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
//************* End of sqlite3rbu.h *****************************************
//************* Continuing where we left off in sqlite3rbu.c ****************
@@ -162142,7 +163724,7 @@ type RbuFrame1 = struct {
// Only valid if STAGE==1. The RBU database name of the table
// currently being read.
-type RbuFrame = RbuFrame1 /* sqlite3.c:201971:25 */
+type RbuFrame = RbuFrame1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203948:25 */
type RbuObjIter1 = struct {
FpTblIter uintptr
FpIdxIter uintptr
@@ -162174,9 +163756,9 @@ type RbuObjIter1 = struct {
FaIdxCol uintptr
FzIdxSql uintptr
FpRbuUpdate uintptr
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
-type RbuObjIter = RbuObjIter1 /* sqlite3.c:201972:27 */
+type RbuObjIter = RbuObjIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203949:27 */
type RbuState1 = struct {
FeStage int32
F__ccgo_pad1 [4]byte
@@ -162191,16 +163773,16 @@ type RbuState1 = struct {
F__ccgo_pad3 [4]byte
FiOalSz I64
FnPhaseOneStep I64
-} /* sqlite3.c:201973:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203950:9 */
-type RbuState = RbuState1 /* sqlite3.c:201973:25 */
+type RbuState = RbuState1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203950:25 */
type RbuSpan1 = struct {
FzSpan uintptr
FnSpan int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
-type RbuSpan = RbuSpan1 /* sqlite3.c:201974:24 */
+type RbuSpan = RbuSpan1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203951:24 */
type rbu_vfs = struct {
Fbase Sqlite3_vfs
FpRealVfs uintptr
@@ -162208,9 +163790,9 @@ type rbu_vfs = struct {
FpRbu uintptr
FpMain uintptr
FpMainRbu uintptr
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
-type Rbu_vfs = rbu_vfs /* sqlite3.c:201975:24 */
+type Rbu_vfs = rbu_vfs /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203952:24 */
type rbu_file = struct {
Fbase Sqlite3_file
FpReal uintptr
@@ -162229,16 +163811,16 @@ type rbu_file = struct {
FpWalFd uintptr
FpMainNext uintptr
FpMainRbuNext uintptr
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
-type Rbu_file = rbu_file /* sqlite3.c:201976:25 */
+type Rbu_file = rbu_file /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203953:25 */
type RbuUpdateStmt1 = struct {
FzMask uintptr
FpUpdate uintptr
FpNext uintptr
-} /* sqlite3.c:201540:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */
-type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:201977:30 */
+type RbuUpdateStmt = RbuUpdateStmt1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203954:30 */
// True for an RBU vacuum handle, or false otherwise.
@@ -162257,7 +163839,7 @@ type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:201977:30 */
// 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 { /* sqlite3.c:202267:21: */
+func rbuDeltaGetInt(tls *libc.TLS, pz uintptr, pLen uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204244:21: */
var v uint32 = uint32(0)
var c int32
var z uintptr = *(*uintptr)(unsafe.Pointer(pz))
@@ -162280,7 +163862,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),
-} /* sqlite3.c:202268:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204245:28 */
// Apply a delta.
//
@@ -162300,7 +163882,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 { /* sqlite3.c:202348:12: */
+func rbuDeltaApply(tls *libc.TLS, zSrc uintptr, lenSrc int32, zDelta uintptr, lenDelta int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204325:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
*(*uintptr)(unsafe.Pointer(bp)) = zDelta
@@ -162390,7 +163972,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 { /* sqlite3.c:202434:12: */
+func rbuDeltaOutputSize(tls *libc.TLS, zDelta uintptr, lenDelta int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204411:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
*(*uintptr)(unsafe.Pointer(bp)) = zDelta
@@ -162415,7 +163997,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) { /* sqlite3.c:202456:13: */
+func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204433:13: */
var aDelta uintptr
var nDelta int32
var aOrig uintptr
@@ -162432,7 +164014,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+27572, -1)
+ Xsqlite3_result_error(tls, context, ts+27668, -1)
return
}
@@ -162443,7 +164025,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+27572, -1)
+ Xsqlite3_result_error(tls, context, ts+27668, -1)
} else {
Xsqlite3_result_blob(tls, context, aOut, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
}
@@ -162458,13 +164040,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 { /* sqlite3.c:202509:12: */
+func prepareAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204486: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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
}
return rc
@@ -162476,13 +164058,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 { /* sqlite3.c:202531:12: */
+func resetAndCollectError(tls *libc.TLS, pStmt uintptr, pzErrmsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204508: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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt))))
+ *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt))))
}
return rc
}
@@ -162500,7 +164082,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 { /* sqlite3.c:202554:12: */
+func prepareFreeAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204531:12: */
var rc int32
if zSql == uintptr(0) {
@@ -162515,7 +164097,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) { /* sqlite3.c:202576:13: */
+func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204553: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)))
@@ -162533,7 +164115,7 @@ func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:202576:13:
// Finalize all statements and free all allocations that are specific to
// the current object (table/index pair).
-func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:202596:13: */
+func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204573:13: */
var pUp uintptr
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpSelect)
@@ -162563,7 +164145,7 @@ func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:2025
// Clean up any resources allocated as part of the iterator object passed
// as the only argument.
-func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:202628:13: */
+func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204605:13: */
rbuObjIterClearStatements(tls, pIter)
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpTblIter)
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpIdxIter)
@@ -162577,7 +164159,7 @@ func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:202628:13:
// 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 { /* sqlite3.c:202644:12: */
+func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204621:12: */
var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
if rc == SQLITE_OK {
@@ -162586,7 +164168,7 @@ func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.
if (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) {
rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+27593, uintptr(0), uintptr(0), p+64)
+ ts+27689, uintptr(0), uintptr(0), p+64)
}
if rc == SQLITE_OK {
@@ -162658,7 +164240,7 @@ func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.
//
// 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) { /* sqlite3.c:202724:13: */
+func rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204701:13: */
var p uintptr = Xsqlite3_user_data(tls, pCtx)
var zIn uintptr
@@ -162670,7 +164252,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+24763, zIn, uint64(4)) == 0 {
+ if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, ts+24859, 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++ {
}
@@ -162688,7 +164270,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 { /* sqlite3.c:202760:12: */
+func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204737:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -162698,17 +164280,17 @@ func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3
rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter, p+64,
Xsqlite3_mprintf(tls,
- ts+27764, libc.VaList(bp, func() uintptr {
+ ts+27860, libc.VaList(bp, func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 27914 /* "AND rootpage!=0 ..." */
+ return ts + 28010 /* "AND rootpage!=0 ..." */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}())))
if rc == SQLITE_OK {
rc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64,
- ts+27955)
+ ts+28051)
}
(*RbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = 1
@@ -162723,7 +164305,7 @@ func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3
// 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 { /* sqlite3.c:202795:13: */
+func rbuMPrintf(tls *libc.TLS, p uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204772:13: */
var zSql uintptr = uintptr(0)
var ap Va_list
_ = ap
@@ -162749,7 +164331,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 { /* sqlite3.c:202820:12: */
+func rbuMPrintfExec(tls *libc.TLS, p uintptr, db uintptr, zFmt uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204797:12: */
var ap Va_list
_ = ap
var zSql uintptr
@@ -162775,7 +164357,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 { /* sqlite3.c:202847:13: */
+func rbuMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204824:13: */
var pRet uintptr = uintptr(0)
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -162792,7 +164374,7 @@ func rbuMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* sqlit
// 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) { /* sqlite3.c:202867:13: */
+func rbuAllocateIterArrays(tls *libc.TLS, p uintptr, pIter uintptr, nCol int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204844: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
@@ -162815,7 +164397,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 { /* sqlite3.c:202892:13: */
+func rbuStrndup(tls *libc.TLS, zStr uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204869:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
@@ -162838,7 +164420,7 @@ func rbuStrndup(tls *libc.TLS, zStr uintptr, pRc uintptr) uintptr { /* sqlite3.c
// 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) { /* sqlite3.c:202917:13: */
+func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204894:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -162846,7 +164428,7 @@ func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* sqlite3.c:202917:
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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
}
}
@@ -162888,7 +164470,7 @@ func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* sqlite3.c:202917:
// }else{
// return RBU_PK_NONE
// }
-func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum uintptr, piPk uintptr) { /* sqlite3.c:202965:13: */
+func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum uintptr, piPk uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204942:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -162909,7 +164491,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+28080, libc.VaList(bp, zTab)))
+ ts+28176, libc.VaList(bp, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK || Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 32))) != SQLITE_ROW) {
goto __1
}
@@ -162927,7 +164509,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+28199, libc.VaList(bp+8, zTab)))
+ Xsqlite3_mprintf(tls, ts+28295, libc.VaList(bp+8, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0) {
goto __3
}
@@ -162945,7 +164527,7 @@ __4:
}
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+2*8, p+64,
Xsqlite3_mprintf(tls,
- ts+28220, libc.VaList(bp+16, zIdx)))
+ ts+28316, libc.VaList(bp+16, zIdx)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
goto __7
}
@@ -162969,7 +164551,7 @@ __5:
;
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+3*8, p+64,
- Xsqlite3_mprintf(tls, ts+28271, libc.VaList(bp+24, zTab)))
+ Xsqlite3_mprintf(tls, ts+28367, libc.VaList(bp+24, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
goto __10
}
@@ -163008,7 +164590,7 @@ __16:
// This is a helper function for rbuObjIterCacheTableInfo(). It populates
// the pIter->abIndexed[] array.
-func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:203051:13: */
+func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205028:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -163018,7 +164600,7 @@ func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sq
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+28292, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+28388, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
}
(*RbuObjIter)(unsafe.Pointer(pIter)).FnIndex = 0
@@ -163033,7 +164615,7 @@ func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sq
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+28320, libc.VaList(bp+8, zIdx)))
+ Xsqlite3_mprintf(tls, ts+28416, 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 {
@@ -163066,7 +164648,7 @@ func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sq
// 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 { /* sqlite3.c:203105:12: */
+func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205082:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -163083,7 +164665,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+19304, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+19342, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
return (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
@@ -163096,18 +164678,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+28349, libc.VaList(bp+8, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)))
+ Xsqlite3_mprintf(tls, ts+28445, 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+28368, zName, 4) != 0 {
+ if Xsqlite3_strnicmp(tls, ts+28464, 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+28373, zName) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+28469, zName) {
bRbuRowid = 1
}
}
@@ -163119,12 +164701,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+28383, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
+ ts+28479, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
func() uintptr {
if bRbuRowid != 0 {
- return ts + 28412 /* "may not have" */
+ return ts + 28508 /* "may not have" */
}
- return ts + 28425 /* "requires" */
+ return ts + 28521 /* "requires" */
}()))
}
@@ -163133,7 +164715,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+28434, libc.VaList(bp+32, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+28530, 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)
@@ -163147,7 +164729,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+28456,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+28552,
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)
@@ -163188,17 +164770,17 @@ 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 { /* sqlite3.c:203215:13: */
+func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205192:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
var zList uintptr = uintptr(0)
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
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+28483, libc.VaList(bp, zList, zSep, z))
- zSep = ts + 14510 /* ", " */
+ zList = rbuMPrintf(tls, p, ts+28579, libc.VaList(bp, zList, zSep, z))
+ zSep = ts + 14532 /* ", " */
}
return zList
}
@@ -163207,19 +164789,19 @@ 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 { /* sqlite3.c:203236:13: */
+func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, zSeparator uintptr, zPost uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205213:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
var iPk int32 = 1
var zRet uintptr = uintptr(0)
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
for 1 != 0 {
var i int32
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+28492, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost))
+ zRet = rbuMPrintf(tls, p, ts+28588, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost))
zSep = zSeparator
break
}
@@ -163249,7 +164831,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 { /* sqlite3.c:203281:13: */
+func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, zWrite uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205258:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -163258,25 +164840,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+28505, libc.VaList(bp, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ ts+28601, 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+28537, libc.VaList(bp+16, iMax))
+ zRet = rbuMPrintf(tls, p, ts+28633, libc.VaList(bp+16, iMax))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)))
} else {
- var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1546, ts+14510, ts+28560)
- var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+28566, ts+28573, ts+4880)
- var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1546, ts+14510, ts+1546)
+ var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1515, ts+14532, ts+28656)
+ var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+28662, ts+28669, ts+4889)
+ var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1515, ts+14532, ts+1515)
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+28581,
+ ts+28677,
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+28623, libc.VaList(bp+56, zList, zVal))
+ zRet = rbuMPrintf(tls, p, ts+28719, libc.VaList(bp+56, zList, zVal))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)))
}
@@ -163308,7 +164890,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 XrbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:203348:6: */
+func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205325:13: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -163334,12 +164916,12 @@ func XrbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /*
zVector = uintptr(0)
zRet = uintptr(0)
bFailed = 0
- zSep = ts + 1546 /* "" */
+ zSep = ts + 1515 /* "" */
iCol = 0
*(*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+28320, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ Xsqlite3_mprintf(tls, ts+28416, 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
@@ -163376,7 +164958,7 @@ __10:
zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
goto __7
__6:
- zCol = ts + 28643 /* "_rowid_" */
+ zCol = ts + 28739 /* "_rowid_" */
__7:
;
goto __5
@@ -163385,13 +164967,13 @@ __4:
__5:
;
- zLhs = rbuMPrintf(tls, p, ts+28651,
+ zLhs = rbuMPrintf(tls, p, ts+28747,
libc.VaList(bp+8, zLhs, zSep, zCol, zCollate))
- zOrder = rbuMPrintf(tls, p, ts+28672,
+ zOrder = rbuMPrintf(tls, p, ts+28768,
libc.VaList(bp+40, zOrder, zSep, iCol, zCol, zCollate))
- zSelect = rbuMPrintf(tls, p, ts+28708,
+ zSelect = rbuMPrintf(tls, p, ts+28804,
libc.VaList(bp+80, zSelect, zSep, iCol, zCol))
- zSep = ts + 14510 /* ", " */
+ zSep = ts + 14532 /* ", " */
iCol++
goto __1
__2:
@@ -163410,12 +164992,12 @@ __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+28735,
+ Xsqlite3_mprintf(tls, ts+28831,
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
}
- zSep = ts + 1546 /* "" */
+ zSep = ts + 1515 /* "" */
iCol = 0
__14:
if !(iCol < (*RbuObjIter)(unsafe.Pointer(pIter)).FnCol) {
@@ -163437,8 +165019,8 @@ __19:
;
__18:
;
- zVector = rbuMPrintf(tls, p, ts+28783, libc.VaList(bp+136, zVector, zSep, zQuoted))
- zSep = ts + 14510 /* ", " */
+ zVector = rbuMPrintf(tls, p, ts+28879, libc.VaList(bp+136, zVector, zSep, zQuoted))
+ zSep = ts + 14532 /* ", " */
goto __15
__15:
iCol++
@@ -163450,7 +165032,7 @@ __16:
if !!(bFailed != 0) {
goto __20
}
- zRet = rbuMPrintf(tls, p, ts+28790, libc.VaList(bp+160, zLhs, zVector))
+ zRet = rbuMPrintf(tls, p, ts+28886, libc.VaList(bp+160, zLhs, zVector))
__20:
;
__13:
@@ -163489,7 +165071,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 { /* sqlite3.c:203463:13: */
+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: */
bp := tls.Alloc(208)
defer tls.Free(208)
@@ -163500,14 +165082,14 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC
var zImpPK uintptr = uintptr(0) // String to return via *pzImposterPK
var zWhere uintptr = uintptr(0) // String to return via *pzWhere
var nBind int32 = 0 // Value to return via *pnBind
- var zCom uintptr = ts + 1546 /* "" */ // Set to ", " later on
- var zAnd uintptr = ts + 1546 /* "" */ // Set to " AND " later on
+ var zCom uintptr = ts + 1515 /* "" */ // Set to ", " later on
+ var zAnd uintptr = ts + 1515 /* "" */ // Set to " AND " later on
*(*uintptr)(unsafe.Pointer(bp + 200 /* pXInfo */)) = uintptr(0) // PRAGMA index_xinfo = ?
if rc == SQLITE_OK {
rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+200, p+64,
- Xsqlite3_mprintf(tls, ts+28320, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ Xsqlite3_mprintf(tls, ts+28416, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
}
for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 200))) {
@@ -163519,9 +165101,9 @@ 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+28802, libc.VaList(bp+8, zRet, zCom,
+ zRet = Xsqlite3_mprintf(tls, ts+28898, 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 + 1546 /* "" */
+ zType = ts + 1515 /* "" */
} else {
if iCid < 0 {
// An integer primary key. If the table has an explicit IPK, use
@@ -163533,37 +165115,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 + 28643 /* "_rowid_" */
+ zCol = ts + 28739 /* "_rowid_" */
} else {
- zCol = ts + 28373 /* "rbu_rowid" */
+ zCol = ts + 28469 /* "rbu_rowid" */
}
- zType = ts + 1093 /* "INTEGER" */
+ zType = ts + 1080 /* "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+28824, libc.VaList(bp+48, zRet, zCom, zCol, zCollate))
+ zRet = Xsqlite3_mprintf(tls, ts+28920, 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 + 28560
+ return ts + 28656
}
- return ts + 1546
+ return ts + 1515
}()
- zImpPK = Xsqlite3_mprintf(tls, ts+28844,
+ zImpPK = Xsqlite3_mprintf(tls, ts+28940,
libc.VaList(bp+80, zImpPK, zCom, nBind, zCol, zOrder))
}
- zImpCols = Xsqlite3_mprintf(tls, ts+28865,
+ zImpCols = Xsqlite3_mprintf(tls, ts+28961,
libc.VaList(bp+120, zImpCols, zCom, nBind, zCol, zType, zCollate))
zWhere = Xsqlite3_mprintf(tls,
- ts+28898, libc.VaList(bp+168, zWhere, zAnd, nBind, zCol))
+ ts+28994, 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 + 14510 /* ", " */
- zAnd = ts + 21324 /* " AND " */
+ zCom = ts + 14532 /* ", " */
+ zAnd = ts + 21362 /* " AND " */
nBind++
}
@@ -163600,22 +165182,22 @@ 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 { /* sqlite3.c:203575:13: */
+func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205552:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
var zList uintptr = uintptr(0)
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed != 0 {
- var zS uintptr = ts + 1546 /* "" */
+ var zS uintptr = ts + 1515 /* "" */
var i int32
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+28922, libc.VaList(bp, zList, zS, zObj, zCol))
+ zList = Xsqlite3_mprintf(tls, ts+29018, libc.VaList(bp, zList, zS, zObj, zCol))
} else {
- zList = Xsqlite3_mprintf(tls, ts+28934, libc.VaList(bp+32, zList, zS))
+ zList = Xsqlite3_mprintf(tls, ts+29030, libc.VaList(bp+32, zList, zS))
}
- zS = ts + 14510 /* ", " */
+ zS = ts + 14532 /* ", " */
if zList == uintptr(0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
break
@@ -163624,7 +165206,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+28943, libc.VaList(bp+48, zList, zObj))
+ zList = rbuMPrintf(tls, p, ts+29039, libc.VaList(bp+48, zList, zObj))
}
}
return zList
@@ -163638,33 +165220,33 @@ 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 { /* sqlite3.c:203616:13: */
+func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205593: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+28958, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1))
+ zList = rbuMPrintf(tls, p, ts+29054, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1))
} else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL {
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
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+28972, libc.VaList(bp+8, zList, zSep, i, i+1))
- zSep = ts + 21324 /* " AND " */
+ zList = rbuMPrintf(tls, p, ts+29068, libc.VaList(bp+8, zList, zSep, i, i+1))
+ zSep = ts + 21362 /* " AND " */
}
}
zList = rbuMPrintf(tls, p,
- ts+28984, libc.VaList(bp+40, zList))
+ ts+29080, libc.VaList(bp+40, zList))
} else {
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
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 {
var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zList = rbuMPrintf(tls, p, ts+29034, libc.VaList(bp+48, zList, zSep, zCol, i+1))
- zSep = ts + 21324 /* " AND " */
+ zList = rbuMPrintf(tls, p, ts+29130, libc.VaList(bp+48, zList, zSep, zCol, i+1))
+ zSep = ts + 21362 /* " AND " */
}
}
}
@@ -163676,9 +165258,9 @@ func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sq
// 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) { /* sqlite3.c:203657:13: */
+func rbuBadControlError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205634:13: */
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29047, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29143, 0)
}
// Return a nul-terminated string containing the comma separated list of
@@ -163696,7 +165278,7 @@ func rbuBadControlError(tls *libc.TLS, p uintptr) { /* sqlite3.c:203657:13: */
// 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 { /* sqlite3.c:203680:13: */
+func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205657:13: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -163707,21 +165289,21 @@ func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr
if int32(libc.Xstrlen(tls, zMask)) != (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol {
rbuBadControlError(tls, p)
} else {
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
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+29034,
+ zList = rbuMPrintf(tls, p, ts+29130,
libc.VaList(bp, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1))
- zSep = ts + 14510 /* ", " */
+ zSep = ts + 14532 /* ", " */
} else if int32(c) == 'd' {
- zList = rbuMPrintf(tls, p, ts+29073,
+ zList = rbuMPrintf(tls, p, ts+29169,
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 + 14510 /* ", " */
+ zSep = ts + 14532 /* ", " */
} else if int32(c) == 'f' {
- zList = rbuMPrintf(tls, p, ts+29103,
+ zList = rbuMPrintf(tls, p, ts+29199,
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 + 14510 /* ", " */
+ zSep = ts + 14532 /* ", " */
}
}
}
@@ -163742,7 +165324,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 { /* sqlite3.c:203734:13: */
+func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205711:13: */
var zRet uintptr = uintptr(0)
var nByte Sqlite3_int64 = int64(2)*Sqlite3_int64(nBind) + int64(1)
@@ -163772,26 +165354,26 @@ func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* s
// this function returns:
//
// PRIMARY KEY("b", "a" DESC)
-func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:203761:13: */
+func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205738: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 + 29140 /* "PRIMARY KEY(" */
+ var zSep uintptr = ts + 29236 /* "PRIMARY KEY(" */
*(*uintptr)(unsafe.Pointer(bp + 56 /* pXList */)) = uintptr(0) // PRAGMA index_list = (pIter->zTbl)
*(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */)) = uintptr(0) // PRAGMA index_xinfo = <pk-index>
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+56, p+64,
- Xsqlite3_mprintf(tls, ts+28292, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+28388, 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+16003) == 0 {
+ if zOrig != 0 && libc.Xstrcmp(tls, zOrig, ts+16043) == 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+28320, libc.VaList(bp+8, zIdx)))
+ Xsqlite3_mprintf(tls, ts+28416, libc.VaList(bp+8, zIdx)))
}
break
}
@@ -163804,15 +165386,15 @@ func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sql
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 + 28560 /* " DESC" */
+ zDesc = ts + 28656 /* " DESC" */
} else {
- zDesc = ts + 1546 /* "" */
+ zDesc = ts + 1515 /* "" */
}
- z = rbuMPrintf(tls, p, ts+29153, libc.VaList(bp+16, z, zSep, zCol, zDesc))
- zSep = ts + 14510 /* ", " */
+ z = rbuMPrintf(tls, p, ts+29249, libc.VaList(bp+16, z, zSep, zCol, zDesc))
+ zSep = ts + 14532 /* ", " */
}
}
- z = rbuMPrintf(tls, p, ts+29164, libc.VaList(bp+48, z))
+ z = rbuMPrintf(tls, p, ts+29260, libc.VaList(bp+48, z))
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */)))
}
return z
@@ -163835,7 +165417,7 @@ func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sql
//
// CREATE TABLE rbu_imposter2(c1 TEXT, c2 REAL, id INTEGER) WITHOUT ROWID;
//
-func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:203820:13: */
+func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205797:13: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -163844,7 +165426,7 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlit
*(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */)) = uintptr(0) // SELECT name ... WHERE rootpage = $tnum
var zIdx uintptr = uintptr(0) // Name of PK index
*(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */)) = uintptr(0) // PRAGMA main.index_xinfo = $zIdx
- var zComma uintptr = ts + 1546 /* "" */
+ var zComma uintptr = ts + 1515 /* "" */
var zCols uintptr = uintptr(0) // Used to build up list of table cols
var zPk uintptr = uintptr(0) // Used to build up table PK declaration
@@ -163852,7 +165434,7 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlit
// 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+29168)
+ ts+29264)
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))) {
@@ -163861,7 +165443,7 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlit
}
if zIdx != 0 {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+176, p+64,
- Xsqlite3_mprintf(tls, ts+28320, libc.VaList(bp, zIdx)))
+ Xsqlite3_mprintf(tls, ts+28416, libc.VaList(bp, zIdx)))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */)))
@@ -163871,25 +165453,25 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlit
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+29218, libc.VaList(bp+8, zCols, zComma,
+ zCols = rbuMPrintf(tls, p, ts+29314, libc.VaList(bp+8, zCols, zComma,
iCid, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate))
- zPk = rbuMPrintf(tls, p, ts+29240, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr {
+ zPk = rbuMPrintf(tls, p, ts+29336, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr {
if bDesc != 0 {
- return ts + 28560 /* " DESC" */
+ return ts + 28656 /* " DESC" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()))
- zComma = ts + 14510 /* ", " */
+ zComma = ts + 14532 /* ", " */
}
}
- zCols = rbuMPrintf(tls, p, ts+29250, libc.VaList(bp+80, zCols))
+ zCols = rbuMPrintf(tls, p, ts+29346, 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+6308, 1, tnum))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+88, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 1, tnum))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+29265,
+ ts+29361,
libc.VaList(bp+120, zCols, zPk))
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308, 0, 0))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 0, 0))
}
}
@@ -163911,58 +165493,58 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlit
// 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) { /* sqlite3.c:203894:13: */
+func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205871:13: */
bp := tls.Alloc(200)
defer tls.Free(200)
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FeType != RBU_PK_VTAB {
var tnum int32 = (*RbuObjIter)(unsafe.Pointer(pIter)).FiTnum
- var zComma uintptr = ts + 1546 /* "" */
+ var zComma uintptr = ts + 1515 /* "" */
var zSql uintptr = uintptr(0)
var iCol int32
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308, 0, 1))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 0, 1))
for iCol = 0; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && iCol < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; iCol++ {
- var zPk uintptr = ts + 1546 /* "" */
+ var zPk uintptr = ts + 1515 /* "" */
var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCol)*8))
*(*uintptr)(unsafe.Pointer(bp + 192 /* zColl */)) = uintptr(0)
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_table_column_metadata(tls,
- (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp+192, uintptr(0), uintptr(0), uintptr(0))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, (*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 + 29327 /* "PRIMARY KEY " */
+ zPk = ts + 29423 /* "PRIMARY KEY " */
}
- zSql = rbuMPrintf(tls, p, ts+29340,
+ zSql = rbuMPrintf(tls, p, ts+29436,
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 + 29367 /* " NOT NULL" */
+ return ts + 29463 /* " NOT NULL" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()))
- zComma = ts + 14510 /* ", " */
+ zComma = ts + 14532 /* ", " */
}
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+29377, libc.VaList(bp+88, zSql, zPk))
+ zSql = rbuMPrintf(tls, p, ts+29473, libc.VaList(bp+88, zSql, zPk))
}
}
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308, 1, tnum))
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+29384,
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 1, tnum))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+29480,
libc.VaList(bp+136, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql,
func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_WITHOUT_ROWID {
- return ts + 29416 /* " WITHOUT ROWID" */
+ return ts + 29512 /* " WITHOUT ROWID" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()))
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308, 0, 0))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 0, 0))
}
}
@@ -163975,7 +165557,7 @@ func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite
// 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) { /* sqlite3.c:203950:13: */
+func rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zCollist uintptr, zRbuRowid uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205927:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -163985,12 +165567,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+29431,
+ ts+29527,
libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zCollist, zRbuRowid, zBind)))
}
}
-func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:203968:13: */
+func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205945:13: */
var p uintptr = Xsqlite3_user_data(tls, pCtx)
var rc int32 = SQLITE_OK
var i int32
@@ -164012,7 +165594,7 @@ func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) {
}
}
-func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:203998:13: */
+func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205975:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -164022,7 +165604,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+29488)
+ ts+29584)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
var rc2 int32
@@ -164120,7 +165702,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 { /* sqlite3.c:204098:12: */
+func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206075:12: */
bp := tls.Alloc(628)
defer tls.Free(628)
@@ -164132,7 +165714,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+29554, libc.VaList(bp, nOffset))
+ zLimit = Xsqlite3_mprintf(tls, ts+29650, libc.VaList(bp, nOffset))
if !(zLimit != 0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
}
@@ -164153,26 +165735,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+6308, 0, 1))
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308, 1, tnum))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+8, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 0, 1))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 1, tnum))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+29574,
+ ts+29670,
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+6308, 0, 0))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+96, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 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+29639, libc.VaList(bp+128, zTbl, zBind)))
+ Xsqlite3_mprintf(tls, ts+29735, 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+29675, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */)))))
+ Xsqlite3_mprintf(tls, ts+29771, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */)))))
}
// Create the SELECT statement to read keys in sorted order
@@ -164181,7 +165763,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
var zStart uintptr = uintptr(0)
if nOffset != 0 {
- zStart = XrbuVacuumIndexStart(tls, p, pIter)
+ zStart = rbuVacuumIndexStart(tls, p, pIter)
if zStart != 0 {
Xsqlite3_free(tls, zLimit)
zLimit = uintptr(0)
@@ -164189,7 +165771,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}
zSql = Xsqlite3_mprintf(tls,
- ts+29709,
+ ts+29805,
libc.VaList(bp+160, zCollist,
(*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
zPart,
@@ -164197,32 +165779,32 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
if zStart != 0 {
return func() uintptr {
if zPart != 0 {
- return ts + 29770 /* "AND" */
+ return ts + 29866 /* "AND" */
}
- return ts + 29774 /* "WHERE" */
+ return ts + 29870 /* "WHERE" */
}()
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), zStart,
zCollist, zLimit))
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+29780,
+ ts+29876,
libc.VaList(bp+216, zCollist, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
zPart, zCollist, zLimit))
} else {
zSql = Xsqlite3_mprintf(tls,
- ts+29841,
+ ts+29937,
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 + 29770 /* "AND" */
+ return ts + 29866 /* "AND" */
}
- return ts + 29774 /* "WHERE" */
+ return ts + 29870 /* "WHERE" */
}(),
zCollist, zLimit))
}
@@ -164247,8 +165829,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+6317)
- var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6313)
+ var zOldlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6324)
+ var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6320)
zCollist = rbuObjIterGetCollist(tls, p, pIter)
(*RbuObjIter)(unsafe.Pointer(pIter)).FnCol = (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol
@@ -164258,21 +165840,21 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
rbuCreateImposterTable2(tls, p, pIter)
zWrite = func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_VTAB {
- return ts + 1546
+ return ts + 1515
}
- return ts + 30000
+ return ts + 30096
}()
// 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+30009,
+ ts+30105,
libc.VaList(bp+344, zWrite, zTbl, zCollist, func() uintptr {
if bRbuRowid != 0 {
- return ts + 30045 /* ", _rowid_" */
+ return ts + 30141 /* ", _rowid_" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), zBindings)))
}
@@ -164282,28 +165864,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+30055, libc.VaList(bp+384, zWrite, zTbl, zWhere)))
+ ts+30151, 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 + 1546 /* "" */
+ var zRbuRowid uintptr = ts + 1515 /* "" */
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE {
- zRbuRowid = ts + 30083 /* ", rbu_rowid" */
+ zRbuRowid = ts + 30179 /* ", rbu_rowid" */
}
// Create the rbu_tmp_xxx table and the triggers to populate it.
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu,
- ts+30095, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
+ ts+30191, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL {
- return ts + 30171 /* ", 0 AS rbu_rowid" */
+ return ts + 30267 /* ", 0 AS rbu_rowid" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+30188,
+ ts+30284,
libc.VaList(bp+440, zWrite, zTbl, zOldlist,
zWrite, zTbl, zOldlist,
zWrite, zTbl, zNewlist))
@@ -164311,7 +165893,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+30487,
+ ts+30583,
libc.VaList(bp+512, zWrite, zTbl, zNewlist))
}
@@ -164320,14 +165902,14 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
// Create the SELECT statement to read keys from data_xxx
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- var zRbuRowid uintptr = ts + 1546 /* "" */
+ var zRbuRowid uintptr = ts + 1515 /* "" */
var zStart uintptr = uintptr(0)
var zOrder uintptr = uintptr(0)
if bRbuRowid != 0 {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zRbuRowid = ts + 30586 /* ",_rowid_ " */
+ zRbuRowid = ts + 30682 /* ",_rowid_ " */
} else {
- zRbuRowid = ts + 30596 /* ",rbu_rowid" */
+ zRbuRowid = ts + 30692 /* ",rbu_rowid" */
}
}
@@ -164340,35 +165922,35 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}
}
if bRbuRowid != 0 {
- zOrder = rbuMPrintf(tls, p, ts+28643, 0)
+ zOrder = rbuMPrintf(tls, p, ts+28739, 0)
} else {
- zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1546, ts+14510, ts+1546)
+ zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1515, ts+14532, ts+1515)
}
}
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+30607,
+ ts+30703,
libc.VaList(bp+536, zCollist,
func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 30655 /* "0 AS " */
+ return ts + 30751 /* "0 AS " */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
zRbuRowid,
(*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
if zStart != 0 {
return zStart
}
- return ts + 1546
+ return ts + 1515
}(),
func() uintptr {
if zOrder != 0 {
- return ts + 19658 /* "ORDER BY" */
+ return ts + 19696 /* "ORDER BY" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(), zOrder,
zLimit)))
}
@@ -164395,7 +165977,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 { /* sqlite3.c:204365:12: */
+func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206342:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -164443,12 +166025,12 @@ func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, pp
(*RbuObjIter)(unsafe.Pointer(pIter)).FpRbuUpdate = pUp
if zSet != 0 {
- var zPrefix uintptr = ts + 1546 /* "" */
+ var zPrefix uintptr = ts + 1515 /* "" */
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType != RBU_PK_VTAB {
- zPrefix = ts + 30000 /* "rbu_imp_" */
+ zPrefix = ts + 30096 /* "rbu_imp_" */
}
- zUpdate = Xsqlite3_mprintf(tls, ts+30661,
+ zUpdate = Xsqlite3_mprintf(tls, ts+30757,
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)
@@ -164461,7 +166043,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 { /* sqlite3.c:204433:16: */
+func rbuOpenDbhandle(tls *libc.TLS, p uintptr, zName uintptr, bUseVfs int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206410:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -164475,7 +166057,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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */)))))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+3595, 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)
}
@@ -164484,7 +166066,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) { /* sqlite3.c:204454:13: */
+func rbuFreeState(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206431:13: */
if p != 0 {
Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzTbl)
Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzDataTbl)
@@ -164500,7 +166082,7 @@ func rbuFreeState(tls *libc.TLS, p uintptr) { /* sqlite3.c:204454:13: */
//
// 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 { /* sqlite3.c:204472:17: */
+func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206449:17: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -164516,7 +166098,7 @@ func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:204472:17: */
}
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+8, p+64,
- Xsqlite3_mprintf(tls, ts+30691, libc.VaList(bp, p+48)))
+ Xsqlite3_mprintf(tls, ts+30787, 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:
@@ -164584,7 +166166,7 @@ func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:204472:17: */
// 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) { /* sqlite3.c:204553:13: */
+func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206530:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -164593,31 +166175,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+6308, SQLITE_FCNTL_RBUCNT, p)
+ Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6313, 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+6308)
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+30721, libc.VaList(bp, zFile, zFile))
+ var zFile uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6313)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+30817, 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+30748, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState))
- libc.Xmemcpy(tls, p+48, ts+3227, uint64(4))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30844, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState))
+ libc.Xmemcpy(tls, p+48, ts+3218, uint64(4))
} else {
- libc.Xmemcpy(tls, p+48, ts+6308, uint64(4))
+ libc.Xmemcpy(tls, p+48, ts+6313, uint64(4))
}
// If it has not already been created, create the rbu_state table
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30766, libc.VaList(bp+24, p+48))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30862, 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+6308, SQLITE_FCNTL_RBUCNT, p)
+ rc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6313, SQLITE_FCNTL_RBUCNT, p)
if rc != SQLITE_NOTFOUND {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc
}
@@ -164650,11 +166232,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+30832, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30928, 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+23926, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
+ if libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, ts+24009, (*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)))) == '?' {
@@ -164666,16 +166248,16 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
}
}
- zTarget = Xsqlite3_mprintf(tls, ts+30864,
- libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6308),
+ zTarget = Xsqlite3_mprintf(tls, ts+30960,
+ libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6313),
func() uintptr {
if zExtra == uintptr(0) {
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
- return ts + 30896 /* "&" */
+ return ts + 30992 /* "&" */
}(), func() uintptr {
if zExtra == uintptr(0) {
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
return zExtra
}()))
@@ -164691,40 +166273,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+30898, -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)
}{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+30913, 2, SQLITE_UTF8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31009, 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+30930, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31026, -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+6308, SQLITE_FCNTL_RBU, p)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, SQLITE_FCNTL_RBU, p)
}
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+30946, 0)
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31042, 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+6308, SQLITE_FCNTL_RBU, p)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313, 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+30974, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31070, 0)
}
}
@@ -164746,7 +166328,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) { /* sqlite3.c:204734:13: */
+func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206711:13: */
}
// Return the current wal-index header checksum for the target database
@@ -164754,7 +166336,7 @@ func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* sqlite3.c:2047
//
// 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 { /* sqlite3.c:204755:12: */
+func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206732:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -164787,7 +166369,7 @@ func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:204755:12: */
// 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) { /* sqlite3.c:204784:13: */
+func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206761: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
@@ -164795,7 +166377,7 @@ func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c
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+30946, uintptr(0), uintptr(0), uintptr(0))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31042, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -164829,7 +166411,7 @@ func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c
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+30992, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31088, uintptr(0), uintptr(0), uintptr(0))
if rc2 != SQLITE_INTERNAL {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -164879,7 +166461,7 @@ func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c
// 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 { /* sqlite3.c:204868:12: */
+func rbuCaptureWalRead(tls *libc.TLS, pRbu uintptr, iOff I64, iAmt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206845:12: */
var mReq U32 = U32(int32(1)<<WAL_LOCK_WRITE | int32(1)<<WAL_LOCK_CKPT | int32(1)<<WAL_LOCK_READ0)
var iFrame U32
@@ -164918,7 +166500,7 @@ func rbuCaptureWalRead(tls *libc.TLS, pRbu uintptr, iOff I64, iAmt int32) int32
// Called when a page of data is written to offset iOff of the database
// file while the rbu handle is in capture mode. Record the page number
// of the page being written in the aFrame[] array.
-func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* sqlite3.c:204900:12: */
+func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206877:12: */
(*RbuFrame)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(pRbu)).FaFrame + uintptr((*Sqlite3rbu)(unsafe.Pointer(pRbu)).FnFrame-1)*8)).FiDbPage = U32(iOff/I64((*Sqlite3rbu)(unsafe.Pointer(pRbu)).Fpgsz)) + U32(1)
return SQLITE_OK
}
@@ -164926,7 +166508,7 @@ func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* sqlite3
// This is called as part of an incremental checkpoint operation. Copy
// a single frame of data from the wal file into the database file, as
// indicated by the RbuFrame object.
-func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* sqlite3.c:204910:13: */
+func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206887:13: */
var pWal uintptr = (*Rbu_file)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FpTargetFd)).FpWalFd)).FpReal
var pDb uintptr = (*Rbu_file)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FpTargetFd)).FpReal
var iOff I64
@@ -164947,13 +166529,13 @@ func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* sqlite3.c
// Take an EXCLUSIVE lock on the database file. Return SQLITE_OK if
// successful, or an SQLite error code otherwise.
-func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:204929:12: */
+func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206906:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var rc int32 = SQLITE_OK
*(*uintptr)(unsafe.Pointer(bp /* fd */)) = uintptr(0)
- Xsqlite3_file_control(tls, db, ts+6308, SQLITE_FCNTL_FILE_POINTER, bp)
+ Xsqlite3_file_control(tls, db, ts+6313, SQLITE_FCNTL_FILE_POINTER, bp)
if (*Sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods != 0 {
rc = (*struct {
@@ -164971,9 +166553,9 @@ func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:204929:12:
// Return true if the database handle passed as the only argument
// was opened with the rbu_exclusive_checkpoint=1 URI parameter
// specified. Or false otherwise.
-func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:204948:12: */
+func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206925:12: */
var zUri uintptr = Xsqlite3_db_filename(tls, db, uintptr(0))
- return Xsqlite3_uri_boolean(tls, zUri, ts+31027, 0)
+ return Xsqlite3_uri_boolean(tls, zUri, ts+31123, 0)
}
// The RBU handle is currently in RBU_STAGE_OAL state, with a SHARED lock
@@ -164981,20 +166563,20 @@ func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:2049
// then reopens the database file (this time in vanilla, non-oal, WAL mode).
// If an error occurs, leave an error code and error message in the rbu
// handle.
-func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:204984:13: */
+func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206961:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- var zBase uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6308)
+ var zBase uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6313)
var zMove uintptr = zBase
var zOal uintptr
var zWal uintptr
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zMove = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6308)
+ zMove = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6313)
}
- zOal = Xsqlite3_mprintf(tls, ts+31052, libc.VaList(bp, zMove))
- zWal = Xsqlite3_mprintf(tls, ts+31059, libc.VaList(bp+8, zMove))
+ zOal = Xsqlite3_mprintf(tls, ts+31148, libc.VaList(bp, zMove))
+ zWal = Xsqlite3_mprintf(tls, ts+31155, libc.VaList(bp+8, zMove))
if zWal == uintptr(0) || zOal == uintptr(0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
@@ -165063,7 +166645,7 @@ func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:204984:13: */
//
// If the rbu_control field contains an invalid value, an error code and
// message are left in the RBU handle and zero returned.
-func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* sqlite3.c:205089:12: */
+func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207066:12: */
var iCol int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FnCol // Index of rbu_control column
var res int32 = 0 // Return value
@@ -165119,7 +166701,7 @@ func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* sqlite3.c:
// Argument eType must be one of RBU_INSERT, RBU_DELETE, RBU_IDX_INSERT or
// RBU_IDX_DELETE. This function performs the work of a single
// sqlite3rbu_step() call for the type of operation specified by eType.
-func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* sqlite3.c:205145:13: */
+func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207122:13: */
var pIter uintptr = p + 80
var pVal uintptr
var pWriter uintptr
@@ -165147,7 +166729,7 @@ func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* sqlite3.c:205145:1
(*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) && (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_IPK && *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 &&
Xsqlite3_column_type(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpSelect, i) == SQLITE_NULL {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_MISMATCH
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+23564, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+23647, 0)
return
}
@@ -165191,7 +166773,7 @@ func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* sqlite3.c:205145:1
// If no error occurs, SQLITE_OK is returned. Otherwise, an error code
// and message is left in the RBU handle and a copy of the error code
// returned.
-func rbuStep(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205228:12: */
+func rbuStep(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207205:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -165250,7 +166832,7 @@ func rbuStep(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205228:12: */
// Or, if this is an RBU vacuum, set the schema cookie of the main db
// opened by p->dbMain to one more than the schema cookie of the main
// db opened by p->dbRbu.
-func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:205293:13: */
+func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207270:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -165265,7 +166847,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:205293:13: */
// var pStmt uintptr at bp+8, 8
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, dbread, bp+8, p+64,
- ts+31066)
+ ts+31162)
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
@@ -165278,7 +166860,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:205293:13: */
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+31088, libc.VaList(bp, iCookie+1))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31184, libc.VaList(bp, iCookie+1))
}
}
}
@@ -165286,7 +166868,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:205293:13: */
// 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) { /* sqlite3.c:205324:13: */
+func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207301:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -165303,7 +166885,7 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* sqlite3.c:205324:
rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+168, p+64,
Xsqlite3_mprintf(tls,
- ts+31115,
+ ts+31211,
libc.VaList(bp, p+48,
RBU_STATE_STAGE, eStage,
RBU_STATE_TBL, (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl,
@@ -165341,16 +166923,16 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* sqlite3.c:205324:
//
// In short, it copies the value of the specified PRAGMA setting from
// dbRbu to dbMain.
-func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* sqlite3.c:205385:13: */
+func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207362: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+31273, libc.VaList(bp, zPragma)))
+ Xsqlite3_mprintf(tls, ts+31369, 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+31288,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31384,
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 */)))
@@ -165360,18 +166942,18 @@ func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* sqlite3.c:205
// 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) { /* sqlite3.c:205405:13: */
+func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207382: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+31308, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31404, 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+31333)
+ ts+31429)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW {
@@ -165385,12 +166967,12 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:205405:13: *
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64,
- ts+31441)
+ ts+31537)
}
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+31506)
+ ts+31602)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW {
@@ -165402,7 +166984,7 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:205405:13: *
(*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+31550, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31646, uintptr(0), uintptr(0), p+64)
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp /* pSql */)))
@@ -165410,7 +166992,7 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:205405:13: *
}
// Step the RBU object.
-func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205457:16: */
+func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207434:16: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -165424,8 +167006,8 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205457:16:
// 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+17088)
- rbuCopyPragma(tls, p, ts+16199)
+ rbuCopyPragma(tls, p, ts+17128)
+ rbuCopyPragma(tls, p, ts+16239)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 {
@@ -165436,7 +167018,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205457:16:
// 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+31575, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
+ ts+31671, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
}
} else {
rbuObjIterPrepareAll(tls, p, pIter, 0)
@@ -165462,10 +167044,10 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205457:16:
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+14414, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14436, 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+14414, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14436, uintptr(0), uintptr(0), p+64)
}
(*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_MOVE
}
@@ -165524,7 +167106,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205457:16:
// this by checkpointing frames until the next page in the aFrame[]
// lies on a different disk sector to the current one.
var iSector U32
- for ok := true; ok; ok = (*Sqlite3rbu)(unsafe.Pointer(p)).FnStep < (*Sqlite3rbu)(unsafe.Pointer(p)).FnFrame &&
+ for __ccgo := true; __ccgo; __ccgo = (*Sqlite3rbu)(unsafe.Pointer(p)).FnStep < (*Sqlite3rbu)(unsafe.Pointer(p)).FnFrame &&
iSector == ((*RbuFrame)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FaFrame+uintptr((*Sqlite3rbu)(unsafe.Pointer(p)).FnStep)*8)).FiDbPage-U32(1))/U32((*Sqlite3rbu)(unsafe.Pointer(p)).FnPagePerSector) &&
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var pFrame uintptr = (*Sqlite3rbu)(unsafe.Pointer(p)).FaFrame + uintptr((*Sqlite3rbu)(unsafe.Pointer(p)).FnStep)*8
@@ -165553,7 +167135,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:205457:16:
// 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 { /* sqlite3.c:205586:12: */
+func rbuStrCompare(tls *libc.TLS, z1 uintptr, z2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207563:12: */
if z1 == uintptr(0) && z2 == uintptr(0) {
return 0
}
@@ -165571,7 +167153,7 @@ func rbuStrCompare(tls *libc.TLS, z1 uintptr, z2 uintptr) int32 { /* sqlite3.c:2
//
// 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) { /* sqlite3.c:205602:13: */
+func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207579:13: */
if (*RbuState)(unsafe.Pointer(pState)).FzTbl != 0 {
var pIter uintptr = p + 80
@@ -165586,7 +167168,7 @@ func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c:205602
if rc == SQLITE_OK && !(int32((*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl) != 0) {
rc = SQLITE_ERROR
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31603, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31699, 0)
}
if rc == SQLITE_OK {
@@ -165601,11 +167183,11 @@ func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c:205602
// 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) { /* sqlite3.c:205635:13: */
+func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207612:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- var zOal uintptr = rbuMPrintf(tls, p, ts+31052, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget))
+ var zOal uintptr = rbuMPrintf(tls, p, ts+31148, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget))
if zOal != 0 {
var pVfs uintptr = Xsqlite3_vfs_find(tls, uintptr(0))
@@ -165620,7 +167202,7 @@ func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:205635:13: */
// 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) { /* sqlite3.c:205651:13: */
+func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207628:13: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -165629,7 +167211,7 @@ func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:205651:13: */
// 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+31628, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* rnd */))))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+12, ts+31724, 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)
@@ -165641,7 +167223,7 @@ func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:205651:13: */
// 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) { /* sqlite3.c:205671:13: */
+func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207648:13: */
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName != 0 {
Xsqlite3rbu_destroy_vfs(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName)
(*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName = uintptr(0)
@@ -165651,7 +167233,7 @@ func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:205671:13: */
// 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) { /* sqlite3.c:205683:13: */
+func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207660:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -165668,7 +167250,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /
rc = prepareFreeAndCollectError(tls, db, bp+8, bp+16,
Xsqlite3_mprintf(tls,
- ts+31639, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal))))))
+ ts+31735, 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 {
@@ -165700,7 +167282,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) { /* sqlite3.c:205733:13: */
+func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207710:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -165711,7 +167293,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:205733:13: */
(*Sqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep = int64(-1)
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu,
- ts+31711, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31807, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{rbuIndexCntFunc})), uintptr(0), uintptr(0))
@@ -165719,7 +167301,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:205733:13: */
// 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+31725)
+ ts+31821)
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -165731,7 +167313,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:205733:13: */
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+31782)
+ ts+31878)
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)
@@ -165742,7 +167324,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:205733:13: */
}
}
-func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* sqlite3.c:205774:19: */
+func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207751:19: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -165777,7 +167359,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+3604, libc.VaList(bp, zState))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+3595, libc.VaList(bp, zState))
}
// If the first attempt to open the database file fails and the bRetry
@@ -165814,7 +167396,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+31856, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31952, 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
@@ -165836,12 +167418,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+31888,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31984,
libc.VaList(bp+8, func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 31920 /* "vacuum" */
+ return ts + 32016 /* "vacuum" */
}
- return ts + 31927 /* "update" */
+ return ts + 32023 /* "update" */
}()))
}
}
@@ -165849,7 +167431,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+14399, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14421, uintptr(0), uintptr(0), p+64)
// Point the object iterator at the first object
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -165863,24 +167445,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+16802)
- rbuCopyPragma(tls, p, ts+16214)
+ rbuCopyPragma(tls, p, ts+16842)
+ rbuCopyPragma(tls, p, ts+16254)
}
// 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+31934, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, ts+32030, 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+6308, SQLITE_FCNTL_ZIPVFS, uintptr(0))
+ var frc int32 = Xsqlite3_file_control(tls, db, ts+6313, SQLITE_FCNTL_ZIPVFS, uintptr(0))
if frc == SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls,
- db, ts+31950, uintptr(0), uintptr(0), p+64)
+ db, ts+32046, uintptr(0), uintptr(0), p+64)
}
}
@@ -165915,7 +167497,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 { /* sqlite3.c:205938:19: */
+func rbuMisuseError(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207915:19: */
var pRet uintptr
pRet = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3rbu{})))
if pRet != 0 {
@@ -165926,7 +167508,7 @@ func rbuMisuseError(tls *libc.TLS) uintptr { /* sqlite3.c:205938:19: */
}
// Open and return a new RBU handle.
-func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* sqlite3.c:205951:23: */
+func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207928:23: */
if zTarget == uintptr(0) || zRbu == uintptr(0) {
return rbuMisuseError(tls)
}
@@ -165934,13 +167516,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 { /* sqlite3.c:205963:23: */
+func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207940: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+31974, zState+uintptr(n-7), uint64(7)) {
+ if n >= 7 && 0 == libc.Xmemcmp(tls, ts+32070, zState+uintptr(n-7), uint64(7)) {
return rbuMisuseError(tls)
}
}
@@ -165949,7 +167531,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 { /* sqlite3.c:205981:20: */
+func Xsqlite3rbu_db(tls *libc.TLS, pRbu uintptr, bRbu int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207958:20: */
var db uintptr = uintptr(0)
if pRbu != 0 {
db = func() uintptr {
@@ -165965,12 +167547,12 @@ func Xsqlite3rbu_db(tls *libc.TLS, pRbu uintptr, bRbu int32) uintptr { /* sqlite
// 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) { /* sqlite3.c:205995:13: */
+func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207972: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+30000, uint64(8)) == 0 {
+ if libc.Xmemcmp(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), ts+30096, 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++
@@ -165983,13 +167565,13 @@ func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* sqlite3.c:205995:13: */
}
// Close the RBU handle.
-func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sqlite3.c:206013:16: */
+func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207990: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+14414, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14436, uintptr(0), uintptr(0), p+64)
}
// Sync the db file if currently doing an incremental checkpoint
@@ -166003,7 +167585,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sq
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+14414, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14436, uintptr(0), uintptr(0), p+64)
}
// Close any open statement handles.
@@ -166015,7 +167597,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sq
// 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+31982, uintptr(0), uintptr(0), uintptr(0))
+ var rc2 int32 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32078, uintptr(0), uintptr(0), uintptr(0))
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_DONE && rc2 != SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -166048,13 +167630,13 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sq
// 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 { /* sqlite3.c:206076:26: */
+func Xsqlite3rbu_progress(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208053: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) { /* sqlite3.c:206084:17: */
+func Xsqlite3rbu_bp_progress(tls *libc.TLS, p uintptr, pnOne uintptr, pnTwo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208061:17: */
var MAX_PROGRESS int32 = 10000
switch (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage {
case RBU_STAGE_OAL:
@@ -166087,7 +167669,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 { /* sqlite3.c:206119:16: */
+func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208096:16: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -166105,7 +167687,7 @@ func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:206119:16:
return int32(0)
}
-func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:206147:16: */
+func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208124:16: */
var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
if rc == SQLITE_DONE {
return SQLITE_OK
@@ -166114,7 +167696,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:206147
if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14414, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14436, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -166133,19 +167715,19 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:206147
if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14414, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14436, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
var zBegin uintptr
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zBegin = ts + 14399 /* "BEGIN" */
+ zBegin = ts + 14421 /* "BEGIN" */
} else {
- zBegin = ts + 31934 /* "BEGIN IMMEDIATE" */
+ zBegin = ts + 32030 /* "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+31934, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32030, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -166212,7 +167794,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:206147
// relinquished). Finally, calls to xSync() on the target database
// file fail with SQLITE_INTERNAL errors.
-func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* sqlite3.c:206240:13: */
+func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208217: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
@@ -166229,7 +167811,7 @@ func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* sqlite3.c:206240:13: */
}
//
-func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { /* sqlite3.c:206256:12: */
+func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208233: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
@@ -166247,7 +167829,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) { /* sqlite3.c:206274:13: */
+func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208251:13: */
var pRbuVfs uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs
var pIter uintptr
@@ -166269,7 +167851,7 @@ func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* sqlite3.c:206274:13: */
}
// Remove an item from the main-db lists.
-func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* sqlite3.c:206296:13: */
+func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208273: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 {
@@ -166294,7 +167876,7 @@ func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* sqlite3.c:206296:13: */
//
// 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 { /* sqlite3.c:206317:17: */
+func rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208294:17: */
var pDb uintptr
Xsqlite3_mutex_enter(tls, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fmutex)
if bRbu != 0 {
@@ -166309,7 +167891,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 { /* sqlite3.c:206332:12: */
+func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208309:12: */
var p uintptr = pFile
var rc int32
var i int32
@@ -166341,7 +167923,7 @@ func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:206332:12: *
// 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 { /* sqlite3.c:206365:12: */
+func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208342:12: */
return U32(*(*U8)(unsafe.Pointer(aBuf)))<<24 +
U32(*(*U8)(unsafe.Pointer(aBuf + 1)))<<16 +
U32(*(*U8)(unsafe.Pointer(aBuf + 2)))<<8 +
@@ -166350,20 +167932,20 @@ func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* sqlite3.c:206365:12: */
// Write an unsigned 32-bit value in big-endian format to the supplied
// buffer.
-func rbuPutU32(tls *libc.TLS, aBuf uintptr, iVal U32) { /* sqlite3.c:206376:13: */
+func rbuPutU32(tls *libc.TLS, aBuf uintptr, iVal U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208353: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) { /* sqlite3.c:206383:13: */
+func rbuPutU16(tls *libc.TLS, aBuf uintptr, iVal U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208360: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 { /* sqlite3.c:206391:12: */
+func rbuVfsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208368:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32
@@ -166427,7 +168009,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 { /* sqlite3.c:206457:12: */
+func rbuVfsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208434:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32
@@ -166466,7 +168048,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 { /* sqlite3.c:206500:12: */
+func rbuVfsTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208477: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)
@@ -166480,7 +168062,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 { /* sqlite3.c:206512:12: */
+func rbuVfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208489: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 {
@@ -166494,7 +168076,7 @@ func rbuVfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* sqlite3.c:
}
// Return the current file-size of an rbuVfs-file.
-func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* sqlite3.c:206526:12: */
+func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208503:12: */
var p uintptr = pFile
var rc int32
rc = (*struct {
@@ -166514,7 +168096,7 @@ func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* sqli
}
// Lock an rbuVfs-file.
-func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:206547:12: */
+func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208524:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32 = SQLITE_OK
@@ -166534,7 +168116,7 @@ func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:
}
// Unlock an rbuVfs-file.
-func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:206569:12: */
+func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208546:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -166542,7 +168124,7 @@ func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.
}
// Check if another file-handle holds a RESERVED lock on an rbuVfs-file.
-func rbuVfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* sqlite3.c:206577:12: */
+func rbuVfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208554:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -166550,7 +168132,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 { /* sqlite3.c:206585:12: */
+func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208562:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -166577,7 +168159,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+32009, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32105, 0)
} else if rc == SQLITE_NOTFOUND {
(*Sqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p
(*Rbu_file)(unsafe.Pointer(p)).FpRbu = pRbu
@@ -166602,7 +168184,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+32032, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
+ var zOut uintptr = Xsqlite3_mprintf(tls, ts+32128, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
*(*uintptr)(unsafe.Pointer(pArg)) = zOut
if zOut == uintptr(0) {
rc = SQLITE_NOMEM
@@ -166613,7 +168195,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 { /* sqlite3.c:206641:12: */
+func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208618:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -166621,7 +168203,7 @@ func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:206641:
}
// Return the device characteristic flags supported by an rbuVfs-file.
-func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:206649:12: */
+func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208626:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -166629,7 +168211,7 @@ func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* sqlite
}
// Take or release a shared-memory lock.
-func rbuVfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* sqlite3.c:206657:12: */
+func rbuVfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208634:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32 = SQLITE_OK
@@ -166662,7 +168244,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 { /* sqlite3.c:206695:12: */
+func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208672:12: */
var p uintptr = pFile
var rc int32 = SQLITE_OK
var eStage int32 = func() int32 {
@@ -166719,13 +168301,13 @@ func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, i
}
// Memory barrier.
-func rbuVfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:206753:13: */
+func rbuVfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208730: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 { /* sqlite3.c:206761:12: */
+func rbuVfsShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208738:12: */
var p uintptr = pFile
var rc int32 = SQLITE_OK
var eStage int32 = func() int32 {
@@ -166748,7 +168330,7 @@ func rbuVfsShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* sqli
}
// Open an rbu file handle.
-func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* sqlite3.c:206780:12: */
+func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208757:12: */
var pRbuVfs uintptr = pVfs
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).FpRealVfs
var pFd uintptr = pFile
@@ -166775,7 +168357,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+6308)
+ zOpen = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, ts+6313)
zOpen = Xsqlite3_filename_wal(tls, zOpen)
}
nOpen = libc.Xstrlen(tls, zOpen)
@@ -166790,7 +168372,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+32043, 0) != 0 {
+ Xsqlite3_uri_boolean(tls, zName, ts+32139, 0) != 0 {
oflags = SQLITE_OPEN_TEMP_DB | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE
zOpen = uintptr(0)
@@ -166834,10 +168416,10 @@ var rbuvfs_io_methods = Sqlite3_io_methods{
FxShmLock: 0, // xShmLock
FxShmBarrier: 0, // xShmBarrier
FxShmUnmap: 0, // xFetch, xUnfetch
-} /* sqlite3.c:206787:29 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208764:29 */
// Delete the file located at zPath.
-func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* sqlite3.c:206878:12: */
+func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208855:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, int32) int32
@@ -166846,7 +168428,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 { /* sqlite3.c:206887:12: */
+func rbuVfsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208864:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -166891,7 +168473,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 { /* sqlite3.c:206935:12: */
+func rbuVfsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208912:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
@@ -166899,7 +168481,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 { /* sqlite3.c:206949:13: */
+func rbuVfsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208926:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr) uintptr
@@ -166909,7 +168491,7 @@ func rbuVfsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* sqlit
// 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) { /* sqlite3.c:206959:13: */
+func rbuVfsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208936:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr)
@@ -166917,7 +168499,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 { /* sqlite3.c:206967:13: */
+func rbuVfsDlSym(tls *libc.TLS, pVfs uintptr, pArg uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208944:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr
@@ -166925,7 +168507,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) { /* sqlite3.c:206979:13: */
+func rbuVfsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208956:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
(*struct {
f func(*libc.TLS, uintptr, uintptr)
@@ -166934,7 +168516,7 @@ func rbuVfsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:
// 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 { /* sqlite3.c:206989:12: */
+func rbuVfsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208966:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -166943,7 +168525,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 { /* sqlite3.c:206998:12: */
+func rbuVfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208975:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -166951,7 +168533,7 @@ func rbuVfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* sqlite3.c
}
// Return the current time as a Julian Day number in *pTimeOut.
-func rbuVfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* sqlite3.c:207006:12: */
+func rbuVfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208983:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -166959,13 +168541,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 { /* sqlite3.c:207014:12: */
+func rbuVfsGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208991: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) { /* sqlite3.c:207022:17: */
+func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208999: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
@@ -166979,7 +168561,7 @@ func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* sqlite3.c:207022
// 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 { /* sqlite3.c:207036:16: */
+func Xsqlite3rbu_create_vfs(tls *libc.TLS, zName uintptr, zParent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209013:16: */
var pNew uintptr = uintptr(0) // Newly allocated VFS
var rc int32 = SQLITE_OK
@@ -167040,17 +168622,17 @@ var vfs_template = Sqlite3_vfs{
FxSleep: 0, // xSleep
FxCurrentTime: 0, // xCurrentTime
FxGetLastError: 0, // Unimplemented version 3 methods
-} /* sqlite3.c:207039:22 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209016: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 { /* sqlite3.c:207114:26: */
+func Xsqlite3rbu_temp_size_limit(tls *libc.TLS, pRbu uintptr, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209091: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 { /* sqlite3.c:207121:26: */
+func Xsqlite3rbu_temp_size(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209098:26: */
return (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FszTemp
}
@@ -167133,7 +168715,7 @@ type SessionTable1 = struct {
FnEntry int32
FnChange int32
FapChange uintptr
-} /* sqlite3.c:10518:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */
//************************************************************************
@@ -167204,7 +168786,7 @@ type SessionTable1 = struct {
// #include <assert.h>
// #include <string.h>
-type SessionTable = SessionTable1 /* sqlite3.c:208465:29 */
+type SessionTable = SessionTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210443:29 */
type SessionChange1 = struct {
Fop U8
FbIndirect U8
@@ -167214,16 +168796,16 @@ type SessionChange1 = struct {
F__ccgo_pad2 [4]byte
FaRecord uintptr
FpNext uintptr
-} /* sqlite3.c:10518:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */
-type SessionChange = SessionChange1 /* sqlite3.c:208466:30 */
+type SessionChange = SessionChange1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210444:30 */
type SessionBuffer1 = struct {
FaBuf uintptr
FnBuf int32
FnAlloc int32
-} /* sqlite3.c:10526:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:9 */
-type SessionBuffer = SessionBuffer1 /* sqlite3.c:208467:30 */
+type SessionBuffer = SessionBuffer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210445:30 */
type SessionInput1 = struct {
FbNoDiscard int32
FiCurrent int32
@@ -167237,13 +168819,13 @@ type SessionInput1 = struct {
FpIn uintptr
FbEof int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:10526:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:9 */
-type SessionInput = SessionInput1 /* sqlite3.c:208468:29 */
+type SessionInput = SessionInput1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210446:29 */
// Minimum chunk size used by streaming versions of functions.
-var sessions_strm_chunk_size int32 = SESSIONS_STRM_CHUNK_SIZE /* sqlite3.c:208481:12 */
+var sessions_strm_chunk_size int32 = SESSIONS_STRM_CHUNK_SIZE /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210459:12 */
type SessionHook1 = struct {
FpCtx uintptr
@@ -167251,13 +168833,13 @@ type SessionHook1 = struct {
FxNew uintptr
FxCount uintptr
FxDepth uintptr
-} /* sqlite3.c:10518:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */
-type SessionHook = SessionHook1 /* sqlite3.c:208483:28 */
+type SessionHook = SessionHook1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210461: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 { /* sqlite3.c:208761:12: */
+func sessionVarintPut(tls *libc.TLS, aBuf uintptr, iVal int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210739:12: */
return int32(func() uint8 {
if U32(iVal) < U32(0x80) {
return uint8(func() int32 { *(*U8)(unsafe.Pointer(aBuf)) = uint8(iVal); return 1 }())
@@ -167267,13 +168849,13 @@ func sessionVarintPut(tls *libc.TLS, aBuf uintptr, iVal int32) int32 { /* sqlite
}
// Return the number of bytes required to store value iVal as a varint.
-func sessionVarintLen(tls *libc.TLS, iVal int32) int32 { /* sqlite3.c:208768:12: */
+func sessionVarintLen(tls *libc.TLS, iVal int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210746: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 { /* sqlite3.c:208776:12: */
+func sessionVarintGet(tls *libc.TLS, aBuf uintptr, piVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210754: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 }())
@@ -167286,7 +168868,7 @@ func sessionVarintGet(tls *libc.TLS, aBuf uintptr, piVal uintptr) int32 { /* sql
// Read a 64-bit big-endian integer value from buffer aRec[]. Return
// the value read.
-func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* sqlite3.c:208787:22: */
+func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210765: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)
@@ -167294,7 +168876,7 @@ func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* sqlite3.c:208
}
// Write a 64-bit big-endian integer value to the buffer aBuf[].
-func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* sqlite3.c:208797:13: */
+func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210775: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))
@@ -167316,7 +168898,7 @@ func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* sqlite3.c:
// 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 { /* sqlite3.c:208821:12: */
+func sessionSerializeValue(tls *libc.TLS, aBuf uintptr, pValue uintptr, pnWrite uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210799:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -167404,7 +168986,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 { /* sqlite3.c:208897:13: */
+func sessionMalloc64(tls *libc.TLS, pSession uintptr, nByte I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210875:13: */
var pRet uintptr = Xsqlite3_malloc64(tls, uint64(nByte))
if pSession != 0 {
*(*I64)(unsafe.Pointer(pSession + 56)) += I64(Xsqlite3_msize(tls, pRet))
@@ -167415,7 +168997,7 @@ func sessionMalloc64(tls *libc.TLS, pSession uintptr, nByte I64) uintptr { /* sq
// 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) { /* sqlite3.c:208908:13: */
+func sessionFree(tls *libc.TLS, pSession uintptr, pFree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210886:13: */
if pSession != 0 {
*(*I64)(unsafe.Pointer(pSession + 56)) -= I64(Xsqlite3_msize(tls, pFree))
}
@@ -167438,14 +169020,14 @@ func sessionFree(tls *libc.TLS, pSession uintptr, pFree uintptr) { /* sqlite3.c:
// 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 { /* sqlite3.c:208934:21: */
+func sessionHashAppendI64(tls *libc.TLS, h uint32, i I64) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210912: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 { /* sqlite3.c:208943:21: */
+func sessionHashAppendBlob(tls *libc.TLS, h uint32, n int32, z uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210921:21: */
var i int32
for i = 0; i < n; i++ {
h = h<<3 ^ h ^ uint32(*(*U8)(unsafe.Pointer(z + uintptr(i))))
@@ -167455,7 +169037,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 { /* sqlite3.c:208953:21: */
+func sessionHashAppendType(tls *libc.TLS, h uint32, eType int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210931:21: */
return h<<3 ^ h ^ uint32(eType)
}
@@ -167468,7 +169050,7 @@ func sessionHashAppendType(tls *libc.TLS, h uint32, eType int32) uint32 { /* sql
// 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 { /* sqlite3.c:208968:12: */
+func sessionPreupdateHash(tls *libc.TLS, pSession uintptr, pTab uintptr, bNew int32, piHash uintptr, pbNullPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210946:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -167534,7 +169116,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 { /* sqlite3.c:209033:12: */
+func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211011:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -167560,7 +169142,7 @@ func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* sqlite3.c:209033:12:
//
// 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 { /* sqlite3.c:209051:21: */
+func sessionChangeHash(tls *libc.TLS, pTab uintptr, bPkOnly int32, aRecord uintptr, nBucket int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211029:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -167603,7 +169185,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 { /* sqlite3.c:209100:12: */
+func sessionChangeEqual(tls *libc.TLS, pTab uintptr, bLeftPkOnly int32, aLeft uintptr, bRightPkOnly int32, aRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211078: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
@@ -167642,7 +169224,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) { /* sqlite3.c:209143:13: */
+func sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr, aRight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211121: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
@@ -167681,7 +169263,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 { /* sqlite3.c:209189:11: */
+func sessionMergeValue(tls *libc.TLS, paOne uintptr, paTwo uintptr, pnVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211167:11: */
var a1 uintptr = *(*uintptr)(unsafe.Pointer(paOne))
var a2 uintptr = *(*uintptr)(unsafe.Pointer(paTwo))
var pRet uintptr = uintptr(0)
@@ -167708,7 +169290,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 { /* sqlite3.c:209223:12: */
+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: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -167783,7 +169365,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 { /* sqlite3.c:209300:12: */
+func sessionPreupdateEqual(tls *libc.TLS, pSession uintptr, pTab uintptr, pChange uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211278:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -167871,7 +169453,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 { /* sqlite3.c:209379:12: */
+func sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211357: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
@@ -167935,7 +169517,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 { /* sqlite3.c:209445: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-3380500/sqlite3.c:211423:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -167952,15 +169534,15 @@ 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+11189, zThis) {
+ if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+11214, 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+32054, 0)
+ ts+32150, 0)
} else if rc == SQLITE_ERROR {
- zPragma = Xsqlite3_mprintf(tls, ts+1546, 0)
+ zPragma = Xsqlite3_mprintf(tls, ts+1515, 0)
} else {
*(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(pabPK)) = uintptr(0)
@@ -167971,7 +169553,7 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
return rc
}
} else {
- zPragma = Xsqlite3_mprintf(tls, ts+32175, libc.VaList(bp, zDb, zThis))
+ zPragma = Xsqlite3_mprintf(tls, ts+32271, libc.VaList(bp, zDb, zThis))
}
if !(zPragma != 0) {
*(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0)
@@ -168066,7 +169648,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 { /* sqlite3.c:209578:12: */
+func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211556:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168083,7 +169665,7 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /*
break
}
}
- if 0 == Xsqlite3_stricmp(tls, ts+11189, (*SessionTable)(unsafe.Pointer(pTab)).FzName) {
+ if 0 == Xsqlite3_stricmp(tls, ts+11214, (*SessionTable)(unsafe.Pointer(pTab)).FzName) {
(*SessionTable)(unsafe.Pointer(pTab)).FbStat1 = 1
}
@@ -168102,15 +169684,15 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /*
type SessionStat1Ctx1 = struct {
Fhook SessionHook
FpSession uintptr
-} /* sqlite3.c:209613:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211591: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 /* sqlite3.c:209613:32 */
+type SessionStat1Ctx = SessionStat1Ctx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211591:32 */
-func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* sqlite3.c:209618:12: */
+func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211596:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168126,7 +169708,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 { /* sqlite3.c:209628:12: */
+func sessionStat1New(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211606:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168142,21 +169724,21 @@ func sessionStat1New(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int
return rc
}
-func sessionStat1Count(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:209638:12: */
+func sessionStat1Count(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211616: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 { /* sqlite3.c:209642:12: */
+func sessionStat1Depth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211620: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 { /* sqlite3.c:209647:12: */
+func sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, pC uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211625:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -168270,7 +169852,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) { /* sqlite3.c:209753:13: */
+func sessionPreupdateOneChange(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211731:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -168363,7 +169945,7 @@ __4:
goto error_out
__7:
;
- Xsqlite3ValueSetStr(tls, p, 0, ts+1546, uint8(0), uintptr(0))
+ Xsqlite3ValueSetStr(tls, p, 0, ts+1515, uint8(0), uintptr(0))
(*Sqlite3_session)(unsafe.Pointer(pSession)).FpZeroBlob = p
__6:
;
@@ -168566,7 +170148,7 @@ __35:
__36:
}
-func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uintptr) int32 { /* sqlite3.c:209902:12: */
+func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211880:12: */
var rc int32 = SQLITE_OK
var nName int32 = Xsqlite3Strlen30(tls, zName)
var pRet uintptr
@@ -168601,7 +170183,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) { /* sqlite3.c:209942: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-3380500/sqlite3.c:211920:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168636,25 +170218,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 { /* sqlite3.c:209980:12: */
+func sessionPreupdateOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211958:12: */
return Xsqlite3_preupdate_old(tls, pCtx, iVal, ppVal)
}
-func sessionPreupdateNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:209983:12: */
+func sessionPreupdateNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211961:12: */
return Xsqlite3_preupdate_new(tls, pCtx, iVal, ppVal)
}
-func sessionPreupdateCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:209986:12: */
+func sessionPreupdateCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211964:12: */
return Xsqlite3_preupdate_count(tls, pCtx)
}
-func sessionPreupdateDepth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:209989:12: */
+func sessionPreupdateDepth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211967: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) { /* sqlite3.c:209997:13: */
+func sessionPreupdateHooks(tls *libc.TLS, pSession uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211975: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
@@ -168674,24 +170256,24 @@ type SessionDiffCtx1 = struct {
FpStmt uintptr
FnOldOff int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:210007:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211985:9 */
-type SessionDiffCtx = SessionDiffCtx1 /* sqlite3.c:210007:31 */
+type SessionDiffCtx = SessionDiffCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211985:31 */
// The diff hook implementations.
-func sessionDiffOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:210016:12: */
+func sessionDiffOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211994: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 { /* sqlite3.c:210021:12: */
+func sessionDiffNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211999: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 { /* sqlite3.c:210026:12: */
+func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212004:12: */
var p uintptr = pCtx
if (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff != 0 {
return (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff
@@ -168699,13 +170281,13 @@ func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:210026:1
return Xsqlite3_column_count(tls, (*SessionDiffCtx)(unsafe.Pointer(p)).FpStmt)
}
-func sessionDiffDepth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:210030:12: */
+func sessionDiffDepth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212008: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) { /* sqlite3.c:210038:13: */
+func sessionDiffHooks(tls *libc.TLS, pSession uintptr, pDiffCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212016: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
@@ -168721,19 +170303,19 @@ func sessionDiffHooks(tls *libc.TLS, pSession uintptr, pDiffCtx uintptr) { /* sq
}{sessionDiffDepth}))
}
-func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* sqlite3.c:210049:13: */
+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: */
bp := tls.Alloc(64)
defer tls.Free(64)
var i int32
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
var zRet uintptr = uintptr(0)
for i = 0; i < nCol; i++ {
if *(*U8)(unsafe.Pointer(abPK + uintptr(i))) != 0 {
- zRet = Xsqlite3_mprintf(tls, ts+32204,
+ zRet = Xsqlite3_mprintf(tls, ts+32300,
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 + 21324 /* " AND " */
+ zSep = ts + 21362 /* " AND " */
if zRet == uintptr(0) {
break
}
@@ -168743,12 +170325,12 @@ 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 { /* sqlite3.c:210072:13: */
+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: */
bp := tls.Alloc(64)
defer tls.Free(64)
var i int32
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
var zRet uintptr = uintptr(0)
var bHave int32 = 0
@@ -168756,9 +170338,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+32238,
+ ts+32334,
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 + 32279 /* " OR " */
+ zSep = ts + 32375 /* " OR " */
if zRet == uintptr(0) {
break
}
@@ -168767,24 +170349,24 @@ func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintp
if bHave == 0 {
- zRet = Xsqlite3_mprintf(tls, ts+7402, 0)
+ zRet = Xsqlite3_mprintf(tls, ts+7398, 0)
}
return zRet
}
-func sessionSelectFindNew(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTbl uintptr, zExpr uintptr) uintptr { /* sqlite3.c:210103:13: */
+func sessionSelectFindNew(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTbl uintptr, zExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212081:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
var zRet uintptr = Xsqlite3_mprintf(tls,
- ts+32284,
+ ts+32380,
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 { /* sqlite3.c:210119:12: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168812,7 +170394,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 { /* sqlite3.c:210150:12: */
+func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFrom uintptr, zExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212128:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -168824,7 +170406,7 @@ func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFro
rc = SQLITE_NOMEM
} else {
var zStmt uintptr = Xsqlite3_mprintf(tls,
- ts+32362,
+ ts+32458,
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
@@ -168849,7 +170431,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 { /* sqlite3.c:210190:16: */
+func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212168:16: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -168962,7 +170544,7 @@ __6:
if !(pzErrMsg != 0) {
goto __16
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+32415, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+32511, 0)
__16:
;
rc = SQLITE_SCHEMA
@@ -169022,7 +170604,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 { /* sqlite3.c:210285:16: */
+func Xsqlite3session_create(tls *libc.TLS, db uintptr, zDb uintptr, ppSession uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212263: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
@@ -169058,7 +170640,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) { /* sqlite3.c:210323:13: */
+func sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212301:13: */
var pNext uintptr
var pTab uintptr
@@ -169080,7 +170662,7 @@ func sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) { /* sql
}
// Delete a session object previously allocated using sqlite3session_create().
-func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* sqlite3.c:210347:17: */
+func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212325:17: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -169118,7 +170700,7 @@ func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* sqlite3.c:2103
}
// Set a table filter on a Session Object.
-func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintptr, pCtx uintptr) { /* sqlite3.c:210379:17: */
+func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintptr, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212357:17: */
(*Sqlite3_session)(unsafe.Pointer(pSession)).FbAutoAttach = 1
(*Sqlite3_session)(unsafe.Pointer(pSession)).FpFilterCtx = pCtx
(*Sqlite3_session)(unsafe.Pointer(pSession)).FxTableFilter = xFilter
@@ -169130,7 +170712,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 { /* sqlite3.c:210397:16: */
+func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212375:16: */
var rc int32 = SQLITE_OK
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
@@ -169181,7 +170763,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 { /* sqlite3.c:210450:12: */
+func sessionBufferGrow(tls *libc.TLS, p uintptr, nByte I64, pRc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212428: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
@@ -169192,7 +170774,7 @@ func sessionBufferGrow(tls *libc.TLS, p uintptr, nByte I64, pRc uintptr) int32 {
nNew = int64(128)
}
- for ok := true; ok; ok = nNew < nReq {
+ for __ccgo := true; __ccgo; __ccgo = nNew < nReq {
nNew = nNew * int64(2)
}
@@ -169226,7 +170808,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) { /* sqlite3.c:210493:13: */
+func sessionAppendValue(tls *libc.TLS, p uintptr, pVal uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212471:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -169249,7 +170831,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) { /* sqlite3.c:210515:13: */
+func sessionAppendByte(tls *libc.TLS, p uintptr, v U8, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212493: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
}
@@ -169260,7 +170842,7 @@ func sessionAppendByte(tls *libc.TLS, p uintptr, v U8, pRc uintptr) { /* sqlite3
//
// If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
// returning.
-func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* sqlite3.c:210528:13: */
+func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212506: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)
}
@@ -169271,7 +170853,7 @@ func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* sq
//
// 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) { /* sqlite3.c:210541:13: */
+func sessionAppendBlob(tls *libc.TLS, p uintptr, aBlob uintptr, nBlob int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212519: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
@@ -169284,7 +170866,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) { /* sqlite3.c:210561:13: */
+func sessionAppendStr(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212539: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))
@@ -169298,13 +170880,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) { /* sqlite3.c:210581:13: */
+func sessionAppendInteger(tls *libc.TLS, p uintptr, iVal int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212559: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+4898, libc.VaList(bp, iVal))
+ Xsqlite3_snprintf(tls, int32(uint64(unsafe.Sizeof([24]int8{}))-uint64(1)), bp+8, ts+4907, libc.VaList(bp, iVal))
sessionAppendStr(tls, p, bp+8, pRc)
}
@@ -169315,7 +170897,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) { /* sqlite3.c:210600:13: */
+func sessionAppendIdent(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212578: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)
@@ -169336,7 +170918,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) { /* sqlite3.c:210625:13: */
+func sessionAppendCol(tls *libc.TLS, p uintptr, pStmt uintptr, iCol int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212603:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -169396,7 +170978,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 { /* sqlite3.c:210687:12: */
+func sessionAppendUpdate(tls *libc.TLS, pBuf uintptr, bPatchset int32, pStmt uintptr, p uintptr, abPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212665:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -169502,7 +171084,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 { /* sqlite3.c:210787:12: */
+func sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintptr, nCol int32, abPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212765:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -169559,7 +171141,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 { /* sqlite3.c:210842:12: */
+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: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -169567,30 +171149,30 @@ 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+11189, zTab) {
+ if 0 == Xsqlite3_stricmp(tls, ts+11214, zTab) {
zSql = Xsqlite3_mprintf(tls,
- ts+32442, libc.VaList(bp, zDb))
+ ts+32538, libc.VaList(bp, zDb))
if zSql == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_NOMEM
}
} else {
var i int32
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
*(*SessionBuffer)(unsafe.Pointer(bp + 8 /* buf */)) = SessionBuffer{}
- sessionAppendStr(tls, bp+8, ts+32552, bp+24)
+ sessionAppendStr(tls, bp+8, ts+32648, bp+24)
sessionAppendIdent(tls, bp+8, zDb, bp+24)
- sessionAppendStr(tls, bp+8, ts+1559, bp+24)
+ sessionAppendStr(tls, bp+8, ts+1528, bp+24)
sessionAppendIdent(tls, bp+8, zTab, bp+24)
- sessionAppendStr(tls, bp+8, ts+32567, bp+24)
+ sessionAppendStr(tls, bp+8, ts+32663, 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+32575, bp+24)
+ sessionAppendStr(tls, bp+8, ts+32671, bp+24)
sessionAppendInteger(tls, bp+8, i+1, bp+24)
- zSep = ts + 21324 /* " AND " */
+ zSep = ts + 21362 /* " AND " */
}
}
zSql = (*SessionBuffer)(unsafe.Pointer(bp + 8 /* &buf */)).FaBuf
@@ -169610,7 +171192,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 { /* sqlite3.c:210899:12: */
+func sessionSelectBind(tls *libc.TLS, pSelect uintptr, nCol int32, abPK uintptr, pChange uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212877:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -169688,7 +171270,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) { /* sqlite3.c:210970:13: */
+func sessionAppendTableHdr(tls *libc.TLS, pBuf uintptr, bPatchset int32, pTab uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212948:13: */
// Write a table header
sessionAppendByte(tls, pBuf, func() uint8 {
if bPatchset != 0 {
@@ -169709,7 +171291,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 { /* sqlite3.c:210993:12: */
+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: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -169731,7 +171313,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+32581, uintptr(0), uintptr(0), uintptr(0))
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3_exec(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb, ts+32677, uintptr(0), uintptr(0), uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK {
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
@@ -169829,7 +171411,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+32601, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+32697, uintptr(0), uintptr(0), uintptr(0))
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db))
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
@@ -169839,7 +171421,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 { /* sqlite3.c:211122:16: */
+func Xsqlite3session_changeset(tls *libc.TLS, pSession uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213100:16: */
var rc int32
if pnChangeset == uintptr(0) || ppChangeset == uintptr(0) {
@@ -169851,7 +171433,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 { /* sqlite3.c:211140:16: */
+func Xsqlite3session_changeset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213118:16: */
if xOutput == uintptr(0) {
return SQLITE_MISUSE
}
@@ -169859,7 +171441,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 { /* sqlite3.c:211152:16: */
+func Xsqlite3session_patchset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213130:16: */
if xOutput == uintptr(0) {
return SQLITE_MISUSE
}
@@ -169871,7 +171453,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 { /* sqlite3.c:211168:16: */
+func Xsqlite3session_patchset(tls *libc.TLS, pSession uintptr, pnPatchset uintptr, ppPatchset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213146:16: */
if pnPatchset == uintptr(0) || ppPatchset == uintptr(0) {
return SQLITE_MISUSE
}
@@ -169879,7 +171461,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 { /* sqlite3.c:211180:16: */
+func Xsqlite3session_enable(tls *libc.TLS, pSession uintptr, bEnable int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213158:16: */
var ret int32
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
if bEnable >= 0 {
@@ -169891,7 +171473,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 { /* sqlite3.c:211194:16: */
+func Xsqlite3session_indirect(tls *libc.TLS, pSession uintptr, bIndirect int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213172:16: */
var ret int32
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
if bIndirect >= 0 {
@@ -169904,7 +171486,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 { /* sqlite3.c:211209:16: */
+func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213187:16: */
var ret int32 = 0
var pTab uintptr
@@ -169918,12 +171500,12 @@ func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) int32 { /* sqlite3
}
// Return the amount of heap memory in use.
-func Xsqlite3session_memory_used(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* sqlite3.c:211225:26: */
+func Xsqlite3session_memory_used(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213203: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 { /* sqlite3.c:211232:16: */
+func Xsqlite3session_object_config(tls *libc.TLS, pSession uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213210:16: */
var rc int32 = SQLITE_OK
switch op {
case SQLITE_SESSION_OBJCONFIG_SIZE:
@@ -169949,12 +171531,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 { /* sqlite3.c:211258:26: */
+func Xsqlite3session_changeset_size(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213236: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 { /* sqlite3.c:211265:12: */
+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: */
var pRet uintptr // Iterator to return
var nByte int32 // Number of bytes to allocate for iterator
@@ -169987,28 +171569,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 { /* sqlite3.c:211303:16: */
+func Xsqlite3changeset_start(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213281: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 { /* sqlite3.c:211310:16: */
+func Xsqlite3changeset_start_v2(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213288: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 { /* sqlite3.c:211323:16: */
+func Xsqlite3changeset_start_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213301: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 { /* sqlite3.c:211330:16: */
+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: */
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) { /* sqlite3.c:211344:13: */
+func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213322: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
@@ -170026,7 +171608,7 @@ func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* sqlite3.c:211344:13: */
// 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 { /* sqlite3.c:211364:12: */
+func sessionInputBuffer(tls *libc.TLS, pIn uintptr, nByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213342:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170059,7 +171641,7 @@ func sessionInputBuffer(tls *libc.TLS, pIn uintptr, nByte int32) int32 { /* sqli
// 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) { /* sqlite3.c:211392:13: */
+func sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213370:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -170084,7 +171666,7 @@ func sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) { /* sqlite3.c:
// 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 { /* sqlite3.c:211418:12: */
+func sessionValueSetStr(tls *libc.TLS, pVal uintptr, aData uintptr, nData int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213396: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
@@ -170120,7 +171702,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 { /* sqlite3.c:211459:12: */
+func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apOut uintptr, pbEmpty uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213437:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -170138,7 +171720,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, 211477)
+ rc = Xsqlite3CorruptError(tls, 213455)
} else {
eType = int32(*(*U8)(unsafe.Pointer((*SessionInput)(unsafe.Pointer(pIn)).FaData + uintptr(libc.PostIncInt32(&(*SessionInput)(unsafe.Pointer(pIn)).FiNext, 1)))))
@@ -170163,7 +171745,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, 211497)
+ rc = Xsqlite3CorruptError(tls, 213475)
} else {
var enc U8 = func() uint8 {
if eType == SQLITE_TEXT {
@@ -170205,7 +171787,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 { /* sqlite3.c:211535:12: */
+func sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213513:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -170224,7 +171806,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, 211551)
+ rc = Xsqlite3CorruptError(tls, 213529)
} else {
rc = sessionInputBuffer(tls, pIn, nRead+*(*int32)(unsafe.Pointer(bp))+100)
nRead = nRead + *(*int32)(unsafe.Pointer(bp))
@@ -170251,7 +171833,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 { /* sqlite3.c:211578:12: */
+func sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213556:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -170293,7 +171875,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 { /* sqlite3.c:211622:12: */
+func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213600:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170313,7 +171895,7 @@ func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2
(*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, 211639)
+ *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = Xsqlite3CorruptError(tls, 213617)
}
}
@@ -170348,7 +171930,7 @@ func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2
//
// * 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 { /* sqlite3.c:211671:12: */
+func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr, pbEmpty uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213649:12: */
var i int32
var op U8
@@ -170405,13 +171987,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, 211725))
+ return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213703))
}
(*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, 211731))
+ return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213709))
}
if paRec != 0 {
@@ -170481,7 +172063,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, 211775))
+ return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213753))
}
*(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i+(*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*8)) = uintptr(0)
}
@@ -170512,14 +172094,14 @@ 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 { /* sqlite3.c:211804:12: */
+func sessionChangesetNext(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213782:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
// var bEmpty int32 at bp, 4
var rc int32
- for ok := true; ok; ok = rc == SQLITE_ROW && (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FbSkipEmpty != 0 && *(*int32)(unsafe.Pointer(bp)) != 0 {
+ for __ccgo := true; __ccgo; __ccgo = rc == SQLITE_ROW && (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FbSkipEmpty != 0 && *(*int32)(unsafe.Pointer(bp)) != 0 {
*(*int32)(unsafe.Pointer(bp /* bEmpty */)) = 0
rc = sessionChangesetNextOne(tls, p, paRec, pnRec, pbNew, bp)
}
@@ -170532,14 +172114,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 { /* sqlite3.c:211827:16: */
+func Xsqlite3changeset_next(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213805: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 { /* sqlite3.c:211836:16: */
+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: */
*(*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
@@ -170553,7 +172135,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 { /* sqlite3.c:211856:16: */
+func Xsqlite3changeset_pk(tls *libc.TLS, pIter uintptr, pabPK uintptr, pnCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213834: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
@@ -170572,7 +172154,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 { /* sqlite3.c:211879:16: */
+func Xsqlite3changeset_old(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213857:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_DELETE {
return SQLITE_MISUSE
}
@@ -170594,7 +172176,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 { /* sqlite3.c:211907:16: */
+func Xsqlite3changeset_new(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213885:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_INSERT {
return SQLITE_MISUSE
}
@@ -170618,7 +172200,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 { /* sqlite3.c:211941:16: */
+func Xsqlite3changeset_conflict(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213919:16: */
if !(int32((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict) != 0) {
return SQLITE_MISUSE
}
@@ -170635,7 +172217,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 { /* sqlite3.c:211964:16: */
+func Xsqlite3changeset_fk_conflicts(tls *libc.TLS, pIter uintptr, pnOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213942:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict != 0 || (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue != 0 {
return SQLITE_MISUSE
}
@@ -170647,7 +172229,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 { /* sqlite3.c:211982:16: */
+func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213960:16: */
var rc int32 = SQLITE_OK
if p != 0 {
var i int32 // Used to iterate through p->apValue[]
@@ -170664,7 +172246,7 @@ func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2
return rc
}
-func sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOut uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* sqlite3.c:211997:12: */
+func sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOut uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213975:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -170900,7 +172482,7 @@ __27:
goto __6
__11:
- *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 212124)
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 214102)
goto finished_invert
__6:
;
@@ -170951,7 +172533,7 @@ finished_invert:
}
// Invert a changeset object.
-func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* sqlite3.c:212156:16: */
+func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214134:16: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -170966,7 +172548,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 { /* sqlite3.c:212175:16: */
+func Xsqlite3changeset_invert_strm(tls *libc.TLS, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214153:16: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -170988,9 +172570,9 @@ type SessionUpdate1 = struct {
FpStmt uintptr
FaMask uintptr
FpNext uintptr
-} /* sqlite3.c:212195:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214173:9 */
-type SessionUpdate = SessionUpdate1 /* sqlite3.c:212195:30 */
+type SessionUpdate = SessionUpdate1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214173:30 */
type SessionApplyCtx1 = struct {
Fdb uintptr
@@ -171012,9 +172594,9 @@ type SessionApplyCtx1 = struct {
FbRebaseStarted U8
FbRebase U8
F__ccgo_pad3 [6]byte
-} /* sqlite3.c:212202:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214180:9 */
-type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:212202:32 */
+type SessionApplyCtx = SessionApplyCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214180:32 */
// Number of prepared UPDATE statements to cache.
@@ -171022,7 +172604,7 @@ type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:212202:32 */
// 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 { /* sqlite3.c:212231:12: */
+func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214209:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -171083,36 +172665,36 @@ 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+11189) == 0)
+ var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+11214) == 0)
pUp = Xsqlite3_malloc(tls, nByte)
if pUp == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_NOMEM
} else {
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
// var buf SessionBuffer at bp, 16
libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(SessionBuffer{})))
(*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+32619, bp+16)
+ sessionAppendStr(tls, bp, ts+32715, bp+16)
sessionAppendIdent(tls, bp, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp+16)
- sessionAppendStr(tls, bp, ts+32632, bp+16)
+ sessionAppendStr(tls, bp, ts+32728, 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+32638, bp+16)
+ sessionAppendStr(tls, bp, ts+32734, bp+16)
sessionAppendInteger(tls, bp, ii*2+1, bp+16)
- zSep = ts + 14510 /* ", " */
+ zSep = ts + 14532 /* ", " */
}
}
// Create the WHERE clause part of the UPDATE
- zSep = ts + 1546 /* "" */
- sessionAppendStr(tls, bp, ts+32567, bp+16)
+ zSep = ts + 1515 /* "" */
+ sessionAppendStr(tls, bp, ts+32663, 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)
@@ -171120,13 +172702,13 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32,
sessionAppendStr(tls, bp,
- ts+32643, bp+16)
+ ts+32739, bp+16)
} else {
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp+16)
- sessionAppendStr(tls, bp, ts+32575, bp+16)
+ sessionAppendStr(tls, bp, ts+32671, bp+16)
sessionAppendInteger(tls, bp, ii*2+2, bp+16)
}
- zSep = ts + 21324 /* " AND " */
+ zSep = ts + 21362 /* " AND " */
}
}
@@ -171156,7 +172738,7 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32,
}
// Free all cached UPDATE statements.
-func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:212370:13: */
+func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214348:13: */
var pUp uintptr
var pNext uintptr
for pUp = (*SessionApplyCtx)(unsafe.Pointer(p)).FpUp; pUp != 0; pUp = pNext {
@@ -171184,47 +172766,47 @@ func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:212370:13: */
//
// 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 { /* sqlite3.c:212400:12: */
+func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214378:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
var i int32
- var zSep uintptr = ts + 1546 /* "" */
+ var zSep uintptr = ts + 1515 /* "" */
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_OK
*(*SessionBuffer)(unsafe.Pointer(bp /* buf */)) = SessionBuffer{}
var nPk int32 = 0
- sessionAppendStr(tls, bp, ts+32718, bp+16)
+ sessionAppendStr(tls, bp, ts+32814, bp+16)
sessionAppendIdent(tls, bp, zTab, bp+16)
- sessionAppendStr(tls, bp, ts+32567, bp+16)
+ sessionAppendStr(tls, bp, ts+32663, 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+32638, bp+16)
+ sessionAppendStr(tls, bp, ts+32734, bp+16)
sessionAppendInteger(tls, bp, i+1, bp+16)
- zSep = ts + 21324 /* " AND " */
+ zSep = ts + 21362 /* " AND " */
}
}
if nPk < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol {
- sessionAppendStr(tls, bp, ts+32736, bp+16)
+ sessionAppendStr(tls, bp, ts+32832, bp+16)
sessionAppendInteger(tls, bp, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol+1, bp+16)
- sessionAppendStr(tls, bp, ts+32279, bp+16)
+ sessionAppendStr(tls, bp, ts+32375, bp+16)
- zSep = ts + 1546 /* "" */
+ zSep = ts + 1515 /* "" */
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+32575, bp+16)
+ sessionAppendStr(tls, bp, ts+32671, bp+16)
sessionAppendInteger(tls, bp, i+1, bp+16)
- zSep = ts + 32744 /* "AND " */
+ zSep = ts + 32840 /* "AND " */
}
}
- sessionAppendStr(tls, bp, ts+4880, bp+16)
+ sessionAppendStr(tls, bp, ts+4889, bp+16)
}
if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK {
@@ -171246,9 +172828,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 { /* sqlite3.c:212465:12: */
+func sessionSelectRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214443:12: */
return sessionSelectStmt(tls,
- db, ts+6308, zTab, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24)
+ db, ts+6313, 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.
@@ -171258,7 +172840,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 { /* sqlite3.c:212483:12: */
+func sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214461:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -171266,21 +172848,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+32749, bp+16)
+ sessionAppendStr(tls, bp, ts+32845, bp+16)
sessionAppendIdent(tls, bp, zTab, bp+16)
- sessionAppendStr(tls, bp, ts+21330, bp+16)
+ sessionAppendStr(tls, bp, ts+21368, bp+16)
for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
if i != 0 {
- sessionAppendStr(tls, bp, ts+14510, bp+16)
+ sessionAppendStr(tls, bp, ts+14532, bp+16)
}
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16)
}
- sessionAppendStr(tls, bp, ts+32767, bp+16)
+ sessionAppendStr(tls, bp, ts+32863, bp+16)
for i = 1; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
- sessionAppendStr(tls, bp, ts+32778, bp+16)
+ sessionAppendStr(tls, bp, ts+32874, bp+16)
}
- sessionAppendStr(tls, bp, ts+4880, bp+16)
+ sessionAppendStr(tls, bp, ts+4889, 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))
@@ -171289,7 +172871,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 { /* sqlite3.c:212513:12: */
+func sessionPrepare(tls *libc.TLS, db uintptr, pp uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214491:12: */
return Xsqlite3_prepare_v2(tls, db, zSql, -1, pp, uintptr(0))
}
@@ -171297,24 +172879,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 { /* sqlite3.c:212523:12: */
- var rc int32 = sessionSelectRow(tls, db, ts+11189, p)
+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+11214, p)
if rc == SQLITE_OK {
rc = sessionPrepare(tls, db, p+16,
- ts+32782)
+ ts+32878)
}
if rc == SQLITE_OK {
rc = sessionPrepare(tls, db, p+8,
- ts+32895)
+ ts+32991)
}
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 { /* sqlite3.c:212546:12: */
+func sessionBindValue(tls *libc.TLS, pStmt uintptr, i int32, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214524: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
@@ -171341,7 +172923,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 { /* sqlite3.c:212579:12: */
+func sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, abPK uintptr, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214557:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -171362,7 +172944,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, 212602)
+ rc = Xsqlite3CorruptError(tls, 214580)
} else {
rc = sessionBindValue(tls, pStmt, i+1, *(*uintptr)(unsafe.Pointer(bp /* pVal */)))
}
@@ -171386,7 +172968,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 { /* sqlite3.c:212628:12: */
+func sessionSeekToRow(tls *libc.TLS, db uintptr, pIter uintptr, abPK uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214606:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -171430,7 +173012,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 { /* sqlite3.c:212663:12: */
+func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214641:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -171502,7 +173084,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 { /* sqlite3.c:212737:12: */
+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: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -171602,7 +173184,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 { /* sqlite3.c:212835:12: */
+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: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -171737,7 +173319,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 { /* sqlite3.c:212968:12: */
+func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214946:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -171759,7 +173341,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+33039, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33135, uintptr(0), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
rc = sessionBindRow(tls, pIter,
*(*uintptr)(unsafe.Pointer(&struct {
@@ -171775,7 +173357,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+33060, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33156, uintptr(0), uintptr(0), uintptr(0))
}
}
}
@@ -171784,7 +173366,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 { /* sqlite3.c:213025:12: */
+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: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -171838,7 +173420,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 { /* sqlite3.c:213081: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-3380500/sqlite3.c:215059:12: */
bp := tls.Alloc(368)
defer tls.Free(368)
@@ -171856,10 +173438,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+33079, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33175, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, ts+33105, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33201, uintptr(0), uintptr(0), uintptr(0))
}
for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3changeset_next(tls, pIter) {
// var nCol int32 at bp+184, 4
@@ -171903,7 +173485,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+3604, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */))))
+ *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */))))
if *(*uintptr)(unsafe.Pointer(bp + 200)) == uintptr(0) {
rc = SQLITE_NOMEM
break
@@ -171916,7 +173498,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+6308, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48)
+ db, ts+6313, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48)
if rc != SQLITE_OK {
break
}
@@ -171929,20 +173511,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+33135, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */))))
+ ts+33231, 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+33179,
+ ts+33275,
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+33250, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */))))
+ ts+33346, 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+11189) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), ts+11214) {
if libc.AssignInt32(&rc, sessionStat1Sql(tls, db, bp+48)) != 0 {
break
}
@@ -172000,14 +173582,14 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin
}
}
}
- Xsqlite3_exec(tls, db, ts+33310, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+33406, uintptr(0), uintptr(0), uintptr(0))
if flags&SQLITE_CHANGESETAPPLY_NOSAVEPOINT == 0 {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, ts+33340, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33436, uintptr(0), uintptr(0), uintptr(0))
} else {
- Xsqlite3_exec(tls, db, ts+33364, uintptr(0), uintptr(0), uintptr(0))
- Xsqlite3_exec(tls, db, ts+33340, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+33460, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+33436, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -172029,7 +173611,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 { /* sqlite3.c:213279: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-3380500/sqlite3.c:215257:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172047,7 +173629,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 { /* sqlite3.c:213312:16: */
+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: */
return Xsqlite3changeset_apply_v2(tls,
db, nChangeset, pChangeset, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0)
}
@@ -172055,7 +173637,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 { /* sqlite3.c:213337: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-3380500/sqlite3.c:215315:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172070,7 +173652,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 { /* sqlite3.c:213364:16: */
+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: */
return Xsqlite3changeset_apply_v2_strm(tls,
db, xInput, pIn, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0)
}
@@ -172078,7 +173660,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 { /* sqlite3.c:213398: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-3380500/sqlite3.c:215376:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -172250,7 +173832,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 { /* sqlite3.c:213580:12: */
+func sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215558:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -172381,7 +173963,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 { /* sqlite3.c:213703:12: */
+func sessionChangegroupOutput(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215681:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -172435,7 +174017,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 { /* sqlite3.c:213754:16: */
+func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215732:16: */
var rc int32 = SQLITE_OK // Return code
var p uintptr // New object
p = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_changegroup{})))
@@ -172450,7 +174032,7 @@ func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:213
// 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 { /* sqlite3.c:213771:16: */
+func Xsqlite3changegroup_add(tls *libc.TLS, pGrp uintptr, nData int32, pData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215749:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172468,12 +174050,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 { /* sqlite3.c:213787:16: */
+func Xsqlite3changegroup_output(tls *libc.TLS, pGrp uintptr, pnData uintptr, ppData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215765: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 { /* sqlite3.c:213798:16: */
+func Xsqlite3changegroup_add_strm(tls *libc.TLS, pGrp uintptr, xInput uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215776:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172490,12 +174072,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 { /* sqlite3.c:213817:16: */
+func Xsqlite3changegroup_output_strm(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215795:16: */
return sessionChangegroupOutput(tls, pGrp, xOutput, pOut, uintptr(0), uintptr(0))
}
// Delete a changegroup object.
-func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* sqlite3.c:213828:17: */
+func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215806:17: */
if pGrp != 0 {
sessionDeleteTable(tls, uintptr(0), (*Sqlite3_changegroup)(unsafe.Pointer(pGrp)).FpList)
Xsqlite3_free(tls, pGrp)
@@ -172503,7 +174085,7 @@ func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* sqlite3.c:2138
}
// Combine two changesets together.
-func Xsqlite3changeset_concat(tls *libc.TLS, nLeft int32, pLeft uintptr, nRight int32, pRight uintptr, pnOut uintptr, ppOut uintptr) int32 { /* sqlite3.c:213838:16: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172527,7 +174109,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 { /* sqlite3.c:213867:16: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172554,7 +174136,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) { /* sqlite3.c:213906:13: */
+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: */
sessionBufferGrow(tls, pBuf, int64(n1+n2), pRc)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var i int32
@@ -172595,7 +174177,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) { /* sqlite3.c:213955:13: */
+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: */
sessionBufferGrow(tls, pBuf, int64(2+nRec+nChange), pRc)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var bData int32 = 0
@@ -172657,7 +174239,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 { /* sqlite3.c:214023:12: */
+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: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -172795,7 +174377,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 { /* sqlite3.c:214155:16: */
+func Xsqlite3rebaser_create(tls *libc.TLS, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216133:16: */
var rc int32 = SQLITE_OK
var pNew uintptr
@@ -172810,7 +174392,7 @@ func Xsqlite3rebaser_create(tls *libc.TLS, ppNew uintptr) int32 { /* sqlite3.c:2
}
// Call this one or more times to configure a rebaser.
-func Xsqlite3rebaser_configure(tls *libc.TLS, p uintptr, nRebase int32, pRebase uintptr) int32 { /* sqlite3.c:214172:16: */
+func Xsqlite3rebaser_configure(tls *libc.TLS, p uintptr, nRebase int32, pRebase uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216150:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172825,7 +174407,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 { /* sqlite3.c:214189:16: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172841,7 +174423,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 { /* sqlite3.c:214208:16: */
+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: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172857,7 +174439,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) { /* sqlite3.c:214229:17: */
+func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216207:17: */
if p != 0 {
sessionDeleteTable(tls, uintptr(0), (*Sqlite3_rebaser)(unsafe.Pointer(p)).Fgrp.FpList)
Xsqlite3_free(tls, p)
@@ -172865,7 +174447,7 @@ func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* sqlite3.c:214229:17:
}
// Global configuration
-func Xsqlite3session_config(tls *libc.TLS, op int32, pArg uintptr) int32 { /* sqlite3.c:214239:16: */
+func Xsqlite3session_config(tls *libc.TLS, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216217:16: */
var rc int32 = SQLITE_OK
switch op {
case SQLITE_SESSION_CONFIG_STRMSIZE:
@@ -172953,7 +174535,7 @@ type Fts5Global1 = struct {
FpTok uintptr
FpDfltTok uintptr
FpCsr uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
//************* End of sqlite3session.c *************************************
//************* Begin file fts5.c *******************************************
@@ -173015,13 +174597,13 @@ type Fts5Global1 = struct {
// Mark a function parameter as unused, to suppress nuisance compiler
// warnings.
-type Fts5Global = Fts5Global1 /* sqlite3.c:214970:27 */
+type Fts5Global = Fts5Global1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:27 */
type Fts5Colset1 = struct {
FnCol int32
FaiCol [1]int32
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5Colset = Fts5Colset1 /* sqlite3.c:214971:27 */
+type Fts5Colset = Fts5Colset1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216949:27 */
// *************************************************************************
//
@@ -173059,14 +174641,14 @@ type Fts5Config1 = struct {
FzRank uintptr
FzRankArgs uintptr
FpzErrmsg uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948: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 /* sqlite3.c:214991:27 */
+type Fts5Config = Fts5Config1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216969:27 */
//
// End of interface to code in fts5_config.c.
@@ -173081,7 +174663,7 @@ type Fts5Buffer1 = struct {
Fp uintptr
Fn int32
FnSpace int32
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
//
// End of interface to code in fts5_config.c.
@@ -173092,7 +174674,7 @@ type Fts5Buffer1 = struct {
// Interface to code in fts5_buffer.c.
// Buffer object for the incremental building of string data.
-type Fts5Buffer = Fts5Buffer1 /* sqlite3.c:215117:27 */
+type Fts5Buffer = Fts5Buffer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217095:27 */
type Fts5PoslistReader1 = struct {
Fa uintptr
@@ -173102,19 +174684,19 @@ type Fts5PoslistReader1 = struct {
FbEof U8
F__ccgo_pad1 [6]byte
FiPos I64
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5PoslistReader = Fts5PoslistReader1 /* sqlite3.c:215153:34 */
+type Fts5PoslistReader = Fts5PoslistReader1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217131:34 */
-type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* sqlite3.c:215172:9 */
+type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217150:9 */
-type Fts5PoslistWriter = Fts5PoslistWriter1 /* sqlite3.c:215172:34 */
+type Fts5PoslistWriter = Fts5PoslistWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217150:34 */
// Bucket of terms object used by the integrity-check in offsets=0 mode.
-type Fts5Termset1 = struct{ FapHash [512]uintptr } /* sqlite3.c:215194:9 */
+type Fts5Termset1 = struct{ FapHash [512]uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217172:9 */
// Bucket of terms object used by the integrity-check in offsets=0 mode.
-type Fts5Termset = Fts5Termset1 /* sqlite3.c:215194:28 */
+type Fts5Termset = Fts5Termset1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217172:28 */
//
// End of interface to code in fts5_buffer.c.
@@ -173147,7 +174729,7 @@ type Fts5Index1 = struct {
FpDataVersion uintptr
FiStructVersion I64
FpStruct uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
//
// End of interface to code in fts5_buffer.c.
@@ -173158,16 +174740,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 /* sqlite3.c:215208:26 */
+type Fts5Index = Fts5Index1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217186:26 */
type Fts5IndexIter1 = struct {
FiRowid I64
FpData uintptr
FnData int32
FbEof U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5IndexIter = Fts5IndexIter1 /* sqlite3.c:215209:30 */
+type Fts5IndexIter = Fts5IndexIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217187:30 */
//
// End of interface to code in fts5_varint.c.
@@ -173182,7 +174764,7 @@ type Fts5Table1 = struct {
Fbase Sqlite3_vtab
FpConfig uintptr
FpIndex uintptr
-} /* sqlite3.c:215411:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217389:9 */
//
// End of interface to code in fts5_varint.c.
@@ -173193,7 +174775,7 @@ type Fts5Table1 = struct {
// Interface to code in fts5_main.c.
// Virtual-table object.
-type Fts5Table = Fts5Table1 /* sqlite3.c:215411:26 */
+type Fts5Table = Fts5Table1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217389:26 */
//
// End of interface to code in fts5.c.
@@ -173210,7 +174792,7 @@ type Fts5Hash1 = struct {
FnSlot int32
FpScan uintptr
FaSlot uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
//
// End of interface to code in fts5.c.
@@ -173219,7 +174801,7 @@ type Fts5Hash1 = struct {
// *************************************************************************
//
// Interface to code in fts5_hash.c.
-type Fts5Hash = Fts5Hash1 /* sqlite3.c:215437:25 */
+type Fts5Hash = Fts5Hash1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217415:25 */
//
// End of interface to code in fts5_hash.c.
@@ -173238,7 +174820,7 @@ type Fts5Storage1 = struct {
FnTotalRow I64
FaTotalSize uintptr
FaStmt [11]uintptr
-} /* sqlite3.c:215493:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217471:9 */
//
// End of interface to code in fts5_hash.c.
@@ -173249,7 +174831,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 /* sqlite3.c:215493:28 */
+type Fts5Storage = Fts5Storage1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217471:28 */
//
// End of interface to code in fts5_storage.c.
@@ -173265,7 +174847,7 @@ type Fts5Expr1 = struct {
FbDesc int32
FnPhrase int32
FapExprPhrase uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
//
// End of interface to code in fts5_storage.c.
@@ -173274,7 +174856,7 @@ type Fts5Expr1 = struct {
// *************************************************************************
//
// Interface to code in fts5_expr.c.
-type Fts5Expr = Fts5Expr1 /* sqlite3.c:215536:25 */
+type Fts5Expr = Fts5Expr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217514:25 */
type Fts5ExprNode1 = struct {
FeType int32
FbEof int32
@@ -173286,9 +174868,9 @@ type Fts5ExprNode1 = struct {
FnChild int32
F__ccgo_pad2 [4]byte
FapChild [1]uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5ExprNode = Fts5ExprNode1 /* sqlite3.c:215537:29 */
+type Fts5ExprNode = Fts5ExprNode1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217515:29 */
type Fts5Parse1 = struct {
FpConfig uintptr
FzErr uintptr
@@ -173298,25 +174880,25 @@ type Fts5Parse1 = struct {
FpExpr uintptr
FbPhraseToAnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:215538:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217516:9 */
-type Fts5Parse = Fts5Parse1 /* sqlite3.c:215538:26 */
+type Fts5Parse = Fts5Parse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217516:26 */
type Fts5Token1 = struct {
Fp uintptr
Fn int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:215539:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217517:9 */
-type Fts5Token = Fts5Token1 /* sqlite3.c:215539:26 */
+type Fts5Token = Fts5Token1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217517:26 */
type Fts5ExprPhrase1 = struct {
FpNode uintptr
Fposlist Fts5Buffer
FnTerm int32
F__ccgo_pad1 [4]byte
FaTerm [1]Fts5ExprTerm
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5ExprPhrase = Fts5ExprPhrase1 /* sqlite3.c:215540:31 */
+type Fts5ExprPhrase = Fts5ExprPhrase1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217518:31 */
type Fts5ExprNearset1 = struct {
FnNear int32
F__ccgo_pad1 [4]byte
@@ -173324,17 +174906,17 @@ type Fts5ExprNearset1 = struct {
FnPhrase int32
F__ccgo_pad2 [4]byte
FapPhrase [1]uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5ExprNearset = Fts5ExprNearset1 /* sqlite3.c:215541:32 */
+type Fts5ExprNearset = Fts5ExprNearset1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217519:32 */
type Fts5PoslistPopulator1 = struct {
Fwriter Fts5PoslistWriter
FbOk int32
FbMiss int32
-} /* sqlite3.c:215589:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217567:9 */
-type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* sqlite3.c:215589:37 */
+type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217567:37 */
//
// End of interface to code in fts5_unicode2.c.
//
@@ -173439,7 +175021,7 @@ type Fts5YYMINORTYPE = struct {
F__ccgo_pad1 [0]uint64
Ffts5yyinit int32
F__ccgo_pad2 [12]byte
-} /* sqlite3.c:215865:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217843:3 */
//************ End control #defines ******************************************
// Define the fts5yytestcase() macro to be a no-op if is not already defined
@@ -173512,7 +175094,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),
-} /* sqlite3.c:215958:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217936: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),
@@ -173527,23 +175109,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),
-} /* sqlite3.c:215971:29 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217949: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),
-} /* sqlite3.c:215989:28 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217967: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),
-} /* sqlite3.c:215998:26 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217976: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),
-} /* sqlite3.c:216002:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217980:31 */
//********* End of lemon-generated parsing tables ****************************
// The next table maps tokens (terminal symbols) into fallback tokens.
@@ -173580,9 +175162,9 @@ type fts5yyStackEntry = struct {
Fmajor uint8
F__ccgo_pad1 [6]byte
Fminor Fts5YYMINORTYPE
-} /* sqlite3.c:216045:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218023:1 */
-type Fts5yyStackEntry = fts5yyStackEntry /* sqlite3.c:216052:33 */
+type Fts5yyStackEntry = fts5yyStackEntry /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218030:33 */
// The state of the parser is completely contained in an instance of
// the following structure
@@ -173591,9 +175173,9 @@ type fts5yyParser = struct {
FpParse uintptr
Ffts5yystack [100]Fts5yyStackEntry
Ffts5yystackEnd uintptr
-} /* sqlite3.c:216056:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218034:1 */
-type Fts5yyParser = fts5yyParser /* sqlite3.c:216075:29 */
+type Fts5yyParser = fts5yyParser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218053:29 */
// #include <assert.h>
@@ -173603,7 +175185,7 @@ type Fts5yyParser = fts5yyParser /* sqlite3.c:216075:29 */
// grammar.
// Initialize a new parser that has already been allocated.
-func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* sqlite3.c:216224:13: */
+func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218202:13: */
var fts5yypParser uintptr = fts5yypRawParser
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos = fts5yypParser + 16 /* &.fts5yystack */
@@ -173622,7 +175204,7 @@ func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* sqlite3
// 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 { /* sqlite3.c:216263:13: */
+func sqlite3Fts5ParserAlloc(tls *libc.TLS, mallocProc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218241: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 {
@@ -173638,7 +175220,7 @@ func sqlite3Fts5ParserAlloc(tls *libc.TLS, mallocProc uintptr) uintptr { /* sqli
// 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) { /* sqlite3.c:216282:13: */
+func fts5yy_destructor(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor uint8, fts5yypminor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218260:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
_ = pParse
@@ -173696,7 +175278,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) { /* sqlite3.c:216341:13: */
+func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218319:13: */
var fts5yytos uintptr
fts5yytos = libc.PostDecUintptr(&(*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos, 24)
@@ -173704,7 +175286,7 @@ func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* sqlite3.c:2163
}
// Clear all secondary memory allocations from the parser
-func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:216359:13: */
+func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218337:13: */
var pParser uintptr = p
for (*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos > pParser+16 {
fts5yy_pop_parser_stack(tls, pParser)
@@ -173717,7 +175299,7 @@ func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:216359:1
// 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) { /* sqlite3.c:216376:13: */
+func sqlite3Fts5ParserFree(tls *libc.TLS, p uintptr, freeProc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218354:13: */
if p == uintptr(0) {
return
}
@@ -173741,14 +175323,14 @@ func sqlite3Fts5ParserFree(tls *libc.TLS, p uintptr, freeProc uintptr) { /* sqli
// 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 { /* sqlite3.c:216439:25: */
+func fts5yy_find_shift_action(tls *libc.TLS, iLookAhead uint8, stateno uint8) uint8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218417:25: */
var i int32
if int32(stateno) > Fts5YY_MAX_SHIFT {
return stateno
}
- for ok := true; ok; ok = 1 != 0 {
+ for __ccgo := true; __ccgo; __ccgo = 1 != 0 {
i = int32(fts5yy_shift_ofst[stateno])
i = i + int32(iLookAhead)
@@ -173765,7 +175347,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 { /* sqlite3.c:216504:25: */
+func fts5yy_find_reduce_action(tls *libc.TLS, stateno uint8, iLookAhead uint8) uint8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218482:25: */
var i int32
i = int32(fts5yy_reduce_ofst[stateno])
@@ -173776,7 +175358,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) { /* sqlite3.c:216533:13: */
+func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218511:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
for (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > fts5yypParser+16 {
@@ -173786,7 +175368,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:21
// stack every overflows
//******* Begin %stack_overflow code *****************************************
- sqlite3Fts5ParseError(tls, pParse, ts+33392, 0)
+ sqlite3Fts5ParseError(tls, pParse, ts+33488, 0)
//******* End %stack_overflow code *******************************************
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse // Suppress warning about unused %extra_argument var
@@ -173795,7 +175377,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:21
// 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) { /* sqlite3.c:216576:13: */
+func fts5yy_shift(tls *libc.TLS, fts5yypParser uintptr, fts5yyNewState uint8, fts5yyMajor uint8, fts5yyMinor Fts5Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218554:13: */
var fts5yytos uintptr
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos += 24
if (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yystackEnd {
@@ -173844,7 +175426,7 @@ var fts5yyRuleInfoLhs = [28]uint8{
uint8(24), // (25) phrase ::= STRING star_opt
uint8(26), // (26) star_opt ::= STAR
uint8(26), // (27) star_opt ::=
-} /* sqlite3.c:216617:29 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218595:29 */
// For rule J, fts5yyRuleInfoNRhs[J] contains the negative of the number
// of symbols on the right-hand side of that rule.
@@ -173877,7 +175459,7 @@ var fts5yyRuleInfoNRhs = [28]int8{
int8(-2), // (25) phrase ::= STRING star_opt
int8(-1), // (26) star_opt ::= STAR
int8(0), // (27) star_opt ::=
-} /* sqlite3.c:216650:26 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218628:26 */
// Forward Declaration
@@ -173889,7 +175471,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 { /* sqlite3.c:216693:25: */
+func fts5yy_reduce(tls *libc.TLS, fts5yypParser uintptr, fts5yyruleno uint32, fts5yyLookahead int32, fts5yyLookaheadToken Fts5Token) uint8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218671:25: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174099,7 +175681,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) { /* sqlite3.c:216911:13: */
+func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32, fts5yyminor Fts5Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218889:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174109,14 +175691,14 @@ func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32
_ = fts5yymajor // Silence a compiler warning
sqlite3Fts5ParseError(tls,
- pParse, ts+33420, libc.VaList(bp, fts5yyminor.Fn, fts5yyminor.Fp))
+ pParse, ts+33516, 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) { /* sqlite3.c:216933:13: */
+func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218911:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
// Here code is inserted which will be executed whenever the
@@ -174145,7 +175727,7 @@ func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:216933:1
//
// Outputs:
// None.
-func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yyminor Fts5Token, pParse uintptr) { /* sqlite3.c:216974:13: */
+func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yyminor Fts5Token, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218952:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174200,7 +175782,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 { /* sqlite3.c:217191:12: */
+func sqlite3Fts5ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219169:12: */
_ = iToken
return 0
}
@@ -174256,7 +175838,7 @@ type CInstIter1 = struct {
FiStart int32
FiEnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:217237:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219215:9 */
// 2014 May 31
//
@@ -174300,11 +175882,11 @@ type CInstIter1 = struct {
// printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd);
// }
//
-type CInstIter = CInstIter1 /* sqlite3.c:217237:26 */
+type CInstIter = CInstIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219215: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 { /* sqlite3.c:217254:12: */
+func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219232:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -174347,7 +175929,7 @@ func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:217254
// 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 { /* sqlite3.c:217285:12: */
+func fts5CInstIterInit(tls *libc.TLS, pApi uintptr, pFts uintptr, iCol int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219263:12: */
var rc int32
libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(CInstIter{})))
@@ -174380,12 +175962,12 @@ type HighlightContext1 = struct {
FnIn int32
FiOff int32
FzOut uintptr
-} /* sqlite3.c:217311:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219289:9 */
// ************************************************************************
//
// Start of highlight() implementation.
-type HighlightContext = HighlightContext1 /* sqlite3.c:217311:33 */
+type HighlightContext = HighlightContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219289: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
@@ -174394,7 +175976,7 @@ type HighlightContext = HighlightContext1 /* sqlite3.c:217311:33 */
// 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) { /* sqlite3.c:217334:13: */
+func fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219312:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -174402,7 +175984,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+33451, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
+ (*HighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, ts+33547, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
if (*HighlightContext)(unsafe.Pointer(p)).FzOut == uintptr(0) {
*(*int32)(unsafe.Pointer(pRc)) = SQLITE_NOMEM
}
@@ -174410,7 +175992,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 { /* sqlite3.c:217349:12: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -174465,7 +176047,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) { /* sqlite3.c:217403:13: */
+func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219381:13: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -174476,7 +176058,7 @@ func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintp
var iCol int32
if nVal != 3 {
- var zErr uintptr = ts + 33458 /* "wrong number of ..." */
+ var zErr uintptr = ts + 33554 /* "wrong number of ..." */
Xsqlite3_result_error(tls, pCtx, zErr, -1)
return
}
@@ -174525,19 +176107,19 @@ type Fts5SFinder1 = struct {
F__ccgo_pad1 [4]byte
FaFirst uintptr
FzDoc uintptr
-} /* sqlite3.c:217452:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219430:9 */
//
// End of highlight() implementation.
//
// Context object passed to the fts5SentenceFinderCb() function.
-type Fts5SFinder = Fts5SFinder1 /* sqlite3.c:217452:28 */
+type Fts5SFinder = Fts5SFinder1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219430: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 { /* sqlite3.c:217466:12: */
+func fts5SentenceFinderAdd(tls *libc.TLS, p uintptr, iAdd int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219444:12: */
if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc == (*Fts5SFinder)(unsafe.Pointer(p)).FnFirst {
var nNew int32
if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc != 0 {
@@ -174561,7 +176143,7 @@ func fts5SentenceFinderAdd(tls *libc.TLS, p uintptr, iAdd int32) int32 { /* sqli
// 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 { /* sqlite3.c:217485:12: */
+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: */
var rc int32 = SQLITE_OK
_ = pToken
@@ -174590,7 +176172,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 { /* sqlite3.c:217518: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-3380500/sqlite3.c:219496:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174648,16 +176230,16 @@ 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 { /* sqlite3.c:217567:19: */
+func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219545:19: */
var zRet uintptr = Xsqlite3_value_text(tls, pVal)
if zRet != 0 {
return zRet
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}
// Implementation of snippet() function.
-func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:217575:13: */
+func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219553:13: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -174680,7 +176262,7 @@ func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr
var nCol int32
if nVal != 5 {
- var zErr uintptr = ts + 33508 /* "wrong number of ..." */
+ var zErr uintptr = ts + 33604 /* "wrong number of ..." */
Xsqlite3_result_error(tls, pCtx, zErr, -1)
return
}
@@ -174872,17 +176454,17 @@ type Fts5Bm25Data1 = struct {
Favgdl float64
FaIDF uintptr
FaFreq uintptr
-} /* sqlite3.c:217733:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219711: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 /* sqlite3.c:217733:29 */
+type Fts5Bm25Data = Fts5Bm25Data1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219711: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 { /* sqlite3.c:217745:12: */
+func fts5CountCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pUserData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219723:12: */
var pn uintptr = pUserData
_ = pApi
_ = pFts
@@ -174893,7 +176475,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 { /* sqlite3.c:217761:12: */
+func fts5Bm25GetData(tls *libc.TLS, pApi uintptr, pFts uintptr, ppData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219739:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -174987,7 +176569,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) { /* sqlite3.c:217834:13: */
+func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219812:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -175055,18 +176637,18 @@ func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, n
}
}
-func sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:217890:12: */
+func sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219868:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
*(*[3]Builtin)(unsafe.Pointer(bp /* aBuiltin */)) = [3]Builtin{
- {FzFunc: ts + 33556, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 33652, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5SnippetFunction}))},
- {FzFunc: ts + 33564, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 33660, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5HighlightFunction}))},
- {FzFunc: ts + 33574, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 33670, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5Bm25Function}))},
}
@@ -175091,7 +176673,7 @@ type Builtin = struct {
FpUserData uintptr
FxFunc Fts5_extension_function
FxDestroy uintptr
-} /* sqlite3.c:217891:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219869:3 */
// 2014 May 31
//
@@ -175106,7 +176688,7 @@ type Builtin = struct {
// #include "fts5Int.h"
-func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) int32 { /* sqlite3.c:217933:12: */
+func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219911:12: */
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) < nByte {
var nNew U64
if (*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace != 0 {
@@ -175132,7 +176714,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) { /* sqlite3.c:217957:13: */
+func sqlite3Fts5BufferAppendVarint(tls *libc.TLS, pRc uintptr, pBuf uintptr, iVal I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219935:13: */
if func() int32 {
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+U32(9) <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) {
return 0
@@ -175144,21 +176726,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) { /* sqlite3.c:217962:13: */
+func sqlite3Fts5Put32(tls *libc.TLS, aBuf uintptr, iVal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219940: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 { /* sqlite3.c:217969:12: */
+func sqlite3Fts5Get32(tls *libc.TLS, aBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219947: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) { /* sqlite3.c:217978:13: */
+func sqlite3Fts5BufferAppendBlob(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData U32, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219956:13: */
if nData != 0 {
if func() int32 {
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+nData <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) {
@@ -175176,7 +176758,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) { /* sqlite3.c:217996:13: */
+func sqlite3Fts5BufferAppendString(tls *libc.TLS, pRc uintptr, pBuf uintptr, zStr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219974:13: */
var nStr int32 = int32(libc.Xstrlen(tls, zStr))
sqlite3Fts5BufferAppendBlob(tls, pRc, pBuf, uint32(nStr+1), zStr)
(*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn--
@@ -175188,7 +176770,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) { /* sqlite3.c:218014:13: */
+func sqlite3Fts5BufferAppendPrintf(tls *libc.TLS, pRc uintptr, pBuf uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219992:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var zTmp uintptr
var ap Va_list
@@ -175206,7 +176788,7 @@ func sqlite3Fts5BufferAppendPrintf(tls *libc.TLS, pRc uintptr, pBuf uintptr, zFm
}
}
-func sqlite3Fts5Mprintf(tls *libc.TLS, pRc uintptr, zFmt uintptr, va uintptr) uintptr { /* sqlite3.c:218035:13: */
+func sqlite3Fts5Mprintf(tls *libc.TLS, pRc uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220013:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var ap Va_list
@@ -175222,26 +176804,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) { /* sqlite3.c:218053:13: */
+func sqlite3Fts5BufferFree(tls *libc.TLS, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220031: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) { /* sqlite3.c:218062:13: */
+func sqlite3Fts5BufferZero(tls *libc.TLS, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220040: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) { /* sqlite3.c:218071:13: */
+func sqlite3Fts5BufferSet(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData int32, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220049: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 { /* sqlite3.c:218081:12: */
+func sqlite3Fts5PoslistNext64(tls *libc.TLS, a uintptr, n int32, pi uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220059:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175303,14 +176885,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 { /* sqlite3.c:218124:12: */
+func sqlite3Fts5PoslistReaderNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220102: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 { /* sqlite3.c:218131:12: */
+func sqlite3Fts5PoslistReaderInit(tls *libc.TLS, a uintptr, n int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220109:12: */
libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(Fts5PoslistReader{})))
(*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fa = a
(*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fn = n
@@ -175322,7 +176904,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) { /* sqlite3.c:218148:13: */
+func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, iPos I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220126: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)
@@ -175334,9 +176916,9 @@ func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, i
}
}
-var colmask I64 = I64(int64(0x7FFFFFFF)) << 32 /* sqlite3.c:218154:22 */
+var colmask I64 = I64(int64(0x7FFFFFFF)) << 32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220132:22 */
-func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr, iPos I64) int32 { /* sqlite3.c:218165:12: */
+func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr, iPos I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220143:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175353,7 +176935,7 @@ func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr
return SQLITE_OK
}
-func sqlite3Fts5MallocZero(tls *libc.TLS, pRc uintptr, nByte Sqlite3_int64) uintptr { /* sqlite3.c:218176:13: */
+func sqlite3Fts5MallocZero(tls *libc.TLS, pRc uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220154:13: */
var pRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
pRet = Xsqlite3_malloc64(tls, uint64(nByte))
@@ -175374,7 +176956,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 { /* sqlite3.c:218197:13: */
+func sqlite3Fts5Strndup(tls *libc.TLS, pRc uintptr, pIn uintptr, nIn int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220175:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
if nIn < 0 {
@@ -175399,7 +176981,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 { /* sqlite3.c:218225:12: */
+func sqlite3Fts5IsBareword(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220203:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -175424,13 +177006,13 @@ type Fts5TermsetEntry1 = struct {
FnTerm int32
FiIdx int32
FpNext uintptr
-} /* sqlite3.c:215194:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217172:9 */
// ************************************************************************
//
-type Fts5TermsetEntry = Fts5TermsetEntry1 /* sqlite3.c:218243:33 */
+type Fts5TermsetEntry = Fts5TermsetEntry1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220221:33 */
-func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:218255:12: */
+func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220233:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175439,7 +177021,7 @@ func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:21825
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, nTerm int32, pbPresent uintptr) int32 { /* sqlite3.c:218261:12: */
+func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, nTerm int32, pbPresent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220239:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175485,7 +177067,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) { /* sqlite3.c:218310:13: */
+func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220288: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++ {
@@ -175517,18 +177099,18 @@ func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:218310:13:
// Maximum allowed page size
-func fts5_iswhitespace(tls *libc.TLS, x int8) int32 { /* sqlite3.c:218352:12: */
+func fts5_iswhitespace(tls *libc.TLS, x int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220330:12: */
return libc.Bool32(int32(x) == ' ')
}
-func fts5_isopenquote(tls *libc.TLS, x int8) int32 { /* sqlite3.c:218356:12: */
+func fts5_isopenquote(tls *libc.TLS, x int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220334: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 { /* sqlite3.c:218365:19: */
+func fts5ConfigSkipWhitespace(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220343:19: */
var p uintptr = pIn
if p != 0 {
for fts5_iswhitespace(tls, *(*int8)(unsafe.Pointer(p))) != 0 {
@@ -175541,7 +177123,7 @@ func fts5ConfigSkipWhitespace(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c
// 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 { /* sqlite3.c:218378:19: */
+func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220356:19: */
var p uintptr = pIn
for sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(p))) != 0 {
p++
@@ -175552,17 +177134,17 @@ func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:2
return p
}
-func fts5_isdigit(tls *libc.TLS, a int8) int32 { /* sqlite3.c:218385:12: */
+func fts5_isdigit(tls *libc.TLS, a int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220363:12: */
return libc.Bool32(int32(a) >= '0' && int32(a) <= '9')
}
-func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:218391:19: */
+func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220369:19: */
var p uintptr = pIn
switch int32(*(*int8)(unsafe.Pointer(p))) {
case 'n':
fallthrough
case 'N':
- if Xsqlite3_strnicmp(tls, ts+6108, p, 4) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+6113, p, 4) == 0 {
p = p + 4
} else {
p = uintptr(0)
@@ -175645,7 +177227,7 @@ func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:21
// 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 { /* sqlite3.c:218467:12: */
+func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220445:12: */
var q int8
var iIn int32 = 1
var iOut int32 = 0
@@ -175690,7 +177272,7 @@ func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:218467:12: */
// 'xyz' becomes xyz
// [pqr] becomes pqr
// `mno` becomes mno
-func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* sqlite3.c:218512:13: */
+func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220490:13: */
var quote int8 // Quote character (if any )
quote = *(*int8)(unsafe.Pointer(z))
@@ -175703,11 +177285,11 @@ type Fts5Enum1 = struct {
FzName uintptr
FeVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:218523:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220501:1 */
-type Fts5Enum = Fts5Enum1 /* sqlite3.c:218527:25 */
+type Fts5Enum = Fts5Enum1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220505:25 */
-func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintptr) int32 { /* sqlite3.c:218529:12: */
+func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220507:12: */
var nEnum int32 = int32(libc.Xstrlen(tls, zEnum))
var i int32
var iVal int32 = -1
@@ -175735,13 +177317,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 { /* sqlite3.c:218558:12: */
+func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCmd uintptr, zArg uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220536: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+33579, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33675, zCmd, nCmd) == 0 {
var nByte int32 = int32(uint64(unsafe.Sizeof(int32(0))) * uint64(FTS5_MAX_PREFIX_INDEXES))
var p uintptr
var bFirst int32 = 1
@@ -175768,14 +177350,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+33586, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33682, 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+33617, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES))
+ ts+33713, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
break
}
@@ -175786,7 +177368,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
}
if nPre <= 0 || nPre >= 1000 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33650, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33746, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
break
}
@@ -175799,7 +177381,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33687, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33783, 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)))
@@ -175808,7 +177390,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+33696, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33792, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
for nArg = int64(0); p != 0 && *(*int8)(unsafe.Pointer(p)) != 0; nArg++ {
@@ -175827,7 +177409,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
}
}
if p == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33729, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33825, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = sqlite3Fts5GetTokenizer(tls, pGlobal,
@@ -175842,14 +177424,14 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33763, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33859, zCmd, nCmd) == 0 {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33771, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33867, 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+33803, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
+ (*Fts5Config)(unsafe.Pointer(pConfig)).FzContent = sqlite3Fts5Mprintf(tls, bp+40, ts+33899, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FeContent = FTS5_CONTENT_NONE
}
@@ -175857,9 +177439,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33809, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33905, zCmd, nCmd) == 0 {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33823, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33919, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, zArg, -1)
@@ -175867,9 +177449,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33861, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33957, 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+33872, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33968, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.Bool32(int32(*(*int8)(unsafe.Pointer(zArg))) == '1')
@@ -175877,28 +177459,28 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+4998, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+5007, zCmd, nCmd) == 0 {
*(*[4]Fts5Enum)(unsafe.Pointer(bp + 48 /* aDetail */)) = [4]Fts5Enum{
- {FzName: ts + 7888, FeVal: FTS5_DETAIL_NONE},
- {FzName: ts + 17193},
- {FzName: ts + 33907, FeVal: FTS5_DETAIL_COLUMNS},
+ {FzName: ts + 7886, FeVal: FTS5_DETAIL_NONE},
+ {FzName: ts + 17233},
+ {FzName: ts + 34003, 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+33915, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34011, 0)
}
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33946, libc.VaList(bp+24, nCmd, zCmd))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34042, 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 { /* sqlite3.c:218722:12: */
+func fts5ConfigDefaultTokenizer(tls *libc.TLS, pGlobal uintptr, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220700:12: */
return sqlite3Fts5GetTokenizer(tls, pGlobal, uintptr(0), 0, pConfig, uintptr(0))
}
@@ -175916,7 +177498,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 { /* sqlite3.c:218742:19: */
+func fts5ConfigGobbleWord(tls *libc.TLS, pRc uintptr, zIn uintptr, pzOut uintptr, pbQuoted uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220720:19: */
var zRet uintptr = uintptr(0)
var nIn Sqlite3_int64 = Sqlite3_int64(libc.Xstrlen(tls, zIn))
@@ -175950,20 +177532,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 { /* sqlite3.c:218782:12: */
+func fts5ConfigParseColumn(tls *libc.TLS, p uintptr, zCol uintptr, zArg uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220760:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zCol, ts+21944) ||
- 0 == Xsqlite3_stricmp(tls, zCol, ts+16115) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33974, libc.VaList(bp, zCol))
+ if 0 == Xsqlite3_stricmp(tls, zCol, ts+22003) ||
+ 0 == Xsqlite3_stricmp(tls, zCol, ts+16155) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34070, libc.VaList(bp, zCol))
rc = SQLITE_ERROR
} else if zArg != 0 {
- if 0 == Xsqlite3_stricmp(tls, zArg, ts+34004) {
+ if 0 == Xsqlite3_stricmp(tls, zArg, ts+34100) {
*(*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+34014, libc.VaList(bp+8, zArg))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34110, libc.VaList(bp+8, zArg))
rc = SQLITE_ERROR
}
}
@@ -175973,7 +177555,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 { /* sqlite3.c:218810:12: */
+func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220788:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -175981,13 +177563,13 @@ func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:21881
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_OK
*(*Fts5Buffer)(unsafe.Pointer(bp + 32 /* buf */)) = Fts5Buffer{}
- sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34045, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(p)).FzContentRowid))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34141, 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+34050, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34146, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
} else {
- sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34057, libc.VaList(bp+16, i))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34153, libc.VaList(bp+16, i))
}
}
}
@@ -176006,7 +177588,7 @@ func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:21881
// 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 { /* sqlite3.c:218843:12: */
+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: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -176035,8 +177617,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+21944) == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34065, 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+22003) == 0 {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34161, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pRet)).FzName))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
}
@@ -176070,7 +177652,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+34094, libc.VaList(bp+8, zOrig))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34190, libc.VaList(bp+8, zOrig))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
if bOption != 0 {
@@ -176079,13 +177661,13 @@ func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int
if *(*uintptr)(unsafe.Pointer(bp + 48)) != 0 {
return *(*uintptr)(unsafe.Pointer(bp + 48 /* zOne */))
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 {
return *(*uintptr)(unsafe.Pointer(bp + 64 /* zTwo */))
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
pzErr)
} else {
@@ -176111,19 +177693,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 + 33763 /* "content" */
+ zTail = ts + 33859 /* "content" */
} else if (*Fts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 {
- zTail = ts + 34114 /* "docsize" */
+ zTail = ts + 34210 /* "docsize" */
}
if zTail != 0 {
(*Fts5Config)(unsafe.Pointer(pRet)).FzContent = sqlite3Fts5Mprintf(tls,
- bp+40, ts+34122, libc.VaList(bp+16, (*Fts5Config)(unsafe.Pointer(pRet)).FzDb, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, zTail))
+ bp+40, ts+34218, 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+16115, -1)
+ (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, ts+16155, -1)
}
// Formulate the zContentExprlist text
@@ -176139,7 +177721,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) { /* sqlite3.c:218967:13: */
+func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220945:13: */
if pConfig != 0 {
var i int32
if (*Fts5Config)(unsafe.Pointer(pConfig)).FpTok != 0 {
@@ -176164,7 +177746,7 @@ func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* sqlite3.c:218967
// 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 { /* sqlite3.c:218994:12: */
+func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220972:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -176172,18 +177754,18 @@ func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* sql
*(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = SQLITE_OK
var zSql uintptr
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34133, 0)
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34229, 0)
for i = 0; zSql != 0 && i < (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol; i++ {
var zSep uintptr = func() uintptr {
if i == 0 {
- return ts + 1546
+ return ts + 1515
}
- return ts + 14510
+ return ts + 14532
}()
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34149, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34245, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
}
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34156,
- libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+21944))
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34252,
+ libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+22003))
if zSql != 0 {
*(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = Xsqlite3_declare_vtab(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql)
@@ -176214,7 +177796,7 @@ func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* sql
// 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 { /* sqlite3.c:219040:12: */
+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: */
if pText == uintptr(0) {
return SQLITE_OK
}
@@ -176228,7 +177810,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 { /* sqlite3.c:219059:19: */
+func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221037:19: */
var p uintptr = pIn
for 1 != 0 {
@@ -176255,7 +177837,7 @@ func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:21905
// + 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 { /* sqlite3.c:219086:12: */
+func sqlite3Fts5ConfigParseRank(tls *libc.TLS, zIn uintptr, pzRank uintptr, pzRankArgs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221064:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -176319,13 +177901,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 { /* sqlite3.c:219145:12: */
+func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVal uintptr, pbBadkey uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221123:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zKey, ts+34182) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, ts+34278) {
var pgsz int32 = 0
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
pgsz = Xsqlite3_value_int(tls, pVal)
@@ -176335,7 +177917,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+34187) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34283) {
var nHashSize int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nHashSize = Xsqlite3_value_int(tls, pVal)
@@ -176345,7 +177927,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+34196) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34292) {
var nAutomerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nAutomerge = Xsqlite3_value_int(tls, pVal)
@@ -176358,7 +177940,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+34206) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34302) {
var nUsermerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nUsermerge = Xsqlite3_value_int(tls, pVal)
@@ -176368,7 +177950,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+34216) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34312) {
var nCrisisMerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nCrisisMerge = Xsqlite3_value_int(tls, pVal)
@@ -176384,7 +177966,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+21944) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+22003) {
var zIn uintptr = Xsqlite3_value_text(tls, pVal)
// var zRank uintptr at bp, 8
@@ -176407,11 +177989,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 { /* sqlite3.c:219239:12: */
+func sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221217:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
- var zSelect uintptr = ts + 34228 /* "SELECT k, v FROM..." */
+ var zSelect uintptr = ts + 34324 /* "SELECT k, v FROM..." */
var zSql uintptr
*(*uintptr)(unsafe.Pointer(bp + 40 /* p */)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK
@@ -176434,7 +178016,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+34260) {
+ if 0 == Xsqlite3_stricmp(tls, zK, ts+34356) {
iVersion = Xsqlite3_value_int(tls, pVal)
} else {
*(*int32)(unsafe.Pointer(bp + 48 /* bDummy */)) = 0
@@ -176449,7 +178031,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+34268,
+ ts+34364,
libc.VaList(bp+16, iVersion, FTS5_CURRENT_VERSION))
}
}
@@ -176484,7 +178066,7 @@ type Fts5ExprTerm1 = struct {
FzTerm uintptr
FpIter uintptr
FpSynonym uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
// 2014 May 31
//
@@ -176503,9 +178085,9 @@ type Fts5ExprTerm1 = struct {
// All token types in the generated fts5parse.h file are greater than 0.
-type Fts5ExprTerm = Fts5ExprTerm1 /* sqlite3.c:219317:29 */
+type Fts5ExprTerm = Fts5ExprTerm1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221295:29 */
-func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintptr) { /* sqlite3.c:219424:13: */
+func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221402:13: */
var ap Va_list
_ = ap
ap = va
@@ -176517,12 +178099,12 @@ func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintp
_ = ap
}
-func fts5ExprIsspace(tls *libc.TLS, t int8) int32 { /* sqlite3.c:219435:12: */
+func fts5ExprIsspace(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221413: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 { /* sqlite3.c:219442:12: */
+func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221420:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -176584,7 +178166,7 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr)
}
}
if int32(*(*int8)(unsafe.Pointer(z2))) == 0 {
- sqlite3Fts5ParseError(tls, pParse, ts+34333, 0)
+ sqlite3Fts5ParseError(tls, pParse, ts+34429, 0)
return FTS5_EOF
}
}
@@ -176597,20 +178179,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+34353, libc.VaList(bp, z))
+ sqlite3Fts5ParseError(tls, pParse, ts+34449, 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+34384, uint64(2)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 2 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34480, uint64(2)) == 0 {
tok = FTS5_OR
}
- if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34387, uint64(3)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34483, uint64(3)) == 0 {
tok = FTS5_NOT
}
- if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+29770, uint64(3)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+29866, uint64(3)) == 0 {
tok = FTS5_AND
}
break
@@ -176622,15 +178204,15 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr)
return tok
}
-func fts5ParseAlloc(tls *libc.TLS, t U64) uintptr { /* sqlite3.c:219506:13: */
+func fts5ParseAlloc(tls *libc.TLS, t U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221484:13: */
return Xsqlite3_malloc64(tls, uint64(Sqlite3_int64(t)))
}
-func fts5ParseFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:219507:13: */
+func fts5ParseFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221485:13: */
Xsqlite3_free(tls, p)
}
-func sqlite3Fts5ExprNew(tls *libc.TLS, pConfig uintptr, bPhraseToAnd int32, iCol int32, zExpr uintptr, ppNew uintptr, pzErr uintptr) int32 { /* sqlite3.c:219509:12: */
+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: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -176653,7 +178235,7 @@ func sqlite3Fts5ExprNew(tls *libc.TLS, pConfig uintptr, bPhraseToAnd int32, iCol
}
(*Fts5Parse)(unsafe.Pointer(bp /* &sParse */)).FpConfig = pConfig
- for ok := true; ok; ok = (*Fts5Parse)(unsafe.Pointer(bp)).Frc == SQLITE_OK && t != FTS5_EOF {
+ for __ccgo := true; __ccgo; __ccgo = (*Fts5Parse)(unsafe.Pointer(bp)).Frc == SQLITE_OK && t != FTS5_EOF {
t = fts5ExprGetToken(tls, bp, bp+48, bp+56)
sqlite3Fts5Parser(tls, pEngine, t, *(*Fts5Token)(unsafe.Pointer(bp + 56 /* token */)), bp)
}
@@ -176708,7 +178290,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 { /* sqlite3.c:219590:12: */
+func sqlite3Fts5ExprPattern(tls *libc.TLS, pConfig uintptr, bGlob int32, iCol int32, zText uintptr, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221568:12: */
bp := tls.Alloc(3)
defer tls.Free(3)
@@ -176783,7 +178365,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) { /* sqlite3.c:219660:13: */
+func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221638:13: */
if p != 0 {
var i int32
for i = 0; i < (*Fts5ExprNode)(unsafe.Pointer(p)).FnChild; i++ {
@@ -176795,7 +178377,7 @@ func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:219660:13
}
// Free the expression object passed as the only argument.
-func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:219674:13: */
+func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221652:13: */
if p != 0 {
sqlite3Fts5ParseNodeFree(tls, (*Fts5Expr)(unsafe.Pointer(p)).FpRoot)
Xsqlite3_free(tls, (*Fts5Expr)(unsafe.Pointer(p)).FapExprPhrase)
@@ -176803,7 +178385,7 @@ func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:219674:13: */
}
}
-func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* sqlite3.c:219682:12: */
+func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221660:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -176844,7 +178426,7 @@ func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:219722:12: */
+func fts5ExprSynonymRowid(tls *libc.TLS, pTerm uintptr, bDesc int32, pbEof uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221700:12: */
var iRet I64 = int64(0)
var bRetValid int32 = 0
var p uintptr
@@ -176866,7 +178448,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 { /* sqlite3.c:219747:12: */
+func fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid I64, pBuf uintptr, pa uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221725:12: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -177030,7 +178612,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 { /* sqlite3.c:219830:12: */
+func fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMatch uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221808:12: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -177255,11 +178837,11 @@ type Fts5LookaheadReader1 = struct {
Fi int32
FiPos I64
FiLookahead I64
-} /* sqlite3.c:219914:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221892:9 */
-type Fts5LookaheadReader = Fts5LookaheadReader1 /* sqlite3.c:219914:36 */
+type Fts5LookaheadReader = Fts5LookaheadReader1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221892:36 */
-func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:219925:12: */
+func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221903: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
@@ -177267,7 +178849,7 @@ func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2199
return libc.Bool32((*Fts5LookaheadReader)(unsafe.Pointer(p)).FiPos == I64(int64(1))<<62)
}
-func fts5LookaheadReaderInit(tls *libc.TLS, a uintptr, n int32, p uintptr) int32 { /* sqlite3.c:219933:12: */
+func fts5LookaheadReaderInit(tls *libc.TLS, a uintptr, n int32, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221911:12: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Fts5LookaheadReader{})))
(*Fts5LookaheadReader)(unsafe.Pointer(p)).Fa = a
(*Fts5LookaheadReader)(unsafe.Pointer(p)).Fn = n
@@ -177279,9 +178861,9 @@ type Fts5NearTrimmer1 = struct {
Freader Fts5LookaheadReader
Fwriter Fts5PoslistWriter
FpOut uintptr
-} /* sqlite3.c:219944:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221922:9 */
-type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:219944:32 */
+type Fts5NearTrimmer = Fts5NearTrimmer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221922:32 */
// The near-set object passed as the first argument contains more than
// one phrase. All phrases currently point to the same row. The
@@ -177298,7 +178880,7 @@ type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:219944:32 */
// 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 { /* sqlite3.c:219968:12: */
+func fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221946:12: */
bp := tls.Alloc(196)
defer tls.Free(196)
@@ -177500,7 +179082,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 { /* sqlite3.c:220067:12: */
+func fts5ExprAdvanceto(tls *libc.TLS, pIter uintptr, bDesc int32, piLast uintptr, pRc uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222045:12: */
var iLast I64 = *(*I64)(unsafe.Pointer(piLast))
var iRowid I64
@@ -177520,7 +179102,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 { /* sqlite3.c:220093:12: */
+func fts5ExprSynonymAdvanceto(tls *libc.TLS, pTerm uintptr, bDesc int32, piLast uintptr, pRc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222071:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -177547,7 +179129,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 { /* sqlite3.c:220123:12: */
+func fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222101:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -177604,7 +179186,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 { /* sqlite3.c:220182:12: */
+func fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222160:12: */
var pNear uintptr = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear
var i int32
@@ -177670,7 +179252,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 { /* sqlite3.c:220244:12: */
+func fts5RowidCmp(tls *libc.TLS, pExpr uintptr, iLhs I64, iRhs I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222222:12: */
if (*Fts5Expr)(unsafe.Pointer(pExpr)).FbDesc == 0 {
if iLhs < iRhs {
@@ -177686,7 +179268,7 @@ func fts5RowidCmp(tls *libc.TLS, pExpr uintptr, iLhs I64, iRhs I64) int32 { /* s
return int32(0)
}
-func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:220259:13: */
+func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222237:13: */
var i int32
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 1
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0
@@ -177695,7 +179277,7 @@ func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:220259:13: */
}
}
-func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:220268:13: */
+func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222246: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
@@ -177721,7 +179303,7 @@ func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:220268
// 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 { /* sqlite3.c:220298:12: */
+func fts5NodeCompare(tls *libc.TLS, pExpr uintptr, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222276:12: */
if (*Fts5ExprNode)(unsafe.Pointer(p2)).FbEof != 0 {
return -1
}
@@ -177740,7 +179322,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 { /* sqlite3.c:220319:12: */
+func fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222297:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -177766,7 +179348,7 @@ func fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32
*(*I64)(unsafe.Pointer(bp /* iLast */)) = (*Fts5IndexIter)(unsafe.Pointer((*Fts5ExprTerm)(unsafe.Pointer(pLeft + 32)).FpIter)).FiRowid
}
- for ok := true; ok; ok = bMatch == 0 {
+ for __ccgo := true; __ccgo; __ccgo = bMatch == 0 {
bMatch = 1
for i = 0; i < (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase; i++ {
var pPhrase uintptr = *(*uintptr)(unsafe.Pointer(pNear + 24 + uintptr(i)*8))
@@ -177808,7 +179390,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 { /* sqlite3.c:220389:12: */
+func fts5ExprNodeNext_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222367:12: */
var pTerm uintptr = *(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32
var rc int32 = SQLITE_OK
@@ -177867,7 +179449,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 { /* sqlite3.c:220454:12: */
+func fts5ExprNodeTest_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222432: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
@@ -177886,7 +179468,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 { /* sqlite3.c:220482:12: */
+func fts5ExprNodeNext_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222460:12: */
var rc int32
var pIter uintptr = (*Fts5ExprTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32)).FpIter
@@ -177904,7 +179486,7 @@ func fts5ExprNodeNext_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromVal
return rc
}
-func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* sqlite3.c:220506:13: */
+func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222484:13: */
var pNext uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48))
var i int32
@@ -177920,7 +179502,7 @@ func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* sqlit
(*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 { /* sqlite3.c:220525:12: */
+func fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222503:12: */
var i int32
var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid
@@ -177946,13 +179528,13 @@ 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 { /* sqlite3.c:220557:12: */
+func fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222535:12: */
var iChild int32
var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pAnd)).FiRowid
var rc int32 = SQLITE_OK
var bMatch int32
- for ok := true; ok; ok = bMatch == 0 {
+ for __ccgo := true; __ccgo; __ccgo = bMatch == 0 {
(*Fts5ExprNode)(unsafe.Pointer(pAnd)).FbNomatch = 0
bMatch = 1
for iChild = 0; iChild < (*Fts5ExprNode)(unsafe.Pointer(pAnd)).FnChild; iChild++ {
@@ -177996,7 +179578,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 { /* sqlite3.c:220609:12: */
+func fts5ExprNodeNext_AND(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222587: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)
@@ -178008,7 +179590,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 { /* sqlite3.c:220624:12: */
+func fts5ExprNodeTest_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222602:12: */
var rc int32 = SQLITE_OK
var p1 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48))
var p2 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48 + 1*8))
@@ -178038,7 +179620,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 { /* sqlite3.c:220652:12: */
+func fts5ExprNodeNext_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222630: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)
@@ -178054,7 +179636,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 { /* sqlite3.c:220673:12: */
+func fts5ExprNodeTest(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222651:12: */
var rc int32 = SQLITE_OK
if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof == 0 {
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
@@ -178107,7 +179689,7 @@ func fts5ExprNodeTest(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sq
//
// 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 { /* sqlite3.c:220718:12: */
+func fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222696:12: */
var rc int32 = SQLITE_OK
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0
@@ -178169,7 +179751,7 @@ func fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* s
//
// 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 { /* sqlite3.c:220777:12: */
+func sqlite3Fts5ExprFirst(tls *libc.TLS, p uintptr, pIdx uintptr, iFirst I64, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222755:12: */
var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot
var rc int32 // Return code
@@ -178201,11 +179783,11 @@ 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 { /* sqlite3.c:220808:12: */
+func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222786:12: */
var rc int32
var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot
- for ok := true; ok; ok = (*Fts5ExprNode)(unsafe.Pointer(pRoot)).FbNomatch != 0 {
+ for __ccgo := true; __ccgo; __ccgo = (*Fts5ExprNode)(unsafe.Pointer(pRoot)).FbNomatch != 0 {
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, I64) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Fts5ExprNode)(unsafe.Pointer(pRoot)).FxNext})).f(tls, p, pRoot, 0, int64(0))
@@ -178217,15 +179799,15 @@ func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* sqlite3
return rc
}
-func sqlite3Fts5ExprEof(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:220822:12: */
+func sqlite3Fts5ExprEof(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222800:12: */
return (*Fts5ExprNode)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(p)).FpRoot)).FbEof
}
-func sqlite3Fts5ExprRowid(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:220826:12: */
+func sqlite3Fts5ExprRowid(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222804:12: */
return (*Fts5ExprNode)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(p)).FpRoot)).FiRowid
}
-func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { /* sqlite3.c:220830:12: */
+func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222808:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -178235,7 +179817,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) { /* sqlite3.c:220839:13: */
+func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222817:13: */
if pPhrase != 0 {
var i int32
for i = 0; i < (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm; i++ {
@@ -178260,7 +179842,7 @@ func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:220839:13
// Set the "bFirst" flag on the first token of the phrase passed as the
// only argument.
-func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:220864:13: */
+func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222842:13: */
if pPhrase != 0 && (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm != 0 {
(*Fts5ExprTerm)(unsafe.Pointer(pPhrase + 32)).FbFirst = U8(1)
}
@@ -178272,7 +179854,7 @@ func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:220
//
// 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 { /* sqlite3.c:220878:24: */
+func sqlite3Fts5ParseNearset(tls *libc.TLS, pParse uintptr, pNear uintptr, pPhrase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222856:24: */
var SZALLOC int32 = 8
var pRet uintptr = uintptr(0)
@@ -178332,12 +179914,12 @@ type TokenCtx1 = struct {
FpPhrase uintptr
Frc int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:220938:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222916:9 */
-type TokenCtx = TokenCtx1 /* sqlite3.c:220938:25 */
+type TokenCtx = TokenCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222916: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 { /* sqlite3.c:220947:12: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -178406,12 +179988,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) { /* sqlite3.c:221012:13: */
+func sqlite3Fts5ParsePhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222990:13: */
fts5ExprPhraseFree(tls, pPhrase)
}
// Free the phrase object passed as the second argument.
-func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* sqlite3.c:221019:13: */
+func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222997:13: */
if pNear != 0 {
var i int32
for i = 0; i < (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase; i++ {
@@ -178422,12 +180004,12 @@ func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* sqlite3.c:22
}
}
-func sqlite3Fts5ParseFinished(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:221030:13: */
+func sqlite3Fts5ParseFinished(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223008:13: */
(*Fts5Parse)(unsafe.Pointer(pParse)).FpExpr = p
}
-func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:221035:12: */
+func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223013: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
@@ -178444,7 +180026,7 @@ func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:22
// 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 { /* sqlite3.c:221054:23: */
+func sqlite3Fts5ParseTerm(tls *libc.TLS, pParse uintptr, pAppend uintptr, pToken uintptr, bPrefix int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223032:23: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -178502,7 +180084,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 { /* sqlite3.c:221108:12: */
+func sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223086:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -178597,17 +180179,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) { /* sqlite3.c:221204:13: */
+func sqlite3Fts5ParseNear(tls *libc.TLS, pParse uintptr, pTok uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223182:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+34391, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
+ if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+34487, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
sqlite3Fts5ParseError(tls,
- pParse, ts+33420, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp))
+ pParse, ts+33516, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp))
}
}
-func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p uintptr) { /* sqlite3.c:221212:13: */
+func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223190:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -178619,7 +180201,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+34396, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(p)).Fn, (*Fts5Token)(unsafe.Pointer(p)).Fp))
+ pParse, ts+34492, 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')
@@ -178638,7 +180220,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 { /* sqlite3.c:221247:19: */
+func fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223225:19: */
var nCol int32
if p != 0 {
nCol = (*Fts5Colset)(unsafe.Pointer(p)).FnCol
@@ -178676,7 +180258,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 { /* sqlite3.c:221288:19: */
+func sqlite3Fts5ParseColsetInvert(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223266:19: */
var pRet uintptr
var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FnCol
@@ -178698,7 +180280,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 { /* sqlite3.c:221311:19: */
+func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223289:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -178716,7 +180298,7 @@ func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p ui
}
}
if iCol == (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol {
- sqlite3Fts5ParseError(tls, pParse, ts+20327, libc.VaList(bp, z))
+ sqlite3Fts5ParseError(tls, pParse, ts+20365, libc.VaList(bp, z))
} else {
pRet = fts5ParseColset(tls, pParse, pColset, iCol)
}
@@ -178737,7 +180319,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 { /* sqlite3.c:221351:19: */
+func fts5CloneColset(tls *libc.TLS, pRc uintptr, pOrig uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223329: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))))
@@ -178752,7 +180334,7 @@ func fts5CloneColset(tls *libc.TLS, pRc uintptr, pOrig uintptr) uintptr { /* sql
}
// Remove from colset pColset any columns that are not also in colset pMerge.
-func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* sqlite3.c:221368:13: */
+func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223346: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
@@ -178776,7 +180358,7 @@ func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* sqlite
// 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) { /* sqlite3.c:221394:13: */
+func fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pNode uintptr, pColset uintptr, ppFree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223372:13: */
if (*Fts5Parse)(unsafe.Pointer(pParse)).Frc == SQLITE_OK {
if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_STRING || (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_TERM {
@@ -178804,21 +180386,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) { /* sqlite3.c:221432:13: */
+func sqlite3Fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pExpr uintptr, pColset uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223410: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+34425, 0)
+ ts+34521, 0)
} else {
fts5ParseSetColset(tls, pParse, pExpr, pColset, bp)
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp /* pFree */)))
}
-func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:221448:13: */
+func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223426:13: */
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
case FTS5_STRING:
{
@@ -178869,7 +180451,7 @@ func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:221448:13:
}
}
-func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* sqlite3.c:221481:13: */
+func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223459: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))
@@ -178889,7 +180471,7 @@ func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* sqlite3.c:
// into an AND tree:
//
// abc AND def AND ghi
-func fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) uintptr { /* sqlite3.c:221503:21: */
+func fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223481:21: */
var nTerm int32 = (*Fts5ExprPhrase)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNear + 24)))).FnTerm
var ii int32
var nByte int32
@@ -178932,7 +180514,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 { /* sqlite3.c:221557:21: */
+func sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uintptr, pRight uintptr, pNear uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223535:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -178992,12 +180574,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+34478,
+ ts+34574,
libc.VaList(bp, func() uintptr {
if (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase == 1 {
- return ts + 34528 /* "phrase" */
+ return ts + 34624 /* "phrase" */
}
- return ts + 34391 /* "NEAR" */
+ return ts + 34487 /* "NEAR" */
}()))
Xsqlite3_free(tls, pRet)
pRet = uintptr(0)
@@ -179020,7 +180602,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 { /* sqlite3.c:221639:21: */
+func sqlite3Fts5ParseImplicitAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223617:21: */
var pRet uintptr = uintptr(0)
var pPrev uintptr
@@ -179066,7 +180648,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 { /* sqlite3.c:222076:12: */
+func sqlite3Fts5ExprInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224054:12: */
var rc int32 = SQLITE_OK
_ = pGlobal
_ = db
@@ -179079,7 +180661,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 { /* sqlite3.c:222113:12: */
+func sqlite3Fts5ExprPhraseCount(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224091:12: */
return func() int32 {
if pExpr != 0 {
return (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase
@@ -179089,7 +180671,7 @@ func sqlite3Fts5ExprPhraseCount(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3
}
// Return the number of terms in the iPhrase'th phrase in pExpr.
-func sqlite3Fts5ExprPhraseSize(tls *libc.TLS, pExpr uintptr, iPhrase int32) int32 { /* sqlite3.c:222120:12: */
+func sqlite3Fts5ExprPhraseSize(tls *libc.TLS, pExpr uintptr, iPhrase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224098:12: */
if iPhrase < 0 || iPhrase >= (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase {
return 0
}
@@ -179098,7 +180680,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 { /* sqlite3.c:222129:12: */
+func sqlite3Fts5ExprPoslist(tls *libc.TLS, pExpr uintptr, iPhrase int32, pa uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224107: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
@@ -179119,7 +180701,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 { /* sqlite3.c:222158:29: */
+func sqlite3Fts5ExprClearPoslists(tls *libc.TLS, pExpr uintptr, bLive int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224136:29: */
var pRet uintptr
pRet = Xsqlite3_malloc64(tls, uint64(uint64(unsafe.Sizeof(Fts5PoslistPopulator{}))*uint64((*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase)))
if pRet != 0 {
@@ -179143,12 +180725,12 @@ type Fts5ExprCtx1 = struct {
FpExpr uintptr
FaPopulator uintptr
FiOff I64
-} /* sqlite3.c:222180:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224158:1 */
-type Fts5ExprCtx = Fts5ExprCtx1 /* sqlite3.c:222185:28 */
+type Fts5ExprCtx = Fts5ExprCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224163:28 */
// TODO: Make this more efficient!
-func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* sqlite3.c:222190:12: */
+func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224168:12: */
var i int32
for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ {
if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol {
@@ -179158,7 +180740,7 @@ func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* s
return 0
}
-func fts5ExprPopulatePoslistsCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:222198:12: */
+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: */
var p uintptr = pCtx
var pExpr uintptr = (*Fts5ExprCtx)(unsafe.Pointer(p)).FpExpr
var i int32
@@ -179193,7 +180775,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 { /* sqlite3.c:222233:12: */
+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: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -179221,7 +180803,7 @@ func sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uintp
}{fts5ExprPopulatePoslistsCb})))
}
-func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222263:13: */
+func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224241: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 {
@@ -179232,7 +180814,7 @@ func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222263:1
}
}
-func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* sqlite3.c:222274:12: */
+func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224252:12: */
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid = iRowid
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
@@ -179282,12 +180864,12 @@ func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /*
return 1
}
-func sqlite3Fts5ExprCheckPoslists(tls *libc.TLS, pExpr uintptr, iRowid I64) { /* sqlite3.c:222318:13: */
+func sqlite3Fts5ExprCheckPoslists(tls *libc.TLS, pExpr uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224296: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 { /* sqlite3.c:222325:12: */
+func sqlite3Fts5ExprPhraseCollist(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppCollist uintptr, pnCollist uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224303: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
@@ -179338,7 +180920,7 @@ type Fts5HashEntry1 = struct {
FiCol I16
FiPos int32
FiRowid I64
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
// 2014 August 11
//
@@ -179354,14 +180936,14 @@ type Fts5HashEntry1 = struct {
// #include "fts5Int.h"
-type Fts5HashEntry = Fts5HashEntry1 /* sqlite3.c:222378:30 */
+type Fts5HashEntry = Fts5HashEntry1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224356: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 { /* sqlite3.c:222444:12: */
+func sqlite3Fts5HashNew(tls *libc.TLS, pConfig uintptr, ppNew uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224422:12: */
var rc int32 = SQLITE_OK
var pNew uintptr
@@ -179389,7 +180971,7 @@ func sqlite3Fts5HashNew(tls *libc.TLS, pConfig uintptr, ppNew uintptr, pnByte ui
}
// Free a hash table object.
-func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:222474:13: */
+func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224452:13: */
if pHash != 0 {
sqlite3Fts5HashClear(tls, pHash)
Xsqlite3_free(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FaSlot)
@@ -179398,7 +180980,7 @@ func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:222474:13:
}
// Empty (but do not delete) a hash table.
-func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:222485:13: */
+func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224463:13: */
var i int32
for i = 0; i < (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot; i++ {
var pNext uintptr
@@ -179412,7 +180994,7 @@ func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:222485:13
(*Fts5Hash)(unsafe.Pointer(pHash)).FnEntry = 0
}
-func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* sqlite3.c:222499:21: */
+func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224477:21: */
var i int32
var h uint32 = uint32(13)
for i = n - 1; i >= 0; i-- {
@@ -179421,7 +181003,7 @@ func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* sql
return h % uint32(nSlot)
}
-func fts5HashKey2(tls *libc.TLS, nSlot int32, b U8, p uintptr, n int32) uint32 { /* sqlite3.c:222508:21: */
+func fts5HashKey2(tls *libc.TLS, nSlot int32, b U8, p uintptr, n int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224486:21: */
var i int32
var h uint32 = uint32(13)
for i = n - 1; i >= 0; i-- {
@@ -179432,7 +181014,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 { /* sqlite3.c:222521:12: */
+func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224499:12: */
var nNew int32 = (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot * 2
var i int32
var apNew uintptr
@@ -179462,7 +181044,7 @@ func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* sqlite3.c:222521:12
return SQLITE_OK
}
-func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) int32 { /* sqlite3.c:222549:12: */
+func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224527:12: */
var nRet int32 = 0
if (*Fts5HashEntry)(unsafe.Pointer(p)).FiSzPoslist != 0 {
var pPtr uintptr
@@ -179511,7 +181093,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 { /* sqlite3.c:222600:12: */
+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: */
var iHash uint32
var p uintptr
var pPtr uintptr
@@ -179670,7 +181252,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 { /* sqlite3.c:222753:22: */
+func fts5HashEntryMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224731:22: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -179716,7 +181298,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 { /* sqlite3.c:222799:12: */
+func fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32, ppSorted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224777:12: */
var nMergeSlot int32 = 32
var ap uintptr
var pList uintptr
@@ -179758,7 +181340,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 { /* sqlite3.c:222846:12: */
+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: */
var iHash uint32 = fts5HashKey(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot, pTerm, nTerm)
var zKey uintptr = uintptr(0)
var p uintptr
@@ -179792,20 +181374,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 { /* sqlite3.c:222884:12: */
+func sqlite3Fts5HashScanInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224862:12: */
return fts5HashEntrySort(tls, p, pTerm, nTerm, p+24)
}
-func sqlite3Fts5HashScanNext(tls *libc.TLS, p uintptr) { /* sqlite3.c:222891:13: */
+func sqlite3Fts5HashScanNext(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224869:13: */
(*Fts5Hash)(unsafe.Pointer(p)).FpScan = (*Fts5HashEntry)(unsafe.Pointer((*Fts5Hash)(unsafe.Pointer(p)).FpScan)).FpScanNext
}
-func sqlite3Fts5HashScanEof(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:222896:12: */
+func sqlite3Fts5HashScanEof(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224874:12: */
return libc.Bool32((*Fts5Hash)(unsafe.Pointer(p)).FpScan == uintptr(0))
}
-func sqlite3Fts5HashScanEntry(tls *libc.TLS, pHash uintptr, pzTerm uintptr, ppDoclist uintptr, pnDoclist uintptr) { /* sqlite3.c:222900:13: */
+func sqlite3Fts5HashScanEntry(tls *libc.TLS, pHash uintptr, pzTerm uintptr, ppDoclist uintptr, pnDoclist uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224878:13: */
var p uintptr
if libc.AssignUintptr(&p, (*Fts5Hash)(unsafe.Pointer(pHash)).FpScan) != 0 {
var zKey uintptr = p + 1*48
@@ -180031,7 +181613,7 @@ type Fts5Data1 = struct {
Fp uintptr
Fnn int32
FszLeaf int32
-} /* sqlite3.c:223175:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225153:9 */
// 2014 May 31
//
@@ -180239,14 +181821,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 /* sqlite3.c:223175:25 */
+type Fts5Data = Fts5Data1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225153:25 */
type Fts5DlidxIter1 = struct {
FnLvl int32
FiSegid int32
FaLvl [1]Fts5DlidxLvl
-} /* sqlite3.c:223176:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225154:9 */
-type Fts5DlidxIter = Fts5DlidxIter1 /* sqlite3.c:223176:30 */
+type Fts5DlidxIter = Fts5DlidxIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225154:30 */
type Fts5DlidxLvl1 = struct {
FpData uintptr
FiOff int32
@@ -180254,17 +181836,17 @@ type Fts5DlidxLvl1 = struct {
FiFirstOff int32
FiLeafPgno int32
FiRowid I64
-} /* sqlite3.c:223176:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225154:9 */
-type Fts5DlidxLvl = Fts5DlidxLvl1 /* sqlite3.c:223177:29 */
+type Fts5DlidxLvl = Fts5DlidxLvl1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225155:29 */
type Fts5DlidxWriter1 = struct {
Fpgno int32
FbPrevValid int32
FiPrev I64
Fbuf Fts5Buffer
-} /* sqlite3.c:223178:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225156:9 */
-type Fts5DlidxWriter = Fts5DlidxWriter1 /* sqlite3.c:223178:32 */
+type Fts5DlidxWriter = Fts5DlidxWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225156:32 */
type Fts5Iter1 = struct {
Fbase Fts5IndexIter
FpIndex uintptr
@@ -180278,18 +181860,18 @@ type Fts5Iter1 = struct {
FiSwitchRowid I64
FaFirst uintptr
FaSeg [1]Fts5SegIter
-} /* sqlite3.c:223179:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:9 */
-type Fts5Iter = Fts5Iter1 /* sqlite3.c:223179:25 */
+type Fts5Iter = Fts5Iter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:25 */
type Fts5PageWriter1 = struct {
Fpgno int32
FiPrevPgidx int32
Fbuf Fts5Buffer
Fpgidx Fts5Buffer
Fterm Fts5Buffer
-} /* sqlite3.c:223180:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225158:9 */
-type Fts5PageWriter = Fts5PageWriter1 /* sqlite3.c:223180:31 */
+type Fts5PageWriter = Fts5PageWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225158:31 */
type Fts5SegIter1 = struct {
FpSeg uintptr
Fflags int32
@@ -180311,18 +181893,18 @@ type Fts5SegIter1 = struct {
FnPos int32
FbDel U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:223179:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:9 */
-type Fts5SegIter = Fts5SegIter1 /* sqlite3.c:223181:28 */
+type Fts5SegIter = Fts5SegIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225159:28 */
type Fts5DoclistIter1 = struct {
FaEof uintptr
FiRowid I64
FaPoslist uintptr
FnPoslist int32
FnSize int32
-} /* sqlite3.c:223182:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225160:9 */
-type Fts5DoclistIter = Fts5DoclistIter1 /* sqlite3.c:223182:32 */
+type Fts5DoclistIter = Fts5DoclistIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225160:32 */
type Fts5SegWriter1 = struct {
FiSegid int32
F__ccgo_pad1 [4]byte
@@ -180339,9 +181921,9 @@ type Fts5SegWriter1 = struct {
Fbtterm Fts5Buffer
FiBtPage int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:223183:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225161:9 */
-type Fts5SegWriter = Fts5SegWriter1 /* sqlite3.c:223183:30 */
+type Fts5SegWriter = Fts5SegWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225161:30 */
type Fts5Structure1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
@@ -180349,38 +181931,38 @@ type Fts5Structure1 = struct {
FnSegment int32
FnLevel int32
FaLevel [1]Fts5StructureLevel
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5Structure = Fts5Structure1 /* sqlite3.c:223184:30 */
+type Fts5Structure = Fts5Structure1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225162:30 */
type Fts5StructureLevel1 = struct {
FnMerge int32
FnSeg int32
FaSeg uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5StructureLevel = Fts5StructureLevel1 /* sqlite3.c:223185:35 */
+type Fts5StructureLevel = Fts5StructureLevel1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225163:35 */
type Fts5StructureSegment1 = struct {
FiSegid int32
FpgnoFirst int32
FpgnoLast int32
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5StructureSegment = Fts5StructureSegment1 /* sqlite3.c:223186:37 */
+type Fts5StructureSegment = Fts5StructureSegment1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225164:37 */
type Fts5CResult1 = struct {
FiFirst U16
FbTermEq U8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:223179:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:9 */
-type Fts5CResult = Fts5CResult1 /* sqlite3.c:223296:28 */
+type Fts5CResult = Fts5CResult1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225274:28 */
-func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* sqlite3.c:223475:13: */
+func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225453: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 { /* sqlite3.c:223480:12: */
+func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225458:12: */
return U16(int32(U16(*(*U8)(unsafe.Pointer(aIn))))<<8 + int32(*(*U8)(unsafe.Pointer(aIn + 1))))
}
@@ -180388,7 +181970,7 @@ func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* sqlite3.c:223480:12: */
//
// 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 { /* sqlite3.c:223490:13: */
+func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225468:13: */
return sqlite3Fts5MallocZero(tls, p+52, nByte)
}
@@ -180406,7 +181988,7 @@ func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* s
// +ve if pRight is smaller than pLeft. In other words:
//
// res = *pLeft - *pRight
-func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /* sqlite3.c:223522:12: */
+func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225500:12: */
var nCmp int32
var res int32
nCmp = func() int32 {
@@ -180430,7 +182012,7 @@ func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /*
}()
}
-func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* sqlite3.c:223531:12: */
+func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225509:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -180441,7 +182023,7 @@ func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* sqlite3.c:223
}
// Close the read-only blob handle, if it is open.
-func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* sqlite3.c:223540:13: */
+func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225518:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpReader != 0 {
var pReader uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpReader
(*Fts5Index)(unsafe.Pointer(p)).FpReader = uintptr(0)
@@ -180453,7 +182035,7 @@ func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* sqlite3.c:223540
//
// 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 { /* sqlite3.c:223554:17: */
+func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225532:17: */
var pRet uintptr = uintptr(0)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var rc int32 = SQLITE_OK
@@ -180480,7 +182062,7 @@ func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:2
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+34535, iRowid, 0, p+56)
+ (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, ts+34631, iRowid, 0, p+56)
}
// If either of the sqlite3_blob_open() or sqlite3_blob_reopen() calls
@@ -180526,11 +182108,11 @@ func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:2
// Release a reference to data record returned by an earlier call to
// fts5DataRead().
-func fts5DataRelease(tls *libc.TLS, pData uintptr) { /* sqlite3.c:223628:13: */
+func fts5DataRelease(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225606:13: */
Xsqlite3_free(tls, pData)
}
-func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:223632:17: */
+func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225610: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 {
@@ -180542,7 +182124,7 @@ func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:2
return pRet
}
-func fts5IndexPrepareStmt(tls *libc.TLS, p uintptr, ppStmt uintptr, zSql uintptr) int32 { /* sqlite3.c:223644:12: */
+func fts5IndexPrepareStmt(tls *libc.TLS, p uintptr, ppStmt uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225622: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,
@@ -180557,7 +182139,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) { /* sqlite3.c:223666:13: */
+func fts5DataWrite(tls *libc.TLS, p uintptr, iRowid I64, pData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225644:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180568,7 +182150,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+34541,
+ ts+34637,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 {
return
@@ -180585,7 +182167,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) { /* sqlite3.c:223690:13: */
+func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225668:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180596,7 +182178,7 @@ func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* sqlite
if (*Fts5Index)(unsafe.Pointer(p)).FpDeleter == uintptr(0) {
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig
var zSql uintptr = Xsqlite3_mprintf(tls,
- ts+34592,
+ ts+34688,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
if fts5IndexPrepareStmt(tls, p, p+72, zSql) != 0 {
return
@@ -180610,7 +182192,7 @@ func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* sqlite
}
// Remove all records associated with segment iSegid.
-func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* sqlite3.c:223711:13: */
+func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225689:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180620,7 +182202,7 @@ func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* sqlite3.
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+34641,
+ ts+34737,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -180632,7 +182214,7 @@ func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* sqlite3.
// Release a reference to an Fts5Structure object returned by an earlier
// call to fts5StructureRead() or fts5StructureDecode().
-func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:223733:13: */
+func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225711:13: */
if pStruct != 0 && 0 >= libc.PreDecInt32(&(*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef, 1) {
var i int32
@@ -180643,22 +182225,22 @@ func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:223733:
}
}
-func fts5StructureRef(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:223744:13: */
+func fts5StructureRef(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225722:13: */
(*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef++
}
-func sqlite3Fts5StructureRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:223748:13: */
+func sqlite3Fts5StructureRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225726:13: */
fts5StructureRef(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct)
return (*Fts5Index)(unsafe.Pointer(p)).FpStruct
}
-func sqlite3Fts5StructureRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:223752:13: */
+func sqlite3Fts5StructureRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225730:13: */
if p != 0 {
fts5StructureRelease(tls, p)
}
}
-func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* sqlite3.c:223757:12: */
+func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225735:12: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != pStruct {
return SQLITE_ABORT
}
@@ -180669,7 +182251,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) { /* sqlite3.c:223770:13: */
+func fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225748: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{})))
@@ -180711,7 +182293,7 @@ func fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) { /* sqli
// 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 { /* sqlite3.c:223812:12: */
+func fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225790:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180804,7 +182386,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) { /* sqlite3.c:223904:13: */
+func fts5StructureAddLevel(tls *libc.TLS, pRc uintptr, ppStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225882:13: */
fts5StructureMakeWritable(tls, pRc, ppStruct)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pStruct uintptr = *(*uintptr)(unsafe.Pointer(ppStruct))
@@ -180824,7 +182406,7 @@ func fts5StructureAddLevel(tls *libc.TLS, pRc uintptr, ppStruct uintptr) { /* sq
// 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) { /* sqlite3.c:223929:13: */
+func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl int32, nExtra int32, bInsert int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225907:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pLvl uintptr = pStruct + 24 + uintptr(iLvl)*16
var aNew uintptr
@@ -180847,7 +182429,7 @@ func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl
}
}
-func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:223958:22: */
+func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225936:22: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180875,7 +182457,7 @@ func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:
return *(*uintptr)(unsafe.Pointer(bp + 8 /* pRet */))
}
-func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:223982:12: */
+func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225960:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -180884,7 +182466,7 @@ func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:223982:12
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+34681, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
+ Xsqlite3_mprintf(tls, ts+34777, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 {
return int64(0)
}
@@ -180908,7 +182490,7 @@ func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:223982:12
// 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 { /* sqlite3.c:224013:22: */
+func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225991:22: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct == uintptr(0) {
(*Fts5Index)(unsafe.Pointer(p)).FiStructVersion = fts5IndexDataVersion(tls, p)
@@ -180925,7 +182507,7 @@ func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:224013:2
return (*Fts5Index)(unsafe.Pointer(p)).FpStruct
}
-func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* sqlite3.c:224052:13: */
+func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226030:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != 0 {
fts5StructureRelease(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct)
(*Fts5Index)(unsafe.Pointer(p)).FpStruct = uintptr(0)
@@ -180939,7 +182521,7 @@ func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* sqlite3.c:224052:13:
//
// 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) { /* sqlite3.c:224095:13: */
+func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226073:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180992,14 +182574,14 @@ func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* sqlite3.
}
}
-func fts5SegmentSize(tls *libc.TLS, pSeg uintptr) int32 { /* sqlite3.c:224150:12: */
+func fts5SegmentSize(tls *libc.TLS, pSeg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226128: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) { /* sqlite3.c:224159:13: */
+func fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote int32, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226137:13: */
var il int32
var is int32
var pOut uintptr = pStruct + 24 + uintptr(iPromote)*16
@@ -181042,7 +182624,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) { /* sqlite3.c:224202:13: */
+func fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226180:13: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var iTst int32
var iPromote int32 = -1
@@ -181091,7 +182673,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 { /* sqlite3.c:224253:12: */
+func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226231:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181127,7 +182709,7 @@ func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:224253:1
}
// Advance the iterator passed as the only argument.
-func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* sqlite3.c:224285:12: */
+func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226263:12: */
var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32
if fts5DlidxLvlNext(tls, pLvl) != 0 {
@@ -181148,7 +182730,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 { /* sqlite3.c:224305:12: */
+func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226283:12: */
return fts5DlidxIterNextR(tls, p, pIter, 0)
}
@@ -181161,7 +182743,7 @@ func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlit
//
// 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 { /* sqlite3.c:224320:12: */
+func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226298:12: */
var i int32
for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ {
fts5DlidxLvlNext(tls, pIter+8+uintptr(i)*32)
@@ -181169,11 +182751,11 @@ func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:22432
return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FbEof
}
-func fts5DlidxIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:224329:12: */
+func fts5DlidxIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226307: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) { /* sqlite3.c:224333:13: */
+func fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226311:13: */
var i int32
// Advance each level to the last entry on the last page
@@ -181194,7 +182776,7 @@ func fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:2
}
// Move the iterator passed as the only argument to the previous entry.
-func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:224356:12: */
+func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226334:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181256,7 +182838,7 @@ func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:224356:1
return (*Fts5DlidxLvl)(unsafe.Pointer(pLvl)).FbEof
}
-func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* sqlite3.c:224405:12: */
+func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226383:12: */
var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32
if fts5DlidxLvlPrev(tls, pLvl) != 0 {
@@ -181279,12 +182861,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 { /* sqlite3.c:224428:12: */
+func fts5DlidxIterPrev(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226406:12: */
return fts5DlidxIterPrevR(tls, p, pIter, 0)
}
// Free a doclist-index iterator object allocated by fts5DlidxIterInit().
-func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:224435:13: */
+func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226413:13: */
if pIter != 0 {
var i int32
for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ {
@@ -181294,7 +182876,7 @@ func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:224435:13: *
}
}
-func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeafPg int32) uintptr { /* sqlite3.c:224445:22: */
+func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeafPg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226423:22: */
var pIter uintptr = uintptr(0)
var i int32
var bDone int32 = 0
@@ -181336,16 +182918,16 @@ func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeaf
return pIter
}
-func fts5DlidxIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* sqlite3.c:224492:12: */
+func fts5DlidxIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226470:12: */
return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FiRowid
}
-func fts5DlidxIterPgno(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:224495:12: */
+func fts5DlidxIterPgno(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226473: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) { /* sqlite3.c:224502:13: */
+func fts5SegIterNextPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226480:13: */
var pLeaf uintptr
var pSeg uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
@@ -181375,7 +182957,7 @@ func fts5SegIterNextPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c
// 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 { /* sqlite3.c:224540:12: */
+func fts5GetPoslistSize(tls *libc.TLS, p uintptr, pnSz uintptr, pbDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226518:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -181404,7 +182986,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) { /* sqlite3.c:224561:13: */
+func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226539:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -181449,7 +183031,7 @@ func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c
}
}
-func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:224590:13: */
+func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226568: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
@@ -181481,7 +183063,7 @@ func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.
// 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) { /* sqlite3.c:224623:13: */
+func fts5SegIterLoadTerm(tls *libc.TLS, p uintptr, pIter uintptr, nKeep int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226601:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181515,7 +183097,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) { /* sqlite3.c:224656:13: */
+func fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226634: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)
@@ -181537,7 +183119,7 @@ func fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:
//
// 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) { /* sqlite3.c:224674:13: */
+func fts5SegIterInit(tls *libc.TLS, p uintptr, pSeg uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226652: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
@@ -181578,7 +183160,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) { /* sqlite3.c:224723:13: */
+func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226701:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181637,7 +183219,7 @@ func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sq
}
//
-func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:224776:13: */
+func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226754:13: */
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
(*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf = uintptr(0)
@@ -181687,7 +183269,7 @@ func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sql
// 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 { /* sqlite3.c:224832:12: */
+func fts5MultiIterIsEmpty(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226810: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)
}
@@ -181695,7 +183277,7 @@ func fts5MultiIterIsEmpty(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sq
// 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) { /* sqlite3.c:224842:13: */
+func fts5SegIterNext_Reverse(tls *libc.TLS, p uintptr, pIter uintptr, pbUnused uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226820:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181724,7 +183306,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) { /* sqlite3.c:224876:13: */
+func fts5SegIterNext_None(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226854:13: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -181829,7 +183411,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) { /* sqlite3.c:224948:13: */
+func fts5SegIterNext(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226926:13: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -181954,7 +183536,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) { /* sqlite3.c:225079:13: */
+func fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227057:13: */
var pDlidx uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpDlidx
var pLast uintptr = uintptr(0)
var pgnoLast int32 = 0
@@ -182054,7 +183636,7 @@ func fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:
// 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) { /* sqlite3.c:225168:13: */
+func fts5SegIterLoadDlidx(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227146: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
@@ -182082,7 +183664,7 @@ func fts5SegIterLoadDlidx(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.
// 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) { /* sqlite3.c:225202:13: */
+func fts5LeafSeek(tls *libc.TLS, p uintptr, bGe int32, pIter uintptr, pTerm uintptr, nTerm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227180:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -182316,7 +183898,7 @@ __31:
fts5SegIterLoadNPos(tls, p, pIter)
}
-func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225328:21: */
+func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227306:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -182324,7 +183906,7 @@ func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225328:2
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig
fts5IndexPrepareStmt(tls, p, p+96, Xsqlite3_mprintf(tls,
- ts+34704,
+ ts+34800,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*Fts5Index)(unsafe.Pointer(p)).FpIdxSelect
@@ -182335,7 +183917,7 @@ func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225328:2
//
// 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) { /* sqlite3.c:225347:13: */
+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: */
var iPg int32 = 1
var bGe int32 = flags & FTS5INDEX_QUERY_SCAN
var bDlidx int32 = 0 // True if there is a doclist-index
@@ -182405,7 +183987,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) { /* sqlite3.c:225430:13: */
+func fts5SegIterHashInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227408:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -182461,7 +184043,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) { /* sqlite3.c:225489:13: */
+func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227467:13: */
sqlite3Fts5BufferFree(tls, pIter+88)
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpNextLeaf)
@@ -182476,7 +184058,7 @@ func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:225489:13: */
// 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 { /* sqlite3.c:225593:12: */
+func fts5MultiIterDoCompare(tls *libc.TLS, pIter uintptr, iOut int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227571:12: */
var i1 int32 // Index of left-hand Fts5SegIter
var i2 int32 // Index of right-hand Fts5SegIter
var iRes int32
@@ -182528,7 +184110,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) { /* sqlite3.c:225647:13: */
+func fts5SegIterGotoPage(tls *libc.TLS, p uintptr, pIter uintptr, iLeafPgno int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227625:13: */
if iLeafPgno > (*Fts5StructureSegment)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FpgnoLast {
(*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_CORRUPT | int32(1)<<8
@@ -182558,7 +184140,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) { /* sqlite3.c:225685:13: */
+func fts5SegIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227663: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
@@ -182588,7 +184170,7 @@ func fts5SegIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) {
}
}
- for ok := true; ok; ok = (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
+ for __ccgo := true; __ccgo; __ccgo = (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if bMove != 0 && (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
(*struct {
f func(*libc.TLS, uintptr, uintptr, uintptr)
@@ -182608,7 +184190,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) { /* sqlite3.c:225739:13: */
+func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227717:13: */
if pIter != 0 {
var i int32
for i = 0; i < (*Fts5Iter)(unsafe.Pointer(pIter)).FnSeg; i++ {
@@ -182619,7 +184201,7 @@ func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:225739:13: *
}
}
-func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int32, iMinset int32) { /* sqlite3.c:225750:13: */
+func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int32, iMinset int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227728: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
@@ -182642,7 +184224,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 { /* sqlite3.c:225778:12: */
+func fts5MultiIterAdvanceRowid(tls *libc.TLS, pIter uintptr, iChanged int32, ppFirst uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227756:12: */
var pNew uintptr = pIter + 96 + uintptr(iChanged)*120
if (*Fts5SegIter)(unsafe.Pointer(pNew)).FiRowid == (*Fts5Iter)(unsafe.Pointer(pIter)).FiSwitchRowid ||
@@ -182682,7 +184264,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) { /* sqlite3.c:225821:13: */
+func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227799: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
@@ -182693,7 +184275,7 @@ func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:225821:13:
// 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) { /* sqlite3.c:225834:13: */
+func fts5MultiIterNext(tls *libc.TLS, p uintptr, pIter uintptr, bFrom int32, iFrom I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227812:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -182732,13 +184314,13 @@ func fts5MultiIterNext(tls *libc.TLS, p uintptr, pIter uintptr, bFrom int32, iFr
}
}
-func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* sqlite3.c:225872:13: */
+func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227850:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
*(*int32)(unsafe.Pointer(pbNewTerm)) = 0
- for ok := true; ok; ok = fts5MultiIterIsEmpty(tls, p, pIter) != 0 {
+ for __ccgo := true; __ccgo; __ccgo = fts5MultiIterIsEmpty(tls, p, pIter) != 0 {
var iFirst int32 = int32((*Fts5CResult)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FaFirst + 1*4)).FiFirst)
*(*uintptr)(unsafe.Pointer(bp + 8 /* pSeg */)) = pIter + 96 + uintptr(iFirst)*120
*(*int32)(unsafe.Pointer(bp /* bNewTerm */)) = 0
@@ -182757,12 +184339,12 @@ func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintp
}
}
-func fts5IterSetOutputs_Noop(tls *libc.TLS, pUnused1 uintptr, pUnused2 uintptr) { /* sqlite3.c:225900:13: */
+func fts5IterSetOutputs_Noop(tls *libc.TLS, pUnused1 uintptr, pUnused2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227878:13: */
_ = pUnused1
_ = pUnused2
}
-func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* sqlite3.c:225904:17: */
+func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227882:17: */
var pNew uintptr
var nSlot int32 // Power of two >= nSeg
@@ -182781,7 +184363,7 @@ func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* sqlit
return pNew
}
-func fts5PoslistCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:225926:13: */
+func fts5PoslistCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227904:13: */
_ = pUnused
if nChunk > 0 {
@@ -182798,21 +184380,21 @@ type PoslistCallbackCtx1 = struct {
FpColset uintptr
FeState int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:225938:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227916:9 */
-type PoslistCallbackCtx = PoslistCallbackCtx1 /* sqlite3.c:225938:35 */
+type PoslistCallbackCtx = PoslistCallbackCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227916:35 */
type PoslistOffsetsCtx1 = struct {
FpBuf uintptr
FpColset uintptr
FiRead int32
FiWrite int32
-} /* sqlite3.c:225945:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227923:9 */
-type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* sqlite3.c:225945:34 */
+type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227923:34 */
// TODO: Make this more efficient!
-func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* sqlite3.c:225956:12: */
+func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227934:12: */
var i int32
for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ {
if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol {
@@ -182822,7 +184404,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) { /* sqlite3.c:225964:13: */
+func fts5PoslistOffsetsCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227942:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -182848,7 +184430,7 @@ func fts5PoslistOffsetsCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr
}
}
-func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:225987:13: */
+func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227965:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -182883,7 +184465,7 @@ func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr,
}
}
- for ok := true; ok; ok = i < nChunk {
+ for __ccgo := true; __ccgo; __ccgo = i < nChunk {
for i < nChunk && int32(*(*U8)(unsafe.Pointer(pChunk + uintptr(i)))) != 0x01 {
for int32(*(*U8)(unsafe.Pointer(pChunk + uintptr(i))))&0x80 != 0 {
i++
@@ -182928,7 +184510,7 @@ func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr,
}
}
-func fts5ChunkIterate(tls *libc.TLS, p uintptr, pSeg uintptr, pCtx uintptr, xChunk uintptr) { /* sqlite3.c:226039:13: */
+func fts5ChunkIterate(tls *libc.TLS, p uintptr, pSeg uintptr, pCtx uintptr, xChunk uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228017: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)
@@ -182984,7 +184566,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) { /* sqlite3.c:226089:13: */
+func fts5SegiterPoslist(tls *libc.TLS, p uintptr, pSeg uintptr, pColset uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228067:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -183035,7 +184617,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) { /* sqlite3.c:226134:13: */
+func fts5IndexExtractColset(tls *libc.TLS, pRc uintptr, pColset uintptr, pPos uintptr, nPos int32, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228112:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -183096,7 +184678,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) { /* sqlite3.c:226194:13: */
+func fts5IterSetOutputs_None(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228172:13: */
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos
@@ -183104,7 +184686,7 @@ func fts5IterSetOutputs_None(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sq
// 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) { /* sqlite3.c:226204:13: */
+func fts5IterSetOutputs_Nocolset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228182:13: */
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos
@@ -183124,7 +184706,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) { /* sqlite3.c:226229:13: */
+func fts5IterSetOutputs_ZeroColset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228207:13: */
_ = pSeg
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = 0
}
@@ -183132,7 +184714,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) { /* sqlite3.c:226239:13: */
+func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228217: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
@@ -183148,7 +184730,7 @@ func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sql
//
// 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) { /* sqlite3.c:226257:13: */
+func fts5IterSetOutputs_Col100(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228235:13: */
var a uintptr
var pEnd uintptr
var iPrev int32
@@ -183210,7 +184792,7 @@ __2:
}
// xSetOutputs callback used by detail=full when there is a column filter.
-func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:226297:13: */
+func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228275:13: */
var pColset uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpColset
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
@@ -183232,7 +184814,7 @@ func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sq
}
}
-func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* sqlite3.c:226322:13: */
+func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228300:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex)).FpConfig
@@ -183277,7 +184859,7 @@ func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* sqlite3
//
// 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) { /* sqlite3.c:226366: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-3380500/sqlite3.c:228344:13: */
var nSeg int32 // Number of segment-iters in use
var iIter int32 //
var iSeg int32 // Used to iterate through segments
@@ -183480,7 +185062,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) { /* sqlite3.c:226472:13: */
+func fts5MultiIterNew2(tls *libc.TLS, p uintptr, pData uintptr, bDesc int32, ppOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228450:13: */
var pNew uintptr
pNew = fts5MultiIterAlloc(tls, p, 2)
if pNew != 0 {
@@ -183513,7 +185095,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 { /* sqlite3.c:226512:12: */
+func fts5MultiIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228490:12: */
return libc.Bool32((*Fts5Index)(unsafe.Pointer(p)).Frc != 0 || (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FbEof != 0)
}
@@ -183521,13 +185103,13 @@ func fts5MultiIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite
// 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 { /* sqlite3.c:226525:12: */
+func fts5MultiIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228503: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) { /* sqlite3.c:226533:13: */
+func fts5MultiIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228511:13: */
for 1 != 0 {
var iRowid I64
fts5MultiIterNext(tls, p, pIter, 1, iMatch)
@@ -183546,7 +185128,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 { /* sqlite3.c:226552:17: */
+func fts5MultiIterTerm(tls *libc.TLS, pIter uintptr, pn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228530: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
@@ -183559,7 +185141,7 @@ func fts5MultiIterTerm(tls *libc.TLS, pIter uintptr, pn uintptr) uintptr { /* sq
//
// 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 { /* sqlite3.c:226567:12: */
+func fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228545:12: */
bp := tls.Alloc(252)
defer tls.Free(252)
@@ -183601,7 +185183,7 @@ func fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* sql
}
// Discard all data currently cached in the hash-tables.
-func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* sqlite3.c:226624:13: */
+func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228602:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpHash != 0 {
sqlite3Fts5HashClear(tls, (*Fts5Index)(unsafe.Pointer(p)).FpHash)
@@ -183614,7 +185196,7 @@ func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* sqlite3.c:226624:13: */
//
// Buffer (pNew/<length-unknown>) is guaranteed to be greater
// than buffer (pOld/nOld).
-func fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr) int32 { /* sqlite3.c:226639:12: */
+func fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228617: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)))) {
@@ -183624,7 +185206,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) { /* sqlite3.c:226647:13: */
+func fts5WriteDlidxClear(tls *libc.TLS, p uintptr, pWriter uintptr, bFlush int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228625:13: */
var i int32
for i = 0; i < (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnDlidx; i++ {
@@ -183645,7 +185227,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 { /* sqlite3.c:226673:12: */
+func fts5WriteDlidxGrow(tls *libc.TLS, p uintptr, pWriter uintptr, nLvl int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228651: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)))
@@ -183664,7 +185246,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 { /* sqlite3.c:226699:12: */
+func fts5WriteFlushDlidx(tls *libc.TLS, p uintptr, pWriter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228677:12: */
var bFlag int32 = 0
// If there were FTS5_MIN_DLIDX_SIZE or more empty leaf pages written
@@ -183686,7 +185268,7 @@ func fts5WriteFlushDlidx(tls *libc.TLS, p uintptr, pWriter uintptr) int32 { /* s
// it.
//
// Fts5SegWriter.btterm currently contains the first term on page iBtPage.
-func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.c:226723:13: */
+func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228701:13: */
var bFlag int32
if (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FiBtPage == 0 {
@@ -183699,7 +185281,7 @@ func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3
if (*Fts5SegWriter)(unsafe.Pointer(pWriter)).Fbtterm.Fn > 0 {
return (*Fts5SegWriter)(unsafe.Pointer(pWriter)).Fbtterm.Fp
}
- return ts + 1546
+ return ts + 1515
}()
// The following was already done in fts5WriteInit():
// sqlite3_bind_int(p->pIdxWriter, 1, pWriter->iSegid);
@@ -183719,7 +185301,7 @@ func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3
//
// 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) { /* sqlite3.c:226752:13: */
+func fts5WriteBtreeTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228730:13: */
fts5WriteFlushBtree(tls, p, pWriter)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
sqlite3Fts5BufferSet(tls, p+52, pWriter+96, nTerm, pTerm)
@@ -183729,7 +185311,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) { /* sqlite3.c:226768:13: */
+func fts5WriteBtreeNoTerm(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228746: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 {
@@ -183742,7 +185324,7 @@ func fts5WriteBtreeNoTerm(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite
(*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnEmpty++
}
-func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* sqlite3.c:226784:12: */
+func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228762:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -183758,7 +185340,7 @@ func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* sqlite3.c:
// 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) { /* sqlite3.c:226798:13: */
+func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228776:13: */
var i int32
var bDone int32 = 0
@@ -183818,7 +185400,7 @@ func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64)
}
}
-func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.c:226858:13: */
+func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228836:13: */
var pPage uintptr = pWriter + 8
var iRowid I64
@@ -183854,14 +185436,14 @@ func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.
(*Fts5SegWriter)(unsafe.Pointer(pWriter)).FbFirstRowidInPage = U8(1)
}
-var zero = [4]U8{U8(0x00), U8(0x00), U8(0x00), U8(0x00)} /* sqlite3.c:226859:19 */
+var zero = [4]U8{U8(0x00), U8(0x00), U8(0x00), U8(0x00)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228837: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) { /* sqlite3.c:226904:13: */
+func fts5WriteAppendTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228882:13: */
var nPrefix int32 // Bytes of prefix compression for term
var pPage uintptr = pWriter + 8
var pPgidx uintptr = pWriter + 8 + 24
@@ -183937,7 +185519,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) { /* sqlite3.c:226985:13: */
+func fts5WriteAppendRowid(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228963:13: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var pPage uintptr = pWriter + 8
@@ -183966,7 +185548,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) { /* sqlite3.c:227018:13: */
+func fts5WriteAppendPoslistData(tls *libc.TLS, p uintptr, pWriter uintptr, aData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228996:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -183995,7 +185577,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) { /* sqlite3.c:227052:13: */
+func fts5WriteFinish(tls *libc.TLS, p uintptr, pWriter uintptr, pnLeaf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229030:13: */
var i int32
var pLeaf uintptr = pWriter + 8
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -184019,7 +185601,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) { /* sqlite3.c:227080:13: */
+func fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229058:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -184040,7 +185622,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+34788,
+ ts+34884,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
@@ -184059,7 +185641,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) { /* sqlite3.c:227127:13: */
+func fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229105:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -184128,13 +185710,13 @@ func fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:22
sqlite3Fts5BufferFree(tls, bp)
}
-func fts5MergeChunkCallback(tls *libc.TLS, p uintptr, pCtx uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:227193:13: */
+func fts5MergeChunkCallback(tls *libc.TLS, p uintptr, pCtx uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229171:13: */
var pWriter uintptr = pCtx
fts5WriteAppendPoslistData(tls, p, pWriter, pChunk, nChunk)
}
//
-func fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32, pnRem uintptr) { /* sqlite3.c:227205:13: */
+func fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32, pnRem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229183:13: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -184293,7 +185875,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 { /* sqlite3.c:227355:12: */
+func fts5IndexMerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nPg int32, nMin int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229333:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -184343,7 +185925,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) { /* sqlite3.c:227414:13: */
+func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229392: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
@@ -184360,7 +185942,7 @@ func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32)
}
}
-func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* sqlite3.c:227435:13: */
+func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229413:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -184377,7 +185959,7 @@ func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* sqlit
*(*uintptr)(unsafe.Pointer(ppStruct)) = *(*uintptr)(unsafe.Pointer(bp /* pStruct */))
}
-func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:227453:12: */
+func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229431:12: */
var rc int32 = (*Fts5Index)(unsafe.Pointer(p)).Frc
(*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_OK
return rc
@@ -184386,14 +185968,14 @@ func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:227453:12: *
type Fts5FlushCtx1 = struct {
FpIdx uintptr
Fwriter Fts5SegWriter
-} /* sqlite3.c:227459:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229437:9 */
-type Fts5FlushCtx = Fts5FlushCtx1 /* sqlite3.c:227459:29 */
+type Fts5FlushCtx = Fts5FlushCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229437: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 { /* sqlite3.c:227470:12: */
+func fts5PoslistPrefix(tls *libc.TLS, aBuf uintptr, nMax int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229448:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -184418,7 +186000,7 @@ func fts5PoslistPrefix(tls *libc.TLS, aBuf uintptr, nMax int32) int32 { /* sqlit
//
// 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) { /* sqlite3.c:227491:13: */
+func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229469:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -184596,7 +186178,7 @@ func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:227491:13: */
}
// Flush any data stored in the in-memory hash tables to the database.
-func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* sqlite3.c:227645:13: */
+func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229623:13: */
// Unless it is empty, flush the hash table to disk
if (*Fts5Index)(unsafe.Pointer(p)).FnPendingData != 0 {
@@ -184605,7 +186187,7 @@ func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* sqlite3.c:227645:13: */
}
}
-func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr { /* sqlite3.c:227654:22: */
+func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229632:22: */
var pNew uintptr = uintptr(0)
var nByte Sqlite3_int64 = Sqlite3_int64(unsafe.Sizeof(Fts5Structure{}))
var nSeg int32 = (*Fts5Structure)(unsafe.Pointer(pStruct)).FnSegment
@@ -184666,7 +186248,7 @@ func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr
return pNew
}
-func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:227716:12: */
+func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229694:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -184700,7 +186282,7 @@ func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:227
// This is called to implement the special "VALUES('merge', $nMerge)"
// INSERT command.
-func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sqlite3.c:227750:12: */
+func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229728:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -184725,12 +186307,12 @@ func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sq
return fts5IndexReturn(tls, p)
}
-func fts5AppendRowid(tls *libc.TLS, p uintptr, iDelta I64, pUnused uintptr, pBuf uintptr) { /* sqlite3.c:227772:13: */
+func fts5AppendRowid(tls *libc.TLS, p uintptr, iDelta I64, pUnused uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229750:13: */
_ = pUnused
sqlite3Fts5BufferAppendVarint(tls, p+52, pBuf, iDelta)
}
-func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBuf uintptr) { /* sqlite3.c:227782:13: */
+func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229760:13: */
var nData int32 = (*Fts5Iter)(unsafe.Pointer(pMulti)).Fbase.FnData
var nByte int32 = nData + 9 + 9 + FTS5_DATA_ZERO_PADDING
@@ -184757,7 +186339,7 @@ func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBu
}
}
-func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227800:13: */
+func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229778:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -184789,7 +186371,7 @@ func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227800:13:
}
}
-func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* sqlite3.c:227829:13: */
+func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229807: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
@@ -184799,13 +186381,13 @@ func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* sqlite
}
// Swap the contents of buffer *p1 with that of *p2.
-func fts5BufferSwap(tls *libc.TLS, p1 uintptr, p2 uintptr) { /* sqlite3.c:227868:13: */
+func fts5BufferSwap(tls *libc.TLS, p1 uintptr, p2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229846: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) { /* sqlite3.c:227874:13: */
+func fts5NextRowid(tls *libc.TLS, pBuf uintptr, piOff uintptr, piRowid uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229852:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -184822,7 +186404,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) { /* sqlite3.c:227889:13: */
+func fts5MergeRowidLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229867:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -184878,11 +186460,11 @@ type PrefixMerger1 = struct {
F__ccgo_pad1 [4]byte
FaPos uintptr
FpNext uintptr
-} /* sqlite3.c:227932:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229910:9 */
-type PrefixMerger = PrefixMerger1 /* sqlite3.c:227932:29 */
+type PrefixMerger = PrefixMerger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229910:29 */
-func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:227941:13: */
+func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229919: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 {
@@ -184893,7 +186475,7 @@ func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /
}
}
-func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:227955:13: */
+func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229933: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 {
@@ -184906,7 +186488,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) { /* sqlite3.c:227974:13: */
+func fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229952:13: */
bp := tls.Alloc(1072)
defer tls.Free(1072)
@@ -185071,7 +186653,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) { /* sqlite3.c:228118:13: */
+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: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -185218,7 +186800,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 { /* sqlite3.c:228255:12: */
+func sqlite3Fts5IndexBeginWrite(tls *libc.TLS, p uintptr, bDelete int32, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230233:12: */
// Allocate the hash table if it has not already been allocated
if (*Fts5Index)(unsafe.Pointer(p)).FpHash == uintptr(0) {
@@ -185238,7 +186820,7 @@ func sqlite3Fts5IndexBeginWrite(tls *libc.TLS, p uintptr, bDelete int32, iRowid
}
// Commit data to disk.
-func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:228279:12: */
+func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230257:12: */
fts5IndexFlush(tls, p)
sqlite3Fts5IndexCloseReader(tls, p)
@@ -185249,7 +186831,7 @@ func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:228279:
// 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 { /* sqlite3.c:228292:12: */
+func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230270:12: */
sqlite3Fts5IndexCloseReader(tls, p)
fts5IndexDiscardData(tls, p)
fts5StructureInvalidate(tls, p)
@@ -185260,7 +186842,7 @@ func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:228
// 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 { /* sqlite3.c:228305:12: */
+func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230283:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -185269,7 +186851,7 @@ func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:22830
fts5StructureInvalidate(tls, p)
fts5IndexDiscardData(tls, p)
libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(Fts5Structure{})))
- fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), ts+1546, 0)
+ fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), ts+1515, 0)
fts5StructureWrite(tls, p, bp)
return fts5IndexReturn(tls, p)
}
@@ -185279,7 +186861,7 @@ func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:22830
//
// 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 { /* sqlite3.c:228322:12: */
+func sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230300:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -185290,13 +186872,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+34845, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
+ (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl = sqlite3Fts5Mprintf(tls, bp+8, ts+34941, 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+24763, ts+34853, 0, pzErr)
+ pConfig, ts+24859, ts+34949, 0, pzErr)
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+11329,
- ts+34888,
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+11354,
+ ts+34984,
1, pzErr)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
@@ -185313,7 +186895,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 { /* sqlite3.c:228363:12: */
+func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230341:12: */
var rc int32 = SQLITE_OK
if p != 0 {
@@ -185334,7 +186916,7 @@ func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:228363
// 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 { /* sqlite3.c:228386:12: */
+func sqlite3Fts5IndexCharlenToBytelen(tls *libc.TLS, p uintptr, nByte int32, nChar int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230364:12: */
var n int32 = 0
var i int32
for i = 0; i < nChar; i++ {
@@ -185361,7 +186943,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 { /* sqlite3.c:228413:12: */
+func fts5IndexCharlen(tls *libc.TLS, pIn uintptr, nIn int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230391:12: */
var nChar int32 = 0
var i int32 = 0
for i < nIn {
@@ -185383,7 +186965,7 @@ func fts5IndexCharlen(tls *libc.TLS, pIn uintptr, nIn int32) int32 { /* sqlite3.
// 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 { /* sqlite3.c:228435:12: */
+func sqlite3Fts5IndexWrite(tls *libc.TLS, p uintptr, iCol int32, iPos int32, pToken uintptr, nToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230413:12: */
var i int32 // Used to iterate through indexes
var rc int32 = SQLITE_OK // Return code
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig
@@ -185407,7 +186989,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 { /* sqlite3.c:228471:12: */
+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: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -185420,7 +187002,7 @@ func sqlite3Fts5IndexQuery(tls *libc.TLS, p uintptr, pToken uintptr, nToken int3
if sqlite3Fts5BufferSize(tls, p+52, bp, uint32(nToken+1)) == 0 {
var iIdx int32 = 0 // Index to search
var iPrefixIdx int32 = 0 // +1 prefix index
- if nToken != 0 {
+ if nToken > 0 {
libc.Xmemcpy(tls, (*Fts5Buffer)(unsafe.Pointer(bp)).Fp+1, pToken, uint64(nToken))
}
@@ -185490,7 +187072,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 { /* sqlite3.c:228559:12: */
+func sqlite3Fts5IterNext(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230537:12: */
var pIter uintptr = pIndexIter
fts5MultiIterNext(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex, pIter, 0, int64(0))
@@ -185498,7 +187080,7 @@ func sqlite3Fts5IterNext(tls *libc.TLS, pIndexIter uintptr) int32 { /* sqlite3.c
}
// Move to the next matching term/rowid. Used by the fts5vocab module.
-func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* sqlite3.c:228569:12: */
+func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230547:12: */
var pIter uintptr = pIndexIter
var p uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex
@@ -185518,14 +187100,14 @@ func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:228593:12: */
+func sqlite3Fts5IterNextFrom(tls *libc.TLS, pIndexIter uintptr, iMatch I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230571: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 { /* sqlite3.c:228602:19: */
+func sqlite3Fts5IterTerm(tls *libc.TLS, pIndexIter uintptr, pn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230580:19: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -185543,7 +187125,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) { /* sqlite3.c:228613:13: */
+func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230591:13: */
if pIndexIter != 0 {
var pIter uintptr = pIndexIter
var pIndex uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex
@@ -185556,7 +187138,7 @@ func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* sqlite3.c:2286
//
// 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 { /* sqlite3.c:228628:12: */
+func sqlite3Fts5IndexGetAverages(tls *libc.TLS, p uintptr, pnRow uintptr, anSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230606:12: */
var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FnCol
var pData uintptr
@@ -185578,7 +187160,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 { /* sqlite3.c:228652:12: */
+func sqlite3Fts5IndexSetAverages(tls *libc.TLS, p uintptr, pData uintptr, nData int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230630:12: */
fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), pData, nData)
return fts5IndexReturn(tls, p)
@@ -185586,7 +187168,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 { /* sqlite3.c:228662:12: */
+func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230640:12: */
return (*Fts5Index)(unsafe.Pointer(p)).FnRead
}
@@ -185595,7 +187177,7 @@ func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:228662
//
// Return SQLITE_OK if successful, or an SQLite error code if an error
// occurs.
-func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* sqlite3.c:228673:12: */
+func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230651:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -185608,7 +187190,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+34535, int64(FTS5_STRUCTURE_ROWID), 1, bp+8)
+ ts+34631, 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 */)))
@@ -185617,7 +187199,7 @@ func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /*
return rc
}
-func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:228693:12: */
+func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230671:12: */
var pStruct uintptr
pStruct = fts5StructureRead(tls, p)
fts5StructureRelease(tls, pStruct)
@@ -185631,7 +187213,7 @@ func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2
// 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 { /* sqlite3.c:228710:12: */
+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: */
var i int32
var ret U64 = U64(iRowid)
ret = ret + (ret<<3 + U64(iCol))
@@ -185651,7 +187233,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) { /* sqlite3.c:228928:13: */
+func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst int32, iNoRowid int32, iLast int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230906:13: */
var i int32
// Now check that the iter.nEmpty leaves following the current leaf
@@ -185670,7 +187252,7 @@ func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst
}
}
-func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* sqlite3.c:228949:13: */
+func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230927:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -185729,7 +187311,7 @@ func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* sqlit
sqlite3Fts5BufferFree(tls, bp+32)
}
-func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* sqlite3.c:228999:13: */
+func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230977:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -185745,7 +187327,7 @@ func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /*
fts5IndexPrepareStmt(tls, p, bp+24, Xsqlite3_mprintf(tls,
- ts+34932,
+ ts+35028,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid)))
// Iterate through the b-tree hierarchy.
@@ -185898,7 +187480,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 { /* sqlite3.c:229144:12: */
+func sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum U64, bUseCksum int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231122:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -185957,7 +187539,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+35018)
+ sqlite3Fts5BufferAppendBlob(tls, p+52, bp+16, uint32(4), ts+35114)
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))
@@ -185988,13 +187570,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 { /* sqlite3.c:229707:12: */
+func sqlite3Fts5IndexInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231685:12: */
return SQLITE_OK
_ = db
return int32(0)
}
-func sqlite3Fts5IndexReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:229733:12: */
+func sqlite3Fts5IndexReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231711:12: */
if fts5IndexDataVersion(tls, p) != (*Fts5Index)(unsafe.Pointer(p)).FiStructVersion {
fts5StructureInvalidate(tls, p)
@@ -186027,7 +187609,7 @@ type Fts5Auxdata1 = struct {
FpPtr uintptr
FxDelete uintptr
FpNext uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
// 2014 Jun 09
//
@@ -186049,7 +187631,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 /* sqlite3.c:229770:28 */
+type Fts5Auxdata = Fts5Auxdata1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231748:28 */
type Fts5Auxiliary1 = struct {
FpGlobal uintptr
FzFunc uintptr
@@ -186057,9 +187639,9 @@ type Fts5Auxiliary1 = struct {
FxFunc Fts5_extension_function
FxDestroy uintptr
FpNext uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5Auxiliary = Fts5Auxiliary1 /* sqlite3.c:229771:30 */
+type Fts5Auxiliary = Fts5Auxiliary1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231749:30 */
type Fts5Cursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpNext uintptr
@@ -186088,35 +187670,35 @@ type Fts5Cursor1 = struct {
FnInstAlloc int32
FnInstCount int32
FaInst uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5Cursor = Fts5Cursor1 /* sqlite3.c:229772:27 */
+type Fts5Cursor = Fts5Cursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231750:27 */
type Fts5FullTable1 = struct {
Fp Fts5Table
FpStorage uintptr
FpGlobal uintptr
FpSortCsr uintptr
-} /* sqlite3.c:229773:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231751:9 */
-type Fts5FullTable = Fts5FullTable1 /* sqlite3.c:229773:30 */
+type Fts5FullTable = Fts5FullTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231751:30 */
type Fts5Sorter1 = struct {
FpStmt uintptr
FiRowid I64
FaPoslist uintptr
FnIdx int32
FaIdx [1]int32
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5Sorter = Fts5Sorter1 /* sqlite3.c:229774:27 */
+type Fts5Sorter = Fts5Sorter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231752:27 */
type Fts5TokenizerModule1 = struct {
FzName uintptr
FpUserData uintptr
Fx Fts5_tokenizer
FxDestroy uintptr
FpNext uintptr
-} /* sqlite3.c:214970:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */
-type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:229775:36 */
+type Fts5TokenizerModule = Fts5TokenizerModule1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231753:36 */
// NOTES ON TRANSACTIONS:
//
@@ -186150,21 +187732,21 @@ type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:229775:36 */
type Fts5TransactionState = struct {
FeState int32
FiSavepoint int32
-} /* sqlite3.c:229808:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231786:1 */
type Fts5MatchPhrase = struct {
FpPoslist uintptr
FnTerm int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:229865:1 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231843:1 */
// Return true if pTab is a contentless table.
-func fts5IsContentless(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:230049:12: */
+func fts5IsContentless(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232027: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) { /* sqlite3.c:230056:13: */
+func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232034:13: */
if pTab != 0 {
sqlite3Fts5IndexClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex)
sqlite3Fts5StorageClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
@@ -186174,13 +187756,13 @@ func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:230056:13: */
}
// The xDisconnect() virtual table method.
-func fts5DisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:230068:12: */
+func fts5DisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232046:12: */
fts5FreeVtab(tls, pVtab)
return SQLITE_OK
}
// The xDestroy() virtual table method.
-func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:230076:12: */
+func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232054:12: */
var pTab uintptr = pVtab
var rc int32 = sqlite3Fts5DropAll(tls, (*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)
if rc == SQLITE_OK {
@@ -186198,7 +187780,7 @@ func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:230076
// 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 { /* sqlite3.c:230096:12: */
+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: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186256,11 +187838,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 { /* sqlite3.c:230162:12: */
+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: */
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 { /* sqlite3.c:230172:12: */
+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: */
return fts5InitVtab(tls, 1, db, pAux, argc, argv, ppVtab, pzErr)
}
@@ -186269,14 +187851,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) { /* sqlite3.c:230198:13: */
+func fts5SetUniqueFlag(tls *libc.TLS, pIdxInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232176:13: */
{
*(*int32)(unsafe.Pointer(pIdxInfo + 80)) |= SQLITE_INDEX_SCAN_UNIQUE
}
}
-func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* sqlite3.c:230209:12: */
+func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232187:12: */
if (*Fts5Config)(unsafe.Pointer(pConfig)).FePattern == FTS5_PATTERN_GLOB && int32((*sqlite3_index_constraint)(unsafe.Pointer(p)).Fop) == FTS5_PATTERN_GLOB {
return 1
@@ -186347,7 +187929,7 @@ func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* s
// * 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 { /* sqlite3.c:230287:12: */
+func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232265:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186368,7 +187950,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+35023, 0)
+ ts+35119, 0)
return SQLITE_ERROR
}
@@ -186402,7 +187984,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+4898, libc.VaList(bp, iCol))
+ Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4907, libc.VaList(bp, iCol))
idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr)))
}
@@ -186418,7 +188000,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /*
}
return int8('G')
}()
- Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4898, libc.VaList(bp+8, iCol))
+ Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4907, 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)
@@ -186509,7 +188091,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /*
return SQLITE_OK
}
-func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:230422:12: */
+func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232400: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 {
@@ -186520,7 +188102,7 @@ func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:230422
}
// Implementation of xOpen method.
-func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* sqlite3.c:230433:12: */
+func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232411:12: */
var pTab uintptr = pVTab
var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig
var pCsr uintptr = uintptr(0) // New cursor object
@@ -186546,7 +188128,7 @@ func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* sqli
return rc
}
-func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:230459:12: */
+func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232437:12: */
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan == FTS5_PLAN_SCAN {
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FbDesc != 0 {
return FTS5_STMT_SCAN_DESC
@@ -186559,11 +188141,11 @@ func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:230459:12: *
// 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) { /* sqlite3.c:230471:13: */
+func fts5CsrNewrow(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232449: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) { /* sqlite3.c:230480:13: */
+func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232458:13: */
var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var pData uintptr
var pNext uintptr
@@ -186606,7 +188188,7 @@ func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:230480
// 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 { /* sqlite3.c:230524:12: */
+func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232502:12: */
if pCursor != 0 {
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pCsr uintptr = pCursor
@@ -186623,7 +188205,7 @@ func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:230524
return SQLITE_OK
}
-func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:230540:12: */
+func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232518:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -186633,7 +188215,7 @@ func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:230540:12:
rc = Xsqlite3_step(tls, (*Fts5Sorter)(unsafe.Pointer(pSorter)).FpStmt)
if rc == SQLITE_DONE {
rc = SQLITE_OK
- *(*int32)(unsafe.Pointer(pCsr + 80)) |= FTS5CSR_EOF
+ *(*int32)(unsafe.Pointer(pCsr + 80)) |= FTS5CSR_EOF | FTS5CSR_REQUIRE_CONTENT
} else if rc == SQLITE_ROW {
var a uintptr
var aBlob uintptr
@@ -186667,7 +188249,7 @@ func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:230540:12:
// Set the FTS5CSR_REQUIRE_RESEEK flag on all FTS5_PLAN_MATCH cursors
// open on table pTab.
-func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:230583:13: */
+func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232561: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 &&
@@ -186687,7 +188269,7 @@ func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:230583:13: */
//
// 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 { /* sqlite3.c:230606:12: */
+func fts5CursorReseek(tls *libc.TLS, pCsr uintptr, pbSkip uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232584:12: */
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_RESEEK != 0 {
@@ -186716,7 +188298,7 @@ func fts5CursorReseek(tls *libc.TLS, pCsr uintptr, pbSkip uintptr) int32 { /* sq
// 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 { /* sqlite3.c:230638:12: */
+func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232616:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -186761,7 +188343,7 @@ func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:230638:
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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
+ ts+3595, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
}
} else {
rc = SQLITE_OK
@@ -186775,7 +188357,7 @@ func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:230638:
return rc
}
-func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt uintptr, va uintptr) int32 { /* sqlite3.c:230691:12: */
+func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232669:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186793,7 +188375,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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
+ *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
}
Xsqlite3_free(tls, zSql)
}
@@ -186803,7 +188385,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 { /* sqlite3.c:230720:12: */
+func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232698:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -186832,25 +188414,25 @@ 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+35062,
+ ts+35158,
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 + 14510 /* ", " */
+ return ts + 14532 /* ", " */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}(),
func() uintptr {
if zRankArgs != 0 {
return zRankArgs
}
- return ts + 1546
+ return ts + 1515
}(),
func() uintptr {
if bDesc != 0 {
- return ts + 35117 /* "DESC" */
+ return ts + 35213 /* "DESC" */
}
- return ts + 35122 /* "ASC" */
+ return ts + 35218 /* "ASC" */
}()))
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter = pSorter
@@ -186870,7 +188452,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 { /* sqlite3.c:230772:12: */
+func fts5CursorFirst(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232750: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)
@@ -186885,7 +188467,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 { /* sqlite3.c:230789:12: */
+func fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232767:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186901,13 +188483,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+35126, z, n) {
+ if n == 5 && 0 == Xsqlite3_strnicmp(tls, ts+35222, 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+4980, z, n) {
+ } else if n == 2 && 0 == Xsqlite3_strnicmp(tls, ts+4989, 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+35132, libc.VaList(bp, n, z))
+ (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35228, libc.VaList(bp, n, z))
rc = SQLITE_ERROR
}
@@ -186917,7 +188499,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 { /* sqlite3.c:230824:22: */
+func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232802:22: */
var pAux uintptr
for pAux = (*Fts5Global)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).FpGlobal)).FpAux; pAux != 0; pAux = (*Fts5Auxiliary)(unsafe.Pointer(pAux)).FpNext {
@@ -186930,7 +188512,7 @@ func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /*
return uintptr(0)
}
-func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:230836:12: */
+func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232814:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -186942,7 +188524,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:2308
var zRankArgs uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs
if zRankArgs != 0 {
- var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+35160, libc.VaList(bp, zRankArgs))
+ var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+35256, 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,
@@ -186974,7 +188556,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:2308
pAux = fts5FindAuxiliary(tls, pTab, zRank)
if pAux == uintptr(0) {
- (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35170, libc.VaList(bp+8, zRank))
+ (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35266, libc.VaList(bp+8, zRank))
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR
}
}
@@ -186983,7 +188565,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:2308
return *(*int32)(unsafe.Pointer(bp + 16 /* rc */))
}
-func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uintptr) int32 { /* sqlite3.c:230887:12: */
+func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232865:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -187006,21 +188588,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+35191, libc.VaList(bp, z))
+ ts+35287, 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 + 33574 /* "bm25" */
+ (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = ts + 33670 /* "bm25" */
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = uintptr(0)
}
}
return rc
}
-func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* sqlite3.c:230924:12: */
+func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232902:12: */
if pVal != 0 {
var eType int32 = Xsqlite3_value_numeric_type(tls, pVal)
if eType == SQLITE_INTEGER {
@@ -187039,7 +188621,7 @@ func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* sqlit
// 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 { /* sqlite3.c:230945:12: */
+func fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, nVal int32, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232923:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -187079,7 +188661,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+35023, 0)
+ ts+35119, 0)
return SQLITE_ERROR
__1:
;
@@ -187125,7 +188707,7 @@ __8:
if !(zText == uintptr(0)) {
goto __14
}
- zText = ts + 1546 /* "" */
+ zText = ts + 1515 /* "" */
__14:
;
iCol = 0
@@ -187314,7 +188896,7 @@ __35:
goto __40
}
*(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls,
- ts+35224, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
+ ts+35320, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
rc = SQLITE_ERROR
goto __41
__40:
@@ -187360,7 +188942,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 { /* sqlite3.c:231138:12: */
+func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233116:12: */
var pCsr uintptr = pCursor
return func() int32 {
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_EOF != 0 {
@@ -187371,7 +188953,7 @@ func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:231138:1
}
// Return the rowid that the cursor currently points to.
-func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* sqlite3.c:231146:12: */
+func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233124:12: */
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter != 0 {
return (*Fts5Sorter)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter)).FiRowid
@@ -187385,7 +188967,7 @@ func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* sqlite3.c:231146:12:
// 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 { /* sqlite3.c:231164:12: */
+func fts5RowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233142:12: */
var pCsr uintptr = pCursor
var ePlan int32 = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan
@@ -187415,7 +188997,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 { /* sqlite3.c:231195:12: */
+func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233173:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -187452,14 +189034,14 @@ func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* sql
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+3604, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).Fdb)))
+ ts+3595, 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) { /* sqlite3.c:231234:13: */
+func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233212:13: */
var ap Va_list
_ = ap // ... printf arguments
ap = va
@@ -187481,7 +189063,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 { /* sqlite3.c:231257:12: */
+func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233235:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -187489,29 +189071,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+35260, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, ts+35356, zCmd) {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
fts5SetVtabError(tls, pTab,
- ts+35271, 0)
+ ts+35367, 0)
rc = SQLITE_ERROR
} else {
rc = sqlite3Fts5StorageDeleteAll(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
- } else if 0 == Xsqlite3_stricmp(tls, ts+35351, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+35447, zCmd) {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NONE {
fts5SetVtabError(tls, pTab,
- ts+35359, 0)
+ ts+35455, 0)
rc = SQLITE_ERROR
} else {
rc = sqlite3Fts5StorageRebuild(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
- } else if 0 == Xsqlite3_stricmp(tls, ts+16782, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+16822, zCmd) {
rc = sqlite3Fts5StorageOptimize(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
- } else if 0 == Xsqlite3_stricmp(tls, ts+35415, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+35511, 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+35421, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+35517, zCmd) {
var iArg int32 = Xsqlite3_value_int(tls, pVal)
rc = sqlite3Fts5StorageIntegrity(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg)
} else {
@@ -187530,7 +189112,7 @@ func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr)
return rc
}
-func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* sqlite3.c:231313:12: */
+func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233291:12: */
var rc int32 = SQLITE_OK
var eType1 int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + 1*8)))
if eType1 == SQLITE_INTEGER {
@@ -187540,7 +189122,7 @@ func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* sq
return rc
}
-func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, piRowid uintptr) { /* sqlite3.c:231326:13: */
+func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, piRowid uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233304:13: */
var rc int32 = *(*int32)(unsafe.Pointer(pRc))
if rc == SQLITE_OK {
rc = sqlite3Fts5StorageContentInsert(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, apVal, piRowid)
@@ -187563,7 +189145,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 (<tablename> and "rank").
-func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, pRowid uintptr) int32 { /* sqlite3.c:231356:12: */
+func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233334:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -187585,7 +189167,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+17327, z) {
+ 0 == Xsqlite3_stricmp(tls, ts+17367, 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)))
@@ -187610,12 +189192,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+35437,
+ ts+35533,
libc.VaList(bp, func() uintptr {
if nArg > 1 {
- return ts + 20228 /* "UPDATE" */
+ return ts + 20266 /* "UPDATE" */
}
- return ts + 35474 /* "DELETE from" */
+ return ts + 35570 /* "DELETE from" */
}(), (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR
} else if nArg == 1 {
@@ -187665,7 +189247,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 { /* sqlite3.c:231482:12: */
+func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233460:12: */
var rc int32
var pTab uintptr = pVtab
@@ -187677,7 +189259,7 @@ func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231482:12
}
// Implementation of xBegin() method.
-func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231496:12: */
+func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233474:12: */
fts5NewTransaction(tls, pVtab)
return SQLITE_OK
@@ -187686,7 +189268,7 @@ func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231496:1
// 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 { /* sqlite3.c:231507:12: */
+func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233485:12: */
_ = pVtab // Call below is a no-op for NDEBUG builds
return SQLITE_OK
@@ -187694,7 +189276,7 @@ func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231507:
// 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 { /* sqlite3.c:231517:12: */
+func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233495:12: */
var rc int32
var pTab uintptr = pVtab
@@ -187702,46 +189284,46 @@ func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:23151
return rc
}
-func fts5ApiUserData(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:231527:13: */
+func fts5ApiUserData(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233505:13: */
var pCsr uintptr = pCtx
return (*Fts5Auxiliary)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux)).FpUserData
}
-func fts5ApiColumnCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:231532:12: */
+func fts5ApiColumnCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233510: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 { /* sqlite3.c:231537:12: */
+func fts5ApiColumnTotalSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233515: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 { /* sqlite3.c:231547:12: */
+func fts5ApiRowCount(tls *libc.TLS, pCtx uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233525: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 { /* sqlite3.c:231553:12: */
+func fts5ApiTokenize(tls *libc.TLS, pCtx uintptr, pText uintptr, nText int32, pUserData uintptr, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233531: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 { /* sqlite3.c:231566:12: */
+func fts5ApiPhraseCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233544:12: */
var pCsr uintptr = pCtx
return sqlite3Fts5ExprPhraseCount(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpExpr)
}
-func fts5ApiPhraseSize(tls *libc.TLS, pCtx uintptr, iPhrase int32) int32 { /* sqlite3.c:231571:12: */
+func fts5ApiPhraseSize(tls *libc.TLS, pCtx uintptr, iPhrase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233549: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 { /* sqlite3.c:231576:12: */
+func fts5ApiColumnText(tls *libc.TLS, pCtx uintptr, iCol int32, pz uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233554:12: */
var rc int32 = SQLITE_OK
var pCsr uintptr = pCtx
if fts5IsContentless(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab) != 0 ||
@@ -187758,7 +189340,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 { /* sqlite3.c:231599:12: */
+func fts5CsrPoslist(tls *libc.TLS, pCsr uintptr, iPhrase int32, pa uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233577:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -187815,7 +189397,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 { /* sqlite3.c:231651:12: */
+func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233629:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -187899,7 +189481,7 @@ func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:231651
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* sqlite3.c:231725:12: */
+func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233703:12: */
var pCsr uintptr = pCtx
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 ||
@@ -187909,7 +189491,7 @@ func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* sq
return rc
}
-func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCol uintptr, piOff uintptr) int32 { /* sqlite3.c:231735:12: */
+func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCol uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233713:12: */
var pCsr uintptr = pCtx
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 ||
@@ -187925,11 +189507,11 @@ func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCo
return rc
}
-func fts5ApiRowid(tls *libc.TLS, pCtx uintptr) Sqlite3_int64 { /* sqlite3.c:231764:22: */
+func fts5ApiRowid(tls *libc.TLS, pCtx uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233742:22: */
return fts5CursorRowid(tls, pCtx)
}
-func fts5ColumnSizeCb(tls *libc.TLS, pContext uintptr, tflags int32, pUnused uintptr, nUnused int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:231768:12: */
+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: */
var pCnt uintptr = pContext
_ = pUnused
_ = nUnused
@@ -187941,7 +189523,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 { /* sqlite3.c:231785:12: */
+func fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233763:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -187999,7 +189581,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 { /* sqlite3.c:231838:12: */
+func fts5ApiSetAuxdata(tls *libc.TLS, pCtx uintptr, pPtr uintptr, xDelete uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233816:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188037,7 +189619,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 { /* sqlite3.c:231873:13: */
+func fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233851:13: */
var pCsr uintptr = pCtx
var pData uintptr
var pRet uintptr = uintptr(0)
@@ -188059,7 +189641,7 @@ func fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) uintptr { /* s
return pRet
}
-func fts5ApiPhraseNext(tls *libc.TLS, pUnused uintptr, pIter uintptr, piCol uintptr, piOff uintptr) { /* sqlite3.c:231893:13: */
+func fts5ApiPhraseNext(tls *libc.TLS, pUnused uintptr, pIter uintptr, piCol uintptr, piOff uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233871:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188081,7 +189663,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 { /* sqlite3.c:231915:12: */
+func fts5ApiPhraseFirst(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233893:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188104,7 +189686,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) { /* sqlite3.c:231934:13: */
+func fts5ApiPhraseNextColumn(tls *libc.TLS, pCtx uintptr, pIter uintptr, piCol uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233912:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188137,7 +189719,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 { /* sqlite3.c:231964:12: */
+func fts5ApiPhraseFirstColumn(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233942:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188218,10 +189800,10 @@ var sFts5Api = Fts5ExtensionApi{
FxPhraseNext: 0,
FxPhraseFirstColumn: 0,
FxPhraseNextColumn: 0,
-} /* sqlite3.c:232014:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233992:31 */
// Implementation of API function xQueryPhrase().
-func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData uintptr, xCallback uintptr) int32 { /* sqlite3.c:232040:12: */
+func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData uintptr, xCallback uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234018:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188257,7 +189839,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) { /* sqlite3.c:232077:13: */
+func fts5ApiInvoke(tls *libc.TLS, pAux uintptr, pCsr uintptr, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234055:13: */
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux = pAux
(*struct {
@@ -188266,7 +189848,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 { /* sqlite3.c:232090:19: */
+func fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234068: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 {
@@ -188276,7 +189858,7 @@ func fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /
return pCsr
}
-func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:232098:13: */
+func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234076:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188289,7 +189871,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+35486, libc.VaList(bp, iCsrId))
+ var zErr uintptr = Xsqlite3_mprintf(tls, ts+35582, libc.VaList(bp, iCsrId))
Xsqlite3_result_error(tls, context, zErr, -1)
Xsqlite3_free(tls, zErr)
} else {
@@ -188299,7 +189881,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 { /* sqlite3.c:232127:18: */
+func sqlite3Fts5TableFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234105:18: */
var pCsr uintptr
pCsr = fts5CursorFromCsrid(tls, pGlobal, iCsrId)
if pCsr != 0 {
@@ -188321,7 +189903,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 { /* sqlite3.c:232154:12: */
+func fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234132:12: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -188385,7 +189967,7 @@ func fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) int32 { /* sqlit
// 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 { /* sqlite3.c:232211:12: */
+func fts5ColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234189:12: */
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig
var pCsr uintptr = pCursor
@@ -188425,7 +190007,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 { /* sqlite3.c:232264:12: */
+func fts5FindFunctionMethod(tls *libc.TLS, pVtab uintptr, nUnused int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234242:12: */
var pTab uintptr = pVtab
var pAux uintptr
@@ -188444,12 +190026,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 { /* sqlite3.c:232289:12: */
+func fts5RenameMethod(tls *libc.TLS, pVtab uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234267:12: */
var pTab uintptr = pVtab
return sqlite3Fts5StorageRename(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, zName)
}
-func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:232297:12: */
+func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234275:12: */
fts5TripCursors(tls, pTab)
return sqlite3Fts5StorageSync(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
@@ -188457,7 +190039,7 @@ func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:23
// The xSavepoint() method.
//
// Flush the contents of the pending-terms table to disk.
-func fts5SavepointMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* sqlite3.c:232307:12: */
+func fts5SavepointMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234285:12: */
_ = iSavepoint // Call below is a no-op for NDEBUG builds
return sqlite3Fts5FlushToDisk(tls, pVtab)
@@ -188466,7 +190048,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 { /* sqlite3.c:232318:12: */
+func fts5ReleaseMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234296:12: */
_ = iSavepoint // Call below is a no-op for NDEBUG builds
return sqlite3Fts5FlushToDisk(tls, pVtab)
@@ -188475,7 +190057,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 { /* sqlite3.c:232329:12: */
+func fts5RollbackToMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234307:12: */
var pTab uintptr = pVtab
_ = iSavepoint // Call below is a no-op for NDEBUG builds
@@ -188484,7 +190066,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 { /* sqlite3.c:232340:12: */
+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: */
var pGlobal uintptr = pApi
var rc int32 = Xsqlite3_overload_function(tls, (*Fts5Global)(unsafe.Pointer(pGlobal)).Fdb, zName, -1)
if rc == SQLITE_OK {
@@ -188515,7 +190097,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 { /* sqlite3.c:232379:12: */
+func fts5CreateTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, pTokenizer uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234357:12: */
var pGlobal uintptr = pApi
var pNew uintptr
var nName Sqlite3_int64 // Size of zName and its \0 terminator
@@ -188544,7 +190126,7 @@ func fts5CreateTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData u
return rc
}
-func fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) uintptr { /* sqlite3.c:232414:28: */
+func fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234392:28: */
var pMod uintptr = uintptr(0)
if zName == uintptr(0) {
@@ -188562,7 +190144,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 { /* sqlite3.c:232435:12: */
+func fts5FindTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, ppUserData uintptr, pTokenizer uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234413:12: */
var rc int32 = SQLITE_OK
var pMod uintptr
@@ -188578,7 +190160,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 { /* sqlite3.c:232456:12: */
+func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg int32, pConfig uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234434:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188594,7 +190176,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+35507, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35603, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg))))
} else {
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
@@ -188613,7 +190195,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+35529, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35625, 0)
}
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FePattern = sqlite3Fts5TokenizerPattern(tls,
@@ -188629,7 +190211,7 @@ func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg
return rc
}
-func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:232493:13: */
+func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234471:13: */
var pTok uintptr
var pNextTok uintptr
var pAux uintptr
@@ -188655,28 +190237,28 @@ func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:232493:13: */
Xsqlite3_free(tls, pGlobal)
}
-func fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:232513:13: */
+func fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234491:13: */
var pGlobal uintptr = Xsqlite3_user_data(tls, pCtx)
var ppApi uintptr
_ = nArg
- ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+35560)
+ ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+35656)
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) { /* sqlite3.c:232529:13: */
+func fts5SourceIdFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apUnused uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234507:13: */
_ = nArg
_ = apUnused
- Xsqlite3_result_text(tls, pCtx, ts+35573, -1, libc.UintptrFromInt32(-1))
+ Xsqlite3_result_text(tls, pCtx, ts+35669, -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 { /* sqlite3.c:232543:12: */
+func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234521: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 {
@@ -188687,10 +190269,10 @@ func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:232543:12
}
var azName2 = [5]uintptr{
- ts + 35664, ts + 33763, ts + 24763, ts + 34114, ts + 11329,
-} /* sqlite3.c:232544:21 */
+ ts + 35760, ts + 33859, ts + 24859, ts + 34210, ts + 11354,
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234522:21 */
-func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:232554:12: */
+func fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234532:12: */
var rc int32
var pGlobal uintptr = uintptr(0)
@@ -188711,7 +190293,7 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:232554:12: */
(*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+35671, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy})))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+35767, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy})))
if rc == SQLITE_OK {
rc = sqlite3Fts5IndexInit(tls, db)
}
@@ -188729,13 +190311,13 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:232554:12: */
}
if rc == SQLITE_OK {
rc = Xsqlite3_create_function(tls,
- db, ts+35671, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ db, ts+35767, 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+35676, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ db, ts+35772, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{fts5SourceIdFunc})), uintptr(0), uintptr(0))
}
@@ -188773,7 +190355,7 @@ var fts5Mod = Sqlite3_module{
/* xRelease */ FxRelease: 0,
/* xRollbackTo */ FxRollbackTo: 0,
/* xShadowName */ FxShadowName: 0,
-} /* sqlite3.c:232555:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234533: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
@@ -188782,7 +190364,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 { /* sqlite3.c:232663:20: */
+func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234641:20: */
return fts5Init(tls, db)
}
@@ -188790,7 +190372,7 @@ func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:232663:20:
// 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 { /* sqlite3.c:232721:12: */
+func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234699:12: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -188801,20 +190383,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 + 35691,
- ts + 35759,
- ts + 35828,
+ ts + 35787,
+ ts + 35855,
+ ts + 35924,
- ts + 35861,
- ts + 35900,
- ts + 35940,
- ts + 35979,
- ts + 36020,
+ ts + 35957,
+ ts + 35996,
+ ts + 36036,
+ ts + 36075,
+ ts + 36116,
- ts + 36059,
+ ts + 36155,
- ts + 36101,
- ts + 36141,
+ ts + 36197,
+ ts + 36237,
}
var pC uintptr = (*Fts5Storage)(unsafe.Pointer(p)).FpConfig
var zSql uintptr = uintptr(0)
@@ -188881,7 +190463,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+3604, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb)))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+3595, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb)))
}
}
}
@@ -188891,7 +190473,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 { /* sqlite3.c:232824:12: */
+func fts5ExecPrintf(tls *libc.TLS, db uintptr, pzErr uintptr, zFormat uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234802:12: */
var rc int32
var ap Va_list
_ = ap // ... printf arguments
@@ -188913,79 +190495,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 { /* sqlite3.c:232852:12: */
+func sqlite3Fts5DropAll(tls *libc.TLS, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234830:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
var rc int32 = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0),
- ts+36164,
+ ts+36260,
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+36268,
+ ts+36364,
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+36306,
+ ts+36402,
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) { /* sqlite3.c:232876:13: */
+func fts5StorageRenameOne(tls *libc.TLS, pConfig uintptr, pRc uintptr, zTail uintptr, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234854: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+36344,
+ ts+36440,
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 { /* sqlite3.c:232890:12: */
+func sqlite3Fts5StorageRename(tls *libc.TLS, pStorage uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234868: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+24763, zName)
- fts5StorageRenameOne(tls, pConfig, bp, ts+11329, zName)
- fts5StorageRenameOne(tls, pConfig, bp, ts+35664, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+24859, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+11354, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+35760, zName)
if (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- fts5StorageRenameOne(tls, pConfig, bp, ts+34114, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+34210, zName)
}
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- fts5StorageRenameOne(tls, pConfig, bp, ts+33763, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+33859, 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 { /* sqlite3.c:232910:12: */
+func sqlite3Fts5CreateTable(tls *libc.TLS, pConfig uintptr, zPost uintptr, zDefn uintptr, bWithout int32, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234888: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+36386,
+ rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, bp+64, ts+36482,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn,
func() uintptr {
if bWithout != 0 {
- return ts + 29416 /* " WITHOUT ROWID" */
+ return ts + 29512 /* " WITHOUT ROWID" */
}
- return ts + 1546 /* "" */
+ return ts + 1515 /* "" */
}()))
if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 {
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls,
- ts+36416,
+ ts+36512,
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 */)))
}
@@ -188998,7 +190580,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 { /* sqlite3.c:232945:12: */
+func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234923:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189027,27 +190609,27 @@ func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCre
} else {
var i int32
var iOff int32
- Xsqlite3_snprintf(tls, nDefn, zDefn, ts+36460, 0)
+ Xsqlite3_snprintf(tls, nDefn, zDefn, ts+36556, 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+36483, libc.VaList(bp, i))
+ Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), ts+36579, libc.VaList(bp, i))
iOff = iOff + int32(libc.Xstrlen(tls, zDefn+uintptr(iOff)))
}
- rc = sqlite3Fts5CreateTable(tls, pConfig, ts+33763, zDefn, 0, pzErr)
+ rc = sqlite3Fts5CreateTable(tls, pConfig, ts+33859, zDefn, 0, pzErr)
}
Xsqlite3_free(tls, zDefn)
}
if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
rc = sqlite3Fts5CreateTable(tls,
- pConfig, ts+34114, ts+36489, 0, pzErr)
+ pConfig, ts+34210, ts+36585, 0, pzErr)
}
if rc == SQLITE_OK {
rc = sqlite3Fts5CreateTable(tls,
- pConfig, ts+35664, ts+36521, 1, pzErr)
+ pConfig, ts+35760, ts+36617, 1, pzErr)
}
if rc == SQLITE_OK {
- rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34260, uintptr(0), FTS5_CURRENT_VERSION)
+ rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34356, uintptr(0), FTS5_CURRENT_VERSION)
}
}
@@ -189059,7 +190641,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 { /* sqlite3.c:233011:12: */
+func sqlite3Fts5StorageClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234989:12: */
var rc int32 = SQLITE_OK
if p != 0 {
var i int32
@@ -189078,12 +190660,12 @@ type Fts5InsertCtx1 = struct {
FpStorage uintptr
FiCol int32
FszCol int32
-} /* sqlite3.c:233026:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235004:9 */
-type Fts5InsertCtx = Fts5InsertCtx1 /* sqlite3.c:233026:30 */
+type Fts5InsertCtx = Fts5InsertCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235004: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 { /* sqlite3.c:233036:12: */
+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: */
var pCtx uintptr = pContext
var pIdx uintptr = (*Fts5Storage)(unsafe.Pointer((*Fts5InsertCtx)(unsafe.Pointer(pCtx)).FpStorage)).FpIndex
_ = iUnused1
@@ -189100,7 +190682,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 { /* sqlite3.c:233059:12: */
+func fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235037:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -189169,7 +190751,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 { /* sqlite3.c:233128:12: */
+func fts5StorageInsertDocsize(tls *libc.TLS, p uintptr, iRowid I64, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235106:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189196,7 +190778,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 { /* sqlite3.c:233158:12: */
+func fts5StorageLoadTotals(tls *libc.TLS, p uintptr, bCache int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235136: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)
@@ -189210,7 +190792,7 @@ func fts5StorageLoadTotals(tls *libc.TLS, p uintptr, bCache int32) int32 { /* sq
//
// Return SQLITE_OK if successful, or an SQLite error code if an error
// occurs.
-func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:233174:12: */
+func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235152:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -189234,7 +190816,7 @@ func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:233174
}
// Remove a row from the FTS table.
-func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* sqlite3.c:233196:12: */
+func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235174:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189275,7 +190857,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 { /* sqlite3.c:233237:12: */
+func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235215:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -189287,12 +190869,12 @@ func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:
// Delete the contents of the %_data and %_docsize tables.
rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0),
- ts+36538,
+ ts+36634,
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+36588,
+ ts+36684,
libc.VaList(bp+32, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
}
@@ -189302,12 +190884,12 @@ func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:
rc = sqlite3Fts5IndexReinit(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex)
}
if rc == SQLITE_OK {
- rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34260, uintptr(0), FTS5_CURRENT_VERSION)
+ rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34356, uintptr(0), FTS5_CURRENT_VERSION)
}
return rc
}
-func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:233268:12: */
+func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235246:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -189371,15 +190953,15 @@ func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:23
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
-func sqlite3Fts5StorageOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:233323:12: */
+func sqlite3Fts5StorageOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235301:12: */
return sqlite3Fts5IndexOptimize(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex)
}
-func sqlite3Fts5StorageMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sqlite3.c:233327:12: */
+func sqlite3Fts5StorageMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235305:12: */
return sqlite3Fts5IndexMerge(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex, nMerge)
}
-func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:233331:12: */
+func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235309:12: */
return sqlite3Fts5IndexReset(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex)
}
@@ -189390,7 +190972,7 @@ func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2333
//
// 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 { /* sqlite3.c:233344:12: */
+func fts5StorageNewRowid(tls *libc.TLS, p uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235322:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189412,7 +190994,7 @@ func fts5StorageNewRowid(tls *libc.TLS, p uintptr, piRowid uintptr) int32 { /* s
}
// Insert a new row into the FTS content table.
-func sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, piRowid uintptr) int32 { /* sqlite3.c:233365:12: */
+func sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235343:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189444,7 +191026,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 { /* sqlite3.c:233400:12: */
+func sqlite3Fts5StorageIndexInsert(tls *libc.TLS, p uintptr, apVal uintptr, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235378:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -189489,7 +191071,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 { /* sqlite3.c:233443:12: */
+func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235421:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -189497,7 +191079,7 @@ func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr)
var zSql uintptr
var rc int32
- zSql = Xsqlite3_mprintf(tls, ts+36617,
+ zSql = Xsqlite3_mprintf(tls, ts+36713,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -189524,13 +191106,13 @@ type Fts5IntegrityCtx1 = struct {
Fcksum U64
FpTermset uintptr
FpConfig uintptr
-} /* sqlite3.c:233471:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235449:9 */
// Context object used by sqlite3Fts5StorageIntegrity().
-type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* sqlite3.c:233471:33 */
+type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235449: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 { /* sqlite3.c:233485:12: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -189596,7 +191178,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 { /* sqlite3.c:233555:12: */
+func sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235533:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -189694,14 +191276,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+33763, bp+48)
+ rc = fts5StorageCount(tls, p, ts+33859, 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+34114, bp+56)
+ rc = fts5StorageCount(tls, p, ts+34210, bp+56)
if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp + 56)) != (*Fts5Storage)(unsafe.Pointer(p)).FnTotalRow {
rc = SQLITE_CORRUPT | int32(1)<<8
}
@@ -189721,7 +191303,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 { /* sqlite3.c:233663:12: */
+func sqlite3Fts5StorageStmt(tls *libc.TLS, p uintptr, eStmt int32, pp uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235641:12: */
var rc int32
rc = fts5StorageGetStmt(tls, p, eStmt, pp, pzErrMsg)
@@ -189735,7 +191317,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) { /* sqlite3.c:233687:13: */
+func sqlite3Fts5StorageStmtRelease(tls *libc.TLS, p uintptr, eStmt int32, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235665:13: */
if *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(eStmt)*8)) == uintptr(0) {
Xsqlite3_reset(tls, pStmt)
@@ -189745,7 +191327,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 { /* sqlite3.c:233704:12: */
+func fts5StorageDecodeSizeArray(tls *libc.TLS, aCol uintptr, nCol int32, aBlob uintptr, nBlob int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235682:12: */
var i int32
var iOff int32 = 0
for i = 0; i < nCol; i++ {
@@ -189763,7 +191345,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 { /* sqlite3.c:233725:12: */
+func sqlite3Fts5StorageDocsize(tls *libc.TLS, p uintptr, iRowid I64, aCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235703:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189794,7 +191376,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 { /* sqlite3.c:233754:12: */
+func sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235732:12: */
var rc int32 = fts5StorageLoadTotals(tls, p, 0)
if rc == SQLITE_OK {
*(*I64)(unsafe.Pointer(pnToken)) = int64(0)
@@ -189812,7 +191394,7 @@ func sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintpt
return rc
}
-func sqlite3Fts5StorageRowCount(tls *libc.TLS, p uintptr, pnRow uintptr) int32 { /* sqlite3.c:233772:12: */
+func sqlite3Fts5StorageRowCount(tls *libc.TLS, p uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235750:12: */
var rc int32 = fts5StorageLoadTotals(tls, p, 0)
if rc == SQLITE_OK {
// nTotalRow being zero does not necessarily indicate a corrupt
@@ -189829,7 +191411,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 { /* sqlite3.c:233789:12: */
+func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235767: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 {
@@ -189843,12 +191425,12 @@ func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:23378
return rc
}
-func sqlite3Fts5StorageRollback(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:233803:12: */
+func sqlite3Fts5StorageRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235781: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 { /* sqlite3.c:233808:12: */
+func sqlite3Fts5StorageConfigValue(tls *libc.TLS, p uintptr, z uintptr, pVal uintptr, iVal int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235786:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189903,13 +191485,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
-} /* sqlite3.c:233861:22 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235839:22 */
-type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* sqlite3.c:233872:9 */
+type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235850:9 */
-type AsciiTokenizer = AsciiTokenizer1 /* sqlite3.c:233872:31 */
+type AsciiTokenizer = AsciiTokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235850:31 */
-func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars int32) { /* sqlite3.c:233877:13: */
+func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235855: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 {
@@ -189919,12 +191501,12 @@ func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars
}
// Delete a "ascii" tokenizer.
-func fts5AsciiDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:233893:13: */
+func fts5AsciiDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235871:13: */
Xsqlite3_free(tls, p)
}
// Create an "ascii" tokenizer.
-func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:233900:12: */
+func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235878:12: */
var rc int32 = SQLITE_OK
var p uintptr = uintptr(0)
_ = pUnused
@@ -189940,9 +191522,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+36649) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36745) {
fts5AsciiAddExceptions(tls, p, zArg, 1)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36660) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36756) {
fts5AsciiAddExceptions(tls, p, zArg, 0)
} else {
rc = SQLITE_ERROR
@@ -189959,7 +191541,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) { /* sqlite3.c:233941:13: */
+func asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235919:13: */
var i int32
for i = 0; i < nByte; i++ {
var c int8 = *(*int8)(unsafe.Pointer(aIn + uintptr(i)))
@@ -189971,7 +191553,7 @@ func asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) { /* sqlit
}
// 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 { /* sqlite3.c:233953:12: */
+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: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -190052,7 +191634,7 @@ type Unicode61Tokenizer1 = struct {
F__ccgo_pad1 [4]byte
FaiException uintptr
FaCategory [32]uint8
-} /* sqlite3.c:234068:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236046:9 */
// *************************************************************************
//
@@ -190062,11 +191644,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 /* sqlite3.c:234068:35 */
+type Unicode61Tokenizer = Unicode61Tokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236046:35 */
// Values for eRemoveDiacritic (must match internals of fts5_unicode2.c)
-func fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars int32) int32 { /* sqlite3.c:234085:12: */
+func fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236063:12: */
var rc int32 = SQLITE_OK
var n int32 = int32(libc.Xstrlen(tls, z))
var aNew uintptr
@@ -190121,7 +191703,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 { /* sqlite3.c:234135:12: */
+func fts5UnicodeIsException(tls *libc.TLS, p uintptr, iCode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236113:12: */
if (*Unicode61Tokenizer)(unsafe.Pointer(p)).FnException > 0 {
var a uintptr = (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException
var iLo int32 = 0
@@ -190143,7 +191725,7 @@ func fts5UnicodeIsException(tls *libc.TLS, p uintptr, iCode int32) int32 { /* sq
}
// Delete a "unicode61" tokenizer.
-func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:234159:13: */
+func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236137:13: */
if pTok != 0 {
var p uintptr = pTok
Xsqlite3_free(tls, (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException)
@@ -190153,7 +191735,7 @@ func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:234159:13: */
return
}
-func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* sqlite3.c:234169:12: */
+func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236147:12: */
var z uintptr = zCat
for *(*int8)(unsafe.Pointer(z)) != 0 {
@@ -190173,7 +191755,7 @@ func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* sql
}
// Create a "unicode61" tokenizer.
-func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:234187:12: */
+func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236165:12: */
var rc int32 = SQLITE_OK // Return code
var p uintptr = uintptr(0) // New tokenizer object
@@ -190184,7 +191766,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 + 36671 /* "L* N* Co" */
+ var zCat uintptr = ts + 36767 /* "L* N* Co" */
var i int32
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Unicode61Tokenizer{})))
@@ -190197,7 +191779,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+36680) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36776) {
zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8))
}
}
@@ -190208,18 +191790,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+36691) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36787) {
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+36649) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36745) {
rc = fts5UnicodeAddExceptions(tls, p, zArg, 1)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36660) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36756) {
rc = fts5UnicodeAddExceptions(tls, p, zArg, 0)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36680) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36776) {
// no-op
} else {
rc = SQLITE_ERROR
@@ -190241,12 +191823,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 { /* sqlite3.c:234267:12: */
+func fts5UnicodeIsAlnum(tls *libc.TLS, p uintptr, iCode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236245: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 { /* sqlite3.c:234274:12: */
+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: */
var p uintptr
var rc int32
var a uintptr
@@ -190502,7 +192084,7 @@ type PorterTokenizer1 = struct {
Ftokenizer Fts5_tokenizer
FpTokenizer uintptr
FaBuf [128]int8
-} /* sqlite3.c:234386:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236364:9 */
// *************************************************************************
//
@@ -190511,10 +192093,10 @@ type PorterTokenizer1 = struct {
// Any tokens larger than this (in bytes) are passed through without
// stemming.
-type PorterTokenizer = PorterTokenizer1 /* sqlite3.c:234386:32 */
+type PorterTokenizer = PorterTokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236364:32 */
// Delete a "porter" tokenizer.
-func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:234396:13: */
+func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236374:13: */
if pTok != 0 {
var p uintptr = pTok
if (*PorterTokenizer)(unsafe.Pointer(p)).FpTokenizer != 0 {
@@ -190525,7 +192107,7 @@ func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:234396:13: */
}
// Create a "porter" tokenizer.
-func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:234409:12: */
+func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236387:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -190533,7 +192115,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 + 36709 /* "unicode61" */
+ var zBase uintptr = ts + 36805 /* "unicode61" */
if nArg > 0 {
zBase = *(*uintptr)(unsafe.Pointer(azArg))
@@ -190578,9 +192160,9 @@ type PorterContext1 = struct {
FpCtx uintptr
FxToken uintptr
FaBuf uintptr
-} /* sqlite3.c:234445:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236423:9 */
-type PorterContext = PorterContext1 /* sqlite3.c:234445:30 */
+type PorterContext = PorterContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236423:30 */
type PorterRule1 = struct {
FzSuffix uintptr
@@ -190590,15 +192172,15 @@ type PorterRule1 = struct {
FzOutput uintptr
FnOutput int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:234452:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236430:9 */
-type PorterRule = PorterRule1 /* sqlite3.c:234452:27 */
+type PorterRule = PorterRule1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236430:27 */
-func fts5PorterIsVowel(tls *libc.TLS, c int8, bYIsVowel int32) int32 { /* sqlite3.c:234487:12: */
+func fts5PorterIsVowel(tls *libc.TLS, c int8, bYIsVowel int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236465: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 { /* sqlite3.c:234493:12: */
+func fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236471:12: */
var i int32
var bCons int32 = bPrevCons
@@ -190619,12 +192201,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 { /* sqlite3.c:234510:12: */
+func fts5Porter_MGt0(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236488: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 { /* sqlite3.c:234515:12: */
+func fts5Porter_MGt1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236493:12: */
var n int32
n = fts5PorterGobbleVC(tls, zStem, nStem, 0)
if n != 0 && fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) != 0 {
@@ -190634,7 +192216,7 @@ func fts5Porter_MGt1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlit
}
// porter rule condition: (m = 1)
-func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:234525:12: */
+func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236503:12: */
var n int32
n = fts5PorterGobbleVC(tls, zStem, nStem, 0)
if n != 0 && 0 == fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) {
@@ -190644,7 +192226,7 @@ func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlit
}
// porter rule condition: (*o)
-func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:234535:12: */
+func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236513: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 {
@@ -190662,14 +192244,14 @@ func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqli
}
// porter rule condition: (m > 1 and (*S or *T))
-func fts5Porter_MGt1_and_S_or_T(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:234552:12: */
+func fts5Porter_MGt1_and_S_or_T(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236530: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 { /* sqlite3.c:234559:12: */
+func fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236537:12: */
var i int32
for i = 0; i < nStem; i++ {
if fts5PorterIsVowel(tls, *(*int8)(unsafe.Pointer(zStem + uintptr(i))), libc.Bool32(i > 0)) != 0 {
@@ -190684,13 +192266,13 @@ func fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqli
//
// GENERATED CODE STARTS HERE (mkportersteps.tcl)
-func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:234575:12: */
+func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236553: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+36719, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36815, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -190698,11 +192280,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'c':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36722, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36818, 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+36727, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36823, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -190710,7 +192292,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'e':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36732, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36828, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -190718,7 +192300,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'i':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36735, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36831, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -190726,11 +192308,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'l':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36738, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36834, 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+36743, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36839, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -190738,19 +192320,19 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'n':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36748, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36844, 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+36752, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36848, 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+36758, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36854, 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+36763, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36859, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -190758,11 +192340,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'o':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36767, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36863, 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+36771, aBuf+uintptr(nBuf-2), uint64(2)) {
+ } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36867, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -190770,7 +192352,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 's':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36774, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36870, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -190778,11 +192360,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 't':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36778, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36874, 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+36782, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36878, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -190790,7 +192372,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'u':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36786, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36882, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -190798,7 +192380,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'v':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36790, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36886, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -190806,7 +192388,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'z':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36794, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36890, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -190817,30 +192399,30 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
return ret
}
-func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:234709:12: */
+func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236687: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+36798, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36778, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36894, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36874, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
break
case 'b':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36801, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36804, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36897, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36900, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
break
case 'i':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36808, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36794, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36904, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36890, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
@@ -190850,143 +192432,143 @@ func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sq
return ret
}
-func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:234743:12: */
+func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236721: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+36811, aBuf+uintptr(nBuf-7), uint64(7)) {
+ if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36907, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36778, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36874, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36819, aBuf+uintptr(nBuf-6), uint64(6)) {
+ } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36915, aBuf+uintptr(nBuf-6), uint64(6)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36826, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36922, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 4
}
}
break
case 'c':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36831, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36927, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36727, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36823, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36836, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36932, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36722, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36818, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4
}
}
break
case 'e':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36841, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36937, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36794, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36890, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 'g':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36846, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36942, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+15328, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+15368, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 'l':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36851, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36947, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36804, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36900, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 3
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36855, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36951, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36719, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36815, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36860, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36956, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36763, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36859, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36866, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36962, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36870, uint64(1))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36966, uint64(1))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 1
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36872, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36968, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36786, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36882, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
}
break
case 'o':
- if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36878, aBuf+uintptr(nBuf-7), uint64(7)) {
+ if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36974, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36794, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36890, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36886, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36982, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36778, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36874, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36892, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36988, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36778, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36874, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 's':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36897, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36993, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36719, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36815, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36903, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36999, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36790, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36886, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36911, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37007, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36919, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+37015, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36923, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37019, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36786, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36882, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
}
break
case 't':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36931, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37027, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36719, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36815, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36937, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37033, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36790, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36886, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36943, aBuf+uintptr(nBuf-6), uint64(6)) {
+ } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+37039, aBuf+uintptr(nBuf-6), uint64(6)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36804, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36900, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 3
}
}
@@ -190996,22 +192578,22 @@ func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
return ret
}
-func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:234890:12: */
+func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236868: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+36950, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37046, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36735, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36831, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2
}
}
break
case 's':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36955, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37051, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -191019,21 +192601,21 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 't':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36960, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37056, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36735, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36831, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36966, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37062, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36735, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36831, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
}
break
case 'u':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36919, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37015, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191041,7 +192623,7 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'v':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36972, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37068, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5
}
@@ -191049,9 +192631,9 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'z':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36978, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37074, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36719, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36815, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
}
@@ -191061,18 +192643,18 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
return ret
}
-func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:234956:12: */
+func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236934: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+36984, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37080, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36988, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+37084, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 2
}
- } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36991, aBuf+uintptr(nBuf-2), uint64(2)) {
+ } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+37087, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_Vowel(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
ret = 1
@@ -191081,7 +192663,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sql
break
case 'n':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36994, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37090, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_Vowel(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
ret = 1
@@ -191098,7 +192680,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sql
//
//
-func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* sqlite3.c:234993:13: */
+func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236971: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' {
@@ -191114,7 +192696,7 @@ func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* sqlite3.c
}
}
-func fts5PorterCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* sqlite3.c:235011:12: */
+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: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -191212,7 +192794,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 { /* sqlite3.c:235080:12: */
+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: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -191233,20 +192815,20 @@ func fts5PorterTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, flags i
// *************************************************************************
//
// Start of trigram implementation.
-type TrigramTokenizer1 = struct{ FbFold int32 } /* sqlite3.c:235100:9 */
+type TrigramTokenizer1 = struct{ FbFold int32 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237078:9 */
// *************************************************************************
//
// Start of trigram implementation.
-type TrigramTokenizer = TrigramTokenizer1 /* sqlite3.c:235100:33 */
+type TrigramTokenizer = TrigramTokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237078:33 */
// Free a trigram tokenizer.
-func fts5TriDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:235108:13: */
+func fts5TriDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237086:13: */
Xsqlite3_free(tls, p)
}
// Allocate a trigram tokenizer.
-func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:235115:12: */
+func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237093:12: */
var rc int32 = SQLITE_OK
var pNew uintptr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(TrigramTokenizer{})))
_ = pUnused
@@ -191257,7 +192839,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+36998) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+37094) {
if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = SQLITE_ERROR
} else {
@@ -191277,7 +192859,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 { /* sqlite3.c:235153:12: */
+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: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -191430,7 +193012,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 { /* sqlite3.c:235213:12: */
+func sqlite3Fts5TokenizerPattern(tls *libc.TLS, xCreate uintptr, pTok uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237191:12: */
if xCreate == *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{fts5TriCreate})) {
@@ -191444,27 +193026,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 { /* sqlite3.c:235227:12: */
+func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237205:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
*(*[4]BuiltinTokenizer)(unsafe.Pointer(bp /* aBuiltin */)) = [4]BuiltinTokenizer{
- {FzName: ts + 36709, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 36805, 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 + 37013, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 37109, 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 + 37019, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 37115, 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 + 37026, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 37122, 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
@@ -191490,7 +193072,7 @@ func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:
type BuiltinTokenizer = struct {
FzName uintptr
Fx Fts5_tokenizer
-} /* sqlite3.c:235228:3 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237206:3 */
// 2012-05-25
//
@@ -191513,7 +193095,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 { /* sqlite3.c:235283:12: */
+func fts5_remove_diacritic(tls *libc.TLS, c int32, bComplex int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237261:12: */
bp := tls.Alloc(378)
defer tls.Free(378)
@@ -191584,7 +193166,7 @@ func fts5_remove_diacritic(tls *libc.TLS, c int32, bComplex int32) int32 { /* sq
// Return true if the argument interpreted as a unicode codepoint
// is a diacritical modifier character.
-func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* sqlite3.c:235350:12: */
+func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237328:12: */
var mask0 uint32 = uint32(0x08029FDF)
var mask1 uint32 = uint32(0x000361F8)
if c < 768 || c > 817 {
@@ -191603,7 +193185,7 @@ func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* sqlite3.c:
//
// 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 { /* sqlite3.c:235369:12: */
+func sqlite3Fts5UnicodeFold(tls *libc.TLS, c int32, eRemoveDiacritic int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237347:12: */
var ret int32 = c
@@ -191664,7 +193246,7 @@ type TableEntry = struct {
FiCode uint16
Fflags uint8
FnRange uint8
-} /* sqlite3.c:235387:16 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237365: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)},
@@ -191722,7 +193304,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)},
-} /* sqlite3.c:235391:5 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237369: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),
@@ -191734,9 +193316,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),
-} /* sqlite3.c:235448:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237426:31 */
-func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int32 { /* sqlite3.c:235505:12: */
+func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237483:12: */
*(*U8)(unsafe.Pointer(aArray)) = U8(1)
switch int32(*(*int8)(unsafe.Pointer(zCat))) {
case 'C':
@@ -191933,7 +193515,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),
-} /* sqlite3.c:235623:12 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237601: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),
@@ -192112,7 +193694,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),
-} /* sqlite3.c:235627:12 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237605: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),
@@ -192291,9 +193873,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),
-} /* sqlite3.c:235806:12 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237784:12 */
-func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* sqlite3.c:235986:12: */
+func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237964:12: */
var iRes int32 = -1
var iHi int32
var iLo int32
@@ -192333,7 +193915,7 @@ func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* sqlite3.c:2
return 9
}
-func sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) { /* sqlite3.c:236017:13: */
+func sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237995:13: */
var i int32 = 0
var iTbl int32 = 0
for i < 128 {
@@ -192365,7 +193947,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 { /* sqlite3.c:236055:12: */
+func sqlite3Fts5GetVarint32(tls *libc.TLS, p uintptr, v uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238033:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -192440,7 +194022,7 @@ func sqlite3Fts5GetVarint32(tls *libc.TLS, p uintptr, v uintptr) int32 { /* 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 sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c:236133:11: */
+func sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238111:11: */
var a U32
var b U32
var s U32
@@ -192616,7 +194198,7 @@ func sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c
// 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 { /* sqlite3.c:236327:26: */
+func fts5PutVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238305:26: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -192635,7 +194217,7 @@ func fts5PutVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:23632
return 9
}
n = 0
- for ok := true; ok; ok = v != uint64(0) {
+ for __ccgo := true; __ccgo; __ccgo = v != uint64(0) {
*(*U8)(unsafe.Pointer(bp + uintptr(libc.PostIncInt32(&n, 1)))) = U8(v&uint64(0x7f) | uint64(0x80))
v >>= 7
}
@@ -192662,7 +194244,7 @@ __3:
return n
}
-func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:236352:12: */
+func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238330:12: */
if v <= uint64(0x7f) {
*(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f))
return 1
@@ -192675,7 +194257,7 @@ func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:
return fts5PutVarint64(tls, p, v)
}
-func sqlite3Fts5GetVarintLen(tls *libc.TLS, iVal U32) int32 { /* sqlite3.c:236366:12: */
+func sqlite3Fts5GetVarintLen(tls *libc.TLS, iVal U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238344:12: */
if iVal < U32(int32(1)<<14) {
return 2
@@ -192735,7 +194317,7 @@ type Fts5VocabTable1 = struct {
FpGlobal uintptr
FeType int32
FbBusy uint32
-} /* sqlite3.c:236419:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238397:9 */
// 2015 May 08
//
@@ -192775,7 +194357,7 @@ type Fts5VocabTable1 = struct {
// #include "fts5Int.h"
-type Fts5VocabTable = Fts5VocabTable1 /* sqlite3.c:236419:31 */
+type Fts5VocabTable = Fts5VocabTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238397:31 */
type Fts5VocabCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpStmt uintptr
@@ -192796,9 +194378,9 @@ type Fts5VocabCursor1 = struct {
FiInstPos I64
FiInstOff int32
F__ccgo_pad4 [4]byte
-} /* sqlite3.c:236420:9 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238398:9 */
-type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:236420:32 */
+type Fts5VocabCursor = Fts5VocabCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238398:32 */
// Bits for the mask used as the idxNum value by xBestIndex/xFilter.
@@ -192806,7 +194388,7 @@ type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:236420:32 */
// 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 { /* sqlite3.c:236480:12: */
+func fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238458:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -192814,14 +194396,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+37034) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, ts+37130) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL
- } else if Xsqlite3_stricmp(tls, zCopy, ts+37038) == 0 {
+ } else if Xsqlite3_stricmp(tls, zCopy, ts+37134) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_ROW
- } else if Xsqlite3_stricmp(tls, zCopy, ts+37042) == 0 {
+ } else if Xsqlite3_stricmp(tls, zCopy, ts+37138) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_INSTANCE
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37051, libc.VaList(bp, zCopy))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37147, libc.VaList(bp, zCopy))
*(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = SQLITE_ERROR
}
Xsqlite3_free(tls, zCopy)
@@ -192831,14 +194413,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 { /* sqlite3.c:236509:12: */
+func fts5VocabDisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238487: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 { /* sqlite3.c:236518:12: */
+func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238496:12: */
var pTab uintptr = pVtab
Xsqlite3_free(tls, pTab)
return SQLITE_OK
@@ -192863,24 +194445,24 @@ func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:2
// 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 { /* sqlite3.c:236545:12: */
+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: */
bp := tls.Alloc(36)
defer tls.Free(36)
*(*[3]uintptr)(unsafe.Pointer(bp + 8 /* azSchema */)) = [3]uintptr{
- ts + 37085,
- ts + 37125,
- ts + 37160,
+ ts + 37181,
+ ts + 37221,
+ ts + 37256,
}
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+23072, *(*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+23155, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0)
if argc != 5 && bDb == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37203, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37299, 0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_ERROR
} else {
var nByte int32 // Bytes of space to allocate
@@ -192933,11 +194515,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 { /* sqlite3.c:236607:12: */
+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: */
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 { /* sqlite3.c:236617:12: */
+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: */
return fts5VocabInitVtab(tls, db, pAux, argc, argv, ppVtab, pzErr)
}
@@ -192951,7 +194533,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 { /* sqlite3.c:236640:12: */
+func fts5VocabBestIndexMethod(tls *libc.TLS, pUnused uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238618:12: */
var i int32
var iTermEq int32 = -1
var iTermGe int32 = -1
@@ -193019,7 +194601,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 { /* sqlite3.c:236702:12: */
+func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238680:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -193032,11 +194614,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+37236, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ ts+37332, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
return SQLITE_ERROR
}
zSql = sqlite3Fts5Mprintf(tls, bp+64,
- ts+37267,
+ ts+37363,
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))
@@ -193060,7 +194642,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+37318, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ ts+37414, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = SQLITE_ERROR
}
} else {
@@ -193086,7 +194668,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) { /* sqlite3.c:236770:13: */
+func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238748:13: */
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).Frowid = int64(0)
sqlite3Fts5IterClose(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpIter)
sqlite3Fts5StructureRelease(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpStruct)
@@ -193100,7 +194682,7 @@ func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:236770:13:
// 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 { /* sqlite3.c:236786:12: */
+func fts5VocabCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238764:12: */
var pCsr uintptr = pCursor
fts5VocabResetCursor(tls, pCsr)
sqlite3Fts5BufferFree(tls, pCsr+96)
@@ -193109,7 +194691,7 @@ func fts5VocabCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:2
return SQLITE_OK
}
-func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:236795:12: */
+func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238773:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -193140,7 +194722,7 @@ func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:
return *(*int32)(unsafe.Pointer(bp + 4 /* rc */))
}
-func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:236817:12: */
+func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238795: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
@@ -193169,7 +194751,7 @@ func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:236
}
// Advance the cursor to the next row in the table.
-func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:236849:12: */
+func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238827:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -193313,7 +194895,7 @@ func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:23
}
// 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 { /* sqlite3.c:236977:12: */
+func fts5VocabFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, zUnused uintptr, nUnused int32, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238955:12: */
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pCsr uintptr = pCursor
var eType int32 = (*Fts5VocabTable)(unsafe.Pointer(pTab)).FeType
@@ -193354,7 +194936,7 @@ func fts5VocabFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, zUnused
if pLe != 0 {
var zCopy uintptr = Xsqlite3_value_text(tls, pLe)
if zCopy == uintptr(0) {
- zCopy = ts + 1546 /* "" */
+ zCopy = ts + 1515 /* "" */
}
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FnLeTerm = Xsqlite3_value_bytes(tls, pLe)
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FzLeTerm = Xsqlite3_malloc(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FnLeTerm+1)
@@ -193387,12 +194969,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 { /* sqlite3.c:237051:12: */
+func fts5VocabEofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239029:12: */
var pCsr uintptr = pCursor
return (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FbEof
}
-func fts5VocabColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* sqlite3.c:237056:12: */
+func fts5VocabColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239034: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
@@ -193465,16 +195047,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 { /* sqlite3.c:237128:12: */
+func fts5VocabRowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239106: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 { /* sqlite3.c:237137:12: */
+func sqlite3Fts5VocabInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239115:12: */
var p uintptr = pGlobal
- return Xsqlite3_create_module_v2(tls, db, ts+37344, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0))
+ return Xsqlite3_create_module_v2(tls, db, ts+37440, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0))
}
var fts5Vocab = Sqlite3_module{
@@ -193491,7 +195073,7 @@ var fts5Vocab = Sqlite3_module{
/* xEof */ FxEof: 0,
/* xColumn */ FxColumn: 0,
/* xRowid */ FxRowid: 0,
-} /* sqlite3.c:237138:31 */
+} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239116:31 */
//************* End of fts5.c ***********************************************
//************* Begin file stmt.c *******************************************
@@ -193518,949 +195100,963 @@ var fts5Vocab = Sqlite3_module{
//************* End of stmt.c ***********************************************
// Return the source-id for this library
-func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* sqlite3.c:237478:23: */
- return ts + 37354 /* "2022-01-06 13:25..." */
+func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239456:23: */
+ return ts + 37450 /* "2022-05-06 15:25..." */
}
//************************* End of sqlite3.c *****************************
func init() {
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aEQb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 210 // sqlite3.c:21343:51:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aGTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 216 // sqlite3.c:21344:51:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aLTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 204 // sqlite3.c:21342:51:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 16)) = jsonArrayStep // sqlite3.c:193889:7:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 24)) = jsonArrayFinal // sqlite3.c:193889:24:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 32)) = jsonArrayValue // sqlite3.c:193889:41:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 56)) = jsonObjectStep // sqlite3.c:193891:7:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 64)) = jsonObjectFinal // sqlite3.c:193891:24:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 72)) = jsonObjectValue // sqlite3.c:193891:41:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg1)) + 0)) = geopolyBBoxStep // sqlite3.c:200143:8:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg1)) + 8)) = geopolyBBoxFinal // sqlite3.c:200143:25:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 24)) = renameColumnFunc // sqlite3.c:110216:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 96)) = renameTableFunc // sqlite3.c:110217:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 168)) = renameTableTest // sqlite3.c:110218:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 240)) = dropColumnFunc // sqlite3.c:110219:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 312)) = renameQuotefixFunc // sqlite3.c:110220:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 24)) = versionFunc // sqlite3.c:122378:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 96)) = versionFunc // sqlite3.c:122379:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 168)) = versionFunc // sqlite3.c:122380:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 240)) = versionFunc // sqlite3.c:122381:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 312)) = soundexFunc // sqlite3.c:122385:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 384)) = loadExt // sqlite3.c:122388:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 456)) = loadExt // sqlite3.c:122389:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 528)) = compileoptionusedFunc // sqlite3.c:122395:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 600)) = compileoptiongetFunc // sqlite3.c:122396:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 672)) = versionFunc // sqlite3.c:122398:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 744)) = versionFunc // sqlite3.c:122399:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 816)) = versionFunc // sqlite3.c:122400:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 888)) = versionFunc // sqlite3.c:122402:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 960)) = trimFunc // sqlite3.c:122405:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1032)) = trimFunc // sqlite3.c:122406:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1104)) = trimFunc // sqlite3.c:122407:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1176)) = trimFunc // sqlite3.c:122408:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1248)) = trimFunc // sqlite3.c:122409:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1320)) = trimFunc // sqlite3.c:122410:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1392)) = minmaxFunc // sqlite3.c:122411:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1536)) = minmaxStep // sqlite3.c:122413:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1544)) = minMaxFinalize // sqlite3.c:122413:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1552)) = minMaxValue // sqlite3.c:122413:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1608)) = minmaxFunc // sqlite3.c:122415:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1752)) = minmaxStep // sqlite3.c:122417:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1760)) = minMaxFinalize // sqlite3.c:122417:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1768)) = minMaxValue // sqlite3.c:122417:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1824)) = typeofFunc // sqlite3.c:122419:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1896)) = lengthFunc // sqlite3.c:122420:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1968)) = instrFunc // sqlite3.c:122421:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2040)) = printfFunc // sqlite3.c:122422:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2112)) = unicodeFunc // sqlite3.c:122423:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2184)) = charFunc // sqlite3.c:122424:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2256)) = absFunc // sqlite3.c:122425:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2328)) = roundFunc // sqlite3.c:122427:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2400)) = roundFunc // sqlite3.c:122428:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2472)) = upperFunc // sqlite3.c:122430:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2544)) = lowerFunc // sqlite3.c:122431:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2616)) = hexFunc // sqlite3.c:122432:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2688)) = versionFunc // sqlite3.c:122433:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2760)) = randomFunc // sqlite3.c:122434:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2832)) = randomBlob // sqlite3.c:122435:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2904)) = nullifFunc // sqlite3.c:122436:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2976)) = versionFunc // sqlite3.c:122437:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3048)) = sourceidFunc // sqlite3.c:122438:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3120)) = errlogFunc // sqlite3.c:122439:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3192)) = quoteFunc // sqlite3.c:122440:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3264)) = last_insert_rowid // sqlite3.c:122441:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3336)) = changes // sqlite3.c:122442:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3408)) = total_changes // sqlite3.c:122443:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3480)) = replaceFunc // sqlite3.c:122444:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3552)) = zeroblobFunc // sqlite3.c:122445:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3624)) = substrFunc // sqlite3.c:122446:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3696)) = substrFunc // sqlite3.c:122447:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3768)) = substrFunc // sqlite3.c:122448:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3840)) = substrFunc // sqlite3.c:122449:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3912)) = sumStep // sqlite3.c:122450:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3920)) = sumFinalize // sqlite3.c:122450:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3928)) = sumFinalize // sqlite3.c:122450:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3936)) = sumInverse // sqlite3.c:122450:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3984)) = sumStep // sqlite3.c:122451:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3992)) = totalFinalize // sqlite3.c:122451:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4000)) = totalFinalize // sqlite3.c:122451:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4008)) = sumInverse // sqlite3.c:122451:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4056)) = sumStep // sqlite3.c:122452:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4064)) = avgFinalize // sqlite3.c:122452:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4072)) = avgFinalize // sqlite3.c:122452:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4080)) = sumInverse // sqlite3.c:122452:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4128)) = countStep // sqlite3.c:122453:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4136)) = countFinalize // sqlite3.c:122453:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4144)) = countFinalize // sqlite3.c:122453:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4152)) = countInverse // sqlite3.c:122453:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4200)) = countStep // sqlite3.c:122456:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4208)) = countFinalize // sqlite3.c:122456:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4216)) = countFinalize // sqlite3.c:122456:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4224)) = countInverse // sqlite3.c:122456:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4272)) = groupConcatStep // sqlite3.c:122458:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4280)) = groupConcatFinalize // sqlite3.c:122458:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4288)) = groupConcatValue // sqlite3.c:122458:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4296)) = groupConcatInverse // sqlite3.c:122458:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4344)) = groupConcatStep // sqlite3.c:122460:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4352)) = groupConcatFinalize // sqlite3.c:122460:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4360)) = groupConcatValue // sqlite3.c:122460:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4368)) = groupConcatInverse // sqlite3.c:122460:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4400 /* .pUserData */)) = uintptr(unsafe.Pointer(&globInfo)) // sqlite3.c:122463:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4416)) = likeFunc // sqlite3.c:122463:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4472 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // sqlite3.c:122468:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4488)) = likeFunc // sqlite3.c:122468:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4544 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // sqlite3.c:122469:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4560)) = likeFunc // sqlite3.c:122469:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4760)) = xCeil // sqlite3.c:122477:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4776)) = ceilingFunc // sqlite3.c:122477:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4832)) = xCeil // sqlite3.c:122478:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4848)) = ceilingFunc // sqlite3.c:122478:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4904)) = xFloor // sqlite3.c:122479:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4920)) = ceilingFunc // sqlite3.c:122479:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4976)) = libc.Xtrunc // sqlite3.c:122481:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4992)) = ceilingFunc // sqlite3.c:122481:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5064)) = logFunc // sqlite3.c:122483:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5136)) = logFunc // sqlite3.c:122484:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5208)) = logFunc // sqlite3.c:122485:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5280)) = logFunc // sqlite3.c:122486:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5352)) = logFunc // sqlite3.c:122487:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5408)) = libc.Xexp // sqlite3.c:122488:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5424)) = math1Func // sqlite3.c:122488:5:
- *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5480)) = libc.Xpow // sqlite3.c:122489:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5496)) = math2Func // sqlite3.c:122489:5:
- *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5552)) = libc.Xpow // sqlite3.c:122490:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5568)) = math2Func // sqlite3.c:122490:5:
- *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5624)) = libc.Xfmod // sqlite3.c:122491:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5640)) = math2Func // sqlite3.c:122491:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5696)) = libc.Xacos // sqlite3.c:122492:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5712)) = math1Func // sqlite3.c:122492:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5768)) = libc.Xasin // sqlite3.c:122493:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5784)) = math1Func // sqlite3.c:122493:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5840)) = libc.Xatan // sqlite3.c:122494:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5856)) = math1Func // sqlite3.c:122494:5:
- *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5912)) = libc.Xatan2 // sqlite3.c:122495:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5928)) = math2Func // sqlite3.c:122495:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5984)) = libc.Xcos // sqlite3.c:122496:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6000)) = math1Func // sqlite3.c:122496:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6056)) = libc.Xsin // sqlite3.c:122497:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6072)) = math1Func // sqlite3.c:122497:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6128)) = libc.Xtan // sqlite3.c:122498:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6144)) = math1Func // sqlite3.c:122498:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6200)) = libc.Xcosh // sqlite3.c:122499:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6216)) = math1Func // sqlite3.c:122499:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6272)) = libc.Xsinh // sqlite3.c:122500:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6288)) = math1Func // sqlite3.c:122500:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6344)) = libc.Xtanh // sqlite3.c:122501:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6360)) = math1Func // sqlite3.c:122501:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6416)) = libc.Xacosh // sqlite3.c:122503:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6432)) = math1Func // sqlite3.c:122503:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6488)) = libc.Xasinh // sqlite3.c:122504:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6504)) = math1Func // sqlite3.c:122504:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6560)) = libc.Xatanh // sqlite3.c:122505:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6576)) = math1Func // sqlite3.c:122505:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6632)) = libc.Xsqrt // sqlite3.c:122507:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6648)) = math1Func // sqlite3.c:122507:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6704)) = degToRad // sqlite3.c:122508:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6720)) = math1Func // sqlite3.c:122508:5:
- *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6776)) = radToDeg // sqlite3.c:122509:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6792)) = math1Func // sqlite3.c:122509:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6864)) = piFunc // sqlite3.c:122510:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6936)) = signFunc // sqlite3.c:122512:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7008)) = versionFunc // sqlite3.c:122513:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7080)) = versionFunc // sqlite3.c:122514:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 8 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:23897:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 24)) = juliandayFunc // sqlite3.c:23897:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 80 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:23898:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 96)) = dateFunc // sqlite3.c:23898:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 152 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:23899:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 168)) = timeFunc // sqlite3.c:23899:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 224 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:23900:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 240)) = datetimeFunc // sqlite3.c:23900:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 296 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:23901:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 312)) = strftimeFunc // sqlite3.c:23901:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 384)) = ctimeFunc // sqlite3.c:23902:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 456)) = ctimestampFunc // sqlite3.c:23903:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 528)) = cdateFunc // sqlite3.c:23904:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 16)) = jsonRemoveFunc // sqlite3.c:193859:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 40)) = jsonArrayFunc // sqlite3.c:193860:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 64)) = jsonArrayLengthFunc // sqlite3.c:193861:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 88)) = jsonArrayLengthFunc // sqlite3.c:193862:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 112)) = jsonExtractFunc // sqlite3.c:193863:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 136)) = jsonSetFunc // sqlite3.c:193864:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 160)) = jsonObjectFunc // sqlite3.c:193865:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 184)) = jsonPatchFunc // sqlite3.c:193866:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 208)) = jsonQuoteFunc // sqlite3.c:193867:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 232)) = jsonRemoveFunc // sqlite3.c:193868:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 256)) = jsonReplaceFunc // sqlite3.c:193869:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 280)) = jsonSetFunc // sqlite3.c:193870:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 304)) = jsonTypeFunc // sqlite3.c:193871:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 328)) = jsonTypeFunc // sqlite3.c:193872:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 352)) = jsonValidFunc // sqlite3.c:193873:39:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 0)) = geopolyAreaFunc // sqlite3.c:200125:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 24)) = geopolyBlobFunc // sqlite3.c:200126:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 48)) = geopolyJsonFunc // sqlite3.c:200127:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 72)) = geopolySvgFunc // sqlite3.c:200128:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 96)) = geopolyWithinFunc // sqlite3.c:200129:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 120)) = geopolyContainsPointFunc // sqlite3.c:200130:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 144)) = geopolyOverlapFunc // sqlite3.c:200131:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 168)) = geopolyDebugFunc // sqlite3.c:200132:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 192)) = geopolyBBoxFunc // sqlite3.c:200133:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 216)) = geopolyXformFunc // sqlite3.c:200134:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 240)) = geopolyRegularFunc // sqlite3.c:200135:8:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 264)) = geopolyCcwFunc // sqlite3.c:200136:8:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 8 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonEachModule)) // sqlite3.c:193898:31:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 24 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonTreeModule)) // sqlite3.c:193899:31:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aEQb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 210 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21691:51:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aGTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 216 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21692:51:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aLTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 204 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21690:51:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 0)) = geopolyBBoxStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:202120:8:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 8)) = geopolyBBoxFinal // testdata/sqlite-amalgamation-3380500/sqlite3.c:202120:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 24)) = renameColumnFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111122:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 96)) = renameTableFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111123:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 168)) = renameTableTest // testdata/sqlite-amalgamation-3380500/sqlite3.c:111124:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 240)) = dropColumnFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111125:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 312)) = renameQuotefixFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111126:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 24)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123327:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 96)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123328:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 168)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123329:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 240)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123330:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 312)) = soundexFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123334:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 384)) = loadExt // testdata/sqlite-amalgamation-3380500/sqlite3.c:123337:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 456)) = loadExt // testdata/sqlite-amalgamation-3380500/sqlite3.c:123338:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 528)) = compileoptionusedFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123344:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 600)) = compileoptiongetFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123345:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 672)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123347:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 744)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123348:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 816)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123349:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 888)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123352:12:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 960)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123354:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1032)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123355:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1104)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123356:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1176)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123357:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1248)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123358:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1320)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123359:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1392)) = minmaxFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123360:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1536)) = minmaxStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123362:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1544)) = minMaxFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123362:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1552)) = minMaxValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123362:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1608)) = minmaxFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123364:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1752)) = minmaxStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123366:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1760)) = minMaxFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123366:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1768)) = minMaxValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123366:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1824)) = typeofFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123368:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1896)) = subtypeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123369:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1968)) = lengthFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123370:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2040)) = instrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123371:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2112)) = printfFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123372:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2184)) = printfFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123373:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2256)) = unicodeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123374:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2328)) = charFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123375:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2400)) = absFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123376:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2472)) = roundFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123378:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2544)) = roundFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123379:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2616)) = upperFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123381:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2688)) = lowerFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123382:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2760)) = hexFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123383:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2832)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123384:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2904)) = randomFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123385:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2976)) = randomBlob // testdata/sqlite-amalgamation-3380500/sqlite3.c:123386:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3048)) = nullifFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123387:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3120)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123388:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3192)) = sourceidFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123389:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3264)) = errlogFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123390:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3336)) = quoteFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123391:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3408)) = last_insert_rowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:123392:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3480)) = changes // testdata/sqlite-amalgamation-3380500/sqlite3.c:123393:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3552)) = total_changes // testdata/sqlite-amalgamation-3380500/sqlite3.c:123394:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3624)) = replaceFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123395:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3696)) = zeroblobFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123396:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3768)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123397:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3840)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123398:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3912)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123399:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3984)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123400:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4056)) = sumStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4064)) = sumFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4072)) = sumFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4080)) = sumInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4128)) = sumStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4136)) = totalFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4144)) = totalFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4152)) = sumInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4200)) = sumStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4208)) = avgFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4216)) = avgFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4224)) = sumInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4272)) = countStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4280)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4288)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4296)) = countInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4344)) = countStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4352)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4360)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4368)) = countInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4416)) = groupConcatStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4424)) = groupConcatFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4432)) = groupConcatValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4440)) = groupConcatInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4488)) = groupConcatStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4496)) = groupConcatFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4504)) = groupConcatValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4512)) = groupConcatInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4544 /* .pUserData */)) = uintptr(unsafe.Pointer(&globInfo)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:123414:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4560)) = likeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123414:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4616 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:123419:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4632)) = likeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123419:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4688 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:123420:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4704)) = likeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123420:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4904)) = xCeil // testdata/sqlite-amalgamation-3380500/sqlite3.c:123428:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4920)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123428:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4976)) = xCeil // testdata/sqlite-amalgamation-3380500/sqlite3.c:123429:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4992)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123429:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5048)) = xFloor // testdata/sqlite-amalgamation-3380500/sqlite3.c:123430:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5064)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123430:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5120)) = libc.Xtrunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123432:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5136)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123432:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5208)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123434:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5280)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123435:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5352)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123436:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5424)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123437:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5496)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123438:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5552)) = libc.Xexp // testdata/sqlite-amalgamation-3380500/sqlite3.c:123439:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5568)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123439:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5624)) = libc.Xpow // testdata/sqlite-amalgamation-3380500/sqlite3.c:123440:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5640)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123440:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5696)) = libc.Xpow // testdata/sqlite-amalgamation-3380500/sqlite3.c:123441:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5712)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123441:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5768)) = libc.Xfmod // testdata/sqlite-amalgamation-3380500/sqlite3.c:123442:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5784)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123442:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5840)) = libc.Xacos // testdata/sqlite-amalgamation-3380500/sqlite3.c:123443:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5856)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123443:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5912)) = libc.Xasin // testdata/sqlite-amalgamation-3380500/sqlite3.c:123444:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5928)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123444:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5984)) = libc.Xatan // testdata/sqlite-amalgamation-3380500/sqlite3.c:123445:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6000)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123445:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6056)) = libc.Xatan2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:123446:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6072)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123446:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6128)) = libc.Xcos // testdata/sqlite-amalgamation-3380500/sqlite3.c:123447:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6144)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123447:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6200)) = libc.Xsin // testdata/sqlite-amalgamation-3380500/sqlite3.c:123448:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6216)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123448:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6272)) = libc.Xtan // testdata/sqlite-amalgamation-3380500/sqlite3.c:123449:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6288)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123449:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6344)) = libc.Xcosh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123450:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6360)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123450:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6416)) = libc.Xsinh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123451:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6432)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123451:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6488)) = libc.Xtanh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123452:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6504)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123452:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6560)) = libc.Xacosh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123454:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6576)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123454:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6632)) = libc.Xasinh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123455:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6648)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123455:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6704)) = libc.Xatanh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123456:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6720)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123456:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6776)) = libc.Xsqrt // testdata/sqlite-amalgamation-3380500/sqlite3.c:123458:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6792)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123458:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6848)) = degToRad // testdata/sqlite-amalgamation-3380500/sqlite3.c:123459:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6864)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123459:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6920)) = radToDeg // testdata/sqlite-amalgamation-3380500/sqlite3.c:123460:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6936)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123460:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7008)) = piFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123461:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7080)) = signFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123463:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7152)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123464:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7224)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123465:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 8 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24403:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 24)) = juliandayFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24403:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 80 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24404:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 96)) = unixepochFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24404:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 152 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24405:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 168)) = dateFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24405:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 224 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24406:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 240)) = timeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24406:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 296 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24407:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 312)) = datetimeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24407:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 368 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24408:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 384)) = strftimeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24408:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 456)) = ctimeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24409:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 528)) = ctimestampFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24410:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 600)) = cdateFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24411:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 0)) = geopolyAreaFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202102:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 24)) = geopolyBlobFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202103:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 48)) = geopolyJsonFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202104:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 72)) = geopolySvgFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202105:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 96)) = geopolyWithinFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202106:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 120)) = geopolyContainsPointFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202107:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 144)) = geopolyOverlapFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202108:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 168)) = geopolyDebugFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202109:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 192)) = geopolyBBoxFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202110:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 216)) = geopolyXformFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202111:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 240)) = geopolyRegularFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202112:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 264)) = geopolyCcwFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202113:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 24)) = jsonRemoveFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195871:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 96)) = jsonArrayFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195872:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 168)) = jsonArrayLengthFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195873:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 240)) = jsonArrayLengthFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195874:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 312)) = jsonExtractFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195875:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 384)) = jsonExtractFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195876:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 456)) = jsonExtractFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195877:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 528)) = jsonSetFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195878:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 600)) = jsonObjectFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195879:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 672)) = jsonPatchFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195880:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 744)) = jsonQuoteFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195881:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 816)) = jsonRemoveFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195882:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 888)) = jsonReplaceFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195883:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 960)) = jsonSetFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195884:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1032)) = jsonTypeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195885:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1104)) = jsonTypeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195886:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1176)) = jsonValidFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195887:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1248)) = jsonArrayStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1256)) = jsonArrayFinal // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1264)) = jsonArrayValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1272)) = jsonGroupInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1320)) = jsonObjectStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1328)) = jsonObjectFinal // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1336)) = jsonObjectValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1344)) = jsonGroupInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 8 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonEachModule)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:195913:31:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 24 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonTreeModule)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:195914:31:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, int32) int32
- }{posixOpen})) // sqlite3.c:34625:21:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 32 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, int32) int32 }{libc.Xclose})) // sqlite3.c:34628:21:
+ }{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:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 56 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32) int32
- }{libc.Xaccess})) // sqlite3.c:34631:21:
+ }{libc.Xaccess})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35178: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})) // sqlite3.c:34634:21:
+ }{libc.Xgetcwd})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35181: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})) // sqlite3.c:34637:21:
+ }{libc.Xstat})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35184: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})) // sqlite3.c:34650:21:
+ }{libc.Xfstat})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35197:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 152 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, int32, X__off_t) int32
- }{libc.Xftruncate})) // sqlite3.c:34654:21:
+ }{libc.Xftruncate})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35201: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})) // sqlite3.c:34657:21:
+ }{libc.Xfcntl})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35204: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})) // sqlite3.c:34660:21:
+ }{libc.Xread})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35207: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})) // sqlite3.c:34677:21:
+ }{libc.Xwrite})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35224:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 344 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, int32, X__mode_t) int32
- }{libc.Xfchmod})) // sqlite3.c:34696:21:
+ }{libc.Xfchmod})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35243:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 392 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr) int32
- }{libc.Xunlink})) // sqlite3.c:34706:21:
+ }{libc.Xunlink})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35253:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 416 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr) int32
- }{openDirectory})) // sqlite3.c:34709:25:
+ }{openDirectory})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35256:25:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 440 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, X__mode_t) int32
- }{libc.Xmkdir})) // sqlite3.c:34712:21:
+ }{libc.Xmkdir})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35259:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 464 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr) int32
- }{libc.Xrmdir})) // sqlite3.c:34715:21:
+ }{libc.Xrmdir})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35262:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, int32, X__uid_t, X__gid_t) int32
- }{libc.Xfchown})) // sqlite3.c:34719:21:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 512 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) X__uid_t }{libc.Xgeteuid})) // sqlite3.c:34726:21:
+ }{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) X__uid_t }{libc.Xgeteuid})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35273: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, X__off_t) uintptr
- }{libc.Xmmap})) // sqlite3.c:34733:21:
+ }{libc.Xmmap})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35280: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})) // sqlite3.c:34740:21:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 608 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{unixGetpagesize})) // sqlite3.c:34754:21:
+ }{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:
*(*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})) // sqlite3.c:34761:21:
+ }{libc.Xreadlink})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35308: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})) // sqlite3.c:34768:22:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 40)) = unixOpen // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 48)) = unixDelete // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 56)) = unixAccess // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 64)) = unixFullPathname // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 72)) = unixDlOpen // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 80)) = unixDlError // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 88)) = unixDlSym // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 96)) = unixDlClose // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 104)) = unixRandomness // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 112)) = unixSleep // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 120)) = unixCurrentTime // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 128)) = unixGetLastError // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 136)) = unixCurrentTimeInt64 // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 144)) = unixSetSystemCall // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 152)) = unixGetSystemCall // sqlite3.c:42297:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 160)) = unixNextSystemCall // sqlite3.c:42297:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 200 /* .pAppData */)) = uintptr(unsafe.Pointer(&nolockIoFinder)) // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 208)) = unixOpen // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 216)) = unixDelete // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 224)) = unixAccess // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 232)) = unixFullPathname // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 240)) = unixDlOpen // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 248)) = unixDlError // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 256)) = unixDlSym // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 264)) = unixDlClose // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 272)) = unixRandomness // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 280)) = unixSleep // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 288)) = unixCurrentTime // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 296)) = unixGetLastError // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 304)) = unixCurrentTimeInt64 // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 312)) = unixSetSystemCall // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 320)) = unixGetSystemCall // sqlite3.c:42299:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 328)) = unixNextSystemCall // sqlite3.c:42299:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 368 /* .pAppData */)) = uintptr(unsafe.Pointer(&dotlockIoFinder)) // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 376)) = unixOpen // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 384)) = unixDelete // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 392)) = unixAccess // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 400)) = unixFullPathname // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 408)) = unixDlOpen // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 416)) = unixDlError // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 424)) = unixDlSym // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 432)) = unixDlClose // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 440)) = unixRandomness // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 448)) = unixSleep // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 456)) = unixCurrentTime // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 464)) = unixGetLastError // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 472)) = unixCurrentTimeInt64 // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 480)) = unixSetSystemCall // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 488)) = unixGetSystemCall // sqlite3.c:42300:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 496)) = unixNextSystemCall // sqlite3.c:42300:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 536 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 544)) = unixOpen // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 552)) = unixDelete // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 560)) = unixAccess // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 568)) = unixFullPathname // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 576)) = unixDlOpen // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 584)) = unixDlError // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 592)) = unixDlSym // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 600)) = unixDlClose // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 608)) = unixRandomness // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 616)) = unixSleep // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 624)) = unixCurrentTime // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 632)) = unixGetLastError // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 640)) = unixCurrentTimeInt64 // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 648)) = unixSetSystemCall // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 656)) = unixGetSystemCall // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 664)) = unixNextSystemCall // sqlite3.c:42301:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 24)) = row_numberStepFunc // sqlite3.c:156969:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 32)) = row_numberValueFunc // sqlite3.c:156969:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 40)) = row_numberValueFunc // sqlite3.c:156969:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 48)) = noopStepFunc // sqlite3.c:156969:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 56 /* .zName */)) = uintptr(unsafe.Pointer(&row_numberName)) // sqlite3.c:156969:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 96)) = dense_rankStepFunc // sqlite3.c:156970:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 104)) = dense_rankValueFunc // sqlite3.c:156970:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 112)) = dense_rankValueFunc // sqlite3.c:156970:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 120)) = noopStepFunc // sqlite3.c:156970:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 128 /* .zName */)) = uintptr(unsafe.Pointer(&dense_rankName)) // sqlite3.c:156970:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 168)) = rankStepFunc // sqlite3.c:156971:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 176)) = rankValueFunc // sqlite3.c:156971:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 184)) = rankValueFunc // sqlite3.c:156971:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 192)) = noopStepFunc // sqlite3.c:156971:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 200 /* .zName */)) = uintptr(unsafe.Pointer(&rankName)) // sqlite3.c:156971:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 240)) = percent_rankStepFunc // sqlite3.c:156972:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 248)) = percent_rankValueFunc // sqlite3.c:156972:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 256)) = percent_rankValueFunc // sqlite3.c:156972:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 264)) = percent_rankInvFunc // sqlite3.c:156972:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 272 /* .zName */)) = uintptr(unsafe.Pointer(&percent_rankName)) // sqlite3.c:156972:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 312)) = cume_distStepFunc // sqlite3.c:156973:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 320)) = cume_distValueFunc // sqlite3.c:156973:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 328)) = cume_distValueFunc // sqlite3.c:156973:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 336)) = cume_distInvFunc // sqlite3.c:156973:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 344 /* .zName */)) = uintptr(unsafe.Pointer(&cume_distName)) // sqlite3.c:156973:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 384)) = ntileStepFunc // sqlite3.c:156974:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 392)) = ntileValueFunc // sqlite3.c:156974:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 400)) = ntileValueFunc // sqlite3.c:156974:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 408)) = ntileInvFunc // sqlite3.c:156974:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 416 /* .zName */)) = uintptr(unsafe.Pointer(&ntileName)) // sqlite3.c:156974:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 456)) = last_valueStepFunc // sqlite3.c:156975:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 464)) = last_valueFinalizeFunc // sqlite3.c:156975:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 472)) = last_valueValueFunc // sqlite3.c:156975:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 480)) = last_valueInvFunc // sqlite3.c:156975:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 488 /* .zName */)) = uintptr(unsafe.Pointer(&last_valueName)) // sqlite3.c:156975:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 528)) = nth_valueStepFunc // sqlite3.c:156976:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 536)) = nth_valueFinalizeFunc // sqlite3.c:156976:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 544)) = noopValueFunc // sqlite3.c:156976:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 552)) = noopStepFunc // sqlite3.c:156976:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 560 /* .zName */)) = uintptr(unsafe.Pointer(&nth_valueName)) // sqlite3.c:156976:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 600)) = first_valueStepFunc // sqlite3.c:156977:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 608)) = first_valueFinalizeFunc // sqlite3.c:156977:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 616)) = noopValueFunc // sqlite3.c:156977:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 624)) = noopStepFunc // sqlite3.c:156977:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 632 /* .zName */)) = uintptr(unsafe.Pointer(&first_valueName)) // sqlite3.c:156977:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 672)) = noopStepFunc // sqlite3.c:156978:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 680)) = noopValueFunc // sqlite3.c:156978:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 688)) = noopValueFunc // sqlite3.c:156978:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 696)) = noopStepFunc // sqlite3.c:156978:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 704 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:156978:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 744)) = noopStepFunc // sqlite3.c:156979:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 752)) = noopValueFunc // sqlite3.c:156979:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 760)) = noopValueFunc // sqlite3.c:156979:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 768)) = noopStepFunc // sqlite3.c:156979:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 776 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:156979:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 816)) = noopStepFunc // sqlite3.c:156980:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 824)) = noopValueFunc // sqlite3.c:156980:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 832)) = noopValueFunc // sqlite3.c:156980:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 840)) = noopStepFunc // sqlite3.c:156980:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 848 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:156980:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 888)) = noopStepFunc // sqlite3.c:156981:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 896)) = noopValueFunc // sqlite3.c:156981:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 904)) = noopValueFunc // sqlite3.c:156981:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 912)) = noopStepFunc // sqlite3.c:156981:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 920 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:156981:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 960)) = noopStepFunc // sqlite3.c:156982:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 968)) = noopValueFunc // sqlite3.c:156982:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 976)) = noopValueFunc // sqlite3.c:156982:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 984)) = noopStepFunc // sqlite3.c:156982:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 992 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:156982:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1032)) = noopStepFunc // sqlite3.c:156983:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1040)) = noopValueFunc // sqlite3.c:156983:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1048)) = noopValueFunc // sqlite3.c:156983:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1056)) = noopStepFunc // sqlite3.c:156983:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1064 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:156983:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&attach_func)) + 24)) = attachFunc // sqlite3.c:112587:5:
- *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 0)) = sqlite3MemMalloc // sqlite3.c:24793:6:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 8)) = sqlite3MemFree // sqlite3.c:24794:6:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 16)) = sqlite3MemRealloc // sqlite3.c:24795:6:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 24)) = sqlite3MemSize // sqlite3.c:24796:6:
- *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 32)) = sqlite3MemRoundup // sqlite3.c:24797:6:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 40)) = sqlite3MemInit // sqlite3.c:24798:6:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 48)) = sqlite3MemShutdown // sqlite3.c:24799:6:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 16)) = pcache1Init // sqlite3.c:51907:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 24)) = pcache1Shutdown // sqlite3.c:51908:5:
- *(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 32)) = pcache1Create // sqlite3.c:51909:5:
- *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 40)) = pcache1Cachesize // sqlite3.c:51910:5:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 48)) = pcache1Pagecount // sqlite3.c:51911:5:
- *(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 56)) = pcache1Fetch // sqlite3.c:51912:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 64)) = pcache1Unpin // sqlite3.c:51913:5:
- *(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 72)) = pcache1Rekey // sqlite3.c:51914:5:
- *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 80)) = pcache1Truncate // sqlite3.c:51915:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 88)) = pcache1Destroy // sqlite3.c:51916:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 96)) = pcache1Shrink // sqlite3.c:51917:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&detach_func)) + 24)) = detachFunc // sqlite3.c:112567:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoFinder)) + 0)) = dotlockIoFinderImpl // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 8)) = dotlockClose // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 16)) = unixRead // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 24)) = unixWrite // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 32)) = unixTruncate // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 40)) = unixSync // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 48)) = unixFileSize // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 56)) = dotlockLock // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 64)) = dotlockUnlock // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 72)) = dotlockCheckReservedLock // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 80)) = unixFileControl // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 88)) = unixSectorSize // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 96)) = unixDeviceCharacteristics // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 112)) = unixShmLock // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 120)) = unixShmBarrier // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 128)) = unixShmUnmap // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 136)) = unixFetch // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 144)) = unixUnfetch // sqlite3.c:39657:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 8)) = fts5CreateMethod // sqlite3.c:232557:25:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 16)) = fts5ConnectMethod // sqlite3.c:232558:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 24)) = fts5BestIndexMethod // sqlite3.c:232559:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 32)) = fts5DisconnectMethod // sqlite3.c:232560:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 40)) = fts5DestroyMethod // sqlite3.c:232561:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 48)) = fts5OpenMethod // sqlite3.c:232562:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 56)) = fts5CloseMethod // sqlite3.c:232563:25:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 64)) = fts5FilterMethod // sqlite3.c:232564:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 72)) = fts5NextMethod // sqlite3.c:232565:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 80)) = fts5EofMethod // sqlite3.c:232566:25:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 88)) = fts5ColumnMethod // sqlite3.c:232567:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 96)) = fts5RowidMethod // sqlite3.c:232568:25:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 104)) = fts5UpdateMethod // sqlite3.c:232569:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 112)) = fts5BeginMethod // sqlite3.c:232570:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 120)) = fts5SyncMethod // sqlite3.c:232571:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 128)) = fts5CommitMethod // sqlite3.c:232572:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 136)) = fts5RollbackMethod // sqlite3.c:232573:25:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 144)) = fts5FindFunctionMethod // sqlite3.c:232574:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 152)) = fts5RenameMethod // sqlite3.c:232575:25:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 160)) = fts5SavepointMethod // sqlite3.c:232576:25:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 168)) = fts5ReleaseMethod // sqlite3.c:232577:25:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 176)) = fts5RollbackToMethod // sqlite3.c:232578:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 184)) = fts5ShadowName // sqlite3.c:232579:25:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 8)) = fts5VocabCreateMethod // sqlite3.c:237140:25:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 16)) = fts5VocabConnectMethod // sqlite3.c:237141:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 24)) = fts5VocabBestIndexMethod // sqlite3.c:237142:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 32)) = fts5VocabDisconnectMethod // sqlite3.c:237143:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 40)) = fts5VocabDestroyMethod // sqlite3.c:237144:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 48)) = fts5VocabOpenMethod // sqlite3.c:237145:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 56)) = fts5VocabCloseMethod // sqlite3.c:237146:25:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 64)) = fts5VocabFilterMethod // sqlite3.c:237147:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 72)) = fts5VocabNextMethod // sqlite3.c:237148:25:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 80)) = fts5VocabEofMethod // sqlite3.c:237149:25:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 88)) = fts5VocabColumnMethod // sqlite3.c:237150:25:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 96)) = fts5VocabRowidMethod // sqlite3.c:237151:25:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 8)) = geopolyCreate // sqlite3.c:200092:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 16)) = geopolyConnect // sqlite3.c:200093:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 24)) = geopolyBestIndex // sqlite3.c:200094:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 32)) = rtreeDisconnect // sqlite3.c:200095:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 40)) = rtreeDestroy // sqlite3.c:200096:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 48)) = rtreeOpen // sqlite3.c:200097:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 56)) = rtreeClose // sqlite3.c:200098:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 64)) = geopolyFilter // sqlite3.c:200099:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 72)) = rtreeNext // sqlite3.c:200100:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 80)) = rtreeEof // sqlite3.c:200101:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 88)) = geopolyColumn // sqlite3.c:200102:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 96)) = rtreeRowid // sqlite3.c:200103:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 104)) = geopolyUpdate // sqlite3.c:200104:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 112)) = rtreeBeginTransaction // sqlite3.c:200105:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 120)) = rtreeEndTransaction // sqlite3.c:200106:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 128)) = rtreeEndTransaction // sqlite3.c:200107:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 136)) = rtreeEndTransaction // sqlite3.c:200108:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 144)) = geopolyFindFunction // sqlite3.c:200109:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 152)) = rtreeRename // sqlite3.c:200110:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 160)) = rtreeSavepoint // sqlite3.c:200111:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 184)) = rtreeShadowName // sqlite3.c:200114:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 16)) = jsonEachConnect // sqlite3.c:193791:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 24)) = jsonEachBestIndex // sqlite3.c:193792:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 32)) = jsonEachDisconnect // sqlite3.c:193793:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 48)) = jsonEachOpenEach // sqlite3.c:193795:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 56)) = jsonEachClose // sqlite3.c:193796:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 64)) = jsonEachFilter // sqlite3.c:193797:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 72)) = jsonEachNext // sqlite3.c:193798:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 80)) = jsonEachEof // sqlite3.c:193799:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 88)) = jsonEachColumn // sqlite3.c:193800:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 96)) = jsonEachRowid // sqlite3.c:193801:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 16)) = jsonEachConnect // sqlite3.c:193819:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 24)) = jsonEachBestIndex // sqlite3.c:193820:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 32)) = jsonEachDisconnect // sqlite3.c:193821:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 48)) = jsonEachOpenTree // sqlite3.c:193823:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 56)) = jsonEachClose // sqlite3.c:193824:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 64)) = jsonEachFilter // sqlite3.c:193825:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 72)) = jsonEachNext // sqlite3.c:193826:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 80)) = jsonEachEof // sqlite3.c:193827:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 88)) = jsonEachColumn // sqlite3.c:193828:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 96)) = jsonEachRowid // sqlite3.c:193829:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 8)) = memdbClose // sqlite3.c:48688:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 16)) = memdbRead // sqlite3.c:48689:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 24)) = memdbWrite // sqlite3.c:48690:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 32)) = memdbTruncate // sqlite3.c:48691:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 40)) = memdbSync // sqlite3.c:48692:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 48)) = memdbFileSize // sqlite3.c:48693:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 56)) = memdbLock // sqlite3.c:48694:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 64)) = memdbLock // sqlite3.c:48695:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 80)) = memdbFileControl // sqlite3.c:48697:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 96)) = memdbDeviceCharacteristics // sqlite3.c:48699:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 136)) = memdbFetch // sqlite3.c:48704:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 144)) = memdbUnfetch // sqlite3.c:48705:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 40)) = memdbOpen // sqlite3.c:48668:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 56)) = memdbAccess // sqlite3.c:48670:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 64)) = memdbFullPathname // sqlite3.c:48671:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 72)) = memdbDlOpen // sqlite3.c:48672:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 80)) = memdbDlError // sqlite3.c:48673:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 88)) = memdbDlSym // sqlite3.c:48674:3:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 96)) = memdbDlClose // sqlite3.c:48675:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 104)) = memdbRandomness // sqlite3.c:48676:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 112)) = memdbSleep // sqlite3.c:48677:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 128)) = memdbGetLastError // sqlite3.c:48679:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 136)) = memdbCurrentTimeInt64 // sqlite3.c:48680:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoFinder)) + 0)) = nolockIoFinderImpl // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 8)) = nolockClose // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 16)) = unixRead // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 24)) = unixWrite // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 32)) = unixTruncate // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 40)) = unixSync // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 48)) = unixFileSize // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 56)) = nolockLock // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 64)) = nolockUnlock // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 72)) = nolockCheckReservedLock // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 80)) = unixFileControl // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 88)) = unixSectorSize // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 96)) = unixDeviceCharacteristics // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 112)) = unixShmLock // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 120)) = unixShmBarrier // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 128)) = unixShmUnmap // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 136)) = unixFetch // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 144)) = unixUnfetch // sqlite3.c:39647:1:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoFinder)) + 0)) = posixIoFinderImpl // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 8)) = unixClose // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 16)) = unixRead // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 24)) = unixWrite // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 32)) = unixTruncate // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 40)) = unixSync // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 48)) = unixFileSize // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 56)) = unixLock // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 64)) = unixUnlock // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 72)) = unixCheckReservedLock // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 80)) = unixFileControl // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 88)) = unixSectorSize // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 96)) = unixDeviceCharacteristics // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 104)) = unixShmMap // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 112)) = unixShmLock // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 120)) = unixShmBarrier // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 128)) = unixShmUnmap // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 136)) = unixFetch // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 144)) = unixUnfetch // sqlite3.c:39637:1:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 16)) = pragmaVtabConnect // sqlite3.c:132183:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 24)) = pragmaVtabBestIndex // sqlite3.c:132184:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 32)) = pragmaVtabDisconnect // sqlite3.c:132185:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 48)) = pragmaVtabOpen // sqlite3.c:132187:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 56)) = pragmaVtabClose // sqlite3.c:132188:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 64)) = pragmaVtabFilter // sqlite3.c:132189:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 72)) = pragmaVtabNext // sqlite3.c:132190:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 80)) = pragmaVtabEof // sqlite3.c:132191:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 88)) = pragmaVtabColumn // sqlite3.c:132192:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 96)) = pragmaVtabRowid // sqlite3.c:132193:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 8)) = rbuVfsClose // sqlite3.c:206789:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 16)) = rbuVfsRead // sqlite3.c:206790:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 24)) = rbuVfsWrite // sqlite3.c:206791:5:
- *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 32)) = rbuVfsTruncate // sqlite3.c:206792:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 40)) = rbuVfsSync // sqlite3.c:206793:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 48)) = rbuVfsFileSize // sqlite3.c:206794:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 56)) = rbuVfsLock // sqlite3.c:206795:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 64)) = rbuVfsUnlock // sqlite3.c:206796:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 72)) = rbuVfsCheckReservedLock // sqlite3.c:206797:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 80)) = rbuVfsFileControl // sqlite3.c:206798:5:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 88)) = rbuVfsSectorSize // sqlite3.c:206799:5:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 96)) = rbuVfsDeviceCharacteristics // sqlite3.c:206800:5:
- *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 104)) = rbuVfsShmMap // sqlite3.c:206801:5:
- *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 112)) = rbuVfsShmLock // sqlite3.c:206802:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 120)) = rbuVfsShmBarrier // sqlite3.c:206803:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 128)) = rbuVfsShmUnmap // sqlite3.c:206804:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 8)) = rtreeCreate // sqlite3.c:197427:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 16)) = rtreeConnect // sqlite3.c:197428:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 24)) = rtreeBestIndex // sqlite3.c:197429:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 32)) = rtreeDisconnect // sqlite3.c:197430:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 40)) = rtreeDestroy // sqlite3.c:197431:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 48)) = rtreeOpen // sqlite3.c:197432:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 56)) = rtreeClose // sqlite3.c:197433:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 64)) = rtreeFilter // sqlite3.c:197434:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 72)) = rtreeNext // sqlite3.c:197435:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 80)) = rtreeEof // sqlite3.c:197436:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 88)) = rtreeColumn // sqlite3.c:197437:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 96)) = rtreeRowid // sqlite3.c:197438:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 104)) = rtreeUpdate // sqlite3.c:197439:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 112)) = rtreeBeginTransaction // sqlite3.c:197440:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 120)) = rtreeEndTransaction // sqlite3.c:197441:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 128)) = rtreeEndTransaction // sqlite3.c:197442:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 136)) = rtreeEndTransaction // sqlite3.c:197443:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 152)) = rtreeRename // sqlite3.c:197445:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 160)) = rtreeSavepoint // sqlite3.c:197446:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 184)) = rtreeShadowName // sqlite3.c:197449:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 8)) = fts5ApiUserData // sqlite3.c:232016:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 16)) = fts5ApiColumnCount // sqlite3.c:232017:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 24)) = fts5ApiRowCount // sqlite3.c:232018:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 32)) = fts5ApiColumnTotalSize // sqlite3.c:232019:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 40)) = fts5ApiTokenize // sqlite3.c:232020:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 48)) = fts5ApiPhraseCount // sqlite3.c:232021:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 56)) = fts5ApiPhraseSize // sqlite3.c:232022:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 64)) = fts5ApiInstCount // sqlite3.c:232023:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 72)) = fts5ApiInst // sqlite3.c:232024:3:
- *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 80)) = fts5ApiRowid // sqlite3.c:232025:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 88)) = fts5ApiColumnText // sqlite3.c:232026:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 96)) = fts5ApiColumnSize // sqlite3.c:232027:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 104)) = fts5ApiQueryPhrase // sqlite3.c:232028:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 112)) = fts5ApiSetAuxdata // sqlite3.c:232029:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 120)) = fts5ApiGetAuxdata // sqlite3.c:232030:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 128)) = fts5ApiPhraseFirst // sqlite3.c:232031:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 136)) = fts5ApiPhraseNext // sqlite3.c:232032:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 144)) = fts5ApiPhraseFirstColumn // sqlite3.c:232033:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 152)) = fts5ApiPhraseNextColumn // sqlite3.c:232034:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 8)) = memjrnlClose // sqlite3.c:99207:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 16)) = memjrnlRead // sqlite3.c:99208:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 24)) = memjrnlWrite // sqlite3.c:99209:3:
- *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 32)) = memjrnlTruncate // sqlite3.c:99210:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 40)) = memjrnlSync // sqlite3.c:99211:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 48)) = memjrnlFileSize // sqlite3.c:99212:3:
- *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 0)) = noopMutexInit // sqlite3.c:27026:5:
- *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 8)) = noopMutexEnd // sqlite3.c:27027:5:
- *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 16)) = noopMutexAlloc // sqlite3.c:27028:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 24)) = noopMutexFree // sqlite3.c:27029:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 32)) = noopMutexEnter // sqlite3.c:27030:5:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 40)) = noopMutexTry // sqlite3.c:27031:5:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 48)) = noopMutexLeave // sqlite3.c:27032:5:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 0)) = Xsqlite3_aggregate_context // sqlite3.c:128107:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 8)) = Xsqlite3_aggregate_count // sqlite3.c:128109:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 16)) = Xsqlite3_bind_blob // sqlite3.c:128113:3:
- *(*func(*libc.TLS, uintptr, int32, float64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 24)) = Xsqlite3_bind_double // sqlite3.c:128114:3:
- *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 32)) = Xsqlite3_bind_int // sqlite3.c:128115:3:
- *(*func(*libc.TLS, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 40)) = Xsqlite3_bind_int64 // sqlite3.c:128116:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 48)) = Xsqlite3_bind_null // sqlite3.c:128117:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 56)) = Xsqlite3_bind_parameter_count // sqlite3.c:128118:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 64)) = Xsqlite3_bind_parameter_index // sqlite3.c:128119:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 72)) = Xsqlite3_bind_parameter_name // sqlite3.c:128120:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 80)) = Xsqlite3_bind_text // sqlite3.c:128121:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 88)) = Xsqlite3_bind_text16 // sqlite3.c:128122:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 96)) = Xsqlite3_bind_value // sqlite3.c:128123:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 104)) = Xsqlite3_busy_handler // sqlite3.c:128124:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 112)) = Xsqlite3_busy_timeout // sqlite3.c:128125:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 120)) = Xsqlite3_changes // sqlite3.c:128126:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 128)) = Xsqlite3_close // sqlite3.c:128127:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 136)) = Xsqlite3_collation_needed // sqlite3.c:128128:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 144)) = Xsqlite3_collation_needed16 // sqlite3.c:128129:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 152)) = Xsqlite3_column_blob // sqlite3.c:128130:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 160)) = Xsqlite3_column_bytes // sqlite3.c:128131:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 168)) = Xsqlite3_column_bytes16 // sqlite3.c:128132:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 176)) = Xsqlite3_column_count // sqlite3.c:128133:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 184)) = Xsqlite3_column_database_name // sqlite3.c:128134:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 192)) = Xsqlite3_column_database_name16 // sqlite3.c:128135:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 200)) = Xsqlite3_column_decltype // sqlite3.c:128136:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 208)) = Xsqlite3_column_decltype16 // sqlite3.c:128137:3:
- *(*func(*libc.TLS, uintptr, int32) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 216)) = Xsqlite3_column_double // sqlite3.c:128138:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 224)) = Xsqlite3_column_int // sqlite3.c:128139:3:
- *(*func(*libc.TLS, uintptr, int32) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 232)) = Xsqlite3_column_int64 // sqlite3.c:128140:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 240)) = Xsqlite3_column_name // sqlite3.c:128141:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 248)) = Xsqlite3_column_name16 // sqlite3.c:128142:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 256)) = Xsqlite3_column_origin_name // sqlite3.c:128143:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 264)) = Xsqlite3_column_origin_name16 // sqlite3.c:128144:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 272)) = Xsqlite3_column_table_name // sqlite3.c:128145:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 280)) = Xsqlite3_column_table_name16 // sqlite3.c:128146:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 288)) = Xsqlite3_column_text // sqlite3.c:128147:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 296)) = Xsqlite3_column_text16 // sqlite3.c:128148:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 304)) = Xsqlite3_column_type // sqlite3.c:128149:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 312)) = Xsqlite3_column_value // sqlite3.c:128150:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 320)) = Xsqlite3_commit_hook // sqlite3.c:128151:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 328)) = Xsqlite3_complete // sqlite3.c:128152:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 336)) = Xsqlite3_complete16 // sqlite3.c:128153:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 344)) = Xsqlite3_create_collation // sqlite3.c:128154:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 352)) = Xsqlite3_create_collation16 // sqlite3.c:128155:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 360)) = Xsqlite3_create_function // sqlite3.c:128156:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 368)) = Xsqlite3_create_function16 // sqlite3.c:128157:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 376)) = Xsqlite3_create_module // sqlite3.c:128158:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 384)) = Xsqlite3_data_count // sqlite3.c:128159:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 392)) = Xsqlite3_db_handle // sqlite3.c:128160:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 400)) = Xsqlite3_declare_vtab // sqlite3.c:128161:3:
- *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 408)) = Xsqlite3_enable_shared_cache // sqlite3.c:128162:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 416)) = Xsqlite3_errcode // sqlite3.c:128163:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 424)) = Xsqlite3_errmsg // sqlite3.c:128164:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 432)) = Xsqlite3_errmsg16 // sqlite3.c:128165:3:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_callback, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 440)) = Xsqlite3_exec // sqlite3.c:128166:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 448)) = Xsqlite3_expired // sqlite3.c:128168:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 456)) = Xsqlite3_finalize // sqlite3.c:128172:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 464)) = Xsqlite3_free // sqlite3.c:128173:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 472)) = Xsqlite3_free_table // sqlite3.c:128174:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 480)) = Xsqlite3_get_autocommit // sqlite3.c:128175:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 488)) = Xsqlite3_get_auxdata // sqlite3.c:128176:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 496)) = Xsqlite3_get_table // sqlite3.c:128177:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 512)) = Xsqlite3_interrupt // sqlite3.c:128179:3:
- *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 520)) = Xsqlite3_last_insert_rowid // sqlite3.c:128180:3:
- *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 528)) = Xsqlite3_libversion // sqlite3.c:128181:3:
- *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 536)) = Xsqlite3_libversion_number // sqlite3.c:128182:3:
- *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 544)) = Xsqlite3_malloc // sqlite3.c:128183:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 552)) = Xsqlite3_mprintf // sqlite3.c:128184:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 560)) = Xsqlite3_open // sqlite3.c:128185:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 568)) = Xsqlite3_open16 // sqlite3.c:128186:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 576)) = Xsqlite3_prepare // sqlite3.c:128187:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 584)) = Xsqlite3_prepare16 // sqlite3.c:128188:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 592)) = Xsqlite3_profile // sqlite3.c:128189:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 600)) = Xsqlite3_progress_handler // sqlite3.c:128190:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 608)) = Xsqlite3_realloc // sqlite3.c:128191:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 616)) = Xsqlite3_reset // sqlite3.c:128192:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 624)) = Xsqlite3_result_blob // sqlite3.c:128193:3:
- *(*func(*libc.TLS, uintptr, float64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 632)) = Xsqlite3_result_double // sqlite3.c:128194:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 640)) = Xsqlite3_result_error // sqlite3.c:128195:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 648)) = Xsqlite3_result_error16 // sqlite3.c:128196:3:
- *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 656)) = Xsqlite3_result_int // sqlite3.c:128197:3:
- *(*func(*libc.TLS, uintptr, I64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 664)) = Xsqlite3_result_int64 // sqlite3.c:128198:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 672)) = Xsqlite3_result_null // sqlite3.c:128199:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 680)) = Xsqlite3_result_text // sqlite3.c:128200:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 688)) = Xsqlite3_result_text16 // sqlite3.c:128201:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 696)) = Xsqlite3_result_text16be // sqlite3.c:128202:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 704)) = Xsqlite3_result_text16le // sqlite3.c:128203:3:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 712)) = Xsqlite3_result_value // sqlite3.c:128204:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 720)) = Xsqlite3_rollback_hook // sqlite3.c:128205:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 728)) = Xsqlite3_set_authorizer // sqlite3.c:128206:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 736)) = Xsqlite3_set_auxdata // sqlite3.c:128207:3:
- *(*func(*libc.TLS, int32, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 744)) = Xsqlite3_snprintf // sqlite3.c:128208:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 752)) = Xsqlite3_step // sqlite3.c:128209: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 // sqlite3.c:128210:3:
- *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 768)) = Xsqlite3_thread_cleanup // sqlite3.c:128212:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 776)) = Xsqlite3_total_changes // sqlite3.c:128216:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 784)) = Xsqlite3_trace // sqlite3.c:128217:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 792)) = Xsqlite3_transfer_bindings // sqlite3.c:128219:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 800)) = Xsqlite3_update_hook // sqlite3.c:128223:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 808)) = Xsqlite3_user_data // sqlite3.c:128224:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 816)) = Xsqlite3_value_blob // sqlite3.c:128225:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 824)) = Xsqlite3_value_bytes // sqlite3.c:128226:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 832)) = Xsqlite3_value_bytes16 // sqlite3.c:128227:3:
- *(*func(*libc.TLS, uintptr) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 840)) = Xsqlite3_value_double // sqlite3.c:128228:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 848)) = Xsqlite3_value_int // sqlite3.c:128229:3:
- *(*func(*libc.TLS, uintptr) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 856)) = Xsqlite3_value_int64 // sqlite3.c:128230:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 864)) = Xsqlite3_value_numeric_type // sqlite3.c:128231:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 872)) = Xsqlite3_value_text // sqlite3.c:128232:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 880)) = Xsqlite3_value_text16 // sqlite3.c:128233:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 888)) = Xsqlite3_value_text16be // sqlite3.c:128234:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 896)) = Xsqlite3_value_text16le // sqlite3.c:128235:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 904)) = Xsqlite3_value_type // sqlite3.c:128236:3:
- *(*func(*libc.TLS, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 912)) = Xsqlite3_vmprintf // sqlite3.c:128237:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 920)) = Xsqlite3_overload_function // sqlite3.c:128246:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 928)) = Xsqlite3_prepare_v2 // sqlite3.c:128251:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 936)) = Xsqlite3_prepare16_v2 // sqlite3.c:128252:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 944)) = Xsqlite3_clear_bindings // sqlite3.c:128253:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 952)) = Xsqlite3_create_module_v2 // sqlite3.c:128258:3:
- *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 960)) = Xsqlite3_bind_zeroblob // sqlite3.c:128263:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 968)) = Xsqlite3_blob_bytes // sqlite3.c:128264:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 976)) = Xsqlite3_blob_close // sqlite3.c:128265:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, Sqlite_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 984)) = Xsqlite3_blob_open // sqlite3.c:128266:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 992)) = Xsqlite3_blob_read // sqlite3.c:128267:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1000)) = Xsqlite3_blob_write // sqlite3.c:128268:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1008)) = Xsqlite3_create_collation_v2 // sqlite3.c:128269:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1016)) = Xsqlite3_file_control // sqlite3.c:128270:3:
- *(*func(*libc.TLS, int32) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1024)) = Xsqlite3_memory_highwater // sqlite3.c:128271:3:
- *(*func(*libc.TLS) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1032)) = Xsqlite3_memory_used // sqlite3.c:128272:3:
- *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1040)) = Xsqlite3_mutex_alloc // sqlite3.c:128280:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1048)) = Xsqlite3_mutex_enter // sqlite3.c:128281:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1056)) = Xsqlite3_mutex_free // sqlite3.c:128282:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1064)) = Xsqlite3_mutex_leave // sqlite3.c:128283:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1072)) = Xsqlite3_mutex_try // sqlite3.c:128284:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1080)) = Xsqlite3_open_v2 // sqlite3.c:128286:3:
- *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1088)) = Xsqlite3_release_memory // sqlite3.c:128287:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1096)) = Xsqlite3_result_error_nomem // sqlite3.c:128288:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1104)) = Xsqlite3_result_error_toobig // sqlite3.c:128289:3:
- *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1112)) = Xsqlite3_sleep // sqlite3.c:128290:3:
- *(*func(*libc.TLS, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1120)) = Xsqlite3_soft_heap_limit // sqlite3.c:128291:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1128)) = Xsqlite3_vfs_find // sqlite3.c:128292:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1136)) = Xsqlite3_vfs_register // sqlite3.c:128293:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1144)) = Xsqlite3_vfs_unregister // sqlite3.c:128294:3:
- *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1152)) = Xsqlite3_threadsafe // sqlite3.c:128299:3:
- *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1160)) = Xsqlite3_result_zeroblob // sqlite3.c:128300:3:
- *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1168)) = Xsqlite3_result_error_code // sqlite3.c:128301:3:
- *(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1176)) = Xsqlite3_test_control // sqlite3.c:128302:3:
- *(*func(*libc.TLS, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1184)) = Xsqlite3_randomness // sqlite3.c:128303:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1192)) = Xsqlite3_context_db_handle // sqlite3.c:128304:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1200)) = Xsqlite3_extended_result_codes // sqlite3.c:128309:3:
- *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1208)) = Xsqlite3_limit // sqlite3.c:128310:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1216)) = Xsqlite3_next_stmt // sqlite3.c:128311:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1224)) = Xsqlite3_sql // sqlite3.c:128312:3:
- *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1232)) = Xsqlite3_status // sqlite3.c:128313:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1240)) = Xsqlite3_backup_finish // sqlite3.c:128318:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1248)) = Xsqlite3_backup_init // sqlite3.c:128319:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1256)) = Xsqlite3_backup_pagecount // sqlite3.c:128320:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1264)) = Xsqlite3_backup_remaining // sqlite3.c:128321:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1272)) = Xsqlite3_backup_step // sqlite3.c:128322:3:
- *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1280)) = Xsqlite3_compileoption_get // sqlite3.c:128324:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1288)) = Xsqlite3_compileoption_used // sqlite3.c:128325: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 // sqlite3.c:128330:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1304)) = Xsqlite3_db_config // sqlite3.c:128331:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1312)) = Xsqlite3_db_mutex // sqlite3.c:128332:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1320)) = Xsqlite3_db_status // sqlite3.c:128333:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1328)) = Xsqlite3_extended_errcode // sqlite3.c:128334:3:
- *(*func(*libc.TLS, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1336)) = Xsqlite3_log // sqlite3.c:128335:3:
- *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1344)) = Xsqlite3_soft_heap_limit64 // sqlite3.c:128336:3:
- *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1352)) = Xsqlite3_sourceid // sqlite3.c:128337:3:
- *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1360)) = Xsqlite3_stmt_status // sqlite3.c:128338:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1368)) = Xsqlite3_strnicmp // sqlite3.c:128339:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1376)) = Xsqlite3_unlock_notify // sqlite3.c:128341:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1384)) = Xsqlite3_wal_autocheckpoint // sqlite3.c:128346:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1392)) = Xsqlite3_wal_checkpoint // sqlite3.c:128347:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1400)) = Xsqlite3_wal_hook // sqlite3.c:128348:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1408)) = Xsqlite3_blob_reopen // sqlite3.c:128354:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1416)) = Xsqlite3_vtab_config // sqlite3.c:128355:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1424)) = Xsqlite3_vtab_on_conflict // sqlite3.c:128356:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1432)) = Xsqlite3_close_v2 // sqlite3.c:128357:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1440)) = Xsqlite3_db_filename // sqlite3.c:128358:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1448)) = Xsqlite3_db_readonly // sqlite3.c:128359:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1456)) = Xsqlite3_db_release_memory // sqlite3.c:128360:3:
- *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1464)) = Xsqlite3_errstr // sqlite3.c:128361:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1472)) = Xsqlite3_stmt_busy // sqlite3.c:128362:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1480)) = Xsqlite3_stmt_readonly // sqlite3.c:128363:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1488)) = Xsqlite3_stricmp // sqlite3.c:128364:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1496)) = Xsqlite3_uri_boolean // sqlite3.c:128365:3:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1504)) = Xsqlite3_uri_int64 // sqlite3.c:128366:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1512)) = Xsqlite3_uri_parameter // sqlite3.c:128367:3:
- *(*func(*libc.TLS, int32, uintptr, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1520)) = Xsqlite3_vsnprintf // sqlite3.c:128368:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1528)) = Xsqlite3_wal_checkpoint_v2 // sqlite3.c:128369:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1536)) = Xsqlite3_auto_extension // sqlite3.c:128371:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1544)) = Xsqlite3_bind_blob64 // sqlite3.c:128372:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr, uint8) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1552)) = Xsqlite3_bind_text64 // sqlite3.c:128373:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1560)) = Xsqlite3_cancel_auto_extension // sqlite3.c:128374:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1568)) = Xsqlite3_load_extension // sqlite3.c:128375:3:
- *(*func(*libc.TLS, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1576)) = Xsqlite3_malloc64 // sqlite3.c:128376:3:
- *(*func(*libc.TLS, uintptr) Sqlite3_uint64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1584)) = Xsqlite3_msize // sqlite3.c:128377:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1592)) = Xsqlite3_realloc64 // sqlite3.c:128378:3:
- *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1600)) = Xsqlite3_reset_auto_extension // sqlite3.c:128379:3:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1608)) = Xsqlite3_result_blob64 // sqlite3.c:128380:3:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr, uint8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1616)) = Xsqlite3_result_text64 // sqlite3.c:128381:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1624)) = Xsqlite3_strglob // sqlite3.c:128382:3:
+ }{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:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1632 /* .value_dup */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr) uintptr
- }{Xsqlite3_value_dup})) // sqlite3.c:128384:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1640)) = Xsqlite3_value_free // sqlite3.c:128385:3:
- *(*func(*libc.TLS, uintptr, U64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1648)) = Xsqlite3_result_zeroblob64 // sqlite3.c:128386:3:
- *(*func(*libc.TLS, uintptr, int32, Sqlite3_uint64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1656)) = Xsqlite3_bind_zeroblob64 // sqlite3.c:128387:3:
- *(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1664)) = Xsqlite3_value_subtype // sqlite3.c:128389:3:
- *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1672)) = Xsqlite3_result_subtype // sqlite3.c:128390:3:
- *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1680)) = Xsqlite3_status64 // sqlite3.c:128392:3:
- *(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1688)) = Xsqlite3_strlike // sqlite3.c:128393:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1696)) = Xsqlite3_db_cacheflush // sqlite3.c:128394:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1704)) = Xsqlite3_system_errno // sqlite3.c:128396:3:
- *(*func(*libc.TLS, uintptr, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1712)) = Xsqlite3_trace_v2 // sqlite3.c:128398:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1720)) = Xsqlite3_expanded_sql // sqlite3.c:128399:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1728)) = Xsqlite3_set_last_insert_rowid // sqlite3.c:128401:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1736)) = Xsqlite3_prepare_v3 // sqlite3.c:128403:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1744)) = Xsqlite3_prepare16_v3 // sqlite3.c:128404:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1752)) = Xsqlite3_bind_pointer // sqlite3.c:128405:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1760)) = Xsqlite3_result_pointer // sqlite3.c:128406:3:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1768)) = Xsqlite3_value_pointer // sqlite3.c:128407:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1776)) = Xsqlite3_vtab_nochange // sqlite3.c:128409:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1784)) = Xsqlite3_value_nochange // sqlite3.c:128410:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1792)) = Xsqlite3_vtab_collation // sqlite3.c:128411:3:
- *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1800)) = Xsqlite3_keyword_count // sqlite3.c:128413:3:
- *(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1808)) = Xsqlite3_keyword_name // sqlite3.c:128414:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1816)) = Xsqlite3_keyword_check // sqlite3.c:128415:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1824)) = Xsqlite3_str_new // sqlite3.c:128416:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1832)) = Xsqlite3_str_finish // sqlite3.c:128417:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1840)) = Xsqlite3_str_appendf // sqlite3.c:128418:3:
- *(*func(*libc.TLS, uintptr, uintptr, Va_list))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1848)) = Xsqlite3_str_vappendf // sqlite3.c:128419:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1856)) = Xsqlite3_str_append // sqlite3.c:128420:3:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1864)) = Xsqlite3_str_appendall // sqlite3.c:128421:3:
- *(*func(*libc.TLS, uintptr, int32, int8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1872)) = Xsqlite3_str_appendchar // sqlite3.c:128422:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1880)) = Xsqlite3_str_reset // sqlite3.c:128423:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1888)) = Xsqlite3_str_errcode // sqlite3.c:128424:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1896)) = Xsqlite3_str_length // sqlite3.c:128425:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1904)) = Xsqlite3_str_value // sqlite3.c:128426: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 // sqlite3.c:128428:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1928)) = Xsqlite3_stmt_isexplain // sqlite3.c:128436:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1936)) = Xsqlite3_value_frombind // sqlite3.c:128437:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1944)) = Xsqlite3_drop_modules // sqlite3.c:128440:3:
- *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1952)) = Xsqlite3_hard_heap_limit64 // sqlite3.c:128445:3:
- *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1960)) = Xsqlite3_uri_key // sqlite3.c:128446:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1968)) = Xsqlite3_filename_database // sqlite3.c:128447:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1976)) = Xsqlite3_filename_journal // sqlite3.c:128448:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1984)) = Xsqlite3_filename_wal // sqlite3.c:128449:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1992)) = Xsqlite3_create_filename // sqlite3.c:128451:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2000)) = Xsqlite3_free_filename // sqlite3.c:128452:3:
- *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2008)) = Xsqlite3_database_file_object // sqlite3.c:128453:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2016)) = Xsqlite3_txn_state // sqlite3.c:128455:3:
- *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2024)) = Xsqlite3_changes64 // sqlite3.c:128457:3:
- *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2032)) = Xsqlite3_total_changes64 // sqlite3.c:128458:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2040)) = Xsqlite3_autovacuum_pages // sqlite3.c:128460:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 0)) = Xsqlite3Fts5Init // sqlite3.c:166663:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 8)) = Xsqlite3RtreeInit // sqlite3.c:166669:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 16)) = sqlite3TestExtInit // sqlite3.c:166677:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 24)) = Xsqlite3Json1Init // sqlite3.c:166679:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statGetFuncdef)) + 24)) = statGet // sqlite3.c:111142:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statInitFuncdef)) + 24)) = statInit // sqlite3.c:110718:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statPushFuncdef)) + 24)) = statPush // sqlite3.c:111008:3:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 40)) = rbuVfsOpen // sqlite3.c:207046:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 48)) = rbuVfsDelete // sqlite3.c:207047:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 56)) = rbuVfsAccess // sqlite3.c:207048:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 64)) = rbuVfsFullPathname // sqlite3.c:207049:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 72)) = rbuVfsDlOpen // sqlite3.c:207052:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 80)) = rbuVfsDlError // sqlite3.c:207053:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 88)) = rbuVfsDlSym // sqlite3.c:207054:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 96)) = rbuVfsDlClose // sqlite3.c:207055:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 104)) = rbuVfsRandomness // sqlite3.c:207060:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 112)) = rbuVfsSleep // sqlite3.c:207061:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 120)) = rbuVfsCurrentTime // sqlite3.c:207062:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 128)) = rbuVfsGetLastError // sqlite3.c:207063:5:
-}
-
-var ts1 = "3.37.2\x00ATOMIC_INTRINSICS=1\x00COMPILER=gcc-7.5.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_JSON1\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\x00day\x00month\x00year\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00%04d-%02d-%02d %02d:%02d:%02d\x00%02d:%02d:%02d\x00%04d-%02d-%02d\x00%02d\x00%06.3f\x00%03d\x00%.16g\x00%lld\x00%04d\x00julianday\x00date\x00time\x00datetime\x00strftime\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\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\x00Init\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00ChngCntRow\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\x00OpenRead\x00OpenWrite\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\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\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\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\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\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\x00out of memory\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\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 likelihood() must be a constant between 0.0 and 1.0\x00not authorized to use function: %s\x00non-deterministic functions\x00%.*s() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %.*s()\x00no such function: %.*s\x00wrong number of arguments to function %.*s()\x00FILTER may not be used with non-aggregate %.*s()\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 %s()\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%s\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00none\x00misuse of aggregate: %s()\x00unknown function: %s()\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(\"%w\",\"%w\") 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\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 \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\x00table %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?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\x00length\x00instr\x00printf\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*\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00SCAN %s%s%s\x00 USING COVERING INDEX \x00target object/alias may not appear in FROM clause: %s\x00expected %d columns for '%s' but got %d\x00CO-ROUTINE %!S\x00MATERIALIZE %!S\x00DISTINCT\x00GROUP BY\x00RIGHT PART OF ORDER BY\x00ORDER BY\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00trigger %T already exists\x00cannot create trigger on system table\x00cannot create %s trigger on view: %S\x00BEFORE\x00AFTER\x00cannot create INSTEAD OF trigger on table: %S\x00INSERT INTO %Q.sqlite_master VALUES('trigger',%Q,%Q,0,'CREATE TRIGGER %q')\x00type='trigger' AND name='%q'\x00no such trigger: %S\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='trigger'\x00%s RETURNING is not available on virtual tables\x00DELETE\x00UPDATE\x00RETURNING may not use \"TABLE.*\" wildcards\x00-- TRIGGER %s\x00cannot UPDATE generated column \"%s\"\x00no such column: %s\x00rows updated\x00%r \x00%sON CONFLICT clause does not match any PRIMARY KEY or UNIQUE constraint\x00CRE\x00INS\x00cannot VACUUM from within a transaction\x00cannot VACUUM - SQL statements in progress\x00non-text filename\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00%s %S\x00SEARCH\x00SCAN\x00AUTOMATIC PARTIAL COVERING INDEX\x00AUTOMATIC COVERING INDEX\x00COVERING INDEX %s\x00INDEX %s\x00 USING \x00=\x00>? AND rowid<\x00 USING INTEGER PRIMARY KEY (rowid%s?)\x00 VIRTUAL TABLE INDEX %d:%s\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\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: \"%.*s\"\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\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[%d]\x00.%.*s\x00$\x00json\x00json_array\x00json_array_length\x00json_extract\x00json_insert\x00json_object\x00json_patch\x00json_quote\x00json_remove\x00json_replace\x00json_set\x00json_type\x00json_valid\x00json_group_array\x00json_group_object\x00json_each\x00json_tree\x00%s_node\x00data\x00DROP TABLE '%q'.'%q_node';DROP TABLE '%q'.'%q_rowid';DROP TABLE '%q'.'%q_parent';\x00RtreeMatchArg\x00SELECT * FROM %Q.%Q\x00UNIQUE constraint failed: %s.%s\x00rtree constraint failed: %s.(%s<=%s)\x00ALTER TABLE %Q.'%q_node' RENAME TO \"%w_node\";ALTER TABLE %Q.'%q_parent' RENAME TO \"%w_parent\";ALTER TABLE %Q.'%q_rowid' RENAME TO \"%w_rowid\";\x00SELECT stat FROM %Q.sqlite_stat1 WHERE tbl = '%q_rowid'\x00node\x00CREATE TABLE \"%w\".\"%w_rowid\"(rowid INTEGER PRIMARY KEY,nodeno\x00,a%d\x00);CREATE TABLE \"%w\".\"%w_node\"(nodeno INTEGER PRIMARY KEY,data);\x00CREATE TABLE \"%w\".\"%w_parent\"(nodeno INTEGER PRIMARY KEY,parentnode);\x00INSERT INTO \"%w\".\"%w_node\"VALUES(1,zeroblob(%d))\x00INSERT INTO\"%w\".\"%w_rowid\"(rowid,nodeno)VALUES(?1,?2)ON CONFLICT(rowid)DO UPDATE SET nodeno=excluded.nodeno\x00SELECT * FROM \"%w\".\"%w_rowid\" WHERE rowid=?1\x00UPDATE \"%w\".\"%w_rowid\"SET \x00a%d=coalesce(?%d,a%d)\x00a%d=?%d\x00 WHERE rowid=?1\x00INSERT OR REPLACE INTO '%q'.'%q_node' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_node' WHERE nodeno = ?1\x00SELECT nodeno FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_rowid' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00SELECT parentnode FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_parent' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00PRAGMA %Q.page_size\x00SELECT length(data) FROM '%q'.'%q_node' WHERE nodeno = 1\x00undersize RTree blobs in \"%q_node\"\x00Wrong number of columns for an rtree table\x00Too few columns for an rtree table\x00Too many columns for an rtree table\x00Auxiliary rtree columns must be last\x00CREATE TABLE x(%.*s INT\x00,%.*s\x00);\x00,%.*s REAL\x00,%.*s INT\x00{%lld\x00 %g\x00}\x00Invalid argument to rtreedepth()\x00%z%s%z\x00SELECT data FROM %Q.'%q_node' WHERE nodeno=?\x00Node %lld missing from database\x00SELECT parentnode FROM %Q.'%q_parent' WHERE nodeno=?1\x00SELECT nodeno FROM %Q.'%q_rowid' WHERE rowid=?1\x00Mapping (%lld -> %lld) missing from %s table\x00%_rowid\x00%_parent\x00Found (%lld -> %lld) in %s table, expected (%lld -> %lld)\x00Dimension %d of cell %d on node %lld is corrupt\x00Dimension %d of cell %d on node %lld is corrupt relative to parent\x00Node %lld is too small (%d bytes)\x00Rtree depth out of range (%d)\x00Node %lld is too small for cell count of %d (%d bytes)\x00SELECT count(*) FROM %Q.'%q%s'\x00Wrong number of entries in %%%s table - expected %lld, actual %lld\x00SELECT * FROM %Q.'%q_rowid'\x00Schema corrupt or not an rtree\x00_rowid\x00_parent\x00END\x00wrong number of arguments to function rtreecheck()\x00[\x00[%!g,%!g],\x00[%!g,%!g]]\x00<polyline points=\x00%c%g,%g\x00 %g,%g'\x00 %s\x00></polyline>\x00CREATE TABLE x(_shape\x00,%s\x00rtree\x00fullscan\x00_shape does not contain a valid polygon\x00geopoly_overlap\x00geopoly_within\x00geopoly\x00geopoly_area\x00geopoly_blob\x00geopoly_json\x00geopoly_svg\x00geopoly_contains_point\x00geopoly_debug\x00geopoly_bbox\x00geopoly_xform\x00geopoly_regular\x00geopoly_ccw\x00geopoly_group_bbox\x00rtreenode\x00rtreedepth\x00rtreecheck\x00rtree_i32\x00corrupt fossil delta\x00DROP TRIGGER IF EXISTS temp.rbu_insert_tr;DROP TRIGGER IF EXISTS temp.rbu_update1_tr;DROP TRIGGER IF EXISTS temp.rbu_update2_tr;DROP TRIGGER IF EXISTS temp.rbu_delete_tr;\x00SELECT rbu_target_name(name, type='view') AS target, name FROM sqlite_schema WHERE type IN ('table', 'view') AND target IS NOT NULL %s ORDER BY name\x00AND rootpage!=0 AND rootpage IS NOT NULL\x00SELECT name, rootpage, sql IS NULL OR substr(8, 6)=='UNIQUE' FROM main.sqlite_schema WHERE type='index' AND tbl_name = ?\x00SELECT (sql COLLATE nocase BETWEEN 'CREATE VIRTUAL' AND 'CREATE VIRTUAM'), rootpage FROM sqlite_schema WHERE name=%Q\x00PRAGMA index_list=%Q\x00SELECT rootpage FROM sqlite_schema WHERE name = %Q\x00PRAGMA table_info=%Q\x00PRAGMA main.index_list = %Q\x00PRAGMA main.index_xinfo = %Q\x00SELECT * FROM '%q'\x00rbu_\x00rbu_rowid\x00table %q %s rbu_rowid column\x00may not have\x00requires\x00PRAGMA table_info(%Q)\x00column missing from %q: %s\x00%z%s\"%w\"\x00%z%s%s\"%w\"%s\x00SELECT max(_rowid_) FROM \"%s%w\"\x00 WHERE _rowid_ > %lld \x00 DESC\x00quote(\x00||','||\x00SELECT %s FROM \"%s%w\" ORDER BY %s LIMIT 1\x00 WHERE (%s) > (%s) \x00_rowid_\x00%z%s \"%w\" COLLATE %Q\x00%z%s \"rbu_imp_%d%w\" COLLATE %Q DESC\x00%z%s quote(\"rbu_imp_%d%w\")\x00SELECT %s FROM \"rbu_imp_%w\" ORDER BY %s LIMIT 1\x00%z%s%s\x00(%s) > (%s)\x00%z%s(%.*s) COLLATE %Q\x00%z%s\"%w\" COLLATE %Q\x00%z%s\"rbu_imp_%d%w\"%s\x00%z%s\"rbu_imp_%d%w\" %s COLLATE %Q\x00%z%s\"rbu_imp_%d%w\" IS ?\x00%z%s%s.\"%w\"\x00%z%sNULL\x00%z, %s._rowid_\x00_rowid_ = ?%d\x00%z%sc%d=?%d\x00_rowid_ = (SELECT id FROM rbu_imposter2 WHERE %z)\x00%z%s\"%w\"=?%d\x00invalid rbu_control value\x00%z%s\"%w\"=rbu_delta(\"%w\", ?%d)\x00%z%s\"%w\"=rbu_fossil_delta(\"%w\", ?%d)\x00PRIMARY KEY(\x00%z%s\"%w\"%s\x00%z)\x00SELECT name FROM sqlite_schema WHERE rootpage = ?\x00%z%sc%d %s COLLATE %Q\x00%z%sc%d%s\x00%z, id INTEGER\x00CREATE TABLE rbu_imposter2(%z, PRIMARY KEY(%z)) WITHOUT ROWID\x00PRIMARY KEY \x00%z%s\"%w\" %s %sCOLLATE %Q%s\x00 NOT NULL\x00%z, %z\x00CREATE TABLE \"rbu_imp_%w\"(%z)%s\x00 WITHOUT ROWID\x00INSERT INTO %s.'rbu_tmp_%q'(rbu_control,%s%s) VALUES(%z)\x00SELECT trim(sql) FROM sqlite_schema WHERE type='index' AND name=?\x00 LIMIT -1 OFFSET %d\x00CREATE TABLE \"rbu_imp_%w\"( %s, PRIMARY KEY( %s ) ) WITHOUT ROWID\x00INSERT INTO \"rbu_imp_%w\" VALUES(%s)\x00DELETE FROM \"rbu_imp_%w\" WHERE %s\x00SELECT %s, 0 AS rbu_control FROM '%q' %s %s %s ORDER BY %s%s\x00AND\x00WHERE\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s ORDER BY %s%s\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s UNION ALL SELECT %s, rbu_control FROM '%q' %s %s typeof(rbu_control)='integer' AND rbu_control!=1 ORDER BY %s%s\x00rbu_imp_\x00INSERT INTO \"%s%w\"(%s%s) VALUES(%s)\x00, _rowid_\x00DELETE FROM \"%s%w\" WHERE %s\x00, rbu_rowid\x00CREATE TABLE IF NOT EXISTS %s.'rbu_tmp_%q' AS SELECT *%s FROM '%q' WHERE 0;\x00, 0 AS rbu_rowid\x00CREATE TEMP TRIGGER rbu_delete_tr BEFORE DELETE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update1_tr BEFORE UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update2_tr AFTER UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(4, %s);END;\x00CREATE TEMP TRIGGER rbu_insert_tr AFTER INSERT ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(0, %s);END;\x00,_rowid_ \x00,rbu_rowid\x00SELECT %s,%s rbu_control%s FROM '%q'%s %s %s %s\x000 AS \x00UPDATE \"%s%w\" SET %s WHERE %s\x00SELECT k, v FROM %s.rbu_state\x00file://%s-vacuum?modeof=%s\x00ATTACH %Q AS stat\x00CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)\x00cannot vacuum wal mode database\x00file:%s-vactmp?rbu_memory=1%s%s\x00&\x00rbu_tmp_insert\x00rbu_fossil_delta\x00rbu_target_name\x00SELECT * FROM sqlite_schema\x00rbu vfs not found\x00PRAGMA main.wal_checkpoint=restart\x00rbu_exclusive_checkpoint\x00%s-oal\x00%s-wal\x00PRAGMA schema_version\x00PRAGMA schema_version = %d\x00INSERT OR REPLACE INTO %s.rbu_state(k, v) VALUES (%d, %d), (%d, %Q), (%d, %Q), (%d, %d), (%d, %d), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %Q) \x00PRAGMA main.%s\x00PRAGMA main.%s = %d\x00PRAGMA writable_schema=1\x00SELECT sql FROM sqlite_schema WHERE sql!='' AND rootpage!=0 AND name!='sqlite_sequence' ORDER BY type DESC\x00SELECT * FROM sqlite_schema WHERE rootpage=0 OR rootpage IS NULL\x00INSERT INTO sqlite_schema VALUES(?,?,?,?,?)\x00PRAGMA writable_schema=0\x00DELETE FROM %s.'rbu_tmp_%q'\x00rbu_state mismatch error\x00rbu_vfs_%d\x00SELECT count(*) FROM sqlite_schema WHERE type='index' AND tbl_name = %Q\x00rbu_index_cnt\x00SELECT 1 FROM sqlite_schema WHERE tbl_name = 'rbu_count'\x00SELECT sum(cnt * (1 + rbu_index_cnt(rbu_target_name(tbl))))FROM rbu_count\x00cannot update wal mode database\x00database modified during rbu %s\x00vacuum\x00update\x00BEGIN IMMEDIATE\x00PRAGMA journal_mode=off\x00-vactmp\x00DELETE FROM stat.rbu_state\x00rbu/zipvfs setup error\x00rbu(%s)/%z\x00rbu_memory\x00SELECT 0, 'tbl', '', 0, '', 1 UNION ALL SELECT 1, 'idx', '', 0, '', 2 UNION ALL SELECT 2, 'stat', '', 0, '', 0\x00PRAGMA '%q'.table_info('%q')\x00%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"\x00%z%s\"%w\".\"%w\".\"%w\" IS NOT \"%w\".\"%w\".\"%w\"\x00 OR \x00SELECT * FROM \"%w\".\"%w\" WHERE NOT EXISTS ( SELECT 1 FROM \"%w\".\"%w\" WHERE %s)\x00SELECT * FROM \"%w\".\"%w\", \"%w\".\"%w\" WHERE %s AND (%z)\x00table schemas do not match\x00SELECT tbl, ?2, stat FROM %Q.sqlite_stat1 WHERE tbl IS ?1 AND idx IS (CASE WHEN ?2=X'' THEN NULL ELSE ?2 END)\x00SELECT * FROM \x00 WHERE \x00 IS ?\x00SAVEPOINT changeset\x00RELEASE changeset\x00UPDATE main.\x00 SET \x00 = ?\x00idx IS CASE WHEN length(?4)=0 AND typeof(?4)='blob' THEN NULL ELSE ?4 END \x00DELETE FROM main.\x00 AND (?\x00AND \x00INSERT INTO main.\x00) VALUES(?\x00, ?\x00INSERT INTO main.sqlite_stat1 VALUES(?1, CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END, ?3)\x00DELETE FROM main.sqlite_stat1 WHERE tbl=?1 AND idx IS CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END AND (?4 OR stat IS ?3)\x00SAVEPOINT replace_op\x00RELEASE replace_op\x00SAVEPOINT changeset_apply\x00PRAGMA defer_foreign_keys = 1\x00sqlite3changeset_apply(): no such table: %s\x00sqlite3changeset_apply(): table %s has %d columns, expected %d or more\x00sqlite3changeset_apply(): primary key mismatch for table %s\x00PRAGMA defer_foreign_keys = 0\x00RELEASE changeset_apply\x00ROLLBACK TO changeset_apply\x00fts5: parser stack overflow\x00fts5: syntax error near \"%.*s\"\x00%z%.*s\x00wrong number of arguments to function highlight()\x00wrong number of arguments to function snippet()\x00snippet\x00highlight\x00bm25\x00prefix\x00malformed prefix=... directive\x00too many prefix indexes (max %d)\x00prefix length out of range (max 999)\x00tokenize\x00multiple tokenize=... directives\x00parse error in tokenize directive\x00content\x00multiple content=... directives\x00%Q.%Q\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... directive\x00columns\x00malformed detail=... directive\x00unrecognized option: \"%.*s\"\x00reserved fts5 column name: %s\x00unindexed\x00unrecognized column option: %s\x00T.%Q\x00, T.%Q\x00, T.c%d\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00docsize\x00%Q.'%q_%s'\x00CREATE TABLE x(\x00%z%s%Q\x00%z, %Q HIDDEN, %s HIDDEN)\x00pgsz\x00hashsize\x00automerge\x00usermerge\x00crisismerge\x00SELECT k, v FROM %Q.'%q_config'\x00version\x00invalid fts5 file format (found %d, expected %d) - run 'rebuild'\x00unterminated string\x00fts5: syntax error near \"%.1s\"\x00OR\x00NOT\x00NEAR\x00expected integer, got \"%.*s\"\x00fts5: column queries are not supported (detail=none)\x00fts5: %s queries are not supported (detail!=full)\x00phrase\x00block\x00REPLACE INTO '%q'.'%q_data'(id, block) VALUES(?,?)\x00DELETE FROM '%q'.'%q_data' WHERE id>=? AND id<=?\x00DELETE FROM '%q'.'%q_idx' WHERE segid=?\x00PRAGMA %Q.data_version\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term<=? ORDER BY term DESC LIMIT 1\x00INSERT INTO '%q'.'%q_idx'(segid,term,pgno) VALUES(?,?,?)\x00%s_data\x00id INTEGER PRIMARY KEY, block BLOB\x00segid, term, pgno, PRIMARY KEY(segid, term)\x00SELECT segid, term, (pgno>>1), (pgno&1) FROM %Q.'%q_idx' WHERE segid=%d ORDER BY 1, 2\x00\x00\x00\x00\x00\x00recursively defined fts5 content table\x00SELECT rowid, rank FROM %Q.%Q ORDER BY %s(\"%w\"%s%s) %s\x00DESC\x00ASC\x00reads\x00unknown special query: %.*s\x00SELECT %s\x00no such function: %s\x00parse error in rank function: %s\x00%s: table does not support scanning\x00delete-all\x00'delete-all' may only be used with a contentless or external content fts5 table\x00rebuild\x00'rebuild' may not be used with a contentless fts5 table\x00merge\x00integrity-check\x00cannot %s contentless fts5 table: %s\x00DELETE from\x00no such cursor: %lld\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0\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-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0\x00"
+ }{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=1\x00COMPILER=gcc-7.5.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<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00%s %S\x00SEARCH\x00SCAN\x00AUTOMATIC PARTIAL COVERING INDEX\x00AUTOMATIC COVERING INDEX\x00COVERING INDEX %s\x00INDEX %s\x00 USING \x00 USING INTEGER PRIMARY KEY (%s\x00>? AND %s\x00%c?)\x00 VIRTUAL TABLE INDEX %d:%s\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\x00row_number\x00dense_rank\x00rank\x00percent_rank\x00cume_dist\x00ntile\x00last_value\x00nth_value\x00first_value\x00lead\x00lag\x00no such window: %s\x00RANGE with offset PRECEDING/FOLLOWING requires one ORDER BY expression\x00FILTER clause may only be used with aggregate window functions\x00misuse of aggregate: %s()\x00unsupported frame specification\x00PARTITION clause\x00ORDER BY clause\x00frame specification\x00cannot override %s of window: %s\x00DISTINCT is not supported for window functions\x00frame starting offset must be a non-negative integer\x00frame ending offset must be a non-negative integer\x00frame starting offset must be a non-negative number\x00frame ending offset must be a non-negative number\x00%s clause should come after %s not before\x00LIMIT\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\x00not an error\x00SQL logic error\x00access permission denied\x00query aborted\x00database is locked\x00database table is locked\x00attempt to write a readonly database\x00interrupted\x00disk I/O error\x00database disk image is malformed\x00unknown operation\x00database or disk is full\x00unable to open database file\x00locking protocol\x00constraint failed\x00datatype mismatch\x00bad parameter or other API misuse\x00authorization denied\x00column index out of range\x00file is not a database\x00notification message\x00warning message\x00unable to delete/modify user-function due to active statements\x00unable to use function %s in the requested context\x00unknown database: %s\x00unable to delete/modify collation sequence due to active statements\x00file:\x00localhost\x00invalid uri authority: %.*s\x00vfs\x00cache\x00mode\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\x00shared\x00private\x00ro\x00rw\x00rwc\x00RTRIM\x00\x00\x00\x00%s at line %d of [%.10s]\x00database corruption\x00misuse\x00cannot open file\x00no such table column: %s.%s\x00SQLITE_\x00database is deadlocked\x00array\x00object\x000123456789abcdef\x00JSON cannot hold BLOB values\x00malformed JSON\x00[0]\x00JSON path error near '%q'\x00json_%s() needs an odd number of arguments\x00$[\x00$.\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00.%.*s\x00[%d]\x00$\x00json\x00json_array\x00json_array_length\x00json_extract\x00->\x00->>\x00json_insert\x00json_object\x00json_patch\x00json_quote\x00json_remove\x00json_replace\x00json_set\x00json_type\x00json_valid\x00json_group_array\x00json_group_object\x00json_each\x00json_tree\x00%s_node\x00data\x00DROP TABLE '%q'.'%q_node';DROP TABLE '%q'.'%q_rowid';DROP TABLE '%q'.'%q_parent';\x00RtreeMatchArg\x00SELECT * FROM %Q.%Q\x00UNIQUE constraint failed: %s.%s\x00rtree constraint failed: %s.(%s<=%s)\x00ALTER TABLE %Q.'%q_node' RENAME TO \"%w_node\";ALTER TABLE %Q.'%q_parent' RENAME TO \"%w_parent\";ALTER TABLE %Q.'%q_rowid' RENAME TO \"%w_rowid\";\x00SELECT stat FROM %Q.sqlite_stat1 WHERE tbl = '%q_rowid'\x00node\x00CREATE TABLE \"%w\".\"%w_rowid\"(rowid INTEGER PRIMARY KEY,nodeno\x00,a%d\x00);CREATE TABLE \"%w\".\"%w_node\"(nodeno INTEGER PRIMARY KEY,data);\x00CREATE TABLE \"%w\".\"%w_parent\"(nodeno INTEGER PRIMARY KEY,parentnode);\x00INSERT INTO \"%w\".\"%w_node\"VALUES(1,zeroblob(%d))\x00INSERT INTO\"%w\".\"%w_rowid\"(rowid,nodeno)VALUES(?1,?2)ON CONFLICT(rowid)DO UPDATE SET nodeno=excluded.nodeno\x00SELECT * FROM \"%w\".\"%w_rowid\" WHERE rowid=?1\x00UPDATE \"%w\".\"%w_rowid\"SET \x00a%d=coalesce(?%d,a%d)\x00a%d=?%d\x00 WHERE rowid=?1\x00INSERT OR REPLACE INTO '%q'.'%q_node' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_node' WHERE nodeno = ?1\x00SELECT nodeno FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_rowid' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00SELECT parentnode FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_parent' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00PRAGMA %Q.page_size\x00SELECT length(data) FROM '%q'.'%q_node' WHERE nodeno = 1\x00undersize RTree blobs in \"%q_node\"\x00Wrong number of columns for an rtree table\x00Too few columns for an rtree table\x00Too many columns for an rtree table\x00Auxiliary rtree columns must be last\x00CREATE TABLE x(%.*s INT\x00,%.*s\x00);\x00,%.*s REAL\x00,%.*s INT\x00{%lld\x00 %g\x00}\x00Invalid argument to rtreedepth()\x00%z%s%z\x00SELECT data FROM %Q.'%q_node' WHERE nodeno=?\x00Node %lld missing from database\x00SELECT parentnode FROM %Q.'%q_parent' WHERE nodeno=?1\x00SELECT nodeno FROM %Q.'%q_rowid' WHERE rowid=?1\x00Mapping (%lld -> %lld) missing from %s table\x00%_rowid\x00%_parent\x00Found (%lld -> %lld) in %s table, expected (%lld -> %lld)\x00Dimension %d of cell %d on node %lld is corrupt\x00Dimension %d of cell %d on node %lld is corrupt relative to parent\x00Node %lld is too small (%d bytes)\x00Rtree depth out of range (%d)\x00Node %lld is too small for cell count of %d (%d bytes)\x00SELECT count(*) FROM %Q.'%q%s'\x00Wrong number of entries in %%%s table - expected %lld, actual %lld\x00SELECT * FROM %Q.'%q_rowid'\x00Schema corrupt or not an rtree\x00_rowid\x00_parent\x00END\x00wrong number of arguments to function rtreecheck()\x00[\x00[%!g,%!g],\x00[%!g,%!g]]\x00<polyline points=\x00%c%g,%g\x00 %g,%g'\x00 %s\x00></polyline>\x00CREATE TABLE x(_shape\x00,%s\x00rtree\x00fullscan\x00_shape does not contain a valid polygon\x00geopoly_overlap\x00geopoly_within\x00geopoly\x00geopoly_area\x00geopoly_blob\x00geopoly_json\x00geopoly_svg\x00geopoly_contains_point\x00geopoly_debug\x00geopoly_bbox\x00geopoly_xform\x00geopoly_regular\x00geopoly_ccw\x00geopoly_group_bbox\x00rtreenode\x00rtreedepth\x00rtreecheck\x00rtree_i32\x00corrupt fossil delta\x00DROP TRIGGER IF EXISTS temp.rbu_insert_tr;DROP TRIGGER IF EXISTS temp.rbu_update1_tr;DROP TRIGGER IF EXISTS temp.rbu_update2_tr;DROP TRIGGER IF EXISTS temp.rbu_delete_tr;\x00SELECT rbu_target_name(name, type='view') AS target, name FROM sqlite_schema WHERE type IN ('table', 'view') AND target IS NOT NULL %s ORDER BY name\x00AND rootpage!=0 AND rootpage IS NOT NULL\x00SELECT name, rootpage, sql IS NULL OR substr(8, 6)=='UNIQUE' FROM main.sqlite_schema WHERE type='index' AND tbl_name = ?\x00SELECT (sql COLLATE nocase BETWEEN 'CREATE VIRTUAL' AND 'CREATE VIRTUAM'), rootpage FROM sqlite_schema WHERE name=%Q\x00PRAGMA index_list=%Q\x00SELECT rootpage FROM sqlite_schema WHERE name = %Q\x00PRAGMA table_info=%Q\x00PRAGMA main.index_list = %Q\x00PRAGMA main.index_xinfo = %Q\x00SELECT * FROM '%q'\x00rbu_\x00rbu_rowid\x00table %q %s rbu_rowid column\x00may not have\x00requires\x00PRAGMA table_info(%Q)\x00column missing from %q: %s\x00%z%s\"%w\"\x00%z%s%s\"%w\"%s\x00SELECT max(_rowid_) FROM \"%s%w\"\x00 WHERE _rowid_ > %lld \x00 DESC\x00quote(\x00||','||\x00SELECT %s FROM \"%s%w\" ORDER BY %s LIMIT 1\x00 WHERE (%s) > (%s) \x00_rowid_\x00%z%s \"%w\" COLLATE %Q\x00%z%s \"rbu_imp_%d%w\" COLLATE %Q DESC\x00%z%s quote(\"rbu_imp_%d%w\")\x00SELECT %s FROM \"rbu_imp_%w\" ORDER BY %s LIMIT 1\x00%z%s%s\x00(%s) > (%s)\x00%z%s(%.*s) COLLATE %Q\x00%z%s\"%w\" COLLATE %Q\x00%z%s\"rbu_imp_%d%w\"%s\x00%z%s\"rbu_imp_%d%w\" %s COLLATE %Q\x00%z%s\"rbu_imp_%d%w\" IS ?\x00%z%s%s.\"%w\"\x00%z%sNULL\x00%z, %s._rowid_\x00_rowid_ = ?%d\x00%z%sc%d=?%d\x00_rowid_ = (SELECT id FROM rbu_imposter2 WHERE %z)\x00%z%s\"%w\"=?%d\x00invalid rbu_control value\x00%z%s\"%w\"=rbu_delta(\"%w\", ?%d)\x00%z%s\"%w\"=rbu_fossil_delta(\"%w\", ?%d)\x00PRIMARY KEY(\x00%z%s\"%w\"%s\x00%z)\x00SELECT name FROM sqlite_schema WHERE rootpage = ?\x00%z%sc%d %s COLLATE %Q\x00%z%sc%d%s\x00%z, id INTEGER\x00CREATE TABLE rbu_imposter2(%z, PRIMARY KEY(%z)) WITHOUT ROWID\x00PRIMARY KEY \x00%z%s\"%w\" %s %sCOLLATE %Q%s\x00 NOT NULL\x00%z, %z\x00CREATE TABLE \"rbu_imp_%w\"(%z)%s\x00 WITHOUT ROWID\x00INSERT INTO %s.'rbu_tmp_%q'(rbu_control,%s%s) VALUES(%z)\x00SELECT trim(sql) FROM sqlite_schema WHERE type='index' AND name=?\x00 LIMIT -1 OFFSET %d\x00CREATE TABLE \"rbu_imp_%w\"( %s, PRIMARY KEY( %s ) ) WITHOUT ROWID\x00INSERT INTO \"rbu_imp_%w\" VALUES(%s)\x00DELETE FROM \"rbu_imp_%w\" WHERE %s\x00SELECT %s, 0 AS rbu_control FROM '%q' %s %s %s ORDER BY %s%s\x00AND\x00WHERE\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s ORDER BY %s%s\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s UNION ALL SELECT %s, rbu_control FROM '%q' %s %s typeof(rbu_control)='integer' AND rbu_control!=1 ORDER BY %s%s\x00rbu_imp_\x00INSERT INTO \"%s%w\"(%s%s) VALUES(%s)\x00, _rowid_\x00DELETE FROM \"%s%w\" WHERE %s\x00, rbu_rowid\x00CREATE TABLE IF NOT EXISTS %s.'rbu_tmp_%q' AS SELECT *%s FROM '%q' WHERE 0;\x00, 0 AS rbu_rowid\x00CREATE TEMP TRIGGER rbu_delete_tr BEFORE DELETE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update1_tr BEFORE UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update2_tr AFTER UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(4, %s);END;\x00CREATE TEMP TRIGGER rbu_insert_tr AFTER INSERT ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(0, %s);END;\x00,_rowid_ \x00,rbu_rowid\x00SELECT %s,%s rbu_control%s FROM '%q'%s %s %s %s\x000 AS \x00UPDATE \"%s%w\" SET %s WHERE %s\x00SELECT k, v FROM %s.rbu_state\x00file://%s-vacuum?modeof=%s\x00ATTACH %Q AS stat\x00CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)\x00cannot vacuum wal mode database\x00file:%s-vactmp?rbu_memory=1%s%s\x00&\x00rbu_tmp_insert\x00rbu_fossil_delta\x00rbu_target_name\x00SELECT * FROM sqlite_schema\x00rbu vfs not found\x00PRAGMA main.wal_checkpoint=restart\x00rbu_exclusive_checkpoint\x00%s-oal\x00%s-wal\x00PRAGMA schema_version\x00PRAGMA schema_version = %d\x00INSERT OR REPLACE INTO %s.rbu_state(k, v) VALUES (%d, %d), (%d, %Q), (%d, %Q), (%d, %d), (%d, %d), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %Q) \x00PRAGMA main.%s\x00PRAGMA main.%s = %d\x00PRAGMA writable_schema=1\x00SELECT sql FROM sqlite_schema WHERE sql!='' AND rootpage!=0 AND name!='sqlite_sequence' ORDER BY type DESC\x00SELECT * FROM sqlite_schema WHERE rootpage=0 OR rootpage IS NULL\x00INSERT INTO sqlite_schema VALUES(?,?,?,?,?)\x00PRAGMA writable_schema=0\x00DELETE FROM %s.'rbu_tmp_%q'\x00rbu_state mismatch error\x00rbu_vfs_%d\x00SELECT count(*) FROM sqlite_schema WHERE type='index' AND tbl_name = %Q\x00rbu_index_cnt\x00SELECT 1 FROM sqlite_schema WHERE tbl_name = 'rbu_count'\x00SELECT sum(cnt * (1 + rbu_index_cnt(rbu_target_name(tbl))))FROM rbu_count\x00cannot update wal mode database\x00database modified during rbu %s\x00vacuum\x00update\x00BEGIN IMMEDIATE\x00PRAGMA journal_mode=off\x00-vactmp\x00DELETE FROM stat.rbu_state\x00rbu/zipvfs setup error\x00rbu(%s)/%z\x00rbu_memory\x00SELECT 0, 'tbl', '', 0, '', 1 UNION ALL SELECT 1, 'idx', '', 0, '', 2 UNION ALL SELECT 2, 'stat', '', 0, '', 0\x00PRAGMA '%q'.table_info('%q')\x00%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"\x00%z%s\"%w\".\"%w\".\"%w\" IS NOT \"%w\".\"%w\".\"%w\"\x00 OR \x00SELECT * FROM \"%w\".\"%w\" WHERE NOT EXISTS ( SELECT 1 FROM \"%w\".\"%w\" WHERE %s)\x00SELECT * FROM \"%w\".\"%w\", \"%w\".\"%w\" WHERE %s AND (%z)\x00table schemas do not match\x00SELECT tbl, ?2, stat FROM %Q.sqlite_stat1 WHERE tbl IS ?1 AND idx IS (CASE WHEN ?2=X'' THEN NULL ELSE ?2 END)\x00SELECT * FROM \x00 WHERE \x00 IS ?\x00SAVEPOINT changeset\x00RELEASE changeset\x00UPDATE main.\x00 SET \x00 = ?\x00idx IS CASE WHEN length(?4)=0 AND typeof(?4)='blob' THEN NULL ELSE ?4 END \x00DELETE FROM main.\x00 AND (?\x00AND \x00INSERT INTO main.\x00) VALUES(?\x00, ?\x00INSERT INTO main.sqlite_stat1 VALUES(?1, CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END, ?3)\x00DELETE FROM main.sqlite_stat1 WHERE tbl=?1 AND idx IS CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END AND (?4 OR stat IS ?3)\x00SAVEPOINT replace_op\x00RELEASE replace_op\x00SAVEPOINT changeset_apply\x00PRAGMA defer_foreign_keys = 1\x00sqlite3changeset_apply(): no such table: %s\x00sqlite3changeset_apply(): table %s has %d columns, expected %d or more\x00sqlite3changeset_apply(): primary key mismatch for table %s\x00PRAGMA defer_foreign_keys = 0\x00RELEASE changeset_apply\x00ROLLBACK TO changeset_apply\x00fts5: parser stack overflow\x00fts5: syntax error near \"%.*s\"\x00%z%.*s\x00wrong number of arguments to function highlight()\x00wrong number of arguments to function snippet()\x00snippet\x00highlight\x00bm25\x00prefix\x00malformed prefix=... directive\x00too many prefix indexes (max %d)\x00prefix length out of range (max 999)\x00tokenize\x00multiple tokenize=... directives\x00parse error in tokenize directive\x00content\x00multiple content=... directives\x00%Q.%Q\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... directive\x00columns\x00malformed detail=... directive\x00unrecognized option: \"%.*s\"\x00reserved fts5 column name: %s\x00unindexed\x00unrecognized column option: %s\x00T.%Q\x00, T.%Q\x00, T.c%d\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00docsize\x00%Q.'%q_%s'\x00CREATE TABLE x(\x00%z%s%Q\x00%z, %Q HIDDEN, %s HIDDEN)\x00pgsz\x00hashsize\x00automerge\x00usermerge\x00crisismerge\x00SELECT k, v FROM %Q.'%q_config'\x00version\x00invalid fts5 file format (found %d, expected %d) - run 'rebuild'\x00unterminated string\x00fts5: syntax error near \"%.1s\"\x00OR\x00NOT\x00NEAR\x00expected integer, got \"%.*s\"\x00fts5: column queries are not supported (detail=none)\x00fts5: %s queries are not supported (detail!=full)\x00phrase\x00block\x00REPLACE INTO '%q'.'%q_data'(id, block) VALUES(?,?)\x00DELETE FROM '%q'.'%q_data' WHERE id>=? AND id<=?\x00DELETE FROM '%q'.'%q_idx' WHERE segid=?\x00PRAGMA %Q.data_version\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term<=? ORDER BY term DESC LIMIT 1\x00INSERT INTO '%q'.'%q_idx'(segid,term,pgno) VALUES(?,?,?)\x00%s_data\x00id INTEGER PRIMARY KEY, block BLOB\x00segid, term, pgno, PRIMARY KEY(segid, term)\x00SELECT segid, term, (pgno>>1), (pgno&1) FROM %Q.'%q_idx' WHERE segid=%d ORDER BY 1, 2\x00\x00\x00\x00\x00\x00recursively defined fts5 content table\x00SELECT rowid, rank FROM %Q.%Q ORDER BY %s(\"%w\"%s%s) %s\x00DESC\x00ASC\x00reads\x00unknown special query: %.*s\x00SELECT %s\x00no such function: %s\x00parse error in rank function: %s\x00%s: table does not support scanning\x00delete-all\x00'delete-all' may only be used with a contentless or external content fts5 table\x00rebuild\x00'rebuild' may not be used with a contentless fts5 table\x00merge\x00integrity-check\x00cannot %s contentless fts5 table: %s\x00DELETE from\x00no such cursor: %lld\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe\x00config\x00fts5\x00fts5_source_id\x00SELECT %s FROM %s T WHERE T.%Q >= ? AND T.%Q <= ? ORDER BY T.%Q ASC\x00SELECT %s FROM %s T WHERE T.%Q <= ? AND T.%Q >= ? ORDER BY T.%Q DESC\x00SELECT %s FROM %s T WHERE T.%Q=?\x00INSERT INTO %Q.'%q_content' VALUES(%s)\x00REPLACE INTO %Q.'%q_content' VALUES(%s)\x00DELETE FROM %Q.'%q_content' WHERE id=?\x00REPLACE INTO %Q.'%q_docsize' VALUES(?,?)\x00DELETE FROM %Q.'%q_docsize' WHERE id=?\x00SELECT sz FROM %Q.'%q_docsize' WHERE id=?\x00REPLACE INTO %Q.'%q_config' VALUES(?,?)\x00SELECT %s FROM %s AS T\x00DROP TABLE IF EXISTS %Q.'%q_data';DROP TABLE IF EXISTS %Q.'%q_idx';DROP TABLE IF EXISTS %Q.'%q_config';\x00DROP TABLE IF EXISTS %Q.'%q_docsize';\x00DROP TABLE IF EXISTS %Q.'%q_content';\x00ALTER TABLE %Q.'%q_%s' RENAME TO '%q_%s';\x00CREATE TABLE %Q.'%q_%q'(%s)%s\x00fts5: error creating shadow table %q_%s: %s\x00id INTEGER PRIMARY KEY\x00, c%d\x00id INTEGER PRIMARY KEY, sz BLOB\x00k PRIMARY KEY, v\x00DELETE FROM %Q.'%q_data';DELETE FROM %Q.'%q_idx';\x00DELETE FROM %Q.'%q_docsize';\x00SELECT count(*) FROM %Q.'%q_%s'\x00tokenchars\x00separators\x00L* N* Co\x00categories\x00remove_diacritics\x00unicode61\x00al\x00ance\x00ence\x00er\x00ic\x00able\x00ible\x00ant\x00ement\x00ment\x00ent\x00ion\x00ou\x00ism\x00ate\x00iti\x00ous\x00ive\x00ize\x00at\x00bl\x00ble\x00iz\x00ational\x00tional\x00tion\x00enci\x00anci\x00izer\x00logi\x00bli\x00alli\x00entli\x00eli\x00e\x00ousli\x00ization\x00ation\x00ator\x00alism\x00iveness\x00fulness\x00ful\x00ousness\x00aliti\x00iviti\x00biliti\x00ical\x00ness\x00icate\x00iciti\x00ative\x00alize\x00eed\x00ee\x00ed\x00ing\x00case_sensitive\x00ascii\x00porter\x00trigram\x00col\x00row\x00instance\x00fts5vocab: unknown table type: %Q\x00CREATE TABlE vocab(term, col, doc, cnt)\x00CREATE TABlE vocab(term, doc, cnt)\x00CREATE TABlE vocab(term, doc, col, offset)\x00wrong number of vtable arguments\x00recursive definition for %s.%s\x00SELECT t.%Q FROM %Q.%Q AS t WHERE t.%Q MATCH '*id'\x00no such fts5 table: %s.%s\x00fts5vocab\x002022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe\x00"
var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data