summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-12 23:02:04 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commitaefa70891cfd489fccb8a9567b5bdafb0f863ede (patch)
tree90fe7c91d7b33b2a1ed08ea3a94840860adc6fc1 /vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go
parent1b9877fda45be021ea6a5677c78648cecc19dcd5 (diff)
downloadmatterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.gz
matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.bz2
matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.zip
Update vendor (whatsapp)
Diffstat (limited to 'vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go')
-rw-r--r--vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go27454
1 files changed, 14446 insertions, 13008 deletions
diff --git a/vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go b/vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go
index 2441742b..7e847f9e 100644
--- a/vendor/modernc.org/sqlite/lib/sqlite_linux_amd64.go
+++ b/vendor/modernc.org/sqlite/lib/sqlite_linux_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_linux_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', 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_linux_amd64.go -trace-translation-units testdata/sqlite-amalgamation-3380000/sqlite3.c -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_OS_UNIX=1', DO NOT EDIT.
package sqlite3
@@ -659,15 +659,19 @@ const (
JNODE_RAW = 0x01
JNODE_REMOVE = 0x04
JNODE_REPLACE = 0x08
+ JSON_ABPATH = 0x03
JSON_ARRAY = 6
JSON_CACHE_ID = -429938
JSON_CACHE_SZ = 4
JSON_FALSE = 2
JSON_INT = 3
+ JSON_ISSET = 0x04
+ JSON_JSON = 0x01
JSON_MAX_DEPTH = 2000
JSON_NULL = 0
JSON_OBJECT = 7
JSON_REAL = 4
+ JSON_SQL = 0x02
JSON_STRING = 5
JSON_SUBTYPE = 74
JSON_TRUE = 1
@@ -977,68 +981,70 @@ const (
OPFLG_JUMP = 0x01
OPFLG_OUT2 = 0x10
OPFLG_OUT3 = 0x20
- OP_Abortable = 181
+ OP_Abortable = 184
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_AddImm = 85
+ OP_Affinity = 95
+ OP_AggFinal = 164
+ OP_AggInverse = 160
+ OP_AggStep = 161
+ OP_AggStep1 = 162
+ OP_AggValue = 163
OP_And = 44
OP_AutoCommit = 1
OP_BitAnd = 102
- OP_BitNot = 113
+ OP_BitNot = 114
OP_BitOr = 103
- OP_Blob = 75
- OP_Cast = 86
+ OP_Blob = 76
+ OP_Cast = 87
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_Clear = 144
+ OP_Close = 121
+ OP_CollSeq = 84
+ OP_Column = 93
+ OP_ColumnsUsed = 122
+ OP_Compare = 89
OP_Concat = 111
- OP_Copy = 78
- OP_Count = 96
- OP_CreateBtree = 145
- OP_CursorHint = 177
- OP_CursorLock = 165
- OP_CursorUnlock = 166
+ OP_Copy = 79
+ OP_Count = 97
+ OP_CreateBtree = 146
+ OP_CursorHint = 180
+ OP_CursorLock = 166
+ OP_CursorUnlock = 167
OP_DecrJumpZero = 60
- OP_DeferredSeek = 139
- OP_Delete = 128
- OP_Destroy = 142
+ OP_DeferredSeek = 140
+ OP_Delete = 129
+ OP_Destroy = 143
OP_Divide = 109
- OP_DropIndex = 150
- OP_DropTable = 149
- OP_DropTrigger = 151
+ OP_DropIndex = 151
+ OP_DropTable = 150
+ OP_DropTrigger = 152
OP_ElseEq = 58
- OP_EndCoroutine = 67
+ OP_EndCoroutine = 68
OP_Eq = 53
- OP_Expire = 164
- OP_Explain = 180
- OP_FinishSeek = 141
- OP_FkCounter = 156
+ OP_Expire = 165
+ OP_Explain = 183
+ OP_Filter = 63
+ OP_FilterAdd = 178
+ OP_FinishSeek = 142
+ OP_FkCheck = 82
+ OP_FkCounter = 157
OP_FkIfZero = 48
OP_Found = 31
- OP_Function = 65
+ OP_Function = 66
OP_Ge = 57
OP_Gosub = 12
OP_Goto = 11
OP_Gt = 54
- OP_Halt = 69
- OP_HaltIfNull = 68
- OP_IdxDelete = 138
+ OP_Halt = 70
+ OP_HaltIfNull = 69
+ OP_IdxDelete = 139
OP_IdxGE = 42
OP_IdxGT = 40
- OP_IdxInsert = 136
+ OP_IdxInsert = 137
OP_IdxLE = 39
OP_IdxLT = 41
- OP_IdxRowid = 140
+ OP_IdxRowid = 141
OP_If = 18
OP_IfNoHope = 28
OP_IfNot = 20
@@ -1048,117 +1054,118 @@ const (
OP_IfPos = 49
OP_IfSmaller = 35
OP_IncrVacuum = 61
- OP_Init = 63
+ OP_Init = 64
OP_InitCoroutine = 13
- OP_Insert = 126
- OP_Int64 = 71
- OP_IntCopy = 80
- OP_Integer = 70
- OP_IntegrityCk = 153
+ OP_Insert = 127
+ OP_Int64 = 72
+ OP_IntCopy = 81
+ OP_Integer = 71
+ OP_IntegrityCk = 154
OP_IsNull = 50
OP_IsNullOrType = 21
- OP_IsTrue = 89
+ OP_IsTrue = 90
OP_JournalMode = 7
OP_Jump = 16
OP_Last = 34
OP_Le = 55
- OP_LoadAnalysis = 148
+ OP_LoadAnalysis = 149
OP_Lt = 56
- OP_MakeRecord = 95
- OP_MaxPgcnt = 175
- OP_MemMax = 157
- OP_Move = 77
+ OP_MakeRecord = 96
+ OP_MaxPgcnt = 177
+ OP_MemMax = 158
+ OP_Move = 78
OP_Multiply = 108
OP_MustBeInt = 15
OP_Ne = 52
- OP_NewRowid = 125
+ OP_NewRowid = 126
OP_Next = 5
OP_NoConflict = 29
- OP_Noop = 179
+ OP_Noop = 182
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_Null = 74
+ OP_NullRow = 135
+ OP_Offset = 92
+ OP_OffsetLimit = 159
OP_Once = 17
- OP_OpenAutoindex = 114
- OP_OpenDup = 112
- OP_OpenEphemeral = 115
- OP_OpenPseudo = 119
- OP_OpenRead = 100
- OP_OpenWrite = 101
+ OP_OpenAutoindex = 115
+ OP_OpenDup = 113
+ OP_OpenEphemeral = 116
+ OP_OpenPseudo = 120
+ OP_OpenRead = 101
+ OP_OpenWrite = 112
OP_Or = 43
- OP_Pagecount = 174
- OP_Param = 155
- OP_ParseSchema = 147
- OP_Permutation = 87
+ OP_Pagecount = 176
+ OP_Param = 156
+ OP_ParseSchema = 148
+ OP_Permutation = 88
OP_Prev = 4
OP_Program = 47
- OP_PureFunc = 64
- OP_ReadCookie = 97
- OP_Real = 152
- OP_RealAffinity = 85
- OP_ReleaseReg = 178
+ OP_PureFunc = 65
+ OP_ReadCookie = 98
+ OP_Real = 153
+ OP_RealAffinity = 86
+ OP_ReleaseReg = 181
OP_Remainder = 110
- OP_ReopenIdx = 99
- OP_ResetCount = 129
- OP_ResetSorter = 144
- OP_ResultRow = 82
- OP_Return = 66
+ OP_ReopenIdx = 100
+ OP_ResetCount = 130
+ OP_ResetSorter = 145
+ OP_ResultRow = 83
+ OP_Return = 67
OP_Rewind = 38
- OP_RowCell = 127
- OP_RowData = 132
- OP_RowSetAdd = 154
+ OP_RowCell = 128
+ OP_RowData = 133
+ OP_RowSetAdd = 155
OP_RowSetRead = 45
OP_RowSetTest = 46
- OP_Rowid = 133
- OP_SCopy = 79
+ OP_Rowid = 134
+ OP_SCopy = 80
OP_Savepoint = 0
- OP_SeekEnd = 135
+ OP_SeekEnd = 136
OP_SeekGE = 25
OP_SeekGT = 26
- OP_SeekHit = 123
+ OP_SeekHit = 124
OP_SeekLE = 24
OP_SeekLT = 23
OP_SeekRowid = 32
- OP_SeekScan = 122
- OP_Sequence = 124
- OP_SequenceTest = 118
- OP_SetCookie = 98
+ OP_SeekScan = 123
+ OP_Sequence = 125
+ OP_SequenceTest = 119
+ OP_SetCookie = 99
OP_ShiftLeft = 104
OP_ShiftRight = 105
- OP_SoftNull = 74
+ OP_SoftNull = 75
OP_Sort = 37
- OP_SorterCompare = 130
- OP_SorterData = 131
- OP_SorterInsert = 137
+ OP_SorterCompare = 131
+ OP_SorterData = 132
+ OP_SorterInsert = 138
OP_SorterNext = 3
- OP_SorterOpen = 117
+ OP_SorterOpen = 118
OP_SorterSort = 36
- OP_SqlExec = 146
- OP_String = 72
- OP_String8 = 116
+ OP_SqlExec = 147
+ OP_String = 73
+ OP_String8 = 117
OP_Subtract = 107
- OP_TableLock = 167
- OP_Trace = 176
+ OP_TableLock = 168
+ OP_Trace = 179
OP_Transaction = 2
- OP_TypeCheck = 93
- OP_VBegin = 168
- OP_VColumn = 172
- OP_VCreate = 169
- OP_VDestroy = 170
+ OP_TypeCheck = 94
+ OP_VBegin = 169
+ OP_VColumn = 174
+ OP_VCreate = 170
+ OP_VDestroy = 171
OP_VFilter = 9
+ OP_VInitIn = 173
OP_VNext = 62
- OP_VOpen = 171
- OP_VRename = 173
+ OP_VOpen = 172
+ OP_VRename = 175
OP_VUpdate = 10
OP_Vacuum = 8
- OP_Variable = 76
+ OP_Variable = 77
OP_Yield = 14
- OP_ZeroOrNull = 90
+ OP_ZeroOrNull = 91
OS_VXWORKS = 0
O_ACCMODE = 0003
O_APPEND = 02000
@@ -1576,6 +1583,9 @@ const (
SQLITE_BUSY_SNAPSHOT = 517
SQLITE_BUSY_TIMEOUT = 773
SQLITE_BYTEORDER = 1234
+ SQLITE_BalancedMerge = 0x00200000
+ SQLITE_BloomFilter = 0x00080000
+ SQLITE_BloomPulldown = 0x00100000
SQLITE_CALLBACK = 0
SQLITE_CANTOPEN = 14
SQLITE_CANTOPEN_CONVPATH = 1038
@@ -1746,7 +1756,6 @@ const (
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
@@ -1869,9 +1878,11 @@ const (
SQLITE_INDEX_CONSTRAINT_ISNULL = 71
SQLITE_INDEX_CONSTRAINT_LE = 8
SQLITE_INDEX_CONSTRAINT_LIKE = 65
+ SQLITE_INDEX_CONSTRAINT_LIMIT = 73
SQLITE_INDEX_CONSTRAINT_LT = 16
SQLITE_INDEX_CONSTRAINT_MATCH = 64
SQLITE_INDEX_CONSTRAINT_NE = 68
+ SQLITE_INDEX_CONSTRAINT_OFFSET = 74
SQLITE_INDEX_CONSTRAINT_REGEXP = 67
SQLITE_INDEX_SCAN_UNIQUE = 1
SQLITE_INNOCUOUS = 0x000200000
@@ -2009,7 +2020,7 @@ const (
SQLITE_MUTEX_STATIC_VFS1 = 11
SQLITE_MUTEX_STATIC_VFS2 = 12
SQLITE_MUTEX_STATIC_VFS3 = 13
- SQLITE_MX_JUMP_OPCODE = 63
+ SQLITE_MX_JUMP_OPCODE = 64
SQLITE_MinMaxOpt = 0x00010000
SQLITE_NOLFS = 22
SQLITE_NOMATCH = 1
@@ -2131,7 +2142,7 @@ const (
SQLITE_SHM_UNLOCK = 1
SQLITE_SORTER_PMASZ = 250
SQLITE_SOUNDEX = 1
- SQLITE_SOURCE_ID = "2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0"
+ SQLITE_SOURCE_ID = "2022-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab"
SQLITE_SO_ASC = 0
SQLITE_SO_DESC = 1
SQLITE_SO_UNDEFINED = -1
@@ -2155,6 +2166,8 @@ const (
SQLITE_STDCALL = 0
SQLITE_STMTJRNL_SPILL = 65536
SQLITE_STMTSTATUS_AUTOINDEX = 3
+ SQLITE_STMTSTATUS_FILTER_HIT = 8
+ SQLITE_STMTSTATUS_FILTER_MISS = 7
SQLITE_STMTSTATUS_FULLSCAN_STEP = 1
SQLITE_STMTSTATUS_MEMUSED = 99
SQLITE_STMTSTATUS_REPREPARE = 5
@@ -2188,8 +2201,9 @@ const (
SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17
SQLITE_TESTCTRL_ISINIT = 23
SQLITE_TESTCTRL_ISKEYWORD = 16
- SQLITE_TESTCTRL_LAST = 32
+ SQLITE_TESTCTRL_LAST = 33
SQLITE_TESTCTRL_LOCALTIME_FAULT = 18
+ SQLITE_TESTCTRL_LOGEST = 33
SQLITE_TESTCTRL_NEVER_CORRUPT = 20
SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19
SQLITE_TESTCTRL_OPTIMIZATIONS = 15
@@ -2236,8 +2250,8 @@ const (
SQLITE_UTF8 = 1
SQLITE_VDBEINT_H = 0
SQLITE_VDBE_H = 0
- SQLITE_VERSION = "3.37.2"
- SQLITE_VERSION_NUMBER = 3037002
+ SQLITE_VERSION = "3.38.0"
+ SQLITE_VERSION_NUMBER = 3038000
SQLITE_VTABRISK_High = 2
SQLITE_VTABRISK_Low = 0
SQLITE_VTABRISK_Normal = 1
@@ -2378,8 +2392,9 @@ const (
TERM_LIKE = 0x0400
TERM_LIKECOND = 0x0200
TERM_LIKEOPT = 0x0100
+ TERM_OK = 0x0040
TERM_ORINFO = 0x0010
- TERM_OR_OK = 0x0040
+ TERM_SLICE = 0x8000
TERM_VARSELECT = 0x1000
TERM_VIRTUAL = 0x0002
TERM_VNULL = 0x0080
@@ -2469,106 +2484,106 @@ const (
TIOCVHANGUP = 0x5437
TK_ABORT = 27
TK_ACTION = 28
- TK_ADD = 162
+ TK_ADD = 163
TK_AFTER = 29
- TK_AGG_COLUMN = 168
- TK_AGG_FUNCTION = 167
- TK_ALL = 134
- TK_ALTER = 161
+ TK_AGG_COLUMN = 169
+ TK_AGG_FUNCTION = 168
+ TK_ALL = 135
+ TK_ALTER = 162
TK_ALWAYS = 96
TK_ANALYZE = 30
TK_AND = 44
TK_ANY = 101
TK_AS = 24
TK_ASC = 31
- TK_ASTERISK = 179
+ TK_ASTERISK = 180
TK_ATTACH = 32
- TK_AUTOINCR = 125
+ TK_AUTOINCR = 126
TK_BEFORE = 33
TK_BEGIN = 5
TK_BETWEEN = 48
TK_BITAND = 102
- TK_BITNOT = 113
+ TK_BITNOT = 114
TK_BITOR = 103
- TK_BLOB = 153
+ TK_BLOB = 154
TK_BY = 34
TK_CASCADE = 35
- TK_CASE = 156
+ TK_CASE = 157
TK_CAST = 36
- TK_CHECK = 123
- TK_COLLATE = 112
- TK_COLUMN = 166
+ TK_CHECK = 124
+ TK_COLLATE = 113
+ TK_COLUMN = 167
TK_COLUMNKW = 60
TK_COMMA = 25
TK_COMMIT = 10
TK_CONCAT = 111
TK_CONFLICT = 37
- TK_CONSTRAINT = 118
+ TK_CONSTRAINT = 119
TK_CREATE = 17
TK_CTIME_KW = 100
TK_CURRENT = 85
TK_DATABASE = 38
- TK_DEFAULT = 119
- TK_DEFERRABLE = 130
+ TK_DEFAULT = 120
+ TK_DEFERRABLE = 131
TK_DEFERRED = 7
- TK_DELETE = 127
+ TK_DELETE = 128
TK_DESC = 39
TK_DETACH = 40
- TK_DISTINCT = 139
+ TK_DISTINCT = 140
TK_DO = 61
- TK_DOT = 140
- TK_DROP = 132
+ TK_DOT = 141
+ TK_DROP = 133
TK_EACH = 41
- TK_ELSE = 159
+ TK_ELSE = 160
TK_END = 11
TK_EQ = 53
- TK_ERROR = 181
+ TK_ERROR = 182
TK_ESCAPE = 58
- TK_EXCEPT = 135
+ TK_EXCEPT = 136
TK_EXCLUDE = 91
TK_EXCLUSIVE = 9
TK_EXISTS = 20
TK_EXPLAIN = 2
TK_FAIL = 42
- TK_FILTER = 165
+ TK_FILTER = 166
TK_FIRST = 83
- TK_FLOAT = 152
+ TK_FLOAT = 153
TK_FOLLOWING = 86
TK_FOR = 62
- TK_FOREIGN = 131
- TK_FROM = 141
- TK_FUNCTION = 171
+ TK_FOREIGN = 132
+ TK_FROM = 142
+ TK_FUNCTION = 172
TK_GE = 57
TK_GENERATED = 95
- TK_GROUP = 145
+ TK_GROUP = 146
TK_GROUPS = 92
TK_GT = 54
- TK_HAVING = 146
+ TK_HAVING = 147
TK_ID = 59
TK_IF = 18
- TK_IF_NULL_ROW = 178
+ TK_IF_NULL_ROW = 179
TK_IGNORE = 63
- TK_ILLEGAL = 183
+ TK_ILLEGAL = 184
TK_IMMEDIATE = 8
TK_IN = 49
- TK_INDEX = 160
- TK_INDEXED = 115
+ TK_INDEX = 161
+ TK_INDEXED = 116
TK_INITIALLY = 64
- TK_INSERT = 126
+ TK_INSERT = 127
TK_INSTEAD = 65
- TK_INTEGER = 154
- TK_INTERSECT = 136
- TK_INTO = 150
+ TK_INTEGER = 155
+ TK_INTERSECT = 137
+ TK_INTO = 151
TK_IS = 45
- TK_ISNOT = 170
+ TK_ISNOT = 171
TK_ISNULL = 50
- TK_JOIN = 142
- TK_JOIN_KW = 117
+ TK_JOIN = 143
+ TK_JOIN_KW = 118
TK_KEY = 67
TK_LAST = 84
TK_LE = 55
TK_LIKE_KW = 47
- TK_LIMIT = 147
+ TK_LIMIT = 148
TK_LP = 22
TK_LSHIFT = 104
TK_LT = 56
@@ -2578,76 +2593,77 @@ const (
TK_NE = 52
TK_NO = 66
TK_NOT = 19
- TK_NOTHING = 151
+ TK_NOTHING = 152
TK_NOTNULL = 51
- TK_NULL = 120
+ TK_NULL = 121
TK_NULLS = 82
TK_OF = 68
TK_OFFSET = 69
- TK_ON = 114
+ TK_ON = 115
TK_OR = 43
- TK_ORDER = 144
+ TK_ORDER = 145
TK_OTHERS = 93
- TK_OVER = 164
+ TK_OVER = 165
TK_PARTITION = 87
TK_PLAN = 4
TK_PLUS = 106
TK_PRAGMA = 70
TK_PRECEDING = 88
- TK_PRIMARY = 121
+ TK_PRIMARY = 122
+ TK_PTR = 112
TK_QUERY = 3
TK_RAISE = 71
TK_RANGE = 89
TK_RECURSIVE = 72
- TK_REFERENCES = 124
- TK_REGISTER = 175
+ TK_REFERENCES = 125
+ TK_REGISTER = 176
TK_REINDEX = 98
TK_RELEASE = 14
TK_REM = 110
TK_RENAME = 99
TK_REPLACE = 73
TK_RESTRICT = 74
- TK_RETURNING = 149
+ TK_RETURNING = 150
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_SELECT = 138
+ TK_SELECT_COLUMN = 178
TK_SEMI = 1
- TK_SET = 129
+ TK_SET = 130
TK_SLASH = 109
- TK_SPACE = 182
- TK_SPAN = 180
+ TK_SPACE = 183
+ TK_SPAN = 181
TK_STAR = 108
- TK_STRING = 116
+ TK_STRING = 117
TK_TABLE = 16
TK_TEMP = 21
- TK_THEN = 158
+ TK_THEN = 159
TK_TIES = 94
TK_TO = 15
TK_TRANSACTION = 6
TK_TRIGGER = 77
- TK_TRUEFALSE = 169
- TK_TRUTH = 174
- TK_UMINUS = 172
+ TK_TRUEFALSE = 170
+ TK_TRUTH = 175
+ TK_UMINUS = 173
TK_UNBOUNDED = 90
- TK_UNION = 133
- TK_UNIQUE = 122
- TK_UPDATE = 128
- TK_UPLUS = 173
- TK_USING = 143
+ TK_UNION = 134
+ TK_UNIQUE = 123
+ TK_UPDATE = 129
+ TK_UPLUS = 174
+ TK_USING = 144
TK_VACUUM = 78
- TK_VALUES = 138
- TK_VARIABLE = 155
- TK_VECTOR = 176
+ TK_VALUES = 139
+ TK_VARIABLE = 156
+ TK_VECTOR = 177
TK_VIEW = 79
TK_VIRTUAL = 80
- TK_WHEN = 157
- TK_WHERE = 148
- TK_WINDOW = 163
+ TK_WHEN = 158
+ TK_WHERE = 149
+ TK_WINDOW = 164
TK_WITH = 81
TK_WITHOUT = 26
TMP_MAX = 238328
@@ -2701,6 +2717,7 @@ const (
WHERE_AGG_DISTINCT = 0x0400
WHERE_AUTO_INDEX = 0x00004000
WHERE_BIGNULL_SORT = 0x00080000
+ WHERE_BLOOMFILTER = 0x00400000
WHERE_BOTH_LIMIT = 0x00000030
WHERE_BTM_LIMIT = 0x00000020
WHERE_COLUMN_EQ = 0x00000001
@@ -2722,6 +2739,7 @@ const (
WHERE_IN_SEEKSCAN = 0x00100000
WHERE_IPK = 0x00000100
WHERE_MULTI_OR = 0x00002000
+ WHERE_OMIT_OFFSET = 0x01000000
WHERE_ONEPASS_DESIRED = 0x0004
WHERE_ONEPASS_MULTIROW = 0x0008
WHERE_ONEROW = 0x00001000
@@ -2731,6 +2749,7 @@ const (
WHERE_ORDERBY_NORMAL = 0x0000
WHERE_OR_SUBCLAUSE = 0x0020
WHERE_PARTIALIDX = 0x00020000
+ WHERE_SELFCULL = 0x00800000
WHERE_SKIPSCAN = 0x00008000
WHERE_SORTBYGROUP = 0x0200
WHERE_TOP_LIMIT = 0x00000010
@@ -2775,29 +2794,29 @@ const (
XN_ROWID = -1
X_OK = 1
YYFALLBACK = 1
- YYNOCODE = 318
+ YYNOCODE = 319
YYNOERRORRECOVERY = 1
- YYNRULE = 401
- YYNRULE_WITH_ACTION = 339
- YYNSTATE = 572
- YYNTOKEN = 184
+ YYNRULE = 402
+ YYNRULE_WITH_ACTION = 340
+ YYNSTATE = 574
+ YYNTOKEN = 185
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_ACCEPT_ACTION = 1234
+ YY_ACTTAB_COUNT = 2070
+ YY_ERROR_ACTION = 1233
+ YY_MAX_REDUCE = 1637
+ YY_MAX_SHIFT = 573
+ YY_MAX_SHIFTREDUCE = 1232
+ YY_MIN_REDUCE = 1236
+ YY_MIN_SHIFTREDUCE = 831
+ YY_NO_ACTION = 1235
+ YY_REDUCE_COUNT = 408
+ YY_REDUCE_MAX = 1715
+ YY_REDUCE_MIN = -267
+ YY_SHIFT_COUNT = 573
+ YY_SHIFT_MAX = 2045
YY_SHIFT_MIN = 0
X_ALLOCA_H = 1
X_ANSI_STDARG_H_ = 0
@@ -3718,7 +3737,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
// *****************************************************************************
//
// This file is an amalgamation of many separate C source files from SQLite
-// version 3.37.2. By combining all the individual C code files into this
+// version 3.38.0. By combining all the individual C code files into this
// single large file, the entire code can be compiled as a single translation
// unit. This allows many compilers to do optimizations that would not be
// possible if the files were compiled separately. Performance improvements
@@ -4096,6 +4115,7 @@ type sqlite3 = struct {
FnSchemaLock U32
FopenFlags uint32
FerrCode int32
+ FerrByteOffset int32
FerrMask int32
FiSysErrno int32
FdbOptFlags U32
@@ -4115,12 +4135,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
@@ -4860,6 +4879,12 @@ type sqlite3_api_routines = struct {
Fchanges64 uintptr
Ftotal_changes64 uintptr
Fautovacuum_pages uintptr
+ Ferror_offset uintptr
+ Fvtab_rhs_value uintptr
+ Fvtab_distinct uintptr
+ Fvtab_in uintptr
+ Fvtab_in_first uintptr
+ Fvtab_in_next uintptr
} /* sqlite3.c:1560:9 */
// CAPI3REF: Loadable Extension Thunk
@@ -5399,6 +5424,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
@@ -5451,6 +5478,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
@@ -5458,7 +5487,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 /* sqlite3.c:4675:30 */
// CAPI3REF: SQL Function Context Object
//
@@ -5493,7 +5522,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 /* sqlite3.c:4689:32 */
// CAPI3REF: Constants Defining Special Destructor Behavior
//
@@ -5507,7 +5536,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 /* sqlite3.c:6054:14 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -5532,7 +5561,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 /* sqlite3.c:7239:29 */
type sqlite3_index_info = struct {
FnConstraint int32
F__ccgo_pad1 [4]byte
@@ -5551,12 +5580,12 @@ type sqlite3_index_info = struct {
FidxFlags int32
F__ccgo_pad4 [4]byte
FcolUsed Sqlite3_uint64
-} /* sqlite3.c:7225:9 */
+} /* sqlite3.c:7240: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 /* sqlite3.c:7240:35 */
+type sqlite3_vtab_cursor = struct{ FpVtab uintptr } /* sqlite3.c:7241:9 */
-type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* sqlite3.c:7226:36 */
+type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* sqlite3.c:7241:36 */
type sqlite3_module = struct {
FiVersion int32
F__ccgo_pad1 [4]byte
@@ -5585,7 +5614,7 @@ type sqlite3_module = struct {
FxShadowName uintptr
} /* sqlite3.c:578:9 */
-type Sqlite3_module = sqlite3_module /* sqlite3.c:7227:31 */
+type Sqlite3_module = sqlite3_module /* sqlite3.c:7242:31 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5693,7 +5722,7 @@ type sqlite3_index_constraint = struct {
Fusable uint8
F__ccgo_pad1 [2]byte
FiTermOffset int32
-} /* sqlite3.c:7225:9 */
+} /* sqlite3.c:7240:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5799,7 +5828,7 @@ type sqlite3_index_orderby = struct {
FiColumn int32
Fdesc uint8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:7225:9 */
+} /* sqlite3.c:7240:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5905,7 +5934,7 @@ type sqlite3_index_constraint_usage = struct {
FargvIndex int32
Fomit uint8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:7225:9 */
+} /* sqlite3.c:7240:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -5980,7 +6009,7 @@ type sqlite3_mutex_methods = struct {
FxMutexLeave uintptr
FxMutexHeld uintptr
FxMutexNotheld uintptr
-} /* sqlite3.c:8059:9 */
+} /* sqlite3.c:8106:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -6045,7 +6074,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 /* sqlite3.c:8106:38 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -6070,7 +6099,7 @@ type sqlite3_str = struct {
FaccError U8
FprintfFlags U8
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:8322:9 */
+} /* sqlite3.c:8370:9 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -6086,7 +6115,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 /* sqlite3.c:8370:28 */
// CAPI3REF: Custom Page Cache Object
//
@@ -6109,7 +6138,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 /* sqlite3.c:8875:36 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -6283,7 +6312,7 @@ type sqlite3_pcache_methods2 = struct {
FxTruncate uintptr
FxDestroy uintptr
FxShrink uintptr
-} /* sqlite3.c:8980:9 */
+} /* sqlite3.c:9040:9 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -6442,7 +6471,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 /* sqlite3.c:9040: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
@@ -6459,12 +6488,12 @@ type sqlite3_pcache_methods = struct {
FxRekey uintptr
FxTruncate uintptr
FxDestroy uintptr
-} /* sqlite3.c:9003:9 */
+} /* sqlite3.c:9063: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 /* sqlite3.c:9063:39 */
// CAPI3REF: Online Backup Object
//
@@ -6498,7 +6527,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 /* sqlite3.c:9089:31 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -6518,7 +6547,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 } /* sqlite3.c:10381:9 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -6538,7 +6567,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 /* sqlite3.c:10383:3 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -6582,7 +6611,7 @@ type sqlite3_rtree_geometry = struct {
FaParam uintptr
FpUser uintptr
FxDelUser uintptr
-} /* sqlite3.c:10402:9 */
+} /* sqlite3.c:10712:9 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -6619,7 +6648,7 @@ type sqlite3_rtree_geometry = struct {
//
//
-type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* sqlite3.c:10402:39 */
+type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* sqlite3.c:10712:39 */
type sqlite3_rtree_query_info = struct {
FpContext uintptr
FnParam int32
@@ -6639,13 +6668,13 @@ type sqlite3_rtree_query_info = struct {
FeWithin int32
FrScore Sqlite3_rtree_dbl
FapSqlParam uintptr
-} /* sqlite3.c:10403:9 */
+} /* sqlite3.c:10713:9 */
-type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* sqlite3.c:10403:41 */
+type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* sqlite3.c:10713: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 /* sqlite3.c:10721:18 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -6675,7 +6704,7 @@ type sqlite3_session = struct {
FpNext uintptr
FpTable uintptr
Fhook SessionHook
-} /* sqlite3.c:10518:9 */
+} /* sqlite3.c:10828:9 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -6688,7 +6717,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 /* sqlite3.c:10828:32 */
// CAPI3REF: Changeset Iterator Handle
//
@@ -6709,13 +6738,13 @@ type sqlite3_changeset_iter = struct {
F__ccgo_pad1 [4]byte
FabPK uintptr
FapValue uintptr
-} /* sqlite3.c:10526:9 */
+} /* sqlite3.c:10836: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 /* sqlite3.c:10836:39 */
// CAPI3REF: Changegroup Handle
//
@@ -6725,13 +6754,13 @@ type sqlite3_changegroup = struct {
Frc int32
FbPatch int32
FpList uintptr
-} /* sqlite3.c:11378:9 */
+} /* sqlite3.c:11688: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 /* sqlite3.c:11688:36 */
// CAPI3REF: Flags for sqlite3changeset_apply_v2
//
@@ -6933,7 +6962,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 } /* sqlite3.c:12252:9 */
// CAPI3REF: Flags for sqlite3changeset_apply_v2
//
@@ -7135,7 +7164,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 /* sqlite3.c:12252:32 */
// CAPI3REF: Values for sqlite3session_config().
@@ -7189,7 +7218,7 @@ type Fts5ExtensionApi1 = struct {
FxPhraseNext uintptr
FxPhraseFirstColumn uintptr
FxPhraseNextColumn uintptr
-} /* sqlite3.c:12258:9 */
+} /* sqlite3.c:12568:9 */
// CAPI3REF: Values for sqlite3session_config().
@@ -7221,22 +7250,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 /* sqlite3.c:12568:33 */
type Fts5PhraseIter1 = struct {
Fa uintptr
Fb uintptr
-} /* sqlite3.c:12260:9 */
+} /* sqlite3.c:12570:9 */
-type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.c:12260:31 */
+type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.c:12570:31 */
-type Fts5_extension_function = uintptr /* sqlite3.c:12262:14 */
+type Fts5_extension_function = uintptr /* sqlite3.c:12572:14 */
type fts5_tokenizer = struct {
FxCreate uintptr
FxDelete uintptr
FxTokenize uintptr
-} /* sqlite3.c:12721:9 */
+} /* sqlite3.c:13031:9 */
-type Fts5_tokenizer = fts5_tokenizer /* sqlite3.c:12721:31 */
+type Fts5_tokenizer = fts5_tokenizer /* sqlite3.c:13031:31 */
// Flags that may be passed as the third argument to xTokenize()
@@ -7256,7 +7285,7 @@ type fts5_api = struct {
FxCreateTokenizer uintptr
FxFindTokenizer uintptr
FxCreateFunction uintptr
-} /* sqlite3.c:12757:9 */
+} /* sqlite3.c:13067:9 */
// Flags that may be passed as the third argument to xTokenize()
@@ -7270,7 +7299,7 @@ type fts5_api = struct {
// ************************************************************************
//
// FTS5 EXTENSION REGISTRATION API
-type Fts5_api = fts5_api /* sqlite3.c:12757:25 */
+type Fts5_api = fts5_api /* sqlite3.c:13067:25 */
//
// END OF REGISTRATION API
@@ -7891,7 +7920,7 @@ type Hash1 = struct {
// used in SQLite.
// Forward declarations of structures.
-type Hash = Hash1 /* sqlite3.c:13430:21 */
+type Hash = Hash1 /* sqlite3.c:13740:21 */
type HashElem1 = struct {
Fnext uintptr
Fprev uintptr
@@ -7899,7 +7928,7 @@ type HashElem1 = struct {
FpKey uintptr
} /* sqlite3.c:578:9 */
-type HashElem = HashElem1 /* sqlite3.c:13431:25 */
+type HashElem = HashElem1 /* sqlite3.c:13741:25 */
// A complete hash table is an instance of the following structure.
// The internals of this structure are intended to be opaque -- client
@@ -9662,13 +9691,13 @@ type Max_align_t = struct {
// types can be conveniently redefined at compile-type. Like this:
//
// cc '-DUINTPTR_TYPE=long long int' ...
-type I64 = Sqlite_int64 /* 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 /* sqlite3.c:14213:22 */ // 8-byte signed integer
+type U64 = Sqlite_uint64 /* sqlite3.c:14214:23 */ // 8-byte unsigned integer
+type U32 = uint32 /* sqlite3.c:14215:21 */ // 4-byte unsigned integer
+type U16 = uint16 /* sqlite3.c:14216:21 */ // 2-byte unsigned integer
+type I16 = int16 /* sqlite3.c:14217:20 */ // 2-byte signed integer
+type U8 = uint8 /* sqlite3.c:14218:20 */ // 1-byte unsigned integer
+type I8 = int8 /* sqlite3.c:14219: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
@@ -9679,7 +9708,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 /* sqlite3.c:14238: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
@@ -9702,12 +9731,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 /* sqlite3.c:14264: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 /* sqlite3.c:14289:15 */
// An instance of the following structure is used to store the busy-handler
// callback for a given sqlite handle.
@@ -9730,7 +9759,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 /* sqlite3.c:14460:28 */
// Name of table that holds the database schema.
//
@@ -9872,13 +9901,13 @@ 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 /* sqlite3.c:14570:24 */
type AuthContext1 = struct {
FzAuthContext uintptr
FpParse uintptr
-} /* sqlite3.c:14260:9 */
+} /* sqlite3.c:14571:9 */
-type AuthContext = AuthContext1 /* sqlite3.c:14260:28 */
+type AuthContext = AuthContext1 /* sqlite3.c:14571:28 */
type AutoincInfo1 = struct {
FpNext uintptr
FpTab uintptr
@@ -9886,7 +9915,7 @@ type AutoincInfo1 = struct {
FregCtr int32
} /* sqlite3.c:578:9 */
-type AutoincInfo = AutoincInfo1 /* sqlite3.c:14261:28 */
+type AutoincInfo = AutoincInfo1 /* sqlite3.c:14572:28 */
type Bitvec1 = struct {
FiSize U32
FnSet U32
@@ -9898,7 +9927,7 @@ type Bitvec1 = struct {
}
} /* sqlite3.c:578:9 */
-type Bitvec = Bitvec1 /* sqlite3.c:14262:23 */
+type Bitvec = Bitvec1 /* sqlite3.c:14573:23 */
type CollSeq1 = struct {
FzName uintptr
Fenc U8
@@ -9908,7 +9937,7 @@ type CollSeq1 = struct {
FxDel uintptr
} /* sqlite3.c:578:9 */
-type CollSeq = CollSeq1 /* sqlite3.c:14263:24 */
+type CollSeq = CollSeq1 /* sqlite3.c:14574:24 */
type Column1 = struct {
FzCnName uintptr
FnotNull uint8 /* unsigned notNull: 4, unsigned eCType: 4 */
@@ -9922,7 +9951,7 @@ type Column1 = struct {
F__ccgo_pad3 [6]byte
} /* sqlite3.c:578:9 */
-type Column = Column1 /* sqlite3.c:14264:23 */
+type Column = Column1 /* sqlite3.c:14575:23 */
type Cte1 = struct {
FzName uintptr
FpCols uintptr
@@ -9933,7 +9962,7 @@ type Cte1 = struct {
F__ccgo_pad1 [7]byte
} /* sqlite3.c:578:9 */
-type Cte = Cte1 /* sqlite3.c:14265:20 */
+type Cte = Cte1 /* sqlite3.c:14576:20 */
type CteUse1 = struct {
FnUse int32
FaddrM9e int32
@@ -9944,7 +9973,7 @@ type CteUse1 = struct {
F__ccgo_pad1 [1]byte
} /* sqlite3.c:578:9 */
-type CteUse = CteUse1 /* sqlite3.c:14266:23 */
+type CteUse = CteUse1 /* sqlite3.c:14577:23 */
type Db1 = struct {
FzDbSName uintptr
FpBt uintptr
@@ -9954,7 +9983,7 @@ type Db1 = struct {
FpSchema uintptr
} /* sqlite3.c:578:9 */
-type Db = Db1 /* sqlite3.c:14267:19 */
+type Db = Db1 /* sqlite3.c:14578:19 */
type DbFixer1 = struct {
FpParse uintptr
Fw Walker
@@ -9964,9 +9993,9 @@ type DbFixer1 = struct {
FzDb uintptr
FzType uintptr
FpName uintptr
-} /* sqlite3.c:14268:9 */
+} /* sqlite3.c:14579:9 */
-type DbFixer = DbFixer1 /* sqlite3.c:14268:24 */
+type DbFixer = DbFixer1 /* sqlite3.c:14579:24 */
type Schema1 = struct {
Fschema_cookie int32
FiGeneration int32
@@ -9981,27 +10010,27 @@ type Schema1 = struct {
Fcache_size int32
} /* sqlite3.c:578:9 */
-type Schema = Schema1 /* sqlite3.c:14269:23 */
+type Schema = Schema1 /* sqlite3.c:14580: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 }
+ 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 }
} /* sqlite3.c:578:9 */
-type Expr = Expr1 /* sqlite3.c:14270:21 */
+type Expr = Expr1 /* sqlite3.c:14581:21 */
type ExprList1 = struct {
FnExpr int32
FnAlloc int32
@@ -10023,7 +10052,7 @@ type ExprList1 = struct {
}
} /* sqlite3.c:578:9 */
-type ExprList = ExprList1 /* sqlite3.c:14271:25 */
+type ExprList = ExprList1 /* sqlite3.c:14582:25 */
type FKey1 = struct {
FpFrom uintptr
FpNextFrom uintptr
@@ -10040,17 +10069,17 @@ type FKey1 = struct {
F__ccgo_pad1 [4]byte
FzCol uintptr
}
-} /* sqlite3.c:14272:9 */
+} /* sqlite3.c:14583:9 */
-type FKey = FKey1 /* sqlite3.c:14272:21 */
+type FKey = FKey1 /* sqlite3.c:14583:21 */
type FuncDestructor1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FxDestroy uintptr
FpUserData uintptr
-} /* sqlite3.c:14273:9 */
+} /* sqlite3.c:14584:9 */
-type FuncDestructor = FuncDestructor1 /* sqlite3.c:14273:31 */
+type FuncDestructor = FuncDestructor1 /* sqlite3.c:14584:31 */
type FuncDef1 = struct {
FnArg I8
F__ccgo_pad1 [3]byte
@@ -10065,17 +10094,17 @@ type FuncDef1 = struct {
Fu struct{ FpHash uintptr }
} /* sqlite3.c:578:9 */
-type FuncDef = FuncDef1 /* sqlite3.c:14274:24 */
-type FuncDefHash1 = struct{ Fa [23]uintptr } /* sqlite3.c:14275:9 */
+type FuncDef = FuncDef1 /* sqlite3.c:14585:24 */
+type FuncDefHash1 = struct{ Fa [23]uintptr } /* sqlite3.c:14586:9 */
-type FuncDefHash = FuncDefHash1 /* sqlite3.c:14275:28 */
+type FuncDefHash = FuncDefHash1 /* sqlite3.c:14586:28 */
type IdList1 = struct {
Fa uintptr
FnId int32
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type IdList = IdList1 /* sqlite3.c:14276:23 */
+type IdList = IdList1 /* sqlite3.c:14587:23 */
type Index1 = struct {
FzName uintptr
FaiColumn uintptr
@@ -10106,7 +10135,7 @@ type Index1 = struct {
FcolNotIdxed Bitmask
} /* sqlite3.c:578:9 */
-type Index = Index1 /* sqlite3.c:14277:22 */
+type Index = Index1 /* sqlite3.c:14588:22 */
type IndexSample1 = struct {
Fp uintptr
Fn int32
@@ -10116,7 +10145,7 @@ type IndexSample1 = struct {
FanDLt uintptr
} /* sqlite3.c:578:9 */
-type IndexSample = IndexSample1 /* sqlite3.c:14278:28 */
+type IndexSample = IndexSample1 /* sqlite3.c:14589:28 */
type KeyInfo1 = struct {
FnRef U32
Fenc U8
@@ -10129,7 +10158,7 @@ type KeyInfo1 = struct {
FaColl [1]uintptr
} /* sqlite3.c:578:9 */
-type KeyInfo = KeyInfo1 /* sqlite3.c:14280:24 */
+type KeyInfo = KeyInfo1 /* sqlite3.c:14591:24 */
type Lookaside1 = struct {
FbDisable U32
Fsz U16
@@ -10148,10 +10177,10 @@ type Lookaside1 = struct {
FpEnd uintptr
} /* sqlite3.c:578:9 */
-type Lookaside = Lookaside1 /* sqlite3.c:14281:26 */
+type Lookaside = Lookaside1 /* sqlite3.c:14592:26 */
type LookasideSlot1 = struct{ FpNext uintptr } /* sqlite3.c:578:9 */
-type LookasideSlot = LookasideSlot1 /* sqlite3.c:14282:30 */
+type LookasideSlot = LookasideSlot1 /* sqlite3.c:14593:30 */
type Module1 = struct {
FpModule uintptr
FzName uintptr
@@ -10162,7 +10191,7 @@ type Module1 = struct {
FpEpoTab uintptr
} /* sqlite3.c:578:9 */
-type Module = Module1 /* sqlite3.c:14283:23 */
+type Module = Module1 /* sqlite3.c:14594:23 */
type NameContext1 = struct {
FpParse uintptr
FpSrcList uintptr
@@ -10173,9 +10202,9 @@ type NameContext1 = struct {
FncFlags int32
F__ccgo_pad1 [4]byte
FpWinSelect uintptr
-} /* sqlite3.c:14284:9 */
+} /* sqlite3.c:14595:9 */
-type NameContext = NameContext1 /* sqlite3.c:14284:28 */
+type NameContext = NameContext1 /* sqlite3.c:14595:28 */
type Parse1 = struct {
Fdb uintptr
FzErrMsg uintptr
@@ -10232,6 +10261,7 @@ type Parse1 = struct {
FeOrconf U8
FdisableTriggers U8
FaTempReg [8]int32
+ FpOuterParse uintptr
FsNameToken Token
FsLastToken Token
FnVar YnVar
@@ -10256,14 +10286,14 @@ type Parse1 = struct {
FpRename uintptr
} /* sqlite3.c:578:9 */
-type Parse = Parse1 /* sqlite3.c:14285:22 */
+type Parse = Parse1 /* sqlite3.c:14596:22 */
type ParseCleanup1 = struct {
FpNext uintptr
FpPtr uintptr
FxCleanup uintptr
} /* sqlite3.c:578:9 */
-type ParseCleanup = ParseCleanup1 /* sqlite3.c:14286:29 */
+type ParseCleanup = ParseCleanup1 /* sqlite3.c:14597:29 */
type PreUpdate1 = struct {
Fv uintptr
FpCsr uintptr
@@ -10282,21 +10312,21 @@ type PreUpdate1 = struct {
FpPk uintptr
} /* sqlite3.c:578:9 */
-type PreUpdate = PreUpdate1 /* sqlite3.c:14287:26 */
+type PreUpdate = PreUpdate1 /* sqlite3.c:14598:26 */
type PrintfArguments1 = struct {
FnArg int32
FnUsed int32
FapArg uintptr
-} /* sqlite3.c:14288:9 */
+} /* sqlite3.c:14599:9 */
-type PrintfArguments = PrintfArguments1 /* sqlite3.c:14288:32 */
+type PrintfArguments = PrintfArguments1 /* sqlite3.c:14599:32 */
type RenameToken1 = struct {
Fp uintptr
Ft Token
FpNext uintptr
} /* sqlite3.c:578:9 */
-type RenameToken = RenameToken1 /* sqlite3.c:14289:28 */
+type RenameToken = RenameToken1 /* sqlite3.c:14600:28 */
type Returning1 = struct {
FpParse uintptr
FpReturnEL uintptr
@@ -10306,9 +10336,9 @@ type Returning1 = struct {
FnRetCol int32
FiRetReg int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:14290:9 */
+} /* sqlite3.c:14601:9 */
-type Returning = Returning1 /* sqlite3.c:14290:26 */
+type Returning = Returning1 /* sqlite3.c:14601:26 */
type RowSet1 = struct {
FpChunk uintptr
Fdb uintptr
@@ -10319,9 +10349,9 @@ type RowSet1 = struct {
FnFresh U16
FrsFlags U16
FiBatch int32
-} /* sqlite3.c:14291:9 */
+} /* sqlite3.c:14602:9 */
-type RowSet = RowSet1 /* sqlite3.c:14291:23 */
+type RowSet = RowSet1 /* sqlite3.c:14602:23 */
type Savepoint1 = struct {
FzName uintptr
FnDeferredCons I64
@@ -10329,7 +10359,7 @@ type Savepoint1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type Savepoint = Savepoint1 /* sqlite3.c:14292:26 */
+type Savepoint = Savepoint1 /* sqlite3.c:14603:26 */
type Select1 = struct {
Fop U8
F__ccgo_pad1 [1]byte
@@ -10354,14 +10384,14 @@ type Select1 = struct {
FpWinDefn uintptr
} /* sqlite3.c:578:9 */
-type Select = Select1 /* sqlite3.c:14293:23 */
+type Select = Select1 /* sqlite3.c:14604:23 */
type SQLiteThread1 = struct {
FxTask uintptr
FpIn uintptr
FpResult uintptr
-} /* sqlite3.c:14294:9 */
+} /* sqlite3.c:14605:9 */
-type SQLiteThread = SQLiteThread1 /* sqlite3.c:14294:29 */
+type SQLiteThread = SQLiteThread1 /* sqlite3.c:14605:29 */
type SelectDest1 = struct {
FeDest U8
F__ccgo_pad1 [3]byte
@@ -10372,9 +10402,9 @@ type SelectDest1 = struct {
F__ccgo_pad2 [4]byte
FzAffSdst uintptr
FpOrderBy uintptr
-} /* sqlite3.c:14295:9 */
+} /* sqlite3.c:14606:9 */
-type SelectDest = SelectDest1 /* sqlite3.c:14295:27 */
+type SelectDest = SelectDest1 /* sqlite3.c:14606:27 */
type SrcItem1 = struct {
FpSchema uintptr
FzDatabase uintptr
@@ -10400,15 +10430,15 @@ type SrcItem1 = struct {
Fu2 struct{ FpIBIndex uintptr }
} /* sqlite3.c:578:9 */
-type SrcItem = SrcItem1 /* sqlite3.c:14296:24 */
+type SrcItem = SrcItem1 /* sqlite3.c:14607:24 */
type SrcList1 = struct {
FnSrc int32
FnAlloc U32
Fa [1]SrcItem
} /* 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 /* sqlite3.c:14608:24 */
+type StrAccum = sqlite3_str /* sqlite3.c:14609:28 */ // Internal alias for sqlite3_str
type Table1 = struct {
FzName uintptr
FaCol uintptr
@@ -10438,7 +10468,7 @@ type Table1 = struct {
} /* sqlite3.c:578:9 */
// Internal alias for sqlite3_str
-type Table = Table1 /* sqlite3.c:14299:22 */
+type Table = Table1 /* sqlite3.c:14610:22 */
type TableLock1 = struct {
FiDb int32
FiTab Pgno
@@ -10447,14 +10477,14 @@ type TableLock1 = struct {
FzLockName uintptr
} /* sqlite3.c:578:9 */
-type TableLock = TableLock1 /* sqlite3.c:14300:26 */
+type TableLock = TableLock1 /* sqlite3.c:14611:26 */
type Token1 = struct {
Fz uintptr
Fn uint32
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type Token = Token1 /* sqlite3.c:14301:22 */
+type Token = Token1 /* sqlite3.c:14612:22 */
type Trigger1 = struct {
FzName uintptr
Ftable uintptr
@@ -10470,7 +10500,7 @@ type Trigger1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type Trigger = Trigger1 /* sqlite3.c:14303:24 */
+type Trigger = Trigger1 /* sqlite3.c:14614:24 */
type TriggerPrg1 = struct {
FpTrigger uintptr
FpNext uintptr
@@ -10480,7 +10510,7 @@ type TriggerPrg1 = struct {
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type TriggerPrg = TriggerPrg1 /* sqlite3.c:14304:27 */
+type TriggerPrg = TriggerPrg1 /* sqlite3.c:14615:27 */
type TriggerStep1 = struct {
Fop U8
Forconf U8
@@ -10498,7 +10528,7 @@ type TriggerStep1 = struct {
FpLast uintptr
} /* sqlite3.c:578:9 */
-type TriggerStep = TriggerStep1 /* sqlite3.c:14305:28 */
+type TriggerStep = TriggerStep1 /* sqlite3.c:14616:28 */
type UnpackedRecord1 = struct {
FpKeyInfo uintptr
FaMem uintptr
@@ -10511,7 +10541,7 @@ type UnpackedRecord1 = struct {
F__ccgo_pad1 [1]byte
} /* sqlite3.c:578:9 */
-type UnpackedRecord = UnpackedRecord1 /* sqlite3.c:14306:31 */
+type UnpackedRecord = UnpackedRecord1 /* sqlite3.c:14617:31 */
type Upsert1 = struct {
FpUpsertTarget uintptr
FpUpsertTargetWhere uintptr
@@ -10529,7 +10559,7 @@ type Upsert1 = struct {
F__ccgo_pad2 [4]byte
} /* sqlite3.c:578:9 */
-type Upsert = Upsert1 /* sqlite3.c:14307:23 */
+type Upsert = Upsert1 /* sqlite3.c:14618:23 */
type VTable1 = struct {
Fdb uintptr
FpMod uintptr
@@ -10543,7 +10573,7 @@ type VTable1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type VTable = VTable1 /* sqlite3.c:14308:23 */
+type VTable = VTable1 /* sqlite3.c:14619:23 */
type VtabCtx1 = struct {
FpVTable uintptr
FpTab uintptr
@@ -10552,7 +10582,7 @@ type VtabCtx1 = struct {
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type VtabCtx = VtabCtx1 /* sqlite3.c:14309:24 */
+type VtabCtx = VtabCtx1 /* sqlite3.c:14620:24 */
type Walker1 = struct {
FpParse uintptr
FxExprCallback uintptr
@@ -10562,15 +10592,16 @@ type Walker1 = struct {
FeCode U16
F__ccgo_pad1 [2]byte
Fu struct{ FpNC uintptr }
-} /* sqlite3.c:14268:9 */
+} /* sqlite3.c:14579:9 */
-type Walker = Walker1 /* sqlite3.c:14310:23 */
+type Walker = Walker1 /* sqlite3.c:14621:23 */
type WhereInfo1 = struct {
FpParse uintptr
FpTabList uintptr
FpOrderBy uintptr
FpResultSet uintptr
FpWhere uintptr
+ FpLimit uintptr
FaiCurOnePass [2]int32
FiContinue int32
FiBreak int32
@@ -10592,9 +10623,9 @@ type WhereInfo1 = struct {
FsWC WhereClause
FsMaskSet WhereMaskSet
Fa [1]WhereLevel
-} /* sqlite3.c:14311:9 */
+} /* sqlite3.c:14622:9 */
-type WhereInfo = WhereInfo1 /* sqlite3.c:14311:26 */
+type WhereInfo = WhereInfo1 /* sqlite3.c:14622:26 */
type Window1 = struct {
FzName uintptr
FzBase uintptr
@@ -10628,7 +10659,7 @@ type Window1 = struct {
F__ccgo_pad2 [3]byte
} /* sqlite3.c:578:9 */
-type Window = Window1 /* sqlite3.c:14312:23 */
+type Window = Window1 /* sqlite3.c:14623:23 */
type With1 = struct {
FnCte int32
FbView int32
@@ -10636,14 +10667,14 @@ type With1 = struct {
Fa [1]Cte
} /* sqlite3.c:578:9 */
-type With = With1 /* sqlite3.c:14313:21 */
+type With = With1 /* sqlite3.c:14624: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 /* sqlite3.c:14637:15 */
// The number of bits in a Bitmask. "BMS" means "BitMask Size".
@@ -10654,7 +10685,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 /* sqlite3.c:14660:13 */
// Defer sourcing vdbe.h and btree.h until after the "u8" and
// "BusyHandler" typedefs. vdbe.h also requires a few of the opaque
@@ -10681,7 +10712,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 /* sqlite3.c:14701:13 */
// Each open file is managed by a separate instance of the "Pager" structure.
type Pager1 = struct {
@@ -10752,7 +10783,7 @@ type Pager1 = struct {
} /* 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 /* sqlite3.c:14706:22 */
// Handle type for pages.
type PgHdr2 = struct {
@@ -10770,7 +10801,7 @@ type PgHdr2 = struct {
} /* sqlite3.c:578:9 */
// Handle type for pages.
-type DbPage = PgHdr2 /* sqlite3.c:14399:22 */
+type DbPage = PgHdr2 /* sqlite3.c:14711:22 */
// Functions to support testing and debugging.
@@ -10841,7 +10872,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 /* sqlite3.c:14954:22 */
type BtCursor1 = struct {
FeState U8
FcurFlags U8
@@ -10866,7 +10897,7 @@ type BtCursor1 = struct {
FapPage [19]uintptr
} /* sqlite3.c:578:9 */
-type BtCursor = BtCursor1 /* sqlite3.c:14643:25 */
+type BtCursor = BtCursor1 /* sqlite3.c:14955:25 */
type BtShared1 = struct {
FpPager uintptr
Fdb uintptr
@@ -10905,7 +10936,7 @@ type BtShared1 = struct {
F__ccgo_pad5 [4]byte
} /* sqlite3.c:578:9 */
-type BtShared = BtShared1 /* sqlite3.c:14644:25 */
+type BtShared = BtShared1 /* sqlite3.c:14956:25 */
type BtreePayload1 = struct {
FpKey uintptr
FnKey Sqlite3_int64
@@ -10916,9 +10947,9 @@ type BtreePayload1 = struct {
FnData int32
FnZero int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:14645:9 */
+} /* sqlite3.c:14957:9 */
-type BtreePayload = BtreePayload1 /* sqlite3.c:14645:29 */
+type BtreePayload = BtreePayload1 /* sqlite3.c:14957:29 */
//************* End of btree.h **********************************************
//************* Continuing where we left off in sqliteInt.h *****************
@@ -10987,7 +11018,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
@@ -11022,11 +11053,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 /* sqlite3.c:15359: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 /* sqlite3.c:15365:30 */
type SubProgram1 = struct {
FaOp uintptr
FnOp int32
@@ -11038,7 +11069,7 @@ type SubProgram1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type SubProgram = SubProgram1 /* sqlite3.c:15054:27 */
+type SubProgram = SubProgram1 /* sqlite3.c:15366:27 */
// A single instruction of the virtual machine has an opcode
// and as many as three operands. The instruction is recorded
@@ -11066,7 +11097,7 @@ type p4union = struct {
F__ccgo_pad2 [4]byte
} /* sqlite3.c:578:9 */
-type VdbeOp = VdbeOp1 /* sqlite3.c:15100:23 */
+type VdbeOp = VdbeOp1 /* sqlite3.c:15412:23 */
// A smaller version of VdbeOp used for the VdbeAddOpList() function because
// it takes up less space.
@@ -11075,11 +11106,11 @@ type VdbeOpList1 = struct {
Fp1 int8
Fp2 int8
Fp3 int8
-} /* sqlite3.c:15120:1 */
+} /* sqlite3.c:15432:1 */
-type VdbeOpList = VdbeOpList1 /* sqlite3.c:15126:27 */
+type VdbeOpList = VdbeOpList1 /* sqlite3.c:15438:27 */
-type RecordCompare = uintptr /* sqlite3.c:15537:13 */
+type RecordCompare = uintptr /* sqlite3.c:15853:13 */
// Use SQLITE_ENABLE_COMMENTS to enable generation of extra comments on
// each VDBE opcode.
@@ -11144,7 +11175,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 /* sqlite3.c:15986:22 */
type PCache2 = struct {
FpDirty uintptr
FpDirtyTail uintptr
@@ -11162,10 +11193,10 @@ type PCache2 = struct {
FpCache uintptr
} /* sqlite3.c:578:9 */
-type PCache = PCache2 /* sqlite3.c:15671:23 */
+type PCache = PCache2 /* sqlite3.c:15987:23 */
// typedef for the authorization callback function.
-type Sqlite3_xauth = uintptr /* sqlite3.c:16439:15 */
+type Sqlite3_xauth = uintptr /* sqlite3.c:16755:15 */
// This is an extra SQLITE_TRACE macro that indicates "legacy" tracing
// in the style of sqlite3_trace()
@@ -11241,7 +11272,7 @@ type sColMap = struct {
FiFrom int32
F__ccgo_pad1 [4]byte
FzCol uintptr
-} /* sqlite3.c:14272:9 */
+} /* sqlite3.c:14583:9 */
// An instance of this structure contains information needed to generate
// code for a SELECT that contains aggregate functions.
@@ -11292,7 +11323,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 /* sqlite3.c:17975:13 */
// The following are the meanings of bits in the Expr.flags field.
// Value restrictions:
@@ -11386,7 +11417,7 @@ type IdList_item = struct {
} /* sqlite3.c:578:9 */
// The yDbMask datatype for the bitmask of all attached databases.
-type YDbMask = uint32 /* sqlite3.c:18427:24 */
+type YDbMask = uint32 /* sqlite3.c:18754:24 */
// A pointer to this structure is used to communicate information
// from sqlite3Init and OP_ParseSchema into the sqlite3InitCallback.
@@ -11399,7 +11430,7 @@ type InitData = struct {
FnInitRow U32
FmxPage Pgno
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:18786:3 */
+} /* sqlite3.c:19115:3 */
// Allowed values for mInitFlags
@@ -11458,10 +11489,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
+} /* sqlite3.c:19146:1 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -11484,7 +11518,7 @@ type RefSrcList = struct {
FpRef uintptr
FnExclude I64
FaiExclude uintptr
-} /* sqlite3.c:18916:5 */
+} /* sqlite3.c:19246:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -11506,7 +11540,7 @@ type IdxCover = struct {
FpIdx uintptr
FiCur int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:18918:5 */
+} /* sqlite3.c:19248:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -11532,7 +11566,7 @@ type IdxExprTrans1 = struct {
FiTabCol int32
FpWInfo uintptr
Fdb uintptr
-} /* sqlite3.c:18919:5 */
+} /* sqlite3.c:19249:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -11556,7 +11590,7 @@ type WindowRewrite1 = struct {
FpSub uintptr
FpTab uintptr
FpSubSelect uintptr
-} /* sqlite3.c:18922:5 */
+} /* 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:
@@ -11582,7 +11616,7 @@ type WhereConst1 = struct {
FbHasAffBlob int32
F__ccgo_pad1 [4]byte
FapExpr uintptr
-} /* sqlite3.c:18923:5 */
+} /* 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:
@@ -11606,7 +11640,7 @@ type RenameCtx1 = struct {
FiCol int32
FpTab uintptr
FzOld uintptr
-} /* sqlite3.c:18924:5 */
+} /* sqlite3.c:19254:5 */
//************* End of sqliteInt.h ******************************************
//************* Begin file os_common.h **************************************
@@ -11643,6 +11677,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
@@ -11674,7 +11715,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,
@@ -11695,42 +11736,41 @@ var sqlite3azCompileOpt = [52]uintptr{
ts + 400,
ts + 412,
ts + 427,
- ts + 440,
- ts + 462,
- ts + 487,
- ts + 510,
- ts + 532,
+ ts + 449,
+ ts + 474,
+ ts + 497,
+ ts + 519,
+ ts + 530,
ts + 543,
- ts + 556,
- ts + 571,
+ ts + 558,
+ ts + 574,
ts + 587,
- ts + 600,
- ts + 621,
- ts + 645,
- ts + 668,
- ts + 684,
- ts + 700,
- ts + 724,
- ts + 751,
- ts + 771,
- ts + 792,
- ts + 814,
- ts + 844,
- ts + 869,
- ts + 895,
- ts + 915,
- ts + 941,
- ts + 964,
- ts + 990,
- ts + 1012,
- ts + 1033,
- ts + 1044,
- ts + 1052,
+ ts + 608,
+ ts + 632,
+ ts + 655,
+ ts + 671,
+ ts + 687,
+ ts + 711,
+ ts + 738,
+ ts + 758,
+ ts + 779,
+ ts + 801,
+ ts + 831,
+ ts + 856,
+ ts + 882,
+ ts + 902,
+ ts + 928,
+ ts + 951,
+ ts + 977,
+ ts + 999,
+ ts + 1020,
+ ts + 1031,
+ ts + 1039,
+ ts + 1053,
ts + 1066,
- ts + 1079,
-} /* sqlite3.c:20516:19 */
+} /* sqlite3.c:20859:19 */
-func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* sqlite3.c:21248:27: */
+func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* sqlite3.c:21586:27: */
*(*int32)(unsafe.Pointer(pnOpt)) = int32(uint64(unsafe.Sizeof(sqlite3azCompileOpt)) / uint64(unsafe.Sizeof(uintptr(0))))
return uintptr(uintptr(unsafe.Pointer(&sqlite3azCompileOpt)))
}
@@ -11797,10 +11837,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 */
+} /* sqlite3.c:21618:36 */
+var Xsqlite3aLTb uintptr = 0 /* sqlite3.c:21680:36 */
+var Xsqlite3aEQb uintptr = 0 /* sqlite3.c:21681:36 */
+var Xsqlite3aGTb uintptr = 0 /* sqlite3.c:21682:36 */
// The following 256 byte lookup table is used to support SQLites built-in
// equivalents to the following standard library functions:
@@ -11864,7 +11904,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 */
+} /* sqlite3.c:21712:36 */
// EVIDENCE-OF: R-02982-34736 In order to maintain full backwards
// compatibility for legacy applications, the URI filename capability is
@@ -11921,15 +11961,15 @@ var Xsqlite3Config = Sqlite3Config{
FmxMmap: int64(SQLITE_MAX_MMAP_SIZE), // szPage
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 */
+} /* sqlite3.c:21832: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 /* sqlite3.c:21894:28: */
// The value of the "pending" byte must be 0x40000000 (1 byte past the
// 1-gibabyte boundary) in a compatible database. SQLite never uses
@@ -11947,21 +11987,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 /* sqlite3.c:21935: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) /* sqlite3.c:21941:20 */
+var Xsqlite3WhereTrace U32 = U32(0) /* sqlite3.c:21942: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)} /* sqlite3.c:21951:36 */
// Name of the default collating sequence
-var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1092)) /* sqlite3.c:21617:27 */
+var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1079)) /* sqlite3.c:21956:27 */
// Standard typenames. These names must match the COLTYPE_* definitions.
// Adjust the SQLITE_N_STDTYPE value if adding or removing entries.
@@ -11977,7 +12017,7 @@ var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1092)) /* 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)} /* sqlite3.c:21974:36 */
var Xsqlite3StdTypeAffinity = [6]int8{
int8(SQLITE_AFF_NUMERIC),
int8(SQLITE_AFF_BLOB),
@@ -11985,7 +12025,7 @@ var Xsqlite3StdTypeAffinity = [6]int8{
int8(SQLITE_AFF_INTEGER),
int8(SQLITE_AFF_REAL),
int8(SQLITE_AFF_TEXT),
-} /* sqlite3.c:21636:27 */
+} /* sqlite3.c:21975:27 */
var Xsqlite3StdTypeMap = [6]int8{
int8(0),
int8(SQLITE_BLOB),
@@ -11993,15 +12033,15 @@ var Xsqlite3StdTypeMap = [6]int8{
int8(SQLITE_INTEGER),
int8(SQLITE_FLOAT),
int8(SQLITE_TEXT),
-} /* sqlite3.c:21644:27 */
+} /* sqlite3.c:21983:27 */
var Xsqlite3StdType = [6]uintptr{
+ ts + 1086,
+ ts + 1090,
+ ts + 1095,
ts + 1099,
- ts + 1103,
- ts + 1108,
+ ts + 1107,
ts + 1112,
- ts + 1120,
- ts + 1125,
-} /* sqlite3.c:21652:27 */
+} /* sqlite3.c:21991:27 */
//************* End of global.c *********************************************
//************* Begin file status.c *****************************************
@@ -12046,10 +12086,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 /* sqlite3.c:22065:23 */
// Boolean values
-type Bool = uint32 /* sqlite3.c:21731:18 */
+type Bool = uint32 /* sqlite3.c:22070:18 */
// Opaque type used by code in vdbesort.c
type VdbeSorter1 = struct {
@@ -12072,10 +12112,10 @@ type VdbeSorter1 = struct {
FtypeMask U8
F__ccgo_pad1 [3]byte
FaTask [1]SortSubtask
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// Opaque type used by code in vdbesort.c
-type VdbeSorter = VdbeSorter1 /* sqlite3.c:21734:27 */
+type VdbeSorter = VdbeSorter1 /* sqlite3.c:22073:27 */
// Elements of the linked list at Vdbe.pAuxData
type AuxData1 = struct {
@@ -12087,7 +12127,7 @@ type AuxData1 = struct {
} /* sqlite3.c:578:9 */
// Elements of the linked list at Vdbe.pAuxData
-type AuxData = AuxData1 /* sqlite3.c:21737:24 */
+type AuxData = AuxData1 /* sqlite3.c:22076:24 */
// Types of VDBE cursors
@@ -12110,9 +12150,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
@@ -12142,7 +12181,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 /* sqlite3.c:22094:27 */
// A value for VdbeCursor.cacheStatus that means the cache is always invalid.
@@ -12207,7 +12246,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 /* sqlite3.c:22183:26 */
// Magic number for sanity checking on VdbeFrame objects
@@ -12221,7 +12260,7 @@ type MemValue = struct{ Fr float64 } /* 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 /* sqlite3.c:22366:18 */ // Bit Field Type
// The ScanStatus object holds a single value for the
// sqlite3_stmt_scanstatus() interface.
@@ -12233,13 +12272,13 @@ type ScanStatus1 = struct {
FnEst LogEst
F__ccgo_pad1 [6]byte
FzName uintptr
-} /* sqlite3.c:22030:9 */
+} /* sqlite3.c:22371: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 /* sqlite3.c:22371:27 */
// The DblquoteStr object holds the text of a double-quoted
// string for a prepared statement. A linked list of these objects
@@ -12250,7 +12289,7 @@ type ScanStatus = ScanStatus1 /* sqlite3.c:22030:27 */
type DblquoteStr1 = struct {
FpNextStr uintptr
Fz [8]int8
-} /* sqlite3.c:22047:9 */
+} /* sqlite3.c:22388:9 */
// The DblquoteStr object holds the text of a double-quoted
// string for a prepared statement. A linked list of these objects
@@ -12258,20 +12297,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 /* sqlite3.c:22388: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
+} /* sqlite3.c:22516: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 /* sqlite3.c:22516: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 /* sqlite3.c:22679:23 */
type sqlite3StatType = struct {
FnowValue [10]Sqlite3StatValueType
FmxValue [10]Sqlite3StatValueType
-} /* sqlite3.c:22324:9 */
+} /* sqlite3.c:22683:9 */
-type Sqlite3StatType = sqlite3StatType /* sqlite3.c:22324:32 */
-var sqlite3Stat = sqlite3StatType{} /* sqlite3.c:22328:3 */
+type Sqlite3StatType = sqlite3StatType /* sqlite3.c:22683:32 */
+var sqlite3Stat = sqlite3StatType{} /* sqlite3.c:22687:3 */
// Elements of sqlite3Stat[] are protected by either the memory allocator
// mutex, or by the pcache1 mutex. The following array determines which.
@@ -12286,7 +12352,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 */
+} /* sqlite3.c:22693:19 */
// The "wsdStat" macro will resolve to the status information
// state vector. If writable static data is unsupported on the target,
@@ -12296,7 +12362,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 { /* sqlite3.c:22725:30: */
return *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8))
}
@@ -12310,7 +12376,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) { /* sqlite3.c:22745: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)) {
@@ -12318,14 +12384,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) { /* sqlite3.c:22756: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) { /* sqlite3.c:22770:21: */
var newValue Sqlite3StatValueType
newValue = Sqlite3StatValueType(X)
@@ -12336,12 +12402,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 { /* sqlite3.c:22790: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, 22799)
}
if statMutex[op] != 0 {
pMutex = Xsqlite3Pcache1Mutex(tls)
@@ -12359,7 +12425,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 { /* sqlite3.c:22815:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -12375,7 +12441,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 { /* sqlite3.c:22832:12: */
var cnt U32 = U32(0)
for p != 0 {
p = (*LookasideSlot)(unsafe.Pointer(p)).FpNext
@@ -12385,7 +12451,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 { /* sqlite3.c:22844: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)
@@ -12397,7 +12463,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 { /* sqlite3.c:22858:16: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -12983,14 +13049,14 @@ type DateTime1 = struct {
FtzSet int8
FisError int8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:22759:9 */
+} /* sqlite3.c:23118: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 /* sqlite3.c:23118:25 */
// Convert zDate into one or more integers according to the conversion
// specifier zFormat.
@@ -13017,7 +13083,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 { /* sqlite3.c:23162:12: */
var ap Va_list
_ = ap
var cnt int32
@@ -13074,7 +13140,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)} /* sqlite3.c:23165:20 */
// Parse a timezone extension on the end of a date-time.
// The extension is of the form:
@@ -13090,7 +13156,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 { /* sqlite3.c:23216:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -13138,7 +13204,7 @@ __6:
__4:
;
zDate++
- if !(getDigits(tls, zDate, ts+1130, libc.VaList(bp, bp+16, bp+20)) != 2) {
+ if !(getDigits(tls, zDate, ts+1117, libc.VaList(bp, bp+16, bp+20)) != 2) {
goto __9
}
return 1
@@ -13164,7 +13230,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 { /* sqlite3.c:23252:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -13175,13 +13241,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+1138, libc.VaList(bp, bp+24, bp+28)) != 2 {
+ if getDigits(tls, zDate, ts+1125, 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+1146, libc.VaList(bp+16, bp+32)) != 1 {
+ if getDigits(tls, zDate, ts+1133, libc.VaList(bp+16, bp+32)) != 1 {
return 1
}
zDate += uintptr(2)
@@ -13217,7 +13283,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) { /* sqlite3.c:23292:13: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DateTime{})))
(*DateTime)(unsafe.Pointer(p)).FisError = int8(1)
}
@@ -13226,7 +13292,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) { /* sqlite3.c:23303:13: */
var Y int32
var M int32
var D int32
@@ -13282,7 +13348,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 { /* sqlite3.c:23353:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -13300,7 +13366,7 @@ func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c
} else {
neg = 0
}
- if getDigits(tls, zDate, ts+1150, libc.VaList(bp, bp+24, bp+28, bp+32)) != 3 {
+ if getDigits(tls, zDate, ts+1137, libc.VaList(bp, bp+24, bp+28, bp+32)) != 3 {
return 1
}
zDate += uintptr(10)
@@ -13333,7 +13399,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 { /* sqlite3.c:23390:12: */
(*DateTime)(unsafe.Pointer(p)).FiJD = Xsqlite3StmtCurrentTime(tls, context)
if (*DateTime)(unsafe.Pointer(p)).FiJD > int64(0) {
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1)
@@ -13348,7 +13414,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) { /* sqlite3.c:23406:13: */
(*DateTime)(unsafe.Pointer(p)).Fs = r
(*DateTime)(unsafe.Pointer(p)).FrawS = int8(1)
if r >= 0.0 && r < 5373484.5 {
@@ -13371,7 +13437,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 { /* sqlite3.c:23431:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -13381,7 +13447,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+1162) == 0 && Xsqlite3NotPureFunc(tls, context) != 0 {
+ } else if Xsqlite3StrICmp(tls, zDate, ts+1149) == 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 */)))
@@ -13400,12 +13466,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 { /* sqlite3.c:23464: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) { /* sqlite3.c:23471:13: */
var Z int32
var A int32
var B int32
@@ -13450,7 +13516,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) { /* sqlite3.c:23500:13: */
var s int32
if (*DateTime)(unsafe.Pointer(p)).FvalidHMS != 0 {
return
@@ -13469,13 +13535,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) { /* sqlite3.c:23519: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) { /* sqlite3.c:23527:13: */
(*DateTime)(unsafe.Pointer(p)).FvalidYMD = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidHMS = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0)
@@ -13497,20 +13563,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 { /* sqlite3.c:23567: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))
@@ -13520,68 +13595,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 { /* sqlite3.c:23617: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+1166, -1)
- *(*int32)(unsafe.Pointer(pRc)) = SQLITE_ERROR
- return int64(0)
+ Xsqlite3_result_error(tls, pCtx, ts+1153, -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 /* &sLocal */)).Ftm_sec)
+ (*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
@@ -13591,20 +13653,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 + 1189 /* "second" */, FrLimit: 464269060800.0, FrXform: 1000.0},
- {FnName: U8(6), FzName: ts + 1196 /* "minute" */, FrLimit: 7737817680.0, FrXform: 60000.0},
- {FnName: U8(4), FzName: ts + 1203 /* "hour" */, FrLimit: 128963628.0, FrXform: 3600000.0},
- {FnName: U8(3), FzName: ts + 1208 /* "day" */, FrLimit: 5373485.0, FrXform: 86400000.0},
- {FeType: U8(1), FnName: U8(5), FzName: ts + 1212 /* "month" */, FrLimit: 176546.0, FrXform: 2592000000.0},
- {FeType: U8(2), FnName: U8(4), FzName: ts + 1218 /* "year" */, FrLimit: 14713.0, FrXform: 31536000000.0},
-} /* sqlite3.c:23316:3 */
+ {FnName: U8(6), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1176 /* "second" */)), FrLimit: 4.6427e+14, FrXform: 1.0},
+ {FnName: U8(6), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1183 /* "minute" */)), FrLimit: 7.7379e+12, FrXform: 60.0},
+ {FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1190 /* "hour\x00\x00" */)), FrLimit: 1.2897e+11, FrXform: 3600.0},
+ {FnName: U8(3), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1197 /* "day\x00\x00\x00" */)), FrLimit: 5373485.0, FrXform: 86400.0},
+ {FnName: U8(5), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1204 /* "month\x00" */)), FrLimit: 176546.0, FrXform: 2592000.0},
+ {FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1211 /* "year\x00\x00" */)), FrLimit: 14713.0, FrXform: 31536000.0},
+} /* sqlite3.c:23681:3 */
// Process a modifier to a date-time stamp. The modifiers are
// as follows:
@@ -13628,24 +13688,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 { /* sqlite3.c:23714: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+1218) == 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+1223) == 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+1223) == 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+1233) == 0 && Xsqlite3NotPureFunc(tls, pCtx) != 0 {
+ rc = toLocaltime(tls, p, pCtx)
}
break
@@ -13656,29 +13760,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+1233) == 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+1243) == 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+1243) == 0 && Xsqlite3NotPureFunc(tls, pCtx) != 0 {
+ } else if Xsqlite3_stricmp(tls, z, ts+1253) == 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
@@ -13690,9 +13813,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+1247, 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+1257, 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)
@@ -13704,7 +13827,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
@@ -13715,7 +13838,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+1256, 9) != 0 {
+ if Xsqlite3_strnicmp(tls, z, ts+1266, 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) {
@@ -13729,15 +13852,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+1212) == 0 {
+ if Xsqlite3_stricmp(tls, z, ts+1276) == 0 {
(*DateTime)(unsafe.Pointer(p)).FD = 1
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
- } else if Xsqlite3_stricmp(tls, z, ts+1218) == 0 {
+ rc = 0
+ } else if Xsqlite3_stricmp(tls, z, ts+1282) == 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+1208) == 0 {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = 0
+ rc = 0
+ } else if Xsqlite3_stricmp(tls, z, ts+1287) == 0 {
+ rc = 0
}
break
@@ -13770,8 +13893,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)))) == ':' {
@@ -13780,27 +13903,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
}
@@ -13818,29 +13941,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 {
@@ -13849,25 +13971,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
}
}
@@ -13881,7 +14004,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.
@@ -13891,7 +14014,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 { /* sqlite3.c:23989:12: */
var i int32
var n int32
var z uintptr
@@ -13915,7 +14038,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
}
}
@@ -13932,7 +14055,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) { /* sqlite3.c:24033:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -13944,58 +14067,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) { /* sqlite3.c:24051: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) { /* sqlite3.c:24068: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+1266,
- 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) { /* sqlite3.c:24115: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+1296, 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) { /* sqlite3.c:24144: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+1311, 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))
+ }
}
}
@@ -14016,7 +14215,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) { /* sqlite3.c:24195:13: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -14052,7 +14251,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+1326, libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FD))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1291, libc.VaList(bp, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FD))
break
}
@@ -14062,13 +14261,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+1331, libc.VaList(bp+8, s))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1296, libc.VaList(bp+8, s))
break
}
case 'H':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1326, libc.VaList(bp+16, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fh))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1291, libc.VaList(bp+16, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fh))
break
}
@@ -14086,41 +14285,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+1326, libc.VaList(bp+24, (nDay+7-wd)/7))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1291, libc.VaList(bp+24, (nDay+7-wd)/7))
} else {
- Xsqlite3_str_appendf(tls, bp+136, ts+1338, libc.VaList(bp+32, nDay+1))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1303, libc.VaList(bp+32, nDay+1))
}
break
}
case 'J':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1343, libc.VaList(bp+40, float64((*DateTime)(unsafe.Pointer(bp+88)).FiJD)/86400000.0))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1308, libc.VaList(bp+40, float64((*DateTime)(unsafe.Pointer(bp+88)).FiJD)/86400000.0))
break
}
case 'm':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1326, libc.VaList(bp+48, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FM))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1291, libc.VaList(bp+48, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FM))
break
}
case 'M':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1326, libc.VaList(bp+56, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fm))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1291, 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+1349, libc.VaList(bp+64, iS))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1314, libc.VaList(bp+64, iS))
break
}
case 'S':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1326, libc.VaList(bp+72, libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fs)))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1291, libc.VaList(bp+72, libc.Int32FromFloat64((*DateTime)(unsafe.Pointer(bp+88 /* &x */)).Fs)))
break
}
@@ -14133,7 +14332,7 @@ func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
}
case 'Y':
{
- Xsqlite3_str_appendf(tls, bp+136, ts+1354, libc.VaList(bp+80, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FY))
+ Xsqlite3_str_appendf(tls, bp+136, ts+1319, libc.VaList(bp+80, (*DateTime)(unsafe.Pointer(bp+88 /* &x */)).FY))
break
}
@@ -14160,7 +14359,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) { /* sqlite3.c:24302:13: */
_ = NotUsed
_ = NotUsed2
timeFunc(tls, context, 0, uintptr(0))
@@ -14169,7 +14368,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) { /* sqlite3.c:24316:13: */
_ = NotUsed
_ = NotUsed2
dateFunc(tls, context, 0, uintptr(0))
@@ -14178,7 +14377,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) { /* sqlite3.c:24330:13: */
_ = NotUsed
_ = NotUsed2
datetimeFunc(tls, context, 0, uintptr(0))
@@ -14187,19 +14386,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) { /* sqlite3.c:24390: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 + 1359},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1369},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1374},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1379},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1388},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1397},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1410},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1428}} /* 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 + 1223},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1243},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1324},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1329},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1334},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1343},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1352},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1365},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1383}} /* sqlite3.c:24391:18 */
//************* End of date.c ***********************************************
//************* Begin file os.c *********************************************
@@ -14251,7 +14451,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) { /* sqlite3.c:24494:21: */
if (*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods != 0 {
(*struct {
f func(*libc.TLS, uintptr) int32
@@ -14260,27 +14460,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 { /* sqlite3.c:24500: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 { /* sqlite3.c:24504: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 { /* sqlite3.c:24508: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 { /* sqlite3.c:24511:20: */
if flags != 0 {
return (*struct {
@@ -14290,27 +14490,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 { /* sqlite3.c:24515: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 { /* sqlite3.c:24519: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 { /* sqlite3.c:24523: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 { /* sqlite3.c:24526:20: */
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -14323,7 +14523,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 { /* sqlite3.c:24539:20: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) {
return SQLITE_NOTFOUND
}
@@ -14332,7 +14532,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) { /* sqlite3.c:24567:21: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods != 0 {
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -14340,7 +14540,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 { /* sqlite3.c:24571:20: */
var xSectorSize uintptr = (*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxSectorSize
return func() int32 {
if xSectorSize != 0 {
@@ -14352,7 +14552,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 { /* sqlite3.c:24575:20: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) {
return 0
}
@@ -14361,23 +14561,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 { /* sqlite3.c:24580: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) { /* sqlite3.c:24583: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 { /* sqlite3.c:24586: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 { /* sqlite3.c:24589:20: */
return (*struct {
f func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32
@@ -14385,14 +14585,14 @@ func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExten
}
// The real implementation of xFetch and xUnfetch
-func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* sqlite3.c:24106:20: */
+func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* sqlite3.c:24603:20: */
return (*struct {
f func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxFetch})).f(tls, id, iOff, iAmt, pp)
}
-func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* sqlite3.c:24110:20: */
+func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* sqlite3.c:24607:20: */
return (*struct {
f func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxUnfetch})).f(tls, id, iOff, p)
@@ -14400,7 +14600,7 @@ func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /
// The next group of routines are convenience wrappers around the
// VFS methods.
-func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pFlagsOut uintptr) int32 { /* sqlite3.c:24128:20: */
+func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pFlagsOut uintptr) int32 { /* sqlite3.c:24625:20: */
var rc int32
// 0x87f7f is a mask of SQLITE_OPEN_ flags that are valid to be passed
@@ -14414,7 +14614,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 { /* sqlite3.c:24642:20: */
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDelete != uintptr(0) {
return (*struct {
@@ -14424,14 +14624,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 { /* sqlite3.c:24647: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 { /* sqlite3.c:24656:20: */
*(*int8)(unsafe.Pointer(zPathOut)) = int8(0)
return (*struct {
@@ -14439,7 +14639,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 { /* sqlite3.c:24667:21: */
// tag-20210611-1
return (*struct {
@@ -14447,31 +14647,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) { /* sqlite3.c:24672: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 { /* sqlite3.c:24675: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) { /* sqlite3.c:24678: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 { /* sqlite3.c:24682: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 {
@@ -14482,13 +14682,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 { /* sqlite3.c:24693: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 { /* sqlite3.c:24696:20: */
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxGetLastError != 0 {
return (*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -14497,7 +14697,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 { /* sqlite3.c:24699:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14522,7 +14722,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 { /* sqlite3.c:24717:20: */
var rc int32
var pFile uintptr
pFile = Xsqlite3MallocZero(tls, uint64((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile))
@@ -14542,7 +14742,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) { /* sqlite3.c:24742:21: */
Xsqlite3OsClose(tls, pFile)
Xsqlite3_free(tls, pFile)
@@ -14552,7 +14752,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 { /* sqlite3.c:24754:20: */
var p uintptr = Xsqlite3_malloc(tls, 10)
if p == uintptr(0) {
return SQLITE_NOMEM
@@ -14562,11 +14762,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) /* sqlite3.c:24764: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 { /* sqlite3.c:24771:24: */
var pVfs uintptr = uintptr(0)
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
@@ -14588,7 +14788,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) { /* sqlite3.c:24795:13: */
if pVfs == uintptr(0) {
// No-op
@@ -14608,7 +14808,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 { /* sqlite3.c:24817:16: */
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -14631,7 +14831,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 { /* sqlite3.c:24845:16: */
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -14676,7 +14876,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 */
+} /* sqlite3.c:24893:9 */
//************* End of os.c *************************************************
//************* Begin file fault.c ******************************************
@@ -14707,8 +14907,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 /* sqlite3.c:24893:34 */
+var sqlite3Hooks = BenignMallocHooks1{} /* sqlite3.c:24897:3 */
// The "wsdHooks" macro will resolve to the appropriate BenignMallocHooks
// structure. If writable static data is unsupported on the target,
@@ -14718,7 +14918,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) { /* sqlite3.c:24919:21: */
sqlite3Hooks.FxBenignBegin = xBenignBegin
sqlite3Hooks.FxBenignEnd = xBenignEnd
@@ -14727,14 +14927,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) { /* sqlite3.c:24933: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) { /* sqlite3.c:24939:21: */
if sqlite3Hooks.FxBenignEnd != 0 {
(*struct{ f func(*libc.TLS) })(unsafe.Pointer(&struct{ uintptr }{sqlite3Hooks.FxBenignEnd})).f(tls)
@@ -14832,7 +15032,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 { /* sqlite3.c:25139:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14844,7 +15044,7 @@ func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:24642:1
p += 8
} else {
- Xsqlite3_log(tls, SQLITE_NOMEM, ts+1441, libc.VaList(bp, nByte))
+ Xsqlite3_log(tls, SQLITE_NOMEM, ts+1396, libc.VaList(bp, nByte))
}
return p
}
@@ -14855,7 +15055,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) { /* sqlite3.c:25173:13: */
var p uintptr = pPrior
p -= 8
@@ -14864,7 +15064,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 { /* sqlite3.c:25188:12: */
var p uintptr
p = pPrior
@@ -14880,7 +15080,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 { /* sqlite3.c:25211:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -14895,25 +15095,25 @@ func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /*
} else {
Xsqlite3_log(tls, SQLITE_NOMEM,
- ts+1479,
+ ts+1434,
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 { /* sqlite3.c:25243: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 { /* sqlite3.c:25250: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) { /* sqlite3.c:25277:13: */
_ = NotUsed
return
}
@@ -14922,7 +15122,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) { /* sqlite3.c:25288:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14937,7 +15137,7 @@ var defaultMethods = Sqlite3_mem_methods{
FxRoundup: 0,
FxInit: 0,
FxShutdown: 0,
-} /* sqlite3.c:24792:36 */
+} /* sqlite3.c:25289:36 */
//************* End of mem1.c ***********************************************
//************* Begin file mem2.c *******************************************
@@ -15071,7 +15271,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 { /* sqlite3.c:27324: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
@@ -15105,7 +15305,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 { /* sqlite3.c:27370: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)
@@ -15115,7 +15315,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 { /* sqlite3.c:27386:26: */
if id <= SQLITE_MUTEX_RECURSIVE && Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15128,7 +15328,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 { /* sqlite3.c:27395:30: */
if !(int32(Xsqlite3Config.FbCoreMutex) != 0) {
return uintptr(0)
}
@@ -15139,7 +15339,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) { /* sqlite3.c:27407:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexFree})).f(tls, p)
@@ -15148,7 +15348,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) { /* sqlite3.c:27418:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexEnter})).f(tls, p)
@@ -15157,7 +15357,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 { /* sqlite3.c:27429:16: */
var rc int32 = SQLITE_OK
if p != 0 {
@@ -15172,7 +15372,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) { /* sqlite3.c:27444:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexLeave})).f(tls, p)
@@ -15211,40 +15411,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 { /* sqlite3.c:27507:12: */
return SQLITE_OK
}
-func noopMutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27011:12: */
+func noopMutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27508:12: */
return SQLITE_OK
}
-func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27012:22: */
+func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27509:22: */
_ = id
return uintptr(8)
}
-func noopMutexFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:27016:13: */
+func noopMutexFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:27513:13: */
_ = p
return
}
-func noopMutexEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27017:13: */
+func noopMutexEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27514:13: */
_ = p
return
}
-func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27018:12: */
+func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27515:12: */
_ = p
return SQLITE_OK
}
-func noopMutexLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27022:13: */
+func noopMutexLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27519:13: */
_ = p
return
}
-func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27024:44: */
+func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27521:44: */
return uintptr(unsafe.Pointer(&sMutex))
}
@@ -15257,11 +15457,11 @@ var sMutex = Sqlite3_mutex_methods{
FxMutexEnter: 0,
FxMutexTry: 0,
FxMutexLeave: 0,
-} /* sqlite3.c:27025:38 */
+} /* sqlite3.c:27522: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 { /* sqlite3.c:27680:44: */
return Xsqlite3NoopMutex(tls)
}
@@ -15324,7 +15524,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 { /* sqlite3.c:28601:16: */
return Xsqlite3PcacheReleaseMemory(tls, n)
}
@@ -15337,22 +15537,22 @@ type Mem0Global = struct {
FhardLimit Sqlite3_int64
FnearlyFull int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:28126:19 */
+} /* sqlite3.c:28623: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{} /* sqlite3.c:28633: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 { /* sqlite3.c:28640: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 { /* sqlite3.c:28650:16: */
_ = xCallback
_ = pArg
_ = iThreshold
@@ -15368,7 +15568,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 { /* sqlite3.c:28673:26: */
var priorLimit Sqlite3_int64
var excess Sqlite3_int64
var nUsed Sqlite3_int64
@@ -15396,7 +15596,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) { /* sqlite3.c:28698:17: */
if n < 0 {
n = 0
}
@@ -15413,7 +15613,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 { /* sqlite3.c:28715:26: */
var priorLimit Sqlite3_int64
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -15432,7 +15632,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 { /* sqlite3.c:28737:20: */
var rc int32
if Xsqlite3Config.Fm.FxMalloc == uintptr(0) {
Xsqlite3MemSetDefault(tls)
@@ -15455,12 +15655,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 { /* sqlite3.c:28758: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) { /* sqlite3.c:28765:21: */
if Xsqlite3Config.Fm.FxShutdown != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxShutdown})).f(tls, Xsqlite3Config.Fm.FpAppData)
}
@@ -15468,7 +15668,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 { /* sqlite3.c:28775:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -15483,7 +15683,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 { /* sqlite3.c:28786:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -15496,7 +15696,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) { /* sqlite3.c:28795:13: */
if mem0.FalarmThreshold <= int64(0) {
return
}
@@ -15507,7 +15707,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) { /* sqlite3.c:28806:13: */
var p uintptr
var nFull int32
@@ -15554,7 +15754,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 { /* sqlite3.c:28855:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -15583,7 +15783,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 { /* sqlite3.c:28880:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15593,7 +15793,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 { /* sqlite3.c:28886:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15601,27 +15801,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 { /* sqlite3.c:28897: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 { /* sqlite3.c:28908: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 { /* sqlite3.c:28912: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 { /* sqlite3.c:28919:20: */
if db != 0 {
if Uptr(p) < Uptr((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpEnd) {
@@ -15640,7 +15840,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 { /* sqlite3.c:28948:27: */
if p != 0 {
return uint64((*struct {
@@ -15651,7 +15851,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) { /* sqlite3.c:28957:17: */
if p == uintptr(0) {
return
} // IMP: R-49053-54554
@@ -15669,14 +15869,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) { /* sqlite3.c:28976: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) { /* sqlite3.c:28985:21: */
if db != 0 {
if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed != 0 {
@@ -15702,7 +15902,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) { /* sqlite3.c:29022:21: */
if p != 0 {
Xsqlite3DbFreeNN(tls, db, p)
@@ -15710,7 +15910,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 { /* sqlite3.c:29030:21: */
var nOld int32
var nNew int32
var nDiff int32
@@ -15771,7 +15971,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 { /* sqlite3.c:29089:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15781,7 +15981,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 { /* sqlite3.c:29096:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -15789,7 +15989,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 { /* sqlite3.c:29107:21: */
var p uintptr = Xsqlite3Malloc(tls, n)
if p != 0 {
libc.Xmemset(tls, p, 0, Size_t(n))
@@ -15799,7 +15999,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 { /* sqlite3.c:29119:21: */
var p uintptr
p = Xsqlite3DbMallocRaw(tls, db, n)
@@ -15811,7 +16011,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 { /* sqlite3.c:29131:29: */
var p uintptr
p = Xsqlite3Malloc(tls, n)
@@ -15842,7 +16042,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 { /* sqlite3.c:29163:21: */
var p uintptr
if db != 0 {
return Xsqlite3DbMallocRawNN(tls, db, n)
@@ -15852,7 +16052,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 { /* sqlite3.c:29170:21: */
var pBuf uintptr
if n > U64((*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz) {
@@ -15890,7 +16090,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 { /* sqlite3.c:29226:21: */
if p == uintptr(0) {
return Xsqlite3DbMallocRawNN(tls, db, n)
@@ -15910,7 +16110,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 { /* sqlite3.c:29242:29: */
var pNew uintptr = uintptr(0)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 {
@@ -15934,7 +16134,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 { /* sqlite3.c:29272:21: */
var pNew uintptr
pNew = Xsqlite3DbRealloc(tls, db, p, n)
if !(pNew != 0) {
@@ -15948,7 +16148,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 { /* sqlite3.c:29288:21: */
var zNew uintptr
var n Size_t
if z == uintptr(0) {
@@ -15962,7 +16162,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 { /* sqlite3.c:29301:21: */
var zNew uintptr
if z != 0 {
@@ -15980,7 +16180,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 { /* sqlite3.c:29319:21: */
var n int32
for int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zStart)))])&0x01 != 0 {
zStart++
@@ -15993,7 +16193,7 @@ func Xsqlite3DbSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr)
}
// Free any prior content in *pz and replace it with a copy of zNew.
-func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* sqlite3.c:28833:21: */
+func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* sqlite3.c:29330:21: */
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pz)))
*(*uintptr)(unsafe.Pointer(pz)) = Xsqlite3DbStrDup(tls, db, zNew)
}
@@ -16002,7 +16202,14 @@ func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /*
// 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 { /* sqlite3.c:29348: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 {
@@ -16011,9 +16218,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+1470, 0)
(*Parse)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FpParse)).Frc = SQLITE_NOMEM
}
}
+ return uintptr(0)
}
// This routine reactivates the memory allocator and clears the
@@ -16021,7 +16230,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) { /* sqlite3.c:29370: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)
@@ -16037,7 +16246,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 { /* sqlite3.c:29382:28: */
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || rc == SQLITE_IOERR|int32(12)<<8 {
Xsqlite3OomClear(tls, db)
Xsqlite3Error(tls, db, SQLITE_NOMEM)
@@ -16056,7 +16265,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 { /* sqlite3.c:29403: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().
@@ -16085,7 +16294,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 /* sqlite3.c:29461:23 */
// Each builtin conversion character (ex: the 'd' in "%d") is described
// by an instance of the following structure
@@ -16096,18 +16305,18 @@ type et_info = struct {
Ftype EtByte
Fcharset EtByte
Fprefix EtByte
-} /* sqlite3.c:28961:9 */
+} /* sqlite3.c:29467: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 /* sqlite3.c:29474: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 + 1515)) /* sqlite3.c:28981:19 */
-var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1548)) /* sqlite3.c:28982:19 */
+var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1484)) /* sqlite3.c:29487:19 */
+var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1517)) /* sqlite3.c:29488: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)},
@@ -16134,7 +16343,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 */
+} /* sqlite3.c:29489:22 */
// Notes:
//
@@ -16145,7 +16354,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 */
+} /* sqlite3.c:29526:21 */
// If SQLITE_OMIT_FLOATING_POINT is defined, then none of the floating point
// conversions will work.
@@ -16160,7 +16369,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 { /* sqlite3.c:29549:13: */
var digit int32
var d float64
if *(*int32)(unsafe.Pointer(cnt)) <= 0 {
@@ -16175,7 +16384,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) { /* sqlite3.c:29565:21: */
(*StrAccum)(unsafe.Pointer(p)).FaccError = eError
if (*StrAccum)(unsafe.Pointer(p)).FmxAlloc != 0 {
@@ -16187,21 +16396,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 { /* sqlite3.c:29575: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 { /* sqlite3.c:29579: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 { /* sqlite3.c:29583:13: */
if (*PrintfArguments)(unsafe.Pointer(p)).FnArg <= (*PrintfArguments)(unsafe.Pointer(p)).FnUsed {
return uintptr(0)
}
@@ -16215,7 +16424,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 { /* sqlite3.c:29597:13: */
var z uintptr
if (*Sqlite3_str)(unsafe.Pointer(pAccum)).FaccError != 0 {
return uintptr(0)
@@ -16237,7 +16446,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) { /* sqlite3.c:29630:17: */
bp := tls.Alloc(108)
defer tls.Free(108)
@@ -16310,6 +16519,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)
@@ -16361,7 +16573,7 @@ __6:
if !(libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PreIncUintptr(&fmt, 1))))) == 0) {
goto __11
}
- Xsqlite3_str_append(tls, pAccum, ts+1555, 1)
+ Xsqlite3_str_append(tls, pAccum, ts+1524, 1)
goto __5
__11:
;
@@ -16944,7 +17156,7 @@ __125:
if !(Xsqlite3IsNaN(tls, *(*float64)(unsafe.Pointer(bp + 96))) != 0) {
goto __127
}
- bufpt = ts + 1557 /* "NaN" */
+ bufpt = ts + 1526 /* "NaN" */
length = 3
goto __58
__127:
@@ -17004,7 +17216,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+1561, uint64(4))
+ libc.Xmemcpy(tls, bp+8+uintptr(libc.Bool32(int32(prefix) != 0)), ts+1530, uint64(4))
length = 3 + libc.Bool32(int32(prefix) != 0)
goto __58
__139:
@@ -17361,7 +17573,7 @@ __197:
if !(bufpt == uintptr(0)) {
goto __198
}
- bufpt = ts + 1565 /* "" */
+ bufpt = ts + 1534 /* "" */
goto __199
__198:
if !(int32(xtype) == EtDYNSTRING) {
@@ -17490,9 +17702,9 @@ __219:
}
escarg = func() uintptr {
if int32(xtype) == EtSQLESCAPE2 {
- return ts + 1566
+ return ts + 1535
}
- return ts + 1571
+ return ts + 1540
}()
__220:
;
@@ -17594,62 +17806,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+1578, 1)
-__244:
+ Xsqlite3_str_append(tls, pAccum, ts+1547, 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+1580, libc.VaList(bp, (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselId))
-__247:
+ Xsqlite3_str_appendf(tls, pAccum, ts+1549, 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
@@ -17668,33 +17898,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:
@@ -17705,16 +17935,57 @@ __5:
// End for loop over the format string
}
-var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1592)) /* sqlite3.c:29387:29 */
+var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1561)) /* sqlite3.c:29893: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) { /* sqlite3.c:30346: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) { /* sqlite3.c:30367: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 { /* sqlite3.c:30382:20: */
var zNew uintptr
// Only called if really needed
if (*StrAccum)(unsafe.Pointer(p)).FaccError != 0 {
@@ -17768,9 +18039,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) { /* sqlite3.c:30432: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 {
@@ -17784,8 +18055,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) { /* sqlite3.c:30448: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)
@@ -17794,7 +18065,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) { /* sqlite3.c:30460:17: */
if (*Sqlite3_str)(unsafe.Pointer(p)).FnChar+U32(N) >= (*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc {
enlargeAndAppend(tls, p, z, N)
@@ -17806,14 +18077,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) { /* sqlite3.c:30477: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 { /* sqlite3.c:30487:29: */
var zText uintptr
zText = Xsqlite3DbMallocRaw(tls, (*StrAccum)(unsafe.Pointer(p)).Fdb, uint64((*StrAccum)(unsafe.Pointer(p)).FnChar+U32(1)))
@@ -17827,7 +18098,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 { /* sqlite3.c:30500: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) {
@@ -17839,14 +18110,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) { /* sqlite3.c:30514: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+1565, 0, uintptr(0))
+ Xsqlite3_result_text(tls, pCtx, ts+1534, 0, uintptr(0))
Xsqlite3_str_reset(tls, p)
}
}
@@ -17855,10 +18128,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)} /* sqlite3.c:30532: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 { /* sqlite3.c:30538:17: */
var z uintptr
if p != uintptr(0) && p != uintptr(unsafe.Pointer(&sqlite3OomStr)) {
z = Xsqlite3StrAccumFinish(tls, p)
@@ -17870,7 +18143,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 { /* sqlite3.c:30550:16: */
if p != 0 {
return int32((*Sqlite3_str)(unsafe.Pointer(p)).FaccError)
}
@@ -17878,7 +18151,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 { /* sqlite3.c:30555:16: */
if p != 0 {
return int32((*Sqlite3_str)(unsafe.Pointer(p)).FnChar)
}
@@ -17886,7 +18159,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 { /* sqlite3.c:30560:17: */
if p == uintptr(0) || (*Sqlite3_str)(unsafe.Pointer(p)).FnChar == U32(0) {
return uintptr(0)
}
@@ -17895,7 +18168,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) { /* sqlite3.c:30569: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))
@@ -17917,7 +18190,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) { /* sqlite3.c:30593:21: */
(*StrAccum)(unsafe.Pointer(p)).FzText = zBase
(*StrAccum)(unsafe.Pointer(p)).Fdb = db
(*StrAccum)(unsafe.Pointer(p)).FnAlloc = U32(n)
@@ -17928,7 +18201,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 { /* sqlite3.c:30604:24: */
var p uintptr = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3_str{})))
if p != 0 {
Xsqlite3StrAccumInit(tls, p, uintptr(0), uintptr(0), 0,
@@ -17946,7 +18219,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 { /* sqlite3.c:30619:21: */
bp := tls.Alloc(102)
defer tls.Free(102)
@@ -17968,7 +18241,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 { /* sqlite3.c:30639:21: */
var ap Va_list
_ = ap
var z uintptr
@@ -17980,7 +18253,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 { /* sqlite3.c:30652:17: */
bp := tls.Alloc(102)
defer tls.Free(102)
@@ -18000,7 +18273,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 { /* sqlite3.c:30676:17: */
var ap Va_list
_ = ap
var z uintptr
@@ -18024,7 +18297,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 { /* sqlite3.c:30701:17: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -18039,7 +18312,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 { /* sqlite3.c:30716:17: */
var z uintptr
var ap Va_list
_ = ap
@@ -18061,7 +18334,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) { /* sqlite3.c:30739:13: */
bp := tls.Alloc(242)
defer tls.Free(242)
@@ -18079,7 +18352,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) { /* sqlite3.c:30752:17: */
var ap Va_list
_ = ap // Vararg list
if Xsqlite3Config.FxLog != 0 {
@@ -18091,7 +18364,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) { /* sqlite3.c:30793:17: */
var ap Va_list
_ = ap
ap = va
@@ -18146,7 +18419,7 @@ type sqlite3PrngType = struct {
Fi uint8
Fj uint8
Fs [256]uint8
-} /* sqlite3.c:31093:19 */
+} /* sqlite3.c:31645:19 */
//************* End of printf.c *********************************************
//************* Begin file treeview.c ***************************************
@@ -18190,10 +18463,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 /* sqlite3.c:31649: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) { /* sqlite3.c:31654:17: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -18253,7 +18526,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))
@@ -18272,16 +18545,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 /* sqlite3.c:31745:42: */
-func Xsqlite3PrngSaveState(tls *libc.TLS) { /* sqlite3.c:31194:21: */
+func Xsqlite3PrngSaveState(tls *libc.TLS) { /* sqlite3.c:31746: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) { /* sqlite3.c:31753:21: */
libc.Xmemcpy(tls,
uintptr(unsafe.Pointer(&sqlite3Prng)),
uintptr(unsafe.Pointer(&sqlite3SavedPrng)),
@@ -18289,7 +18562,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 { /* sqlite3.c:31989:20: */
var p uintptr
*(*uintptr)(unsafe.Pointer(ppThread)) = uintptr(0)
@@ -18311,7 +18584,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 { /* sqlite3.c:32013:20: */
if p == uintptr(0) {
return SQLITE_NOMEM
@@ -18380,7 +18653,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 */
+} /* sqlite3.c:32092:28 */
// Translate a single UTF-8 character. Return the unicode value.
//
@@ -18407,7 +18680,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 { /* sqlite3.c:32186:20: */
var c uint32
// Same as READ_UTF8() above but without the zTerm parameter.
@@ -18434,7 +18707,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 { /* sqlite3.c:32222:36: */
var len Sqlite3_int64 // Maximum length of output string in bytes
var zOut uintptr // Output buffer
var zIn uintptr // Input iterator
@@ -18759,7 +19032,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 { /* sqlite3.c:32417:20: */
var rc int32 = SQLITE_OK
var bom U8 = U8(0)
@@ -18793,7 +19066,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 { /* sqlite3.c:32455:20: */
var r int32 = 0
var z uintptr = zIn
var zTerm uintptr
@@ -18825,7 +19098,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 { /* sqlite3.c:32509:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -18846,7 +19119,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 { /* sqlite3.c:32530:20: */
var c int32
var z uintptr = zIn
var n int32 = 0
@@ -19144,7 +19417,7 @@ type Double_t = float64 /* math.h:150:16 */
// sqlite3FaultSim() instance is being invoked. Each call to sqlite3FaultSim()
// should have a unique code. To prevent legacy testing applications from
// breaking, the codes should not be changed or reused.
-func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* sqlite3.c:32070:20: */
+func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* sqlite3.c:32622: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)
@@ -19156,7 +19429,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 { /* sqlite3.c:32635:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = x
@@ -19176,7 +19449,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 { /* sqlite3.c:32657:20: */
if z == uintptr(0) {
return 0
}
@@ -19188,7 +19461,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 { /* sqlite3.c:32669: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 {
@@ -19203,7 +19476,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) { /* sqlite3.c:32685:30: */
if (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 {
Xsqlite3ValueSetNull(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr)
}
@@ -19213,19 +19486,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) { /* sqlite3.c:32695: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) { /* sqlite3.c:32709: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)
}
@@ -19233,7 +19509,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) { /* sqlite3.c:32720:21: */
if rc == SQLITE_IOERR|int32(12)<<8 {
return
}
@@ -19247,22 +19523,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) { /* sqlite3.c:32740:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code
Xsqlite3SystemError(tls, db, err_code)
@@ -19275,18 +19542,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
@@ -19294,16 +19556,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) { /* sqlite3.c:32766: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)
@@ -19316,7 +19587,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 { /* sqlite3.c:32797:20: */
var pParse uintptr
if db == uintptr(0) || libc.AssignUintptr(&pParse, (*Sqlite3)(unsafe.Pointer(db)).FpParse) == uintptr(0) {
return errCode
@@ -19341,7 +19612,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) { /* sqlite3.c:32822:21: */
var quote int8
var i int32
var j int32
@@ -19373,7 +19644,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) { /* sqlite3.c:32844:21: */
*(*U32)(unsafe.Pointer(p + 4)) |= func() uint32 {
if int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 8))))) == '"' {
@@ -19393,7 +19664,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) { /* sqlite3.c:32862:21: */
var i uint32
if (*Token)(unsafe.Pointer(p)).Fn < uint32(2) {
return
@@ -19411,7 +19682,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) { /* sqlite3.c:32876:21: */
(*Token)(unsafe.Pointer(p)).Fz = z
(*Token)(unsafe.Pointer(p)).Fn = uint32(Xsqlite3Strlen30(tls, z))
}
@@ -19426,7 +19697,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 { /* sqlite3.c:32894:16: */
if zLeft == uintptr(0) {
if zRight != 0 {
return -1
@@ -19438,7 +19709,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 { /* sqlite3.c:32902:20: */
var a uintptr
var b uintptr
var c int32
@@ -19464,7 +19735,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 { /* sqlite3.c:32921:16: */
var a uintptr
var b uintptr
if zLeft == uintptr(0) {
@@ -19488,7 +19759,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 { /* sqlite3.c:32937:19: */
var h U8 = U8(0)
if z == uintptr(0) {
return U8(0)
@@ -19504,7 +19775,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 { /* sqlite3.c:32953:24: */
var x float64 = 10.0
var r float64 = 1.0
for 1 != 0 {
@@ -19547,7 +19818,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 { /* sqlite3.c:33018:20: */
var incr int32
var zEnd uintptr
// sign * significand * (10 ^ (esign * exponent))
@@ -19927,7 +20198,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) { /* sqlite3.c:33217:21: */
bp := tls.Alloc(22)
defer tls.Free(22)
@@ -19946,7 +20217,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)
}
@@ -19968,11 +20239,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 { /* sqlite3.c:33250:12: */
var c int32 = 0
var i int32
// 012345678901234567
- var pow63 uintptr = ts + 1601 /* "9223372036854775..." */
+ var pow63 uintptr = ts + 1570 /* "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
}
@@ -19997,7 +20268,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 { /* sqlite3.c:33283:20: */
var incr int32
var u U64 = uint64(0)
var neg int32 = 0 // assume positive
@@ -20062,7 +20333,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
@@ -20119,7 +20390,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 { /* sqlite3.c:33386:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -20152,7 +20423,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 { /* sqlite3.c:33416:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20214,7 +20485,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 { /* sqlite3.c:33475:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20227,7 +20498,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 { /* sqlite3.c:33487:20: */
var v U64 = uint64(0)
var i int32
for i = 0; int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x04 != 0; i++ {
@@ -20270,7 +20541,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 { /* sqlite3.c:33528:28: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -20289,7 +20560,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
}
@@ -20316,7 +20587,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 { /* sqlite3.c:33552:20: */
if v <= uint64(0x7f) {
*(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f))
return 1
@@ -20339,7 +20610,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 { /* sqlite3.c:33582:19: */
var a U32
var b U32
var s U32
@@ -20492,7 +20763,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 { /* sqlite3.c:33743:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -20560,7 +20831,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 { /* sqlite3.c:33865:20: */
var i int32
for i = 1; libc.AssignShrUint64(&v, int(uint64(7))) != uint64(0); i++ {
}
@@ -20568,7 +20839,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 { /* sqlite3.c:33875:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20578,7 +20849,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) { /* sqlite3.c:33893:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20589,7 +20860,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 { /* sqlite3.c:33917:19: */
h = h + 9*(1&(h>>6))
return U8(h & 0xf)
@@ -20599,7 +20870,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 { /* sqlite3.c:33935:21: */
var zBlob uintptr
var i int32
@@ -20617,12 +20888,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) { /* sqlite3.c:33956:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
Xsqlite3_log(tls, SQLITE_MISUSE,
- ts+1620,
+ ts+1589,
libc.VaList(bp, zType))
}
@@ -20638,17 +20909,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 { /* sqlite3.c:33977:20: */
var eOpenState U8
if db == uintptr(0) {
- logBadConnection(tls, ts+1566)
+ logBadConnection(tls, ts+1535)
return 0
}
eOpenState = (*Sqlite3)(unsafe.Pointer(db)).FeOpenState
if int32(eOpenState) != SQLITE_STATE_OPEN {
if Xsqlite3SafetyCheckSickOrOk(tls, db) != 0 {
- logBadConnection(tls, ts+1665)
+ logBadConnection(tls, ts+1634)
}
return 0
} else {
@@ -20657,12 +20928,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 { /* sqlite3.c:33994: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+1674)
+ logBadConnection(tls, ts+1643)
return 0
} else {
return 1
@@ -20674,21 +20945,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 { /* sqlite3.c:34014: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 { /* sqlite3.c:34034: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 { /* sqlite3.c:34049: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 { /* sqlite3.c:34075:20: */
if x >= 0 {
return x
}
@@ -20702,7 +20973,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 { /* sqlite3.c:34118:23: */
if int32(a) >= int32(b) {
if int32(a) > int32(b)+49 {
return a
@@ -20733,11 +21004,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 */
+} /* sqlite3.c:34119: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 { /* sqlite3.c:34145:23: */
var y LogEst = int16(40)
if x < uint64(8) {
if x < uint64(2) {
@@ -20755,11 +21026,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)} /* sqlite3.c:34146: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 { /* sqlite3.c:34168:23: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = x
@@ -20780,10 +21051,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 { /* sqlite3.c:34182:20: */
var n U64
n = U64(int32(x) % 10)
x = int16(int32(x) / 10)
@@ -20792,9 +21060,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)
}
@@ -20835,7 +21103,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 { /* sqlite3.c:34228: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
@@ -20874,7 +21142,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 { /* sqlite3.c:34266:27: */
var i int32
var mx int32
if pIn == uintptr(0) {
@@ -20882,7 +21150,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
}
@@ -20893,7 +21161,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 { /* sqlite3.c:34282:20: */
var i int32
var mx int32
if pIn == uintptr(0) {
@@ -20901,7 +21169,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))
@@ -20932,7 +21200,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) { /* sqlite3.c:34319:21: */
(*Hash)(unsafe.Pointer(pNew)).Ffirst = uintptr(0)
(*Hash)(unsafe.Pointer(pNew)).Fcount = uint32(0)
@@ -20943,7 +21211,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) { /* sqlite3.c:34331:21: */
var elem uintptr // For looping over all elements of the table
elem = (*Hash)(unsafe.Pointer(pH)).Ffirst
@@ -20960,7 +21228,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 { /* sqlite3.c:34351: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
@@ -20975,7 +21243,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) { /* sqlite3.c:34368:13: */
var pHead uintptr // First element already in pEntry
if pEntry != 0 {
if (*_ht)(unsafe.Pointer(pEntry)).Fcount != 0 {
@@ -21012,7 +21280,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 { /* sqlite3.c:34402:12: */
var new_ht uintptr // The new hash table
var elem uintptr
var next_elem uintptr // For looping over existing elements
@@ -21056,7 +21324,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 { /* sqlite3.c:34443:17: */
var elem uintptr // Used to loop thru the element list
var count uint32 // Number of elements left to test
var h uint32
@@ -21085,11 +21353,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{} /* sqlite3.c:34451: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) { /* sqlite3.c:34478: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
@@ -21118,7 +21386,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 { /* sqlite3.c:34513:21: */
return (*HashElem)(unsafe.Pointer(findElementWithHash(tls, pH, pKey, uintptr(0)))).Fdata
}
@@ -21136,7 +21404,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 { /* sqlite3.c:34533:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -21185,194 +21453,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 { /* sqlite3.c:34579:27: */
return azName[i]
}
-var azName = [182]uintptr{
- ts + 1682,
- ts + 1692,
- ts + 1703,
- ts + 1715,
- ts + 1726,
- ts + 1731,
- ts + 1736,
- ts + 1747,
- ts + 1759,
- ts + 1766,
- ts + 1774,
+var azName = [185]uintptr{
+ ts + 1651,
+ ts + 1661,
+ ts + 1672,
+ ts + 1684,
+ ts + 1695,
+ ts + 1700,
+ ts + 1705,
+ ts + 1716,
+ ts + 1728,
+ ts + 1735,
+ ts + 1743,
+ ts + 1751,
+ ts + 1756,
+ ts + 1762,
+ ts + 1776,
ts + 1782,
- ts + 1787,
- ts + 1793,
- ts + 1807,
- ts + 1813,
- ts + 1823,
+ ts + 1792,
+ ts + 1797,
+ ts + 1802,
+ ts + 1805,
+ ts + 1809,
+ ts + 1815,
ts + 1828,
- ts + 1833,
- ts + 1836,
- ts + 1840,
- ts + 1846,
+ ts + 1838,
+ ts + 1845,
+ ts + 1852,
ts + 1859,
- ts + 1869,
+ ts + 1866,
ts + 1876,
- ts + 1883,
- ts + 1890,
- ts + 1897,
- ts + 1907,
- ts + 1916,
- ts + 1927,
+ ts + 1885,
+ ts + 1896,
+ ts + 1905,
+ ts + 1911,
+ ts + 1921,
+ ts + 1931,
ts + 1936,
- ts + 1942,
- ts + 1952,
+ ts + 1946,
+ ts + 1957,
ts + 1962,
- ts + 1967,
- ts + 1977,
- ts + 1988,
+ ts + 1969,
+ ts + 1975,
+ ts + 1981,
+ ts + 1987,
ts + 1993,
+ ts + 1996,
ts + 2000,
- ts + 2006,
- ts + 2012,
- ts + 2018,
- ts + 2024,
- ts + 2027,
- ts + 2031,
- ts + 2042,
- ts + 2053,
- ts + 2061,
- ts + 2070,
- ts + 2076,
- ts + 2083,
- ts + 2091,
- ts + 2094,
- ts + 2097,
- ts + 2100,
- ts + 2103,
- ts + 2106,
- ts + 2109,
- ts + 2116,
- ts + 2126,
- ts + 2139,
- ts + 2150,
- ts + 2156,
- ts + 2161,
- ts + 2170,
- ts + 2179,
+ ts + 2011,
+ ts + 2022,
+ ts + 2030,
+ ts + 2039,
+ ts + 2045,
+ ts + 2052,
+ ts + 2060,
+ ts + 2063,
+ ts + 2066,
+ ts + 2069,
+ ts + 2072,
+ ts + 2075,
+ ts + 2078,
+ ts + 2085,
+ ts + 2095,
+ ts + 2108,
+ ts + 2119,
+ ts + 2125,
+ ts + 2132,
+ ts + 2137,
+ ts + 2146,
+ ts + 2155,
+ ts + 2162,
+ ts + 2175,
ts + 2186,
+ ts + 2191,
ts + 2199,
- ts + 2210,
- ts + 2215,
- ts + 2223,
- ts + 2229,
- ts + 2236,
- ts + 2241,
+ ts + 2205,
+ ts + 2212,
+ ts + 2217,
+ ts + 2226,
+ ts + 2231,
+ ts + 2240,
+ ts + 2245,
ts + 2250,
- ts + 2255,
+ ts + 2256,
ts + 2264,
- ts + 2269,
- ts + 2274,
- ts + 2280,
- ts + 2288,
- ts + 2299,
- ts + 2309,
- ts + 2317,
- ts + 2324,
- ts + 2337,
+ ts + 2272,
+ ts + 2282,
+ ts + 2290,
+ ts + 2297,
+ ts + 2310,
+ ts + 2315,
+ ts + 2327,
+ ts + 2335,
ts + 2342,
- ts + 2354,
- ts + 2362,
- ts + 2369,
- ts + 2380,
- ts + 2387,
- ts + 2394,
- ts + 2404,
- ts + 2413,
+ ts + 2353,
+ ts + 2360,
+ ts + 2367,
+ ts + 2377,
+ ts + 2386,
+ ts + 2397,
+ ts + 2403,
+ ts + 2414,
ts + 2424,
- ts + 2430,
- ts + 2441,
- ts + 2451,
- ts + 2461,
- ts + 2470,
- ts + 2480,
- ts + 2487,
- ts + 2493,
- ts + 2503,
- ts + 2514,
- ts + 2518,
- ts + 2527,
- ts + 2536,
- ts + 2543,
- ts + 2553,
- ts + 2560,
- ts + 2568,
- ts + 2575,
- ts + 2589,
- ts + 2603,
- ts + 2611,
- ts + 2622,
- ts + 2635,
+ ts + 2434,
+ ts + 2443,
+ ts + 2450,
+ ts + 2456,
+ ts + 2466,
+ ts + 2477,
+ ts + 2481,
+ ts + 2490,
+ ts + 2499,
+ ts + 2506,
+ ts + 2516,
+ ts + 2523,
+ ts + 2533,
+ ts + 2541,
+ ts + 2548,
+ ts + 2562,
+ ts + 2576,
+ ts + 2584,
+ ts + 2595,
+ ts + 2608,
+ ts + 2619,
+ ts + 2625,
+ ts + 2637,
ts + 2646,
- ts + 2652,
- ts + 2664,
- ts + 2673,
- ts + 2681,
- ts + 2690,
- ts + 2699,
- ts + 2706,
- ts + 2714,
- ts + 2721,
- ts + 2732,
- ts + 2746,
- ts + 2757,
- ts + 2765,
- ts + 2771,
- ts + 2779,
- ts + 2787,
- ts + 2797,
- ts + 2810,
- ts + 2820,
- ts + 2833,
- ts + 2842,
- ts + 2853,
- ts + 2861,
- ts + 2867,
- ts + 2879,
- ts + 2891,
- ts + 2899,
- ts + 2911,
- ts + 2924,
+ ts + 2654,
+ ts + 2663,
+ ts + 2672,
+ ts + 2679,
+ ts + 2687,
+ ts + 2694,
+ ts + 2705,
+ ts + 2719,
+ ts + 2730,
+ ts + 2738,
+ ts + 2744,
+ ts + 2752,
+ ts + 2760,
+ ts + 2770,
+ ts + 2783,
+ ts + 2793,
+ ts + 2806,
+ ts + 2815,
+ ts + 2826,
+ ts + 2834,
+ ts + 2840,
+ ts + 2852,
+ ts + 2864,
+ ts + 2872,
+ ts + 2884,
+ ts + 2897,
+ ts + 2907,
+ ts + 2917,
+ ts + 2929,
ts + 2934,
- ts + 2944,
+ ts + 2946,
ts + 2956,
- ts + 2961,
- ts + 2973,
- ts + 2983,
- ts + 2989,
- ts + 2999,
- ts + 3006,
- ts + 3018,
- ts + 3029,
+ ts + 2962,
+ ts + 2972,
+ ts + 2979,
+ ts + 2991,
+ ts + 3002,
+ ts + 3010,
+ ts + 3019,
+ ts + 3028,
ts + 3037,
- ts + 3046,
+ ts + 3044,
ts + 3055,
- ts + 3064,
- ts + 3071,
- ts + 3082,
- ts + 3095,
- ts + 3105,
- ts + 3112,
- ts + 3120,
- ts + 3129,
- ts + 3135,
- ts + 3143,
+ ts + 3068,
+ ts + 3078,
+ ts + 3085,
+ ts + 3093,
+ ts + 3102,
+ ts + 3108,
+ ts + 3116,
+ ts + 3124,
+ ts + 3132,
+ ts + 3142,
ts + 3151,
ts + 3161,
- ts + 3170,
- ts + 3176,
- ts + 3187,
- ts + 3198,
- ts + 3203,
- ts + 3211,
-} /* sqlite3.c:34047:20 */
+ ts + 3167,
+ ts + 3178,
+ ts + 3189,
+ ts + 3194,
+ ts + 3202,
+} /* sqlite3.c:34580:20 */
//************* End of opcodes.c ********************************************
//************* Begin file os_unix.c ****************************************
@@ -22954,7 +23225,7 @@ type unixShm = struct {
FsharedMask U16
FexclMask U16
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:34433:9 */
+} /* sqlite3.c:34969:9 */
// Try to determine if gethostuuid() is available based on standard
// macros. This might sometimes compute the wrong value for some
@@ -22987,7 +23258,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 /* sqlite3.c:34969:24 */ // Connection shared memory
type unixShmNode = struct {
FpInode uintptr
FpShmMutex uintptr
@@ -23003,10 +23274,10 @@ type unixShmNode = struct {
F__ccgo_pad2 [4]byte
FpFirst uintptr
FaLock [8]int32
-} /* sqlite3.c:34433:9 */
+} /* sqlite3.c:34969:9 */
// Connection shared memory
-type UnixShmNode = unixShmNode /* sqlite3.c:34434:28 */ // Shared memory instance
+type UnixShmNode = unixShmNode /* sqlite3.c:34970:28 */ // Shared memory instance
type unixInodeInfo = struct {
FfileId struct {
Fdev Dev_t
@@ -23024,18 +23295,18 @@ type unixInodeInfo = struct {
FpShmNode uintptr
FpNext uintptr
FpPrev uintptr
-} /* sqlite3.c:34433:9 */
+} /* sqlite3.c:34969:9 */
// Shared memory instance
-type UnixInodeInfo = unixInodeInfo /* sqlite3.c:34435:30 */ // An i-node
+type UnixInodeInfo = unixInodeInfo /* sqlite3.c:34971:30 */ // An i-node
type UnixUnusedFd1 = struct {
Ffd int32
Fflags int32
FpNext uintptr
-} /* sqlite3.c:34433:9 */
+} /* sqlite3.c:34969:9 */
// An i-node
-type UnixUnusedFd = UnixUnusedFd1 /* sqlite3.c:34436:29 */
+type UnixUnusedFd = UnixUnusedFd1 /* sqlite3.c:34972:29 */
// The unixFile structure is subclass of sqlite3_file specific to the unix
// VFS implementations.
@@ -23061,16 +23332,16 @@ type unixFile = struct {
FpMapRegion uintptr
FsectorSize int32
FdeviceCharacteristics int32
-} /* sqlite3.c:34454:9 */
+} /* sqlite3.c:34990: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 /* sqlite3.c:34990:25 */
// This variable holds the process id (pid) from when the xRandomness()
// method was called. If xOpen() is called from a different process id,
// indicating that a fork() has occurred, the PRNG will be reset.
-var randomnessPid Pid_t = 0 /* sqlite3.c:34515:14 */
+var randomnessPid Pid_t = 0 /* sqlite3.c:35051:14 */
// Allowed values for the unixFile.ctrlFlags bitmask:
@@ -23095,7 +23366,7 @@ var randomnessPid 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 { /* sqlite3.c:35142:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -23110,82 +23381,82 @@ type unix_syscall = struct {
FzName uintptr
FpCurrent Sqlite3_syscall_ptr
FpDefault Sqlite3_syscall_ptr
-} /* sqlite3.c:34620:8 */
+} /* sqlite3.c:35156: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 + 3221, FpCurrent: 0},
+ {FzName: ts + 3212, FpCurrent: 0},
- {FzName: ts + 3226, FpCurrent: 0},
+ {FzName: ts + 3217, FpCurrent: 0},
- {FzName: ts + 3232, FpCurrent: 0},
+ {FzName: ts + 3223, FpCurrent: 0},
- {FzName: ts + 3239, FpCurrent: 0},
+ {FzName: ts + 3230, FpCurrent: 0},
- {FzName: ts + 3246, FpCurrent: 0},
+ {FzName: ts + 3237, 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 + 3251, FpCurrent: 0},
+ {FzName: ts + 3242, FpCurrent: 0},
- {FzName: ts + 3257, FpCurrent: 0},
+ {FzName: ts + 3248, FpCurrent: 0},
- {FzName: ts + 3267, FpCurrent: 0},
+ {FzName: ts + 3258, FpCurrent: 0},
- {FzName: ts + 3273, FpCurrent: 0},
+ {FzName: ts + 3264, FpCurrent: 0},
- {FzName: ts + 3278},
+ {FzName: ts + 3269},
- {FzName: ts + 3284},
+ {FzName: ts + 3275},
- {FzName: ts + 3292, FpCurrent: 0},
+ {FzName: ts + 3283, FpCurrent: 0},
- {FzName: ts + 3298},
+ {FzName: ts + 3289},
- {FzName: ts + 3305},
+ {FzName: ts + 3296},
- {FzName: ts + 3314, FpCurrent: 0},
+ {FzName: ts + 3305, FpCurrent: 0},
- {FzName: ts + 3321},
+ {FzName: ts + 3312},
- {FzName: ts + 3331, FpCurrent: 0},
+ {FzName: ts + 3322, FpCurrent: 0},
- {FzName: ts + 3338, FpCurrent: 0},
+ {FzName: ts + 3329, FpCurrent: 0},
- {FzName: ts + 3352, FpCurrent: 0},
+ {FzName: ts + 3343, FpCurrent: 0},
- {FzName: ts + 3358, FpCurrent: 0},
+ {FzName: ts + 3349, FpCurrent: 0},
- {FzName: ts + 3364, FpCurrent: 0},
+ {FzName: ts + 3355, FpCurrent: 0},
- {FzName: ts + 3371, FpCurrent: 0},
+ {FzName: ts + 3362, FpCurrent: 0},
- {FzName: ts + 3379, FpCurrent: 0},
+ {FzName: ts + 3370, FpCurrent: 0},
- {FzName: ts + 3384, FpCurrent: 0},
+ {FzName: ts + 3375, FpCurrent: 0},
- {FzName: ts + 3391, FpCurrent: 0},
+ {FzName: ts + 3382, FpCurrent: 0},
- {FzName: ts + 3398, FpCurrent: 0},
+ {FzName: ts + 3389, FpCurrent: 0},
- {FzName: ts + 3410, FpCurrent: 0},
+ {FzName: ts + 3401, FpCurrent: 0},
- {FzName: ts + 3419, FpCurrent: 0},
+ {FzName: ts + 3410, FpCurrent: 0},
- {FzName: ts + 3425},
-} /* sqlite3.c:34624:3 */
+ {FzName: ts + 3416},
+} /* sqlite3.c:35160:3 */
// End of the overrideable system calls
// On some systems, calls to fchown() will trigger a message in a security
// log if they come from non-root processes. So avoid calling fchown() if
// we are not running as root.
-func robustFchown(tls *libc.TLS, fd int32, uid Uid_t, gid Gid_t) int32 { /* sqlite3.c:34794:12: */
+func robustFchown(tls *libc.TLS, fd int32, uid Uid_t, gid Gid_t) int32 { /* sqlite3.c:35330:12: */
if (*(*func(*libc.TLS) Uid_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 21*24 + 8)))(tls) != 0 {
return 0
}
@@ -23196,7 +23467,7 @@ func robustFchown(tls *libc.TLS, fd int32, uid Uid_t, gid Gid_t) int32 { /* sqli
// "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 { /* sqlite3.c:35344:12: */
var i uint32
var rc int32 = SQLITE_NOTFOUND
@@ -23233,7 +23504,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 { /* sqlite3.c:35387:28: */
var i uint32
_ = pNotUsed
@@ -23249,7 +23520,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 { /* sqlite3.c:35406:19: */
var i int32 = -1
_ = p
@@ -23287,7 +23558,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 Mode_t) int32 { /* sqlite3.c:34911:12: */
+func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* sqlite3.c:35447:12: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -23311,9 +23582,9 @@ func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* sqlite3
}
(*(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1*24 + 8)))(tls, fd)
Xsqlite3_log(tls, SQLITE_WARNING,
- ts+3431, libc.VaList(bp, z, fd))
+ ts+3422, libc.VaList(bp, z, fd))
fd = -1
- if (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls, ts+3474, O_RDONLY, int32(m)) < 0 {
+ if (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls, ts+3465, O_RDONLY, int32(m)) < 0 {
break
}
}
@@ -23354,14 +23625,14 @@ func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* sqlite3
// 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) /* sqlite3.c:35509:22 */
-func unixEnterMutex(tls *libc.TLS) { /* sqlite3.c:34974:13: */
+func unixEnterMutex(tls *libc.TLS) { /* sqlite3.c:35510:13: */
// Not a recursive mutex
Xsqlite3_mutex_enter(tls, unixBigLock)
}
-func unixLeaveMutex(tls *libc.TLS) { /* sqlite3.c:34978:13: */
+func unixLeaveMutex(tls *libc.TLS) { /* sqlite3.c:35514:13: */
Xsqlite3_mutex_leave(tls, unixBigLock)
}
@@ -23371,9 +23642,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 { /* sqlite3.c:35610:12: */
var rc int32
- for ok := true; ok; ok = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == EINTR {
+ for __ccgo := true; __ccgo; __ccgo = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == EINTR {
rc = (*(*func(*libc.TLS, int32, Off_t) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 6*24 + 8)))(tls, h, int64(sz))
}
return rc
@@ -23387,7 +23658,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 { /* sqlite3.c:35635:12: */
switch posixError {
case EACCES:
@@ -23436,7 +23707,7 @@ type vxworksFileId = struct {
FnRef int32
FnName int32
FzCanonicalName uintptr
-} /* sqlite3.c:35141:1 */
+} /* sqlite3.c:35677:1 */
// ************** End of Unique File ID Utility Used By VxWorks ****************
//
@@ -23537,12 +23808,12 @@ type vxworksFileId = struct {
type unixFileId = struct {
Fdev Dev_t
Fino U64
-} /* sqlite3.c:34433:9 */
+} /* sqlite3.c:34969: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) /* sqlite3.c:35959:22 */
// All unixInodeInfo objects
@@ -23560,7 +23831,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 { /* sqlite3.c:35994:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -23571,13 +23842,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 + 1565 /* "" */
+ zErr = ts + 1534 /* "" */
if zPath == uintptr(0) {
- zPath = ts + 1565 /* "" */
+ zPath = ts + 1534 /* "" */
}
Xsqlite3_log(tls, errcode,
- ts+3484,
+ ts+3475,
libc.VaList(bp, iLine, iErrno, zFunc, zPath, zErr))
return errcode
@@ -23594,9 +23865,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) { /* sqlite3.c:36059: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+3226,
+ unixLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, ts+3217,
func() uintptr {
if pFile != 0 {
return (*UnixFile)(unsafe.Pointer(pFile)).FzPath
@@ -23608,19 +23879,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) { /* sqlite3.c:36070: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) { /* sqlite3.c:36077: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, 36084)
Xsqlite3_free(tls, p)
}
(*UnixInodeInfo)(unsafe.Pointer(pInode)).FpUnused = uintptr(0)
@@ -23630,7 +23901,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) { /* sqlite3.c:36096:13: */
var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode
if pInode != 0 {
@@ -23664,7 +23935,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 { /* sqlite3.c:36133:12: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -23723,7 +23994,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 { /* sqlite3.c:36225:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -23740,7 +24011,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) { /* sqlite3.c:36246:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -23755,19 +24026,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+3515, libc.VaList(bp, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3506, libc.VaList(bp, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
return
}
if (*stat)(unsafe.Pointer(bp+32)).Fst_nlink == uint64(0) {
- Xsqlite3_log(tls, SQLITE_WARNING, ts+3539, libc.VaList(bp+8, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3530, libc.VaList(bp+8, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
return
}
if (*stat)(unsafe.Pointer(bp+32)).Fst_nlink > uint64(1) {
- Xsqlite3_log(tls, SQLITE_WARNING, ts+3568, libc.VaList(bp+16, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3559, libc.VaList(bp+16, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
return
}
if fileHasMoved(tls, pFile) != 0 {
- Xsqlite3_log(tls, SQLITE_WARNING, ts+3595, libc.VaList(bp+24, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+3586, libc.VaList(bp+24, (*UnixFile)(unsafe.Pointer(pFile)).FzPath))
return
}
}
@@ -23776,7 +24047,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 { /* sqlite3.c:36279:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -23842,7 +24113,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 { /* sqlite3.c:36380:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -23894,7 +24165,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 { /* sqlite3.c:36430:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -24141,7 +24412,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) { /* sqlite3.c:36657:13: */
var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode
var p uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpPreallocatedUnused
@@ -24162,7 +24433,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 { /* sqlite3.c:36680:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -24296,7 +24567,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 { /* sqlite3.c:36840:12: */
return posixUnlock(tls, id, eFileLock, 0)
}
@@ -24309,11 +24580,11 @@ 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 { /* sqlite3.c:36862:12: */
var pFile uintptr = id
unixUnmapfile(tls, pFile)
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, 36868)
(*UnixFile)(unsafe.Pointer(pFile)).Fh = -1
}
@@ -24323,7 +24594,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 { /* sqlite3.c:36897:12: */
var rc int32 = SQLITE_OK
var pFile uintptr = id
var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode
@@ -24373,26 +24644,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 { /* sqlite3.c:36949: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 { /* sqlite3.c:36954: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 { /* sqlite3.c:36958: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 { /* sqlite3.c:36966:12: */
return closeUnixFile(tls, id)
}
@@ -24433,7 +24704,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 { /* sqlite3.c:37011:12: */
var rc int32 = SQLITE_OK
var reserved int32 = 0
var pFile uintptr = id
@@ -24469,7 +24740,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 { /* sqlite3.c:37052:12: */
var pFile uintptr = id
var zLockFile uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FlockingContext
var rc int32 = SQLITE_OK
@@ -24511,7 +24782,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 { /* sqlite3.c:37102:12: */
var pFile uintptr = id
var zLockFile uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FlockingContext
var rc int32
@@ -24546,7 +24817,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 { /* sqlite3.c:37145:12: */
var pFile uintptr = id
dotlockUnlock(tls, id, NO_LOCK)
@@ -24645,12 +24916,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 { /* sqlite3.c:38059: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) {
@@ -24683,7 +24954,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 { /* sqlite3.c:38108:12: */
var pFile uintptr = id
var got int32
@@ -24738,12 +25009,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 { /* sqlite3.c:38184: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_location(tls))) == EINTR {
+ for __ccgo := true; __ccgo; __ccgo = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == EINTR {
var iSeek I64 = I64(libc.Xlseek(tls, fd, int64(iOff), SEEK_SET))
if iSeek < int64(0) {
@@ -24764,13 +25035,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 { /* sqlite3.c:38230: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 { /* sqlite3.c:38239:12: */
var pFile uintptr = id
var wrote int32 = 0
@@ -24827,7 +25098,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 { /* sqlite3.c:38374:12: */
var rc int32
// The following "ifdef/elif/else/" block has the same structure as
@@ -24873,7 +25144,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 { /* sqlite3.c:38470:12: */
bp := tls.Alloc(521)
defer tls.Free(521)
@@ -24881,7 +25152,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+3623, libc.VaList(bp, zFilename))
+ Xsqlite3_snprintf(tls, MAX_PATHNAME, bp+8, ts+3614, 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 {
@@ -24900,7 +25171,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+3338, bp+8, 37953)
+ return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 38489), ts+3329, bp+8, 38489)
}
// Make sure all writes to a particular file are committed to disk.
@@ -24916,7 +25187,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 { /* sqlite3.c:38507:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -24935,7 +25206,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_location(tls))))
- return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, ts+3626, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 37994)
+ return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, ts+3617, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38530)
}
// Also fsync the directory containing the file if the DIRSYNC flag
@@ -24947,7 +25218,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 */)), 38544)
} else {
rc = SQLITE_OK
@@ -24958,7 +25229,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 { /* sqlite3.c:38557:12: */
var pFile uintptr = id
var rc int32
@@ -24973,7 +25244,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_location(tls))))
- return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3257, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38039)
+ return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3248, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38575)
} else {
// If the file was just truncated to a size smaller than the currently
@@ -24989,7 +25260,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 { /* sqlite3.c:38607:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -25020,7 +25291,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 { /* sqlite3.c:38645:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -25052,7 +25323,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+1565, 1)
+ nWrite = seekAndWrite(tls, pFile, iWrite, ts+1534, 1)
if nWrite != 1 {
return SQLITE_IOERR | int32(3)<<8
}
@@ -25065,7 +25336,7 @@ func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* sqlite3.c
if (*UnixFile)(unsafe.Pointer(pFile)).FszChunk <= 0 {
if robust_ftruncate(tls, (*UnixFile)(unsafe.Pointer(pFile)).Fh, nByte) != 0 {
storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))))
- return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3257, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38160)
+ return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3248, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38696)
}
}
@@ -25080,7 +25351,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) { /* sqlite3.c:38714: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 {
@@ -25091,7 +25362,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 { /* sqlite3.c:38733:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -25139,7 +25410,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+3623, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFile)).FpVfs)).FzName))
+ *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFile)).FpVfs)).FzName))
return SQLITE_OK
}
@@ -25202,7 +25473,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) { /* sqlite3.c:38868:13: */
if (*UnixFile)(unsafe.Pointer(pFd)).FsectorSize == 0 {
@@ -25223,7 +25494,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 { /* sqlite3.c:38975:12: */
var pFd uintptr = id
setDeviceCharacteristics(tls, pFd)
return (*UnixFile)(unsafe.Pointer(pFd)).FsectorSize
@@ -25240,7 +25511,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 { /* sqlite3.c:38994:12: */
var pFd uintptr = id
setDeviceCharacteristics(tls, pFd)
return (*UnixFile)(unsafe.Pointer(pFd)).FdeviceCharacteristics
@@ -25250,7 +25521,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 { /* sqlite3.c:39008:12: */
return int32(libc.Xsysconf(tls, X_SC_PAGESIZE))
}
@@ -25262,7 +25533,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 { /* sqlite3.c:39107:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -25294,7 +25565,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 { /* sqlite3.c:39139:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -25335,7 +25606,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 { /* sqlite3.c:39224: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
@@ -25349,7 +25620,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) { /* sqlite3.c:39238:13: */
var p uintptr = (*UnixInodeInfo)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFd)).FpInode)).FpShmNode
if p != 0 && (*UnixShmNode)(unsafe.Pointer(p)).FnRef == 0 {
@@ -25366,7 +25637,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, 39255)
(*UnixShmNode)(unsafe.Pointer(p)).FhShm = -1
}
(*UnixInodeInfo)(unsafe.Pointer((*UnixShmNode)(unsafe.Pointer(p)).FpInode)).FpShmNode = uintptr(0)
@@ -25381,7 +25652,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 { /* sqlite3.c:39272:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -25425,7 +25696,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+3257, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 38776)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, ts+3248, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39312)
}
}
} else if int32((*flock)(unsafe.Pointer(bp+8)).Fl_type) == F_WRLCK {
@@ -25472,7 +25743,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 { /* sqlite3.c:39361:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -25531,7 +25802,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+3637, libc.VaList(bp, zBasePath))
+ Xsqlite3_snprintf(tls, nShmFilename, zShm, ts+3628, libc.VaList(bp, zBasePath))
(*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm = -1
(*UnixInodeInfo)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pDbFd)).FpInode)).FpShmNode = pShmNode
@@ -25553,7 +25824,7 @@ __5:
if !(int32((*UnixInodeInfo)(unsafe.Pointer(pInode)).FbProcessLock) == 0) {
goto __7
}
- if !(0 == Xsqlite3_uri_boolean(tls, (*UnixFile)(unsafe.Pointer(pDbFd)).FzPath, ts+3644, 0)) {
+ if !(0 == Xsqlite3_uri_boolean(tls, (*UnixFile)(unsafe.Pointer(pDbFd)).FzPath, ts+3635, 0)) {
goto __8
}
(*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm = robust_open(tls, zShm, O_RDWR|O_CREAT|0400000,
@@ -25568,7 +25839,7 @@ __8:
if !((*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm < 0) {
goto __10
}
- rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 38901), ts+3221, zShm, 38901)
+ rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 39437), ts+3212, zShm, 39437)
goto shm_open_err
__10:
;
@@ -25636,7 +25907,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 { /* sqlite3.c:39503:12: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -25735,11 +26006,11 @@ __11:
goto __13
}
*(*int32)(unsafe.Pointer(bp + 144 /* x */)) = 0
- if !(seekAndWriteFd(tls, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(iPg*pgsz+pgsz-1), ts+1565, 1, bp+144) != 1) {
+ if !(seekAndWriteFd(tls, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(iPg*pgsz+pgsz-1), ts+1534, 1, bp+144) != 1) {
goto __14
}
zFile = (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename
- rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, ts+3292, zFile, 39045)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, ts+3283, zFile, 39581)
goto shmpage_out
__14:
;
@@ -25787,7 +26058,7 @@ __16:
if !(pMem == libc.UintptrFromInt32(-1)) {
goto __20
}
- rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, ts+3379, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39072)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, ts+3370, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39608)
goto shmpage_out
__20:
;
@@ -25845,7 +26116,7 @@ __27:
return rc
}
-var pgsz int32 = 4096 /* sqlite3.c:39036:28 */
+var pgsz int32 = 4096 /* sqlite3.c:39572: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
@@ -25859,7 +26130,7 @@ 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: */
+func unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* sqlite3.c:39678: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
@@ -25966,7 +26237,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) { /* sqlite3.c:39810:13: */
_ = fd
// compiler-defined memory barrier
@@ -25979,7 +26250,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 { /* sqlite3.c:39829: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
@@ -26022,7 +26293,7 @@ func unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* sqlite
}
// If it is currently memory mapped, unmap file pFd.
-func unixUnmapfile(tls *libc.TLS, pFd uintptr) { /* sqlite3.c:39350:13: */
+func unixUnmapfile(tls *libc.TLS, pFd uintptr) { /* sqlite3.c:39886:13: */
if (*UnixFile)(unsafe.Pointer(pFd)).FpMapRegion != 0 {
(*(*func(*libc.TLS, uintptr, Size_t) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 23*24 + 8)))(tls, (*UnixFile)(unsafe.Pointer(pFd)).FpMapRegion, uint64((*UnixFile)(unsafe.Pointer(pFd)).FmmapSizeActual))
@@ -26045,8 +26316,8 @@ func unixUnmapfile(tls *libc.TLS, pFd uintptr) { /* sqlite3.c:39350:13: */
// the three variables above are zeroed. In this case SQLite should
// continue accessing the database using the xRead() and xWrite()
// methods.
-func unixRemapfile(tls *libc.TLS, pFd uintptr, nNew I64) { /* sqlite3.c:39375:13: */
- var zErr uintptr = ts + 3379 /* "mmap" */
+func unixRemapfile(tls *libc.TLS, pFd uintptr, nNew I64) { /* sqlite3.c:39911:13: */
+ var zErr uintptr = ts + 3370 /* "mmap" */
var h int32 = (*UnixFile)(unsafe.Pointer(pFd)).Fh // File descriptor open on db file
var pOrig uintptr = (*UnixFile)(unsafe.Pointer(pFd)).FpMapRegion // Pointer to current file mapping
var nOrig I64 = (*UnixFile)(unsafe.Pointer(pFd)).FmmapSizeActual // Size of pOrig region in bytes
@@ -26063,7 +26334,7 @@ func unixRemapfile(tls *libc.TLS, pFd uintptr, nNew I64) { /* sqlite3.c:39375:13
}
pNew = (*(*func(*libc.TLS, uintptr, Size_t, Size_t, int32, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 24*24 + 8)))(tls, pOrig, uint64(nReuse), uint64(nNew), MREMAP_MAYMOVE, 0)
- zErr = ts + 3391 /* "mremap" */
+ zErr = ts + 3382 /* "mremap" */
// The attempt to extend the existing mapping failed. Free it.
if pNew == libc.UintptrFromInt32(-1) || pNew == uintptr(0) {
@@ -26079,7 +26350,7 @@ func unixRemapfile(tls *libc.TLS, pFd uintptr, nNew I64) { /* sqlite3.c:39375:13
if pNew == libc.UintptrFromInt32(-1) {
pNew = uintptr(0)
nNew = int64(0)
- unixLogErrorAtLine(tls, SQLITE_OK, zErr, (*UnixFile)(unsafe.Pointer(pFd)).FzPath, 39440)
+ unixLogErrorAtLine(tls, SQLITE_OK, zErr, (*UnixFile)(unsafe.Pointer(pFd)).FzPath, 39976)
// If the mmap() above failed, assume that all subsequent mmap() calls
// will probably fail too. Fall back to using xRead/xWrite exclusively
@@ -26104,7 +26375,7 @@ func unixRemapfile(tls *libc.TLS, pFd uintptr, nNew I64) { /* sqlite3.c:39375:13
// SQLITE_OK is returned if no error occurs (even if the mapping is not
// recreated as a result of outstanding references) or an SQLite error
// code otherwise.
-func unixMapfile(tls *libc.TLS, pFd uintptr, nMap I64) int32 { /* sqlite3.c:39467:12: */
+func unixMapfile(tls *libc.TLS, pFd uintptr, nMap I64) int32 { /* sqlite3.c:40003:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -26141,7 +26412,7 @@ func unixMapfile(tls *libc.TLS, pFd uintptr, nMap I64) int32 { /* sqlite3.c:3946
//
// 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 { /* sqlite3.c:40040:12: */
var pFd uintptr = fd // The underlying database file
*(*uintptr)(unsafe.Pointer(pp)) = uintptr(0)
@@ -26168,7 +26439,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 { /* sqlite3.c:40071:12: */
var pFd uintptr = fd // The underlying database file
_ = iOff
@@ -26229,33 +26500,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 */} /* sqlite3.c:40173: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 { /* sqlite3.c:40173: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 /* sqlite3.c:40173: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:40183: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 { /* sqlite3.c:40183: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 /* sqlite3.c:40183: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:40193: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 { /* sqlite3.c:40193:1: */
_ = z
_ = p
return uintptr(unsafe.Pointer(&dotlockIoMethods))
}
-var dotlockIoFinder uintptr = 0 /* sqlite3.c:39657:1 */
+var dotlockIoFinder uintptr = 0 /* sqlite3.c:40193: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
@@ -26268,7 +26539,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 /* sqlite3.c:40388:34 */
// ***************************************************************************
//
@@ -26278,7 +26549,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 { /* sqlite3.c:40401:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -26299,10 +26570,10 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename
}
return uintptr(0)
}(),
- ts+3657, SQLITE_POWERSAFE_OVERWRITE) != 0 {
+ ts+3648, SQLITE_POWERSAFE_OVERWRITE) != 0 {
*(*uint16)(unsafe.Pointer(pNew + 30)) |= uint16(UNIXFILE_PSOW)
}
- if libc.Xstrcmp(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName, ts+3662) == 0 {
+ if libc.Xstrcmp(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName, ts+3653) == 0 {
*(*uint16)(unsafe.Pointer(pNew + 30)) |= uint16(UNIXFILE_EXCL)
}
@@ -26335,7 +26606,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, 40479)
h = -1
}
unixLeaveMutex(tls)
@@ -26350,7 +26621,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+3672, libc.VaList(bp, zFilename))
+ Xsqlite3_snprintf(tls, nFilename, zLockFile, ts+3663, libc.VaList(bp, zFilename))
}
(*UnixFile)(unsafe.Pointer(pNew)).FlockingContext = zLockFile
}
@@ -26358,7 +26629,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, 40564)
}
} else {
(*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods = pLockingStyle
@@ -26372,21 +26643,21 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename
var azTempDirs = [6]uintptr{
uintptr(0),
uintptr(0),
+ ts + 3671,
ts + 3680,
ts + 3689,
- ts + 3698,
- ts + 1578,
-} /* sqlite3.c:40040:19 */
+ ts + 1547,
+} /* sqlite3.c:40576:19 */
// Initialize first two members of azTempDirs[] array.
-func unixTempFileInit(tls *libc.TLS) { /* sqlite3.c:40052:13: */
- azTempDirs[0] = libc.Xgetenv(tls, ts+3703)
- azTempDirs[1] = libc.Xgetenv(tls, ts+3717)
+func unixTempFileInit(tls *libc.TLS) { /* sqlite3.c:40588:13: */
+ azTempDirs[0] = libc.Xgetenv(tls, ts+3694)
+ azTempDirs[1] = libc.Xgetenv(tls, ts+3708)
}
// 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 { /* sqlite3.c:40597:19: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -26413,7 +26684,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 { /* sqlite3.c:40621:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -26429,12 +26700,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+3724,
+ Xsqlite3_snprintf(tls, nBuf, zBuf, ts+3715,
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
@@ -26457,7 +26728,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 { /* sqlite3.c:40671:21: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -26508,7 +26779,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 { /* sqlite3.c:40721:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -26544,7 +26815,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 { /* sqlite3.c:40760:12: */
bp := tls.Alloc(513)
defer tls.Free(513)
@@ -26590,7 +26861,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+3741)
+ var z uintptr = Xsqlite3_uri_parameter(tls, zPath, ts+3732)
if z != 0 {
rc = getFileMode(tls, z, pMode, pUid, pGid)
}
@@ -26618,7 +26889,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 { /* sqlite3.c:40837:12: */
bp := tls.Alloc(528)
defer tls.Free(528)
@@ -26816,7 +27087,7 @@ __15:
if !(fd < 0) {
goto __19
}
- rc2 = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 40457), ts+3221, zName, 40457)
+ rc2 = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 40993), ts+3212, zName, 40993)
if !(rc == SQLITE_OK) {
goto __20
}
@@ -26916,7 +27187,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 { /* sqlite3.c:41116:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -26927,7 +27198,7 @@ func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) in
if *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == ENOENT {
rc = SQLITE_IOERR | int32(23)<<8
} else {
- rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, ts+3331, zPath, 40596)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, ts+3322, zPath, 41132)
}
return rc
}
@@ -26937,9 +27208,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+3748, zPath, 40606)
+ rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(5)<<8, ts+3739, zPath, 41142)
}
- robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp /* fd */)), 40608)
+ robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp /* fd */)), 41144)
} else {
rc = SQLITE_OK
@@ -26956,7 +27227,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 { /* sqlite3.c:41164:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -26978,7 +27249,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 { /* sqlite3.c:41193:12: */
var j int32 = *(*int32)(unsafe.Pointer(pJ))
var i int32
if j <= 0 {
@@ -27001,7 +27272,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 { /* sqlite3.c:41211:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -27012,7 +27283,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+3239, zPath, 40685)
+ return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41221), ts+3230, zPath, 41221)
}
iOff = Xsqlite3Strlen30(tls, zOut)
*(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&iOff, 1)))) = int8('/')
@@ -27021,9 +27292,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, 41230)
}
- Xsqlite3_snprintf(tls, nOut-iOff, zOut+uintptr(iOff), ts+3623, libc.VaList(bp, zPath))
+ Xsqlite3_snprintf(tls, nOut-iOff, zOut+uintptr(iOff), ts+3614, libc.VaList(bp, zPath))
// Remove duplicate '/' characters. Except, two // at the beginning
// of a pathname is allowed since this is important on windows.
@@ -27072,7 +27343,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 { /* sqlite3.c:41280:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -27089,7 +27360,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.
@@ -27098,7 +27369,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_location(tls))) != ENOENT {
- rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 40777), ts+3419, zIn, 40777)
+ rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41313), ts+3410, zIn, 41313)
}
} else {
bLink = libc.Bool32((*stat)(unsafe.Pointer(bp)).Fst_mode&X__mode_t(0170000) == X__mode_t(0120000))
@@ -27112,20 +27383,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, 41325)
}
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+3410, zIn, 40795)
+ rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41331), ts+3401, zIn, 41331)
} 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, 41337)
} else {
libc.Xmemmove(tls, zDel+uintptr(n), zDel, uint64(nByte+1))
libc.Xmemcpy(tls, zDel, zIn, uint64(n))
@@ -27197,7 +27468,7 @@ type Dl_serinfo = struct {
}
} /* dlfcn.h:196:3 */
-func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* sqlite3.c:40836:13: */
+func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* sqlite3.c:41372:13: */
_ = NotUsed
return libc.Xdlopen(tls, zFilename, RTLD_NOW|RTLD_GLOBAL)
}
@@ -27207,7 +27478,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) { /* sqlite3.c:41384:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -27216,12 +27487,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+3623, libc.VaList(bp, zErr))
+ Xsqlite3_snprintf(tls, nBuf, zBufOut, ts+3614, 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 { /* sqlite3.c:41394: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
@@ -27247,13 +27518,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) { /* sqlite3.c:41417: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 { /* sqlite3.c:41431:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -27275,7 +27546,7 @@ func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) in
{
var fd int32
var got int32
- fd = robust_open(tls, ts+3754, O_RDONLY, uint32(0))
+ fd = robust_open(tls, ts+3745, O_RDONLY, uint32(0))
if fd < 0 {
// var t Time_t at bp, 8
@@ -27285,10 +27556,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_location(tls))) == EINTR {
+ for __ccgo := true; __ccgo; __ccgo = got < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(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, 41462)
}
}
@@ -27301,7 +27572,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 { /* sqlite3.c:41478:12: */
if microseconds >= 1000000 {
libc.Xsleep(tls, uint32(microseconds/1000000))
}
@@ -27324,7 +27595,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 { /* sqlite3.c:41519:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -27338,12 +27609,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) /* sqlite3.c:41520: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 { /* sqlite3.c:41551:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -27359,7 +27630,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 { /* sqlite3.c:41569:12: */
_ = NotUsed
_ = NotUsed2
_ = NotUsed3
@@ -27541,7 +27812,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 { /* sqlite3.c:42774:16: */
var i uint32 // Loop counter
// Double-check that the aSyscall[] array has been constructed
@@ -27575,18 +27846,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 + 3767, 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 + 3772, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */},
- {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3782, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */},
- {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3662, 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 + 3758, 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 + 3773, 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 + 3653, 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:42827: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 { /* sqlite3.c:42896:16: */
unixBigLock = uintptr(0)
return SQLITE_OK
}
@@ -27628,15 +27899,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 /* sqlite3.c:49086:28 */
type MemFile1 = struct {
Fbase Sqlite3_file
FpStore uintptr
FeLock int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:48551:9 */
+} /* sqlite3.c:49087:9 */
-type MemFile = MemFile1 /* sqlite3.c:48551:24 */
+type MemFile = MemFile1 /* sqlite3.c:49087:24 */
type MemStore1 = struct {
Fsz Sqlite3_int64
FszAlloc Sqlite3_int64
@@ -27650,9 +27921,9 @@ type MemStore1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FzFName uintptr
-} /* sqlite3.c:48551:9 */
+} /* sqlite3.c:49087:9 */
-type MemStore = MemStore1 /* sqlite3.c:48552:25 */
+type MemStore = MemStore1 /* sqlite3.c:49088:25 */
// File-scope variables for holding the memdb files that are accessible
// to multiple database connections in separate threads.
@@ -27662,18 +27933,18 @@ type MemFS = struct {
FnMemStore int32
F__ccgo_pad1 [4]byte
FapMemStore uintptr
-} /* sqlite3.c:48622:8 */
+} /* sqlite3.c:49158: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 /* sqlite3.c:49161:3: */
var memdb_vfs = Sqlite3_vfs{
FiVersion: 2, // szOsFile (set when registered)
FmxPathname: 1024, // pNext
- FzName: ts + 3795,
+ FzName: ts + 3786,
FxOpen: 0, /* memdbDelete, */ // xDelete
FxAccess: 0, // xAccess
FxFullPathname: 0, // xFullPathname
@@ -27685,7 +27956,7 @@ var memdb_vfs = Sqlite3_vfs{
FxSleep: 0, /* memdbCurrentTime, */ // xCurrentTime
FxGetLastError: 0, // xGetLastError
FxCurrentTimeInt64: 0, // xNextSystemCall
-} /* sqlite3.c:48661:20 */
+} /* sqlite3.c:49197:20 */
var memdb_io_methods = Sqlite3_io_methods{
FiVersion: 3, // iVersion
@@ -27701,21 +27972,21 @@ var memdb_io_methods = Sqlite3_io_methods{
FxDeviceCharacteristics: 0, // xShmUnmap
FxFetch: 0, // xFetch
FxUnfetch: 0, // xUnfetch
-} /* sqlite3.c:48686:33 */
+} /* sqlite3.c:49222: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) { /* sqlite3.c:49255: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) { /* sqlite3.c:49258: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 { /* sqlite3.c:49270:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
if (*MemStore)(unsafe.Pointer(p)).FzFName != 0 {
var i int32
@@ -27753,7 +28024,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 { /* sqlite3.c:49312:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
if iOfst+Sqlite_int64(iAmt) > (*MemStore)(unsafe.Pointer(p)).Fsz {
@@ -27770,7 +28041,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 { /* sqlite3.c:49334: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
@@ -27792,7 +28063,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 { /* sqlite3.c:49354:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
if (*MemStore)(unsafe.Pointer(p)).FmFlags&uint32(SQLITE_DESERIALIZE_READONLY) != 0 {
@@ -27823,7 +28094,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 { /* sqlite3.c:49391:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
var rc int32 = SQLITE_OK
memdbEnter(tls, p)
@@ -27838,14 +28109,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 { /* sqlite3.c:49408: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 { /* sqlite3.c:49417:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
*(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemStore)(unsafe.Pointer(p)).Fsz
@@ -27854,7 +28125,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 { /* sqlite3.c:49428:12: */
var pThis uintptr = pFile
var p uintptr = (*MemFile)(unsafe.Pointer(pThis)).FpStore
var rc int32 = SQLITE_OK
@@ -27898,7 +28169,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 { /* sqlite3.c:49482:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -27906,7 +28177,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+3801, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz))
+ *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3792, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz))
rc = SQLITE_OK
}
if op == SQLITE_FCNTL_SIZE_LIMIT {
@@ -27927,13 +28198,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 { /* sqlite3.c:49519: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 { /* sqlite3.c:49528: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) {
@@ -27947,7 +28218,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 { /* sqlite3.c:49547:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
_ = iOfst
_ = pPage
@@ -27958,7 +28229,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 { /* sqlite3.c:49560:12: */
var pFile uintptr = pFd
var p uintptr = uintptr(0)
var szName int32
@@ -28033,7 +28304,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 { /* sqlite3.c:49657:12: */
_ = pVfs
_ = zPath
_ = flags
@@ -28044,17 +28315,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 { /* sqlite3.c:49675:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
_ = pVfs
- Xsqlite3_snprintf(tls, nOut, zOut, ts+3623, libc.VaList(bp, zPath))
+ Xsqlite3_snprintf(tls, nOut, zOut, ts+3614, 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 { /* sqlite3.c:49689: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)
@@ -28063,21 +28334,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) { /* sqlite3.c:49698: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 { /* sqlite3.c:49705: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) { /* sqlite3.c:49712: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)
@@ -28085,7 +28356,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 { /* sqlite3.c:49720: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)
@@ -28093,19 +28364,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 { /* sqlite3.c:49728: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 { /* 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)).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 { /* sqlite3.c:49744: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)
@@ -28113,7 +28384,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 { /* sqlite3.c:49752:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -28136,7 +28407,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 { /* sqlite3.c:49768:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -28182,7 +28453,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+3816, libc.VaList(bp, zSchema))
+ zSql = Xsqlite3_mprintf(tls, ts+3807, libc.VaList(bp, zSchema))
if zSql != 0 {
rc = Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+8, uintptr(0))
} else {
@@ -28227,7 +28498,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 { /* sqlite3.c:49849:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -28256,7 +28527,7 @@ __1:
goto end_deserialize
__2:
;
- zSql = Xsqlite3_mprintf(tls, ts+3839, libc.VaList(bp, zSchema))
+ zSql = Xsqlite3_mprintf(tls, ts+3830, libc.VaList(bp, zSchema))
if !(zSql == uintptr(0)) {
goto __3
}
@@ -28322,7 +28593,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 { /* sqlite3.c:49925:20: */
var pLower uintptr = Xsqlite3_vfs_find(tls, uintptr(0))
var sz uint32
if pLower == uintptr(0) {
@@ -28344,7 +28615,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 { /* sqlite3.c:50057:23: */
var p uintptr
p = Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(Bitvec{})))
@@ -28357,7 +28628,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 { /* sqlite3.c:50072:20: */
i--
if i >= (*Bitvec)(unsafe.Pointer(p)).FiSize {
@@ -28386,7 +28657,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 { /* sqlite3.c:50095:20: */
return libc.Bool32(p != uintptr(0) && Xsqlite3BitvecTestNotNull(tls, p, i) != 0)
}
@@ -28400,7 +28671,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 { /* sqlite3.c:50111:20: */
var h U32
var bin U32
var j uint32
@@ -28537,7 +28808,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) { /* sqlite3.c:50182:21: */
if p == uintptr(0) {
return
}
@@ -28576,7 +28847,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) { /* sqlite3.c:50219:21: */
if p == uintptr(0) {
return
}
@@ -28591,7 +28862,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 { /* sqlite3.c:50234:20: */
return (*Bitvec)(unsafe.Pointer(p)).FiSize
}
@@ -28628,7 +28899,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 { /* sqlite3.c:50279:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -28791,7 +29062,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) { /* sqlite3.c:50514:13: */
var p uintptr = (*PgHdr)(unsafe.Pointer(pPage)).FpCache
if int32(addRemove)&PCACHE_DIRTYLIST_REMOVE != 0 {
@@ -28853,7 +29124,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) { /* sqlite3.c:50584:13: */
if (*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FbPurgeable != 0 {
(*struct {
@@ -28865,7 +29136,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 { /* sqlite3.c:50596: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.
@@ -28890,7 +29161,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 { /* sqlite3.c:50618: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
@@ -28903,7 +29174,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) { /* sqlite3.c:50628: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)
@@ -28911,7 +29182,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 { /* sqlite3.c:50638:20: */
return int32(unsafe.Sizeof(PCache{}))
}
@@ -28925,7 +29196,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 { /* sqlite3.c:50652:20: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(PCache{})))
(*PCache)(unsafe.Pointer(p)).FszPage = 1
(*PCache)(unsafe.Pointer(p)).FszExtra = szExtra
@@ -28942,7 +29213,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 { /* sqlite3.c:50678:20: */
if (*PCache)(unsafe.Pointer(pCache)).FszPage != 0 {
var pNew uintptr
@@ -28989,7 +29260,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 { /* sqlite3.c:50722:36: */
var eCreate int32
var pRes uintptr
@@ -29017,7 +29288,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 { /* sqlite3.c:50763:20: */
var pPg uintptr
if int32((*PCache)(unsafe.Pointer(pCache)).FeCreate) == 2 {
return 0
@@ -29068,7 +29339,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 { /* sqlite3.c:50819:30: */
var pPgHdr uintptr
pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra
@@ -29088,7 +29359,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 { /* sqlite3.c:50845:22: */
var pPgHdr uintptr
pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra
@@ -29104,7 +29375,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) { /* sqlite3.c:50868:37: */
(*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum--
if int32(libc.PreDecInt16(&(*PgHdr)(unsafe.Pointer(p)).FnRef, 1)) == 0 {
@@ -29117,7 +29388,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) { /* sqlite3.c:50883:21: */
(*PgHdr)(unsafe.Pointer(p)).FnRef++
(*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum++
@@ -29126,7 +29397,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) { /* sqlite3.c:50895:21: */
if int32((*PgHdr)(unsafe.Pointer(p)).Fflags)&PGHDR_DIRTY != 0 {
pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE))
@@ -29139,7 +29410,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) { /* sqlite3.c:50909: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))
@@ -29154,7 +29425,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) { /* sqlite3.c:50928:21: */
pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE))
*(*U16)(unsafe.Pointer(p + 52)) &= libc.Uint16FromInt32(libc.CplInt32(PGHDR_DIRTY | PGHDR_NEED_SYNC | PGHDR_WRITEABLE))
@@ -29166,7 +29437,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) { /* sqlite3.c:50945:21: */
var p uintptr
for libc.AssignUintptr(&p, (*PCache)(unsafe.Pointer(pCache)).FpDirty) != uintptr(0) {
@@ -29175,7 +29446,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) { /* sqlite3.c:50956:21: */
var p uintptr
for p = (*PCache)(unsafe.Pointer(pCache)).FpDirty; p != 0; p = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext {
@@ -29185,7 +29456,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) { /* sqlite3.c:50968: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))
@@ -29194,7 +29465,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) { /* sqlite3.c:50979:21: */
var pCache uintptr = (*PgHdr)(unsafe.Pointer(p)).FpCache
(*struct {
@@ -29213,7 +29484,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) { /* sqlite3.c:51001:21: */
if (*PCache)(unsafe.Pointer(pCache)).FpCache != 0 {
var p uintptr
var pNext uintptr
@@ -29247,19 +29518,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) { /* sqlite3.c:51034: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) { /* sqlite3.c:51043: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 { /* sqlite3.c:51051:14: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -29298,7 +29569,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 { /* sqlite3.c:51088:14: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -29341,7 +29612,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 { /* sqlite3.c:51123: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
@@ -29353,17 +29624,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 { /* sqlite3.c:51137: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 { /* sqlite3.c:51144: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 { /* sqlite3.c:51151:20: */
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -29371,7 +29642,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) { /* sqlite3.c:51168:21: */
(*PCache)(unsafe.Pointer(pCache)).FszCache = mxPage
(*struct {
@@ -29383,7 +29654,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 { /* sqlite3.c:51180:20: */
var res int32
if mxPage != 0 {
@@ -29400,20 +29671,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) { /* sqlite3.c:51197: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 { /* sqlite3.c:51206: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 { /* sqlite3.c:51212:20: */
var pDirty uintptr
var nDirty int32 = 0
var nCache int32 = numberOfCachePages(tls, pCache)
@@ -29528,7 +29799,7 @@ type PCache11 = struct {
FapHash uintptr
FpFree uintptr
FpBulk uintptr
-} /* sqlite3.c:50793:9 */
+} /* sqlite3.c:51329:9 */
//************* End of pcache.c *********************************************
//************* Begin file pcache1.c ****************************************
@@ -29614,7 +29885,7 @@ type PCache11 = struct {
// common workloads.
// #include "sqliteInt.h"
-type PCache1 = PCache11 /* sqlite3.c:50793:24 */
+type PCache1 = PCache11 /* sqlite3.c:51329:24 */
type PgHdr11 = struct {
Fpage Sqlite3_pcache_page
FiKey uint32
@@ -29624,12 +29895,12 @@ type PgHdr11 = struct {
FpCache uintptr
FpLruNext uintptr
FpLruPrev uintptr
-} /* sqlite3.c:50793:9 */
+} /* sqlite3.c:51329:9 */
-type PgHdr1 = PgHdr11 /* sqlite3.c:50794:23 */
-type PgFreeslot1 = struct{ FpNext uintptr } /* sqlite3.c:50795:9 */
+type PgHdr1 = PgHdr11 /* sqlite3.c:51330:23 */
+type PgFreeslot1 = struct{ FpNext uintptr } /* sqlite3.c:51331:9 */
-type PgFreeslot = PgFreeslot1 /* sqlite3.c:50795:27 */
+type PgFreeslot = PgFreeslot1 /* sqlite3.c:51331:27 */
type PGroup1 = struct {
Fmutex uintptr
FnMaxPage uint32
@@ -29637,9 +29908,9 @@ type PGroup1 = struct {
FmxPinned uint32
FnPurgeable uint32
Flru PgHdr1
-} /* sqlite3.c:50793:9 */
+} /* sqlite3.c:51329:9 */
-type PGroup = PGroup1 /* sqlite3.c:50796:23 */
+type PGroup = PGroup1 /* sqlite3.c:51332:23 */
// Global data used by this cache.
type PCacheGlobal = struct {
@@ -29656,10 +29927,10 @@ type PCacheGlobal = struct {
FpFree uintptr
FnFreeSlot int32
FbUnderPressure int32
-} /* sqlite3.c:50913:19 */
+} /* sqlite3.c:51449:19 */
// Global data used by this cache.
-var pcache1_g PCacheGlobal /* sqlite3.c:50937:3: */
+var pcache1_g PCacheGlobal /* sqlite3.c:51473: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
@@ -29677,7 +29948,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) { /* sqlite3.c:51508:21: */
if pcache1_g.FisInit != 0 {
var p uintptr
if pBuf == uintptr(0) {
@@ -29710,7 +29981,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 { /* sqlite3.c:51534:12: */
var szBulk I64
var zBulk uintptr
if pcache1_g.FnInitPage == 0 {
@@ -29733,7 +30004,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
@@ -29755,7 +30026,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 { /* sqlite3.c:51577:13: */
var p uintptr = uintptr(0)
if nByte <= pcache1_g.FszSlot {
@@ -29788,7 +30059,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) { /* sqlite3.c:51615:13: */
if p == uintptr(0) {
return
}
@@ -29818,7 +30089,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 { /* sqlite3.c:51648:12: */
if p >= pcache1_g.FpStart && p < pcache1_g.FpEnd {
return pcache1_g.FszSlot
} else {
@@ -29832,7 +30103,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 { /* sqlite3.c:51665:15: */
var p uintptr = uintptr(0)
var pPg uintptr
@@ -29870,7 +30141,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) { /* sqlite3.c:51717:13: */
var pCache uintptr
pCache = (*PgHdr1)(unsafe.Pointer(p)).FpCache
@@ -29887,13 +30158,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 { /* sqlite3.c:51739: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) { /* sqlite3.c:51747:21: */
pcache1Free(tls, p)
}
@@ -29911,7 +30182,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 { /* sqlite3.c:51768:12: */
if pcache1_g.FnSlot != 0 && (*PCache1)(unsafe.Pointer(pCache)).FszPage+(*PCache1)(unsafe.Pointer(pCache)).FszExtra <= pcache1_g.FszSlot {
return pcache1_g.FbUnderPressure
} else {
@@ -29927,7 +30198,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) { /* sqlite3.c:51785:13: */
var apNew uintptr
var nNew uint32
var i uint32
@@ -29968,7 +30239,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 { /* sqlite3.c:51826: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
@@ -29985,7 +30256,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) { /* sqlite3.c:51851:13: */
var h uint32
var pCache uintptr = (*PgHdr1)(unsafe.Pointer(pPage)).FpCache
var pp uintptr
@@ -30003,7 +30274,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) { /* sqlite3.c:51869:13: */
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
var p uintptr
@@ -30024,7 +30295,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) { /* sqlite3.c:51894:13: */
var h uint32
var iStop uint32
@@ -30072,7 +30343,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 { /* sqlite3.c:51945:12: */
_ = NotUsed
libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g)))
@@ -30110,7 +30381,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) { /* sqlite3.c:51998:13: */
_ = NotUsed
libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g)))
@@ -30119,7 +30390,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 { /* sqlite3.c:52012: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
@@ -30169,7 +30440,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) { /* sqlite3.c:52062:13: */
var pCache uintptr = p
var n U32
@@ -30192,7 +30463,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) { /* sqlite3.c:52087:13: */
var pCache uintptr = p
if (*PCache1)(unsafe.Pointer(pCache)).FbPurgeable != 0 {
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -30207,7 +30478,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 { /* sqlite3.c:52104:12: */
var n int32
var pCache uintptr = p
Xsqlite3_mutex_enter(tls, (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex)
@@ -30222,7 +30493,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 { /* sqlite3.c:52122:31: */
var nPinned uint32
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
var pPage uintptr = uintptr(0)
@@ -30340,7 +30611,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 { /* sqlite3.c:52250:15: */
var pCache uintptr = p
var pPage uintptr = uintptr(0)
@@ -30369,7 +30640,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 { /* sqlite3.c:52280:15: */
var pCache uintptr = p
var pPage uintptr
@@ -30380,7 +30651,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 { /* sqlite3.c:52295:28: */
var pCache uintptr = p
if (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex != 0 {
@@ -30394,7 +30665,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) { /* sqlite3.c:52326:13: */
var pCache uintptr = p
var pPage uintptr = pPg
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -30419,7 +30690,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) { /* sqlite3.c:52361:13: */
var pCache uintptr = p
var pPage uintptr = pPg
var pp uintptr
@@ -30450,7 +30721,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) { /* sqlite3.c:52401: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 {
@@ -30463,7 +30734,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) { /* sqlite3.c:52416:13: */
var pCache uintptr = p
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -30486,7 +30757,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) { /* sqlite3.c:52439:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -30506,16 +30777,16 @@ var defaultMethods1 = Sqlite3_pcache_methods2{
FxTruncate: 0, // xTruncate
FxDestroy: 0, // xDestroy
FxShrink: 0, // xShrink
-} /* sqlite3.c:51904:40 */
+} /* sqlite3.c:52440: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 { /* sqlite3.c:52461: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 { /* sqlite3.c:52467:30: */
return pcache1_g.Fmutex
}
@@ -30526,7 +30797,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 { /* sqlite3.c:52481:20: */
var nFree int32 = 0
if Xsqlite3Config.FpPage == uintptr(0) {
@@ -30624,7 +30895,7 @@ type RowSetEntry = struct {
Fv I64
FpRight uintptr
FpLeft uintptr
-} /* sqlite3.c:14291:9 */
+} /* sqlite3.c:14602:9 */
// RowSetEntry objects are allocated in large chunks (instances of the
// following structure) to reduce memory allocation overhead. The
@@ -30637,13 +30908,13 @@ type RowSetChunk = struct {
FpRight uintptr
FpLeft uintptr
}
-} /* sqlite3.c:14291:9 */
+} /* sqlite3.c:14602: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 { /* sqlite3.c:52661:23: */
var p uintptr = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(RowSet{})))
if p != 0 {
var N int32 = Xsqlite3DbMallocSize(tls, db, p)
@@ -30663,7 +30934,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) { /* sqlite3.c:52683:21: */
var p uintptr = pArg
var pChunk uintptr
var pNextChunk uintptr
@@ -30682,7 +30953,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) { /* sqlite3.c:52703:21: */
Xsqlite3RowSetClear(tls, pArg)
Xsqlite3DbFree(tls, (*RowSet)(unsafe.Pointer(pArg)).Fdb, pArg)
}
@@ -30693,7 +30964,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 { /* sqlite3.c:52716: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
@@ -30716,7 +30987,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) { /* sqlite3.c:52741:21: */
var pEntry uintptr // The new entry
var pLast uintptr // The last prior entry
@@ -30746,7 +31017,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 { /* sqlite3.c:52772:27: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -30781,7 +31052,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 { /* sqlite3.c:52807:27: */
bp := tls.Alloc(320)
defer tls.Free(320)
@@ -30817,7 +31088,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) { /* sqlite3.c:52836:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -30848,7 +31119,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 { /* sqlite3.c:52871:27: */
var p uintptr // Root of the new tree
var pLeft uintptr // Left subtree
if *(*uintptr)(unsafe.Pointer(ppList)) == uintptr(0) { //OPTIMIZATION-IF-TRUE
@@ -30879,7 +31150,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 { /* sqlite3.c:52907:27: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pList
@@ -30912,7 +31183,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 { /* sqlite3.c:52939:20: */
// Cannot be used with sqlite3RowSetText()
@@ -30945,7 +31216,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 { /* sqlite3.c:52973:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -31130,7 +31401,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 /* sqlite3.c:53115:20 */
//************* End of wal.h ************************************************
//************* Continuing where we left off in pager.c *********************
@@ -31899,7 +32170,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 /* sqlite3.c:53626:31 */
// Indexes for use with Pager.aStat[]. The Pager.aStat[] array contains
// the values accessed by passing SQLITE_DBSTATUS_CACHE_HIT, CACHE_MISS
@@ -31932,11 +32203,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 */
+} /* sqlite3.c:53948: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) { /* sqlite3.c:54241: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
@@ -31959,7 +32230,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 { /* sqlite3.c:54262:12: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var p uintptr
var pgno Pgno = (*PgHdr)(unsafe.Pointer(pPg)).Fpgno
@@ -31981,7 +32252,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 { /* sqlite3.c:54295:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -31998,7 +32269,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 { /* sqlite3.c:54314:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -32015,7 +32286,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 { /* sqlite3.c:54329:12: */
var rc int32 = SQLITE_OK
if (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods != uintptr(0) {
@@ -32042,7 +32313,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 { /* sqlite3.c:54357:12: */
var rc int32 = SQLITE_OK
if int32((*Pager)(unsafe.Pointer(pPager)).FeLock) < eLock || int32((*Pager)(unsafe.Pointer(pPager)).FeLock) == EXCLUSIVE_LOCK+1 {
@@ -32076,7 +32347,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 { /* sqlite3.c:54390:12: */
_ = pPager
@@ -32110,7 +32381,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 { /* sqlite3.c:54495:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -32169,7 +32440,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 { /* sqlite3.c:54551:12: */
var offset I64 = int64(0)
var c I64 = (*Pager)(unsafe.Pointer(pPager)).FjournalOff
if c != 0 {
@@ -32198,7 +32469,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 { /* sqlite3.c:54584:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -32233,7 +32504,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)} /* sqlite3.c:54595: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
@@ -32248,7 +32519,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 { /* sqlite3.c:54634: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
@@ -32358,7 +32629,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 { /* sqlite3.c:54752:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -32468,7 +32739,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 { /* sqlite3.c:54877:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -32528,21 +32799,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) { /* sqlite3.c:54945: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 { /* sqlite3.c:54954: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) { /* sqlite3.c:54963: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)
@@ -32559,7 +32830,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 { /* sqlite3.c:54982:12: */
var ii int32 // Loop counter
var rc int32 = SQLITE_OK // Result code
@@ -32588,7 +32859,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) { /* sqlite3.c:55014:13: */
Xsqlite3BitvecDestroy(tls, (*Pager)(unsafe.Pointer(pPager)).FpInJournal)
(*Pager)(unsafe.Pointer(pPager)).FpInJournal = uintptr(0)
@@ -32680,7 +32951,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 { /* sqlite3.c:55111:12: */
var rc2 int32 = rc & 0xff
if rc2 == SQLITE_FULL || rc2 == SQLITE_IOERR {
@@ -32705,7 +32976,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 { /* sqlite3.c:55145:12: */
if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 {
return 1
}
@@ -32769,7 +33040,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 { /* sqlite3.c:55205:12: */
var rc int32 = SQLITE_OK // Error code from journal finalization operation
var rc2 int32 = SQLITE_OK // Error code from db file unlock operation
@@ -32896,7 +33167,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) { /* sqlite3.c:55352: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 {
@@ -32928,7 +33199,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 { /* sqlite3.c:55386: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 {
@@ -32973,7 +33244,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 { /* sqlite3.c:55433:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -33207,7 +33478,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 { /* sqlite3.c:55680:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -33373,7 +33644,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 { /* sqlite3.c:55798:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -33408,7 +33679,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 { /* sqlite3.c:55834:20: */
var iRet int32 = Xsqlite3OsSectorSize(tls, pFile)
if iRet < 32 {
iRet = 512
@@ -33440,7 +33711,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) { /* sqlite3.c:55868:13: */
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 ||
Xsqlite3OsDeviceCharacteristics(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd)&SQLITE_IOCAP_POWERSAFE_OVERWRITE != 0 {
@@ -33508,7 +33779,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 { /* sqlite3.c:55941:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -33771,7 +34042,7 @@ __26:
if !(isHot != 0 && nPlayback != 0) {
goto __27
}
- Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+3854,
+ Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+3845,
libc.VaList(bp, nPlayback, (*Pager)(unsafe.Pointer(pPager)).FzJournal))
__27:
;
@@ -33793,7 +34064,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 { /* sqlite3.c:56158:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -33847,7 +34118,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) { /* sqlite3.c:56221:13: */
var change_counter U32
if pPg == uintptr(0) {
return
@@ -33874,7 +34145,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 { /* sqlite3.c:56249:12: */
var rc int32 = SQLITE_OK
var pPager uintptr = pCtx
var pPg uintptr
@@ -33905,7 +34176,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 { /* sqlite3.c:56284:12: */
var rc int32 // Return Code
var pList uintptr // List of dirty pages to revert
@@ -33936,7 +34207,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 { /* sqlite3.c:56316:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pList
@@ -33984,7 +34255,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 { /* sqlite3.c:56383:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -34015,7 +34286,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 { /* sqlite3.c:56416:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -34069,7 +34340,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 { /* sqlite3.c:56476:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -34137,7 +34408,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 { /* sqlite3.c:56543:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -34246,18 +34517,18 @@ func pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr) i
// Change the maximum number of in-memory pages that are allowed
// before attempting to recycle clean and unused pages.
-func Xsqlite3PagerSetCachesize(tls *libc.TLS, pPager uintptr, mxPage int32) { /* sqlite3.c:56119:21: */
+func Xsqlite3PagerSetCachesize(tls *libc.TLS, pPager uintptr, mxPage int32) { /* sqlite3.c:56655: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 { /* sqlite3.c:56663: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) { /* sqlite3.c:56670:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -34273,13 +34544,13 @@ func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56134: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) { /* sqlite3.c:56686: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) { /* sqlite3.c:56694:21: */
Xsqlite3PcacheShrink(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache)
}
@@ -34332,7 +34603,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) { /* sqlite3.c:56750:21: */
var level uint32 = pgFlags & uint32(PAGER_SYNCHRONOUS_MASK)
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 {
(*Pager)(unsafe.Pointer(pPager)).FnoSync = U8(1)
@@ -34396,7 +34667,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 { /* sqlite3.c:56810:12: */
var rc int32 // Return code
vfsFlags = vfsFlags | (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE)
@@ -34424,7 +34695,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) { /* sqlite3.c:56849:21: */
var ap uintptr
(*Pager)(unsafe.Pointer(pPager)).FxBusyHandler = xBusyHandler
(*Pager)(unsafe.Pointer(pPager)).FpBusyHandlerArg = pBusyHandlerArg
@@ -34461,7 +34732,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 { /* sqlite3.c:56893:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -34530,7 +34801,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 { /* sqlite3.c:56961:21: */
return (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace
}
@@ -34539,7 +34810,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 { /* sqlite3.c:56972:21: */
if mxPage > Pgno(0) {
(*Pager)(unsafe.Pointer(pPager)).FmxPgno = mxPage
}
@@ -34570,7 +34841,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 { /* sqlite3.c:57022:20: */
var rc int32 = SQLITE_OK
libc.Xmemset(tls, pDest, 0, uint64(N))
@@ -34593,7 +34864,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) { /* sqlite3.c:57050:21: */
*(*int32)(unsafe.Pointer(pnPage)) = int32((*Pager)(unsafe.Pointer(pPager)).FdbSize)
}
@@ -34610,7 +34881,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 { /* sqlite3.c:57071:12: */
var rc int32 // Return code
// Check that this is either a no-op (because the requested lock is
@@ -34618,7 +34889,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)
@@ -34633,8 +34904,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()
@@ -34656,7 +34926,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) { /* sqlite3.c:57142:21: */
(*Pager)(unsafe.Pointer(pPager)).FdbSize = nPage
@@ -34683,7 +34953,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 { /* sqlite3.c:57173: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)
@@ -34702,7 +34972,7 @@ func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:566
//
// Page references obtained by calling this function should be released
// by calling pagerReleaseMapPage().
-func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr, ppPage uintptr) int32 { /* sqlite3.c:56653:12: */
+func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr, ppPage uintptr) int32 { /* sqlite3.c:57195:12: */
var p uintptr // Memory mapped page to return
if (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist != 0 {
@@ -34732,7 +35002,7 @@ func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr
// Release a reference to page pPg. pPg must have been returned by an
// earlier call to pagerAcquireMapPage().
-func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56697:13: */
+func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:57239:13: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
(*Pager)(unsafe.Pointer(pPager)).FnMmapOut--
(*PgHdr)(unsafe.Pointer(pPg)).FpDirty = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist
@@ -34742,7 +35012,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) { /* sqlite3.c:57252:13: */
var p uintptr
var pNext uintptr
for p = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist; p != 0; p = pNext {
@@ -34755,7 +35025,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 { /* sqlite3.c:57266:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -34793,7 +35063,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 { /* sqlite3.c:57300:20: */
var pTmp uintptr = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace
Xsqlite3BeginBenignMalloc(tls)
@@ -34842,7 +35112,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) { /* sqlite3.c:57369:21: */
Xsqlite3PcacheRef(tls, pPg)
}
@@ -34879,7 +35149,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 { /* sqlite3.c:57408:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -34993,7 +35263,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) /* sqlite3.c:57459: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
@@ -35025,7 +35295,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 { /* sqlite3.c:57551:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -35105,7 +35375,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 { /* sqlite3.c:57642: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 |
@@ -35129,7 +35399,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 { /* sqlite3.c:57668:12: */
var rc int32 = SQLITE_OK
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
if int32((*Pager)(unsafe.Pointer(pPager)).FjournalMode) != PAGER_JOURNALMODE_OFF {
@@ -35160,7 +35430,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 { /* sqlite3.c:57704:12: */
if subjRequiresPage(tls, pPg) != 0 {
return subjournalPage(tls, pPg)
} else {
@@ -35186,7 +35456,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 { /* sqlite3.c:57731:12: */
var pPager uintptr = p
var rc int32 = SQLITE_OK
@@ -35248,7 +35518,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 { /* sqlite3.c:57808: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)
@@ -35295,7 +35565,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 { /* sqlite3.c:57857:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -35421,7 +35691,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, 57944)
__12:
;
if !(rc != SQLITE_OK) {
@@ -35529,7 +35799,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+3881, uint64(8))
+ libc.Xmemcpy(tls, pPtr, ts+3872, uint64(8))
pPtr += uintptr(8 + 1)
goto __19
__18:
@@ -35544,7 +35814,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+3890, uint64(4))
+ libc.Xmemcpy(tls, pPtr, ts+3881, uint64(4))
pPtr += uintptr(4 + 1)
goto __21
__20:
@@ -35604,9 +35874,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+3895, 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+3886, 0))
if !(iDc&SQLITE_IOCAP_IMMUTABLE != 0 ||
- Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+3902, 0) != 0) {
+ Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+3893, 0) != 0) {
goto __30
}
vfsFlags = vfsFlags | SQLITE_OPEN_READONLY
@@ -35740,7 +36010,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 { /* sqlite3.c:58229: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--
@@ -35778,7 +36048,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 { /* sqlite3.c:58270:12: */
bp := tls.Alloc(17)
defer tls.Free(17)
@@ -35889,7 +36159,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 { /* sqlite3.c:58390:20: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -36015,7 +36285,7 @@ __7:
if !(rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8))&SQLITE_OPEN_READONLY != 0) {
goto __10
}
- rc = Xsqlite3CantopenError(tls, 57932)
+ rc = Xsqlite3CantopenError(tls, 58474)
Xsqlite3OsClose(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd)
__10:
;
@@ -36164,7 +36434,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) { /* sqlite3.c:58607:13: */
if Xsqlite3PcacheRefCount(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) == 0 {
// because page1 is never memory mapped
pagerUnlockAndRollback(tls, pPager)
@@ -36226,7 +36496,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 { /* sqlite3.c:58671:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -36239,7 +36509,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, 58687)
__1:
;
*(*uintptr)(unsafe.Pointer(bp /* pBase */)) = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 3)
@@ -36285,7 +36555,7 @@ __5:
if !(pgno == Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1))) {
goto __7
}
- rc = Xsqlite3CorruptError(tls, 58177)
+ rc = Xsqlite3CorruptError(tls, 58719)
goto pager_acquire_err
__7:
;
@@ -36357,7 +36627,7 @@ __14:
}
// The page getter for when memory-mapped I/O is enabled
-func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58231:12: */
+func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58773:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -36377,7 +36647,7 @@ func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags
// test in the previous statement, and avoid testing pgno==0 in the
// common case where pgno is large.
if pgno <= Pgno(1) && pgno == Pgno(0) {
- return Xsqlite3CorruptError(tls, 58256)
+ return Xsqlite3CorruptError(tls, 58798)
}
if bMmapOk != 0 && (*Pager)(unsafe.Pointer(pPager)).FpWal != uintptr(0) {
@@ -36415,7 +36685,7 @@ func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags
}
// The page getter method for when the pager is an error state
-func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58300:12: */
+func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58842:12: */
_ = pgno
_ = flags
@@ -36424,7 +36694,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 { /* sqlite3.c:58858: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)
@@ -36439,7 +36710,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 { /* sqlite3.c:58879:23: */
var pPage uintptr
pPage = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 0)
@@ -36460,7 +36731,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) { /* sqlite3.c:58902:21: */
if int32((*DbPage)(unsafe.Pointer(pPg)).Fflags)&PGHDR_MMAP != 0 {
// Page1 is never memory mapped
@@ -36472,13 +36743,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) { /* sqlite3.c:58914: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) { /* sqlite3.c:58917:21: */
var pPager uintptr
// Page1 is never memory mapped
@@ -36507,7 +36778,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 { /* sqlite3.c:58949:12: */
var rc int32 = SQLITE_OK // Return code
var pVfs uintptr = (*Pager)(unsafe.Pointer(pPager)).FpVfs // Local cache of vfs pointer
@@ -36589,7 +36860,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 { /* sqlite3.c:59038:20: */
var rc int32 = SQLITE_OK
if (*Pager)(unsafe.Pointer(pPager)).FerrCode != 0 {
@@ -36649,7 +36920,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 { /* sqlite3.c:59107:28: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var rc int32
var cksum U32
@@ -36699,7 +36970,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 { /* sqlite3.c:59164:12: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var rc int32 = SQLITE_OK
@@ -36773,7 +37044,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 { /* sqlite3.c:59256:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -36861,7 +37132,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 { /* sqlite3.c:59350: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 {
@@ -36902,7 +37173,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) { /* sqlite3.c:59399: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 {
@@ -36932,7 +37203,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 { /* sqlite3.c:59433:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -37002,7 +37273,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 { /* sqlite3.c:59516:20: */
var rc int32 = SQLITE_OK
var pArg uintptr = zSuper
rc = Xsqlite3OsFileControl(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, SQLITE_FCNTL_SYNC, pArg)
@@ -37025,7 +37296,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 { /* sqlite3.c:59539:20: */
var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode
if rc == SQLITE_OK {
@@ -37061,7 +37332,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 { /* sqlite3.c:59581:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -37251,7 +37522,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 { /* sqlite3.c:59811:20: */
var rc int32 = SQLITE_OK // Return code
// This routine should not be called if a prior error has occurred.
@@ -37308,7 +37579,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 { /* sqlite3.c:59877:20: */
var rc int32 = SQLITE_OK // Return code
// PagerRollback() is a no-op if called in READER or OPEN state. If
@@ -37352,13 +37623,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 { /* sqlite3.c:59927: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 { /* sqlite3.c:59944: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)+
@@ -37367,7 +37638,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 { /* sqlite3.c:59955:20: */
return Xsqlite3PcachePageRefcount(tls, pPage)
}
@@ -37380,7 +37651,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) { /* sqlite3.c:59991:21: */
eStat = eStat - SQLITE_DBSTATUS_CACHE_HIT
*(*int32)(unsafe.Pointer(pnVal)) += *(*int32)(unsafe.Pointer(pPager + 240 + uintptr(eStat)*4))
@@ -37390,7 +37661,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 { /* sqlite3.c:60014:20: */
return libc.Bool32((*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 || (*Pager)(unsafe.Pointer(pPager)).FmemVfs != 0)
}
@@ -37402,7 +37673,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 { /* sqlite3.c:60028: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
@@ -37442,7 +37713,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 { /* sqlite3.c:60074:20: */
if nSavepoint > (*Pager)(unsafe.Pointer(pPager)).FnSavepoint && (*Pager)(unsafe.Pointer(pPager)).FuseJournal != 0 {
return pagerOpenSavepoint(tls, pPager, nSavepoint)
@@ -37480,7 +37751,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 { /* sqlite3.c:60116:20: */
var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode
if rc == SQLITE_OK && iSavepoint < (*Pager)(unsafe.Pointer(pPager)).FnSavepoint {
@@ -37541,30 +37812,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 { /* sqlite3.c:60197: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)} /* sqlite3.c:60198: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 { /* sqlite3.c:60205: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 { /* sqlite3.c:60214: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 { /* sqlite3.c:60222:29: */
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
return Xsqlite3WalFile(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
}
@@ -37572,7 +37843,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 { /* sqlite3.c:60233:27: */
return (*Pager)(unsafe.Pointer(pPager)).FzJournal
}
@@ -37599,7 +37870,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 { /* sqlite3.c:60263:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -37661,7 +37932,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, 60337)
}
*(*U16)(unsafe.Pointer(pPg + 52)) |= U16(int32((*PgHdr)(unsafe.Pointer(pPgOld)).Fflags) & PGHDR_NEED_SYNC)
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 {
@@ -37721,21 +37992,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) { /* sqlite3.c:60401: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 { /* sqlite3.c:60410: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 { /* sqlite3.c:60419:21: */
return (*DbPage)(unsafe.Pointer(pPg)).FpExtra
}
@@ -37747,7 +38018,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 { /* sqlite3.c:60433: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)
@@ -37773,7 +38044,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 { /* sqlite3.c:60466:20: */
var eOld U8 = (*Pager)(unsafe.Pointer(pPager)).FjournalMode // Prior journalmode
// The eMode parameter is always valid
@@ -37802,7 +38073,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.
@@ -37844,14 +38114,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 { /* sqlite3.c:60556: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 { /* sqlite3.c:60565:20: */
if int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_CACHEMOD {
return 0
@@ -37866,7 +38136,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 { /* sqlite3.c:60578:20: */
if iLimit >= int64(-1) {
(*Pager)(unsafe.Pointer(pPager)).FjournalSizeLimit = iLimit
Xsqlite3WalLimit(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, iLimit)
@@ -37878,12 +38148,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 { /* sqlite3.c:60592: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) { /* sqlite3.c:60600:21: */
if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 {
pager_reset(tls, pPager)
@@ -37895,8 +38165,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 { /* sqlite3.c:60615: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+3903, 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 {
@@ -37912,13 +38193,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 { /* sqlite3.c:60646: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 { /* sqlite3.c:60654:20: */
var pMethods uintptr = (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods
if (*Pager)(unsafe.Pointer(pPager)).FnoLock != 0 {
return 0
@@ -37928,7 +38209,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 { /* sqlite3.c:60664:12: */
var rc int32 // Return code
rc = pagerLockDb(tls, pPager, EXCLUSIVE_LOCK)
@@ -37945,7 +38226,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 { /* sqlite3.c:60684:12: */
var rc int32 = SQLITE_OK
// If the pager is already in exclusive-mode, the WAL module will use
@@ -37981,7 +38262,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 { /* sqlite3.c:60729:20: */
var rc int32 = SQLITE_OK // Return code
if !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && !(int32((*Pager)(unsafe.Pointer(pPager)).FpWal) != 0) {
@@ -38011,7 +38292,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 { /* sqlite3.c:60768:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -38051,7 +38332,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 { /* sqlite3.c:60837:20: */
var rc int32 = SQLITE_ERROR
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotGet(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, ppSnapshot)
@@ -38062,7 +38343,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 { /* sqlite3.c:60850:20: */
var rc int32 = SQLITE_OK
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
Xsqlite3WalSnapshotOpen(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot)
@@ -38074,7 +38355,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 { /* sqlite3.c:60867:20: */
var rc int32
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotRecover(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
@@ -38094,7 +38375,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 { /* sqlite3.c:60889:20: */
var rc int32
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotCheck(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot)
@@ -38106,7 +38387,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) { /* sqlite3.c:60903:21: */
Xsqlite3WalSnapshotUnlock(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
}
@@ -38685,7 +38966,7 @@ type WalIndexHdr1 = struct {
// byte.
// Object declarations
-type WalIndexHdr = WalIndexHdr1 /* sqlite3.c:60677:28 */
+type WalIndexHdr = WalIndexHdr1 /* sqlite3.c:61231:28 */
type WalIterator1 = struct {
FiPrior U32
FnSegment int32
@@ -38697,18 +38978,18 @@ type WalIterator1 = struct {
FnEntry int32
FiZero int32
}
-} /* sqlite3.c:60678:9 */
+} /* sqlite3.c:61232:9 */
-type WalIterator = WalIterator1 /* sqlite3.c:60678:28 */
+type WalIterator = WalIterator1 /* sqlite3.c:61232:28 */
type WalCkptInfo1 = struct {
FnBackfill U32
FaReadMark [5]U32
FaLock [8]U8
FnBackfillAttempted U32
FnotUsed0 U32
-} /* sqlite3.c:60679:9 */
+} /* sqlite3.c:61233:9 */
-type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:60679:28 */
+type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:61233:28 */
// Candidate values for Wal.exclusiveMode.
@@ -38716,7 +38997,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 /* sqlite3.c:61488: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
@@ -38738,7 +39019,7 @@ type WalSegment = struct {
FaPgno uintptr
FnEntry int32
FiZero int32
-} /* sqlite3.c:60678:9 */
+} /* sqlite3.c:61232: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
@@ -38769,7 +39050,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 { /* sqlite3.c:61559:28: */
var rc int32 = SQLITE_OK
// Enlarge the pWal->apWiData[] array if required
@@ -38815,7 +39096,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 { /* sqlite3.c:61608: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)
}
@@ -38823,13 +39104,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 { /* sqlite3.c:61622: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 { /* sqlite3.c:61630:29: */
return *(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData))
}
@@ -38847,7 +39128,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) { /* sqlite3.c:61656:13: */
var s1 U32
var s2 U32
var aData uintptr = a
@@ -38861,12 +39142,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)
@@ -38879,7 +39160,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) { /* sqlite3.c:61699:13: */
if int32((*Wal)(unsafe.Pointer(pWal)).FexclusiveMode) != WAL_HEAPMEMORY_MODE {
Xsqlite3OsShmBarrier(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd)
}
@@ -38894,7 +39175,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) { /* sqlite3.c:61723:28: */
var aHdr uintptr = walIndexHdr(tls, pWal)
var nCksum int32 = int32(uintptr(0) + 40)
@@ -38918,7 +39199,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) { /* sqlite3.c:61750:13: */
var nativeCksum int32 // True for native byte-order checksums
var aCksum uintptr = pWal + 72 + 24
@@ -38941,7 +39222,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 { /* sqlite3.c:61781:12: */
var nativeCksum int32 // True for native byte-order checksums
var aCksum uintptr = pWal + 72 + 24
var pgno U32 // Page number of the frame
@@ -38983,7 +39264,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 { /* sqlite3.c:61860:12: */
var rc int32
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return SQLITE_OK
@@ -38994,7 +39275,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) { /* sqlite3.c:61870:13: */
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return
}
@@ -39003,7 +39284,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 { /* sqlite3.c:61876:12: */
var rc int32
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return SQLITE_OK
@@ -39014,7 +39295,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) { /* sqlite3.c:61886:13: */
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return
}
@@ -39026,12 +39307,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 { /* sqlite3.c:61899: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 { /* sqlite3.c:61904:12: */
return (iPriorHash + 1) & (HASHTABLE_NPAGE*2 - 1)
}
@@ -39043,12 +39324,12 @@ type WalHashLoc1 = struct {
FaPgno uintptr
FiZero U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:61359:9 */
+} /* sqlite3.c:61913: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 /* sqlite3.c:61913: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
@@ -39062,7 +39343,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 { /* sqlite3.c:61934:12: */
var rc int32 // Return code
rc = walIndexPage(tls, pWal, iHash, pLoc+8)
@@ -39085,14 +39366,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 { /* sqlite3.c:61964: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 { /* sqlite3.c:61979: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))
@@ -39110,7 +39391,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) { /* sqlite3.c:61999:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -39153,7 +39434,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 { /* sqlite3.c:62061:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -39194,7 +39475,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, 62101)
}
}
*(*U32)(unsafe.Pointer((*WalHashLoc)(unsafe.Pointer(bp /* &sLoc */)).FaPgno + uintptr(idx-1)*4)) = iPage
@@ -39213,7 +39494,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 { /* sqlite3.c:62150:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -39328,7 +39609,7 @@ __6:
if !(version != U32(WAL_MAX_VERSION)) {
goto __7
}
- rc = Xsqlite3CantopenError(tls, 61679)
+ rc = Xsqlite3CantopenError(tls, 62233)
goto finished
__7:
;
@@ -39518,7 +39799,7 @@ __24:
goto __30
}
Xsqlite3_log(tls, SQLITE_NOTICE|int32(1)<<8,
- ts+3912,
+ ts+3921,
libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame, (*Wal)(unsafe.Pointer(pWal)).FzWalName))
__30:
;
@@ -39532,7 +39813,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) { /* sqlite3.c:62373: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++ {
@@ -39558,7 +39839,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 { /* sqlite3.c:62401:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -39630,7 +39911,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) { /* sqlite3.c:62504:21: */
if pWal != 0 {
(*Wal)(unsafe.Pointer(pWal)).FmxWalSize = iLimit
}
@@ -39644,7 +39925,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 { /* sqlite3.c:62518: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
@@ -39691,7 +39972,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) { /* sqlite3.c:62571: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
@@ -39737,7 +40018,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) { /* sqlite3.c:62628:13: */
bp := tls.Alloc(220)
defer tls.Free(220)
@@ -39783,10 +40064,10 @@ type Sublist = struct {
FnList int32
F__ccgo_pad1 [4]byte
FaList uintptr
-} /* sqlite3.c:62080:3 */
+} /* sqlite3.c:62634: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) { /* sqlite3.c:62691:13: */
Xsqlite3_free(tls, p)
}
@@ -39801,7 +40082,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 { /* sqlite3.c:62708:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -39885,9 +40166,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 { /* sqlite3.c:62871: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)
@@ -39897,7 +40178,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 { /* sqlite3.c:62895:12: */
return int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0xfe00 + int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0x0001<<16
}
@@ -39916,7 +40197,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) { /* sqlite3.c:62916:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
*(*U32)(unsafe.Pointer(bp)) = salt1
@@ -39967,7 +40248,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 { /* sqlite3.c:62963:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -40098,7 +40379,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, 63047)
goto __15
__14:
Xsqlite3OsFileControlHint(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd, SQLITE_FCNTL_SIZE_HINT, bp+16)
@@ -40259,7 +40540,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) { /* sqlite3.c:63149:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -40273,12 +40554,12 @@ func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* sqlite3.c:62595:13
}
Xsqlite3EndBenignMalloc(tls)
if rx != 0 {
- Xsqlite3_log(tls, rx, ts+3949, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).FzWalName))
+ Xsqlite3_log(tls, rx, ts+3958, 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 { /* sqlite3.c:63166:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -40350,7 +40631,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 { /* sqlite3.c:63247:27: */
bp := tls.Alloc(104)
defer tls.Free(104)
@@ -40419,7 +40700,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 { /* sqlite3.c:63317:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -40499,7 +40780,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, 63396)
}
if (*Wal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 {
if rc != SQLITE_OK {
@@ -40544,7 +40825,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 { /* sqlite3.c:63441:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -40676,7 +40957,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
@@ -40693,7 +40975,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
@@ -40809,7 +41091,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 { /* sqlite3.c:63638:12: */
var pInfo uintptr // Checkpoint information in wal-index
var mxReadMark U32 // Largest aReadMark[] value
var mxI int32 // Index of largest aReadMark[] value
@@ -41026,7 +41308,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 { /* sqlite3.c:63868:20: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -41100,7 +41382,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 { /* sqlite3.c:63939:20: */
var rc int32 // Return code
var cnt int32 = 0 // Number of TryBeginRead attempts
var bChanged int32 = 0
@@ -41128,7 +41410,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))
}
@@ -41188,7 +41470,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) { /* sqlite3.c:64047:21: */
Xsqlite3WalEndWriteTransaction(tls, pWal)
if int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 {
walUnlockShared(tls, pWal, 3+int32((*Wal)(unsafe.Pointer(pWal)).FreadLock))
@@ -41202,7 +41484,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 { /* sqlite3.c:64063:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -41269,7 +41551,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, 64133)
}
iKey = walNextHash(tls, iKey)
}
@@ -41285,7 +41567,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 { /* sqlite3.c:64167:20: */
var sz int32
var iOffset I64
sz = int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)
@@ -41302,7 +41584,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 { /* sqlite3.c:64187:21: */
if pWal != 0 && int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 {
return (*Wal)(unsafe.Pointer(pWal)).Fhdr.FnPage
}
@@ -41320,7 +41602,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 { /* sqlite3.c:64208:20: */
var rc int32
// Cannot start a write transaction without first holding a read
@@ -41352,7 +41634,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 { /* sqlite3.c:64256:20: */
if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 {
walUnlockExclusive(tls, pWal, WAL_WRITE_LOCK, 1)
(*Wal)(unsafe.Pointer(pWal)).FwriteLock = U8(0)
@@ -41372,7 +41654,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 { /* sqlite3.c:64278:20: */
var rc int32 = SQLITE_OK
if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 {
var iMax Pgno = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame
@@ -41409,7 +41691,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) { /* sqlite3.c:64318:21: */
*(*U32)(unsafe.Pointer(aWalData)) = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame
*(*U32)(unsafe.Pointer(aWalData + 1*4)) = *(*U32)(unsafe.Pointer(pWal + 72 + 24))
@@ -41421,7 +41703,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 { /* sqlite3.c:64332:20: */
var rc int32 = SQLITE_OK
if *(*U32)(unsafe.Pointer(aWalData + 3*4)) != (*Wal)(unsafe.Pointer(pWal)).FnCkpt {
@@ -41452,7 +41734,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 { /* sqlite3.c:64369:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -41486,7 +41768,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))
@@ -41506,12 +41788,12 @@ type WalWriter1 = struct {
FiSyncPoint Sqlite3_int64
FsyncFlags int32
FszPage int32
-} /* sqlite3.c:63860:9 */
+} /* sqlite3.c:64416: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 /* sqlite3.c:64422:3 */
// Write iAmt bytes of content into the WAL file beginning at iOffset.
// Do a sync when crossing the p->iSyncPoint boundary.
@@ -41519,7 +41801,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 { /* sqlite3.c:64432: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)
@@ -41541,7 +41823,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 { /* sqlite3.c:64457:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -41566,7 +41848,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 { /* sqlite3.c:64483:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -41620,7 +41902,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 { /* sqlite3.c:64532:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -41853,7 +42135,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 { /* sqlite3.c:64770:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -41918,7 +42200,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, 64852)
} else {
rc = walCheckpoint(tls, pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf)
}
@@ -41962,7 +42244,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 { /* sqlite3.c:64895:20: */
var ret U32 = U32(0)
if pWal != 0 {
ret = (*Wal)(unsafe.Pointer(pWal)).FiCallback
@@ -41993,7 +42275,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 { /* sqlite3.c:64928:20: */
var rc int32
// pWal->readLock is usually set, but might be -1 if there was a
@@ -42027,14 +42309,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 { /* sqlite3.c:64970: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 { /* sqlite3.c:64979:20: */
var rc int32 = SQLITE_OK
var pRet uintptr
@@ -42053,16 +42335,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)} /* sqlite3.c:64982: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) { /* sqlite3.c:65003: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 { /* sqlite3.c:65014:16: */
var pHdr1 uintptr = p1
var pHdr2 uintptr = p2
@@ -42092,7 +42374,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 { /* sqlite3.c:65038:20: */
var rc int32
rc = walLockShared(tls, pWal, WAL_CKPT_LOCK)
if rc == SQLITE_OK {
@@ -42108,13 +42390,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) { /* sqlite3.c:65057: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 { /* sqlite3.c:65079:29: */
return (*Wal)(unsafe.Pointer(pWal)).FpWalFd
}
@@ -42635,7 +42917,7 @@ type MemPage1 = struct {
// small cells will be rare, but they are possible.
// Forward declarations
-type MemPage = MemPage1 /* sqlite3.c:64781:24 */
+type MemPage = MemPage1 /* sqlite3.c:65337:24 */
type BtLock1 = struct {
FpBtree uintptr
FiTable Pgno
@@ -42644,7 +42926,7 @@ type BtLock1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type BtLock = BtLock1 /* sqlite3.c:64782:23 */
+type BtLock = BtLock1 /* sqlite3.c:65338:23 */
type CellInfo1 = struct {
FnKey I64
FpPayload uintptr
@@ -42653,7 +42935,7 @@ type CellInfo1 = struct {
FnSize U16
} /* sqlite3.c:578:9 */
-type CellInfo = CellInfo1 /* sqlite3.c:64783:25 */
+type CellInfo = CellInfo1 /* sqlite3.c:65339:25 */
// Legal values for BtCursor.curFlags
@@ -42763,7 +43045,7 @@ type IntegrityCk1 = struct {
FerrMsg StrAccum
Fheap uintptr
Fdb uintptr
-} /* sqlite3.c:65240:9 */
+} /* sqlite3.c:65796:9 */
// Legal values for BtCursor.curFlags
@@ -42859,7 +43141,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 /* sqlite3.c:65796:28 */
// Routines to read or write a two- and four-byte big-endian integer values.
@@ -42873,7 +43155,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) { /* sqlite3.c:65846: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
@@ -42882,7 +43164,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) { /* sqlite3.c:65860:29: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3_mutex_leave(tls, (*BtShared)(unsafe.Pointer(pBt)).Fmutex)
@@ -42903,7 +43185,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) { /* sqlite3.c:65890: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
@@ -42931,7 +43213,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) { /* sqlite3.c:65924:29: */
var pLater uintptr
// In most cases, we should be able to acquire the lock we
@@ -42962,7 +43244,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) { /* sqlite3.c:65962:21: */
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
@@ -42985,7 +43267,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) { /* sqlite3.c:66005:29: */
var i int32
var skipOk int32 = 1
var p uintptr
@@ -43000,13 +43282,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) { /* sqlite3.c:66019: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) { /* sqlite3.c:66022:29: */
var i int32
var p uintptr
@@ -43018,7 +43300,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) { /* sqlite3.c:66031:21: */
if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 {
btreeLeaveAll(tls, db)
}
@@ -43029,11 +43311,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) { /* sqlite3.c:66117: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) { /* sqlite3.c:66121:21: */
Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
}
@@ -43056,7 +43338,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 + 3975)) /* sqlite3.c:65596:19 */
+var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 3984)) /* sqlite3.c:66152:19 */
// Set this global variable to 1 to enable tracing using the TRACE
// macro.
@@ -43082,14 +43364,14 @@ var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 3975)) /* 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) /* sqlite3.c:66207: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 { /* sqlite3.c:66219:16: */
Xsqlite3Config.FsharedCacheEnabled = enable
return SQLITE_OK
}
@@ -43106,7 +43388,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 { /* sqlite3.c:66418:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pIter uintptr
@@ -43163,7 +43445,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 { /* sqlite3.c:66490:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pLock uintptr = uintptr(0)
var pIter uintptr
@@ -43214,7 +43496,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) { /* sqlite3.c:66554:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var ppIter uintptr = pBt + 120
@@ -43249,7 +43531,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) { /* sqlite3.c:66598:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
if (*BtShared)(unsafe.Pointer(pBt)).FpWriter == p {
var pLock uintptr
@@ -43273,7 +43555,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) { /* sqlite3.c:66651:13: */
var p uintptr
for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext {
@@ -43292,7 +43574,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) { /* sqlite3.c:66673:13: */
var p uintptr
(*Btree)(unsafe.Pointer(pBtree)).FhasIncrblobCur = U8(0)
@@ -43339,7 +43621,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 { /* sqlite3.c:66733:12: */
var rc int32 = SQLITE_OK
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpHasContent) != 0) {
@@ -43359,20 +43641,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 { /* sqlite3.c:66755: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) { /* sqlite3.c:66764: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) { /* sqlite3.c:66772:13: */
var i int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= 0 {
for i = 0; i < int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage); i++ {
@@ -43394,7 +43676,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 { /* sqlite3.c:66796:12: */
var rc int32 = SQLITE_OK
if (*BtCursor)(unsafe.Pointer(pCur)).FcurIntKey != 0 {
@@ -43431,7 +43713,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 { /* sqlite3.c:66838:12: */
var rc int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_Pinned != 0 {
@@ -43472,7 +43754,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 { /* sqlite3.c:66888:12: */
var p uintptr
for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext {
@@ -43493,8 +43775,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 { /* sqlite3.c:66905: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)
@@ -43512,7 +43794,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) { /* sqlite3.c:66930:21: */
Xsqlite3_free(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey)
(*BtCursor)(unsafe.Pointer(pCur)).FpKey = uintptr(0)
@@ -43522,7 +43804,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 { /* sqlite3.c:66942:12: */
var rc int32 // Status code
var pIdxKey uintptr // Unpacked index key
@@ -43535,7 +43817,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, 66959)
} else {
rc = Xsqlite3BtreeIndexMoveto(tls, pCur, pIdxKey, pRes)
}
@@ -43552,7 +43834,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 { /* sqlite3.c:66978:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -43592,7 +43874,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 { /* sqlite3.c:67021:20: */
return libc.Bool32(CURSOR_VALID != int32(*(*U8)(unsafe.Pointer(pCur))))
}
@@ -43600,12 +43882,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 { /* sqlite3.c:67034:25: */
return uintptr(unsafe.Pointer(&fakeCursor))
}
-var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:66479:13 */
+var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:67035: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
@@ -43618,7 +43900,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 { /* sqlite3.c:67053:20: */
var rc int32
rc = func() int32 {
@@ -43640,7 +43922,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) { /* sqlite3.c:67085:21: */
(*BtCursor)(unsafe.Pointer(pCur)).Fhints = U8(x)
}
@@ -43652,7 +43934,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 { /* sqlite3.c:67101:13: */
var nPagesPerMapPage int32
var iPtrMap Pgno
var ret Pgno
@@ -43677,7 +43959,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) { /* sqlite3.c:67125:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43700,7 +43982,7 @@ __1:
if !(key == Pgno(0)) {
goto __2
}
- *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 66584)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67140)
return
__2:
;
@@ -43719,7 +44001,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, 67153)
goto ptrmap_exit
__4:
;
@@ -43727,7 +44009,7 @@ __4:
if !(offset < 0) {
goto __5
}
- *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 66602)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67158)
goto ptrmap_exit
__5:
;
@@ -43758,7 +44040,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 { /* sqlite3.c:67184:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43779,7 +44061,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, 67203)
}
*(*U8)(unsafe.Pointer(pEType)) = *(*U8)(unsafe.Pointer(pPtrmap + uintptr(offset)))
@@ -43789,7 +44071,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, 67211)
}
return SQLITE_OK
}
@@ -43807,7 +44089,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) { /* sqlite3.c:67243: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
@@ -43834,7 +44116,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 { /* sqlite3.c:67278:12: */
var maxLocal int32 // Maximum amount of payload held locally
maxLocal = int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)
if nPayload <= I64(maxLocal) {
@@ -43864,7 +44146,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) { /* sqlite3.c:67306:13: */
_ = pPage
(*CellInfo)(unsafe.Pointer(pInfo)).FnSize = U16(4 + int32(Xsqlite3GetVarint(tls, pCell+4, pInfo)))
@@ -43874,7 +44156,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) { /* sqlite3.c:67323:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43894,7 +44176,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)
}
}
@@ -43904,19 +44186,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))))
+ }
+ }
+ }
+ }
+ }
}
}
}
@@ -43939,7 +44233,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) { /* sqlite3.c:67405:13: */
var pIter uintptr // For scanning through pCell
var nPayload U32 // Number of bytes of cell payload
@@ -43948,7 +44242,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)
}
}
@@ -43970,7 +44264,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) { /* sqlite3.c:67442: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)
@@ -43986,7 +44280,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 { /* sqlite3.c:67462: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
@@ -43995,7 +44289,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)
}
}
@@ -44027,7 +44321,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 { /* sqlite3.c:67510:12: */
var pIter uintptr = pCell + uintptr(4) // For looping over bytes of pCell
var pEnd uintptr // End mark for a varint
@@ -44044,7 +44338,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) { /* sqlite3.c:67548:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -44061,7 +44355,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, 67557)
return
}
ovfl = Xsqlite3Get4byte(tls, pCell+uintptr(int32((*CellInfo)(unsafe.Pointer(bp)).FnSize)-4))
@@ -44079,7 +44373,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 { /* sqlite3.c:67579:12: */
var i int32 // Loop counter
var pc int32 // Address of the i-th cell
var hdr int32 // Offset to the page header
@@ -44124,7 +44418,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, 67616)
__2:
;
if !(iFree != 0) {
@@ -44134,7 +44428,7 @@ __2:
if !(iFree2 > usableSize-4) {
goto __4
}
- return Xsqlite3CorruptError(tls, 67049)
+ return Xsqlite3CorruptError(tls, 67619)
__4:
;
if !(0 == iFree2 || int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2)))) == 0 && int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+1)))) == 0) {
@@ -44147,7 +44441,7 @@ __4:
if !(top >= iFree) {
goto __6
}
- return Xsqlite3CorruptError(tls, 67057)
+ return Xsqlite3CorruptError(tls, 67627)
__6:
;
if !(iFree2 != 0) {
@@ -44156,14 +44450,14 @@ __6:
if !(iFree+sz > iFree2) {
goto __9
}
- return Xsqlite3CorruptError(tls, 67060)
+ return Xsqlite3CorruptError(tls, 67630)
__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, 67632)
__10:
;
libc.Xmemmove(tls, data+uintptr(iFree+sz+sz2), data+uintptr(iFree+sz), uint64(iFree2-(iFree+sz)))
@@ -44173,7 +44467,7 @@ __7:
if !(iFree+sz > usableSize) {
goto __11
}
- return Xsqlite3CorruptError(tls, 67066)
+ return Xsqlite3CorruptError(tls, 67636)
__11:
;
__8:
@@ -44235,7 +44529,7 @@ __18:
if !(pc < iCellStart || pc > iCellLast) {
goto __21
}
- return Xsqlite3CorruptError(tls, 67095)
+ return Xsqlite3CorruptError(tls, 67665)
__21:
;
@@ -44246,7 +44540,7 @@ __21:
if !(cbrk < iCellStart || pc+size > usableSize) {
goto __22
}
- return Xsqlite3CorruptError(tls, 67101)
+ return Xsqlite3CorruptError(tls, 67671)
__22:
;
@@ -44281,7 +44575,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, 67690)
__25:
;
@@ -44306,7 +44600,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 { /* sqlite3.c:67715: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
@@ -44335,7 +44629,7 @@ func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr
*(*U8)(unsafe.Pointer(aData + uintptr(hdr+7))) += U8(int32(U8(x)))
} 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, 67744)
return uintptr(0)
} else {
// The slot remains on the free-list. Reduce its size to account
@@ -44350,14 +44644,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, 67758)
}
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, 67765)
}
return uintptr(0)
}
@@ -44373,7 +44667,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 { /* sqlite3.c:67783:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -44398,7 +44692,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, 67812)
}
}
@@ -44413,7 +44707,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, 67830)
} else {
return SQLITE_OK
}
@@ -44464,7 +44758,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 { /* sqlite3.c:67879: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
@@ -44488,12 +44782,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, 67908)
}
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, 67913)
}
// At this point:
@@ -44504,11 +44798,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, 67925)
}
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, 67928)
}
iSize = U16(iEnd - U32(iStart))
iFreeBlk = U16(int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk) + 1))))
@@ -44521,7 +44815,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, 67941)
}
nFrag = U8(int32(nFrag) + (int32(iStart) - iPtrEnd))
iSize = U16(iEnd - U32(iPtr))
@@ -44529,7 +44823,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, 67947)
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+7))) -= uint8(int32(nFrag))
}
@@ -44539,10 +44833,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, 67955)
}
if int32(iPtr) != int32(hdr)+1 {
- return Xsqlite3CorruptError(tls, 67386)
+ return Xsqlite3CorruptError(tls, 67956)
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1))) = U8(int32(iFreeBlk) >> 8)
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1) + 1)) = U8(iFreeBlk)
@@ -44576,7 +44870,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 { /* sqlite3.c:67986:12: */
var pBt uintptr // A copy of pPage->pBt
(*MemPage)(unsafe.Pointer(pPage)).Fleaf = U8(flagByte >> 3)
@@ -44627,7 +44921,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, 68029)
}
(*MemPage)(unsafe.Pointer(pPage)).Fmax1bytePayload = (*BtShared)(unsafe.Pointer(pBt)).Fmax1bytePayload
return SQLITE_OK
@@ -44635,7 +44929,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 { /* sqlite3.c:68039: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
@@ -44667,12 +44961,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, 68080)
}
for 1 != 0 {
if pc > iCellLast {
// Freeblock off the end of the page
- return Xsqlite3CorruptError(tls, 67515)
+ return Xsqlite3CorruptError(tls, 68085)
}
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))))
@@ -44684,11 +44978,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, 68095)
}
if U32(pc)+size > uint32(usableSize) {
// Last freeblock extends past page end
- return Xsqlite3CorruptError(tls, 67529)
+ return Xsqlite3CorruptError(tls, 68099)
}
}
@@ -44699,7 +44993,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, 68111)
}
(*MemPage)(unsafe.Pointer(pPage)).FnFree = int32(U16(nFree - iCellFirst))
return SQLITE_OK
@@ -44707,7 +45001,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 { /* sqlite3.c:68121: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
@@ -44729,14 +45023,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, 68142)
}
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, 68147)
}
}
return SQLITE_OK
@@ -44749,7 +45043,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 { /* sqlite3.c:68162:12: */
var data uintptr // Equal to pPage->aData
var pBt uintptr // The main btree structure
@@ -44758,7 +45052,7 @@ 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, 68179)
}
(*MemPage)(unsafe.Pointer(pPage)).FmaskPage = U16((*BtShared)(unsafe.Pointer(pBt)).FpageSize - U32(1))
@@ -44772,7 +45066,7 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:67592:12:
(*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, 68193)
}
// EVIDENCE-OF: R-24089-57979 If a page contains no cells (which is only
@@ -44790,7 +45084,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) { /* sqlite3.c:68215: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
@@ -44825,7 +45119,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 { /* sqlite3.c:68252:16: */
var pPage uintptr = Xsqlite3PagerGetExtra(tls, pDbPage)
if pgno != (*MemPage)(unsafe.Pointer(pPage)).Fpgno {
(*MemPage)(unsafe.Pointer(pPage)).FaData = Xsqlite3PagerGetData(tls, pDbPage)
@@ -44852,7 +45146,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 { /* sqlite3.c:68276:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44870,7 +45164,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 { /* sqlite3.c:68298:16: */
var pDbPage uintptr
pDbPage = Xsqlite3PagerLookup(tls, (*BtShared)(unsafe.Pointer(pBt)).FpPager, pgno)
@@ -44882,11 +45176,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 { /* sqlite3.c:68312: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 { /* sqlite3.c:68315:21: */
return btreePagecount(tls, (*Btree)(unsafe.Pointer(p)).FpBt)
}
@@ -44902,7 +45196,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 { /* sqlite3.c:68333:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44912,7 +45206,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, 68348)
goto getAndInitPage_error1
__1:
;
@@ -44943,7 +45237,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, 68369)
goto getAndInitPage_error2
__5:
;
@@ -44967,18 +45261,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) { /* sqlite3.c:68392: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) { /* sqlite3.c:68401: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) { /* sqlite3.c:68404:13: */
Xsqlite3PagerUnrefPageOne(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
}
@@ -44990,13 +45284,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 { /* sqlite3.c:68424: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, 68435)
}
(*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FisInit = U8(0)
} else {
@@ -45011,7 +45305,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) { /* sqlite3.c:68453:13: */
var pPage uintptr
pPage = Xsqlite3PagerGetExtra(tls, pData)
@@ -45031,7 +45325,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 { /* sqlite3.c:68475:12: */
var pBt uintptr = pArg
return Xsqlite3InvokeBusyHandler(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb+664)
@@ -45056,7 +45350,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 { /* sqlite3.c:68503:20: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -45088,7 +45382,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+3991) == 0 ||
+ isMemdb = libc.Bool32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, ts+4000) == 0 ||
isTempDb != 0 && Xsqlite3TempInMemory(tls, db) != 0 ||
vfsFlags&SQLITE_OPEN_MEMORY != 0)
@@ -45477,7 +45771,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 { /* sqlite3.c:68801:12: */
var pMainMtx uintptr
var pList uintptr
var removed int32 = 0
@@ -45509,33 +45803,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 { /* sqlite3.c:68840: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) { /* sqlite3.c:68877:13: */
if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace != 0 {
*(*uintptr)(unsafe.Pointer(pBt + 136)) -= uintptr(4)
Xsqlite3PageFree(tls, (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace)
@@ -45544,7 +45845,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 { /* sqlite3.c:68888:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
// Close all cursors opened via this handle.
@@ -45594,7 +45895,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 { /* sqlite3.c:68954:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -45611,7 +45912,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 { /* sqlite3.c:68973:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var res int32
@@ -45623,7 +45924,7 @@ func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /
// Change the limit on the amount of the database file that may be
// memory mapped.
-func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) int32 { /* sqlite3.c:68410:20: */
+func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) int32 { /* sqlite3.c:68988:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -45638,7 +45939,7 @@ func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) i
// there is a high probability of damage) Level 2 is the default. There
// is a very low but non-zero probability of damage. Level 3 reduces the
// probability of damage to near zero but with a write performance reduction.
-func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 { /* sqlite3.c:68429:20: */
+func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 { /* sqlite3.c:69007:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -45665,7 +45966,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 { /* sqlite3.c:69040:20: */
var rc int32 = SQLITE_OK
var x int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -45699,7 +46000,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 { /* sqlite3.c:69072:20: */
return int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize)
}
@@ -45712,7 +46013,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 { /* sqlite3.c:69087:20: */
var n int32
n = int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize - (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FusableSize)
@@ -45726,7 +46027,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 { /* sqlite3.c:69103:20: */
var n1 int32
var n2 int32
Xsqlite3BtreeEnter(tls, p)
@@ -45742,7 +46043,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 { /* sqlite3.c:69118:21: */
var n Pgno
Xsqlite3BtreeEnter(tls, p)
n = Xsqlite3PagerMaxPageCount(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, mxPage)
@@ -45766,7 +46067,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 { /* sqlite3.c:69144:20: */
var b int32
if p == uintptr(0) {
return 0
@@ -45786,7 +46087,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 { /* sqlite3.c:69165:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var rc int32 = SQLITE_OK
var av U8 = U8(autoVacuum)
@@ -45819,7 +46120,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 { /* sqlite3.c:69189:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = func() int32 {
@@ -45844,7 +46145,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 { /* sqlite3.c:69245:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -45960,7 +46261,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+4000, uint64(3)) != 0) {
+ if !(libc.Xmemcmp(tls, page1+21, ts+4009, uint64(3)) != 0) {
goto __14
}
goto page1_init_failed
@@ -46007,21 +46308,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, 69370)
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
@@ -46057,13 +46366,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 */))
@@ -46082,7 +46391,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) { /* sqlite3.c:69455: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
@@ -46095,7 +46404,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 { /* sqlite3.c:69472:12: */
var pP1 uintptr
var data uintptr
var rc int32
@@ -46135,7 +46444,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 { /* sqlite3.c:69516:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
(*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnPage = U32(0)
@@ -46177,7 +46486,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 { /* sqlite3.c:69560:20: */
var pBt uintptr
var pPager uintptr
var rc int32
@@ -46441,7 +46750,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 { /* sqlite3.c:69740:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -46493,14 +46802,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 { /* sqlite3.c:69785: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, 69791)
}
Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData, iTo)
} else {
@@ -46528,7 +46837,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, 69810)
}
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)
@@ -46545,7 +46854,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, 69828)
}
Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+8), iTo)
}
@@ -46560,7 +46869,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 { /* sqlite3.c:69846:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -46571,7 +46880,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, 69863)
}
// Move page iDbPage from its current location to page number iFreePage
@@ -46641,7 +46950,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 { /* sqlite3.c:69940:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -46663,7 +46972,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, 69961)
}
if int32(*(*U8)(unsafe.Pointer(bp))) == PTRMAP_FREEPAGE {
@@ -46706,7 +47015,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)
@@ -46726,7 +47035,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)
@@ -46738,7 +47047,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 { /* sqlite3.c:70036: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
@@ -46762,7 +47071,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 { /* sqlite3.c:70062:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -46776,7 +47085,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, 70076)
} else if nFree > Pgno(0) {
rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0))
if rc == SQLITE_OK {
@@ -46797,7 +47106,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 { /* sqlite3.c:70099:12: */
var rc int32 = SQLITE_OK
var pPager uintptr
var pBt uintptr
@@ -46820,7 +47129,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, 70127)
}
nFree = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer((*BtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)
@@ -46851,7 +47160,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, 70154)
}
if nFin < nOrig {
rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -46901,7 +47210,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 { /* sqlite3.c:70210:20: */
var rc int32 = SQLITE_OK
if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_WRITE {
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -46924,7 +47233,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) { /* sqlite3.c:70237:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var db uintptr = (*Btree)(unsafe.Pointer(p)).Fdb
@@ -46980,7 +47289,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 { /* sqlite3.c:70299:20: */
if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_NONE {
return SQLITE_OK
@@ -47009,7 +47318,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 { /* sqlite3.c:70331:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = Xsqlite3BtreeCommitPhaseOne(tls, p, uintptr(0))
@@ -47044,7 +47353,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 { /* sqlite3.c:70368:20: */
var p uintptr
var rc int32 = SQLITE_OK
@@ -47073,7 +47382,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) { /* sqlite3.c:70400:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -47095,7 +47404,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 { /* sqlite3.c:70419:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -47161,7 +47470,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 { /* sqlite3.c:70484:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -47185,7 +47494,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 { /* sqlite3.c:70515: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
@@ -47253,7 +47562,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 { /* sqlite3.c:70586:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt // Shared b-tree handle
var pX uintptr // Looping over other all cursors
@@ -47264,15 +47573,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, 70618)
} else if btreePagecount(tls, pBt) == Pgno(0) {
iTable = Pgno(0)
@@ -47286,33 +47589,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 { /* sqlite3.c:70653:12: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeCursor(tls, p, iTable, wrFlag, pKeyInfo, pCur)
@@ -47320,7 +47621,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 { /* sqlite3.c:70666:20: */
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
return btreeCursorWithLock(tls, p, iTable, wrFlag, pKeyInfo, pCur)
} else {
@@ -47335,7 +47636,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 { /* sqlite3.c:70688:20: */
return int32((uint64(unsafe.Sizeof(BtCursor{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7)))
}
@@ -47345,13 +47646,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) { /* sqlite3.c:70700: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 { /* sqlite3.c:70708:20: */
var pBtree uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBtree
if pBtree != 0 {
var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt
@@ -47361,7 +47662,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
@@ -47392,7 +47693,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) { /* sqlite3.c:70769: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)
@@ -47401,7 +47702,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 { /* sqlite3.c:70788:20: */
return libc.Bool32(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID)
}
@@ -47410,26 +47711,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 { /* sqlite3.c:70799: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) { /* sqlite3.c:70810: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) { /* sqlite3.c:70814: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 { /* sqlite3.c:70824: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)
@@ -47442,7 +47743,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 { /* sqlite3.c:70842:20: */
getCellInfo(tls, pCur)
return (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnPayload
@@ -47459,7 +47760,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 { /* sqlite3.c:70862:30: */
return Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpageSize) * Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FnPage)
}
@@ -47481,7 +47782,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 { /* sqlite3.c:70887:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -47549,7 +47850,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 { /* sqlite3.c:70955:12: */
if eOp != 0 {
// Copy data from buffer to page (a write operation)
var rc int32 = Xsqlite3PagerWrite(tls, pDbPage)
@@ -47591,7 +47892,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 { /* sqlite3.c:71005:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -47602,7 +47903,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, 71025)
}
getCellInfo(tls, pCur)
@@ -47613,7 +47914,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, 71040)
}
// Check if data must be read/written to/from the btree page itself.
@@ -47670,7 +47971,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, 71102)
}
*(*Pgno)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FaOverflow + uintptr(iIdx)*4)) = *(*Pgno)(unsafe.Pointer(bp /* nextPage */))
@@ -47730,7 +48031,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, 71187)
}
return rc
}
@@ -47750,7 +48051,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 { /* sqlite3.c:71209:20: */
return accessPayload(tls, pCur, offset, amt, pBuf, 0)
}
@@ -47758,7 +48059,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 { /* sqlite3.c:71222:28: */
var rc int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_INVALID {
return SQLITE_ABORT
@@ -47771,7 +48072,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 { /* sqlite3.c:71236:20: */
if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID {
return accessPayload(tls, pCur, offset, amt, pBuf, 0)
@@ -47798,7 +48099,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 { /* sqlite3.c:71265:19: */
var amt int32
amt = int32((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal)
@@ -47829,7 +48130,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 { /* sqlite3.c:71304:27: */
return fetchPayload(tls, pCur, pAmt)
}
@@ -47840,11 +48141,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 { /* sqlite3.c:71318: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, 71326)
}
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey | BTCF_ValidOvfl))
@@ -47861,7 +48162,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) { /* sqlite3.c:71367:13: */
var pLeaf uintptr
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
@@ -47891,7 +48192,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 { /* sqlite3.c:71408:12: */
var pRoot uintptr
var rc int32
var subpage Pgno
@@ -47912,7 +48213,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:
;
@@ -47970,7 +48271,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, 71464)
__11:
;
@@ -47979,7 +48280,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
}
@@ -47992,7 +48292,7 @@ __12:
if !((*MemPage)(unsafe.Pointer(pRoot)).Fpgno != Pgno(1)) {
goto __16
}
- return Xsqlite3CorruptError(tls, 70893)
+ return Xsqlite3CorruptError(tls, 71476)
__16:
;
subpage = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pRoot)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pRoot)).FhdrOffset)+8))
@@ -48014,7 +48314,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 { /* sqlite3.c:71494:12: */
var pgno Pgno
var rc int32 = SQLITE_OK
var pPage uintptr
@@ -48035,7 +48335,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 { /* sqlite3.c:71519:12: */
var pgno Pgno
var rc int32 = SQLITE_OK
var pPage uintptr = uintptr(0)
@@ -48056,7 +48356,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 { /* sqlite3.c:71542:20: */
var rc int32
rc = moveToRoot(tls, pCur)
@@ -48075,7 +48375,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 { /* sqlite3.c:71564:20: */
var rc int32
// If the cursor already points to the last entry, this is a no-op.
@@ -48124,7 +48424,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 { /* sqlite3.c:71629:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -48227,7 +48527,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) {
@@ -48240,7 +48539,7 @@ __19:
if !(pCell >= (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) {
goto __21
}
- return Xsqlite3CorruptError(tls, 71136)
+ return Xsqlite3CorruptError(tls, 71718)
__21:
;
goto __19
@@ -48369,7 +48668,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 { /* sqlite3.c:71797:20: */
var rc int32
var xRecordCompare RecordCompare
// The record flows over onto one or more overflow pages. In
@@ -48425,7 +48724,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))))))
@@ -48474,7 +48772,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, 71899)
goto moveto_index_finish
__13:
;
@@ -48523,7 +48821,7 @@ __18:
if !((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode != 0) {
goto __20
}
- rc = Xsqlite3CorruptError(tls, 71350)
+ rc = Xsqlite3CorruptError(tls, 71931)
__20:
;
goto moveto_index_finish
@@ -48590,7 +48888,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 { /* sqlite3.c:71970: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.
@@ -48600,7 +48898,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 { /* sqlite3.c:71983:20: */
var n I64
var i U8
@@ -48639,7 +48937,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 { /* sqlite3.c:72023:28: */
var rc int32
var idx int32
var pPage uintptr
@@ -48676,7 +48974,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, 72054)
}
if idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) {
@@ -48687,7 +48985,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
@@ -48709,7 +49007,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 { /* sqlite3.c:72083:20: */
var pPage uintptr
_ = flags // Used in COMDB2 but not native SQLite
@@ -48749,7 +49047,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 { /* sqlite3.c:72123:28: */
var rc int32
var pPage uintptr
@@ -48803,7 +49101,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 { /* sqlite3.c:72172:20: */
_ = flags // Used in COMDB2 but not native SQLite
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_AtLast | BTCF_ValidOvfl | BTCF_ValidNKey))
@@ -48837,7 +49135,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 { /* sqlite3.c:72210:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -48904,7 +49202,7 @@ func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr
if !(n >= mxPage) {
goto __1
}
- return Xsqlite3CorruptError(tls, 71653)
+ return Xsqlite3CorruptError(tls, 72234)
__1:
;
if !(n > U32(0)) {
@@ -48985,7 +49283,7 @@ __15:
if !(iTrunk > mxPage || libc.PostIncUint32(&nSearch, 1) > n) {
goto __16
}
- rc = Xsqlite3CorruptError(tls, 71709)
+ rc = Xsqlite3CorruptError(tls, 72290)
goto __17
__16:
rc = btreeGetUnusedPage(tls, pBt, iTrunk, bp+8, 0)
@@ -49027,7 +49325,7 @@ __19:
goto __22
}
// Value of k is out of range. Database corruption
- rc = Xsqlite3CorruptError(tls, 71738)
+ rc = Xsqlite3CorruptError(tls, 72319)
goto end_allocate_page
goto __23
__22:
@@ -49072,7 +49370,7 @@ __27:
if !(iNewTrunk > mxPage) {
goto __32
}
- rc = Xsqlite3CorruptError(tls, 71772)
+ rc = Xsqlite3CorruptError(tls, 72353)
goto end_allocate_page
__32:
;
@@ -49186,7 +49484,7 @@ __40:
if !(iPage > mxPage || iPage < Pgno(2)) {
goto __51
}
- rc = Xsqlite3CorruptError(tls, 71837)
+ rc = Xsqlite3CorruptError(tls, 72418)
goto end_allocate_page
__51:
;
@@ -49361,7 +49659,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 { /* sqlite3.c:72532:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -49382,7 +49680,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, 72545)
__1:
;
if !(pMemPage != 0) {
@@ -49452,7 +49750,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, 72592)
goto freepage_out
__10:
;
@@ -49469,7 +49767,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, 72603)
goto freepage_out
__12:
;
@@ -49550,14 +49848,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) { /* sqlite3.c:72666: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 { /* sqlite3.c:72675:28: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -49569,7 +49867,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, 72692)
}
ovflPgno = Xsqlite3Get4byte(tls, pCell+uintptr((*CellInfo)(unsafe.Pointer(pInfo)).FnSize)-uintptr(4))
pBt = (*MemPage)(unsafe.Pointer(pPage)).FpBt
@@ -49584,7 +49882,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, 72709)
}
if nOvfl != 0 {
rc = getOverflowPage(tls, pBt, ovflPgno, bp, bp+8)
@@ -49604,7 +49902,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, 72729)
} else {
rc = freePage2(tls, pBt, *(*uintptr)(unsafe.Pointer(bp /* pOvfl */)), ovflPgno)
}
@@ -49636,7 +49934,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 { /* sqlite3.c:72770:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -49762,7 +50060,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 */))++
}
}
@@ -49818,7 +50116,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) { /* sqlite3.c:72960: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[]
@@ -49836,7 +50134,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, 72988)
return
}
rc = freeSpace(tls, pPage, uint16(pc), uint16(sz))
@@ -49872,7 +50170,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) { /* sqlite3.c:73024:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -50033,7 +50331,7 @@ type CellArray1 = struct {
FszCell uintptr
FapEnd [6]uintptr
FixNx [6]int32
-} /* sqlite3.c:72612:9 */
+} /* sqlite3.c:73199:9 */
// The following parameters determine how many adjacent pages get involved
// in a balancing operation. NN is the number of neighbors on either side
@@ -50110,11 +50408,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 /* sqlite3.c:73199: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) { /* sqlite3.c:73213:13: */
for N > 0 {
@@ -50131,7 +50429,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 { /* sqlite3.c:73231:28: */
*(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) = (*struct {
f func(*libc.TLS, uintptr, uintptr) U16
@@ -50139,7 +50437,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 { /* sqlite3.c:73237: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))
@@ -50158,7 +50456,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 { /* sqlite3.c:73256: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)
@@ -50189,12 +50487,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, 73289)
}
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, 73294)
}
pData -= uintptr(sz)
@@ -50202,7 +50500,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, 73300)
}
libc.Xmemmove(tls, pData, pCell, uint64(sz))
@@ -50252,7 +50550,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 { /* sqlite3.c:73346:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -50290,7 +50588,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, 73385)
return 1
}
libc.Xmemmove(tls, pSlot, *(*uintptr)(unsafe.Pointer((*CellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8)), uint64(sz))
@@ -50317,7 +50615,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 { /* sqlite3.c:73411: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))
@@ -50369,7 +50667,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 { /* sqlite3.c:73470:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -50403,7 +50701,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, 73496)
__2:
;
libc.Xmemmove(tls, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx+uintptr(nShift*2), uint64(nCell*2))
@@ -50543,7 +50841,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 { /* sqlite3.c:73599:12: */
bp := tls.Alloc(140)
defer tls.Free(140)
@@ -50556,7 +50854,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, 73609)
} // dbfuzz001.test
// Allocate a new page. This page will become the right-sibling of
@@ -50654,7 +50952,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) { /* sqlite3.c:73754:13: */
if *(*int32)(unsafe.Pointer(pRC)) == SQLITE_OK {
var pBt uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FpBt
var aFrom uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FaData
@@ -50734,7 +51032,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 { /* sqlite3.c:73836:12: */
bp := tls.Alloc(344)
defer tls.Free(344)
@@ -51036,7 +51334,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, 74032)
goto balance_cleanup
__25:
;
@@ -51064,7 +51362,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, 74056)
goto balance_cleanup
__27:
;
@@ -51243,7 +51541,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, 74157)
goto balance_cleanup
__55:
;
@@ -51317,7 +51615,7 @@ __65:
}()) {
goto __67
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73603)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74190)
goto balance_cleanup
__67:
;
@@ -51390,7 +51688,7 @@ __73:
}()) {
goto __75
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 73645)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74232)
goto balance_cleanup
__75:
;
@@ -51427,7 +51725,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, 74265)
__81:
;
if !(*(*int32)(unsafe.Pointer(bp + 172)) != 0) {
@@ -51511,7 +51809,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, 74311)
goto balance_cleanup
__92:
;
@@ -51764,7 +52062,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, 74468)
goto balance_cleanup
__126:
;
@@ -51986,7 +52284,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 { /* sqlite3.c:74633:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -52037,13 +52335,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 { /* sqlite3.c:74691: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, 74698)
}
}
return SQLITE_OK
@@ -52057,7 +52355,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 { /* sqlite3.c:74714:12: */
bp := tls.Alloc(13)
defer tls.Free(13)
@@ -52067,7 +52365,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
@@ -52176,7 +52474,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 { /* sqlite3.c:74840:12: */
var nData int32 = (*BtreePayload)(unsafe.Pointer(pX)).FnData - iOffset
if nData <= 0 {
// Overwritting with zeros
@@ -52218,7 +52516,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 { /* sqlite3.c:74883:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -52232,7 +52530,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, 74895)
}
// Overwrite the local portion first
rc = btreeOverwriteContent(tls, *(*uintptr)(unsafe.Pointer(bp /* pPage */)), (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload, pX,
@@ -52250,13 +52548,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, 74914)
} else {
if U32(iOffset)+ovflPageSize < U32(nTotal) {
ovflPgno = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPage */)))).FaData)
@@ -52303,7 +52601,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 { /* sqlite3.c:74962:20: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -52375,7 +52673,7 @@ __3:
// 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)
+ return Xsqlite3CorruptError(tls, 75019)
__4:
;
__2:
@@ -52503,7 +52801,7 @@ __6:
if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) > CURSOR_INVALID) {
goto __20
}
- *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 74532)
+ *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 75119)
goto __21
__20:
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeComputeFreeSpace(tls, pPage)
@@ -52566,7 +52864,7 @@ __28:
if !(idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell)) {
goto __31
}
- return Xsqlite3CorruptError(tls, 74568)
+ return Xsqlite3CorruptError(tls, 75155)
__31:
;
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3PagerWrite(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
@@ -52614,13 +52912,13 @@ __35:
if !(oldCell < (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+uintptr(10)) {
goto __37
}
- return Xsqlite3CorruptError(tls, 74595)
+ return Xsqlite3CorruptError(tls, 75182)
__37:
;
if !(oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 108))) > (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) {
goto __38
}
- return Xsqlite3CorruptError(tls, 74598)
+ return Xsqlite3CorruptError(tls, 75185)
__38:
;
libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 108 /* szNew */))))
@@ -52728,7 +53026,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 { /* sqlite3.c:75271:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -52755,7 +53053,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, 75285)
}
nRem = (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload
if nIn == nRem && nIn < U32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pDest)).FpPage)).FmaxLocal) {
@@ -52778,14 +53076,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, 75308)
}
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 {
@@ -52860,7 +53158,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 { /* sqlite3.c:75381:20: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -52874,8 +53172,7 @@ 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)
@@ -52888,23 +53185,30 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
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, 75410)
+ }
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, 75414)
}
- // 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)) ||
@@ -52916,7 +53220,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)
}
}
@@ -52995,7 +53299,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, 75504)
}
nCell = int32((*struct {
f func(*libc.TLS, uintptr, uintptr) U16
@@ -53040,7 +53344,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) {
@@ -53072,7 +53376,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 { /* sqlite3.c:75578:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -53102,7 +53406,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, 75612)
}
*(*Pgno)(unsafe.Pointer(bp /* pgnoRoot */))++
@@ -53145,7 +53449,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, 75660)
}
if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK {
releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pRoot */)))
@@ -53208,7 +53512,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 { /* sqlite3.c:75723:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeCreateTable(tls, p, piTable, flags)
@@ -53218,7 +53522,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 { /* sqlite3.c:75735:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -53234,7 +53538,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, 75750)
__1:
;
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = getAndInitPage(tls, pBt, pgno, bp, uintptr(0), 0)
@@ -53245,10 +53549,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, 75757)
goto cleardatabasepage_out
__3:
;
@@ -53352,7 +53656,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 { /* sqlite3.c:75802:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -53375,7 +53679,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 { /* sqlite3.c:75828:20: */
return Xsqlite3BtreeClearTable(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree, int32((*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot), uintptr(0))
}
@@ -53397,7 +53701,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 { /* sqlite3.c:75852:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -53407,7 +53711,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, 75861)
}
*(*int32)(unsafe.Pointer(bp + 12 /* rc */)) = Xsqlite3BtreeClearTable(tls, p, int32(iTable), uintptr(0))
@@ -53479,7 +53783,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 { /* sqlite3.c:75937:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeDropTable(tls, p, uint32(iTable), piMoved)
@@ -53505,7 +53809,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) { /* sqlite3.c:75966:21: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -53524,7 +53828,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 { /* sqlite3.c:75996:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pP1 uintptr
var rc int32
@@ -53550,7 +53854,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 { /* sqlite3.c:76028:20: */
var nEntry I64 = int64(0) // Value to return in *pnEntry
var rc int32 // Return code
@@ -53584,7 +53888,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
@@ -53613,12 +53917,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 { /* sqlite3.c:76097: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) { /* sqlite3.c:76105:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -53631,7 +53935,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+4004, 1)
+ Xsqlite3_str_append(tls, pCheck+56, ts+4013, 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))
@@ -53645,13 +53949,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 { /* sqlite3.c:76135: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) { /* sqlite3.c:76143:13: */
*(*U8)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).FaPgRef + uintptr(iPg/Pgno(8)))) |= U8(int32(1) << (iPg & Pgno(0x07)))
}
@@ -53662,16 +53966,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 { /* sqlite3.c:76157:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
if iPage > (*IntegrityCk)(unsafe.Pointer(pCheck)).FnPage || iPage == Pgno(0) {
- checkAppendMsg(tls, pCheck, ts+4006, libc.VaList(bp, iPage))
+ checkAppendMsg(tls, pCheck, ts+4015, libc.VaList(bp, iPage))
return 1
}
if getPageReferenced(tls, pCheck, iPage) != 0 {
- checkAppendMsg(tls, pCheck, ts+4029, libc.VaList(bp+8, iPage))
+ checkAppendMsg(tls, pCheck, ts+4038, libc.VaList(bp+8, iPage))
return 1
}
if libc.AtomicLoadNInt32((*IntegrityCk)(unsafe.Pointer(pCheck)).Fdb+432, 0) != 0 {
@@ -53684,7 +53988,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) { /* sqlite3.c:76177:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -53698,20 +54002,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+4054, libc.VaList(bp, iChild))
+ checkAppendMsg(tls, pCheck, ts+4063, libc.VaList(bp, iChild))
return
}
if int32(*(*U8)(unsafe.Pointer(bp + 48))) != int32(eType) || *(*Pgno)(unsafe.Pointer(bp + 52)) != iParent {
checkAppendMsg(tls, pCheck,
- ts+4083,
+ ts+4092,
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) { /* sqlite3.c:76206:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -53727,7 +54031,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+4137, libc.VaList(bp, iPage))
+ checkAppendMsg(tls, pCheck, ts+4146, libc.VaList(bp, iPage))
break
}
pOvflData = Xsqlite3PagerGetData(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pOvflPage */)))
@@ -53738,7 +54042,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+4159, libc.VaList(bp+8, iPage))
+ ts+4168, libc.VaList(bp+8, iPage))
N--
} else {
for i = 0; i < int32(n); i++ {
@@ -53764,12 +54068,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+4198,
+ ts+4207,
libc.VaList(bp+16, func() uintptr {
if isFreeList != 0 {
- return ts + 4224 /* "size" */
+ return ts + 4233 /* "size" */
}
- return ts + 4229 /* "overflow list le..." */
+ return ts + 4238 /* "overflow list le..." */
}(),
expected-N, expected))
}
@@ -53795,7 +54099,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) { /* sqlite3.c:76295:13: */
var j U32
var i U32 = libc.PreIncUint32(&*(*U32)(unsafe.Pointer(aHeap)), 1)
*(*U32)(unsafe.Pointer(aHeap + uintptr(i)*4)) = x
@@ -53807,7 +54111,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 { /* sqlite3.c:76305:12: */
var j U32
var i U32
var x U32
@@ -53846,7 +54150,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 { /* sqlite3.c:76339:12: */
bp := tls.Alloc(140)
defer tls.Free(140)
*(*I64)(unsafe.Pointer(bp + 104)) = maxKey
@@ -53913,13 +54217,13 @@ __1:
return 0
__2:
;
- (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4250 /* "Page %u: " */
+ (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4259 /* "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+4260, libc.VaList(bp, rc))
+ ts+4269, libc.VaList(bp, rc))
goto end_of_check
__3:
;
@@ -53933,7 +54237,7 @@ __3:
}
// The only possible error from InitPage
checkAppendMsg(tls, pCheck,
- ts+4298, libc.VaList(bp+8, rc))
+ ts+4307, libc.VaList(bp+8, rc))
goto end_of_check
__4:
;
@@ -53941,7 +54245,7 @@ __4:
goto __5
}
- checkAppendMsg(tls, pCheck, ts+4336, libc.VaList(bp+16, rc))
+ checkAppendMsg(tls, pCheck, ts+4345, libc.VaList(bp+16, rc))
goto end_of_check
__5:
;
@@ -53949,7 +54253,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 + 4358 /* "On tree page %u ..." */
+ (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4367 /* "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()
@@ -53971,7 +54275,7 @@ __5:
if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0) {
goto __8
}
- (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4384 /* "On page %u at ri..." */
+ (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4393 /* "On page %u at ri..." */
checkPtrmap(tls, pCheck, uint32(pgno), uint8(PTRMAP_BTREE), iPage)
__8:
;
@@ -54002,7 +54306,7 @@ __9:
if !(pc < contentOffset || pc > usableSize-U32(4)) {
goto __12
}
- checkAppendMsg(tls, pCheck, ts+4412,
+ checkAppendMsg(tls, pCheck, ts+4421,
libc.VaList(bp+24, pc, contentOffset, usableSize-U32(4)))
doCoverageCheck = 0
goto __10
@@ -54015,7 +54319,7 @@ __12:
if !(pc+U32((*CellInfo)(unsafe.Pointer(bp+112)).FnSize) > usableSize) {
goto __13
}
- checkAppendMsg(tls, pCheck, ts+4442, 0)
+ checkAppendMsg(tls, pCheck, ts+4451, 0)
doCoverageCheck = 0
goto __10
__13:
@@ -54033,7 +54337,7 @@ __13:
}() != 0) {
goto __15
}
- checkAppendMsg(tls, pCheck, ts+4466, libc.VaList(bp+48, (*CellInfo)(unsafe.Pointer(bp+112 /* &info */)).FnKey))
+ checkAppendMsg(tls, pCheck, ts+4475, 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
@@ -54074,7 +54378,7 @@ __20:
if !(d2 != depth) {
goto __21
}
- checkAppendMsg(tls, pCheck, ts+4490, 0)
+ checkAppendMsg(tls, pCheck, ts+4499, 0)
depth = d2
__21:
;
@@ -54174,7 +54478,7 @@ __29:
goto __31
}
checkAppendMsg(tls, pCheck,
- ts+4515, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage))
+ ts+4524, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage))
goto __30
goto __32
__31:
@@ -54194,7 +54498,7 @@ __30:
goto __33
}
checkAppendMsg(tls, pCheck,
- ts+4552,
+ ts+4561,
libc.VaList(bp+72, nFrag, int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+7)))), iPage))
__33:
;
@@ -54235,7 +54539,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 { /* sqlite3.c:76618:21: */
bp := tls.Alloc(248)
defer tls.Free(248)
@@ -54323,7 +54627,7 @@ __6:
if !(bCkFreelist != 0) {
goto __7
}
- (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 4604 /* "Main freelist: " */
+ (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 4613 /* "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)
@@ -54361,7 +54665,7 @@ __13:
goto __15
}
checkAppendMsg(tls, bp+32,
- ts+4620,
+ ts+4629,
libc.VaList(bp, mx, mxInHdr))
__15:
;
@@ -54371,7 +54675,7 @@ __9:
goto __16
}
checkAppendMsg(tls, bp+32,
- ts+4665, 0)
+ ts+4674, 0)
__16:
;
__10:
@@ -54421,13 +54725,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+4720, libc.VaList(bp+16, i))
+ checkAppendMsg(tls, bp+32, ts+4729, 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+4742, libc.VaList(bp+24, i))
+ checkAppendMsg(tls, bp+32, ts+4751, libc.VaList(bp+24, i))
__27:
;
goto __24
@@ -54469,7 +54773,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 { /* sqlite3.c:76773:27: */
return Xsqlite3PagerFilename(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, 1)
}
@@ -54480,14 +54784,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 { /* sqlite3.c:76786: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 { /* sqlite3.c:76795:20: */
if p != 0 {
return int32((*Btree)(unsafe.Pointer(p)).FinTrans)
@@ -54501,7 +54805,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 { /* sqlite3.c:76809:20: */
var rc int32 = SQLITE_OK
if p != 0 {
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -54517,7 +54821,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 { /* sqlite3.c:76828:20: */
return libc.Bool32((*Btree)(unsafe.Pointer(p)).FnBackup != 0)
}
@@ -54540,7 +54844,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 { /* sqlite3.c:76854:21: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpSchema) != 0) && nBytes != 0 {
@@ -54554,7 +54858,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 { /* sqlite3.c:76870:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
@@ -54567,7 +54871,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 { /* sqlite3.c:76887:20: */
var rc int32 = SQLITE_OK
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
@@ -54591,7 +54895,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 { /* sqlite3.c:76917:20: */
var rc int32
rc = func() int32 {
@@ -54631,7 +54935,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) { /* sqlite3.c:76965:21: */
*(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Incrblob)
(*Btree)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBtree)).FhasIncrblobCur = U8(1)
}
@@ -54639,7 +54943,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 { /* sqlite3.c:76976:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(pBtree)).FpBt
var rc int32 // Return code
@@ -54671,29 +54975,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 { /* sqlite3.c:77011: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 { /* sqlite3.c:77018: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 { /* sqlite3.c:77025: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 { /* sqlite3.c:77031: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 { /* sqlite3.c:77040:20: */
return (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnRef
}
@@ -54733,31 +55037,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 { /* sqlite3.c:77129: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+3623, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg))
+ Xsqlite3ErrorWithMsg(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).Frc, ts+3614, 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+4776, libc.VaList(bp+8, zDb))
+ Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+4785, libc.VaList(bp+8, zDb))
return uintptr(0)
}
@@ -54766,7 +55069,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 { /* sqlite3.c:77159: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
@@ -54776,9 +55079,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 { /* sqlite3.c:77171:12: */
if Xsqlite3BtreeTxnState(tls, p) != SQLITE_TXN_NONE {
- Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+4796, 0)
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+4805, 0)
return SQLITE_ERROR
}
return SQLITE_OK
@@ -54790,7 +55093,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 { /* sqlite3.c:77187:27: */
var p uintptr // Value to return
// Lock the source database handle. The destination database
@@ -54805,7 +55108,7 @@ func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcD
if pSrcDb == pDestDb {
Xsqlite3ErrorWithMsg(tls,
- pDestDb, SQLITE_ERROR, ts+4827, 0)
+ pDestDb, SQLITE_ERROR, ts+4836, 0)
p = uintptr(0)
} else {
// Allocate space for a new sqlite3_backup object...
@@ -54850,14 +55153,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 { /* sqlite3.c:77264: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 { /* sqlite3.c:77273:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -54919,7 +55222,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 { /* sqlite3.c:77342:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -54934,7 +55237,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) { /* sqlite3.c:77355:13: */
var pp uintptr
pp = Xsqlite3PagerBackupPtr(tls, Xsqlite3BtreePager(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).FpSrc))
@@ -54944,7 +55247,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 { /* sqlite3.c:77367:16: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -55182,7 +55485,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 { /* sqlite3.c:77621:16: */
var pp uintptr // Ptr to head of pagers backup list
var pSrcDb uintptr // Source database connection
var rc int32 // Value to return
@@ -55240,13 +55543,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 { /* sqlite3.c:77675: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 { /* sqlite3.c:77689:16: */
return int32((*Sqlite3_backup)(unsafe.Pointer(p)).FnPagecount)
}
@@ -55260,9 +55563,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) { /* sqlite3.c:77711: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
@@ -55281,7 +55584,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) { /* sqlite3.c:77736:21: */
if pBackup != 0 {
backupUpdate(tls, pBackup, iPage, aData)
}
@@ -55296,7 +55599,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) { /* sqlite3.c:77751:21: */
var p uintptr // Iterator variable
for p = pBackup; p != 0; p = (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext {
@@ -55310,7 +55613,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 { /* sqlite3.c:77768:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -55404,7 +55707,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) { /* sqlite3.c:77926:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -55419,7 +55722,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+4867,
+ Xsqlite3_str_appendf(tls, bp+16, ts+4876,
libc.VaList(bp, func() float64 {
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_IntReal != 0 {
return float64(*(*I64)(unsafe.Pointer(p)))
@@ -55442,7 +55745,7 @@ 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 { /* sqlite3.c:78019:20: */
var rc int32
if !(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0) || int32((*Mem)(unsafe.Pointer(pMem)).Fenc) == desiredEnc {
@@ -55462,7 +55765,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 { /* sqlite3.c:78054:36: */
// If the bPreserve flag is set to true, then the memory cell must already
// contain a valid string or blob value.
@@ -55518,7 +55821,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 { /* sqlite3.c:78117:20: */
if (*Mem)(unsafe.Pointer(pMem)).FszMalloc < szNew {
return Xsqlite3VdbeMemGrow(tls, pMem, szNew, 0)
@@ -55536,7 +55839,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 { /* sqlite3.c:78138:28: */
if Xsqlite3VdbeMemGrow(tls, pMem, (*Mem)(unsafe.Pointer(pMem)).Fn+3, 1) != 0 {
return SQLITE_NOMEM
}
@@ -55551,7 +55854,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 { /* sqlite3.c:78155:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
if func() int32 {
@@ -55576,7 +55879,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 { /* sqlite3.c:78179:20: */
var nByte int32
// Set nByte to the number of bytes required to store the expanded blob.
@@ -55598,7 +55901,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 { /* sqlite3.c:78210:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Term|MEM_Str) != MEM_Str {
return SQLITE_OK // Nothing to do
@@ -55620,7 +55923,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 { /* sqlite3.c:78236:20: */
var nByte int32 = 32
if Xsqlite3VdbeMemClearAndResize(tls, pMem, nByte) != 0 {
@@ -55646,7 +55949,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 { /* sqlite3.c:78271:20: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -55676,7 +55979,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 { /* sqlite3.c:78302:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -55698,7 +56001,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) { /* sqlite3.c:78327:29: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Agg != 0 {
Xsqlite3VdbeMemFinalize(tls, p, *(*uintptr)(unsafe.Pointer(p)))
@@ -55717,7 +56020,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) { /* sqlite3.c:78350:29: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeMemClearExternAndSetNull(tls, p)
}
@@ -55736,7 +56039,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) { /* sqlite3.c:78371:21: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 || (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 {
vdbeMemClear(tls, p)
@@ -55746,7 +56049,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 { /* sqlite3.c:78383:28: */
if r <= float64(minInt) {
return minInt
@@ -55758,8 +56061,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 /* sqlite3.c:78395:20 */
+var minInt I64 = int64(-1) - (int64(0xffffffff) | I64(int64(0x7fffffff))<<32) /* sqlite3.c:78396:20 */
// Return some kind of integer value which is the best we can do
// at representing the value that *pMem describes as an integer.
@@ -55770,7 +56073,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 { /* sqlite3.c:78419:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55779,7 +56082,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 { /* sqlite3.c:78424:20: */
var flags int32
flags = int32((*Mem)(unsafe.Pointer(pMem)).Fflags)
@@ -55800,7 +56103,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 { /* sqlite3.c:78448:31: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55810,7 +56113,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 { /* sqlite3.c:78454:23: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Real != 0 {
return *(*float64)(unsafe.Pointer(pMem))
@@ -55828,7 +56131,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 { /* sqlite3.c:78475:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
return libc.Bool32(*(*I64)(unsafe.Pointer(pMem)) != int64(0))
@@ -55841,7 +56144,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) { /* sqlite3.c:78486:21: */
var ix I64
ix = doubleToInt64(tls, *(*float64)(unsafe.Pointer(pMem)))
@@ -55862,7 +56165,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 { /* sqlite3.c:78515: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)
@@ -55871,7 +56174,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 { /* sqlite3.c:78530: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)
@@ -55886,7 +56189,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 { /* sqlite3.c:78549:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp)) = r1
@@ -55903,7 +56206,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 { /* sqlite3.c:78564:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55930,7 +56233,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 { /* sqlite3.c:78597:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Null != 0 {
return SQLITE_OK
}
@@ -55984,7 +56287,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) { /* sqlite3.c:78640:21: */
(*Mem)(unsafe.Pointer(pMem)).Fflags = flags
(*Mem)(unsafe.Pointer(pMem)).Fdb = db
@@ -56001,7 +56304,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) { /* sqlite3.c:78660:21: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeMemClearExternAndSetNull(tls, pMem)
} else {
@@ -56009,13 +56312,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) { /* sqlite3.c:78667: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) { /* sqlite3.c:78676:21: */
Xsqlite3VdbeMemRelease(tls, pMem)
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Blob | MEM_Zero)
(*Mem)(unsafe.Pointer(pMem)).Fn = 0
@@ -56030,7 +56333,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) { /* sqlite3.c:78706:29: */
Xsqlite3VdbeMemSetNull(tls, pMem)
*(*I64)(unsafe.Pointer(pMem)) = val
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
@@ -56038,7 +56341,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) { /* sqlite3.c:78716:21: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeReleaseAndSetInt64(tls, pMem, val)
} else {
@@ -56048,19 +56351,19 @@ 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) { /* sqlite3.c:78726: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) { /* sqlite3.c:78732:21: */
*(*uintptr)(unsafe.Pointer(pMem)) = func() uintptr {
if zPType != 0 {
return zPType
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()
(*Mem)(unsafe.Pointer(pMem)).Fz = pPtr
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null | MEM_Dyn | MEM_Subtype | MEM_Term)
@@ -56075,7 +56378,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) { /* sqlite3.c:78751:21: */
Xsqlite3VdbeMemSetNull(tls, pMem)
if !(Xsqlite3IsNaN(tls, val) != 0) {
*(*float64)(unsafe.Pointer(pMem)) = val
@@ -56088,7 +56391,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 { /* sqlite3.c:78778:20: */
var db uintptr = (*Mem)(unsafe.Pointer(pMem)).Fdb
var p uintptr
@@ -56105,7 +56408,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 { /* sqlite3.c:78796:20: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
var n int32 = (*Mem)(unsafe.Pointer(p)).Fn
@@ -56121,13 +56424,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) { /* sqlite3.c:78852: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) { /* sqlite3.c:78857:21: */
if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeClrCopy(tls, pTo, pFrom, srcType)
@@ -56143,7 +56446,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 { /* sqlite3.c:78873:20: */
var rc int32 = SQLITE_OK
if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
@@ -56165,7 +56468,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) { /* sqlite3.c:78896:21: */
Xsqlite3VdbeMemRelease(tls, pTo)
libc.Xmemcpy(tls, pTo, pFrom, uint64(unsafe.Sizeof(Mem{})))
@@ -56186,7 +56489,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 { /* sqlite3.c:78922: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
@@ -56248,7 +56551,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 {
@@ -56297,11 +56602,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 { /* sqlite3.c:79031: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, 79040)
}
if SQLITE_OK == libc.AssignInt32(&rc, Xsqlite3VdbeMemClearAndResize(tls, pMem, int32(amt+U32(1)))) {
rc = Xsqlite3BtreePayload(tls, pCur, offset, amt, (*Mem)(unsafe.Pointer(pMem)).Fz)
@@ -56316,7 +56621,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 { /* sqlite3.c:79054:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -56341,7 +56646,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 { /* sqlite3.c:79086:35: */
if int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&(MEM_Blob|MEM_Str) != 0 {
if func() int32 {
@@ -56386,7 +56691,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 { /* sqlite3.c:79129:27: */
if !(pVal != 0) {
return uintptr(0)
}
@@ -56402,7 +56707,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 { /* sqlite3.c:79147:30: */
var p uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Mem{})))
if p != 0 {
(*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Null)
@@ -56419,7 +56724,7 @@ type ValueNewStat4Ctx = struct {
FppRec uintptr
FiVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:78567:1 */
+} /* sqlite3.c:79160: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
@@ -56430,7 +56735,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 { /* sqlite3.c:79178:22: */
if p != 0 {
var pRec uintptr = *(*uintptr)(unsafe.Pointer((*ValueNewStat4Ctx)(unsafe.Pointer(p)).FppRec))
@@ -56486,7 +56791,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 { /* sqlite3.c:79240:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -56576,7 +56881,7 @@ __9:
goto __10
}
rc = (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).FisError
- Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+3623, libc.VaList(bp, Xsqlite3_value_text(tls, pVal)))
+ Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+3614, libc.VaList(bp, Xsqlite3_value_text(tls, pVal)))
goto __11
__10:
Xsqlite3ValueApplyAffinity(tls, pVal, aff, uint8(SQLITE_UTF8))
@@ -56632,7 +56937,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 { /* sqlite3.c:79336:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -56648,7 +56953,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 + 1565 /* "" */
+ zNeg = ts + 1534 /* "" */
rc = SQLITE_OK
__1:
@@ -56698,7 +57003,7 @@ __4:
pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
op = int32((*Expr)(unsafe.Pointer(pExpr)).Fop)
negInt = -1
- zNeg = ts + 4874 /* "-" */
+ zNeg = ts + 4883 /* "-" */
__6:
;
@@ -56718,14 +57023,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+4876, libc.VaList(bp, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ zVal = Xsqlite3MPrintf(tls, db, ts+4885, 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) {
@@ -56813,7 +57120,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)) {
@@ -56876,7 +57185,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 { /* sqlite3.c:79491:20: */
if pExpr != 0 {
return valueFromExpr(tls, db, pExpr, enc, affinity, ppVal, uintptr(0))
}
@@ -56899,7 +57208,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 { /* sqlite3.c:79520:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -56967,7 +57276,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 { /* sqlite3.c:79595:20: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -57012,7 +57321,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 { /* sqlite3.c:79640:20: */
return stat4ValueFromExpr(tls, pParse, pExpr, affinity, uintptr(0), ppVal)
}
@@ -57022,7 +57331,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 { /* sqlite3.c:79657:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -57043,7 +57352,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, 79675)
}
iField = *(*int32)(unsafe.Pointer(bp /* nHdr */))
for i = 0; i <= iCol; i++ {
@@ -57058,14 +57367,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, 79681)
}
szField = int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 4 /* t */))))
iField = iField + szField
}
if iField > nRec {
- return Xsqlite3CorruptError(tls, 79098)
+ return Xsqlite3CorruptError(tls, 79687)
}
if pMem == uintptr(0) {
pMem = libc.AssignPtrUintptr(ppVal, Xsqlite3ValueNew(tls, db))
@@ -57081,7 +57390,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) { /* sqlite3.c:79702:21: */
if pRec != 0 {
var i int32
var nCol int32 = int32((*KeyInfo)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pRec)).FpKeyInfo)).FnAllField)
@@ -57096,14 +57405,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) { /* sqlite3.c:79720: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) { /* sqlite3.c:79733:21: */
if !(v != 0) {
return
}
@@ -57114,14 +57423,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 { /* sqlite3.c:79744: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 { /* sqlite3.c:79747:20: */
var p uintptr = pVal
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Str != 0 && int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fenc) == int32(enc) {
@@ -57141,7 +57450,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 { /* sqlite3.c:79790:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var p uintptr
p = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(Vdbe{})))
@@ -57165,12 +57474,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 { /* sqlite3.c:79817: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) { /* sqlite3.c:79824:21: */
var ap Va_list
_ = ap
Xsqlite3DbFree(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)
@@ -57180,7 +57489,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) { /* sqlite3.c:79835:21: */
if p == uintptr(0) {
return
}
@@ -57193,7 +57502,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) { /* sqlite3.c:79885:21: */
var tmp Vdbe
var pTmp uintptr
var zTmp uintptr
@@ -57212,7 +57521,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))++
}
@@ -57224,7 +57533,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 { /* sqlite3.c:79922:12: */
var pNew uintptr
var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse
@@ -57277,7 +57586,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 { /* sqlite3.c:79993:28: */
if growOpArray(tls, p, 1) != 0 {
return 1
@@ -57286,7 +57595,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 { /* sqlite3.c:79999:20: */
var i int32
var pOp uintptr
@@ -57309,26 +57618,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 { /* sqlite3.c:80038: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 { /* sqlite3.c:80041: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 { /* sqlite3.c:80044: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 { /* sqlite3.c:80050: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 { /* sqlite3.c:80057:20: */
return Xsqlite3VdbeAddOp4(tls, p, OP_String8, 0, iDest, 0, zStr, 0)
}
@@ -57341,7 +57650,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) { /* sqlite3.c:80072:21: */
var ap Va_list
_ = ap
var i int32
@@ -57389,7 +57698,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 { /* sqlite3.c:80095:20: */
var addr int32 = Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, p3)
Xsqlite3VdbeChangeP4(tls, p, addr, zP4, p4type)
return addr
@@ -57403,7 +57712,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 { /* sqlite3.c:80119:20: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var nByte int32
var addr int32
@@ -57435,7 +57744,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 { /* sqlite3.c:80156:20: */
var p4copy uintptr = Xsqlite3DbMallocRawNN(tls, Xsqlite3VdbeDb(tls, p), uint64(8))
if p4copy != 0 {
libc.Xmemcpy(tls, p4copy, zP4, uint64(8))
@@ -57445,7 +57754,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 { /* sqlite3.c:80175:20: */
var pOp uintptr
if (*Parse)(unsafe.Pointer(pParse)).FaddrExplain == 0 {
return 0
@@ -57461,7 +57770,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) { /* sqlite3.c:80199: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 {
@@ -57485,7 +57794,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) { /* sqlite3.c:80227:21: */
(*Parse)(unsafe.Pointer(pParse)).FaddrExplain = Xsqlite3VdbeExplainParent(tls, pParse)
}
@@ -57496,7 +57805,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) { /* sqlite3.c:80241:21: */
var j int32
Xsqlite3VdbeAddOp4(tls, p, OP_ParseSchema, iDb, 0, 0, zWhere, -7)
Xsqlite3VdbeChangeP5(tls, p, p5)
@@ -57507,7 +57816,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 { /* sqlite3.c:80252: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
@@ -57518,7 +57827,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) { /* sqlite3.c:80271:21: */
Xsqlite3VdbeAddOp1(tls, v, OP_EndCoroutine, regYield)
// Clear the temporary register cache, thereby ensuring that each
@@ -57553,14 +57862,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 { /* sqlite3.c:80309: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) { /* sqlite3.c:80318: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)))))
@@ -57572,7 +57881,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) { /* sqlite3.c:80333:21: */
var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse
var j int32 = ^x
@@ -57585,12 +57894,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) { /* sqlite3.c:80355: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) { /* sqlite3.c:80362:21: */
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 5, 0x20)
}
@@ -57613,7 +57922,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) { /* sqlite3.c:80558:13: */
var nMaxArgs int32 = *(*int32)(unsafe.Pointer(pMaxFuncArgs))
var pOp uintptr
var pParse uintptr = (*Vdbe)(unsafe.Pointer(p)).FpParse
@@ -57742,7 +58051,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 { /* sqlite3.c:80660:20: */
return (*Vdbe)(unsafe.Pointer(p)).FnOp
}
@@ -57773,7 +58082,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 { /* sqlite3.c:80717:23: */
var aOp uintptr = (*Vdbe)(unsafe.Pointer(p)).FaOp
// Check that sqlite3VdbeUsesBtree() was not called on this VM
@@ -57789,7 +58098,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 { /* sqlite3.c:80737:23: */
var i int32
var pOut uintptr
var pFirst uintptr
@@ -57833,23 +58142,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) { /* sqlite3.c:80813: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) { /* sqlite3.c:80816: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) { /* sqlite3.c:80819: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) { /* sqlite3.c:80822: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) { /* sqlite3.c:80825: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
@@ -57858,7 +58167,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) { /* sqlite3.c:80834:21: */
Xsqlite3VdbeChangeP2(tls, p, addr, (*Vdbe)(unsafe.Pointer(p)).FnOp)
}
@@ -57873,7 +58182,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) { /* sqlite3.c:80851:21: */
if addr == (*Vdbe)(unsafe.Pointer(p)).FnOp-1 {
(*Vdbe)(unsafe.Pointer(p)).FnOp--
@@ -57884,26 +58193,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) { /* sqlite3.c:80871: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) { /* sqlite3.c:80880: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) { /* sqlite3.c:80884: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) { /* sqlite3.c:80888:13: */
switch p4type {
case -16:
@@ -57964,7 +58273,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) { /* sqlite3.c:80937:13: */
if aOp != 0 {
var pOp uintptr
for pOp = aOp + uintptr(nOp-1)*24; pOp >= aOp; pOp -= 24 {
@@ -57979,18 +58288,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) { /* sqlite3.c:80955: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 { /* sqlite3.c:80963: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 { /* sqlite3.c:80970:20: */
var pOp uintptr
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 {
return 0
@@ -58006,7 +58315,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 { /* sqlite3.c:80986: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 {
@@ -58030,7 +58339,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) { /* sqlite3.c:81046: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)
@@ -58047,7 +58356,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) { /* sqlite3.c:81065:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = zP4
@@ -58094,7 +58403,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) { /* sqlite3.c:81108:21: */
var pOp uintptr
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 {
@@ -58110,7 +58419,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) { /* sqlite3.c:81128:21: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var pKeyInfo uintptr
@@ -58131,7 +58440,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 { /* sqlite3.c:81194:23: */ // Ignore the MSVC warning about no initializer
if addr < 0 {
addr = (*Vdbe)(unsafe.Pointer(p)).FnOp - 1
@@ -58145,11 +58454,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 /* sqlite3.c:81197: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 { /* sqlite3.c:81398:21: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -58163,34 +58472,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+4881, libc.VaList(bp, int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4890, 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 + 1565 /* "" */
+ zColl = ts + 1534 /* "" */
}
- if libc.Xstrcmp(tls, zColl, ts+1092) == 0 {
- zColl = ts + 4886 /* "B" */
+ if libc.Xstrcmp(tls, zColl, ts+1079) == 0 {
+ zColl = ts + 4895 /* "B" */
}
- Xsqlite3_str_appendf(tls, bp+144, ts+4888,
+ Xsqlite3_str_appendf(tls, bp+144, ts+4897,
libc.VaList(bp+8, func() uintptr {
if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_DESC != 0 {
- return ts + 4874 /* "-" */
+ return ts + 4883 /* "-" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
func() uintptr {
if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_BIGNULL != 0 {
- return ts + 4896 /* "N." */
+ return ts + 4905 /* "N." */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
zColl))
}
- Xsqlite3_str_append(tls, bp+144, ts+4899, 1)
+ Xsqlite3_str_append(tls, bp+144, ts+4908, 1)
break
}
@@ -58198,7 +58507,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+4901, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName,
+ Xsqlite3_str_appendf(tls, bp+144, ts+4910, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName,
encnames[(*CollSeq)(unsafe.Pointer(pColl)).Fenc]))
break
@@ -58206,32 +58515,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+4910, libc.VaList(bp+48, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg)))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4919, 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+4910, libc.VaList(bp+64, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg)))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4919, 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+1349, libc.VaList(bp+80, *(*I64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1314, libc.VaList(bp+80, *(*I64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
break
}
case -3:
{
- Xsqlite3_str_appendf(tls, bp+144, ts+4917, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4926, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16))))
break
}
case -13:
{
- Xsqlite3_str_appendf(tls, bp+144, ts+1343, libc.VaList(bp+96, *(*float64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1308, libc.VaList(bp+96, *(*float64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
break
}
@@ -58241,14 +58550,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+1349, libc.VaList(bp+104, *(*I64)(unsafe.Pointer(pMem))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1314, 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+1343, libc.VaList(bp+112, *(*float64)(unsafe.Pointer(pMem))))
+ Xsqlite3_str_appendf(tls, bp+144, ts+1308, libc.VaList(bp+112, *(*float64)(unsafe.Pointer(pMem))))
} else if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Null != 0 {
- zP4 = ts + 1566 /* "NULL" */
+ zP4 = ts + 1535 /* "NULL" */
} else {
- zP4 = ts + 4920 /* "(blob)" */
+ zP4 = ts + 4929 /* "(blob)" */
}
break
@@ -58256,7 +58565,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+4927, libc.VaList(bp+120, pVtab))
+ Xsqlite3_str_appendf(tls, bp+144, ts+4936, libc.VaList(bp+120, pVtab))
break
}
@@ -58267,20 +58576,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+4935, libc.VaList(bp+128, func() int32 {
+ Xsqlite3_str_appendf(tls, bp+144, ts+4944, 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+4940, 1)
+ Xsqlite3_str_append(tls, bp+144, ts+4949, 1)
break
}
case -4:
{
- zP4 = ts + 4942 /* "program" */
+ zP4 = ts + 4951 /* "program" */
break
}
@@ -58312,7 +58621,7 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
return Xsqlite3StrAccumFinish(tls, bp+144)
}
-var encnames = [4]uintptr{ts + 4950, ts + 4952, ts + 4954, ts + 4959} /* sqlite3.c:80840:25 */
+var encnames = [4]uintptr{ts + 4959, ts + 4961, ts + 4963, ts + 4968} /* sqlite3.c:81428:25 */
// Declare to the Vdbe that the BTree object at db->aDb[i] is used.
//
@@ -58320,7 +58629,7 @@ var encnames = [4]uintptr{ts + 4950, ts + 4952, ts + 4954, ts + 4959} /* 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) { /* sqlite3.c:81523: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 {
@@ -58347,7 +58656,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) { /* sqlite3.c:81554:21: */
var i int32
var db uintptr
var aDb uintptr
@@ -58366,7 +58675,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) { /* sqlite3.c:81575:29: */
var i int32
var db uintptr
var aDb uintptr
@@ -58381,7 +58690,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) { /* sqlite3.c:81589:21: */
if (*Vdbe)(unsafe.Pointer(p)).FlockMask == YDbMask(0) {
return
} // The common case
@@ -58389,7 +58698,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) { /* sqlite3.c:81631:13: */
for libc.PostDecInt32(&N, 1) > 0 {
(*Mem)(unsafe.Pointer(p)).Fdb = db
(*Mem)(unsafe.Pointer(p)).Fflags = flags
@@ -58399,19 +58708,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) { /* sqlite3.c:81646: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
@@ -58443,7 +58752,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) { /* sqlite3.c:81708:21: */
var pFrame uintptr = pArg
(*VdbeFrame)(unsafe.Pointer(pFrame)).FpParent = (*Vdbe)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer(pFrame)).Fv)).FpDelFrame
@@ -58455,7 +58764,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 { /* sqlite3.c:81723: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
@@ -58554,7 +58863,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) { /* sqlite3.c:81835:21: */
var i int32
var aMem uintptr = p + 120
var apCsr uintptr = aMem + uintptr((*VdbeFrame)(unsafe.Pointer(p)).FnChildMem)*56
@@ -58583,7 +58892,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 { /* sqlite3.c:81867:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -58672,7 +58981,7 @@ type ReusableSpace = struct {
FpSpace uintptr
FnFree Sqlite3_int64
FnNeeded Sqlite3_int64
-} /* sqlite3.c:81424:1 */
+} /* sqlite3.c:82012:1 */
// Try to allocate nByte bytes of 8-byte aligned bulk memory for pBuf
// from the ReusableSpace object. Return a pointer to the allocated
@@ -58687,7 +58996,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 { /* sqlite3.c:82032:13: */
if pBuf == uintptr(0) {
nByte = (nByte + int64(7)) & int64(libc.CplInt32(7))
@@ -58704,7 +59013,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) { /* sqlite3.c:82055:21: */
// There should be at least one opcode.
@@ -58737,7 +59046,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) { /* sqlite3.c:82108:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -58818,7 +59127,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{}))))
@@ -58844,17 +59153,16 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* sqlite
}
var azColName = [12]uintptr{
- ts + 4964, ts + 4969, ts + 4976, ts + 4979, ts + 4982, ts + 4985, ts + 4988, ts + 4991,
- ts + 4999, ts + 5002, ts + 5009, ts + 5017,
-} /* sqlite3.c:81568:23 */
+ ts + 4973, ts + 4978, ts + 4985, ts + 4988, ts + 4991, ts + 4994, ts + 4997, ts + 5000,
+ ts + 5008, ts + 5011, ts + 5018, ts + 5026,
+} /* sqlite3.c:82156: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) { /* sqlite3.c:82233:21: */
if pCx == uintptr(0) {
return
}
-
switch int32((*VdbeCursor)(unsafe.Pointer(pCx)).FeCurType) {
case CURTYPE_SORTER:
{
@@ -58865,13 +59173,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--
@@ -58885,7 +59193,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) { /* sqlite3.c:82263:13: */
if (*Vdbe)(unsafe.Pointer(p)).FapCsr != 0 {
var i int32
for i = 0; i < (*Vdbe)(unsafe.Pointer(p)).FnCursor; i++ {
@@ -58901,7 +59209,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 { /* sqlite3.c:82281:20: */
var v uintptr = (*VdbeFrame)(unsafe.Pointer(pFrame)).Fv
closeCursorsInFrame(tls, v)
(*Vdbe)(unsafe.Pointer(v)).FaOp = (*VdbeFrame)(unsafe.Pointer(pFrame)).FaOp
@@ -58913,7 +59221,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
@@ -58925,7 +59233,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) { /* sqlite3.c:82310: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 {
@@ -58947,7 +59255,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)
}
}
@@ -58956,7 +59264,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) { /* sqlite3.c:82340:21: */
var n int32
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -58981,7 +59289,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 { /* sqlite3.c:82365:20: */
var rc int32
var pColName uintptr
@@ -59000,7 +59308,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 { /* sqlite3.c:82393:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -59097,26 +59405,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+5024, libc.VaList(bp, 0, zMainFile, 0))
+ zSuper = Xsqlite3MPrintf(tls, db, ts+5033, 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+5036, libc.VaList(bp+24, zSuper))
+ Xsqlite3_log(tls, SQLITE_FULL, ts+5045, libc.VaList(bp+24, zSuper))
Xsqlite3OsDelete(tls, pVfs, zSuper, 0)
break
} else if retryCount == 1 {
- Xsqlite3_log(tls, SQLITE_FULL, ts+5050, libc.VaList(bp+32, zSuper))
+ Xsqlite3_log(tls, SQLITE_FULL, ts+5059, libc.VaList(bp+32, zSuper))
}
}
retryCount++
Xsqlite3_randomness(tls, int32(unsafe.Sizeof(U32(0))), bp+56)
- Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+5065,
+ Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+5074,
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.
@@ -59228,7 +59536,7 @@ var aMJNeeded = [6]U8{
/* TRUNCATE */ U8(1),
/* MEMORY */ U8(0),
/* WAL */ U8(0),
-} /* sqlite3.c:81842:23 */
+} /* sqlite3.c:82428:23 */
// This routine checks that the sqlite3.nVdbeActive count variable
// matches the number of vdbe's in the list sqlite3.pVdbe that are
@@ -59246,7 +59554,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 { /* sqlite3.c:82689:28: */
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
var rc int32 = SQLITE_OK
var i int32
@@ -59289,7 +59597,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 { /* sqlite3.c:82735:20: */
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FnStatement != 0 && (*Vdbe)(unsafe.Pointer(p)).FiStatement != 0 {
return vdbeCloseStatement(tls, p, eOp)
}
@@ -59304,13 +59612,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 { /* sqlite3.c:82754: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+5078, 0)
+ Xsqlite3VdbeError(tls, p, ts+5087, 0)
return SQLITE_ERROR
}
return SQLITE_OK
@@ -59327,7 +59635,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 { /* sqlite3.c:82781:20: */
var rc int32 // Used to store transient return codes
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -59531,7 +59839,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) { /* sqlite3.c:82991:21: */
(*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_OK
}
@@ -59541,7 +59849,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 { /* sqlite3.c:83003:20: */
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
var rc int32 = (*Vdbe)(unsafe.Pointer(p)).Frc
if (*Vdbe)(unsafe.Pointer(p)).FzErrMsg != 0 {
@@ -59557,6 +59865,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
}
@@ -59569,7 +59878,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 { /* sqlite3.c:83053:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -59601,7 +59910,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 + 3623 /* "%s" */
+ return ts + 3614 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg))
@@ -59621,7 +59930,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 { /* sqlite3.c:83150: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)
@@ -59645,7 +59954,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) { /* sqlite3.c:83176:21: */
for *(*uintptr)(unsafe.Pointer(pp)) != 0 {
var pAux uintptr = *(*uintptr)(unsafe.Pointer(pp))
if iOp < 0 ||
@@ -59670,7 +59979,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) { /* sqlite3.c:83204:21: */
var pSub uintptr
var pNext uintptr
@@ -59691,7 +60000,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) { /* sqlite3.c:83245:21: */
var db uintptr
db = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -59714,7 +60023,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 { /* sqlite3.c:83271:36: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -59722,12 +60031,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, 83281)
}
(*VdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(p)).FcacheStatus = U32(CACHE_STALE)
@@ -59739,7 +60048,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 { /* sqlite3.c:83297:28: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -59747,7 +60056,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)
@@ -59757,9 +60066,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 { /* sqlite3.c:83312: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
@@ -59776,20 +60085,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 { /* sqlite3.c:83333: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
@@ -59851,10 +60160,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 */
+} /* sqlite3.c:83470: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 { /* sqlite3.c:83490:20: */
if serial_type >= U32(128) {
return (serial_type - U32(12)) / U32(2)
} else {
@@ -59864,7 +60173,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 { /* sqlite3.c:83499:19: */
return sqlite3SmallTypeSizes[serial_type]
}
@@ -59913,7 +60222,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 { /* sqlite3.c:83570:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -59933,7 +60242,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
}
@@ -59958,13 +60267,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) { /* sqlite3.c:83624:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -59989,10 +60298,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) { /* sqlite3.c:83659:21: */
switch serial_type {
case U32(10):
{ // Internal use only: NULL with virtual table
@@ -60000,7 +60308,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):
@@ -60009,7 +60317,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):
@@ -60019,7 +60327,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):
@@ -60029,7 +60337,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):
@@ -60039,7 +60347,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):
@@ -60049,7 +60357,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):
@@ -60059,7 +60367,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):
@@ -60068,7 +60376,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):
@@ -60079,7 +60388,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:
@@ -60087,14 +60396,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)} /* sqlite3.c:83742:24 */
// This routine is used to allocate sufficient space for an UnpackedRecord
// structure large enough to be used with sqlite3VdbeRecordUnpack() if
@@ -60108,7 +60417,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 { /* sqlite3.c:83765: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))
@@ -60126,7 +60435,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) { /* sqlite3.c:83785:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -60165,7 +60474,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
@@ -60186,7 +60496,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 { /* sqlite3.c:83982:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -60229,7 +60539,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 { /* sqlite3.c:84019:12: */
var i int32
for i = 0; i < n; i++ {
if *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0 {
@@ -60242,7 +60552,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 { /* sqlite3.c:84032:36: */
var c int32
var n1 int32 = (*Mem)(unsafe.Pointer(pB1)).Fn
var n2 int32 = (*Mem)(unsafe.Pointer(pB2)).Fn
@@ -60282,7 +60592,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 { /* sqlite3.c:84065:20: */
if uint64(unsafe.Sizeof(float64(0))) > uint64(8) {
var x float64 = float64(i)
@@ -60328,7 +60638,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 { /* sqlite3.c:84098:20: */
var f1 int32
var f2 int32
var combined_flags int32
@@ -60422,7 +60732,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 { /* sqlite3.c:84197:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -60485,7 +60795,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 { /* sqlite3.c:84252:20: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -60527,11 +60837,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, 84283))
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
@@ -60592,7 +60902,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, 84360))
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
@@ -60627,7 +60937,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, 84390))
return 0 // Corruption
} else if int32((*Mem)(unsafe.Pointer(pRhs)).Fflags)&MEM_Zero != 0 {
if !(isAllZero(tls, aKey1+uintptr(d1), nStr) != 0) {
@@ -60688,7 +60998,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 { /* sqlite3.c:84449:20: */
return Xsqlite3VdbeRecordCompareWithSkip(tls, nKey1, pKey1, pPKey2, 0)
}
@@ -60699,7 +61009,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 { /* sqlite3.c:84466:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -60804,7 +61114,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 { /* sqlite3.c:84560:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -60828,7 +61138,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, 84585))
return 0 // Corruption
}
nCmp = func() int32 {
@@ -60866,7 +61176,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 { /* sqlite3.c:84624: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()
@@ -60920,7 +61230,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 { /* sqlite3.c:84675:20: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -61005,7 +61315,7 @@ __6:
idx_rowid_corruption:
;
Xsqlite3VdbeMemRelease(tls, bp)
- return Xsqlite3CorruptError(tls, 84151)
+ return Xsqlite3CorruptError(tls, 84740)
}
// Compare the key of the index entry that cursor pC is pointing to against
@@ -61017,7 +61327,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 { /* sqlite3.c:84754:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -61026,14 +61336,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, 84773)
}
Xsqlite3VdbeMemInit(tls, bp, db, uint16(0))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur, U32(nCellKey), bp)
@@ -61047,7 +61357,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) { /* sqlite3.c:84789:21: */
(*Sqlite3)(unsafe.Pointer(db)).FnChange = nChange
*(*I64)(unsafe.Pointer(db + 128)) += nChange
@@ -61055,7 +61365,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) { /* sqlite3.c:84799:21: */
libc.SetBitFieldPtr16Uint32(v+208, Bft(1), 4, 0x10)
}
@@ -61075,7 +61385,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) { /* sqlite3.c:84821: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)
@@ -61083,12 +61393,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 { /* sqlite3.c:84831: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 { /* sqlite3.c:84838:19: */
return (*Vdbe)(unsafe.Pointer(v)).FprepFlags
}
@@ -61098,7 +61408,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 { /* sqlite3.c:84850:30: */
if v != 0 {
var pMem uintptr = (*Vdbe)(unsafe.Pointer(v)).FaVar + uintptr(iVar-1)*56
@@ -61118,12 +61428,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) { /* sqlite3.c:84872: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)
}
}
@@ -61134,7 +61444,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 { /* sqlite3.c:84891:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -61147,13 +61457,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 + 5108 /* "a CHECK constrai..." */
+ zContext = ts + 5117 /* "a CHECK constrai..." */
} else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fp5)&NC_GenCol != 0 {
- zContext = ts + 5127 /* "a generated colu..." */
+ zContext = ts + 5136 /* "a generated colu..." */
} else {
- zContext = ts + 5146 /* "an index" */
+ zContext = ts + 5155 /* "an index" */
}
- zMsg = Xsqlite3_mprintf(tls, ts+5155,
+ zMsg = Xsqlite3_mprintf(tls, ts+5164,
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)
@@ -61165,7 +61475,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) { /* sqlite3.c:84922: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)
@@ -61181,7 +61491,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) { /* sqlite3.c:84943:13: */
if p != 0 {
var i int32
for i = 0; i < nField; i++ {
@@ -61198,7 +61508,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) { /* sqlite3.c:84962:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -61250,7 +61560,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) /* sqlite3.c:84976:19 */
//************* End of vdbeaux.c ********************************************
//************* Begin file vdbeapi.c ****************************************
@@ -61276,7 +61586,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 { /* sqlite3.c:85055:16: */
var p uintptr = pStmt
return libc.Bool32(p == uintptr(0) || Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0)) != 0)
}
@@ -61284,9 +61594,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 { /* sqlite3.c:85066:12: */
if (*Vdbe)(unsafe.Pointer(p)).Fdb == uintptr(0) {
- Xsqlite3_log(tls, SQLITE_MISUSE, ts+5191, 0)
+ Xsqlite3_log(tls, SQLITE_MISUSE, ts+5200, 0)
return 1
} else {
return 0
@@ -61294,9 +61604,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 { /* sqlite3.c:85074:12: */
if p == uintptr(0) {
- Xsqlite3_log(tls, SQLITE_MISUSE, ts+5236, 0)
+ Xsqlite3_log(tls, SQLITE_MISUSE, ts+5245, 0)
return 1
} else {
return vdbeSafety(tls, p)
@@ -61306,7 +61616,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) { /* sqlite3.c:85088:29: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -61339,7 +61649,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 { /* sqlite3.c:85126:16: */
var rc int32
if pStmt == uintptr(0) {
// IMPLEMENTATION-OF: R-57228-12904 Invoking sqlite3_finalize() on a NULL
@@ -61349,7 +61659,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, 85135)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Vdbe)(unsafe.Pointer(v)).FstartTime > int64(0) {
@@ -61369,7 +61679,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 { /* sqlite3.c:85153:16: */
var rc int32
if pStmt == uintptr(0) {
rc = SQLITE_OK
@@ -61391,7 +61701,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 { /* sqlite3.c:85174:16: */
var i int32
var rc int32 = SQLITE_OK
var p uintptr = pStmt
@@ -61413,7 +61723,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 { /* sqlite3.c:85199:23: */
var p uintptr = pVal
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Blob|MEM_Str) != 0 {
if func() int32 {
@@ -61436,27 +61746,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 { /* sqlite3.c:85212: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 { /* sqlite3.c:85215: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 { /* sqlite3.c:85218: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 { /* sqlite3.c:85221: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 { /* sqlite3.c:85224: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 { /* sqlite3.c:85227:25: */
var pMem uintptr = pVal
return func() uint32 {
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Subtype != 0 {
@@ -61466,7 +61776,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 { /* sqlite3.c:85231: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) &&
@@ -61479,26 +61789,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 { /* sqlite3.c:85244: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 { /* sqlite3.c:85248: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 { /* sqlite3.c:85251: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 { /* sqlite3.c:85254: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 { /* sqlite3.c:85262:16: */
return int32(aType[int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&MEM_AffMask])
}
@@ -61567,20 +61877,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 */
+} /* sqlite3.c:85263: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 { /* sqlite3.c:85348: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 { /* sqlite3.c:85353: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 { /* sqlite3.c:85359:26: */
var pNew uintptr
if pOrig == uintptr(0) {
return uintptr(0)
@@ -61606,7 +61916,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) { /* sqlite3.c:85382:17: */
Xsqlite3ValueFree(tls, pOld)
}
@@ -61621,7 +61931,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) { /* sqlite3.c:85398:13: */
var rc int32 = Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, z, int64(n), enc, xDel)
if rc != 0 {
if rc == SQLITE_TOOBIG {
@@ -61635,7 +61945,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 { /* sqlite3.c:85417:12: */
if xDel == uintptr(0) {
// noop
@@ -61648,12 +61958,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) { /* sqlite3.c:85433: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) { /* sqlite3.c:85443:17: */
if n > uint64(0x7fffffff) {
invokeValueDestructor(tls, z, xDel, pCtx)
@@ -61662,39 +61972,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) { /* sqlite3.c:85457: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) { /* sqlite3.c:85461: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) { /* sqlite3.c:85467: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) { /* sqlite3.c:85473: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) { /* sqlite3.c:85477: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) { /* sqlite3.c:85481: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) { /* sqlite3.c:85485:17: */
var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut
Xsqlite3VdbeMemRelease(tls, pOut)
@@ -61702,19 +62012,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) { /* sqlite3.c:85497: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) { /* sqlite3.c:85503: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) { /* sqlite3.c:85512:17: */
if int32(enc) == SQLITE_UTF16 {
enc = uint8(SQLITE_UTF16LE)
@@ -61726,32 +62036,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) { /* sqlite3.c:85529: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) { /* sqlite3.c:85538: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) { /* sqlite3.c:85547: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) { /* sqlite3.c:85557: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) { /* sqlite3.c:85561: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 { /* sqlite3.c:85565:16: */
var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut
if n > U64(*(*int32)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fdb + 136))) {
@@ -61761,7 +62071,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) { /* sqlite3.c:85578:17: */
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = func() int32 {
if errCode != 0 {
return errCode
@@ -61775,15 +62085,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) { /* sqlite3.c:85590:17: */
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_TOOBIG
- Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+5276, int64(-1),
+ Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+5285, 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) { /* sqlite3.c:85598:17: */
Xsqlite3VdbeMemSetNull(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut)
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_NOMEM
@@ -61793,7 +62103,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) { /* sqlite3.c:85610: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))
@@ -61803,7 +62113,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 { /* sqlite3.c:85624:12: */
var rc int32 = SQLITE_OK
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -61830,7 +62140,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 { /* sqlite3.c:85654:12: */
var db uintptr
var rc int32
@@ -61997,14 +62307,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 { /* sqlite3.c:85788: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, 85795)
}
db = (*Vdbe)(unsafe.Pointer(v)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -62044,7 +62354,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 { /* sqlite3.c:85837:17: */
return (*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpFunc)).FpUserData
}
@@ -62057,7 +62367,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 { /* sqlite3.c:85852:20: */
return (*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpOut)).Fdb
}
@@ -62074,17 +62384,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 { /* sqlite3.c:85871: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 { /* sqlite3.c:85880: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+5308)
+ 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 { /* sqlite3.c:85928: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 { /* sqlite3.c:85936: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 { /* sqlite3.c:85947:30: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -62107,7 +62487,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 { /* sqlite3.c:85967:29: */
var pMem uintptr = (*Sqlite3_context)(unsafe.Pointer(p)).FpMem
if nByte <= 0 {
@@ -62127,7 +62507,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 { /* sqlite3.c:85989:17: */
if int32((*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpMem)).Fflags)&MEM_Agg == 0 {
return createAggContext(tls, p, nByte)
@@ -62145,7 +62525,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 { /* sqlite3.c:86010:17: */
var pAuxData uintptr
if (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe == uintptr(0) {
@@ -62168,7 +62548,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) { /* sqlite3.c:86038:17: */
var pAuxData uintptr
var pVdbe uintptr
pVdbe = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe
@@ -62248,13 +62628,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 { /* sqlite3.c:86091: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 { /* sqlite3.c:86100:16: */
var pVm uintptr = pStmt
if pVm != 0 {
return int32((*Vdbe)(unsafe.Pointer(pVm)).FnResColumn)
@@ -62264,7 +62644,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 { /* sqlite3.c:86109:16: */
var pVm uintptr = pStmt
if pVm == uintptr(0) || (*Vdbe)(unsafe.Pointer(pVm)).FpResultSet == uintptr(0) {
return 0
@@ -62273,19 +62653,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 { /* sqlite3.c:86118:18: */
return uintptr(unsafe.Pointer(&nullMem))
}
var nullMem = Mem{
/* .flags = */ Fflags: U16(MEM_Null),
-} /* sqlite3.c:85475:20 */
+} /* sqlite3.c:86128: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 { /* sqlite3.c:86158:12: */
var pVm uintptr
var pOut uintptr
@@ -62320,7 +62700,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) { /* sqlite3.c:86193: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
@@ -62337,7 +62717,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 { /* sqlite3.c:86213:23: */
var val uintptr
val = Xsqlite3_value_blob(tls, columnMem(tls, pStmt, i))
// Even though there is no encoding conversion, value_blob() might
@@ -62347,43 +62727,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 { /* sqlite3.c:86223: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 { /* sqlite3.c:86228: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 { /* sqlite3.c:86233: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 { /* sqlite3.c:86238: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 { /* sqlite3.c:86243: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 { /* sqlite3.c:86248: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 { /* sqlite3.c:86253: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))
@@ -62393,13 +62773,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 { /* sqlite3.c:86263: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 { /* sqlite3.c:86269:16: */
var iType int32 = Xsqlite3_value_type(tls, columnMem(tls, pStmt, i))
columnMallocFailure(tls, pStmt)
return iType
@@ -62419,7 +62799,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 { /* sqlite3.c:86291:19: */
var ret uintptr
var p uintptr
var n int32
@@ -62451,11 +62831,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 { /* sqlite3.c:86340: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 { /* sqlite3.c:86344:23: */
return columnName(tls, pStmt, N, 1, COLNAME_NAME)
}
@@ -62464,44 +62844,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 { /* sqlite3.c:86363: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 { /* sqlite3.c:86367: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 { /* sqlite3.c:86379: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 { /* sqlite3.c:86383: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 { /* sqlite3.c:86393: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 { /* sqlite3.c:86397: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 { /* sqlite3.c:86407: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 { /* sqlite3.c:86411:23: */
return columnName(tls, pStmt, N, 1, COLNAME_COLUMN)
}
@@ -62518,21 +62898,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 { /* sqlite3.c:86433:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pVar uintptr
if vdbeSafetyNotNull(tls, p) != 0 {
- return Xsqlite3MisuseError(tls, 85783)
+ return Xsqlite3MisuseError(tls, 86436)
}
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+5299, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql))
- return Xsqlite3MisuseError(tls, 85791)
+ ts+5318, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql))
+ return Xsqlite3MisuseError(tls, 86444)
}
if i < 1 || i > int32((*Vdbe)(unsafe.Pointer(p)).FnVar) {
Xsqlite3Error(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, SQLITE_RANGE)
@@ -62566,7 +62946,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 { /* sqlite3.c:86476:12: */
var p uintptr = pStmt
var pVar uintptr
var rc int32
@@ -62592,16 +62972,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 { /* sqlite3.c:86512: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 { /* sqlite3.c:86524: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 { /* sqlite3.c:86534:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62612,11 +62992,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 { /* sqlite3.c:86544: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 { /* sqlite3.c:86547:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62627,7 +63007,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 { /* sqlite3.c:86557:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62637,7 +63017,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 { /* sqlite3.c:86566:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62650,11 +63030,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 { /* sqlite3.c:86584: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 { /* sqlite3.c:86593:16: */
if int32(enc) == SQLITE_UTF16 {
enc = uint8(SQLITE_UTF16LE)
@@ -62662,11 +63042,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 { /* sqlite3.c:86606: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 { /* sqlite3.c:86616:16: */
var rc int32
switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_INTEGER:
@@ -62677,7 +63057,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
}
@@ -62708,7 +63095,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 { /* sqlite3.c:86650:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -62719,7 +63106,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 { /* sqlite3.c:86664:16: */
var rc int32
var p uintptr = pStmt
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
@@ -62736,7 +63123,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 { /* sqlite3.c:86683:16: */
var p uintptr = pStmt
if p != 0 {
return int32((*Vdbe)(unsafe.Pointer(p)).FnVar)
@@ -62748,7 +63135,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 { /* sqlite3.c:86694:23: */
var p uintptr = pStmt
if p == uintptr(0) {
return uintptr(0)
@@ -62759,19 +63146,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 { /* sqlite3.c:86705: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 { /* sqlite3.c:86709: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 { /* sqlite3.c:86716:20: */
var pFrom uintptr = pFromStmt
var pTo uintptr = pToStmt
var i int32
@@ -62794,7 +63181,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 { /* sqlite3.c:86743:16: */
var pFrom uintptr = pFromStmt
var pTo uintptr = pToStmt
if int32((*Vdbe)(unsafe.Pointer(pFrom)).FnVar) != int32((*Vdbe)(unsafe.Pointer(pTo)).FnVar) {
@@ -62815,7 +63202,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 { /* sqlite3.c:86767:20: */
if pStmt != 0 {
return (*Vdbe)(unsafe.Pointer(pStmt)).Fdb
}
@@ -62824,7 +63211,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 { /* sqlite3.c:86775:16: */
if pStmt != 0 {
return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0x80 >> 7)
}
@@ -62833,7 +63220,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 { /* sqlite3.c:86783:16: */
if pStmt != 0 {
return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0xc >> 2)
}
@@ -62841,7 +63228,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 { /* sqlite3.c:86790: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)
}
@@ -62850,7 +63237,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 { /* sqlite3.c:86801:25: */
var pNext uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(pDb)).Fmutex)
if pStmt == uintptr(0) {
@@ -62863,7 +63250,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 { /* sqlite3.c:86822:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -62889,7 +63276,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 { /* sqlite3.c:86852:23: */
var p uintptr = pStmt
if p != 0 {
return (*Vdbe)(unsafe.Pointer(p)).FzSql
@@ -62904,7 +63291,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 { /* sqlite3.c:86866:17: */
var z uintptr = uintptr(0)
var zSql uintptr = Xsqlite3_sql(tls, pStmt)
if zSql != 0 {
@@ -62919,7 +63306,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 { /* sqlite3.c:86904:23: */
var pRet uintptr // Return value
pRet = Xsqlite3VdbeAllocUnpackedRecord(tls, pKeyInfo)
@@ -62932,7 +63319,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 { /* sqlite3.c:86923:16: */
var p uintptr
var pMem uintptr
var rc int32
@@ -62946,7 +63333,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, 86931)
goto preupdate_old_out
__1:
;
@@ -62969,7 +63356,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
@@ -62977,7 +63364,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
}
@@ -63038,7 +63425,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 { /* sqlite3.c:86987:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -63057,7 +63444,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 { /* sqlite3.c:87005:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -63069,7 +63456,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 { /* sqlite3.c:87016:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -63081,7 +63468,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 { /* sqlite3.c:87027:16: */
var p uintptr
var rc int32
var pMem uintptr
@@ -63095,7 +63482,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, 87033)
goto preupdate_new_out
__1:
;
@@ -63236,7 +63623,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 { /* sqlite3.c:87197:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -63281,7 +63668,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 { /* sqlite3.c:87240:21: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -63305,7 +63692,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+5339, 3)
+ Xsqlite3_str_append(tls, bp+48, ts+5358, 3)
Xsqlite3_str_append(tls, bp+48, zStart, int32((int64(zRawSql)-int64(zStart))/1))
}
@@ -63343,11 +63730,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+1566, 4)
+ Xsqlite3_str_append(tls, bp+48, ts+1535, 4)
} else if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
- Xsqlite3_str_appendf(tls, bp+48, ts+1349, libc.VaList(bp, *(*I64)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+48, ts+1314, 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+4867, libc.VaList(bp+8, *(*float64)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+48, ts+4876, 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
@@ -63362,21 +63749,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+5343, libc.VaList(bp+16, nOut, (*Mem)(unsafe.Pointer(pVar)).Fz))
+ Xsqlite3_str_appendf(tls, bp+48, ts+5362, 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+5350, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+48, ts+5369, 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+5363, 2)
+ Xsqlite3_str_append(tls, bp+48, ts+5382, 2)
nOut = (*Mem)(unsafe.Pointer(pVar)).Fn
for i = 0; i < nOut; i++ {
- 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_appendf(tls, bp+48, ts+5385, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff))
}
- Xsqlite3_str_append(tls, bp+48, ts+5371, 1)
+ Xsqlite3_str_append(tls, bp+48, ts+5390, 1)
}
}
}
@@ -63504,7 +63891,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 { /* sqlite3.c:87603: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
@@ -63560,14 +63947,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
}
@@ -63576,7 +63962,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 { /* sqlite3.c:87679:12: */
var iValue I64 = I64(rValue)
if Xsqlite3RealSameAsInt(tls, rValue, iValue) != 0 {
*(*I64)(unsafe.Pointer(piValue)) = iValue
@@ -63598,7 +63984,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) { /* sqlite3.c:87703:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -63644,7 +64030,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) { /* sqlite3.c:87743:13: */
if int32(affinity) >= SQLITE_AFF_NUMERIC {
if int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Int == 0 { //OPTIMIZATION-IF-FALSE
@@ -63676,7 +64062,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 { /* sqlite3.c:87782:16: */
var eType int32 = Xsqlite3_value_type(tls, pVal)
if eType == SQLITE_TEXT {
var pMem uintptr = pVal
@@ -63688,7 +64074,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) { /* sqlite3.c:87796:21: */
applyAffinity(tls, pVal, int8(affinity), enc)
}
@@ -63696,7 +64082,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 { /* sqlite3.c:87810:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -63732,7 +64118,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 { /* sqlite3.c:87841: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))
@@ -63746,13 +64132,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 { /* sqlite3.c:88016: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 { /* sqlite3.c:88021:12: */
var pOut uintptr
pOut = (*Vdbe)(unsafe.Pointer(p)).FaMem + uintptr((*VdbeOp)(unsafe.Pointer(pOp)).Fp2)*56
@@ -63766,22 +64152,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 { /* sqlite3.c:88039: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 { /* sqlite3.c:88061:19: */
return azTypes[Xsqlite3_value_type(tls, pMem)-1]
}
var azTypes = [5]uintptr{
- ts + 1108,
- ts + 1120,
- ts + 1125,
- ts + 1103,
- ts + 1566,
-} /* sqlite3.c:87385:21 */
+ ts + 1095,
+ ts + 1107,
+ ts + 1112,
+ ts + 1090,
+ ts + 1535,
+} /* sqlite3.c:88062: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 { /* sqlite3.c:88076:20: */
bp := tls.Alloc(976)
defer tls.Free(976)
@@ -64115,7 +64526,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
@@ -64153,6 +64566,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
@@ -64445,7 +64860,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
@@ -64505,17 +64921,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 * * *
@@ -65091,7 +65507,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
@@ -66673,6 +67089,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'
//
@@ -66692,7 +67120,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)
@@ -66708,7 +67136,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 * * *
//
@@ -66716,7 +67144,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 *
//
@@ -66724,7 +67152,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]
@@ -66753,13 +67181,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 * *
//
@@ -66769,7 +67197,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])
@@ -66816,9 +67244,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 *
//
@@ -66844,9 +67296,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 * * * * *
//
@@ -66857,7 +67309,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
@@ -66925,34 +67377,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
@@ -67003,10 +67455,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
@@ -67058,10 +67510,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
@@ -67097,7 +67549,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
@@ -67106,7 +67558,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
@@ -67114,48 +67566,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+5373, libc.VaList(bp, azType[int32((*Op)(unsafe.Pointer(pOp)).Fp5)-1]))
+ Xsqlite3VdbeError(tls, p, ts+5392, 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+5394, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16))))
-__197:
+ (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+5413, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16))))
+__200:
;
- goto __196
-__195:
- Xsqlite3VdbeError(tls, p, ts+3623, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16))))
-__196:
+ goto __199
+__198:
+ Xsqlite3VdbeError(tls, p, ts+3614, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16))))
+__199:
;
- 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))
-__194:
+ Xsqlite3_log(tls, (*Op)(unsafe.Pointer(pOp)).Fp1, ts+5420, 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 {
@@ -67163,7 +67615,7 @@ __198:
} else {
rc = SQLITE_DONE
}
-__199:
+__202:
;
goto vdbe_return
@@ -67212,41 +67664,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)
@@ -67293,9 +67745,9 @@ __22:
return uint16(MEM_Null)
}())
(*Mem)(unsafe.Pointer(pOut)).Fn = 0
-__205:
+__208:
if !(cnt > 0) {
- goto __206
+ goto __209
}
pOut += 56
@@ -67303,8 +67755,8 @@ __205:
(*Mem)(unsafe.Pointer(pOut)).Fflags = nullFlag
(*Mem)(unsafe.Pointer(pOut)).Fn = 0
cnt--
- goto __205
-__206:
+ goto __208
+__209:
;
goto __8
@@ -67325,11 +67777,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
@@ -67347,17 +67814,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))
@@ -67381,26 +67848,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
@@ -67417,29 +67884,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
@@ -67476,24 +67943,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]
@@ -67514,41 +67981,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
@@ -67577,86 +68044,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))
@@ -67716,158 +68183,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
@@ -67892,10 +68359,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
@@ -67934,34 +68401,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))
@@ -67970,44 +68437,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)
@@ -68036,26 +68503,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)
@@ -68072,12 +68539,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
@@ -68107,17 +68574,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
@@ -68220,58 +68687,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
@@ -68279,98 +68746,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
@@ -68381,21 +68848,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
@@ -68406,10 +68873,10 @@ __310:
(*Mem)(unsafe.Pointer(pIn1)).Fflags = flags11
if !(res2 != 0) {
- goto __313
+ goto __319
}
goto jump_to_p2
-__313:
+__319:
;
goto __8
@@ -68428,10 +68895,10 @@ __53: // same as TK_ESCAPE, jump
;
if !(iCompare == 0) {
- goto __314
+ goto __320
}
goto jump_to_p2
-__314:
+__320:
;
goto __8
@@ -68473,16 +68940,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))
@@ -68490,9 +68957,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))
@@ -68504,30 +68971,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
@@ -68538,22 +69005,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
@@ -68581,24 +69048,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
@@ -68638,13 +69105,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
@@ -68659,11 +69126,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
@@ -68686,27 +69153,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
@@ -68721,10 +69188,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
@@ -68737,10 +69204,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
@@ -68752,10 +69219,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
@@ -68770,10 +69237,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
@@ -68786,13 +69253,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
@@ -68804,10 +69271,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
@@ -68822,11 +69289,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
@@ -68849,13 +69316,13 @@ __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:
+ Xsqlite3VdbeMemSetInt64(tls, pOut, Xsqlite3BtreeOffset(tls, *(*uintptr)(unsafe.Pointer(pC + 48))))
+__353:
;
goto __8
@@ -68890,10 +69357,10 @@ __71: // PseudoTable input register
// B-Tree seek.
rc = Xsqlite3VdbeCursorMoveto(tls, bp+232, bp+240)
if !(rc != 0) {
- goto __348
+ goto __354
}
goto abort_due_to_error
-__348:
+__354:
;
pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -68901,42 +69368,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 __355
} //OPTIMIZATION-IF-FALSE
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnullRow != 0) {
- goto __350
+ goto __356
}
if !(int32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FeCurType) == CURTYPE_PSEUDO) {
- goto __352
+ goto __358
}
// 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 __359
+__358:
Xsqlite3VdbeMemSetNull(tls, pDest)
goto op_column_out
-__353:
+__359:
;
- goto __351
-__350:
- pCrsr = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 56))
+ goto __357
+__356:
+ 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 __360
}
goto too_big
-__354:
+__360:
;
-__351:
+__357:
;
(*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 {
@@ -68951,7 +69418,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 __361
} //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
@@ -68969,13 +69436,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 __363
}
goto op_column_corrupt
-__357:
+__363:
;
- goto __356
-__355:
+ goto __362
+__361:
// 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.
@@ -68992,38 +69459,38 @@ __355:
// Conditional skipped
goto op_column_read_header
-__356:
+__362:
;
-__349:
+__355:
;
// 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 __364
}
// 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 __366
}
// 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 __368
}
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 __370
}
goto abort_due_to_error
-__364:
+__370:
;
zData = (*Mem)(unsafe.Pointer(bp + 248 /* &sMem */)).Fz
- goto __363
-__362:
+ goto __369
+__368:
zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow
-__363:
+__369:
;
// Fill in pC->aType[i] and aOffset[i] values through the p2-th field.
@@ -69033,27 +69500,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
+__371:
+ if !(libc.AssignPtrUint32(*(*uintptr)(unsafe.Pointer(bp + 232))+112+uintptr(i2)*4, libc.AssignPtrUint32(bp+304, U32(*(*U8)(unsafe.Pointer(zHdr))))) < U32(0x80)) {
+ goto __374
}
zHdr++
offset64 = offset64 + U64(Xsqlite3VdbeOneByteSerialTypeLen(tls, uint8(*(*U32)(unsafe.Pointer(bp + 304)))))
- goto __369
-__368:
+ goto __375
+__374:
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:
+__375:
;
*(*U32)(unsafe.Pointer(aOffset + uintptr(libc.PreIncInt32(&i2, 1))*4)) = U32(offset64 & uint64(0xffffffff))
- goto __366
-__366:
+ goto __372
+__372:
if U32(i2) <= *(*U32)(unsafe.Pointer(bp + 240)) && zHdr < zEndHdr {
- goto __365
+ goto __371
}
- goto __367
-__367:
+ goto __373
+__373:
;
// The record is corrupt if any of the following are true:
@@ -69062,63 +69529,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 __376
}
if !(*(*U32)(unsafe.Pointer(aOffset)) == U32(0)) {
- goto __371
+ goto __377
}
i2 = 0
zHdr = zEndHdr
- goto __372
-__371:
+ goto __378
+__377:
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) {
- goto __373
+ goto __379
}
Xsqlite3VdbeMemRelease(tls, bp+248)
-__373:
+__379:
;
goto op_column_corrupt
-__372:
+__378:
;
-__370:
+__376:
;
(*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 __380
}
Xsqlite3VdbeMemRelease(tls, bp+248)
-__374:
+__380:
;
- goto __361
-__360:
+ goto __367
+__366:
*(*U32)(unsafe.Pointer(bp + 304 /* t */)) = U32(0)
-__361:
+__367:
;
// 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 __381
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -11) {
- goto __376
+ goto __382
}
Xsqlite3VdbeMemShallowCopy(tls, pDest, *(*uintptr)(unsafe.Pointer(pOp + 16)), MEM_Static)
- goto __377
-__376:
+ goto __383
+__382:
Xsqlite3VdbeMemSetNull(tls, pDest)
-__377:
+__383:
;
goto op_column_out
-__375:
+__381:
;
- 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 __365
+__364:
+ *(*U32)(unsafe.Pointer(bp + 304 /* t */)) = *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 112 + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4))
+__365:
;
// Extract the content for the p2+1-th column. Control can only
@@ -69126,55 +69593,55 @@ __359:
// all valid.
if !(int32((*Mem)(unsafe.Pointer(pDest)).Fflags)&(MEM_Agg|MEM_Dyn) != 0) {
- goto __378
+ goto __384
}
Xsqlite3VdbeMemSetNull(tls, pDest)
-__378:
+__384:
;
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 __385
}
// 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 __387
}
Xsqlite3VdbeSerialGet(tls, zData, *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest)
- goto __382
-__381:
+ goto __388
+__387:
(*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 __389
}
(*Mem)(unsafe.Pointer(pDest)).Fflags = U16(MEM_Null)
if !(Xsqlite3VdbeMemGrow(tls, pDest, len+2, 0) != 0) {
- goto __385
+ goto __391
}
goto no_mem
-__385:
+__391:
;
- goto __384
-__383:
+ goto __390
+__389:
(*Mem)(unsafe.Pointer(pDest)).Fz = (*Mem)(unsafe.Pointer(pDest)).FzMalloc
-__384:
+__390:
;
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:
+__388:
;
- goto __380
-__379:
+ goto __386
+__385:
(*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 __392
}
// Content is irrelevant for
// 1. the typeof() function,
@@ -69189,20 +69656,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 __393
+__392:
+ 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 __394
}
goto abort_due_to_error
-__388:
+__394:
;
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:
+__393:
;
-__380:
+__386:
;
op_column_out:
@@ -69212,15 +69679,15 @@ op_column_out:
op_column_corrupt:
if !((*Op)(unsafe.Pointer(aOp)).Fp3 > 0) {
- goto __389
+ goto __395
}
pOp = aOp + uintptr((*Op)(unsafe.Pointer(aOp)).Fp3-1)*24
goto __8
- goto __390
-__389:
- rc = Xsqlite3CorruptError(tls, 89604)
+ goto __396
+__395:
+ rc = Xsqlite3CorruptError(tls, 90286)
goto abort_due_to_error
-__390:
+__396:
;
// Opcode: TypeCheck P1 P2 P3 P4 *
@@ -69255,79 +69722,81 @@ __72:
aCol = (*Table)(unsafe.Pointer(pTab)).FaCol
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
i3 = 0
-__391:
+__397:
if !(i3 < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __393
+ goto __399
}
if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_GENERATED != 0) {
- goto __394
+ goto __400
}
if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_VIRTUAL != 0) {
- goto __395
+ goto __401
}
- goto __392
-__395:
+ goto __398
+__401:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __396
+ goto __402
}
pIn1 += 56
- goto __392
-__396:
+ goto __398
+__402:
;
-__394:
+__400:
;
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 __403
}
switch int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i3)*24 + 8)) & 0xf0 >> 4) {
case COLTYPE_BLOB:
- goto __399
+ goto __405
case COLTYPE_INTEGER:
- goto __400
+ goto __406
case COLTYPE_INT:
- goto __401
+ goto __407
case COLTYPE_TEXT:
- goto __402
+ goto __408
case COLTYPE_REAL:
- goto __403
+ goto __409
default:
- goto __404
+ goto __410
}
- goto __398
-__399:
+ goto __404
+__405:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) {
- goto __405
+ goto __411
}
goto vdbe_type_error
-__405:
+__411:
;
- goto __398
+ goto __404
-__400:
-__401:
+__406:
+__407:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) {
- goto __406
+ goto __412
}
goto vdbe_type_error
-__406:
+__412:
;
- goto __398
+ goto __404
-__402:
+__408:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Str == 0) {
- goto __407
+ goto __413
}
goto vdbe_type_error
-__407:
+__413:
+ ;
+ goto __404
+
+__409:
;
- goto __398
-__403:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) {
- goto __408
+ goto __414
}
// 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
@@ -69335,51 +69804,51 @@ __403:
// the type really wants to be REAL.
if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) {
- goto __410
+ goto __416
}
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
- goto __411
-__410:
+ goto __417
+__416:
*(*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:
+__417:
;
- goto __409
-__408:
- if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Real == 0) {
- goto __412
+ goto __415
+__414:
+ if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&(MEM_Real|MEM_IntReal) == 0) {
+ goto __418
}
goto vdbe_type_error
-__412:
+__418:
;
-__409:
+__415:
;
- goto __398
+ goto __404
-__404:
+__410:
// COLTYPE_ANY. Accept anything.
- goto __398
+ goto __404
-__398:
+__404:
;
-__397:
+__403:
;
pIn1 += 56
- goto __392
-__392:
+ goto __398
+__398:
i3++
- goto __391
- goto __393
-__393:
+ goto __397
+ goto __399
+__399:
;
goto __8
vdbe_type_error:
- Xsqlite3VdbeError(tls, p, ts+5425,
+ Xsqlite3VdbeError(tls, p, ts+5444,
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
@@ -69398,14 +69867,14 @@ __73: // The affinity to be applied
zAffinity = *(*uintptr)(unsafe.Pointer(pOp + 16))
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
-__413:
+__419:
if !(1 != 0) {
- goto __414
+ goto __420
}
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 __421
}
// 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
@@ -69413,30 +69882,30 @@ __413:
// the type really wants to be REAL.
if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) {
- goto __416
+ goto __422
}
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
- goto __417
-__416:
+ goto __423
+__422:
*(*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:
+__423:
;
-__415:
+__421:
;
zAffinity++
if !(int32(*(*int8)(unsafe.Pointer(zAffinity))) == 0) {
- goto __418
+ goto __424
}
- goto __414
-__418:
+ goto __420
+__424:
;
pIn1 += 56
- goto __413
-__414:
+ goto __419
+__420:
;
goto __8
@@ -69500,31 +69969,31 @@ __74: // Where to write next byte of the payload
// Apply the requested affinity to all inputs
if !(zAffinity1 != 0) {
- goto __419
+ goto __425
}
pRec = pData0
-__420:
+__426:
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 __429
}
*(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
-__423:
+__429:
;
zAffinity1++
pRec += 56
- goto __421
-__421:
+ goto __427
+__427:
if *(*int8)(unsafe.Pointer(zAffinity1)) != 0 {
- goto __420
+ goto __426
}
- goto __422
-__422:
+ goto __428
+__428:
;
-__419:
+__425:
;
// Loop through the elements that will make up the record to figure
@@ -69553,13 +70022,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:
+__430:
;
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Null != 0) {
- goto __427
+ goto __433
}
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Zero != 0) {
- goto __429
+ goto __435
}
// Values with MEM_Null and MEM_Zero are created by xColumn virtual
// table methods that never invoke sqlite3_result_xxxxx() while
@@ -69569,77 +70038,77 @@ __424:
// a true sqlite3_value_nochange().
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(10)
- goto __430
-__429:
+ goto __436
+__435:
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(0)
-__430:
+__436:
;
nHdr++
- goto __428
-__427:
+ goto __434
+__433:
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&(MEM_Int|MEM_IntReal) != 0) {
- goto __431
+ goto __437
}
// Figure out whether to use 1, 2, 4, 6 or 8 bytes.
i4 = *(*I64)(unsafe.Pointer(pRec))
if !(i4 < int64(0)) {
- goto __433
+ goto __439
}
uu = U64(^i4)
- goto __434
-__433:
+ goto __440
+__439:
uu = U64(i4)
-__434:
+__440:
;
nHdr++
if !(uu <= uint64(127)) {
- goto __435
+ goto __441
}
if !(i4&int64(1) == i4 && file_format >= 4) {
- goto __437
+ goto __443
}
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(8) + U32(uu)
- goto __438
-__437:
+ goto __444
+__443:
nData++
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(1)
-__438:
+__444:
;
- goto __436
-__435:
+ goto __442
+__441:
if !(uu <= uint64(32767)) {
- goto __439
+ goto __445
}
nData = nData + uint64(2)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(2)
- goto __440
-__439:
+ goto __446
+__445:
if !(uu <= uint64(8388607)) {
- goto __441
+ goto __447
}
nData = nData + uint64(3)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(3)
- goto __442
-__441:
+ goto __448
+__447:
if !(uu <= uint64(2147483647)) {
- goto __443
+ goto __449
}
nData = nData + uint64(4)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(4)
- goto __444
-__443:
+ goto __450
+__449:
if !(uu <= uint64(140737488355327)) {
- goto __445
+ goto __451
}
nData = nData + uint64(6)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(5)
- goto __446
-__445:
+ goto __452
+__451:
nData = nData + uint64(8)
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_IntReal != 0) {
- goto __447
+ goto __453
}
// 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
@@ -69648,79 +70117,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 __454
+__453:
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(6)
-__448:
+__454:
;
-__446:
+__452:
;
-__444:
+__450:
;
-__442:
+__448:
;
-__440:
+__446:
;
-__436:
+__442:
;
- goto __432
-__431:
+ goto __438
+__437:
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Real != 0) {
- goto __449
+ goto __455
}
nHdr++
nData = nData + uint64(8)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(7)
- goto __450
-__449:
+ goto __456
+__455:
;
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 __457
}
serial_type = serial_type + U32(*(*int32)(unsafe.Pointer(pRec))*2)
if !(nData != 0) {
- goto __452
+ goto __458
}
if !(Xsqlite3VdbeMemExpandBlob(tls, pRec) != 0) {
- goto __454
+ goto __460
}
goto no_mem
-__454:
+__460:
;
len1 = len1 + U32(*(*int32)(unsafe.Pointer(pRec)))
- goto __453
-__452:
+ goto __459
+__458:
nZero = nZero + I64(*(*int32)(unsafe.Pointer(pRec)))
-__453:
+__459:
;
-__451:
+__457:
;
nData = nData + U64(len1)
nHdr = nHdr + Xsqlite3VarintLen(tls, uint64(serial_type))
(*Mem)(unsafe.Pointer(pRec)).FuTemp = serial_type
-__450:
+__456:
;
-__432:
+__438:
;
-__428:
+__434:
;
if !(pRec == pData0) {
- goto __455
+ goto __461
}
- goto __426
-__455:
+ goto __432
+__461:
;
pRec -= 56
- goto __425
-__425:
+ goto __431
+__431:
if 1 != 0 {
- goto __424
+ goto __430
}
- goto __426
-__426:
+ goto __432
+__432:
;
// EVIDENCE-OF: R-22564-11647 The header begins with a single varint
@@ -69729,22 +70198,22 @@ __426:
// itself.
if !(nHdr <= 126) {
- goto __456
+ goto __462
}
// The common case
nHdr = nHdr + 1
- goto __457
-__456:
+ goto __463
+__462:
// Rare case of a really large header
nVarint = Xsqlite3VarintLen(tls, uint64(nHdr))
nHdr = nHdr + nVarint
if !(nVarint < Xsqlite3VarintLen(tls, uint64(nHdr))) {
- goto __458
+ goto __464
}
nHdr++
-__458:
+__464:
;
-__457:
+__463:
;
nByte1 = I64(U64(nHdr) + nData)
@@ -69753,37 +70222,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 __465
}
// 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 __466
+__465:
// 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 __467
}
goto too_big
-__461:
+__467:
;
if !(Xsqlite3VdbeMemClearAndResize(tls, pOut, int32(nByte1)) != 0) {
- goto __462
+ goto __468
}
goto no_mem
-__462:
+__468:
;
-__460:
+__466:
;
(*Mem)(unsafe.Pointer(pOut)).Fn = int32(nByte1)
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Blob)
if !(nZero != 0) {
- goto __463
+ goto __469
}
*(*int32)(unsafe.Pointer(pOut)) = int32(nZero)
*(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Zero)
-__463:
+__469:
;
zHdr1 = (*Mem)(unsafe.Pointer(pOut)).Fz
@@ -69798,7 +70267,7 @@ __463:
}())
pRec = pData0
-__464:
+__470:
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.
@@ -69811,18 +70280,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 __471
+__471:
if libc.PreIncUintptr(&pRec, 56) <= pLast {
- goto __464
+ goto __470
}
- goto __466
-__466:
+ goto __472
+__472:
;
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
@@ -69833,23 +70302,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 __473
}
*(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) = Xsqlite3BtreeRowCountEst(tls, pCrsr1)
- goto __468
-__467:
+ goto __474
+__473:
*(*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 __475
}
goto abort_due_to_error
-__469:
+__475:
;
-__468:
+__474:
;
pOut = out2Prerelease(tls, p, pOp)
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 312 /* nEntry */))
@@ -69870,17 +70339,17 @@ __76:
// transaction, then there cannot be any savepoints.
if !(p12 == SAVEPOINT_BEGIN) {
- goto __470
+ goto __476
}
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) {
- goto __472
+ goto __478
}
// A new savepoint cannot be created if there are active write
// statements (i.e. open read/write incremental blob handles).
- Xsqlite3VdbeError(tls, p, ts+5466, 0)
+ Xsqlite3VdbeError(tls, p, ts+5485, 0)
rc = SQLITE_BUSY
- goto __473
-__472:
+ goto __479
+__478:
nName = Xsqlite3Strlen30(tls, zName)
// This call is Ok even if this savepoint is actually a transaction
@@ -69891,16 +70360,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 __480
}
goto abort_due_to_error
-__474:
+__480:
;
// Create a new savepoint structure.
pNew = Xsqlite3DbMallocRawNN(tls, db, uint64(uint64(unsafe.Sizeof(Savepoint{}))+uint64(nName)+uint64(1)))
if !(pNew != 0) {
- goto __475
+ goto __481
}
(*Savepoint)(unsafe.Pointer(pNew)).FzName = pNew + 1*32
libc.Xmemcpy(tls, (*Savepoint)(unsafe.Pointer(pNew)).FzName, zName, uint64(nName+1))
@@ -69908,14 +70377,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 __482
}
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
(*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(1)
- goto __477
-__476:
+ goto __483
+__482:
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint++
-__477:
+__483:
;
// Link the new savepoint into the database handle's list.
@@ -69923,163 +70392,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:
+__481:
;
-__473:
+__479:
;
- goto __471
-__470:
+ goto __477
+__476:
;
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:
+__484:
if !(pSavepoint != 0 && Xsqlite3StrICmp(tls, (*Savepoint)(unsafe.Pointer(pSavepoint)).FzName, zName) != 0) {
- goto __480
+ goto __486
}
iSavepoint++
- goto __479
-__479:
+ goto __485
+__485:
pSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext
- goto __478
- goto __480
-__480:
+ goto __484
+ goto __486
+__486:
;
if !!(pSavepoint != 0) {
- goto __481
+ goto __487
}
- Xsqlite3VdbeError(tls, p, ts+5517, libc.VaList(bp+88, zName))
+ Xsqlite3VdbeError(tls, p, ts+5536, libc.VaList(bp+88, zName))
rc = SQLITE_ERROR
- goto __482
-__481:
+ goto __488
+__487:
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0 && p12 == SAVEPOINT_RELEASE) {
- goto __483
+ goto __489
}
// It is not possible to release (commit) a savepoint if there are
// active write statements.
Xsqlite3VdbeError(tls, p,
- ts+5539, 0)
+ ts+5558, 0)
rc = SQLITE_BUSY
- goto __484
-__483:
+ goto __490
+__489:
// 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 __491
}
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) {
- goto __487
+ goto __493
}
goto vdbe_return
-__487:
+__493:
;
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1)
if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) {
- goto __488
+ goto __494
}
(*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:
+__494:
;
rc = (*Vdbe)(unsafe.Pointer(p)).Frc
if !(rc != 0) {
- goto __489
+ goto __495
}
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
- goto __490
-__489:
+ goto __496
+__495:
(*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(0)
-__490:
+__496:
;
- goto __486
-__485:
+ goto __492
+__491:
iSavepoint = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint - iSavepoint - 1
if !(p12 == SAVEPOINT_ROLLBACK) {
- goto __491
+ goto __497
}
isSchemaChange = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != U32(0))
ii = 0
-__493:
+__499:
if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __495
+ goto __501
}
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 __502
}
goto abort_due_to_error
-__496:
+__502:
;
- goto __494
-__494:
+ goto __500
+__500:
ii++
- goto __493
- goto __495
-__495:
+ goto __499
+ goto __501
+__501:
;
- goto __492
-__491:
+ goto __498
+__497:
;
isSchemaChange = 0
-__492:
+__498:
;
ii = 0
-__497:
+__503:
if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __499
+ goto __505
}
rc = Xsqlite3BtreeSavepoint(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii)*32)).FpBt, p12, iSavepoint)
if !(rc != SQLITE_OK) {
- goto __500
+ goto __506
}
goto abort_due_to_error
-__500:
+__506:
;
- goto __498
-__498:
+ goto __504
+__504:
ii++
- goto __497
- goto __499
-__499:
+ goto __503
+ goto __505
+__505:
;
if !(isSchemaChange != 0) {
- goto __501
+ goto __507
}
Xsqlite3ExpirePreparedStatements(tls, db, 0)
Xsqlite3ResetAllSchemasOfConnection(tls, db)
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange)
-__501:
+__507:
;
-__486:
+__492:
;
if !(rc != 0) {
- goto __502
+ goto __508
}
goto abort_due_to_error
-__502:
+__508:
;
// Regardless of whether this is a RELEASE or ROLLBACK, destroy all
// savepoints nested inside of the savepoint being operated on.
-__503:
+__509:
if !((*Sqlite3)(unsafe.Pointer(db)).FpSavepoint != pSavepoint) {
- goto __504
+ goto __510
}
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 __509
+__510:
;
// If it is a RELEASE, then destroy the savepoint being operated on
@@ -70087,48 +70556,48 @@ __504:
// constraint violations present in the database to the value stored
// when the savepoint was created.
if !(p12 == SAVEPOINT_RELEASE) {
- goto __505
+ goto __511
}
(*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext
Xsqlite3DbFree(tls, db, pSavepoint)
if !!(isTransaction != 0) {
- goto __507
+ goto __513
}
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint--
-__507:
+__513:
;
- goto __506
-__505:
+ goto __512
+__511:
;
(*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredCons
(*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredImmCons
-__506:
+__512:
;
if !(!(isTransaction != 0) || p12 == SAVEPOINT_ROLLBACK) {
- goto __508
+ goto __514
}
rc = Xsqlite3VtabSavepoint(tls, db, p12, iSavepoint)
if !(rc != SQLITE_OK) {
- goto __509
+ goto __515
}
goto abort_due_to_error
-__509:
+__515:
;
-__508:
+__514:
;
-__484:
+__490:
;
-__482:
+__488:
;
-__471:
+__477:
;
if !(rc != 0) {
- goto __510
+ goto __516
}
goto abort_due_to_error
-__510:
+__516:
;
goto __8
@@ -70149,78 +70618,78 @@ __77:
// At least this one VM is active
if !(desiredAutoCommit != int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)) {
- goto __511
+ goto __517
}
if !(iRollback != 0) {
- goto __513
+ goto __519
}
Xsqlite3RollbackAll(tls, db, SQLITE_ABORT|int32(2)<<8)
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1)
- goto __514
-__513:
+ goto __520
+__519:
if !(desiredAutoCommit != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) {
- goto __515
+ goto __521
}
// 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+5593, 0)
+ ts+5612, 0)
rc = SQLITE_BUSY
goto abort_due_to_error
- goto __516
-__515:
+ goto __522
+__521:
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) {
- goto __517
+ goto __523
}
goto vdbe_return
- goto __518
-__517:
+ goto __524
+__523:
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(desiredAutoCommit)
-__518:
+__524:
;
-__516:
+__522:
;
-__514:
+__520:
;
if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) {
- goto __519
+ goto __525
}
(*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:
+__525:
;
Xsqlite3CloseSavepoints(tls, db)
if !((*Vdbe)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
- goto __520
+ goto __526
}
rc = SQLITE_DONE
- goto __521
-__520:
+ goto __527
+__526:
rc = SQLITE_ERROR
-__521:
+__527:
;
goto vdbe_return
- goto __512
-__511:
+ goto __518
+__517:
Xsqlite3VdbeError(tls, p,
func() uintptr {
if !(desiredAutoCommit != 0) {
- return ts + 5648 /* "cannot start a t..." */
+ return ts + 5667 /* "cannot start a t..." */
}
return func() uintptr {
if iRollback != 0 {
- return ts + 5696 /* "cannot rollback ..." */
+ return ts + 5715 /* "cannot rollback ..." */
}
- return ts + 5739 /* "cannot commit - ..." */
+ return ts + 5758 /* "cannot commit - ..." */
}()
}(), 0)
rc = SQLITE_ERROR
goto abort_due_to_error
-__512:
+__518:
;
/*NOTREACHED*/
@@ -70262,66 +70731,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 __528
}
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_QueryOnly) != 0) {
- goto __523
+ goto __529
}
// Writes prohibited by the "PRAGMA query_only=TRUE" statement
rc = SQLITE_READONLY
- goto __524
-__523:
+ goto __530
+__529:
// Writes prohibited due to a prior SQLITE_CORRUPT in the current
// transaction
rc = SQLITE_CORRUPT
-__524:
+__530:
;
goto abort_due_to_error
-__522:
+__528:
;
pBt = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt
if !(pBt != 0) {
- goto __525
+ goto __531
}
rc = Xsqlite3BtreeBeginTrans(tls, pBt, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+320)
if !(rc != SQLITE_OK) {
- goto __526
+ goto __532
}
if !(rc&0xff == SQLITE_BUSY) {
- goto __527
+ goto __533
}
(*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Vdbe)(unsafe.Pointer(p)).Frc = rc
goto vdbe_return
-__527:
+__533:
;
goto abort_due_to_error
-__526:
+__532:
;
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 __534
}
if !((*Vdbe)(unsafe.Pointer(p)).FiStatement == 0) {
- goto __529
+ goto __535
}
(*Sqlite3)(unsafe.Pointer(db)).FnStatement++
(*Vdbe)(unsafe.Pointer(p)).FiStatement = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint + (*Sqlite3)(unsafe.Pointer(db)).FnStatement
-__529:
+__535:
;
rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN, (*Vdbe)(unsafe.Pointer(p)).FiStatement-1)
if !(rc == SQLITE_OK) {
- goto __530
+ goto __536
}
rc = Xsqlite3BtreeBeginStmt(tls, pBt, (*Vdbe)(unsafe.Pointer(p)).FiStatement)
-__530:
+__536:
;
// Store the current value of the database handles deferred constraint
@@ -70329,22 +70798,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:
+__534:
;
-__525:
+__531:
;
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 __537
}
// 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+5780)
+ (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3DbStrDup(tls, db, ts+5799)
// 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.
@@ -70358,20 +70827,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 __538
}
Xsqlite3ResetOneSchema(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
-__532:
+__538:
;
libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3)
rc = SQLITE_SCHEMA
-__531:
+__537:
;
if !(rc != 0) {
- goto __533
+ goto __539
}
goto abort_due_to_error
-__533:
+__539:
;
goto __8
@@ -70418,37 +70887,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 __540
}
// 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 __541
+__540:
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == BTREE_FILE_FORMAT) {
- goto __536
+ goto __542
}
// Record changes in the file format
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format = U8((*Op)(unsafe.Pointer(pOp)).Fp3)
-__536:
+__542:
;
-__535:
+__541:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 == 1) {
- goto __537
+ goto __543
}
// 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:
+__543:
;
if !(rc != 0) {
- goto __538
+ goto __544
}
goto abort_due_to_error
-__538:
+__544:
;
goto __8
@@ -70538,13 +71007,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 __545
}
// 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:
+__545:
;
// If the cursor is not currently open or is open on a different
// index, then fall through into OP_OpenRead to force a reopen
@@ -70553,11 +71022,11 @@ __83:
;
if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0) == 1) {
- goto __540
+ goto __546
}
rc = SQLITE_ABORT | int32(2)<<8
goto abort_due_to_error
-__540:
+__546:
;
nField1 = 0
@@ -70569,24 +71038,24 @@ __540:
pX = (*Db)(unsafe.Pointer(pDb1)).FpBt
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_OpenWrite) {
- goto __541
+ goto __547
}
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 __549
}
(*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat = (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format
-__543:
+__549:
;
- goto __542
-__541:
+ goto __548
+__547:
wrFlag = 0
-__542:
+__548:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_P2ISREG != 0) {
- goto __544
+ goto __550
}
pIn2 = aMem + uintptr(p23)*56
@@ -70598,37 +71067,38 @@ __542:
// If there were a failure, the prepared statement would have halted
// before reaching this instruction.
-__544:
+__550:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -9) {
- goto __545
+ goto __551
}
pKeyInfo1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
nField1 = int32((*KeyInfo)(unsafe.Pointer(pKeyInfo1)).FnAllField)
- goto __546
-__545:
+ goto __552
+__551:
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -3) {
- goto __547
+ goto __553
}
nField1 = *(*int32)(unsafe.Pointer(pOp + 16))
-__547:
+__553:
;
-__546:
+__552:
;
// 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 __554
}
goto no_mem
-__548:
+__554:
;
+ (*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
@@ -70639,13 +71109,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 __555
}
goto abort_due_to_error
-__549:
+__555:
;
goto __8
@@ -70662,12 +71132,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 __556
}
goto no_mem
-__550:
+__556:
;
(*VdbeCursor)(unsafe.Pointer(pCx)).FnullRow = U8(1)
libc.SetBitFieldPtr8Uint32(pCx+8, Bool(1), 0, 0x1)
@@ -70675,11 +71145,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
@@ -70722,19 +71192,19 @@ __86:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) {
- goto __551
+ goto __557
}
// 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 + 1565 /* "" */
-__551:
+ (*Mem)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fz = ts + 1534 /* "" */
+__557:
;
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 __558
}
// If the ephermeral table is already open and has no duplicates from
// OP_OpenDup, then erase all existing content so that the table is
@@ -70742,72 +71212,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 __559
+__558:
+ pCx1 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_BTREE))
if !(pCx1 == uintptr(0)) {
- goto __554
+ goto __560
}
goto no_mem
-__554:
+__560:
;
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 __561
}
- 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 __562
}
// 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 __563
}
- 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 __565
}
- 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)))
+__565:
;
(*VdbeCursor)(unsafe.Pointer(pCx1)).FisTable = U8(0)
- goto __558
-__557:
+ goto __564
+__563:
(*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:
+__564:
;
-__556:
+__562:
;
libc.SetBitFieldPtr8Uint32(pCx1+8, Bool(libc.Bool32(int32((*Op)(unsafe.Pointer(pOp)).Fp5) != BTREE_UNORDERED)), 2, 0x4)
if !(rc != 0) {
- goto __560
+ goto __566
}
- Xsqlite3BtreeClose(tls, (*VdbeCursor)(unsafe.Pointer(pCx1)).FpBtx)
-__560:
+ Xsqlite3BtreeClose(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)))
+__566:
;
-__555:
+__561:
;
-__553:
+__559:
;
if !(rc != 0) {
- goto __561
+ goto __567
}
goto abort_due_to_error
-__561:
+__567:
;
(*VdbeCursor)(unsafe.Pointer(pCx1)).FnullRow = U8(1)
goto __8
@@ -70824,21 +71294,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 __568
}
goto no_mem
-__562:
+__568:
;
(*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 __569
}
goto abort_due_to_error
-__563:
+__569:
;
goto __8
@@ -70853,10 +71323,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 __570
}
goto jump_to_p2
-__564:
+__570:
;
goto __8
@@ -70878,12 +71348,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 __571
}
goto no_mem
-__565:
+__571:
;
(*VdbeCursor)(unsafe.Pointer(pCx3)).FnullRow = U8(1)
(*VdbeCursor)(unsafe.Pointer(pCx3)).FseekResult = (*Op)(unsafe.Pointer(pOp)).Fp2
@@ -70892,7 +71362,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
@@ -71008,7 +71478,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 __572
}
// The OPFLAG_SEEKEQ/BTREE_SEEK_EQ flag is only set on index cursors
@@ -71018,10 +71488,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 __574
}
applyNumericAffinity(tls, pIn3, 0)
-__568:
+__574:
;
iKey = Xsqlite3VdbeIntValue(tls, pIn3) // Get the integer key value
newType = (*Mem)(unsafe.Pointer(pIn3)).Fflags // Record the type after applying numeric affinity
@@ -71030,29 +71500,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 __575
}
if !(int32(newType)&MEM_Real == 0) {
- goto __570
+ goto __576
}
if !(int32(newType)&MEM_Null != 0 || oc >= OP_SeekGE) {
- goto __571
+ goto __577
}
goto jump_to_p2
- goto __572
-__571:
- rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 56)), bp+328)
+ goto __578
+__577:
+ rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+328)
if !(rc != SQLITE_OK) {
- goto __573
+ goto __579
}
goto abort_due_to_error
-__573:
+__579:
;
goto seek_not_found
-__572:
+__578:
;
-__570:
+__576:
;
c2 = Xsqlite3IntFloatCompare(tls, iKey, *(*float64)(unsafe.Pointer(pIn3)))
@@ -71063,53 +71533,53 @@ __570:
// (x > 4.9) -> (x >= 5)
// (x <= 4.9) -> (x < 5)
if !(c2 > 0) {
- goto __574
+ goto __580
}
if !(oc&0x0001 == OP_SeekGT&0x0001) {
- goto __576
+ goto __582
}
oc--
-__576:
+__582:
;
- goto __575
-__574:
+ goto __581
+__580:
if !(c2 < 0) {
- goto __577
+ goto __583
}
if !(oc&0x0001 == OP_SeekLT&0x0001) {
- goto __578
+ goto __584
}
oc++
-__578:
+__584:
;
-__577:
+__583:
;
-__575:
+__581:
;
-__569:
+__575:
;
- 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 __585
}
goto abort_due_to_error
-__579:
+__585:
;
- goto __567
-__566:
+ goto __573
+__572:
// 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 __586
}
eqOnly = 1
-__580:
+__586:
;
nField2 = *(*int32)(unsafe.Pointer(pOp + 16))
@@ -71132,99 +71602,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 __587
}
goto abort_due_to_error
-__581:
+__587:
;
if !(eqOnly != 0 && int32((*UnpackedRecord)(unsafe.Pointer(bp+336)).FeqSeen) == 0) {
- goto __582
+ goto __588
}
goto seek_not_found
-__582:
+__588:
;
-__567:
+__573:
;
if !(oc >= OP_SeekGE) {
- goto __583
+ goto __589
}
if !(*(*int32)(unsafe.Pointer(bp + 328)) < 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekGT) {
- goto __585
+ goto __591
}
*(*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 __593
}
if !(rc == SQLITE_DONE) {
- goto __588
+ goto __594
}
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1
- goto __589
-__588:
+ goto __595
+__594:
goto abort_due_to_error
-__589:
+__595:
;
-__587:
+__593:
;
- goto __586
-__585:
+ goto __592
+__591:
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
-__586:
+__592:
;
- goto __584
-__583:
+ goto __590
+__589:
;
if !(*(*int32)(unsafe.Pointer(bp + 328)) > 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekLT) {
- goto __590
+ goto __596
}
*(*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 __598
}
if !(rc == SQLITE_DONE) {
- goto __593
+ goto __599
}
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1
- goto __594
-__593:
+ goto __600
+__599:
goto abort_due_to_error
-__594:
+__600:
;
-__592:
+__598:
;
- goto __591
-__590:
+ goto __597
+__596:
// 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)))
+__597:
;
-__584:
+__590:
;
seek_not_found:
;
if !(*(*int32)(unsafe.Pointer(bp + 328)) != 0) {
- goto __595
+ goto __601
}
goto jump_to_p2
- goto __596
-__595:
+ goto __602
+__601:
if !(eqOnly != 0) {
- goto __597
+ goto __603
}
pOp += 24 // Skip the OP_IdxLt or OP_IdxGT that follows
-__597:
+__603:
;
-__596:
+__602:
;
goto __8
@@ -71281,11 +71751,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 __604
}
goto __8
-__598:
+__604:
;
nStep = (*Op)(unsafe.Pointer(pOp)).Fp1
@@ -71294,60 +71764,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:
+__605:
if !(1 != 0) {
- goto __600
+ goto __606
}
rc = Xsqlite3VdbeIdxKeyCompare(tls, db, pC4, bp+360, bp+384)
if !(rc != 0) {
- goto __601
+ goto __607
}
goto abort_due_to_error
-__601:
+__607:
;
if !(*(*int32)(unsafe.Pointer(bp + 384)) > 0) {
- goto __602
+ goto __608
}
seekscan_search_fail:
;
pOp += 24
goto jump_to_p2
-__602:
+__608:
;
if !(*(*int32)(unsafe.Pointer(bp + 384)) == 0) {
- goto __603
+ goto __609
}
goto jump_to_p2
- goto __600
-__603:
+ goto __606
+__609:
;
if !(nStep <= 0) {
- goto __604
+ goto __610
}
- goto __600
-__604:
+ goto __606
+__610:
;
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 __611
}
if !(rc == SQLITE_DONE) {
- goto __606
+ goto __612
}
rc = SQLITE_OK
goto seekscan_search_fail
- goto __607
-__606:
+ goto __613
+__612:
goto abort_due_to_error
-__607:
+__613:
;
-__605:
+__611:
;
- goto __599
-__600:
+ goto __605
+__606:
;
goto __8
@@ -71370,18 +71840,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 __614
}
(*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __609
-__608:
+ goto __615
+__614:
if !(int32((*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit) > (*Op)(unsafe.Pointer(pOp)).Fp3) {
- goto __610
+ goto __616
}
(*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp3)
-__610:
+__616:
;
-__609:
+__615:
;
goto __8
@@ -71393,10 +71863,10 @@ __97: // jump
;
if !!(int32(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))) != 0) {
- goto __611
+ goto __617
}
goto jump_to_p2_and_check_for_interrupt
-__611:
+__617:
;
goto __8
@@ -71491,10 +71961,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 __618
}
goto __8
-__612:
+__618:
;
__99: // jump, in3
@@ -71507,15 +71977,15 @@ __101:
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(*(*int32)(unsafe.Pointer(pOp + 16)) > 0) {
- goto __613
+ goto __619
}
(*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 __620
+__619:
;
rc = func() int32 {
if int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&MEM_Zero != 0 {
@@ -71525,62 +71995,62 @@ __613:
}()
if !(rc != 0) {
- goto __615
+ goto __621
}
goto no_mem
-__615:
+__621:
;
pFree = libc.AssignUintptr(&pIdxKey, Xsqlite3VdbeAllocUnpackedRecord(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo))
if !(pIdxKey == uintptr(0)) {
- goto __616
+ goto __622
}
goto no_mem
-__616:
+__622:
;
Xsqlite3VdbeRecordUnpack(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo, (*Mem)(unsafe.Pointer(pIn3)).Fn, (*Mem)(unsafe.Pointer(pIn3)).Fz, pIdxKey)
-__614:
+__620:
;
(*UnpackedRecord)(unsafe.Pointer(pIdxKey)).Fdefault_rc = int8(0)
takeJump = 0
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_NoConflict) {
- goto __617
+ goto __623
}
// 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:
+__624:
if !(ii1 < int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField)) {
- goto __620
+ goto __626
}
if !(int32((*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FaMem+uintptr(ii1)*56)).Fflags)&MEM_Null != 0) {
- goto __621
+ goto __627
}
takeJump = 1
- goto __620
-__621:
+ goto __626
+__627:
;
- goto __619
-__619:
+ goto __625
+__625:
ii1++
- goto __618
- goto __620
-__620:
+ goto __624
+ goto __626
+__626:
;
-__617:
+__623:
;
- 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 __628
}
Xsqlite3DbFreeNN(tls, db, pFree)
-__622:
+__628:
;
if !(rc != SQLITE_OK) {
- goto __623
+ goto __629
}
goto abort_due_to_error
-__623:
+__629:
;
(*VdbeCursor)(unsafe.Pointer(pC7)).FseekResult = *(*int32)(unsafe.Pointer(bp + 416 /* res4 */))
alreadyExists = libc.Bool32(*(*int32)(unsafe.Pointer(bp + 416)) == 0)
@@ -71588,31 +72058,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 __630
}
if !(alreadyExists != 0) {
- goto __626
+ goto __632
}
goto jump_to_p2
-__626:
+__632:
;
- goto __625
-__624:
+ goto __631
+__630:
;
if !(takeJump != 0 || !(alreadyExists != 0)) {
- goto __627
+ goto __633
}
goto jump_to_p2
-__627:
+__633:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_IfNoHope) {
- goto __628
+ goto __634
}
(*VdbeCursor)(unsafe.Pointer(pC7)).FseekHit = U16(*(*int32)(unsafe.Pointer(pOp + 16)))
-__628:
+__634:
;
-__625:
+__631:
;
goto __8
@@ -71666,7 +72136,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 __635
}
// 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
@@ -71676,14 +72146,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 __636
}
goto jump_to_p2
-__630:
+__636:
;
iKey1 = U64(*(*I64)(unsafe.Pointer(bp + 424)))
goto notExistsWithKey
-__629:
+__635:
;
__103: // jump, in3
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -71692,7 +72162,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)
@@ -71704,25 +72174,25 @@ notExistsWithKey:
(*VdbeCursor)(unsafe.Pointer(pC8)).FseekResult = *(*int32)(unsafe.Pointer(bp + 480 /* res5 */))
if !(*(*int32)(unsafe.Pointer(bp + 480)) != 0) {
- goto __631
+ goto __637
}
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) {
- goto __632
+ goto __638
}
- rc = Xsqlite3CorruptError(tls, 91748)
- goto __633
-__632:
+ rc = Xsqlite3CorruptError(tls, 92433)
+ goto __639
+__638:
goto jump_to_p2
-__633:
+__639:
;
-__631:
+__637:
;
if !(rc != 0) {
- goto __634
+ goto __640
}
goto abort_due_to_error
-__634:
+__640:
;
goto __8
@@ -71780,89 +72250,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 __641
}
- 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 __642
}
goto abort_due_to_error
-__636:
+__642:
;
if !(*(*int32)(unsafe.Pointer(bp + 484)) != 0) {
- goto __637
+ goto __643
}
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) = int64(1) // IMP: R-61914-48074
- goto __638
-__637:
+ goto __644
+__643:
;
- *(*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 __645
}
libc.SetBitFieldPtr8Uint32(pC9+8, Bool(1), 1, 0x2)
- goto __640
-__639:
+ goto __646
+__645:
*(*I64)(unsafe.Pointer(bp + 488 /* v */))++ // IMP: R-29538-34987
-__640:
+__646:
;
-__638:
+__644:
;
-__635:
+__641:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __641
+ goto __647
}
// Assert that P3 is a valid memory cell.
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __642
+ goto __648
}
pFrame1 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__644:
+__650:
if !((*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent != 0) {
- goto __646
+ goto __652
}
- goto __645
-__645:
+ goto __651
+__651:
pFrame1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent
- goto __644
- goto __646
-__646:
+ goto __650
+ goto __652
+__652:
;
// 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 __649
+__648:
// Assert that P3 is a valid memory cell.
;
pMem1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
-__643:
+__649:
;
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 __653
}
rc = SQLITE_FULL // IMP: R-17817-00630
goto abort_due_to_error
-__647:
+__653:
;
if !(*(*I64)(unsafe.Pointer(bp + 488)) < *(*I64)(unsafe.Pointer(pMem1))+int64(1)) {
- goto __648
+ goto __654
}
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) = *(*I64)(unsafe.Pointer(pMem1)) + int64(1)
-__648:
+__654:
;
*(*I64)(unsafe.Pointer(pMem1)) = *(*I64)(unsafe.Pointer(bp + 488 /* v */))
-__641:
+__647:
;
if !(Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) {
- goto __649
+ goto __655
}
// IMPLEMENTATION-OF: R-07677-41881 If the largest ROWID is equal to the
// largest possible integer (9223372036854775807) then the database
@@ -71871,36 +72341,36 @@ __641:
// We cannot be in random rowid mode if this is
// an AUTOINCREMENT table.
cnt1 = 0
-__650:
+__656:
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 __657
+__657:
+ 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 __656
}
- goto __652
-__652:
+ goto __658
+__658:
;
if !(rc != 0) {
- goto __653
+ goto __659
}
goto abort_due_to_error
-__653:
+__659:
;
if !(*(*int32)(unsafe.Pointer(bp + 484)) == 0) {
- goto __654
+ goto __660
}
rc = SQLITE_FULL // IMP: R-38219-53002
goto abort_due_to_error
-__654:
+__660:
;
// EV: R-40812-03570
-__649:
+__655:
;
(*VdbeCursor)(unsafe.Pointer(pC9)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(pC9)).FcacheStatus = U32(CACHE_STALE)
@@ -71955,56 +72425,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 __661
}
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 __662
+__661:
pTab1 = uintptr(0)
zDb = uintptr(0)
-__656:
+__662:
;
// Invoke the pre-update hook, if any
if !(pTab1 != 0) {
- goto __657
+ goto __663
}
if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISUPDATE != 0)) {
- goto __658
+ goto __664
}
Xsqlite3VdbePreUpdateHook(tls, p, pC10, SQLITE_INSERT, zDb, pTab1, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey, (*Op)(unsafe.Pointer(pOp)).Fp2, -1)
-__658:
+__664:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback == uintptr(0) || (*Table)(unsafe.Pointer(pTab1)).FaCol == uintptr(0)) {
- goto __659
+ goto __665
}
// Prevent post-update hook from running in cases when it should not
pTab1 = uintptr(0)
-__659:
+__665:
;
-__657:
+__663:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISNOOP != 0) {
- goto __660
+ goto __666
}
goto __8
-__660:
+__666:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) {
- goto __661
+ goto __667
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__661:
+__667:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_LASTROWID != 0) {
- goto __662
+ goto __668
}
(*Sqlite3)(unsafe.Pointer(db)).FlastRowid = (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnKey
-__662:
+__668:
;
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpData = (*Mem)(unsafe.Pointer(pData)).Fz
@@ -72016,16 +72486,16 @@ __662:
return 0
}()
if !(int32((*Mem)(unsafe.Pointer(pData)).Fflags)&MEM_Zero != 0) {
- goto __663
+ goto __669
}
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = *(*int32)(unsafe.Pointer(pData))
- goto __664
-__663:
+ goto __670
+__669:
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = 0
-__664:
+__670:
;
(*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)
@@ -72033,13 +72503,13 @@ __664:
// Invoke the update-hook if required.
if !(rc != 0) {
- goto __665
+ goto __671
}
goto abort_due_to_error
-__665:
+__671:
;
if !(pTab1 != 0) {
- goto __666
+ goto __672
}
(*struct {
@@ -72052,7 +72522,7 @@ __665:
return SQLITE_INSERT
}(),
zDb, (*Table)(unsafe.Pointer(pTab1)).FzName, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey)
-__666:
+__672:
;
goto __8
@@ -72076,12 +72546,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 __673
}
goto abort_due_to_error
-__667:
+__673:
;
goto __8
@@ -72131,28 +72601,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 __674
}
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 __676
}
- (*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)))
+__676:
;
- goto __669
-__668:
+ goto __675
+__674:
zDb1 = uintptr(0)
pTab2 = uintptr(0)
-__669:
+__675:
;
// Invoke the pre-update-hook if required.
if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && pTab2 != 0) {
- goto __671
+ goto __677
}
Xsqlite3VdbePreUpdateHook(tls, p, pC11,
@@ -72164,43 +72634,43 @@ __669:
}(),
zDb1, pTab2, (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget,
(*Op)(unsafe.Pointer(pOp)).Fp3, -1)
-__671:
+__677:
;
if !(opflags&OPFLAG_ISNOOP != 0) {
- goto __672
+ goto __678
}
goto __8
-__672:
+__678:
;
// 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 __679
}
goto abort_due_to_error
-__673:
+__679:
;
// Invoke the update-hook if required.
if !(opflags&OPFLAG_NCHANGE != 0) {
- goto __674
+ goto __680
}
(*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 __681
}
(*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:
+__681:
;
-__674:
+__680:
;
goto __8
@@ -72240,16 +72710,16 @@ __110:
rc = Xsqlite3VdbeSorterCompare(tls, pC12, pIn3, nKeyCol, bp+544)
if !(rc != 0) {
- goto __676
+ goto __682
}
goto abort_due_to_error
-__676:
+__682:
;
if !(*(*int32)(unsafe.Pointer(bp + 544)) != 0) {
- goto __677
+ goto __683
}
goto jump_to_p2
-__677:
+__683:
;
goto __8
@@ -72272,10 +72742,10 @@ __111:
rc = Xsqlite3VdbeSorterRowkey(tls, pC13, pOut)
if !(rc != 0) {
- goto __678
+ goto __684
}
goto abort_due_to_error
-__678:
+__684:
;
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8)))).FcacheStatus = U32(CACHE_STALE)
goto __8
@@ -72313,7 +72783,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
@@ -72325,29 +72795,29 @@ __112:
n3 = Xsqlite3BtreePayloadSize(tls, pCrsr3)
if !(n3 > U32(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __679
+ goto __685
}
goto too_big
-__679:
+__685:
;
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCrsr3, n3, pOut)
if !(rc != 0) {
- goto __680
+ goto __686
}
goto abort_due_to_error
-__680:
+__686:
;
if !!((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __681
+ goto __687
}
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) {
- goto __682
+ goto __688
}
goto no_mem
-__682:
+__688:
;
-__681:
+__687:
;
goto __8
@@ -72368,59 +72838,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 __689
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null)
goto __8
- goto __684
-__683:
+ goto __690
+__689:
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FdeferredMoveto != 0) {
- goto __685
+ goto __691
}
*(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = (*VdbeCursor)(unsafe.Pointer(pC15)).FmovetoTarget
- goto __686
-__685:
+ goto __692
+__691:
if !(int32((*VdbeCursor)(unsafe.Pointer(pC15)).FeCurType) == CURTYPE_VTAB) {
- goto __687
+ goto __693
}
- 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 __695
}
goto abort_due_to_error
-__689:
+__695:
;
- goto __688
-__687:
+ goto __694
+__693:
;
rc = Xsqlite3VdbeCursorRestore(tls, pC15)
if !(rc != 0) {
- goto __690
+ goto __696
}
goto abort_due_to_error
-__690:
+__696:
;
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FnullRow != 0) {
- goto __691
+ goto __697
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null)
goto __8
-__691:
+__697:
;
- *(*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)))
+__694:
;
-__686:
+__692:
;
-__684:
+__690:
;
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 552 /* v3 */))
goto __8
@@ -72437,11 +72907,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 __698
}
- Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pC16 + 56)))
-__692:
+ Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pC16 + 48)))
+__698:
;
goto __8
@@ -72470,43 +72940,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 __699
}
(*VdbeCursor)(unsafe.Pointer(pC17)).FseekResult = -1
if !(Xsqlite3BtreeCursorIsValidNN(tls, pCrsr4) != 0) {
- goto __694
+ goto __700
}
goto __8
-__694:
+__700:
;
-__693:
+__699:
;
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 __701
}
goto abort_due_to_error
-__695:
+__701:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp2 > 0) {
- goto __696
+ goto __702
}
if !(*(*int32)(unsafe.Pointer(bp + 560)) != 0) {
- goto __697
+ goto __703
}
goto jump_to_p2
-__697:
+__703:
;
-__696:
+__702:
;
goto __8
@@ -72518,33 +72988,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 __704
}
goto abort_due_to_error
-__698:
+__704:
;
if !(*(*int32)(unsafe.Pointer(bp + 564)) == 0) {
- goto __699
+ goto __705
}
sz = Xsqlite3BtreeRowCountEst(tls, pCrsr5)
if !(sz >= int64(0) && int32(Xsqlite3LogEst(tls, U64(sz))) < (*Op)(unsafe.Pointer(pOp)).Fp3) {
- goto __700
+ goto __706
}
*(*int32)(unsafe.Pointer(bp + 564 /* res9 */)) = 1
-__700:
+__706:
;
-__699:
+__705:
;
if !(*(*int32)(unsafe.Pointer(bp + 564)) != 0) {
- goto __701
+ goto __707
}
goto jump_to_p2
-__701:
+__707:
;
goto __8
@@ -72589,32 +73059,32 @@ __120:
*(*int32)(unsafe.Pointer(bp + 568 /* res10 */)) = 1
if !(int32((*VdbeCursor)(unsafe.Pointer(pC19)).FeCurType) == CURTYPE_SORTER) {
- goto __702
+ goto __708
}
rc = Xsqlite3VdbeSorterRewind(tls, pC19, bp+568)
- goto __703
-__702:
+ goto __709
+__708:
;
- 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:
+__709:
;
if !(rc != 0) {
- goto __704
+ goto __710
}
goto abort_due_to_error
-__704:
+__710:
;
(*VdbeCursor)(unsafe.Pointer(pC19)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 568 /* res10 */)))
if !(*(*int32)(unsafe.Pointer(bp + 568)) != 0) {
- goto __705
+ goto __711
}
goto jump_to_p2
-__705:
+__711:
;
goto __8
@@ -72692,23 +73162,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 __712
}
(*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:
+__712:
;
if !(rc != SQLITE_DONE) {
- goto __707
+ goto __713
}
goto abort_due_to_error
-__707:
+__713:
;
rc = SQLITE_OK
(*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(1)
@@ -72748,10 +73218,10 @@ __124:
pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) {
- goto __708
+ goto __714
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__708:
+__714:
;
rc = func() int32 {
@@ -72761,16 +73231,16 @@ __708:
return 0
}()
if !(rc != 0) {
- goto __709
+ goto __715
}
goto abort_due_to_error
-__709:
+__715:
;
(*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 {
@@ -72781,10 +73251,10 @@ __709:
(*VdbeCursor)(unsafe.Pointer(pC21)).FcacheStatus = U32(CACHE_STALE)
if !(rc != 0) {
- goto __710
+ goto __716
}
goto abort_due_to_error
-__710:
+__716:
;
goto __8
@@ -72807,17 +73277,17 @@ __125:
return 0
}()
if !(rc != 0) {
- goto __711
+ goto __717
}
goto abort_due_to_error
-__711:
+__717:
;
rc = Xsqlite3VdbeSorterWrite(tls, pC22, pIn2)
if !(rc != 0) {
- goto __712
+ goto __718
}
goto abort_due_to_error
-__712:
+__718:
;
goto __8
@@ -72840,7 +73310,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)
@@ -72848,31 +73318,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 __719
}
goto abort_due_to_error
-__713:
+__719:
;
if !(*(*int32)(unsafe.Pointer(bp + 648)) == 0) {
- goto __714
+ goto __720
}
rc = Xsqlite3BtreeDelete(tls, pCrsr7, uint8(BTREE_AUXDELETE))
if !(rc != 0) {
- goto __716
+ goto __722
}
goto abort_due_to_error
-__716:
+__722:
;
- goto __715
-__714:
+ goto __721
+__720:
if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0 && !(Xsqlite3WritableSchema(tls, db) != 0)) {
- goto __717
+ goto __723
}
- rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 92800, ts+5808)
+ rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 93485, ts+5827)
goto abort_due_to_error
-__717:
+__723:
;
-__715:
+__721:
;
(*VdbeCursor)(unsafe.Pointer(pC23)).FcacheStatus = U32(CACHE_STALE)
@@ -72919,25 +73389,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 __724
}
goto abort_due_to_error
-__718:
+__724:
;
if !!(int32((*VdbeCursor)(unsafe.Pointer(pC24)).FnullRow) != 0) {
- goto __719
+ goto __725
}
*(*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 __727
}
goto abort_due_to_error
-__721:
+__727:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_DeferredSeek) {
- goto __722
+ goto __728
}
pTabCur = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8))
@@ -72946,20 +73416,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 __729
+__728:
pOut = out2Prerelease(tls, p, pOp)
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 656 /* rowid */))
-__723:
+__729:
;
- goto __720
-__719:
+ goto __726
+__725:
;
Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56)
-__720:
+__726:
;
goto __8
@@ -72973,16 +73443,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 __730
}
rc = Xsqlite3VdbeFinishMoveto(tls, pC25)
if !(rc != 0) {
- goto __725
+ goto __731
}
goto abort_due_to_error
-__725:
+__731:
;
-__724:
+__730:
;
goto __8
@@ -73036,15 +73506,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 __732
}
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(-1)
- goto __727
-__726:
+ goto __733
+__732:
;
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(0)
-__727:
+__733:
;
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -73052,25 +73522,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 __734
}
- rc = Xsqlite3CorruptError(tls, 93004)
+ rc = Xsqlite3CorruptError(tls, 93689)
goto abort_due_to_error
-__728:
+__734:
;
Xsqlite3VdbeMemInit(tls, bp+664, db, uint16(0))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur1, U32(nCellKey), bp+664)
if !(rc != 0) {
- goto __729
+ goto __735
}
goto abort_due_to_error
-__729:
+__735:
;
res12 = Xsqlite3VdbeRecordCompareWithSkip(tls, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fn, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fz, bp+720, 0)
Xsqlite3VdbeMemRelease(tls, bp+664)
@@ -73078,22 +73548,22 @@ __729:
// End of inlined sqlite3VdbeIdxKeyCompare()
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode)&1 == OP_IdxLT&1) {
- goto __730
+ goto __736
}
res12 = -res12
- goto __731
-__730:
+ goto __737
+__736:
;
res12++
-__731:
+__737:
;
if !(res12 > 0) {
- goto __732
+ goto __738
}
goto jump_to_p2
-__732:
+__738:
;
goto __8
@@ -73129,13 +73599,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 __739
}
rc = SQLITE_LOCKED
(*Vdbe)(unsafe.Pointer(p)).FerrorAction = U8(OE_Abort)
goto abort_due_to_error
- goto __734
-__733:
+ goto __740
+__739:
iDb2 = (*Op)(unsafe.Pointer(pOp)).Fp3
*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */)) = 0 // Not needed. Only to silence a warning.
@@ -73143,21 +73613,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 __741
}
goto abort_due_to_error
-__735:
+__741:
;
if !(*(*int32)(unsafe.Pointer(bp + 744)) != 0) {
- goto __736
+ goto __742
}
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:
+__742:
;
-__734:
+__740:
;
goto __8
@@ -73183,23 +73653,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 __743
}
*(*I64)(unsafe.Pointer(p + 64)) += *(*I64)(unsafe.Pointer(bp + 752))
if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) {
- goto __738
+ goto __744
}
*(*I64)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)) += *(*I64)(unsafe.Pointer(bp + 752))
-__738:
+__744:
;
-__737:
+__743:
;
if !(rc != 0) {
- goto __739
+ goto __745
}
goto abort_due_to_error
-__739:
+__745:
;
goto __8
@@ -73215,21 +73685,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 __746
}
- Xsqlite3VdbeSorterReset(tls, db, *(*uintptr)(unsafe.Pointer(pC27 + 56)))
- goto __741
-__740:
+ Xsqlite3VdbeSorterReset(tls, db, *(*uintptr)(unsafe.Pointer(pC27 + 48)))
+ goto __747
+__746:
;
- rc = Xsqlite3BtreeClearTableOfCursor(tls, *(*uintptr)(unsafe.Pointer(pC27 + 56)))
+ rc = Xsqlite3BtreeClearTableOfCursor(tls, *(*uintptr)(unsafe.Pointer(pC27 + 48)))
if !(rc != 0) {
- goto __742
+ goto __748
}
goto abort_due_to_error
-__742:
+__748:
;
-__741:
+__747:
;
goto __8
@@ -73250,10 +73720,10 @@ __137:
rc = Xsqlite3BtreeCreateTable(tls, (*Db)(unsafe.Pointer(pDb2)).FpBt, bp+760, (*Op)(unsafe.Pointer(pOp)).Fp3)
if !(rc != 0) {
- goto __743
+ goto __749
}
goto abort_due_to_error
-__743:
+__749:
;
*(*I64)(unsafe.Pointer(pOut)) = I64(*(*Pgno)(unsafe.Pointer(bp + 760 /* pgno */)))
goto __8
@@ -73267,10 +73737,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 __750
}
goto abort_due_to_error
-__744:
+__750:
;
goto __8
@@ -73291,31 +73761,31 @@ __139:
iDb3 = (*Op)(unsafe.Pointer(pOp)).Fp1
if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0)) {
- goto __745
+ goto __751
}
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 __752
+__751:
- zSchema = ts + 5825 /* "sqlite_master" */
+ zSchema = ts + 5844 /* "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+5839,
+ ts+5858,
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 __753
}
rc = SQLITE_NOMEM
- goto __748
-__747:
+ goto __754
+__753:
;
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(1)
(*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc = SQLITE_OK
@@ -73325,38 +73795,38 @@ __747:
f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{Xsqlite3InitCallback})), bp+768 /* &initData */, uintptr(0))
if !(rc == SQLITE_OK) {
- goto __749
+ goto __755
}
rc = (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc
-__749:
+__755:
;
if !(rc == SQLITE_OK && (*InitData)(unsafe.Pointer(bp+768)).FnInitRow == U32(0)) {
- goto __750
+ goto __756
}
// 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, 93941)
+__756:
;
Xsqlite3DbFreeNN(tls, db, zSql)
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(0)
-__748:
+__754:
;
-__746:
+__752:
;
if !(rc != 0) {
- goto __751
+ goto __757
}
Xsqlite3ResetAllSchemasOfConnection(tls, db)
if !(rc == SQLITE_NOMEM) {
- goto __752
+ goto __758
}
goto no_mem
-__752:
+__758:
;
goto abort_due_to_error
-__751:
+__757:
;
goto __8
@@ -73369,10 +73839,10 @@ __140:
;
rc = Xsqlite3AnalysisLoad(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
if !(rc != 0) {
- goto __753
+ goto __759
}
goto abort_due_to_error
-__753:
+__759:
;
goto __8
@@ -73444,22 +73914,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 __760
}
- goto __755
-__754:
+ goto __761
+__760:
if !(z == uintptr(0)) {
- goto __756
+ goto __762
}
goto no_mem
- goto __757
-__756:
+ goto __763
+__762:
*(*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:
+__763:
;
-__755:
+__761:
;
Xsqlite3VdbeChangeEncoding(tls, pIn1, int32(encoding))
@@ -73477,15 +73947,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 __764
}
if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) {
- goto __759
+ goto __765
}
goto no_mem
-__759:
+__765:
;
-__758:
+__764:
;
Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn2)))
@@ -73504,18 +73974,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 __766
}
// The boolean index is empty
Xsqlite3VdbeMemSetNull(tls, pIn1)
goto jump_to_p2_and_check_for_interrupt
- goto __761
-__760:
+ goto __767
+__766:
// A value was pulled from the index
;
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*I64)(unsafe.Pointer(bp + 816 /* val */)))
-__761:
+__767:
;
goto check_for_interrupt
@@ -73550,35 +74020,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 __768
}
if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) {
- goto __763
+ goto __769
}
goto no_mem
-__763:
+__769:
;
-__762:
+__768:
;
if !(iSet != 0) {
- goto __764
+ goto __770
}
exists = Xsqlite3RowSetTest(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, iSet, *(*I64)(unsafe.Pointer(pIn3)))
if !(exists != 0) {
- goto __765
+ goto __771
}
goto jump_to_p2
-__765:
+__771:
;
-__764:
+__770:
;
if !(iSet >= 0) {
- goto __766
+ goto __772
}
Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn3)))
-__766:
+__772:
;
goto __8
@@ -73613,37 +74083,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 __773
}
t1 = (*SubProgram)(unsafe.Pointer(pProgram)).Ftoken
pFrame2 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__768:
+__774:
if !(pFrame2 != 0 && (*VdbeFrame)(unsafe.Pointer(pFrame2)).Ftoken != t1) {
- goto __770
+ goto __776
}
- goto __769
-__769:
+ goto __775
+__775:
pFrame2 = (*VdbeFrame)(unsafe.Pointer(pFrame2)).FpParent
- goto __768
- goto __770
-__770:
+ goto __774
+ goto __776
+__776:
;
if !(pFrame2 != 0) {
- goto __771
+ goto __777
}
goto __8
-__771:
+__777:
;
-__767:
+__773:
;
if !((*Vdbe)(unsafe.Pointer(p)).FnFrame >= *(*int32)(unsafe.Pointer(db + 136 + 10*4))) {
- goto __772
+ goto __778
}
rc = SQLITE_ERROR
- Xsqlite3VdbeError(tls, p, ts+5882, 0)
+ Xsqlite3VdbeError(tls, p, ts+5901, 0)
goto abort_due_to_error
-__772:
+__778:
;
// Register pRt is used to store the memory required to save the state
@@ -73651,7 +74121,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 __779
}
// SubProgram.nMem is set to the number of memory cells used by the
// program stored in SubProgram.aOp. As well as these, one memory
@@ -73660,10 +74130,10 @@ __772:
nMem = (*SubProgram)(unsafe.Pointer(pProgram)).FnMem + (*SubProgram)(unsafe.Pointer(pProgram)).FnCsr
if !((*SubProgram)(unsafe.Pointer(pProgram)).FnCsr == 0) {
- goto __775
+ goto __781
}
nMem++
-__775:
+__781:
;
nByte2 = int32((uint64(unsafe.Sizeof(VdbeFrame{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7)) +
uint64(nMem)*uint64(unsafe.Sizeof(Mem{})) +
@@ -73671,10 +74141,10 @@ __775:
uint64(((*SubProgram)(unsafe.Pointer(pProgram)).FnOp+7)/8))
pFrame2 = Xsqlite3DbMallocZero(tls, db, uint64(nByte2))
if !!(pFrame2 != 0) {
- goto __776
+ goto __782
}
goto no_mem
-__776:
+__782:
;
Xsqlite3VdbeMemRelease(tls, pRt)
(*Mem)(unsafe.Pointer(pRt)).Fflags = U16(MEM_Blob | MEM_Dyn)
@@ -73696,24 +74166,24 @@ __776:
pEnd = pFrame2 + 120 + uintptr((*VdbeFrame)(unsafe.Pointer(pFrame2)).FnChildMem)*56
pMem2 = pFrame2 + 120
-__777:
+__783:
if !(pMem2 != pEnd) {
- goto __779
+ goto __785
}
(*Mem)(unsafe.Pointer(pMem2)).Fflags = U16(MEM_Undefined)
(*Mem)(unsafe.Pointer(pMem2)).Fdb = db
- goto __778
-__778:
+ goto __784
+__784:
pMem2 += 56
- goto __777
- goto __779
-__779:
+ goto __783
+ goto __785
+__785:
;
- goto __774
-__773:
+ goto __780
+__779:
pFrame2 = (*Mem)(unsafe.Pointer(pRt)).Fz
-__774:
+__780:
;
(*Vdbe)(unsafe.Pointer(p)).FnFrame++
@@ -73764,21 +74234,21 @@ __149:
// statement counter is incremented (immediate foreign key constraints).
__150:
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_DeferFKs) != 0) {
- goto __780
+ goto __786
}
*(*I64)(unsafe.Pointer(db + 784)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __781
-__780:
+ goto __787
+__786:
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __782
+ goto __788
}
*(*I64)(unsafe.Pointer(db + 776)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __783
-__782:
+ goto __789
+__788:
*(*I64)(unsafe.Pointer(p + 88)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
-__783:
+__789:
;
-__781:
+__787:
;
goto __8
@@ -73795,25 +74265,25 @@ __781:
// (immediate foreign key constraint violations).
__151: // jump
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __784
+ goto __790
}
if !((*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) {
- goto __786
+ goto __792
}
goto jump_to_p2
-__786:
+__792:
;
- goto __785
-__784:
+ goto __791
+__790:
;
if !((*Vdbe)(unsafe.Pointer(p)).FnFkConstraint == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) {
- goto __787
+ goto __793
}
goto jump_to_p2
-__787:
+__793:
;
-__785:
+__791:
;
goto __8
@@ -73829,35 +74299,35 @@ __785:
// an integer.
__152:
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __788
+ goto __794
}
pFrame4 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__790:
+__796:
if !((*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent != 0) {
- goto __792
+ goto __798
}
- goto __791
-__791:
+ goto __797
+__797:
pFrame4 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent
- goto __790
- goto __792
-__792:
+ goto __796
+ goto __798
+__798:
;
pIn1 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
- goto __789
-__788:
+ goto __795
+__794:
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
-__789:
+__795:
;
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 __799
}
*(*I64)(unsafe.Pointer(pIn1)) = *(*I64)(unsafe.Pointer(pIn2))
-__793:
+__799:
;
goto __8
@@ -73874,11 +74344,11 @@ __153: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) {
- goto __794
+ goto __800
}
*(*I64)(unsafe.Pointer(pIn1)) -= I64((*Op)(unsafe.Pointer(pOp)).Fp3)
goto jump_to_p2
-__794:
+__800:
;
goto __8
@@ -73911,7 +74381,7 @@ __154:
}
return int64(0)
}()) != 0) {
- goto __795
+ goto __801
}
// 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
@@ -73921,10 +74391,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 __802
+__801:
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 824 /* x3 */))
-__796:
+__802:
;
goto __8
@@ -73939,16 +74409,16 @@ __155: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(*(*I64)(unsafe.Pointer(pIn1)) != 0) {
- goto __797
+ goto __803
}
if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) {
- goto __798
+ goto __804
}
*(*I64)(unsafe.Pointer(pIn1))--
-__798:
+__804:
;
goto jump_to_p2
-__797:
+__803:
;
goto __8
@@ -73961,17 +74431,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 __805
}
*(*I64)(unsafe.Pointer(pIn1))--
-__799:
+__805:
;
if !(*(*I64)(unsafe.Pointer(pIn1)) == int64(0)) {
- goto __800
+ goto __806
}
goto jump_to_p2
-__800:
+__806:
;
goto __8
@@ -74018,10 +74488,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 __807
}
goto no_mem
-__801:
+__807:
;
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FpMem = uintptr(0)
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut = pCtx + 48 + uintptr(n4)*8
@@ -74049,75 +74519,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 __808
}
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem = pMem3
i5 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc) - 1
-__803:
+__809:
if !(i5 >= 0) {
- goto __805
+ goto __811
}
*(*uintptr)(unsafe.Pointer(pCtx1 + 48 + uintptr(i5)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i5)*56
- goto __804
-__804:
+ goto __810
+__810:
i5--
- goto __803
- goto __805
-__805:
+ goto __809
+ goto __811
+__811:
;
-__802:
+__808:
;
(*Mem)(unsafe.Pointer(pMem3)).Fn++
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __806
+ goto __812
}
(*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 __813
+__812:
(*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:
+__813:
; // IMP: R-24505-23230
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError != 0) {
- goto __808
+ goto __814
}
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError > 0) {
- goto __809
+ goto __815
}
- Xsqlite3VdbeError(tls, p, ts+3623, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)))
+ Xsqlite3VdbeError(tls, p, ts+3614, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)))
rc = (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError
-__809:
+__815:
;
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag != 0) {
- goto __810
+ goto __816
}
i5 = (*Op)(unsafe.Pointer(pOp + libc.UintptrFromInt32(-1)*24)).Fp1
if !(i5 != 0) {
- goto __811
+ goto __817
}
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr(i5)*56, int64(1))
-__811:
+__817:
;
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag = U8(0)
-__810:
+__816:
;
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 __818
}
goto abort_due_to_error
-__812:
+__818:
;
-__808:
+__814:
;
goto __8
@@ -74153,32 +74623,32 @@ __161:
pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __813
+ goto __819
}
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 __820
+__819:
rc = Xsqlite3VdbeMemFinalize(tls, pMem4, *(*uintptr)(unsafe.Pointer(pOp + 16)))
-__814:
+__820:
;
if !(rc != 0) {
- goto __815
+ goto __821
}
- Xsqlite3VdbeError(tls, p, ts+3623, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4)))
+ Xsqlite3VdbeError(tls, p, ts+3614, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4)))
goto abort_due_to_error
-__815:
+__821:
;
Xsqlite3VdbeChangeEncoding(tls, pMem4, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pMem4) != 0) {
- goto __816
+ goto __822
}
goto too_big
-__816:
+__822:
;
goto __8
@@ -74200,32 +74670,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 __823
}
if !(rc != SQLITE_BUSY) {
- goto __818
+ goto __824
}
goto abort_due_to_error
-__818:
+__824:
;
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 832)) = 1
-__817:
+__823:
;
i6 = 0
pMem5 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
-__819:
+__825:
if !(i6 < 3) {
- goto __821
+ goto __827
}
Xsqlite3VdbeMemSetInt64(tls, pMem5, I64(*(*int32)(unsafe.Pointer(bp + 832 + uintptr(i6)*4))))
- goto __820
-__820:
+ goto __826
+__826:
i6++
pMem5 += 56
- goto __819
- goto __821
-__821:
+ goto __825
+ goto __827
+__827:
;
goto __8
@@ -74248,17 +74718,17 @@ __163: // Name of database file for pPager
pPager = Xsqlite3BtreePager(tls, pBt1)
eOld = Xsqlite3PagerGetJournalMode(tls, pPager)
if !(eNew == -1) {
- goto __822
+ goto __828
}
eNew = eOld
-__822:
+__828:
;
if !!(Xsqlite3PagerOkToChangeJournalMode(tls, pPager) != 0) {
- goto __823
+ goto __829
}
eNew = eOld
-__823:
+__829:
;
zFilename = Xsqlite3PagerFilename(tls, pPager, 1)
@@ -74268,34 +74738,34 @@ __823:
if !(eNew == PAGER_JOURNALMODE_WAL &&
(Xsqlite3Strlen30(tls, zFilename) == 0 ||
!(Xsqlite3PagerWalSupported(tls, pPager) != 0))) {
- goto __824
+ goto __830
}
eNew = eOld
-__824:
+__830:
;
if !(eNew != eOld &&
(eOld == PAGER_JOURNALMODE_WAL || eNew == PAGER_JOURNALMODE_WAL)) {
- goto __825
+ goto __831
}
if !(!(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) != 0) || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1) {
- goto __826
+ goto __832
}
rc = SQLITE_ERROR
Xsqlite3VdbeError(tls, p,
- ts+5919,
+ ts+5938,
libc.VaList(bp+136, func() uintptr {
if eNew == PAGER_JOURNALMODE_WAL {
- return ts + 5971 /* "into" */
+ return ts + 5990 /* "into" */
}
- return ts + 5976 /* "out of" */
+ return ts + 5995 /* "out of" */
}()))
goto abort_due_to_error
- goto __827
-__826:
+ goto __833
+__832:
if !(eOld == PAGER_JOURNALMODE_WAL) {
- goto __828
+ goto __834
}
// If leaving WAL mode, close the log file. If successful, the call
// to PagerCloseWal() checkpoints and deletes the write-ahead-log
@@ -74303,29 +74773,29 @@ __826:
// after a successful return.
rc = Xsqlite3PagerCloseWal(tls, pPager, db)
if !(rc == SQLITE_OK) {
- goto __830
+ goto __836
}
Xsqlite3PagerSetJournalMode(tls, pPager, eNew)
-__830:
+__836:
;
- goto __829
-__828:
+ goto __835
+__834:
if !(eOld == PAGER_JOURNALMODE_MEMORY) {
- goto __831
+ goto __837
}
// Cannot transition directly from MEMORY to WAL. Use mode OFF
// as an intermediate
Xsqlite3PagerSetJournalMode(tls, pPager, PAGER_JOURNALMODE_OFF)
-__831:
+__837:
;
-__829:
+__835:
;
// 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 __838
}
rc = Xsqlite3BtreeSetVersion(tls, pBt1, func() int32 {
if eNew == PAGER_JOURNALMODE_WAL {
@@ -74333,18 +74803,18 @@ __829:
}
return 1
}())
-__832:
+__838:
;
-__827:
+__833:
;
-__825:
+__831:
;
if !(rc != 0) {
- goto __833
+ goto __839
}
eNew = eOld
-__833:
+__839:
;
eNew = Xsqlite3PagerSetJournalMode(tls, pPager, eNew)
@@ -74354,10 +74824,10 @@ __833:
(*Mem)(unsafe.Pointer(pOut)).Fenc = U8(SQLITE_UTF8)
Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))
if !(rc != 0) {
- goto __834
+ goto __840
}
goto abort_due_to_error
-__834:
+__840:
;
goto __8
@@ -74379,10 +74849,10 @@ __164:
return uintptr(0)
}())
if !(rc != 0) {
- goto __835
+ goto __841
}
goto abort_due_to_error
-__835:
+__841:
;
goto __8
@@ -74398,17 +74868,17 @@ __165:
rc = Xsqlite3BtreeIncrVacuum(tls, pBt2)
if !(rc != 0) {
- goto __836
+ goto __842
}
if !(rc != SQLITE_DONE) {
- goto __837
+ goto __843
}
goto abort_due_to_error
-__837:
+__843:
;
rc = SQLITE_OK
goto jump_to_p2
-__836:
+__842:
;
goto __8
@@ -74430,13 +74900,13 @@ __836:
__166:
;
if !!((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __838
+ goto __844
}
Xsqlite3ExpirePreparedStatements(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __839
-__838:
+ goto __845
+__844:
libc.SetBitFieldPtr16Uint32(p+208, Bft((*Op)(unsafe.Pointer(pOp)).Fp2+1), 0, 0x3)
-__839:
+__845:
;
goto __8
@@ -74448,7 +74918,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 * * * *
@@ -74459,7 +74929,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 *
@@ -74479,25 +74949,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 __846
}
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 __847
}
if !(rc&0xFF == SQLITE_LOCKED) {
- goto __842
+ goto __848
}
z1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
- Xsqlite3VdbeError(tls, p, ts+5983, libc.VaList(bp+144, z1))
-__842:
+ Xsqlite3VdbeError(tls, p, ts+6002, libc.VaList(bp+144, z1))
+__848:
;
goto abort_due_to_error
-__841:
+__847:
;
-__840:
+__846:
;
goto __8
@@ -74513,16 +74983,16 @@ __170:
pVTab = *(*uintptr)(unsafe.Pointer(pOp + 16))
rc = Xsqlite3VtabBegin(tls, db, pVTab)
if !(pVTab != 0) {
- goto __843
+ goto __849
}
Xsqlite3VtabImportErrmsg(tls, p, (*VTable)(unsafe.Pointer(pVTab)).FpVtab)
-__843:
+__849:
;
if !(rc != 0) {
- goto __844
+ goto __850
}
goto abort_due_to_error
-__844:
+__850:
;
goto __8
@@ -74542,17 +75012,17 @@ __171: // Name of the virtual table
zTab = Xsqlite3_value_text(tls, bp+848)
if !(zTab != 0) {
- goto __845
+ goto __851
}
rc = Xsqlite3VtabCallCreate(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, zTab, p+176)
-__845:
+__851:
;
Xsqlite3VdbeMemRelease(tls, bp+848)
if !(rc != 0) {
- goto __846
+ goto __852
}
goto abort_due_to_error
-__846:
+__852:
;
goto __8
@@ -74566,10 +75036,10 @@ __172:
(*Sqlite3)(unsafe.Pointer(db)).FnVDestroy--
if !(rc != 0) {
- goto __847
+ goto __853
}
goto abort_due_to_error
-__847:
+__853:
;
goto __8
@@ -74584,11 +75054,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 __854
}
rc = SQLITE_LOCKED
goto abort_due_to_error
-__848:
+__854:
;
pModule1 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FpModule
rc = (*struct {
@@ -74596,31 +75066,57 @@ __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 __855
}
goto abort_due_to_error
-__849:
+__855:
;
// 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 __856
}
- *(*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 __857
+__856:
;
(*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:
+__857:
+ ;
+ 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 __858
+ }
+ goto no_mem
+__858:
;
+ (*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+5308, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
goto __8
// Opcode: VFilter P1 P2 P3 P4 *
@@ -74641,13 +75137,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
@@ -74659,27 +75155,27 @@ __174:
// Invoke the xFilter method
apArg = (*Vdbe)(unsafe.Pointer(p)).FapArg
i7 = 0
-__852:
+__859:
if !(i7 < nArg) {
- goto __854
+ goto __861
}
*(*uintptr)(unsafe.Pointer(apArg + uintptr(i7)*8)) = pArgc + uintptr(i7+1)*56
- goto __853
-__853:
+ goto __860
+__860:
i7++
- goto __852
- goto __854
-__854:
+ goto __859
+ goto __861
+__861:
;
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 __862
}
goto abort_due_to_error
-__855:
+__862:
;
res13 = (*struct {
f func(*libc.TLS, uintptr) int32
@@ -74687,10 +75183,10 @@ __855:
(*VdbeCursor)(unsafe.Pointer(pCur3)).FnullRow = U8(0)
if !(res13 != 0) {
- goto __856
+ goto __863
}
goto jump_to_p2
-__856:
+__863:
;
goto __8
@@ -74707,60 +75203,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 __864
}
Xsqlite3VdbeMemSetNull(tls, pDest2)
goto __8
-__857:
+__864:
;
- 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 __865
}
Xsqlite3VdbeMemSetNull(tls, pDest2)
(*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(MEM_Null | MEM_Zero)
*(*int32)(unsafe.Pointer(pDest2)) = 0
- goto __859
-__858:
+ goto __866
+__865:
(*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pDest2)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
-__859:
+__866:
;
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 __867
}
- Xsqlite3VdbeError(tls, p, ts+3623, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2)))
+ Xsqlite3VdbeError(tls, p, ts+3614, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2)))
rc = (*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FisError
-__860:
+__867:
;
Xsqlite3VdbeChangeEncoding(tls, pDest2, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pDest2) != 0) {
- goto __861
+ goto __868
}
goto too_big
-__861:
+__868:
;
if !(rc != 0) {
- goto __862
+ goto __869
}
goto abort_due_to_error
-__862:
+__869:
;
goto __8
@@ -74769,17 +75265,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 __870
}
goto __8
-__863:
+__870:
;
- 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
@@ -74789,24 +75285,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 __871
}
goto abort_due_to_error
-__864:
+__871:
;
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 __872
}
// If there is data, jump to P2
goto jump_to_p2_and_check_for_interrupt
-__865:
+__872:
;
goto check_for_interrupt
@@ -74815,7 +75311,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)
@@ -74824,27 +75320,27 @@ __177:
rc = Xsqlite3VdbeChangeEncoding(tls, pName, SQLITE_UTF8)
if !(rc != 0) {
- goto __866
+ goto __873
}
goto abort_due_to_error
-__866:
+__873:
;
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 __874
}
*(*U64)(unsafe.Pointer(db + 48)) &= libc.CplUint64(uint64(SQLITE_LegacyAlter))
-__867:
+__874:
;
Xsqlite3VtabImportErrmsg(tls, p, pVtab5)
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3)
if !(rc != 0) {
- goto __868
+ goto __875
}
goto abort_due_to_error
-__868:
+__875:
;
goto __8
@@ -74874,47 +75370,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 __876
}
goto no_mem
-__869:
+__876:
;
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 __877
}
rc = SQLITE_LOCKED
goto abort_due_to_error
-__870:
+__877:
;
pModule5 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule
nArg1 = (*Op)(unsafe.Pointer(pOp)).Fp2
if !((*Sqlite3_module)(unsafe.Pointer(pModule5)).FxUpdate != 0) {
- goto __871
+ goto __878
}
vtabOnConflict = (*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict
apArg1 = (*Vdbe)(unsafe.Pointer(p)).FapArg
pX1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
i8 = 0
-__872:
+__879:
if !(i8 < nArg1) {
- goto __874
+ goto __881
}
*(*uintptr)(unsafe.Pointer(apArg1 + uintptr(i8)*8)) = pX1
pX1 += 56
- goto __873
-__873:
+ goto __880
+__880:
i8++
- goto __872
- goto __874
-__874:
+ goto __879
+ goto __881
+__881:
;
(*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = U8((*Op)(unsafe.Pointer(pOp)).Fp5)
rc = (*struct {
@@ -74923,48 +75419,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 __882
}
(*Sqlite3)(unsafe.Pointer(db)).FlastRowid = *(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */))
-__875:
+__882:
;
if !(rc&0xff == SQLITE_CONSTRAINT && (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FbConstraint != 0) {
- goto __876
+ goto __883
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5) == OE_Ignore) {
- goto __878
+ goto __885
}
rc = SQLITE_OK
- goto __879
-__878:
+ goto __886
+__885:
(*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:
+__886:
;
- goto __877
-__876:
+ goto __884
+__883:
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__877:
+__884:
;
if !(rc != 0) {
- goto __880
+ goto __887
}
goto abort_due_to_error
-__880:
+__887:
;
-__871:
+__878:
;
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
@@ -74976,22 +75472,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 __888
}
newMax = Xsqlite3BtreeLastPage(tls, pBt3)
if !(newMax < uint32((*Op)(unsafe.Pointer(pOp)).Fp3)) {
- goto __882
+ goto __889
}
newMax = uint32((*Op)(unsafe.Pointer(pOp)).Fp3)
-__882:
+__889:
;
-__881:
+__888:
;
*(*I64)(unsafe.Pointer(pOut)) = I64(Xsqlite3BtreeMaxPageCount(tls, pBt3, newMax))
goto __8
@@ -75040,8 +75536,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))
@@ -75051,24 +75547,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 __890
}
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpVdbe = p
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpOut = pOut
i9 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx2)).Fargc) - 1
-__884:
+__891:
if !(i9 >= 0) {
- goto __886
+ goto __893
}
*(*uintptr)(unsafe.Pointer(pCtx2 + 48 + uintptr(i9)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i9)*56
- goto __885
-__885:
+ goto __892
+__892:
i9--
- goto __884
- goto __886
-__886:
+ goto __891
+ goto __893
+__893:
;
-__883:
+__890:
;
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
@@ -75079,40 +75575,87 @@ __883:
// If the function returned an error, throw an exception
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError != 0) {
- goto __887
+ goto __894
}
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError > 0) {
- goto __888
+ goto __895
}
- Xsqlite3VdbeError(tls, p, ts+3623, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut)))
+ Xsqlite3VdbeError(tls, p, ts+3614, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut)))
rc = (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError
-__888:
+__895:
;
- 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 __896
}
goto abort_due_to_error
-__889:
+__896:
;
-__887:
+__894:
;
// Copy the result of the function into register P3
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&(MEM_Str|MEM_Blob) != 0) {
- goto __890
+ goto __897
}
Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pOut) != 0) {
- goto __891
+ goto __898
}
goto too_big
-__891:
+__898:
;
-__890:
+__897:
+ ;
+
+ 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 __899
+ }
+
+ *(*U32)(unsafe.Pointer(p + 220 + 8*4))++
+ goto jump_to_p2
+ goto __900
+__899:
+ *(*U32)(unsafe.Pointer(p + 220 + 7*4))++
+__900:
+ ;
goto __8
// Opcode: Trace P1 P2 * P4 *
@@ -75138,8 +75681,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.
@@ -75161,67 +75704,67 @@ __184:
}
return (*Vdbe)(unsafe.Pointer(p)).FzSql
}()) != uintptr(0)) {
- goto __892
+ goto __901
}
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_LEGACY != 0) {
- goto __893
+ goto __902
}
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 __903
+__902:
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec > 1) {
- goto __895
+ goto __904
}
- z3 = Xsqlite3MPrintf(tls, db, ts+6012, libc.VaList(bp+168, zTrace))
+ z3 = Xsqlite3MPrintf(tls, db, ts+6031, 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 __905
+__904:
(*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:
+__905:
;
-__894:
+__903:
;
-__892:
+__901:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 >= Xsqlite3Config.FiOnceResetThreshold) {
- goto __897
+ goto __906
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_Trace) {
- goto __898
+ goto __907
}
goto __8
-__898:
+__907:
;
i10 = 1
-__899:
+__908:
if !(i10 < (*Vdbe)(unsafe.Pointer(p)).FnOp) {
- goto __901
+ goto __910
}
if !(int32((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr(i10)*24)).Fopcode) == OP_Once) {
- goto __902
+ goto __911
}
(*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(i10)*24)).Fp1 = 0
-__902:
+__911:
;
- goto __900
-__900:
+ goto __909
+__909:
i10++
- goto __899
- goto __901
-__901:
+ goto __908
+ goto __910
+__910:
;
(*Op)(unsafe.Pointer(pOp)).Fp1 = 0
-__897:
+__906:
;
(*Op)(unsafe.Pointer(pOp)).Fp1++
*(*U32)(unsafe.Pointer(p + 220 + 6*4))++
@@ -75235,7 +75778,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
@@ -75266,73 +75809,73 @@ __7:
// an error of some kind.
abort_due_to_error:
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __903
+ goto __912
}
rc = SQLITE_NOMEM
- goto __904
-__903:
+ goto __913
+__912:
if !(rc == SQLITE_IOERR|int32(33)<<8) {
- goto __905
+ goto __914
}
- rc = Xsqlite3CorruptError(tls, 95094)
-__905:
+ rc = Xsqlite3CorruptError(tls, 95878)
+__914:
;
-__904:
+__913:
;
if !((*Vdbe)(unsafe.Pointer(p)).FzErrMsg == uintptr(0) && rc != SQLITE_IOERR|int32(12)<<8) {
- goto __906
+ goto __915
}
- Xsqlite3VdbeError(tls, p, ts+3623, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc)))
-__906:
+ Xsqlite3VdbeError(tls, p, ts+3614, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc)))
+__915:
;
(*Vdbe)(unsafe.Pointer(p)).Frc = rc
Xsqlite3SystemError(tls, db, rc)
- Xsqlite3_log(tls, rc, ts+6018,
+ Xsqlite3_log(tls, rc, ts+6037,
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 __916
}
Xsqlite3OomFault(tls, db)
-__907:
+__916:
;
if !(rc == SQLITE_CORRUPT && int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0) {
- goto __908
+ goto __917
}
*(*U64)(unsafe.Pointer(db + 48)) |= U64(uint64(0x00002)) << 32
-__908:
+__917:
;
rc = SQLITE_ERROR
if !(int32(resetSchemaOnFault) > 0) {
- goto __909
+ goto __918
}
Xsqlite3ResetOneSchema(tls, db, int32(resetSchemaOnFault)-1)
-__909:
+__918:
;
// 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:
+__919:
if !(nVmStep >= nProgressLimit && (*Sqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0)) {
- goto __911
+ goto __920
}
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 __921
}
nProgressLimit = uint64(0xffffffff) | U64(uint64(0xffffffff))<<32
rc = SQLITE_INTERRUPT
goto abort_due_to_error
-__912:
+__921:
;
- goto __910
-__911:
+ goto __919
+__920:
;
*(*U32)(unsafe.Pointer(p + 220 + 4*4)) += U32(int32(nVmStep))
Xsqlite3VdbeLeave(tls, p)
@@ -75342,14 +75885,14 @@ __911:
// Jump to here if a string or blob larger than SQLITE_MAX_LENGTH
// is encountered.
too_big:
- Xsqlite3VdbeError(tls, p, ts+5276, 0)
+ Xsqlite3VdbeError(tls, p, ts+5285, 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+6050, 0)
+ Xsqlite3VdbeError(tls, p, ts+1470, 0)
rc = SQLITE_NOMEM
goto abort_due_to_error
@@ -75362,12 +75905,12 @@ abort_due_to_interrupt:
return int32(0)
}
-var azType = [4]uintptr{ts + 6064, ts + 6073, ts + 6080,
- ts + 6086} /* 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 + 6069, ts + 6078, ts + 6085,
+ ts + 6091} /* sqlite3.c:88521: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:89745: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:89748:32 */
+var aFlag1 = [2]U16{U16(MEM_Blob), U16(MEM_Str | MEM_Term)} /* sqlite3.c:90233:24 */
+var vfsFlags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TRANSIENT_DB /* sqlite3.c:91488:20 */
//************* End of vdbe.c ***********************************************
//************* Begin file vdbeblob.c ***************************************
@@ -75398,7 +75941,7 @@ type Incrblob1 = struct {
Fdb uintptr
FzDb uintptr
FpTab uintptr
-} /* sqlite3.c:95199:9 */
+} /* sqlite3.c:95983:9 */
//************* End of vdbe.c ***********************************************
//************* Begin file vdbeblob.c ***************************************
@@ -75419,7 +75962,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 /* sqlite3.c:95983: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.
@@ -75436,7 +75979,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 { /* sqlite3.c:96013:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -75465,31 +76008,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+6098,
+ zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6103,
libc.VaList(bp, func() uintptr {
if type1 == U32(0) {
- return ts + 6127 /* "null" */
+ return ts + 6132 /* "null" */
}
return func() uintptr {
if type1 == U32(7) {
- return ts + 6132 /* "real" */
+ return ts + 6137 /* "real" */
}
- return ts + 6137 /* "integer" */
+ return ts + 6142 /* "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)
}
}
@@ -75500,10 +76043,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+6145, libc.VaList(bp+8, iRow))
+ zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6150, libc.VaList(bp+8, iRow))
rc = SQLITE_ERROR
} else {
- zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+3623, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb)))
+ zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+3614, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb)))
}
}
@@ -75512,18 +76055,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 { /* sqlite3.c:96081: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
@@ -75539,7 +76082,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)
@@ -75549,179 +76092,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+6165, libc.VaList(bp, zTable))
-__5:
+ Xsqlite3ErrorMsg(tls, bp+48, ts+6170, 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+6195, libc.VaList(bp+8, zTable))
-__6:
+ Xsqlite3ErrorMsg(tls, bp+48, ts+6200, 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+6231, libc.VaList(bp+16, zTable))
-__7:
+ Xsqlite3ErrorMsg(tls, bp+48, ts+6236, 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+6252, libc.VaList(bp+24, zColumn))
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6257, 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 + 6273 /* "foreign key" */
-__23:
+ zFault = ts + 6278 /* "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 + 6285 /* "indexed" */
-__30:
+ zFault = ts + 6290 /* "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+6293, libc.VaList(bp+32, zFault))
+ Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))
+ *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6298, 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)
@@ -75737,7 +76282,7 @@ __15:
Xsqlite3VdbeUsesBtree(tls, v, iDb)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0) {
- goto __33
+ goto __32
}
// Configure the OP_TableLock instruction
@@ -75745,19 +76290,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
@@ -75776,28 +76321,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:
@@ -75817,19 +76364,19 @@ __39:
__38:
;
Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr {
- if *(*uintptr)(unsafe.Pointer(bp + 448)) != 0 {
- return ts + 3623 /* "%s" */
+ if *(*uintptr)(unsafe.Pointer(bp + 456)) != 0 {
+ return ts + 3614 /* "%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 /* sqlite3.c:96224:24 */
var openBlob = [6]VdbeOpList{
{Fopcode: U8(OP_TableLock)}, // 0: Acquire a read or write lock
{Fopcode: U8(OP_OpenRead)}, // 1: Open a cursor
@@ -75838,11 +76385,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 */
+} /* sqlite3.c:96225: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 { /* sqlite3.c:96316:16: */
var p uintptr = pBlob
var rc int32
var db uintptr
@@ -75861,14 +76408,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 { /* sqlite3.c:96337: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, 96349)
}
db = (*Incrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -75927,14 +76474,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 { /* sqlite3.c:96412: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 { /* sqlite3.c:96419:16: */
return blobReadWrite(tls, pBlob, z, n, iOffset, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, U32, U32, uintptr) int32
}{Xsqlite3BtreePutData})))
@@ -75944,7 +76491,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 { /* sqlite3.c:96429:16: */
var p uintptr = pBlob
if p != 0 && (*Incrblob)(unsafe.Pointer(p)).FpStmt != 0 {
return (*Incrblob)(unsafe.Pointer(p)).FnByte
@@ -75960,7 +76507,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 { /* sqlite3.c:96444:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -75969,7 +76516,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, 96449)
}
db = (*Incrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -75986,7 +76533,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 + 3623 /* "%s" */
+ return ts + 3614 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))))
@@ -76156,7 +76703,7 @@ type MergeEngine1 = struct {
FpTask uintptr
FaTree uintptr
FaReadr uintptr
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
//************* End of vdbeblob.c *******************************************
//************* Begin file vdbesort.c ***************************************
@@ -76307,7 +76854,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 /* sqlite3.c:96638:28 */ // Merge PMAs together
type PmaReader1 = struct {
FiReadOff I64
FiEof I64
@@ -76321,10 +76868,10 @@ type PmaReader1 = struct {
F__ccgo_pad1 [4]byte
FaMap uintptr
FpIncr uintptr
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// Merge PMAs together
-type PmaReader = PmaReader1 /* sqlite3.c:95854:26 */ // Incrementally read one PMA
+type PmaReader = PmaReader1 /* sqlite3.c:96639:26 */ // Incrementally read one PMA
type PmaWriter1 = struct {
FeFWErr int32
F__ccgo_pad1 [4]byte
@@ -76335,18 +76882,18 @@ type PmaWriter1 = struct {
F__ccgo_pad2 [4]byte
FiWriteOff I64
FpFd uintptr
-} /* sqlite3.c:95855:9 */
+} /* sqlite3.c:96640:9 */
// Incrementally read one PMA
-type PmaWriter = PmaWriter1 /* sqlite3.c:95855:26 */ // Incrementally write one PMA
+type PmaWriter = PmaWriter1 /* sqlite3.c:96640:26 */ // Incrementally write one PMA
type SorterRecord1 = struct {
FnVal int32
F__ccgo_pad1 [4]byte
Fu struct{ FpNext uintptr }
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// Incrementally write one PMA
-type SorterRecord = SorterRecord1 /* sqlite3.c:95856:29 */ // A record being sorted
+type SorterRecord = SorterRecord1 /* sqlite3.c:96641:29 */ // A record being sorted
type SortSubtask1 = struct {
FpThread uintptr
FbDone int32
@@ -76359,26 +76906,26 @@ type SortSubtask1 = struct {
FxCompare SorterCompare
Ffile SorterFile
Ffile2 SorterFile
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// A record being sorted
-type SortSubtask = SortSubtask1 /* sqlite3.c:95857:28 */ // A sub-task in the sort process
+type SortSubtask = SortSubtask1 /* sqlite3.c:96642:28 */ // A sub-task in the sort process
type SorterFile1 = struct {
FpFd uintptr
FiEof I64
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// A sub-task in the sort process
-type SorterFile = SorterFile1 /* sqlite3.c:95858:27 */ // Temporary file object wrapper
+type SorterFile = SorterFile1 /* sqlite3.c:96643:27 */ // Temporary file object wrapper
type SorterList1 = struct {
FpList uintptr
FaMemory uintptr
FszPMA int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// Temporary file object wrapper
-type SorterList = SorterList1 /* sqlite3.c:95859:27 */ // In-memory list of records
+type SorterList = SorterList1 /* sqlite3.c:96644:27 */ // In-memory list of records
type IncrMerger1 = struct {
FpTask uintptr
FpMerger uintptr
@@ -76388,10 +76935,10 @@ type IncrMerger1 = struct {
FbUseThread int32
F__ccgo_pad1 [4]byte
FaFile [2]SorterFile
-} /* sqlite3.c:21734:9 */
+} /* sqlite3.c:22073:9 */
// In-memory list of records
-type IncrMerger = IncrMerger1 /* sqlite3.c:95860:27 */
+type IncrMerger = IncrMerger1 /* sqlite3.c:96645:27 */
// This object represents a single thread of control in a sort operation.
// Exactly VdbeSorter.nTask instances of this object are allocated
@@ -76422,11 +76969,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 /* sqlite3.c:96772: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) { /* sqlite3.c:96947:13: */
Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaAlloc)
Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaBuffer)
if (*PmaReader)(unsafe.Pointer(pReadr)).FaMap != 0 {
@@ -76443,7 +76990,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 { /* sqlite3.c:96964:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76547,7 +77094,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 { /* sqlite3.c:97058:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -76566,7 +77113,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
@@ -76587,7 +77134,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 { /* sqlite3.c:97091: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
@@ -76602,7 +77149,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 { /* sqlite3.c:97108:12: */
var rc int32 = SQLITE_OK
if Xsqlite3FaultSim(tls, 201) != 0 {
@@ -76643,7 +77190,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 { /* sqlite3.c:97155:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76689,7 +77236,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 { /* sqlite3.c:97202:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76712,7 +77259,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 { /* sqlite3.c:97235: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)
@@ -76732,7 +77279,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 { /* sqlite3.c:97262: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)
@@ -76744,7 +77291,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 { /* sqlite3.c:97281:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76794,7 +77341,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 { /* sqlite3.c:97323:12: */
var p1 uintptr = pKey1
var p2 uintptr = pKey2
var s1 int32 = int32(*(*U8)(unsafe.Pointer(p1 + 1))) // Left hand serial type
@@ -76854,7 +77401,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)} /* sqlite3.c:97342:21 */
// Initialize the temporary index cursor just opened as a sorter cursor.
//
@@ -76873,7 +77420,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 { /* sqlite3.c:97406:20: */
var pgsz int32 // Page size of main database
var i int32 // Used to iterate through aTask[]
var pSorter uintptr // The new sorter
@@ -76897,7 +77444,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 {
@@ -76969,7 +77516,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) { /* sqlite3.c:97512:13: */
var p uintptr
var pNext uintptr
for p = pRecord; p != 0; p = pNext {
@@ -76980,7 +77527,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) { /* sqlite3.c:97525: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
@@ -77000,7 +77547,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 { /* sqlite3.c:97591:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -77019,14 +77566,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 { /* sqlite3.c:97612: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 { /* sqlite3.c:97625:12: */
var rc int32 = rcin
var i int32
@@ -77052,7 +77599,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 { /* sqlite3.c:97655: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
@@ -77077,7 +77624,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) { /* sqlite3.c:97678:13: */
var i int32
if pMerger != 0 {
for i = 0; i < (*MergeEngine)(unsafe.Pointer(pMerger)).FnTree; i++ {
@@ -77089,7 +77636,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) { /* sqlite3.c:97692:13: */
if pIncr != 0 {
if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 {
vdbeSorterJoinThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)
@@ -77106,7 +77653,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) { /* sqlite3.c:97709:21: */
var i int32
vdbeSorterJoinAll(tls, pSorter, SQLITE_OK)
@@ -77135,15 +77682,15 @@ 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) { /* sqlite3.c:97742: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)
}
}
@@ -77154,7 +77701,7 @@ func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* sqlit
//
// Whether or not the file does end up memory mapped of course depends on
// the specific VFS implementation.
-func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { /* sqlite3.c:96978:13: */
+func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { /* sqlite3.c:97764:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
*(*I64)(unsafe.Pointer(bp + 8)) = nByte
@@ -77174,7 +77721,7 @@ func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { /
// Allocate space for a file-handle and open a temporary file. If successful,
// set *ppFd to point to the malloc'd file-handle and return SQLITE_OK.
// Otherwise, set *ppFd to 0 and return an SQLite error code.
-func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr) int32 { /* sqlite3.c:96997:12: */
+func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr) int32 { /* sqlite3.c:97783:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -77198,7 +77745,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 { /* sqlite3.c:97810: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) {
@@ -77211,7 +77758,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 { /* sqlite3.c:97824:21: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -77250,7 +77797,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 { /* sqlite3.c:97866: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
@@ -77268,7 +77815,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 { /* sqlite3.c:97880:12: */
bp := tls.Alloc(512)
defer tls.Free(512)
@@ -77325,7 +77872,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) { /* sqlite3.c:97931: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) {
@@ -77340,7 +77887,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) { /* sqlite3.c:97953:13: */
var nRem int32 = nData
for nRem > 0 && (*PmaWriter)(unsafe.Pointer(p)).FeFWErr == 0 {
var nCopy int32 = nRem
@@ -77369,7 +77916,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 { /* sqlite3.c:97986: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,
@@ -77385,7 +77932,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) { /* sqlite3.c:98005:13: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -77408,7 +77955,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 { /* sqlite3.c:98026:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -77463,7 +78010,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 { /* sqlite3.c:98090:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77539,7 +78086,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 { /* sqlite3.c:98161:13: */
var pTask uintptr = pCtx
var rc int32 // Return code
@@ -77550,7 +78097,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 { /* sqlite3.c:98175:12: */
var rc int32 = SQLITE_OK
var i int32
var pTask uintptr = uintptr(0) // Thread context used to create new PMA
@@ -77614,7 +78161,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 { /* sqlite3.c:98245:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77627,7 +78174,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)
@@ -77730,7 +78277,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 { /* sqlite3.c:98357:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -77776,7 +78323,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 { /* sqlite3.c:98399:13: */
var pIncr uintptr = pCtx
var pRet uintptr = uintptr(int64(vdbeIncrPopulate(tls, pIncr)))
(*SortSubtask)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)).FbDone = 1
@@ -77784,7 +78331,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 { /* sqlite3.c:98409:12: */
var p uintptr = pIncr
return vdbeSorterCreateThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask, *(*uintptr)(unsafe.Pointer(&struct {
@@ -77807,7 +78354,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 { /* sqlite3.c:98433:12: */
var rc int32 = SQLITE_OK
if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 {
@@ -77841,7 +78388,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 { /* sqlite3.c:98472:12: */
var rc int32 = SQLITE_OK
var pIncr uintptr = libc.AssignPtrUintptr(ppOut, func() uintptr {
if Xsqlite3FaultSim(tls, 100) != 0 {
@@ -77868,7 +78415,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) { /* sqlite3.c:98497:13: */
(*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread = 1
*(*I64)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask + 88 + 8)) -= I64((*IncrMerger)(unsafe.Pointer(pIncr)).FmxSz)
}
@@ -77876,7 +78423,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) { /* sqlite3.c:98510:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77936,7 +78483,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 { /* sqlite3.c:98592:12: */
var rc int32 = SQLITE_OK // Return code
var i int32 // For looping over PmaReader objects
var nTree int32 // Number of subtrees to merge
@@ -78006,7 +78553,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 { /* sqlite3.c:98668:12: */
var rc int32 = SQLITE_OK
var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr
var pTask uintptr = (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask
@@ -78063,7 +78610,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 { /* sqlite3.c:98735: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
@@ -78079,7 +78626,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 { /* sqlite3.c:98756:12: */
var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr // Incremental merger
var rc int32 = SQLITE_OK // Return code
if pIncr != 0 {
@@ -78106,7 +78653,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 { /* sqlite3.c:98786:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -78143,7 +78690,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 { /* sqlite3.c:98825:12: */
var nDepth int32 = 0
var nDiv I64 = int64(SORTER_MAX_MERGE_COUNT)
for nDiv < I64(nPMA) {
@@ -78159,7 +78706,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 { /* sqlite3.c:98843:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -78210,7 +78757,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 { /* sqlite3.c:98899:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -78291,7 +78838,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 { /* sqlite3.c:98978:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -78366,11 +78913,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 { /* sqlite3.c:99060: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
@@ -78411,14 +78958,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 { /* sqlite3.c:99112: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 {
@@ -78453,7 +79000,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 { /* sqlite3.c:99150:13: */
var pKey uintptr
if (*VdbeSorter)(unsafe.Pointer(pSorter)).FbUsePMA != 0 {
var pReader uintptr
@@ -78472,7 +79019,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 { /* sqlite3.c:99177:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -78481,7 +79028,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
@@ -78507,7 +79054,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 { /* sqlite3.c:99210:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -78519,7 +79066,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) {
@@ -78599,7 +79146,7 @@ type MemJournal1 = struct {
F__ccgo_pad1 [4]byte
FpVfs uintptr
FzJournal uintptr
-} /* sqlite3.c:98917:9 */
+} /* sqlite3.c:99703:9 */
//************* End of vdbesort.c *******************************************
//************* Begin file vdbevtab.c ***************************************
@@ -78646,23 +79193,23 @@ type MemJournal1 = struct {
// #include "sqliteInt.h"
// Forward references to internal structures
-type MemJournal = MemJournal1 /* sqlite3.c:98917:27 */
+type MemJournal = MemJournal1 /* sqlite3.c:99703:27 */
type FilePoint1 = struct {
FiOffset Sqlite3_int64
FpChunk uintptr
-} /* sqlite3.c:98917:9 */
+} /* sqlite3.c:99703:9 */
-type FilePoint = FilePoint1 /* sqlite3.c:98918:26 */
+type FilePoint = FilePoint1 /* sqlite3.c:99704:26 */
type FileChunk1 = struct {
FpNext uintptr
FzChunk [8]U8
-} /* sqlite3.c:98917:9 */
+} /* sqlite3.c:99703:9 */
-type FileChunk = FileChunk1 /* sqlite3.c:98919:26 */
+type FileChunk = FileChunk1 /* sqlite3.c:99705: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 { /* sqlite3.c:99760:12: */
var p uintptr = pJfd
var zOut uintptr = zBuf
var nRead int32 = iAmt
@@ -78684,7 +79231,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 {
@@ -78709,7 +79256,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) { /* sqlite3.c:99807:13: */
var pIter uintptr
var pNext uintptr
for pIter = pFirst; pIter != 0; pIter = pNext {
@@ -78719,7 +79266,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 { /* sqlite3.c:99819:12: */
var rc int32
var pReal uintptr = p
var copy = *(*MemJournal)(unsafe.Pointer(p))
@@ -78757,7 +79304,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 { /* sqlite3.c:99861:12: */
var p uintptr = pJfd
var nWrite int32 = iAmt
var zWrite uintptr = zBuf
@@ -78777,7 +79324,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))
@@ -78802,15 +79355,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)
}
-
}
}
@@ -78818,7 +79370,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 { /* sqlite3.c:99934:12: */
var p uintptr = pJfd
if size < (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset {
@@ -78846,7 +79398,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 { /* sqlite3.c:99964:12: */
var p uintptr = pJfd
memjrnlFreeChunks(tls, (*MemJournal)(unsafe.Pointer(p)).FpFirst)
return SQLITE_OK
@@ -78856,14 +79408,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 { /* sqlite3.c:99976: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 { /* sqlite3.c:99984:12: */
var p uintptr = pJfd
*(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset
return SQLITE_OK
@@ -78878,7 +79430,7 @@ var sMemJournalMethods = sqlite3_io_methods{
FxTruncate: 0, // xTruncate
FxSync: 0, // xSync
FxFileSize: 0, // xUnfetch
-} /* sqlite3.c:99205:40 */
+} /* sqlite3.c:99993:40 */
// Open a journal file.
//
@@ -78890,7 +79442,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 { /* sqlite3.c:100027:20: */
var p uintptr = pJfd
// Zero the file-handle object. If nSpill was passed zero, initialize
@@ -78918,20 +79470,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) { /* sqlite3.c:100063: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 { /* sqlite3.c:100102: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 { /* sqlite3.c:100110:20: */
return func() int32 {
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile > int32(unsafe.Sizeof(MemJournal{})) {
return (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile
@@ -78960,7 +79512,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 { /* sqlite3.c:100140:12: */
var pWin uintptr
for pWin = pList; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin {
var rc int32
@@ -79008,7 +79560,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 { /* sqlite3.c:100179:28: */
var rc int32
for 1 != 0 {
@@ -79050,7 +79602,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 { /* sqlite3.c:100211:20: */
if pExpr != 0 {
return walkExpr(tls, pWalker, pExpr)
}
@@ -79059,7 +79611,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 { /* sqlite3.c:100219:20: */
var i int32
var pItem uintptr
if p != 0 {
@@ -79088,7 +79640,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) { /* sqlite3.c:100234:21: */
_ = pWalker
_ = p
// No-op
@@ -79098,7 +79650,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 { /* sqlite3.c:100246:20: */
if Xsqlite3WalkExprList(tls, pWalker, (*Select)(unsafe.Pointer(p)).FpEList) != 0 {
return WRC_Abort
}
@@ -79140,7 +79692,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 { /* sqlite3.c:100279:20: */
var pSrc uintptr
var i int32
var pItem uintptr
@@ -79189,7 +79741,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 { /* sqlite3.c:100317:20: */
var rc int32
if p == uintptr(0) {
return WRC_Continue
@@ -79197,7 +79749,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)
@@ -79220,13 +79772,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 { /* sqlite3.c:100340: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) { /* sqlite3.c:100345:21: */
_ = pSelect
(*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth--
}
@@ -79238,7 +79790,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 { /* sqlite3.c:100360:20: */
_ = NotUsed
_ = NotUsed2
return WRC_Continue
@@ -79246,7 +79798,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 { /* sqlite3.c:100369:20: */
_ = NotUsed
_ = NotUsed2
return WRC_Continue
@@ -79281,14 +79833,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 { /* sqlite3.c:100410: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) { /* sqlite3.c:100414:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -79321,7 +79873,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) { /* sqlite3.c:100443:13: */
var pOrig uintptr // The iCol-th column of the result set
var pDup uintptr // Copy of pOrig
var db uintptr // The database connection
@@ -79367,7 +79919,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 { /* sqlite3.c:100500:12: */
if pUsing != 0 {
var k int32
for k = 0; k < (*IdList)(unsafe.Pointer(pUsing)).FnId; k++ {
@@ -79384,7 +79936,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 { /* sqlite3.c:100517:20: */
var n int32
var zSpan uintptr
if int32(*(*uint8)(unsafe.Pointer(pItem + 20))&0x3>>0) != ENAME_TAB {
@@ -79410,7 +79962,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 { /* sqlite3.c:100546:12: */
if (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 {
return 1
} // Always support for legacy schemas
@@ -79429,7 +79981,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 { /* sqlite3.c:100564:24: */
var n int32
var pExTab uintptr
@@ -79479,7 +80031,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 { /* sqlite3.c:100613:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -79561,7 +80113,7 @@ __5:
goto __6
__6:
;
- if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+6327, zDb) == 0) {
+ if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+6332, zDb) == 0) {
goto __8
}
// This branch is taken when the main database has been renamed
@@ -79626,14 +80178,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+6337) != 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
@@ -79642,50 +80205,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
@@ -79696,23 +80259,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:
@@ -79723,7 +80286,7 @@ __14:
__15:
;
if !(pMatch != 0) {
- goto __34
+ goto __36
}
(*Expr)(unsafe.Pointer(pExpr)).FiTable = (*SrcItem)(unsafe.Pointer(pMatch)).FiCursor
@@ -79731,13 +80294,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 )
@@ -79747,143 +80310,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+6332, zTab) == 0) {
- goto __41
+ goto __41
+__40:
+ if !(op != TK_DELETE && zTab != 0 && Xsqlite3StrICmp(tls, ts+6339, 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+6336, zTab) == 0) {
- goto __43
+ goto __44
+__43:
+ if !(op != TK_INSERT && zTab != 0 && Xsqlite3StrICmp(tls, ts+6343, 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+6340, zTab) == 0) {
- goto __45
+ if !(pUpsert != 0 && Xsqlite3StrICmp(tls, ts+6347, 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 {
@@ -79892,8 +80456,8 @@ __60:
}
return U32(U32(1)) << iCol
}()
- goto __63
-__62:
+ goto __65
+__64:
;
*(*U32)(unsafe.Pointer(pParse + 208)) |= func() uint32 {
@@ -79902,19 +80466,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
@@ -79924,12 +80488,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
@@ -79951,74 +80515,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+6349, libc.VaList(bp, zAs))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6356, 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+6380, libc.VaList(bp+8, zAs))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6387, libc.VaList(bp+8, zAs))
return WRC_Abort
-__71:
+__73:
;
if !(Xsqlite3ExprVectorSize(tls, pOrig) != 1) {
- goto __72
+ goto __74
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6417, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6424, 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++
@@ -80040,12 +80604,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.
@@ -80061,51 +80625,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+6435, libc.VaList(bp+16, zCol))
+ ts+6442, 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 + 6470 /* "no such column" */
+ zErr = ts + 6477 /* "no such column" */
} else {
- zErr = ts + 6485 /* "ambiguous column..." */
+ zErr = ts + 6492 /* "ambiguous column..." */
}
if !(zDb != 0) {
- goto __79
- }
- Xsqlite3ErrorMsg(tls, pParse, ts+6507, libc.VaList(bp+24, zErr, zDb, zTab, zCol))
- goto __80
-__79:
- if !(zTab != 0) {
goto __81
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6520, libc.VaList(bp+56, zErr, zTab, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6514, libc.VaList(bp+24, zErr, zDb, zTab, zCol))
goto __82
__81:
- Xsqlite3ErrorMsg(tls, pParse, ts+6530, libc.VaList(bp+80, zErr, zCol))
-__82:
+ if !(zTab != 0) {
+ goto __83
+ }
+ Xsqlite3ErrorMsg(tls, pParse, ts+6527, libc.VaList(bp+56, zErr, zTab, zCol))
+ goto __84
+__83:
+ Xsqlite3ErrorMsg(tls, pParse, ts+6537, 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
@@ -80122,66 +80687,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 { /* sqlite3.c:101059:21: */
var p uintptr = Xsqlite3ExprAlloc(tls, db, TK_COLUMN, uintptr(0), 0)
if p != 0 {
var pItem uintptr = pSrc + 8 + uintptr(iSrc)*112
@@ -80230,28 +80795,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) { /* sqlite3.c:101103:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- var zIn uintptr = ts + 6537 /* "partial index WH..." */
+ var zIn uintptr = ts + 6544 /* "partial index WH..." */
if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IdxExpr != 0 {
- zIn = ts + 6565 /* "index expression..." */
+ zIn = ts + 6572 /* "index expression..." */
} else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IsCheck != 0 {
- zIn = ts + 6583 /* "CHECK constraint..." */
+ zIn = ts + 6590 /* "CHECK constraint..." */
} else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_GenCol != 0 {
- zIn = ts + 6601 /* "generated column..." */
+ zIn = ts + 6608 /* "generated column..." */
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6619, libc.VaList(bp, zMsg, zIn))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6626, 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 { /* sqlite3.c:101131:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -80277,9 +80843,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 { /* sqlite3.c:101152:12: */
+ bp := tls.Alloc(96)
+ defer tls.Free(96)
var pNC uintptr
var pParse uintptr
@@ -80327,7 +80893,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
@@ -80338,7 +80904,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
@@ -80353,10 +80919,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 + 6639 /* "true" */
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6646 /* "true" */
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsTrue)
} else {
- *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6644 /* "false" */
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6651 /* "false" */
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse)
}
(*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_TRUEFALSE)
@@ -80367,7 +80933,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
@@ -80410,7 +80976,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+6650, uintptr(0))
+ notValidImpl(tls, pParse, pNC, ts+6657, uintptr(0), pExpr)
}
pRight = (*Expr)(unsafe.Pointer(pExpr)).FpRight
@@ -80448,7 +81014,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
@@ -80461,7 +81026,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))
@@ -80479,7 +81043,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
if (*Expr)(unsafe.Pointer(pExpr)).FiTable < 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+6667, 0)
+ ts+6674, libc.VaList(bp, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
} else {
@@ -80505,7 +81069,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
if auth != SQLITE_OK {
if auth == SQLITE_DENY {
Xsqlite3ErrorMsg(tls, pParse, ts+6738,
- 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)
@@ -80528,7 +81092,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+6773, uintptr(0))
+ notValidImpl(tls, pParse, pNC, ts+6774, uintptr(0), pExpr)
}
} else {
@@ -80544,7 +81108,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) &&
@@ -80557,7 +81121,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+6801, libc.VaList(bp+8, nId, zId))
+ ts+6802, 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) ||
@@ -80568,20 +81132,20 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
} else {
zType = ts + 6852 /* "aggregate" */
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6862, libc.VaList(bp+24, zType, nId, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6862, 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+6891, libc.VaList(bp+48, nId, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6890, libc.VaList(bp+40, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
} else if wrong_num_args != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+6914,
- libc.VaList(bp+64, nId, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6912,
+ 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+6959,
- libc.VaList(bp+80, nId, zId))
+ ts+6956,
+ libc.VaList(bp+56, pExpr))
(*NameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
if is_agg != 0 {
@@ -80658,7 +81222,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+7008, pExpr)
+ notValidImpl(tls, pParse, pNC, ts+7004, pExpr, pExpr)
} else {
Xsqlite3WalkSelect(tls, pWalker, *(*uintptr)(unsafe.Pointer(pExpr + 32)))
}
@@ -80675,7 +81239,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+7019, pExpr)
+ notValidImpl(tls, pParse, pNC, ts+7015, pExpr, pExpr)
}
break
@@ -80736,13 +81300,15 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* s
}
if nLeft != nRight {
- Xsqlite3ErrorMsg(tls, pParse, ts+6417, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6424, 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
@@ -80758,7 +81324,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 { /* sqlite3.c:101610:12: */
var i int32 // Loop counter
_ = pParse
@@ -80793,7 +81359,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 { /* sqlite3.c:101652:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -80837,13 +81403,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) { /* sqlite3.c:101699:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
Xsqlite3ErrorMsg(tls, pParse,
- ts+7030, libc.VaList(bp, i, zType, mx))
+ ts+7026, 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
@@ -80859,7 +81426,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 { /* sqlite3.c:101727:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -80875,7 +81442,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+7086, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+7082, 0)
return 1
}
for i = 0; i < (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr; i++ {
@@ -80910,7 +81477,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+7120, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr)
+ resolveOutOfRangeError(tls, pParse, ts+7116, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pE)
return 1
}
} else {
@@ -80981,7 +81548,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+7126, libc.VaList(bp, i+1))
+ ts+7122, libc.VaList(bp, i+1))
return 1
}
}
@@ -80996,7 +81563,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 { /* sqlite3.c:101840:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -81009,7 +81576,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+7187, libc.VaList(bp, zType))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7183, libc.VaList(bp, zType))
return 1
}
pEList = (*Select)(unsafe.Pointer(pSelect)).FpEList
@@ -81023,7 +81590,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)
@@ -81042,7 +81609,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 { /* sqlite3.c:101874:12: */
_ = pWalker
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) {
var pWin uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 64))
@@ -81053,7 +81620,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) { /* sqlite3.c:101887:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -81085,7 +81652,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 { /* sqlite3.c:101918:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -81127,7 +81694,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 */)))
@@ -81162,7 +81729,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 { /* sqlite3.c:101981:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -81193,7 +81760,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
@@ -81246,7 +81813,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
}
@@ -81298,7 +81865,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+7218, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+7214, 0)
return WRC_Abort
}
if Xsqlite3ResolveExprNames(tls, bp, (*Select)(unsafe.Pointer(p)).FpHaving) != 0 {
@@ -81355,7 +81922,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+7120) != 0 {
+ resolveOrderGroupBy(tls, bp, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+7116) != 0 {
return WRC_Abort
}
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -81368,7 +81935,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+7262) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ if resolveOrderGroupBy(tls, bp, p, pGroupBy, ts+7258) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return WRC_Abort
}
i = 0
@@ -81380,7 +81947,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+7268, 0)
+ ts+7264, 0)
return WRC_Abort
}
@@ -81461,7 +82028,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 { /* sqlite3.c:102269:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -81487,12 +82054,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
@@ -81502,7 +82069,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 { /* sqlite3.c:102308:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -81529,12 +82096,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))
@@ -81559,7 +82126,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) { /* sqlite3.c:102364:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -81593,7 +82160,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 { /* sqlite3.c:102398:20: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -81629,7 +82196,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 { /* sqlite3.c:102458:21: */
if iCol < 0 || iCol >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) {
return int8(SQLITE_AFF_INTEGER)
}
@@ -81650,7 +82217,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 { /* sqlite3.c:102479:21: */
var op int32
for (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip|EP_IfNullRow) != U32(0) {
@@ -81693,7 +82260,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 { /* sqlite3.c:102532: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 {
@@ -81705,7 +82272,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 { /* sqlite3.c:102548:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -81716,7 +82283,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 { /* sqlite3.c:102562:21: */
for pExpr != 0 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip) != U32(0) {
pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
@@ -81727,7 +82294,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 { /* sqlite3.c:102575: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) {
@@ -81752,7 +82319,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 { /* sqlite3.c:102604:24: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pColl uintptr = uintptr(0)
var p uintptr = pExpr
@@ -81824,7 +82391,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 { /* sqlite3.c:102677:24: */
var p uintptr = Xsqlite3ExprCollSeq(tls, pParse, pExpr)
if p == uintptr(0) {
p = (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FpDfltColl
@@ -81834,7 +82401,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 { /* sqlite3.c:102687: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)
@@ -81843,7 +82410,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 { /* sqlite3.c:102698: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
@@ -81868,7 +82435,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 { /* sqlite3.c:102720:13: */
var aff int8
aff = Xsqlite3ExprAffinity(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft)
@@ -81886,7 +82453,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 { /* sqlite3.c:102743:20: */
var aff int8 = comparisonAffinity(tls, pExpr)
if int32(aff) < SQLITE_AFF_TEXT {
return 1
@@ -81899,7 +82466,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 { /* sqlite3.c:102758:11: */
var aff U8 = U8(Xsqlite3ExprAffinity(tls, pExpr2))
aff = U8(int32(U8(Xsqlite3CompareAffinity(tls, pExpr1, int8(aff)))) | int32(U8(jumpIfNull)))
return aff
@@ -81915,7 +82482,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 { /* sqlite3.c:102780:24: */
var pColl uintptr
if (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_Collate) != 0 {
@@ -81938,7 +82505,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 { /* sqlite3.c:102808: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 {
@@ -81948,7 +82515,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 { /* sqlite3.c:102819:12: */
var p5 int32
var addr int32
var p4 uintptr
@@ -81975,7 +82542,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 { /* sqlite3.c:102855:20: */
return libc.Bool32(Xsqlite3ExprVectorSize(tls, pExpr) > 1)
}
@@ -81983,7 +82550,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 { /* sqlite3.c:102865:20: */
var op U8 = (*Expr)(unsafe.Pointer(pExpr)).Fop
if int32(op) == TK_REGISTER {
op = (*Expr)(unsafe.Pointer(pExpr)).Fop2
@@ -82013,7 +82580,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 { /* sqlite3.c:102894:21: */
if Xsqlite3ExprIsVector(tls, pVector) != 0 {
@@ -82047,7 +82614,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 { /* sqlite3.c:102930:21: */
var pRet uintptr
if int32((*Expr)(unsafe.Pointer(pVector)).Fop) == TK_SELECT {
@@ -82095,7 +82662,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 { /* sqlite3.c:102986:12: */
var reg int32 = 0
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_SELECT {
reg = Xsqlite3CodeSubselect(tls, pParse, pExpr)
@@ -82119,7 +82686,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 { /* sqlite3.c:103014:12: */
var op U8 = (*Expr)(unsafe.Pointer(pVector)).Fop
if int32(op) == TK_REGISTER {
@@ -82148,7 +82715,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) { /* sqlite3.c:103052:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -82168,7 +82735,7 @@ func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32,
return
}
if nLeft != Xsqlite3ExprVectorSize(tls, pRight) {
- Xsqlite3ErrorMsg(tls, pParse, ts+6417, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6424, 0)
return
}
@@ -82236,7 +82803,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 { /* sqlite3.c:103147:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82244,7 +82811,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+7327, libc.VaList(bp, mxHeight))
+ ts+7323, libc.VaList(bp, mxHeight))
rc = SQLITE_ERROR
}
return rc
@@ -82258,7 +82825,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) { /* sqlite3.c:103168:13: */
if p != 0 {
if (*Expr)(unsafe.Pointer(p)).FnHeight > *(*int32)(unsafe.Pointer(pnHeight)) {
*(*int32)(unsafe.Pointer(pnHeight)) = (*Expr)(unsafe.Pointer(p)).FnHeight
@@ -82266,7 +82833,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) { /* sqlite3.c:103175:13: */
if p != 0 {
var i int32
for i = 0; i < (*ExprList)(unsafe.Pointer(p)).FnExpr; i++ {
@@ -82275,7 +82842,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) { /* sqlite3.c:103183:13: */
var p uintptr
for p = pSelect; p != 0; p = (*Select)(unsafe.Pointer(p)).FpPrior {
heightOfExpr(tls, (*Select)(unsafe.Pointer(p)).FpWhere, pnHeight)
@@ -82295,13 +82862,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) { /* sqlite3.c:103205: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 {
@@ -82317,7 +82889,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) { /* sqlite3.c:103225:21: */
if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
@@ -82327,7 +82899,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 { /* sqlite3.c:103235:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -82354,7 +82926,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 { /* sqlite3.c:103274:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -82402,7 +82974,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 { /* sqlite3.c:103322:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -82417,7 +82989,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) { /* sqlite3.c:103339:21: */
if pRoot == uintptr(0) {
Xsqlite3ExprDelete(tls, db, pLeft)
@@ -82440,7 +83012,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 { /* sqlite3.c:103369:21: */
var p uintptr
p = Xsqlite3DbMallocRawNN(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(Expr{})))
if p != 0 {
@@ -82458,7 +83030,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) { /* sqlite3.c:103394:21: */
if pExpr != 0 {
*(*uintptr)(unsafe.Pointer(pExpr + 32)) = pSelect
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_xIsSelect | EP_Subquery)
@@ -82486,7 +83058,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 { /* sqlite3.c:103424:23: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -82504,12 +83076,12 @@ func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList
nExprElem = 1
}
if nExprElem != nElem {
- Xsqlite3ErrorMsg(tls, pParse, ts+7375,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7371,
libc.VaList(bp, nExprElem, func() uintptr {
if nExprElem > 1 {
- return ts + 7419 /* "s" */
+ return ts + 7415 /* "s" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), nElem))
break
}
@@ -82538,7 +83110,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 { /* sqlite3.c:103471:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if pLeft == uintptr(0) {
return pRight
@@ -82548,7 +83120,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+7421)
+ return Xsqlite3Expr(tls, db, TK_INTEGER, ts+7417)
} else {
return Xsqlite3PExpr(tls, pParse, TK_AND, pLeft, pRight)
}
@@ -82557,7 +83129,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 { /* sqlite3.c:103492:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82569,10 +83141,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+7423, libc.VaList(bp, pToken))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7419, libc.VaList(bp, pToken))
}
*(*uintptr)(unsafe.Pointer(pNew + 32)) = pList
*(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_HasFunc)
@@ -82593,7 +83166,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) { /* sqlite3.c:103532:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82606,7 +83179,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+7457, libc.VaList(bp, (*FuncDef)(unsafe.Pointer(pDef)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7453, libc.VaList(bp, pExpr))
}
}
}
@@ -82625,7 +83198,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) { /* sqlite3.c:103571:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -82659,8 +83232,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+7476,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7473,
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 */)))
@@ -82686,12 +83260,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+7519, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+7516, 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) { /* sqlite3.c:103641: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
@@ -82721,7 +83296,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) { /* sqlite3.c:103682:21: */
if p != 0 {
sqlite3ExprDeleteNN(tls, db, p)
}
@@ -82735,13 +83310,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) { /* sqlite3.c:103697: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) { /* sqlite3.c:103705:21: */
if p != 0 {
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
Xsqlite3RenameExprUnmap(tls, pParse, p)
@@ -82753,7 +83328,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 { /* sqlite3.c:103719:12: */
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_TokenOnly) != U32(0) {
return int32(uintptr(0) + 16)
}
@@ -82795,7 +83370,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 { /* sqlite3.c:103759:12: */
var nSize int32
// Only one flag value allowed
@@ -82817,7 +83392,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 { /* sqlite3.c:103790: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)))
@@ -82836,7 +83411,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 { /* sqlite3.c:103811:12: */
var nByte int32 = 0
if p != 0 {
nByte = dupedExprNodeSize(tls, p, flags)
@@ -82853,7 +83428,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 { /* sqlite3.c:103830:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82963,7 +83538,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 { /* sqlite3.c:103940: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))
@@ -82985,7 +83560,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 { /* sqlite3.c:103968: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))
@@ -82995,14 +83570,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 { /* sqlite3.c:103979: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) { /* sqlite3.c:103982:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -83035,7 +83610,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 { /* sqlite3.c:104011:21: */
if p != 0 {
return exprDup(tls, db, p, flags, uintptr(0))
@@ -83043,7 +83618,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 { /* sqlite3.c:104015:25: */
var pNew uintptr
var pItem uintptr
var pOldItem uintptr
@@ -83112,7 +83687,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 { /* sqlite3.c:104070:24: */
var pNew uintptr
var i int32
var nByte int32
@@ -83165,7 +83740,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 { /* sqlite3.c:104114:23: */
var pNew uintptr
var i int32
@@ -83194,7 +83769,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 { /* sqlite3.c:104138:23: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -83260,9 +83835,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{} /* sqlite3.c:104209: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 { /* sqlite3.c:104210:41: */
var pItem uintptr
var pList uintptr
@@ -83279,7 +83854,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 { /* sqlite3.c:104229:41: */
var pItem uintptr
var pNew uintptr
*(*int32)(unsafe.Pointer(pList + 4)) *= 2
@@ -83298,7 +83873,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 { /* sqlite3.c:104251:25: */
var pItem uintptr
if pList == uintptr(0) {
return Xsqlite3ExprListAppendNew(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -83321,7 +83896,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 { /* sqlite3.c:104280:25: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -83359,7 +83934,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+7542,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7539,
libc.VaList(bp, (*IdList)(unsafe.Pointer(pColumns)).FnId, n))
goto vector_append_error
__3:
@@ -83418,7 +83993,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) { /* sqlite3.c:104342:21: */
var pItem uintptr
if p == uintptr(0) {
return
@@ -83445,7 +84020,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) { /* sqlite3.c:104380:21: */
if pList != 0 {
var pItem uintptr
@@ -83471,7 +84046,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) { /* sqlite3.c:104415:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if pList != 0 {
@@ -83486,23 +84061,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) { /* sqlite3.c:104437: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+7572, libc.VaList(bp, zObject))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7569, 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) { /* sqlite3.c:104453: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
@@ -83510,7 +84085,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) { /* sqlite3.c:104464:21: */
if pList != 0 {
exprListDeleteNN(tls, db, pList)
}
@@ -83518,7 +84093,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 { /* sqlite3.c:104472:20: */
var i int32
var m U32 = U32(0)
@@ -83535,7 +84110,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 { /* sqlite3.c:104491:20: */
_ = NotUsed
(*Walker)(unsafe.Pointer(pWalker)).FeCode = U16(0)
return WRC_Abort
@@ -83547,11 +84122,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+6639) == 0 {
+func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* sqlite3.c:104505:20: */
+ if Xsqlite3StrICmp(tls, zIn, ts+6646) == 0 {
return U32(EP_IsTrue)
}
- if Xsqlite3StrICmp(tls, zIn, ts+6644) == 0 {
+ if Xsqlite3StrICmp(tls, zIn, ts+6651) == 0 {
return U32(EP_IsFalse)
}
return U32(0)
@@ -83560,7 +84135,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 { /* sqlite3.c:104517:20: */
var v U32
if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Quoted|EP_IntValue) != U32(0)) &&
@@ -83574,7 +84149,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 { /* sqlite3.c:104534:20: */
pExpr = Xsqlite3ExprSkipCollate(tls, pExpr)
return libc.Bool32(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 8)) + 4))) == 0)
@@ -83591,7 +84166,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 { /* sqlite3.c:104556: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)
@@ -83637,7 +84212,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 { /* sqlite3.c:104597: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
@@ -83712,7 +84287,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 { /* sqlite3.c:104669:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -83736,7 +84311,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 { /* sqlite3.c:104690:20: */
return exprIsConst(tls, p, 1, 0)
}
@@ -83751,7 +84326,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 { /* sqlite3.c:104707:20: */
return exprIsConst(tls, p, 2, 0)
}
@@ -83759,12 +84334,12 @@ 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 { /* sqlite3.c:104717:20: */
return exprIsConst(tls, p, 3, iCur)
}
// 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 { /* sqlite3.c:104725:12: */
var pGroupBy uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var i int32
@@ -83806,7 +84381,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 { /* sqlite3.c:104769:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -83842,7 +84417,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 { /* sqlite3.c:104801:20: */
return exprIsConst(tls, p, 4+int32(isInit), 0)
}
@@ -83851,7 +84426,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 { /* sqlite3.c:104830:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -83903,7 +84478,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 { /* sqlite3.c:104876:20: */
var op U8
for int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UPLUS || int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UMINUS {
@@ -83942,7 +84517,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 { /* sqlite3.c:104913:20: */
var op U8
var unaryMinus int32 = 0
if int32(aff) == SQLITE_AFF_BLOB {
@@ -83995,14 +84570,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+7595) == 0 {
+func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:104949:20: */
+ if Xsqlite3StrICmp(tls, z, ts+7592) == 0 {
return 1
}
- if Xsqlite3StrICmp(tls, z, ts+7603) == 0 {
+ if Xsqlite3StrICmp(tls, z, ts+7600) == 0 {
return 1
}
- if Xsqlite3StrICmp(tls, z, ts+7609) == 0 {
+ if Xsqlite3StrICmp(tls, z, ts+7606) == 0 {
return 1
}
return 0
@@ -84013,7 +84588,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 { /* sqlite3.c:104964:15: */
var p uintptr
var pSrc uintptr
var pEList uintptr
@@ -84071,7 +84646,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) { /* sqlite3.c:105009:13: */
var addr1 int32
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regHasNull)
addr1 = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, iCur)
@@ -84083,7 +84658,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 { /* sqlite3.c:105026:12: */
var pLHS uintptr
var res int32
@@ -84172,7 +84747,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 { /* sqlite3.c:105119:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -84230,7 +84805,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+7613, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7610, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
Xsqlite3VdbeJumpHere(tls, v, iAddr)
} else {
var pIdx uintptr // Iterator variable
@@ -84321,7 +84896,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+7660, libc.VaList(bp+8, (*Index)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7657, 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)
@@ -84390,7 +84965,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 { /* sqlite3.c:105342:13: */
var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
var nVal int32 = Xsqlite3ExprVectorSize(tls, pLeft)
var pSelect uintptr
@@ -84422,12 +84997,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) { /* sqlite3.c:105374:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 {
- var zFmt uintptr = ts + 7691 /* "sub-select retur..." */
+ var zFmt uintptr = ts + 7688 /* "sub-select retur..." */
Xsqlite3ErrorMsg(tls, pParse, zFmt, libc.VaList(bp, nActual, nExpect))
}
}
@@ -84441,11 +85016,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) { /* sqlite3.c:105393: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+6417, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6424, 0)
}
}
@@ -84469,7 +85044,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) { /* sqlite3.c:105427:21: */
bp := tls.Alloc(65)
defer tls.Free(65)
@@ -84498,7 +85073,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+7735, libc.VaList(bp, (*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7732, libc.VaList(bp, (*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId))
}
Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)),
@@ -84536,11 +85111,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+7758, libc.VaList(bp+8, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+7755, libc.VaList(bp+8, func() uintptr {
if addrOnce != 0 {
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
- return ts + 7777 /* "CORRELATED " */
+ return ts + 7774 /* "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.
@@ -84664,7 +85239,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 { /* sqlite3.c:105622:20: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -84687,7 +85262,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+7789, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7786, 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)))
@@ -84722,11 +85297,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+7807, libc.VaList(bp+8, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+7804, libc.VaList(bp+8, func() uintptr {
if addrOnce != 0 {
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
- return ts + 7777 /* "CORRELATED " */
+ return ts + 7774 /* "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
@@ -84750,7 +85325,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+7421)
+ pLimit = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7417)
if pLimit != 0 {
(*Expr)(unsafe.Pointer(pLimit)).FaffExpr = int8(SQLITE_AFF_NUMERIC)
pLimit = Xsqlite3PExpr(tls, pParse, TK_NE,
@@ -84760,15 +85335,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+7828)
+ pLimit = Xsqlite3Expr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_INTEGER, ts+7825)
(*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)
@@ -84789,7 +85362,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 { /* sqlite3.c:105744: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 {
@@ -84826,7 +85399,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) { /* sqlite3.c:105785:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -85051,44 +85624,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
@@ -85096,41 +85663,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.
@@ -85140,28 +85707,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)
@@ -85171,16 +85738,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)
@@ -85188,7 +85755,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.
@@ -85196,10 +85763,10 @@ __39:
sqlite3ExprCodeIN_finished:
if !(rLhs != rLhsOrig) {
- goto __40
+ goto __39
}
Xsqlite3ReleaseTempReg(tls, pParse, rLhs)
-__40:
+__39:
;
sqlite3ExprCodeIN_oom_error:
@@ -85213,7 +85780,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) { /* sqlite3.c:106043:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -85233,7 +85800,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) { /* sqlite3.c:106061:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -85253,13 +85820,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+7830, 2) == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+7833, libc.VaList(bp, func() uintptr {
- if negFlag != 0 {
- return ts + 4874 /* "-" */
- }
- return ts + 1565 /* "" */
- }(), z))
+ if Xsqlite3_strnicmp(tls, z, ts+7827, 2) == 0 {
+ Xsqlite3ErrorMsg(tls, pParse, ts+7830,
+ libc.VaList(bp, func() uintptr {
+ if negFlag != 0 {
+ return ts + 4883 /* "-" */
+ }
+ return ts + 1534 /* "" */
+ }(), pExpr))
} else {
codeReal(tls, v, z, negFlag, iMem)
}
@@ -85278,7 +85846,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) { /* sqlite3.c:106099:21: */
var iTabCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iIdxCol)*2))
if int32(iTabCol) == -2 {
@@ -85293,7 +85861,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) { /* sqlite3.c:106124:21: */
var iAddr int32
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -85312,7 +85880,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) { /* sqlite3.c:106150:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -85333,7 +85901,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+7859,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7857,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
} else {
var savedSelfTab int32 = (*Parse)(unsafe.Pointer(pParse)).FiSelfTab
@@ -85363,7 +85931,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 { /* sqlite3.c:106208:20: */
Xsqlite3ExprCodeGetColumnOfTable(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, pTab, iTable, iColumn, iReg)
if p5 != 0 {
@@ -85377,14 +85945,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) { /* sqlite3.c:106229: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) { /* sqlite3.c:106238:13: */
var p uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
if p == uintptr(0) {
return
@@ -85403,7 +85971,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 { /* sqlite3.c:106257:12: */
var iResult int32
var nResult int32 = Xsqlite3ExprVectorSize(tls, p)
if nResult == 1 {
@@ -85427,7 +85995,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) { /* sqlite3.c:106287: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
}
@@ -85435,7 +86003,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 { /* sqlite3.c:106297:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -85533,14 +86101,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 + 7889, ts + 7894, ts + 7899, ts + 6137, ts + 6132}
+ *(*[5]uintptr)(unsafe.Pointer(bp + 72 /* azAff */)) = [5]uintptr{ts + 7887, ts + 7892, ts + 7897, ts + 6142, ts + 6137}
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 + 7907 /* "none" */
+ return ts + 7905 /* "none" */
}
return *(*uintptr)(unsafe.Pointer(bp + 72 /* &azAff[0] */ + uintptr(int32(aff)-SQLITE_AFF_BLOB)*8))
}())
@@ -85560,7 +86128,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 { /* sqlite3.c:106413:20: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -85915,7 +86483,7 @@ __69:
if !(int32((*Column)(unsafe.Pointer(pCol1)).FcolFlags)&COLFLAG_BUSY != 0) {
goto __72
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7859,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7857,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol1)).FzCnName))
return 0
__72:
@@ -86169,7 +86737,7 @@ __41:
goto __87
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7912, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7910, 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
@@ -86211,7 +86779,7 @@ __90:
if !(pDef == uintptr(0) || (*FuncDef)(unsafe.Pointer(pDef)).FxFinalize != uintptr(0)) {
goto __91
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7938, libc.VaList(bp+16, zId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7937, libc.VaList(bp+16, pExpr))
goto __3
__91:
;
@@ -86407,7 +86975,7 @@ __122:
if !((*Expr)(unsafe.Pointer(pExpr)).FiTable != n1) {
goto __123
}
- Xsqlite3ErrorMsg(tls, pParse, ts+7542,
+ Xsqlite3ErrorMsg(tls, pParse, ts+7539,
libc.VaList(bp+24, (*Expr)(unsafe.Pointer(pExpr)).FiTable, n1))
__123:
;
@@ -86466,7 +87034,7 @@ __124:
goto __3
__52:
- Xsqlite3ErrorMsg(tls, pParse, ts+6417, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+6424, 0)
goto __3
// TK_IF_NULL_ROW Expr nodes are inserted ahead of expressions
@@ -86629,7 +87197,7 @@ __3:
return inReg
}
-var zAff = *(*[8]int8)(unsafe.Pointer(ts + 8011)) /* sqlite3.c:105685:29 */
+var zAff = *(*[8]int8)(unsafe.Pointer(ts + 8011)) /* sqlite3.c:106480:29 */
// Generate code that will evaluate expression pExpr just one time
// per prepared statement execution.
@@ -86646,7 +87214,7 @@ var zAff = *(*[8]int8)(unsafe.Pointer(ts + 8011)) /* 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 { /* sqlite3.c:107187:20: */
var p uintptr
p = (*Parse)(unsafe.Pointer(pParse)).FpConstExpr
@@ -86715,7 +87283,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 { /* sqlite3.c:107244:20: */
var r2 int32
pExpr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 &&
@@ -86740,7 +87308,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) { /* sqlite3.c:107272:21: */
var inReg int32
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe == uintptr(0) {
@@ -86761,7 +87329,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) { /* sqlite3.c:107296:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
@@ -86774,7 +87342,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) { /* sqlite3.c:107309:21: */
if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 && Xsqlite3ExprIsConstantNotJoin(tls, pExpr) != 0 {
Xsqlite3ExprCodeRunJustOnce(tls, pParse, pExpr, target)
} else {
@@ -86800,7 +87368,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 { /* sqlite3.c:107337:20: */
var pItem uintptr
var i int32
var j int32
@@ -86882,7 +87450,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) { /* sqlite3.c:107412:13: */
bp := tls.Alloc(220)
defer tls.Free(220)
@@ -86945,7 +87513,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) { /* sqlite3.c:107484:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -87175,7 +87743,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) { /* sqlite3.c:107626:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -87423,7 +87991,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) { /* sqlite3.c:107798: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 {
@@ -87443,7 +88011,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 { /* sqlite3.c:107820:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -87497,7 +88065,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 { /* sqlite3.c:107876:20: */
var combinedFlags U32
if pA == uintptr(0) || pB == uintptr(0) {
if pB == pA {
@@ -87601,7 +88169,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 { /* sqlite3.c:107972:20: */
var i int32
if pA == uintptr(0) && pB == uintptr(0) {
return 0
@@ -87628,7 +88196,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 { /* sqlite3.c:107991:20: */
return Xsqlite3ExprCompare(tls, uintptr(0),
Xsqlite3ExprSkipCollateAndLikely(tls, pA),
Xsqlite3ExprSkipCollateAndLikely(tls, pB),
@@ -87639,7 +88207,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 { /* sqlite3.c:108004:12: */
if Xsqlite3ExprCompare(tls, pParse, p, pNN, iTab) == 0 {
return libc.Bool32(int32((*Expr)(unsafe.Pointer(pNN)).Fop) != TK_NULL)
@@ -87765,7 +88333,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 { /* sqlite3.c:108101:20: */
if Xsqlite3ExprCompare(tls, pParse, pE1, pE2, iTab) == 0 {
return 1
}
@@ -87788,7 +88356,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 { /* sqlite3.c:108133:12: */
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) {
return WRC_Prune
@@ -87897,7 +88465,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 { /* sqlite3.c:108242:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -87931,7 +88499,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 { /* sqlite3.c:108280: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 {
@@ -87949,7 +88517,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 { /* sqlite3.c:108301:20: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -87974,7 +88542,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 { /* sqlite3.c:108336:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
var i I64
@@ -88012,7 +88580,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) { /* sqlite3.c:108356:13: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
if (*RefSrcList)(unsafe.Pointer(p)).FnExclude != 0 {
@@ -88028,7 +88596,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 { /* sqlite3.c:108373:12: */
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN ||
int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_COLUMN {
var i int32
@@ -88068,7 +88636,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 { /* sqlite3.c:108410:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -88117,7 +88685,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 { /* sqlite3.c:108452: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
@@ -88150,7 +88718,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) { /* sqlite3.c:108488: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 {
@@ -88163,7 +88731,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 { /* sqlite3.c:108499:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -88180,7 +88748,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 { /* sqlite3.c:108515:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -88198,7 +88766,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 { /* sqlite3.c:108532:12: */
var i int32
var pNC uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pParse uintptr = (*NameContext)(unsafe.Pointer(pNC)).FpParse
@@ -88389,7 +88957,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) { /* sqlite3.c:108670:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -88415,7 +88983,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) { /* sqlite3.c:108688:21: */
var pItem uintptr
var i int32
if pList != 0 {
@@ -88440,7 +89008,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 { /* sqlite3.c:108701:20: */
if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) == 0 {
return libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
}
@@ -88449,7 +89017,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) { /* sqlite3.c:108712:21: */
if iReg != 0 {
if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) < int32(uint64(unsafe.Sizeof([8]int32{}))/uint64(unsafe.Sizeof(int32(0)))) {
@@ -88459,7 +89027,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 { /* sqlite3.c:108724:20: */
var i int32
var n int32
if nReg == 1 {
@@ -88477,7 +89045,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) { /* sqlite3.c:108738:21: */
if nReg == 1 {
Xsqlite3ReleaseTempReg(tls, pParse, iReg)
return
@@ -88495,7 +89063,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) { /* sqlite3.c:108758:21: */
(*Parse)(unsafe.Pointer(pParse)).FnTempReg = U8(0)
(*Parse)(unsafe.Pointer(pParse)).FnRangeReg = 0
}
@@ -88529,7 +89097,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 { /* sqlite3.c:108818:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -88548,7 +89116,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) { /* sqlite3.c:108840:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -88572,7 +89140,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) { /* sqlite3.c:108877:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -88588,7 +89156,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) { /* sqlite3.c:108898:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
if v != 0 {
Xsqlite3ChangeCookie(tls, pParse, iDb)
@@ -88601,7 +89169,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) { /* sqlite3.c:108911:21: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -88786,7 +89354,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) { /* sqlite3.c:109080:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -88801,7 +89369,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) { /* sqlite3.c:109100:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -88818,9 +89386,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)
@@ -88945,7 +89515,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) { /* sqlite3.c:109265:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -88977,7 +89547,7 @@ __2:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __3
}
- Xsqlite3ErrorMsg(tls, pParse, ts+10297, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+10293, 0)
goto exit_begin_add_column
__3:
;
@@ -88986,7 +89556,7 @@ __3:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
goto __4
}
- Xsqlite3ErrorMsg(tls, pParse, ts+10331, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+10327, 0)
goto exit_begin_add_column
__4:
;
@@ -89021,7 +89591,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+10361, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ (*Table)(unsafe.Pointer(pNew)).FzName = Xsqlite3MPrintf(tls, db, ts+10357, 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
}
@@ -89062,24 +89632,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 { /* sqlite3.c:109348: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 + 10380 /* "view" */
+ zType = ts + 10376 /* "view" */
}
if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB {
- zType = ts + 10385 /* "virtual table" */
+ zType = ts + 10381 /* "virtual table" */
}
if zType != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+10399,
+ Xsqlite3ErrorMsg(tls, pParse, ts+10395,
libc.VaList(bp, func() uintptr {
if bDrop != 0 {
- return ts + 10417 /* "drop column from" */
+ return ts + 10413 /* "drop column from" */
}
- return ts + 10434 /* "rename columns o..." */
+ return ts + 10430 /* "rename columns o..." */
}(),
zType, (*Table)(unsafe.Pointer(pTab)).FzName))
return 1
@@ -89090,7 +89660,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) { /* sqlite3.c:109378:21: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -89172,13 +89742,13 @@ __8:
if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
goto __10
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6252, libc.VaList(bp, zOld))
+ Xsqlite3ErrorMsg(tls, pParse, ts+10448, 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+1565, 0)
+ renameTestSchema(tls, pParse, zDb, libc.Bool32(iSchema == 1), ts+1534, 0)
renameFixQuotes(tls, pParse, zDb, libc.Bool32(iSchema == 1))
// Do the rename operation using a recursive UPDATE statement that
@@ -89196,14 +89766,14 @@ __11:
bQuote = int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(pNew)).Fz)))]) & 0x80
Xsqlite3NestedParse(tls, pParse,
- ts+10452,
+ ts+10469,
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+10634,
+ ts+10651,
libc.VaList(bp+72, zDb, (*Table)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote))
// Drop and reload the database schema.
@@ -89219,7 +89789,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 /* sqlite3.c:109493:26 */
// Remember that the parser tree element pPtr was created using
// the token pToken.
@@ -89231,7 +89801,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 { /* sqlite3.c:109556:27: */
var pNew uintptr
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_UNMAP {
@@ -89250,7 +89820,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) { /* sqlite3.c:109582:21: */
var p uintptr
for p = (*Parse)(unsafe.Pointer(pParse)).FpRename; p != 0; p = (*RenameToken)(unsafe.Pointer(p)).FpNext {
@@ -89262,7 +89832,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 { /* sqlite3.c:109596: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) {
@@ -89273,7 +89843,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) { /* sqlite3.c:109609:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -89314,7 +89884,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) { /* sqlite3.c:109644:13: */
if pIdList != 0 {
var ii int32
for ii = 0; ii < (*IdList)(unsafe.Pointer(pIdList)).FnId; ii++ {
@@ -89324,7 +89894,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 { /* sqlite3.c:109659:12: */
var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse
var i int32
if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
@@ -89356,7 +89926,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) { /* sqlite3.c:109692:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -89378,7 +89948,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) { /* sqlite3.c:109708:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -89401,7 +89971,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) { /* sqlite3.c:109727:13: */
var pNext uintptr
var p uintptr
for p = pToken; p != 0; p = pNext {
@@ -89417,12 +89987,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 { /* sqlite3.c:109745: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 {
@@ -89440,7 +90010,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 { /* sqlite3.c:109774:12: */
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_View|SF_CopyCte) != 0 {
return WRC_Prune
@@ -89456,7 +90026,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 { /* sqlite3.c:109793: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 &&
@@ -89478,7 +90048,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 { /* sqlite3.c:109819:20: */
var pBest uintptr = (*RenameCtx)(unsafe.Pointer(pCtx)).FpList
var pToken uintptr
var pp uintptr
@@ -89500,7 +90070,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) { /* sqlite3.c:109840:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -89508,23 +90078,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+10765,
+ zErr = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+10782,
libc.VaList(bp, zT, zN, func() uintptr {
if *(*int8)(unsafe.Pointer(zWhen)) != 0 {
- return ts + 10788 /* " " */
+ return ts + 10805 /* " " */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), 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) { /* sqlite3.c:109865:13: */
if pEList != 0 {
var i int32
for i = 0; i < (*ExprList)(unsafe.Pointer(pEList)).FnExpr; i++ {
@@ -89541,7 +90111,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) { /* sqlite3.c:109890:13: */
if pIdList != 0 {
var i int32
for i = 0; i < (*IdList)(unsafe.Pointer(pIdList)).FnId; i++ {
@@ -89555,12 +90125,8 @@ 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 { /* sqlite3.c:109912:12: */
var rc int32
- *(*uintptr)(unsafe.Pointer(bp /* zErr */)) = uintptr(0)
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = func() uint8 {
if bTemp != 0 {
@@ -89572,23 +90138,21 @@ func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uint
// 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{})))
+ Xsqlite3ParseObjectInit(tls, p, db)
(*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)
+ rc = Xsqlite3RunParser(tls, p, zSql)
} else {
rc = SQLITE_NOMEM
}
-
- (*Parse)(unsafe.Pointer(p)).FzErrMsg = *(*uintptr)(unsafe.Pointer(bp /* zErr */))
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)
+ rc = Xsqlite3CorruptError(tls, 109935)
}
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(0)
@@ -89602,7 +90166,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 { /* sqlite3.c:109963:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -89622,7 +90186,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+10790, libc.VaList(bp, zNew))
+ zQuot = Xsqlite3MPrintf(tls, db, ts+10807, libc.VaList(bp, zNew))
if zQuot == uintptr(0) {
return SQLITE_NOMEM
} else {
@@ -89672,12 +90236,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+10796, libc.VaList(bp+8, zBuf1,
+ Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, ts+10813, 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 + 10788 /* " " */
+ return ts + 10805 /* " " */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()))
zReplace = zBuf2
nReplace = U32(Xsqlite3Strlen30(tls, zReplace))
@@ -89708,7 +90272,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 { /* sqlite3.c:110070:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -89806,7 +90370,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) { /* sqlite3.c:110166:13: */
var pStep uintptr
// Find tokens to edit in WHEN clause
@@ -89835,7 +90399,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) { /* sqlite3.c:110197:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pIdx uintptr
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 {
@@ -89849,12 +90413,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.)
@@ -89872,10 +90436,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) { /* sqlite3.c:110238:13: */
+ bp := tls.Alloc(488)
+ defer tls.Free(488)
var db uintptr
// var sCtx RenameCtx at bp, 32
@@ -89889,9 +90454,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
@@ -89963,15 +90528,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) {
@@ -89999,7 +90564,7 @@ __6:
if !(rc == SQLITE_OK) {
goto __11
}
- Xsqlite3WalkSelect(tls, bp+432, pSelect)
+ Xsqlite3WalkSelect(tls, bp+440, pSelect)
__11:
;
if !(rc != SQLITE_OK) {
@@ -90032,13 +90597,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
@@ -90051,7 +90616,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
@@ -90066,7 +90631,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++
@@ -90123,8 +90688,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)
@@ -90177,7 +90742,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:
@@ -90189,13 +90754,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+1565, *(*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+1534, *(*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:
@@ -90208,7 +90781,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 { /* sqlite3.c:110405: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) &&
@@ -90219,7 +90792,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 { /* sqlite3.c:110419:12: */
var i int32
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
@@ -90259,9 +90832,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) { /* sqlite3.c:110463: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)))
@@ -90272,7 +90845,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
@@ -90307,13 +90880,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 {
@@ -90375,8 +90948,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+1565, *(*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+1534, *(*uintptr)(unsafe.Pointer(argv + 1*8)), *(*uintptr)(unsafe.Pointer(argv + 2*8)), bp+80)
} else {
Xsqlite3_result_error_code(tls, context, rc)
}
@@ -90391,16 +90966,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 { /* sqlite3.c:110606: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:
//
@@ -90419,9 +90995,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) { /* sqlite3.c:110640: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)))
@@ -90435,26 +91015,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 {
@@ -90469,34 +91049,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)
}
@@ -90506,6 +91090,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
@@ -90520,14 +91106,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) { /* sqlite3.c:110753: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)))
@@ -90544,7 +91132,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 {
@@ -90554,11 +91142,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
}
@@ -90570,13 +91158,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)
@@ -90595,9 +91185,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) { /* sqlite3.c:110828:13: */
+ bp := tls.Alloc(432)
+ defer tls.Free(432)
var db uintptr
var iSchema int32
@@ -90605,7 +91195,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
@@ -90635,7 +91225,7 @@ __1:
goto __2
}
// This can happen if the sqlite_schema table is corrupt
- rc = Xsqlite3CorruptError(tls, 110041)
+ rc = Xsqlite3CorruptError(tls, 110856)
goto drop_column_done
__2:
;
@@ -90661,7 +91251,7 @@ __6:
__4:
;
- zNew = Xsqlite3MPrintf(tls, db, ts+10801, libc.VaList(bp, (int64((*RenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql))/1, zSql, zEnd))
+ zNew = Xsqlite3MPrintf(tls, db, ts+10818, 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)
@@ -90681,7 +91271,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) { /* sqlite3.c:110893:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -90749,7 +91339,7 @@ __5:
if !(iCol < 0) {
goto __6
}
- Xsqlite3ErrorMsg(tls, pParse, ts+6252, libc.VaList(bp, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+10448, libc.VaList(bp, pName))
goto exit_drop_column
__6:
;
@@ -90759,12 +91349,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+10808,
+ Xsqlite3ErrorMsg(tls, pParse, ts+10825,
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 + 10836 /* "PRIMARY KEY" */
+ return ts + 10853 /* "PRIMARY KEY" */
}
- return ts + 6073 /* "UNIQUE" */
+ return ts + 6078 /* "UNIQUE" */
}(),
zCol))
goto exit_drop_column
@@ -90775,7 +91365,7 @@ __7:
if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) <= 1) {
goto __8
}
- Xsqlite3ErrorMsg(tls, pParse, ts+10848, libc.VaList(bp+24, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+10865, libc.VaList(bp+24, zCol))
goto exit_drop_column
__8:
;
@@ -90784,19 +91374,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+1565, 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+1534, 0)
renameFixQuotes(tls, pParse, zDb, libc.Bool32(iDb == 1))
Xsqlite3NestedParse(tls, pParse,
- ts+10896, libc.VaList(bp+32, zDb, iDb, iCol, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+10913, 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+11017, 1)
+ renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+11034, 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
@@ -90806,99 +91403,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:
@@ -90907,16 +91504,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) { /* sqlite3.c:111035: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 + 11035},
- {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11056},
- {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11076},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11095},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11114}} /* sqlite3.c:110215:18 */
+ {FnArg: int8(9), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11052},
+ {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11073},
+ {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11093},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11112},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11131}} /* sqlite3.c:111036:18 */
//************* End of alter.c **********************************************
//************* Begin file analyze.c ****************************************
@@ -91072,7 +91669,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) { /* sqlite3.c:111214:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -91113,7 +91710,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+11137, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, aTable[i].FzCols))
+ ts+11154, 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)
}
@@ -91125,10 +91722,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+11160,
+ ts+11177,
libc.VaList(bp+24, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere))
} else if (*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 {
- Xsqlite3NestedParse(tls, pParse, ts+11190, libc.VaList(bp+56, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab))
+ Xsqlite3NestedParse(tls, pParse, ts+11207, 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)
@@ -91149,10 +91746,10 @@ var aTable = [3]struct {
FzName uintptr
FzCols uintptr
}{
- {FzName: ts + 11208 /* "sqlite_stat1" */, FzCols: ts + 11221 /* "tbl,idx,stat" */},
- {FzName: ts + 11234 /* "sqlite_stat4" */, FzCols: ts + 11247 /* "tbl,idx,neq,nlt,..." */},
- {FzName: ts + 11275 /* "sqlite_stat3" */},
-} /* sqlite3.c:110403:5 */
+ {FzName: ts + 11225 /* "sqlite_stat1" */, FzCols: ts + 11238 /* "tbl,idx,stat" */},
+ {FzName: ts + 11251 /* "sqlite_stat4" */, FzCols: ts + 11264 /* "tbl,idx,neq,nlt,..." */},
+ {FzName: ts + 11292 /* "sqlite_stat3" */},
+} /* sqlite3.c:111224:5 */
// Recommended number of samples for sqlite_stat4
@@ -91179,14 +91776,14 @@ type StatAccum1 = struct {
FnMaxEqZero int32
FiGet int32
Fa uintptr
-} /* sqlite3.c:110491:9 */
+} /* sqlite3.c:111312: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 /* sqlite3.c:111312:26 */
type StatSample1 = struct {
FanEq uintptr
FanDLt uintptr
@@ -91197,12 +91794,12 @@ type StatSample1 = struct {
F__ccgo_pad1 [3]byte
FiCol int32
FiHash U32
-} /* sqlite3.c:110491:9 */
+} /* sqlite3.c:111312:9 */
-type StatSample = StatSample1 /* sqlite3.c:110492:27 */
+type StatSample = StatSample1 /* sqlite3.c:111313: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) { /* sqlite3.c:111354:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -91211,7 +91808,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) { /* sqlite3.c:111366:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -91226,7 +91823,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) { /* sqlite3.c:111382:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -91236,7 +91833,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) { /* sqlite3.c:111395: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
@@ -91251,7 +91848,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) { /* sqlite3.c:111413:13: */
var p uintptr = pOld
if (*StatAccum)(unsafe.Pointer(p)).FmxSample != 0 {
var i int32
@@ -91286,7 +91883,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) { /* sqlite3.c:111448:13: */
var p uintptr
var nCol int32 // Number of columns in index being sampled
var nKeyCol int32 // Number of key columns
@@ -91381,7 +91978,7 @@ var statInitFuncdef = FuncDef{
FnArg: int8(4), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11288} /* sqlite3.c:110713:22 */
+ FzName: ts + 11305} /* sqlite3.c:111534:22 */
// pNew and pOld are both candidate non-periodic samples selected for
// the same column (pNew->iCol==pOld->iCol). Ignoring this column and
@@ -91392,7 +91989,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 { /* sqlite3.c:111558:12: */
var nCol int32 = (*StatAccum)(unsafe.Pointer(pAccum)).FnCol
var i int32
@@ -91414,7 +92011,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 { /* sqlite3.c:111582: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))
@@ -91432,7 +92029,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) { /* sqlite3.c:111605:13: */
var pSample uintptr
var i int32
var pOld uintptr
@@ -91575,7 +92172,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) { /* sqlite3.c:111697:13: */
var i int32
// Check if any samples from the aBest[] array should be pushed
@@ -91627,7 +92224,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) { /* sqlite3.c:111749:13: */
var i int32
// The three function arguments
@@ -91699,7 +92296,7 @@ var statPushFuncdef = FuncDef{
FnArg: int8(2 + IsStat4),
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11298} /* sqlite3.c:111003:22 */
+ FzName: ts + 11315} /* sqlite3.c:111824:22 */
// Implementation of the stat_get(P,J) SQL function. This routine is
// used to query statistical information that has been gathered into
@@ -91718,7 +92315,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) { /* sqlite3.c:111861:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -91752,7 +92349,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+11308,
+ Xsqlite3_str_appendf(tls, bp+24, ts+11325,
libc.VaList(bp, func() uint64 {
if (*StatAccum)(unsafe.Pointer(p)).FnSkipAhead != 0 {
return U64((*StatAccum)(unsafe.Pointer(p)).FnEst)
@@ -91762,7 +92359,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+11313, libc.VaList(bp+8, iVal))
+ Xsqlite3_str_appendf(tls, bp+24, ts+11330, libc.VaList(bp+8, iVal))
}
Xsqlite3ResultStrAccum(tls, context, bp+24)
@@ -91805,7 +92402,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+11319, libc.VaList(bp+16, U64(*(*TRowcnt)(unsafe.Pointer(aCnt + uintptr(i)*4)))))
+ Xsqlite3_str_appendf(tls, bp+56, ts+11336, 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--
@@ -91819,9 +92416,9 @@ var statGetFuncdef = FuncDef{
FnArg: int8(1 + IsStat4),
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11325} /* sqlite3.c:111137:22 */
+ FzName: ts + 11342} /* sqlite3.c:111958: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) { /* sqlite3.c:111970:13: */
Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Integer, iParam, regStat+1)
Xsqlite3VdbeAddFunctionCall(tls, pParse, 0, regStat, regOut, 1+IsStat4,
@@ -91830,7 +92427,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) { /* sqlite3.c:112011: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
@@ -91866,7 +92463,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+11334, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
+ if Xsqlite3_strlike(tls, ts+11351, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
// Do not gather statistics on system tables
return
}
@@ -91884,7 +92481,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+11208, uint64(13))
+ libc.Xmemcpy(tls, (*Table)(unsafe.Pointer(pStat1)).FzName, ts+11225, 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)
@@ -92117,7 +92714,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+11344, 0)
+ Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+11361, 0)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid)
Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid)
Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -6)
@@ -92179,7 +92776,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+11344, 0)
+ Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+11361, 0)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid)
Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid)
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND))
@@ -92190,7 +92787,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) { /* sqlite3.c:112373:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if v != 0 {
Xsqlite3VdbeAddOp1(tls, v, OP_LoadAnalysis, iDb)
@@ -92198,7 +92795,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) { /* sqlite3.c:112383: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
@@ -92223,7 +92820,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) { /* sqlite3.c:112410:13: */
var iDb int32
var iStatCur int32
@@ -92232,9 +92829,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+11348)
+ openStatTable(tls, pParse, iDb, iStatCur, (*Index)(unsafe.Pointer(pOnlyIdx)).FzName, ts+11365)
} else {
- openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11352)
+ openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11369)
}
analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*Parse)(unsafe.Pointer(pParse)).FnMem+1, (*Parse)(unsafe.Pointer(pParse)).FnTab)
loadAnalysis(tls, pParse, iDb)
@@ -92250,7 +92847,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) { /* sqlite3.c:112441:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -92313,23 +92910,23 @@ func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
type analysisInfo = struct {
Fdb uintptr
FzDatabase uintptr
-} /* sqlite3.c:111672:9 */
+} /* sqlite3.c:112493:9 */
// Used to pass information from the analyzer reader through to the
// callback routine.
-type AnalysisInfo = analysisInfo /* sqlite3.c:111672:29 */
+type AnalysisInfo = analysisInfo /* sqlite3.c:112493: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) { /* sqlite3.c:112504:13: */
var z uintptr = zIntArray
var c int32
var i int32
var v TRowcnt
if z == uintptr(0) {
- z = ts + 1565 /* "" */
+ z = ts + 1534 /* "" */
}
for i = 0; *(*int8)(unsafe.Pointer(z)) != 0 && i < nOut; i++ {
v = TRowcnt(0)
@@ -92351,15 +92948,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+11356, z) == 0 {
+ if Xsqlite3_strglob(tls, ts+11373, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 2, 0x4)
- } else if Xsqlite3_strglob(tls, ts+11367, z) == 0 {
+ } else if Xsqlite3_strglob(tls, ts+11384, 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+11377, z) == 0 {
+ } else if Xsqlite3_strglob(tls, ts+11394, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 6, 0x40)
}
for int32(*(*int8)(unsafe.Pointer(z))) != 0 && int32(*(*int8)(unsafe.Pointer(z))) != ' ' {
@@ -92381,7 +92978,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 { /* sqlite3.c:112577:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -92443,7 +93040,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) { /* sqlite3.c:112640:21: */
if (*Index)(unsafe.Pointer(pIdx)).FaSample != 0 {
var j int32
for j = 0; j < (*Index)(unsafe.Pointer(pIdx)).FnSample; j++ {
@@ -92460,7 +93057,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) { /* sqlite3.c:112665:13: */
if pIdx != 0 {
var aSample uintptr = (*Index)(unsafe.Pointer(pIdx)).FaSample
var pFinal uintptr = aSample + uintptr((*Index)(unsafe.Pointer(pIdx)).FnSample-1)*40
@@ -92518,7 +93115,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 { /* sqlite3.c:112724:14: */
var pIdx uintptr = Xsqlite3FindIndex(tls, db, zName, zDb)
if pIdx == uintptr(0) {
var pTab uintptr = Xsqlite3FindTable(tls, db, zName, zDb)
@@ -92539,7 +93136,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 { /* sqlite3.c:112749:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -92675,15 +93272,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 { /* sqlite3.c:112870:12: */
var rc int32 = SQLITE_OK // Result codes from subroutines
var pStat4 uintptr
- if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+11234, zDb)) != uintptr(0) &&
+ if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+11251, zDb)) != uintptr(0) &&
int32((*Table)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM {
rc = loadStatTbl(tls, db,
- ts+11389,
- ts+11443,
+ ts+11406,
+ ts+11460,
zDb)
}
return rc
@@ -92707,7 +93304,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 { /* sqlite3.c:112908:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -92735,10 +93332,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+11208, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 &&
+ if libc.AssignUintptr(&pStat1, Xsqlite3FindTable(tls, db, ts+11225, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 &&
int32((*Table)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM {
zSql = Xsqlite3MPrintf(tls, db,
- ts+11495, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase))
+ ts+11512, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase))
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
} else {
@@ -92814,7 +93411,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 { /* sqlite3.c:113016:12: */
var rc int32 = SQLITE_OK
if pExpr != 0 {
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_ID {
@@ -92828,9 +93425,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 { /* sqlite3.c:113033: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+6327, zName) == 0)
+ iDb == 0 && Xsqlite3StrICmp(tls, ts+6332, zName) == 0)
}
// An SQL user-function registered to do the work of an ATTACH statement. The
@@ -92846,7 +93443,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) { /* sqlite3.c:113055:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -92881,13 +93478,13 @@ func attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
if !(zFile == uintptr(0)) {
goto __1
}
- zFile = ts + 1565 /* "" */
+ zFile = ts + 1534 /* "" */
__1:
;
if !(zName == uintptr(0)) {
goto __2
}
- zName = ts + 1565 /* "" */
+ zName = ts + 1534 /* "" */
__2:
;
@@ -92897,7 +93494,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+3795)
+ *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)) = Xsqlite3_vfs_find(tls, ts+3786)
if !(*(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0)) {
goto __5
}
@@ -92913,7 +93510,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+11536, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB)
+ rc = Xsqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)), ts+11553, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB)
goto __4
__3:
// This is a real ATTACH
@@ -92926,7 +93523,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+11539,
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11556,
libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
goto attach_error
__7:
@@ -92940,7 +93537,7 @@ __8:
if !(Xsqlite3DbIsNamed(tls, db, i, zName) != 0) {
goto __11
}
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11576, libc.VaList(bp+8, zName))
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11593, libc.VaList(bp+8, zName))
goto attach_error
__11:
;
@@ -93011,7 +93608,7 @@ __4:
goto __18
}
rc = SQLITE_ERROR
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11606, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11623, 0)
goto __19
__18:
if !(rc == SQLITE_OK) {
@@ -93028,7 +93625,7 @@ __21:
goto __23
}
*(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db,
- ts+11635, 0)
+ ts+11652, 0)
rc = SQLITE_ERROR
__23:
;
@@ -93098,13 +93695,13 @@ __29:
}
Xsqlite3OomFault(tls, db)
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)))
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+6050, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+1470, 0)
goto __31
__30:
if !(*(*uintptr)(unsafe.Pointer(bp + 56)) == uintptr(0)) {
goto __32
}
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11703, libc.VaList(bp+16, zFile))
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11720, libc.VaList(bp+16, zFile))
__32:
;
__31:
@@ -93139,7 +93736,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) { /* sqlite3.c:113248:13: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -93160,7 +93757,7 @@ func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
if !(zName == uintptr(0)) {
goto __1
}
- zName = ts + 1565 /* "" */
+ zName = ts + 1534 /* "" */
__1:
;
i = 0
@@ -93192,14 +93789,14 @@ __4:
if !(i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
goto __7
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11731, libc.VaList(bp, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11748, libc.VaList(bp, zName))
goto detach_error
__7:
;
if !(i < 2) {
goto __8
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11752, libc.VaList(bp+8, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11769, libc.VaList(bp+8, zName))
goto detach_error
__8:
;
@@ -93207,7 +93804,7 @@ __8:
Xsqlite3BtreeIsInBackup(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) != 0) {
goto __9
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11778, libc.VaList(bp+16, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11795, libc.VaList(bp+16, zName))
goto detach_error
__9:
;
@@ -93244,7 +93841,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) { /* sqlite3.c:113310:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -93323,7 +93920,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) { /* sqlite3.c:113382:21: */
codeAttach(tls, pParse, SQLITE_DETACH, uintptr(unsafe.Pointer(&detach_func)), pDbname, uintptr(0), uintptr(0), pDbname)
}
@@ -93331,12 +93928,12 @@ var detach_func = FuncDef{
FnArg: int8(1), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11800} /* sqlite3.c:112562:24 */
+ FzName: ts + 11817} /* sqlite3.c:113383: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) { /* sqlite3.c:113402:21: */
codeAttach(tls, pParse, SQLITE_ATTACH, uintptr(unsafe.Pointer(&attach_func)), p, p, pDbname, pKey)
}
@@ -93344,10 +93941,10 @@ var attach_func = FuncDef{
FnArg: int8(3), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 11814} /* sqlite3.c:112582:24 */
+ FzName: ts + 11831} /* sqlite3.c:113403: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 { /* sqlite3.c:113421:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -93359,7 +93956,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+11828, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType))
+ Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, ts+11845, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType))
return WRC_Abort
}
}
@@ -93367,7 +93964,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 { /* sqlite3.c:113438:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -93392,7 +93989,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+11852,
+ ts+11869,
libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType, (*DbFixer)(unsafe.Pointer(pFix)).FpName, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase))
return WRC_Abort
}
@@ -93428,7 +94025,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) { /* sqlite3.c:113481:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
(*DbFixer)(unsafe.Pointer(pFix)).FpParse = pParse
@@ -93464,7 +94061,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 { /* sqlite3.c:113519:20: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -93479,15 +94076,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 { /* sqlite3.c:113533: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 { /* sqlite3.c:113539: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 { /* sqlite3.c:113548: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 ||
@@ -93577,7 +94174,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 { /* sqlite3.c:113652:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxAuth = xAuth
(*Sqlite3)(unsafe.Pointer(db)).FpAuthArg = pArg
@@ -93590,8 +94187,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+11898, 0)
+func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113672:13: */
+ Xsqlite3ErrorMsg(tls, pParse, ts+11915, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR
}
@@ -93602,7 +94199,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 { /* sqlite3.c:113686:20: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -93617,11 +94214,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+11921, libc.VaList(bp, zTab, zCol))
+ var z uintptr = Xsqlite3_mprintf(tls, ts+11938, libc.VaList(bp, zTab, zCol))
if (*Sqlite3)(unsafe.Pointer(db)).FnDb > 2 || iDb != 0 {
- z = Xsqlite3_mprintf(tls, ts+11927, libc.VaList(bp+16, zDb, z))
+ z = Xsqlite3_mprintf(tls, ts+11944, libc.VaList(bp+16, zDb, z))
}
- Xsqlite3ErrorMsg(tls, pParse, ts+11933, libc.VaList(bp+32, z))
+ Xsqlite3ErrorMsg(tls, pParse, ts+11950, libc.VaList(bp+32, z))
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH
} else if rc != SQLITE_IGNORE && rc != SQLITE_OK {
sqliteAuthBadReturnCode(tls, pParse)
@@ -93636,7 +94233,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) { /* sqlite3.c:113722: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
@@ -93673,7 +94270,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 + 7603 /* "ROWID" */
+ zCol = ts + 7600 /* "ROWID" */
}
if SQLITE_IGNORE == Xsqlite3AuthReadCol(tls, pParse, (*Table)(unsafe.Pointer(pTab)).FzName, zCol, iDb) {
@@ -93685,7 +94282,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 { /* sqlite3.c:113779:20: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var rc int32
@@ -93707,7 +94304,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+11960, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+11977, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH
} else if rc != SQLITE_OK && rc != SQLITE_IGNORE {
rc = SQLITE_DENY
@@ -93719,7 +94316,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) { /* sqlite3.c:113828:21: */
(*AuthContext)(unsafe.Pointer(pContext)).FpParse = pParse
(*AuthContext)(unsafe.Pointer(pContext)).FzAuthContext = (*Parse)(unsafe.Pointer(pParse)).FzAuthContext
@@ -93728,7 +94325,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) { /* sqlite3.c:113843: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)
@@ -93743,7 +94340,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) { /* sqlite3.c:113902:29: */
var pToplevel uintptr
var i int32
var nBytes int32
@@ -93777,7 +94374,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) { /* sqlite3.c:113938:21: */
if iDb == 1 {
return
}
@@ -93789,7 +94386,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) { /* sqlite3.c:113954:13: */
var i int32
var pVdbe uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -93813,17 +94410,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) { /* sqlite3.c:113993: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
}
@@ -93852,6 +94450,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
@@ -93941,7 +94540,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]
@@ -93963,14 +94563,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) { /* sqlite3.c:114164: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
@@ -93993,14 +94592,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--
}
@@ -94014,7 +94614,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 { /* sqlite3.c:114219:22: */
var p uintptr = uintptr(0)
var i int32
@@ -94029,7 +94629,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+6327) == 0 {
+ if Xsqlite3StrICmp(tls, zDatabase, ts+6332) == 0 {
i = 0
} else {
return uintptr(0)
@@ -94038,16 +94638,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+8019, 7) == 0 {
if i == 1 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11975+7) == 0 ||
- Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11994+7) == 0 ||
- Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5825+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11992+7) == 0 ||
+ Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12011+7) == 0 ||
+ Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5844+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8,
- ts+12008)
+ ts+12025)
}
} else {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11994+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12011+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i)*32)).FpSchema+8,
- ts+5825)
+ ts+5844)
}
}
}
@@ -94071,11 +94671,11 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
}
}
if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+8019, 7) == 0 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11994+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+11975+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12011+7) == 0 {
+ p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+5844)
+ } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11992+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8,
- ts+12008)
+ ts+12025)
}
}
}
@@ -94090,7 +94690,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 { /* sqlite3.c:114297:22: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -94111,7 +94711,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+12027, 7) == 0 {
+ if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+12044, 7) == 0 {
pMod = Xsqlite3PragmaVtabRegister(tls, db, zName)
}
if pMod != 0 && Xsqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 {
@@ -94130,14 +94730,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 + 12035 /* "no such view" */
+ zMsg = ts + 12052 /* "no such view" */
} else {
- zMsg = ts + 12048 /* "no such table" */
+ zMsg = ts + 12065 /* "no such table" */
}
if zDbase != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+6520, libc.VaList(bp, zMsg, zDbase, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6527, libc.VaList(bp, zMsg, zDbase, zName))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+6530, libc.VaList(bp+24, zMsg, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+6537, libc.VaList(bp+24, zMsg, zName))
}
} else {
@@ -94153,7 +94753,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 { /* sqlite3.c:114360:22: */
var zDb uintptr
if (*SrcItem)(unsafe.Pointer(p)).FpSchema != 0 {
@@ -94167,13 +94767,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 { /* sqlite3.c:114380:27: */
if Xsqlite3_strnicmp(tls, zName, ts+8019, 7) == 0 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5825+7) == 0 {
- return ts + 11994 /* "sqlite_schema" */
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5844+7) == 0 {
+ return ts + 12011 /* "sqlite_schema" */
}
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12008+7) == 0 {
- return ts + 11975 /* "sqlite_temp_sche..." */
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12025+7) == 0 {
+ return ts + 11992 /* "sqlite_temp_sche..." */
}
}
return zName
@@ -94189,7 +94789,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 { /* sqlite3.c:114404:22: */
var p uintptr = uintptr(0)
var i int32
// All mutexes are required for schema access. Make sure we hold them.
@@ -94216,7 +94816,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) { /* sqlite3.c:114424:21: */
Xsqlite3DeleteIndexSamples(tls, db, p)
Xsqlite3ExprDelete(tls, db, (*Index)(unsafe.Pointer(p)).FpPartIdxWhere)
Xsqlite3ExprListDelete(tls, db, (*Index)(unsafe.Pointer(p)).FaColExpr)
@@ -94232,7 +94832,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) { /* sqlite3.c:114444:21: */
var pIndex uintptr
var pHash uintptr
@@ -94264,7 +94864,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) { /* sqlite3.c:114477:21: */
var i int32
var j int32
for i = libc.AssignInt32(&j, 2); i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -94290,7 +94890,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) { /* sqlite3.c:114504:21: */
var i int32
if iDb >= 0 {
@@ -94311,7 +94911,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) { /* sqlite3.c:114528:21: */
var i int32
Xsqlite3BtreeEnterAll(tls, db)
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -94333,14 +94933,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) { /* sqlite3.c:114552: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) { /* sqlite3.c:114561:21: */
var pList uintptr
pList = *(*uintptr)(unsafe.Pointer(pTab + 64 + 16 /* &.pDfltList */))
@@ -94363,7 +94963,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 { /* sqlite3.c:114587:21: */
if int32((*Column)(unsafe.Pointer(pCol)).FiDflt) == 0 {
return uintptr(0)
}
@@ -94380,7 +94980,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) { /* sqlite3.c:114598:21: */
var nColl I64
var n I64
var zNew uintptr
@@ -94399,7 +94999,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 { /* sqlite3.c:114623:27: */
var z uintptr
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASCOLL == 0 {
return uintptr(0)
@@ -94409,7 +95009,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++
}
}
@@ -94418,7 +95018,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) { /* sqlite3.c:114638:21: */
var i int32
var pCol uintptr
@@ -94468,7 +95068,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) { /* sqlite3.c:114676:29: */
var pIndex uintptr
var pNext uintptr
@@ -94505,7 +95105,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) { /* sqlite3.c:114733:21: */
// Do not delete the table until the reference count reaches zero.
if !(pTable != 0) {
return
@@ -94518,7 +95118,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) { /* sqlite3.c:114745:21: */
var p uintptr
var pDb uintptr
@@ -94540,7 +95140,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 { /* sqlite3.c:114773:21: */
var zName uintptr
if pName != 0 {
zName = Xsqlite3DbStrNDup(tls, db, (*Token)(unsafe.Pointer(pName)).Fz, uint64((*Token)(unsafe.Pointer(pName)).Fn))
@@ -94553,9 +95153,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) { /* sqlite3.c:114788:21: */
var v uintptr = Xsqlite3GetVdbe(tls, p)
- Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+5825)
+ Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+5844)
Xsqlite3VdbeAddOp4Int(tls, v, OP_OpenWrite, 0, SCHEMA_ROOT, iDb, 5)
if (*Parse)(unsafe.Pointer(p)).FnTab == 0 {
(*Parse)(unsafe.Pointer(p)).FnTab = 1
@@ -94566,7 +95166,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 { /* sqlite3.c:114803:20: */
var i int32 = -1 // Database number
if zName != 0 {
var pDb uintptr
@@ -94582,7 +95182,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+6327, zName) {
+ if i == 0 && 0 == Xsqlite3_stricmp(tls, ts+6332, zName) {
goto __3
}
@@ -94602,7 +95202,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 { /* sqlite3.c:114823:20: */
var i int32 // Database number
var zName uintptr // Name we are searching for
zName = Xsqlite3NameFromToken(tls, db, pName)
@@ -94626,7 +95226,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 { /* sqlite3.c:114848:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -94635,13 +95235,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+12062, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12079, 0)
return -1
}
*(*uintptr)(unsafe.Pointer(pUnqual)) = pName2
iDb = Xsqlite3FindDb(tls, db, pName1)
if iDb < 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12079, libc.VaList(bp, pName1))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12096, libc.VaList(bp, pName1))
return -1
}
} else {
@@ -94653,7 +95253,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 { /* sqlite3.c:114881:20: */
return libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_WriteSchema|SQLITE_Defensive) == uint64(SQLITE_WriteSchema))
}
@@ -94667,7 +95267,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 { /* sqlite3.c:114903:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -94682,13 +95282,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+1565, 0) // corruptSchema() will supply the error
+ Xsqlite3ErrorMsg(tls, pParse, ts+1534, 0) // corruptSchema() will supply the error
return SQLITE_ERROR
}
} else {
if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, ts+8019, 7) ||
Xsqlite3ReadOnlyShadowTables(tls, db) != 0 && Xsqlite3ShadowTableName(tls, db, zName) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12099,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12116,
libc.VaList(bp, zName))
return SQLITE_ERROR
}
@@ -94698,7 +95298,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 { /* sqlite3.c:114941: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 {
}
@@ -94709,7 +95309,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 { /* sqlite3.c:114953: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))) {
@@ -94729,7 +95329,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 { /* sqlite3.c:114973:20: */
if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasVirtual) != 0 {
var i int32
for i = 0; i <= int32(iCol); i++ {
@@ -94776,7 +95376,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 { /* sqlite3.c:115021:20: */
var i int32
var n I16
@@ -94806,7 +95406,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) { /* sqlite3.c:115047:13: */
var iReg int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if v != 0 {
@@ -94829,16 +95429,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) { /* sqlite3.c:115072: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
@@ -94857,15 +95457,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 + 12008 /* "sqlite_temp_mast..." */
+ return ts + 12025 /* "sqlite_temp_mast..." */
}
- return ts + 5825 /* "sqlite_master" */
+ return ts + 5844 /* "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
}
@@ -94877,7 +95477,7 @@ __3:
}
// If creating a temp table, the name may not be qualified. Unless
// the database name is "temp" anyway.
- Xsqlite3ErrorMsg(tls, pParse, ts+12141, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12158, 0)
return
__4:
;
@@ -94887,16 +95487,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
}
@@ -94905,7 +95505,7 @@ __7:
;
if !(Xsqlite3CheckObjectName(tls, pParse, zName, func() uintptr {
if isView != 0 {
- return ts + 10380
+ return ts + 10376
}
return ts + 8761
}(), zName) != 0) {
@@ -94924,9 +95524,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 + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}(), uintptr(0), zDb) != 0) {
goto __10
}
@@ -94964,7 +95564,13 @@ __13:
if !!(noErr != 0) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12182, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 16 /* pName */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12199,
+ libc.VaList(bp, func() uintptr {
+ if int32((*Table)(unsafe.Pointer(pTable)).FeTabType) == TABTYP_VIEW {
+ return ts + 10376 /* "view" */
+ }
+ return ts + 8761 /* "table" */
+ }(), *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */))))
goto __16
__15:
;
@@ -94978,7 +95584,7 @@ __14:
if !(Xsqlite3FindIndex(tls, db, zName, zDb1) != uintptr(0)) {
goto __17
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12206, libc.VaList(bp+8, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12220, libc.VaList(bp+16, zName))
goto begin_table_error
__17:
;
@@ -95081,8 +95687,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 */
+} /* sqlite3.c:115119:21 */
+var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* sqlite3.c:115198:23 */
// Set properties of a table column based on the (magical)
// name of the column.
@@ -95092,10 +95698,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) { /* sqlite3.c:115283:13: */
var pHash uintptr
pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema + 56
- Xsqlite3HashInsert(tls, pHash, ts+12241, uintptr(0))
+ Xsqlite3HashInsert(tls, pHash, ts+12255, uintptr(0))
Xsqlite3ExprListDelete(tls, db, (*Returning)(unsafe.Pointer(pRet)).FpReturnEL)
Xsqlite3DbFree(tls, db, pRet)
}
@@ -95114,12 +95720,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) { /* sqlite3.c:115307: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+12258, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12272, 0)
} else {
}
@@ -95140,7 +95746,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 + 12241 /* "sqlite_returning" */
+ (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 12255 /* "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)
@@ -95152,7 +95758,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+12241, pRet+16) ==
+ if Xsqlite3HashInsert(tls, pHash, ts+12255, pRet+16) ==
pRet+16 {
Xsqlite3OomFault(tls, db)
}
@@ -95164,7 +95770,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) { /* sqlite3.c:115355:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
*(*Token)(unsafe.Pointer(bp + 16)) = sName
@@ -95186,7 +95792,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+12292, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12306, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName))
return
}
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
@@ -95198,13 +95804,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+12315, 6) == 0 {
+ Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(6)), ts+12329, 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+12322, 9) == 0 {
+ Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(9)), ts+12336, 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--
@@ -95244,7 +95850,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+12332, libc.VaList(bp+8, z))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12346, libc.VaList(bp+8, z))
Xsqlite3DbFree(tls, db, z)
return
}
@@ -95283,7 +95889,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) { /* sqlite3.c:115468:21: */
var p uintptr
var pCol uintptr
p = (*Parse)(unsafe.Pointer(pParse)).FpNewTable
@@ -95330,7 +95936,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 { /* sqlite3.c:115515:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -95404,7 +96010,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) { /* sqlite3.c:115592:21: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -95416,11 +96022,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+12358,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12372,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
} else if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12403, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12417, 0)
} else {
// A copy of pExpr is used instead of the original, as pExpr contains
// tokens that point to volatile memory.
@@ -95457,7 +96063,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) { /* sqlite3.c:115651: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 {
@@ -95466,12 +96072,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) { /* sqlite3.c:115662:13: */
*(*U16)(unsafe.Pointer(pCol + 16)) |= U16(COLFLAG_PRIMKEY)
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+12444, 0)
+ ts+12458, 0)
}
}
@@ -95491,7 +96097,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) { /* sqlite3.c:115692:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -95516,7 +96122,7 @@ __1:
goto __2
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+12496, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+12510, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto primary_key_exit
__2:
;
@@ -95605,7 +96211,7 @@ __13:
goto __17
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+12537, 0)
+ ts+12551, 0)
goto __18
__17:
Xsqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, onError, uintptr(0),
@@ -95622,7 +96228,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) { /* sqlite3.c:115769:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -95652,7 +96258,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) { /* sqlite3.c:115803:21: */
var p uintptr
var i int32
var zColl uintptr // Dequoted name of collation sequence
@@ -95687,7 +96293,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) { /* sqlite3.c:115836:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -95707,7 +96313,7 @@ __1:
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) == PARSE_MODE_DECLARE_VTAB) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12593, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12607, 0)
goto generated_done
__2:
;
@@ -95720,13 +96326,13 @@ __3:
if !(pType != 0) {
goto __4
}
- if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+12636, (*Token)(unsafe.Pointer(pType)).Fz, 7) == 0) {
+ if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+12650, (*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+12644, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) {
+ if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, ts+12658, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) {
goto __7
}
eType = U8(COLFLAG_STORED)
@@ -95759,7 +96365,7 @@ __10:
goto generated_done
generated_error:
- Xsqlite3ErrorMsg(tls, pParse, ts+12651,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12665,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
generated_done:
Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -95782,7 +96388,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) { /* sqlite3.c:115904:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -95796,7 +96402,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 { /* sqlite3.c:115920:12: */
var n int32
n = 0
__1:
@@ -95831,7 +96437,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) { /* sqlite3.c:115941:13: */
var zIdent uintptr = zSignedIdent
var i int32
var j int32
@@ -95867,7 +96473,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 { /* sqlite3.c:115969:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -95901,13 +96507,13 @@ __3:
;
n = n + identLength(tls, (*Table)(unsafe.Pointer(p)).FzName)
if n < 50 {
- zSep = ts + 1565 /* "" */
- zSep2 = ts + 12682 /* "," */
- zEnd = ts + 4899 /* ")" */
+ zSep = ts + 1534 /* "" */
+ zSep2 = ts + 12696 /* "," */
+ zEnd = ts + 4908 /* ")" */
} else {
- zSep = ts + 12684 /* "\n " */
- zSep2 = ts + 12688 /* ",\n " */
- zEnd = ts + 12693 /* "\n)" */
+ zSep = ts + 12698 /* "\n " */
+ zSep2 = ts + 12702 /* ",\n " */
+ zEnd = ts + 12707 /* "\n)" */
}
n = n + (35 + 6*int32((*Table)(unsafe.Pointer(p)).FnCol))
zStmt = Xsqlite3DbMallocRaw(tls, uintptr(0), uint64(n))
@@ -95915,7 +96521,7 @@ __3:
Xsqlite3OomFault(tls, db)
return uintptr(0)
}
- Xsqlite3_snprintf(tls, n, zStmt, ts+12696, 0)
+ Xsqlite3_snprintf(tls, n, zStmt, ts+12710, 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('(')
@@ -95949,21 +96555,21 @@ __5:
goto __6
__6:
;
- Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+3623, libc.VaList(bp, zEnd))
+ Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+3614, libc.VaList(bp, zEnd))
return zStmt
}
var azType1 = [5]uintptr{
- ts + 1565,
- ts + 12710,
- ts + 12716,
- ts + 12721,
- ts + 12726,
-} /* sqlite3.c:115172:23 */
+ ts + 1534,
+ ts + 12724,
+ ts + 12730,
+ ts + 12735,
+ ts + 12740,
+} /* sqlite3.c:115999: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 { /* sqlite3.c:116037:12: */
var zExtra uintptr
var nByte int32
if int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) >= N {
@@ -95992,7 +96598,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) { /* sqlite3.c:116064:13: */
var wTable uint32 = uint32(0)
var pTabCol uintptr
var i int32
@@ -96021,7 +96627,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) { /* sqlite3.c:116078:13: */
var wIndex uint32 = uint32(0)
var i int32
var aCol uintptr = (*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol
@@ -96041,7 +96647,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 { /* sqlite3.c:116094:12: */
for libc.PostDecInt32(&nCol, 1) > 0 {
if x == int32(*(*I16)(unsafe.Pointer(libc.PostIncUintptr(&aiCol, 2)))) {
return 1
@@ -96061,7 +96667,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 { /* sqlite3.c:116116:12: */
var i int32
var j int32
@@ -96094,7 +96700,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) { /* sqlite3.c:116155:13: */
var m Bitmask = uint64(0)
var j int32
var pTab uintptr = (*Index)(unsafe.Pointer(pIdx)).FpTable
@@ -96133,7 +96739,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) { /* sqlite3.c:116195:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -96186,10 +96792,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 {
@@ -96295,7 +96902,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 { /* sqlite3.c:116355:20: */
var nName int32 // Length of zName
var pMod uintptr // Module for the virtual table
@@ -96328,7 +96935,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) { /* sqlite3.c:116378: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
@@ -96372,7 +96979,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 { /* sqlite3.c:116414: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, '_')
@@ -96409,7 +97016,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) { /* sqlite3.c:116475:21: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -96440,7 +97047,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+1565, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+1534, 0)
return
}
(*Table)(unsafe.Pointer(p)).Ftnum = (*Sqlite3)(unsafe.Pointer(db)).Finit.FnewTnum
@@ -96465,10 +97072,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+12732,
- libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1565)))
+ ts+12746,
+ libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1534)))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+12765,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12779,
libc.VaList(bp+24, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName))
}
return
@@ -96488,11 +97095,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+12792, 0)
+ ts+12806, 0)
return
}
if (*Table)(unsafe.Pointer(p)).FtabFlags&U32(TF_HasPrimaryKey) == U32(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+12842, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12856, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName))
return
}
*(*U32)(unsafe.Pointer(p + 48)) |= U32(TF_WithoutRowid | TF_NoVisibleRowid)
@@ -96536,7 +97143,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
}
}
if nNG == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+12874, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+12888, 0)
return
}
}
@@ -96570,11 +97177,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 + 8761 /* "table" */
- zType2 = ts + 12918 /* "TABLE" */
+ zType2 = ts + 12932 /* "TABLE" */
} else {
// A view
- zType = ts + 10380 /* "view" */
- zType2 = ts + 12924 /* "VIEW" */
+ zType = ts + 10376 /* "view" */
+ zType2 = ts + 12938 /* "VIEW" */
}
// If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT
@@ -96646,7 +97253,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
}
@@ -96655,7 +97262,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+12929, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
+ ts+12943, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
}
// A slot for the record has already been allocated in the
@@ -96663,7 +97270,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
// the information we've collected.
Xsqlite3NestedParse(tls, pParse,
- ts+12944,
+ ts+12958,
libc.VaList(bp+72, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName,
zType,
(*Table)(unsafe.Pointer(p)).FzName,
@@ -96681,14 +97288,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+13042,
+ ts+13056,
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+13084, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+13098, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0))
}
// Add the table to the in-memory representation of the database.
@@ -96725,7 +97332,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) { /* sqlite3.c:116812:21: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -96746,7 +97353,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+13118, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13132, 0)
goto create_view_fail
__1:
;
@@ -96768,7 +97375,7 @@ __2:
Xsqlite3TwoPartName(tls, pParse, pName1, pName2, bp)
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(p)).FpSchema)
- Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+10380, *(*uintptr)(unsafe.Pointer(bp /* pName */)))
+ Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+10376, *(*uintptr)(unsafe.Pointer(bp /* pName */)))
if !(Xsqlite3FixSelect(tls, bp+8, pSelect) != 0) {
goto __3
}
@@ -96843,7 +97450,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 { /* sqlite3.c:116904:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -96883,7 +97490,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+13154, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13168, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
return 1
}
@@ -96919,9 +97526,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))
}
@@ -96958,7 +97565,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) { /* sqlite3.c:117032: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) {
@@ -96988,7 +97595,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) { /* sqlite3.c:117066:21: */
var pElem uintptr
var pHash uintptr
var pDb uintptr
@@ -97014,14 +97621,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) { /* sqlite3.c:117096: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+13184, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13198, 0)
}
Xsqlite3VdbeAddOp3(tls, v, OP_Destroy, iTable, r1, iDb)
Xsqlite3MayAbort(tls, pParse)
@@ -97035,7 +97642,7 @@ func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /
// token for additional information.
Xsqlite3NestedParse(tls, pParse,
- ts+13199,
+ ts+13213,
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)
}
@@ -97044,7 +97651,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) { /* sqlite3.c:117126: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
@@ -97090,7 +97697,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) { /* sqlite3.c:117175:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -97099,17 +97706,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+13266, libc.VaList(bp, i))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([24]int8{})), bp+40, ts+13280, libc.VaList(bp, i))
if Xsqlite3FindTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, bp+40, zDbName) != 0 {
Xsqlite3NestedParse(tls, pParse,
- ts+11160,
+ ts+11177,
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) { /* sqlite3.c:117198:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -97142,7 +97749,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+13280,
+ ts+13294,
libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName))
}
@@ -97154,7 +97761,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3
// database.
Xsqlite3NestedParse(tls, pParse,
- ts+13325,
+ ts+13339,
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)
@@ -97173,7 +97780,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 { /* sqlite3.c:117271: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 &&
@@ -97184,12 +97791,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 { /* sqlite3.c:117287:12: */
if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8019, 7) == 0 {
- if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+3246, 4) == 0 {
+ if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+3237, 4) == 0 {
return 0
}
- if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+7019, 10) == 0 {
+ if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+7015, 10) == 0 {
return 0
}
return 1
@@ -97205,7 +97812,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) { /* sqlite3.c:117306:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -97273,9 +97880,9 @@ __7:
zTab = func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}()
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
zArg2 = uintptr(0)
@@ -97335,7 +97942,7 @@ __18:
if !(tableMayNotBeDropped(tls, db, pTab) != 0) {
goto __19
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13392, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13406, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
__19:
;
@@ -97345,14 +97952,14 @@ __19:
if !(isView != 0 && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW)) {
goto __20
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13420, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13434, 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+13454, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13468, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
__21:
;
@@ -97367,7 +97974,7 @@ __21:
if !!(isView != 0) {
goto __23
}
- sqlite3ClearStatTables(tls, pParse, iDb, ts+11352, (*Table)(unsafe.Pointer(pTab)).FzName)
+ sqlite3ClearStatTables(tls, pParse, iDb, ts+11369, (*Table)(unsafe.Pointer(pTab)).FzName)
Xsqlite3FkDropTable(tls, pParse, pName, pTab)
__23:
;
@@ -97393,7 +98000,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) { /* sqlite3.c:117426:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -97432,7 +98039,7 @@ __4:
goto __5
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13486,
+ ts+13500,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(iCol)*24)).FzCnName, pTo))
goto fk_end
__5:
@@ -97445,7 +98052,7 @@ __2:
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13549, 0)
+ ts+13563, 0)
goto fk_end
goto __7
__6:
@@ -97530,7 +98137,7 @@ __21:
goto __23
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13643,
+ ts+13657,
libc.VaList(bp+16, (*ExprList_item)(unsafe.Pointer(pFromCol+8+uintptr(i)*32)).FzEName))
goto fk_end
__23:
@@ -97616,7 +98223,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) { /* sqlite3.c:117558:21: */
var pTab uintptr
var pFKey uintptr
if libc.AssignUintptr(&pTab, (*Parse)(unsafe.Pointer(pParse)).FpNewTable) == uintptr(0) {
@@ -97641,7 +98248,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) { /* sqlite3.c:117581:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -97753,7 +98360,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 { /* sqlite3.c:117687:22: */
var p uintptr // Allocated index object
var nByte int32 // Bytes of space for Index object + arrays
@@ -97778,7 +98385,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 { /* sqlite3.c:117720:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -97787,12 +98394,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+13689,
+ Xsqlite3ErrorMsg(tls, pParse, ts+13703,
libc.VaList(bp, func() uintptr {
if int32(sf) == 0 || int32(sf) == 3 {
- return ts + 13717 /* "FIRST" */
+ return ts + 13731 /* "FIRST" */
}
- return ts + 13723 /* "LAST" */
+ return ts + 13737 /* "LAST" */
}()))
return 1
}
@@ -97811,7 +98418,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) { /* sqlite3.c:117748:21: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -97892,12 +98499,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
}
@@ -97950,7 +98558,7 @@ __9:
__8:
;
- Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+13728, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))
+ Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+13742, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))
if !(Xsqlite3FixSrcList(tls, bp+136, pTblName) != 0) {
goto __10
}
@@ -97971,7 +98579,7 @@ __11:
goto __12
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13734,
+ ts+13748,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_create_index
__12:
@@ -98003,21 +98611,21 @@ __6:
pTblName != uintptr(0)) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13784, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13798, 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+13812, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13826, 0)
goto exit_create_index
__16:
;
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __17
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13837, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13851, 0)
goto exit_create_index
__17:
;
@@ -98044,7 +98652,7 @@ __17:
__20:
;
- if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+13728, (*Table)(unsafe.Pointer(pTab)).FzName)) {
+ if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+13742, (*Table)(unsafe.Pointer(pTab)).FzName)) {
goto __21
}
goto exit_create_index
@@ -98059,7 +98667,7 @@ __21:
if !(Xsqlite3FindTable(tls, db, zName, uintptr(0)) != uintptr(0)) {
goto __24
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13871, libc.VaList(bp+16, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13885, libc.VaList(bp+16, zName))
goto exit_create_index
__24:
;
@@ -98071,7 +98679,7 @@ __23:
if !!(ifNotExist != 0) {
goto __26
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13905, libc.VaList(bp+24, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13919, libc.VaList(bp+24, zName))
goto __27
__26:
;
@@ -98100,7 +98708,7 @@ __29:
goto __30
__30:
;
- zName = Xsqlite3MPrintf(tls, db, ts+13929, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n))
+ zName = Xsqlite3MPrintf(tls, db, ts+13943, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n))
if !(zName == uintptr(0)) {
goto __31
}
@@ -98129,9 +98737,9 @@ __19:
zDb = (*Db)(unsafe.Pointer(pDb)).FzDbSName
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}(), uintptr(0), zDb) != 0) {
goto __34
}
@@ -98175,7 +98783,7 @@ __39:
Xsqlite3ExprListSetSortOrder(tls, pList, sortOrder, -1)
goto __38
__37:
- Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+13728)
+ Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+13742)
if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __40
}
@@ -98293,7 +98901,7 @@ __53:
goto __56
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13952, 0)
+ ts+13966, 0)
goto exit_create_index
__56:
;
@@ -98523,7 +99131,7 @@ __88:
goto __93
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+14013, libc.VaList(bp+48, 0))
+ ts+14027, libc.VaList(bp+48, 0))
__93:
;
if !(int32((*Index)(unsafe.Pointer(pIdx)).FonError) == OE_Default) {
@@ -98579,8 +99187,8 @@ __81:
if !(Xsqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0) {
goto __101
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14055, 0)
- (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 117375)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14069, 0)
+ (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 118204)
goto exit_create_index
__101:
;
@@ -98637,12 +99245,12 @@ __104:
__107:
;
// A named index with an explicit CREATE INDEX statement
- zStmt = Xsqlite3MPrintf(tls, db, ts+14072,
+ zStmt = Xsqlite3MPrintf(tls, db, ts+14086,
libc.VaList(bp+56, func() uintptr {
if onError == OE_None {
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
- return ts + 14092 /* " UNIQUE" */
+ return ts + 14106 /* " UNIQUE" */
}(), n1, (*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))).Fz))
goto __106
__105:
@@ -98654,7 +99262,7 @@ __106:
// Add an entry in sqlite_schema for this index
Xsqlite3NestedParse(tls, pParse,
- ts+14100,
+ ts+14114,
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,
@@ -98670,7 +99278,7 @@ __106:
sqlite3RefillIndex(tls, pParse, pIndex, iMem)
Xsqlite3ChangeCookie(tls, pParse, iDb)
Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb,
- Xsqlite3MPrintf(tls, db, ts+14159, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+14173, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
Xsqlite3VdbeAddOp2(tls, v, OP_Expire, 0, 1)
__108:
;
@@ -98766,7 +99374,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) { /* sqlite3.c:118359:21: */
var a uintptr = (*Index)(unsafe.Pointer(pIdx)).FaiRowLogEst
var x LogEst
var nCopy int32 = func() int32 {
@@ -98810,11 +99418,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)} /* sqlite3.c:118361: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) { /* sqlite3.c:118403:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -98828,13 +99436,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
@@ -98849,7 +99457,7 @@ __2:
if !!(ifExists != 0) {
goto __4
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14186, libc.VaList(bp, pName+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14200, libc.VaList(bp, pName+8))
goto __5
__4:
Xsqlite3CodeVerifyNamedSchema(tls, pParse, (*SrcItem)(unsafe.Pointer(pName+8)).FzDatabase)
@@ -98864,7 +99472,7 @@ __3:
goto __6
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+14204, libc.VaList(bp+8, 0))
+ ts+14218, libc.VaList(bp+8, 0))
goto exit_drop_index
__6:
;
@@ -98875,9 +99483,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 + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}()
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_DELETE, zTab, uintptr(0), zDb) != 0) {
goto __7
@@ -98905,9 +99513,9 @@ __9:
}
Xsqlite3BeginWriteOperation(tls, pParse, 1, iDb)
Xsqlite3NestedParse(tls, pParse,
- ts+14277,
+ ts+14291,
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+11348, (*Index)(unsafe.Pointer(pIndex)).FzName)
+ sqlite3ClearStatTables(tls, pParse, iDb, ts+11365, (*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)
@@ -98933,7 +99541,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 { /* sqlite3.c:118485:21: */
var z uintptr
var n Sqlite3_int64 = Sqlite3_int64(libc.AssignPtrInt32(pIdx, *(*int32)(unsafe.Pointer(pnEntry))))
if n&(n-int64(1)) == int64(0) {
@@ -98960,7 +99568,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 { /* sqlite3.c:118515:23: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -98991,7 +99599,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) { /* sqlite3.c:118543:21: */
var i int32
if pList == uintptr(0) {
return
@@ -99005,7 +99613,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 { /* sqlite3.c:118557:20: */
var i int32
if pList == uintptr(0) {
return -1
@@ -99043,7 +99651,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 { /* sqlite3.c:118598:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99058,7 +99666,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+14337,
+ Xsqlite3ErrorMsg(tls, pParse, ts+14351,
libc.VaList(bp, SQLITE_MAX_SRCLIST))
return uintptr(0)
}
@@ -99125,7 +99733,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 { /* sqlite3.c:118687:24: */
var pItem uintptr
var db uintptr
// Cannot have C without B
@@ -99164,7 +99772,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) { /* sqlite3.c:118732:21: */
var i int32
var pItem uintptr
@@ -99196,7 +99804,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) { /* sqlite3.c:118750:21: */
var i int32
var pItem uintptr
if pList == uintptr(0) {
@@ -99259,7 +99867,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 { /* sqlite3.c:118784:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99270,12 +99878,12 @@ func Xsqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTa
if !(!(p != 0) && (pOn != 0 || pUsing != 0)) {
goto __1
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14373,
+ Xsqlite3ErrorMsg(tls, pParse, ts+14387,
libc.VaList(bp, func() uintptr {
if pOn != 0 {
- return ts + 14409 /* "ON" */
+ return ts + 14423 /* "ON" */
}
- return ts + 14412 /* "USING" */
+ return ts + 14426 /* "USING" */
}()))
goto append_from_error
__1:
@@ -99323,7 +99931,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) { /* sqlite3.c:118835:21: */
if p != 0 && (*Token)(unsafe.Pointer(pIndexedBy)).Fn > uint32(0) {
var pItem uintptr
@@ -99345,7 +99953,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 { /* sqlite3.c:118861:24: */
if p2 != 0 {
var pNew uintptr = Xsqlite3SrcListEnlarge(tls, pParse, p1, (*SrcList)(unsafe.Pointer(p2)).FnSrc, 1)
@@ -99362,7 +99970,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) { /* sqlite3.c:118880:21: */
if p != 0 {
var pItem uintptr = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*112
@@ -99386,7 +99994,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) { /* sqlite3.c:118908:21: */
if p != 0 {
var i int32
for i = (*SrcList)(unsafe.Pointer(p)).FnSrc - 1; i > 0; i-- {
@@ -99397,14 +100005,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) { /* sqlite3.c:118921:21: */
var db uintptr
var v uintptr
var i int32
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+14418, uintptr(0), uintptr(0)) != 0 {
+ if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+14432, uintptr(0), uintptr(0)) != 0 {
return
}
v = Xsqlite3GetVdbe(tls, pParse)
@@ -99432,7 +100040,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) { /* sqlite3.c:118957:21: */
var v uintptr
var isRollback int32
@@ -99440,9 +100048,9 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* sql
if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION,
func() uintptr {
if isRollback != 0 {
- return ts + 14424
+ return ts + 14438
}
- return ts + 14433
+ return ts + 14447
}(), uintptr(0), uintptr(0)) != 0 {
return
}
@@ -99454,7 +100062,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) { /* sqlite3.c:118979:21: */
var zName uintptr = Xsqlite3NameFromToken(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pName)
if zName != 0 {
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
@@ -99467,11 +100075,11 @@ func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) {
}
}
-var az = [3]uintptr{ts + 14418, ts + 14440, ts + 14424} /* sqlite3.c:118155:23 */
+var az = [3]uintptr{ts + 14432, ts + 14454, ts + 14438} /* sqlite3.c:118984: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 { /* sqlite3.c:118999:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99483,7 +100091,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+14448, 0)
+ ts+14462, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = rc
return 1
}
@@ -99497,13 +100105,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 /* sqlite3.c:119004: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) { /* sqlite3.c:119034: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
@@ -99513,7 +100121,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) { /* sqlite3.c:119046:21: */
sqlite3CodeVerifySchemaAtToplevel(tls, func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99524,7 +100132,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) { /* sqlite3.c:119055:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -99546,7 +100154,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) { /* sqlite3.c:119079:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99563,7 +100171,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) { /* sqlite3.c:119093:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99587,7 +100195,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) { /* sqlite3.c:119114:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -99600,7 +100208,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) { /* sqlite3.c:119124:21: */
var v uintptr
v = Xsqlite3GetVdbe(tls, pParse)
@@ -99613,7 +100221,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) { /* sqlite3.c:119146:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -99626,17 +100234,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+14518, libc.VaList(bp, (*Index)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3_str_appendf(tls, bp+8, ts+14532, 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+14529, 2)
+ Xsqlite3_str_append(tls, bp+8, ts+14543, 2)
}
Xsqlite3_str_appendall(tls, bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)
- Xsqlite3_str_append(tls, bp+8, ts+1578, 1)
+ Xsqlite3_str_append(tls, bp+8, ts+1547, 1)
Xsqlite3_str_appendall(tls, bp+8, zCol)
}
}
@@ -99652,18 +100260,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) { /* sqlite3.c:119182: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+11921, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
+ zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+11938, 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+14532, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
+ zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+14546, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
rc = SQLITE_CONSTRAINT | int32(10)<<8
}
Xsqlite3HaltConstraint(tls, pParse, rc, onError, zMsg, int8(-7),
@@ -99672,7 +100280,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 { /* sqlite3.c:119206:12: */
var i int32
for i = 0; i < int32((*Index)(unsafe.Pointer(pIndex)).FnColumn); i++ {
@@ -99687,7 +100295,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) { /* sqlite3.c:119225:13: */
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
var pIndex uintptr // An index associated with pTab
@@ -99704,7 +100312,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) { /* sqlite3.c:119246: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
@@ -99746,7 +100354,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) { /* sqlite3.c:119278:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99806,14 +100414,14 @@ func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
sqlite3RefillIndex(tls, pParse, pIndex, -1)
return
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14541, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14555, 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 { /* sqlite3.c:119338:24: */
var i int32
var nCol int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnColumn)
var nKey int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)
@@ -99859,7 +100467,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 { /* sqlite3.c:119382:20: */
var pNew uintptr
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -99879,7 +100487,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) { /* sqlite3.c:119411:13: */
Xsqlite3ExprListDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpCols)
Xsqlite3SelectDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpSelect)
@@ -99887,7 +100495,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) { /* sqlite3.c:119421:21: */
cteClear(tls, db, pCte)
Xsqlite3DbFree(tls, db, pCte)
@@ -99897,7 +100505,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 { /* sqlite3.c:119433:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -99916,7 +100524,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+14587, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14601, libc.VaList(bp, zName))
}
}
}
@@ -99940,7 +100548,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) { /* sqlite3.c:119480:21: */
if pWith != 0 {
var i int32
for i = 0; i < (*With)(unsafe.Pointer(pWith)).FnCte; i++ {
@@ -99970,7 +100578,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) { /* sqlite3.c:119515:13: */
if (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded != 0 {
var zExternal uintptr = Xsqlite3DbStrDup(tls, db, zName)
@@ -100001,7 +100609,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 { /* sqlite3.c:119544:12: */
var pColl2 uintptr
var z uintptr = (*CollSeq)(unsafe.Pointer(pColl)).FzName
var i int32
@@ -100016,7 +100624,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)} /* sqlite3.c:119548: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
@@ -100027,7 +100635,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 { /* sqlite3.c:119571: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
@@ -100051,7 +100659,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 { /* sqlite3.c:119599:16: */
var pColl uintptr
pColl = Xsqlite3HashFind(tls, db+640, zName)
@@ -100096,7 +100704,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 { /* sqlite3.c:119651:24: */
var pColl uintptr
if zName != 0 {
@@ -100112,7 +100720,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) { /* sqlite3.c:119673:21: */
(*Sqlite3)(unsafe.Pointer(db)).Fenc = enc
// EVIDENCE-OF: R-08308-17224 The default collating function for all
@@ -100132,7 +100740,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 { /* sqlite3.c:119696:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -100154,7 +100762,7 @@ func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zN
}
if p == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+14617, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14631, libc.VaList(bp, zName))
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR | int32(1)<<8
}
return p
@@ -100178,7 +100786,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 { /* sqlite3.c:119747: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
@@ -100219,7 +100827,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 { /* sqlite3.c:119790:12: */
var match int32
// Wrong number of arguments means "no match"
@@ -100255,7 +100863,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 { /* sqlite3.c:119826:24: */
var p uintptr
for p = *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3BuiltinFunctions)) + uintptr(h)*8)); p != 0; p = *(*uintptr)(unsafe.Pointer(p + 64)) {
@@ -100267,7 +100875,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) { /* sqlite3.c:119843:21: */
var i int32
for i = 0; i < nDef; i++ {
var pOther uintptr
@@ -100305,7 +100913,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 { /* sqlite3.c:119888:24: */
var p uintptr // Iterator variable
var pBest uintptr = uintptr(0) // Best match found so far
var bestScore int32 = 0 // Score of best match
@@ -100385,7 +100993,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) { /* sqlite3.c:119980:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -100420,7 +101028,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 { /* sqlite3.c:120012: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})))
@@ -100467,7 +101075,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 { /* sqlite3.c:120063:22: */
var pItem uintptr = pSrc + 8 /* &.a */
var pTab uintptr
@@ -100483,6 +101091,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) { /* sqlite3.c:120082: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:
@@ -100497,7 +101114,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 { /* sqlite3.c:120104: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))
@@ -100516,16 +101133,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 { /* sqlite3.c:120123:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
if tabIsReadOnly(tls, pParse, pTab) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+14648, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14662, 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+14677, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14691, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
return 1
}
return 0
@@ -100534,7 +101151,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) { /* sqlite3.c:120144:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -100566,7 +101183,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) { /* sqlite3.c:120283:21: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -100626,7 +101243,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
@@ -100864,7 +101482,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
}
@@ -101116,9 +101734,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+14715, uintptr(0))
+ Xsqlite3CodeChangeCount(tls, v, memCnt, ts+14729)
__61:
;
@@ -101173,7 +101789,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) { /* sqlite3.c:120731: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
@@ -101263,7 +101879,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+11208) {
+ if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11225) {
Xsqlite3VdbeAppendP4(tls, v, pTab, -6)
}
if int32(eMode) != ONEPASS_OFF {
@@ -101310,7 +101926,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) { /* sqlite3.c:120883:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -101399,7 +102015,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 { /* sqlite3.c:120948:20: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var j int32
var regBase int32
@@ -101455,7 +102071,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) { /* sqlite3.c:121010:21: */
if iLabel != 0 {
Xsqlite3VdbeResolveLabel(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, iLabel)
}
@@ -101483,7 +102099,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 { /* sqlite3.c:121044:16: */
var pOp uintptr
pOp = (*Vdbe)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(context)).FpVdbe)).FaOp + uintptr((*Sqlite3_context)(unsafe.Pointer(context)).FiOp-1)*24
@@ -101493,14 +102109,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) { /* sqlite3.c:121057: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) { /* sqlite3.c:121066:13: */
var i int32
var mask int32 // 0 for min() or 0xffffffff for max()
var iBest int32
@@ -101530,7 +102146,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) { /* sqlite3.c:121096:13: */
var i int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) - 1
_ = NotUsed
@@ -101541,10 +102157,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 + 6137, ts + 6132, ts + 7894, ts + 7889, ts + 6127} /* sqlite3.c:120263:21 */
+var azType2 = [5]uintptr{ts + 6142, ts + 6137, ts + 7892, ts + 7887, ts + 6132} /* sqlite3.c:121101:21 */
+
+// subtype(X)
+//
+// Return the subtype of X
+func subtypeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121121: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) { /* sqlite3.c:121133:13: */
_ = argc
switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
@@ -101593,7 +102217,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) { /* sqlite3.c:121175:13: */
_ = argc
switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
@@ -101605,7 +102229,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+14728, -1)
+ Xsqlite3_result_error(tls, context, ts+14742, -1)
return
}
iVal = -iVal
@@ -101647,7 +102271,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) { /* sqlite3.c:121224:13: */
var zHaystack uintptr
var zNeedle uintptr
var nHaystack int32
@@ -101761,8 +102385,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) { /* sqlite3.c:121292:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -101783,7 +102407,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})))
}
}
@@ -101797,7 +102423,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) { /* sqlite3.c:121328:13: */
var z uintptr
var z2 uintptr
var len int32
@@ -101905,7 +102531,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) { /* sqlite3.c:121423:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -101943,7 +102569,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
return +0.5
}()))
} else {
- zBuf = Xsqlite3_mprintf(tls, ts+14745, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */))))
+ zBuf = Xsqlite3_mprintf(tls, ts+14759, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */))))
if zBuf == uintptr(0) {
Xsqlite3_result_error_nomem(tls, context)
return
@@ -101959,7 +102585,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 { /* sqlite3.c:121464:13: */
var z uintptr
var db uintptr = Xsqlite3_context_db_handle(tls, context)
@@ -101976,7 +102602,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) { /* sqlite3.c:121485:13: */
var z1 uintptr
var z2 uintptr
var i int32
@@ -101997,7 +102623,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) { /* sqlite3.c:121504:13: */
var z1 uintptr
var z2 uintptr
var i int32
@@ -102026,7 +102652,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) { /* sqlite3.c:121537:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102050,7 +102676,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) { /* sqlite3.c:121563:13: */
var n Sqlite3_int64
var p uintptr
@@ -102068,7 +102694,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) { /* sqlite3.c:121587:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -102083,7 +102709,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) { /* sqlite3.c:121607:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -102092,7 +102718,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) { /* sqlite3.c:121621:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -102107,20 +102733,20 @@ type compareInfo = struct {
FmatchOne U8
FmatchSet U8
FnoCase U8
-} /* sqlite3.c:120786:1 */
+} /* sqlite3.c:121636: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('[')} /* sqlite3.c:121656: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)} /* sqlite3.c:121659: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('_')} /* sqlite3.c:121662:33 */
// Possible error returns from patternMatch()
@@ -102160,7 +102786,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 { /* sqlite3.c:121709:12: */
bp := tls.Alloc(19)
defer tls.Free(19)
*(*uintptr)(unsafe.Pointer(bp)) = zPattern
@@ -102346,13 +102972,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 { /* sqlite3.c:121842: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 { /* sqlite3.c:121850:16: */
return patternCompare(tls, zPattern, zStr, uintptr(unsafe.Pointer(&likeInfoNorm)), esc)
}
@@ -102370,7 +102996,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) { /* sqlite3.c:121876:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -102393,7 +103019,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+14750, -1)
+ Xsqlite3_result_error(tls, context, ts+14764, -1)
return
}
if argc == 3 {
@@ -102405,7 +103031,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+14783, -1)
+ ts+14797, -1)
return
}
escape = Xsqlite3Utf8Read(tls, bp)
@@ -102433,7 +103059,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) { /* sqlite3.c:121947:13: */
var pColl uintptr = sqlite3GetFuncCollSeq(tls, context)
_ = NotUsed
if Xsqlite3MemCompare(tls, *(*uintptr)(unsafe.Pointer(argv)), *(*uintptr)(unsafe.Pointer(argv + 1*8)), pColl) != 0 {
@@ -102443,7 +103069,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) { /* sqlite3.c:121963:13: */
_ = NotUsed
_ = NotUsed2
// IMP: R-48699-48617 This function is an SQL wrapper around the
@@ -102454,7 +103080,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) { /* sqlite3.c:121979:13: */
_ = NotUsed
_ = NotUsed2
// IMP: R-24470-31136 This function is an SQL wrapper around the
@@ -102465,19 +103091,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) { /* sqlite3.c:121995:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
_ = argc
_ = context
- Xsqlite3_log(tls, Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv))), ts+3623, 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+3614, 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) { /* sqlite3.c:122011:13: */
var zOptName uintptr
_ = argc
@@ -102492,7 +103118,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) { /* sqlite3.c:122035:13: */
var n int32
_ = argc
@@ -102507,50 +103133,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)
+} /* sqlite3.c:122053: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) { /* sqlite3.c:122062: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 r2 float64 at bp+32, 8
- // var zBuf [50]int8 at bp+16, 50
-
- r1 = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv)))
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+16, ts+4867, 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+14828, libc.VaList(bp+8, r1))
+ var zVal uintptr
+ r1 = Xsqlite3_value_double(tls, pValue)
+ Xsqlite3_str_appendf(tls, pStr, ts+4876, 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+14842, 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+1314, 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]
@@ -102560,61 +103188,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+14849, libc.VaList(bp+24, zArg))
break
}
default:
{
- Xsqlite3_result_text(tls, context, ts+1566, 4, uintptr(0))
+ Xsqlite3_str_append(tls, pStr, ts+1535, 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) { /* sqlite3.c:122131: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) { /* sqlite3.c:122150:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102628,7 +103255,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) { /* sqlite3.c:122165:13: */
var z uintptr
var zOut uintptr
var i int32
@@ -102666,7 +103293,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) { /* sqlite3.c:122206:13: */
var i int32
var n int32
var pBlob uintptr
@@ -102704,7 +103331,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) { /* sqlite3.c:122234:13: */
var n I64
var rc int32
@@ -102723,7 +103350,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) { /* sqlite3.c:122257:13: */
var zStr uintptr // The input string A
var zPattern uintptr // The pattern string B
var zRep uintptr // The replacement string C
@@ -102812,7 +103439,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) { /* sqlite3.c:122350:13: */
var zIn uintptr // Input string
var zCharSet uintptr // Set of characters to trim
var nIn uint32 // Number of bytes in input
@@ -102915,8 +103542,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 + 10788 /* " " */)} /* sqlite3.c:121514:26 */
+var lenOne = [1]uint32{uint32(1)} /* sqlite3.c:122372:27 */
+var azOne = [1]uintptr{uintptr(ts + 10805 /* " " */)} /* sqlite3.c:122373: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
@@ -102925,7 +103552,7 @@ var azOne = [1]uintptr{uintptr(ts + 10788 /* " " */)} /* 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) { /* sqlite3.c:122463:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102937,7 +103564,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 + 1565 /* "" */
+ zIn = ts + 1534 /* "" */
}
for i = 0; *(*U8)(unsafe.Pointer(zIn + uintptr(i))) != 0 && !(int32(Xsqlite3CtypeMap[*(*U8)(unsafe.Pointer(zIn + uintptr(i)))])&0x02 != 0); i++ {
}
@@ -102963,7 +103590,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+14835, 4, uintptr(0))
+ Xsqlite3_result_text(tls, context, ts+14852, 4, uintptr(0))
}
}
@@ -102976,10 +103603,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 */
+} /* sqlite3.c:122471: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) { /* sqlite3.c:122516:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102991,7 +103618,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+11960, -1)
+ Xsqlite3_result_error(tls, context, ts+11977, -1)
return
}
@@ -103015,11 +103642,11 @@ type SumCtx1 = struct {
Foverflow U8
Fapprox U8
F__ccgo_pad1 [6]byte
-} /* sqlite3.c:121688:9 */
+} /* sqlite3.c:122547: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 /* sqlite3.c:122547:23 */
// Routines used to compute the sum, average, and total.
//
@@ -103029,7 +103656,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) { /* sqlite3.c:122566:13: */
var p uintptr
var type1 int32
@@ -103051,7 +103678,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) { /* sqlite3.c:122588:13: */
var p uintptr
var type1 int32
@@ -103074,12 +103701,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) { /* sqlite3.c:122613: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+14728, -1)
+ Xsqlite3_result_error(tls, context, ts+14742, -1)
} else if (*SumCtx)(unsafe.Pointer(p)).Fapprox != 0 {
Xsqlite3_result_double(tls, context, (*SumCtx)(unsafe.Pointer(p)).FrSum)
} else {
@@ -103088,7 +103715,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) { /* sqlite3.c:122626:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
if p != 0 && (*SumCtx)(unsafe.Pointer(p)).Fcnt > int64(0) {
@@ -103096,7 +103723,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) { /* sqlite3.c:122633:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
// (double)0 In case of SQLITE_OMIT_FLOATING_POINT...
@@ -103110,14 +103737,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 } /* sqlite3.c:122644:9 */
// The following structure keeps track of state information for the
// count() aggregate function.
-type CountCtx = CountCtx1 /* sqlite3.c:121785:25 */
+type CountCtx = CountCtx1 /* sqlite3.c:122644: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) { /* sqlite3.c:122655: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 {
@@ -103131,7 +103758,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) { /* sqlite3.c:122671:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
Xsqlite3_result_int64(tls, context, func() int64 {
@@ -103142,7 +103769,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) { /* sqlite3.c:122677: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
@@ -103152,7 +103779,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) { /* sqlite3.c:122695:13: */
var pArg uintptr = *(*uintptr)(unsafe.Pointer(argv))
var pBest uintptr
_ = NotUsed
@@ -103190,7 +103817,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) { /* sqlite3.c:122733:13: */
var pRes uintptr
pRes = Xsqlite3_aggregate_context(tls, context, 0)
if pRes != 0 {
@@ -103203,11 +103830,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) { /* sqlite3.c:122744:13: */
minMaxValueFinalize(tls, context, 1)
}
-func minMaxFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:121891:13: */
+func minMaxFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122750:13: */
minMaxValueFinalize(tls, context, 0)
}
@@ -103223,9 +103850,9 @@ type GroupConcatCtx = struct {
FnAccum int32
FnFirstSepLength int32
FpnSepLengths uintptr
-} /* sqlite3.c:121916:3 */
+} /* sqlite3.c:122775: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) { /* sqlite3.c:122777:13: */
var zVal uintptr
var pGCC uintptr
var zSep uintptr
@@ -103290,7 +103917,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) { /* sqlite3.c:122848:13: */
var pGCC uintptr
_ = argc // Suppress unused parameter warning
@@ -103332,7 +103959,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) { /* sqlite3.c:122894:13: */
var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0)
if pGCC != 0 {
Xsqlite3ResultStrAccum(tls, context, pGCC)
@@ -103340,7 +103967,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) { /* sqlite3.c:122905:13: */
var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0)
if pGCC != 0 {
var pAccum uintptr = pGCC
@@ -103358,8 +103985,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+14840, 2)
+func Xsqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) { /* sqlite3.c:122929:21: */
+ var rc int32 = Xsqlite3_overload_function(tls, db, ts+14857, 2)
if rc == SQLITE_NOMEM {
Xsqlite3OomFault(tls, db)
@@ -103369,7 +103996,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) { /* sqlite3.c:122942:21: */
var pInfo uintptr
var flags int32
if caseSensitive != 0 {
@@ -103379,14 +104006,14 @@ func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3
pInfo = uintptr(unsafe.Pointer(&likeInfoNorm))
flags = SQLITE_FUNC_LIKE
}
- Xsqlite3CreateFunc(tls, db, ts+14846, 2, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct {
+ Xsqlite3CreateFunc(tls, db, ts+14863, 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+14846, 3, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct {
+ Xsqlite3CreateFunc(tls, db, ts+14863, 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+14846, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
- *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14846, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
+ *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14863, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
+ *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14863, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
}
// pExpr points to an expression which implements a function. If
@@ -103404,7 +104031,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 { /* sqlite3.c:122975:20: */
var pDef uintptr
var nExpr int32
@@ -103460,7 +104087,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) { /* sqlite3.c:123046:13: */
switch Xsqlite3_value_numeric_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
case SQLITE_INTEGER:
@@ -103489,11 +104116,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 { /* sqlite3.c:123073: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 { /* sqlite3.c:123074:15: */
return libc.Xfloor(tls, x)
}
@@ -103503,7 +104130,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) { /* sqlite3.c:123084:13: */
var x float64
var b float64
var ans float64
@@ -103560,18 +104187,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 { /* sqlite3.c:123134: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 { /* sqlite3.c:123135: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) { /* sqlite3.c:123142:13: */
var type0 int32
var v0 float64
var ans float64
@@ -103592,7 +104219,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) { /* sqlite3.c:123164:13: */
var type0 int32
var type1 int32
var v0 float64
@@ -103618,13 +104245,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) { /* sqlite3.c:123187: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) { /* sqlite3.c:123201:13: */
var type0 int32
var x float64
_ = argc
@@ -103652,117 +104279,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) { /* sqlite3.c:123223: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 + 14851},
- {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 + 14871},
- {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 + 14884},
- {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 + 14902},
+ {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 + 14868},
+ {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 + 14888},
+ {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 + 14901},
+ {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 + 14919},
//**** Regular functions ****
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 14911},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14919},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14919},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14934},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14960},
- {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 + 14985},
- {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 + 14994},
- {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 + 15005},
- {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 + 15012},
- {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 + 15026},
- {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 + 15026},
- {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 + 15032},
- {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 + 15032},
- {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 + 15038},
- {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 + 15038},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15043},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15043},
- {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 + 15043},
- {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 + 15047},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 15047},
- {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 + 15047},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15051},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 15058},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15065},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15071},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15078},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15086},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15091},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15095},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15095},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15101},
- {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 + 15113},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15117},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15124},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15131},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15142},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15149},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15164},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15181},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15192},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15198},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15216},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15224},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15238},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15246},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15255},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15255},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15262},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15262},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 15272},
- {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 + 15276},
- {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 + 15282},
- {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 + 15286},
- {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 + 15286},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 15292},
- {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 + 15292},
-
- {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 + 15305},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14846},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14846},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15310},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15310},
- {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), FpUserData: 0, FxSFunc: 0, FzName: ts + 15324},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15332},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15338},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15344},
- {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 + 15347},
- {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 + 15351},
- {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 + 15357},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15347},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15362},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15366},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15370},
- {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 + 15380},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15385},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15390},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15395},
- {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 + 15405},
- {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 + 15413},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15418},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15423},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15428},
- {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 + 15440},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15446},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15451},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15459},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15467},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15470},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15310},
- {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 + 15475}} /* 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 + 14928},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14936},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14936},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14951},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14977},
+ {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 + 15002},
+ {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 + 15011},
+ {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 + 15022},
+ {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 + 15029},
+ {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 + 15043},
+ {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 + 15043},
+ {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 + 15049},
+ {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 + 15049},
+ {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 + 15055},
+ {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 + 15055},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15060},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15060},
+ {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 + 15060},
+ {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 + 15064},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 15064},
+ {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 + 15064},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15068},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15075},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 15083},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15090},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15096},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15103},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15110},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15118},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15123},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15127},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15127},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15133},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15139},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15145},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15149},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15156},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15163},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15174},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15181},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15196},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15213},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15224},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15230},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15248},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15256},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15270},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15278},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15287},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15287},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15294},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15294},
+ {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 + 15304},
+ {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 + 15308},
+ {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 + 15314},
+ {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 + 15318},
+ {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 + 15318},
+ {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 + 15324},
+ {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 + 15324},
+
+ {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 + 15337},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14863},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14863},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15342},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15342},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15351},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15356},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15364},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15370},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15376},
+ {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 + 15379},
+ {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 + 15383},
+ {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 + 15389},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15379},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15394},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15398},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15402},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15408},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15412},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15417},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15422},
+ {FnArg: int8(2), 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 + 15433},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15437},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15441},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15445},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15450},
+ {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 + 15460},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15466},
+ {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 + 15478},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15483},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15491},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15499},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15502},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15342},
+ {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 + 15507}} /* sqlite3.c:123234:18 */
//************* End of func.c ***********************************************
//************* Begin file fkey.c *******************************************
@@ -103937,7 +104567,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 { /* sqlite3.c:123587:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -104048,7 +104678,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+15479,
+ ts+15511,
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)
@@ -104083,7 +104713,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) { /* sqlite3.c:123724: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
@@ -104213,7 +104843,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 { /* sqlite3.c:123877:13: */
var pExpr uintptr
var pCol uintptr
var zColl uintptr
@@ -104240,7 +104870,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 { /* sqlite3.c:123909:13: */
var pExpr uintptr = Xsqlite3Expr(tls, db, TK_COLUMN, uintptr(0))
if pExpr != 0 {
@@ -104281,7 +104911,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) { /* sqlite3.c:123957:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -104379,7 +105009,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)
@@ -104405,7 +105035,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 { /* sqlite3.c:124086:21: */
return Xsqlite3HashFind(tls, (*Table)(unsafe.Pointer(pTab)).FpSchema+80, (*Table)(unsafe.Pointer(pTab)).FzName)
}
@@ -104415,7 +105045,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) { /* sqlite3.c:124098:13: */
if p != 0 {
var pStep uintptr = (*Trigger)(unsafe.Pointer(p)).Fstep_list
Xsqlite3ExprDelete(tls, dbMem, (*TriggerStep)(unsafe.Pointer(pStep)).FpWhere)
@@ -104429,7 +105059,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) { /* sqlite3.c:124114: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 {
@@ -104462,7 +105092,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) { /* sqlite3.c:124145: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
@@ -104525,7 +105155,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 { /* sqlite3.c:124208: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
@@ -104549,7 +105179,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 { /* sqlite3.c:124235: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
@@ -104573,7 +105203,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 { /* sqlite3.c:124264:12: */
var pTop uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -104608,7 +105238,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) { /* sqlite3.c:124297:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -104810,7 +105440,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 { /* sqlite3.c:124500:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -104869,7 +105499,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 { /* sqlite3.c:124550: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 {
@@ -104937,7 +105567,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 { /* sqlite3.c:124618:16: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -104969,8 +105599,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 + 6336, Fn: uint32(3)} // Literal "old" token
- *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 6332, Fn: uint32(3)} // Literal "new" token
+ *(*Token)(unsafe.Pointer(bp + 48 /* tOld */)) = Token{Fz: ts + 6343, Fn: uint32(3)} // Literal "old" token
+ *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 6339, 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
@@ -105058,7 +105688,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+5078)
+ pRaise = Xsqlite3Expr(tls, db, TK_RAISE, ts+5087)
if pRaise != 0 {
(*Expr)(unsafe.Pointer(pRaise)).FaffExpr = int8(OE_Abort)
}
@@ -105139,7 +105769,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) { /* sqlite3.c:124810: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
@@ -105160,7 +105790,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) { /* sqlite3.c:124842:21: */
var pFKey uintptr // Iterator variable
var pNext uintptr // Copy of pFKey->pNextFrom
@@ -105220,7 +105850,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) { /* sqlite3.c:124908:21: */
var v uintptr
v = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -105262,7 +105892,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 { /* sqlite3.c:124955: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
@@ -105341,7 +105971,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) { /* sqlite3.c:125034:21: */
var i int32
var j int32
var zColAff uintptr
@@ -105378,7 +106008,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
@@ -105399,7 +106029,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 { /* sqlite3.c:125095:12: */
var v uintptr = Xsqlite3GetVdbe(tls, p)
var i int32
var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v)
@@ -105435,7 +106065,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 { /* sqlite3.c:125132: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))
@@ -105448,7 +106078,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) { /* sqlite3.c:125148:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -105511,7 +106141,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++ {
@@ -105535,7 +106165,7 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in
}
}
if pRedo != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+7859, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+7857, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName))
}
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0
}
@@ -105561,7 +106191,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 { /* sqlite3.c:125272:12: */
var memId int32 = 0 // Register holding maximum rowid
if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Autoincrement) != U32(0) &&
@@ -105615,7 +106245,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) { /* sqlite3.c:125323: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
@@ -105655,7 +106285,7 @@ func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:12
}
}
-var iLn1 int32 = 0 /* sqlite3.c:124475:22 */
+var iLn1 int32 = 0 /* sqlite3.c:125337:22 */
var autoInc = [12]VdbeOpList{
/* 0 */ {Fopcode: U8(OP_Null)},
/* 1 */ {Fopcode: U8(OP_Rewind), Fp2: int8(10)},
@@ -105669,7 +106299,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 */
+} /* sqlite3.c:125338:29 */
// Update the maximum rowid for an autoincrement calculation.
//
@@ -105677,7 +106307,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) { /* sqlite3.c:125384:13: */
if memId > 0 {
Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_MemMax, memId, regRowid)
}
@@ -105688,7 +106318,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) { /* sqlite3.c:125397:29: */
var p uintptr
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -105719,16 +106349,16 @@ func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:124535:29: *
}
}
-var iLn2 int32 = 0 /* sqlite3.c:124542:22 */
+var iLn2 int32 = 0 /* sqlite3.c:125404: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 */
+} /* sqlite3.c:125405:29 */
-func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:124572:21: */
+func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:125434:21: */
if (*Parse)(unsafe.Pointer(pParse)).FpAinc != 0 {
autoIncrementEnd(tls, pParse)
}
@@ -105829,7 +106459,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) { /* sqlite3.c:125553:21: */
bp := tls.Alloc(188)
defer tls.Free(188)
@@ -105922,12 +106552,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
@@ -106099,7 +106731,7 @@ __23:
goto __24
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15524,
+ ts+15556,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName))
goto insert_cleanup
__24:
@@ -106124,7 +106756,7 @@ __20:
bIdListInOrder = U8(0)
goto __27
__26:
- Xsqlite3ErrorMsg(tls, pParse, ts+15565,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15597,
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
@@ -106163,12 +106795,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:
@@ -106294,7 +106928,7 @@ __42:
goto __47
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15597,
+ ts+15629,
libc.VaList(bp+24, pTabList+8, int32((*Table)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn))
goto insert_cleanup
__47:
@@ -106304,7 +106938,7 @@ __36:
if !(pColumn != uintptr(0) && nColumn != (*IdList)(unsafe.Pointer(pColumn)).FnId) {
goto __48
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15649, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15681, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId))
goto insert_cleanup
__48:
;
@@ -106360,7 +106994,7 @@ __50:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __56
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15674,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15706,
libc.VaList(bp+64, (*Table)(unsafe.Pointer(pTab)).FzName))
goto insert_cleanup
__56:
@@ -106368,7 +107002,7 @@ __56:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
goto __57
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15720, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+15752, 0)
goto insert_cleanup
__57:
;
@@ -106852,9 +107486,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+15741, uintptr(0))
+ Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+15773)
__123:
;
@@ -106878,7 +107510,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 { /* sqlite3.c:126308:12: */
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN {
if int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) >= 0 {
@@ -106905,7 +107537,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 { /* sqlite3.c:126337:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -106939,7 +107571,7 @@ type IndexListTerm1 = struct {
Fp uintptr
Fix int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:125506:9 */
+} /* sqlite3.c:126370:9 */
// The sqlite3GenerateConstraintChecks() routine usually wants to visit
// the indexes of a table in the order provided in the Table->pIndex list.
@@ -106950,7 +107582,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 /* sqlite3.c:126370:30 */
type IndexIterator1 = struct {
FeType int32
Fi int32
@@ -106958,12 +107590,12 @@ type IndexIterator1 = struct {
Flx struct{ FpIdx uintptr }
F__ccgo_pad1 [8]byte
}
-} /* sqlite3.c:125507:9 */
+} /* sqlite3.c:126371:9 */
-type IndexIterator = IndexIterator1 /* sqlite3.c:125507:30 */
+type IndexIterator = IndexIterator1 /* sqlite3.c:126371: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 { /* sqlite3.c:126395:14: */
if (*IndexIterator)(unsafe.Pointer(pIter)).FeType != 0 {
*(*int32)(unsafe.Pointer(pIx)) = (*IndexListTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pIter + 8 + 8 /* &.aIdx */)))).Fix
@@ -106976,7 +107608,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 { /* sqlite3.c:126407: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)) {
@@ -107082,7 +107714,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) { /* sqlite3.c:126514:21: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -107199,7 +107831,7 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
fallthrough
case OE_Fail:
{
- var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+11921, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
+ var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+11938, 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)
@@ -107410,7 +108042,6 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
goto __4
goto __6
__6:
-
}
}
@@ -107941,7 +108572,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) { /* sqlite3.c:127372:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var r int32 = Xsqlite3GetTempReg(tls, pParse)
@@ -107958,7 +108589,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) { /* sqlite3.c:127400: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
@@ -108061,7 +108692,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 { /* sqlite3.c:127488:20: */
var i int32
var iDb int32
var iDataCur int32
@@ -108139,7 +108770,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 { /* sqlite3.c:127567: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) {
@@ -108197,7 +108828,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 { /* sqlite3.c:127628: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
@@ -108583,7 +109214,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 { /* sqlite3.c:128044:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -108604,13 +109235,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, 128057)
__1:
;
if !(zSql == uintptr(0)) {
goto __2
}
- zSql = ts + 1565 /* "" */
+ zSql = ts + 1534 /* "" */
__2:
;
@@ -108793,7 +109424,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 /* sqlite3.c:128538:13 */
// The following macros redefine the API routines so that they are
// redirected through the global sqlite3_api structure.
@@ -109120,7 +109751,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,
+} /* sqlite3.c:128984:35 */
// True if x is the directory separator character
@@ -109134,7 +109772,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 { /* sqlite3.c:129368:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -109178,7 +109816,7 @@ __1:
if !(pzErrMsg != 0) {
goto __3
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+11960, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+11977, 0)
__3:
;
return SQLITE_ERROR
@@ -109188,7 +109826,7 @@ __2:
if zProc != 0 {
zEntry = zProc
} else {
- zEntry = ts + 15755 /* "sqlite3_extensio..." */
+ zEntry = ts + 15787 /* "sqlite3_extensio..." */
}
// tag-20210611-1. Some dlopen() implementations will segfault if given
@@ -109208,7 +109846,7 @@ __5:
if !(ii < int32(uint64(unsafe.Sizeof(azEndings))/uint64(unsafe.Sizeof(uintptr(0)))) && handle == uintptr(0)) {
goto __7
}
- zAltFile = Xsqlite3_mprintf(tls, ts+11921, libc.VaList(bp, zFile, azEndings[ii]))
+ zAltFile = Xsqlite3_mprintf(tls, ts+11938, libc.VaList(bp, zFile, azEndings[ii]))
if !(zAltFile == uintptr(0)) {
goto __8
}
@@ -109254,7 +109892,7 @@ __9:
return SQLITE_NOMEM
__11:
;
- libc.Xmemcpy(tls, zAltEntry, ts+15778, uint64(8))
+ libc.Xmemcpy(tls, zAltEntry, ts+15810, uint64(8))
iFile = ncFile - 1
__12:
if !(iFile >= 0 && !(int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '/')) {
@@ -109268,7 +109906,7 @@ __13:
__14:
;
iFile++
- if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+15787, 3) == 0) {
+ if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+15819, 3) == 0) {
goto __15
}
iFile = iFile + 3
@@ -109292,7 +109930,7 @@ __17:
goto __18
__18:
;
- libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+15791, uint64(6))
+ libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+15823, uint64(6))
zEntry = zAltEntry
xInit = Xsqlite3OsDlSym(tls, pVfs, handle, zEntry)
__10:
@@ -109310,7 +109948,7 @@ __10:
}
// zErrmsg would be NULL if not so
Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)),
- ts+15797, libc.VaList(bp+16, zEntry, zFile))
+ ts+15829, libc.VaList(bp+16, zEntry, zFile))
Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
__22:
;
@@ -109337,7 +109975,7 @@ __24:
if !(pzErrMsg != 0) {
goto __25
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+15840, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+15872, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))))
__25:
;
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
@@ -109377,7 +110015,7 @@ extension_not_found:
}
// zErrmsg would be NULL if not so
Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)),
- ts+15872, libc.VaList(bp+40, FILENAME_MAX, zFile))
+ ts+15904, libc.VaList(bp+40, FILENAME_MAX, zFile))
Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
__29:
;
@@ -109387,10 +110025,10 @@ __28:
}
var azEndings = [1]uintptr{
- ts + 15909,
-} /* sqlite3.c:128501:21 */
+ ts + 15941,
+} /* sqlite3.c:129386: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 { /* sqlite3.c:129519:16: */
var rc int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
rc = sqlite3LoadExtension(tls, db, zFile, zProc, pzErrMsg)
@@ -109401,7 +110039,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) { /* sqlite3.c:129537:21: */
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnExtension; i++ {
@@ -109412,7 +110050,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 { /* sqlite3.c:129550:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if onoff != 0 {
*(*U64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LoadExtension | SQLITE_LoadExtFunc)
@@ -109432,15 +110070,15 @@ type sqlite3AutoExtList = struct {
FnExt U32
F__ccgo_pad1 [4]byte
FaExt uintptr
-} /* sqlite3.c:128685:9 */
+} /* sqlite3.c:129570: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 /* sqlite3.c:129570:35 */
+var sqlite3Autoext = sqlite3AutoExtList{} /* sqlite3.c:129574:3 */
// The "wsdAutoext" macro will resolve to the autoextension
// state vector. If writable static data is unsupported on the target,
@@ -109450,7 +110088,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 { /* sqlite3.c:129596:16: */
var rc int32 = SQLITE_OK
rc = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -109491,7 +110129,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 { /* sqlite3.c:129643:16: */
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
var i int32
var n int32 = 0
@@ -109510,7 +110148,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) { /* sqlite3.c:129668:17: */
if Xsqlite3_initialize(tls) == SQLITE_OK {
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
@@ -109525,7 +110163,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) { /* sqlite3.c:129690:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -109556,7 +110194,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+15912, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))))
+ ts+15944, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))))
go1 = 0
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))
@@ -109601,68 +110239,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 + 4999,
- ts + 15951,
- ts + 8761,
- ts + 15955,
- ts + 15960,
- ts + 15963,
- ts + 15973,
+ ts + 5008,
ts + 15983,
- ts + 15989,
- ts + 15993,
- ts + 15998,
- ts + 16003,
- ts + 16011,
- ts + 16022,
+ ts + 8761,
+ ts + 15987,
+ ts + 15992,
+ ts + 15995,
+ ts + 16005,
+ ts + 16015,
+ ts + 16021,
ts + 16025,
-
- ts + 16032,
- ts + 15993,
- ts + 15998,
- ts + 16039,
- ts + 16044,
- ts + 16047,
+ ts + 16030,
+ ts + 16035,
+ ts + 16043,
ts + 16054,
- ts + 15989,
- ts + 15993,
- ts + 16060,
- ts + 16065,
- ts + 16070,
- ts + 15993,
- ts + 16074,
- ts + 15998,
- ts + 16082,
+ ts + 16057,
+
+ ts + 16064,
+ ts + 16025,
+ ts + 16030,
+ ts + 16071,
+ ts + 16076,
+ ts + 16079,
ts + 16086,
- ts + 16091,
- ts + 11352,
- ts + 11348,
+ ts + 16021,
+ ts + 16025,
+ ts + 16092,
ts + 16097,
ts + 16102,
- ts + 16107,
- ts + 15951,
- ts + 15993,
- ts + 16112,
- ts + 16119,
- ts + 16126,
- ts + 8761,
+ ts + 16025,
+ ts + 16106,
+ ts + 16030,
+ ts + 16114,
+ ts + 16118,
+ ts + 16123,
+ ts + 11369,
+ ts + 11365,
+ ts + 16129,
ts + 16134,
- ts + 5002,
- ts + 16140,
-
- ts + 15951,
- ts + 15993,
- ts + 16145,
- ts + 16150,
- ts + 15347,
- ts + 16155,
+ ts + 16139,
+ ts + 15983,
+ ts + 16025,
+ ts + 16144,
+ ts + 16151,
+ ts + 16158,
+ ts + 8761,
+ ts + 16166,
+ ts + 5011,
+ ts + 16172,
- ts + 16168,
+ ts + 15983,
+ ts + 16025,
ts + 16177,
- ts + 16184,
+ ts + 16182,
+ ts + 15379,
+ ts + 16187,
+
+ ts + 16200,
+ ts + 16209,
+ ts + 16216,
- ts + 16195,
-} /* sqlite3.c:128946:19 */
+ ts + 16227,
+} /* sqlite3.c:129831:19 */
// Definitions of all built-in pragmas
type PragmaName1 = struct {
@@ -109673,247 +110311,247 @@ type PragmaName1 = struct {
FnPragCName U8
F__ccgo_pad1 [4]byte
FiArg U64
-} /* sqlite3.c:129011:9 */
+} /* sqlite3.c:129896:9 */
// Definitions of all built-in pragmas
-type PragmaName = PragmaName1 /* sqlite3.c:129018:3 */
+type PragmaName = PragmaName1 /* sqlite3.c:129903:3 */
var aPragmaName = [66]PragmaName{
- { /* zName: */ FzName: ts + 16203,
+ { /* zName: */ FzName: ts + 16235,
/* ePragTyp: */ FePragTyp: U8(PragTyp_ANALYSIS_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16218,
+ { /* zName: */ FzName: ts + 16250,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_APPLICATION_ID)},
- { /* zName: */ FzName: ts + 16233,
+ { /* zName: */ FzName: ts + 16265,
/* ePragTyp: */ FePragTyp: U8(PragTyp_AUTO_VACUUM),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16245,
+ { /* zName: */ FzName: ts + 16277,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_AutoIndex)},
- { /* zName: */ FzName: ts + 16261,
+ { /* zName: */ FzName: ts + 16293,
/* ePragTyp: */ FePragTyp: U8(PragTyp_BUSY_TIMEOUT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(56), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 16184,
+ { /* zName: */ FzName: ts + 16216,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16274,
+ { /* zName: */ FzName: ts + 16306,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SPILL),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16286,
+ { /* zName: */ FzName: ts + 16318,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CASE_SENSITIVE_LIKE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 16306,
+ { /* zName: */ FzName: ts + 16338,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_CellSizeCk)},
- { /* zName: */ FzName: ts + 16322,
+ { /* zName: */ FzName: ts + 16354,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_CkptFullFSync)},
- { /* zName: */ FzName: ts + 16343,
+ { /* zName: */ FzName: ts + 16375,
/* ePragTyp: */ FePragTyp: U8(PragTyp_COLLATION_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(38), FnPragCName: U8(2)},
- { /* zName: */ FzName: ts + 16358,
+ { /* zName: */ FzName: ts + 16390,
/* ePragTyp: */ FePragTyp: U8(PragTyp_COMPILE_OPTIONS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16374,
+ { /* zName: */ FzName: ts + 16406,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: U64(uint64(0x00001)) << 32},
- { /* zName: */ FzName: ts + 16388,
+ { /* zName: */ FzName: ts + 16420,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_DATA_VERSION)},
- { /* zName: */ FzName: ts + 16401,
+ { /* zName: */ FzName: ts + 16433,
/* ePragTyp: */ FePragTyp: U8(PragTyp_DATABASE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(47), FnPragCName: U8(3)},
- { /* zName: */ FzName: ts + 16415,
+ { /* zName: */ FzName: ts + 16447,
/* 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 + 16434,
+ { /* zName: */ FzName: ts + 16466,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_DeferFKs)},
- { /* zName: */ FzName: ts + 16453,
+ { /* zName: */ FzName: ts + 16485,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_NullCallback)},
- { /* zName: */ FzName: ts + 16476,
+ { /* zName: */ FzName: ts + 16508,
/* ePragTyp: */ FePragTyp: U8(PragTyp_ENCODING),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16485,
+ { /* zName: */ FzName: ts + 16517,
/* 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 + 16503,
+ { /* zName: */ FzName: ts + 16535,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FOREIGN_KEY_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), FnPragCName: U8(8)},
- { /* zName: */ FzName: ts + 16520,
+ { /* zName: */ FzName: ts + 16552,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ForeignKeys)},
- { /* zName: */ FzName: ts + 16533,
+ { /* zName: */ FzName: ts + 16565,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16548,
+ { /* zName: */ FzName: ts + 16580,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_FullColNames)},
- { /* zName: */ FzName: ts + 16566,
+ { /* zName: */ FzName: ts + 16598,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_FullFSync)},
- { /* zName: */ FzName: ts + 16576,
+ { /* zName: */ FzName: ts + 16608,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FUNCTION_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(27), FnPragCName: U8(6)},
- { /* zName: */ FzName: ts + 16590,
+ { /* zName: */ FzName: ts + 16622,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HARD_HEAP_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16606,
+ { /* zName: */ FzName: ts + 16638,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_IgnoreChecks)},
- { /* zName: */ FzName: ts + 16631,
+ { /* zName: */ FzName: ts + 16663,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INCREMENTAL_VACUUM),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 16650,
+ { /* zName: */ FzName: ts + 16682,
/* 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 + 16661,
+ { /* zName: */ FzName: ts + 16693,
/* 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 + 16672,
+ { /* zName: */ FzName: ts + 16704,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INDEX_INFO),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt),
/* ColNames: */ FiPragCName: U8(21), FnPragCName: U8(6),
/* iArg: */ FiArg: uint64(1)},
- { /* zName: */ FzName: ts + 16684,
+ { /* zName: */ FzName: ts + 16716,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)},
- { /* zName: */ FzName: ts + 16700,
+ { /* zName: */ FzName: ts + 16732,
/* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_MODE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16713,
+ { /* zName: */ FzName: ts + 16745,
/* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_SIZE_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16732,
+ { /* zName: */ FzName: ts + 16764,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_LegacyAlter)},
- { /* zName: */ FzName: ts + 16751,
+ { /* zName: */ FzName: ts + 16783,
/* ePragTyp: */ FePragTyp: U8(PragTyp_LOCKING_MODE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16764,
+ { /* zName: */ FzName: ts + 16796,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16779,
+ { /* zName: */ FzName: ts + 16811,
/* ePragTyp: */ FePragTyp: U8(PragTyp_MMAP_SIZE)},
- { /* zName: */ FzName: ts + 16789,
+ { /* zName: */ FzName: ts + 16821,
/* ePragTyp: */ FePragTyp: U8(PragTyp_MODULE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 16801,
+ { /* zName: */ FzName: ts + 16833,
/* ePragTyp: */ FePragTyp: U8(PragTyp_OPTIMIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result1 | PragFlg_NeedSchema)},
- { /* zName: */ FzName: ts + 16810,
+ { /* zName: */ FzName: ts + 16842,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 16821,
+ { /* zName: */ FzName: ts + 16853,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_SIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 16831,
+ { /* zName: */ FzName: ts + 16863,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PRAGMA_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 16843,
+ { /* zName: */ FzName: ts + 16875,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_QueryOnly)},
- { /* zName: */ FzName: ts + 16854,
+ { /* zName: */ FzName: ts + 16886,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)},
- { /* zName: */ FzName: ts + 16866,
+ { /* zName: */ FzName: ts + 16898,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ReadUncommit)},
- { /* zName: */ FzName: ts + 16883,
+ { /* zName: */ FzName: ts + 16915,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_RecTriggers)},
- { /* zName: */ FzName: ts + 16902,
+ { /* zName: */ FzName: ts + 16934,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ReverseOrder)},
- { /* zName: */ FzName: ts + 16928,
+ { /* zName: */ FzName: ts + 16960,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_SCHEMA_VERSION)},
- { /* zName: */ FzName: ts + 16943,
+ { /* zName: */ FzName: ts + 16975,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SECURE_DELETE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 16957,
+ { /* zName: */ FzName: ts + 16989,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ShortColNames)},
- { /* zName: */ FzName: ts + 16976,
+ { /* zName: */ FzName: ts + 17008,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SHRINK_MEMORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 16990,
+ { /* zName: */ FzName: ts + 17022,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SOFT_HEAP_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 17006,
+ { /* zName: */ FzName: ts + 17038,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SYNCHRONOUS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17018,
+ { /* zName: */ FzName: ts + 17050,
/* 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 + 17029,
+ { /* zName: */ FzName: ts + 17061,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1),
/* ColNames: */ FiPragCName: U8(15), FnPragCName: U8(6)},
- { /* zName: */ FzName: ts + 17040,
+ { /* zName: */ FzName: ts + 17072,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_INFO),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt),
/* ColNames: */ FiPragCName: U8(8), FnPragCName: U8(7),
/* iArg: */ FiArg: uint64(1)},
- { /* zName: */ FzName: ts + 17052,
+ { /* zName: */ FzName: ts + 17084,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17063,
+ { /* zName: */ FzName: ts + 17095,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE_DIRECTORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17084,
+ { /* zName: */ FzName: ts + 17116,
/* ePragTyp: */ FePragTyp: U8(PragTyp_THREADS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 17092,
+ { /* zName: */ FzName: ts + 17124,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_TrustedSchema)},
- { /* zName: */ FzName: ts + 17107,
+ { /* zName: */ FzName: ts + 17139,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_USER_VERSION)},
- { /* zName: */ FzName: ts + 17120,
+ { /* zName: */ FzName: ts + 17152,
/* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_AUTOCHECKPOINT)},
- { /* zName: */ FzName: ts + 17139,
+ { /* zName: */ FzName: ts + 17171,
/* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_CHECKPOINT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema),
/* ColNames: */ FiPragCName: U8(50), FnPragCName: U8(3)},
- { /* zName: */ FzName: ts + 17154,
+ { /* zName: */ FzName: ts + 17186,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_WriteSchema | SQLITE_NoSchemaError)},
-} /* sqlite3.c:129019:25 */
+} /* sqlite3.c:129904:25 */
// Number of pragmas: 68 on by default, 78 total.
@@ -109929,7 +110567,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 { /* sqlite3.c:130438:11: */
// on no off false yes true extra full
var i int32
var n int32
@@ -109946,13 +110584,13 @@ func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* s
return dflt
}
-var zText = *(*[25]int8)(unsafe.Pointer(ts + 17170)) /* 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 + 17202)) /* sqlite3.c:130440:21 */
+var iOffset = [8]U8{U8(0), U8(1), U8(2), U8(4), U8(9), U8(12), U8(15), U8(20)} /* sqlite3.c:130441:19 */
+var iLength = [8]U8{U8(2), U8(2), U8(3), U8(5), U8(3), U8(4), U8(5), U8(4)} /* sqlite3.c:130442:19 */
+var iValue = [8]U8{U8(1), U8(0), U8(0), U8(0), U8(1), U8(1), U8(3), U8(2)} /* sqlite3.c:130443: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 { /* sqlite3.c:130463:19: */
return U8(libc.Bool32(int32(getSafetyLevel(tls, z, 1, dflt)) != 0))
}
@@ -109961,12 +110599,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 { /* sqlite3.c:130476:12: */
if z != 0 {
- if 0 == Xsqlite3StrICmp(tls, z, ts+17195) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17227) {
return PAGER_LOCKINGMODE_EXCLUSIVE
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+17205) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17237) {
return PAGER_LOCKINGMODE_NORMAL
}
}
@@ -109977,15 +110615,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 { /* sqlite3.c:130491:12: */
var i int32
- if 0 == Xsqlite3StrICmp(tls, z, ts+7907) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+7905) {
return BTREE_AUTOVACUUM_NONE
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+17212) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17244) {
return BTREE_AUTOVACUUM_FULL
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+17217) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+17249) {
return BTREE_AUTOVACUUM_INCR
}
i = Xsqlite3Atoi(tls, z)
@@ -110000,12 +110638,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 { /* sqlite3.c:130507: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+16145) == 0 {
+ } else if Xsqlite3StrICmp(tls, z, ts+16177) == 0 {
return 1
- } else if Xsqlite3StrICmp(tls, z, ts+17229) == 0 {
+ } else if Xsqlite3StrICmp(tls, z, ts+17261) == 0 {
return 2
} else {
return 0
@@ -110015,13 +110653,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 { /* sqlite3.c:130525: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+17236, 0)
+ ts+17268, 0)
return SQLITE_ERROR
}
Xsqlite3BtreeClose(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt)
@@ -110034,7 +110672,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 { /* sqlite3.c:130549:12: */
var ts int32 = getTempStore(tls, zStorageType)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if int32((*Sqlite3)(unsafe.Pointer(db)).Ftemp_store) == ts {
@@ -110048,7 +110686,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) { /* sqlite3.c:130564:13: */
var n U8 = (*PragmaName)(unsafe.Pointer(pPragma)).FnPragCName
Xsqlite3VdbeSetNumCols(tls, v, func() int32 {
if int32(n) == 0 {
@@ -110082,7 +110720,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) { /* sqlite3.c:130583:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*I64)(unsafe.Pointer(bp)) = value
@@ -110092,7 +110730,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) { /* sqlite3.c:130591:13: */
if zValue != 0 {
Xsqlite3VdbeLoadString(tls, v, 1, zValue)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1)
@@ -110101,7 +110739,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) { /* sqlite3.c:130607:13: */
if (*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0 {
var pDb uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaDb
var n int32 = (*Sqlite3)(unsafe.Pointer(db)).FnDb
@@ -110117,23 +110755,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 { /* sqlite3.c:130635:19: */
var zName uintptr
switch int32(action) {
case OE_SetNull:
- zName = ts + 17298 /* "SET NULL" */
+ zName = ts + 17330 /* "SET NULL" */
break
case OE_SetDflt:
- zName = ts + 17307 /* "SET DEFAULT" */
+ zName = ts + 17339 /* "SET DEFAULT" */
break
case OE_Cascade:
- zName = ts + 17319 /* "CASCADE" */
+ zName = ts + 17351 /* "CASCADE" */
break
case OE_Restrict:
- zName = ts + 17327 /* "RESTRICT" */
+ zName = ts + 17359 /* "RESTRICT" */
break
default:
- zName = ts + 17336 /* "NO ACTION" */
+ zName = ts + 17368 /* "NO ACTION" */
break
}
return zName
@@ -110142,7 +110780,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 { /* sqlite3.c:130655:27: */
if eMode == int32(uint64(unsafe.Sizeof(azModeName))/uint64(unsafe.Sizeof(uintptr(0)))) {
return uintptr(0)
@@ -110151,11 +110789,11 @@ func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* sqlite3.c:
}
var azModeName = [6]uintptr{
- ts + 17346, ts + 17353, ts + 17361, ts + 17365, ts + 17229, ts + 17374,
-} /* sqlite3.c:129771:15 */
+ ts + 17378, ts + 17385, ts + 17393, ts + 17397, ts + 17261, ts + 17406,
+} /* sqlite3.c:130656: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 { /* sqlite3.c:130677:25: */
var upr int32
var lwr int32
var mid int32 = 0
@@ -110182,7 +110820,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) { /* sqlite3.c:130698:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -110197,13 +110835,13 @@ func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, sh
continue
}
if (*FuncDef)(unsafe.Pointer(p)).FxValue != uintptr(0) {
- zType = ts + 17378 /* "w" */
+ zType = ts + 17410 /* "w" */
} else if (*FuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) {
- zType = ts + 17380 /* "a" */
+ zType = ts + 17412 /* "a" */
} else {
- zType = ts + 7419 /* "s" */
+ zType = ts + 7415 /* "s" */
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17382,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17414,
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),
@@ -110211,15 +110849,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 + 17389, ts + 17394, ts + 17402 /* "utf16be" */} /* sqlite3.c:129828:23 */
+var mask U32 = U32(SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS | SQLITE_FUNC_INTERNAL) /* sqlite3.c:130706:22 */
+var azEnc = [4]uintptr{uintptr(0), ts + 17421, ts + 17426, ts + 17434 /* "utf16be" */} /* sqlite3.c:130713: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 { /* sqlite3.c:130750:12: */
var addr int32
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 3, 1)
addr = Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, 1, Xsqlite3VdbeCurrentAddr(tls, v)+2, 1)
@@ -110241,7 +110879,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) { /* sqlite3.c:130774:21: */
bp := tls.Alloc(616)
defer tls.Free(616)
@@ -110488,7 +111126,7 @@ __4:
if !(minusFlag != 0) {
goto __5
}
- zRight = Xsqlite3MPrintf(tls, db, ts+17410, libc.VaList(bp, pValue))
+ zRight = Xsqlite3MPrintf(tls, db, ts+17442, libc.VaList(bp, pValue))
goto __6
__5:
zRight = Xsqlite3NameFromToken(tls, db, pValue)
@@ -110543,7 +111181,7 @@ __8:
if !(*(*uintptr)(unsafe.Pointer(bp + 448)) != 0) {
goto __10
}
- Xsqlite3ErrorMsg(tls, pParse, ts+3623, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 448))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3614, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 448))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 448)))
__10:
;
@@ -111131,7 +111769,7 @@ __18:
if !(zRight != 0) {
goto __63
}
- if !(Xsqlite3_stricmp(tls, zRight, ts+17414) == 0) {
+ if !(Xsqlite3_stricmp(tls, zRight, ts+17446) == 0) {
goto __64
}
b = 2
@@ -111220,7 +111858,7 @@ __71:
// PRAGMA [schema.]locking_mode
// PRAGMA [schema.]locking_mode = (normal|exclusive)
__20:
- zRet = ts + 17205 /* "normal" */
+ zRet = ts + 17237 /* "normal" */
eMode = getLockingMode(tls, zRight)
if !((*Token)(unsafe.Pointer(pId2)).Fn == uint32(0) && eMode == -1) {
@@ -111261,7 +111899,7 @@ __78:
if !(eMode == PAGER_LOCKINGMODE_EXCLUSIVE) {
goto __83
}
- zRet = ts + 17195 /* "exclusive" */
+ zRet = ts + 17227 /* "exclusive" */
__83:
;
returnSingleText(tls, v, zRet)
@@ -111626,7 +112264,7 @@ __123:
if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 512)) == 0) {
goto __126
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17419, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+17451, 0)
goto pragma_out
__126:
;
@@ -111644,7 +112282,7 @@ __127:
if !(*(*int8)(unsafe.Pointer(zRight)) != 0) {
goto __128
}
- Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+16, zRight))
+ Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+16, zRight))
goto __129
__128:
Xsqlite3_temp_directory = uintptr(0)
@@ -111672,7 +112310,7 @@ __130:
goto __132
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+17444, 0)
+ ts+17476, 0)
goto __133
__132:
if !(iDb != 1) {
@@ -111728,7 +112366,7 @@ __139:
__141:
;
if !(mask&uint64(SQLITE_WriteSchema) != uint64(0) &&
- Xsqlite3_stricmp(tls, zRight, ts+17497) == 0) {
+ Xsqlite3_stricmp(tls, zRight, ts+17529) == 0) {
goto __142
}
// IMP: R-60817-01178 If the argument is "RESET" then schema
@@ -111842,13 +112480,13 @@ __155:
Xsqlite3VdbeMultiLoad(tls, v, 1, func() uintptr {
if (*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- return ts + 17503 /* "issisii" */
+ return ts + 17535 /* "issisii" */
}
- return ts + 17511 /* "issisi" */
+ return ts + 17543 /* "issisi" */
}(),
libc.VaList(bp+24, i-nHidden,
(*Column)(unsafe.Pointer(pCol)).FzCnName,
- Xsqlite3ColumnType(tls, pCol, ts+1565),
+ Xsqlite3ColumnType(tls, pCol, ts+1534),
func() int32 {
if uint32(int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 {
return 1
@@ -111929,7 +112567,7 @@ __170:
if !(int32((*Table)(unsafe.Pointer(pTab1)).FnCol) == 0) {
goto __171
}
- zSql = Xsqlite3MPrintf(tls, db, ts+17518, libc.VaList(bp+80, (*Table)(unsafe.Pointer(pTab1)).FzName))
+ zSql = Xsqlite3MPrintf(tls, db, ts+17550, libc.VaList(bp+80, (*Table)(unsafe.Pointer(pTab1)).FzName))
if !(zSql != 0) {
goto __172
}
@@ -111939,6 +112577,13 @@ __170:
Xsqlite3DbFree(tls, db, zSql)
__172:
;
+ if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+ goto __173
+ }
+ Xsqlite3ErrorMsg(tls, (*Sqlite3)(unsafe.Pointer(db)).FpParse, ts+1470, 0)
+ (*Parse)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FpParse)).Frc = SQLITE_NOMEM
+__173:
+ ;
pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii4)*32)).FpSchema + 8
goto __169
__171:
@@ -111955,55 +112600,55 @@ __166:
;
k1 = (*Hash)(unsafe.Pointer(pHash)).Ffirst
-__173:
+__174:
if !(k1 != 0) {
- goto __175
+ goto __176
}
pTab2 = (*HashElem)(unsafe.Pointer(k1)).Fdata
if !(zRight != 0 && Xsqlite3_stricmp(tls, zRight, (*Table)(unsafe.Pointer(pTab2)).FzName) != 0) {
- goto __176
+ goto __177
}
- goto __174
-__176:
+ goto __175
+__177:
;
if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VIEW) {
- goto __177
+ goto __178
}
- zType = ts + 10380 /* "view" */
- goto __178
-__177:
+ zType = ts + 10376 /* "view" */
+ goto __179
+__178:
if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VTAB) {
- goto __179
+ goto __180
}
- zType = ts + 12636 /* "virtual" */
- goto __180
-__179:
+ zType = ts + 12650 /* "virtual" */
+ goto __181
+__180:
if !((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_Shadow) != 0) {
- goto __181
+ goto __182
}
- zType = ts + 17534 /* "shadow" */
- goto __182
-__181:
- zType = ts + 8761 /* "table" */
+ zType = ts + 17566 /* "shadow" */
+ goto __183
__182:
+ zType = ts + 8761 /* "table" */
+__183:
;
-__180:
+__181:
;
-__178:
+__179:
;
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17541,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17573,
libc.VaList(bp+88, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii4)*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 __174
-__174:
- k1 = (*HashElem)(unsafe.Pointer(k1)).Fnext
- goto __173
goto __175
__175:
+ k1 = (*HashElem)(unsafe.Pointer(k1)).Fnext
+ goto __174
+ goto __176
+__176:
;
goto __162
__162:
@@ -112017,51 +112662,51 @@ __163:
__34:
if !(zRight != 0) {
- goto __183
+ goto __184
}
pIdx = Xsqlite3FindIndex(tls, db, zRight, zDb)
if !(pIdx == uintptr(0)) {
- goto __184
+ goto __185
}
// 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 __185
+ goto __186
}
pIdx = Xsqlite3PrimaryKeyIndex(tls, pTab3)
-__185:
+__186:
;
-__184:
+__185:
;
if !(pIdx != 0) {
- goto __186
+ goto __187
}
iIdxDb = Xsqlite3SchemaToIndex(tls, db, (*Index)(unsafe.Pointer(pIdx)).FpSchema)
if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) {
- goto __187
+ goto __188
}
// PRAGMA index_xinfo (newer version with more rows and columns)
mx = int32((*Index)(unsafe.Pointer(pIdx)).FnColumn)
(*Parse)(unsafe.Pointer(pParse)).FnMem = 6
- goto __188
-__187:
+ goto __189
+__188:
// PRAGMA index_info (legacy version)
mx = int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)
(*Parse)(unsafe.Pointer(pParse)).FnMem = 3
-__188:
+__189:
;
pTab3 = (*Index)(unsafe.Pointer(pIdx)).FpTable
Xsqlite3CodeVerifySchema(tls, pParse, iIdxDb)
i1 = 0
-__189:
+__190:
if !(i1 < mx) {
- goto __191
+ goto __192
}
cnum = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i1)*2))
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17548, libc.VaList(bp+136, i1, int32(cnum),
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17580, libc.VaList(bp+136, i1, int32(cnum),
func() uintptr {
if int32(cnum) < 0 {
return uintptr(0)
@@ -112069,90 +112714,90 @@ __189:
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab3)).FaCol + uintptr(cnum)*24)).FzCnName
}()))
if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) {
- goto __192
+ goto __193
}
- Xsqlite3VdbeMultiLoad(tls, v, 4, ts+17553,
+ Xsqlite3VdbeMultiLoad(tls, v, 4, ts+17585,
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))))
-__192:
+__193:
;
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, (*Parse)(unsafe.Pointer(pParse)).FnMem)
- goto __190
-__190:
- i1++
- goto __189
goto __191
__191:
+ i1++
+ goto __190
+ goto __192
+__192:
;
-__186:
+__187:
;
-__183:
+__184:
;
goto __15
__35:
if !(zRight != 0) {
- goto __193
+ goto __194
}
pTab4 = Xsqlite3FindTable(tls, db, zRight, zDb)
if !(pTab4 != 0) {
- goto __194
+ goto __195
}
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
-__195:
+__196:
if !(pIdx1 != 0) {
- goto __197
+ goto __198
}
- *(*[3]uintptr)(unsafe.Pointer(bp + 528 /* azOrigin */)) = [3]uintptr{ts + 17558, ts + 17560, ts + 16022}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17562,
+ *(*[3]uintptr)(unsafe.Pointer(bp + 528 /* azOrigin */)) = [3]uintptr{ts + 17590, ts + 17592, ts + 16054}
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17594,
libc.VaList(bp+184, i2,
(*Index)(unsafe.Pointer(pIdx1)).FzName,
libc.Bool32(int32((*Index)(unsafe.Pointer(pIdx1)).FonError) != OE_None),
*(*uintptr)(unsafe.Pointer(bp + 528 + uintptr(uint32(int32(*(*uint16)(unsafe.Pointer(pIdx1 + 100))&0x3>>0)))*8)),
libc.Bool32((*Index)(unsafe.Pointer(pIdx1)).FpPartIdxWhere != uintptr(0))))
- goto __196
-__196:
- pIdx1 = (*Index)(unsafe.Pointer(pIdx1)).FpNext
- i2++
- goto __195
goto __197
__197:
+ pIdx1 = (*Index)(unsafe.Pointer(pIdx1)).FpNext
+ i2++
+ goto __196
+ goto __198
+__198:
;
-__194:
+__195:
;
-__193:
+__194:
;
goto __15
__36:
(*Parse)(unsafe.Pointer(pParse)).FnMem = 3
i3 = 0
-__198:
+__199:
if !(i3 < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __200
+ goto __201
}
if !((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i3)*32)).FpBt == uintptr(0)) {
- goto __201
+ goto __202
}
- goto __199
-__201:
+ goto __200
+__202:
;
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17568,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17600,
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 __199
-__199:
- i3++
- goto __198
goto __200
__200:
+ i3++
+ goto __199
+ goto __201
+__201:
;
goto __15
@@ -112161,18 +112806,18 @@ __37:
i4 = 0
(*Parse)(unsafe.Pointer(pParse)).FnMem = 2
p = (*Hash)(unsafe.Pointer(db + 640)).Ffirst
-__202:
+__203:
if !(p != 0) {
- goto __204
+ goto __205
}
pColl = (*HashElem)(unsafe.Pointer(p)).Fdata
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17572, libc.VaList(bp+248, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName))
- goto __203
-__203:
- p = (*HashElem)(unsafe.Pointer(p)).Fnext
- goto __202
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17604, libc.VaList(bp+248, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName))
goto __204
__204:
+ p = (*HashElem)(unsafe.Pointer(p)).Fnext
+ goto __203
+ goto __205
+__205:
;
goto __15
@@ -112181,45 +112826,45 @@ __38:
showInternFunc = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_InternalFunc) != U32(0))
(*Parse)(unsafe.Pointer(pParse)).FnMem = 6
i5 = 0
-__205:
+__206:
if !(i5 < SQLITE_FUNC_HASH_SZ) {
- goto __207
+ goto __208
}
p1 = *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3BuiltinFunctions)) + uintptr(i5)*8))
-__208:
+__209:
if !(p1 != 0) {
- goto __210
+ goto __211
}
pragmaFunclistLine(tls, v, p1, 1, showInternFunc)
- goto __209
-__209:
- p1 = *(*uintptr)(unsafe.Pointer(p1 + 64))
- goto __208
goto __210
__210:
+ p1 = *(*uintptr)(unsafe.Pointer(p1 + 64))
+ goto __209
+ goto __211
+__211:
;
- goto __206
-__206:
- i5++
- goto __205
goto __207
__207:
+ i5++
+ goto __206
+ goto __208
+__208:
;
j = (*Hash)(unsafe.Pointer(db + 616)).Ffirst
-__211:
+__212:
if !(j != 0) {
- goto __213
+ goto __214
}
p1 = (*HashElem)(unsafe.Pointer(j)).Fdata
pragmaFunclistLine(tls, v, p1, 0, showInternFunc)
- goto __212
-__212:
- j = (*HashElem)(unsafe.Pointer(j)).Fnext
- goto __211
goto __213
__213:
+ j = (*HashElem)(unsafe.Pointer(j)).Fnext
+ goto __212
+ goto __214
+__214:
;
goto __15
@@ -112227,65 +112872,65 @@ __213:
__39:
(*Parse)(unsafe.Pointer(pParse)).FnMem = 1
j1 = (*Hash)(unsafe.Pointer(db + 568)).Ffirst
-__214:
+__215:
if !(j1 != 0) {
- goto __216
+ goto __217
}
pMod = (*HashElem)(unsafe.Pointer(j1)).Fdata
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7419, libc.VaList(bp+264, (*Module)(unsafe.Pointer(pMod)).FzName))
- goto __215
-__215:
- j1 = (*HashElem)(unsafe.Pointer(j1)).Fnext
- goto __214
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7415, libc.VaList(bp+264, (*Module)(unsafe.Pointer(pMod)).FzName))
goto __216
__216:
+ j1 = (*HashElem)(unsafe.Pointer(j1)).Fnext
+ goto __215
+ goto __217
+__217:
;
goto __15
__40:
i6 = 0
-__217:
+__218:
if !(i6 < int32(uint64(unsafe.Sizeof(aPragmaName))/uint64(unsafe.Sizeof(PragmaName{})))) {
- goto __219
+ goto __220
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7419, libc.VaList(bp+272, aPragmaName[i6].FzName))
- goto __218
-__218:
- i6++
- goto __217
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7415, libc.VaList(bp+272, aPragmaName[i6].FzName))
goto __219
__219:
+ i6++
+ goto __218
+ goto __220
+__220:
;
goto __15
__41:
if !(zRight != 0) {
- goto __220
+ goto __221
}
pTab5 = Xsqlite3FindTable(tls, db, zRight, zDb)
if !(pTab5 != 0 && int32((*Table)(unsafe.Pointer(pTab5)).FeTabType) == TABTYP_NORM) {
- goto __221
+ goto __222
}
pFK = *(*uintptr)(unsafe.Pointer(pTab5 + 64 + 8 /* &.pFKey */))
if !(pFK != 0) {
- goto __222
+ goto __223
}
iTabDb1 = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab5)).FpSchema)
i7 = 0
(*Parse)(unsafe.Pointer(pParse)).FnMem = 8
Xsqlite3CodeVerifySchema(tls, pParse, iTabDb1)
-__223:
+__224:
if !(pFK != 0) {
- goto __224
+ goto __225
}
j2 = 0
-__225:
+__226:
if !(j2 < (*FKey)(unsafe.Pointer(pFK)).FnCol) {
- goto __227
+ goto __228
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17575,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17607,
libc.VaList(bp+280, i7,
j2,
(*FKey)(unsafe.Pointer(pFK)).FzTo,
@@ -112293,25 +112938,25 @@ __225:
(*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+17584))
- goto __226
-__226:
- j2++
- goto __225
+ ts+17616))
goto __227
__227:
+ j2++
+ goto __226
+ goto __228
+__228:
;
i7++
pFK = (*FKey)(unsafe.Pointer(pFK)).FpNextFrom
- goto __223
-__224:
+ goto __224
+__225:
+ ;
+__223:
;
__222:
;
__221:
;
-__220:
- ;
goto __15
__42: // child to parent column mapping
@@ -112321,113 +112966,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
-__228:
+__229:
if !(k2 != 0) {
- goto __229
+ goto __230
}
if !(zRight != 0) {
- goto __230
+ goto __231
}
pTab6 = Xsqlite3LocateTable(tls, pParse, uint32(0), zRight, zDb)
k2 = uintptr(0)
- goto __231
-__230:
+ goto __232
+__231:
pTab6 = (*HashElem)(unsafe.Pointer(k2)).Fdata
k2 = (*HashElem)(unsafe.Pointer(k2)).Fnext
-__231:
+__232:
;
if !(pTab6 == uintptr(0) || !(int32((*Table)(unsafe.Pointer(pTab6)).FeTabType) == TABTYP_NORM) || *(*uintptr)(unsafe.Pointer(pTab6 + 64 + 8)) == uintptr(0)) {
- goto __232
+ goto __233
}
- goto __228
-__232:
+ goto __229
+__233:
;
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 __233
+ goto __234
}
(*Parse)(unsafe.Pointer(pParse)).FnMem = int32((*Table)(unsafe.Pointer(pTab6)).FnCol) + regRow
-__233:
+__234:
;
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 */))
-__234:
+__235:
if !(pFK1 != 0) {
- goto __236
+ goto __237
}
pParent = Xsqlite3FindTable(tls, db, (*FKey)(unsafe.Pointer(pFK1)).FzTo, zDb)
if !(pParent == uintptr(0)) {
- goto __237
+ goto __238
}
- goto __235
-__237:
+ goto __236
+__238:
;
*(*uintptr)(unsafe.Pointer(bp + 552 /* 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+552, uintptr(0))
if !(x1 == 0) {
- goto __238
+ goto __239
}
if !(*(*uintptr)(unsafe.Pointer(bp + 552)) == uintptr(0)) {
- goto __240
+ goto __241
}
Xsqlite3OpenTable(tls, pParse, i8, iDb, pParent, OP_OpenRead)
- goto __241
-__240:
+ goto __242
+__241:
Xsqlite3VdbeAddOp3(tls, v, OP_OpenRead, i8, int32((*Index)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 552 /* pIdx2 */)))).Ftnum), iDb)
Xsqlite3VdbeSetP4KeyInfo(tls, pParse, *(*uintptr)(unsafe.Pointer(bp + 552 /* pIdx2 */)))
-__241:
+__242:
;
- goto __239
-__238:
- k2 = uintptr(0)
- goto __236
+ goto __240
__239:
+ k2 = uintptr(0)
+ goto __237
+__240:
;
- goto __235
-__235:
- i8++
- pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
- goto __234
goto __236
__236:
+ i8++
+ pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
+ goto __235
+ goto __237
+__237:
;
if !(pFK1 != 0) {
- goto __242
+ goto __243
}
- goto __229
-__242:
+ goto __230
+__243:
;
if !((*Parse)(unsafe.Pointer(pParse)).FnTab < i8) {
- goto __243
+ goto __244
}
(*Parse)(unsafe.Pointer(pParse)).FnTab = i8
-__243:
+__244:
;
addrTop = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, 0)
i8 = 1
pFK1 = *(*uintptr)(unsafe.Pointer(pTab6 + 64 + 8 /* &.pFKey */))
-__244:
+__245:
if !(pFK1 != 0) {
- goto __246
+ goto __247
}
pParent = Xsqlite3FindTable(tls, db, (*FKey)(unsafe.Pointer(pFK1)).FzTo, zDb)
*(*uintptr)(unsafe.Pointer(bp + 552 /* pIdx2 */)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 560 /* aiCols */)) = uintptr(0)
if !(pParent != 0) {
- goto __247
+ goto __248
}
x1 = Xsqlite3FkLocateIndex(tls, pParse, pParent, pFK1, bp+552, bp+560)
-__247:
+__248:
;
addrOk = Xsqlite3VdbeMakeLabel(tls, pParse)
@@ -112436,15 +113081,15 @@ __247:
// 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 __248
+ goto __249
}
(*Parse)(unsafe.Pointer(pParse)).FnMem = regRow + (*FKey)(unsafe.Pointer(pFK1)).FnCol
-__248:
+__249:
;
j3 = 0
-__249:
+__250:
if !(j3 < (*FKey)(unsafe.Pointer(pFK1)).FnCol) {
- goto __251
+ goto __252
}
if *(*uintptr)(unsafe.Pointer(bp + 560)) != 0 {
iCol = *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 560 /* aiCols */)) + uintptr(j3)*4))
@@ -112453,63 +113098,63 @@ __249:
}
Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab6, 0, iCol, regRow+j3)
Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regRow+j3, addrOk)
- goto __250
-__250:
- j3++
- goto __249
goto __251
__251:
+ j3++
+ goto __250
+ goto __252
+__252:
;
// 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 + 552)) != 0) {
- goto __252
+ goto __253
}
Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regRow, (*FKey)(unsafe.Pointer(pFK1)).FnCol, regKey,
Xsqlite3IndexAffinityStr(tls, db, *(*uintptr)(unsafe.Pointer(bp + 552 /* pIdx2 */))), (*FKey)(unsafe.Pointer(pFK1)).FnCol)
Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, i8, addrOk, regKey, 0)
- goto __253
-__252:
+ goto __254
+__253:
if !(pParent != 0) {
- goto __254
+ goto __255
}
jmp = Xsqlite3VdbeCurrentAddr(tls, v) + 2
Xsqlite3VdbeAddOp3(tls, v, OP_SeekRowid, i8, jmp, regRow)
Xsqlite3VdbeGoto(tls, v, addrOk)
-__254:
+__255:
;
-__253:
+__254:
;
// Generate code to report an FK violation to the caller.
if !((*Table)(unsafe.Pointer(pTab6)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __255
+ goto __256
}
Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, 0, regResult+1)
- goto __256
-__255:
- Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1)
+ goto __257
__256:
+ Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1)
+__257:
;
- Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+17589, libc.VaList(bp+344, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1))
+ Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+17621, 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 + 560 /* aiCols */)))
- goto __245
-__245:
- i8++
- pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
- goto __244
goto __246
__246:
+ i8++
+ pFK1 = (*FKey)(unsafe.Pointer(pFK1)).FpNextFrom
+ goto __245
+ goto __247
+__247:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Next, 0, addrTop+1)
Xsqlite3VdbeJumpHere(tls, v, addrTop)
- goto __228
-__229:
+ goto __229
+__230:
;
goto __15
@@ -112518,10 +113163,10 @@ __229:
// used will be case sensitive or not depending on the RHS.
__43:
if !(zRight != 0) {
- goto __257
+ goto __258
}
Xsqlite3RegisterLikeFunctions(tls, db, int32(Xsqlite3GetBoolean(tls, zRight, uint8(0))))
-__257:
+__258:
;
goto __15
@@ -112565,10 +113210,10 @@ __44:
// of all attached databases.
if !((*Token)(unsafe.Pointer(pId2)).Fz == uintptr(0)) {
- goto __258
+ goto __259
}
iDb = -1
-__258:
+__259:
;
// Initialize the VDBE program
@@ -112577,19 +113222,19 @@ __258:
// Set the maximum error count
*(*int32)(unsafe.Pointer(bp + 568 /* mxErr */)) = SQLITE_INTEGRITY_CHECK_ERROR_MAX
if !(zRight != 0) {
- goto __259
+ goto __260
}
if !(Xsqlite3GetInt32(tls, zRight, bp+568) != 0) {
- goto __260
+ goto __261
}
if !(*(*int32)(unsafe.Pointer(bp + 568)) <= 0) {
- goto __262
+ goto __263
}
*(*int32)(unsafe.Pointer(bp + 568 /* mxErr */)) = SQLITE_INTEGRITY_CHECK_ERROR_MAX
-__262:
+__263:
;
- goto __261
-__260:
+ goto __262
+__261:
pObjTab = Xsqlite3LocateTable(tls, pParse, uint32(0), zRight,
func() uintptr {
if iDb >= 0 {
@@ -112597,32 +113242,32 @@ __260:
}
return uintptr(0)
}())
-__261:
+__262:
;
-__259:
+__260:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, *(*int32)(unsafe.Pointer(bp + 568))-1, 1) // reg[1] holds errors left
// Do an integrity check on each database file
i9 = 0
-__263:
+__264:
if !(i9 < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __265
+ goto __266
} // 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 __266
+ goto __267
}
- goto __264
-__266:
+ goto __265
+__267:
;
if !(iDb >= 0 && i9 != iDb) {
- goto __267
+ goto __268
}
- goto __264
-__267:
+ goto __265
+__268:
;
Xsqlite3CodeVerifySchema(tls, pParse, i9)
@@ -112635,114 +113280,114 @@ __267:
pTbls = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FpSchema + 8
cnt = 0
x2 = (*Hash)(unsafe.Pointer(pTbls)).Ffirst
-__268:
+__269:
if !(x2 != 0) {
- goto __270
+ goto __271
}
pTab7 = (*HashElem)(unsafe.Pointer(x2)).Fdata // Number of indexes on pTab
if !(pObjTab != 0 && pObjTab != pTab7) {
- goto __271
+ goto __272
}
- goto __269
-__271:
+ goto __270
+__272:
;
if !((*Table)(unsafe.Pointer(pTab7)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __272
+ goto __273
}
cnt++
-__272:
+__273:
;
nIdx = 0
pIdx3 = (*Table)(unsafe.Pointer(pTab7)).FpIndex
-__273:
+__274:
if !(pIdx3 != 0) {
- goto __275
+ goto __276
}
cnt++
- goto __274
-__274:
- pIdx3 = (*Index)(unsafe.Pointer(pIdx3)).FpNext
- nIdx++
- goto __273
goto __275
__275:
+ pIdx3 = (*Index)(unsafe.Pointer(pIdx3)).FpNext
+ nIdx++
+ goto __274
+ goto __276
+__276:
;
if !(nIdx > mxIdx) {
- goto __276
+ goto __277
}
mxIdx = nIdx
-__276:
+__277:
;
- goto __269
-__269:
- x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
- goto __268
goto __270
__270:
+ x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
+ goto __269
+ goto __271
+__271:
;
if !(cnt == 0) {
- goto __277
+ goto __278
}
- goto __264
-__277:
+ goto __265
+__278:
;
if !(pObjTab != 0) {
- goto __278
+ goto __279
}
cnt++
-__278:
+__279:
;
aRoot = Xsqlite3DbMallocRawNN(tls, db, uint64(uint64(unsafe.Sizeof(int32(0)))*uint64(cnt+1)))
if !(aRoot == uintptr(0)) {
- goto __279
+ goto __280
}
- goto __265
-__279:
+ goto __266
+__280:
;
cnt = 0
if !(pObjTab != 0) {
- goto __280
+ goto __281
}
*(*int32)(unsafe.Pointer(aRoot + uintptr(libc.PreIncInt32(&cnt, 1))*4)) = 0
-__280:
+__281:
;
x2 = (*Hash)(unsafe.Pointer(pTbls)).Ffirst
-__281:
+__282:
if !(x2 != 0) {
- goto __283
+ goto __284
}
pTab8 = (*HashElem)(unsafe.Pointer(x2)).Fdata
if !(pObjTab != 0 && pObjTab != pTab8) {
- goto __284
+ goto __285
}
- goto __282
-__284:
+ goto __283
+__285:
;
if !((*Table)(unsafe.Pointer(pTab8)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __285
+ goto __286
}
*(*int32)(unsafe.Pointer(aRoot + uintptr(libc.PreIncInt32(&cnt, 1))*4)) = int32((*Table)(unsafe.Pointer(pTab8)).Ftnum)
-__285:
+__286:
;
pIdx4 = (*Table)(unsafe.Pointer(pTab8)).FpIndex
-__286:
+__287:
if !(pIdx4 != 0) {
- goto __288
+ goto __289
}
*(*int32)(unsafe.Pointer(aRoot + uintptr(libc.PreIncInt32(&cnt, 1))*4)) = int32((*Index)(unsafe.Pointer(pIdx4)).Ftnum)
- goto __287
-__287:
- pIdx4 = (*Index)(unsafe.Pointer(pIdx4)).FpNext
- goto __286
goto __288
__288:
+ pIdx4 = (*Index)(unsafe.Pointer(pIdx4)).FpNext
+ goto __287
+ goto __289
+__289:
;
- goto __282
-__282:
- x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
- goto __281
goto __283
__283:
+ x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
+ goto __282
+ goto __284
+__284:
;
*(*int32)(unsafe.Pointer(aRoot)) = cnt
@@ -112760,7 +113405,7 @@ __283:
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+17593, libc.VaList(bp+360, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)),
+ Xsqlite3MPrintf(tls, db, ts+17625, 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)
@@ -112768,25 +113413,25 @@ __283:
// Make sure all the indices are constructed correctly.
x2 = (*Hash)(unsafe.Pointer(pTbls)).Ffirst
-__289:
+__290:
if !(x2 != 0) {
- goto __291
+ goto __292
}
pTab9 = (*HashElem)(unsafe.Pointer(x2)).Fdata
pPrior = uintptr(0)
r1 = -1
if !!(int32((*Table)(unsafe.Pointer(pTab9)).FeTabType) == TABTYP_NORM) {
- goto __292
+ goto __293
}
- goto __290
-__292:
+ goto __291
+__293:
;
if !(pObjTab != 0 && pObjTab != pTab9) {
- goto __293
+ goto __294
}
- goto __290
-__293:
+ goto __291
+__294:
;
if (*Table)(unsafe.Pointer(pTab9)).FtabFlags&U32(TF_WithoutRowid) == U32(0) {
pPk1 = uintptr(0)
@@ -112800,51 +113445,51 @@ __293:
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, 7)
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
-__294:
+__295:
if !(pIdx5 != 0) {
- goto __296
+ goto __297
}
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, 8+j4) // index entries counter
- goto __295
-__295:
- pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
- j4++
- goto __294
goto __296
__296:
+ pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
+ j4++
+ goto __295
+ goto __297
+__297:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Rewind, *(*int32)(unsafe.Pointer(bp + 572 /* iDataCur */)), 0)
loopTop = Xsqlite3VdbeAddOp2(tls, v, OP_AddImm, 7, 1)
if !!(isQuick != 0) {
- goto __297
+ goto __298
}
// Sanity check on record header decoding
Xsqlite3VdbeAddOp3(tls, v, OP_Column, *(*int32)(unsafe.Pointer(bp + 572 /* iDataCur */)), int32((*Table)(unsafe.Pointer(pTab9)).FnNVCol)-1, 3)
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_TYPEOFARG))
-__297:
+__298:
;
// 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
-__298:
+__299:
if !(j4 < int32((*Table)(unsafe.Pointer(pTab9)).FnCol)) {
- goto __300
+ goto __301
}
pCol1 = (*Table)(unsafe.Pointer(pTab9)).FaCol + uintptr(j4)*24
if !(j4 == int32((*Table)(unsafe.Pointer(pTab9)).FiPKey)) {
- goto __301
+ goto __302
}
- goto __299
-__301:
+ goto __300
+__302:
;
if !(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf>>0) == 0 && !(bStrict != 0)) {
- goto __302
+ goto __303
}
- goto __299
-__302:
+ goto __300
+__303:
;
if bStrict != 0 {
doError = Xsqlite3VdbeMakeLabel(tls, pParse)
@@ -112853,107 +113498,107 @@ __302:
}
Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab9, *(*int32)(unsafe.Pointer(bp + 572 /* iDataCur */)), j4, 3)
if !(int32((*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, v, -1))).Fopcode) == OP_Column) {
- goto __303
+ goto __304
}
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_TYPEOFARG))
-__303:
+__304:
;
if !(uint32(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf>>0)) != 0) {
- goto __304
+ goto __305
}
jmp2 = Xsqlite3VdbeAddOp1(tls, v, OP_NotNull, 3)
- zErr = Xsqlite3MPrintf(tls, db, ts+17617, libc.VaList(bp+368, (*Table)(unsafe.Pointer(pTab9)).FzName,
+ zErr = Xsqlite3MPrintf(tls, db, ts+17649, 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 __305
+ goto __306
}
Xsqlite3VdbeGoto(tls, v, doError)
- goto __306
-__305:
- integrityCheckResultRow(tls, v)
+ goto __307
__306:
+ integrityCheckResultRow(tls, v)
+__307:
;
Xsqlite3VdbeJumpHere(tls, v, jmp2)
-__304:
+__305:
;
if !((*Table)(unsafe.Pointer(pTab9)).FtabFlags&U32(TF_Strict) != U32(0) &&
int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4) != COLTYPE_ANY) {
- goto __307
+ goto __308
}
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+17637,
+ zErr = Xsqlite3MPrintf(tls, db, ts+17669,
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)
-__307:
+__308:
;
- goto __299
-__299:
- j4++
- goto __298
goto __300
__300:
+ j4++
+ goto __299
+ goto __301
+__301:
;
// Verify CHECK constraints
if !((*Table)(unsafe.Pointer(pTab9)).FpCheck != 0 && (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_IgnoreChecks) == uint64(0)) {
- goto __308
+ goto __309
}
pCheck = Xsqlite3ExprListDup(tls, db, (*Table)(unsafe.Pointer(pTab9)).FpCheck, 0)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0) {
- goto __309
+ goto __310
}
addrCkFault = Xsqlite3VdbeMakeLabel(tls, pParse)
addrCkOk = Xsqlite3VdbeMakeLabel(tls, pParse)
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = *(*int32)(unsafe.Pointer(bp + 572)) + 1
k3 = (*ExprList)(unsafe.Pointer(pCheck)).FnExpr - 1
-__310:
+__311:
if !(k3 > 0) {
- goto __312
+ goto __313
}
Xsqlite3ExprIfFalse(tls, pParse, (*ExprList_item)(unsafe.Pointer(pCheck+8+uintptr(k3)*32)).FpExpr, addrCkFault, 0)
- goto __311
-__311:
- k3--
- goto __310
goto __312
__312:
+ k3--
+ goto __311
+ goto __313
+__313:
;
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+17659,
+ zErr1 = Xsqlite3MPrintf(tls, db, ts+17691,
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)
-__309:
+__310:
;
Xsqlite3ExprListDelete(tls, db, pCheck)
-__308:
+__309:
;
if !!(isQuick != 0) {
- goto __313
+ goto __314
} // Omit the remaining tests for quick_check
// Validate index entries for the current row
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
-__314:
+__315:
if !(pIdx5 != 0) {
- goto __316
+ goto __317
}
ckUniq = Xsqlite3VdbeMakeLabel(tls, pParse)
if !(pPk1 == pIdx5) {
- goto __317
+ goto __318
}
- goto __315
-__317:
+ goto __316
+__318:
;
r1 = Xsqlite3GenerateIndexKey(tls, pParse, pIdx5, *(*int32)(unsafe.Pointer(bp + 572 /* iDataCur */)), 0, 0, bp+580,
pPrior, r1)
@@ -112962,9 +113607,9 @@ __317:
// Verify that an index entry exists for the current table row
jmp21 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, *(*int32)(unsafe.Pointer(bp + 576))+j4, ckUniq, r1,
int32((*Index)(unsafe.Pointer(pIdx5)).FnColumn))
- Xsqlite3VdbeLoadString(tls, v, 3, ts+17689)
+ Xsqlite3VdbeLoadString(tls, v, 3, ts+17721)
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 7, 3, 3)
- Xsqlite3VdbeLoadString(tls, v, 4, ts+17694)
+ Xsqlite3VdbeLoadString(tls, v, 4, ts+17726)
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)
@@ -112974,70 +113619,70 @@ __317:
// 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 __318
+ goto __319
}
uniqOk = Xsqlite3VdbeMakeLabel(tls, pParse)
kk = 0
-__319:
+__320:
if !(kk < int32((*Index)(unsafe.Pointer(pIdx5)).FnKeyCol)) {
- goto __321
+ goto __322
}
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 __322
+ goto __323
}
- goto __320
-__322:
+ goto __321
+__323:
;
Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, r1+kk, uniqOk)
- goto __320
-__320:
- kk++
- goto __319
goto __321
__321:
+ kk++
+ goto __320
+ goto __322
+__322:
;
jmp6 = Xsqlite3VdbeAddOp1(tls, v, OP_Next, *(*int32)(unsafe.Pointer(bp + 576))+j4)
Xsqlite3VdbeGoto(tls, v, uniqOk)
Xsqlite3VdbeJumpHere(tls, v, jmp6)
Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxGT, *(*int32)(unsafe.Pointer(bp + 576))+j4, uniqOk, r1,
int32((*Index)(unsafe.Pointer(pIdx5)).FnKeyCol))
- Xsqlite3VdbeLoadString(tls, v, 3, ts+17715)
+ Xsqlite3VdbeLoadString(tls, v, 3, ts+17747)
Xsqlite3VdbeGoto(tls, v, jmp5)
Xsqlite3VdbeResolveLabel(tls, v, uniqOk)
-__318:
+__319:
;
Xsqlite3VdbeJumpHere(tls, v, jmp4)
Xsqlite3ResolvePartIdxLabel(tls, pParse, *(*int32)(unsafe.Pointer(bp + 580 /* jmp3 */)))
- goto __315
-__315:
- pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
- j4++
- goto __314
goto __316
__316:
+ pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
+ j4++
+ goto __315
+ goto __317
+__317:
;
-__313:
+__314:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Next, *(*int32)(unsafe.Pointer(bp + 572 /* iDataCur */)), loopTop)
Xsqlite3VdbeJumpHere(tls, v, loopTop-1)
if !!(isQuick != 0) {
- goto __323
+ goto __324
}
- Xsqlite3VdbeLoadString(tls, v, 2, ts+17742)
+ Xsqlite3VdbeLoadString(tls, v, 2, ts+17774)
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
-__324:
+__325:
if !(pIdx5 != 0) {
- goto __326
+ goto __327
}
if !(pPk1 == pIdx5) {
- goto __327
+ goto __328
}
- goto __325
-__327:
+ goto __326
+__328:
;
Xsqlite3VdbeAddOp2(tls, v, OP_Count, *(*int32)(unsafe.Pointer(bp + 576))+j4, 3)
addr1 = Xsqlite3VdbeAddOp3(tls, v, OP_Eq, 8+j4, 0, 3)
@@ -113046,41 +113691,41 @@ __327:
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 4, 2, 3)
integrityCheckResultRow(tls, v)
Xsqlite3VdbeJumpHere(tls, v, addr1)
- goto __325
-__325:
- pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
- j4++
- goto __324
goto __326
__326:
+ pIdx5 = (*Index)(unsafe.Pointer(pIdx5)).FpNext
+ j4++
+ goto __325
+ goto __327
+__327:
;
-__323:
+__324:
;
- goto __290
-__290:
- x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
- goto __289
goto __291
__291:
+ x2 = (*HashElem)(unsafe.Pointer(x2)).Fnext
+ goto __290
+ goto __292
+__292:
;
- goto __264
-__264:
- i9++
- goto __263
goto __265
__265:
+ i9++
+ goto __264
+ goto __266
+__266:
;
aOp2 = Xsqlite3VdbeAddOpList(tls, v, int32(uint64(unsafe.Sizeof(endCode))/uint64(unsafe.Sizeof(VdbeOpList{}))), uintptr(unsafe.Pointer(&endCode)), iLn5)
if !(aOp2 != 0) {
- goto __328
+ goto __329
}
(*VdbeOp)(unsafe.Pointer(aOp2)).Fp2 = 1 - *(*int32)(unsafe.Pointer(bp + 568))
(*VdbeOp)(unsafe.Pointer(aOp2 + 2*24)).Fp4type = int8(-1)
- *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 17771 /* "ok" */
+ *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 17803 /* "ok" */
(*VdbeOp)(unsafe.Pointer(aOp2 + 5*24)).Fp4type = int8(-1)
*(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = Xsqlite3ErrStr(tls, SQLITE_CORRUPT)
-__328:
+__329:
;
Xsqlite3VdbeChangeP3(tls, v, 0, Xsqlite3VdbeCurrentAddr(tls, v)-2)
@@ -113108,32 +113753,32 @@ __328:
// useful if invoked immediately after the main database i
__45:
if !!(zRight != 0) {
- goto __329
+ goto __330
} // "PRAGMA encoding"
if !(Xsqlite3ReadSchema(tls, pParse) != 0) {
- goto __331
+ goto __332
}
goto pragma_out
-__331:
+__332:
;
returnSingleText(tls, v, encnames1[(*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).Fenc].FzName)
- goto __330
-__329: // "PRAGMA encoding = XXX"
+ goto __331
+__330: // "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 __332
+ goto __333
}
pEnc = uintptr(unsafe.Pointer(&encnames1))
-__333:
+__334:
if !((*EncName)(unsafe.Pointer(pEnc)).FzName != 0) {
- goto __335
+ goto __336
}
if !(0 == Xsqlite3StrICmp(tls, zRight, (*EncName)(unsafe.Pointer(pEnc)).FzName)) {
- goto __336
+ goto __337
}
if (*EncName)(unsafe.Pointer(pEnc)).Fenc != 0 {
enc = (*EncName)(unsafe.Pointer(pEnc)).Fenc
@@ -113142,25 +113787,25 @@ __333:
}
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema)).Fenc = enc
Xsqlite3SetTextEncoding(tls, db, enc)
- goto __335
-__336:
+ goto __336
+__337:
;
- goto __334
-__334:
- pEnc += 16
- goto __333
goto __335
__335:
+ pEnc += 16
+ goto __334
+ goto __336
+__336:
;
if !!(int32((*EncName)(unsafe.Pointer(pEnc)).FzName) != 0) {
- goto __337
+ goto __338
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17774, libc.VaList(bp+416, zRight))
-__337:
+ Xsqlite3ErrorMsg(tls, pParse, ts+17806, libc.VaList(bp+416, zRight))
+__338:
;
-__332:
+__333:
;
-__330:
+__331:
;
goto __15
@@ -113199,36 +113844,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 __338
+ goto __339
}
aOp3 = Xsqlite3VdbeAddOpList(tls, v, int32(uint64(unsafe.Sizeof(setCookie))/uint64(unsafe.Sizeof(VdbeOpList{}))), uintptr(unsafe.Pointer(&setCookie)), 0)
if !(0 != 0) {
- goto __340
+ goto __341
}
goto __15
-__340:
+__341:
;
(*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 __339
-__338:
+ goto __340
+__339:
;
aOp4 = Xsqlite3VdbeAddOpList(tls, v, int32(uint64(unsafe.Sizeof(readCookie))/uint64(unsafe.Sizeof(VdbeOpList{}))), uintptr(unsafe.Pointer(&readCookie)), 0)
if !(0 != 0) {
- goto __341
+ goto __342
}
goto __15
-__341:
+__342:
;
(*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)
-__339:
+__340:
;
goto __15
@@ -113240,14 +113885,14 @@ __339:
__47:
i10 = 0
(*Parse)(unsafe.Pointer(pParse)).FnMem = 1
-__342:
+__343:
if !(libc.AssignUintptr(&zOpt, Xsqlite3_compileoption_get(tls, libc.PostIncInt32(&i10, 1))) != uintptr(0)) {
- goto __343
+ goto __344
}
Xsqlite3VdbeLoadString(tls, v, 1, zOpt)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1)
- goto __342
-__343:
+ goto __343
+__344:
;
Xsqlite3VdbeReusable(tls, v)
@@ -113265,31 +113910,31 @@ __48:
}()
eMode2 = SQLITE_CHECKPOINT_PASSIVE
if !(zRight != 0) {
- goto __344
- }
- if !(Xsqlite3StrICmp(tls, zRight, ts+17212) == 0) {
goto __345
}
+ if !(Xsqlite3StrICmp(tls, zRight, ts+17244) == 0) {
+ goto __346
+ }
eMode2 = SQLITE_CHECKPOINT_FULL
- goto __346
-__345:
- if !(Xsqlite3StrICmp(tls, zRight, ts+17799) == 0) {
- goto __347
+ goto __347
+__346:
+ if !(Xsqlite3StrICmp(tls, zRight, ts+17831) == 0) {
+ goto __348
}
eMode2 = SQLITE_CHECKPOINT_RESTART
- goto __348
-__347:
- if !(Xsqlite3StrICmp(tls, zRight, ts+17365) == 0) {
- goto __349
+ goto __349
+__348:
+ if !(Xsqlite3StrICmp(tls, zRight, ts+17397) == 0) {
+ goto __350
}
eMode2 = SQLITE_CHECKPOINT_TRUNCATE
-__349:
+__350:
;
-__348:
+__349:
;
-__346:
+__347:
;
-__344:
+__345:
;
(*Parse)(unsafe.Pointer(pParse)).FnMem = 3
Xsqlite3VdbeAddOp3(tls, v, OP_Checkpoint, iBt, eMode2, 1)
@@ -113305,10 +113950,10 @@ __344:
// of N.
__49:
if !(zRight != 0) {
- goto __350
+ goto __351
}
Xsqlite3_wal_autocheckpoint(tls, db, Xsqlite3Atoi(tls, zRight))
-__350:
+__351:
;
returnSingleInt(tls, v,
func() int64 {
@@ -113386,19 +114031,19 @@ __50:
__51: // Mask of operations to perform
if !(zRight != 0) {
- goto __351
+ goto __352
}
opMask = U32(Xsqlite3Atoi(tls, zRight))
if !(opMask&U32(0x02) == U32(0)) {
- goto __353
+ goto __354
}
goto __15
-__353:
+__354:
;
- goto __352
-__351:
- opMask = U32(0xfffe)
+ goto __353
__352:
+ opMask = U32(0xfffe)
+__353:
;
iTabCur = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1)
iDbLast = func() int32 {
@@ -113407,22 +114052,22 @@ __352:
}
return (*Sqlite3)(unsafe.Pointer(db)).FnDb - 1
}()
-__354:
+__355:
if !(iDb <= iDbLast) {
- goto __356
+ goto __357
}
if !(iDb == 1) {
- goto __357
+ goto __358
}
- goto __355
-__357:
+ goto __356
+__358:
;
Xsqlite3CodeVerifySchema(tls, pParse, iDb)
pSchema = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FpSchema
k4 = (*Hash)(unsafe.Pointer(pSchema + 8)).Ffirst
-__358:
+__359:
if !(k4 != 0) {
- goto __360
+ goto __361
}
pTab10 = (*HashElem)(unsafe.Pointer(k4)).Fdata
@@ -113430,68 +114075,68 @@ __358:
// 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 __361
+ goto __362
}
- goto __359
-__361:
+ goto __360
+__362:
;
// 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
-__362:
+__363:
if !(pIdx6 != 0) {
- goto __364
+ goto __365
}
if !!(int32(*(*uint16)(unsafe.Pointer(pIdx6 + 100))&0x80>>7) != 0) {
- goto __365
+ goto __366
}
szThreshold = int16(0) // Always analyze if any index lacks statistics
- goto __364
-__365:
+ goto __365
+__366:
;
- goto __363
-__363:
- pIdx6 = (*Index)(unsafe.Pointer(pIdx6)).FpNext
- goto __362
goto __364
__364:
+ pIdx6 = (*Index)(unsafe.Pointer(pIdx6)).FpNext
+ goto __363
+ goto __365
+__365:
;
if !(szThreshold != 0) {
- goto __366
+ goto __367
}
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))
-__366:
+__367:
;
- zSubSql = Xsqlite3MPrintf(tls, db, ts+17807,
+ zSubSql = Xsqlite3MPrintf(tls, db, ts+17839,
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 __367
+ goto __368
}
r11 = Xsqlite3GetTempReg(tls, pParse)
Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, r11, 0, zSubSql, -7)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, r11, 1)
- goto __368
-__367:
- Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -7)
+ goto __369
__368:
+ Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -7)
+__369:
;
- goto __359
-__359:
- k4 = (*HashElem)(unsafe.Pointer(k4)).Fnext
- goto __358
goto __360
__360:
+ k4 = (*HashElem)(unsafe.Pointer(k4)).Fnext
+ goto __359
+ goto __361
+__361:
;
- goto __355
-__355:
- iDb++
- goto __354
goto __356
__356:
+ iDb++
+ goto __355
+ goto __357
+__357:
;
Xsqlite3VdbeAddOp0(tls, v, OP_Expire)
goto __15
@@ -113507,10 +114152,10 @@ __356:
__52:
;
if !(zRight != 0) {
- goto __369
+ goto __370
}
Xsqlite3_busy_timeout(tls, db, Xsqlite3Atoi(tls, zRight))
-__369:
+__370:
;
returnSingleInt(tls, v, int64((*Sqlite3)(unsafe.Pointer(db)).FbusyTimeout))
goto __15
@@ -113526,10 +114171,10 @@ __369:
// sqlite3_soft_heap_limit64(-1) C-language function.
__53:
if !(zRight != 0 && Xsqlite3DecOrHexToI64(tls, zRight, bp+584) == SQLITE_OK) {
- goto __370
+ goto __371
}
Xsqlite3_soft_heap_limit64(tls, *(*Sqlite3_int64)(unsafe.Pointer(bp + 584 /* N */)))
-__370:
+__371:
;
returnSingleInt(tls, v, Xsqlite3_soft_heap_limit64(tls, int64(-1)))
goto __15
@@ -113545,16 +114190,16 @@ __370:
// constraint that cannot be relaxed by an untrusted SQL script.
__54:
if !(zRight != 0 && Xsqlite3DecOrHexToI64(tls, zRight, bp+592) == SQLITE_OK) {
- goto __371
+ goto __372
}
iPrior = Xsqlite3_hard_heap_limit64(tls, int64(-1))
if !(*(*Sqlite3_int64)(unsafe.Pointer(bp + 592)) > int64(0) && (iPrior == int64(0) || iPrior > *(*Sqlite3_int64)(unsafe.Pointer(bp + 592)))) {
- goto __372
+ goto __373
}
Xsqlite3_hard_heap_limit64(tls, *(*Sqlite3_int64)(unsafe.Pointer(bp + 592 /* N1 */)))
-__372:
+__373:
;
-__371:
+__372:
;
returnSingleInt(tls, v, Xsqlite3_hard_heap_limit64(tls, int64(-1)))
goto __15
@@ -113568,10 +114213,10 @@ __55:
if !(zRight != 0 &&
Xsqlite3DecOrHexToI64(tls, zRight, bp+600) == SQLITE_OK &&
*(*Sqlite3_int64)(unsafe.Pointer(bp + 600)) >= int64(0)) {
- goto __373
+ goto __374
}
Xsqlite3_limit(tls, db, SQLITE_LIMIT_WORKER_THREADS, int32(*(*Sqlite3_int64)(unsafe.Pointer(bp + 600))&int64(0x7fffffff)))
-__373:
+__374:
;
returnSingleInt(tls, v, int64(Xsqlite3_limit(tls, db, SQLITE_LIMIT_WORKER_THREADS, -1)))
goto __15
@@ -113585,10 +114230,10 @@ __56:
if !(zRight != 0 &&
Xsqlite3DecOrHexToI64(tls, zRight, bp+608) == SQLITE_OK &&
*(*Sqlite3_int64)(unsafe.Pointer(bp + 608)) >= int64(0)) {
- goto __374
+ goto __375
}
(*Sqlite3)(unsafe.Pointer(db)).FnAnalysisLimit = int32(*(*Sqlite3_int64)(unsafe.Pointer(bp + 608)) & int64(0x7fffffff))
-__374:
+__375:
;
returnSingleInt(tls, v, int64((*Sqlite3)(unsafe.Pointer(db)).FnAnalysisLimit)) // IMP: R-57594-65522
goto __15
@@ -113602,10 +114247,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 __375
+ goto __376
}
-__375:
+__376:
;
pragma_out:
@@ -113617,9 +114262,9 @@ type EncName = struct {
FzName uintptr
Fenc U8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:131460:18 */
+} /* sqlite3.c:132349:18 */
-var iLn3 int32 = 0 /* sqlite3.c:130018:22 */
+var iLn3 int32 = 0 /* sqlite3.c:130903:22 */
var getCacheSize = [9]VdbeOpList{
{Fopcode: U8(OP_Transaction)}, // 0
{Fopcode: U8(OP_ReadCookie), Fp2: int8(1), Fp3: int8(BTREE_DEFAULT_CACHE_SIZE)}, // 1
@@ -113630,16 +114275,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 */
+} /* sqlite3.c:130904:29 */
+var iLn4 int32 = 0 /* sqlite3.c:131172: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 */
+} /* sqlite3.c:131173:33 */
+var iLn5 int32 = 0 /* sqlite3.c:132299:24 */
var endCode = [7]VdbeOpList{
{Fopcode: U8(OP_AddImm), Fp1: int8(1)}, // 0
{Fopcode: U8(OP_IfNotZero), Fp1: int8(1), Fp2: int8(4)}, // 1
@@ -113648,27 +114293,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 */
+} /* sqlite3.c:132300:31 */
var encnames1 = [9]EncName{
- {FzName: ts + 17825, Fenc: U8(SQLITE_UTF8)},
- {FzName: ts + 17830, Fenc: U8(SQLITE_UTF8)}, // Must be element [1]
- {FzName: ts + 17836, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2]
- {FzName: ts + 17845, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3]
- {FzName: ts + 17854, Fenc: U8(SQLITE_UTF16LE)},
- {FzName: ts + 17862, Fenc: U8(SQLITE_UTF16BE)},
- {FzName: ts + 17870},
- {FzName: ts + 17877},
+ {FzName: ts + 17857, Fenc: U8(SQLITE_UTF8)},
+ {FzName: ts + 17862, Fenc: U8(SQLITE_UTF8)}, // Must be element [1]
+ {FzName: ts + 17868, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2]
+ {FzName: ts + 17877, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3]
+ {FzName: ts + 17886, Fenc: U8(SQLITE_UTF16LE)},
+ {FzName: ts + 17894, Fenc: U8(SQLITE_UTF16BE)},
+ {FzName: ts + 17902},
+ {FzName: ts + 17909},
{},
-} /* sqlite3.c:131463:7 */
+} /* sqlite3.c:132352:7 */
var setCookie = [2]VdbeOpList{
{Fopcode: U8(OP_Transaction), Fp2: int8(1)}, // 0
{Fopcode: U8(OP_SetCookie)}, // 1
-} /* sqlite3.c:131543:31 */
+} /* sqlite3.c:132432: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 */
+} /* sqlite3.c:132447:31 */
// ****************************************************************************
//
// Implementation of an eponymous virtual table that runs a pragma.
@@ -113680,24 +114325,24 @@ type PragmaVtab1 = struct {
FnHidden U8
FiHidden U8
F__ccgo_pad1 [6]byte
-} /* sqlite3.c:131918:9 */
+} /* sqlite3.c:132807:9 */
// ****************************************************************************
//
// Implementation of an eponymous virtual table that runs a pragma.
//
-type PragmaVtab = PragmaVtab1 /* sqlite3.c:131918:27 */
+type PragmaVtab = PragmaVtab1 /* sqlite3.c:132807:27 */
type PragmaVtabCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpPragma uintptr
FiRowid Sqlite_int64
FazArg [2]uintptr
-} /* sqlite3.c:131919:9 */
+} /* sqlite3.c:132808:9 */
-type PragmaVtabCursor = PragmaVtabCursor1 /* sqlite3.c:131919:33 */
+type PragmaVtabCursor = PragmaVtabCursor1 /* sqlite3.c:132808: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 { /* sqlite3.c:132826:12: */
bp := tls.Alloc(264)
defer tls.Free(264)
@@ -113714,7 +114359,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+17883)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17915)
i = 0
j = int32((*PragmaName)(unsafe.Pointer(pPragma)).FiPragCName)
__1:
@@ -113722,7 +114367,7 @@ __1:
goto __3
}
{
- Xsqlite3_str_appendf(tls, bp+32, ts+17898, libc.VaList(bp, int32(cSep), pragCName[j]))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17930, libc.VaList(bp, int32(cSep), pragCName[j]))
cSep = int8(',')
}
@@ -113735,19 +114380,19 @@ __2:
__3:
;
if i == 0 {
- Xsqlite3_str_appendf(tls, bp+32, ts+17905, libc.VaList(bp+16, (*PragmaName)(unsafe.Pointer(pPragma)).FzName))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17937, 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+17911)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17943)
j++
}
if int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(PragFlg_SchemaOpt|PragFlg_SchemaReq) != 0 {
- Xsqlite3_str_appendall(tls, bp+32, ts+17923)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17955)
j++
}
- Xsqlite3_str_append(tls, bp+32, ts+4899, 1)
+ Xsqlite3_str_append(tls, bp+32, ts+4908, 1)
Xsqlite3StrAccumFinish(tls, bp+32)
rc = Xsqlite3_declare_vtab(tls, db, bp+64)
@@ -113763,7 +114408,7 @@ __3:
(*PragmaVtab)(unsafe.Pointer(pTab)).FnHidden = U8(j)
}
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
}
*(*uintptr)(unsafe.Pointer(ppVtab)) = pTab
@@ -113771,7 +114416,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 { /* sqlite3.c:132888:12: */
var pTab uintptr = pVtab
Xsqlite3_free(tls, pTab)
return SQLITE_OK
@@ -113783,7 +114428,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 { /* sqlite3.c:132901:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -113848,7 +114493,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 { /* sqlite3.c:132938:12: */
var pCsr uintptr
pCsr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(PragmaVtabCursor{})))
if pCsr == uintptr(0) {
@@ -113861,7 +114506,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) { /* sqlite3.c:132949:13: */
var i int32
Xsqlite3_finalize(tls, (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma)
(*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma = uintptr(0)
@@ -113872,7 +114517,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 { /* sqlite3.c:132960:12: */
var pCsr uintptr = cur
pragmaVtabCursorClear(tls, pCsr)
Xsqlite3_free(tls, pCsr)
@@ -113880,7 +114525,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 { /* sqlite3.c:132968:12: */
var pCsr uintptr = pVtabCursor
var rc int32 = SQLITE_OK
@@ -113896,7 +114541,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 { /* sqlite3.c:132986:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -113926,7 +114571,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+3623, libc.VaList(bp, zText))
+ *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, zText))
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) == uintptr(0) {
return SQLITE_NOMEM
}
@@ -113942,13 +114587,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+17938)
+ Xsqlite3_str_appendall(tls, bp+32, ts+17970)
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 {
- Xsqlite3_str_appendf(tls, bp+32, ts+17946, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8))))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17978, 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+17950, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
+ Xsqlite3_str_appendf(tls, bp+32, ts+17982, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
}
zSql = Xsqlite3StrAccumFinish(tls, bp+32)
if zSql == uintptr(0) {
@@ -113957,21 +114602,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+3623, libc.VaList(bp+24, Xsqlite3_errmsg(tls, (*PragmaVtab)(unsafe.Pointer(pTab)).Fdb)))
+ (*PragmaVtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+3614, 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 { /* sqlite3.c:133036: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 { /* sqlite3.c:133044:12: */
var pCsr uintptr = pVtabCursor
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab
if i < int32((*PragmaVtab)(unsafe.Pointer(pTab)).FiHidden) {
@@ -113983,7 +114628,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 { /* sqlite3.c:133062:12: */
var pCsr uintptr = pVtabCursor
*(*Sqlite_int64)(unsafe.Pointer(p)) = (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FiRowid
return SQLITE_OK
@@ -114001,12 +114646,12 @@ var pragmaVtabModule = Sqlite3_module{ // xCreate - create a table
FxEof: 0, // xEof
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:132180:29 */
+} /* sqlite3.c:133069: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 { /* sqlite3.c:133101:23: */
var pName uintptr
pName = pragmaLocate(tls, zName+uintptr(7))
@@ -114039,7 +114684,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) { /* sqlite3.c:133138:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -114050,39 +114695,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+17954, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)),
+ ts+17986, 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, 133161)
} 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 + 4950 /* "?" */
+ zObj = ts + 4959 /* "?" */
}
- z = Xsqlite3MPrintf(tls, db, ts+17982, libc.VaList(bp+32, zObj))
+ z = Xsqlite3MPrintf(tls, db, ts+18014, libc.VaList(bp+32, zObj))
if zExtra != 0 && *(*int8)(unsafe.Pointer(zExtra)) != 0 {
- z = Xsqlite3MPrintf(tls, db, ts+18013, libc.VaList(bp+40, z, zExtra))
+ z = Xsqlite3MPrintf(tls, db, ts+18045, 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, 133168)
}
}
var azAlterType = [3]uintptr{
- ts + 18021,
- ts + 18028,
- ts + 18040,
-} /* sqlite3.c:132260:23 */
+ ts + 18053,
+ ts + 18060,
+ ts + 18072,
+} /* sqlite3.c:133149: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 { /* sqlite3.c:133177: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 {
@@ -114104,7 +114749,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 { /* sqlite3.c:133211:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -114149,7 +114794,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+14055)
+ corruptSchema(tls, pData, argv, ts+14069)
}
}
libc.SetBitFieldPtr8Uint32(db+192+8, uint32(0), 0, 0x1)
@@ -114187,13 +114832,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+18051)
+ corruptSchema(tls, pData, argv, ts+18083)
} 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+14055)
+ corruptSchema(tls, pData, argv, ts+14069)
}
}
}
@@ -114206,7 +114851,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 { /* sqlite3.c:133314:20: */
bp := tls.Alloc(124)
defer tls.Free(124)
@@ -114239,13 +114884,13 @@ func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
*(*uintptr)(unsafe.Pointer(bp + 16)) = ts + 8761 /* "table" */
*(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) = libc.AssignUintptr(&zSchemaTabName, func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}())
*(*uintptr)(unsafe.Pointer(bp + 16 + 2*8)) = *(*uintptr)(unsafe.Pointer(bp + 16 + 1*8))
- *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 7828 /* "1" */
- *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 18064 /* "CREATE TABLE x(t..." */
+ *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 7825 /* "1" */
+ *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 18096 /* "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
@@ -114358,7 +115003,7 @@ __10:
goto __13
}
Xsqlite3SetString(tls, pzErrMsg, db,
- ts+11635)
+ ts+11652)
rc = SQLITE_ERROR
goto initone_error_out
__13:
@@ -114398,7 +115043,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+18136)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+18168)
rc = SQLITE_ERROR
goto initone_error_out
__17:
@@ -114420,7 +115065,7 @@ __18:
(*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer(pDb)).FpBt)
zSql = Xsqlite3MPrintf(tls, db,
- ts+18160,
+ ts+18192,
libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zSchemaTabName))
xAuth = (*Sqlite3)(unsafe.Pointer(db)).FxAuth
@@ -114507,7 +115152,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 { /* sqlite3.c:133553:20: */
var i int32
var rc int32
var commit_internal int32 = libc.BoolInt32(!((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != 0))
@@ -114539,7 +115184,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 { /* sqlite3.c:133585:20: */
var rc int32 = SQLITE_OK
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -114558,7 +115203,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) { /* sqlite3.c:133607:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -114611,7 +115256,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 { /* sqlite3.c:133657:20: */
var i int32 = -32768
// If pSchema is NULL, then return -32768. This happens when code in
@@ -114638,8 +115283,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) { /* sqlite3.c:133687: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
@@ -114652,16 +115299,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)
}
@@ -114673,7 +115321,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
@@ -114691,7 +115339,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 { /* sqlite3.c:133742: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
@@ -114707,40 +115355,65 @@ 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) { /* sqlite3.c:133772: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+1470, 0)
+ }
+}
+
// 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 { /* sqlite3.c:133785: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+1470, 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)))
@@ -114767,159 +115440,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+18194, libc.VaList(bp, zDb))
+ Xsqlite3ErrorWithMsg(tls, db, rc, ts+18226, 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+18224, 0)
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+18256, 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+3623, 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+3614, 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 { /* sqlite3.c:133928: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, 133945)
}
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 ||
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
@@ -114944,7 +115616,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 { /* sqlite3.c:133975:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -114983,14 +115655,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 { /* sqlite3.c:134014: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 { /* sqlite3.c:134026: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
@@ -115003,7 +115675,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 { /* sqlite3.c:134044:16: */
var rc int32
// EVIDENCE-OF: R-56861-42673 sqlite3_prepare_v3() differs from
// sqlite3_prepare_v2() only in having the extra prepFlags parameter,
@@ -115020,7 +115692,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 { /* sqlite3.c:134072:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -115033,7 +115705,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, 134093)
}
if nBytes >= 0 {
var sz int32
@@ -115068,21 +115740,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 { /* sqlite3.c:134130: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 { /* sqlite3.c:134142: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 { /* sqlite3.c:134154:16: */
var rc int32
rc = sqlite3Prepare16(tls, db, zSql, nBytes,
uint32(SQLITE_PREPARE_SAVESQL)|prepFlags&uint32(SQLITE_PREPARE_MASK),
@@ -115116,7 +115788,7 @@ type DistinctCtx1 = struct {
F__ccgo_pad1 [2]byte
FtabTnct int32
FaddrTnct int32
-} /* sqlite3.c:133278:9 */
+} /* sqlite3.c:134195:9 */
//************* End of prepare.c ********************************************
//************* Begin file select.c *****************************************
@@ -115137,7 +115809,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 /* sqlite3.c:134195: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.
@@ -115167,7 +115839,7 @@ type SortCtx1 = struct {
FsortFlags U8
F__ccgo_pad1 [3]byte
FpDeferredRowLoad uintptr
-} /* sqlite3.c:133304:9 */
+} /* sqlite3.c:134221: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.
@@ -115185,19 +115857,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 /* sqlite3.c:134221:24 */
type RowLoadInfo1 = struct {
FregResult int32
FecelFlags U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:133304:9 */
+} /* sqlite3.c:134221: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) { /* sqlite3.c:134251:13: */
for p != 0 {
var pPrior uintptr = (*Select)(unsafe.Pointer(p)).FpPrior
Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(p)).FpEList)
@@ -115226,7 +115898,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) { /* sqlite3.c:134280:21: */
(*SelectDest)(unsafe.Pointer(pDest)).FeDest = U8(eDest)
(*SelectDest)(unsafe.Pointer(pDest)).FiSDParm = iParm
(*SelectDest)(unsafe.Pointer(pDest)).FiSDParm2 = 0
@@ -115237,7 +115909,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 { /* sqlite3.c:134294:23: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -115287,14 +115959,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) { /* sqlite3.c:134352: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 { /* sqlite3.c:134359:15: */
for (*Select)(unsafe.Pointer(p)).FpNext != 0 {
p = (*Select)(unsafe.Pointer(p)).FpNext
}
@@ -115316,7 +115988,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 { /* sqlite3.c:134381:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -115353,24 +116025,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 + 10788 /* " " */
+ var zSp uintptr = ts + 10805 /* " " */
if pC == uintptr(0) {
zSp++
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+18243, libc.VaList(bp, pA, pB, zSp, pC))
+ ts+18275, 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+18287, 0)
+ ts+18319, 0)
jointype = JT_INNER
}
return jointype
}
-var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 18342)) /* sqlite3.c:133469:21 */
+var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 18374)) /* sqlite3.c:134386:21 */
var aKeyword = [7]struct {
Fi U8
FnChar U8
@@ -115383,11 +116055,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 */
+} /* sqlite3.c:134391: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 { /* sqlite3.c:134442:20: */
var i int32
var h U8 = Xsqlite3StrIHash(tls, zCol)
var pCol uintptr
@@ -115421,7 +116093,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 { /* sqlite3.c:134461:12: */
var i int32 // For looping over tables in pSrc
var iCol int32 // Index of column matching zCol
@@ -115449,7 +116121,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) { /* sqlite3.c:134499:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pE1 uintptr
var pE2 uintptr
@@ -115465,13 +116137,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
@@ -115481,8 +116153,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:
//
@@ -115494,11 +116166,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) { /* sqlite3.c:134561: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 {
@@ -115514,14 +116186,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) { /* sqlite3.c:134587: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 {
@@ -115553,7 +116225,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 { /* sqlite3.c:134624:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -115585,7 +116257,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+18376, libc.VaList(bp, 0))
+ ts+18408, libc.VaList(bp, 0))
return 1
}
for j = 0; j < int32((*Table)(unsafe.Pointer(pRightTab)).FnCol); j++ {
@@ -115609,7 +116281,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+18426, 0)
+ ts+18458, 0)
return 1
}
@@ -115644,7 +116316,7 @@ __1:
if iRightCol < 0 ||
!(tableAndColumnIndex(tls, pSrc, i+1, zName, bp+24, bp+28, 0) != 0) {
Xsqlite3ErrorMsg(tls, pParse,
- ts+18481, libc.VaList(bp+8, zName))
+ ts+18513, 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,
@@ -115667,11 +116339,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 /* sqlite3.c:134716: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) { /* sqlite3.c:134730:13: */
Xsqlite3ExprCodeExprList(tls, pParse, (*Select)(unsafe.Pointer(pSelect)).FpEList, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FregResult,
0, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FecelFlags)
}
@@ -115680,7 +116352,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 { /* sqlite3.c:134751: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)
@@ -115693,7 +116365,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) { /* sqlite3.c:134772: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
@@ -115836,7 +116508,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) { /* sqlite3.c:134914:13: */
if iOffset > 0 {
Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, iOffset, iContinue, 1)
@@ -115884,7 +116556,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 { /* sqlite3.c:134968:12: */
var iRet int32 = 0
var nResultCol int32 = (*ExprList)(unsafe.Pointer(pEList)).FnExpr
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -115965,7 +116637,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) { /* sqlite3.c:135052:13: */
if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 &&
(eTnctType == WHERE_DISTINCT_UNIQUE || eTnctType == WHERE_DISTINCT_ORDERED) {
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -115993,7 +116665,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) { /* sqlite3.c:135174:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -116349,7 +117021,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 { /* sqlite3.c:135568: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 {
@@ -116361,13 +117033,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) { /* sqlite3.c:135588:21: */
if p != 0 {
(*KeyInfo)(unsafe.Pointer(p)).FnRef--
@@ -116378,7 +117050,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 { /* sqlite3.c:135599:24: */
if p != 0 {
(*KeyInfo)(unsafe.Pointer(p)).FnRef++
@@ -116398,7 +117070,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 { /* sqlite3.c:135631:24: */
var nExpr int32
var pInfo uintptr
var pItem uintptr
@@ -116432,20 +117104,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 { /* sqlite3.c:135658:27: */
var z uintptr
switch id {
case TK_ALL:
- z = ts + 18545 /* "UNION ALL" */
+ z = ts + 18577 /* "UNION ALL" */
break
case TK_INTERSECT:
- z = ts + 18555 /* "INTERSECT" */
+ z = ts + 18587 /* "INTERSECT" */
break
case TK_EXCEPT:
- z = ts + 18565 /* "EXCEPT" */
+ z = ts + 18597 /* "EXCEPT" */
break
default:
- z = ts + 18572 /* "UNION" */
+ z = ts + 18604 /* "UNION" */
break
}
return z
@@ -116459,11 +117131,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) { /* sqlite3.c:135680:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18578, libc.VaList(bp, zUsage))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18610, libc.VaList(bp, zUsage))
}
// Assign expression b to lvalue a. A second, no-op, version of this macro
@@ -116476,7 +117148,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) { /* sqlite3.c:135706: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
@@ -116504,6 +117176,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 {
@@ -116652,7 +117327,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 { /* sqlite3.c:135934:19: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -116729,8 +117404,8 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr,
}
if iCol < 0 {
- zType = ts + 1112 /* "INTEGER" */
- *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 16134 /* "rowid" */
+ zType = ts + 1099 /* "INTEGER" */
+ *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 16166 /* "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))
@@ -116776,7 +117451,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) { /* sqlite3.c:136085:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -116833,7 +117508,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) { /* sqlite3.c:136152:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -116885,25 +117560,29 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
}
if iCol < 0 {
- zCol = ts + 16134 /* "rowid" */
+ zCol = ts + 16166 /* "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+11921, 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+11938, 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+18601, libc.VaList(bp+16, i+1))
+ z = Xsqlite3MPrintf(tls, db, ts+18633, 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)
@@ -116929,7 +117608,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 { /* sqlite3.c:136245:20: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -116990,7 +117669,7 @@ __1:
if iCol >= 0 {
zName = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*24)).FzCnName
} else {
- zName = ts + 16134 /* "rowid" */
+ zName = ts + 16166 /* "rowid" */
}
} else if int32((*Expr)(unsafe.Pointer(pColExpr)).Fop) == TK_ID {
@@ -117003,7 +117682,7 @@ __1:
if zName != 0 && !(Xsqlite3IsTrueOrFalse(tls, zName) != 0) {
zName = Xsqlite3DbStrDup(tls, db, zName)
} else {
- zName = Xsqlite3MPrintf(tls, db, ts+18601, libc.VaList(bp, i+1))
+ zName = Xsqlite3MPrintf(tls, db, ts+18633, libc.VaList(bp, i+1))
}
// Make sure the column name is unique. If the name is not unique,
@@ -117018,7 +117697,7 @@ __1:
nName = j
}
}
- zName = Xsqlite3MPrintf(tls, db, ts+18610, libc.VaList(bp+8, nName, zName, libc.PreIncUint32(&*(*U32)(unsafe.Pointer(bp + 56 /* cnt */)), 1)))
+ zName = Xsqlite3MPrintf(tls, db, ts+18642, 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)
}
@@ -117061,7 +117740,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) { /* sqlite3.c:136352:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -117130,7 +117809,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 { /* sqlite3.c:136407:22: */
var pTab uintptr
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var savedFlags U64
@@ -117165,7 +117844,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 { /* sqlite3.c:136440:21: */
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpVdbe
}
@@ -117197,7 +117876,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) { /* sqlite3.c:136476:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -117254,7 +117933,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 { /* sqlite3.c:136533:16: */
var pRet uintptr
if (*Select)(unsafe.Pointer(p)).FpPrior != 0 {
pRet = multiSelectCollSeq(tls, pParse, (*Select)(unsafe.Pointer(p)).FpPrior, iCol)
@@ -117278,7 +117957,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 { /* sqlite3.c:136559:16: */
var pOrderBy uintptr = (*Select)(unsafe.Pointer(p)).FpOrderBy
var nOrderBy int32
if pOrderBy != uintptr(0) {
@@ -117347,7 +118026,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) { /* sqlite3.c:136625:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -117383,7 +118062,7 @@ func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
if !((*Select)(unsafe.Pointer(p)).FpWin != 0) {
goto __1
}
- Xsqlite3ErrorMsg(tls, pParse, ts+18618, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18650, 0)
return
__1:
;
@@ -117493,7 +118172,7 @@ __12:
if !((*Select)(unsafe.Pointer(pFirstRec)).FselFlags&U32(SF_Aggregate) != 0) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+18667, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18699, 0)
goto end_of_recursive_query
__15:
;
@@ -117515,7 +118194,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+18709, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18741, 0)
rc = Xsqlite3Select(tls, pParse, pSetup, bp)
(*Select)(unsafe.Pointer(pSetup)).FpNext = p
if !(rc != 0) {
@@ -117558,7 +118237,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+18715, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18747, 0)
Xsqlite3Select(tls, pParse, p, bp)
(*Select)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup
@@ -117588,7 +118267,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 { /* sqlite3.c:136801:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -117596,7 +118275,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
@@ -117608,11 +118287,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+18730, libc.VaList(bp, nRow, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18762, libc.VaList(bp, nRow, func() uintptr {
if nRow == 1 {
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
- return ts + 18753 /* "S" */
+ return ts + 18785 /* "S" */
}()))
for p != 0 {
selectInnerLoop(tls, pParse, p, -1, uintptr(0), uintptr(0), pDest, 1, 1)
@@ -117628,7 +118307,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 { /* sqlite3.c:136838:12: */
for p != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Recursive) != U32(0) {
p = (*Select)(unsafe.Pointer(p)).FpPrior
}
@@ -117664,7 +118343,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 { /* sqlite3.c:136874:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -117764,8 +118443,8 @@ __6:
if !((*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0)) {
goto __8
}
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18755, 0)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18770, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18787, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18802, 0)
__8:
;
@@ -117814,7 +118493,7 @@ __16:
;
__15:
;
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18545, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18577, 0)
rc = Xsqlite3Select(tls, pParse, p, bp+16)
@@ -117890,7 +118569,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+18789, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18821, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
rc = Xsqlite3Select(tls, pParse, p, bp+64)
@@ -117962,7 +118641,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+18789, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18821, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
rc = Xsqlite3Select(tls, pParse, p, bp+104)
@@ -118127,15 +118806,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) { /* sqlite3.c:137230:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Values) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+18810, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18842, 0)
} else {
Xsqlite3ErrorMsg(tls, pParse,
- ts+18856,
+ ts+18888,
libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
}
}
@@ -118158,7 +118837,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 { /* sqlite3.c:137260:12: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var iContinue int32
var addr int32
@@ -118354,13 +119033,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 { /* sqlite3.c:137468: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
@@ -118405,7 +119086,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
@@ -118487,10 +119167,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).
@@ -118513,12 +119189,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+7120)
- if (*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0) {
- Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+7120)
+ 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+7116)
+ Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+7116)
// Compute the limit registers
computeLimitRegisters(tls, pParse, p, labelEnd)
@@ -118546,7 +119240,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+18938, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18970, 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.
@@ -118554,7 +119248,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+18949, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18981, 0)
Xsqlite3Select(tls, pParse, pPrior, bp+8)
Xsqlite3VdbeEndCoroutine(tls, v, regAddrA)
Xsqlite3VdbeJumpHere(tls, v, addr1)
@@ -118568,7 +119262,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+18954, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18986, 0)
Xsqlite3Select(tls, pParse, p, bp+48)
(*Select)(unsafe.Pointer(p)).FiLimit = savedLimit
(*Select)(unsafe.Pointer(p)).FiOffset = savedOffset
@@ -118663,12 +119357,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)
@@ -118690,14 +119383,14 @@ type SubstContext1 = struct {
FisLeftJoin int32
F__ccgo_pad1 [4]byte
FpEList uintptr
-} /* sqlite3.c:136860:9 */
+} /* sqlite3.c:137793: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 /* sqlite3.c:137799:3 */
// Scan through the expression pExpr. Replace every reference to
// a column in table number iTable with a copy of the iColumn-th
@@ -118710,7 +119403,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 { /* sqlite3.c:137818:13: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -118718,8 +119411,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 &&
@@ -118751,7 +119444,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
@@ -118765,7 +119458,7 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* sqlite
if pColl != 0 {
return (*CollSeq)(unsafe.Pointer(pColl)).FzName
}
- return ts + 1092
+ return ts + 1079
}())
}
*(*U32)(unsafe.Pointer(pExpr + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_Collate))
@@ -118793,7 +119486,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) { /* sqlite3.c:137903:13: */
var i int32
if pList == uintptr(0) {
return
@@ -118803,14 +119496,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) { /* sqlite3.c:137913: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)
@@ -118846,7 +119539,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 { /* sqlite3.c:137948:12: */
var pItem uintptr
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN {
return WRC_Continue
@@ -118862,7 +119555,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) { /* sqlite3.c:137957:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -118894,7 +119587,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) { /* sqlite3.c:137986:13: */
var i int32
var pItem uintptr
i = 0
@@ -118927,7 +119620,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) { /* sqlite3.c:138012: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 {
@@ -118937,7 +119630,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 { /* sqlite3.c:138024:12: */
var op int32 = int32((*Expr)(unsafe.Pointer(pExpr)).Fop)
if op == TK_COLUMN || op == TK_IF_NULL_ROW {
renumberCursorDoMapping(tls, pWalker, pExpr+44)
@@ -118964,7 +119657,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) { /* sqlite3.c:138053:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -119134,7 +119827,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 { /* sqlite3.c:138224:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -119559,7 +120252,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 /* sqlite3.c:138648: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.
@@ -119567,7 +120260,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) { /* sqlite3.c:138666:13: */
var i int32
if (*Expr)(unsafe.Pointer(pColumn)).Fflags&U32(EP_FixedCol) != U32(0) {
@@ -119609,7 +120302,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) { /* sqlite3.c:138714:13: */
var pRight uintptr
var pLeft uintptr
if pExpr == uintptr(0) {
@@ -119644,7 +120337,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 { /* sqlite3.c:138745:12: */
var i int32
if *(*U8)(unsafe.Pointer((*WhereConst)(unsafe.Pointer(pConst)).FpOomFault)) != 0 {
return WRC_Prune
@@ -119698,7 +120391,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 { /* sqlite3.c:138794:12: */
var pConst uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
if (*WhereConst)(unsafe.Pointer(pConst)).FbHasAffBlob != 0 {
@@ -119765,7 +120458,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 { /* sqlite3.c:138865:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -119775,8 +120468,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)
@@ -119818,7 +120511,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 { /* sqlite3.c:138916:12: */
return Xsqlite3ExprIsConstantOrGroupBy(tls, pParse, pExpr, (*Window)(unsafe.Pointer((*Select)(unsafe.Pointer(pSubq)).FpWin)).FpPartition)
}
@@ -119889,7 +120582,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, iCursor int32, isLeftJoin int32) int32 { /* sqlite3.c:138994:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -119925,10 +120618,11 @@ func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uin
}
if isLeftJoin != 0 &&
(libc.Bool32((*Expr)(unsafe.Pointer(pWhere)).Fflags&U32(EP_FromJoin) != U32(0)) == 0 ||
- (*Expr)(unsafe.Pointer(pWhere)).FiRightJoinTable != iCursor) {
+ *(*int32)(unsafe.Pointer(pWhere + 52)) != iCursor) {
return 0 // restriction (4)
}
- if (*Expr)(unsafe.Pointer(pWhere)).Fflags&U32(EP_FromJoin) != U32(0) && (*Expr)(unsafe.Pointer(pWhere)).FiRightJoinTable != iCursor {
+ if (*Expr)(unsafe.Pointer(pWhere)).Fflags&U32(EP_FromJoin) != U32(0) &&
+ *(*int32)(unsafe.Pointer(pWhere + 52)) != iCursor {
return 0 // restriction (5)
}
if Xsqlite3ExprIsTableConstant(tls, pWhere, iCursor) != 0 {
@@ -119976,7 +120670,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 { /* sqlite3.c:139098:11: */
var eRet int32 = WHERE_ORDERBY_NORMAL // Return value
var pEList uintptr // Arguments to agg function
var zFunc uintptr // Name of aggregate function pFunc
@@ -119992,12 +120686,12 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8
}
zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8))
- if Xsqlite3StrICmp(tls, zFunc, ts+15043) == 0 {
+ if Xsqlite3StrICmp(tls, zFunc, ts+15060) == 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+15047) == 0 {
+ } else if Xsqlite3StrICmp(tls, zFunc, ts+15064) == 0 {
eRet = WHERE_ORDERBY_MAX
sortFlags = U8(KEYINFO_ORDER_DESC)
} else {
@@ -120026,7 +120720,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 { /* sqlite3.c:139153:14: */
var pTab uintptr
var pExpr uintptr
@@ -120066,7 +120760,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 { /* sqlite3.c:139191:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -120077,7 +120771,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+18960, libc.VaList(bp, zIndexedBy, 0))
+ Xsqlite3ErrorMsg(tls, pParse, ts+18992, libc.VaList(bp, zIndexedBy, 0))
(*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1)
return SQLITE_ERROR
}
@@ -120105,7 +120799,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 { /* sqlite3.c:139233:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -120184,12 +120878,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 { /* sqlite3.c:139298: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+18978, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19010, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName))
return 1
}
return 0
@@ -120203,7 +120897,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 { /* sqlite3.c:139317:19: */
var zName uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FzName
var p uintptr
@@ -120238,7 +120932,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 { /* sqlite3.c:139356:21: */
if pWith != 0 {
if bFree != 0 {
pWith = Xsqlite3ParserAddCleanup(tls, pParse,
@@ -120271,7 +120965,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 { /* sqlite3.c:139387:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -120354,7 +121048,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+19001, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19033, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96))))
return 2
}
libc.SetBitFieldPtr16Uint32(pFrom+60+4, uint32(1), 7, 0x80)
@@ -120381,7 +121075,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+19021, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName))
+ ts+19053, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName))
return 2
}
*(*U32)(unsafe.Pointer(pRecTerm + 4)) |= U32(SF_Recursive)
@@ -120397,7 +121091,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
pRecTerm = (*Select)(unsafe.Pointer(pRecTerm)).FpPrior
}
- (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19064 /* "circular referen..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19096 /* "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 {
@@ -120423,7 +121117,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+19087,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19119,
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
@@ -120434,9 +121128,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 + 19125 /* "multiple recursi..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19157 /* "multiple recursi..." */
} else {
- (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19159 /* "recursive refere..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19191 /* "recursive refere..." */
}
Xsqlite3WalkSelect(tls, pWalker, pSel)
}
@@ -120453,7 +121147,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) { /* sqlite3.c:139571: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
@@ -120469,7 +121163,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 { /* sqlite3.c:139590:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -120484,7 +121178,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+19197, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
+ (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+19229, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
}
for (*Select)(unsafe.Pointer(pSel)).FpPrior != 0 {
pSel = (*Select)(unsafe.Pointer(pSel)).FpPrior
@@ -120523,7 +121217,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 { /* sqlite3.c:139642:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -120611,7 +121305,7 @@ __1:
return WRC_Abort
}
if (*Table)(unsafe.Pointer(pTab)).FnTabRef >= U32(0xffff) {
- Xsqlite3ErrorMsg(tls, pParse, ts+19209,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19241,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
(*SrcItem)(unsafe.Pointer(pFrom)).FpTab = uintptr(0)
return WRC_Abort
@@ -120630,7 +121324,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+19248,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19280,
libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
}
(*SrcItem)(unsafe.Pointer(pFrom)).FpSelect = Xsqlite3SelectDup(tls, db, *(*uintptr)(unsafe.Pointer(pTab + 64)), 0)
@@ -120638,7 +121332,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+19279,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19311,
libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
}
@@ -120667,7 +121361,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
}
@@ -120753,7 +121448,7 @@ __3:
if iDb >= 0 {
zSchemaName = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
} else {
- zSchemaName = ts + 19312 /* "*" */
+ zSchemaName = ts + 6337 /* "*" */
}
}
for j = 0; j < int32((*Table)(unsafe.Pointer(pTab)).FnCol); j++ {
@@ -120802,7 +121497,7 @@ __3:
pExpr = Xsqlite3PExpr(tls, pParse, TK_DOT, pLeft, pExpr)
}
if longNames != 0 {
- zColname = Xsqlite3MPrintf(tls, db, ts+11921, libc.VaList(bp+24, zTabName, zName))
+ zColname = Xsqlite3MPrintf(tls, db, ts+11938, libc.VaList(bp+24, zTabName, zName))
zToFree = zColname
}
} else {
@@ -120818,7 +121513,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+19314,
+ (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+19344,
libc.VaList(bp+40, zSchemaName, zTabName, zColname))
}
@@ -120838,9 +121533,9 @@ __3:
;
if !(tableSeen != 0) {
if zTName != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+19323, libc.VaList(bp+64, zTName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19353, libc.VaList(bp+64, zTName))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+19341, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19371, 0)
}
}
}
@@ -120850,7 +121545,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+19361, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19391, 0)
return WRC_Abort
}
if elistFlags&U32(EP_HasFunc|EP_Subquery) != U32(0) {
@@ -120871,7 +121566,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) { /* sqlite3.c:139969:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -120909,7 +121604,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) { /* sqlite3.c:139999:13: */
var pParse uintptr
var i int32
var pTabList uintptr
@@ -120957,7 +121652,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) { /* sqlite3.c:140034:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -120986,7 +121681,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) { /* sqlite3.c:140058:21: */
if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
return
@@ -120995,11 +121690,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)
@@ -121011,7 +121706,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) { /* sqlite3.c:140082:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -121019,10 +121714,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)
@@ -121038,13 +121734,13 @@ __1:
if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != 1 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+19392, 0)
+ ts+19422, 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+19443, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19473, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
}
@@ -121060,7 +121756,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) { /* sqlite3.c:140128:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
var pF uintptr
@@ -121099,7 +121795,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) { /* sqlite3.c:140151:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
var regHit int32 = 0
@@ -121240,25 +121936,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) { /* sqlite3.c:140253: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+19476,
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19506,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
func() uintptr {
if bCover != 0 {
- return ts + 19488 /* " USING COVERING ..." */
+ return ts + 19518 /* " USING COVERING ..." */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
func() uintptr {
if bCover != 0 {
return (*Index)(unsafe.Pointer(pIdx)).FzName
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()))
}
}
@@ -121272,7 +121968,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 { /* sqlite3.c:140282: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
@@ -121286,7 +121982,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+7828)
+ var pNew uintptr = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7825)
if pNew != 0 {
var pWhere uintptr = (*Select)(unsafe.Pointer(pS)).FpWhere
{
@@ -121318,7 +122014,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) { /* sqlite3.c:140326:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -121336,7 +122032,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 { /* sqlite3.c:140346:16: */
var pItem uintptr
if (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pThis)).FpSelect)).FselFlags&U32(SF_PushDown) != 0 {
@@ -121377,7 +122073,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) { /* sqlite3.c:140381:13: */
Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaCol)
Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaFunc)
Xsqlite3DbFreeNN(tls, db, p)
@@ -121394,7 +122090,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 { /* sqlite3.c:140489:20: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -121527,13 +122223,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
}
@@ -121563,7 +122261,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
@@ -121593,7 +122291,7 @@ __7:
goto __10
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+19511,
+ ts+19541,
libc.VaList(bp, func() uintptr {
if (*SrcItem)(unsafe.Pointer(p0)).FzAlias != 0 {
return (*SrcItem)(unsafe.Pointer(p0)).FzAlias
@@ -121679,7 +122377,7 @@ __17:
if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) != (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList)).FnExpr) {
goto __18
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19565,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19595,
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:
@@ -121853,7 +122551,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+1565, (*SrcItem)(unsafe.Pointer(pItem1)).FzDatabase)
+ Xsqlite3AuthCheck(tls, pParse, SQLITE_READ, (*SrcItem)(unsafe.Pointer(pItem1)).FzName, ts+1534, (*SrcItem)(unsafe.Pointer(pItem1)).FzDatabase)
__33:
;
@@ -121874,7 +122572,7 @@ __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.
@@ -121919,7 +122617,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+19605, libc.VaList(bp+32, pItem1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19635, 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)
@@ -121982,7 +122680,7 @@ __45:
__46:
;
Xsqlite3SelectDestInit(tls, bp+96, SRT_EphemTab, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19620, libc.VaList(bp+40, pItem1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19650, 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) {
@@ -122017,7 +122715,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:
@@ -122150,7 +122848,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
}
@@ -122476,7 +123174,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
}
@@ -122504,9 +123202,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 + 19636 /* "DISTINCT" */
+ return ts + 19666 /* "DISTINCT" */
}
- return ts + 19645 /* "GROUP BY" */
+ return ts + 19675 /* "GROUP BY" */
}())
groupBySort = 1
@@ -122869,7 +123567,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
}
@@ -122919,7 +123617,7 @@ __59:
if !(int32((*DistinctCtx)(unsafe.Pointer(bp+136)).FeTnctType) == WHERE_DISTINCT_UNORDERED) {
goto __141
}
- explainTempTable(tls, pParse, ts+19636)
+ explainTempTable(tls, pParse, ts+19666)
__141:
;
@@ -122931,9 +123629,9 @@ __141:
explainTempTable(tls, pParse,
func() uintptr {
if (*SortCtx)(unsafe.Pointer(bp+48)).FnOBSat > 0 {
- return ts + 19654 /* "RIGHT PART OF OR..." */
+ return ts + 19684 /* "RIGHT PART OF OR..." */
}
- return ts + 19677 /* "ORDER BY" */
+ return ts + 19707 /* "ORDER BY" */
}())
generateSortTail(tls, pParse, p, bp+48, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pDest)
@@ -122951,7 +123649,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)
@@ -122989,7 +123687,7 @@ type TabResult1 = struct {
FnData U32
Frc int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:140810:9 */
+} /* sqlite3.c:141752:9 */
//************* End of select.c *********************************************
//************* Begin file table.c ******************************************
@@ -123013,12 +123711,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 /* sqlite3.c:141760: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 { /* sqlite3.c:141767:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -123067,7 +123765,7 @@ __7:
if !(i < nCol) {
goto __9
}
- z = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8))))
+ z = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8))))
if !(z == uintptr(0)) {
goto __10
}
@@ -123089,7 +123787,7 @@ __5:
}
Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(p)).FzErrMsg)
(*TabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls,
- ts+19686, 0)
+ ts+19716, 0)
(*TabResult)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
return 1
__11:
@@ -123149,7 +123847,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 { /* sqlite3.c:141841:16: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -123188,7 +123886,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+3623, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg))
}
Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg)
}
@@ -123221,7 +123919,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) { /* sqlite3.c:141910:17: */
if azResult != 0 {
var i int32
var n int32
@@ -123252,7 +123950,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) { /* sqlite3.c:141945:21: */
for pTriggerStep != 0 {
var pTmp uintptr = pTriggerStep
pTriggerStep = (*TriggerStep)(unsafe.Pointer(pTriggerStep)).FpNext
@@ -123281,7 +123979,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 { /* sqlite3.c:141976: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
@@ -123319,7 +124017,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) { /* sqlite3.c:142032:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -123349,7 +124047,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+19751, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19781, 0)
goto trigger_cleanup
__3:
;
@@ -123410,7 +124108,7 @@ __7:
__8:
;
- Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+19797, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))
+ Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+19827, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))
if !(Xsqlite3FixSrcList(tls, bp+40, pTableName) != 0) {
goto __9
}
@@ -123428,7 +124126,7 @@ __10:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __11
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19805, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19835, 0)
goto trigger_orphan_error
__11:
;
@@ -123443,7 +124141,7 @@ __11:
goto trigger_cleanup
__12:
;
- if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+19797, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) {
+ if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+19827, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) {
goto __13
}
goto trigger_cleanup
@@ -123459,7 +124157,7 @@ __13:
if !!(noErr != 0) {
goto __16
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19846, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19876, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))))
goto __17
__16:
;
@@ -123476,7 +124174,7 @@ __14:
if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8019, 7) == 0) {
goto __18
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19872, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+19902, 0)
goto trigger_cleanup
__18:
;
@@ -123486,12 +124184,12 @@ __18:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW && tr_tm != TK_INSTEAD) {
goto __19
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19910,
+ Xsqlite3ErrorMsg(tls, pParse, ts+19940,
libc.VaList(bp+8, func() uintptr {
if tr_tm == TK_BEFORE {
- return ts + 19947 /* "BEFORE" */
+ return ts + 19977 /* "BEFORE" */
}
- return ts + 19954 /* "AFTER" */
+ return ts + 19984 /* "AFTER" */
}(), pTableName+8 /* &.a */))
goto trigger_orphan_error
__19:
@@ -123500,7 +124198,7 @@ __19:
goto __20
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+19960, libc.VaList(bp+24, pTableName+8))
+ ts+19990, libc.VaList(bp+24, pTableName+8))
goto trigger_orphan_error
__20:
;
@@ -123530,9 +124228,9 @@ __23:
;
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr {
if !(0 != 0) && iTabDb == 1 {
- return ts + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}(), uintptr(0), zDb) != 0) {
goto __24
}
@@ -123626,7 +124324,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) { /* sqlite3.c:142239:21: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -123666,7 +124364,7 @@ __2:
__3:
;
Xsqlite3TokenInit(tls, bp+40, (*Trigger)(unsafe.Pointer(pTrig)).FzName)
- Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+19797, bp+40)
+ Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+19827, 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
@@ -123703,13 +124401,13 @@ __8:
Xsqlite3NestedParse(tls, pParse,
- ts+20006,
+ ts+20036,
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+20081, libc.VaList(bp+32, zName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+20111, libc.VaList(bp+32, zName)), uint16(0))
__7:
;
__6:
@@ -123750,7 +124448,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 { /* sqlite3.c:142327:13: */
var z uintptr = Xsqlite3DbSpanDup(tls, db, zStart, zEnd)
var i int32
if z != 0 {
@@ -123768,7 +124466,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 { /* sqlite3.c:142341:28: */
var pTriggerStep uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(TriggerStep{})))
if pTriggerStep == uintptr(0) {
Xsqlite3SelectDelete(tls, db, pSelect)
@@ -123785,7 +124483,7 @@ func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStar
// holds both the TriggerStep object and the TriggerStep.target.z string.
//
// If an OOM error occurs, NULL is returned and db->mallocFailed is set.
-func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:141423:20: */
+func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:142365:20: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123809,7 +124507,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 { /* sqlite3.c:142397:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123841,7 +124539,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 { /* sqlite3.c:142442:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123870,7 +124568,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 { /* sqlite3.c:142482:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -123889,7 +124587,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) { /* sqlite3.c:142509:21: */
if pTrigger == uintptr(0) || (*Trigger)(unsafe.Pointer(pTrigger)).FbReturning != 0 {
return
}
@@ -123909,7 +124607,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) { /* sqlite3.c:142527:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -123975,7 +124673,7 @@ __5:
if !!(noErr != 0) {
goto __9
}
- Xsqlite3ErrorMsg(tls, pParse, ts+20110, libc.VaList(bp, pName+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20140, libc.VaList(bp, pName+8))
goto __10
__9:
Xsqlite3CodeVerifyNamedSchema(tls, pParse, zDb)
@@ -123993,12 +124691,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 { /* sqlite3.c:142569: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) { /* sqlite3.c:142577:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -124016,9 +124714,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 + 12008
+ return ts + 12025
}
- return ts + 5825
+ return ts + 5844
}()
if iDb == 1 {
code = SQLITE_DROP_TEMP_TRIGGER
@@ -124031,7 +124729,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+20130,
+ ts+20160,
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)
@@ -124039,7 +124737,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) { /* sqlite3.c:142615:21: */
var pTrigger uintptr
var pHash uintptr
@@ -124070,7 +124768,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 { /* sqlite3.c:142649:12: */
var e int32
if pIdList == uintptr(0) || pEList == uintptr(0) {
return 1
@@ -124087,7 +124785,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 { /* sqlite3.c:142664:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -124150,12 +124848,12 @@ __9:
goto __15
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20192,
+ ts+20222,
libc.VaList(bp, func() uintptr {
if op == TK_DELETE {
- return ts + 20240 /* "DELETE" */
+ return ts + 20270 /* "DELETE" */
}
- return ts + 20247 /* "UPDATE" */
+ return ts + 20277 /* "UPDATE" */
}()))
__15:
;
@@ -124214,7 +124912,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 { /* sqlite3.c:142738: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)
@@ -124239,7 +124937,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 { /* sqlite3.c:142769:12: */
if int32((*Expr)(unsafe.Pointer(pTerm)).Fop) == TK_ASTERISK {
return 1
@@ -124251,7 +124949,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+20254, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20284, 0)
return 1
}
@@ -124260,7 +124958,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 { /* sqlite3.c:142789:17: */
var pNew uintptr = uintptr(0)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var i int32
@@ -124301,7 +124999,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) { /* sqlite3.c:142832:13: */
bp := tls.Alloc(304)
defer tls.Free(304)
@@ -124323,7 +125021,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)
@@ -124352,6 +125051,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)
@@ -124365,7 +125067,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 { /* sqlite3.c:142908:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -124395,7 +125097,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+6012, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)),
+ Xsqlite3MPrintf(tls, db, ts+6031, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)),
-7)
}
@@ -124452,7 +125154,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) { /* sqlite3.c:143012:13: */
if (*Parse)(unsafe.Pointer(pTo)).FnErr == 0 {
(*Parse)(unsafe.Pointer(pTo)).FzErrMsg = (*Parse)(unsafe.Pointer(pFrom)).FzErrMsg
@@ -124465,9 +125167,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 { /* sqlite3.c:143028:19: */
+ bp := tls.Alloc(472)
+ defer tls.Free(472)
var pTop uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
@@ -124479,11 +125181,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
@@ -124506,26 +125209,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+20296, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7)
+ Xsqlite3MPrintf(tls, db, ts+20326, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7)
}
// If one was specified, code the WHEN clause. If it evaluates to false
@@ -124534,15 +125233,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 {
@@ -124550,21 +125249,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
}
@@ -124572,7 +125273,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 { /* sqlite3.c:143142:19: */
var pRoot uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -124591,6 +125292,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
@@ -124600,7 +125302,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) { /* sqlite3.c:143177:21: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Main VM
var pPrg uintptr
pPrg = getRowTrigger(tls, pParse, p, pTab, orconf)
@@ -124660,7 +125362,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) { /* sqlite3.c:143249:21: */
var p uintptr // Used to iterate through pTrigger list
for p = pTrigger; p != 0; p = (*Trigger)(unsafe.Pointer(p)).FpNext {
@@ -124708,7 +125410,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 { /* sqlite3.c:143319:20: */
var op int32
if pChanges != 0 {
op = TK_UPDATE
@@ -124765,7 +125467,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) { /* sqlite3.c:143417:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -124795,7 +125497,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 { /* sqlite3.c:143450:12: */
var iIdxCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2))
// Cannot index rowid
if int32(iIdxCol) >= 0 {
@@ -124816,7 +125518,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 { /* sqlite3.c:143480:12: */
if (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere == uintptr(0) {
return 0
}
@@ -124828,7 +125530,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 { /* sqlite3.c:143496:13: */
var pRet uintptr = Xsqlite3PExpr(tls, pParse, TK_ROW, uintptr(0), uintptr(0))
if pRet != 0 {
(*Expr)(unsafe.Pointer(pRet)).FiColumn = YnVar(iCol + 1)
@@ -124872,7 +125574,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) { /* sqlite3.c:143540:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -124955,7 +125657,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) { /* sqlite3.c:143637:21: */
bp := tls.Alloc(108)
defer tls.Free(108)
@@ -125055,7 +125757,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
@@ -125235,7 +125938,7 @@ __25:
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20310,
+ ts+20340,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName))
goto update_cleanup
__27:
@@ -125267,7 +125970,7 @@ __21:
iRowidExpr = i
goto __30
__29:
- Xsqlite3ErrorMsg(tls, pParse, ts+20346, libc.VaList(bp+8, (*ExprList_item)(unsafe.Pointer(pChanges+8+uintptr(i)*32)).FzEName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20376, 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:
@@ -125278,7 +125981,7 @@ __28:
rc = Xsqlite3AuthCheck(tls, pParse, SQLITE_UPDATE, (*Table)(unsafe.Pointer(pTab)).FzName,
func() uintptr {
if j < 0 {
- return ts + 7603 /* "ROWID" */
+ return ts + 7600 /* "ROWID" */
}
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*24)).FzCnName
}(),
@@ -125650,7 +126353,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
}
@@ -126308,9 +127011,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+20365, uintptr(0))
+ Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+20395)
__169:
;
@@ -126346,7 +127047,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) { /* sqlite3.c:144529:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -126414,7 +127115,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
}
@@ -126518,8 +127220,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) { /* sqlite3.c:144717: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)
@@ -126531,14 +127233,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) { /* sqlite3.c:144729: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 { /* sqlite3.c:144737:23: */
if p == uintptr(0) {
return uintptr(0)
}
@@ -126551,7 +127253,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 { /* sqlite3.c:144751:23: */
var pNew uintptr
pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Upsert{})))
if pNew == uintptr(0) {
@@ -126577,7 +127279,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 { /* sqlite3.c:144786:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
@@ -126697,10 +127399,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+20378, libc.VaList(bp, nClause+1))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([16]int8{})), bp+216, ts+20408, libc.VaList(bp, nClause+1))
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20382, libc.VaList(bp+8, bp+216))
+ ts+20412, libc.VaList(bp+8, bp+216))
return SQLITE_ERROR
}
@@ -126719,7 +127421,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 { /* sqlite3.c:144913:20: */
var pNext uintptr
if pUpsert == uintptr(0) {
return 0
@@ -126741,7 +127443,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 { /* sqlite3.c:144929:23: */
for pUpsert != 0 &&
(*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertTarget != uintptr(0) &&
(*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertIdx != pIdx {
@@ -126757,7 +127459,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) { /* sqlite3.c:144949: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
@@ -126791,7 +127493,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+12062, -1)
+ ts+12079, -1)
Xsqlite3MayAbort(tls, pParse)
Xsqlite3VdbeJumpHere(tls, v, i)
}
@@ -126837,7 +127539,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 { /* sqlite3.c:145046:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -126859,7 +127561,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+20455, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+20459, uint64(3)) == 0) {
+ (libc.Xstrncmp(tls, zSubSql, ts+20485, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+20489, uint64(3)) == 0) {
rc = execSql(tls, db, pzErrMsg, zSubSql)
if rc != SQLITE_OK {
break
@@ -126877,7 +127579,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 { /* sqlite3.c:145076:12: */
var z uintptr
var ap Va_list
_ = ap
@@ -126921,7 +127623,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) { /* sqlite3.c:145119:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pNm
@@ -126978,7 +127680,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 { /* sqlite3.c:145157:36: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -127009,14 +127711,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+20463)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20493)
return SQLITE_ERROR // IMP: R-12218-18073
__1:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive > 1) {
goto __2
}
- Xsqlite3SetString(tls, pzErrMsg, db, ts+20503)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20533)
return SQLITE_ERROR // IMP: R-15610-35227
__2:
;
@@ -127027,7 +127729,7 @@ __2:
if !(Xsqlite3_value_type(tls, pOut) != SQLITE_TEXT) {
goto __5
}
- Xsqlite3SetString(tls, pzErrMsg, db, ts+20546)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20576)
return SQLITE_ERROR
__5:
;
@@ -127036,7 +127738,7 @@ __5:
*(*uint32)(unsafe.Pointer(db + 76)) |= uint32(SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
goto __4
__3:
- zOut = ts + 1565 /* "" */
+ zOut = ts + 1534 /* "" */
__4:
;
@@ -127072,7 +127774,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+20564, libc.VaList(bp, zOut))
+ rc = execSqlF(tls, db, pzErrMsg, ts+20594, libc.VaList(bp, zOut))
(*Sqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags
if !(rc != SQLITE_OK) {
goto __6
@@ -127093,7 +127795,7 @@ __6:
goto __8
}
rc = SQLITE_ERROR
- Xsqlite3SetString(tls, pzErrMsg, db, ts+20587)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+20617)
goto end_of_vacuum
__8:
;
@@ -127109,7 +127811,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+14418)
+ rc = execSql(tls, db, pzErrMsg, ts+14432)
if !(rc != SQLITE_OK) {
goto __9
}
@@ -127161,7 +127863,7 @@ __12:
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(nDb) // force new CREATE statements into vacuum_db
rc = execSqlF(tls, db, pzErrMsg,
- ts+20614,
+ ts+20644,
libc.VaList(bp+8, zDbMain))
if !(rc != SQLITE_OK) {
goto __13
@@ -127171,7 +127873,7 @@ __13:
;
rc = execSqlF(tls, db, pzErrMsg,
- ts+20722,
+ ts+20752,
libc.VaList(bp+16, zDbMain))
if !(rc != SQLITE_OK) {
goto __14
@@ -127186,7 +127888,7 @@ __14:
// the contents to the temporary database.
rc = execSqlF(tls, db, pzErrMsg,
- ts+20776,
+ ts+20806,
libc.VaList(bp+24, zDbMain))
*(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_Vacuum))
@@ -127203,7 +127905,7 @@ __15:
// from the schema table.
rc = execSqlF(tls, db, pzErrMsg,
- ts+20927,
+ ts+20957,
libc.VaList(bp+32, zDbMain))
if !(rc != 0) {
goto __16
@@ -127316,7 +128018,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 */
+} /* sqlite3.c:145350: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
@@ -127324,7 +128026,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 { /* sqlite3.c:145462:23: */
var pMod uintptr
var pDel uintptr
var zCopy uintptr
@@ -127364,7 +128066,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 { /* sqlite3.c:145510:12: */
var rc int32 = SQLITE_OK
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -127378,18 +128080,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 { /* sqlite3.c:145531: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 { /* sqlite3.c:145546: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 { /* sqlite3.c:145563:16: */
var pThis uintptr
var pNext uintptr
for pThis = (*Hash)(unsafe.Pointer(db + 568)).Ffirst; pThis != 0; pThis = pNext {
@@ -127410,7 +128112,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) { /* sqlite3.c:145585:21: */
(*Module)(unsafe.Pointer(pMod)).FnRefModule--
if (*Module)(unsafe.Pointer(pMod)).FnRefModule == 0 {
@@ -127428,14 +128130,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) { /* sqlite3.c:145605: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 { /* sqlite3.c:145615: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 {
@@ -127445,7 +128147,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) { /* sqlite3.c:145626:21: */
var db uintptr = (*VTable)(unsafe.Pointer(pVTab)).Fdb
(*VTable)(unsafe.Pointer(pVTab)).FnRef--
@@ -127466,7 +128168,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 { /* sqlite3.c:145652:15: */
var pRet uintptr = uintptr(0)
var pVTable uintptr
@@ -127503,7 +128205,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) { /* sqlite3.c:145695:21: */
var ppVTab uintptr
for ppVTab = p + 64 + 16; *(*uintptr)(unsafe.Pointer(ppVTab)) != 0; ppVTab = *(*uintptr)(unsafe.Pointer(ppVTab)) + 40 {
@@ -127534,13 +128236,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) { /* sqlite3.c:145733: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
@@ -127560,7 +128262,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) { /* sqlite3.c:145764:21: */
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) {
vtabDisconnectAll(tls, uintptr(0), p)
@@ -127580,7 +128282,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) { /* sqlite3.c:145782:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -127590,7 +128292,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+12292, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12306, 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) {
@@ -127606,7 +128308,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) { /* sqlite3.c:145808:21: */
var pTable uintptr // The new virtual table
var db uintptr // Database connection
@@ -127641,7 +128343,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) { /* sqlite3.c:145857: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)
@@ -127652,7 +128354,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) { /* sqlite3.c:145870:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -127687,7 +128389,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+21057, libc.VaList(bp, pParse+248))
+ zStmt = Xsqlite3MPrintf(tls, db, ts+21087, 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
@@ -127699,7 +128401,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* s
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema)
Xsqlite3NestedParse(tls, pParse,
- ts+21081,
+ ts+21111,
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,
@@ -127709,7 +128411,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+21180, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt))
+ zWhere = Xsqlite3MPrintf(tls, db, ts+21210, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt))
Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0))
Xsqlite3DbFree(tls, db, zStmt)
@@ -127736,7 +128438,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) { /* sqlite3.c:145953:21: */
addArgumentToVtab(tls, pParse)
(*Parse)(unsafe.Pointer(pParse)).FsArg.Fz = uintptr(0)
(*Parse)(unsafe.Pointer(pParse)).FsArg.Fn = uint32(0)
@@ -127744,8 +128446,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) { /* sqlite3.c:145963: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
@@ -127758,7 +128460,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 { /* sqlite3.c:145979:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -127779,7 +128481,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+21199, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+21229, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
return SQLITE_LOCKED
}
}
@@ -127819,9 +128521,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+21241, libc.VaList(bp+8, zModuleName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+21271, libc.VaList(bp+8, zModuleName))
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+3623, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+3614, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))
}
Xsqlite3DbFree(tls, db, pVTable)
@@ -127833,7 +128535,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 + 21271 /* "vtable construct..." */
+ var zFormat uintptr = ts + 21301 /* "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
@@ -127849,12 +128551,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+1565)
+ var zType uintptr = Xsqlite3ColumnType(tls, (*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24, ts+1534)
var nType int32
var i int32 = 0
nType = Xsqlite3Strlen30(tls, zType)
for i = 0; i < nType; i++ {
- if 0 == Xsqlite3_strnicmp(tls, ts+16025, zType+uintptr(i), 6) &&
+ if 0 == Xsqlite3_strnicmp(tls, ts+16057, 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
@@ -127894,7 +128596,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 { /* sqlite3.c:146115:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -127913,13 +128615,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+21317, libc.VaList(bp, zModule))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21347, 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+3623, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3614, 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 */)))
@@ -127930,7 +128632,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 { /* sqlite3.c:146151:12: */
var ARRAY_INCR int32 = 5
// Grow the sqlite3.aVTrans array if required
@@ -127950,7 +128652,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) { /* sqlite3.c:146174: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)
@@ -127962,7 +128664,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 { /* sqlite3.c:146188:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -127981,7 +128683,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+21317, libc.VaList(bp, zMod))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+21347, 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)
@@ -128002,15 +128704,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 { /* sqlite3.c:146229: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
@@ -128019,13 +128720,12 @@ 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, 146246)
}
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
// 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.
@@ -128033,10 +128733,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
@@ -128064,13 +128765,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 + 3623 /* "%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 + 3614 /* "%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)
@@ -128079,7 +128781,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)
@@ -128092,7 +128794,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 { /* sqlite3.c:146322:20: */
var rc int32 = SQLITE_OK
var pTab uintptr
@@ -128137,7 +128839,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) { /* sqlite3.c:146366:13: */
var i int32
if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 {
var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans
@@ -128167,7 +128869,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 { /* sqlite3.c:146394:20: */
var i int32
var rc int32 = SQLITE_OK
var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans
@@ -128189,14 +128891,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 { /* sqlite3.c:146416: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 { /* sqlite3.c:146425:20: */
callFinaliser(tls, db, int32(uintptr(0)+128))
return SQLITE_OK
}
@@ -128207,7 +128909,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 { /* sqlite3.c:146438:20: */
var rc int32 = SQLITE_OK
var pModule uintptr
@@ -128268,7 +128970,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 { /* sqlite3.c:146498:20: */
var rc int32 = SQLITE_OK
if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 {
@@ -128316,7 +129018,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 { /* sqlite3.c:146546:24: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -128383,7 +129085,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) { /* sqlite3.c:146616:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -128422,7 +129124,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 { /* sqlite3.c:146650:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -128458,7 +129160,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+3623, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3614, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))))
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))
Xsqlite3VtabEponymousTableClear(tls, db, pMod)
}
@@ -128467,7 +129169,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) { /* sqlite3.c:146688: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
@@ -128484,19 +129186,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 { /* sqlite3.c:146707: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 */
+} /* sqlite3.c:146708: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 { /* sqlite3.c:146725:16: */
var ap Va_list
_ = ap
var rc int32 = SQLITE_OK
@@ -128505,7 +129207,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, 146736)
} else {
ap = va
@@ -128533,7 +129235,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32
fallthrough
default:
{
- rc = Xsqlite3MisuseError(tls, 145805)
+ rc = Xsqlite3MisuseError(tls, 146754)
break
}
@@ -128594,10 +129296,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 */
+} /* sqlite3.c:14622:9 */
//************* End of vtab.c ***********************************************
//************* Begin file wherecode.c **************************************
@@ -128637,23 +129339,23 @@ type WhereClause1 = struct {
// a separate source file for easier editing.
// Forward references
-type WhereClause = WhereClause1 /* sqlite3.c:145865:28 */
+type WhereClause = WhereClause1 /* sqlite3.c:146814:28 */
type WhereMaskSet1 = struct {
FbVarSelect int32
Fn int32
Fix [64]int32
-} /* sqlite3.c:14311:9 */
+} /* sqlite3.c:14622:9 */
-type WhereMaskSet = WhereMaskSet1 /* sqlite3.c:145866:29 */
+type WhereMaskSet = WhereMaskSet1 /* sqlite3.c:146815:29 */
type WhereOrInfo1 = struct {
Fwc WhereClause
Findexable Bitmask
-} /* sqlite3.c:145867:9 */
+} /* sqlite3.c:146816:9 */
-type WhereOrInfo = WhereOrInfo1 /* sqlite3.c:145867:28 */
-type WhereAndInfo1 = struct{ Fwc WhereClause } /* sqlite3.c:145868:9 */
+type WhereOrInfo = WhereOrInfo1 /* sqlite3.c:146816:28 */
+type WhereAndInfo1 = struct{ Fwc WhereClause } /* sqlite3.c:146817:9 */
-type WhereAndInfo = WhereAndInfo1 /* sqlite3.c:145868:29 */
+type WhereAndInfo = WhereAndInfo1 /* sqlite3.c:146817:29 */
type WhereLevel1 = struct {
FiLeftJoin int32
FiTabCur int32
@@ -128666,12 +129368,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
@@ -128681,9 +129385,9 @@ type WhereLevel1 = struct {
}
FpWLoop uintptr
FnotReady Bitmask
-} /* sqlite3.c:14311:9 */
+} /* sqlite3.c:14622:9 */
-type WhereLevel = WhereLevel1 /* sqlite3.c:145869:27 */
+type WhereLevel = WhereLevel1 /* sqlite3.c:146818:27 */
type WhereLoop1 = struct {
Fprereq Bitmask
FmaskSelf Bitmask
@@ -128700,6 +129404,7 @@ type WhereLoop1 = struct {
FnDistinctCol U16
FpIndex uintptr
}
+ F__ccgo_pad1 [16]byte
}
FwsFlags U32
FnLTerm U16
@@ -128709,9 +129414,9 @@ type WhereLoop1 = struct {
FaLTerm uintptr
FpNextLoop uintptr
FaLTermSpace [3]uintptr
-} /* sqlite3.c:14311:9 */
+} /* sqlite3.c:14622:9 */
-type WhereLoop = WhereLoop1 /* sqlite3.c:145870:26 */
+type WhereLoop = WhereLoop1 /* sqlite3.c:146819:26 */
type WherePath1 = struct {
FmaskLoop Bitmask
FrevLoop Bitmask
@@ -128721,9 +129426,9 @@ type WherePath1 = struct {
FisOrdered I8
F__ccgo_pad1 [1]byte
FaLoop uintptr
-} /* sqlite3.c:145871:9 */
+} /* sqlite3.c:146820:9 */
-type WherePath = WherePath1 /* sqlite3.c:145871:26 */
+type WherePath = WherePath1 /* sqlite3.c:146820:26 */
type WhereTerm1 = struct {
FpExpr uintptr
FpWC uintptr
@@ -128743,13 +129448,12 @@ type WhereTerm1 = struct {
}
FprereqRight Bitmask
FprereqAll Bitmask
-} /* sqlite3.c:14311:9 */
+} /* sqlite3.c:14622:9 */
-type WhereTerm = WhereTerm1 /* sqlite3.c:145872:26 */
+type WhereTerm = WhereTerm1 /* sqlite3.c:146821:26 */
type WhereLoopBuilder1 = struct {
FpWInfo uintptr
FpWC uintptr
- FpOrderBy uintptr
FpNew uintptr
FpOrSet uintptr
FpRec uintptr
@@ -128759,41 +129463,41 @@ type WhereLoopBuilder1 = struct {
F__ccgo_pad1 [2]byte
FiPlanLimit uint32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:145873:9 */
+} /* sqlite3.c:146822:9 */
-type WhereLoopBuilder = WhereLoopBuilder1 /* sqlite3.c:145873:33 */
+type WhereLoopBuilder = WhereLoopBuilder1 /* sqlite3.c:146822: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 */
+} /* sqlite3.c:146823:9 */
-type WhereScan = WhereScan1 /* sqlite3.c:145874:26 */
+type WhereScan = WhereScan1 /* sqlite3.c:146823:26 */
type WhereOrCost1 = struct {
Fprereq Bitmask
FrRun LogEst
FnOut LogEst
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:145873:9 */
+} /* sqlite3.c:146822:9 */
-type WhereOrCost = WhereOrCost1 /* sqlite3.c:145875:28 */
+type WhereOrCost = WhereOrCost1 /* sqlite3.c:146824:28 */
type WhereOrSet1 = struct {
Fn U16
F__ccgo_pad1 [6]byte
Fa [3]WhereOrCost
-} /* sqlite3.c:145873:9 */
+} /* sqlite3.c:146822:9 */
-type WhereOrSet = WhereOrSet1 /* sqlite3.c:145876:27 */
+type WhereOrSet = WhereOrSet1 /* sqlite3.c:146825:27 */
// This object contains information needed to implement a single nested
// loop in WHERE clause.
@@ -128815,7 +129519,7 @@ type InLoop = struct {
FnPrefix int32
FeEndLoopOp U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:145915:7 */
+} /* sqlite3.c:146865:7 */
// Allowed values for WhereLoopBuider.bldFlags
@@ -128841,7 +129545,7 @@ type WhereExprMod1 = struct {
FpNext uintptr
FpExpr uintptr
Forig Expr
-} /* sqlite3.c:14311:9 */
+} /* sqlite3.c:14622:9 */
// Allowed values for WhereLoopBuider.bldFlags
@@ -128863,7 +129567,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 /* sqlite3.c:147227:29 */
// Bitmasks for the operators on WhereTerm objects. These are all
// operators that are of interest to the query planner. An
@@ -128885,13 +129589,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 { /* sqlite3.c:147421:19: */
i = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i)*2)))
if i == -2 {
- return ts + 21336 /* "<expr>" */
+ return ts + 21366 /* "<expr>" */
}
if i == -1 {
- return ts + 16134 /* "rowid" */
+ return ts + 16166 /* "rowid" */
}
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*24)).FzCnName
}
@@ -128902,39 +129606,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) { /* sqlite3.c:147436:13: */
var i int32
if bAnd != 0 {
- Xsqlite3_str_append(tls, pStr, ts+21343, 5)
+ Xsqlite3_str_append(tls, pStr, ts+21373, 5)
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+21349, 1)
+ Xsqlite3_str_append(tls, pStr, ts+21379, 1)
}
for i = 0; i < nTerm; i++ {
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+12682, 1)
+ Xsqlite3_str_append(tls, pStr, ts+12696, 1)
}
Xsqlite3_str_appendall(tls, pStr, explainIndexColumnName(tls, pIdx, iTerm+i))
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+4899, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4908, 1)
}
Xsqlite3_str_append(tls, pStr, zOp, 1)
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+21349, 1)
+ Xsqlite3_str_append(tls, pStr, ts+21379, 1)
}
for i = 0; i < nTerm; i++ {
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+12682, 1)
+ Xsqlite3_str_append(tls, pStr, ts+12696, 1)
}
- Xsqlite3_str_append(tls, pStr, ts+4950, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4959, 1)
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+4899, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4908, 1)
}
}
@@ -128950,7 +129654,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) { /* sqlite3.c:147480:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -128963,29 +129667,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+21351, 2)
+ Xsqlite3_str_append(tls, pStr, ts+21381, 2)
for i = 0; i < int32(nEq); i++ {
var z uintptr = explainIndexColumnName(tls, pIndex, i)
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+21343, 5)
+ Xsqlite3_str_append(tls, pStr, ts+21373, 5)
}
Xsqlite3_str_appendf(tls, pStr, func() uintptr {
if i >= int32(nSkip) {
- return ts + 21354 /* "%s=?" */
+ return ts + 21384 /* "%s=?" */
}
- return ts + 21359 /* "ANY(%s)" */
+ return ts + 21389 /* "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+21367)
+ explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */))), j, i, ts+21397)
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+21369)
+ explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */))), j, i, ts+21399)
}
- Xsqlite3_str_append(tls, pStr, ts+4899, 1)
+ Xsqlite3_str_append(tls, pStr, ts+4908, 1)
}
// This function is a no-op unless currently processing an EXPLAIN QUERY PLAN
@@ -128995,9 +129699,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 { /* sqlite3.c:147514:20: */
+ bp := tls.Alloc(196)
+ defer tls.Free(196)
var ret int32 = 0
if int32((*Parse)(unsafe.Pointer(func() uintptr {
@@ -129013,9 +129717,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
@@ -129028,13 +129732,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+21371, 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+21401, libc.VaList(bp, func() uintptr {
if isSearch != 0 {
- return ts + 21377 /* "SEARCH" */
+ return ts + 21407 /* "SEARCH" */
}
- return ts + 21384 /* "SCAN" */
+ return ts + 21414 /* "SCAN" */
}(), pItem))
if flags&U32(WHERE_IPK|WHERE_VIRTUALTABLE) == U32(0) {
var zFmt uintptr = uintptr(0)
@@ -129044,41 +129748,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 + 10836 /* "PRIMARY KEY" */
+ zFmt = ts + 10853 /* "PRIMARY KEY" */
}
} else if flags&U32(WHERE_PARTIALIDX) != 0 {
- zFmt = ts + 21389 /* "AUTOMATIC PARTIA..." */
+ zFmt = ts + 21419 /* "AUTOMATIC PARTIA..." */
} else if flags&U32(WHERE_AUTO_INDEX) != 0 {
- zFmt = ts + 21422 /* "AUTOMATIC COVERI..." */
+ zFmt = ts + 21452 /* "AUTOMATIC COVERI..." */
} else if flags&U32(WHERE_IDX_ONLY) != 0 {
- zFmt = ts + 21447 /* "COVERING INDEX %..." */
+ zFmt = ts + 21477 /* "COVERING INDEX %..." */
} else {
- zFmt = ts + 21465 /* "INDEX %s" */
+ zFmt = ts + 21495 /* "INDEX %s" */
}
if zFmt != 0 {
- Xsqlite3_str_append(tls, bp+48, ts+21474, 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+21504, 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 + 16166 /* "rowid" */
+ Xsqlite3_str_appendf(tls, bp+64, ts+21512, libc.VaList(bp+24, zRowid))
if flags&U32(WHERE_COLUMN_EQ|WHERE_COLUMN_IN) != 0 {
- zRangeOp = ts + 21482 /* "=" */
+ cRangeOp = int8('=')
} else if flags&U32(WHERE_BOTH_LIMIT) == U32(WHERE_BOTH_LIMIT) {
- zRangeOp = ts + 21484 /* ">? AND rowid<" */
+ Xsqlite3_str_appendf(tls, bp+64, ts+21543, libc.VaList(bp+32, zRowid))
+ cRangeOp = int8('<')
} else if flags&U32(WHERE_BTM_LIMIT) != 0 {
- zRangeOp = ts + 21367 /* ">" */
+ cRangeOp = int8('>')
} else {
- zRangeOp = ts + 21369 /* "<" */
+ cRangeOp = int8('<')
}
- Xsqlite3_str_appendf(tls, bp+48,
- ts+21498, libc.VaList(bp+24, zRangeOp))
+ Xsqlite3_str_appendf(tls, bp+64, ts+21553, libc.VaList(bp+40, int32(cRangeOp)))
} else if flags&U32(WHERE_VIRTUALTABLE) != U32(0) {
- Xsqlite3_str_appendf(tls, bp+48, ts+21536,
- libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pLoop + 24)), *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.idxStr */))))
+ Xsqlite3_str_appendf(tls, bp+64, ts+21558,
+ 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)
@@ -129086,6 +129792,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 { /* sqlite3.c:147626: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+21585, 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+21384, 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+21606, 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+21373, 5)
+ }
+ Xsqlite3_str_appendf(tls, bp+24, ts+21384, libc.VaList(bp+16, z))
+ }
+ }
+ Xsqlite3_str_append(tls, bp+24, ts+4908, 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.
@@ -129126,7 +129883,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) { /* sqlite3.c:147739:13: */
var nLoop int32 = 0
for int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_CODED == 0 &&
@@ -129159,7 +129916,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) { /* sqlite3.c:147777:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
if zAff == uintptr(0) {
@@ -129192,7 +129949,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) { /* sqlite3.c:147814:13: */
var i int32
for i = 0; i < n; i++ {
var p uintptr = Xsqlite3VectorFieldSubexpr(tls, pRight, i)
@@ -129230,7 +129987,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 { /* sqlite3.c:147860:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pNew uintptr
pNew = Xsqlite3ExprDup(tls, db, pX, 0)
@@ -129305,7 +130062,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 { /* sqlite3.c:147949:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -129377,19 +130134,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)
@@ -129434,7 +130191,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)
}
@@ -129498,7 +130255,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 { /* sqlite3.c:148145: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
@@ -129568,6 +130325,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
@@ -129584,7 +130344,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)
}
@@ -129614,11 +130375,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) { /* sqlite3.c:148522: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 {
@@ -129655,7 +130416,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) { /* sqlite3.c:148566:13: */
if p != 0 && Xsqlite3ExprIsVector(tls, p) != 0 {
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_xIsSelect) != U32(0) {
@@ -129683,10 +130444,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 /* sqlite3.c:148606: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) { /* sqlite3.c:148611:13: */
var pNew uintptr
pNew = Xsqlite3DbMallocRaw(tls, (*IdxExprTrans)(unsafe.Pointer(pTrans)).Fdb, uint64(unsafe.Sizeof(WhereExprMod{})))
if pNew == uintptr(0) {
@@ -129703,7 +130464,7 @@ 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 { /* sqlite3.c:148627: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 {
preserveExpr(tls, pX, pExpr)
@@ -129723,7 +130484,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 { /* sqlite3.c:148649: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 {
@@ -129745,7 +130506,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) { /* sqlite3.c:148674:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -129810,7 +130571,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) { /* sqlite3.c:148738:13: */
var i int32
var pTerm uintptr
for int32((*Expr)(unsafe.Pointer(pTruth)).Fop) == TK_AND {
@@ -129843,9 +130604,62 @@ __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) { /* sqlite3.c:148774: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
+ }
+ // ,--- Because sqlite3ConstructBloomFilter() has will not have set
+ // vvvvv--' pLevel->regFilter if this were true.
+ if (*WhereLoop)(unsafe.Pointer(pLoop)).Fprereq&notReady != 0 {
+ continue
+ }
+ 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
+ }
+}
+
// 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 { /* sqlite3.c:148821:24: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -129867,12 +130681,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
@@ -129899,9 +130713,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 {
@@ -129927,29 +130741,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 {
@@ -129961,19 +130793,30 @@ 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))
+ iIn = *(*int32)(unsafe.Pointer(pLevel + 64))
} else {
iIn = 0
}
for j = nConstraint - 1; j >= 0; j-- {
+ var bIn int32 // True to generate byte code to loop over RHS IN values
pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8))
- if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 {
+ 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) {
+ bIn = 1
+ } else {
+ bIn = 0
+ }
+ if bIn != 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 {
+ } else if bIn != 0 && Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft) == 1 {
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
@@ -129985,7 +130828,7 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
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 */)))
+ pOp = Xsqlite3VdbeGetOp(tls, v, *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLevel + 64 + 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)
}
@@ -130029,6 +130872,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)
@@ -130310,6 +131159,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])
@@ -130578,7 +131433,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
@@ -130610,7 +131465,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.
//
@@ -130622,6 +131477,12 @@ 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.
if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 1 {
var iTerm int32
for iTerm = 0; iTerm < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm; iTerm++ {
@@ -130630,7 +131491,7 @@ 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 {
@@ -130653,7 +131514,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+21563, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21614, 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 {
@@ -130672,15 +131533,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+21578, libc.VaList(bp, ii+1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21629, 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
@@ -130755,7 +131616,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
}
@@ -130770,7 +131631,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) &&
@@ -130781,7 +131642,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.
@@ -130793,7 +131654,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
}
@@ -130846,7 +131707,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
@@ -130863,7 +131724,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
@@ -130917,7 +131778,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
@@ -130982,7 +131843,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
}
{
@@ -131020,24 +131881,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 */
+} /* sqlite3.c:149198: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 */
+} /* sqlite3.c:149208:21 */
+var aStep = [2]U8{U8(OP_Next), U8(OP_Prev)} /* sqlite3.c:149918:21 */
+var aStart = [2]U8{U8(OP_Rewind), U8(OP_Last)} /* sqlite3.c:149919: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) { /* sqlite3.c:150128: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) { /* sqlite3.c:150136:13: */
Xsqlite3WhereClauseClear(tls, p)
Xsqlite3DbFree(tls, db, p)
}
@@ -131059,7 +131920,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 { /* sqlite3.c:150160:12: */
var pTerm uintptr
var idx int32
@@ -131081,6 +131942,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 {
@@ -131098,14 +131962,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 { /* sqlite3.c:150202: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 { /* sqlite3.c:150214: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) {
@@ -131125,7 +131989,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 { /* sqlite3.c:150237:12: */
var c U16
if op == TK_IN {
@@ -131152,7 +132016,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 { /* sqlite3.c:150275:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -131324,7 +132188,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 { /* sqlite3.c:150454:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -131429,26 +132293,26 @@ type Op2 = struct {
FzOp uintptr
FeOp2 uint8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:149337:18 */
+} /* sqlite3.c:150462:18 */
var aOp = [4]Op2{
- {FzOp: ts + 15983, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)},
- {FzOp: ts + 15305, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)},
- {FzOp: ts + 14846, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)},
- {FzOp: ts + 21587, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)},
-} /* sqlite3.c:149340:7 */
+ {FzOp: ts + 16015, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)},
+ {FzOp: ts + 15337, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)},
+ {FzOp: ts + 14863, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)},
+ {FzOp: ts + 21638, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)},
+} /* sqlite3.c:150465: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) { /* sqlite3.c:150566: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) { /* sqlite3.c:150576: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++
@@ -131457,7 +132321,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 { /* sqlite3.c:150587:18: */
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator) != WO_AND {
if N == 0 {
return pTerm
@@ -131488,7 +132352,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) { /* sqlite3.c:150617: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
@@ -131621,7 +132485,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) { /* sqlite3.c:150744: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
@@ -131693,7 +132557,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)
}
}
@@ -131712,10 +132576,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 {
@@ -131797,14 +132661,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
@@ -131845,7 +132709,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
@@ -131860,7 +132724,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)
}
}
@@ -131890,7 +132754,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
}
@@ -131940,7 +132804,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 { /* sqlite3.c:151018:12: */
var aff1 int8
var aff2 int8
var pColl uintptr
@@ -131969,7 +132833,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 { /* sqlite3.c:151041:16: */
var mask Bitmask = uint64(0)
for pS != 0 {
var pSrc uintptr = (*Select)(unsafe.Pointer(pS)).FpSrc
@@ -132004,7 +132868,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 { /* sqlite3.c:151078:28: */
var pIdx uintptr
var i int32
var iCur int32
@@ -132042,7 +132906,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 { /* sqlite3.c:151102: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.
@@ -132083,7 +132947,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) { /* sqlite3.c:151150:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -132106,10 +132970,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 {
@@ -132122,23 +132989,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+21594, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21645, 0)
return
}
}
@@ -132219,7 +133091,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 + 6644 /* "false" */
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6651 /* "false" */
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse)
(*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = uint64(0)
(*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(0)
@@ -132322,7 +133194,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 + 21635 /* "NOCASE" */
+ return ts + 21686 /* "NOCASE" */
}
return uintptr(unsafe.Pointer(&Xsqlite3StrBINARY))
}()
@@ -132356,6 +133228,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 &&
@@ -132371,7 +133245,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
@@ -132387,7 +133261,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)
@@ -132410,7 +133284,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))
@@ -132441,7 +133315,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)} /* sqlite3.c:151319:21 */
// **************************************************************************
//
@@ -132464,7 +133338,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) { /* sqlite3.c:151615:21: */
var pE2 uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
(*WhereClause)(unsafe.Pointer(pWC)).Fop = op
@@ -132479,12 +133353,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) { /* sqlite3.c:151639: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) { /* sqlite3.c:151692: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) { /* sqlite3.c:151738: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 */
}
@@ -132492,35 +133477,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) { /* sqlite3.c:151756: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)
}
@@ -132529,14 +133511,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 { /* sqlite3.c:151824: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 {
@@ -132565,14 +133567,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 { /* sqlite3.c:151850: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 { /* sqlite3.c:151859: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 { /* sqlite3.c:151862:24: */
var i int32
var mask Bitmask = uint64(0)
if pList != 0 {
@@ -132589,7 +133601,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) { /* sqlite3.c:151882:21: */
var i int32
for i = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm - 1; i >= 0; i-- {
exprAnalyze(tls, pTabList, pWC, i)
@@ -132601,7 +133613,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) { /* sqlite3.c:151899:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -132626,7 +133638,7 @@ func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC
k++
}
if k >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) {
- Xsqlite3ErrorMsg(tls, pParse, ts+21642,
+ Xsqlite3ErrorMsg(tls, pParse, ts+21693,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, j))
return
}
@@ -132638,6 +133650,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)
@@ -132677,9 +133690,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
+} /* sqlite3.c:151971:9 */
//************* End of whereexpr.c ******************************************
//************* Begin file where.c ******************************************
@@ -132709,16 +133727,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 /* sqlite3.c:151971: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 { /* sqlite3.c:151989: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 { /* sqlite3.c:151997:20: */
return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct)
}
@@ -132728,7 +133746,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 { /* sqlite3.c:152009:20: */
return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat)
}
@@ -132753,14 +133771,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 { /* sqlite3.c:152036: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
}
@@ -132774,17 +133792,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) { /* sqlite3.c:152059: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
@@ -132795,14 +133813,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 { /* sqlite3.c:152078: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 { /* sqlite3.c:152087:20: */
return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak
}
@@ -132821,19 +133839,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 { /* sqlite3.c:152108: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 { /* sqlite3.c:152124: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) { /* sqlite3.c:152131: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{})))
}
@@ -132843,7 +133861,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 { /* sqlite3.c:152143:12: */
var i U16
var p uintptr
i = (*WhereOrSet)(unsafe.Pointer(pSet)).Fn
@@ -132920,10 +133938,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 { /* sqlite3.c:152180: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
}
@@ -132937,14 +133958,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) { /* sqlite3.c:152204: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 { /* sqlite3.c:152213: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
@@ -132955,7 +133976,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 { /* sqlite3.c:152226: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
@@ -132968,7 +133989,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) {
@@ -133059,7 +134080,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 { /* sqlite3.c:152328:34: */
(*WhereScan)(unsafe.Pointer(pScan)).Fidxaff = Xsqlite3ExprAffinity(tls, (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr)
return whereScanNext(tls, pScan)
}
@@ -133081,7 +134102,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 { /* sqlite3.c:152352:18: */
(*WhereScan)(unsafe.Pointer(pScan)).FpOrigWC = pWC
(*WhereScan)(unsafe.Pointer(pScan)).FpWC = pWC
(*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr = uintptr(0)
@@ -133095,16 +134116,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)
@@ -133136,7 +134157,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 { /* sqlite3.c:152416:26: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -133166,7 +134187,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 { /* sqlite3.c:152450:12: */
var i int32
var zColl uintptr = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(iCol)*8))
@@ -133187,7 +134208,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 { /* sqlite3.c:152480:12: */
var j int32
j = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2)))
@@ -133208,7 +134229,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 { /* sqlite3.c:152503:12: */
var pTab uintptr
var pIdx uintptr
var i int32
@@ -133278,7 +134299,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 { /* sqlite3.c:152567:15: */
if int32(N) <= 10 {
return int16(0)
}
@@ -133295,7 +134316,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) { /* sqlite3.c:152583:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var pOp uintptr = Xsqlite3VdbeGetOp(tls, v, iStart)
var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v)
@@ -133338,7 +134359,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 { /* sqlite3.c:152667:12: */
var aff int8
if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
return 0
@@ -133372,7 +134393,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) { /* sqlite3.c:152701:29: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -133431,10 +134452,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)) &&
+ // 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 &&
+ (int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LEFT == 0 || (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) &&
Xsqlite3ExprIsTableConstant(tls, pExpr, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor) != 0) {
goto __4
}
@@ -133457,7 +134479,7 @@ __4:
goto __6
}
Xsqlite3_log(tls, SQLITE_WARNING|int32(1)<<8,
- ts+21678, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName,
+ ts+21729, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName,
(*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTable)).FaCol+uintptr(iCol)*24)).FzCnName))
sentWarning = U8(1)
__6:
@@ -133485,7 +134507,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)
@@ -133538,7 +134560,7 @@ __13:
__14:
;
*(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) = pIdx
- (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 21704 /* "auto-index" */
+ (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 21755 /* "auto-index" */
(*Index)(unsafe.Pointer(pIdx)).FpTable = pTable
n = 0
idxCols = uint64(0)
@@ -133637,42 +134659,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)
@@ -133680,11 +134717,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)
@@ -133696,13 +134733,129 @@ 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) { /* sqlite3.c:152936: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 &&
+ Xsqlite3ExprIsTableConstant(tls, pExpr, iCur) != 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) {
+ pLevel = pWInfo + 864 + uintptr(iLevel)*96
+ 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 { /* sqlite3.c:153046: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
@@ -133711,9 +134864,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
- // Count the number of possible WHERE clause constraints referring
- // to this virtual table
+ pTab = (*SrcItem)(unsafe.Pointer(pSrc)).FpTab
+
+ // 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:
@@ -133721,6 +134880,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
}
@@ -133735,7 +134895,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
@@ -133755,36 +134923,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+6050, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+1470, 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:
@@ -133793,32 +135000,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 {
@@ -133861,17 +135057,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) { /* sqlite3.c:153245: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
@@ -133886,24 +135104,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 { /* sqlite3.c:153275: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+3623, libc.VaList(bp, Xsqlite3ErrStr(tls, rc)))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3614, libc.VaList(bp, Xsqlite3ErrStr(tls, rc)))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+3623, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg))
+ Xsqlite3ErrorMsg(tls, pParse, ts+3614, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg))
}
}
Xsqlite3_free(tls, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg)
@@ -133922,7 +135142,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 { /* sqlite3.c:153314: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
@@ -133981,7 +135201,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
@@ -134061,7 +135281,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 { /* sqlite3.c:153506:15: */
var nRet LogEst = nNew
if pTerm != 0 {
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FtruthProb) <= 0 {
@@ -134074,7 +135294,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 { /* sqlite3.c:153523:21: */
if !(int32((*Index)(unsafe.Pointer(pIdx)).FzColAff) != 0) {
if Xsqlite3IndexAffinityStr(tls, db, pIdx) == uintptr(0) {
@@ -134118,7 +135338,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 { /* sqlite3.c:153570:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -134233,7 +135453,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 { /* sqlite3.c:153682:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -134429,7 +135649,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 { /* sqlite3.c:153863:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -134485,7 +135705,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 { /* sqlite3.c:153927:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -134518,20 +135738,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) { /* sqlite3.c:154074: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) { /* sqlite3.c:154084: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 */)))
@@ -134541,8 +135761,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) { /* sqlite3.c:154101:13: */
+ if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+88 {
Xsqlite3DbFreeNN(tls, db, (*WhereLoop)(unsafe.Pointer(p)).FaLTerm)
}
whereLoopClearUnion(tls, db, p)
@@ -134550,7 +135770,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 { /* sqlite3.c:154110:12: */
var paNew uintptr
if int32((*WhereLoop)(unsafe.Pointer(p)).FnLSlot) >= n {
return SQLITE_OK
@@ -134561,7 +135781,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
@@ -134570,16 +135790,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 { /* sqlite3.c:154126: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)
}
@@ -134587,23 +135807,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) { /* sqlite3.c:154145: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) { /* sqlite3.c:154153: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
@@ -134614,7 +135834,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) { /* sqlite3.c:154175: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
@@ -134640,7 +135860,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 { /* sqlite3.c:154203: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) {
@@ -134684,7 +135904,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) { /* sqlite3.c:154241:13: */
if (*WhereLoop)(unsafe.Pointer(pTemplate)).FwsFlags&U32(WHERE_INDEXED) == U32(0) {
return
}
@@ -134743,7 +135963,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 { /* sqlite3.c:154282:18: */
var p uintptr
p = *(*uintptr)(unsafe.Pointer(ppPrev))
__1:
@@ -134801,7 +136021,7 @@ __1:
}
goto __2
__2:
- ppPrev = p + 64
+ ppPrev = p + 80
p = *(*uintptr)(unsafe.Pointer(ppPrev))
goto __1
goto __3
@@ -134832,7 +136052,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 { /* sqlite3.c:154370:12: */
var ppPrev uintptr
var p uintptr
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
@@ -134862,7 +136082,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
@@ -134887,7 +136107,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)
@@ -134939,7 +136159,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) { /* sqlite3.c:154507:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -134950,7 +136170,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) {
@@ -134958,13 +136178,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-- {
@@ -134980,6 +136200,13 @@ __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".
+ *(*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.
@@ -135035,7 +136262,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 { /* sqlite3.c:154586:12: */
var nCmp int32 = Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft)
var i int32
@@ -135103,7 +136330,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 { /* sqlite3.c:154660:12: */
bp := tls.Alloc(116)
defer tls.Free(116)
@@ -135186,9 +136413,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
@@ -135253,34 +136480,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
@@ -135294,12 +136521,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
@@ -135357,7 +136584,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) {
@@ -135441,7 +136668,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,
@@ -135463,7 +136690,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 { /* sqlite3.c:155060:12: */
var pOB uintptr
var aColExpr uintptr
var ii int32
@@ -135505,7 +136732,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 { /* sqlite3.c:155094:12: */
var i int32
var pTerm uintptr
var pParse uintptr = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse
@@ -135527,7 +136754,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 {
@@ -135580,7 +136807,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 { /* sqlite3.c:155158:12: */
bp := tls.Alloc(158)
defer tls.Free(158)
@@ -135804,7 +137031,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) {
@@ -135864,6 +137091,13 @@ __3:
return rc
}
+// Return true if pTerm is a virtual table LIMIT or OFFSET term.
+func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* sqlite3.c:155416: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
@@ -135882,11 +137116,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 { /* sqlite3.c:155442: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
@@ -135912,7 +137147,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)
}
@@ -135936,6 +137172,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)
@@ -135952,10 +137189,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:
@@ -135972,7 +137218,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+21715, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21766, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return SQLITE_ERROR
}
@@ -135988,12 +137234,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
@@ -136003,6 +137259,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
+ }
}
}
@@ -136020,17 +137291,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+21715, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21766, 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)
}
@@ -136043,25 +137314,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 { /* sqlite3.c:155634:23: */
var pHidden uintptr = pIdxInfo + 1*96
var zRet uintptr = uintptr(0)
if iCons >= 0 && iCons < (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint {
@@ -136081,6 +137360,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 { /* sqlite3.c:155654: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 { /* sqlite3.c:155674: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 { /* sqlite3.c:155708: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.
//
@@ -136104,9 +137441,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 { /* sqlite3.c:155741:12: */
+ bp := tls.Alloc(12)
+ defer tls.Free(12)
var rc int32 = SQLITE_OK // Return code
var pWInfo uintptr // WHERE analysis context
@@ -136121,30 +137458,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)
@@ -136162,7 +137506,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) {
@@ -136192,7 +137536,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 {
@@ -136207,7 +137551,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
}
@@ -136219,23 +137563,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 { /* sqlite3.c:155872:12: */
+ bp := tls.Alloc(712)
+ defer tls.Free(712)
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
var pWC uintptr
@@ -136246,7 +137590,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
@@ -136272,7 +137616,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 {
@@ -136283,6 +137626,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 {
@@ -136305,15 +137649,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))
}
}
}
@@ -136331,6 +137675,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
@@ -136357,7 +137702,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 { /* sqlite3.c:155998:12: */
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
var mPrereq Bitmask = uint64(0)
var mPrior Bitmask = uint64(0)
@@ -136382,8 +137727,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.
@@ -136395,7 +137740,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)
@@ -136409,7 +137754,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+21741, 0)
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+21792, 0)
rc = SQLITE_OK
} else {
goto __3
@@ -136445,7 +137790,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 { /* sqlite3.c:156076:11: */
var revSet U8 // True if rev is known
var rev U8 // Composite sort order
var revIdx U8 // Index sort order
@@ -136522,7 +137867,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
@@ -136549,7 +137894,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
@@ -136726,7 +138071,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)
}
@@ -136762,7 +138107,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
}
@@ -136813,15 +138158,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 { /* sqlite3.c:156421: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 { /* sqlite3.c:156444:15: */
// TUNING: Estimated cost of a full external sort, where N is
// the number of rows to sort is:
//
@@ -136868,7 +138213,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 { /* sqlite3.c:156497:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -137183,7 +138528,7 @@ __3:
}
if nFrom == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+21776, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21827, 0)
Xsqlite3DbFreeNN(tls, db, pSpace)
return SQLITE_ERROR
}
@@ -137198,7 +138543,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
@@ -137215,7 +138560,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 {
@@ -137235,7 +138580,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 */))
}
}
@@ -137243,7 +138588,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 &&
@@ -137253,7 +138598,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 */))
}
}
@@ -137275,7 +138620,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 { /* sqlite3.c:156889:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -137304,7 +138649,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)
@@ -137350,7 +138695,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)
@@ -137362,10 +138707,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)
@@ -137374,7 +138719,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
}
@@ -137382,7 +138727,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 { /* sqlite3.c:156980: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
@@ -137393,7 +138738,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 { /* sqlite3.c:156993:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -137411,6 +138756,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 { /* sqlite3.c:157054: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) { /* sqlite3.c:157133: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
@@ -137497,16 +138971,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 { /* sqlite3.c:157257: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[]
@@ -137517,12 +138991,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
@@ -137560,26 +139028,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+21794, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21845, 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
@@ -137601,60 +139059,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+21822, 0)
- goto __6
-__5:
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+21873, 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.
@@ -137669,27 +139132,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
@@ -137703,66 +139167,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
@@ -137771,200 +139246,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);
- //
- // 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)
+ // Attempt to omit tables from a join that do not affect the result.
+ // See the comment on whereOmitNoopJoin() for further information.
//
- // 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
@@ -137987,15 +139357,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 {
@@ -138004,29 +139374,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
@@ -138034,82 +139404,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
@@ -138117,51 +139488,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)
@@ -138171,66 +139542,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)
@@ -138238,17 +139617,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.
@@ -138259,13 +139638,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)
}
@@ -138277,7 +139656,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) { /* sqlite3.c:157823:21: */
var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
@@ -138291,7 +139670,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
@@ -138335,12 +139714,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
@@ -138407,9 +139786,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)
@@ -138431,7 +139810,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
@@ -138470,7 +139849,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) {
@@ -138483,7 +139862,7 @@ __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 ||
@@ -138520,7 +139899,7 @@ __4:
goto __5
__5:
i++
- pLevel += 88
+ pLevel += 96
goto __4
goto __6
__6:
@@ -138675,7 +140054,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) { /* sqlite3.c:158261:13: */
var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0))))
if p != 0 {
*(*I64)(unsafe.Pointer(p))++
@@ -138684,7 +140063,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) { /* sqlite3.c:158271:13: */
var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0))))
Xsqlite3_result_int64(tls, pCtx, func() int64 {
if p != 0 {
@@ -138700,13 +140079,13 @@ type CallCount = struct {
FnValue I64
FnStep I64
FnTotal I64
-} /* sqlite3.c:156523:1 */
+} /* sqlite3.c:158280: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) { /* sqlite3.c:158292:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138716,7 +140095,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) { /* sqlite3.c:158303:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138734,9 +140113,9 @@ func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156546:13:
type NthValueCtx = struct {
FnStep I64
FpValue uintptr
-} /* sqlite3.c:156563:1 */
+} /* sqlite3.c:158320: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) { /* sqlite3.c:158324:13: */
var p uintptr
var fVal float64
var iVal I64
@@ -138799,10 +140178,10 @@ __1:
error_out:
Xsqlite3_result_error(tls,
- pCtx, ts+21840, -1)
+ pCtx, ts+21891, -1)
}
-func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:156608:13: */
+func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158365:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 {
@@ -138812,7 +140191,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) { /* sqlite3.c:158377:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{})))
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue == uintptr(0) {
@@ -138825,7 +140204,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) { /* sqlite3.c:158393:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{})))
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 {
@@ -138839,7 +140218,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) { /* sqlite3.c:158411:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138852,7 +140231,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) { /* sqlite3.c:158427:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138865,7 +140244,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) { /* sqlite3.c:158442:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138875,7 +140254,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) { /* sqlite3.c:158455:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138883,7 +140262,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) { /* sqlite3.c:158466:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -138901,7 +140280,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) { /* sqlite3.c:158487:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138911,7 +140290,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) { /* sqlite3.c:158500:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138919,7 +140298,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) { /* sqlite3.c:158511:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 {
@@ -138933,13 +140312,13 @@ type NtileCtx = struct {
FnTotal I64
FnParam I64
FiRow I64
-} /* sqlite3.c:156767:1 */
+} /* sqlite3.c:158524: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) { /* sqlite3.c:158536:13: */
var p uintptr
_ = nArg
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{})))
@@ -138948,14 +140327,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+21896, -1)
+ pCtx, ts+21947, -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) { /* sqlite3.c:158556:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -138963,7 +140342,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) { /* sqlite3.c:158567:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{})))
if p != 0 && (*NtileCtx)(unsafe.Pointer(p)).FnParam > int64(0) {
@@ -138989,10 +140368,10 @@ type LastValueCtx = struct {
FpVal uintptr
FnVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:156837:1 */
+} /* sqlite3.c:158594: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) { /* sqlite3.c:158602:13: */
var p uintptr
_ = nArg
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{})))
@@ -139007,7 +140386,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) { /* sqlite3.c:158620:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -139021,7 +140400,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) { /* sqlite3.c:158637:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 {
@@ -139029,7 +140408,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) { /* sqlite3.c:158644:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{})))
if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 {
@@ -139045,17 +140424,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 + 21941)) /* sqlite3.c:156905:19 */
-var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 21952)) /* sqlite3.c:156906:19 */
-var rankName = *(*[5]int8)(unsafe.Pointer(ts + 21963)) /* sqlite3.c:156907:19 */
-var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 21968)) /* sqlite3.c:156908:19 */
-var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 21981)) /* sqlite3.c:156909:19 */
-var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 21991)) /* sqlite3.c:156910:19 */
-var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 21997)) /* sqlite3.c:156911:19 */
-var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 22008)) /* sqlite3.c:156912:19 */
-var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 22018)) /* sqlite3.c:156913:19 */
-var leadName = *(*[5]int8)(unsafe.Pointer(ts + 22030)) /* sqlite3.c:156914:19 */
-var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22035 /* "lag" */)) /* sqlite3.c:156915:19 */
+var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 21992)) /* sqlite3.c:158662:19 */
+var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 22003)) /* sqlite3.c:158663:19 */
+var rankName = *(*[5]int8)(unsafe.Pointer(ts + 22014)) /* sqlite3.c:158664:19 */
+var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 22019)) /* sqlite3.c:158665:19 */
+var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 22032)) /* sqlite3.c:158666:19 */
+var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 22042)) /* sqlite3.c:158667:19 */
+var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 22048)) /* sqlite3.c:158668:19 */
+var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 22059)) /* sqlite3.c:158669:19 */
+var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 22069)) /* sqlite3.c:158670:19 */
+var leadName = *(*[5]int8)(unsafe.Pointer(ts + 22081)) /* sqlite3.c:158671:19 */
+var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22086 /* "lag" */)) /* sqlite3.c:158672:19 */
// No-op implementations of xStep() and xFinalize(). Used as place-holders
// for built-in window functions that never call those interfaces.
@@ -139064,7 +140443,7 @@ var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22035 /* "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) { /* sqlite3.c:158683:13: */ //NO_TEST
_ = p //NO_TEST
_ = n //NO_TEST
_ = a //NO_TEST
@@ -139072,7 +140451,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) { /* sqlite3.c:158693:13: */
_ = p /*no-op*/
}
@@ -139087,7 +140466,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) { /* sqlite3.c:158724:21: */
Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aWindowFuncs)), int32(uint64(unsafe.Sizeof(aWindowFuncs))/uint64(unsafe.Sizeof(FuncDef{}))))
}
@@ -139106,9 +140485,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}} /* sqlite3.c:158725: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 { /* sqlite3.c:158745:15: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -139119,7 +140498,7 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin
}
}
if p == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+22039, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22090, libc.VaList(bp, zName))
}
return p
}
@@ -139139,7 +140518,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) { /* sqlite3.c:158773:21: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -139163,12 +140542,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+22058, 0)
+ ts+22109, 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+22129, 0)
+ ts+22180, 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},
@@ -139191,7 +140570,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+7828)
+ (*Window)(unsafe.Pointer(pWin)).FpStart = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7825)
}
break
}
@@ -139207,16 +140586,16 @@ type WindowUpdate = struct {
FeStart int32
FeEnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:157051:7 */
+} /* sqlite3.c:158808:7 */
// Context object passed through sqlite3WalkExprList() to
// selectWindowRewriteExprCb() by selectWindowRewriteEList().
-type WindowRewrite = WindowRewrite1 /* sqlite3.c:157091:30 */
+type WindowRewrite = WindowRewrite1 /* sqlite3.c:158848: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 { /* sqlite3.c:158862:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse
@@ -139315,7 +140694,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 { /* sqlite3.c:158944:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSave uintptr = (*WindowRewrite1)(unsafe.Pointer(p)).FpSubSelect
if pSave == pSelect {
@@ -139339,7 +140718,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) { /* sqlite3.c:158971:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -139371,7 +140750,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 { /* sqlite3.c:159005:17: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -139417,7 +140796,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 { /* sqlite3.c:159047: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++
@@ -139425,14 +140804,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 { /* sqlite3.c:159056: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+7912, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ ts+22243, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
}
return WRC_Continue
}
@@ -139442,7 +140821,7 @@ func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr
// rewrites the SELECT statement so that window function xStep functions
// are invoked in the correct order as described under "SELECT REWRITING"
// at the top of this file.
-func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:157315:20: */
+func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:159072:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -139564,7 +140943,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+7421))
+ Xsqlite3Expr(tls, db, TK_INTEGER, ts+7417))
}
pSub = Xsqlite3SelectNew(tls,
@@ -139618,18 +140997,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) { /* sqlite3.c:159231: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 {
@@ -139640,7 +141013,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) { /* sqlite3.c:159242:21: */
if p != 0 {
Xsqlite3WindowUnlinkFromSelect(tls, p)
Xsqlite3ExprDelete(tls, db, (*Window)(unsafe.Pointer(p)).FpFilter)
@@ -139655,7 +141028,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) { /* sqlite3.c:159259:21: */
for p != 0 {
var pNext uintptr = (*Window)(unsafe.Pointer(p)).FpNextWin
Xsqlite3WindowDelete(tls, db, p)
@@ -139668,7 +141041,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 { /* sqlite3.c:159274:13: */
if 0 == Xsqlite3ExprIsConstant(tls, pExpr) {
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
Xsqlite3RenameExprUnmap(tls, pParse, pExpr)
@@ -139680,7 +141053,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 { /* sqlite3.c:159286:23: */
var pWin uintptr
var bImplicitFrame int32
pWin = uintptr(0)
@@ -139713,7 +141086,7 @@ __1:
eStart == TK_FOLLOWING && (eEnd == TK_PRECEDING || eEnd == TK_CURRENT)) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+22192, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+22269, 0)
goto windowAllocErr
__2:
;
@@ -139749,7 +141122,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 { /* sqlite3.c:159358:23: */
if pWin != 0 {
(*Window)(unsafe.Pointer(pWin)).FpPartition = pPartition
(*Window)(unsafe.Pointer(pWin)).FpOrderBy = pOrderBy
@@ -139768,7 +141141,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) { /* sqlite3.c:159385:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -139779,15 +141152,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 + 22224 /* "PARTITION clause" */
+ zErr = ts + 22301 /* "PARTITION clause" */
} else if (*Window)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*Window)(unsafe.Pointer(pWin)).FpOrderBy != 0 {
- zErr = ts + 22241 /* "ORDER BY clause" */
+ zErr = ts + 22318 /* "ORDER BY clause" */
} else if int32((*Window)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 {
- zErr = ts + 22257 /* "frame specificat..." */
+ zErr = ts + 22334 /* "frame specificat..." */
}
if zErr != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+22277, libc.VaList(bp, zErr, (*Window)(unsafe.Pointer(pWin)).FzBase))
+ ts+22354, 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 {
@@ -139802,7 +141175,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) { /* sqlite3.c:159419:21: */
if p != 0 {
*(*uintptr)(unsafe.Pointer(p + 64)) = pWin
@@ -139810,7 +141183,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+22310, 0)
+ ts+22387, 0)
}
} else {
Xsqlite3WindowDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWin)
@@ -139821,7 +141194,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) { /* sqlite3.c:159442: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
@@ -139841,7 +141214,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 { /* sqlite3.c:159464:20: */
var res int32
if p1 == uintptr(0) || p2 == uintptr(0) {
return 1
@@ -139881,7 +141254,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) { /* sqlite3.c:159498: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
@@ -139957,14 +141330,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) { /* sqlite3.c:159585: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+1565, -1)
+ Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, regString, 0, ts+1534, -1)
Xsqlite3VdbeAddOp3(tls, v, OP_Ge, regString, Xsqlite3VdbeCurrentAddr(tls, v)+2, reg)
Xsqlite3VdbeChangeP5(tls, v, uint16(SQLITE_AFF_NUMERIC|SQLITE_JUMPIFNULL))
@@ -139986,17 +141359,17 @@ func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /
}
var azErr = [5]uintptr{
- ts + 22357,
- ts + 22410,
- ts + 21840,
- ts + 22461,
- ts + 22513,
-} /* sqlite3.c:157834:21 */
-var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* sqlite3.c:157841:14 */
+ ts + 22434,
+ ts + 22487,
+ ts + 21891,
+ ts + 22538,
+ ts + 22590,
+} /* sqlite3.c:159586:21 */
+var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* sqlite3.c:159593: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 { /* sqlite3.c:159632:12: */
var pList uintptr
pList = *(*uintptr)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpOwner + 32))
@@ -140021,19 +141394,19 @@ type WindowCodeArg1 = struct {
Fcurrent WindowCsrAndReg
Fend WindowCsrAndReg
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:157887:9 */
+} /* sqlite3.c:159639:9 */
-type WindowCodeArg = WindowCodeArg1 /* sqlite3.c:157887:30 */
+type WindowCodeArg = WindowCodeArg1 /* sqlite3.c:159639:30 */
type WindowCsrAndReg1 = struct {
Fcsr int32
Freg int32
-} /* sqlite3.c:157887:9 */
+} /* sqlite3.c:159639:9 */
-type WindowCsrAndReg = WindowCsrAndReg1 /* sqlite3.c:157888:32 */
+type WindowCsrAndReg = WindowCsrAndReg1 /* sqlite3.c:159640: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) { /* sqlite3.c:159724:13: */
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var pOrderBy uintptr = (*Window)(unsafe.Pointer(pMWin)).FpOrderBy
if pOrderBy != 0 {
@@ -140069,7 +141442,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) { /* sqlite3.c:159761:13: */
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var pWin uintptr
@@ -140176,7 +141549,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) { /* sqlite3.c:159878:13: */
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
@@ -140212,7 +141585,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) { /* sqlite3.c:159917:13: */
var pWin uintptr
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
@@ -140319,7 +141692,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) { /* sqlite3.c:160023:13: */
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var v uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpVdbe
@@ -140402,7 +141775,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 { /* sqlite3.c:160100:12: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var regArg int32
var nArg int32 = 0
@@ -140437,7 +141810,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 { /* sqlite3.c:160132:12: */
var pWin uintptr
if (*Window)(unsafe.Pointer(pMWin)).FregStartRowid != 0 {
return 1
@@ -140462,7 +141835,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) { /* sqlite3.c:160158:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if pOrderBy != 0 {
var nVal int32 = (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr
@@ -140499,7 +141872,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) { /* sqlite3.c:160204: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
@@ -140595,7 +141968,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+1565, -1)
+ Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, regString, 0, ts+1534, -1)
addrGe = Xsqlite3VdbeAddOp3(tls, v, OP_Ge, regString, 0, reg1)
if op == OP_Ge && arith == OP_Add || op == OP_Le && arith == OP_Subtract {
@@ -140622,7 +141995,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 { /* sqlite3.c:160337:12: */
var csr int32
var reg int32
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
@@ -140770,7 +142143,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 { /* sqlite3.c:160486:23: */
var pNew uintptr = uintptr(0)
if p != 0 {
pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Window{})))
@@ -140801,7 +142174,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 { /* sqlite3.c:160519:23: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -140826,7 +142199,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 { /* sqlite3.c:160541:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -141174,7 +142547,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) { /* sqlite3.c:160888:21: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -141571,17 +142944,17 @@ type TrigEvent = struct {
Fa int32
F__ccgo_pad1 [4]byte
Fb uintptr
-} /* sqlite3.c:159536:1 */
+} /* sqlite3.c:161288:1 */
type FrameBound = struct {
FeType int32
F__ccgo_pad1 [4]byte
FpExpr uintptr
-} /* sqlite3.c:159538:1 */
+} /* sqlite3.c:161290: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) { /* sqlite3.c:161296:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
(*Parse)(unsafe.Pointer(pParse)).FdisableLookaside++
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++
@@ -141591,7 +142964,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) { /* sqlite3.c:161329:15: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -141610,19 +142983,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+22563,
+ Xsqlite3ErrorMsg(tls, pParse, ts+22640,
libc.VaList(bp, func() uintptr {
if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != uintptr(0) {
- return ts + 19677 /* "ORDER BY" */
+ return ts + 19707 /* "ORDER BY" */
}
- return ts + 22605 /* "LIMIT" */
+ return ts + 22682 /* "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+22611, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+22688, 0)
}
}
@@ -141630,7 +143003,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 { /* sqlite3.c:161360:17: */
if pSelect != 0 {
(*Select)(unsafe.Pointer(pSelect)).FpWith = pWith
parserDoubleLinkSelect(tls, pParse, pSelect)
@@ -141641,10 +143014,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 { /* sqlite3.c:161372:15: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*Token)(unsafe.Pointer(bp)) = t
@@ -141667,6 +143038,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)
}
@@ -141681,7 +143053,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) { /* sqlite3.c:161408: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)
@@ -141695,14 +143067,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 { /* sqlite3.c:161422: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+22645,
+ Xsqlite3ErrorMsg(tls, pParse, ts+22722,
libc.VaList(bp, (*Token)(unsafe.Pointer(pIdToken)).Fn, (*Token)(unsafe.Pointer(pIdToken)).Fz))
}
Xsqlite3ExprListSetName(tls, pParse, p, pIdToken, 1)
@@ -141770,7 +143142,7 @@ type YYMINORTYPE = struct {
F__ccgo_pad1 [0]uint64
Fyyinit int32
F__ccgo_pad2 [12]byte
-} /* sqlite3.c:159963:3 */
+} /* sqlite3.c:161714:3 */
//************ End control #defines ******************************************
// Define the yytestcase() macro to be a no-op if is not already defined
@@ -141831,600 +143203,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),
+} /* sqlite3.c:161808: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),
+} /* sqlite3.c:162017: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),
+} /* sqlite3.c:162248: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),
+} /* sqlite3.c:162311: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),
+} /* sqlite3.c:162354:27 */
//********* End of lemon-generated parsing tables ****************************
// The next table maps tokens (terminal symbols) into fallback tokens.
@@ -142440,7 +143818,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
@@ -142553,6 +143931,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
@@ -142625,7 +144004,7 @@ var yyFallback = [184]uint16{
uint16(0), // ERROR => nothing
uint16(0), // SPACE => nothing
uint16(0), // ILLEGAL => nothing
-} /* sqlite3.c:160674:25 */
+} /* sqlite3.c:162431:25 */
// The following structure represents a single element of the
// parser's stack. Information stored includes:
@@ -142647,9 +144026,9 @@ type yyStackEntry = struct {
Fmajor uint16
F__ccgo_pad1 [4]byte
Fminor YYMINORTYPE
-} /* sqlite3.c:160878:1 */
+} /* sqlite3.c:162636:1 */
-type YyStackEntry = yyStackEntry /* sqlite3.c:160885:29 */
+type YyStackEntry = yyStackEntry /* sqlite3.c:162643:29 */
// The state of the parser is completely contained in an instance of
// the following structure
@@ -142658,9 +144037,9 @@ type yyParser = struct {
FpParse uintptr
Fyystack [100]YyStackEntry
FyystackEnd uintptr
-} /* sqlite3.c:160889:1 */
+} /* sqlite3.c:162647:1 */
-type YyParser = yyParser /* sqlite3.c:160908:25 */
+type YyParser = yyParser /* sqlite3.c:162666:25 */
// #include <assert.h>
@@ -142670,7 +144049,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) { /* sqlite3.c:163481:21: */
var yypParser uintptr = yypRawParser
(*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
(*YyParser)(unsafe.Pointer(yypParser)).Fyytos = yypParser + 16 /* &.yystack */
@@ -142685,7 +144064,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) { /* sqlite3.c:163539:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
switch int32(yymajor) {
@@ -142699,137 +144078,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)
}
@@ -142844,7 +144223,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) { /* sqlite3.c:163664:13: */
var yytos uintptr
yytos = libc.PostDecUintptr(&(*YyParser)(unsafe.Pointer(pParser)).Fyytos, 24)
@@ -142852,7 +144231,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) { /* sqlite3.c:163682:21: */
var pParser uintptr = p
for (*YyParser)(unsafe.Pointer(pParser)).Fyytos > pParser+16 {
yy_pop_parser_stack(tls, pParser)
@@ -142875,14 +144254,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 { /* sqlite3.c:163762: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)
@@ -142915,7 +144294,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 { /* sqlite3.c:163827:21: */
var i int32
i = int32(yy_reduce_ofst[stateno])
@@ -142926,7 +144305,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) { /* sqlite3.c:163856:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
for (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > yypParser+16 {
@@ -142936,7 +144315,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:162096:13:
// stack every overflows
//******* Begin %stack_overflow code *****************************************
- Xsqlite3ErrorMsg(tls, pParse, ts+22683, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+22760, 0)
//******* End %stack_overflow code *******************************************
(*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
@@ -142945,7 +144324,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) { /* sqlite3.c:163899:13: */
var yytos uintptr
(*YyParser)(unsafe.Pointer(yypParser)).Fyytos += 24
if (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > (*YyParser)(unsafe.Pointer(yypParser)).FyystackEnd {
@@ -142965,413 +144344,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 ::=
+} /* sqlite3.c:163940: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
@@ -143584,196 +144964,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 ::=
+} /* sqlite3.c:164347:26 */
// Forward Declaration
@@ -143785,7 +145166,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 { /* sqlite3.c:164764:21: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -143840,7 +145221,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*/
}
@@ -143891,7 +145272,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
}
@@ -143930,21 +145311,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+16134, 5) == 0 {
+ if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(5) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+16166, 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+22705, libc.VaList(bp, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22782, 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+16047, 6) == 0 {
+ if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+16079, 6) == 0 {
*(*U32)(unsafe.Pointer(bp + 40)) = U32(TF_Strict)
} else {
*(*U32)(unsafe.Pointer(bp + 40)) = U32(0)
- Xsqlite3ErrorMsg(tls, pParse, ts+22705, libc.VaList(bp+16, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22782, 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))
@@ -144157,11 +145538,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
}
@@ -144357,11 +145738,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)
}
@@ -144384,7 +145765,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)
}
@@ -144393,9 +145774,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))
}
@@ -144549,9 +145930,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))
}
@@ -144566,11 +145947,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)
}
@@ -144680,7 +146061,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+22732)
+ Xsqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), ts+22809)
*(*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))
}
@@ -144783,25 +146164,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)
}
@@ -144817,6 +146193,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
@@ -144833,7 +146212,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+22741, libc.VaList(bp+32, bp+112))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22818, 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))
@@ -145002,14 +146381,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)))
@@ -145024,7 +146411,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
@@ -145037,9 +146424,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 + 7828 /* "1" */
+ return ts + 7825 /* "1" */
}
- return ts + 7421 /* "0" */
+ return ts + 7417 /* "0" */
}())
} else {
var pRHS uintptr = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + 8)).FpExpr
@@ -145071,14 +146458,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)))
@@ -145088,7 +146475,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))
@@ -145108,7 +146495,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)))
@@ -145116,7 +146503,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 {
@@ -145133,41 +146520,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)),
@@ -145177,69 +146564,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
@@ -145248,7 +146635,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 {
@@ -145259,109 +146646,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+22765, 0)
+ ts+22842, 0)
}
break
- case uint32(268): /* tridxby ::= INDEXED BY nm */
+ case uint32(269): /* tridxby ::= INDEXED BY nm */
{
Xsqlite3ErrorMsg(tls, pParse,
- ts+22860, 0)
+ ts+22937, 0)
}
break
- case uint32(269): /* tridxby ::= NOT INDEXED */
+ case uint32(270): /* tridxby ::= NOT INDEXED */
{
Xsqlite3ErrorMsg(tls, pParse,
- ts+22944, 0)
+ ts+23021, 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 {
@@ -145369,7 +146756,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 {
@@ -145377,151 +146764,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)))
@@ -145530,7 +146917,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))
@@ -145539,113 +146926,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))
@@ -145656,7 +147043,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 {
@@ -145668,13 +147055,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 {
@@ -145682,74 +147069,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 ***********************************************
}
@@ -145774,7 +147161,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) { /* sqlite3.c:166320:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
*(*Token)(unsafe.Pointer(bp + 8)) = yyminor
@@ -145784,9 +147171,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+22741, libc.VaList(bp, bp+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22818, libc.VaList(bp, bp+8))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+23029, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+23106, 0)
}
//*********** End %syntax_error code *****************************************
@@ -145794,7 +147181,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) { /* sqlite3.c:166344:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
@@ -145824,7 +147211,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) { /* sqlite3.c:166385:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -145878,7 +147265,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 { /* sqlite3.c:166602:20: */
return int32(yyFallback[iToken])
}
@@ -145929,7 +147316,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 */
+} /* sqlite3.c:166674:28 */
// The charMap() macro maps alphabetic characters (only) into their
// lower-case ASCII equivalent. On ASCII machines, this is just
@@ -146015,7 +147402,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 */
+} /* sqlite3.c:166790: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),
@@ -146028,7 +147415,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 */
+} /* sqlite3.c:166830: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.
@@ -146045,7 +147432,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 */
+} /* sqlite3.c:166845: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),
@@ -146060,7 +147447,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 */
+} /* sqlite3.c:166860:28 */
// aKWOffset[i] is the index into zKWText[] of the start of
// the text for the i-th keyword.
var aKWOffset = [147]uint16{
@@ -146076,7 +147463,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 */
+} /* sqlite3.c:166876: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),
@@ -146109,7 +147496,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 */
+} /* sqlite3.c:166891:28 */
// Hash table decoded:
// 0: INSERT
@@ -146242,7 +147629,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 { /* sqlite3.c:167055:12: */
var i int32
var j int32
var zKW uintptr
@@ -146420,7 +147807,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 { /* sqlite3.c:167229:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -146429,7 +147816,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 { /* sqlite3.c:167235:16: */
if i < 0 || i >= SQLITE_N_KEYWORD {
return SQLITE_ERROR
}
@@ -146438,11 +147825,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 { /* sqlite3.c:167241: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 { /* sqlite3.c:167242:16: */
return libc.Bool32(TK_ID != Xsqlite3KeywordCode(tls, zName, nName))
}
@@ -146465,20 +147852,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 { /* sqlite3.c:167289: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 { /* sqlite3.c:167296: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 ||
@@ -146521,7 +147908,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 { /* sqlite3.c:167345:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -146538,7 +147925,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 { /* sqlite3.c:167353:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -146552,7 +147939,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 { /* sqlite3.c:167360:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -146565,7 +147952,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 { /* sqlite3.c:167372:20: */
var i int32
var c int32
switch int32(aiClass[*(*uint8)(unsafe.Pointer(z))]) { // Switch on the character-class of the first byte
@@ -146587,6 +147974,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
@@ -146828,7 +148218,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 == ')' {
@@ -146923,25 +148313,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 { /* sqlite3.c:167666: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))
@@ -146950,26 +148336,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
}
@@ -146977,31 +148363,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+23046, 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+23123, 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 {
@@ -147013,36 +148403,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+3623, 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+23073,
- 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+3614, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc)))
+ }
+ Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+23148, 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)
@@ -147127,7 +148504,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 { /* sqlite3.c:168058:16: */
var state U8 = U8(0) // Current state, using numbers defined in header comment
var token U8
@@ -147230,7 +148607,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:166305:
fallthrough
case 'C':
{
- if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+23084, 6) == 0 {
+ if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+23159, 6) == 0 {
token = U8(TkCREATE)
} else {
token = U8(TkOTHER)
@@ -147243,11 +148620,11 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:166305:
fallthrough
case 'T':
{
- if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+19797, 7) == 0 {
+ if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+19827, 7) == 0 {
token = U8(TkTRIGGER)
- } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+23091, 4) == 0 {
+ } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+23166, 4) == 0 {
token = U8(TkTEMP)
- } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+23096, 9) == 0 {
+ } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+23171, 9) == 0 {
token = U8(TkTEMP)
} else {
token = U8(TkOTHER)
@@ -147260,9 +148637,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:166305:
fallthrough
case 'E':
{
- if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+23106, 3) == 0 {
+ if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+23181, 3) == 0 {
token = U8(TkEND)
- } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+23110, 7) == 0 {
+ } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+23185, 7) == 0 {
token = U8(TkEXPLAIN)
} else {
token = U8(TkOTHER)
@@ -147304,12 +148681,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 */
+} /* sqlite3.c:168066: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 { /* sqlite3.c:168223:16: */
var pVal uintptr
var zSql8 uintptr
var rc int32
@@ -147336,7 +148713,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 { /* sqlite3.c:168375:12: */
_ = db
return Xsqlite3FaultSim(tls, 500)
}
@@ -147348,11 +148725,11 @@ var sqlite3BuiltinExtensions = [4]uintptr{
0,
0,
0,
-} /* sqlite3.c:166652:12 */
+} /* sqlite3.c:168402: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 { /* sqlite3.c:168449:23: */
return uintptr(unsafe.Pointer(&Xsqlite3_version))
}
@@ -147365,14 +148742,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 { /* sqlite3.c:168462: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 { /* sqlite3.c:168468:16: */
return SQLITE_THREADSAFE
}
@@ -147385,14 +148762,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) /* sqlite3.c:168499: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) /* sqlite3.c:168508:17 */
// Initialize SQLite.
//
@@ -147423,7 +148800,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 { /* sqlite3.c:168541:16: */
var pMainMtx uintptr // The main static mutex
var rc int32 // Result code
@@ -147549,7 +148926,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 { /* sqlite3.c:168716:16: */
if Xsqlite3Config.FisInit != 0 {
Xsqlite3_os_end(tls)
@@ -147588,7 +148965,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 { /* sqlite3.c:168770:16: */
var ap Va_list
_ = ap
var rc int32 = SQLITE_OK
@@ -147596,7 +148973,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, 168776)
}
ap = va
@@ -147866,7 +149243,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 { /* sqlite3.c:169088:12: */
var pStart uintptr
var szAlloc Sqlite3_int64 = Sqlite3_int64(sz) * Sqlite3_int64(cnt)
var nBig int32 // Number of full-size slots
@@ -147964,13 +149341,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 { /* sqlite3.c:169188: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 { /* sqlite3.c:169202:16: */
var i int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -147989,7 +149366,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 { /* sqlite3.c:169226:16: */
var i int32
var rc int32 = SQLITE_OK
var bSeenBusy int32 = 0
@@ -148018,7 +149395,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 { /* sqlite3.c:169255:16: */
var ap Va_list
_ = ap
var rc int32
@@ -148097,11 +149474,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 */
+} /* sqlite3.c:169278: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 { /* sqlite3.c:169330:12: */
var rc int32
var n int32
_ = NotUsed
@@ -148123,7 +149500,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 { /* sqlite3.c:169353:12: */
var pK1 uintptr = pKey1
var pK2 uintptr = pKey2
for nKey1 != 0 && int32(*(*U8)(unsafe.Pointer(pK1 + uintptr(nKey1-1)))) == ' ' {
@@ -148136,7 +149513,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 { /* sqlite3.c:169368: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
@@ -148150,7 +149527,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 { /* sqlite3.c:169382:12: */
var r int32 = Xsqlite3_strnicmp(tls,
pKey1, pKey2, func() int32 {
if nKey1 < nKey2 {
@@ -148166,39 +149543,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 { /* sqlite3.c:169399: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) { /* sqlite3.c:169412: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 { /* sqlite3.c:169427: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 { /* sqlite3.c:169436: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 { /* sqlite3.c:169443: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 { /* sqlite3.c:169452: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) { /* sqlite3.c:169461: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
@@ -148213,7 +149590,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) { /* sqlite3.c:169478:13: */
var pDestructor uintptr
pDestructor = *(*uintptr)(unsafe.Pointer(p + 64))
@@ -148228,7 +149605,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) { /* sqlite3.c:169495:13: */
var i int32
var p uintptr
Xsqlite3BtreeEnterAll(tls, db)
@@ -148255,7 +149632,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 { /* sqlite3.c:169526:12: */
var j int32
if (*Sqlite3)(unsafe.Pointer(db)).FpVdbe != 0 {
@@ -148271,14 +149648,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 { /* sqlite3.c:169540: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, 169547)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_CLOSE != 0 {
@@ -148302,7 +149679,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+23118, 0)
+ ts+23193, 0)
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
return SQLITE_BUSY
}
@@ -148315,7 +149692,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 { /* sqlite3.c:169594:16: */
var iDb int32
var nDb int32
var iTxn int32 = -1
@@ -148352,11 +149729,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 { /* sqlite3.c:169629: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 { /* sqlite3.c:169630:16: */
return sqlite3Close(tls, db, 1)
}
@@ -148366,7 +149743,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) { /* sqlite3.c:169641:21: */
var i uintptr // Hash table iterator
var j int32
@@ -148420,7 +149797,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)
@@ -148476,7 +149853,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) { /* sqlite3.c:169764:21: */
var i int32
var inTrans int32 = 0
var schemaChange int32
@@ -148526,24 +149903,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 + 23186 /* "unknown error" */
+func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:169925:27: */
+ var zErr uintptr = ts + 23261 /* "unknown error" */
switch rc {
case SQLITE_ABORT | int32(2)<<8:
{
- zErr = ts + 23200 /* "abort due to ROL..." */
+ zErr = ts + 23275 /* "abort due to ROL..." */
break
}
case SQLITE_ROW:
{
- zErr = ts + 23222 /* "another row avai..." */
+ zErr = ts + 23297 /* "another row avai..." */
break
}
case SQLITE_DONE:
{
- zErr = ts + 23244 /* "no more rows ava..." */
+ zErr = ts + 23319 /* "no more rows ava..." */
break
}
@@ -148561,36 +149938,36 @@ func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:168175:27: *
}
var aMsg = [29]uintptr{
- ts + 23267,
- ts + 23280,
+ ts + 23342,
+ ts + 23355,
/* SQLITE_INTERNAL */ uintptr(0),
- ts + 23296,
- ts + 23321,
- ts + 23335,
- ts + 23354,
- ts + 6050,
- ts + 23379,
- ts + 23416,
- ts + 23428,
- ts + 23443,
- ts + 23476,
- ts + 23494,
- ts + 23519,
- ts + 23548,
+ ts + 23371,
+ ts + 23396,
+ ts + 23410,
+ ts + 23429,
+ ts + 1470,
+ ts + 23454,
+ ts + 23491,
+ ts + 23503,
+ ts + 23518,
+ ts + 23551,
+ ts + 23569,
+ ts + 23594,
+ ts + 23623,
/* SQLITE_EMPTY */ uintptr(0),
- ts + 5780,
- ts + 5276,
- ts + 23565,
- ts + 23583,
- ts + 23601,
+ ts + 5799,
+ ts + 5285,
+ ts + 23640,
+ ts + 23658,
+ ts + 23676,
/* SQLITE_NOLFS */ uintptr(0),
- ts + 23635,
+ ts + 23710,
/* SQLITE_FORMAT */ uintptr(0),
- ts + 23656,
- ts + 23682,
- ts + 23705,
- ts + 23726,
-} /* sqlite3.c:168176:20 */
+ ts + 23731,
+ ts + 23757,
+ ts + 23780,
+ ts + 23801,
+} /* sqlite3.c:169926:20 */
// This routine implements a busy callback that sleeps and tries
// again until a timeout value is reached. The timeout value is
@@ -148599,7 +149976,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 { /* sqlite3.c:169995:12: */
var db uintptr = ptr
var tmout int32 = (*Sqlite3)(unsafe.Pointer(db)).FbusyTimeout
var delay int32
@@ -148622,8 +149999,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)} /* sqlite3.c:170002: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:170004:19 */
// Invoke the given busy handler.
//
@@ -148632,7 +150009,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 { /* sqlite3.c:170047:20: */
var rc int32
if (*BusyHandler)(unsafe.Pointer(p)).FxBusyHandler == uintptr(0) || (*BusyHandler)(unsafe.Pointer(p)).FnBusy < 0 {
return 0
@@ -148650,7 +150027,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 { /* sqlite3.c:170063:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FxBusyHandler = xBusy
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FpBusyArg = pArg
@@ -148663,7 +150040,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) { /* sqlite3.c:170086:17: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if nOps > 0 {
(*Sqlite3)(unsafe.Pointer(db)).FxProgress = xProgress
@@ -148679,7 +150056,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 { /* sqlite3.c:170117:16: */
if ms > 0 {
Xsqlite3_busy_handler(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -148693,7 +150070,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) { /* sqlite3.c:170134:17: */
libc.AtomicStoreNInt32(db+432, int32(1), 0)
}
@@ -148701,7 +150078,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 { /* sqlite3.c:170151:20: */
var p uintptr
var extraFlags int32
@@ -148711,7 +150088,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, 170176)
}
extraFlags = enc & (SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS)
@@ -148769,7 +150146,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+23742, 0)
+ ts+23817, 0)
return SQLITE_BUSY
} else {
@@ -148816,7 +150193,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 { /* sqlite3.c:170285:12: */
var rc int32
var pArg uintptr
rc = SQLITE_ERROR
@@ -148858,22 +150235,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 { /* sqlite3.c:170336: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 { /* sqlite3.c:170349: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 { /* sqlite3.c:170363: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 { /* sqlite3.c:170380:16: */
var rc int32
var zFunc8 uintptr
@@ -148893,7 +150270,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) { /* sqlite3.c:170416:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148902,7 +150279,7 @@ func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUs
_ = NotUsed
_ = NotUsed2
zErr = Xsqlite3_mprintf(tls,
- ts+23805, libc.VaList(bp, zName))
+ ts+23880, libc.VaList(bp, zName))
Xsqlite3_result_error(tls, context, zErr, -1)
Xsqlite3_free(tls, zErr)
}
@@ -148917,7 +150294,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 { /* sqlite3.c:170442:16: */
var rc int32
var zCopy uintptr
@@ -148943,7 +150320,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 { /* sqlite3.c:170475:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -148961,7 +150338,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 { /* sqlite3.c:170496:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if mTrace == uint32(0) {
xTrace = uintptr(0)
@@ -148982,16 +150359,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 { /* sqlite3.c:170526: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
@@ -149000,7 +150377,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 { /* sqlite3.c:170556:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -149013,7 +150390,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 { /* sqlite3.c:170581:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -149026,7 +150403,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 { /* sqlite3.c:170606:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -149039,7 +150416,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 { /* sqlite3.c:170632:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pRet = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdateArg
@@ -149051,7 +150428,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 { /* sqlite3.c:170652: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)
@@ -149067,7 +150444,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 { /* sqlite3.c:170683:20: */
if nFrame >= int32(pClientData) {
Xsqlite3BeginBenignMalloc(tls)
Xsqlite3_wal_checkpoint(tls, db, zDb)
@@ -149085,7 +150462,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 { /* sqlite3.c:170709:16: */
if nFrame > 0 {
Xsqlite3_wal_hook(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32) int32
@@ -149098,7 +150475,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 { /* sqlite3.c:170730:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pRet = (*Sqlite3)(unsafe.Pointer(db)).FpWalArg
@@ -149109,7 +150486,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 { /* sqlite3.c:170757:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -149138,7 +150515,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+23856, libc.VaList(bp, zDb))
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+23931, libc.VaList(bp, zDb))
} else {
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0
rc = Xsqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt)
@@ -149159,7 +150536,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 { /* sqlite3.c:170821: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))
@@ -149183,7 +150560,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 { /* sqlite3.c:170848: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
@@ -149225,19 +150602,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 { /* sqlite3.c:170894: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 { /* sqlite3.c:170915: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, 170921))
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -149258,9 +150635,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 { /* sqlite3.c:170941: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 { /* sqlite3.c:170956:23: */
var z uintptr
if !(db != 0) {
return uintptr(uintptr(unsafe.Pointer(&outOfMem)))
@@ -149289,18 +150677,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 */
+} /* sqlite3.c:170957: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 */
+} /* sqlite3.c:170960: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 { /* sqlite3.c:170998:16: */
if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3MisuseError(tls, 169237)
+ return Xsqlite3MisuseError(tls, 171000)
}
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return SQLITE_NOMEM
@@ -149308,9 +150696,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 { /* sqlite3.c:171007:16: */
if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3MisuseError(tls, 169246)
+ return Xsqlite3MisuseError(tls, 171009)
}
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return SQLITE_NOMEM
@@ -149318,7 +150706,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 { /* sqlite3.c:171016:16: */
if db != 0 {
return (*Sqlite3)(unsafe.Pointer(db)).FiSysErrno
}
@@ -149328,13 +150716,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 { /* sqlite3.c:171025: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 { /* sqlite3.c:171033:12: */
var pColl uintptr
var enc2 int32
@@ -149347,7 +150735,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, 171057)
}
// Check if this call is removing or replacing an existing collation
@@ -149357,7 +150745,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+23877, 0)
+ ts+23952, 0)
return SQLITE_BUSY
}
Xsqlite3ExpirePreparedStatements(tls, db, 0)
@@ -149410,7 +150798,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 */
+} /* sqlite3.c:171110:18 */
// Make sure the hard limits are set to reasonable values
@@ -149422,7 +150810,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 { /* sqlite3.c:171173:16: */
var oldLimit int32
// EVIDENCE-OF: R-30189-54097 For each limit category SQLITE_LIMIT_NAME
@@ -149469,7 +150857,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 { /* sqlite3.c:171245:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -149502,7 +150890,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+23945, uint64(5)) == 0) {
+ nUri >= 5 && libc.Xmemcmp(tls, zUri, ts+24020, uint64(5)) == 0) {
goto __1
} // Input character index
iOut = 0 // Output character index
@@ -149550,10 +150938,10 @@ __8:
goto __8
__9:
;
- if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+23951, zUri+7, uint64(9)) != 0)) {
+ if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+24026, zUri+7, uint64(9)) != 0)) {
goto __10
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+23961,
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24036,
libc.VaList(bp, iIn-7, zUri+7))
rc = SQLITE_ERROR
goto parse_uri_out
@@ -149675,7 +151063,7 @@ __27:
zVal = zOpt + uintptr(nOpt+1)
nVal = Xsqlite3Strlen30(tls, zVal)
- if !(nOpt == 3 && libc.Xmemcmp(tls, ts+23989, zOpt, uint64(3)) == 0) {
+ if !(nOpt == 3 && libc.Xmemcmp(tls, ts+24064, zOpt, uint64(3)) == 0) {
goto __29
}
zVfs = zVal
@@ -149686,17 +151074,17 @@ __29:
mask = 0
limit = 0
- if !(nOpt == 5 && libc.Xmemcmp(tls, ts+23993, zOpt, uint64(5)) == 0) {
+ if !(nOpt == 5 && libc.Xmemcmp(tls, ts+24068, zOpt, uint64(5)) == 0) {
goto __31
}
mask = SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_PRIVATECACHE
aMode = uintptr(unsafe.Pointer(&aCacheMode))
limit = mask
- zModeType = ts + 23993 /* "cache" */
+ zModeType = ts + 24068 /* "cache" */
__31:
;
- if !(nOpt == 4 && libc.Xmemcmp(tls, ts+23999, zOpt, uint64(4)) == 0) {
+ if !(nOpt == 4 && libc.Xmemcmp(tls, ts+24074, zOpt, uint64(4)) == 0) {
goto __32
}
@@ -149704,7 +151092,7 @@ __31:
SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY
aMode = uintptr(unsafe.Pointer(&aOpenMode))
limit = int32(uint32(mask) & flags)
- zModeType = ts + 3232 /* "access" */
+ zModeType = ts + 3223 /* "access" */
__32:
;
@@ -149735,7 +151123,7 @@ __36:
if !(mode == 0) {
goto __38
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24004, libc.VaList(bp+16, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24079, libc.VaList(bp+16, zModeType, zVal))
rc = SQLITE_ERROR
goto parse_uri_out
__38:
@@ -149743,7 +151131,7 @@ __38:
if !(mode&libc.CplInt32(SQLITE_OPEN_MEMORY) > limit) {
goto __39
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24024,
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24099,
libc.VaList(bp+32, zModeType, zVal))
rc = SQLITE_PERM
goto parse_uri_out
@@ -149786,7 +151174,7 @@ __2:
if !(*(*uintptr)(unsafe.Pointer(ppVfs)) == uintptr(0)) {
goto __42
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24048, libc.VaList(bp+48, zVfs))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24123, libc.VaList(bp+48, zVfs))
rc = SQLITE_ERROR
__42:
;
@@ -149807,24 +151195,24 @@ type OpenMode = struct {
Fz uintptr
Fmode int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:169624:9 */
+} /* sqlite3.c:171387:9 */
var aCacheMode = [3]OpenMode{
- {Fz: ts + 24064, Fmode: SQLITE_OPEN_SHAREDCACHE},
- {Fz: ts + 24071, Fmode: SQLITE_OPEN_PRIVATECACHE},
+ {Fz: ts + 24139, Fmode: SQLITE_OPEN_SHAREDCACHE},
+ {Fz: ts + 24146, Fmode: SQLITE_OPEN_PRIVATECACHE},
{},
-} /* sqlite3.c:169633:34 */
+} /* sqlite3.c:171396:34 */
var aOpenMode = [5]OpenMode{
- {Fz: ts + 24079, Fmode: SQLITE_OPEN_READONLY},
- {Fz: ts + 24082, Fmode: SQLITE_OPEN_READWRITE},
- {Fz: ts + 24085, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE},
- {Fz: ts + 17229, Fmode: SQLITE_OPEN_MEMORY},
+ {Fz: ts + 24154, Fmode: SQLITE_OPEN_READONLY},
+ {Fz: ts + 24157, Fmode: SQLITE_OPEN_READWRITE},
+ {Fz: ts + 24160, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE},
+ {Fz: ts + 17261, Fmode: SQLITE_OPEN_MEMORY},
{},
-} /* sqlite3.c:169645:34 */
+} /* sqlite3.c:171408: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 { /* sqlite3.c:171482:19: */
zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1)
for zFilename != uintptr(0) && *(*int8)(unsafe.Pointer(zFilename)) != 0 {
var x int32 = libc.Xstrcmp(tls, zFilename, zParam)
@@ -149840,7 +151228,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 { /* sqlite3.c:171500:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
*(*uint32)(unsafe.Pointer(bp + 8)) = flags
@@ -149992,10 +151380,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+21635, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ createCollation(tls, db, ts+21686, 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+24089, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ createCollation(tls, db, ts+24164, 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) {
@@ -150024,7 +151412,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, 171713) // IMP: R-18321-05872
goto __17
__16:
rc = Xsqlite3ParseUri(tls, zVfs, zFilename, bp+8, db, bp+16, bp+24)
@@ -150041,7 +151429,7 @@ __19:
;
Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 {
- return ts + 3623 /* "%s" */
+ return ts + 3614 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */))))
@@ -150079,9 +151467,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 + 6327 /* "main" */
+ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FzDbSName = ts + 6332 /* "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 + 23091 /* "temp" */
+ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 23166 /* "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)
@@ -150180,17 +151568,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 { /* sqlite3.c:171835: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 { /* sqlite3.c:171842: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 { /* sqlite3.c:171855:16: */
var zFilename8 uintptr // zFilename encoded in UTF-8 instead of UTF-16
var pVal uintptr
var rc int32
@@ -150201,7 +151589,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /*
return rc
}
if zFilename == uintptr(0) {
- zFilename = ts + 24095 /* "\x00\x00" */
+ zFilename = ts + 24170 /* "\x00\x00" */
}
pVal = Xsqlite3ValueNew(tls, uintptr(0))
Xsqlite3ValueSetStr(tls, pVal, -1, zFilename, uint8(SQLITE_UTF16LE), uintptr(0))
@@ -150211,7 +151599,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
@@ -150222,12 +151610,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 { /* sqlite3.c:171894: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 { /* sqlite3.c:171907:16: */
var rc int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -150239,7 +151627,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 { /* sqlite3.c:171932:16: */
var rc int32 = SQLITE_OK
var zName8 uintptr
@@ -150257,7 +151645,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 { /* sqlite3.c:171962:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = xCollNeeded
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = uintptr(0)
@@ -150268,7 +151656,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 { /* sqlite3.c:171983:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = uintptr(0)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = xCollNeeded16
@@ -150279,7 +151667,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 { /* sqlite3.c:172005:16: */
return SQLITE_OK
}
@@ -150287,7 +151675,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 { /* sqlite3.c:172016:16: */
return int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)
}
@@ -150300,28 +151688,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 { /* sqlite3.c:172037:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
- Xsqlite3_log(tls, iErr, ts+24098,
+ Xsqlite3_log(tls, iErr, ts+24173,
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 { /* sqlite3.c:172042:20: */
- return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+24123)
+ return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+24198)
}
-func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:170283:20: */
+func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172046:20: */
- return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+24143)
+ return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+24218)
}
-func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:170287:20: */
+func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172050:20: */
- return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+24150)
+ return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+24225)
}
// This is a convenience routine that makes sure that all thread-specific
@@ -150329,12 +151717,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) { /* sqlite3.c:172081: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 { /* sqlite3.c:172089:16: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -150448,7 +151836,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 + 1112 /* "INTEGER" */
+ zDataType = ts + 1099 /* "INTEGER" */
primarykey = 1
__13:
;
@@ -150500,14 +151888,14 @@ __19:
goto __20
}
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))
- *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+24167, libc.VaList(bp, zTableName,
+ *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+24242, libc.VaList(bp, zTableName,
zColumnName))
rc = SQLITE_ERROR
__20:
;
Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 {
- return ts + 3623 /* "%s" */
+ return ts + 3614 /* "%s" */
}
return uintptr(0)
}(), libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */))))
@@ -150518,7 +151906,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 { /* sqlite3.c:172207:16: */
var pVfs uintptr
var rc int32
pVfs = Xsqlite3_vfs_find(tls, uintptr(0))
@@ -150533,7 +151921,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 { /* sqlite3.c:172223:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FerrMask = func() int32 {
if onoff != 0 {
@@ -150546,7 +151934,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 { /* sqlite3.c:172236:16: */
var rc int32 = SQLITE_ERROR
var pBtree uintptr
@@ -150591,7 +151979,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 { /* sqlite3.c:172286:16: */
var rc int32 = 0
var ap Va_list
_ = ap
@@ -150808,13 +152196,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
}
@@ -151006,6 +152407,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
@@ -151017,7 +152438,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 { /* sqlite3.c:172782: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--
}
@@ -151026,7 +152447,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 { /* sqlite3.c:172793:13: */
var n Size_t = libc.Xstrlen(tls, z)
libc.Xmemcpy(tls, p, z, n+uint64(1))
return p + uintptr(n) + uintptr(1)
@@ -151039,7 +152460,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 { /* sqlite3.c:172808:17: */
var nByte Sqlite3_int64
var i int32
var pResult uintptr
@@ -151070,7 +152491,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) { /* sqlite3.c:172844:17: */
if p == uintptr(0) {
return
}
@@ -151087,7 +152508,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 { /* sqlite3.c:172862:23: */
if zFilename == uintptr(0) || zParam == uintptr(0) {
return uintptr(0)
}
@@ -151096,7 +152517,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 { /* sqlite3.c:172871:23: */
if zFilename == uintptr(0) || N < 0 {
return uintptr(0)
}
@@ -151113,7 +152534,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 { /* sqlite3.c:172885:16: */
var z uintptr = Xsqlite3_uri_parameter(tls, zFilename, zParam)
bDflt = libc.Bool32(bDflt != 0)
if z != 0 {
@@ -151123,7 +152544,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 { /* sqlite3.c:172894:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -151144,14 +152565,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 { /* sqlite3.c:172917: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 { /* sqlite3.c:172921:23: */
if zFilename == uintptr(0) {
return uintptr(0)
}
@@ -151164,7 +152585,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 { /* sqlite3.c:172931:23: */
zFilename = Xsqlite3_filename_journal(tls, zFilename)
if zFilename != 0 {
zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1)
@@ -151173,7 +152594,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 { /* sqlite3.c:172944:22: */
var iDb int32
if zDbName != 0 {
iDb = Xsqlite3FindDbName(tls, db, zDbName)
@@ -151188,7 +152609,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 { /* sqlite3.c:172953:23: */
var pBt uintptr
pBt = Xsqlite3DbNameToBtree(tls, db, zDbName)
if pBt != 0 {
@@ -151199,7 +152620,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 { /* sqlite3.c:172969:16: */
var pBt uintptr
pBt = Xsqlite3DbNameToBtree(tls, db, zDbName)
if pBt != 0 {
@@ -151210,7 +152631,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 { /* sqlite3.c:172986:16: */
var rc int32 = SQLITE_ERROR
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -151233,7 +152654,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 { /* sqlite3.c:173022:16: */
var rc int32 = SQLITE_ERROR
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -151276,7 +152697,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 { /* sqlite3.c:173078:16: */
var rc int32 = SQLITE_ERROR
var iDb int32
@@ -151297,7 +152718,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) { /* sqlite3.c:173109:17: */
Xsqlite3_free(tls, pSnapshot)
}
@@ -151306,7 +152727,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 { /* sqlite3.c:173122:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -151318,7 +152739,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* sql
azCompileOpt = Xsqlite3CompileOptions(tls, bp)
- if Xsqlite3_strnicmp(tls, zOptName, ts+24195, 7) == 0 {
+ if Xsqlite3_strnicmp(tls, zOptName, ts+24270, 7) == 0 {
zOptName += uintptr(7)
}
n = Xsqlite3Strlen30(tls, zOptName)
@@ -151336,7 +152757,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 { /* sqlite3.c:173155:23: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -151381,11 +152802,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) /* sqlite3.c:173207: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) { /* sqlite3.c:173250:13: */
var pp uintptr
for pp = uintptr(unsafe.Pointer(&sqlite3BlockedList)); *(*uintptr)(unsafe.Pointer(pp)) != 0; pp = *(*uintptr)(unsafe.Pointer(pp)) + 832 {
@@ -151398,7 +152819,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) { /* sqlite3.c:173265: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 {
@@ -151408,13 +152829,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) { /* sqlite3.c:173280: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) { /* sqlite3.c:173288:13: */
Xsqlite3_mutex_leave(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN))
}
@@ -151438,7 +152859,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 { /* sqlite3.c:173315:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pArg
@@ -151481,7 +152902,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 + 24203 /* "database is dead..." */
+ return ts + 24278 /* "database is dead..." */
}
return uintptr(0)
}(), 0)
@@ -151493,7 +152914,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) { /* sqlite3.c:173365:21: */
enterMutex(tls)
if (*Sqlite3)(unsafe.Pointer(db)).FpBlockingConnection == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FpUnlockConnection == uintptr(0) {
addToBlockedList(tls, db)
@@ -151519,7 +152940,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) { /* sqlite3.c:173393:21: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -151623,7 +153044,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) { /* sqlite3.c:173492:21: */
Xsqlite3ConnectionUnlocked(tls, db)
enterMutex(tls)
removeFromBlockedList(tls, db)
@@ -152184,7 +153605,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
@@ -152196,29 +153617,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
@@ -152240,12 +153649,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.
+} /* sqlite3.c:193069:19 */
// Objects
type JsonString1 = struct {
@@ -152257,15 +153661,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.
+} /* sqlite3.c:193096:9 */
// Objects
-type JsonString = JsonString1 /* sqlite3.c:191350:27 */
+type JsonString = JsonString1 /* sqlite3.c:193096:27 */
type JsonNode1 = struct {
FeType U8
FjnFlags U8
@@ -152273,9 +153672,9 @@ type JsonNode1 = struct {
F__ccgo_pad1 [1]byte
Fn U32
Fu struct{ FzJContent uintptr }
-} /* sqlite3.c:191351:9 */
+} /* sqlite3.c:193097:9 */
-type JsonNode = JsonNode1 /* sqlite3.c:191351:25 */
+type JsonNode = JsonNode1 /* sqlite3.c:193097:25 */
type JsonParse1 = struct {
FnNode U32
FnAlloc U32
@@ -152288,9 +153687,9 @@ type JsonParse1 = struct {
FnJson int32
FiHold U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:191352:9 */
+} /* sqlite3.c:193098:9 */
-type JsonParse = JsonParse1 /* sqlite3.c:191352:26 */
+type JsonParse = JsonParse1 /* sqlite3.c:193098:26 */
// JSON type values
@@ -152298,8 +153697,8 @@ type JsonParse = JsonParse1 /* sqlite3.c:191352:26 */
// Names of the various JSON types:
var jsonType = [8]uintptr{
- ts + 6127, ts + 6639, ts + 6644, ts + 6137, ts + 6132, ts + 7894, ts + 24226, ts + 24232,
-} /* sqlite3.c:191385:19 */
+ ts + 6132, ts + 6646, ts + 6651, ts + 6142, ts + 6137, ts + 7892, ts + 24301, ts + 24307,
+} /* sqlite3.c:193131:19 */
// Maximum nesting depth of JSON for this implementation.
//
@@ -152313,7 +153712,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) { /* sqlite3.c:193192: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)
@@ -152321,7 +153720,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) { /* sqlite3.c:193201:13: */
(*JsonString)(unsafe.Pointer(p)).FpCtx = pCtx
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(0)
jsonZero(tls, p)
@@ -152329,7 +153728,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) { /* sqlite3.c:193211:13: */
if !(int32((*JsonString)(unsafe.Pointer(p)).FbStatic) != 0) {
Xsqlite3_free(tls, (*JsonString)(unsafe.Pointer(p)).FzBuf)
}
@@ -152337,7 +153736,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) { /* sqlite3.c:193219:13: */
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(1)
Xsqlite3_result_error_nomem(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx)
jsonReset(tls, p)
@@ -152345,7 +153744,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 { /* sqlite3.c:193228:12: */
var nTotal U64
if U64(N) < (*JsonString)(unsafe.Pointer(p)).FnAlloc {
nTotal = (*JsonString)(unsafe.Pointer(p)).FnAlloc * uint64(2)
@@ -152378,7 +153777,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) { /* sqlite3.c:193255:13: */
if N == U32(0) {
return
}
@@ -152390,7 +153789,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) { /* sqlite3.c:193264: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 {
@@ -152403,7 +153802,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) { /* sqlite3.c:193275:13: */
if (*JsonString)(unsafe.Pointer(p)).FnUsed >= (*JsonString)(unsafe.Pointer(p)).FnAlloc && jsonGrow(tls, p, uint32(1)) != 0 {
return
}
@@ -152412,7 +153811,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) { /* sqlite3.c:193283:13: */
var c int8
if (*JsonString)(unsafe.Pointer(p)).FnUsed == uint64(0) {
return
@@ -152427,7 +153826,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) { /* sqlite3.c:193295: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) {
@@ -152478,7 +153877,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 + 24239 + uintptr(int32(c)&0xf))))
+ c = uint8(*(*int8)(unsafe.Pointer(ts + 24314 + uintptr(int32(c)&0xf))))
__8:
;
__6:
@@ -152498,15 +153897,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 */
+} /* sqlite3.c:193306: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) { /* sqlite3.c:193338:13: */
switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_NULL:
{
- jsonAppendRaw(tls, p, ts+6127, uint32(4))
+ jsonAppendRaw(tls, p, ts+6132, uint32(4))
break
}
@@ -152535,7 +153934,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+24256, -1)
+ Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+24331, -1)
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(2)
jsonReset(tls, p)
}
@@ -152546,7 +153945,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) { /* sqlite3.c:193378: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 {
@@ -152573,7 +153972,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 { /* sqlite3.c:193401:12: */
if int32((*JsonNode)(unsafe.Pointer(pNode)).FeType) >= JSON_ARRAY {
return (*JsonNode)(unsafe.Pointer(pNode)).Fn + U32(1)
}
@@ -152582,7 +153981,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) { /* sqlite3.c:193409:13: */
Xsqlite3_free(tls, (*JsonParse)(unsafe.Pointer(pParse)).FaNode)
(*JsonParse)(unsafe.Pointer(pParse)).FaNode = uintptr(0)
(*JsonParse)(unsafe.Pointer(pParse)).FnNode = U32(0)
@@ -152592,7 +153991,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) { /* sqlite3.c:193421:13: */
jsonParseReset(tls, pParse)
Xsqlite3_free(tls, pParse)
}
@@ -152600,7 +153999,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) { /* sqlite3.c:193431: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) {
@@ -152615,19 +154014,19 @@ func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr
default:
{
- jsonAppendRaw(tls, pOut, ts+6127, uint32(4))
+ jsonAppendRaw(tls, pOut, ts+6132, uint32(4))
break
}
case JSON_TRUE:
{
- jsonAppendRaw(tls, pOut, ts+6639, uint32(4))
+ jsonAppendRaw(tls, pOut, ts+6646, uint32(4))
break
}
case JSON_FALSE:
{
- jsonAppendRaw(tls, pOut, ts+6644, uint32(5))
+ jsonAppendRaw(tls, pOut, ts+6651, uint32(5))
break
}
@@ -152702,7 +154101,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) { /* sqlite3.c:193520:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -152717,14 +154116,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 { /* sqlite3.c:193537: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 { /* sqlite3.c:193550:12: */
var v U32
v = U32(int32(jsonHexToInt(tls, int32(*(*int8)(unsafe.Pointer(z)))))<<12 +
@@ -152735,7 +154134,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) { /* sqlite3.c:193566:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -153016,7 +154415,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 { /* sqlite3.c:193739:26: */
var nNew U32
var pNew uintptr
@@ -153038,7 +154437,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 { /* sqlite3.c:193766: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)
@@ -153053,7 +154452,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 { /* sqlite3.c:193788:12: */
var i int32
for i = 0; i < 4; i++ {
if !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x08 != 0) {
@@ -153069,7 +154468,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 { /* sqlite3.c:193802:12: */
var c int8
var j U32
var iThis int32
@@ -153203,17 +154602,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+6127, uint64(4)) == 0 &&
+ libc.Xstrncmp(tls, z+uintptr(i), ts+6132, 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+6639, uint64(4)) == 0 &&
+ libc.Xstrncmp(tls, z+uintptr(i), ts+6646, 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+6644, uint64(5)) == 0 &&
+ libc.Xstrncmp(tls, z+uintptr(i), ts+6651, 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))
@@ -153296,7 +154695,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 { /* sqlite3.c:193963:12: */
var i int32
libc.Xmemset(tls, pParse, 0, uint64(unsafe.Sizeof(JsonParse{})))
if zJson == uintptr(0) {
@@ -153321,7 +154720,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+24285, -1)
+ Xsqlite3_result_error(tls, pCtx, ts+24360, -1)
}
}
jsonParseReset(tls, pParse)
@@ -153332,7 +154731,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) { /* sqlite3.c:193996: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
@@ -153363,7 +154762,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 { /* sqlite3.c:194023:12: */
var aUp uintptr
aUp = libc.AssignPtrUintptr(pParse+24, Xsqlite3_malloc64(tls, uint64(uint64(unsafe.Sizeof(U32(0)))*uint64((*JsonParse)(unsafe.Pointer(pParse)).FnNode))))
@@ -153383,7 +154782,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 { /* sqlite3.c:194049: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
@@ -153440,7 +154839,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 { /* sqlite3.c:194111:12: */
if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_RAW != 0 {
if (*JsonNode)(unsafe.Pointer(pNode)).Fn != nKey {
@@ -153463,7 +154862,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 { /* sqlite3.c:194134:17: */
var i U32
var j U32
var nKey U32
@@ -153572,7 +154971,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++
}
@@ -153638,7 +155037,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 { /* sqlite3.c:194286:17: */
*(*int32)(unsafe.Pointer(pApnd)) = 1
if int32(*(*int8)(unsafe.Pointer(zPath))) == 0 {
jsonParseAddNode(tls, pParse, uint32(JSON_NULL), uint32(0), uintptr(0))
@@ -153649,7 +155048,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+24300, uint64(3)) == 0 {
+ } else if libc.Xstrncmp(tls, zPath, ts+24375, uint64(3)) == 0 {
jsonParseAddNode(tls, pParse, uint32(JSON_ARRAY), uint32(0), uintptr(0))
} else {
return uintptr(0)
@@ -153662,11 +155061,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 { /* sqlite3.c:194312:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- return Xsqlite3_mprintf(tls, ts+24304, libc.VaList(bp, zErr))
+ return Xsqlite3_mprintf(tls, ts+24379, libc.VaList(bp, zErr))
}
// Do a node lookup using zPath. Return a pointer to the node on success.
@@ -153677,7 +155076,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 { /* sqlite3.c:194326:17: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -153729,18 +155128,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) { /* sqlite3.c:194363:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- var zMsg uintptr = Xsqlite3_mprintf(tls, ts+24330,
+ var zMsg uintptr = Xsqlite3_mprintf(tls, ts+24405,
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) { /* sqlite3.c:194376:13: */
var i int32
var n int32
@@ -153771,7 +155170,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) { /* sqlite3.c:194465:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -153788,7 +155187,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) { /* sqlite3.c:194484:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -153811,7 +155210,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) { /* sqlite3.c:194511:13: */
var p uintptr // The parse
var n Sqlite3_int64 = int64(0)
var i U32
@@ -153840,23 +155239,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.
+//
+// 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.
//
-// 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: */
+// Abbreviated JSON path expressions are allows if JSON_ABPATH, for
+// compatibility with PG.
+func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194571: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
}
@@ -153864,35 +155277,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 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+24448, uint32(2))
+ jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath))))
+ jsonAppendRaw(tls, bp, ts+4949, uint32(2))
+ } else {
+ jsonAppendRaw(tls, bp, ts+24451, 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))
+ }
}
- if argc > 2 {
+ } 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+6127, uint32(4))
+ jsonAppendRaw(tls, bp, ts+6132, 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 { /* sqlite3.c:194654:17: */
var i U32
var j U32
var iRoot U32
@@ -153965,7 +155427,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) { /* sqlite3.c:194736:13: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -153997,7 +155459,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) { /* sqlite3.c:194768:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -154009,14 +155471,14 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* s
if argc&1 != 0 {
Xsqlite3_result_error(tls, ctx,
- ts+24373, -1)
+ ts+24454, -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+24424, -1)
+ Xsqlite3_result_error(tls, ctx, ts+24505, -1)
jsonReset(tls, bp)
return
}
@@ -154036,7 +155498,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) { /* sqlite3.c:194810:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -154105,7 +155567,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) { /* sqlite3.c:194843:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -154124,7 +155586,7 @@ __1:
if !(argc&1 == 0) {
goto __2
}
- jsonWrongNumArgs(tls, ctx, ts+15238)
+ jsonWrongNumArgs(tls, ctx, ts+15270)
return
__2:
;
@@ -154188,7 +155650,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) { /* sqlite3.c:194895:13: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -154200,7 +155662,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
@@ -154213,9 +155675,9 @@ __1:
}
jsonWrongNumArgs(tls, ctx, func() uintptr {
if bIsSet != 0 {
- return ts + 24458 /* "set" */
+ return ts + 24539 /* "set" */
}
- return ts + 24462 /* "insert" */
+ return ts + 24543 /* "insert" */
}())
return
__2:
@@ -154284,9 +155746,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) { /* sqlite3.c:194948:13: */
var p uintptr // The parse
var zPath uintptr
var pNode uintptr
@@ -154310,7 +155772,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) { /* sqlite3.c:194976:13: */
var p uintptr // The parse
_ = argc
p = jsonParseCached(tls, ctx, argv, uintptr(0))
@@ -154324,7 +155786,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) { /* sqlite3.c:194996:13: */
var pStr uintptr
_ = argc
pStr = Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(JsonString{})))
@@ -154340,7 +155802,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) { /* sqlite3.c:195015:13: */
var pStr uintptr
pStr = Xsqlite3_aggregate_context(tls, ctx, 0)
if pStr != 0 {
@@ -154365,16 +155827,16 @@ func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:
(*JsonString)(unsafe.Pointer(pStr)).FnUsed--
}
} else {
- Xsqlite3_result_text(tls, ctx, ts+24469, 2, uintptr(0))
+ Xsqlite3_result_text(tls, ctx, ts+24550, 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) { /* sqlite3.c:195037:13: */
jsonArrayCompute(tls, ctx, 0)
}
-func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193230:13: */
+func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195040:13: */
jsonArrayCompute(tls, ctx, 1)
}
@@ -154382,7 +155844,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) { /* sqlite3.c:195051:13: */
var i uint32
var inStr int32 = 0
var nNest int32 = 0
@@ -154424,7 +155886,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) { /* sqlite3.c:195099:13: */
var pStr uintptr
var z uintptr
var n U32
@@ -154446,7 +155908,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) { /* sqlite3.c:195124:13: */
var pStr uintptr
pStr = Xsqlite3_aggregate_context(tls, ctx, 0)
if pStr != 0 {
@@ -154470,16 +155932,16 @@ func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c
(*JsonString)(unsafe.Pointer(pStr)).FnUsed--
}
} else {
- Xsqlite3_result_text(tls, ctx, ts+24472, 2, uintptr(0))
+ Xsqlite3_result_text(tls, ctx, ts+24553, 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) { /* sqlite3.c:195145:13: */
jsonObjectCompute(tls, ctx, 0)
}
-func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:193338:13: */
+func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195148:13: */
jsonObjectCompute(tls, ctx, 1)
}
@@ -154499,16 +155961,16 @@ type JsonEachCursor1 = struct {
FzJson uintptr
FzRoot uintptr
FsParse JsonParse
-} /* sqlite3.c:193348:9 */
+} /* sqlite3.c:195158:9 */
// ***************************************************************************
//
// The json_each virtual table
//
-type JsonEachCursor = JsonEachCursor1 /* sqlite3.c:193348:31 */
+type JsonEachCursor = JsonEachCursor1 /* sqlite3.c:195158: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 { /* sqlite3.c:195173:12: */
var pNew uintptr
var rc int32
@@ -154523,7 +155985,7 @@ func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv u
_ = pAux
rc = Xsqlite3_declare_vtab(tls, db,
- ts+24475)
+ ts+24556)
if rc == SQLITE_OK {
pNew = libc.AssignPtrUintptr(ppVtab, Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_vtab{}))))
if pNew == uintptr(0) {
@@ -154536,13 +155998,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 { /* sqlite3.c:195215: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 { /* sqlite3.c:195221:12: */
var pCur uintptr
_ = p
@@ -154556,7 +156018,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 { /* sqlite3.c:195233:12: */
var rc int32 = jsonEachOpenEach(tls, p, ppCursor)
if rc == SQLITE_OK {
var pCur uintptr = *(*uintptr)(unsafe.Pointer(ppCursor))
@@ -154567,7 +156029,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) { /* sqlite3.c:195244:13: */
Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzJson)
Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot)
jsonParseReset(tls, p+48)
@@ -154580,7 +156042,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 { /* sqlite3.c:195257:12: */
var p uintptr = cur
jsonEachCursorReset(tls, p)
Xsqlite3_free(tls, cur)
@@ -154589,13 +156051,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 { /* sqlite3.c:195266: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 { /* sqlite3.c:195272: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 {
@@ -154646,7 +156108,7 @@ func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:193462:12: */
}
// 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: */
+func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* sqlite3.c:195316:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -154663,19 +156125,19 @@ 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+24558, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8))))
+ jsonPrintf(tls, 30, pStr, ts+24639, 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+24563, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pNode)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pNode + 8))+uintptr(1)))
+ jsonPrintf(tls, int32((*JsonNode)(unsafe.Pointer(pNode)).Fn+U32(1)), pStr, ts+24644, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pNode)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pNode + 8))+uintptr(1)))
}
}
// Return the value of a column
-func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:193536:12: */
+func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:195346:12: */
bp := tls.Alloc(296)
defer tls.Free(296)
@@ -154764,10 +156226,10 @@ func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /*
jsonAppendChar(tls, bp+24, int8('$'))
}
if int32((*JsonEachCursor)(unsafe.Pointer(p)).FeType) == JSON_ARRAY {
- jsonPrintf(tls, 30, bp+24, ts+24558, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid))
+ jsonPrintf(tls, 30, bp+24, ts+24639, 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+24563, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pThis)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pThis + 8))+uintptr(1)))
+ jsonPrintf(tls, int32((*JsonNode)(unsafe.Pointer(pThis)).Fn), bp+24, ts+24644, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pThis)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pThis + 8))+uintptr(1)))
}
}
jsonResult(tls, bp+24)
@@ -154791,7 +156253,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 + 24569 /* "$" */
+ zRoot = ts + 24650 /* "$" */
}
Xsqlite3_result_text(tls, ctx, zRoot, -1, uintptr(0))
break
@@ -154809,7 +156271,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 { /* sqlite3.c:195447:12: */
var p uintptr = cur
*(*Sqlite_int64)(unsafe.Pointer(pRowid)) = Sqlite_int64((*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)
return SQLITE_OK
@@ -154819,7 +156281,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 { /* sqlite3.c:195458:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -154894,7 +156356,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 { /* sqlite3.c:195517:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -154923,7 +156385,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+24285, 0)
+ (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+24360, 0)
if (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 {
rc = SQLITE_ERROR
}
@@ -154999,7 +156461,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 */
+} /* sqlite3.c:195598:23 */
// The methods of the json_tree virtual table.
var jsonTreeModule = Sqlite3_module{ // xCreate
@@ -155013,43 +156475,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: */
+} /* sqlite3.c:195626:23 */
+
+// Register JSON functions.
+func Xsqlite3RegisterJsonFunctions(tls *libc.TLS) { /* sqlite3.c:195658: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 + 24652},
+ {FnArg: int8(-1), 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 + 24668},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24668},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24686},
+ {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 + 24699},
+ {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 + 24702},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24706},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24718},
+ {FnArg: int8(2), 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 + 24752},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24764},
+ {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 + 24777},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24786},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24786},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24796},
+ {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 + 24807},
+ {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 + 24824}} /* sqlite3.c:195660:18 */
+
+// Register the JSON table-valued functions
+func Xsqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:195697: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
@@ -155059,49 +156516,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 + 24571 /* "json" */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24576 /* "json_array" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24587 /* "json_array_lengt..." */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24587 /* "json_array_lengt..." */, FnArg: 2, FxFunc: 0},
- {FzName: ts + 24605 /* "json_extract" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24618 /* "json_insert" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24630 /* "json_object" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24642 /* "json_patch" */, FnArg: 2, FxFunc: 0},
- {FzName: ts + 24653 /* "json_quote" */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24664 /* "json_remove" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24676 /* "json_replace" */, FnArg: -1, FxFunc: 0},
- {FzName: ts + 24689 /* "json_set" */, FnArg: -1, Fflag: 1, FxFunc: 0},
- {FzName: ts + 24698 /* "json_type" */, FnArg: 1, FxFunc: 0},
- {FzName: ts + 24698 /* "json_type" */, FnArg: 2, FxFunc: 0},
- {FzName: ts + 24708 /* "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 + 24719 /* "json_group_array" */, FnArg: 1,
- FxStep: 0, FxFinal: 0, FxValue: 0},
- {FzName: ts + 24736 /* "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 + 24754 /* "json_each" */, FpModule: 0},
- {FzName: ts + 24764 /* "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 + 24842 /* "json_each" */, FpModule: 0},
+ {FzName: ts + 24852 /* "json_tree" */, FpModule: 0},
+} /* sqlite3.c:195702:5 */ // In the SQLite core
// If building separately, we will need some setup that is normally
// found in sqliteInt.h
@@ -155148,7 +156569,7 @@ type Rtree1 = struct {
FpDeleteParent uintptr
FpWriteAux uintptr
FaHash [97]uintptr
-} /* sqlite3.c:194055:9 */
+} /* sqlite3.c:195825:9 */
// In the SQLite core
@@ -155162,7 +156583,7 @@ type Rtree1 = struct {
// The following macro is used to suppress compiler warnings.
-type Rtree = Rtree1 /* sqlite3.c:194055:22 */
+type Rtree = Rtree1 /* sqlite3.c:195825:22 */
type RtreeCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FatEOF U8
@@ -155183,9 +156604,9 @@ type RtreeCursor1 = struct {
FaNode [5]uintptr
FanQueue [41]U32
F__ccgo_pad4 [4]byte
-} /* sqlite3.c:194056:9 */
+} /* sqlite3.c:195826:9 */
-type RtreeCursor = RtreeCursor1 /* sqlite3.c:194056:28 */
+type RtreeCursor = RtreeCursor1 /* sqlite3.c:195826:28 */
type RtreeNode1 = struct {
FpParent uintptr
FiNode I64
@@ -155193,23 +156614,23 @@ type RtreeNode1 = struct {
FisDirty int32
FzData uintptr
FpNext uintptr
-} /* sqlite3.c:194055:9 */
+} /* sqlite3.c:195825:9 */
-type RtreeNode = RtreeNode1 /* sqlite3.c:194057:26 */
+type RtreeNode = RtreeNode1 /* sqlite3.c:195827:26 */
type RtreeCell1 = struct {
FiRowid I64
FaCoord [10]RtreeCoord
-} /* sqlite3.c:194058:9 */
+} /* sqlite3.c:195828:9 */
-type RtreeCell = RtreeCell1 /* sqlite3.c:194058:26 */
+type RtreeCell = RtreeCell1 /* sqlite3.c:195828:26 */
type RtreeConstraint1 = struct {
FiCoord int32
Fop int32
Fu struct{ FrValue RtreeDValue }
FpInfo uintptr
-} /* sqlite3.c:194056:9 */
+} /* sqlite3.c:195826:9 */
-type RtreeConstraint = RtreeConstraint1 /* sqlite3.c:194059:32 */
+type RtreeConstraint = RtreeConstraint1 /* sqlite3.c:195829:32 */
type RtreeMatchArg1 = struct {
FiSize U32
F__ccgo_pad1 [4]byte
@@ -155218,20 +156639,20 @@ type RtreeMatchArg1 = struct {
F__ccgo_pad2 [4]byte
FapSqlParam uintptr
FaParam [1]RtreeDValue
-} /* sqlite3.c:194060:9 */
+} /* sqlite3.c:195830:9 */
-type RtreeMatchArg = RtreeMatchArg1 /* sqlite3.c:194060:30 */
+type RtreeMatchArg = RtreeMatchArg1 /* sqlite3.c:195830:30 */
type RtreeGeomCallback1 = struct {
FxGeom uintptr
FxQueryFunc uintptr
FxDestructor uintptr
FpContext uintptr
-} /* sqlite3.c:194060:9 */
+} /* sqlite3.c:195830:9 */
-type RtreeGeomCallback = RtreeGeomCallback1 /* sqlite3.c:194061:34 */
-type RtreeCoord1 = struct{ Ff RtreeValue } /* sqlite3.c:194058:9 */
+type RtreeGeomCallback = RtreeGeomCallback1 /* sqlite3.c:195831:34 */
+type RtreeCoord1 = struct{ Ff RtreeValue } /* sqlite3.c:195828:9 */
-type RtreeCoord = RtreeCoord1 /* sqlite3.c:194062:26 */
+type RtreeCoord = RtreeCoord1 /* sqlite3.c:195832:26 */
type RtreeSearchPoint1 = struct {
FrScore RtreeDValue
Fid Sqlite3_int64
@@ -155239,17 +156660,17 @@ type RtreeSearchPoint1 = struct {
FeWithin U8
FiCell U8
F__ccgo_pad1 [5]byte
-} /* sqlite3.c:194056:9 */
+} /* sqlite3.c:195826:9 */
-type RtreeSearchPoint = RtreeSearchPoint1 /* sqlite3.c:194063:33 */
+type RtreeSearchPoint = RtreeSearchPoint1 /* sqlite3.c:195833: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 /* sqlite3.c:195930:18 */ // High accuracy coordinate
+type RtreeValue = float32 /* sqlite3.c:195931: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
@@ -155275,16 +156696,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 { /* sqlite3.c:196215: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) { /* sqlite3.c:196218: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 { /* sqlite3.c:196235:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -155297,12 +156718,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) { /* sqlite3.c:196267: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 { /* sqlite3.c:196271:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -155315,7 +156736,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 { /* sqlite3.c:196294:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*I64)(unsafe.Pointer(bp)) = i
@@ -155326,7 +156747,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) { /* sqlite3.c:196319:13: */
if p != 0 {
(*RtreeNode)(unsafe.Pointer(p)).FnRef++
@@ -155334,20 +156755,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) { /* sqlite3.c:196329: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 { /* sqlite3.c:196338: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 { /* sqlite3.c:196346: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 {
}
@@ -155355,7 +156776,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) { /* sqlite3.c:196355:13: */
var iHash int32
iHash = int32(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))
@@ -155364,7 +156785,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) { /* sqlite3.c:196366:13: */
var pp uintptr
if (*RtreeNode)(unsafe.Pointer(pNode)).FiNode != int64(0) {
pp = pRtree + 192 + uintptr(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))*8
@@ -155379,7 +156800,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 { /* sqlite3.c:196382:18: */
var pNode uintptr
pNode = Xsqlite3_malloc64(tls, uint64(uint64(unsafe.Sizeof(RtreeNode{}))+uint64((*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize)))
if pNode != 0 {
@@ -155395,7 +156816,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) { /* sqlite3.c:196400: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)
@@ -155404,7 +156825,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 { /* sqlite3.c:196411:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -155436,11 +156857,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+24774, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
+ var zTab uintptr = Xsqlite3_mprintf(tls, ts+24862, 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+24782, iNode, 0,
+ rc = Xsqlite3_blob_open(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, zTab, ts+24870, iNode, 0,
pRtree+112)
Xsqlite3_free(tls, zTab)
}
@@ -155514,7 +156935,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) { /* sqlite3.c:196524: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))
@@ -155525,7 +156946,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) { /* sqlite3.c:196542: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)
@@ -155538,7 +156959,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 { /* sqlite3.c:196557:12: */
var nCell int32 // Current number of cells in pNode
var nMaxCell int32 // Maximum number of cells for pNode
@@ -155555,7 +156976,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 { /* sqlite3.c:196581:12: */
var rc int32 = SQLITE_OK
if (*RtreeNode)(unsafe.Pointer(pNode)).FisDirty != 0 {
var p uintptr = (*Rtree)(unsafe.Pointer(pRtree)).FpWriteNode
@@ -155579,7 +157000,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 { /* sqlite3.c:196607:12: */
var rc int32 = SQLITE_OK
if pNode != 0 {
@@ -155605,26 +157026,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 { /* sqlite3.c:196636: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) { /* sqlite3.c:196648: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) { /* sqlite3.c:196662: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)
@@ -155633,23 +157054,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 { /* sqlite3.c:196693: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 { /* sqlite3.c:196706: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) { /* sqlite3.c:196719: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) { /* sqlite3.c:196727:13: */
(*Rtree)(unsafe.Pointer(pRtree)).FnBusy--
if (*Rtree)(unsafe.Pointer(pRtree)).FnBusy == U32(0) {
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0)
@@ -155671,13 +157092,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 { /* sqlite3.c:196751: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 { /* sqlite3.c:196759:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -155685,7 +157106,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:194989:12:
var rc int32
var zCreate uintptr = Xsqlite3_mprintf(tls,
- ts+24787,
+ ts+24875,
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))
@@ -155704,7 +157125,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 { /* sqlite3.c:196787:12: */
var rc int32 = SQLITE_NOMEM
var pRtree uintptr = pVTab
var pCsr uintptr
@@ -155722,7 +157143,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) { /* sqlite3.c:196808:13: */
var pRtree uintptr = (*RtreeCursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var ii int32
var pStmt uintptr
@@ -155752,7 +157173,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 { /* sqlite3.c:196836:12: */
var pRtree uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
var pCsr uintptr = cur
@@ -155768,7 +157189,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 { /* sqlite3.c:196854:12: */
var pCsr uintptr = cur
return int32((*RtreeCursor)(unsafe.Pointer(pCsr)).FatEOF)
}
@@ -155785,7 +157206,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 { /* sqlite3.c:196909:12: */
bp := tls.Alloc(92)
defer tls.Free(92)
@@ -155897,7 +157318,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) { /* sqlite3.c:196985:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -155995,7 +157416,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) { /* sqlite3.c:197042:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -156050,7 +157471,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 { /* sqlite3.c:197072:12: */
var ii int32
var nCell int32 = readInt16(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+2)
@@ -156066,7 +157487,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 { /* sqlite3.c:197095:12: */
var pParent uintptr = (*RtreeNode)(unsafe.Pointer(pNode)).FpParent
if pParent != 0 {
return nodeRowidIndex(tls, pRtree, pParent, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode, piIndex)
@@ -156085,7 +157506,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 { /* sqlite3.c:197115:12: */
if (*RtreeSearchPoint)(unsafe.Pointer(pA)).FrScore < (*RtreeSearchPoint)(unsafe.Pointer(pB)).FrScore {
return -1
}
@@ -156102,7 +157523,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) { /* sqlite3.c:197129: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))
@@ -156122,7 +157543,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 { /* sqlite3.c:197150:25: */
if (*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint != 0 {
return pCur + 64
}
@@ -156133,7 +157554,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 { /* sqlite3.c:197157:18: */
var id Sqlite3_int64
var ii int32 = 1 - int32((*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint)
@@ -156150,7 +157571,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 { /* sqlite3.c:197173:25: */
var i int32
var j int32
var pNew uintptr
@@ -156184,7 +157605,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 { /* sqlite3.c:197208:25: */
var pNew uintptr
var pFirst uintptr
pFirst = rtreeSearchPointFirst(tls, pCur)
@@ -156220,7 +157641,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) { /* sqlite3.c:197276:13: */
var i int32
var j int32
var k int32
@@ -156268,7 +157689,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 { /* sqlite3.c:197324:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -156361,7 +157782,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 { /* sqlite3.c:197405:12: */
var pCsr uintptr = pVtabCursor
var rc int32 = SQLITE_OK
@@ -156377,7 +157798,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 { /* sqlite3.c:197423:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -156392,7 +157813,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 { /* sqlite3.c:197437:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -156453,7 +157874,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 { /* sqlite3.c:197491:12: */
var rc int32
*(*uintptr)(unsafe.Pointer(ppLeaf)) = uintptr(0)
Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpReadRowid, 1, iRowid)
@@ -156474,12 +157895,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 { /* sqlite3.c:197517:12: */
var pBlob uintptr
var pSrc uintptr // BLOB returned by geometry function
var pInfo uintptr // Callback information
- pSrc = Xsqlite3_value_pointer(tls, pValue, ts+24869)
+ pSrc = Xsqlite3_value_pointer(tls, pValue, ts+24957)
if pSrc == uintptr(0) {
return SQLITE_ERROR
}
@@ -156506,7 +157927,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 { /* sqlite3.c:197547:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -156649,7 +158070,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 { /* sqlite3.c:197700:12: */
bp := tls.Alloc(49)
defer tls.Free(49)
@@ -156744,7 +158165,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+3623, libc.VaList(bp, bp+8))) {
+ if iIdx > 0 && uintptr(0) == libc.AssignPtrUintptr(pIdxInfo+48, Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, bp+8))) {
return SQLITE_NOMEM
}
@@ -156756,7 +158177,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 { /* sqlite3.c:197789:20: */
var area RtreeDValue = RtreeDValue(1)
if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 {
@@ -156799,10 +158220,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 { /* sqlite3.c:197819: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)))
@@ -156820,10 +158241,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) { /* sqlite3.c:197832: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))
@@ -156839,7 +158260,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))
@@ -156859,7 +158280,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 { /* sqlite3.c:197853: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 {
@@ -156874,7 +158295,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 { /* sqlite3.c:197871:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -156887,7 +158308,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 { /* sqlite3.c:197880:20: */
var ii int32
var overlap RtreeDValue = 0.0
for ii = 0; ii < nCell; ii++ {
@@ -156962,7 +158383,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 { /* sqlite3.c:197912:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -157018,7 +158439,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 { /* sqlite3.c:197972:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -157054,7 +158475,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 { /* sqlite3.c:198010: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)
@@ -157062,7 +158483,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 { /* sqlite3.c:198020: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)
@@ -157084,7 +158505,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) { /* sqlite3.c:198047:13: */
if nIdx > 1 {
var iLeft int32 = 0
var iRight int32 = 0
@@ -157132,7 +158553,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) { /* sqlite3.c:198113:13: */
if nIdx > 1 {
var iLeft int32 = 0
@@ -157188,7 +158609,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 { /* sqlite3.c:198172:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -157287,7 +158708,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 { /* sqlite3.c:198270:12: */
var xSetMapping uintptr
xSetMapping = func() uintptr {
if iHeight == 0 {
@@ -157321,7 +158742,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 { /* sqlite3.c:198294:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -157556,7 +158977,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 { /* sqlite3.c:198442: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) {
@@ -157591,7 +159012,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 { /* sqlite3.c:198477:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -157641,7 +159062,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 { /* sqlite3.c:198527:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -157672,7 +159093,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 { /* sqlite3.c:198554:12: */
var pParent uintptr
var rc int32
@@ -157701,7 +159122,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 { /* sqlite3.c:198585:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -157816,7 +159237,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 { /* sqlite3.c:198690:12: */
var rc int32 = SQLITE_OK
if iHeight > 0 {
var pChild uintptr = nodeHashLookup(tls, pRtree, (*RtreeCell)(unsafe.Pointer(pCell)).FiRowid)
@@ -157846,7 +159267,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 { /* sqlite3.c:198725:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -157877,7 +159298,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 { /* sqlite3.c:198754:12: */
var rc int32
Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 1)
Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 2)
@@ -157888,7 +159309,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 { /* sqlite3.c:198767:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -157977,7 +159398,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 { /* sqlite3.c:198864:19: */
var d float64 = Xsqlite3_value_double(tls, v)
var f float32 = float32(d)
if float64(f) > d {
@@ -157991,7 +159412,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 { /* sqlite3.c:198872:19: */
var d float64 = Xsqlite3_value_double(tls, v)
var f float32 = float32(d)
if float64(f) < d {
@@ -158016,7 +159437,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 { /* sqlite3.c:198895:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -158024,7 +159445,7 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /*
var zSql uintptr
var rc int32
- zSql = Xsqlite3_mprintf(tls, ts+24883, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, ts+24971, 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 {
@@ -158036,12 +159457,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+24903, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol))
+ ts+24991, 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+24935, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
+ ts+25023, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
}
}
@@ -158055,7 +159476,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 { /* sqlite3.c:198933:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -158284,7 +159705,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 { /* sqlite3.c:199081:12: */
var pRtree uintptr = pVtab
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans++
@@ -158293,7 +159714,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 { /* sqlite3.c:199092:12: */
var pRtree uintptr = pVtab
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0)
nodeBlobReset(tls, pRtree)
@@ -158301,7 +159722,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 { /* sqlite3.c:199102:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -158309,7 +159730,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqli
var rc int32 = SQLITE_NOMEM
var zSql uintptr = Xsqlite3_mprintf(tls,
- ts+24972, 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+25060, 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))
@@ -158330,7 +159751,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 { /* sqlite3.c:199135:12: */
var pRtree uintptr = pVtab
var iwt U8 = (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans
_ = iSavepoint
@@ -158343,11 +159764,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 { /* sqlite3.c:199150:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
- var zFmt uintptr = ts + 25117 /* "SELECT stat FROM..." */
+ var zFmt uintptr = ts + 25205 /* "SELECT stat FROM..." */
var zSql uintptr
// var p uintptr at bp+16, 8
@@ -158355,7 +159776,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+11208, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
+ db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+11225, 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 {
@@ -158387,7 +159808,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 { /* sqlite3.c:199184: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 {
@@ -158398,8 +159819,8 @@ func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:197414:1
}
var azName1 = [3]uintptr{
- ts + 25173, ts + 5002, ts + 16134,
-} /* sqlite3.c:197415:21 */
+ ts + 25261, ts + 5011, ts + 16166,
+} /* sqlite3.c:199185:21 */
var rtreeModule = Sqlite3_module{
FiVersion: 3, // iVersion
@@ -158423,9 +159844,9 @@ var rtreeModule = Sqlite3_module{
FxRename: 0, // xRename - rename the table
FxSavepoint: 0, // xRollbackTo
FxShadowName: 0, // xShadowName
-} /* sqlite3.c:197425:23 */
+} /* sqlite3.c:199195: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 { /* sqlite3.c:199222:12: */
bp := tls.Alloc(232)
defer tls.Free(232)
@@ -158442,19 +159863,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+25178,
+ ts+25266,
libc.VaList(bp, zDb, zPrefix))
for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux); ii++ {
- Xsqlite3_str_appendf(tls, p, ts+25240, libc.VaList(bp+16, ii))
+ Xsqlite3_str_appendf(tls, p, ts+25328, libc.VaList(bp+16, ii))
}
Xsqlite3_str_appendf(tls, p,
- ts+25245,
+ ts+25333,
libc.VaList(bp+24, zDb, zPrefix))
Xsqlite3_str_appendf(tls, p,
- ts+25309,
+ ts+25397,
libc.VaList(bp+40, zDb, zPrefix))
Xsqlite3_str_appendf(tls, p,
- ts+25379,
+ ts+25467,
libc.VaList(bp+56, zDb, zPrefix, (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize))
zCreate = Xsqlite3_str_finish(tls, p)
if !(zCreate != 0) {
@@ -158485,7 +159906,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 + 25428 /* "INSERT INTO\"%w\"...." */
+ zFormat = ts + 25516 /* "INSERT INTO\"%w\"...." */
}
zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+80, zDb, zPrefix))
if zSql != 0 {
@@ -158497,7 +159918,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+25536,
+ ts+25624,
libc.VaList(bp+96, zDb, zPrefix))
if (*Rtree)(unsafe.Pointer(pRtree)).FzReadAuxSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -158505,18 +159926,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+25581, libc.VaList(bp+112, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, ts+25669, 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+12682, 1)
+ Xsqlite3_str_append(tls, p, ts+12696, 1)
}
if ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) {
- Xsqlite3_str_appendf(tls, p, ts+25608, libc.VaList(bp+128, ii, ii+2, ii))
+ Xsqlite3_str_appendf(tls, p, ts+25696, libc.VaList(bp+128, ii, ii+2, ii))
} else {
- Xsqlite3_str_appendf(tls, p, ts+25630, libc.VaList(bp+152, ii, ii+2))
+ Xsqlite3_str_appendf(tls, p, ts+25718, libc.VaList(bp+152, ii, ii+2))
}
}
- Xsqlite3_str_appendf(tls, p, ts+25638, 0)
+ Xsqlite3_str_appendf(tls, p, ts+25726, 0)
zSql = Xsqlite3_str_finish(tls, p)
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -158532,24 +159953,24 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi
var azSql = [8]uintptr{
- ts + 25654,
- ts + 25707,
+ ts + 25742,
+ ts + 25795,
- ts + 25752,
- ts + 25804,
- ts + 25858,
+ ts + 25840,
+ ts + 25892,
+ ts + 25946,
- ts + 25903,
- ts + 25961,
- ts + 26016,
-} /* sqlite3.c:197462:21 */
+ ts + 25991,
+ ts + 26049,
+ ts + 26104,
+} /* sqlite3.c:199232: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 { /* sqlite3.c:199355:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -158580,7 +160001,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 { /* sqlite3.c:199385:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -158588,7 +160009,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+26063, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb))
+ zSql = Xsqlite3_mprintf(tls, ts+26151, 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
@@ -158596,19 +160017,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+3623, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db)))
}
} else {
zSql = Xsqlite3_mprintf(tls,
- ts+26083,
+ ts+26171,
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+3623, libc.VaList(bp+32, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, 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+26140,
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+26228,
libc.VaList(bp+40, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
}
}
@@ -158618,7 +160039,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 { /* sqlite3.c:199428:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -158633,7 +160054,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 { /* sqlite3.c:199442:12: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -158659,17 +160080,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 + 26175,
- ts + 26218,
- ts + 26253,
- ts + 26289,
+ ts + 26263,
+ ts + 26306,
+ ts + 26341,
+ ts + 26377,
}
// 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+3623, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8))))
return SQLITE_ERROR
__1:
;
@@ -158699,7 +160120,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+26326,
+ Xsqlite3_str_appendf(tls, pSql, ts+26414,
libc.VaList(bp+16, rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8))))
ii = 4
__3:
@@ -158711,7 +160132,7 @@ __3:
goto __6
}
(*Rtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, ts+26350, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
+ Xsqlite3_str_appendf(tls, pSql, ts+26438, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
goto __7
__6:
if !(int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux) > 0) {
@@ -158734,7 +160155,7 @@ __4:
goto __5
__5:
;
- Xsqlite3_str_appendf(tls, pSql, ts+26356, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+26444, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !!(zSql != 0) {
goto __10
@@ -158745,14 +160166,14 @@ __10:
if !(ii < argc) {
goto __12
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(bp + 96 + 4*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, 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+3623, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db)))
__14:
;
__13:
@@ -158795,7 +160216,7 @@ __17:
if !(iErr != 0) {
goto __22
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8))))
goto rtreeInit_fail
__22:
;
@@ -158813,7 +160234,7 @@ __23:
if !(rc != 0) {
goto __24
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db)))
goto rtreeInit_fail
__24:
;
@@ -158833,7 +160254,7 @@ __25:
return rc
}
-var azFormat = [2]uintptr{ts + 26359, ts + 26370} /* sqlite3.c:197738:25 */
+var azFormat = [2]uintptr{ts + 26447, ts + 26458} /* sqlite3.c:199508:25 */
// Implementation of a scalar function that decodes r-tree nodes to
// human readable strings. This can be used for debugging and analysis.
@@ -158849,7 +160270,7 @@ var azFormat = [2]uintptr{ts + 26359, ts + 26370} /* 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) { /* sqlite3.c:199579:13: */
bp := tls.Alloc(1072)
defer tls.Free(1072)
@@ -158891,13 +160312,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+10788, 1)
+ Xsqlite3_str_append(tls, pOut, ts+10805, 1)
}
- Xsqlite3_str_appendf(tls, pOut, ts+26380, libc.VaList(bp, (*RtreeCell)(unsafe.Pointer(bp+1024 /* &cell */)).FiRowid))
+ Xsqlite3_str_appendf(tls, pOut, ts+26468, 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+26386, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4)))))
+ Xsqlite3_str_appendf(tls, pOut, ts+26474, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4)))))
}
- Xsqlite3_str_append(tls, pOut, ts+26390, 1)
+ Xsqlite3_str_append(tls, pOut, ts+26478, 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})))
@@ -158912,11 +160333,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) { /* sqlite3.c:199631: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+26392, -1)
+ Xsqlite3_result_error(tls, ctx, ts+26480, -1)
} else {
var zBlob uintptr = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if zBlob != 0 {
@@ -158944,15 +160365,15 @@ type RtreeCheck1 = struct {
FzReport uintptr
FnErr int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:197882:9 */
+} /* sqlite3.c:199652: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 /* sqlite3.c:199652: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) { /* sqlite3.c:199674:13: */
var rc int32 = Xsqlite3_reset(tls, pStmt)
if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK {
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = rc
@@ -158965,7 +160386,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 { /* sqlite3.c:199687:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -158993,7 +160414,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) { /* sqlite3.c:199716:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -159005,12 +160426,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+26425,
+ (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, ts+26513,
libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport, func() uintptr {
if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport != 0 {
- return ts + 4004 /* "\n" */
+ return ts + 4013 /* "\n" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), z))
if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport == uintptr(0) {
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = SQLITE_NOMEM
@@ -159033,7 +160454,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 { /* sqlite3.c:199750:11: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -159041,7 +160462,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+26432,
+ ts+26520,
libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
}
@@ -159060,7 +160481,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+26477, libc.VaList(bp+16, iNode))
+ rtreeCheckAppendMsg(tls, pCheck, ts+26565, libc.VaList(bp+16, iNode))
}
}
@@ -159077,15 +160498,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) { /* sqlite3.c:199794: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 + 26509,
- ts + 26563,
+ ts + 26597,
+ ts + 26651,
}
if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) {
@@ -159100,23 +160521,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+26611,
+ rtreeCheckAppendMsg(tls, pCheck, ts+26699,
libc.VaList(bp+16, iKey, iVal, func() uintptr {
if bLeaf != 0 {
- return ts + 26656 /* "%_rowid" */
+ return ts + 26744 /* "%_rowid" */
}
- return ts + 26664 /* "%_parent" */
+ return ts + 26752 /* "%_parent" */
}()))
} else if rc == SQLITE_ROW {
var ii I64 = Xsqlite3_column_int64(tls, pStmt, 0)
if ii != iVal {
rtreeCheckAppendMsg(tls, pCheck,
- ts+26673,
+ ts+26761,
libc.VaList(bp+40, iKey, ii, func() uintptr {
if bLeaf != 0 {
- return ts + 26656 /* "%_rowid" */
+ return ts + 26744 /* "%_rowid" */
}
- return ts + 26664 /* "%_parent" */
+ return ts + 26752 /* "%_parent" */
}(), iKey, iVal))
}
}
@@ -159133,7 +160554,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) { /* sqlite3.c:199846:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -159159,7 +160580,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+26731, libc.VaList(bp, i, iCell, iNode))
+ ts+26819, libc.VaList(bp, i, iCell, iNode))
}
if pParent != 0 {
@@ -159179,7 +160600,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+26779, libc.VaList(bp+24, i, iCell, iNode))
+ ts+26867, libc.VaList(bp+24, i, iCell, iNode))
}
}
}
@@ -159191,7 +160612,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) { /* sqlite3.c:199892:13: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -159202,14 +160623,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+26846, libc.VaList(bp, iNode, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */))))
+ ts+26934, 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+26880, libc.VaList(bp+16, iDepth))
+ rtreeCheckAppendMsg(tls, pCheck, ts+26968, libc.VaList(bp+16, iDepth))
Xsqlite3_free(tls, aNode)
return
}
@@ -159217,7 +160638,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+26910,
+ ts+26998,
libc.VaList(bp+24, iNode, nCell, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */))))
} else {
for i = 0; i < nCell; i++ {
@@ -159245,20 +160666,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) { /* sqlite3.c:199955: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+26965,
+ pCount = rtreeCheckPrepare(tls, pCheck, ts+27053,
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+26996, libc.VaList(bp+24, zTbl, nExpect, nActual))
+ ts+27084, libc.VaList(bp+24, zTbl, nExpect, nActual))
}
}
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount)
@@ -159268,7 +160689,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 { /* sqlite3.c:199979:12: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -159288,13 +160709,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+14418, uintptr(0), uintptr(0), uintptr(0))
+ (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = Xsqlite3_exec(tls, db, ts+14432, 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+27063, libc.VaList(bp, zDb, zTab))
+ pStmt = rtreeCheckPrepare(tls, bp+32, ts+27151, libc.VaList(bp, zDb, zTab))
if pStmt != 0 {
nAux = Xsqlite3_column_count(tls, pStmt) - 2
Xsqlite3_finalize(tls, pStmt)
@@ -159304,12 +160725,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+24883, libc.VaList(bp+16, zDb, zTab))
+ pStmt = rtreeCheckPrepare(tls, bp+32, ts+24971, 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+27091, 0)
+ rtreeCheckAppendMsg(tls, bp+32, ts+27179, 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)
}
@@ -159324,8 +160745,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+27122, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf))
- rtreeCheckCount(tls, bp+32, ts+27129, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf))
+ rtreeCheckCount(tls, bp+32, ts+27210, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf))
+ rtreeCheckCount(tls, bp+32, ts+27217, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf))
}
// Finalize SQL statements used by the integrity-check
@@ -159335,7 +160756,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+27137, uintptr(0), uintptr(0), uintptr(0))
+ var rc int32 = Xsqlite3_exec(tls, db, ts+27225, uintptr(0), uintptr(0), uintptr(0))
if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK {
(*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = rc
}
@@ -159375,13 +160796,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) { /* sqlite3.c:200086:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
if nArg != 1 && nArg != 2 {
Xsqlite3_result_error(tls, ctx,
- ts+27141, -1)
+ ts+27229, -1)
} else {
var rc int32
*(*uintptr)(unsafe.Pointer(bp /* zReport */)) = uintptr(0)
@@ -159389,7 +160810,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqli
var zTab uintptr
if nArg == 1 {
zTab = zDb
- zDb = ts + 6327 /* "main" */
+ zDb = ts + 6332 /* "main" */
} else {
zTab = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg + 1*8)))
}
@@ -159399,7 +160820,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 + 17771 /* "ok" */
+ return ts + 17803 /* "ok" */
}(), -1, libc.UintptrFromInt32(-1))
} else {
Xsqlite3_result_error_code(tls, ctx, rc)
@@ -159431,10 +160852,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 /* sqlite3.c:200207:15 */
// Internal representation of a polygon.
//
@@ -159460,7 +160885,7 @@ type GeoPoly1 = struct {
FnVertex int32
Fhdr [4]uint8
Fa [8]GeoCoord
-} /* sqlite3.c:198464:9 */
+} /* sqlite3.c:200231:9 */
// Internal representation of a polygon.
//
@@ -159482,7 +160907,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 /* sqlite3.c:200231:24 */
// The size of a memory allocation needed for a GeoPoly object sufficient
// to hold N coordinate pairs.
@@ -159499,7 +160924,7 @@ type GeoParse1 = struct {
FnErr int32
F__ccgo_pad1 [4]byte
Fa uintptr
-} /* sqlite3.c:198487:9 */
+} /* sqlite3.c:200254:9 */
// The size of a memory allocation needed for a GeoPoly object sufficient
// to hold N coordinate pairs.
@@ -159509,10 +160934,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 /* sqlite3.c:200254: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) { /* sqlite3.c:200264:13: */
var t uint8 = *(*uint8)(unsafe.Pointer(a))
*(*uint8)(unsafe.Pointer(a)) = *(*uint8)(unsafe.Pointer(a + 3))
*(*uint8)(unsafe.Pointer(a + 3)) = t
@@ -159522,7 +160947,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 { /* sqlite3.c:200274:13: */
for jsonIsSpace[*(*uint8)(unsafe.Pointer((*GeoParse)(unsafe.Pointer(p)).Fz))] != 0 {
(*GeoParse)(unsafe.Pointer(p)).Fz++
}
@@ -159531,7 +160956,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 { /* sqlite3.c:200282:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -159603,7 +161028,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 { /* sqlite3.c:200340:16: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -159745,7 +161170,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 { /* sqlite3.c:200417:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -159814,7 +161239,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) { /* sqlite3.c:200478:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
Xsqlite3_result_blob(tls, context, p+4,
@@ -159827,7 +161252,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) { /* sqlite3.c:200497:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -159836,11 +161261,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+27192, 1)
+ Xsqlite3_str_append(tls, x, ts+27280, 1)
for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ {
- Xsqlite3_str_appendf(tls, x, ts+27194, 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+27282, 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+27205, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
+ Xsqlite3_str_appendf(tls, x, ts+27293, 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)
}
@@ -159850,7 +161275,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) { /* sqlite3.c:200523:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -159864,19 +161289,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+27216, 0)
+ Xsqlite3_str_appendf(tls, x, ts+27304, 0)
for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ {
- Xsqlite3_str_appendf(tls, x, ts+27234, 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+27322, 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+27242, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
+ Xsqlite3_str_appendf(tls, x, ts+27330, 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+27250, libc.VaList(bp+40, z))
+ Xsqlite3_str_appendf(tls, x, ts+27338, libc.VaList(bp+40, z))
}
}
- Xsqlite3_str_appendf(tls, x, ts+27254, 0)
+ Xsqlite3_str_appendf(tls, x, ts+27342, 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)
}
@@ -159896,7 +161321,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) { /* sqlite3.c:200570: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)))
@@ -159929,7 +161354,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 { /* sqlite3.c:200606:15: */
var rArea float64 = 0.0
var ii int32
for ii = 0; ii < (*GeoPoly)(unsafe.Pointer(p)).FnVertex-1; ii++ {
@@ -159949,7 +161374,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) { /* sqlite3.c:200628:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
Xsqlite3_result_double(tls, context, geopolyArea(tls, p))
@@ -159968,7 +161393,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) { /* sqlite3.c:200653:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
if geopolyArea(tls, p) < 0.0 {
@@ -160004,7 +161429,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 { /* sqlite3.c:200681:15: */
if r >= float64(1.5)*3.1415926535897932385 {
r = r - float64(2.0)*3.1415926535897932385
@@ -160024,7 +161449,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) { /* sqlite3.c:200702:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -160069,7 +161494,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 { /* sqlite3.c:200745:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -160210,7 +161635,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) { /* sqlite3.c:200816: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,
@@ -160223,13 +161648,13 @@ func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
type GeoBBox1 = struct {
FisInit int32
Fa [4]RtreeCoord
-} /* sqlite3.c:199065:9 */
+} /* sqlite3.c:200832:9 */
// State vector for the geopoly_group_bbox() aggregate function.
-type GeoBBox = GeoBBox1 /* sqlite3.c:199065:24 */
+type GeoBBox = GeoBBox1 /* sqlite3.c:200832: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) { /* sqlite3.c:200842:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -160263,7 +161688,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) { /* sqlite3.c:200865:13: */
var p uintptr
var pBBox uintptr
pBBox = Xsqlite3_aggregate_context(tls, context, 0)
@@ -160290,7 +161715,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 { /* sqlite3.c:200895:12: */
var y float64
if x0 == x1 && y0 == y1 {
return 2
@@ -160331,7 +161756,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) { /* sqlite3.c:200926: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)))
@@ -160369,7 +161794,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) { /* sqlite3.c:200969: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 {
@@ -160401,10 +161826,10 @@ type GeoEvent1 = struct {
F__ccgo_pad1 [4]byte
FpSeg uintptr
FpNext uintptr
-} /* sqlite3.c:199222:9 */
+} /* sqlite3.c:200989:9 */
// Objects used by the overlap algorihm.
-type GeoEvent = GeoEvent1 /* sqlite3.c:199222:25 */
+type GeoEvent = GeoEvent1 /* sqlite3.c:200989:25 */
type GeoSegment1 = struct {
FC float64
FB float64
@@ -160415,20 +161840,20 @@ type GeoSegment1 = struct {
Fidx uint32
F__ccgo_pad2 [4]byte
FpNext uintptr
-} /* sqlite3.c:199222:9 */
+} /* sqlite3.c:200989:9 */
-type GeoSegment = GeoSegment1 /* sqlite3.c:199223:27 */
+type GeoSegment = GeoSegment1 /* sqlite3.c:200990:27 */
type GeoOverlap1 = struct {
FaEvent uintptr
FaSegment uintptr
FnEvent int32
FnSegment int32
-} /* sqlite3.c:199224:9 */
+} /* sqlite3.c:200991:9 */
-type GeoOverlap = GeoOverlap1 /* sqlite3.c:199224:27 */
+type GeoOverlap = GeoOverlap1 /* sqlite3.c:200991: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) { /* sqlite3.c:201016:13: */
var pSeg uintptr
var pEvent uintptr
if x0 == x1 {
@@ -160462,7 +161887,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) { /* sqlite3.c:201060:13: */
var i uint32
var x uintptr
for i = uint32(0); i < uint32((*GeoPoly)(unsafe.Pointer(pPoly)).FnVertex)-uint32(1); i++ {
@@ -160474,7 +161899,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 { /* sqlite3.c:201078:17: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -160504,7 +161929,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 { /* sqlite3.c:201100:17: */
bp := tls.Alloc(400)
defer tls.Free(400)
@@ -160534,7 +161959,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 { /* sqlite3.c:201125:19: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -160569,7 +161994,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 { /* sqlite3.c:201150:19: */
bp := tls.Alloc(400)
defer tls.Free(400)
@@ -160599,7 +162024,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 { /* sqlite3.c:201176:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -160835,7 +162260,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) { /* sqlite3.c:201299: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 {
@@ -160851,7 +162276,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) { /* sqlite3.c:201321:13: */
}
// This function is the implementation of both the xConnect and xCreate
@@ -160861,7 +162286,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 { /* sqlite3.c:201340:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -160901,7 +162326,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+27267, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+27355, 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
@@ -160910,7 +162335,7 @@ __2:
goto __4
}
(*Rtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, ts+27289, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
+ Xsqlite3_str_appendf(tls, pSql, ts+27377, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
goto __3
__3:
ii++
@@ -160918,7 +162343,7 @@ __3:
goto __4
__4:
;
- Xsqlite3_str_appendf(tls, pSql, ts+26356, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+26444, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !!(zSql != 0) {
goto __5
@@ -160929,7 +162354,7 @@ __5:
if !(SQLITE_OK != libc.AssignInt32(&rc, Xsqlite3_declare_vtab(tls, db, zSql))) {
goto __7
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
__7:
;
__6:
@@ -160955,7 +162380,7 @@ __9:
if !(rc != 0) {
goto __10
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3623, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db)))
goto geopolyInit_fail
__10:
;
@@ -160976,12 +162401,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 { /* sqlite3.c:201424: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 { /* sqlite3.c:201437:12: */
return geopolyInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 0)
}
@@ -160995,7 +162420,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 { /* sqlite3.c:201460:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -161162,7 +162587,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 { /* sqlite3.c:201592:12: */
var ii int32
var iRowidTerm int32 = -1
var iFuncTerm int32 = -1
@@ -161188,7 +162613,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 + 16134 /* "rowid" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 16166 /* "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
@@ -161198,7 +162623,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 + 27293 /* "rtree" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27381 /* "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
@@ -161206,14 +162631,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 + 27299 /* "fullscan" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27387 /* "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 { /* sqlite3.c:201644:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -161278,7 +162703,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 { /* sqlite3.c:201699:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -161345,7 +162770,7 @@ __1:
if !(*(*int32)(unsafe.Pointer(bp + 48)) == SQLITE_ERROR) {
goto __4
}
- (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+27308, 0)
+ (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+27396, 0)
__4:
;
goto geopoly_update_end
@@ -161489,15 +162914,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+27348) == 0 {
+func geopolyFindFunction(tls *libc.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* sqlite3.c:201836:12: */
+ if Xsqlite3_stricmp(tls, zName, ts+27436) == 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+27364) == 0 {
+ if Xsqlite3_stricmp(tls, zName, ts+27452) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{geopolyWithinFunc}))
@@ -161530,12 +162955,12 @@ var geopolyModule = Sqlite3_module{
FxRename: 0, // xRename - rename the table
FxSavepoint: 0, // xRollbackTo
FxShadowName: 0, // xShadowName
-} /* sqlite3.c:200090:23 */
+} /* sqlite3.c:201857: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 { /* sqlite3.c:201884: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
@@ -161543,57 +162968,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+27379, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+27467, 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 + 27387 /* "geopoly_area" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27400 /* "geopoly_blob" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27413 /* "geopoly_json" */},
- {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 27426 /* "geopoly_svg" */},
- {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27364 /* "geopoly_within" */},
- {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 27438 /* "geopoly_contains..." */},
- {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27348 /* "geopoly_overlap" */},
- {FxFunc: 0, FnArg: int8(1), FzName: ts + 27461 /* "geopoly_debug" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27475 /* "geopoly_bbox" */},
- {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 27488 /* "geopoly_xform" */},
- {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 27502 /* "geopoly_regular" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27518 /* "geopoly_ccw" */},
-} /* sqlite3.c:200124:5 */
-var aAgg1 = [1]struct {
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27475 /* "geopoly_area" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27488 /* "geopoly_blob" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27501 /* "geopoly_json" */},
+ {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 27514 /* "geopoly_svg" */},
+ {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27452 /* "geopoly_within" */},
+ {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 27526 /* "geopoly_contains..." */},
+ {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27436 /* "geopoly_overlap" */},
+ {FxFunc: 0, FnArg: int8(1), FzName: ts + 27549 /* "geopoly_debug" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27563 /* "geopoly_bbox" */},
+ {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 27576 /* "geopoly_xform" */},
+ {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 27590 /* "geopoly_regular" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27606 /* "geopoly_ccw" */},
+} /* sqlite3.c:201891:5 */
+var aAgg = [1]struct {
FxStep uintptr
FxFinal uintptr
FzName uintptr
}{
- {FxStep: 0, FxFinal: 0, FzName: ts + 27530 /* "geopoly_group_bb..." */},
-} /* sqlite3.c:200142:5 */
+ {FxStep: 0, FxFinal: 0, FzName: ts + 27618 /* "geopoly_group_bb..." */},
+} /* sqlite3.c:201909:5 */
//************* End of geopoly.c ********************************************
//************* Continuing where we left off in rtree.c *********************
@@ -161601,30 +163026,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 { /* sqlite3.c:201944:20: */
var utf8 int32 = SQLITE_UTF8
var rc int32
- rc = Xsqlite3_create_function(tls, db, ts+27549, 2, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+27637, 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+27559, 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)
}{rtreedepth})), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, ts+27570, -1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+27658, -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+27293, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+27381, 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+27581, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+27669, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
}
if rc == SQLITE_OK {
rc = sqlite3_geopoly_init(tls, db)
@@ -161638,7 +163063,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) { /* sqlite3.c:201983: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)
@@ -161647,7 +163072,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) { /* sqlite3.c:201992:13: */
var i int32
var p uintptr = pArg
for i = 0; i < (*RtreeMatchArg)(unsafe.Pointer(p)).FnParam; i++ {
@@ -161668,7 +163093,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) { /* sqlite3.c:202015:13: */
var pGeomCtx uintptr = Xsqlite3_user_data(tls, ctx)
var pBlob uintptr
var nBlob Sqlite3_int64
@@ -161696,13 +163121,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+24869, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{rtreeMatchArgFree})))
+ Xsqlite3_result_pointer(tls, ctx, pBlob, ts+24957, *(*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 { /* sqlite3.c:202053:16: */
var pGeomCtx uintptr // Context object for new user-function
// Allocate and populate the context object.
@@ -161722,7 +163147,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 { /* sqlite3.c:202077:16: */
var pGeomCtx uintptr // Context object for new user-function
// Allocate and populate the context object.
@@ -162178,7 +163603,7 @@ type sqlite3rbu = struct {
FnRbu int32
F__ccgo_pad6 [4]byte
FpRbuFd uintptr
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
//************* End of rtree.c **********************************************
//************* Begin file icu.c ********************************************
@@ -162579,7 +164004,7 @@ type sqlite3rbu = struct {
// #include "sqlite3.h" ** Required for error code definitions **
-type Sqlite3rbu = sqlite3rbu /* sqlite3.c:201540:27 */
+type Sqlite3rbu = sqlite3rbu /* sqlite3.c:203307:27 */
//************* End of sqlite3rbu.h *****************************************
//************* Continuing where we left off in sqlite3rbu.c ****************
@@ -162644,7 +164069,7 @@ type Sqlite3rbu = sqlite3rbu /* sqlite3.c:201540:27 */
type RbuFrame1 = struct {
FiDbPage U32
FiWalFrame U32
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
//************* End of sqlite3rbu.h *****************************************
//************* Continuing where we left off in sqlite3rbu.c ****************
@@ -162706,7 +164131,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 /* sqlite3.c:203738:25 */
type RbuObjIter1 = struct {
FpTblIter uintptr
FpIdxIter uintptr
@@ -162738,9 +164163,9 @@ type RbuObjIter1 = struct {
FaIdxCol uintptr
FzIdxSql uintptr
FpRbuUpdate uintptr
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
-type RbuObjIter = RbuObjIter1 /* sqlite3.c:201972:27 */
+type RbuObjIter = RbuObjIter1 /* sqlite3.c:203739:27 */
type RbuState1 = struct {
FeStage int32
F__ccgo_pad1 [4]byte
@@ -162755,16 +164180,16 @@ type RbuState1 = struct {
F__ccgo_pad3 [4]byte
FiOalSz I64
FnPhaseOneStep I64
-} /* sqlite3.c:201973:9 */
+} /* sqlite3.c:203740:9 */
-type RbuState = RbuState1 /* sqlite3.c:201973:25 */
+type RbuState = RbuState1 /* sqlite3.c:203740:25 */
type RbuSpan1 = struct {
FzSpan uintptr
FnSpan int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
-type RbuSpan = RbuSpan1 /* sqlite3.c:201974:24 */
+type RbuSpan = RbuSpan1 /* sqlite3.c:203741:24 */
type rbu_vfs = struct {
Fbase Sqlite3_vfs
FpRealVfs uintptr
@@ -162772,9 +164197,9 @@ type rbu_vfs = struct {
FpRbu uintptr
FpMain uintptr
FpMainRbu uintptr
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
-type Rbu_vfs = rbu_vfs /* sqlite3.c:201975:24 */
+type Rbu_vfs = rbu_vfs /* sqlite3.c:203742:24 */
type rbu_file = struct {
Fbase Sqlite3_file
FpReal uintptr
@@ -162793,16 +164218,16 @@ type rbu_file = struct {
FpWalFd uintptr
FpMainNext uintptr
FpMainRbuNext uintptr
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
-type Rbu_file = rbu_file /* sqlite3.c:201976:25 */
+type Rbu_file = rbu_file /* sqlite3.c:203743:25 */
type RbuUpdateStmt1 = struct {
FzMask uintptr
FpUpdate uintptr
FpNext uintptr
-} /* sqlite3.c:201540:9 */
+} /* sqlite3.c:203307:9 */
-type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:201977:30 */
+type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:203744:30 */
// True for an RBU vacuum handle, or false otherwise.
@@ -162821,7 +164246,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 { /* sqlite3.c:204034:21: */
var v uint32 = uint32(0)
var c int32
var z uintptr = *(*uintptr)(unsafe.Pointer(pz))
@@ -162844,7 +164269,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 */
+} /* sqlite3.c:204035:28 */
// Apply a delta.
//
@@ -162864,7 +164289,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 { /* sqlite3.c:204115:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
*(*uintptr)(unsafe.Pointer(bp)) = zDelta
@@ -162954,7 +164379,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 { /* sqlite3.c:204201:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
*(*uintptr)(unsafe.Pointer(bp)) = zDelta
@@ -162979,7 +164404,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) { /* sqlite3.c:204223:13: */
var aDelta uintptr
var nDelta int32
var aOrig uintptr
@@ -162996,7 +164421,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+27591, -1)
+ Xsqlite3_result_error(tls, context, ts+27679, -1)
return
}
@@ -163007,7 +164432,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+27591, -1)
+ Xsqlite3_result_error(tls, context, ts+27679, -1)
} else {
Xsqlite3_result_blob(tls, context, aOut, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
}
@@ -163022,13 +164447,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 { /* sqlite3.c:204276: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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
}
return rc
@@ -163040,13 +164465,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 { /* sqlite3.c:204298: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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt))))
+ *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt))))
}
return rc
}
@@ -163064,7 +164489,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 { /* sqlite3.c:204321:12: */
var rc int32
if zSql == uintptr(0) {
@@ -163079,7 +164504,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) { /* sqlite3.c:204343: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)))
@@ -163097,7 +164522,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) { /* sqlite3.c:204363:13: */
var pUp uintptr
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpSelect)
@@ -163127,7 +164552,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) { /* sqlite3.c:204395:13: */
rbuObjIterClearStatements(tls, pIter)
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpTblIter)
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpIdxIter)
@@ -163141,7 +164566,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 { /* sqlite3.c:204411:12: */
var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
if rc == SQLITE_OK {
@@ -163150,7 +164575,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+27612, uintptr(0), uintptr(0), p+64)
+ ts+27700, uintptr(0), uintptr(0), p+64)
}
if rc == SQLITE_OK {
@@ -163222,7 +164647,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) { /* sqlite3.c:204491:13: */
var p uintptr = Xsqlite3_user_data(tls, pCtx)
var zIn uintptr
@@ -163234,7 +164659,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+24782, zIn, uint64(4)) == 0 {
+ if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, ts+24870, 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++ {
}
@@ -163252,7 +164677,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 { /* sqlite3.c:204527:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -163262,17 +164687,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+27783, libc.VaList(bp, func() uintptr {
+ ts+27871, libc.VaList(bp, func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 27933 /* "AND rootpage!=0 ..." */
+ return ts + 28021 /* "AND rootpage!=0 ..." */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}())))
if rc == SQLITE_OK {
rc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64,
- ts+27974)
+ ts+28062)
}
(*RbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = 1
@@ -163287,7 +164712,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 { /* sqlite3.c:204562:13: */
var zSql uintptr = uintptr(0)
var ap Va_list
_ = ap
@@ -163313,7 +164738,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 { /* sqlite3.c:204587:12: */
var ap Va_list
_ = ap
var zSql uintptr
@@ -163339,7 +164764,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 { /* sqlite3.c:204614:13: */
var pRet uintptr = uintptr(0)
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -163356,7 +164781,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) { /* sqlite3.c:204634: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
@@ -163379,7 +164804,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 { /* sqlite3.c:204659:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
@@ -163402,7 +164827,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) { /* sqlite3.c:204684:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -163410,7 +164835,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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, Xsqlite3_errmsg(tls, db)))
}
}
@@ -163452,7 +164877,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) { /* sqlite3.c:204732:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -163473,7 +164898,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+28099, libc.VaList(bp, zTab)))
+ ts+28187, libc.VaList(bp, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK || Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 32))) != SQLITE_ROW) {
goto __1
}
@@ -163491,7 +164916,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+28218, libc.VaList(bp+8, zTab)))
+ Xsqlite3_mprintf(tls, ts+28306, libc.VaList(bp+8, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0) {
goto __3
}
@@ -163509,7 +164934,7 @@ __4:
}
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+2*8, p+64,
Xsqlite3_mprintf(tls,
- ts+28239, libc.VaList(bp+16, zIdx)))
+ ts+28327, libc.VaList(bp+16, zIdx)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
goto __7
}
@@ -163533,7 +164958,7 @@ __5:
;
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+3*8, p+64,
- Xsqlite3_mprintf(tls, ts+28290, libc.VaList(bp+24, zTab)))
+ Xsqlite3_mprintf(tls, ts+28378, libc.VaList(bp+24, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
goto __10
}
@@ -163568,12 +164993,11 @@ __15:
goto __14
goto __16
__16:
-
}
// This is a helper function for rbuObjIterCacheTableInfo(). It populates
// the pIter->abIndexed[] array.
-func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:203051:13: */
+func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:204818:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -163583,7 +165007,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+28311, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+28399, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
}
(*RbuObjIter)(unsafe.Pointer(pIter)).FnIndex = 0
@@ -163598,7 +165022,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+28339, libc.VaList(bp+8, zIdx)))
+ Xsqlite3_mprintf(tls, ts+28427, 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 {
@@ -163631,7 +165055,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 { /* sqlite3.c:204872:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -163648,7 +165072,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+19323, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+19353, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
return (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
@@ -163661,18 +165085,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+28368, libc.VaList(bp+8, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)))
+ Xsqlite3_mprintf(tls, ts+28456, 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+28387, zName, 4) != 0 {
+ if Xsqlite3_strnicmp(tls, ts+28475, 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+28392, zName) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+28480, zName) {
bRbuRowid = 1
}
}
@@ -163684,12 +165108,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+28402, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
+ ts+28490, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
func() uintptr {
if bRbuRowid != 0 {
- return ts + 28431 /* "may not have" */
+ return ts + 28519 /* "may not have" */
}
- return ts + 28444 /* "requires" */
+ return ts + 28532 /* "requires" */
}()))
}
@@ -163698,7 +165122,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+28453, libc.VaList(bp+32, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+28541, 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)
@@ -163712,7 +165136,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+28475,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+28563,
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)
@@ -163753,17 +165177,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 { /* sqlite3.c:204982:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
var zList uintptr = uintptr(0)
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
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+28502, libc.VaList(bp, zList, zSep, z))
- zSep = ts + 14529 /* ", " */
+ zList = rbuMPrintf(tls, p, ts+28590, libc.VaList(bp, zList, zSep, z))
+ zSep = ts + 14543 /* ", " */
}
return zList
}
@@ -163772,19 +165196,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 { /* sqlite3.c:205003:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
var iPk int32 = 1
var zRet uintptr = uintptr(0)
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
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+28511, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost))
+ zRet = rbuMPrintf(tls, p, ts+28599, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost))
zSep = zSeparator
break
}
@@ -163814,7 +165238,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 { /* sqlite3.c:205048:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -163823,25 +165247,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+28524, libc.VaList(bp, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ ts+28612, 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+28556, libc.VaList(bp+16, iMax))
+ zRet = rbuMPrintf(tls, p, ts+28644, libc.VaList(bp+16, iMax))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)))
} else {
- var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1565, ts+14529, ts+28579)
- var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+28585, ts+28592, ts+4899)
- var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1565, ts+14529, ts+1565)
+ var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1534, ts+14543, ts+28667)
+ var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+28673, ts+28680, ts+4908)
+ var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1534, ts+14543, ts+1534)
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+28600,
+ ts+28688,
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+28642, libc.VaList(bp+56, zList, zVal))
+ zRet = rbuMPrintf(tls, p, ts+28730, libc.VaList(bp+56, zList, zVal))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)))
}
@@ -163873,7 +165297,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 { /* sqlite3.c:205115:13: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -163899,12 +165323,12 @@ func XrbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /*
zVector = uintptr(0)
zRet = uintptr(0)
bFailed = 0
- zSep = ts + 1565 /* "" */
+ zSep = ts + 1534 /* "" */
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+28339, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ Xsqlite3_mprintf(tls, ts+28427, 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
@@ -163941,7 +165365,7 @@ __10:
zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
goto __7
__6:
- zCol = ts + 28662 /* "_rowid_" */
+ zCol = ts + 28750 /* "_rowid_" */
__7:
;
goto __5
@@ -163950,13 +165374,13 @@ __4:
__5:
;
- zLhs = rbuMPrintf(tls, p, ts+28670,
+ zLhs = rbuMPrintf(tls, p, ts+28758,
libc.VaList(bp+8, zLhs, zSep, zCol, zCollate))
- zOrder = rbuMPrintf(tls, p, ts+28691,
+ zOrder = rbuMPrintf(tls, p, ts+28779,
libc.VaList(bp+40, zOrder, zSep, iCol, zCol, zCollate))
- zSelect = rbuMPrintf(tls, p, ts+28727,
+ zSelect = rbuMPrintf(tls, p, ts+28815,
libc.VaList(bp+80, zSelect, zSep, iCol, zCol))
- zSep = ts + 14529 /* ", " */
+ zSep = ts + 14543 /* ", " */
iCol++
goto __1
__2:
@@ -163975,12 +165399,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+28754,
+ Xsqlite3_mprintf(tls, ts+28842,
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 + 1565 /* "" */
+ zSep = ts + 1534 /* "" */
iCol = 0
__14:
if !(iCol < (*RbuObjIter)(unsafe.Pointer(pIter)).FnCol) {
@@ -164002,8 +165426,8 @@ __19:
;
__18:
;
- zVector = rbuMPrintf(tls, p, ts+28802, libc.VaList(bp+136, zVector, zSep, zQuoted))
- zSep = ts + 14529 /* ", " */
+ zVector = rbuMPrintf(tls, p, ts+28890, libc.VaList(bp+136, zVector, zSep, zQuoted))
+ zSep = ts + 14543 /* ", " */
goto __15
__15:
iCol++
@@ -164015,7 +165439,7 @@ __16:
if !!(bFailed != 0) {
goto __20
}
- zRet = rbuMPrintf(tls, p, ts+28809, libc.VaList(bp+160, zLhs, zVector))
+ zRet = rbuMPrintf(tls, p, ts+28897, libc.VaList(bp+160, zLhs, zVector))
__20:
;
__13:
@@ -164054,7 +165478,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 { /* sqlite3.c:205230:13: */
bp := tls.Alloc(208)
defer tls.Free(208)
@@ -164065,14 +165489,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 + 1565 /* "" */ // Set to ", " later on
- var zAnd uintptr = ts + 1565 /* "" */ // Set to " AND " later on
+ var zCom uintptr = ts + 1534 /* "" */ // Set to ", " later on
+ var zAnd uintptr = ts + 1534 /* "" */ // 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+28339, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ Xsqlite3_mprintf(tls, ts+28427, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
}
for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 200))) {
@@ -164084,9 +165508,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+28821, libc.VaList(bp+8, zRet, zCom,
+ zRet = Xsqlite3_mprintf(tls, ts+28909, 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 + 1565 /* "" */
+ zType = ts + 1534 /* "" */
} else {
if iCid < 0 {
// An integer primary key. If the table has an explicit IPK, use
@@ -164098,37 +165522,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 + 28662 /* "_rowid_" */
+ zCol = ts + 28750 /* "_rowid_" */
} else {
- zCol = ts + 28392 /* "rbu_rowid" */
+ zCol = ts + 28480 /* "rbu_rowid" */
}
- zType = ts + 1112 /* "INTEGER" */
+ zType = ts + 1099 /* "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+28843, libc.VaList(bp+48, zRet, zCom, zCol, zCollate))
+ zRet = Xsqlite3_mprintf(tls, ts+28931, 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 + 28579
+ return ts + 28667
}
- return ts + 1565
+ return ts + 1534
}()
- zImpPK = Xsqlite3_mprintf(tls, ts+28863,
+ zImpPK = Xsqlite3_mprintf(tls, ts+28951,
libc.VaList(bp+80, zImpPK, zCom, nBind, zCol, zOrder))
}
- zImpCols = Xsqlite3_mprintf(tls, ts+28884,
+ zImpCols = Xsqlite3_mprintf(tls, ts+28972,
libc.VaList(bp+120, zImpCols, zCom, nBind, zCol, zType, zCollate))
zWhere = Xsqlite3_mprintf(tls,
- ts+28917, libc.VaList(bp+168, zWhere, zAnd, nBind, zCol))
+ ts+29005, 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 + 14529 /* ", " */
- zAnd = ts + 21343 /* " AND " */
+ zCom = ts + 14543 /* ", " */
+ zAnd = ts + 21373 /* " AND " */
nBind++
}
@@ -164165,22 +165589,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 { /* sqlite3.c:205342: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 + 1565 /* "" */
+ var zS uintptr = ts + 1534 /* "" */
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+28941, libc.VaList(bp, zList, zS, zObj, zCol))
+ zList = Xsqlite3_mprintf(tls, ts+29029, libc.VaList(bp, zList, zS, zObj, zCol))
} else {
- zList = Xsqlite3_mprintf(tls, ts+28953, libc.VaList(bp+32, zList, zS))
+ zList = Xsqlite3_mprintf(tls, ts+29041, libc.VaList(bp+32, zList, zS))
}
- zS = ts + 14529 /* ", " */
+ zS = ts + 14543 /* ", " */
if zList == uintptr(0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
break
@@ -164189,7 +165613,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+28962, libc.VaList(bp+48, zList, zObj))
+ zList = rbuMPrintf(tls, p, ts+29050, libc.VaList(bp+48, zList, zObj))
}
}
return zList
@@ -164203,33 +165627,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 { /* sqlite3.c:205383: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+28977, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1))
+ zList = rbuMPrintf(tls, p, ts+29065, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1))
} else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL {
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
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+28991, libc.VaList(bp+8, zList, zSep, i, i+1))
- zSep = ts + 21343 /* " AND " */
+ zList = rbuMPrintf(tls, p, ts+29079, libc.VaList(bp+8, zList, zSep, i, i+1))
+ zSep = ts + 21373 /* " AND " */
}
}
zList = rbuMPrintf(tls, p,
- ts+29003, libc.VaList(bp+40, zList))
+ ts+29091, libc.VaList(bp+40, zList))
} else {
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
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+29053, libc.VaList(bp+48, zList, zSep, zCol, i+1))
- zSep = ts + 21343 /* " AND " */
+ zList = rbuMPrintf(tls, p, ts+29141, libc.VaList(bp+48, zList, zSep, zCol, i+1))
+ zSep = ts + 21373 /* " AND " */
}
}
}
@@ -164241,9 +165665,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) { /* sqlite3.c:205424:13: */
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29066, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29154, 0)
}
// Return a nul-terminated string containing the comma separated list of
@@ -164261,7 +165685,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 { /* sqlite3.c:205447:13: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -164272,21 +165696,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 + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
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+29053,
+ zList = rbuMPrintf(tls, p, ts+29141,
libc.VaList(bp, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1))
- zSep = ts + 14529 /* ", " */
+ zSep = ts + 14543 /* ", " */
} else if int32(c) == 'd' {
- zList = rbuMPrintf(tls, p, ts+29092,
+ zList = rbuMPrintf(tls, p, ts+29180,
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 + 14529 /* ", " */
+ zSep = ts + 14543 /* ", " */
} else if int32(c) == 'f' {
- zList = rbuMPrintf(tls, p, ts+29122,
+ zList = rbuMPrintf(tls, p, ts+29210,
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 + 14529 /* ", " */
+ zSep = ts + 14543 /* ", " */
}
}
}
@@ -164307,7 +165731,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 { /* sqlite3.c:205501:13: */
var zRet uintptr = uintptr(0)
var nByte Sqlite3_int64 = int64(2)*Sqlite3_int64(nBind) + int64(1)
@@ -164337,26 +165761,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 { /* sqlite3.c:205528: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 + 29159 /* "PRIMARY KEY(" */
+ var zSep uintptr = ts + 29247 /* "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+28311, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+28399, 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+16022) == 0 {
+ if zOrig != 0 && libc.Xstrcmp(tls, zOrig, ts+16054) == 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+28339, libc.VaList(bp+8, zIdx)))
+ Xsqlite3_mprintf(tls, ts+28427, libc.VaList(bp+8, zIdx)))
}
break
}
@@ -164369,15 +165793,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 + 28579 /* " DESC" */
+ zDesc = ts + 28667 /* " DESC" */
} else {
- zDesc = ts + 1565 /* "" */
+ zDesc = ts + 1534 /* "" */
}
- z = rbuMPrintf(tls, p, ts+29172, libc.VaList(bp+16, z, zSep, zCol, zDesc))
- zSep = ts + 14529 /* ", " */
+ z = rbuMPrintf(tls, p, ts+29260, libc.VaList(bp+16, z, zSep, zCol, zDesc))
+ zSep = ts + 14543 /* ", " */
}
}
- z = rbuMPrintf(tls, p, ts+29183, libc.VaList(bp+48, z))
+ z = rbuMPrintf(tls, p, ts+29271, libc.VaList(bp+48, z))
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */)))
}
return z
@@ -164400,7 +165824,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) { /* sqlite3.c:205587:13: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -164409,7 +165833,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 + 1565 /* "" */
+ var zComma uintptr = ts + 1534 /* "" */
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
@@ -164417,7 +165841,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+29187)
+ ts+29275)
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))) {
@@ -164426,7 +165850,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+28339, libc.VaList(bp, zIdx)))
+ Xsqlite3_mprintf(tls, ts+28427, libc.VaList(bp, zIdx)))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */)))
@@ -164436,25 +165860,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+29237, libc.VaList(bp+8, zCols, zComma,
+ zCols = rbuMPrintf(tls, p, ts+29325, libc.VaList(bp+8, zCols, zComma,
iCid, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate))
- zPk = rbuMPrintf(tls, p, ts+29259, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr {
+ zPk = rbuMPrintf(tls, p, ts+29347, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr {
if bDesc != 0 {
- return ts + 28579 /* " DESC" */
+ return ts + 28667 /* " DESC" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()))
- zComma = ts + 14529 /* ", " */
+ zComma = ts + 14543 /* ", " */
}
}
- zCols = rbuMPrintf(tls, p, ts+29269, libc.VaList(bp+80, zCols))
+ zCols = rbuMPrintf(tls, p, ts+29357, 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+6327, 1, tnum))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+88, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 1, tnum))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+29284,
+ ts+29372,
libc.VaList(bp+120, zCols, zPk))
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6327, 0, 0))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 0, 0))
}
}
@@ -164476,58 +165900,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) { /* sqlite3.c:205661: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 + 1565 /* "" */
+ var zComma uintptr = ts + 1534 /* "" */
var zSql uintptr = uintptr(0)
var iCol int32
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6327, 0, 1))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 0, 1))
for iCol = 0; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && iCol < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; iCol++ {
- var zPk uintptr = ts + 1565 /* "" */
+ var zPk uintptr = ts + 1534 /* "" */
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+6327, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp+192, uintptr(0), uintptr(0), uintptr(0))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, (*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 + 29346 /* "PRIMARY KEY " */
+ zPk = ts + 29434 /* "PRIMARY KEY " */
}
- zSql = rbuMPrintf(tls, p, ts+29359,
+ zSql = rbuMPrintf(tls, p, ts+29447,
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 + 29386 /* " NOT NULL" */
+ return ts + 29474 /* " NOT NULL" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()))
- zComma = ts + 14529 /* ", " */
+ zComma = ts + 14543 /* ", " */
}
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+29396, libc.VaList(bp+88, zSql, zPk))
+ zSql = rbuMPrintf(tls, p, ts+29484, libc.VaList(bp+88, zSql, zPk))
}
}
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6327, 1, tnum))
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+29403,
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 1, tnum))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+29491,
libc.VaList(bp+136, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql,
func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_WITHOUT_ROWID {
- return ts + 29435 /* " WITHOUT ROWID" */
+ return ts + 29523 /* " WITHOUT ROWID" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()))
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6327, 0, 0))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 0, 0))
}
}
@@ -164540,7 +165964,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) { /* sqlite3.c:205717:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -164550,12 +165974,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+29450,
+ ts+29538,
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) { /* sqlite3.c:205735:13: */
var p uintptr = Xsqlite3_user_data(tls, pCtx)
var rc int32 = SQLITE_OK
var i int32
@@ -164577,7 +166001,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 { /* sqlite3.c:205765:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -164587,7 +166011,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+29507)
+ ts+29595)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
var rc2 int32
@@ -164685,7 +166109,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 { /* sqlite3.c:205865:12: */
bp := tls.Alloc(628)
defer tls.Free(628)
@@ -164697,7 +166121,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+29573, libc.VaList(bp, nOffset))
+ zLimit = Xsqlite3_mprintf(tls, ts+29661, libc.VaList(bp, nOffset))
if !(zLimit != 0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
}
@@ -164718,26 +166142,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+6327, 0, 1))
- Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6327, 1, tnum))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+8, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 0, 1))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 1, tnum))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+29593,
+ ts+29681,
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+6327, 0, 0))
+ Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+96, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 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+29658, libc.VaList(bp+128, zTbl, zBind)))
+ Xsqlite3_mprintf(tls, ts+29746, 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+29694, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */)))))
+ Xsqlite3_mprintf(tls, ts+29782, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */)))))
}
// Create the SELECT statement to read keys in sorted order
@@ -164746,7 +166170,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)
@@ -164754,7 +166178,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}
zSql = Xsqlite3_mprintf(tls,
- ts+29728,
+ ts+29816,
libc.VaList(bp+160, zCollist,
(*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
zPart,
@@ -164762,32 +166186,32 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
if zStart != 0 {
return func() uintptr {
if zPart != 0 {
- return ts + 29789 /* "AND" */
+ return ts + 29877 /* "AND" */
}
- return ts + 29793 /* "WHERE" */
+ return ts + 29881 /* "WHERE" */
}()
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), 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+29799,
+ ts+29887,
libc.VaList(bp+216, zCollist, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
zPart, zCollist, zLimit))
} else {
zSql = Xsqlite3_mprintf(tls,
- ts+29860,
+ ts+29948,
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 + 29789 /* "AND" */
+ return ts + 29877 /* "AND" */
}
- return ts + 29793 /* "WHERE" */
+ return ts + 29881 /* "WHERE" */
}(),
zCollist, zLimit))
}
@@ -164812,8 +166236,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+6336)
- var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6332)
+ var zOldlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6343)
+ var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6339)
zCollist = rbuObjIterGetCollist(tls, p, pIter)
(*RbuObjIter)(unsafe.Pointer(pIter)).FnCol = (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol
@@ -164823,21 +166247,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 + 1565
+ return ts + 1534
}
- return ts + 30019
+ return ts + 30107
}()
// 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+30028,
+ ts+30116,
libc.VaList(bp+344, zWrite, zTbl, zCollist, func() uintptr {
if bRbuRowid != 0 {
- return ts + 30064 /* ", _rowid_" */
+ return ts + 30152 /* ", _rowid_" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), zBindings)))
}
@@ -164847,28 +166271,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+30074, libc.VaList(bp+384, zWrite, zTbl, zWhere)))
+ ts+30162, 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 + 1565 /* "" */
+ var zRbuRowid uintptr = ts + 1534 /* "" */
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE {
- zRbuRowid = ts + 30102 /* ", rbu_rowid" */
+ zRbuRowid = ts + 30190 /* ", rbu_rowid" */
}
// Create the rbu_tmp_xxx table and the triggers to populate it.
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu,
- ts+30114, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
+ ts+30202, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL {
- return ts + 30190 /* ", 0 AS rbu_rowid" */
+ return ts + 30278 /* ", 0 AS rbu_rowid" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+30207,
+ ts+30295,
libc.VaList(bp+440, zWrite, zTbl, zOldlist,
zWrite, zTbl, zOldlist,
zWrite, zTbl, zNewlist))
@@ -164876,7 +166300,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+30506,
+ ts+30594,
libc.VaList(bp+512, zWrite, zTbl, zNewlist))
}
@@ -164885,14 +166309,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 + 1565 /* "" */
+ var zRbuRowid uintptr = ts + 1534 /* "" */
var zStart uintptr = uintptr(0)
var zOrder uintptr = uintptr(0)
if bRbuRowid != 0 {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zRbuRowid = ts + 30605 /* ",_rowid_ " */
+ zRbuRowid = ts + 30693 /* ",_rowid_ " */
} else {
- zRbuRowid = ts + 30615 /* ",rbu_rowid" */
+ zRbuRowid = ts + 30703 /* ",rbu_rowid" */
}
}
@@ -164905,35 +166329,35 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}
}
if bRbuRowid != 0 {
- zOrder = rbuMPrintf(tls, p, ts+28662, 0)
+ zOrder = rbuMPrintf(tls, p, ts+28750, 0)
} else {
- zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1565, ts+14529, ts+1565)
+ zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1534, ts+14543, ts+1534)
}
}
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+30626,
+ ts+30714,
libc.VaList(bp+536, zCollist,
func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 30674 /* "0 AS " */
+ return ts + 30762 /* "0 AS " */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
zRbuRowid,
(*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
if zStart != 0 {
return zStart
}
- return ts + 1565
+ return ts + 1534
}(),
func() uintptr {
if zOrder != 0 {
- return ts + 19677 /* "ORDER BY" */
+ return ts + 19707 /* "ORDER BY" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(), zOrder,
zLimit)))
}
@@ -164960,7 +166384,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 { /* sqlite3.c:206132:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -165008,12 +166432,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 + 1565 /* "" */
+ var zPrefix uintptr = ts + 1534 /* "" */
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType != RBU_PK_VTAB {
- zPrefix = ts + 30019 /* "rbu_imp_" */
+ zPrefix = ts + 30107 /* "rbu_imp_" */
}
- zUpdate = Xsqlite3_mprintf(tls, ts+30680,
+ zUpdate = Xsqlite3_mprintf(tls, ts+30768,
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)
@@ -165026,7 +166450,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 { /* sqlite3.c:206200:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -165040,7 +166464,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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */)))))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+3614, 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)
}
@@ -165049,7 +166473,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) { /* sqlite3.c:206221:13: */
if p != 0 {
Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzTbl)
Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzDataTbl)
@@ -165065,7 +166489,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 { /* sqlite3.c:206239:17: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -165081,7 +166505,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+30710, libc.VaList(bp, p+48)))
+ Xsqlite3_mprintf(tls, ts+30798, 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:
@@ -165149,7 +166573,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) { /* sqlite3.c:206320:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -165158,31 +166582,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+6327, SQLITE_FCNTL_RBUCNT, p)
+ Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6332, 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+6327)
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+30740, libc.VaList(bp, zFile, zFile))
+ var zFile uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6332)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+30828, 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+30767, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState))
- libc.Xmemcpy(tls, p+48, ts+3246, uint64(4))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30855, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState))
+ libc.Xmemcpy(tls, p+48, ts+3237, uint64(4))
} else {
- libc.Xmemcpy(tls, p+48, ts+6327, uint64(4))
+ libc.Xmemcpy(tls, p+48, ts+6332, uint64(4))
}
// If it has not already been created, create the rbu_state table
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30785, libc.VaList(bp+24, p+48))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30873, 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+6327, SQLITE_FCNTL_RBUCNT, p)
+ rc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6332, SQLITE_FCNTL_RBUCNT, p)
if rc != SQLITE_NOTFOUND {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc
}
@@ -165215,11 +166639,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+30851, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30939, 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+23945, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
+ if libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, ts+24020, (*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)))) == '?' {
@@ -165231,16 +166655,16 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
}
}
- zTarget = Xsqlite3_mprintf(tls, ts+30883,
- libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6327),
+ zTarget = Xsqlite3_mprintf(tls, ts+30971,
+ libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6332),
func() uintptr {
if zExtra == uintptr(0) {
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
- return ts + 30915 /* "&" */
+ return ts + 31003 /* "&" */
}(), func() uintptr {
if zExtra == uintptr(0) {
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
return zExtra
}()))
@@ -165256,40 +166680,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+30917, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31005, -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+30932, 2, SQLITE_UTF8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31020, 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+30949, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31037, -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+6327, SQLITE_FCNTL_RBU, p)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, SQLITE_FCNTL_RBU, p)
}
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+30965, 0)
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31053, 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+6327, SQLITE_FCNTL_RBU, p)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332, 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+30993, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31081, 0)
}
}
@@ -165311,7 +166735,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) { /* sqlite3.c:206501:13: */
}
// Return the current wal-index header checksum for the target database
@@ -165319,7 +166743,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 { /* sqlite3.c:206522:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -165352,7 +166776,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) { /* sqlite3.c:206551: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
@@ -165360,7 +166784,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+30965, uintptr(0), uintptr(0), uintptr(0))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31053, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -165394,7 +166818,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+31011, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31099, uintptr(0), uintptr(0), uintptr(0))
if rc2 != SQLITE_INTERNAL {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -165444,7 +166868,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 { /* sqlite3.c:206635:12: */
var mReq U32 = U32(int32(1)<<WAL_LOCK_WRITE | int32(1)<<WAL_LOCK_CKPT | int32(1)<<WAL_LOCK_READ0)
var iFrame U32
@@ -165483,7 +166907,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 { /* sqlite3.c:206667: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
}
@@ -165491,7 +166915,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) { /* sqlite3.c:206677: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
@@ -165512,13 +166936,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 { /* sqlite3.c:206696: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+6327, SQLITE_FCNTL_FILE_POINTER, bp)
+ Xsqlite3_file_control(tls, db, ts+6332, SQLITE_FCNTL_FILE_POINTER, bp)
if (*Sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods != 0 {
rc = (*struct {
@@ -165536,9 +166960,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 { /* sqlite3.c:206715:12: */
var zUri uintptr = Xsqlite3_db_filename(tls, db, uintptr(0))
- return Xsqlite3_uri_boolean(tls, zUri, ts+31046, 0)
+ return Xsqlite3_uri_boolean(tls, zUri, ts+31134, 0)
}
// The RBU handle is currently in RBU_STAGE_OAL state, with a SHARED lock
@@ -165546,20 +166970,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) { /* sqlite3.c:206751:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- var zBase uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6327)
+ var zBase uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6332)
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+6327)
+ zMove = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6332)
}
- zOal = Xsqlite3_mprintf(tls, ts+31071, libc.VaList(bp, zMove))
- zWal = Xsqlite3_mprintf(tls, ts+31078, libc.VaList(bp+8, zMove))
+ zOal = Xsqlite3_mprintf(tls, ts+31159, libc.VaList(bp, zMove))
+ zWal = Xsqlite3_mprintf(tls, ts+31166, libc.VaList(bp+8, zMove))
if zWal == uintptr(0) || zOal == uintptr(0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
@@ -165628,7 +167052,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 { /* sqlite3.c:206856:12: */
var iCol int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FnCol // Index of rbu_control column
var res int32 = 0 // Return value
@@ -165684,7 +167108,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) { /* sqlite3.c:206912:13: */
var pIter uintptr = p + 80
var pVal uintptr
var pWriter uintptr
@@ -165712,7 +167136,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+23583, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+23658, 0)
return
}
@@ -165756,7 +167180,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 { /* sqlite3.c:206995:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -165815,7 +167239,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) { /* sqlite3.c:207060:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -165830,7 +167254,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+31085)
+ ts+31173)
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
@@ -165843,7 +167267,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+31107, libc.VaList(bp, iCookie+1))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31195, libc.VaList(bp, iCookie+1))
}
}
}
@@ -165851,7 +167275,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) { /* sqlite3.c:207091:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -165868,7 +167292,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+31134,
+ ts+31222,
libc.VaList(bp, p+48,
RBU_STATE_STAGE, eStage,
RBU_STATE_TBL, (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl,
@@ -165906,16 +167330,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) { /* sqlite3.c:207152: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+31292, libc.VaList(bp, zPragma)))
+ Xsqlite3_mprintf(tls, ts+31380, 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+31307,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31395,
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 */)))
@@ -165925,18 +167349,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) { /* sqlite3.c:207172: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+31327, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31415, 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+31352)
+ ts+31440)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW {
@@ -165950,12 +167374,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+31460)
+ ts+31548)
}
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+31525)
+ ts+31613)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW {
@@ -165967,7 +167391,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+31569, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31657, uintptr(0), uintptr(0), p+64)
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp /* pSql */)))
@@ -165975,7 +167399,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 { /* sqlite3.c:207224:16: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -165989,8 +167413,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+17107)
- rbuCopyPragma(tls, p, ts+16218)
+ rbuCopyPragma(tls, p, ts+17139)
+ rbuCopyPragma(tls, p, ts+16250)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 {
@@ -166001,7 +167425,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+31594, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
+ ts+31682, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
}
} else {
rbuObjIterPrepareAll(tls, p, pIter, 0)
@@ -166027,10 +167451,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+14433, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14447, 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+14433, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14447, uintptr(0), uintptr(0), p+64)
}
(*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_MOVE
}
@@ -166089,7 +167513,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
@@ -166118,7 +167542,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 { /* sqlite3.c:207353:12: */
if z1 == uintptr(0) && z2 == uintptr(0) {
return 0
}
@@ -166136,7 +167560,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) { /* sqlite3.c:207369:13: */
if (*RbuState)(unsafe.Pointer(pState)).FzTbl != 0 {
var pIter uintptr = p + 80
@@ -166151,7 +167575,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+31622, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31710, 0)
}
if rc == SQLITE_OK {
@@ -166166,11 +167590,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) { /* sqlite3.c:207402:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- var zOal uintptr = rbuMPrintf(tls, p, ts+31071, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget))
+ var zOal uintptr = rbuMPrintf(tls, p, ts+31159, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget))
if zOal != 0 {
var pVfs uintptr = Xsqlite3_vfs_find(tls, uintptr(0))
@@ -166185,7 +167609,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) { /* sqlite3.c:207418:13: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -166194,7 +167618,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+31647, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* rnd */))))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+12, ts+31735, 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)
@@ -166206,7 +167630,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) { /* sqlite3.c:207438:13: */
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName != 0 {
Xsqlite3rbu_destroy_vfs(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName)
(*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName = uintptr(0)
@@ -166216,7 +167640,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) { /* sqlite3.c:207450:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -166233,7 +167657,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /
rc = prepareFreeAndCollectError(tls, db, bp+8, bp+16,
Xsqlite3_mprintf(tls,
- ts+31658, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal))))))
+ ts+31746, 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 {
@@ -166265,7 +167689,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) { /* sqlite3.c:207500:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -166276,7 +167700,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+31730, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+31818, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{rbuIndexCntFunc})), uintptr(0), uintptr(0))
@@ -166284,7 +167708,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+31744)
+ ts+31832)
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -166296,7 +167720,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+31801)
+ ts+31889)
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)
@@ -166307,7 +167731,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 { /* sqlite3.c:207541:19: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -166342,7 +167766,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+3623, libc.VaList(bp, zState))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+3614, libc.VaList(bp, zState))
}
// If the first attempt to open the database file fails and the bRetry
@@ -166379,7 +167803,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+31875, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31963, 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
@@ -166401,12 +167825,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+31907,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31995,
libc.VaList(bp+8, func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 31939 /* "vacuum" */
+ return ts + 32027 /* "vacuum" */
}
- return ts + 31946 /* "update" */
+ return ts + 32034 /* "update" */
}()))
}
}
@@ -166414,7 +167838,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+14418, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14432, uintptr(0), uintptr(0), p+64)
// Point the object iterator at the first object
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -166428,24 +167852,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+16821)
- rbuCopyPragma(tls, p, ts+16233)
+ rbuCopyPragma(tls, p, ts+16853)
+ rbuCopyPragma(tls, p, ts+16265)
}
// 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+31953, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, ts+32041, 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+6327, SQLITE_FCNTL_ZIPVFS, uintptr(0))
+ var frc int32 = Xsqlite3_file_control(tls, db, ts+6332, SQLITE_FCNTL_ZIPVFS, uintptr(0))
if frc == SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls,
- db, ts+31969, uintptr(0), uintptr(0), p+64)
+ db, ts+32057, uintptr(0), uintptr(0), p+64)
}
}
@@ -166480,7 +167904,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 { /* sqlite3.c:207705:19: */
var pRet uintptr
pRet = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3rbu{})))
if pRet != 0 {
@@ -166491,7 +167915,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 { /* sqlite3.c:207718:23: */
if zTarget == uintptr(0) || zRbu == uintptr(0) {
return rbuMisuseError(tls)
}
@@ -166499,13 +167923,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 { /* sqlite3.c:207730: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+31993, zState+uintptr(n-7), uint64(7)) {
+ if n >= 7 && 0 == libc.Xmemcmp(tls, ts+32081, zState+uintptr(n-7), uint64(7)) {
return rbuMisuseError(tls)
}
}
@@ -166514,7 +167938,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 { /* sqlite3.c:207748:20: */
var db uintptr = uintptr(0)
if pRbu != 0 {
db = func() uintptr {
@@ -166530,12 +167954,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) { /* sqlite3.c:207762: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+30019, uint64(8)) == 0 {
+ if libc.Xmemcmp(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), ts+30107, 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++
@@ -166548,13 +167972,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 { /* sqlite3.c:207780: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+14433, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14447, uintptr(0), uintptr(0), p+64)
}
// Sync the db file if currently doing an incremental checkpoint
@@ -166568,7 +167992,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+14433, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14447, uintptr(0), uintptr(0), p+64)
}
// Close any open statement handles.
@@ -166580,7 +168004,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+32001, uintptr(0), uintptr(0), uintptr(0))
+ var rc2 int32 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32089, uintptr(0), uintptr(0), uintptr(0))
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_DONE && rc2 != SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -166613,13 +168037,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 { /* sqlite3.c:207843: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) { /* sqlite3.c:207851:17: */
var MAX_PROGRESS int32 = 10000
switch (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage {
case RBU_STAGE_OAL:
@@ -166652,7 +168076,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 { /* sqlite3.c:207886:16: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -166670,7 +168094,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 { /* sqlite3.c:207914:16: */
var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
if rc == SQLITE_DONE {
return SQLITE_OK
@@ -166679,7 +168103,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+14433, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14447, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -166698,19 +168122,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+14433, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14447, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
var zBegin uintptr
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zBegin = ts + 14418 /* "BEGIN" */
+ zBegin = ts + 14432 /* "BEGIN" */
} else {
- zBegin = ts + 31953 /* "BEGIN IMMEDIATE" */
+ zBegin = ts + 32041 /* "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+31953, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32041, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -166777,7 +168201,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) { /* sqlite3.c:208007: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
@@ -166794,7 +168218,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 { /* sqlite3.c:208023: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
@@ -166812,7 +168236,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) { /* sqlite3.c:208041:13: */
var pRbuVfs uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs
var pIter uintptr
@@ -166834,7 +168258,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) { /* sqlite3.c:208063: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 {
@@ -166859,7 +168283,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 { /* sqlite3.c:208084:17: */
var pDb uintptr
Xsqlite3_mutex_enter(tls, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fmutex)
if bRbu != 0 {
@@ -166874,7 +168298,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 { /* sqlite3.c:208099:12: */
var p uintptr = pFile
var rc int32
var i int32
@@ -166906,7 +168330,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 { /* sqlite3.c:208132:12: */
return U32(*(*U8)(unsafe.Pointer(aBuf)))<<24 +
U32(*(*U8)(unsafe.Pointer(aBuf + 1)))<<16 +
U32(*(*U8)(unsafe.Pointer(aBuf + 2)))<<8 +
@@ -166915,20 +168339,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) { /* sqlite3.c:208143: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) { /* sqlite3.c:208150: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 { /* sqlite3.c:208158:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32
@@ -166992,7 +168416,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 { /* sqlite3.c:208224:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32
@@ -167031,7 +168455,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 { /* sqlite3.c:208267: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)
@@ -167045,7 +168469,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 { /* sqlite3.c:208279: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 {
@@ -167059,7 +168483,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 { /* sqlite3.c:208293:12: */
var p uintptr = pFile
var rc int32
rc = (*struct {
@@ -167079,7 +168503,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 { /* sqlite3.c:208314:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32 = SQLITE_OK
@@ -167099,7 +168523,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 { /* sqlite3.c:208336:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -167107,7 +168531,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 { /* sqlite3.c:208344:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -167115,7 +168539,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 { /* sqlite3.c:208352:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -167142,7 +168566,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+32028, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32116, 0)
} else if rc == SQLITE_NOTFOUND {
(*Sqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p
(*Rbu_file)(unsafe.Pointer(p)).FpRbu = pRbu
@@ -167167,7 +168591,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+32051, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
+ var zOut uintptr = Xsqlite3_mprintf(tls, ts+32139, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
*(*uintptr)(unsafe.Pointer(pArg)) = zOut
if zOut == uintptr(0) {
rc = SQLITE_NOMEM
@@ -167178,7 +168602,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 { /* sqlite3.c:208408:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -167186,7 +168610,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 { /* sqlite3.c:208416:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -167194,7 +168618,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 { /* sqlite3.c:208424:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32 = SQLITE_OK
@@ -167227,7 +168651,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 { /* sqlite3.c:208462:12: */
var p uintptr = pFile
var rc int32 = SQLITE_OK
var eStage int32 = func() int32 {
@@ -167284,13 +168708,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) { /* sqlite3.c:208520: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 { /* sqlite3.c:208528:12: */
var p uintptr = pFile
var rc int32 = SQLITE_OK
var eStage int32 = func() int32 {
@@ -167313,7 +168737,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 { /* sqlite3.c:208547:12: */
var pRbuVfs uintptr = pVfs
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).FpRealVfs
var pFd uintptr = pFile
@@ -167340,7 +168764,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+6327)
+ zOpen = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, ts+6332)
zOpen = Xsqlite3_filename_wal(tls, zOpen)
}
nOpen = libc.Xstrlen(tls, zOpen)
@@ -167355,7 +168779,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+32062, 0) != 0 {
+ Xsqlite3_uri_boolean(tls, zName, ts+32150, 0) != 0 {
oflags = SQLITE_OPEN_TEMP_DB | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE
zOpen = uintptr(0)
@@ -167399,10 +168823,10 @@ var rbuvfs_io_methods = Sqlite3_io_methods{
FxShmLock: 0, // xShmLock
FxShmBarrier: 0, // xShmBarrier
FxShmUnmap: 0, // xFetch, xUnfetch
-} /* sqlite3.c:206787:29 */
+} /* sqlite3.c:208554: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 { /* sqlite3.c:208645:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, int32) int32
@@ -167411,7 +168835,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 { /* sqlite3.c:208654:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -167456,7 +168880,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 { /* sqlite3.c:208702:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
@@ -167464,7 +168888,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 { /* sqlite3.c:208716:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr) uintptr
@@ -167474,7 +168898,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) { /* sqlite3.c:208726:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr)
@@ -167482,7 +168906,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 { /* sqlite3.c:208734:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr
@@ -167490,7 +168914,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) { /* sqlite3.c:208746:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
(*struct {
f func(*libc.TLS, uintptr, uintptr)
@@ -167499,7 +168923,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 { /* sqlite3.c:208756:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -167508,7 +168932,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 { /* sqlite3.c:208765:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -167516,7 +168940,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 { /* sqlite3.c:208773:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -167524,13 +168948,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 { /* sqlite3.c:208781: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) { /* sqlite3.c:208789: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
@@ -167544,7 +168968,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 { /* sqlite3.c:208803:16: */
var pNew uintptr = uintptr(0) // Newly allocated VFS
var rc int32 = SQLITE_OK
@@ -167605,17 +169029,17 @@ var vfs_template = Sqlite3_vfs{
FxSleep: 0, // xSleep
FxCurrentTime: 0, // xCurrentTime
FxGetLastError: 0, // Unimplemented version 3 methods
-} /* sqlite3.c:207039:22 */
+} /* sqlite3.c:208806: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 { /* sqlite3.c:208881: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 { /* sqlite3.c:208888:26: */
return (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FszTemp
}
@@ -167698,7 +169122,7 @@ type SessionTable1 = struct {
FnEntry int32
FnChange int32
FapChange uintptr
-} /* sqlite3.c:10518:9 */
+} /* sqlite3.c:10828:9 */
//************************************************************************
@@ -167769,7 +169193,7 @@ type SessionTable1 = struct {
// #include <assert.h>
// #include <string.h>
-type SessionTable = SessionTable1 /* sqlite3.c:208465:29 */
+type SessionTable = SessionTable1 /* sqlite3.c:210232:29 */
type SessionChange1 = struct {
Fop U8
FbIndirect U8
@@ -167779,16 +169203,16 @@ type SessionChange1 = struct {
F__ccgo_pad2 [4]byte
FaRecord uintptr
FpNext uintptr
-} /* sqlite3.c:10518:9 */
+} /* sqlite3.c:10828:9 */
-type SessionChange = SessionChange1 /* sqlite3.c:208466:30 */
+type SessionChange = SessionChange1 /* sqlite3.c:210233:30 */
type SessionBuffer1 = struct {
FaBuf uintptr
FnBuf int32
FnAlloc int32
-} /* sqlite3.c:10526:9 */
+} /* sqlite3.c:10836:9 */
-type SessionBuffer = SessionBuffer1 /* sqlite3.c:208467:30 */
+type SessionBuffer = SessionBuffer1 /* sqlite3.c:210234:30 */
type SessionInput1 = struct {
FbNoDiscard int32
FiCurrent int32
@@ -167802,13 +169226,13 @@ type SessionInput1 = struct {
FpIn uintptr
FbEof int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:10526:9 */
+} /* sqlite3.c:10836:9 */
-type SessionInput = SessionInput1 /* sqlite3.c:208468:29 */
+type SessionInput = SessionInput1 /* sqlite3.c:210235: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 /* sqlite3.c:210248:12 */
type SessionHook1 = struct {
FpCtx uintptr
@@ -167816,13 +169240,13 @@ type SessionHook1 = struct {
FxNew uintptr
FxCount uintptr
FxDepth uintptr
-} /* sqlite3.c:10518:9 */
+} /* sqlite3.c:10828:9 */
-type SessionHook = SessionHook1 /* sqlite3.c:208483:28 */
+type SessionHook = SessionHook1 /* sqlite3.c:210250: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 { /* sqlite3.c:210528:12: */
return int32(func() uint8 {
if U32(iVal) < U32(0x80) {
return uint8(func() int32 { *(*U8)(unsafe.Pointer(aBuf)) = uint8(iVal); return 1 }())
@@ -167832,13 +169256,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 { /* sqlite3.c:210535: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 { /* sqlite3.c:210543: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 }())
@@ -167851,7 +169275,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 { /* sqlite3.c:210554: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)
@@ -167859,7 +169283,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) { /* sqlite3.c:210564: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))
@@ -167881,7 +169305,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 { /* sqlite3.c:210588:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -167969,7 +169393,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 { /* sqlite3.c:210664:13: */
var pRet uintptr = Xsqlite3_malloc64(tls, uint64(nByte))
if pSession != 0 {
*(*I64)(unsafe.Pointer(pSession + 56)) += I64(Xsqlite3_msize(tls, pRet))
@@ -167980,7 +169404,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) { /* sqlite3.c:210675:13: */
if pSession != 0 {
*(*I64)(unsafe.Pointer(pSession + 56)) -= I64(Xsqlite3_msize(tls, pFree))
}
@@ -168003,14 +169427,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 { /* sqlite3.c:210701: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 { /* sqlite3.c:210710:21: */
var i int32
for i = 0; i < n; i++ {
h = h<<3 ^ h ^ uint32(*(*U8)(unsafe.Pointer(z + uintptr(i))))
@@ -168020,7 +169444,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 { /* sqlite3.c:210720:21: */
return h<<3 ^ h ^ uint32(eType)
}
@@ -168033,7 +169457,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 { /* sqlite3.c:210735:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -168099,7 +169523,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 { /* sqlite3.c:210800:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -168125,7 +169549,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 { /* sqlite3.c:210818:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -168168,7 +169592,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 { /* sqlite3.c:210867: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
@@ -168207,7 +169631,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) { /* sqlite3.c:210910: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
@@ -168246,7 +169670,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 { /* sqlite3.c:210956:11: */
var a1 uintptr = *(*uintptr)(unsafe.Pointer(paOne))
var a2 uintptr = *(*uintptr)(unsafe.Pointer(paTwo))
var pRet uintptr = uintptr(0)
@@ -168273,7 +169697,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 { /* sqlite3.c:210990:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -168348,7 +169772,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 { /* sqlite3.c:211067:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -168436,7 +169860,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 { /* sqlite3.c:211146: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
@@ -168500,7 +169924,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 { /* sqlite3.c:211212:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -168517,15 +169941,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+11208, zThis) {
+ if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+11225, 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+32073, 0)
+ ts+32161, 0)
} else if rc == SQLITE_ERROR {
- zPragma = Xsqlite3_mprintf(tls, ts+1565, 0)
+ zPragma = Xsqlite3_mprintf(tls, ts+1534, 0)
} else {
*(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(pabPK)) = uintptr(0)
@@ -168536,7 +169960,7 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
return rc
}
} else {
- zPragma = Xsqlite3_mprintf(tls, ts+32194, libc.VaList(bp, zDb, zThis))
+ zPragma = Xsqlite3_mprintf(tls, ts+32282, libc.VaList(bp, zDb, zThis))
}
if !(zPragma != 0) {
*(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0)
@@ -168631,7 +170055,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 { /* sqlite3.c:211345:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168648,7 +170072,7 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /*
break
}
}
- if 0 == Xsqlite3_stricmp(tls, ts+11208, (*SessionTable)(unsafe.Pointer(pTab)).FzName) {
+ if 0 == Xsqlite3_stricmp(tls, ts+11225, (*SessionTable)(unsafe.Pointer(pTab)).FzName) {
(*SessionTable)(unsafe.Pointer(pTab)).FbStat1 = 1
}
@@ -168667,15 +170091,15 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /*
type SessionStat1Ctx1 = struct {
Fhook SessionHook
FpSession uintptr
-} /* sqlite3.c:209613:9 */
+} /* sqlite3.c:211380: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 /* sqlite3.c:211380: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 { /* sqlite3.c:211385:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168691,7 +170115,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 { /* sqlite3.c:211395:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -168707,21 +170131,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 { /* sqlite3.c:211405: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 { /* sqlite3.c:211409: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 { /* sqlite3.c:211414:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -168835,7 +170259,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) { /* sqlite3.c:211520:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -168928,7 +170352,7 @@ __4:
goto error_out
__7:
;
- Xsqlite3ValueSetStr(tls, p, 0, ts+1565, uint8(0), uintptr(0))
+ Xsqlite3ValueSetStr(tls, p, 0, ts+1534, uint8(0), uintptr(0))
(*Sqlite3_session)(unsafe.Pointer(pSession)).FpZeroBlob = p
__6:
;
@@ -169131,7 +170555,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 { /* sqlite3.c:211669:12: */
var rc int32 = SQLITE_OK
var nName int32 = Xsqlite3Strlen30(tls, zName)
var pRet uintptr
@@ -169166,7 +170590,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) { /* sqlite3.c:211709:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -169201,25 +170625,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 { /* sqlite3.c:211747: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 { /* sqlite3.c:211750: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 { /* sqlite3.c:211753: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 { /* sqlite3.c:211756: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) { /* sqlite3.c:211764: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
@@ -169239,24 +170663,24 @@ type SessionDiffCtx1 = struct {
FpStmt uintptr
FnOldOff int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:210007:9 */
+} /* sqlite3.c:211774:9 */
-type SessionDiffCtx = SessionDiffCtx1 /* sqlite3.c:210007:31 */
+type SessionDiffCtx = SessionDiffCtx1 /* sqlite3.c:211774: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 { /* sqlite3.c:211783: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 { /* sqlite3.c:211788: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 { /* sqlite3.c:211793:12: */
var p uintptr = pCtx
if (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff != 0 {
return (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff
@@ -169264,13 +170688,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 { /* sqlite3.c:211797: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) { /* sqlite3.c:211805: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
@@ -169286,19 +170710,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 { /* sqlite3.c:211816:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
var i int32
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
var zRet uintptr = uintptr(0)
for i = 0; i < nCol; i++ {
if *(*U8)(unsafe.Pointer(abPK + uintptr(i))) != 0 {
- zRet = Xsqlite3_mprintf(tls, ts+32223,
+ zRet = Xsqlite3_mprintf(tls, ts+32311,
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 + 21343 /* " AND " */
+ zSep = ts + 21373 /* " AND " */
if zRet == uintptr(0) {
break
}
@@ -169308,12 +170732,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 { /* sqlite3.c:211839:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
var i int32
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
var zRet uintptr = uintptr(0)
var bHave int32 = 0
@@ -169321,9 +170745,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+32257,
+ ts+32345,
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 + 32298 /* " OR " */
+ zSep = ts + 32386 /* " OR " */
if zRet == uintptr(0) {
break
}
@@ -169332,24 +170756,24 @@ func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintp
if bHave == 0 {
- zRet = Xsqlite3_mprintf(tls, ts+7421, 0)
+ zRet = Xsqlite3_mprintf(tls, ts+7417, 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 { /* sqlite3.c:211870:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
var zRet uintptr = Xsqlite3_mprintf(tls,
- ts+32303,
+ ts+32391,
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 { /* sqlite3.c:211886:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -169377,7 +170801,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 { /* sqlite3.c:211917:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -169389,7 +170813,7 @@ func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFro
rc = SQLITE_NOMEM
} else {
var zStmt uintptr = Xsqlite3_mprintf(tls,
- ts+32381,
+ ts+32469,
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
@@ -169414,7 +170838,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 { /* sqlite3.c:211957:16: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -169527,7 +170951,7 @@ __6:
if !(pzErrMsg != 0) {
goto __16
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+32434, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+32522, 0)
__16:
;
rc = SQLITE_SCHEMA
@@ -169587,7 +171011,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 { /* sqlite3.c:212052: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
@@ -169623,7 +171047,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) { /* sqlite3.c:212090:13: */
var pNext uintptr
var pTab uintptr
@@ -169645,7 +171069,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) { /* sqlite3.c:212114:17: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -169683,7 +171107,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) { /* sqlite3.c:212146:17: */
(*Sqlite3_session)(unsafe.Pointer(pSession)).FbAutoAttach = 1
(*Sqlite3_session)(unsafe.Pointer(pSession)).FpFilterCtx = pCtx
(*Sqlite3_session)(unsafe.Pointer(pSession)).FxTableFilter = xFilter
@@ -169695,7 +171119,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 { /* sqlite3.c:212164:16: */
var rc int32 = SQLITE_OK
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
@@ -169746,7 +171170,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 { /* sqlite3.c:212217: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
@@ -169757,7 +171181,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)
}
@@ -169791,7 +171215,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) { /* sqlite3.c:212260:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -169814,7 +171238,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) { /* sqlite3.c:212282: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
}
@@ -169825,7 +171249,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) { /* sqlite3.c:212295: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)
}
@@ -169836,7 +171260,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) { /* sqlite3.c:212308: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
@@ -169849,7 +171273,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) { /* sqlite3.c:212328: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))
@@ -169863,13 +171287,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) { /* sqlite3.c:212348: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+4917, libc.VaList(bp, iVal))
+ Xsqlite3_snprintf(tls, int32(uint64(unsafe.Sizeof([24]int8{}))-uint64(1)), bp+8, ts+4926, libc.VaList(bp, iVal))
sessionAppendStr(tls, p, bp+8, pRc)
}
@@ -169880,7 +171304,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) { /* sqlite3.c:212367: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)
@@ -169901,7 +171325,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) { /* sqlite3.c:212392:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -169961,7 +171385,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 { /* sqlite3.c:212454:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -170067,7 +171491,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 { /* sqlite3.c:212554:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170124,7 +171548,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 { /* sqlite3.c:212609:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -170132,30 +171556,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+11208, zTab) {
+ if 0 == Xsqlite3_stricmp(tls, ts+11225, zTab) {
zSql = Xsqlite3_mprintf(tls,
- ts+32461, libc.VaList(bp, zDb))
+ ts+32549, libc.VaList(bp, zDb))
if zSql == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_NOMEM
}
} else {
var i int32
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
*(*SessionBuffer)(unsafe.Pointer(bp + 8 /* buf */)) = SessionBuffer{}
- sessionAppendStr(tls, bp+8, ts+32571, bp+24)
+ sessionAppendStr(tls, bp+8, ts+32659, bp+24)
sessionAppendIdent(tls, bp+8, zDb, bp+24)
- sessionAppendStr(tls, bp+8, ts+1578, bp+24)
+ sessionAppendStr(tls, bp+8, ts+1547, bp+24)
sessionAppendIdent(tls, bp+8, zTab, bp+24)
- sessionAppendStr(tls, bp+8, ts+32586, bp+24)
+ sessionAppendStr(tls, bp+8, ts+32674, 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+32594, bp+24)
+ sessionAppendStr(tls, bp+8, ts+32682, bp+24)
sessionAppendInteger(tls, bp+8, i+1, bp+24)
- zSep = ts + 21343 /* " AND " */
+ zSep = ts + 21373 /* " AND " */
}
}
zSql = (*SessionBuffer)(unsafe.Pointer(bp + 8 /* &buf */)).FaBuf
@@ -170175,7 +171599,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 { /* sqlite3.c:212666:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -170253,7 +171677,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) { /* sqlite3.c:212737:13: */
// Write a table header
sessionAppendByte(tls, pBuf, func() uint8 {
if bPatchset != 0 {
@@ -170274,7 +171698,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 { /* sqlite3.c:212760:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -170296,7 +171720,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+32600, uintptr(0), uintptr(0), uintptr(0))
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3_exec(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb, ts+32688, uintptr(0), uintptr(0), uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK {
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
@@ -170394,7 +171818,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+32620, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+32708, uintptr(0), uintptr(0), uintptr(0))
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db))
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
@@ -170404,7 +171828,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 { /* sqlite3.c:212889:16: */
var rc int32
if pnChangeset == uintptr(0) || ppChangeset == uintptr(0) {
@@ -170416,7 +171840,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 { /* sqlite3.c:212907:16: */
if xOutput == uintptr(0) {
return SQLITE_MISUSE
}
@@ -170424,7 +171848,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 { /* sqlite3.c:212919:16: */
if xOutput == uintptr(0) {
return SQLITE_MISUSE
}
@@ -170436,7 +171860,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 { /* sqlite3.c:212935:16: */
if pnPatchset == uintptr(0) || ppPatchset == uintptr(0) {
return SQLITE_MISUSE
}
@@ -170444,7 +171868,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 { /* sqlite3.c:212947:16: */
var ret int32
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
if bEnable >= 0 {
@@ -170456,7 +171880,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 { /* sqlite3.c:212961:16: */
var ret int32
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
if bIndirect >= 0 {
@@ -170469,7 +171893,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 { /* sqlite3.c:212976:16: */
var ret int32 = 0
var pTab uintptr
@@ -170483,12 +171907,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 { /* sqlite3.c:212992: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 { /* sqlite3.c:212999:16: */
var rc int32 = SQLITE_OK
switch op {
case SQLITE_SESSION_OBJCONFIG_SIZE:
@@ -170514,12 +171938,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 { /* sqlite3.c:213025: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 { /* sqlite3.c:213032:12: */
var pRet uintptr // Iterator to return
var nByte int32 // Number of bytes to allocate for iterator
@@ -170552,28 +171976,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 { /* sqlite3.c:213070: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 { /* sqlite3.c:213077: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 { /* sqlite3.c:213090: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 { /* sqlite3.c:213097: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) { /* sqlite3.c:213111: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
@@ -170591,7 +172015,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 { /* sqlite3.c:213131:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170624,7 +172048,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) { /* sqlite3.c:213159:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -170649,7 +172073,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 { /* sqlite3.c:213185: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
@@ -170685,7 +172109,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 { /* sqlite3.c:213226:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -170703,7 +172127,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, 213244)
} else {
eType = int32(*(*U8)(unsafe.Pointer((*SessionInput)(unsafe.Pointer(pIn)).FaData + uintptr(libc.PostIncInt32(&(*SessionInput)(unsafe.Pointer(pIn)).FiNext, 1)))))
@@ -170728,7 +172152,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, 213264)
} else {
var enc U8 = func() uint8 {
if eType == SQLITE_TEXT {
@@ -170770,7 +172194,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 { /* sqlite3.c:213302:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -170789,7 +172213,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, 213318)
} else {
rc = sessionInputBuffer(tls, pIn, nRead+*(*int32)(unsafe.Pointer(bp))+100)
nRead = nRead + *(*int32)(unsafe.Pointer(bp))
@@ -170816,7 +172240,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 { /* sqlite3.c:213345:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -170858,7 +172282,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 { /* sqlite3.c:213389:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170878,7 +172302,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, 213406)
}
}
@@ -170913,7 +172337,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 { /* sqlite3.c:213438:12: */
var i int32
var op U8
@@ -170970,13 +172394,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, 213492))
}
(*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, 213498))
}
if paRec != 0 {
@@ -171046,7 +172470,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, 213542))
}
*(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i+(*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*8)) = uintptr(0)
}
@@ -171077,14 +172501,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 { /* sqlite3.c:213571: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)
}
@@ -171097,14 +172521,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 { /* sqlite3.c:213594: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 { /* sqlite3.c:213603: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
@@ -171118,7 +172542,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 { /* sqlite3.c:213623: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
@@ -171137,7 +172561,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 { /* sqlite3.c:213646:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_DELETE {
return SQLITE_MISUSE
}
@@ -171159,7 +172583,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 { /* sqlite3.c:213674:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_INSERT {
return SQLITE_MISUSE
}
@@ -171183,7 +172607,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 { /* sqlite3.c:213708:16: */
if !(int32((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict) != 0) {
return SQLITE_MISUSE
}
@@ -171200,7 +172624,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 { /* sqlite3.c:213731:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict != 0 || (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue != 0 {
return SQLITE_MISUSE
}
@@ -171212,7 +172636,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 { /* sqlite3.c:213749:16: */
var rc int32 = SQLITE_OK
if p != 0 {
var i int32 // Used to iterate through p->apValue[]
@@ -171229,7 +172653,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 { /* sqlite3.c:213764:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -171465,7 +172889,7 @@ __27:
goto __6
__11:
- *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 212124)
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 213891)
goto finished_invert
__6:
;
@@ -171516,7 +172940,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 { /* sqlite3.c:213923:16: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -171531,7 +172955,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 { /* sqlite3.c:213942:16: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -171553,9 +172977,9 @@ type SessionUpdate1 = struct {
FpStmt uintptr
FaMask uintptr
FpNext uintptr
-} /* sqlite3.c:212195:9 */
+} /* sqlite3.c:213962:9 */
-type SessionUpdate = SessionUpdate1 /* sqlite3.c:212195:30 */
+type SessionUpdate = SessionUpdate1 /* sqlite3.c:213962:30 */
type SessionApplyCtx1 = struct {
Fdb uintptr
@@ -171577,9 +173001,9 @@ type SessionApplyCtx1 = struct {
FbRebaseStarted U8
FbRebase U8
F__ccgo_pad3 [6]byte
-} /* sqlite3.c:212202:9 */
+} /* sqlite3.c:213969:9 */
-type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:212202:32 */
+type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:213969:32 */
// Number of prepared UPDATE statements to cache.
@@ -171587,7 +173011,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 { /* sqlite3.c:213998:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -171648,36 +173072,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+11208) == 0)
+ var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+11225) == 0)
pUp = Xsqlite3_malloc(tls, nByte)
if pUp == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_NOMEM
} else {
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
// 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+32638, bp+16)
+ sessionAppendStr(tls, bp, ts+32726, bp+16)
sessionAppendIdent(tls, bp, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp+16)
- sessionAppendStr(tls, bp, ts+32651, bp+16)
+ sessionAppendStr(tls, bp, ts+32739, 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+32657, bp+16)
+ sessionAppendStr(tls, bp, ts+32745, bp+16)
sessionAppendInteger(tls, bp, ii*2+1, bp+16)
- zSep = ts + 14529 /* ", " */
+ zSep = ts + 14543 /* ", " */
}
}
// Create the WHERE clause part of the UPDATE
- zSep = ts + 1565 /* "" */
- sessionAppendStr(tls, bp, ts+32586, bp+16)
+ zSep = ts + 1534 /* "" */
+ sessionAppendStr(tls, bp, ts+32674, 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)
@@ -171685,13 +173109,13 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32,
sessionAppendStr(tls, bp,
- ts+32662, bp+16)
+ ts+32750, bp+16)
} else {
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp+16)
- sessionAppendStr(tls, bp, ts+32594, bp+16)
+ sessionAppendStr(tls, bp, ts+32682, bp+16)
sessionAppendInteger(tls, bp, ii*2+2, bp+16)
}
- zSep = ts + 21343 /* " AND " */
+ zSep = ts + 21373 /* " AND " */
}
}
@@ -171721,7 +173145,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) { /* sqlite3.c:214137:13: */
var pUp uintptr
var pNext uintptr
for pUp = (*SessionApplyCtx)(unsafe.Pointer(p)).FpUp; pUp != 0; pUp = pNext {
@@ -171749,47 +173173,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 { /* sqlite3.c:214167:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
var i int32
- var zSep uintptr = ts + 1565 /* "" */
+ var zSep uintptr = ts + 1534 /* "" */
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_OK
*(*SessionBuffer)(unsafe.Pointer(bp /* buf */)) = SessionBuffer{}
var nPk int32 = 0
- sessionAppendStr(tls, bp, ts+32737, bp+16)
+ sessionAppendStr(tls, bp, ts+32825, bp+16)
sessionAppendIdent(tls, bp, zTab, bp+16)
- sessionAppendStr(tls, bp, ts+32586, bp+16)
+ sessionAppendStr(tls, bp, ts+32674, 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+32657, bp+16)
+ sessionAppendStr(tls, bp, ts+32745, bp+16)
sessionAppendInteger(tls, bp, i+1, bp+16)
- zSep = ts + 21343 /* " AND " */
+ zSep = ts + 21373 /* " AND " */
}
}
if nPk < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol {
- sessionAppendStr(tls, bp, ts+32755, bp+16)
+ sessionAppendStr(tls, bp, ts+32843, bp+16)
sessionAppendInteger(tls, bp, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol+1, bp+16)
- sessionAppendStr(tls, bp, ts+32298, bp+16)
+ sessionAppendStr(tls, bp, ts+32386, bp+16)
- zSep = ts + 1565 /* "" */
+ zSep = ts + 1534 /* "" */
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+32594, bp+16)
+ sessionAppendStr(tls, bp, ts+32682, bp+16)
sessionAppendInteger(tls, bp, i+1, bp+16)
- zSep = ts + 32763 /* "AND " */
+ zSep = ts + 32851 /* "AND " */
}
}
- sessionAppendStr(tls, bp, ts+4899, bp+16)
+ sessionAppendStr(tls, bp, ts+4908, bp+16)
}
if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK {
@@ -171811,9 +173235,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 { /* sqlite3.c:214232:12: */
return sessionSelectStmt(tls,
- db, ts+6327, zTab, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24)
+ db, ts+6332, 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.
@@ -171823,7 +173247,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 { /* sqlite3.c:214250:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -171831,21 +173255,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+32768, bp+16)
+ sessionAppendStr(tls, bp, ts+32856, bp+16)
sessionAppendIdent(tls, bp, zTab, bp+16)
- sessionAppendStr(tls, bp, ts+21349, bp+16)
+ sessionAppendStr(tls, bp, ts+21379, bp+16)
for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
if i != 0 {
- sessionAppendStr(tls, bp, ts+14529, bp+16)
+ sessionAppendStr(tls, bp, ts+14543, bp+16)
}
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16)
}
- sessionAppendStr(tls, bp, ts+32786, bp+16)
+ sessionAppendStr(tls, bp, ts+32874, bp+16)
for i = 1; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
- sessionAppendStr(tls, bp, ts+32797, bp+16)
+ sessionAppendStr(tls, bp, ts+32885, bp+16)
}
- sessionAppendStr(tls, bp, ts+4899, bp+16)
+ sessionAppendStr(tls, bp, ts+4908, 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))
@@ -171854,7 +173278,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 { /* sqlite3.c:214280:12: */
return Xsqlite3_prepare_v2(tls, db, zSql, -1, pp, uintptr(0))
}
@@ -171862,24 +173286,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+11208, p)
+func sessionStat1Sql(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:214290:12: */
+ var rc int32 = sessionSelectRow(tls, db, ts+11225, p)
if rc == SQLITE_OK {
rc = sessionPrepare(tls, db, p+16,
- ts+32801)
+ ts+32889)
}
if rc == SQLITE_OK {
rc = sessionPrepare(tls, db, p+8,
- ts+32914)
+ ts+33002)
}
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 { /* sqlite3.c:214313: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
@@ -171906,7 +173330,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 { /* sqlite3.c:214346:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -171927,7 +173351,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, 214369)
} else {
rc = sessionBindValue(tls, pStmt, i+1, *(*uintptr)(unsafe.Pointer(bp /* pVal */)))
}
@@ -171951,7 +173375,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 { /* sqlite3.c:214395:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -171995,7 +173419,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 { /* sqlite3.c:214430:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -172067,7 +173491,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 { /* sqlite3.c:214504:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -172167,7 +173591,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 { /* sqlite3.c:214602:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -172302,7 +173726,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 { /* sqlite3.c:214735:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172324,7 +173748,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+33058, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33146, uintptr(0), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
rc = sessionBindRow(tls, pIter,
*(*uintptr)(unsafe.Pointer(&struct {
@@ -172340,7 +173764,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+33079, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33167, uintptr(0), uintptr(0), uintptr(0))
}
}
}
@@ -172349,7 +173773,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 { /* sqlite3.c:214792:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -172403,7 +173827,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 { /* sqlite3.c:214848:12: */
bp := tls.Alloc(368)
defer tls.Free(368)
@@ -172421,10 +173845,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+33098, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33186, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, ts+33124, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33212, uintptr(0), uintptr(0), uintptr(0))
}
for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3changeset_next(tls, pIter) {
// var nCol int32 at bp+184, 4
@@ -172468,7 +173892,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+3623, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */))))
+ *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */))))
if *(*uintptr)(unsafe.Pointer(bp + 200)) == uintptr(0) {
rc = SQLITE_NOMEM
break
@@ -172481,7 +173905,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+6327, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48)
+ db, ts+6332, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48)
if rc != SQLITE_OK {
break
}
@@ -172494,20 +173918,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+33154, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */))))
+ ts+33242, 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+33198,
+ ts+33286,
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+33269, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */))))
+ ts+33357, 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+11208) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), ts+11225) {
if libc.AssignInt32(&rc, sessionStat1Sql(tls, db, bp+48)) != 0 {
break
}
@@ -172565,14 +173989,14 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin
}
}
}
- Xsqlite3_exec(tls, db, ts+33329, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+33417, uintptr(0), uintptr(0), uintptr(0))
if flags&SQLITE_CHANGESETAPPLY_NOSAVEPOINT == 0 {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, ts+33359, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+33447, uintptr(0), uintptr(0), uintptr(0))
} else {
- Xsqlite3_exec(tls, db, ts+33383, uintptr(0), uintptr(0), uintptr(0))
- Xsqlite3_exec(tls, db, ts+33359, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+33471, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+33447, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -172594,7 +174018,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 { /* sqlite3.c:215046:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172612,7 +174036,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 { /* sqlite3.c:215079:16: */
return Xsqlite3changeset_apply_v2(tls,
db, nChangeset, pChangeset, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0)
}
@@ -172620,7 +174044,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 { /* sqlite3.c:215104:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172635,7 +174059,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 { /* sqlite3.c:215131:16: */
return Xsqlite3changeset_apply_v2_strm(tls,
db, xInput, pIn, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0)
}
@@ -172643,7 +174067,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 { /* sqlite3.c:215165:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -172815,7 +174239,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 { /* sqlite3.c:215347:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -172946,7 +174370,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 { /* sqlite3.c:215470:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -173000,7 +174424,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 { /* sqlite3.c:215521:16: */
var rc int32 = SQLITE_OK // Return code
var p uintptr // New object
p = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_changegroup{})))
@@ -173015,7 +174439,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 { /* sqlite3.c:215538:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173033,12 +174457,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 { /* sqlite3.c:215554: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 { /* sqlite3.c:215565:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173055,12 +174479,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 { /* sqlite3.c:215584: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) { /* sqlite3.c:215595:17: */
if pGrp != 0 {
sessionDeleteTable(tls, uintptr(0), (*Sqlite3_changegroup)(unsafe.Pointer(pGrp)).FpList)
Xsqlite3_free(tls, pGrp)
@@ -173068,7 +174492,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 { /* sqlite3.c:215605:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173092,7 +174516,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 { /* sqlite3.c:215634:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173119,7 +174543,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) { /* sqlite3.c:215673:13: */
sessionBufferGrow(tls, pBuf, int64(n1+n2), pRc)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var i int32
@@ -173160,7 +174584,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) { /* sqlite3.c:215722:13: */
sessionBufferGrow(tls, pBuf, int64(2+nRec+nChange), pRc)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var bData int32 = 0
@@ -173222,7 +174646,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 { /* sqlite3.c:215790:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -173360,7 +174784,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 { /* sqlite3.c:215922:16: */
var rc int32 = SQLITE_OK
var pNew uintptr
@@ -173375,7 +174799,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 { /* sqlite3.c:215939:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173390,7 +174814,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 { /* sqlite3.c:215956:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173406,7 +174830,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 { /* sqlite3.c:215975:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173422,7 +174846,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) { /* sqlite3.c:215996:17: */
if p != 0 {
sessionDeleteTable(tls, uintptr(0), (*Sqlite3_rebaser)(unsafe.Pointer(p)).Fgrp.FpList)
Xsqlite3_free(tls, p)
@@ -173430,7 +174854,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 { /* sqlite3.c:216006:16: */
var rc int32 = SQLITE_OK
switch op {
case SQLITE_SESSION_CONFIG_STRMSIZE:
@@ -173518,7 +174942,7 @@ type Fts5Global1 = struct {
FpTok uintptr
FpDfltTok uintptr
FpCsr uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
//************* End of sqlite3session.c *************************************
//************* Begin file fts5.c *******************************************
@@ -173580,13 +175004,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 /* sqlite3.c:216737:27 */
type Fts5Colset1 = struct {
FnCol int32
FaiCol [1]int32
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5Colset = Fts5Colset1 /* sqlite3.c:214971:27 */
+type Fts5Colset = Fts5Colset1 /* sqlite3.c:216738:27 */
// *************************************************************************
//
@@ -173624,14 +175048,14 @@ type Fts5Config1 = struct {
FzRank uintptr
FzRankArgs uintptr
FpzErrmsg uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737: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 /* sqlite3.c:216758:27 */
//
// End of interface to code in fts5_config.c.
@@ -173646,7 +175070,7 @@ type Fts5Buffer1 = struct {
Fp uintptr
Fn int32
FnSpace int32
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
//
// End of interface to code in fts5_config.c.
@@ -173657,7 +175081,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 /* sqlite3.c:216884:27 */
type Fts5PoslistReader1 = struct {
Fa uintptr
@@ -173667,19 +175091,19 @@ type Fts5PoslistReader1 = struct {
FbEof U8
F__ccgo_pad1 [6]byte
FiPos I64
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5PoslistReader = Fts5PoslistReader1 /* sqlite3.c:215153:34 */
+type Fts5PoslistReader = Fts5PoslistReader1 /* sqlite3.c:216920:34 */
-type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* sqlite3.c:215172:9 */
+type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* sqlite3.c:216939:9 */
-type Fts5PoslistWriter = Fts5PoslistWriter1 /* sqlite3.c:215172:34 */
+type Fts5PoslistWriter = Fts5PoslistWriter1 /* sqlite3.c:216939: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 } /* sqlite3.c:216961:9 */
// Bucket of terms object used by the integrity-check in offsets=0 mode.
-type Fts5Termset = Fts5Termset1 /* sqlite3.c:215194:28 */
+type Fts5Termset = Fts5Termset1 /* sqlite3.c:216961:28 */
//
// End of interface to code in fts5_buffer.c.
@@ -173712,7 +175136,7 @@ type Fts5Index1 = struct {
FpDataVersion uintptr
FiStructVersion I64
FpStruct uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
//
// End of interface to code in fts5_buffer.c.
@@ -173723,16 +175147,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 /* sqlite3.c:216975:26 */
type Fts5IndexIter1 = struct {
FiRowid I64
FpData uintptr
FnData int32
FbEof U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5IndexIter = Fts5IndexIter1 /* sqlite3.c:215209:30 */
+type Fts5IndexIter = Fts5IndexIter1 /* sqlite3.c:216976:30 */
//
// End of interface to code in fts5_varint.c.
@@ -173747,7 +175171,7 @@ type Fts5Table1 = struct {
Fbase Sqlite3_vtab
FpConfig uintptr
FpIndex uintptr
-} /* sqlite3.c:215411:9 */
+} /* sqlite3.c:217178:9 */
//
// End of interface to code in fts5_varint.c.
@@ -173758,7 +175182,7 @@ type Fts5Table1 = struct {
// Interface to code in fts5_main.c.
// Virtual-table object.
-type Fts5Table = Fts5Table1 /* sqlite3.c:215411:26 */
+type Fts5Table = Fts5Table1 /* sqlite3.c:217178:26 */
//
// End of interface to code in fts5.c.
@@ -173775,7 +175199,7 @@ type Fts5Hash1 = struct {
FnSlot int32
FpScan uintptr
FaSlot uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
//
// End of interface to code in fts5.c.
@@ -173784,7 +175208,7 @@ type Fts5Hash1 = struct {
// *************************************************************************
//
// Interface to code in fts5_hash.c.
-type Fts5Hash = Fts5Hash1 /* sqlite3.c:215437:25 */
+type Fts5Hash = Fts5Hash1 /* sqlite3.c:217204:25 */
//
// End of interface to code in fts5_hash.c.
@@ -173803,7 +175227,7 @@ type Fts5Storage1 = struct {
FnTotalRow I64
FaTotalSize uintptr
FaStmt [11]uintptr
-} /* sqlite3.c:215493:9 */
+} /* sqlite3.c:217260:9 */
//
// End of interface to code in fts5_hash.c.
@@ -173814,7 +175238,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 /* sqlite3.c:217260:28 */
//
// End of interface to code in fts5_storage.c.
@@ -173830,7 +175254,7 @@ type Fts5Expr1 = struct {
FbDesc int32
FnPhrase int32
FapExprPhrase uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
//
// End of interface to code in fts5_storage.c.
@@ -173839,7 +175263,7 @@ type Fts5Expr1 = struct {
// *************************************************************************
//
// Interface to code in fts5_expr.c.
-type Fts5Expr = Fts5Expr1 /* sqlite3.c:215536:25 */
+type Fts5Expr = Fts5Expr1 /* sqlite3.c:217303:25 */
type Fts5ExprNode1 = struct {
FeType int32
FbEof int32
@@ -173851,9 +175275,9 @@ type Fts5ExprNode1 = struct {
FnChild int32
F__ccgo_pad2 [4]byte
FapChild [1]uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5ExprNode = Fts5ExprNode1 /* sqlite3.c:215537:29 */
+type Fts5ExprNode = Fts5ExprNode1 /* sqlite3.c:217304:29 */
type Fts5Parse1 = struct {
FpConfig uintptr
FzErr uintptr
@@ -173863,25 +175287,25 @@ type Fts5Parse1 = struct {
FpExpr uintptr
FbPhraseToAnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:215538:9 */
+} /* sqlite3.c:217305:9 */
-type Fts5Parse = Fts5Parse1 /* sqlite3.c:215538:26 */
+type Fts5Parse = Fts5Parse1 /* sqlite3.c:217305:26 */
type Fts5Token1 = struct {
Fp uintptr
Fn int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:215539:9 */
+} /* sqlite3.c:217306:9 */
-type Fts5Token = Fts5Token1 /* sqlite3.c:215539:26 */
+type Fts5Token = Fts5Token1 /* sqlite3.c:217306:26 */
type Fts5ExprPhrase1 = struct {
FpNode uintptr
Fposlist Fts5Buffer
FnTerm int32
F__ccgo_pad1 [4]byte
FaTerm [1]Fts5ExprTerm
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5ExprPhrase = Fts5ExprPhrase1 /* sqlite3.c:215540:31 */
+type Fts5ExprPhrase = Fts5ExprPhrase1 /* sqlite3.c:217307:31 */
type Fts5ExprNearset1 = struct {
FnNear int32
F__ccgo_pad1 [4]byte
@@ -173889,17 +175313,17 @@ type Fts5ExprNearset1 = struct {
FnPhrase int32
F__ccgo_pad2 [4]byte
FapPhrase [1]uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5ExprNearset = Fts5ExprNearset1 /* sqlite3.c:215541:32 */
+type Fts5ExprNearset = Fts5ExprNearset1 /* sqlite3.c:217308:32 */
type Fts5PoslistPopulator1 = struct {
Fwriter Fts5PoslistWriter
FbOk int32
FbMiss int32
-} /* sqlite3.c:215589:9 */
+} /* sqlite3.c:217356:9 */
-type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* sqlite3.c:215589:37 */
+type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* sqlite3.c:217356:37 */
//
// End of interface to code in fts5_unicode2.c.
//
@@ -174004,7 +175428,7 @@ type Fts5YYMINORTYPE = struct {
F__ccgo_pad1 [0]uint64
Ffts5yyinit int32
F__ccgo_pad2 [12]byte
-} /* sqlite3.c:215865:3 */
+} /* sqlite3.c:217632:3 */
//************ End control #defines ******************************************
// Define the fts5yytestcase() macro to be a no-op if is not already defined
@@ -174077,7 +175501,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 */
+} /* sqlite3.c:217725: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),
@@ -174092,23 +175516,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 */
+} /* sqlite3.c:217738: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 */
+} /* sqlite3.c:217756: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 */
+} /* sqlite3.c:217765: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 */
+} /* sqlite3.c:217769:31 */
//********* End of lemon-generated parsing tables ****************************
// The next table maps tokens (terminal symbols) into fallback tokens.
@@ -174145,9 +175569,9 @@ type fts5yyStackEntry = struct {
Fmajor uint8
F__ccgo_pad1 [6]byte
Fminor Fts5YYMINORTYPE
-} /* sqlite3.c:216045:1 */
+} /* sqlite3.c:217812:1 */
-type Fts5yyStackEntry = fts5yyStackEntry /* sqlite3.c:216052:33 */
+type Fts5yyStackEntry = fts5yyStackEntry /* sqlite3.c:217819:33 */
// The state of the parser is completely contained in an instance of
// the following structure
@@ -174156,9 +175580,9 @@ type fts5yyParser = struct {
FpParse uintptr
Ffts5yystack [100]Fts5yyStackEntry
Ffts5yystackEnd uintptr
-} /* sqlite3.c:216056:1 */
+} /* sqlite3.c:217823:1 */
-type Fts5yyParser = fts5yyParser /* sqlite3.c:216075:29 */
+type Fts5yyParser = fts5yyParser /* sqlite3.c:217842:29 */
// #include <assert.h>
@@ -174168,7 +175592,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) { /* sqlite3.c:217991:13: */
var fts5yypParser uintptr = fts5yypRawParser
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos = fts5yypParser + 16 /* &.fts5yystack */
@@ -174187,7 +175611,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 { /* sqlite3.c:218030: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 {
@@ -174203,7 +175627,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) { /* sqlite3.c:218049:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
_ = pParse
@@ -174261,7 +175685,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) { /* sqlite3.c:218108:13: */
var fts5yytos uintptr
fts5yytos = libc.PostDecUintptr(&(*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos, 24)
@@ -174269,7 +175693,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) { /* sqlite3.c:218126:13: */
var pParser uintptr = p
for (*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos > pParser+16 {
fts5yy_pop_parser_stack(tls, pParser)
@@ -174282,7 +175706,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) { /* sqlite3.c:218143:13: */
if p == uintptr(0) {
return
}
@@ -174306,14 +175730,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 { /* sqlite3.c:218206: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)
@@ -174330,7 +175754,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 { /* sqlite3.c:218271:25: */
var i int32
i = int32(fts5yy_reduce_ofst[stateno])
@@ -174341,7 +175765,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) { /* sqlite3.c:218300:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
for (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > fts5yypParser+16 {
@@ -174351,7 +175775,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:21
// stack every overflows
//******* Begin %stack_overflow code *****************************************
- sqlite3Fts5ParseError(tls, pParse, ts+33411, 0)
+ sqlite3Fts5ParseError(tls, pParse, ts+33499, 0)
//******* End %stack_overflow code *******************************************
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse // Suppress warning about unused %extra_argument var
@@ -174360,7 +175784,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) { /* sqlite3.c:218343:13: */
var fts5yytos uintptr
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos += 24
if (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yystackEnd {
@@ -174409,7 +175833,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 */
+} /* sqlite3.c:218384:29 */
// For rule J, fts5yyRuleInfoNRhs[J] contains the negative of the number
// of symbols on the right-hand side of that rule.
@@ -174442,7 +175866,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 */
+} /* sqlite3.c:218417:26 */
// Forward Declaration
@@ -174454,7 +175878,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 { /* sqlite3.c:218460:25: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174664,7 +176088,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) { /* sqlite3.c:218678:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174674,14 +176098,14 @@ func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32
_ = fts5yymajor // Silence a compiler warning
sqlite3Fts5ParseError(tls,
- pParse, ts+33439, libc.VaList(bp, fts5yyminor.Fn, fts5yyminor.Fp))
+ pParse, ts+33527, 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) { /* sqlite3.c:218700:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
// Here code is inserted which will be executed whenever the
@@ -174710,7 +176134,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) { /* sqlite3.c:218741:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174765,7 +176189,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 { /* sqlite3.c:218958:12: */
_ = iToken
return 0
}
@@ -174828,7 +176252,7 @@ type CInstIter1 = struct {
FiStart int32
FiEnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:217237:9 */
+} /* sqlite3.c:219004:9 */
// 2014 May 31
//
@@ -174879,11 +176303,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 /* sqlite3.c:219004: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 { /* sqlite3.c:219021:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -174926,7 +176350,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 { /* sqlite3.c:219052:12: */
var rc int32
libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(CInstIter{})))
@@ -174959,12 +176383,12 @@ type HighlightContext1 = struct {
FnIn int32
FiOff int32
FzOut uintptr
-} /* sqlite3.c:217311:9 */
+} /* sqlite3.c:219078:9 */
// ************************************************************************
//
// Start of highlight() implementation.
-type HighlightContext = HighlightContext1 /* sqlite3.c:217311:33 */
+type HighlightContext = HighlightContext1 /* sqlite3.c:219078: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
@@ -174973,7 +176397,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) { /* sqlite3.c:219101:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -174981,7 +176405,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+33470, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
+ (*HighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, ts+33558, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
if (*HighlightContext)(unsafe.Pointer(p)).FzOut == uintptr(0) {
*(*int32)(unsafe.Pointer(pRc)) = SQLITE_NOMEM
}
@@ -174989,7 +176413,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 { /* sqlite3.c:219116:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175044,7 +176468,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) { /* sqlite3.c:219170:13: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -175055,7 +176479,7 @@ func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintp
var iCol int32
if nVal != 3 {
- var zErr uintptr = ts + 33477 /* "wrong number of ..." */
+ var zErr uintptr = ts + 33565 /* "wrong number of ..." */
Xsqlite3_result_error(tls, pCtx, zErr, -1)
return
}
@@ -175104,19 +176528,19 @@ type Fts5SFinder1 = struct {
F__ccgo_pad1 [4]byte
FaFirst uintptr
FzDoc uintptr
-} /* sqlite3.c:217452:9 */
+} /* sqlite3.c:219219:9 */
//
// End of highlight() implementation.
//
// Context object passed to the fts5SentenceFinderCb() function.
-type Fts5SFinder = Fts5SFinder1 /* sqlite3.c:217452:28 */
+type Fts5SFinder = Fts5SFinder1 /* sqlite3.c:219219: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 { /* sqlite3.c:219233:12: */
if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc == (*Fts5SFinder)(unsafe.Pointer(p)).FnFirst {
var nNew int32
if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc != 0 {
@@ -175140,7 +176564,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 { /* sqlite3.c:219252:12: */
var rc int32 = SQLITE_OK
_ = pToken
@@ -175169,7 +176593,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 { /* sqlite3.c:219285:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -175227,16 +176651,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 { /* sqlite3.c:219334:19: */
var zRet uintptr = Xsqlite3_value_text(tls, pVal)
if zRet != 0 {
return zRet
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}
// 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) { /* sqlite3.c:219342:13: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -175259,7 +176683,7 @@ func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr
var nCol int32
if nVal != 5 {
- var zErr uintptr = ts + 33527 /* "wrong number of ..." */
+ var zErr uintptr = ts + 33615 /* "wrong number of ..." */
Xsqlite3_result_error(tls, pCtx, zErr, -1)
return
}
@@ -175451,17 +176875,17 @@ type Fts5Bm25Data1 = struct {
Favgdl float64
FaIDF uintptr
FaFreq uintptr
-} /* sqlite3.c:217733:9 */
+} /* sqlite3.c:219500: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 /* sqlite3.c:219500: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 { /* sqlite3.c:219512:12: */
var pn uintptr = pUserData
_ = pApi
_ = pFts
@@ -175472,7 +176896,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 { /* sqlite3.c:219528:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -175566,7 +176990,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) { /* sqlite3.c:219601:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -175634,18 +177058,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 { /* sqlite3.c:219657:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
*(*[3]Builtin)(unsafe.Pointer(bp /* aBuiltin */)) = [3]Builtin{
- {FzFunc: ts + 33575, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 33663, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5SnippetFunction}))},
- {FzFunc: ts + 33583, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 33671, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5HighlightFunction}))},
- {FzFunc: ts + 33593, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 33681, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5Bm25Function}))},
}
@@ -175670,7 +177094,7 @@ type Builtin = struct {
FpUserData uintptr
FxFunc Fts5_extension_function
FxDestroy uintptr
-} /* sqlite3.c:217891:3 */
+} /* sqlite3.c:219658:3 */
// 2014 May 31
//
@@ -175685,7 +177109,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 { /* sqlite3.c:219700:12: */
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) < nByte {
var nNew U64
if (*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace != 0 {
@@ -175711,7 +177135,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) { /* sqlite3.c:219724:13: */
if func() int32 {
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+U32(9) <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) {
return 0
@@ -175723,21 +177147,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) { /* sqlite3.c:219729: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 { /* sqlite3.c:219736: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) { /* sqlite3.c:219745:13: */
if nData != 0 {
if func() int32 {
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+nData <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) {
@@ -175755,7 +177179,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) { /* sqlite3.c:219763:13: */
var nStr int32 = int32(libc.Xstrlen(tls, zStr))
sqlite3Fts5BufferAppendBlob(tls, pRc, pBuf, uint32(nStr+1), zStr)
(*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn--
@@ -175767,7 +177191,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) { /* sqlite3.c:219781:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var zTmp uintptr
var ap Va_list
@@ -175785,7 +177209,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 { /* sqlite3.c:219802:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var ap Va_list
@@ -175801,26 +177225,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) { /* sqlite3.c:219820: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) { /* sqlite3.c:219829: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) { /* sqlite3.c:219838: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 { /* sqlite3.c:219848:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175882,14 +177306,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 { /* sqlite3.c:219891: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 { /* sqlite3.c:219898:12: */
libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(Fts5PoslistReader{})))
(*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fa = a
(*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fn = n
@@ -175901,7 +177325,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) { /* sqlite3.c:219915: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)
@@ -175913,9 +177337,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 /* sqlite3.c:219921: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 { /* sqlite3.c:219932:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175932,7 +177356,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 { /* sqlite3.c:219943:13: */
var pRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
pRet = Xsqlite3_malloc64(tls, uint64(nByte))
@@ -175953,7 +177377,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 { /* sqlite3.c:219964:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
if nIn < 0 {
@@ -175978,7 +177402,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 { /* sqlite3.c:219992:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -176003,13 +177427,13 @@ type Fts5TermsetEntry1 = struct {
FnTerm int32
FiIdx int32
FpNext uintptr
-} /* sqlite3.c:215194:9 */
+} /* sqlite3.c:216961:9 */
// ************************************************************************
//
-type Fts5TermsetEntry = Fts5TermsetEntry1 /* sqlite3.c:218243:33 */
+type Fts5TermsetEntry = Fts5TermsetEntry1 /* sqlite3.c:220010:33 */
-func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:218255:12: */
+func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:220022:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -176018,7 +177442,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 { /* sqlite3.c:220028:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -176064,7 +177488,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) { /* sqlite3.c:220077: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++ {
@@ -176096,18 +177520,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 { /* sqlite3.c:220119: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 { /* sqlite3.c:220123: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 { /* sqlite3.c:220132:19: */
var p uintptr = pIn
if p != 0 {
for fts5_iswhitespace(tls, *(*int8)(unsafe.Pointer(p))) != 0 {
@@ -176120,7 +177544,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 { /* sqlite3.c:220145:19: */
var p uintptr = pIn
for sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(p))) != 0 {
p++
@@ -176131,17 +177555,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 { /* sqlite3.c:220152: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 { /* sqlite3.c:220158:19: */
var p uintptr = pIn
switch int32(*(*int8)(unsafe.Pointer(p))) {
case 'n':
fallthrough
case 'N':
- if Xsqlite3_strnicmp(tls, ts+6127, p, 4) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+6132, p, 4) == 0 {
p = p + 4
} else {
p = uintptr(0)
@@ -176224,7 +177648,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 { /* sqlite3.c:220234:12: */
var q int8
var iIn int32 = 1
var iOut int32 = 0
@@ -176269,7 +177693,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) { /* sqlite3.c:220279:13: */
var quote int8 // Quote character (if any )
quote = *(*int8)(unsafe.Pointer(z))
@@ -176282,11 +177706,11 @@ type Fts5Enum1 = struct {
FzName uintptr
FeVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:218523:1 */
+} /* sqlite3.c:220290:1 */
-type Fts5Enum = Fts5Enum1 /* sqlite3.c:218527:25 */
+type Fts5Enum = Fts5Enum1 /* sqlite3.c:220294: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 { /* sqlite3.c:220296:12: */
var nEnum int32 = int32(libc.Xstrlen(tls, zEnum))
var i int32
var iVal int32 = -1
@@ -176314,13 +177738,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 { /* sqlite3.c:220325: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+33598, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33686, zCmd, nCmd) == 0 {
var nByte int32 = int32(uint64(unsafe.Sizeof(int32(0))) * uint64(FTS5_MAX_PREFIX_INDEXES))
var p uintptr
var bFirst int32 = 1
@@ -176347,14 +177771,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+33605, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33693, 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+33636, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES))
+ ts+33724, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
break
}
@@ -176365,7 +177789,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
}
if nPre <= 0 || nPre >= 1000 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33669, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33757, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
break
}
@@ -176378,7 +177802,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33706, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33794, 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)))
@@ -176387,7 +177811,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+33715, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33803, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
for nArg = int64(0); p != 0 && *(*int8)(unsafe.Pointer(p)) != 0; nArg++ {
@@ -176406,7 +177830,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
}
}
if p == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33748, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33836, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = sqlite3Fts5GetTokenizer(tls, pGlobal,
@@ -176421,14 +177845,14 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33782, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33870, zCmd, nCmd) == 0 {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33790, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33878, 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+33822, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
+ (*Fts5Config)(unsafe.Pointer(pConfig)).FzContent = sqlite3Fts5Mprintf(tls, bp+40, ts+33910, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FeContent = FTS5_CONTENT_NONE
}
@@ -176436,9 +177860,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33828, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33916, zCmd, nCmd) == 0 {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33842, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33930, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, zArg, -1)
@@ -176446,9 +177870,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+33880, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+33968, 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+33891, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33979, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.Bool32(int32(*(*int8)(unsafe.Pointer(zArg))) == '1')
@@ -176456,28 +177880,28 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+5017, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+5026, zCmd, nCmd) == 0 {
*(*[4]Fts5Enum)(unsafe.Pointer(bp + 48 /* aDetail */)) = [4]Fts5Enum{
- {FzName: ts + 7907, FeVal: FTS5_DETAIL_NONE},
- {FzName: ts + 17212},
- {FzName: ts + 33926, FeVal: FTS5_DETAIL_COLUMNS},
+ {FzName: ts + 7905, FeVal: FTS5_DETAIL_NONE},
+ {FzName: ts + 17244},
+ {FzName: ts + 34014, 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+33934, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34022, 0)
}
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33965, libc.VaList(bp+24, nCmd, zCmd))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34053, 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 { /* sqlite3.c:220489:12: */
return sqlite3Fts5GetTokenizer(tls, pGlobal, uintptr(0), 0, pConfig, uintptr(0))
}
@@ -176495,7 +177919,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 { /* sqlite3.c:220509:19: */
var zRet uintptr = uintptr(0)
var nIn Sqlite3_int64 = Sqlite3_int64(libc.Xstrlen(tls, zIn))
@@ -176529,20 +177953,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 { /* sqlite3.c:220549:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zCol, ts+21963) ||
- 0 == Xsqlite3_stricmp(tls, zCol, ts+16134) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33993, libc.VaList(bp, zCol))
+ if 0 == Xsqlite3_stricmp(tls, zCol, ts+22014) ||
+ 0 == Xsqlite3_stricmp(tls, zCol, ts+16166) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34081, libc.VaList(bp, zCol))
rc = SQLITE_ERROR
} else if zArg != 0 {
- if 0 == Xsqlite3_stricmp(tls, zArg, ts+34023) {
+ if 0 == Xsqlite3_stricmp(tls, zArg, ts+34111) {
*(*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+34033, libc.VaList(bp+8, zArg))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34121, libc.VaList(bp+8, zArg))
rc = SQLITE_ERROR
}
}
@@ -176552,7 +177976,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 { /* sqlite3.c:220577:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -176560,13 +177984,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+34064, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(p)).FzContentRowid))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34152, 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+34069, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34157, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
} else {
- sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34076, libc.VaList(bp+16, i))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34164, libc.VaList(bp+16, i))
}
}
}
@@ -176585,7 +178009,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 { /* sqlite3.c:220610:12: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -176614,8 +178038,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+21963) == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34084, 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+22014) == 0 {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34172, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pRet)).FzName))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
}
@@ -176649,7 +178073,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+34113, libc.VaList(bp+8, zOrig))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34201, libc.VaList(bp+8, zOrig))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
if bOption != 0 {
@@ -176658,13 +178082,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 + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 {
return *(*uintptr)(unsafe.Pointer(bp + 64 /* zTwo */))
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
pzErr)
} else {
@@ -176690,19 +178114,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 + 33782 /* "content" */
+ zTail = ts + 33870 /* "content" */
} else if (*Fts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 {
- zTail = ts + 34133 /* "docsize" */
+ zTail = ts + 34221 /* "docsize" */
}
if zTail != 0 {
(*Fts5Config)(unsafe.Pointer(pRet)).FzContent = sqlite3Fts5Mprintf(tls,
- bp+40, ts+34141, libc.VaList(bp+16, (*Fts5Config)(unsafe.Pointer(pRet)).FzDb, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, zTail))
+ bp+40, ts+34229, 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+16134, -1)
+ (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, ts+16166, -1)
}
// Formulate the zContentExprlist text
@@ -176718,7 +178142,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) { /* sqlite3.c:220734:13: */
if pConfig != 0 {
var i int32
if (*Fts5Config)(unsafe.Pointer(pConfig)).FpTok != 0 {
@@ -176743,7 +178167,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 { /* sqlite3.c:220761:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -176751,18 +178175,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+34152, 0)
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34240, 0)
for i = 0; zSql != 0 && i < (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol; i++ {
var zSep uintptr = func() uintptr {
if i == 0 {
- return ts + 1565
+ return ts + 1534
}
- return ts + 14529
+ return ts + 14543
}()
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34168, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34256, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
}
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34175,
- libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+21963))
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34263,
+ libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+22014))
if zSql != 0 {
*(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = Xsqlite3_declare_vtab(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql)
@@ -176793,7 +178217,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 { /* sqlite3.c:220807:12: */
if pText == uintptr(0) {
return SQLITE_OK
}
@@ -176807,7 +178231,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 { /* sqlite3.c:220826:19: */
var p uintptr = pIn
for 1 != 0 {
@@ -176834,7 +178258,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 { /* sqlite3.c:220853:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -176898,13 +178322,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 { /* sqlite3.c:220912:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zKey, ts+34201) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, ts+34289) {
var pgsz int32 = 0
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
pgsz = Xsqlite3_value_int(tls, pVal)
@@ -176914,7 +178338,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+34206) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34294) {
var nHashSize int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nHashSize = Xsqlite3_value_int(tls, pVal)
@@ -176924,7 +178348,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+34215) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34303) {
var nAutomerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nAutomerge = Xsqlite3_value_int(tls, pVal)
@@ -176937,7 +178361,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+34225) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34313) {
var nUsermerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nUsermerge = Xsqlite3_value_int(tls, pVal)
@@ -176947,7 +178371,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+34235) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34323) {
var nCrisisMerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nCrisisMerge = Xsqlite3_value_int(tls, pVal)
@@ -176963,7 +178387,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+21963) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+22014) {
var zIn uintptr = Xsqlite3_value_text(tls, pVal)
// var zRank uintptr at bp, 8
@@ -176986,11 +178410,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 { /* sqlite3.c:221006:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
- var zSelect uintptr = ts + 34247 /* "SELECT k, v FROM..." */
+ var zSelect uintptr = ts + 34335 /* "SELECT k, v FROM..." */
var zSql uintptr
*(*uintptr)(unsafe.Pointer(bp + 40 /* p */)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK
@@ -177013,7 +178437,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+34279) {
+ if 0 == Xsqlite3_stricmp(tls, zK, ts+34367) {
iVersion = Xsqlite3_value_int(tls, pVal)
} else {
*(*int32)(unsafe.Pointer(bp + 48 /* bDummy */)) = 0
@@ -177028,7 +178452,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+34287,
+ ts+34375,
libc.VaList(bp+16, iVersion, FTS5_CURRENT_VERSION))
}
}
@@ -177063,7 +178487,7 @@ type Fts5ExprTerm1 = struct {
FzTerm uintptr
FpIter uintptr
FpSynonym uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
// 2014 May 31
//
@@ -177082,9 +178506,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 /* sqlite3.c:221084: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) { /* sqlite3.c:221191:13: */
var ap Va_list
_ = ap
ap = va
@@ -177096,12 +178520,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 { /* sqlite3.c:221202: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 { /* sqlite3.c:221209:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -177163,7 +178587,7 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr)
}
}
if int32(*(*int8)(unsafe.Pointer(z2))) == 0 {
- sqlite3Fts5ParseError(tls, pParse, ts+34352, 0)
+ sqlite3Fts5ParseError(tls, pParse, ts+34440, 0)
return FTS5_EOF
}
}
@@ -177176,20 +178600,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+34372, libc.VaList(bp, z))
+ sqlite3Fts5ParseError(tls, pParse, ts+34460, 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+34403, uint64(2)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 2 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34491, uint64(2)) == 0 {
tok = FTS5_OR
}
- if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34406, uint64(3)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34494, uint64(3)) == 0 {
tok = FTS5_NOT
}
- if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+29789, uint64(3)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+29877, uint64(3)) == 0 {
tok = FTS5_AND
}
break
@@ -177201,15 +178625,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 { /* sqlite3.c:221273: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) { /* sqlite3.c:221274: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 { /* sqlite3.c:221276:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -177232,7 +178656,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)
}
@@ -177287,7 +178711,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 { /* sqlite3.c:221357:12: */
bp := tls.Alloc(3)
defer tls.Free(3)
@@ -177362,7 +178786,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) { /* sqlite3.c:221427:13: */
if p != 0 {
var i int32
for i = 0; i < (*Fts5ExprNode)(unsafe.Pointer(p)).FnChild; i++ {
@@ -177374,7 +178798,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) { /* sqlite3.c:221441:13: */
if p != 0 {
sqlite3Fts5ParseNodeFree(tls, (*Fts5Expr)(unsafe.Pointer(p)).FpRoot)
Xsqlite3_free(tls, (*Fts5Expr)(unsafe.Pointer(p)).FapExprPhrase)
@@ -177382,7 +178806,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 { /* sqlite3.c:221449:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -177423,7 +178847,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 { /* sqlite3.c:221489:12: */
var iRet I64 = int64(0)
var bRetValid int32 = 0
var p uintptr
@@ -177445,7 +178869,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 { /* sqlite3.c:221514:12: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -177609,7 +179033,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 { /* sqlite3.c:221597:12: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -177834,11 +179258,11 @@ type Fts5LookaheadReader1 = struct {
Fi int32
FiPos I64
FiLookahead I64
-} /* sqlite3.c:219914:9 */
+} /* sqlite3.c:221681:9 */
-type Fts5LookaheadReader = Fts5LookaheadReader1 /* sqlite3.c:219914:36 */
+type Fts5LookaheadReader = Fts5LookaheadReader1 /* sqlite3.c:221681:36 */
-func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:219925:12: */
+func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:221692: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
@@ -177846,7 +179270,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 { /* sqlite3.c:221700:12: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Fts5LookaheadReader{})))
(*Fts5LookaheadReader)(unsafe.Pointer(p)).Fa = a
(*Fts5LookaheadReader)(unsafe.Pointer(p)).Fn = n
@@ -177858,9 +179282,9 @@ type Fts5NearTrimmer1 = struct {
Freader Fts5LookaheadReader
Fwriter Fts5PoslistWriter
FpOut uintptr
-} /* sqlite3.c:219944:9 */
+} /* sqlite3.c:221711:9 */
-type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:219944:32 */
+type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:221711:32 */
// The near-set object passed as the first argument contains more than
// one phrase. All phrases currently point to the same row. The
@@ -177877,7 +179301,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 { /* sqlite3.c:221735:12: */
bp := tls.Alloc(196)
defer tls.Free(196)
@@ -178079,7 +179503,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 { /* sqlite3.c:221834:12: */
var iLast I64 = *(*I64)(unsafe.Pointer(piLast))
var iRowid I64
@@ -178099,7 +179523,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 { /* sqlite3.c:221860:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -178126,7 +179550,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 { /* sqlite3.c:221890:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -178183,7 +179607,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 { /* sqlite3.c:221949:12: */
var pNear uintptr = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear
var i int32
@@ -178249,7 +179673,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 { /* sqlite3.c:222011:12: */
if (*Fts5Expr)(unsafe.Pointer(pExpr)).FbDesc == 0 {
if iLhs < iRhs {
@@ -178265,7 +179689,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) { /* sqlite3.c:222026:13: */
var i int32
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 1
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0
@@ -178274,7 +179698,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) { /* sqlite3.c:222035: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
@@ -178300,7 +179724,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 { /* sqlite3.c:222065:12: */
if (*Fts5ExprNode)(unsafe.Pointer(p2)).FbEof != 0 {
return -1
}
@@ -178319,7 +179743,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 { /* sqlite3.c:222086:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -178345,7 +179769,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))
@@ -178387,7 +179811,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 { /* sqlite3.c:222156:12: */
var pTerm uintptr = *(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32
var rc int32 = SQLITE_OK
@@ -178446,7 +179870,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 { /* sqlite3.c:222221: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
@@ -178465,7 +179889,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 { /* sqlite3.c:222249:12: */
var rc int32
var pIter uintptr = (*Fts5ExprTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32)).FpIter
@@ -178483,7 +179907,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) { /* sqlite3.c:222273:13: */
var pNext uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48))
var i int32
@@ -178499,7 +179923,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 { /* sqlite3.c:222292:12: */
var i int32
var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid
@@ -178525,13 +179949,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 { /* sqlite3.c:222324: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++ {
@@ -178575,7 +179999,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 { /* sqlite3.c:222376: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)
@@ -178587,7 +180011,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 { /* sqlite3.c:222391:12: */
var rc int32 = SQLITE_OK
var p1 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48))
var p2 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48 + 1*8))
@@ -178617,7 +180041,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 { /* sqlite3.c:222419: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)
@@ -178633,7 +180057,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 { /* sqlite3.c:222440:12: */
var rc int32 = SQLITE_OK
if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof == 0 {
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
@@ -178686,7 +180110,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 { /* sqlite3.c:222485:12: */
var rc int32 = SQLITE_OK
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0
@@ -178748,7 +180172,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 { /* sqlite3.c:222544:12: */
var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot
var rc int32 // Return code
@@ -178780,11 +180204,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 { /* sqlite3.c:222575: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))
@@ -178796,15 +180220,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 { /* sqlite3.c:222589: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 { /* sqlite3.c:222593: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 { /* sqlite3.c:222597:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -178814,7 +180238,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) { /* sqlite3.c:222606:13: */
if pPhrase != 0 {
var i int32
for i = 0; i < (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm; i++ {
@@ -178839,7 +180263,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) { /* sqlite3.c:222631:13: */
if pPhrase != 0 && (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm != 0 {
(*Fts5ExprTerm)(unsafe.Pointer(pPhrase + 32)).FbFirst = U8(1)
}
@@ -178851,7 +180275,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 { /* sqlite3.c:222645:24: */
var SZALLOC int32 = 8
var pRet uintptr = uintptr(0)
@@ -178911,12 +180335,12 @@ type TokenCtx1 = struct {
FpPhrase uintptr
Frc int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:220938:9 */
+} /* sqlite3.c:222705:9 */
-type TokenCtx = TokenCtx1 /* sqlite3.c:220938:25 */
+type TokenCtx = TokenCtx1 /* sqlite3.c:222705: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 { /* sqlite3.c:222714:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -178985,12 +180409,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) { /* sqlite3.c:222779: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) { /* sqlite3.c:222786:13: */
if pNear != 0 {
var i int32
for i = 0; i < (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase; i++ {
@@ -179001,12 +180425,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) { /* sqlite3.c:222797: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 { /* sqlite3.c:222802: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
@@ -179023,7 +180447,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 { /* sqlite3.c:222821:23: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -179081,7 +180505,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 { /* sqlite3.c:222875:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -179176,17 +180600,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) { /* sqlite3.c:222971:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+34410, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
+ if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+34498, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
sqlite3Fts5ParseError(tls,
- pParse, ts+33439, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp))
+ pParse, ts+33527, 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) { /* sqlite3.c:222979:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -179198,7 +180622,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+34415, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(p)).Fn, (*Fts5Token)(unsafe.Pointer(p)).Fp))
+ pParse, ts+34503, 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')
@@ -179217,7 +180641,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 { /* sqlite3.c:223014:19: */
var nCol int32
if p != 0 {
nCol = (*Fts5Colset)(unsafe.Pointer(p)).FnCol
@@ -179255,7 +180679,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 { /* sqlite3.c:223055:19: */
var pRet uintptr
var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FnCol
@@ -179277,7 +180701,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 { /* sqlite3.c:223078:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -179295,7 +180719,7 @@ func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p ui
}
}
if iCol == (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol {
- sqlite3Fts5ParseError(tls, pParse, ts+20346, libc.VaList(bp, z))
+ sqlite3Fts5ParseError(tls, pParse, ts+20376, libc.VaList(bp, z))
} else {
pRet = fts5ParseColset(tls, pParse, pColset, iCol)
}
@@ -179316,7 +180740,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 { /* sqlite3.c:223118: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))))
@@ -179331,7 +180755,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) { /* sqlite3.c:223135: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
@@ -179355,7 +180779,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) { /* sqlite3.c:223161:13: */
if (*Fts5Parse)(unsafe.Pointer(pParse)).Frc == SQLITE_OK {
if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_STRING || (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_TERM {
@@ -179383,21 +180807,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) { /* sqlite3.c:223199: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+34444, 0)
+ ts+34532, 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) { /* sqlite3.c:223215:13: */
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
case FTS5_STRING:
{
@@ -179448,7 +180872,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) { /* sqlite3.c:223248: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))
@@ -179468,7 +180892,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 { /* sqlite3.c:223270:21: */
var nTerm int32 = (*Fts5ExprPhrase)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNear + 24)))).FnTerm
var ii int32
var nByte int32
@@ -179511,7 +180935,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 { /* sqlite3.c:223324:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -179571,12 +180995,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+34497,
+ ts+34585,
libc.VaList(bp, func() uintptr {
if (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase == 1 {
- return ts + 34547 /* "phrase" */
+ return ts + 34635 /* "phrase" */
}
- return ts + 34410 /* "NEAR" */
+ return ts + 34498 /* "NEAR" */
}()))
Xsqlite3_free(tls, pRet)
pRet = uintptr(0)
@@ -179599,7 +181023,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 { /* sqlite3.c:223406:21: */
var pRet uintptr = uintptr(0)
var pPrev uintptr
@@ -179645,7 +181069,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 { /* sqlite3.c:223843:12: */
var rc int32 = SQLITE_OK
_ = pGlobal
_ = db
@@ -179658,7 +181082,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 { /* sqlite3.c:223880:12: */
return func() int32 {
if pExpr != 0 {
return (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase
@@ -179668,7 +181092,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 { /* sqlite3.c:223887:12: */
if iPhrase < 0 || iPhrase >= (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase {
return 0
}
@@ -179677,7 +181101,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 { /* sqlite3.c:223896: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
@@ -179698,7 +181122,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 { /* sqlite3.c:223925:29: */
var pRet uintptr
pRet = Xsqlite3_malloc64(tls, uint64(uint64(unsafe.Sizeof(Fts5PoslistPopulator{}))*uint64((*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase)))
if pRet != 0 {
@@ -179722,12 +181146,12 @@ type Fts5ExprCtx1 = struct {
FpExpr uintptr
FaPopulator uintptr
FiOff I64
-} /* sqlite3.c:222180:1 */
+} /* sqlite3.c:223947:1 */
-type Fts5ExprCtx = Fts5ExprCtx1 /* sqlite3.c:222185:28 */
+type Fts5ExprCtx = Fts5ExprCtx1 /* sqlite3.c:223952: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 { /* sqlite3.c:223957:12: */
var i int32
for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ {
if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol {
@@ -179737,7 +181161,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 { /* sqlite3.c:223965:12: */
var p uintptr = pCtx
var pExpr uintptr = (*Fts5ExprCtx)(unsafe.Pointer(p)).FpExpr
var i int32
@@ -179772,7 +181196,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 { /* sqlite3.c:224000:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -179800,7 +181224,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) { /* sqlite3.c:224030: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 {
@@ -179811,7 +181235,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 { /* sqlite3.c:224041:12: */
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid = iRowid
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
@@ -179861,12 +181285,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) { /* sqlite3.c:224085: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 { /* sqlite3.c:224092: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
@@ -179917,7 +181341,7 @@ type Fts5HashEntry1 = struct {
FiCol I16
FiPos int32
FiRowid I64
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
// 2014 August 11
//
@@ -179933,14 +181357,14 @@ type Fts5HashEntry1 = struct {
// #include "fts5Int.h"
-type Fts5HashEntry = Fts5HashEntry1 /* sqlite3.c:222378:30 */
+type Fts5HashEntry = Fts5HashEntry1 /* sqlite3.c:224145: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 { /* sqlite3.c:224211:12: */
var rc int32 = SQLITE_OK
var pNew uintptr
@@ -179968,7 +181392,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) { /* sqlite3.c:224241:13: */
if pHash != 0 {
sqlite3Fts5HashClear(tls, pHash)
Xsqlite3_free(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FaSlot)
@@ -179977,7 +181401,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) { /* sqlite3.c:224252:13: */
var i int32
for i = 0; i < (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot; i++ {
var pNext uintptr
@@ -179991,7 +181415,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 { /* sqlite3.c:224266:21: */
var i int32
var h uint32 = uint32(13)
for i = n - 1; i >= 0; i-- {
@@ -180000,7 +181424,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 { /* sqlite3.c:224275:21: */
var i int32
var h uint32 = uint32(13)
for i = n - 1; i >= 0; i-- {
@@ -180011,7 +181435,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 { /* sqlite3.c:224288:12: */
var nNew int32 = (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot * 2
var i int32
var apNew uintptr
@@ -180041,7 +181465,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 { /* sqlite3.c:224316:12: */
var nRet int32 = 0
if (*Fts5HashEntry)(unsafe.Pointer(p)).FiSzPoslist != 0 {
var pPtr uintptr
@@ -180090,7 +181514,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 { /* sqlite3.c:224367:12: */
var iHash uint32
var p uintptr
var pPtr uintptr
@@ -180249,7 +181673,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 { /* sqlite3.c:224520:22: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -180295,7 +181719,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 { /* sqlite3.c:224566:12: */
var nMergeSlot int32 = 32
var ap uintptr
var pList uintptr
@@ -180337,7 +181761,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 { /* sqlite3.c:224613:12: */
var iHash uint32 = fts5HashKey(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot, pTerm, nTerm)
var zKey uintptr = uintptr(0)
var p uintptr
@@ -180371,20 +181795,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 { /* sqlite3.c:224651: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) { /* sqlite3.c:224658: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 { /* sqlite3.c:224663: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) { /* sqlite3.c:224667:13: */
var p uintptr
if libc.AssignUintptr(&p, (*Fts5Hash)(unsafe.Pointer(pHash)).FpScan) != 0 {
var zKey uintptr = p + 1*48
@@ -180610,7 +182034,7 @@ type Fts5Data1 = struct {
Fp uintptr
Fnn int32
FszLeaf int32
-} /* sqlite3.c:223175:9 */
+} /* sqlite3.c:224942:9 */
// 2014 May 31
//
@@ -180818,14 +182242,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 /* sqlite3.c:224942:25 */
type Fts5DlidxIter1 = struct {
FnLvl int32
FiSegid int32
FaLvl [1]Fts5DlidxLvl
-} /* sqlite3.c:223176:9 */
+} /* sqlite3.c:224943:9 */
-type Fts5DlidxIter = Fts5DlidxIter1 /* sqlite3.c:223176:30 */
+type Fts5DlidxIter = Fts5DlidxIter1 /* sqlite3.c:224943:30 */
type Fts5DlidxLvl1 = struct {
FpData uintptr
FiOff int32
@@ -180833,17 +182257,17 @@ type Fts5DlidxLvl1 = struct {
FiFirstOff int32
FiLeafPgno int32
FiRowid I64
-} /* sqlite3.c:223176:9 */
+} /* sqlite3.c:224943:9 */
-type Fts5DlidxLvl = Fts5DlidxLvl1 /* sqlite3.c:223177:29 */
+type Fts5DlidxLvl = Fts5DlidxLvl1 /* sqlite3.c:224944:29 */
type Fts5DlidxWriter1 = struct {
Fpgno int32
FbPrevValid int32
FiPrev I64
Fbuf Fts5Buffer
-} /* sqlite3.c:223178:9 */
+} /* sqlite3.c:224945:9 */
-type Fts5DlidxWriter = Fts5DlidxWriter1 /* sqlite3.c:223178:32 */
+type Fts5DlidxWriter = Fts5DlidxWriter1 /* sqlite3.c:224945:32 */
type Fts5Iter1 = struct {
Fbase Fts5IndexIter
FpIndex uintptr
@@ -180857,18 +182281,18 @@ type Fts5Iter1 = struct {
FiSwitchRowid I64
FaFirst uintptr
FaSeg [1]Fts5SegIter
-} /* sqlite3.c:223179:9 */
+} /* sqlite3.c:224946:9 */
-type Fts5Iter = Fts5Iter1 /* sqlite3.c:223179:25 */
+type Fts5Iter = Fts5Iter1 /* sqlite3.c:224946:25 */
type Fts5PageWriter1 = struct {
Fpgno int32
FiPrevPgidx int32
Fbuf Fts5Buffer
Fpgidx Fts5Buffer
Fterm Fts5Buffer
-} /* sqlite3.c:223180:9 */
+} /* sqlite3.c:224947:9 */
-type Fts5PageWriter = Fts5PageWriter1 /* sqlite3.c:223180:31 */
+type Fts5PageWriter = Fts5PageWriter1 /* sqlite3.c:224947:31 */
type Fts5SegIter1 = struct {
FpSeg uintptr
Fflags int32
@@ -180890,18 +182314,18 @@ type Fts5SegIter1 = struct {
FnPos int32
FbDel U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:223179:9 */
+} /* sqlite3.c:224946:9 */
-type Fts5SegIter = Fts5SegIter1 /* sqlite3.c:223181:28 */
+type Fts5SegIter = Fts5SegIter1 /* sqlite3.c:224948:28 */
type Fts5DoclistIter1 = struct {
FaEof uintptr
FiRowid I64
FaPoslist uintptr
FnPoslist int32
FnSize int32
-} /* sqlite3.c:223182:9 */
+} /* sqlite3.c:224949:9 */
-type Fts5DoclistIter = Fts5DoclistIter1 /* sqlite3.c:223182:32 */
+type Fts5DoclistIter = Fts5DoclistIter1 /* sqlite3.c:224949:32 */
type Fts5SegWriter1 = struct {
FiSegid int32
F__ccgo_pad1 [4]byte
@@ -180918,9 +182342,9 @@ type Fts5SegWriter1 = struct {
Fbtterm Fts5Buffer
FiBtPage int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:223183:9 */
+} /* sqlite3.c:224950:9 */
-type Fts5SegWriter = Fts5SegWriter1 /* sqlite3.c:223183:30 */
+type Fts5SegWriter = Fts5SegWriter1 /* sqlite3.c:224950:30 */
type Fts5Structure1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
@@ -180928,38 +182352,38 @@ type Fts5Structure1 = struct {
FnSegment int32
FnLevel int32
FaLevel [1]Fts5StructureLevel
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5Structure = Fts5Structure1 /* sqlite3.c:223184:30 */
+type Fts5Structure = Fts5Structure1 /* sqlite3.c:224951:30 */
type Fts5StructureLevel1 = struct {
FnMerge int32
FnSeg int32
FaSeg uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5StructureLevel = Fts5StructureLevel1 /* sqlite3.c:223185:35 */
+type Fts5StructureLevel = Fts5StructureLevel1 /* sqlite3.c:224952:35 */
type Fts5StructureSegment1 = struct {
FiSegid int32
FpgnoFirst int32
FpgnoLast int32
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5StructureSegment = Fts5StructureSegment1 /* sqlite3.c:223186:37 */
+type Fts5StructureSegment = Fts5StructureSegment1 /* sqlite3.c:224953:37 */
type Fts5CResult1 = struct {
FiFirst U16
FbTermEq U8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:223179:9 */
+} /* sqlite3.c:224946:9 */
-type Fts5CResult = Fts5CResult1 /* sqlite3.c:223296:28 */
+type Fts5CResult = Fts5CResult1 /* sqlite3.c:225063:28 */
-func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* sqlite3.c:223475:13: */
+func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* sqlite3.c:225242: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 { /* sqlite3.c:225247:12: */
return U16(int32(U16(*(*U8)(unsafe.Pointer(aIn))))<<8 + int32(*(*U8)(unsafe.Pointer(aIn + 1))))
}
@@ -180967,7 +182391,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 { /* sqlite3.c:225257:13: */
return sqlite3Fts5MallocZero(tls, p+52, nByte)
}
@@ -180985,7 +182409,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 { /* sqlite3.c:225289:12: */
var nCmp int32
var res int32
nCmp = func() int32 {
@@ -181009,7 +182433,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 { /* sqlite3.c:225298:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -181020,7 +182444,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) { /* sqlite3.c:225307:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpReader != 0 {
var pReader uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpReader
(*Fts5Index)(unsafe.Pointer(p)).FpReader = uintptr(0)
@@ -181032,7 +182456,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 { /* sqlite3.c:225321:17: */
var pRet uintptr = uintptr(0)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var rc int32 = SQLITE_OK
@@ -181059,7 +182483,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+34554, iRowid, 0, p+56)
+ (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, ts+34642, iRowid, 0, p+56)
}
// If either of the sqlite3_blob_open() or sqlite3_blob_reopen() calls
@@ -181105,11 +182529,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) { /* sqlite3.c:225395: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 { /* sqlite3.c:225399: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 {
@@ -181121,7 +182545,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 { /* sqlite3.c:225411: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,
@@ -181136,7 +182560,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) { /* sqlite3.c:225433:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181147,7 +182571,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+34560,
+ ts+34648,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 {
return
@@ -181164,7 +182588,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) { /* sqlite3.c:225457:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181175,7 +182599,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+34611,
+ ts+34699,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
if fts5IndexPrepareStmt(tls, p, p+72, zSql) != 0 {
return
@@ -181189,7 +182613,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) { /* sqlite3.c:225478:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181199,7 +182623,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+34660,
+ ts+34748,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -181211,7 +182635,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) { /* sqlite3.c:225500:13: */
if pStruct != 0 && 0 >= libc.PreDecInt32(&(*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef, 1) {
var i int32
@@ -181222,22 +182646,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) { /* sqlite3.c:225511: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 { /* sqlite3.c:225515: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) { /* sqlite3.c:225519: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 { /* sqlite3.c:225524:12: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != pStruct {
return SQLITE_ABORT
}
@@ -181248,7 +182672,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) { /* sqlite3.c:225537: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{})))
@@ -181290,7 +182714,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 { /* sqlite3.c:225579:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181383,7 +182807,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) { /* sqlite3.c:225671:13: */
fts5StructureMakeWritable(tls, pRc, ppStruct)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pStruct uintptr = *(*uintptr)(unsafe.Pointer(ppStruct))
@@ -181403,7 +182827,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) { /* sqlite3.c:225696:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pLvl uintptr = pStruct + 24 + uintptr(iLvl)*16
var aNew uintptr
@@ -181426,7 +182850,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 { /* sqlite3.c:225725:22: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181454,7 +182878,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 { /* sqlite3.c:225749:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181463,7 +182887,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+34700, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
+ Xsqlite3_mprintf(tls, ts+34788, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 {
return int64(0)
}
@@ -181487,7 +182911,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 { /* sqlite3.c:225780:22: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct == uintptr(0) {
(*Fts5Index)(unsafe.Pointer(p)).FiStructVersion = fts5IndexDataVersion(tls, p)
@@ -181504,7 +182928,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) { /* sqlite3.c:225819:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != 0 {
fts5StructureRelease(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct)
(*Fts5Index)(unsafe.Pointer(p)).FpStruct = uintptr(0)
@@ -181518,7 +182942,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) { /* sqlite3.c:225862:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -181571,14 +182995,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 { /* sqlite3.c:225917: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) { /* sqlite3.c:225926:13: */
var il int32
var is int32
var pOut uintptr = pStruct + 24 + uintptr(iPromote)*16
@@ -181621,7 +183045,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) { /* sqlite3.c:225969:13: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var iTst int32
var iPromote int32 = -1
@@ -181670,7 +183094,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 { /* sqlite3.c:226020:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181706,7 +183130,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 { /* sqlite3.c:226052:12: */
var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32
if fts5DlidxLvlNext(tls, pLvl) != 0 {
@@ -181727,7 +183151,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 { /* sqlite3.c:226072:12: */
return fts5DlidxIterNextR(tls, p, pIter, 0)
}
@@ -181740,7 +183164,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 { /* sqlite3.c:226087:12: */
var i int32
for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ {
fts5DlidxLvlNext(tls, pIter+8+uintptr(i)*32)
@@ -181748,11 +183172,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 { /* sqlite3.c:226096: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) { /* sqlite3.c:226100:13: */
var i int32
// Advance each level to the last entry on the last page
@@ -181773,7 +183197,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 { /* sqlite3.c:226123:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -181835,7 +183259,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 { /* sqlite3.c:226172:12: */
var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32
if fts5DlidxLvlPrev(tls, pLvl) != 0 {
@@ -181858,12 +183282,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 { /* sqlite3.c:226195: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) { /* sqlite3.c:226202:13: */
if pIter != 0 {
var i int32
for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ {
@@ -181873,7 +183297,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 { /* sqlite3.c:226212:22: */
var pIter uintptr = uintptr(0)
var i int32
var bDone int32 = 0
@@ -181915,16 +183339,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 { /* sqlite3.c:226259: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 { /* sqlite3.c:226262: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) { /* sqlite3.c:226269:13: */
var pLeaf uintptr
var pSeg uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
@@ -181954,7 +183378,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 { /* sqlite3.c:226307:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -181983,7 +183407,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) { /* sqlite3.c:226328:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -182028,7 +183452,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) { /* sqlite3.c:226357: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
@@ -182060,7 +183484,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) { /* sqlite3.c:226390:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -182094,7 +183518,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) { /* sqlite3.c:226423: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)
@@ -182116,7 +183540,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) { /* sqlite3.c:226441: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
@@ -182157,7 +183581,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) { /* sqlite3.c:226490:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -182216,7 +183640,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) { /* sqlite3.c:226543:13: */
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
(*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf = uintptr(0)
@@ -182266,7 +183690,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 { /* sqlite3.c:226599: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)
}
@@ -182274,7 +183698,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) { /* sqlite3.c:226609:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -182303,7 +183727,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) { /* sqlite3.c:226643:13: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -182408,7 +183832,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) { /* sqlite3.c:226715:13: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -182533,7 +183957,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) { /* sqlite3.c:226846:13: */
var pDlidx uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpDlidx
var pLast uintptr = uintptr(0)
var pgnoLast int32 = 0
@@ -182633,7 +184057,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) { /* sqlite3.c:226935: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
@@ -182661,7 +184085,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) { /* sqlite3.c:226969:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -182895,7 +184319,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 { /* sqlite3.c:227095:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -182903,7 +184327,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+34723,
+ ts+34811,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*Fts5Index)(unsafe.Pointer(p)).FpIdxSelect
@@ -182914,7 +184338,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) { /* sqlite3.c:227114:13: */
var iPg int32 = 1
var bGe int32 = flags & FTS5INDEX_QUERY_SCAN
var bDlidx int32 = 0 // True if there is a doclist-index
@@ -182984,7 +184408,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) { /* sqlite3.c:227197:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -183040,7 +184464,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) { /* sqlite3.c:227256:13: */
sqlite3Fts5BufferFree(tls, pIter+88)
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpNextLeaf)
@@ -183055,7 +184479,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 { /* sqlite3.c:227360:12: */
var i1 int32 // Index of left-hand Fts5SegIter
var i2 int32 // Index of right-hand Fts5SegIter
var iRes int32
@@ -183107,7 +184531,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) { /* sqlite3.c:227414:13: */
if iLeafPgno > (*Fts5StructureSegment)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FpgnoLast {
(*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_CORRUPT | int32(1)<<8
@@ -183137,7 +184561,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) { /* sqlite3.c:227452: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
@@ -183167,7 +184591,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)
@@ -183187,7 +184611,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) { /* sqlite3.c:227506:13: */
if pIter != 0 {
var i int32
for i = 0; i < (*Fts5Iter)(unsafe.Pointer(pIter)).FnSeg; i++ {
@@ -183198,7 +184622,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) { /* sqlite3.c:227517: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
@@ -183221,7 +184645,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 { /* sqlite3.c:227545:12: */
var pNew uintptr = pIter + 96 + uintptr(iChanged)*120
if (*Fts5SegIter)(unsafe.Pointer(pNew)).FiRowid == (*Fts5Iter)(unsafe.Pointer(pIter)).FiSwitchRowid ||
@@ -183261,7 +184685,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) { /* sqlite3.c:227588: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
@@ -183272,7 +184696,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) { /* sqlite3.c:227601:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -183311,13 +184735,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) { /* sqlite3.c:227639: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
@@ -183336,12 +184760,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) { /* sqlite3.c:227667: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 { /* sqlite3.c:227671:17: */
var pNew uintptr
var nSlot int32 // Power of two >= nSeg
@@ -183360,7 +184784,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) { /* sqlite3.c:227693:13: */
_ = pUnused
if nChunk > 0 {
@@ -183377,21 +184801,21 @@ type PoslistCallbackCtx1 = struct {
FpColset uintptr
FeState int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:225938:9 */
+} /* sqlite3.c:227705:9 */
-type PoslistCallbackCtx = PoslistCallbackCtx1 /* sqlite3.c:225938:35 */
+type PoslistCallbackCtx = PoslistCallbackCtx1 /* sqlite3.c:227705:35 */
type PoslistOffsetsCtx1 = struct {
FpBuf uintptr
FpColset uintptr
FiRead int32
FiWrite int32
-} /* sqlite3.c:225945:9 */
+} /* sqlite3.c:227712:9 */
-type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* sqlite3.c:225945:34 */
+type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* sqlite3.c:227712: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 { /* sqlite3.c:227723:12: */
var i int32
for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ {
if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol {
@@ -183401,7 +184825,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) { /* sqlite3.c:227731:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -183427,7 +184851,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) { /* sqlite3.c:227754:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -183462,7 +184886,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++
@@ -183507,7 +184931,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) { /* sqlite3.c:227806: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)
@@ -183563,7 +184987,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) { /* sqlite3.c:227856:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -183614,7 +185038,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) { /* sqlite3.c:227901:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -183675,7 +185099,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) { /* sqlite3.c:227961:13: */
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos
@@ -183683,7 +185107,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) { /* sqlite3.c:227971:13: */
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos
@@ -183703,7 +185127,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) { /* sqlite3.c:227996:13: */
_ = pSeg
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = 0
}
@@ -183711,7 +185135,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) { /* sqlite3.c:228006: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
@@ -183727,7 +185151,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) { /* sqlite3.c:228024:13: */
var a uintptr
var pEnd uintptr
var iPrev int32
@@ -183789,7 +185213,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) { /* sqlite3.c:228064:13: */
var pColset uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpColset
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
@@ -183811,7 +185235,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) { /* sqlite3.c:228089:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex)).FpConfig
@@ -183856,7 +185280,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) { /* sqlite3.c:228133:13: */
var nSeg int32 // Number of segment-iters in use
var iIter int32 //
var iSeg int32 // Used to iterate through segments
@@ -184059,7 +185483,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) { /* sqlite3.c:228239:13: */
var pNew uintptr
pNew = fts5MultiIterAlloc(tls, p, 2)
if pNew != 0 {
@@ -184092,7 +185516,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 { /* sqlite3.c:228279:12: */
return libc.Bool32((*Fts5Index)(unsafe.Pointer(p)).Frc != 0 || (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FbEof != 0)
}
@@ -184100,13 +185524,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 { /* sqlite3.c:228292: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) { /* sqlite3.c:228300:13: */
for 1 != 0 {
var iRowid I64
fts5MultiIterNext(tls, p, pIter, 1, iMatch)
@@ -184125,7 +185549,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 { /* sqlite3.c:228319: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
@@ -184138,7 +185562,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 { /* sqlite3.c:228334:12: */
bp := tls.Alloc(252)
defer tls.Free(252)
@@ -184180,7 +185604,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) { /* sqlite3.c:228391:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpHash != 0 {
sqlite3Fts5HashClear(tls, (*Fts5Index)(unsafe.Pointer(p)).FpHash)
@@ -184193,7 +185617,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 { /* sqlite3.c:228406: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)))) {
@@ -184203,7 +185627,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) { /* sqlite3.c:228414:13: */
var i int32
for i = 0; i < (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnDlidx; i++ {
@@ -184224,7 +185648,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 { /* sqlite3.c:228440: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)))
@@ -184243,7 +185667,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 { /* sqlite3.c:228466:12: */
var bFlag int32 = 0
// If there were FTS5_MIN_DLIDX_SIZE or more empty leaf pages written
@@ -184265,7 +185689,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) { /* sqlite3.c:228490:13: */
var bFlag int32
if (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FiBtPage == 0 {
@@ -184278,7 +185702,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 + 1565
+ return ts + 1534
}()
// The following was already done in fts5WriteInit():
// sqlite3_bind_int(p->pIdxWriter, 1, pWriter->iSegid);
@@ -184298,7 +185722,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) { /* sqlite3.c:228519:13: */
fts5WriteFlushBtree(tls, p, pWriter)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
sqlite3Fts5BufferSet(tls, p+52, pWriter+96, nTerm, pTerm)
@@ -184308,7 +185732,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) { /* sqlite3.c:228535: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 {
@@ -184321,7 +185745,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 { /* sqlite3.c:228551:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -184337,7 +185761,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) { /* sqlite3.c:228565:13: */
var i int32
var bDone int32 = 0
@@ -184397,7 +185821,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) { /* sqlite3.c:228625:13: */
var pPage uintptr = pWriter + 8
var iRowid I64
@@ -184433,14 +185857,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)} /* sqlite3.c:228626: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) { /* sqlite3.c:228671:13: */
var nPrefix int32 // Bytes of prefix compression for term
var pPage uintptr = pWriter + 8
var pPgidx uintptr = pWriter + 8 + 24
@@ -184516,7 +185940,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) { /* sqlite3.c:228752:13: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var pPage uintptr = pWriter + 8
@@ -184545,7 +185969,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) { /* sqlite3.c:228785:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -184574,7 +185998,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) { /* sqlite3.c:228819:13: */
var i int32
var pLeaf uintptr = pWriter + 8
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -184598,7 +186022,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) { /* sqlite3.c:228847:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -184619,7 +186043,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+34807,
+ ts+34895,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
@@ -184638,7 +186062,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) { /* sqlite3.c:228894:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -184707,13 +186131,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) { /* sqlite3.c:228960: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) { /* sqlite3.c:228972:13: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -184872,7 +186296,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 { /* sqlite3.c:229122:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -184922,7 +186346,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) { /* sqlite3.c:229181: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
@@ -184939,7 +186363,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) { /* sqlite3.c:229202:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -184956,7 +186380,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 { /* sqlite3.c:229220:12: */
var rc int32 = (*Fts5Index)(unsafe.Pointer(p)).Frc
(*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_OK
return rc
@@ -184965,14 +186389,14 @@ func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:227453:12: *
type Fts5FlushCtx1 = struct {
FpIdx uintptr
Fwriter Fts5SegWriter
-} /* sqlite3.c:227459:9 */
+} /* sqlite3.c:229226:9 */
-type Fts5FlushCtx = Fts5FlushCtx1 /* sqlite3.c:227459:29 */
+type Fts5FlushCtx = Fts5FlushCtx1 /* sqlite3.c:229226: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 { /* sqlite3.c:229237:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -184997,7 +186421,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) { /* sqlite3.c:229258:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -185175,7 +186599,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) { /* sqlite3.c:229412:13: */
// Unless it is empty, flush the hash table to disk
if (*Fts5Index)(unsafe.Pointer(p)).FnPendingData != 0 {
@@ -185184,7 +186608,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 { /* sqlite3.c:229421:22: */
var pNew uintptr = uintptr(0)
var nByte Sqlite3_int64 = Sqlite3_int64(unsafe.Sizeof(Fts5Structure{}))
var nSeg int32 = (*Fts5Structure)(unsafe.Pointer(pStruct)).FnSegment
@@ -185245,7 +186669,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 { /* sqlite3.c:229483:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -185279,7 +186703,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 { /* sqlite3.c:229517:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -185304,12 +186728,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) { /* sqlite3.c:229539: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) { /* sqlite3.c:229549:13: */
var nData int32 = (*Fts5Iter)(unsafe.Pointer(pMulti)).Fbase.FnData
var nByte int32 = nData + 9 + 9 + FTS5_DATA_ZERO_PADDING
@@ -185336,7 +186760,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) { /* sqlite3.c:229567:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -185368,7 +186792,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) { /* sqlite3.c:229596: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
@@ -185378,13 +186802,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) { /* sqlite3.c:229635: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) { /* sqlite3.c:229641:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -185401,7 +186825,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) { /* sqlite3.c:229656:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -185457,11 +186881,11 @@ type PrefixMerger1 = struct {
F__ccgo_pad1 [4]byte
FaPos uintptr
FpNext uintptr
-} /* sqlite3.c:227932:9 */
+} /* sqlite3.c:229699:9 */
-type PrefixMerger = PrefixMerger1 /* sqlite3.c:227932:29 */
+type PrefixMerger = PrefixMerger1 /* sqlite3.c:229699:29 */
-func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:227941:13: */
+func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:229708: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 {
@@ -185472,7 +186896,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) { /* sqlite3.c:229722: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 {
@@ -185485,7 +186909,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) { /* sqlite3.c:229741:13: */
bp := tls.Alloc(1072)
defer tls.Free(1072)
@@ -185650,7 +187074,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) { /* sqlite3.c:229885:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -185797,7 +187221,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 { /* sqlite3.c:230022:12: */
// Allocate the hash table if it has not already been allocated
if (*Fts5Index)(unsafe.Pointer(p)).FpHash == uintptr(0) {
@@ -185817,7 +187241,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 { /* sqlite3.c:230046:12: */
fts5IndexFlush(tls, p)
sqlite3Fts5IndexCloseReader(tls, p)
@@ -185828,7 +187252,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 { /* sqlite3.c:230059:12: */
sqlite3Fts5IndexCloseReader(tls, p)
fts5IndexDiscardData(tls, p)
fts5StructureInvalidate(tls, p)
@@ -185839,7 +187263,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 { /* sqlite3.c:230072:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -185848,7 +187272,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+1565, 0)
+ fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), ts+1534, 0)
fts5StructureWrite(tls, p, bp)
return fts5IndexReturn(tls, p)
}
@@ -185858,7 +187282,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 { /* sqlite3.c:230089:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -185869,13 +187293,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+34864, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
+ (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl = sqlite3Fts5Mprintf(tls, bp+8, ts+34952, 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+24782, ts+34872, 0, pzErr)
+ pConfig, ts+24870, ts+34960, 0, pzErr)
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+11348,
- ts+34907,
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+11365,
+ ts+34995,
1, pzErr)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
@@ -185892,7 +187316,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 { /* sqlite3.c:230130:12: */
var rc int32 = SQLITE_OK
if p != 0 {
@@ -185913,7 +187337,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 { /* sqlite3.c:230153:12: */
var n int32 = 0
var i int32
for i = 0; i < nChar; i++ {
@@ -185940,7 +187364,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 { /* sqlite3.c:230180:12: */
var nChar int32 = 0
var i int32 = 0
for i < nIn {
@@ -185962,7 +187386,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 { /* sqlite3.c:230202:12: */
var i int32 // Used to iterate through indexes
var rc int32 = SQLITE_OK // Return code
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig
@@ -185986,7 +187410,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 { /* sqlite3.c:230238:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -185999,7 +187423,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))
}
@@ -186069,7 +187493,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 { /* sqlite3.c:230326:12: */
var pIter uintptr = pIndexIter
fts5MultiIterNext(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex, pIter, 0, int64(0))
@@ -186077,7 +187501,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 { /* sqlite3.c:230336:12: */
var pIter uintptr = pIndexIter
var p uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex
@@ -186097,14 +187521,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 { /* sqlite3.c:230360: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 { /* sqlite3.c:230369:19: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -186122,7 +187546,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) { /* sqlite3.c:230380:13: */
if pIndexIter != 0 {
var pIter uintptr = pIndexIter
var pIndex uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex
@@ -186135,7 +187559,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 { /* sqlite3.c:230395:12: */
var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FnCol
var pData uintptr
@@ -186157,7 +187581,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 { /* sqlite3.c:230419:12: */
fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), pData, nData)
return fts5IndexReturn(tls, p)
@@ -186165,7 +187589,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 { /* sqlite3.c:230429:12: */
return (*Fts5Index)(unsafe.Pointer(p)).FnRead
}
@@ -186174,7 +187598,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 { /* sqlite3.c:230440:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186187,7 +187611,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+34554, int64(FTS5_STRUCTURE_ROWID), 1, bp+8)
+ ts+34642, 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 */)))
@@ -186196,7 +187620,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 { /* sqlite3.c:230460:12: */
var pStruct uintptr
pStruct = fts5StructureRead(tls, p)
fts5StructureRelease(tls, pStruct)
@@ -186210,7 +187634,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 { /* sqlite3.c:230477:12: */
var i int32
var ret U64 = U64(iRowid)
ret = ret + (ret<<3 + U64(iCol))
@@ -186230,7 +187654,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) { /* sqlite3.c:230695:13: */
var i int32
// Now check that the iter.nEmpty leaves following the current leaf
@@ -186249,7 +187673,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) { /* sqlite3.c:230716:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -186308,7 +187732,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) { /* sqlite3.c:230766:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -186324,7 +187748,7 @@ func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /*
fts5IndexPrepareStmt(tls, p, bp+24, Xsqlite3_mprintf(tls,
- ts+34951,
+ ts+35039,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid)))
// Iterate through the b-tree hierarchy.
@@ -186477,7 +187901,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 { /* sqlite3.c:230911:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -186536,7 +187960,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+35037)
+ sqlite3Fts5BufferAppendBlob(tls, p+52, bp+16, uint32(4), ts+35125)
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))
@@ -186567,13 +187991,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 { /* sqlite3.c:231474: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 { /* sqlite3.c:231500:12: */
if fts5IndexDataVersion(tls, p) != (*Fts5Index)(unsafe.Pointer(p)).FiStructVersion {
fts5StructureInvalidate(tls, p)
@@ -186606,7 +188030,7 @@ type Fts5Auxdata1 = struct {
FpPtr uintptr
FxDelete uintptr
FpNext uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
// 2014 Jun 09
//
@@ -186628,7 +188052,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 /* sqlite3.c:231537:28 */
type Fts5Auxiliary1 = struct {
FpGlobal uintptr
FzFunc uintptr
@@ -186636,9 +188060,9 @@ type Fts5Auxiliary1 = struct {
FxFunc Fts5_extension_function
FxDestroy uintptr
FpNext uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5Auxiliary = Fts5Auxiliary1 /* sqlite3.c:229771:30 */
+type Fts5Auxiliary = Fts5Auxiliary1 /* sqlite3.c:231538:30 */
type Fts5Cursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpNext uintptr
@@ -186667,35 +188091,35 @@ type Fts5Cursor1 = struct {
FnInstAlloc int32
FnInstCount int32
FaInst uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5Cursor = Fts5Cursor1 /* sqlite3.c:229772:27 */
+type Fts5Cursor = Fts5Cursor1 /* sqlite3.c:231539:27 */
type Fts5FullTable1 = struct {
Fp Fts5Table
FpStorage uintptr
FpGlobal uintptr
FpSortCsr uintptr
-} /* sqlite3.c:229773:9 */
+} /* sqlite3.c:231540:9 */
-type Fts5FullTable = Fts5FullTable1 /* sqlite3.c:229773:30 */
+type Fts5FullTable = Fts5FullTable1 /* sqlite3.c:231540:30 */
type Fts5Sorter1 = struct {
FpStmt uintptr
FiRowid I64
FaPoslist uintptr
FnIdx int32
FaIdx [1]int32
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5Sorter = Fts5Sorter1 /* sqlite3.c:229774:27 */
+type Fts5Sorter = Fts5Sorter1 /* sqlite3.c:231541:27 */
type Fts5TokenizerModule1 = struct {
FzName uintptr
FpUserData uintptr
Fx Fts5_tokenizer
FxDestroy uintptr
FpNext uintptr
-} /* sqlite3.c:214970:9 */
+} /* sqlite3.c:216737:9 */
-type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:229775:36 */
+type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:231542:36 */
// NOTES ON TRANSACTIONS:
//
@@ -186729,21 +188153,21 @@ type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:229775:36 */
type Fts5TransactionState = struct {
FeState int32
FiSavepoint int32
-} /* sqlite3.c:229808:1 */
+} /* sqlite3.c:231575:1 */
type Fts5MatchPhrase = struct {
FpPoslist uintptr
FnTerm int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:229865:1 */
+} /* sqlite3.c:231632: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 { /* sqlite3.c:231816: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) { /* sqlite3.c:231823:13: */
if pTab != 0 {
sqlite3Fts5IndexClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex)
sqlite3Fts5StorageClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
@@ -186753,13 +188177,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 { /* sqlite3.c:231835: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 { /* sqlite3.c:231843:12: */
var pTab uintptr = pVtab
var rc int32 = sqlite3Fts5DropAll(tls, (*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)
if rc == SQLITE_OK {
@@ -186777,7 +188201,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 { /* sqlite3.c:231863:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186835,11 +188259,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 { /* sqlite3.c:231929: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 { /* sqlite3.c:231939:12: */
return fts5InitVtab(tls, 1, db, pAux, argc, argv, ppVtab, pzErr)
}
@@ -186848,14 +188272,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) { /* sqlite3.c:231965: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 { /* sqlite3.c:231976:12: */
if (*Fts5Config)(unsafe.Pointer(pConfig)).FePattern == FTS5_PATTERN_GLOB && int32((*sqlite3_index_constraint)(unsafe.Pointer(p)).Fop) == FTS5_PATTERN_GLOB {
return 1
@@ -186926,7 +188350,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 { /* sqlite3.c:232054:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186947,7 +188371,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+35042, 0)
+ ts+35130, 0)
return SQLITE_ERROR
}
@@ -186981,7 +188405,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+4917, libc.VaList(bp, iCol))
+ Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4926, libc.VaList(bp, iCol))
idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr)))
}
@@ -186997,7 +188421,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /*
}
return int8('G')
}()
- Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4917, libc.VaList(bp+8, iCol))
+ Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4926, 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)
@@ -187088,7 +188512,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 { /* sqlite3.c:232189: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 {
@@ -187099,7 +188523,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 { /* sqlite3.c:232200:12: */
var pTab uintptr = pVTab
var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig
var pCsr uintptr = uintptr(0) // New cursor object
@@ -187125,7 +188549,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 { /* sqlite3.c:232226:12: */
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan == FTS5_PLAN_SCAN {
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FbDesc != 0 {
return FTS5_STMT_SCAN_DESC
@@ -187138,11 +188562,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) { /* sqlite3.c:232238: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) { /* sqlite3.c:232247:13: */
var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var pData uintptr
var pNext uintptr
@@ -187185,7 +188609,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 { /* sqlite3.c:232291:12: */
if pCursor != 0 {
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pCsr uintptr = pCursor
@@ -187202,7 +188626,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 { /* sqlite3.c:232307:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -187246,7 +188670,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) { /* sqlite3.c:232350: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 &&
@@ -187266,7 +188690,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 { /* sqlite3.c:232373:12: */
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_RESEEK != 0 {
@@ -187295,7 +188719,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 { /* sqlite3.c:232405:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -187340,7 +188764,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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
+ ts+3614, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
}
} else {
rc = SQLITE_OK
@@ -187354,7 +188778,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 { /* sqlite3.c:232458:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -187372,7 +188796,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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
+ *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb)))
}
Xsqlite3_free(tls, zSql)
}
@@ -187382,7 +188806,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 { /* sqlite3.c:232487:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -187411,25 +188835,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+35081,
+ ts+35169,
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 + 14529 /* ", " */
+ return ts + 14543 /* ", " */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}(),
func() uintptr {
if zRankArgs != 0 {
return zRankArgs
}
- return ts + 1565
+ return ts + 1534
}(),
func() uintptr {
if bDesc != 0 {
- return ts + 35136 /* "DESC" */
+ return ts + 35224 /* "DESC" */
}
- return ts + 35141 /* "ASC" */
+ return ts + 35229 /* "ASC" */
}()))
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter = pSorter
@@ -187449,7 +188873,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 { /* sqlite3.c:232539: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)
@@ -187464,7 +188888,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 { /* sqlite3.c:232556:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -187480,13 +188904,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+35145, z, n) {
+ if n == 5 && 0 == Xsqlite3_strnicmp(tls, ts+35233, 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+4999, z, n) {
+ } else if n == 2 && 0 == Xsqlite3_strnicmp(tls, ts+5008, 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+35151, libc.VaList(bp, n, z))
+ (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35239, libc.VaList(bp, n, z))
rc = SQLITE_ERROR
}
@@ -187496,7 +188920,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 { /* sqlite3.c:232591:22: */
var pAux uintptr
for pAux = (*Fts5Global)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).FpGlobal)).FpAux; pAux != 0; pAux = (*Fts5Auxiliary)(unsafe.Pointer(pAux)).FpNext {
@@ -187509,7 +188933,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 { /* sqlite3.c:232603:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -187521,7 +188945,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+35179, libc.VaList(bp, zRankArgs))
+ var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+35267, 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,
@@ -187553,7 +188977,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+35189, libc.VaList(bp+8, zRank))
+ (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35277, libc.VaList(bp+8, zRank))
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR
}
}
@@ -187562,7 +188986,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 { /* sqlite3.c:232654:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -187585,21 +189009,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+35210, libc.VaList(bp, z))
+ ts+35298, 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 + 33593 /* "bm25" */
+ (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = ts + 33681 /* "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 { /* sqlite3.c:232691:12: */
if pVal != 0 {
var eType int32 = Xsqlite3_value_numeric_type(tls, pVal)
if eType == SQLITE_INTEGER {
@@ -187618,7 +189042,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 { /* sqlite3.c:232712:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -187658,7 +189082,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+35042, 0)
+ ts+35130, 0)
return SQLITE_ERROR
__1:
;
@@ -187704,7 +189128,7 @@ __8:
if !(zText == uintptr(0)) {
goto __14
}
- zText = ts + 1565 /* "" */
+ zText = ts + 1534 /* "" */
__14:
;
iCol = 0
@@ -187893,7 +189317,7 @@ __35:
goto __40
}
*(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls,
- ts+35243, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
+ ts+35331, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
rc = SQLITE_ERROR
goto __41
__40:
@@ -187939,7 +189363,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 { /* sqlite3.c:232905:12: */
var pCsr uintptr = pCursor
return func() int32 {
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_EOF != 0 {
@@ -187950,7 +189374,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 { /* sqlite3.c:232913:12: */
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter != 0 {
return (*Fts5Sorter)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter)).FiRowid
@@ -187964,7 +189388,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 { /* sqlite3.c:232931:12: */
var pCsr uintptr = pCursor
var ePlan int32 = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan
@@ -187994,7 +189418,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 { /* sqlite3.c:232962:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188031,14 +189455,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+3623, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).Fdb)))
+ ts+3614, 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) { /* sqlite3.c:233001:13: */
var ap Va_list
_ = ap // ... printf arguments
ap = va
@@ -188060,7 +189484,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 { /* sqlite3.c:233024:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188068,29 +189492,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+35279, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, ts+35367, zCmd) {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
fts5SetVtabError(tls, pTab,
- ts+35290, 0)
+ ts+35378, 0)
rc = SQLITE_ERROR
} else {
rc = sqlite3Fts5StorageDeleteAll(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
- } else if 0 == Xsqlite3_stricmp(tls, ts+35370, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+35458, zCmd) {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NONE {
fts5SetVtabError(tls, pTab,
- ts+35378, 0)
+ ts+35466, 0)
rc = SQLITE_ERROR
} else {
rc = sqlite3Fts5StorageRebuild(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
- } else if 0 == Xsqlite3_stricmp(tls, ts+16801, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+16833, zCmd) {
rc = sqlite3Fts5StorageOptimize(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
- } else if 0 == Xsqlite3_stricmp(tls, ts+35434, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+35522, 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+35440, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+35528, zCmd) {
var iArg int32 = Xsqlite3_value_int(tls, pVal)
rc = sqlite3Fts5StorageIntegrity(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg)
} else {
@@ -188109,7 +189533,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 { /* sqlite3.c:233080:12: */
var rc int32 = SQLITE_OK
var eType1 int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + 1*8)))
if eType1 == SQLITE_INTEGER {
@@ -188119,7 +189543,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) { /* sqlite3.c:233093:13: */
var rc int32 = *(*int32)(unsafe.Pointer(pRc))
if rc == SQLITE_OK {
rc = sqlite3Fts5StorageContentInsert(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, apVal, piRowid)
@@ -188142,7 +189566,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 { /* sqlite3.c:233123:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -188164,7 +189588,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+17346, z) {
+ 0 == Xsqlite3_stricmp(tls, ts+17378, 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)))
@@ -188189,12 +189613,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+35456,
+ ts+35544,
libc.VaList(bp, func() uintptr {
if nArg > 1 {
- return ts + 20247 /* "UPDATE" */
+ return ts + 20277 /* "UPDATE" */
}
- return ts + 35493 /* "DELETE from" */
+ return ts + 35581 /* "DELETE from" */
}(), (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR
} else if nArg == 1 {
@@ -188244,7 +189668,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 { /* sqlite3.c:233249:12: */
var rc int32
var pTab uintptr = pVtab
@@ -188256,7 +189680,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 { /* sqlite3.c:233263:12: */
fts5NewTransaction(tls, pVtab)
return SQLITE_OK
@@ -188265,7 +189689,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 { /* sqlite3.c:233274:12: */
_ = pVtab // Call below is a no-op for NDEBUG builds
return SQLITE_OK
@@ -188273,7 +189697,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 { /* sqlite3.c:233284:12: */
var rc int32
var pTab uintptr = pVtab
@@ -188281,46 +189705,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 { /* sqlite3.c:233294: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 { /* sqlite3.c:233299: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 { /* sqlite3.c:233304: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 { /* sqlite3.c:233314: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 { /* sqlite3.c:233320: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 { /* sqlite3.c:233333: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 { /* sqlite3.c:233338: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 { /* sqlite3.c:233343:12: */
var rc int32 = SQLITE_OK
var pCsr uintptr = pCtx
if fts5IsContentless(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab) != 0 ||
@@ -188337,7 +189761,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 { /* sqlite3.c:233366:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -188394,7 +189818,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 { /* sqlite3.c:233418:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -188478,7 +189902,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 { /* sqlite3.c:233492:12: */
var pCsr uintptr = pCtx
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 ||
@@ -188488,7 +189912,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 { /* sqlite3.c:233502:12: */
var pCsr uintptr = pCtx
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 ||
@@ -188504,11 +189928,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 { /* sqlite3.c:233531: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 { /* sqlite3.c:233535:12: */
var pCnt uintptr = pContext
_ = pUnused
_ = nUnused
@@ -188520,7 +189944,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 { /* sqlite3.c:233552:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -188578,7 +190002,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 { /* sqlite3.c:233605:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188616,7 +190040,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 { /* sqlite3.c:233640:13: */
var pCsr uintptr = pCtx
var pData uintptr
var pRet uintptr = uintptr(0)
@@ -188638,7 +190062,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) { /* sqlite3.c:233660:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188660,7 +190084,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 { /* sqlite3.c:233682:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -188683,7 +190107,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) { /* sqlite3.c:233701:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188716,7 +190140,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 { /* sqlite3.c:233731:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188797,10 +190221,10 @@ var sFts5Api = Fts5ExtensionApi{
FxPhraseNext: 0,
FxPhraseFirstColumn: 0,
FxPhraseNextColumn: 0,
-} /* sqlite3.c:232014:31 */
+} /* sqlite3.c:233781: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 { /* sqlite3.c:233807:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188836,7 +190260,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) { /* sqlite3.c:233844:13: */
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux = pAux
(*struct {
@@ -188845,7 +190269,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 { /* sqlite3.c:233857: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 {
@@ -188855,7 +190279,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) { /* sqlite3.c:233865:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -188868,7 +190292,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+35505, libc.VaList(bp, iCsrId))
+ var zErr uintptr = Xsqlite3_mprintf(tls, ts+35593, libc.VaList(bp, iCsrId))
Xsqlite3_result_error(tls, context, zErr, -1)
Xsqlite3_free(tls, zErr)
} else {
@@ -188878,7 +190302,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 { /* sqlite3.c:233894:18: */
var pCsr uintptr
pCsr = fts5CursorFromCsrid(tls, pGlobal, iCsrId)
if pCsr != 0 {
@@ -188900,7 +190324,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 { /* sqlite3.c:233921:12: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -188964,7 +190388,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 { /* sqlite3.c:233978:12: */
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig
var pCsr uintptr = pCursor
@@ -189004,7 +190428,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 { /* sqlite3.c:234031:12: */
var pTab uintptr = pVtab
var pAux uintptr
@@ -189023,12 +190447,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 { /* sqlite3.c:234056: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 { /* sqlite3.c:234064:12: */
fts5TripCursors(tls, pTab)
return sqlite3Fts5StorageSync(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
@@ -189036,7 +190460,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 { /* sqlite3.c:234074:12: */
_ = iSavepoint // Call below is a no-op for NDEBUG builds
return sqlite3Fts5FlushToDisk(tls, pVtab)
@@ -189045,7 +190469,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 { /* sqlite3.c:234085:12: */
_ = iSavepoint // Call below is a no-op for NDEBUG builds
return sqlite3Fts5FlushToDisk(tls, pVtab)
@@ -189054,7 +190478,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 { /* sqlite3.c:234096:12: */
var pTab uintptr = pVtab
_ = iSavepoint // Call below is a no-op for NDEBUG builds
@@ -189063,7 +190487,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 { /* sqlite3.c:234107:12: */
var pGlobal uintptr = pApi
var rc int32 = Xsqlite3_overload_function(tls, (*Fts5Global)(unsafe.Pointer(pGlobal)).Fdb, zName, -1)
if rc == SQLITE_OK {
@@ -189094,7 +190518,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 { /* sqlite3.c:234146:12: */
var pGlobal uintptr = pApi
var pNew uintptr
var nName Sqlite3_int64 // Size of zName and its \0 terminator
@@ -189123,7 +190547,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 { /* sqlite3.c:234181:28: */
var pMod uintptr = uintptr(0)
if zName == uintptr(0) {
@@ -189141,7 +190565,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 { /* sqlite3.c:234202:12: */
var rc int32 = SQLITE_OK
var pMod uintptr
@@ -189157,7 +190581,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 { /* sqlite3.c:234223:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189173,7 +190597,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+35526, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35614, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg))))
} else {
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
@@ -189192,7 +190616,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+35548, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35636, 0)
}
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FePattern = sqlite3Fts5TokenizerPattern(tls,
@@ -189208,7 +190632,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) { /* sqlite3.c:234260:13: */
var pTok uintptr
var pNextTok uintptr
var pAux uintptr
@@ -189234,28 +190658,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) { /* sqlite3.c:234280:13: */
var pGlobal uintptr = Xsqlite3_user_data(tls, pCtx)
var ppApi uintptr
_ = nArg
- ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+35579)
+ ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+35667)
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) { /* sqlite3.c:234296:13: */
_ = nArg
_ = apUnused
- Xsqlite3_result_text(tls, pCtx, ts+35592, -1, libc.UintptrFromInt32(-1))
+ Xsqlite3_result_text(tls, pCtx, ts+35680, -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 { /* sqlite3.c:234310: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 {
@@ -189266,10 +190690,10 @@ func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:232543:12
}
var azName2 = [5]uintptr{
- ts + 35683, ts + 33782, ts + 24782, ts + 34133, ts + 11348,
-} /* sqlite3.c:232544:21 */
+ ts + 35771, ts + 33870, ts + 24870, ts + 34221, ts + 11365,
+} /* sqlite3.c:234311:21 */
-func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:232554:12: */
+func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234321:12: */
var rc int32
var pGlobal uintptr = uintptr(0)
@@ -189290,7 +190714,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+35690, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy})))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+35778, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy})))
if rc == SQLITE_OK {
rc = sqlite3Fts5IndexInit(tls, db)
}
@@ -189308,13 +190732,13 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:232554:12: */
}
if rc == SQLITE_OK {
rc = Xsqlite3_create_function(tls,
- db, ts+35690, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ db, ts+35778, 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+35695, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ db, ts+35783, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{fts5SourceIdFunc})), uintptr(0), uintptr(0))
}
@@ -189352,7 +190776,7 @@ var fts5Mod = Sqlite3_module{
/* xRelease */ FxRelease: 0,
/* xRollbackTo */ FxRollbackTo: 0,
/* xShadowName */ FxShadowName: 0,
-} /* sqlite3.c:232555:31 */
+} /* sqlite3.c:234322: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
@@ -189361,7 +190785,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 { /* sqlite3.c:234430:20: */
return fts5Init(tls, db)
}
@@ -189369,7 +190793,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 { /* sqlite3.c:234488:12: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -189380,20 +190804,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 + 35710,
- ts + 35778,
- ts + 35847,
+ ts + 35798,
+ ts + 35866,
+ ts + 35935,
- ts + 35880,
- ts + 35919,
- ts + 35959,
- ts + 35998,
- ts + 36039,
+ ts + 35968,
+ ts + 36007,
+ ts + 36047,
+ ts + 36086,
+ ts + 36127,
- ts + 36078,
+ ts + 36166,
- ts + 36120,
- ts + 36160,
+ ts + 36208,
+ ts + 36248,
}
var pC uintptr = (*Fts5Storage)(unsafe.Pointer(p)).FpConfig
var zSql uintptr = uintptr(0)
@@ -189460,7 +190884,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+3623, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb)))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+3614, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb)))
}
}
}
@@ -189470,7 +190894,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 { /* sqlite3.c:234591:12: */
var rc int32
var ap Va_list
_ = ap // ... printf arguments
@@ -189492,79 +190916,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 { /* sqlite3.c:234619:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
var rc int32 = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0),
- ts+36183,
+ ts+36271,
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+36287,
+ ts+36375,
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+36325,
+ ts+36413,
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) { /* sqlite3.c:234643: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+36363,
+ ts+36451,
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 { /* sqlite3.c:234657: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+24782, zName)
- fts5StorageRenameOne(tls, pConfig, bp, ts+11348, zName)
- fts5StorageRenameOne(tls, pConfig, bp, ts+35683, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+24870, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+11365, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+35771, zName)
if (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- fts5StorageRenameOne(tls, pConfig, bp, ts+34133, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+34221, zName)
}
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- fts5StorageRenameOne(tls, pConfig, bp, ts+33782, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+33870, 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 { /* sqlite3.c:234677: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+36405,
+ rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, bp+64, ts+36493,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn,
func() uintptr {
if bWithout != 0 {
- return ts + 29435 /* " WITHOUT ROWID" */
+ return ts + 29523 /* " WITHOUT ROWID" */
}
- return ts + 1565 /* "" */
+ return ts + 1534 /* "" */
}()))
if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 {
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls,
- ts+36435,
+ ts+36523,
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 */)))
}
@@ -189577,7 +191001,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 { /* sqlite3.c:234712:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189606,27 +191030,27 @@ func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCre
} else {
var i int32
var iOff int32
- Xsqlite3_snprintf(tls, nDefn, zDefn, ts+36479, 0)
+ Xsqlite3_snprintf(tls, nDefn, zDefn, ts+36567, 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+36502, libc.VaList(bp, i))
+ Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), ts+36590, libc.VaList(bp, i))
iOff = iOff + int32(libc.Xstrlen(tls, zDefn+uintptr(iOff)))
}
- rc = sqlite3Fts5CreateTable(tls, pConfig, ts+33782, zDefn, 0, pzErr)
+ rc = sqlite3Fts5CreateTable(tls, pConfig, ts+33870, zDefn, 0, pzErr)
}
Xsqlite3_free(tls, zDefn)
}
if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
rc = sqlite3Fts5CreateTable(tls,
- pConfig, ts+34133, ts+36508, 0, pzErr)
+ pConfig, ts+34221, ts+36596, 0, pzErr)
}
if rc == SQLITE_OK {
rc = sqlite3Fts5CreateTable(tls,
- pConfig, ts+35683, ts+36540, 1, pzErr)
+ pConfig, ts+35771, ts+36628, 1, pzErr)
}
if rc == SQLITE_OK {
- rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34279, uintptr(0), FTS5_CURRENT_VERSION)
+ rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34367, uintptr(0), FTS5_CURRENT_VERSION)
}
}
@@ -189638,7 +191062,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 { /* sqlite3.c:234778:12: */
var rc int32 = SQLITE_OK
if p != 0 {
var i int32
@@ -189657,12 +191081,12 @@ type Fts5InsertCtx1 = struct {
FpStorage uintptr
FiCol int32
FszCol int32
-} /* sqlite3.c:233026:9 */
+} /* sqlite3.c:234793:9 */
-type Fts5InsertCtx = Fts5InsertCtx1 /* sqlite3.c:233026:30 */
+type Fts5InsertCtx = Fts5InsertCtx1 /* sqlite3.c:234793: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 { /* sqlite3.c:234803:12: */
var pCtx uintptr = pContext
var pIdx uintptr = (*Fts5Storage)(unsafe.Pointer((*Fts5InsertCtx)(unsafe.Pointer(pCtx)).FpStorage)).FpIndex
_ = iUnused1
@@ -189679,7 +191103,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 { /* sqlite3.c:234826:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -189748,7 +191172,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 { /* sqlite3.c:234895:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189775,7 +191199,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 { /* sqlite3.c:234925: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)
@@ -189789,7 +191213,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 { /* sqlite3.c:234941:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -189813,7 +191237,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 { /* sqlite3.c:234963:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189854,7 +191278,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 { /* sqlite3.c:235004:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -189866,12 +191290,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+36557,
+ ts+36645,
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+36607,
+ ts+36695,
libc.VaList(bp+32, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
}
@@ -189881,12 +191305,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+34279, uintptr(0), FTS5_CURRENT_VERSION)
+ rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34367, 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 { /* sqlite3.c:235035:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -189950,15 +191374,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 { /* sqlite3.c:235090: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 { /* sqlite3.c:235094: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 { /* sqlite3.c:235098:12: */
return sqlite3Fts5IndexReset(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex)
}
@@ -189969,7 +191393,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 { /* sqlite3.c:235111:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -189991,7 +191415,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 { /* sqlite3.c:235132:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -190023,7 +191447,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 { /* sqlite3.c:235167:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -190068,7 +191492,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 { /* sqlite3.c:235210:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -190076,7 +191500,7 @@ func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr)
var zSql uintptr
var rc int32
- zSql = Xsqlite3_mprintf(tls, ts+36636,
+ zSql = Xsqlite3_mprintf(tls, ts+36724,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -190103,13 +191527,13 @@ type Fts5IntegrityCtx1 = struct {
Fcksum U64
FpTermset uintptr
FpConfig uintptr
-} /* sqlite3.c:233471:9 */
+} /* sqlite3.c:235238:9 */
// Context object used by sqlite3Fts5StorageIntegrity().
-type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* sqlite3.c:233471:33 */
+type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* sqlite3.c:235238: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 { /* sqlite3.c:235252:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -190175,7 +191599,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 { /* sqlite3.c:235322:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -190273,14 +191697,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+33782, bp+48)
+ rc = fts5StorageCount(tls, p, ts+33870, 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+34133, bp+56)
+ rc = fts5StorageCount(tls, p, ts+34221, bp+56)
if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp + 56)) != (*Fts5Storage)(unsafe.Pointer(p)).FnTotalRow {
rc = SQLITE_CORRUPT | int32(1)<<8
}
@@ -190300,7 +191724,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 { /* sqlite3.c:235430:12: */
var rc int32
rc = fts5StorageGetStmt(tls, p, eStmt, pp, pzErrMsg)
@@ -190314,7 +191738,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) { /* sqlite3.c:235454:13: */
if *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(eStmt)*8)) == uintptr(0) {
Xsqlite3_reset(tls, pStmt)
@@ -190324,7 +191748,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 { /* sqlite3.c:235471:12: */
var i int32
var iOff int32 = 0
for i = 0; i < nCol; i++ {
@@ -190342,7 +191766,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 { /* sqlite3.c:235492:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -190373,7 +191797,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 { /* sqlite3.c:235521:12: */
var rc int32 = fts5StorageLoadTotals(tls, p, 0)
if rc == SQLITE_OK {
*(*I64)(unsafe.Pointer(pnToken)) = int64(0)
@@ -190391,7 +191815,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 { /* sqlite3.c:235539:12: */
var rc int32 = fts5StorageLoadTotals(tls, p, 0)
if rc == SQLITE_OK {
// nTotalRow being zero does not necessarily indicate a corrupt
@@ -190408,7 +191832,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 { /* sqlite3.c:235556: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 {
@@ -190422,12 +191846,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 { /* sqlite3.c:235570: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 { /* sqlite3.c:235575:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -190482,13 +191906,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 */
+} /* sqlite3.c:235628:22 */
-type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* sqlite3.c:233872:9 */
+type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* sqlite3.c:235639:9 */
-type AsciiTokenizer = AsciiTokenizer1 /* sqlite3.c:233872:31 */
+type AsciiTokenizer = AsciiTokenizer1 /* sqlite3.c:235639: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) { /* sqlite3.c:235644: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 {
@@ -190498,12 +191922,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) { /* sqlite3.c:235660: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 { /* sqlite3.c:235667:12: */
var rc int32 = SQLITE_OK
var p uintptr = uintptr(0)
_ = pUnused
@@ -190519,9 +191943,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+36668) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36756) {
fts5AsciiAddExceptions(tls, p, zArg, 1)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36679) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36767) {
fts5AsciiAddExceptions(tls, p, zArg, 0)
} else {
rc = SQLITE_ERROR
@@ -190538,7 +191962,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) { /* sqlite3.c:235708:13: */
var i int32
for i = 0; i < nByte; i++ {
var c int8 = *(*int8)(unsafe.Pointer(aIn + uintptr(i)))
@@ -190550,7 +191974,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 { /* sqlite3.c:235720:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -190631,7 +192055,7 @@ type Unicode61Tokenizer1 = struct {
F__ccgo_pad1 [4]byte
FaiException uintptr
FaCategory [32]uint8
-} /* sqlite3.c:234068:9 */
+} /* sqlite3.c:235835:9 */
// *************************************************************************
//
@@ -190641,11 +192065,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 /* sqlite3.c:235835: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 { /* sqlite3.c:235852:12: */
var rc int32 = SQLITE_OK
var n int32 = int32(libc.Xstrlen(tls, z))
var aNew uintptr
@@ -190700,7 +192124,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 { /* sqlite3.c:235902:12: */
if (*Unicode61Tokenizer)(unsafe.Pointer(p)).FnException > 0 {
var a uintptr = (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException
var iLo int32 = 0
@@ -190722,7 +192146,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) { /* sqlite3.c:235926:13: */
if pTok != 0 {
var p uintptr = pTok
Xsqlite3_free(tls, (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException)
@@ -190732,7 +192156,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 { /* sqlite3.c:235936:12: */
var z uintptr = zCat
for *(*int8)(unsafe.Pointer(z)) != 0 {
@@ -190752,7 +192176,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 { /* sqlite3.c:235954:12: */
var rc int32 = SQLITE_OK // Return code
var p uintptr = uintptr(0) // New tokenizer object
@@ -190763,7 +192187,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 + 36690 /* "L* N* Co" */
+ var zCat uintptr = ts + 36778 /* "L* N* Co" */
var i int32
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Unicode61Tokenizer{})))
@@ -190776,7 +192200,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+36699) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36787) {
zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8))
}
}
@@ -190787,18 +192211,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+36710) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36798) {
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+36668) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36756) {
rc = fts5UnicodeAddExceptions(tls, p, zArg, 1)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36679) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36767) {
rc = fts5UnicodeAddExceptions(tls, p, zArg, 0)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36699) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36787) {
// no-op
} else {
rc = SQLITE_ERROR
@@ -190820,12 +192244,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 { /* sqlite3.c:236034: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 { /* sqlite3.c:236041:12: */
var p uintptr
var rc int32
var a uintptr
@@ -191081,7 +192505,7 @@ type PorterTokenizer1 = struct {
Ftokenizer Fts5_tokenizer
FpTokenizer uintptr
FaBuf [128]int8
-} /* sqlite3.c:234386:9 */
+} /* sqlite3.c:236153:9 */
// *************************************************************************
//
@@ -191090,10 +192514,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 /* sqlite3.c:236153:32 */
// Delete a "porter" tokenizer.
-func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:234396:13: */
+func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:236163:13: */
if pTok != 0 {
var p uintptr = pTok
if (*PorterTokenizer)(unsafe.Pointer(p)).FpTokenizer != 0 {
@@ -191104,7 +192528,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 { /* sqlite3.c:236176:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -191112,7 +192536,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 + 36728 /* "unicode61" */
+ var zBase uintptr = ts + 36816 /* "unicode61" */
if nArg > 0 {
zBase = *(*uintptr)(unsafe.Pointer(azArg))
@@ -191157,9 +192581,9 @@ type PorterContext1 = struct {
FpCtx uintptr
FxToken uintptr
FaBuf uintptr
-} /* sqlite3.c:234445:9 */
+} /* sqlite3.c:236212:9 */
-type PorterContext = PorterContext1 /* sqlite3.c:234445:30 */
+type PorterContext = PorterContext1 /* sqlite3.c:236212:30 */
type PorterRule1 = struct {
FzSuffix uintptr
@@ -191169,15 +192593,15 @@ type PorterRule1 = struct {
FzOutput uintptr
FnOutput int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:234452:9 */
+} /* sqlite3.c:236219:9 */
-type PorterRule = PorterRule1 /* sqlite3.c:234452:27 */
+type PorterRule = PorterRule1 /* sqlite3.c:236219: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 { /* sqlite3.c:236254: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 { /* sqlite3.c:236260:12: */
var i int32
var bCons int32 = bPrevCons
@@ -191198,12 +192622,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 { /* sqlite3.c:236277: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 { /* sqlite3.c:236282:12: */
var n int32
n = fts5PorterGobbleVC(tls, zStem, nStem, 0)
if n != 0 && fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) != 0 {
@@ -191213,7 +192637,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 { /* sqlite3.c:236292:12: */
var n int32
n = fts5PorterGobbleVC(tls, zStem, nStem, 0)
if n != 0 && 0 == fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) {
@@ -191223,7 +192647,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 { /* sqlite3.c:236302: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 {
@@ -191241,14 +192665,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 { /* sqlite3.c:236319: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 { /* sqlite3.c:236326:12: */
var i int32
for i = 0; i < nStem; i++ {
if fts5PorterIsVowel(tls, *(*int8)(unsafe.Pointer(zStem + uintptr(i))), libc.Bool32(i > 0)) != 0 {
@@ -191263,13 +192687,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 { /* sqlite3.c:236342: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+36738, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36826, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -191277,11 +192701,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'c':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36741, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36829, 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+36746, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else 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
}
@@ -191289,7 +192713,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'e':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36751, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36839, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -191297,7 +192721,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'i':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36754, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36842, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -191305,11 +192729,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'l':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36757, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36845, 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+36762, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36850, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -191317,19 +192741,19 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'n':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36767, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36855, 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+36771, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36859, 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+36777, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36865, 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+36782, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else 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
}
@@ -191337,11 +192761,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'o':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36786, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36874, 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+36790, aBuf+uintptr(nBuf-2), uint64(2)) {
+ } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36878, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -191349,7 +192773,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 's':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36793, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36881, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191357,11 +192781,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 't':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36797, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36885, 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+36801, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36889, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191369,7 +192793,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'u':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36805, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36893, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191377,7 +192801,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'v':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36809, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36897, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191385,7 +192809,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'z':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36813, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36901, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191396,30 +192820,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 { /* sqlite3.c:236476: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+36817, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36797, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36905, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36885, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
break
case 'b':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36820, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36823, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36908, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36911, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
break
case 'i':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36827, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36813, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36915, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36901, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
@@ -191429,143 +192853,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 { /* sqlite3.c:236510: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+36830, aBuf+uintptr(nBuf-7), uint64(7)) {
+ if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36918, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36797, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36885, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36838, aBuf+uintptr(nBuf-6), uint64(6)) {
+ } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36926, aBuf+uintptr(nBuf-6), uint64(6)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36845, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36933, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 4
}
}
break
case 'c':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36850, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36938, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36746, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36834, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4
}
- } 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+36943, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36741, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36829, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4
}
}
break
case 'e':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36860, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36948, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36813, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36901, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 'g':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36865, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36953, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+15347, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+15379, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 'l':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36870, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36958, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36823, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36911, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 3
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36874, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36962, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36738, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36826, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36879, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36967, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36782, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36870, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36885, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36973, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36889, uint64(1))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36977, uint64(1))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 1
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36891, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36979, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36805, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36893, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
}
break
case 'o':
- if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36897, aBuf+uintptr(nBuf-7), uint64(7)) {
+ if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36985, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36813, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36901, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36905, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else 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+36797, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36885, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36911, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36999, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36797, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36885, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 's':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36916, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37004, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36738, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36826, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36922, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37010, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36809, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36897, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36930, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37018, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36938, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+37026, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36942, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37030, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36805, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36893, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
}
break
case 't':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36950, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37038, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36738, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36826, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36956, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37044, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36809, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36897, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36962, aBuf+uintptr(nBuf-6), uint64(6)) {
+ } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+37050, aBuf+uintptr(nBuf-6), uint64(6)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36823, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36911, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 3
}
}
@@ -191575,22 +192999,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 { /* sqlite3.c:236657: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+36969, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37057, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36754, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36842, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2
}
}
break
case 's':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36974, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37062, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -191598,21 +193022,21 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 't':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36979, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37067, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36754, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36842, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36985, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37073, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36754, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36842, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
}
break
case 'u':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36938, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37026, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -191620,7 +193044,7 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'v':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36991, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37079, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5
}
@@ -191628,9 +193052,9 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'z':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36997, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37085, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36738, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36826, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
}
@@ -191640,18 +193064,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 { /* sqlite3.c:236723: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+37003, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37091, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+37007, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+37095, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 2
}
- } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+37010, aBuf+uintptr(nBuf-2), uint64(2)) {
+ } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+37098, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_Vowel(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
ret = 1
@@ -191660,7 +193084,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sql
break
case 'n':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37013, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37101, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_Vowel(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
ret = 1
@@ -191677,7 +193101,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) { /* sqlite3.c:236760: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' {
@@ -191693,7 +193117,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 { /* sqlite3.c:236778:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -191791,7 +193215,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 { /* sqlite3.c:236847:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -191812,20 +193236,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 } /* sqlite3.c:236867:9 */
// *************************************************************************
//
// Start of trigram implementation.
-type TrigramTokenizer = TrigramTokenizer1 /* sqlite3.c:235100:33 */
+type TrigramTokenizer = TrigramTokenizer1 /* sqlite3.c:236867:33 */
// Free a trigram tokenizer.
-func fts5TriDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:235108:13: */
+func fts5TriDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:236875: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 { /* sqlite3.c:236882:12: */
var rc int32 = SQLITE_OK
var pNew uintptr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(TrigramTokenizer{})))
_ = pUnused
@@ -191836,7 +193260,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+37017) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+37105) {
if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = SQLITE_ERROR
} else {
@@ -191856,7 +193280,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 { /* sqlite3.c:236920:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -192009,7 +193433,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 { /* sqlite3.c:236980:12: */
if xCreate == *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{fts5TriCreate})) {
@@ -192023,27 +193447,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 { /* sqlite3.c:236994:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
*(*[4]BuiltinTokenizer)(unsafe.Pointer(bp /* aBuiltin */)) = [4]BuiltinTokenizer{
- {FzName: ts + 36728, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 36816, 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 + 37032, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 37120, 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 + 37038, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 37126, 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 + 37045, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 37133, 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
@@ -192069,7 +193493,7 @@ func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:
type BuiltinTokenizer = struct {
FzName uintptr
Fx Fts5_tokenizer
-} /* sqlite3.c:235228:3 */
+} /* sqlite3.c:236995:3 */
// 2012-05-25
//
@@ -192092,7 +193516,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 { /* sqlite3.c:237050:12: */
bp := tls.Alloc(378)
defer tls.Free(378)
@@ -192163,7 +193587,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 { /* sqlite3.c:237117:12: */
var mask0 uint32 = uint32(0x08029FDF)
var mask1 uint32 = uint32(0x000361F8)
if c < 768 || c > 817 {
@@ -192182,7 +193606,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 { /* sqlite3.c:237136:12: */
var ret int32 = c
@@ -192243,7 +193667,7 @@ type TableEntry = struct {
FiCode uint16
Fflags uint8
FnRange uint8
-} /* sqlite3.c:235387:16 */
+} /* sqlite3.c:237154: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)},
@@ -192301,7 +193725,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 */
+} /* sqlite3.c:237158: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),
@@ -192313,9 +193737,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 */
+} /* sqlite3.c:237215: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 { /* sqlite3.c:237272:12: */
*(*U8)(unsafe.Pointer(aArray)) = U8(1)
switch int32(*(*int8)(unsafe.Pointer(zCat))) {
case 'C':
@@ -192512,7 +193936,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 */
+} /* sqlite3.c:237390: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),
@@ -192691,7 +194115,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 */
+} /* sqlite3.c:237394: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),
@@ -192870,9 +194294,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 */
+} /* sqlite3.c:237573:12 */
-func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* sqlite3.c:235986:12: */
+func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* sqlite3.c:237753:12: */
var iRes int32 = -1
var iHi int32
var iLo int32
@@ -192912,7 +194336,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) { /* sqlite3.c:237784:13: */
var i int32 = 0
var iTbl int32 = 0
for i < 128 {
@@ -192944,7 +194368,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 { /* sqlite3.c:237822:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -193019,7 +194443,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 { /* sqlite3.c:237900:11: */
var a U32
var b U32
var s U32
@@ -193195,7 +194619,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 { /* sqlite3.c:238094:26: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -193214,7 +194638,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
}
@@ -193241,7 +194665,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 { /* sqlite3.c:238119:12: */
if v <= uint64(0x7f) {
*(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f))
return 1
@@ -193254,7 +194678,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 { /* sqlite3.c:238133:12: */
if iVal < U32(int32(1)<<14) {
return 2
@@ -193314,7 +194738,7 @@ type Fts5VocabTable1 = struct {
FpGlobal uintptr
FeType int32
FbBusy uint32
-} /* sqlite3.c:236419:9 */
+} /* sqlite3.c:238186:9 */
// 2015 May 08
//
@@ -193354,7 +194778,7 @@ type Fts5VocabTable1 = struct {
// #include "fts5Int.h"
-type Fts5VocabTable = Fts5VocabTable1 /* sqlite3.c:236419:31 */
+type Fts5VocabTable = Fts5VocabTable1 /* sqlite3.c:238186:31 */
type Fts5VocabCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpStmt uintptr
@@ -193375,9 +194799,9 @@ type Fts5VocabCursor1 = struct {
FiInstPos I64
FiInstOff int32
F__ccgo_pad4 [4]byte
-} /* sqlite3.c:236420:9 */
+} /* sqlite3.c:238187:9 */
-type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:236420:32 */
+type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:238187:32 */
// Bits for the mask used as the idxNum value by xBestIndex/xFilter.
@@ -193385,7 +194809,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 { /* sqlite3.c:238247:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -193393,14 +194817,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+37053) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, ts+37141) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL
- } else if Xsqlite3_stricmp(tls, zCopy, ts+37057) == 0 {
+ } else if Xsqlite3_stricmp(tls, zCopy, ts+37145) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_ROW
- } else if Xsqlite3_stricmp(tls, zCopy, ts+37061) == 0 {
+ } else if Xsqlite3_stricmp(tls, zCopy, ts+37149) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_INSTANCE
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37070, libc.VaList(bp, zCopy))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37158, libc.VaList(bp, zCopy))
*(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = SQLITE_ERROR
}
Xsqlite3_free(tls, zCopy)
@@ -193410,14 +194834,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 { /* sqlite3.c:238276: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 { /* sqlite3.c:238285:12: */
var pTab uintptr = pVtab
Xsqlite3_free(tls, pTab)
return SQLITE_OK
@@ -193442,24 +194866,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 { /* sqlite3.c:238312:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
*(*[3]uintptr)(unsafe.Pointer(bp + 8 /* azSchema */)) = [3]uintptr{
- ts + 37104,
- ts + 37144,
- ts + 37179,
+ ts + 37192,
+ ts + 37232,
+ ts + 37267,
}
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+23091, *(*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+23166, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0)
if argc != 5 && bDb == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37222, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37310, 0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_ERROR
} else {
var nByte int32 // Bytes of space to allocate
@@ -193512,11 +194936,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 { /* sqlite3.c:238374: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 { /* sqlite3.c:238384:12: */
return fts5VocabInitVtab(tls, db, pAux, argc, argv, ppVtab, pzErr)
}
@@ -193530,7 +194954,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 { /* sqlite3.c:238407:12: */
var i int32
var iTermEq int32 = -1
var iTermGe int32 = -1
@@ -193598,7 +195022,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 { /* sqlite3.c:238469:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -193611,11 +195035,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+37255, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ ts+37343, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
return SQLITE_ERROR
}
zSql = sqlite3Fts5Mprintf(tls, bp+64,
- ts+37286,
+ ts+37374,
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))
@@ -193639,7 +195063,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+37337, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ ts+37425, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = SQLITE_ERROR
}
} else {
@@ -193665,7 +195089,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) { /* sqlite3.c:238537:13: */
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).Frowid = int64(0)
sqlite3Fts5IterClose(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpIter)
sqlite3Fts5StructureRelease(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpStruct)
@@ -193679,7 +195103,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 { /* sqlite3.c:238553:12: */
var pCsr uintptr = pCursor
fts5VocabResetCursor(tls, pCsr)
sqlite3Fts5BufferFree(tls, pCsr+96)
@@ -193688,7 +195112,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 { /* sqlite3.c:238562:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -193719,7 +195143,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 { /* sqlite3.c:238584: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
@@ -193748,7 +195172,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 { /* sqlite3.c:238616:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -193892,7 +195316,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 { /* sqlite3.c:238744:12: */
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pCsr uintptr = pCursor
var eType int32 = (*Fts5VocabTable)(unsafe.Pointer(pTab)).FeType
@@ -193933,7 +195357,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 + 1565 /* "" */
+ zCopy = ts + 1534 /* "" */
}
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FnLeTerm = Xsqlite3_value_bytes(tls, pLe)
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FzLeTerm = Xsqlite3_malloc(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FnLeTerm+1)
@@ -193966,12 +195390,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 { /* sqlite3.c:238818: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 { /* sqlite3.c:238823: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
@@ -194044,16 +195468,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 { /* sqlite3.c:238895: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 { /* sqlite3.c:238904:12: */
var p uintptr = pGlobal
- return Xsqlite3_create_module_v2(tls, db, ts+37363, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0))
+ return Xsqlite3_create_module_v2(tls, db, ts+37451, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0))
}
var fts5Vocab = Sqlite3_module{
@@ -194070,7 +195494,7 @@ var fts5Vocab = Sqlite3_module{
/* xEof */ FxEof: 0,
/* xColumn */ FxColumn: 0,
/* xRowid */ FxRowid: 0,
-} /* sqlite3.c:237138:31 */
+} /* sqlite3.c:238905:31 */
//************* End of fts5.c ***********************************************
//************* Begin file stmt.c *******************************************
@@ -194097,952 +195521,966 @@ 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 + 37373 /* "2022-01-06 13:25..." */
+func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* sqlite3.c:239245:23: */
+ return ts + 37461 /* "2022-02-22 18:58..." */
}
//************************* 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 // sqlite3.c:21681:51:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aGTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 216 // sqlite3.c:21682:51:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aLTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 204 // sqlite3.c:21680:51:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 0)) = geopolyBBoxStep // sqlite3.c:201910:8:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 8)) = geopolyBBoxFinal // sqlite3.c:201910:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 24)) = renameColumnFunc // sqlite3.c:111037:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 96)) = renameTableFunc // sqlite3.c:111038:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 168)) = renameTableTest // sqlite3.c:111039:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 240)) = dropColumnFunc // sqlite3.c:111040:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 312)) = renameQuotefixFunc // sqlite3.c:111041:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 24)) = versionFunc // sqlite3.c:123237:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 96)) = versionFunc // sqlite3.c:123238:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 168)) = versionFunc // sqlite3.c:123239:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 240)) = versionFunc // sqlite3.c:123240:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 312)) = soundexFunc // sqlite3.c:123244:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 384)) = loadExt // sqlite3.c:123247:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 456)) = loadExt // sqlite3.c:123248:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 528)) = compileoptionusedFunc // sqlite3.c:123254:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 600)) = compileoptiongetFunc // sqlite3.c:123255:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 672)) = versionFunc // sqlite3.c:123257:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 744)) = versionFunc // sqlite3.c:123258:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 816)) = versionFunc // sqlite3.c:123259:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 888)) = versionFunc // sqlite3.c:123261:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 960)) = trimFunc // sqlite3.c:123264:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1032)) = trimFunc // sqlite3.c:123265:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1104)) = trimFunc // sqlite3.c:123266:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1176)) = trimFunc // sqlite3.c:123267:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1248)) = trimFunc // sqlite3.c:123268:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1320)) = trimFunc // sqlite3.c:123269:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1392)) = minmaxFunc // sqlite3.c:123270:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1536)) = minmaxStep // sqlite3.c:123272:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1544)) = minMaxFinalize // sqlite3.c:123272:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1552)) = minMaxValue // sqlite3.c:123272:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1608)) = minmaxFunc // sqlite3.c:123274:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1752)) = minmaxStep // sqlite3.c:123276:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1760)) = minMaxFinalize // sqlite3.c:123276:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1768)) = minMaxValue // sqlite3.c:123276:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1824)) = typeofFunc // sqlite3.c:123278:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1896)) = subtypeFunc // sqlite3.c:123279:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1968)) = lengthFunc // sqlite3.c:123280:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2040)) = instrFunc // sqlite3.c:123281:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2112)) = printfFunc // sqlite3.c:123282:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2184)) = printfFunc // sqlite3.c:123283:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2256)) = unicodeFunc // sqlite3.c:123284:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2328)) = charFunc // sqlite3.c:123285:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2400)) = absFunc // sqlite3.c:123286:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2472)) = roundFunc // sqlite3.c:123288:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2544)) = roundFunc // sqlite3.c:123289:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2616)) = upperFunc // sqlite3.c:123291:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2688)) = lowerFunc // sqlite3.c:123292:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2760)) = hexFunc // sqlite3.c:123293:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2832)) = versionFunc // sqlite3.c:123294:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2904)) = randomFunc // sqlite3.c:123295:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2976)) = randomBlob // sqlite3.c:123296:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3048)) = nullifFunc // sqlite3.c:123297:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3120)) = versionFunc // sqlite3.c:123298:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3192)) = sourceidFunc // sqlite3.c:123299:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3264)) = errlogFunc // sqlite3.c:123300:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3336)) = quoteFunc // sqlite3.c:123301:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3408)) = last_insert_rowid // sqlite3.c:123302:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3480)) = changes // sqlite3.c:123303:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3552)) = total_changes // sqlite3.c:123304:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3624)) = replaceFunc // sqlite3.c:123305:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3696)) = zeroblobFunc // sqlite3.c:123306:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3768)) = substrFunc // sqlite3.c:123307:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3840)) = substrFunc // sqlite3.c:123308:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3912)) = substrFunc // sqlite3.c:123309:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3984)) = substrFunc // sqlite3.c:123310:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4056)) = sumStep // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4064)) = sumFinalize // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4072)) = sumFinalize // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4080)) = sumInverse // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4128)) = sumStep // sqlite3.c:123312:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4136)) = totalFinalize // sqlite3.c:123312:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4144)) = totalFinalize // sqlite3.c:123312:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4152)) = sumInverse // sqlite3.c:123312:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4200)) = sumStep // sqlite3.c:123313:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4208)) = avgFinalize // sqlite3.c:123313:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4216)) = avgFinalize // sqlite3.c:123313:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4224)) = sumInverse // sqlite3.c:123313:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4272)) = countStep // sqlite3.c:123314:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4280)) = countFinalize // sqlite3.c:123314:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4288)) = countFinalize // sqlite3.c:123314:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4296)) = countInverse // sqlite3.c:123314:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4344)) = countStep // sqlite3.c:123317:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4352)) = countFinalize // sqlite3.c:123317:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4360)) = countFinalize // sqlite3.c:123317:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4368)) = countInverse // sqlite3.c:123317:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4416)) = groupConcatStep // sqlite3.c:123319:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4424)) = groupConcatFinalize // sqlite3.c:123319:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4432)) = groupConcatValue // sqlite3.c:123319:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4440)) = groupConcatInverse // sqlite3.c:123319:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4488)) = groupConcatStep // sqlite3.c:123321:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4496)) = groupConcatFinalize // sqlite3.c:123321:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4504)) = groupConcatValue // sqlite3.c:123321:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4512)) = groupConcatInverse // sqlite3.c:123321:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4544 /* .pUserData */)) = uintptr(unsafe.Pointer(&globInfo)) // sqlite3.c:123324:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4560)) = likeFunc // sqlite3.c:123324:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4616 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // sqlite3.c:123329:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4632)) = likeFunc // sqlite3.c:123329:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4688 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // sqlite3.c:123330:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4704)) = likeFunc // sqlite3.c:123330:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4904)) = xCeil // sqlite3.c:123338:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4920)) = ceilingFunc // sqlite3.c:123338:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4976)) = xCeil // sqlite3.c:123339:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4992)) = ceilingFunc // sqlite3.c:123339:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5048)) = xFloor // sqlite3.c:123340:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5064)) = ceilingFunc // sqlite3.c:123340:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5120)) = libc.Xtrunc // sqlite3.c:123342:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5136)) = ceilingFunc // sqlite3.c:123342:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5208)) = logFunc // sqlite3.c:123344:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5280)) = logFunc // sqlite3.c:123345:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5352)) = logFunc // sqlite3.c:123346:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5424)) = logFunc // sqlite3.c:123347:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5496)) = logFunc // sqlite3.c:123348:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5552)) = libc.Xexp // sqlite3.c:123349:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5568)) = math1Func // sqlite3.c:123349:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5624)) = libc.Xpow // sqlite3.c:123350:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5640)) = math2Func // sqlite3.c:123350:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5696)) = libc.Xpow // sqlite3.c:123351:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5712)) = math2Func // sqlite3.c:123351:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5768)) = libc.Xfmod // sqlite3.c:123352:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5784)) = math2Func // sqlite3.c:123352:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5840)) = libc.Xacos // sqlite3.c:123353:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5856)) = math1Func // sqlite3.c:123353:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5912)) = libc.Xasin // sqlite3.c:123354:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5928)) = math1Func // sqlite3.c:123354:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5984)) = libc.Xatan // sqlite3.c:123355:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6000)) = math1Func // sqlite3.c:123355:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6056)) = libc.Xatan2 // sqlite3.c:123356:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6072)) = math2Func // sqlite3.c:123356:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6128)) = libc.Xcos // sqlite3.c:123357:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6144)) = math1Func // sqlite3.c:123357:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6200)) = libc.Xsin // sqlite3.c:123358:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6216)) = math1Func // sqlite3.c:123358:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6272)) = libc.Xtan // sqlite3.c:123359:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6288)) = math1Func // sqlite3.c:123359:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6344)) = libc.Xcosh // sqlite3.c:123360:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6360)) = math1Func // sqlite3.c:123360:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6416)) = libc.Xsinh // sqlite3.c:123361:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6432)) = math1Func // sqlite3.c:123361:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6488)) = libc.Xtanh // sqlite3.c:123362:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6504)) = math1Func // sqlite3.c:123362:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6560)) = libc.Xacosh // sqlite3.c:123364:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6576)) = math1Func // sqlite3.c:123364:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6632)) = libc.Xasinh // sqlite3.c:123365:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6648)) = math1Func // sqlite3.c:123365:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6704)) = libc.Xatanh // sqlite3.c:123366:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6720)) = math1Func // sqlite3.c:123366:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6776)) = libc.Xsqrt // sqlite3.c:123368:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6792)) = math1Func // sqlite3.c:123368:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6848)) = degToRad // sqlite3.c:123369:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6864)) = math1Func // sqlite3.c:123369:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6920)) = radToDeg // sqlite3.c:123370:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6936)) = math1Func // sqlite3.c:123370:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7008)) = piFunc // sqlite3.c:123371:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7080)) = signFunc // sqlite3.c:123373:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7152)) = versionFunc // sqlite3.c:123374:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7224)) = versionFunc // sqlite3.c:123375:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 8 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24393:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 24)) = juliandayFunc // sqlite3.c:24393:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 80 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24394:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 96)) = unixepochFunc // sqlite3.c:24394:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 152 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24395:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 168)) = dateFunc // sqlite3.c:24395:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 224 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24396:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 240)) = timeFunc // sqlite3.c:24396:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 296 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24397:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 312)) = datetimeFunc // sqlite3.c:24397:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 368 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24398:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 384)) = strftimeFunc // sqlite3.c:24398:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 456)) = ctimeFunc // sqlite3.c:24399:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 528)) = ctimestampFunc // sqlite3.c:24400:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 600)) = cdateFunc // sqlite3.c:24401:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 0)) = geopolyAreaFunc // sqlite3.c:201892:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 24)) = geopolyBlobFunc // sqlite3.c:201893:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 48)) = geopolyJsonFunc // sqlite3.c:201894:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 72)) = geopolySvgFunc // sqlite3.c:201895:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 96)) = geopolyWithinFunc // sqlite3.c:201896:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 120)) = geopolyContainsPointFunc // sqlite3.c:201897:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 144)) = geopolyOverlapFunc // sqlite3.c:201898:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 168)) = geopolyDebugFunc // sqlite3.c:201899:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 192)) = geopolyBBoxFunc // sqlite3.c:201900:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 216)) = geopolyXformFunc // sqlite3.c:201901:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 240)) = geopolyRegularFunc // sqlite3.c:201902:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 264)) = geopolyCcwFunc // sqlite3.c:201903:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 24)) = jsonRemoveFunc // sqlite3.c:195661:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 96)) = jsonArrayFunc // sqlite3.c:195662:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 168)) = jsonArrayLengthFunc // sqlite3.c:195663:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 240)) = jsonArrayLengthFunc // sqlite3.c:195664:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 312)) = jsonExtractFunc // sqlite3.c:195665:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 384)) = jsonExtractFunc // sqlite3.c:195666:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 456)) = jsonExtractFunc // sqlite3.c:195667:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 528)) = jsonSetFunc // sqlite3.c:195668:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 600)) = jsonObjectFunc // sqlite3.c:195669:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 672)) = jsonPatchFunc // sqlite3.c:195670:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 744)) = jsonQuoteFunc // sqlite3.c:195671:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 816)) = jsonRemoveFunc // sqlite3.c:195672:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 888)) = jsonReplaceFunc // sqlite3.c:195673:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 960)) = jsonSetFunc // sqlite3.c:195674:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1032)) = jsonTypeFunc // sqlite3.c:195675:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1104)) = jsonTypeFunc // sqlite3.c:195676:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1176)) = jsonValidFunc // sqlite3.c:195677:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1248)) = jsonArrayStep // sqlite3.c:195682:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1256)) = jsonArrayFinal // sqlite3.c:195682:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1264)) = jsonArrayValue // sqlite3.c:195682:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1272)) = jsonGroupInverse // sqlite3.c:195682:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1320)) = jsonObjectStep // sqlite3.c:195685:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1328)) = jsonObjectFinal // sqlite3.c:195685:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1336)) = jsonObjectValue // sqlite3.c:195685:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1344)) = jsonGroupInverse // sqlite3.c:195685:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 8 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonEachModule)) // sqlite3.c:195703:31:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 24 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonTreeModule)) // sqlite3.c:195704: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})) // sqlite3.c:35161: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:35164: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})) // sqlite3.c:35167: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})) // sqlite3.c:35170: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})) // sqlite3.c:35173: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})) // sqlite3.c:35186:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 152 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, int32, X__off64_t) int32
- }{libc.Xftruncate})) // sqlite3.c:34654:21:
+ }{libc.Xftruncate})) // sqlite3.c:35190: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})) // sqlite3.c:35193: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})) // sqlite3.c:35196: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})) // sqlite3.c:35213: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})) // sqlite3.c:35232: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})) // sqlite3.c:35242: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})) // sqlite3.c:35245: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})) // sqlite3.c:35248: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})) // sqlite3.c:35251: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})) // sqlite3.c:35255: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:35262: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__off64_t) uintptr
- }{libc.Xmmap})) // sqlite3.c:34733:21:
+ }{libc.Xmmap})) // sqlite3.c:35269: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:
+ }{libc.Xmunmap})) // sqlite3.c:35276:21:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 584 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, Size_t, Size_t, int32, uintptr) uintptr
- }{libc.Xmremap})) // sqlite3.c:34747: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.Xmremap})) // sqlite3.c:35283:21:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 608 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{unixGetpagesize})) // sqlite3.c:35290: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})) // sqlite3.c:35297: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})) // sqlite3.c:35304:22:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 40)) = unixOpen // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 48)) = unixDelete // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 56)) = unixAccess // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 64)) = unixFullPathname // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 72)) = unixDlOpen // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 80)) = unixDlError // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 88)) = unixDlSym // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 96)) = unixDlClose // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 104)) = unixRandomness // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 112)) = unixSleep // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 120)) = unixCurrentTime // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 128)) = unixGetLastError // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 136)) = unixCurrentTimeInt64 // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 144)) = unixSetSystemCall // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 152)) = unixGetSystemCall // sqlite3.c:42833:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 160)) = unixNextSystemCall // sqlite3.c:42833:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 200 /* .pAppData */)) = uintptr(unsafe.Pointer(&nolockIoFinder)) // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 208)) = unixOpen // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 216)) = unixDelete // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 224)) = unixAccess // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 232)) = unixFullPathname // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 240)) = unixDlOpen // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 248)) = unixDlError // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 256)) = unixDlSym // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 264)) = unixDlClose // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 272)) = unixRandomness // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 280)) = unixSleep // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 288)) = unixCurrentTime // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 296)) = unixGetLastError // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 304)) = unixCurrentTimeInt64 // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 312)) = unixSetSystemCall // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 320)) = unixGetSystemCall // sqlite3.c:42835:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 328)) = unixNextSystemCall // sqlite3.c:42835:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 368 /* .pAppData */)) = uintptr(unsafe.Pointer(&dotlockIoFinder)) // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 376)) = unixOpen // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 384)) = unixDelete // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 392)) = unixAccess // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 400)) = unixFullPathname // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 408)) = unixDlOpen // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 416)) = unixDlError // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 424)) = unixDlSym // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 432)) = unixDlClose // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 440)) = unixRandomness // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 448)) = unixSleep // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 456)) = unixCurrentTime // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 464)) = unixGetLastError // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 472)) = unixCurrentTimeInt64 // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 480)) = unixSetSystemCall // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 488)) = unixGetSystemCall // sqlite3.c:42836:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 496)) = unixNextSystemCall // sqlite3.c:42836:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 536 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 544)) = unixOpen // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 552)) = unixDelete // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 560)) = unixAccess // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 568)) = unixFullPathname // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 576)) = unixDlOpen // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 584)) = unixDlError // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 592)) = unixDlSym // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 600)) = unixDlClose // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 608)) = unixRandomness // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 616)) = unixSleep // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 624)) = unixCurrentTime // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 632)) = unixGetLastError // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 640)) = unixCurrentTimeInt64 // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 648)) = unixSetSystemCall // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 656)) = unixGetSystemCall // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 664)) = unixNextSystemCall // sqlite3.c:42837:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 24)) = row_numberStepFunc // sqlite3.c:158726:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 32)) = row_numberValueFunc // sqlite3.c:158726:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 40)) = row_numberValueFunc // sqlite3.c:158726:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 48)) = noopStepFunc // sqlite3.c:158726:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 56 /* .zName */)) = uintptr(unsafe.Pointer(&row_numberName)) // sqlite3.c:158726:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 96)) = dense_rankStepFunc // sqlite3.c:158727:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 104)) = dense_rankValueFunc // sqlite3.c:158727:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 112)) = dense_rankValueFunc // sqlite3.c:158727:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 120)) = noopStepFunc // sqlite3.c:158727:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 128 /* .zName */)) = uintptr(unsafe.Pointer(&dense_rankName)) // sqlite3.c:158727:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 168)) = rankStepFunc // sqlite3.c:158728:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 176)) = rankValueFunc // sqlite3.c:158728:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 184)) = rankValueFunc // sqlite3.c:158728:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 192)) = noopStepFunc // sqlite3.c:158728:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 200 /* .zName */)) = uintptr(unsafe.Pointer(&rankName)) // sqlite3.c:158728:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 240)) = percent_rankStepFunc // sqlite3.c:158729:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 248)) = percent_rankValueFunc // sqlite3.c:158729:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 256)) = percent_rankValueFunc // sqlite3.c:158729:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 264)) = percent_rankInvFunc // sqlite3.c:158729:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 272 /* .zName */)) = uintptr(unsafe.Pointer(&percent_rankName)) // sqlite3.c:158729:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 312)) = cume_distStepFunc // sqlite3.c:158730:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 320)) = cume_distValueFunc // sqlite3.c:158730:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 328)) = cume_distValueFunc // sqlite3.c:158730:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 336)) = cume_distInvFunc // sqlite3.c:158730:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 344 /* .zName */)) = uintptr(unsafe.Pointer(&cume_distName)) // sqlite3.c:158730:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 384)) = ntileStepFunc // sqlite3.c:158731:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 392)) = ntileValueFunc // sqlite3.c:158731:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 400)) = ntileValueFunc // sqlite3.c:158731:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 408)) = ntileInvFunc // sqlite3.c:158731:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 416 /* .zName */)) = uintptr(unsafe.Pointer(&ntileName)) // sqlite3.c:158731:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 456)) = last_valueStepFunc // sqlite3.c:158732:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 464)) = last_valueFinalizeFunc // sqlite3.c:158732:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 472)) = last_valueValueFunc // sqlite3.c:158732:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 480)) = last_valueInvFunc // sqlite3.c:158732:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 488 /* .zName */)) = uintptr(unsafe.Pointer(&last_valueName)) // sqlite3.c:158732:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 528)) = nth_valueStepFunc // sqlite3.c:158733:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 536)) = nth_valueFinalizeFunc // sqlite3.c:158733:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 544)) = noopValueFunc // sqlite3.c:158733:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 552)) = noopStepFunc // sqlite3.c:158733:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 560 /* .zName */)) = uintptr(unsafe.Pointer(&nth_valueName)) // sqlite3.c:158733:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 600)) = first_valueStepFunc // sqlite3.c:158734:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 608)) = first_valueFinalizeFunc // sqlite3.c:158734:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 616)) = noopValueFunc // sqlite3.c:158734:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 624)) = noopStepFunc // sqlite3.c:158734:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 632 /* .zName */)) = uintptr(unsafe.Pointer(&first_valueName)) // sqlite3.c:158734:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 672)) = noopStepFunc // sqlite3.c:158735:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 680)) = noopValueFunc // sqlite3.c:158735:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 688)) = noopValueFunc // sqlite3.c:158735:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 696)) = noopStepFunc // sqlite3.c:158735:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 704 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:158735:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 744)) = noopStepFunc // sqlite3.c:158736:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 752)) = noopValueFunc // sqlite3.c:158736:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 760)) = noopValueFunc // sqlite3.c:158736:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 768)) = noopStepFunc // sqlite3.c:158736:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 776 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:158736:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 816)) = noopStepFunc // sqlite3.c:158737:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 824)) = noopValueFunc // sqlite3.c:158737:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 832)) = noopValueFunc // sqlite3.c:158737:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 840)) = noopStepFunc // sqlite3.c:158737:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 848 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:158737:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 888)) = noopStepFunc // sqlite3.c:158738:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 896)) = noopValueFunc // sqlite3.c:158738:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 904)) = noopValueFunc // sqlite3.c:158738:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 912)) = noopStepFunc // sqlite3.c:158738:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 920 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:158738:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 960)) = noopStepFunc // sqlite3.c:158739:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 968)) = noopValueFunc // sqlite3.c:158739:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 976)) = noopValueFunc // sqlite3.c:158739:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 984)) = noopStepFunc // sqlite3.c:158739:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 992 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:158739:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1032)) = noopStepFunc // sqlite3.c:158740:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1040)) = noopValueFunc // sqlite3.c:158740:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1048)) = noopValueFunc // sqlite3.c:158740:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1056)) = noopStepFunc // sqlite3.c:158740:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1064 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:158740:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&attach_func)) + 24)) = attachFunc // sqlite3.c:113408:5:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 0)) = sqlite3MemMalloc // sqlite3.c:25290:6:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 8)) = sqlite3MemFree // sqlite3.c:25291:6:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 16)) = sqlite3MemRealloc // sqlite3.c:25292:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 24)) = sqlite3MemSize // sqlite3.c:25293:6:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 32)) = sqlite3MemRoundup // sqlite3.c:25294:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 40)) = sqlite3MemInit // sqlite3.c:25295:6:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 48)) = sqlite3MemShutdown // sqlite3.c:25296:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 16)) = pcache1Init // sqlite3.c:52443:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 24)) = pcache1Shutdown // sqlite3.c:52444:5:
+ *(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 32)) = pcache1Create // sqlite3.c:52445:5:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 40)) = pcache1Cachesize // sqlite3.c:52446:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 48)) = pcache1Pagecount // sqlite3.c:52447:5:
+ *(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 56)) = pcache1Fetch // sqlite3.c:52448:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 64)) = pcache1Unpin // sqlite3.c:52449:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 72)) = pcache1Rekey // sqlite3.c:52450:5:
+ *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 80)) = pcache1Truncate // sqlite3.c:52451:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 88)) = pcache1Destroy // sqlite3.c:52452:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 96)) = pcache1Shrink // sqlite3.c:52453:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&detach_func)) + 24)) = detachFunc // sqlite3.c:113388:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoFinder)) + 0)) = dotlockIoFinderImpl // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 8)) = dotlockClose // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 16)) = unixRead // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 24)) = unixWrite // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 32)) = unixTruncate // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 40)) = unixSync // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 48)) = unixFileSize // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 56)) = dotlockLock // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 64)) = dotlockUnlock // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 72)) = dotlockCheckReservedLock // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 80)) = unixFileControl // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 88)) = unixSectorSize // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 96)) = unixDeviceCharacteristics // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 112)) = unixShmLock // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 120)) = unixShmBarrier // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 128)) = unixShmUnmap // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 136)) = unixFetch // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 144)) = unixUnfetch // sqlite3.c:40193:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 8)) = fts5CreateMethod // sqlite3.c:234324:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 16)) = fts5ConnectMethod // sqlite3.c:234325:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 24)) = fts5BestIndexMethod // sqlite3.c:234326:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 32)) = fts5DisconnectMethod // sqlite3.c:234327:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 40)) = fts5DestroyMethod // sqlite3.c:234328:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 48)) = fts5OpenMethod // sqlite3.c:234329:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 56)) = fts5CloseMethod // sqlite3.c:234330:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 64)) = fts5FilterMethod // sqlite3.c:234331:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 72)) = fts5NextMethod // sqlite3.c:234332:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 80)) = fts5EofMethod // sqlite3.c:234333:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 88)) = fts5ColumnMethod // sqlite3.c:234334:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 96)) = fts5RowidMethod // sqlite3.c:234335:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 104)) = fts5UpdateMethod // sqlite3.c:234336:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 112)) = fts5BeginMethod // sqlite3.c:234337:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 120)) = fts5SyncMethod // sqlite3.c:234338:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 128)) = fts5CommitMethod // sqlite3.c:234339:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 136)) = fts5RollbackMethod // sqlite3.c:234340:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 144)) = fts5FindFunctionMethod // sqlite3.c:234341:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 152)) = fts5RenameMethod // sqlite3.c:234342:25:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 160)) = fts5SavepointMethod // sqlite3.c:234343:25:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 168)) = fts5ReleaseMethod // sqlite3.c:234344:25:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 176)) = fts5RollbackToMethod // sqlite3.c:234345:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 184)) = fts5ShadowName // sqlite3.c:234346:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 8)) = fts5VocabCreateMethod // sqlite3.c:238907:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 16)) = fts5VocabConnectMethod // sqlite3.c:238908:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 24)) = fts5VocabBestIndexMethod // sqlite3.c:238909:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 32)) = fts5VocabDisconnectMethod // sqlite3.c:238910:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 40)) = fts5VocabDestroyMethod // sqlite3.c:238911:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 48)) = fts5VocabOpenMethod // sqlite3.c:238912:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 56)) = fts5VocabCloseMethod // sqlite3.c:238913:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 64)) = fts5VocabFilterMethod // sqlite3.c:238914:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 72)) = fts5VocabNextMethod // sqlite3.c:238915:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 80)) = fts5VocabEofMethod // sqlite3.c:238916:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 88)) = fts5VocabColumnMethod // sqlite3.c:238917:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 96)) = fts5VocabRowidMethod // sqlite3.c:238918:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 8)) = geopolyCreate // sqlite3.c:201859:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 16)) = geopolyConnect // sqlite3.c:201860:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 24)) = geopolyBestIndex // sqlite3.c:201861:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 32)) = rtreeDisconnect // sqlite3.c:201862:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 40)) = rtreeDestroy // sqlite3.c:201863:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 48)) = rtreeOpen // sqlite3.c:201864:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 56)) = rtreeClose // sqlite3.c:201865:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 64)) = geopolyFilter // sqlite3.c:201866:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 72)) = rtreeNext // sqlite3.c:201867:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 80)) = rtreeEof // sqlite3.c:201868:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 88)) = geopolyColumn // sqlite3.c:201869:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 96)) = rtreeRowid // sqlite3.c:201870:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 104)) = geopolyUpdate // sqlite3.c:201871:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 112)) = rtreeBeginTransaction // sqlite3.c:201872:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 120)) = rtreeEndTransaction // sqlite3.c:201873:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 128)) = rtreeEndTransaction // sqlite3.c:201874:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 136)) = rtreeEndTransaction // sqlite3.c:201875:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 144)) = geopolyFindFunction // sqlite3.c:201876:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 152)) = rtreeRename // sqlite3.c:201877:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 160)) = rtreeSavepoint // sqlite3.c:201878:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 184)) = rtreeShadowName // sqlite3.c:201881:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 16)) = jsonEachConnect // sqlite3.c:195601:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 24)) = jsonEachBestIndex // sqlite3.c:195602:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 32)) = jsonEachDisconnect // sqlite3.c:195603:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 48)) = jsonEachOpenEach // sqlite3.c:195605:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 56)) = jsonEachClose // sqlite3.c:195606:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 64)) = jsonEachFilter // sqlite3.c:195607:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 72)) = jsonEachNext // sqlite3.c:195608:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 80)) = jsonEachEof // sqlite3.c:195609:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 88)) = jsonEachColumn // sqlite3.c:195610:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 96)) = jsonEachRowid // sqlite3.c:195611:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 16)) = jsonEachConnect // sqlite3.c:195629:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 24)) = jsonEachBestIndex // sqlite3.c:195630:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 32)) = jsonEachDisconnect // sqlite3.c:195631:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 48)) = jsonEachOpenTree // sqlite3.c:195633:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 56)) = jsonEachClose // sqlite3.c:195634:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 64)) = jsonEachFilter // sqlite3.c:195635:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 72)) = jsonEachNext // sqlite3.c:195636:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 80)) = jsonEachEof // sqlite3.c:195637:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 88)) = jsonEachColumn // sqlite3.c:195638:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 96)) = jsonEachRowid // sqlite3.c:195639:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 8)) = memdbClose // sqlite3.c:49224:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 16)) = memdbRead // sqlite3.c:49225:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 24)) = memdbWrite // sqlite3.c:49226:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 32)) = memdbTruncate // sqlite3.c:49227:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 40)) = memdbSync // sqlite3.c:49228:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 48)) = memdbFileSize // sqlite3.c:49229:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 56)) = memdbLock // sqlite3.c:49230:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 64)) = memdbLock // sqlite3.c:49231:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 80)) = memdbFileControl // sqlite3.c:49233:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 96)) = memdbDeviceCharacteristics // sqlite3.c:49235:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 136)) = memdbFetch // sqlite3.c:49240:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 144)) = memdbUnfetch // sqlite3.c:49241:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 40)) = memdbOpen // sqlite3.c:49204:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 56)) = memdbAccess // sqlite3.c:49206:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 64)) = memdbFullPathname // sqlite3.c:49207:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 72)) = memdbDlOpen // sqlite3.c:49208:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 80)) = memdbDlError // sqlite3.c:49209:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 88)) = memdbDlSym // sqlite3.c:49210:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 96)) = memdbDlClose // sqlite3.c:49211:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 104)) = memdbRandomness // sqlite3.c:49212:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 112)) = memdbSleep // sqlite3.c:49213:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 128)) = memdbGetLastError // sqlite3.c:49215:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 136)) = memdbCurrentTimeInt64 // sqlite3.c:49216:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoFinder)) + 0)) = nolockIoFinderImpl // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 8)) = nolockClose // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 16)) = unixRead // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 24)) = unixWrite // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 32)) = unixTruncate // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 40)) = unixSync // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 48)) = unixFileSize // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 56)) = nolockLock // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 64)) = nolockUnlock // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 72)) = nolockCheckReservedLock // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 80)) = unixFileControl // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 88)) = unixSectorSize // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 96)) = unixDeviceCharacteristics // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 112)) = unixShmLock // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 120)) = unixShmBarrier // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 128)) = unixShmUnmap // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 136)) = unixFetch // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 144)) = unixUnfetch // sqlite3.c:40183:1:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoFinder)) + 0)) = posixIoFinderImpl // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 8)) = unixClose // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 16)) = unixRead // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 24)) = unixWrite // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 32)) = unixTruncate // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 40)) = unixSync // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 48)) = unixFileSize // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 56)) = unixLock // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 64)) = unixUnlock // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 72)) = unixCheckReservedLock // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 80)) = unixFileControl // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 88)) = unixSectorSize // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 96)) = unixDeviceCharacteristics // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 104)) = unixShmMap // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 112)) = unixShmLock // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 120)) = unixShmBarrier // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 128)) = unixShmUnmap // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 136)) = unixFetch // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 144)) = unixUnfetch // sqlite3.c:40173:1:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 16)) = pragmaVtabConnect // sqlite3.c:133072:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 24)) = pragmaVtabBestIndex // sqlite3.c:133073:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 32)) = pragmaVtabDisconnect // sqlite3.c:133074:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 48)) = pragmaVtabOpen // sqlite3.c:133076:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 56)) = pragmaVtabClose // sqlite3.c:133077:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 64)) = pragmaVtabFilter // sqlite3.c:133078:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 72)) = pragmaVtabNext // sqlite3.c:133079:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 80)) = pragmaVtabEof // sqlite3.c:133080:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 88)) = pragmaVtabColumn // sqlite3.c:133081:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 96)) = pragmaVtabRowid // sqlite3.c:133082:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 8)) = rbuVfsClose // sqlite3.c:208556:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 16)) = rbuVfsRead // sqlite3.c:208557:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 24)) = rbuVfsWrite // sqlite3.c:208558:5:
+ *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 32)) = rbuVfsTruncate // sqlite3.c:208559:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 40)) = rbuVfsSync // sqlite3.c:208560:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 48)) = rbuVfsFileSize // sqlite3.c:208561:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 56)) = rbuVfsLock // sqlite3.c:208562:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 64)) = rbuVfsUnlock // sqlite3.c:208563:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 72)) = rbuVfsCheckReservedLock // sqlite3.c:208564:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 80)) = rbuVfsFileControl // sqlite3.c:208565:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 88)) = rbuVfsSectorSize // sqlite3.c:208566:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 96)) = rbuVfsDeviceCharacteristics // sqlite3.c:208567:5:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 104)) = rbuVfsShmMap // sqlite3.c:208568:5:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 112)) = rbuVfsShmLock // sqlite3.c:208569:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 120)) = rbuVfsShmBarrier // sqlite3.c:208570:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 128)) = rbuVfsShmUnmap // sqlite3.c:208571:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 8)) = rtreeCreate // sqlite3.c:199197:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 16)) = rtreeConnect // sqlite3.c:199198:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 24)) = rtreeBestIndex // sqlite3.c:199199:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 32)) = rtreeDisconnect // sqlite3.c:199200:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 40)) = rtreeDestroy // sqlite3.c:199201:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 48)) = rtreeOpen // sqlite3.c:199202:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 56)) = rtreeClose // sqlite3.c:199203:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 64)) = rtreeFilter // sqlite3.c:199204:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 72)) = rtreeNext // sqlite3.c:199205:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 80)) = rtreeEof // sqlite3.c:199206:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 88)) = rtreeColumn // sqlite3.c:199207:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 96)) = rtreeRowid // sqlite3.c:199208:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 104)) = rtreeUpdate // sqlite3.c:199209:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 112)) = rtreeBeginTransaction // sqlite3.c:199210:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 120)) = rtreeEndTransaction // sqlite3.c:199211:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 128)) = rtreeEndTransaction // sqlite3.c:199212:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 136)) = rtreeEndTransaction // sqlite3.c:199213:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 152)) = rtreeRename // sqlite3.c:199215:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 160)) = rtreeSavepoint // sqlite3.c:199216:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 184)) = rtreeShadowName // sqlite3.c:199219:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 8)) = fts5ApiUserData // sqlite3.c:233783:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 16)) = fts5ApiColumnCount // sqlite3.c:233784:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 24)) = fts5ApiRowCount // sqlite3.c:233785:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 32)) = fts5ApiColumnTotalSize // sqlite3.c:233786:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 40)) = fts5ApiTokenize // sqlite3.c:233787:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 48)) = fts5ApiPhraseCount // sqlite3.c:233788:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 56)) = fts5ApiPhraseSize // sqlite3.c:233789:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 64)) = fts5ApiInstCount // sqlite3.c:233790:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 72)) = fts5ApiInst // sqlite3.c:233791:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 80)) = fts5ApiRowid // sqlite3.c:233792:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 88)) = fts5ApiColumnText // sqlite3.c:233793:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 96)) = fts5ApiColumnSize // sqlite3.c:233794:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 104)) = fts5ApiQueryPhrase // sqlite3.c:233795:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 112)) = fts5ApiSetAuxdata // sqlite3.c:233796:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 120)) = fts5ApiGetAuxdata // sqlite3.c:233797:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 128)) = fts5ApiPhraseFirst // sqlite3.c:233798:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 136)) = fts5ApiPhraseNext // sqlite3.c:233799:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 144)) = fts5ApiPhraseFirstColumn // sqlite3.c:233800:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 152)) = fts5ApiPhraseNextColumn // sqlite3.c:233801:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 8)) = memjrnlClose // sqlite3.c:99995:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 16)) = memjrnlRead // sqlite3.c:99996:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 24)) = memjrnlWrite // sqlite3.c:99997:3:
+ *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 32)) = memjrnlTruncate // sqlite3.c:99998:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 40)) = memjrnlSync // sqlite3.c:99999:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 48)) = memjrnlFileSize // sqlite3.c:100000:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 0)) = noopMutexInit // sqlite3.c:27523:5:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 8)) = noopMutexEnd // sqlite3.c:27524:5:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 16)) = noopMutexAlloc // sqlite3.c:27525:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 24)) = noopMutexFree // sqlite3.c:27526:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 32)) = noopMutexEnter // sqlite3.c:27527:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 40)) = noopMutexTry // sqlite3.c:27528:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 48)) = noopMutexLeave // sqlite3.c:27529:5:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 0)) = Xsqlite3_aggregate_context // sqlite3.c:128985:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 8)) = Xsqlite3_aggregate_count // sqlite3.c:128987:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 16)) = Xsqlite3_bind_blob // sqlite3.c:128991:3:
+ *(*func(*libc.TLS, uintptr, int32, float64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 24)) = Xsqlite3_bind_double // sqlite3.c:128992:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 32)) = Xsqlite3_bind_int // sqlite3.c:128993:3:
+ *(*func(*libc.TLS, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 40)) = Xsqlite3_bind_int64 // sqlite3.c:128994:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 48)) = Xsqlite3_bind_null // sqlite3.c:128995:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 56)) = Xsqlite3_bind_parameter_count // sqlite3.c:128996:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 64)) = Xsqlite3_bind_parameter_index // sqlite3.c:128997:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 72)) = Xsqlite3_bind_parameter_name // sqlite3.c:128998:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 80)) = Xsqlite3_bind_text // sqlite3.c:128999:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 88)) = Xsqlite3_bind_text16 // sqlite3.c:129000:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 96)) = Xsqlite3_bind_value // sqlite3.c:129001:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 104)) = Xsqlite3_busy_handler // sqlite3.c:129002:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 112)) = Xsqlite3_busy_timeout // sqlite3.c:129003:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 120)) = Xsqlite3_changes // sqlite3.c:129004:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 128)) = Xsqlite3_close // sqlite3.c:129005:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 136)) = Xsqlite3_collation_needed // sqlite3.c:129006:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 144)) = Xsqlite3_collation_needed16 // sqlite3.c:129007:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 152)) = Xsqlite3_column_blob // sqlite3.c:129008:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 160)) = Xsqlite3_column_bytes // sqlite3.c:129009:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 168)) = Xsqlite3_column_bytes16 // sqlite3.c:129010:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 176)) = Xsqlite3_column_count // sqlite3.c:129011:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 184)) = Xsqlite3_column_database_name // sqlite3.c:129012:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 192)) = Xsqlite3_column_database_name16 // sqlite3.c:129013:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 200)) = Xsqlite3_column_decltype // sqlite3.c:129014:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 208)) = Xsqlite3_column_decltype16 // sqlite3.c:129015:3:
+ *(*func(*libc.TLS, uintptr, int32) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 216)) = Xsqlite3_column_double // sqlite3.c:129016:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 224)) = Xsqlite3_column_int // sqlite3.c:129017:3:
+ *(*func(*libc.TLS, uintptr, int32) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 232)) = Xsqlite3_column_int64 // sqlite3.c:129018:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 240)) = Xsqlite3_column_name // sqlite3.c:129019:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 248)) = Xsqlite3_column_name16 // sqlite3.c:129020:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 256)) = Xsqlite3_column_origin_name // sqlite3.c:129021:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 264)) = Xsqlite3_column_origin_name16 // sqlite3.c:129022:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 272)) = Xsqlite3_column_table_name // sqlite3.c:129023:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 280)) = Xsqlite3_column_table_name16 // sqlite3.c:129024:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 288)) = Xsqlite3_column_text // sqlite3.c:129025:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 296)) = Xsqlite3_column_text16 // sqlite3.c:129026:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 304)) = Xsqlite3_column_type // sqlite3.c:129027:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 312)) = Xsqlite3_column_value // sqlite3.c:129028:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 320)) = Xsqlite3_commit_hook // sqlite3.c:129029:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 328)) = Xsqlite3_complete // sqlite3.c:129030:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 336)) = Xsqlite3_complete16 // sqlite3.c:129031:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 344)) = Xsqlite3_create_collation // sqlite3.c:129032:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 352)) = Xsqlite3_create_collation16 // sqlite3.c:129033: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:129034: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:129035:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 376)) = Xsqlite3_create_module // sqlite3.c:129036:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 384)) = Xsqlite3_data_count // sqlite3.c:129037:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 392)) = Xsqlite3_db_handle // sqlite3.c:129038:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 400)) = Xsqlite3_declare_vtab // sqlite3.c:129039:3:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 408)) = Xsqlite3_enable_shared_cache // sqlite3.c:129040:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 416)) = Xsqlite3_errcode // sqlite3.c:129041:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 424)) = Xsqlite3_errmsg // sqlite3.c:129042:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 432)) = Xsqlite3_errmsg16 // sqlite3.c:129043:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_callback, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 440)) = Xsqlite3_exec // sqlite3.c:129044:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 448)) = Xsqlite3_expired // sqlite3.c:129046:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 456)) = Xsqlite3_finalize // sqlite3.c:129050:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 464)) = Xsqlite3_free // sqlite3.c:129051:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 472)) = Xsqlite3_free_table // sqlite3.c:129052:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 480)) = Xsqlite3_get_autocommit // sqlite3.c:129053:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 488)) = Xsqlite3_get_auxdata // sqlite3.c:129054:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 496)) = Xsqlite3_get_table // sqlite3.c:129055:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 512)) = Xsqlite3_interrupt // sqlite3.c:129057:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 520)) = Xsqlite3_last_insert_rowid // sqlite3.c:129058:3:
+ *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 528)) = Xsqlite3_libversion // sqlite3.c:129059:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 536)) = Xsqlite3_libversion_number // sqlite3.c:129060:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 544)) = Xsqlite3_malloc // sqlite3.c:129061:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 552)) = Xsqlite3_mprintf // sqlite3.c:129062:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 560)) = Xsqlite3_open // sqlite3.c:129063:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 568)) = Xsqlite3_open16 // sqlite3.c:129064:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 576)) = Xsqlite3_prepare // sqlite3.c:129065:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 584)) = Xsqlite3_prepare16 // sqlite3.c:129066:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 592)) = Xsqlite3_profile // sqlite3.c:129067:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 600)) = Xsqlite3_progress_handler // sqlite3.c:129068:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 608)) = Xsqlite3_realloc // sqlite3.c:129069:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 616)) = Xsqlite3_reset // sqlite3.c:129070:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 624)) = Xsqlite3_result_blob // sqlite3.c:129071:3:
+ *(*func(*libc.TLS, uintptr, float64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 632)) = Xsqlite3_result_double // sqlite3.c:129072:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 640)) = Xsqlite3_result_error // sqlite3.c:129073:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 648)) = Xsqlite3_result_error16 // sqlite3.c:129074:3:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 656)) = Xsqlite3_result_int // sqlite3.c:129075:3:
+ *(*func(*libc.TLS, uintptr, I64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 664)) = Xsqlite3_result_int64 // sqlite3.c:129076:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 672)) = Xsqlite3_result_null // sqlite3.c:129077:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 680)) = Xsqlite3_result_text // sqlite3.c:129078:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 688)) = Xsqlite3_result_text16 // sqlite3.c:129079:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 696)) = Xsqlite3_result_text16be // sqlite3.c:129080:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 704)) = Xsqlite3_result_text16le // sqlite3.c:129081:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 712)) = Xsqlite3_result_value // sqlite3.c:129082:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 720)) = Xsqlite3_rollback_hook // sqlite3.c:129083:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 728)) = Xsqlite3_set_authorizer // sqlite3.c:129084:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 736)) = Xsqlite3_set_auxdata // sqlite3.c:129085:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 744)) = Xsqlite3_snprintf // sqlite3.c:129086:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 752)) = Xsqlite3_step // sqlite3.c:129087: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:129088:3:
+ *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 768)) = Xsqlite3_thread_cleanup // sqlite3.c:129090:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 776)) = Xsqlite3_total_changes // sqlite3.c:129094:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 784)) = Xsqlite3_trace // sqlite3.c:129095:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 792)) = Xsqlite3_transfer_bindings // sqlite3.c:129097:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 800)) = Xsqlite3_update_hook // sqlite3.c:129101:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 808)) = Xsqlite3_user_data // sqlite3.c:129102:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 816)) = Xsqlite3_value_blob // sqlite3.c:129103:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 824)) = Xsqlite3_value_bytes // sqlite3.c:129104:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 832)) = Xsqlite3_value_bytes16 // sqlite3.c:129105:3:
+ *(*func(*libc.TLS, uintptr) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 840)) = Xsqlite3_value_double // sqlite3.c:129106:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 848)) = Xsqlite3_value_int // sqlite3.c:129107:3:
+ *(*func(*libc.TLS, uintptr) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 856)) = Xsqlite3_value_int64 // sqlite3.c:129108:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 864)) = Xsqlite3_value_numeric_type // sqlite3.c:129109:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 872)) = Xsqlite3_value_text // sqlite3.c:129110:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 880)) = Xsqlite3_value_text16 // sqlite3.c:129111:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 888)) = Xsqlite3_value_text16be // sqlite3.c:129112:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 896)) = Xsqlite3_value_text16le // sqlite3.c:129113:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 904)) = Xsqlite3_value_type // sqlite3.c:129114:3:
+ *(*func(*libc.TLS, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 912)) = Xsqlite3_vmprintf // sqlite3.c:129115:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 920)) = Xsqlite3_overload_function // sqlite3.c:129124:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 928)) = Xsqlite3_prepare_v2 // sqlite3.c:129129:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 936)) = Xsqlite3_prepare16_v2 // sqlite3.c:129130:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 944)) = Xsqlite3_clear_bindings // sqlite3.c:129131:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 952)) = Xsqlite3_create_module_v2 // sqlite3.c:129136:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 960)) = Xsqlite3_bind_zeroblob // sqlite3.c:129141:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 968)) = Xsqlite3_blob_bytes // sqlite3.c:129142:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 976)) = Xsqlite3_blob_close // sqlite3.c:129143: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:129144:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 992)) = Xsqlite3_blob_read // sqlite3.c:129145:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1000)) = Xsqlite3_blob_write // sqlite3.c:129146:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1008)) = Xsqlite3_create_collation_v2 // sqlite3.c:129147:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1016)) = Xsqlite3_file_control // sqlite3.c:129148:3:
+ *(*func(*libc.TLS, int32) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1024)) = Xsqlite3_memory_highwater // sqlite3.c:129149:3:
+ *(*func(*libc.TLS) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1032)) = Xsqlite3_memory_used // sqlite3.c:129150:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1040)) = Xsqlite3_mutex_alloc // sqlite3.c:129158:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1048)) = Xsqlite3_mutex_enter // sqlite3.c:129159:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1056)) = Xsqlite3_mutex_free // sqlite3.c:129160:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1064)) = Xsqlite3_mutex_leave // sqlite3.c:129161:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1072)) = Xsqlite3_mutex_try // sqlite3.c:129162:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1080)) = Xsqlite3_open_v2 // sqlite3.c:129164:3:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1088)) = Xsqlite3_release_memory // sqlite3.c:129165:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1096)) = Xsqlite3_result_error_nomem // sqlite3.c:129166:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1104)) = Xsqlite3_result_error_toobig // sqlite3.c:129167:3:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1112)) = Xsqlite3_sleep // sqlite3.c:129168:3:
+ *(*func(*libc.TLS, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1120)) = Xsqlite3_soft_heap_limit // sqlite3.c:129169:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1128)) = Xsqlite3_vfs_find // sqlite3.c:129170:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1136)) = Xsqlite3_vfs_register // sqlite3.c:129171:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1144)) = Xsqlite3_vfs_unregister // sqlite3.c:129172:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1152)) = Xsqlite3_threadsafe // sqlite3.c:129177:3:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1160)) = Xsqlite3_result_zeroblob // sqlite3.c:129178:3:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1168)) = Xsqlite3_result_error_code // sqlite3.c:129179:3:
+ *(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1176)) = Xsqlite3_test_control // sqlite3.c:129180:3:
+ *(*func(*libc.TLS, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1184)) = Xsqlite3_randomness // sqlite3.c:129181:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1192)) = Xsqlite3_context_db_handle // sqlite3.c:129182:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1200)) = Xsqlite3_extended_result_codes // sqlite3.c:129187:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1208)) = Xsqlite3_limit // sqlite3.c:129188:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1216)) = Xsqlite3_next_stmt // sqlite3.c:129189:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1224)) = Xsqlite3_sql // sqlite3.c:129190:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1232)) = Xsqlite3_status // sqlite3.c:129191:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1240)) = Xsqlite3_backup_finish // sqlite3.c:129196:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1248)) = Xsqlite3_backup_init // sqlite3.c:129197:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1256)) = Xsqlite3_backup_pagecount // sqlite3.c:129198:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1264)) = Xsqlite3_backup_remaining // sqlite3.c:129199:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1272)) = Xsqlite3_backup_step // sqlite3.c:129200:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1280)) = Xsqlite3_compileoption_get // sqlite3.c:129202:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1288)) = Xsqlite3_compileoption_used // sqlite3.c:129203: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:129208:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1304)) = Xsqlite3_db_config // sqlite3.c:129209:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1312)) = Xsqlite3_db_mutex // sqlite3.c:129210:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1320)) = Xsqlite3_db_status // sqlite3.c:129211:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1328)) = Xsqlite3_extended_errcode // sqlite3.c:129212:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1336)) = Xsqlite3_log // sqlite3.c:129213:3:
+ *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1344)) = Xsqlite3_soft_heap_limit64 // sqlite3.c:129214:3:
+ *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1352)) = Xsqlite3_sourceid // sqlite3.c:129215:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1360)) = Xsqlite3_stmt_status // sqlite3.c:129216:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1368)) = Xsqlite3_strnicmp // sqlite3.c:129217:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1376)) = Xsqlite3_unlock_notify // sqlite3.c:129219:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1384)) = Xsqlite3_wal_autocheckpoint // sqlite3.c:129224:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1392)) = Xsqlite3_wal_checkpoint // sqlite3.c:129225:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1400)) = Xsqlite3_wal_hook // sqlite3.c:129226:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1408)) = Xsqlite3_blob_reopen // sqlite3.c:129232:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1416)) = Xsqlite3_vtab_config // sqlite3.c:129233:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1424)) = Xsqlite3_vtab_on_conflict // sqlite3.c:129234:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1432)) = Xsqlite3_close_v2 // sqlite3.c:129235:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1440)) = Xsqlite3_db_filename // sqlite3.c:129236:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1448)) = Xsqlite3_db_readonly // sqlite3.c:129237:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1456)) = Xsqlite3_db_release_memory // sqlite3.c:129238:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1464)) = Xsqlite3_errstr // sqlite3.c:129239:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1472)) = Xsqlite3_stmt_busy // sqlite3.c:129240:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1480)) = Xsqlite3_stmt_readonly // sqlite3.c:129241:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1488)) = Xsqlite3_stricmp // sqlite3.c:129242:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1496)) = Xsqlite3_uri_boolean // sqlite3.c:129243:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1504)) = Xsqlite3_uri_int64 // sqlite3.c:129244:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1512)) = Xsqlite3_uri_parameter // sqlite3.c:129245:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1520)) = Xsqlite3_vsnprintf // sqlite3.c:129246:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1528)) = Xsqlite3_wal_checkpoint_v2 // sqlite3.c:129247:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1536)) = Xsqlite3_auto_extension // sqlite3.c:129249:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1544)) = Xsqlite3_bind_blob64 // sqlite3.c:129250:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr, uint8) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1552)) = Xsqlite3_bind_text64 // sqlite3.c:129251:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1560)) = Xsqlite3_cancel_auto_extension // sqlite3.c:129252:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1568)) = Xsqlite3_load_extension // sqlite3.c:129253:3:
+ *(*func(*libc.TLS, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1576)) = Xsqlite3_malloc64 // sqlite3.c:129254:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_uint64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1584)) = Xsqlite3_msize // sqlite3.c:129255:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1592)) = Xsqlite3_realloc64 // sqlite3.c:129256:3:
+ *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1600)) = Xsqlite3_reset_auto_extension // sqlite3.c:129257:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1608)) = Xsqlite3_result_blob64 // sqlite3.c:129258:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr, uint8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1616)) = Xsqlite3_result_text64 // sqlite3.c:129259:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1624)) = Xsqlite3_strglob // sqlite3.c:129260: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-10.2.1 20210110\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=0x7fff0000\x00MAX_PAGE_COUNT=1073741823\x00MAX_PAGE_SIZE=65536\x00MAX_SQL_LENGTH=1000000000\x00MAX_TRIGGER_DEPTH=1000\x00MAX_VARIABLE_NUMBER=32766\x00MAX_VDBE_OP=250000000\x00MAX_WORKER_THREADS=8\x00MUTEX_NOOP\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00BINARY\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00local time unavailable\x00second\x00minute\x00hour\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})) // sqlite3.c:129262:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1640)) = Xsqlite3_value_free // sqlite3.c:129263:3:
+ *(*func(*libc.TLS, uintptr, U64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1648)) = Xsqlite3_result_zeroblob64 // sqlite3.c:129264:3:
+ *(*func(*libc.TLS, uintptr, int32, Sqlite3_uint64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1656)) = Xsqlite3_bind_zeroblob64 // sqlite3.c:129265:3:
+ *(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1664)) = Xsqlite3_value_subtype // sqlite3.c:129267:3:
+ *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1672)) = Xsqlite3_result_subtype // sqlite3.c:129268:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1680)) = Xsqlite3_status64 // sqlite3.c:129270:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1688)) = Xsqlite3_strlike // sqlite3.c:129271:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1696)) = Xsqlite3_db_cacheflush // sqlite3.c:129272:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1704)) = Xsqlite3_system_errno // sqlite3.c:129274:3:
+ *(*func(*libc.TLS, uintptr, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1712)) = Xsqlite3_trace_v2 // sqlite3.c:129276:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1720)) = Xsqlite3_expanded_sql // sqlite3.c:129277:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1728)) = Xsqlite3_set_last_insert_rowid // sqlite3.c:129279:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1736)) = Xsqlite3_prepare_v3 // sqlite3.c:129281:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1744)) = Xsqlite3_prepare16_v3 // sqlite3.c:129282:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1752)) = Xsqlite3_bind_pointer // sqlite3.c:129283:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1760)) = Xsqlite3_result_pointer // sqlite3.c:129284:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1768)) = Xsqlite3_value_pointer // sqlite3.c:129285:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1776)) = Xsqlite3_vtab_nochange // sqlite3.c:129287:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1784)) = Xsqlite3_value_nochange // sqlite3.c:129288:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1792)) = Xsqlite3_vtab_collation // sqlite3.c:129289:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1800)) = Xsqlite3_keyword_count // sqlite3.c:129291:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1808)) = Xsqlite3_keyword_name // sqlite3.c:129292:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1816)) = Xsqlite3_keyword_check // sqlite3.c:129293:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1824)) = Xsqlite3_str_new // sqlite3.c:129294:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1832)) = Xsqlite3_str_finish // sqlite3.c:129295:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1840)) = Xsqlite3_str_appendf // sqlite3.c:129296:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Va_list))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1848)) = Xsqlite3_str_vappendf // sqlite3.c:129297:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1856)) = Xsqlite3_str_append // sqlite3.c:129298:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1864)) = Xsqlite3_str_appendall // sqlite3.c:129299:3:
+ *(*func(*libc.TLS, uintptr, int32, int8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1872)) = Xsqlite3_str_appendchar // sqlite3.c:129300:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1880)) = Xsqlite3_str_reset // sqlite3.c:129301:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1888)) = Xsqlite3_str_errcode // sqlite3.c:129302:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1896)) = Xsqlite3_str_length // sqlite3.c:129303:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1904)) = Xsqlite3_str_value // sqlite3.c:129304: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:129306:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1928)) = Xsqlite3_stmt_isexplain // sqlite3.c:129314:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1936)) = Xsqlite3_value_frombind // sqlite3.c:129315:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1944)) = Xsqlite3_drop_modules // sqlite3.c:129318:3:
+ *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1952)) = Xsqlite3_hard_heap_limit64 // sqlite3.c:129323:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1960)) = Xsqlite3_uri_key // sqlite3.c:129324:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1968)) = Xsqlite3_filename_database // sqlite3.c:129325:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1976)) = Xsqlite3_filename_journal // sqlite3.c:129326:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1984)) = Xsqlite3_filename_wal // sqlite3.c:129327:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1992)) = Xsqlite3_create_filename // sqlite3.c:129329:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2000)) = Xsqlite3_free_filename // sqlite3.c:129330:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2008)) = Xsqlite3_database_file_object // sqlite3.c:129331:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2016)) = Xsqlite3_txn_state // sqlite3.c:129333:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2024)) = Xsqlite3_changes64 // sqlite3.c:129335:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2032)) = Xsqlite3_total_changes64 // sqlite3.c:129336:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2040)) = Xsqlite3_autovacuum_pages // sqlite3.c:129338:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2048)) = Xsqlite3_error_offset // sqlite3.c:129340:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2056)) = Xsqlite3_vtab_rhs_value // sqlite3.c:129341:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2064)) = Xsqlite3_vtab_distinct // sqlite3.c:129342:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2072)) = Xsqlite3_vtab_in // sqlite3.c:129343:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2080)) = Xsqlite3_vtab_in_first // sqlite3.c:129344:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2088)) = Xsqlite3_vtab_in_next // sqlite3.c:129345:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 0)) = Xsqlite3Fts5Init // sqlite3.c:168413:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 8)) = Xsqlite3RtreeInit // sqlite3.c:168419:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 16)) = sqlite3TestExtInit // sqlite3.c:168427:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 24)) = Xsqlite3JsonTableFunctions // sqlite3.c:168429:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statGetFuncdef)) + 24)) = statGet // sqlite3.c:111963:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statInitFuncdef)) + 24)) = statInit // sqlite3.c:111539:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statPushFuncdef)) + 24)) = statPush // sqlite3.c:111829:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 40)) = rbuVfsOpen // sqlite3.c:208813:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 48)) = rbuVfsDelete // sqlite3.c:208814:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 56)) = rbuVfsAccess // sqlite3.c:208815:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 64)) = rbuVfsFullPathname // sqlite3.c:208816:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 72)) = rbuVfsDlOpen // sqlite3.c:208819:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 80)) = rbuVfsDlError // sqlite3.c:208820:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 88)) = rbuVfsDlSym // sqlite3.c:208821:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 96)) = rbuVfsDlClose // sqlite3.c:208822:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 104)) = rbuVfsRandomness // sqlite3.c:208827:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 112)) = rbuVfsSleep // sqlite3.c:208828:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 120)) = rbuVfsCurrentTime // sqlite3.c:208829:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 128)) = rbuVfsGetLastError // sqlite3.c:208830:5:
+}
+
+var ts1 = "3.38.0\x00ATOMIC_INTRINSICS=1\x00COMPILER=gcc-10.2.1 20210110\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MMAP_SIZE=0\x00DEFAULT_PAGE_SIZE=4096\x00DEFAULT_PCACHE_INITSZ=20\x00DEFAULT_RECURSIVE_TRIGGERS\x00DEFAULT_SECTOR_SIZE=4096\x00DEFAULT_SYNCHRONOUS=2\x00DEFAULT_WAL_AUTOCHECKPOINT=1000\x00DEFAULT_WAL_SYNCHRONOUS=2\x00DEFAULT_WORKER_THREADS=0\x00ENABLE_COLUMN_METADATA\x00ENABLE_FTS5\x00ENABLE_GEOPOLY\x00ENABLE_MATH_FUNCTIONS\x00ENABLE_MEMORY_MANAGEMENT\x00ENABLE_OFFSET_SQL_FUNC\x00ENABLE_PREUPDATE_HOOK\x00ENABLE_RBU\x00ENABLE_RTREE\x00ENABLE_SESSION\x00ENABLE_SNAPSHOT\x00ENABLE_STAT4\x00ENABLE_UNLOCK_NOTIFY\x00LIKE_DOESNT_MATCH_BLOBS\x00MALLOC_SOFT_LIMIT=1024\x00MAX_ATTACHED=10\x00MAX_COLUMN=2000\x00MAX_COMPOUND_SELECT=500\x00MAX_DEFAULT_PAGE_SIZE=8192\x00MAX_EXPR_DEPTH=1000\x00MAX_FUNCTION_ARG=127\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=1073741823\x00MAX_PAGE_SIZE=65536\x00MAX_SQL_LENGTH=1000000000\x00MAX_TRIGGER_DEPTH=1000\x00MAX_VARIABLE_NUMBER=32766\x00MAX_VDBE_OP=250000000\x00MAX_WORKER_THREADS=8\x00MUTEX_NOOP\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00BINARY\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00local time unavailable\x00second\x00minute\x00hour\x00\x00\x00day\x00\x00\x00\x00month\x00\x00year\x00\x00\x00auto\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x00%02d\x00%06.3f\x00%03d\x00%.16g\x00%lld\x00%04d\x00date\x00time\x00datetime\x00strftime\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x000123456789ABCDEF0123456789abcdef\x00-x0\x00X0\x00%\x00NaN\x00Inf\x00\x00NULL\x00(NULL)\x00.\x00SUBQUERY %u\x00thstndrd\x00922337203685477580\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00SorterNext\x00Prev\x00Next\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00Not\x00IfNot\x00IsNullOrType\x00IfNullRow\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00IdxLE\x00IdxGT\x00IdxLT\x00IdxGE\x00Or\x00And\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00Init\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\x00OpenRead\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenWrite\x00OpenDup\x00BitNot\x00OpenAutoindex\x00OpenEphemeral\x00String8\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00DropTrigger\x00Real\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\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 \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[%d]\x00.%.*s\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-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab\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-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab\x00"
var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data