summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-19 22:04:13 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commit2623a412c42a81104b97ae8c81a5f66760fee4b6 (patch)
tree502c6d4473baac3792d14fda51dbb56179f19424 /vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go
parentd64eed49bc6f2e8a01f922727795eea158cbc56d (diff)
downloadmatterbridge-msglm-2623a412c42a81104b97ae8c81a5f66760fee4b6.tar.gz
matterbridge-msglm-2623a412c42a81104b97ae8c81a5f66760fee4b6.tar.bz2
matterbridge-msglm-2623a412c42a81104b97ae8c81a5f66760fee4b6.zip
Update vendor (whatsapp)
Diffstat (limited to 'vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go')
-rw-r--r--vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go15994
1 files changed, 8027 insertions, 7967 deletions
diff --git a/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go b/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go
index 10707350..b3d0b772 100644
--- a/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go
+++ b/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -DSQLITE_PRIVATE= -export-defines "" -export-enums "" -export-externs X -export-fields F -export-typedefs "" -ignore-unsupported-alignment -pkgname sqlite3 -o lib/sqlite_windows_amd64.go -trace-translation-units testdata/sqlite-amalgamation-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_WIN=1 -D_MSC_VER=1900', DO NOT EDIT.
+// Code generated by 'ccgo -DSQLITE_PRIVATE= -export-defines "" -export-enums "" -export-externs X -export-fields F -export-typedefs "" -ignore-unsupported-alignment -pkgname sqlite3 -o lib/sqlite_windows_amd64.go -trace-translation-units testdata/sqlite-amalgamation-3380100/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_WIN=1 -D_MSC_VER=1900', DO NOT EDIT.
package sqlite3
@@ -15067,7 +15067,7 @@ const (
SQLITE_SHM_UNLOCK = 1
SQLITE_SORTER_PMASZ = 250
SQLITE_SOUNDEX = 1
- SQLITE_SOURCE_ID = "2022-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab"
+ SQLITE_SOURCE_ID = "2022-03-12 13:37:29 38c210fdd258658321c85ec9c01a072fda3ada94540e3239d29b34dc547a8cbc"
SQLITE_SO_ASC = 0
SQLITE_SO_DESC = 1
SQLITE_SO_UNDEFINED = -1
@@ -15178,8 +15178,8 @@ const (
SQLITE_UTF8 = 1
SQLITE_VDBEINT_H = 0
SQLITE_VDBE_H = 0
- SQLITE_VERSION = "3.38.0"
- SQLITE_VERSION_NUMBER = 3038000
+ SQLITE_VERSION = "3.38.1"
+ SQLITE_VERSION_NUMBER = 3038001
SQLITE_VTABRISK_High = 2
SQLITE_VTABRISK_Low = 0
SQLITE_VTABRISK_Normal = 1
@@ -22194,7 +22194,7 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// *****************************************************************************
//
// This file is an amalgamation of many separate C source files from SQLite
-// version 3.38.0. By combining all the individual C code files into this
+// version 3.38.1. 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
@@ -24005,7 +24005,7 @@ type Sqlite3_context = sqlite3_context /* sqlite3.c:4689:32 */
//
// The typedef is necessary to work around problems in certain
// C++ compilers.
-type Sqlite3_destructor_type = uintptr /* sqlite3.c:6054:14 */
+type Sqlite3_destructor_type = uintptr /* sqlite3.c:6058:14 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -24030,7 +24030,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:7239:29 */
+type Sqlite3_vtab = sqlite3_vtab /* sqlite3.c:7243:29 */
type sqlite3_index_info = struct {
FnConstraint int32
F__ccgo_pad1 [4]byte
@@ -24049,12 +24049,12 @@ type sqlite3_index_info = struct {
FidxFlags int32
F__ccgo_pad4 [4]byte
FcolUsed Sqlite3_uint64
-} /* sqlite3.c:7240:9 */
+} /* sqlite3.c:7244: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_index_info = sqlite3_index_info /* sqlite3.c:7244:35 */
+type sqlite3_vtab_cursor = struct{ FpVtab uintptr } /* sqlite3.c:7245:9 */
-type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* sqlite3.c:7241:36 */
+type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* sqlite3.c:7245:36 */
type sqlite3_module = struct {
FiVersion int32
F__ccgo_pad1 [4]byte
@@ -24083,7 +24083,7 @@ type sqlite3_module = struct {
FxShadowName uintptr
} /* sqlite3.c:578:9 */
-type Sqlite3_module = sqlite3_module /* sqlite3.c:7242:31 */
+type Sqlite3_module = sqlite3_module /* sqlite3.c:7246:31 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -24191,7 +24191,7 @@ type sqlite3_index_constraint = struct {
Fusable uint8
F__ccgo_pad1 [2]byte
FiTermOffset int32
-} /* sqlite3.c:7240:9 */
+} /* sqlite3.c:7244:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -24297,7 +24297,7 @@ type sqlite3_index_orderby = struct {
FiColumn int32
Fdesc uint8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:7240:9 */
+} /* sqlite3.c:7244:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -24403,7 +24403,7 @@ type sqlite3_index_constraint_usage = struct {
FargvIndex int32
Fomit uint8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:7240:9 */
+} /* sqlite3.c:7244:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -24478,7 +24478,7 @@ type sqlite3_mutex_methods = struct {
FxMutexLeave uintptr
FxMutexHeld uintptr
FxMutexNotheld uintptr
-} /* sqlite3.c:8106:9 */
+} /* sqlite3.c:8110:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -24543,7 +24543,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:8106:38 */
+type Sqlite3_mutex_methods = sqlite3_mutex_methods /* sqlite3.c:8110:38 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -24568,7 +24568,7 @@ type sqlite3_str = struct {
FaccError U8
FprintfFlags U8
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:8370:9 */
+} /* sqlite3.c:8374:9 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -24584,7 +24584,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:8370:28 */
+type Sqlite3_str = sqlite3_str /* sqlite3.c:8374:28 */
// CAPI3REF: Custom Page Cache Object
//
@@ -24607,7 +24607,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:8875:36 */
+type Sqlite3_pcache_page = sqlite3_pcache_page /* sqlite3.c:8879:36 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -24781,7 +24781,7 @@ type sqlite3_pcache_methods2 = struct {
FxTruncate uintptr
FxDestroy uintptr
FxShrink uintptr
-} /* sqlite3.c:9040:9 */
+} /* sqlite3.c:9044:9 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -24940,7 +24940,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:9040:40 */
+type Sqlite3_pcache_methods2 = sqlite3_pcache_methods2 /* sqlite3.c:9044:40 */
// This is the obsolete pcache_methods object that has now been replaced
// by sqlite3_pcache_methods2. This object is not used by SQLite. It is
@@ -24957,12 +24957,12 @@ type sqlite3_pcache_methods = struct {
FxRekey uintptr
FxTruncate uintptr
FxDestroy uintptr
-} /* sqlite3.c:9063:9 */
+} /* sqlite3.c:9067:9 */
// This is the obsolete pcache_methods object that has now been replaced
// by sqlite3_pcache_methods2. This object is not used by SQLite. It is
// retained in the header file for backwards compatibility only.
-type Sqlite3_pcache_methods = sqlite3_pcache_methods /* sqlite3.c:9063:39 */
+type Sqlite3_pcache_methods = sqlite3_pcache_methods /* sqlite3.c:9067:39 */
// CAPI3REF: Online Backup Object
//
@@ -24996,7 +24996,7 @@ type sqlite3_backup = struct {
// [sqlite3_backup_finish()].
//
// See Also: [Using the SQLite Online Backup API]
-type Sqlite3_backup = sqlite3_backup /* sqlite3.c:9089:31 */
+type Sqlite3_backup = sqlite3_backup /* sqlite3.c:9093:31 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -25016,7 +25016,7 @@ type Sqlite3_backup = sqlite3_backup /* sqlite3.c:9089: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:10381:9 */
+type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* sqlite3.c:10385:9 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -25036,7 +25036,7 @@ type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* sqlite3.c:10381: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:10383:3 */
+type Sqlite3_snapshot = sqlite3_snapshot /* sqlite3.c:10387:3 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -25080,7 +25080,7 @@ type sqlite3_rtree_geometry = struct {
FaParam uintptr
FpUser uintptr
FxDelUser uintptr
-} /* sqlite3.c:10712:9 */
+} /* sqlite3.c:10716:9 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -25117,7 +25117,7 @@ type sqlite3_rtree_geometry = struct {
//
//
-type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* sqlite3.c:10712:39 */
+type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* sqlite3.c:10716:39 */
type sqlite3_rtree_query_info = struct {
FpContext uintptr
FnParam int32
@@ -25137,13 +25137,13 @@ type sqlite3_rtree_query_info = struct {
FeWithin int32
FrScore Sqlite3_rtree_dbl
FapSqlParam uintptr
-} /* sqlite3.c:10713:9 */
+} /* sqlite3.c:10717:9 */
-type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* sqlite3.c:10713:41 */
+type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* sqlite3.c:10717:41 */
// The double-precision datatype used by RTree depends on the
// SQLITE_RTREE_INT_ONLY compile-time option.
-type Sqlite3_rtree_dbl = float64 /* sqlite3.c:10721:18 */
+type Sqlite3_rtree_dbl = float64 /* sqlite3.c:10725:18 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -25173,7 +25173,7 @@ type sqlite3_session = struct {
FpNext uintptr
FpTable uintptr
Fhook SessionHook
-} /* sqlite3.c:10828:9 */
+} /* sqlite3.c:10832:9 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -25186,7 +25186,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:10828:32 */
+type Sqlite3_session = sqlite3_session /* sqlite3.c:10832:32 */
// CAPI3REF: Changeset Iterator Handle
//
@@ -25207,13 +25207,13 @@ type sqlite3_changeset_iter = struct {
F__ccgo_pad1 [4]byte
FabPK uintptr
FapValue uintptr
-} /* sqlite3.c:10836:9 */
+} /* sqlite3.c:10840:9 */
// CAPI3REF: Changeset Iterator Handle
//
// An instance of this object acts as a cursor for iterating
// over the elements of a [changeset] or [patchset].
-type Sqlite3_changeset_iter = sqlite3_changeset_iter /* sqlite3.c:10836:39 */
+type Sqlite3_changeset_iter = sqlite3_changeset_iter /* sqlite3.c:10840:39 */
// CAPI3REF: Changegroup Handle
//
@@ -25223,13 +25223,13 @@ type sqlite3_changegroup = struct {
Frc int32
FbPatch int32
FpList uintptr
-} /* sqlite3.c:11688:9 */
+} /* sqlite3.c:11692:9 */
// CAPI3REF: Changegroup Handle
//
// A changegroup is an object used to combine two or more
// [changesets] or [patchsets]
-type Sqlite3_changegroup = sqlite3_changegroup /* sqlite3.c:11688:36 */
+type Sqlite3_changegroup = sqlite3_changegroup /* sqlite3.c:11692:36 */
// CAPI3REF: Flags for sqlite3changeset_apply_v2
//
@@ -25431,7 +25431,7 @@ type Sqlite3_changegroup = sqlite3_changegroup /* sqlite3.c:11688:36 */
// <li> The sqlite3_rebaser object is deleted by calling
// sqlite3rebaser_delete().
// </ol>
-type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* sqlite3.c:12252:9 */
+type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* sqlite3.c:12256:9 */
// CAPI3REF: Flags for sqlite3changeset_apply_v2
//
@@ -25633,7 +25633,7 @@ type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* sqlite3.c:12252:9 *
// <li> The sqlite3_rebaser object is deleted by calling
// sqlite3rebaser_delete().
// </ol>
-type Sqlite3_rebaser = sqlite3_rebaser /* sqlite3.c:12252:32 */
+type Sqlite3_rebaser = sqlite3_rebaser /* sqlite3.c:12256:32 */
// CAPI3REF: Values for sqlite3session_config().
@@ -25687,7 +25687,7 @@ type Fts5ExtensionApi1 = struct {
FxPhraseNext uintptr
FxPhraseFirstColumn uintptr
FxPhraseNextColumn uintptr
-} /* sqlite3.c:12568:9 */
+} /* sqlite3.c:12572:9 */
// CAPI3REF: Values for sqlite3session_config().
@@ -25719,22 +25719,22 @@ type Fts5ExtensionApi1 = struct {
// Virtual table implementations may overload SQL functions by implementing
// the sqlite3_module.xFindFunction() method.
-type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.c:12568:33 */
+type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.c:12572:33 */
type Fts5PhraseIter1 = struct {
Fa uintptr
Fb uintptr
-} /* sqlite3.c:12570:9 */
+} /* sqlite3.c:12574:9 */
-type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.c:12570:31 */
+type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.c:12574:31 */
-type Fts5_extension_function = uintptr /* sqlite3.c:12572:14 */
+type Fts5_extension_function = uintptr /* sqlite3.c:12576:14 */
type fts5_tokenizer = struct {
FxCreate uintptr
FxDelete uintptr
FxTokenize uintptr
-} /* sqlite3.c:13031:9 */
+} /* sqlite3.c:13035:9 */
-type Fts5_tokenizer = fts5_tokenizer /* sqlite3.c:13031:31 */
+type Fts5_tokenizer = fts5_tokenizer /* sqlite3.c:13035:31 */
// Flags that may be passed as the third argument to xTokenize()
@@ -25754,7 +25754,7 @@ type fts5_api = struct {
FxCreateTokenizer uintptr
FxFindTokenizer uintptr
FxCreateFunction uintptr
-} /* sqlite3.c:13067:9 */
+} /* sqlite3.c:13071:9 */
// Flags that may be passed as the third argument to xTokenize()
@@ -25768,7 +25768,7 @@ type fts5_api = struct {
// ************************************************************************
//
// FTS5 EXTENSION REGISTRATION API
-type Fts5_api = fts5_api /* sqlite3.c:13067:25 */
+type Fts5_api = fts5_api /* sqlite3.c:13071:25 */
type Ssize_t = int64 /* corecrt.h:50:35 */
@@ -26793,7 +26793,7 @@ type Hash1 = struct {
// used in SQLite.
// Forward declarations of structures.
-type Hash = Hash1 /* sqlite3.c:13740:21 */
+type Hash = Hash1 /* sqlite3.c:13744:21 */
type HashElem1 = struct {
Fnext uintptr
Fprev uintptr
@@ -26801,7 +26801,7 @@ type HashElem1 = struct {
FpKey uintptr
} /* sqlite3.c:578:9 */
-type HashElem = HashElem1 /* sqlite3.c:13741:25 */
+type HashElem = HashElem1 /* sqlite3.c:13745:25 */
// A complete hash table is an instance of the following structure.
// The internals of this structure are intended to be opaque -- client
@@ -27004,13 +27004,13 @@ func vswprintf(tls *libc.TLS, __stream uintptr, __count Size_t, __format uintptr
// types can be conveniently redefined at compile-type. Like this:
//
// cc '-DUINTPTR_TYPE=long long int' ...
-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
+type I64 = Sqlite_int64 /* sqlite3.c:14217:22 */ // 8-byte signed integer
+type U64 = Sqlite_uint64 /* sqlite3.c:14218:23 */ // 8-byte unsigned integer
+type U32 = uint32 /* sqlite3.c:14219:21 */ // 4-byte unsigned integer
+type U16 = uint16 /* sqlite3.c:14220:21 */ // 2-byte unsigned integer
+type I16 = int16 /* sqlite3.c:14221:20 */ // 2-byte signed integer
+type U8 = uint8 /* sqlite3.c:14222:20 */ // 1-byte unsigned integer
+type I8 = int8 /* sqlite3.c:14223:19 */ // 1-byte signed integer
// SQLITE_MAX_U32 is a u64 constant that is the maximum u64 value
// that can be stored in a u32 without loss of data. The value
@@ -27021,7 +27021,7 @@ type I8 = int8 /* sqlite3.c:14219: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:14238:14 */ // 32-bit is the default
+type TRowcnt = U32 /* sqlite3.c:14242:14 */ // 32-bit is the default
// Estimated quantities used for query planning are stored as 16-bit
// logarithms. For quantity X, the value stored is 10*log2(X). This
@@ -27044,12 +27044,12 @@ type TRowcnt = U32 /* sqlite3.c:14238:14 */ // 32-bit is the default
// Examples:
//
// 0.5 -> -10 0.1 -> -33 0.0625 -> -40
-type LogEst = int16 /* sqlite3.c:14264:20 */
+type LogEst = int16 /* sqlite3.c:14268:20 */
// Set the SQLITE_PTRSIZE macro to the number of bytes in a pointer
// The uptr type is an unsigned integer large enough to hold a pointer
-type Uptr = U64 /* sqlite3.c:14289:15 */
+type Uptr = U64 /* sqlite3.c:14293:15 */
// An instance of the following structure is used to store the busy-handler
// callback for a given sqlite handle.
@@ -27072,7 +27072,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:14460:28 */
+type BusyHandler = BusyHandler1 /* sqlite3.c:14464:28 */
// Name of table that holds the database schema.
//
@@ -27214,13 +27214,13 @@ type AggInfo1 = struct {
// cases the parameters are named as per the usual conventions.
// Forward references to structures
-type AggInfo = AggInfo1 /* sqlite3.c:14570:24 */
+type AggInfo = AggInfo1 /* sqlite3.c:14574:24 */
type AuthContext1 = struct {
FzAuthContext uintptr
FpParse uintptr
-} /* sqlite3.c:14571:9 */
+} /* sqlite3.c:14575:9 */
-type AuthContext = AuthContext1 /* sqlite3.c:14571:28 */
+type AuthContext = AuthContext1 /* sqlite3.c:14575:28 */
type AutoincInfo1 = struct {
FpNext uintptr
FpTab uintptr
@@ -27228,7 +27228,7 @@ type AutoincInfo1 = struct {
FregCtr int32
} /* sqlite3.c:578:9 */
-type AutoincInfo = AutoincInfo1 /* sqlite3.c:14572:28 */
+type AutoincInfo = AutoincInfo1 /* sqlite3.c:14576:28 */
type Bitvec1 = struct {
FiSize U32
FnSet U32
@@ -27240,7 +27240,7 @@ type Bitvec1 = struct {
}
} /* sqlite3.c:578:9 */
-type Bitvec = Bitvec1 /* sqlite3.c:14573:23 */
+type Bitvec = Bitvec1 /* sqlite3.c:14577:23 */
type CollSeq1 = struct {
FzName uintptr
Fenc U8
@@ -27250,7 +27250,7 @@ type CollSeq1 = struct {
FxDel uintptr
} /* sqlite3.c:578:9 */
-type CollSeq = CollSeq1 /* sqlite3.c:14574:24 */
+type CollSeq = CollSeq1 /* sqlite3.c:14578:24 */
type Column1 = struct {
FzCnName uintptr
FnotNull uint8 /* unsigned notNull: 4, unsigned eCType: 4 */
@@ -27264,7 +27264,7 @@ type Column1 = struct {
F__ccgo_pad3 [6]byte
} /* sqlite3.c:578:9 */
-type Column = Column1 /* sqlite3.c:14575:23 */
+type Column = Column1 /* sqlite3.c:14579:23 */
type Cte1 = struct {
FzName uintptr
FpCols uintptr
@@ -27275,7 +27275,7 @@ type Cte1 = struct {
F__ccgo_pad1 [7]byte
} /* sqlite3.c:578:9 */
-type Cte = Cte1 /* sqlite3.c:14576:20 */
+type Cte = Cte1 /* sqlite3.c:14580:20 */
type CteUse1 = struct {
FnUse int32
FaddrM9e int32
@@ -27286,7 +27286,7 @@ type CteUse1 = struct {
F__ccgo_pad1 [1]byte
} /* sqlite3.c:578:9 */
-type CteUse = CteUse1 /* sqlite3.c:14577:23 */
+type CteUse = CteUse1 /* sqlite3.c:14581:23 */
type Db1 = struct {
FzDbSName uintptr
FpBt uintptr
@@ -27296,7 +27296,7 @@ type Db1 = struct {
FpSchema uintptr
} /* sqlite3.c:578:9 */
-type Db = Db1 /* sqlite3.c:14578:19 */
+type Db = Db1 /* sqlite3.c:14582:19 */
type DbFixer1 = struct {
FpParse uintptr
Fw Walker
@@ -27306,9 +27306,9 @@ type DbFixer1 = struct {
FzDb uintptr
FzType uintptr
FpName uintptr
-} /* sqlite3.c:14579:9 */
+} /* sqlite3.c:14583:9 */
-type DbFixer = DbFixer1 /* sqlite3.c:14579:24 */
+type DbFixer = DbFixer1 /* sqlite3.c:14583:24 */
type Schema1 = struct {
Fschema_cookie int32
FiGeneration int32
@@ -27323,7 +27323,7 @@ type Schema1 = struct {
Fcache_size int32
} /* sqlite3.c:578:9 */
-type Schema = Schema1 /* sqlite3.c:14580:23 */
+type Schema = Schema1 /* sqlite3.c:14584:23 */
type Expr1 = struct {
Fop U8
FaffExpr int8
@@ -27343,7 +27343,7 @@ type Expr1 = struct {
Fy struct{ FpTab uintptr }
} /* sqlite3.c:578:9 */
-type Expr = Expr1 /* sqlite3.c:14581:21 */
+type Expr = Expr1 /* sqlite3.c:14585:21 */
type ExprList1 = struct {
FnExpr int32
FnAlloc int32
@@ -27365,7 +27365,7 @@ type ExprList1 = struct {
}
} /* sqlite3.c:578:9 */
-type ExprList = ExprList1 /* sqlite3.c:14582:25 */
+type ExprList = ExprList1 /* sqlite3.c:14586:25 */
type FKey1 = struct {
FpFrom uintptr
FpNextFrom uintptr
@@ -27382,17 +27382,17 @@ type FKey1 = struct {
F__ccgo_pad1 [4]byte
FzCol uintptr
}
-} /* sqlite3.c:14583:9 */
+} /* sqlite3.c:14587:9 */
-type FKey = FKey1 /* sqlite3.c:14583:21 */
+type FKey = FKey1 /* sqlite3.c:14587:21 */
type FuncDestructor1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FxDestroy uintptr
FpUserData uintptr
-} /* sqlite3.c:14584:9 */
+} /* sqlite3.c:14588:9 */
-type FuncDestructor = FuncDestructor1 /* sqlite3.c:14584:31 */
+type FuncDestructor = FuncDestructor1 /* sqlite3.c:14588:31 */
type FuncDef1 = struct {
FnArg I8
F__ccgo_pad1 [3]byte
@@ -27407,17 +27407,17 @@ type FuncDef1 = struct {
Fu struct{ FpHash uintptr }
} /* sqlite3.c:578:9 */
-type FuncDef = FuncDef1 /* sqlite3.c:14585:24 */
-type FuncDefHash1 = struct{ Fa [23]uintptr } /* sqlite3.c:14586:9 */
+type FuncDef = FuncDef1 /* sqlite3.c:14589:24 */
+type FuncDefHash1 = struct{ Fa [23]uintptr } /* sqlite3.c:14590:9 */
-type FuncDefHash = FuncDefHash1 /* sqlite3.c:14586:28 */
+type FuncDefHash = FuncDefHash1 /* sqlite3.c:14590:28 */
type IdList1 = struct {
Fa uintptr
FnId int32
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type IdList = IdList1 /* sqlite3.c:14587:23 */
+type IdList = IdList1 /* sqlite3.c:14591:23 */
type Index1 = struct {
FzName uintptr
FaiColumn uintptr
@@ -27448,7 +27448,7 @@ type Index1 = struct {
FcolNotIdxed Bitmask
} /* sqlite3.c:578:9 */
-type Index = Index1 /* sqlite3.c:14588:22 */
+type Index = Index1 /* sqlite3.c:14592:22 */
type IndexSample1 = struct {
Fp uintptr
Fn int32
@@ -27458,7 +27458,7 @@ type IndexSample1 = struct {
FanDLt uintptr
} /* sqlite3.c:578:9 */
-type IndexSample = IndexSample1 /* sqlite3.c:14589:28 */
+type IndexSample = IndexSample1 /* sqlite3.c:14593:28 */
type KeyInfo1 = struct {
FnRef U32
Fenc U8
@@ -27471,7 +27471,7 @@ type KeyInfo1 = struct {
FaColl [1]uintptr
} /* sqlite3.c:578:9 */
-type KeyInfo = KeyInfo1 /* sqlite3.c:14591:24 */
+type KeyInfo = KeyInfo1 /* sqlite3.c:14595:24 */
type Lookaside1 = struct {
FbDisable U32
Fsz U16
@@ -27490,10 +27490,10 @@ type Lookaside1 = struct {
FpEnd uintptr
} /* sqlite3.c:578:9 */
-type Lookaside = Lookaside1 /* sqlite3.c:14592:26 */
+type Lookaside = Lookaside1 /* sqlite3.c:14596:26 */
type LookasideSlot1 = struct{ FpNext uintptr } /* sqlite3.c:578:9 */
-type LookasideSlot = LookasideSlot1 /* sqlite3.c:14593:30 */
+type LookasideSlot = LookasideSlot1 /* sqlite3.c:14597:30 */
type Module1 = struct {
FpModule uintptr
FzName uintptr
@@ -27504,7 +27504,7 @@ type Module1 = struct {
FpEpoTab uintptr
} /* sqlite3.c:578:9 */
-type Module = Module1 /* sqlite3.c:14594:23 */
+type Module = Module1 /* sqlite3.c:14598:23 */
type NameContext1 = struct {
FpParse uintptr
FpSrcList uintptr
@@ -27515,9 +27515,9 @@ type NameContext1 = struct {
FncFlags int32
F__ccgo_pad1 [4]byte
FpWinSelect uintptr
-} /* sqlite3.c:14595:9 */
+} /* sqlite3.c:14599:9 */
-type NameContext = NameContext1 /* sqlite3.c:14595:28 */
+type NameContext = NameContext1 /* sqlite3.c:14599:28 */
type Parse1 = struct {
Fdb uintptr
FzErrMsg uintptr
@@ -27599,14 +27599,14 @@ type Parse1 = struct {
FpRename uintptr
} /* sqlite3.c:578:9 */
-type Parse = Parse1 /* sqlite3.c:14596:22 */
+type Parse = Parse1 /* sqlite3.c:14600:22 */
type ParseCleanup1 = struct {
FpNext uintptr
FpPtr uintptr
FxCleanup uintptr
} /* sqlite3.c:578:9 */
-type ParseCleanup = ParseCleanup1 /* sqlite3.c:14597:29 */
+type ParseCleanup = ParseCleanup1 /* sqlite3.c:14601:29 */
type PreUpdate1 = struct {
Fv uintptr
FpCsr uintptr
@@ -27625,21 +27625,21 @@ type PreUpdate1 = struct {
FpPk uintptr
} /* sqlite3.c:578:9 */
-type PreUpdate = PreUpdate1 /* sqlite3.c:14598:26 */
+type PreUpdate = PreUpdate1 /* sqlite3.c:14602:26 */
type PrintfArguments1 = struct {
FnArg int32
FnUsed int32
FapArg uintptr
-} /* sqlite3.c:14599:9 */
+} /* sqlite3.c:14603:9 */
-type PrintfArguments = PrintfArguments1 /* sqlite3.c:14599:32 */
+type PrintfArguments = PrintfArguments1 /* sqlite3.c:14603:32 */
type RenameToken1 = struct {
Fp uintptr
Ft Token
FpNext uintptr
} /* sqlite3.c:578:9 */
-type RenameToken = RenameToken1 /* sqlite3.c:14600:28 */
+type RenameToken = RenameToken1 /* sqlite3.c:14604:28 */
type Returning1 = struct {
FpParse uintptr
FpReturnEL uintptr
@@ -27649,9 +27649,9 @@ type Returning1 = struct {
FnRetCol int32
FiRetReg int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:14601:9 */
+} /* sqlite3.c:14605:9 */
-type Returning = Returning1 /* sqlite3.c:14601:26 */
+type Returning = Returning1 /* sqlite3.c:14605:26 */
type RowSet1 = struct {
FpChunk uintptr
Fdb uintptr
@@ -27662,9 +27662,9 @@ type RowSet1 = struct {
FnFresh U16
FrsFlags U16
FiBatch int32
-} /* sqlite3.c:14602:9 */
+} /* sqlite3.c:14606:9 */
-type RowSet = RowSet1 /* sqlite3.c:14602:23 */
+type RowSet = RowSet1 /* sqlite3.c:14606:23 */
type Savepoint1 = struct {
FzName uintptr
FnDeferredCons I64
@@ -27672,7 +27672,7 @@ type Savepoint1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type Savepoint = Savepoint1 /* sqlite3.c:14603:26 */
+type Savepoint = Savepoint1 /* sqlite3.c:14607:26 */
type Select1 = struct {
Fop U8
F__ccgo_pad1 [1]byte
@@ -27697,7 +27697,7 @@ type Select1 = struct {
FpWinDefn uintptr
} /* sqlite3.c:578:9 */
-type Select = Select1 /* sqlite3.c:14604:23 */
+type Select = Select1 /* sqlite3.c:14608:23 */
type SQLiteThread1 = struct {
Ftid uintptr
Fid uint32
@@ -27705,9 +27705,9 @@ type SQLiteThread1 = struct {
FxTask uintptr
FpIn uintptr
FpResult uintptr
-} /* sqlite3.c:14605:9 */
+} /* sqlite3.c:14609:9 */
-type SQLiteThread = SQLiteThread1 /* sqlite3.c:14605:29 */
+type SQLiteThread = SQLiteThread1 /* sqlite3.c:14609:29 */
type SelectDest1 = struct {
FeDest U8
F__ccgo_pad1 [3]byte
@@ -27718,9 +27718,9 @@ type SelectDest1 = struct {
F__ccgo_pad2 [4]byte
FzAffSdst uintptr
FpOrderBy uintptr
-} /* sqlite3.c:14606:9 */
+} /* sqlite3.c:14610:9 */
-type SelectDest = SelectDest1 /* sqlite3.c:14606:27 */
+type SelectDest = SelectDest1 /* sqlite3.c:14610:27 */
type SrcItem1 = struct {
FpSchema uintptr
FzDatabase uintptr
@@ -27746,15 +27746,15 @@ type SrcItem1 = struct {
Fu2 struct{ FpIBIndex uintptr }
} /* sqlite3.c:578:9 */
-type SrcItem = SrcItem1 /* sqlite3.c:14607:24 */
+type SrcItem = SrcItem1 /* sqlite3.c:14611:24 */
type SrcList1 = struct {
FnSrc int32
FnAlloc U32
Fa [1]SrcItem
} /* sqlite3.c:578:9 */
-type SrcList = SrcList1 /* sqlite3.c:14608:24 */
-type StrAccum = sqlite3_str /* sqlite3.c:14609:28 */ // Internal alias for sqlite3_str
+type SrcList = SrcList1 /* sqlite3.c:14612:24 */
+type StrAccum = sqlite3_str /* sqlite3.c:14613:28 */ // Internal alias for sqlite3_str
type Table1 = struct {
FzName uintptr
FaCol uintptr
@@ -27784,7 +27784,7 @@ type Table1 = struct {
} /* sqlite3.c:578:9 */
// Internal alias for sqlite3_str
-type Table = Table1 /* sqlite3.c:14610:22 */
+type Table = Table1 /* sqlite3.c:14614:22 */
type TableLock1 = struct {
FiDb int32
FiTab Pgno
@@ -27793,14 +27793,14 @@ type TableLock1 = struct {
FzLockName uintptr
} /* sqlite3.c:578:9 */
-type TableLock = TableLock1 /* sqlite3.c:14611:26 */
+type TableLock = TableLock1 /* sqlite3.c:14615:26 */
type Token1 = struct {
Fz uintptr
Fn uint32
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type Token = Token1 /* sqlite3.c:14612:22 */
+type Token = Token1 /* sqlite3.c:14616:22 */
type Trigger1 = struct {
FzName uintptr
Ftable uintptr
@@ -27816,7 +27816,7 @@ type Trigger1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type Trigger = Trigger1 /* sqlite3.c:14614:24 */
+type Trigger = Trigger1 /* sqlite3.c:14618:24 */
type TriggerPrg1 = struct {
FpTrigger uintptr
FpNext uintptr
@@ -27826,7 +27826,7 @@ type TriggerPrg1 = struct {
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type TriggerPrg = TriggerPrg1 /* sqlite3.c:14615:27 */
+type TriggerPrg = TriggerPrg1 /* sqlite3.c:14619:27 */
type TriggerStep1 = struct {
Fop U8
Forconf U8
@@ -27844,7 +27844,7 @@ type TriggerStep1 = struct {
FpLast uintptr
} /* sqlite3.c:578:9 */
-type TriggerStep = TriggerStep1 /* sqlite3.c:14616:28 */
+type TriggerStep = TriggerStep1 /* sqlite3.c:14620:28 */
type UnpackedRecord1 = struct {
FpKeyInfo uintptr
FaMem uintptr
@@ -27857,7 +27857,7 @@ type UnpackedRecord1 = struct {
F__ccgo_pad1 [1]byte
} /* sqlite3.c:578:9 */
-type UnpackedRecord = UnpackedRecord1 /* sqlite3.c:14617:31 */
+type UnpackedRecord = UnpackedRecord1 /* sqlite3.c:14621:31 */
type Upsert1 = struct {
FpUpsertTarget uintptr
FpUpsertTargetWhere uintptr
@@ -27875,7 +27875,7 @@ type Upsert1 = struct {
F__ccgo_pad2 [4]byte
} /* sqlite3.c:578:9 */
-type Upsert = Upsert1 /* sqlite3.c:14618:23 */
+type Upsert = Upsert1 /* sqlite3.c:14622:23 */
type VTable1 = struct {
Fdb uintptr
FpMod uintptr
@@ -27889,7 +27889,7 @@ type VTable1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type VTable = VTable1 /* sqlite3.c:14619:23 */
+type VTable = VTable1 /* sqlite3.c:14623:23 */
type VtabCtx1 = struct {
FpVTable uintptr
FpTab uintptr
@@ -27898,7 +27898,7 @@ type VtabCtx1 = struct {
F__ccgo_pad1 [4]byte
} /* sqlite3.c:578:9 */
-type VtabCtx = VtabCtx1 /* sqlite3.c:14620:24 */
+type VtabCtx = VtabCtx1 /* sqlite3.c:14624:24 */
type Walker1 = struct {
FpParse uintptr
FxExprCallback uintptr
@@ -27908,9 +27908,9 @@ type Walker1 = struct {
FeCode U16
F__ccgo_pad1 [2]byte
Fu struct{ FpNC uintptr }
-} /* sqlite3.c:14579:9 */
+} /* sqlite3.c:14583:9 */
-type Walker = Walker1 /* sqlite3.c:14621:23 */
+type Walker = Walker1 /* sqlite3.c:14625:23 */
type WhereInfo1 = struct {
FpParse uintptr
FpTabList uintptr
@@ -27939,9 +27939,9 @@ type WhereInfo1 = struct {
FsWC WhereClause
FsMaskSet WhereMaskSet
Fa [1]WhereLevel
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
-type WhereInfo = WhereInfo1 /* sqlite3.c:14622:26 */
+type WhereInfo = WhereInfo1 /* sqlite3.c:14626:26 */
type Window1 = struct {
FzName uintptr
FzBase uintptr
@@ -27975,7 +27975,7 @@ type Window1 = struct {
F__ccgo_pad2 [3]byte
} /* sqlite3.c:578:9 */
-type Window = Window1 /* sqlite3.c:14623:23 */
+type Window = Window1 /* sqlite3.c:14627:23 */
type With1 = struct {
FnCte int32
FbView int32
@@ -27983,14 +27983,14 @@ type With1 = struct {
Fa [1]Cte
} /* sqlite3.c:578:9 */
-type With = With1 /* sqlite3.c:14624:21 */
+type With = With1 /* sqlite3.c:14628:21 */
// The bitmask datatype defined below is used for various optimizations.
//
// Changing this from a 64-bit to a 32-bit type limits the number of
// tables in a join to 32 instead of 64. But it also reduces the size
// of the library by 738 bytes on ix86.
-type Bitmask = U64 /* sqlite3.c:14637:15 */
+type Bitmask = U64 /* sqlite3.c:14641:15 */
// The number of bits in a Bitmask. "BMS" means "BitMask Size".
@@ -28001,7 +28001,7 @@ type Bitmask = U64 /* sqlite3.c:14637: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:14660:13 */
+type VList = int32 /* sqlite3.c:14664:13 */
// Defer sourcing vdbe.h and btree.h until after the "u8" and
// "BusyHandler" typedefs. vdbe.h also requires a few of the opaque
@@ -28028,7 +28028,7 @@ type VList = int32 /* sqlite3.c:14660: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:14701:13 */
+type Pgno = U32 /* sqlite3.c:14705:13 */
// Each open file is managed by a separate instance of the "Pager" structure.
type Pager1 = struct {
@@ -28099,7 +28099,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:14706:22 */
+type Pager = Pager1 /* sqlite3.c:14710:22 */
// Handle type for pages.
type PgHdr2 = struct {
@@ -28117,7 +28117,7 @@ type PgHdr2 = struct {
} /* sqlite3.c:578:9 */
// Handle type for pages.
-type DbPage = PgHdr2 /* sqlite3.c:14711:22 */
+type DbPage = PgHdr2 /* sqlite3.c:14715:22 */
// Functions to support testing and debugging.
@@ -28188,7 +28188,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:14954:22 */
+type Btree = Btree1 /* sqlite3.c:14958:22 */
type BtCursor1 = struct {
FeState U8
FcurFlags U8
@@ -28213,7 +28213,7 @@ type BtCursor1 = struct {
FapPage [19]uintptr
} /* sqlite3.c:578:9 */
-type BtCursor = BtCursor1 /* sqlite3.c:14955:25 */
+type BtCursor = BtCursor1 /* sqlite3.c:14959:25 */
type BtShared1 = struct {
FpPager uintptr
Fdb uintptr
@@ -28252,7 +28252,7 @@ type BtShared1 = struct {
F__ccgo_pad5 [4]byte
} /* sqlite3.c:578:9 */
-type BtShared = BtShared1 /* sqlite3.c:14956:25 */
+type BtShared = BtShared1 /* sqlite3.c:14960:25 */
type BtreePayload1 = struct {
FpKey uintptr
FnKey Sqlite3_int64
@@ -28263,9 +28263,9 @@ type BtreePayload1 = struct {
FnData int32
FnZero int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:14957:9 */
+} /* sqlite3.c:14961:9 */
-type BtreePayload = BtreePayload1 /* sqlite3.c:14957:29 */
+type BtreePayload = BtreePayload1 /* sqlite3.c:14961:29 */
//************* End of btree.h **********************************************
//************* Continuing where we left off in sqliteInt.h *****************
@@ -28369,11 +28369,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:15359:21 */
+type Vdbe = Vdbe1 /* sqlite3.c:15363:21 */
// The names of the following types declared in vdbeInt.h are required
// for the VdbeOp definition.
-type Mem = sqlite3_value /* sqlite3.c:15365:30 */
+type Mem = sqlite3_value /* sqlite3.c:15369:30 */
type SubProgram1 = struct {
FaOp uintptr
FnOp int32
@@ -28385,7 +28385,7 @@ type SubProgram1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type SubProgram = SubProgram1 /* sqlite3.c:15366:27 */
+type SubProgram = SubProgram1 /* sqlite3.c:15370:27 */
// A single instruction of the virtual machine has an opcode
// and as many as three operands. The instruction is recorded
@@ -28413,7 +28413,7 @@ type p4union = struct {
F__ccgo_pad2 [4]byte
} /* sqlite3.c:578:9 */
-type VdbeOp = VdbeOp1 /* sqlite3.c:15412:23 */
+type VdbeOp = VdbeOp1 /* sqlite3.c:15416:23 */
// A smaller version of VdbeOp used for the VdbeAddOpList() function because
// it takes up less space.
@@ -28422,11 +28422,11 @@ type VdbeOpList1 = struct {
Fp1 int8
Fp2 int8
Fp3 int8
-} /* sqlite3.c:15432:1 */
+} /* sqlite3.c:15436:1 */
-type VdbeOpList = VdbeOpList1 /* sqlite3.c:15438:27 */
+type VdbeOpList = VdbeOpList1 /* sqlite3.c:15442:27 */
-type RecordCompare = uintptr /* sqlite3.c:15853:13 */
+type RecordCompare = uintptr /* sqlite3.c:15857:13 */
// Use SQLITE_ENABLE_COMMENTS to enable generation of extra comments on
// each VDBE opcode.
@@ -28491,7 +28491,7 @@ type RecordCompare = uintptr /* sqlite3.c:15853:13 */
// This header file defines the interface that the sqlite page cache
// subsystem.
-type PgHdr = PgHdr2 /* sqlite3.c:15986:22 */
+type PgHdr = PgHdr2 /* sqlite3.c:15990:22 */
type PCache2 = struct {
FpDirty uintptr
FpDirtyTail uintptr
@@ -28509,10 +28509,10 @@ type PCache2 = struct {
FpCache uintptr
} /* sqlite3.c:578:9 */
-type PCache = PCache2 /* sqlite3.c:15987:23 */
+type PCache = PCache2 /* sqlite3.c:15991:23 */
// typedef for the authorization callback function.
-type Sqlite3_xauth = uintptr /* sqlite3.c:16755:15 */
+type Sqlite3_xauth = uintptr /* sqlite3.c:16759:15 */
// This is an extra SQLITE_TRACE macro that indicates "legacy" tracing
// in the style of sqlite3_trace()
@@ -28588,7 +28588,7 @@ type sColMap = struct {
FiFrom int32
F__ccgo_pad1 [4]byte
FzCol uintptr
-} /* sqlite3.c:14583:9 */
+} /* sqlite3.c:14587:9 */
// An instance of this structure contains information needed to generate
// code for a SELECT that contains aggregate functions.
@@ -28639,7 +28639,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:17975:13 */
+type YnVar = I16 /* sqlite3.c:17979:13 */
// The following are the meanings of bits in the Expr.flags field.
// Value restrictions:
@@ -28733,7 +28733,7 @@ type IdList_item = struct {
} /* sqlite3.c:578:9 */
// The yDbMask datatype for the bitmask of all attached databases.
-type YDbMask = uint32 /* sqlite3.c:18754:24 */
+type YDbMask = uint32 /* sqlite3.c:18758:24 */
// A pointer to this structure is used to communicate information
// from sqlite3Init and OP_ParseSchema into the sqlite3InitCallback.
@@ -28746,7 +28746,7 @@ type InitData = struct {
FnInitRow U32
FmxPage Pgno
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:19115:3 */
+} /* sqlite3.c:19119:3 */
// Allowed values for mInitFlags
@@ -28811,7 +28811,7 @@ type Sqlite3Config = struct {
FszSorterRef U32
FiPrngSeed uint32
F__ccgo_pad5 [4]byte
-} /* sqlite3.c:19146:1 */
+} /* sqlite3.c:19150:1 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -28834,7 +28834,7 @@ type RefSrcList = struct {
FpRef uintptr
FnExclude I64
FaiExclude uintptr
-} /* sqlite3.c:19246:5 */
+} /* sqlite3.c:19250:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -28856,7 +28856,7 @@ type IdxCover = struct {
FpIdx uintptr
FiCur int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:19248: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:
@@ -28882,7 +28882,7 @@ type IdxExprTrans1 = struct {
FiTabCol int32
FpWInfo uintptr
Fdb uintptr
-} /* sqlite3.c:19249: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:
@@ -28906,7 +28906,7 @@ type WindowRewrite1 = struct {
FpSub uintptr
FpTab uintptr
FpSubSelect uintptr
-} /* sqlite3.c:19252:5 */
+} /* sqlite3.c:19256:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -28932,7 +28932,7 @@ type WhereConst1 = struct {
FbHasAffBlob int32
F__ccgo_pad1 [4]byte
FapExpr uintptr
-} /* sqlite3.c:19253:5 */
+} /* sqlite3.c:19257:5 */
// This macro is used inside of assert() statements to indicate that
// the assert is only valid on a well-formed database. Instead of:
@@ -28956,7 +28956,7 @@ type RenameCtx1 = struct {
FiCol int32
FpTab uintptr
FzOld uintptr
-} /* sqlite3.c:19254:5 */
+} /* sqlite3.c:19258:5 */
//************* End of sqliteInt.h ******************************************
//************* Begin file os_common.h **************************************
@@ -29084,9 +29084,9 @@ var sqlite3azCompileOpt = [51]uintptr{
ts + 1029,
ts + 1043,
ts + 1056,
-} /* sqlite3.c:20859:19 */
+} /* sqlite3.c:20868:19 */
-func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* sqlite3.c:21586:27: */
+func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* sqlite3.c:21595:27: */
*(*int32)(unsafe.Pointer(pnOpt)) = int32(uint64(unsafe.Sizeof(sqlite3azCompileOpt)) / uint64(unsafe.Sizeof(uintptr(0))))
return uintptr(uintptr(unsafe.Pointer(&sqlite3azCompileOpt)))
}
@@ -29153,10 +29153,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: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 */
+} /* sqlite3.c:21627:36 */
+var Xsqlite3aLTb uintptr = 0 /* sqlite3.c:21689:36 */
+var Xsqlite3aEQb uintptr = 0 /* sqlite3.c:21690:36 */
+var Xsqlite3aGTb uintptr = 0 /* sqlite3.c:21691:36 */
// The following 256 byte lookup table is used to support SQLites built-in
// equivalents to the following standard library functions:
@@ -29220,7 +29220,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:21712:36 */
+} /* sqlite3.c:21721:36 */
// EVIDENCE-OF: R-02982-34736 In order to maintain full backwards
// compatibility for legacy applications, the URI filename capability is
@@ -29280,12 +29280,12 @@ var Xsqlite3Config = Sqlite3Config{
FmxMemdbSize: int64(SQLITE_MEMDB_DEFAULT_MAXSIZE), // xAltLocaltime
FiOnceResetThreshold: 0x7ffffffe, // iOnceResetThreshold
FszSorterRef: U32(SQLITE_DEFAULT_SORTERREF_SIZE), // iPrngSeed
-} /* sqlite3.c:21832:48 */
+} /* sqlite3.c:21841:48 */
// Hash table for global functions - functions common to all
// database connections. After initialization, this table is
// read-only.
-var Xsqlite3BuiltinFunctions FuncDefHash /* sqlite3.c:21894:28: */
+var Xsqlite3BuiltinFunctions FuncDefHash /* sqlite3.c:21903:28: */
// The value of the "pending" byte must be 0x40000000 (1 byte past the
// 1-gibabyte boundary) in a compatible database. SQLite never uses
@@ -29303,21 +29303,21 @@ var Xsqlite3BuiltinFunctions FuncDefHash /* sqlite3.c:21894: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:21935:20 */
+var Xsqlite3PendingByte int32 = 0x40000000 /* sqlite3.c:21944:20 */
// Tracing flags set by SQLITE_TESTCTRL_TRACEFLAGS.
-var Xsqlite3SelectTrace U32 = U32(0) /* sqlite3.c:21941:20 */
-var Xsqlite3WhereTrace U32 = U32(0) /* sqlite3.c:21942:20 */
+var Xsqlite3SelectTrace U32 = U32(0) /* sqlite3.c:21950:20 */
+var Xsqlite3WhereTrace U32 = U32(0) /* sqlite3.c:21951:20 */
// #include "opcodes.h"
// Properties of opcodes. The OPFLG_INITIALIZER macro is
// created by mkopcodeh.awk during compilation. Data is obtained
// from the comments following the "case OP_xxxx:" statements in
// the vdbe.c file.
-var Xsqlite3OpcodeProperty = [185]uint8{ /* 0 */ uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x00), uint8(0x10) /* 8 */, uint8(0x00), uint8(0x01), uint8(0x00), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x03), uint8(0x03) /* 16 */, uint8(0x01), uint8(0x01), uint8(0x03), uint8(0x12), uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x09) /* 24 */, uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x01), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x09) /* 32 */, uint8(0x09), uint8(0x09), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01) /* 40 */, uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x26), uint8(0x26), uint8(0x23), uint8(0x0b), uint8(0x01) /* 48 */, uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x03), uint8(0x0b), uint8(0x0b), uint8(0x0b), uint8(0x0b) /* 56 */, uint8(0x0b), uint8(0x0b), uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x01), uint8(0x01) /* 64 */, uint8(0x01), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x08), uint8(0x00), uint8(0x10) /* 72 */, uint8(0x10), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00) /* 80 */, uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x02) /* 88 */, uint8(0x00), uint8(0x00), uint8(0x12), uint8(0x1e), uint8(0x20), uint8(0x00), uint8(0x00), uint8(0x00) /* 96 */, uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x26), uint8(0x26) /* 104 */, uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26) /* 112 */, uint8(0x00), uint8(0x00), uint8(0x12), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00) /* 120 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00) /* 128 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00) /* 136 */, uint8(0x00), uint8(0x04), uint8(0x04), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x10) /* 144 */, uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 152 */, uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x06), uint8(0x10), uint8(0x00), uint8(0x04), uint8(0x1a) /* 160 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 168 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00) /* 176 */, uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 184 */, uint8(0x00)} /* sqlite3.c:21951: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:21960:36 */
// Name of the default collating sequence
-var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1069)) /* sqlite3.c:21956:27 */
+var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1069)) /* sqlite3.c:21965:27 */
// Standard typenames. These names must match the COLTYPE_* definitions.
// Adjust the SQLITE_N_STDTYPE value if adding or removing entries.
@@ -29333,7 +29333,7 @@ var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1069)) /* sqlite3.c:2195
// 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:21974:36 */
+var Xsqlite3StdTypeLen = [6]uint8{uint8(3), uint8(4), uint8(3), uint8(7), uint8(4), uint8(4)} /* sqlite3.c:21983:36 */
var Xsqlite3StdTypeAffinity = [6]int8{
int8(SQLITE_AFF_NUMERIC),
int8(SQLITE_AFF_BLOB),
@@ -29341,7 +29341,7 @@ var Xsqlite3StdTypeAffinity = [6]int8{
int8(SQLITE_AFF_INTEGER),
int8(SQLITE_AFF_REAL),
int8(SQLITE_AFF_TEXT),
-} /* sqlite3.c:21975:27 */
+} /* sqlite3.c:21984:27 */
var Xsqlite3StdTypeMap = [6]int8{
int8(0),
int8(SQLITE_BLOB),
@@ -29349,7 +29349,7 @@ var Xsqlite3StdTypeMap = [6]int8{
int8(SQLITE_INTEGER),
int8(SQLITE_FLOAT),
int8(SQLITE_TEXT),
-} /* sqlite3.c:21983:27 */
+} /* sqlite3.c:21992:27 */
var Xsqlite3StdType = [6]uintptr{
ts + 1076,
ts + 1080,
@@ -29357,7 +29357,7 @@ var Xsqlite3StdType = [6]uintptr{
ts + 1089,
ts + 1097,
ts + 1102,
-} /* sqlite3.c:21991:27 */
+} /* sqlite3.c:22000:27 */
//************* End of global.c *********************************************
//************* Begin file status.c *****************************************
@@ -29402,10 +29402,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:22065:23 */
+type Op = VdbeOp1 /* sqlite3.c:22074:23 */
// Boolean values
-type Bool = uint32 /* sqlite3.c:22070:18 */
+type Bool = uint32 /* sqlite3.c:22079:18 */
// Opaque type used by code in vdbesort.c
type VdbeSorter1 = struct {
@@ -29428,10 +29428,10 @@ type VdbeSorter1 = struct {
FtypeMask U8
F__ccgo_pad1 [3]byte
FaTask [1]SortSubtask
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// Opaque type used by code in vdbesort.c
-type VdbeSorter = VdbeSorter1 /* sqlite3.c:22073:27 */
+type VdbeSorter = VdbeSorter1 /* sqlite3.c:22082:27 */
// Elements of the linked list at Vdbe.pAuxData
type AuxData1 = struct {
@@ -29443,7 +29443,7 @@ type AuxData1 = struct {
} /* sqlite3.c:578:9 */
// Elements of the linked list at Vdbe.pAuxData
-type AuxData = AuxData1 /* sqlite3.c:22076:24 */
+type AuxData = AuxData1 /* sqlite3.c:22085:24 */
// Types of VDBE cursors
@@ -29497,7 +29497,7 @@ type VdbeCursor1 = struct {
// * A sorter
// * A virtual table
// * A one-row "pseudotable" stored in a single register
-type VdbeCursor = VdbeCursor1 /* sqlite3.c:22094:27 */
+type VdbeCursor = VdbeCursor1 /* sqlite3.c:22103:27 */
// A value for VdbeCursor.cacheStatus that means the cache is always invalid.
@@ -29562,7 +29562,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:22183:26 */
+type VdbeFrame = VdbeFrame1 /* sqlite3.c:22192:26 */
// Magic number for sanity checking on VdbeFrame objects
@@ -29576,7 +29576,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:22366:18 */ // Bit Field Type
+type Bft = uint32 /* sqlite3.c:22375:18 */ // Bit Field Type
// The ScanStatus object holds a single value for the
// sqlite3_stmt_scanstatus() interface.
@@ -29588,13 +29588,13 @@ type ScanStatus1 = struct {
FnEst LogEst
F__ccgo_pad1 [6]byte
FzName uintptr
-} /* sqlite3.c:22371:9 */
+} /* sqlite3.c:22380:9 */
// Bit Field Type
// The ScanStatus object holds a single value for the
// sqlite3_stmt_scanstatus() interface.
-type ScanStatus = ScanStatus1 /* sqlite3.c:22371:27 */
+type ScanStatus = ScanStatus1 /* sqlite3.c:22380:27 */
// The DblquoteStr object holds the text of a double-quoted
// string for a prepared statement. A linked list of these objects
@@ -29605,7 +29605,7 @@ type ScanStatus = ScanStatus1 /* sqlite3.c:22371:27 */
type DblquoteStr1 = struct {
FpNextStr uintptr
Fz [8]int8
-} /* sqlite3.c:22388:9 */
+} /* sqlite3.c:22397:9 */
// The DblquoteStr object holds the text of a double-quoted
// string for a prepared statement. A linked list of these objects
@@ -29613,7 +29613,7 @@ type DblquoteStr1 = struct {
// When computing a normalized SQL statement for an SQL statement, that
// list is consulted for each double-quoted identifier to see if the
// identifier should really be a string literal.
-type DblquoteStr = DblquoteStr1 /* sqlite3.c:22388:28 */
+type DblquoteStr = DblquoteStr1 /* sqlite3.c:22397: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
@@ -29628,7 +29628,7 @@ type DblquoteStr = DblquoteStr1 /* sqlite3.c:22388:28 */
type ValueList1 = struct {
FpCsr uintptr
FpOut uintptr
-} /* sqlite3.c:22516:9 */
+} /* sqlite3.c:22525: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
@@ -29640,20 +29640,20 @@ type ValueList1 = struct {
// and a subtype of 'p'. The sqlite3_vtab_in_first() and _next() interfaces
// know how to use this object to step through all the values in the
// right operand of the IN constraint.
-type ValueList = ValueList1 /* sqlite3.c:22516:26 */
+type ValueList = ValueList1 /* sqlite3.c:22525: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:22679:23 */
+type Sqlite3StatValueType = Sqlite3_int64 /* sqlite3.c:22688:23 */
type sqlite3StatType = struct {
FnowValue [10]Sqlite3StatValueType
FmxValue [10]Sqlite3StatValueType
-} /* sqlite3.c:22683:9 */
+} /* sqlite3.c:22692:9 */
-type Sqlite3StatType = sqlite3StatType /* sqlite3.c:22683:32 */
-var sqlite3Stat = sqlite3StatType{} /* sqlite3.c:22687:3 */
+type Sqlite3StatType = sqlite3StatType /* sqlite3.c:22692:32 */
+var sqlite3Stat = sqlite3StatType{} /* sqlite3.c:22696:3 */
// Elements of sqlite3Stat[] are protected by either the memory allocator
// mutex, or by the pcache1 mutex. The following array determines which.
@@ -29668,7 +29668,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:22693:19 */
+} /* sqlite3.c:22702:19 */
// The "wsdStat" macro will resolve to the status information
// state vector. If writable static data is unsupported on the target,
@@ -29678,7 +29678,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:22725:30: */
+func Xsqlite3StatusValue(tls *libc.TLS, op int32) Sqlite3_int64 { /* sqlite3.c:22734:30: */
return *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8))
}
@@ -29692,7 +29692,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:22745:21: */
+func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* sqlite3.c:22754: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)) {
@@ -29700,14 +29700,14 @@ func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* sqlite3.c:22745:21:
}
}
-func Xsqlite3StatusDown(tls *libc.TLS, op int32, N int32) { /* sqlite3.c:22756:21: */
+func Xsqlite3StatusDown(tls *libc.TLS, op int32, N int32) { /* sqlite3.c:22765: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:22770:21: */
+func Xsqlite3StatusHighwater(tls *libc.TLS, op int32, X int32) { /* sqlite3.c:22779:21: */
var newValue Sqlite3StatValueType
newValue = Sqlite3StatValueType(X)
@@ -29718,12 +29718,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:22790:16: */
+func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* sqlite3.c:22799:16: */
var pMutex uintptr
_ = pMutex
if op < 0 || op >= int32(uint64(unsafe.Sizeof([10]Sqlite3StatValueType{}))/uint64(unsafe.Sizeof(Sqlite3StatValueType(0)))) {
- return Xsqlite3MisuseError(tls, 22799)
+ return Xsqlite3MisuseError(tls, 22808)
}
if statMutex[op] != 0 {
pMutex = Xsqlite3Pcache1Mutex(tls)
@@ -29741,7 +29741,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:22815:16: */
+func Xsqlite3_status(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* sqlite3.c:22824:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -29757,7 +29757,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:22832:12: */
+func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:22841:12: */
var cnt U32 = U32(0)
for p != 0 {
p = (*LookasideSlot)(unsafe.Pointer(p)).FpNext
@@ -29767,7 +29767,7 @@ func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:22832:12:
}
// Count the number of slots of lookaside memory that are outstanding
-func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 { /* sqlite3.c:22844:20: */
+func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 { /* sqlite3.c:22853: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)
@@ -29779,7 +29779,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:22858:16: */
+func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* sqlite3.c:22867:16: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -30180,14 +30180,14 @@ type DateTime1 = struct {
FtzSet int8
FisError int8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:23118:9 */
+} /* sqlite3.c:23127: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:23118:25 */
+type DateTime = DateTime1 /* sqlite3.c:23127:25 */
// Convert zDate into one or more integers according to the conversion
// specifier zFormat.
@@ -30214,7 +30214,7 @@ type DateTime = DateTime1 /* sqlite3.c:23118: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:23162:12: */
+func getDigits(tls *libc.TLS, zDate uintptr, zFormat uintptr, va uintptr) int32 { /* sqlite3.c:23171:12: */
var ap Va_list
_ = ap
var cnt int32
@@ -30271,7 +30271,7 @@ end_getDigits:
return cnt
}
-var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* sqlite3.c:23165:20 */
+var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* sqlite3.c:23174:20 */
// Parse a timezone extension on the end of a date-time.
// The extension is of the form:
@@ -30287,7 +30287,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:23216:12: */
+func parseTimezone(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c:23225:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -30361,7 +30361,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:23252:12: */
+func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c:23261:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -30414,7 +30414,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:23292:13: */
+func datetimeError(tls *libc.TLS, p uintptr) { /* sqlite3.c:23301:13: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DateTime{})))
(*DateTime)(unsafe.Pointer(p)).FisError = int8(1)
}
@@ -30423,7 +30423,7 @@ func datetimeError(tls *libc.TLS, p uintptr) { /* sqlite3.c:23292: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:23303:13: */
+func computeJD(tls *libc.TLS, p uintptr) { /* sqlite3.c:23312:13: */
var Y int32
var M int32
var D int32
@@ -30479,7 +30479,7 @@ func computeJD(tls *libc.TLS, p uintptr) { /* sqlite3.c:23303: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:23353:12: */
+func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* sqlite3.c:23362:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -30530,7 +30530,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:23390:12: */
+func setDateTimeToCurrent(tls *libc.TLS, context uintptr, p uintptr) int32 { /* sqlite3.c:23399:12: */
(*DateTime)(unsafe.Pointer(p)).FiJD = Xsqlite3StmtCurrentTime(tls, context)
if (*DateTime)(unsafe.Pointer(p)).FiJD > int64(0) {
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1)
@@ -30545,7 +30545,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:23406:13: */
+func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* sqlite3.c:23415:13: */
(*DateTime)(unsafe.Pointer(p)).Fs = r
(*DateTime)(unsafe.Pointer(p)).FrawS = int8(1)
if r >= 0.0 && r < 5373484.5 {
@@ -30568,7 +30568,7 @@ func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* sqlite3.c:23406:
// (":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:23431:12: */
+func parseDateOrTime(tls *libc.TLS, context uintptr, zDate uintptr, p uintptr) int32 { /* sqlite3.c:23440:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -30597,12 +30597,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:23464:12: */
+func validJulianDay(tls *libc.TLS, iJD Sqlite3_int64) int32 { /* sqlite3.c:23473: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:23471:13: */
+func computeYMD(tls *libc.TLS, p uintptr) { /* sqlite3.c:23480:13: */
var Z int32
var A int32
var B int32
@@ -30647,7 +30647,7 @@ func computeYMD(tls *libc.TLS, p uintptr) { /* sqlite3.c:23471:13: */
}
// Compute the Hour, Minute, and Seconds from the julian day number.
-func computeHMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23500:13: */
+func computeHMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23509:13: */
var s int32
if (*DateTime)(unsafe.Pointer(p)).FvalidHMS != 0 {
return
@@ -30666,13 +30666,13 @@ func computeHMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23500:13: */
}
// Compute both YMD and HMS
-func computeYMD_HMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23519:13: */
+func computeYMD_HMS(tls *libc.TLS, p uintptr) { /* sqlite3.c:23528: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:23527:13: */
+func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* sqlite3.c:23536:13: */
(*DateTime)(unsafe.Pointer(p)).FvalidYMD = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidHMS = int8(0)
(*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0)
@@ -30702,7 +30702,7 @@ func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* sqlite3.c:23527:13: */
// 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:23567:12: */
+func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* sqlite3.c:23576:12: */
var rc int32
var pX uintptr
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
@@ -30727,7 +30727,7 @@ func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* sqlite3.c:235
}
// 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: */
+func toLocaltime(tls *libc.TLS, p uintptr, pCtx uintptr) int32 { /* sqlite3.c:23626:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -30767,7 +30767,7 @@ func toLocaltime(tls *libc.TLS, p uintptr, pCtx uintptr) int32 { /* sqlite3.c:23
(*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)).Fs = float64((*tm)(unsafe.Pointer(bp)).Ftm_sec) + float64((*DateTime)(unsafe.Pointer(p)).FiJD%int64(1000))*0.001
(*DateTime)(unsafe.Pointer(p)).FvalidYMD = int8(1)
(*DateTime)(unsafe.Pointer(p)).FvalidHMS = int8(1)
(*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(0)
@@ -30795,7 +30795,7 @@ var aXformType = [6]struct {
{FnName: U8(3), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1187 /* "day\x00\x00\x00" */)), FrLimit: 5373485.0, FrXform: 86400.0},
{FnName: U8(5), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1194 /* "month\x00" */)), FrLimit: 176546.0, FrXform: 2592000.0},
{FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1201 /* "year\x00\x00" */)), FrLimit: 14713.0, FrXform: 31536000.0},
-} /* sqlite3.c:23681:3 */
+} /* sqlite3.c:23690:3 */
// Process a modifier to a date-time stamp. The modifiers are
// as follows:
@@ -30819,7 +30819,7 @@ var aXformType = [6]struct {
// is in a system call (i.e. localtime()), then an error message is written
// to context pCtx. If the error is an unrecognized modifier, no error is
// written to pCtx.
-func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr, idx int32) int32 { /* sqlite3.c:23714:12: */
+func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr, idx int32) int32 { /* sqlite3.c:23723:12: */
bp := tls.Alloc(104)
defer tls.Free(104)
@@ -31145,7 +31145,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:23989:12: */
+func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr) int32 { /* sqlite3.c:23998:12: */
var i int32
var n int32
var z uintptr
@@ -31186,7 +31186,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:24033:13: */
+func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24042:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -31202,7 +31202,7 @@ func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /
//
// Return the number of seconds (including fractional seconds) since
// the unix epoch of 1970-01-01 00:00:00 GMT.
-func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24051:13: */
+func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24060:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -31217,7 +31217,7 @@ func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /
// datetime( TIMESTRING, MOD, MOD, ...)
//
// Return YYYY-MM-DD HH:MM:SS
-func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24068:13: */
+func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24077:13: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -31266,7 +31266,7 @@ func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /*
// time( TIMESTRING, MOD, MOD, ...)
//
// Return HH:MM:SS
-func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24115:13: */
+func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24124:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -31294,7 +31294,7 @@ func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sql
// date( TIMESTRING, MOD, MOD, ...)
//
// Return YYYY-MM-DD
-func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24144:13: */
+func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24153:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -31346,7 +31346,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:24195:13: */
+func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:24204:13: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -31490,7 +31490,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:24302:13: */
+func ctimeFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:24311:13: */
_ = NotUsed
_ = NotUsed2
timeFunc(tls, context, 0, uintptr(0))
@@ -31499,7 +31499,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:24316:13: */
+func cdateFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:24325:13: */
_ = NotUsed
_ = NotUsed2
dateFunc(tls, context, 0, uintptr(0))
@@ -31508,7 +31508,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:24330:13: */
+func ctimestampFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:24339:13: */
_ = NotUsed
_ = NotUsed2
datetimeFunc(tls, context, 0, uintptr(0))
@@ -31517,7 +31517,7 @@ func ctimestampFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uint
// This function registered all of the above C functions as SQL
// functions. This should be the only routine in this file with
// external linkage.
-func Xsqlite3RegisterDateTimeFunctions(tls *libc.TLS) { /* sqlite3.c:24390:21: */
+func Xsqlite3RegisterDateTimeFunctions(tls *libc.TLS) { /* sqlite3.c:24399:21: */
Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aDateTimeFuncs)), int32(uint64(unsafe.Sizeof(aDateTimeFuncs))/uint64(unsafe.Sizeof(FuncDef{}))))
}
@@ -31530,7 +31530,7 @@ var aDateTimeFuncs = [9]FuncDef{
{FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1333},
{FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1342},
{FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1355},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1373}} /* sqlite3.c:24391:18 */
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1373}} /* sqlite3.c:24400:18 */
//************* End of date.c ***********************************************
//************* Begin file os.c *********************************************
@@ -31582,7 +31582,7 @@ var aDateTimeFuncs = [9]FuncDef{
// of the sqlite3_file object. This is mostly just syntactic sugar. All
// of this would be completely automatic if SQLite were coded using
// C++ instead of plain old C.
-func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* sqlite3.c:24494:21: */
+func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* sqlite3.c:24503:21: */
if (*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods != 0 {
(*struct {
f func(*libc.TLS, uintptr) int32
@@ -31591,27 +31591,27 @@ func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* sqlite3.c:24494:21: */
}
}
-func Xsqlite3OsRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* sqlite3.c:24500:20: */
+func Xsqlite3OsRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* sqlite3.c:24509: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:24504:20: */
+func Xsqlite3OsWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* sqlite3.c:24513: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:24508:20: */
+func Xsqlite3OsTruncate(tls *libc.TLS, id uintptr, size I64) int32 { /* sqlite3.c:24517: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:24511:20: */
+func Xsqlite3OsSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:24520:20: */
if flags != 0 {
return (*struct {
@@ -31621,27 +31621,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:24515:20: */
+func Xsqlite3OsFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:24524: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:24519:20: */
+func Xsqlite3OsLock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* sqlite3.c:24528: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:24523:20: */
+func Xsqlite3OsUnlock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* sqlite3.c:24532: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:24526:20: */
+func Xsqlite3OsCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* sqlite3.c:24535:20: */
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -31654,7 +31654,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:24539:20: */
+func Xsqlite3OsFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:24548:20: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) {
return SQLITE_NOTFOUND
}
@@ -31663,7 +31663,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:24567:21: */
+func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr) { /* sqlite3.c:24576:21: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods != 0 {
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -31671,7 +31671,7 @@ func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr
}
}
-func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24571:20: */
+func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24580:20: */
var xSectorSize uintptr = (*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxSectorSize
return func() int32 {
if xSectorSize != 0 {
@@ -31683,7 +31683,7 @@ func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24571:
}()
}
-func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24575:20: */
+func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:24584:20: */
if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) {
return 0
}
@@ -31692,23 +31692,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:24580:20: */
+func Xsqlite3OsShmLock(tls *libc.TLS, id uintptr, offset int32, n int32, flags int32) int32 { /* sqlite3.c:24589: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:24583:21: */
+func Xsqlite3OsShmBarrier(tls *libc.TLS, id uintptr) { /* sqlite3.c:24592: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:24586:20: */
+func Xsqlite3OsShmUnmap(tls *libc.TLS, id uintptr, deleteFlag int32) int32 { /* sqlite3.c:24595: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:24589:20: */
+func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExtend int32, pp uintptr) int32 { /* sqlite3.c:24598:20: */
return (*struct {
f func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32
@@ -31716,14 +31716,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:24603:20: */
+func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* sqlite3.c:24612: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:24607:20: */
+func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* sqlite3.c:24616: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)
@@ -31731,7 +31731,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:24625:20: */
+func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pFlagsOut uintptr) int32 { /* sqlite3.c:24634:20: */
var rc int32
// 0x87f7f is a mask of SQLITE_OPEN_ flags that are valid to be passed
@@ -31745,7 +31745,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:24642:20: */
+func Xsqlite3OsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* sqlite3.c:24651:20: */
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDelete != uintptr(0) {
return (*struct {
@@ -31755,14 +31755,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:24647:20: */
+func Xsqlite3OsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* sqlite3.c:24656: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:24656:20: */
+func Xsqlite3OsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* sqlite3.c:24665:20: */
*(*int8)(unsafe.Pointer(zPathOut)) = int8(0)
return (*struct {
@@ -31770,7 +31770,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:24667:21: */
+func Xsqlite3OsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* sqlite3.c:24676:21: */
// tag-20210611-1
return (*struct {
@@ -31778,25 +31778,25 @@ 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:24672:21: */
+func Xsqlite3OsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) { /* sqlite3.c:24681: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:24675:21: */
+func Xsqlite3OsDlSym(tls *libc.TLS, pVfs uintptr, pHdle uintptr, zSym uintptr) uintptr { /* sqlite3.c:24684: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:24678:21: */
+func Xsqlite3OsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:24687: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:24682:20: */
+func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* sqlite3.c:24691:20: */
if Xsqlite3Config.FiPrngSeed != 0 {
libc.Xmemset(tls, zBufOut, 0, uint64(nByte))
if nByte > int32(unsafe.Sizeof(uint32(0))) {
@@ -31813,13 +31813,13 @@ func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uint
}
-func Xsqlite3OsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* sqlite3.c:24693:20: */
+func Xsqlite3OsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* sqlite3.c:24702: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:24696:20: */
+func Xsqlite3OsGetLastError(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:24705:20: */
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxGetLastError != 0 {
return (*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -31828,7 +31828,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:24699:20: */
+func Xsqlite3OsCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* sqlite3.c:24708:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -31853,7 +31853,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:24717:20: */
+func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uintptr, flags int32, pOutFlags uintptr) int32 { /* sqlite3.c:24726:20: */
var rc int32
var pFile uintptr
pFile = Xsqlite3MallocZero(tls, uint64((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile))
@@ -31873,7 +31873,7 @@ func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uin
return rc
}
-func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:24742:21: */
+func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:24751:21: */
Xsqlite3OsClose(tls, pFile)
Xsqlite3_free(tls, pFile)
@@ -31883,7 +31883,7 @@ func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:24742: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:24754:20: */
+func Xsqlite3OsInit(tls *libc.TLS) int32 { /* sqlite3.c:24763:20: */
var p uintptr = Xsqlite3_malloc(tls, 10)
if p == uintptr(0) {
return SQLITE_NOMEM
@@ -31893,11 +31893,11 @@ func Xsqlite3OsInit(tls *libc.TLS) int32 { /* sqlite3.c:24754:20: */
}
// The list of all registered VFS implementations.
-var vfsList uintptr = uintptr(0) /* sqlite3.c:24764:20 */
+var vfsList uintptr = uintptr(0) /* sqlite3.c:24773: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:24771:24: */
+func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* sqlite3.c:24780:24: */
var pVfs uintptr = uintptr(0)
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
@@ -31919,7 +31919,7 @@ func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* sqlite3.c:24771
}
// Unlink a VFS from the linked list
-func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* sqlite3.c:24795:13: */
+func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* sqlite3.c:24804:13: */
if pVfs == uintptr(0) {
// No-op
@@ -31939,7 +31939,7 @@ func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* sqlite3.c:24795: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:24817:16: */
+func Xsqlite3_vfs_register(tls *libc.TLS, pVfs uintptr, makeDflt int32) int32 { /* sqlite3.c:24826:16: */
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -31962,7 +31962,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:24845:16: */
+func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:24854:16: */
var mutex uintptr
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -32007,7 +32007,7 @@ func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:2
type BenignMallocHooks1 = struct {
FxBenignBegin uintptr
FxBenignEnd uintptr
-} /* sqlite3.c:24893:9 */
+} /* sqlite3.c:24902:9 */
//************* End of os.c *************************************************
//************* Begin file fault.c ******************************************
@@ -32038,8 +32038,8 @@ type BenignMallocHooks1 = struct {
// #include "sqliteInt.h"
// Global variables.
-type BenignMallocHooks = BenignMallocHooks1 /* sqlite3.c:24893:34 */
-var sqlite3Hooks = BenignMallocHooks1{} /* sqlite3.c:24897:3 */
+type BenignMallocHooks = BenignMallocHooks1 /* sqlite3.c:24902:34 */
+var sqlite3Hooks = BenignMallocHooks1{} /* sqlite3.c:24906:3 */
// The "wsdHooks" macro will resolve to the appropriate BenignMallocHooks
// structure. If writable static data is unsupported on the target,
@@ -32049,7 +32049,7 @@ var sqlite3Hooks = BenignMallocHooks1{} /* sqlite3.c:24897:3 */
// Register hooks to call when sqlite3BeginBenignMalloc() and
// sqlite3EndBenignMalloc() are called, respectively.
-func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd uintptr) { /* sqlite3.c:24919:21: */
+func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd uintptr) { /* sqlite3.c:24928:21: */
sqlite3Hooks.FxBenignBegin = xBenignBegin
sqlite3Hooks.FxBenignEnd = xBenignEnd
@@ -32058,14 +32058,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:24933:21: */
+func Xsqlite3BeginBenignMalloc(tls *libc.TLS) { /* sqlite3.c:24942: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:24939:21: */
+func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* sqlite3.c:24948:21: */
if sqlite3Hooks.FxBenignEnd != 0 {
(*struct{ f func(*libc.TLS) })(unsafe.Pointer(&struct{ uintptr }{sqlite3Hooks.FxBenignEnd})).f(tls)
@@ -32167,7 +32167,7 @@ func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* sqlite3.c:24939: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:25139:13: */
+func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:25148:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -32187,13 +32187,13 @@ func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:25139: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:25173:13: */
+func sqlite3MemFree(tls *libc.TLS, pPrior uintptr) { /* sqlite3.c:25182:13: */
libc.Xfree(tls, pPrior)
}
// Report the allocated size of a prior return from xMalloc()
// or xRealloc().
-func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* sqlite3.c:25188:12: */
+func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* sqlite3.c:25197:12: */
return int32(libc.X_msize(tls, pPrior))
}
@@ -32206,7 +32206,7 @@ func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* sqlite3.c:25188: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:25211:13: */
+func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /* sqlite3.c:25220:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -32221,18 +32221,18 @@ func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /*
}
// Round up a request size to the next valid allocation size.
-func sqlite3MemRoundup(tls *libc.TLS, n int32) int32 { /* sqlite3.c:25243:12: */
+func sqlite3MemRoundup(tls *libc.TLS, n int32) int32 { /* sqlite3.c:25252:12: */
return (n + 7) & libc.CplInt32(7)
}
// Initialize this module.
-func sqlite3MemInit(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:25250:12: */
+func sqlite3MemInit(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:25259:12: */
_ = NotUsed
return SQLITE_OK
}
// Deinitialize this module.
-func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:25277:13: */
+func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:25286:13: */
_ = NotUsed
return
}
@@ -32241,7 +32241,7 @@ func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:25277: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:25288:21: */
+func Xsqlite3MemSetDefault(tls *libc.TLS) { /* sqlite3.c:25297:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -32256,7 +32256,7 @@ var defaultMethods = Sqlite3_mem_methods{
FxRoundup: 0,
FxInit: 0,
FxShutdown: 0,
-} /* sqlite3.c:25289:36 */
+} /* sqlite3.c:25298:36 */
//************* End of mem1.c ***********************************************
//************* Begin file mem2.c *******************************************
@@ -32390,7 +32390,7 @@ var defaultMethods = Sqlite3_mem_methods{
// #include "sqliteInt.h"
// Initialize the mutex system.
-func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* sqlite3.c:27324:20: */
+func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* sqlite3.c:27333: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
@@ -32424,7 +32424,7 @@ func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* sqlite3.c:27324:20: */
// Shutdown the mutex system. This call frees resources allocated by
// sqlite3MutexInit().
-func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27370:20: */
+func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27379: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)
@@ -32434,7 +32434,7 @@ func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27370: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:27386:26: */
+func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27395:26: */
if id <= SQLITE_MUTEX_RECURSIVE && Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -32447,7 +32447,7 @@ func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27386:
})(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexAlloc})).f(tls, id)
}
-func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27395:30: */
+func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27404:30: */
if !(int32(Xsqlite3Config.FbCoreMutex) != 0) {
return uintptr(0)
}
@@ -32458,7 +32458,7 @@ func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27395:30
}
// Free a dynamic mutex.
-func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:27407:17: */
+func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:27416:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexFree})).f(tls, p)
@@ -32467,7 +32467,7 @@ func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:27407: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:27418:17: */
+func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27427:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexEnter})).f(tls, p)
@@ -32476,7 +32476,7 @@ func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27418: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:27429:16: */
+func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27438:16: */
var rc int32 = SQLITE_OK
if p != 0 {
@@ -32491,7 +32491,7 @@ func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27429: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:27444:17: */
+func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27453:17: */
if p != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexLeave})).f(tls, p)
@@ -32530,40 +32530,40 @@ func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27444:17: */
// Stub routines for all mutex methods.
//
// This routines provide no mutual exclusion or error checking.
-func noopMutexInit(tls *libc.TLS) int32 { /* sqlite3.c:27507:12: */
+func noopMutexInit(tls *libc.TLS) int32 { /* sqlite3.c:27516:12: */
return SQLITE_OK
}
-func noopMutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27508:12: */
+func noopMutexEnd(tls *libc.TLS) int32 { /* sqlite3.c:27517:12: */
return SQLITE_OK
}
-func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27509:22: */
+func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:27518:22: */
_ = id
return uintptr(8)
}
-func noopMutexFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:27513:13: */
+func noopMutexFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:27522:13: */
_ = p
return
}
-func noopMutexEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27514:13: */
+func noopMutexEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:27523:13: */
_ = p
return
}
-func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27515:12: */
+func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:27524:12: */
_ = p
return SQLITE_OK
}
-func noopMutexLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27519:13: */
+func noopMutexLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:27528:13: */
_ = p
return
}
-func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27521:44: */
+func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27530:44: */
return uintptr(unsafe.Pointer(&sMutex))
}
@@ -32576,11 +32576,11 @@ var sMutex = Sqlite3_mutex_methods{
FxMutexEnter: 0,
FxMutexTry: 0,
FxMutexLeave: 0,
-} /* sqlite3.c:27522:38 */
+} /* sqlite3.c:27531: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:27680:44: */
+func Xsqlite3DefaultMutex(tls *libc.TLS) uintptr { /* sqlite3.c:27689:44: */
return Xsqlite3NoopMutex(tls)
}
@@ -63319,7 +63319,7 @@ type REGISTERWORDENUMPROCW = uintptr /* imm.h:186:15 */
// 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:28601:16: */
+func Xsqlite3_release_memory(tls *libc.TLS, n int32) int32 { /* sqlite3.c:28610:16: */
return Xsqlite3PcacheReleaseMemory(tls, n)
}
@@ -63332,22 +63332,22 @@ type Mem0Global = struct {
FhardLimit Sqlite3_int64
FnearlyFull int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:28623:19 */
+} /* sqlite3.c:28632: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:28633:3 */
+var mem0 = Mem0Global{} /* sqlite3.c:28642:3 */
// Return the memory allocator mutex. sqlite3_status() needs it.
-func Xsqlite3MallocMutex(tls *libc.TLS) uintptr { /* sqlite3.c:28640:30: */
+func Xsqlite3MallocMutex(tls *libc.TLS) uintptr { /* sqlite3.c:28649: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:28650:16: */
+func Xsqlite3_memory_alarm(tls *libc.TLS, xCallback uintptr, pArg uintptr, iThreshold Sqlite3_int64) int32 { /* sqlite3.c:28659:16: */
_ = xCallback
_ = pArg
_ = iThreshold
@@ -63363,7 +63363,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:28673:26: */
+func Xsqlite3_soft_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* sqlite3.c:28682:26: */
var priorLimit Sqlite3_int64
var excess Sqlite3_int64
var nUsed Sqlite3_int64
@@ -63391,7 +63391,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:28698:17: */
+func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* sqlite3.c:28707:17: */
if n < 0 {
n = 0
}
@@ -63408,7 +63408,7 @@ func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* sqlite3.c:28698: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:28715:26: */
+func Xsqlite3_hard_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* sqlite3.c:28724:26: */
var priorLimit Sqlite3_int64
var rc int32 = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -63427,7 +63427,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:28737:20: */
+func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* sqlite3.c:28746:20: */
var rc int32
if Xsqlite3Config.Fm.FxMalloc == uintptr(0) {
Xsqlite3MemSetDefault(tls)
@@ -63450,12 +63450,12 @@ func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* sqlite3.c:28737: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:28758:20: */
+func Xsqlite3HeapNearlyFull(tls *libc.TLS) int32 { /* sqlite3.c:28767:20: */
return libc.AtomicLoadNInt32(uintptr(unsafe.Pointer(&mem0))+24, 0)
}
// Deinitialize the memory allocation subsystem.
-func Xsqlite3MallocEnd(tls *libc.TLS) { /* sqlite3.c:28765:21: */
+func Xsqlite3MallocEnd(tls *libc.TLS) { /* sqlite3.c:28774:21: */
if Xsqlite3Config.Fm.FxShutdown != 0 {
(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxShutdown})).f(tls, Xsqlite3Config.Fm.FpAppData)
}
@@ -63463,7 +63463,7 @@ func Xsqlite3MallocEnd(tls *libc.TLS) { /* sqlite3.c:28765:21: */
}
// Return the amount of memory currently checked out.
-func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* sqlite3.c:28775:26: */
+func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* sqlite3.c:28784:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -63478,7 +63478,7 @@ func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* sqlite3.c:28775: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:28786:26: */
+func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { /* sqlite3.c:28795:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -63491,7 +63491,7 @@ func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { /
}
// Trigger the alarm
-func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* sqlite3.c:28795:13: */
+func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* sqlite3.c:28804:13: */
if mem0.FalarmThreshold <= int64(0) {
return
}
@@ -63502,7 +63502,7 @@ func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* sqlite3.c:28795: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:28806:13: */
+func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* sqlite3.c:28815:13: */
var p uintptr
var nFull int32
@@ -63549,7 +63549,7 @@ func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* sqlite3.c:28806: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:28855:21: */
+func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* sqlite3.c:28864:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -63578,7 +63578,7 @@ func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* sqlite3.c:28855: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:28880:17: */
+func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* sqlite3.c:28889:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -63588,7 +63588,7 @@ func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* sqlite3.c:28880:17: */
return Xsqlite3Malloc(tls, uint64(n))
}
-func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* sqlite3.c:28886:17: */
+func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* sqlite3.c:28895:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -63596,27 +63596,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:28897:12: */
+func isLookaside(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:28906: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:28908:20: */
+func Xsqlite3MallocSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:28917: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:28912:12: */
+func lookasideMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:28921: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:28919:20: */
+func Xsqlite3DbMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:28928:20: */
if db != 0 {
if Uptr(p) < Uptr((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpEnd) {
@@ -63635,7 +63635,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:28948:27: */
+func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* sqlite3.c:28957:27: */
if p != 0 {
return uint64((*struct {
@@ -63646,7 +63646,7 @@ func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* sqlite3.c:2894
}
// Free memory previously obtained from sqlite3Malloc().
-func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:28957:17: */
+func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:28966:17: */
if p == uintptr(0) {
return
} // IMP: R-49053-54554
@@ -63664,14 +63664,14 @@ func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* sqlite3.c:28957: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:28976:29: */
+func measureAllocationSize(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28985: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:28985:21: */
+func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28994:21: */
if db != 0 {
if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed != 0 {
@@ -63697,7 +63697,7 @@ func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:28985
Xsqlite3_free(tls, p)
}
-func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:29022:21: */
+func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:29031:21: */
if p != 0 {
Xsqlite3DbFreeNN(tls, db, p)
@@ -63705,7 +63705,7 @@ func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:29022:2
}
// Change the size of an existing memory allocation
-func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* sqlite3.c:29030:21: */
+func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* sqlite3.c:29039:21: */
var nOld int32
var nNew int32
var nDiff int32
@@ -63766,7 +63766,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:29089:17: */
+func Xsqlite3_realloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* sqlite3.c:29098:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -63776,7 +63776,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:29096:17: */
+func Xsqlite3_realloc64(tls *libc.TLS, pOld uintptr, n Sqlite3_uint64) uintptr { /* sqlite3.c:29105:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -63784,7 +63784,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:29107:21: */
+func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* sqlite3.c:29116:21: */
var p uintptr = Xsqlite3Malloc(tls, n)
if p != 0 {
libc.Xmemset(tls, p, 0, n)
@@ -63794,7 +63794,7 @@ func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* sqlite3.c:29107: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:29119:21: */
+func Xsqlite3DbMallocZero(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:29128:21: */
var p uintptr
p = Xsqlite3DbMallocRaw(tls, db, n)
@@ -63806,7 +63806,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:29131:29: */
+func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:29140:29: */
var p uintptr
p = Xsqlite3Malloc(tls, n)
@@ -63837,7 +63837,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:29163:21: */
+func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:29172:21: */
var p uintptr
if db != 0 {
return Xsqlite3DbMallocRawNN(tls, db, n)
@@ -63847,7 +63847,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:29170:21: */
+func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* sqlite3.c:29179:21: */
var pBuf uintptr
if n > U64((*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz) {
@@ -63885,7 +63885,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:29226:21: */
+func Xsqlite3DbRealloc(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* sqlite3.c:29235:21: */
if p == uintptr(0) {
return Xsqlite3DbMallocRawNN(tls, db, n)
@@ -63905,7 +63905,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:29242:29: */
+func dbReallocFinish(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* sqlite3.c:29251:29: */
var pNew uintptr = uintptr(0)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 {
@@ -63929,7 +63929,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:29272:21: */
+func Xsqlite3DbReallocOrFree(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* sqlite3.c:29281:21: */
var pNew uintptr
pNew = Xsqlite3DbRealloc(tls, db, p, n)
if !(pNew != 0) {
@@ -63943,7 +63943,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:29288:21: */
+func Xsqlite3DbStrDup(tls *libc.TLS, db uintptr, z uintptr) uintptr { /* sqlite3.c:29297:21: */
var zNew uintptr
var n Size_t
if z == uintptr(0) {
@@ -63957,7 +63957,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:29301:21: */
+func Xsqlite3DbStrNDup(tls *libc.TLS, db uintptr, z uintptr, n U64) uintptr { /* sqlite3.c:29310:21: */
var zNew uintptr
if z != 0 {
@@ -63975,7 +63975,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:29319:21: */
+func Xsqlite3DbSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:29328:21: */
var n int32
for int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zStart)))])&0x01 != 0 {
zStart++
@@ -63988,7 +63988,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:29330:21: */
+func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* sqlite3.c:29339:21: */
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pz)))
*(*uintptr)(unsafe.Pointer(pz)) = Xsqlite3DbStrDup(tls, db, zNew)
}
@@ -64004,7 +64004,7 @@ func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /*
//
// and thereby avoid unnecessary stack frame allocations for the overwhelmingly
// common case where no OOM occurs.
-func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:29348:21: */
+func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:29357: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 {
@@ -64025,7 +64025,7 @@ func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:29348:21
//
// The memory allocator is not restarted if there are running
// VDBEs.
-func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:29370:21: */
+func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:29379: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)
@@ -64041,7 +64041,7 @@ func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:29370: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:29382:28: */
+func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* sqlite3.c:29391:28: */
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || rc == SQLITE_IOERR|int32(12)<<8 {
Xsqlite3OomClear(tls, db)
Xsqlite3Error(tls, db, SQLITE_NOMEM)
@@ -64060,7 +64060,7 @@ func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* sqlite3.c:29
//
// 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:29403:20: */
+func Xsqlite3ApiExit(tls *libc.TLS, db uintptr, rc int32) int32 { /* sqlite3.c:29412: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().
@@ -64089,7 +64089,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:29461:23 */
+type EtByte = uint8 /* sqlite3.c:29470:23 */
// Each builtin conversion character (ex: the 'd' in "%d") is described
// by an instance of the following structure
@@ -64100,18 +64100,18 @@ type et_info = struct {
Ftype EtByte
Fcharset EtByte
Fprefix EtByte
-} /* sqlite3.c:29467:9 */
+} /* sqlite3.c:29476: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:29474:3 */
+type Et_info = et_info /* sqlite3.c:29483:3 */
// Allowed values for et_info.flags
// The following table is searched linearly, so it is good to put the
// most frequently used conversion types first.
-var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1474)) /* sqlite3.c:29487:19 */
-var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1507)) /* sqlite3.c:29488:19 */
+var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1474)) /* sqlite3.c:29496:19 */
+var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1507)) /* sqlite3.c:29497: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)},
@@ -64138,7 +64138,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:29489:22 */
+} /* sqlite3.c:29498:22 */
// Notes:
//
@@ -64149,7 +64149,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:29526:21 */
+} /* sqlite3.c:29535:21 */
// If SQLITE_OMIT_FLOATING_POINT is defined, then none of the floating point
// conversions will work.
@@ -64164,7 +64164,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:29549:13: */
+func et_getdigit(tls *libc.TLS, val uintptr, cnt uintptr) int8 { /* sqlite3.c:29558:13: */
var digit int32
var d float64
if *(*int32)(unsafe.Pointer(cnt)) <= 0 {
@@ -64179,7 +64179,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:29565:21: */
+func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* sqlite3.c:29574:21: */
(*StrAccum)(unsafe.Pointer(p)).FaccError = eError
if (*StrAccum)(unsafe.Pointer(p)).FmxAlloc != 0 {
@@ -64191,21 +64191,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:29575:22: */
+func getIntArg(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* sqlite3.c:29584: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:29579:15: */
+func getDoubleArg(tls *libc.TLS, p uintptr) float64 { /* sqlite3.c:29588: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:29583:13: */
+func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:29592:13: */
if (*PrintfArguments)(unsafe.Pointer(p)).FnArg <= (*PrintfArguments)(unsafe.Pointer(p)).FnUsed {
return uintptr(0)
}
@@ -64219,7 +64219,7 @@ func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:29583: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:29597:13: */
+func printfTempBuf(tls *libc.TLS, pAccum uintptr, n Sqlite3_int64) uintptr { /* sqlite3.c:29606:13: */
var z uintptr
if (*Sqlite3_str)(unsafe.Pointer(pAccum)).FaccError != 0 {
return uintptr(0)
@@ -64241,7 +64241,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:29630:17: */
+func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_list) { /* sqlite3.c:29639:17: */
bp := tls.Alloc(108)
defer tls.Free(108)
@@ -65730,7 +65730,7 @@ __5:
// End for loop over the format string
}
-var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1551)) /* sqlite3.c:29893:29 */
+var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1551)) /* sqlite3.c:29902:29 */
// End of function
@@ -65738,7 +65738,7 @@ var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1551)) /* sqlite3.c:29893:29 */
// 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: */
+func Xsqlite3RecordErrorByteOffset(tls *libc.TLS, db uintptr, z uintptr) { /* sqlite3.c:30355:21: */
var pParse uintptr
var zText uintptr
var zEnd uintptr
@@ -65765,7 +65765,7 @@ func Xsqlite3RecordErrorByteOffset(tls *libc.TLS, db uintptr, z uintptr) { /* sq
// 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: */
+func Xsqlite3RecordErrorOffsetOfExpr(tls *libc.TLS, db uintptr, pExpr uintptr) { /* sqlite3.c:30376: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
}
@@ -65780,7 +65780,7 @@ func Xsqlite3RecordErrorOffsetOfExpr(tls *libc.TLS, db uintptr, pExpr uintptr) {
//
// Return the number of bytes of text that StrAccum is able to accept
// after the attempted enlargement. The value returned might be zero.
-func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* sqlite3.c:30382:20: */
+func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* sqlite3.c:30391:20: */
var zNew uintptr
// Only called if really needed
if (*StrAccum)(unsafe.Pointer(p)).FaccError != 0 {
@@ -65834,7 +65834,7 @@ func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* sqlit
}
// 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:30432:17: */
+func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* sqlite3.c:30441:17: */
if I64((*Sqlite3_str)(unsafe.Pointer(p)).FnChar)+I64(N) >= I64((*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc) && libc.AssignInt32(&N, Xsqlite3StrAccumEnlarge(tls, p, N)) <= 0 {
return
@@ -65850,7 +65850,7 @@ 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:30448:29: */
+func enlargeAndAppend(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* sqlite3.c:30457: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))
@@ -65860,7 +65860,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:30460:17: */
+func Xsqlite3_str_append(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* sqlite3.c:30469:17: */
if (*Sqlite3_str)(unsafe.Pointer(p)).FnChar+U32(N) >= (*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc {
enlargeAndAppend(tls, p, z, N)
@@ -65872,14 +65872,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:30477:17: */
+func Xsqlite3_str_appendall(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:30486: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:30487:29: */
+func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30496:29: */
var zText uintptr
zText = Xsqlite3DbMallocRaw(tls, (*StrAccum)(unsafe.Pointer(p)).Fdb, uint64((*StrAccum)(unsafe.Pointer(p)).FnChar+U32(1)))
@@ -65893,7 +65893,7 @@ func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:3048
return zText
}
-func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30500:21: */
+func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30509: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) {
@@ -65905,7 +65905,7 @@ func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:305
// 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:30514:21: */
+func Xsqlite3ResultStrAccum(tls *libc.TLS, pCtx uintptr, p uintptr) { /* sqlite3.c:30523: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)
@@ -65923,10 +65923,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:30532:20 */
+var sqlite3OomStr = Sqlite3_str{FaccError: U8(SQLITE_NOMEM)} /* sqlite3.c:30541:20 */
// Finalize a string created using sqlite3_str_new().
-func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30538:17: */
+func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30547:17: */
var z uintptr
if p != uintptr(0) && p != uintptr(unsafe.Pointer(&sqlite3OomStr)) {
z = Xsqlite3StrAccumFinish(tls, p)
@@ -65938,7 +65938,7 @@ func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30538:
}
// Return any error code associated with p
-func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30550:16: */
+func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30559:16: */
if p != 0 {
return int32((*Sqlite3_str)(unsafe.Pointer(p)).FaccError)
}
@@ -65946,7 +65946,7 @@ func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30550:1
}
// Return the current length of p in bytes
-func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30555:16: */
+func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30564:16: */
if p != 0 {
return int32((*Sqlite3_str)(unsafe.Pointer(p)).FnChar)
}
@@ -65954,7 +65954,7 @@ func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:30555:16
}
// Return the current value for p
-func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30560:17: */
+func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30569:17: */
if p == uintptr(0) || (*Sqlite3_str)(unsafe.Pointer(p)).FnChar == U32(0) {
return uintptr(0)
}
@@ -65963,7 +65963,7 @@ func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:30560:1
}
// Reset an StrAccum string. Reclaim all malloced memory.
-func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* sqlite3.c:30569:17: */
+func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* sqlite3.c:30578: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))
@@ -65985,7 +65985,7 @@ func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* sqlite3.c:30569: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:30593:21: */
+func Xsqlite3StrAccumInit(tls *libc.TLS, p uintptr, db uintptr, zBase uintptr, n int32, mx int32) { /* sqlite3.c:30602:21: */
(*StrAccum)(unsafe.Pointer(p)).FzText = zBase
(*StrAccum)(unsafe.Pointer(p)).Fdb = db
(*StrAccum)(unsafe.Pointer(p)).FnAlloc = U32(n)
@@ -65996,7 +65996,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:30604:24: */
+func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:30613:24: */
var p uintptr = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3_str{})))
if p != 0 {
Xsqlite3StrAccumInit(tls, p, uintptr(0), uintptr(0), 0,
@@ -66014,7 +66014,7 @@ func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:30604: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:30619:21: */
+func Xsqlite3VMPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, ap Va_list) uintptr { /* sqlite3.c:30628:21: */
bp := tls.Alloc(102)
defer tls.Free(102)
@@ -66036,7 +66036,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:30639:21: */
+func Xsqlite3MPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, va uintptr) uintptr { /* sqlite3.c:30648:21: */
var ap Va_list
_ = ap
var z uintptr
@@ -66048,7 +66048,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:30652:17: */
+func Xsqlite3_vmprintf(tls *libc.TLS, zFormat uintptr, ap Va_list) uintptr { /* sqlite3.c:30661:17: */
bp := tls.Alloc(102)
defer tls.Free(102)
@@ -66068,7 +66068,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:30676:17: */
+func Xsqlite3_mprintf(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* sqlite3.c:30685:17: */
var ap Va_list
_ = ap
var z uintptr
@@ -66092,7 +66092,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:30701:17: */
+func Xsqlite3_vsnprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, ap Va_list) uintptr { /* sqlite3.c:30710:17: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -66107,7 +66107,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:30716:17: */
+func Xsqlite3_snprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, va uintptr) uintptr { /* sqlite3.c:30725:17: */
var z uintptr
var ap Va_list
_ = ap
@@ -66129,7 +66129,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:30739:13: */
+func renderLogMsg(tls *libc.TLS, iErrCode int32, zFormat uintptr, ap Va_list) { /* sqlite3.c:30748:13: */
bp := tls.Alloc(242)
defer tls.Free(242)
@@ -66147,7 +66147,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:30752:17: */
+func Xsqlite3_log(tls *libc.TLS, iErrCode int32, zFormat uintptr, va uintptr) { /* sqlite3.c:30761:17: */
var ap Va_list
_ = ap // Vararg list
if Xsqlite3Config.FxLog != 0 {
@@ -66159,7 +66159,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:30793:17: */
+func Xsqlite3_str_appendf(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:30802:17: */
var ap Va_list
_ = ap
ap = va
@@ -66214,7 +66214,7 @@ type sqlite3PrngType = struct {
Fi uint8
Fj uint8
Fs [256]uint8
-} /* sqlite3.c:31645:19 */
+} /* sqlite3.c:31654:19 */
//************* End of printf.c *********************************************
//************* Begin file treeview.c ***************************************
@@ -66258,10 +66258,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:31649:3: */
+var sqlite3Prng sqlite3PrngType /* sqlite3.c:31658:3: */
// Return N random bytes.
-func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* sqlite3.c:31654:17: */
+func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* sqlite3.c:31663:17: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -66340,16 +66340,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:31745:42: */
+var sqlite3SavedPrng sqlite3PrngType /* sqlite3.c:31754:42: */
-func Xsqlite3PrngSaveState(tls *libc.TLS) { /* sqlite3.c:31746:21: */
+func Xsqlite3PrngSaveState(tls *libc.TLS) { /* sqlite3.c:31755:21: */
libc.Xmemcpy(tls,
uintptr(unsafe.Pointer(&sqlite3SavedPrng)),
uintptr(unsafe.Pointer(&sqlite3Prng)),
uint64(unsafe.Sizeof(sqlite3Prng)))
}
-func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* sqlite3.c:31753:21: */
+func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* sqlite3.c:31762:21: */
libc.Xmemcpy(tls,
uintptr(unsafe.Pointer(&sqlite3Prng)),
uintptr(unsafe.Pointer(&sqlite3SavedPrng)),
@@ -66403,7 +66403,7 @@ type X_beginthreadex_proc_type = uintptr /* process.h:33:20 */
type X_tls_callback_type = uintptr /* process.h:61:16 */
// Thread procedure Win32 compatibility shim
-func sqlite3ThreadProc(tls *libc.TLS, pArg uintptr) uint32 { /* sqlite3.c:31886:27: */
+func sqlite3ThreadProc(tls *libc.TLS, pArg uintptr) uint32 { /* sqlite3.c:31895:27: */
var p uintptr = pArg
(*SQLiteThread)(unsafe.Pointer(p)).FpResult = (*struct {
@@ -66415,7 +66415,7 @@ func sqlite3ThreadProc(tls *libc.TLS, pArg uintptr) uint32 { /* sqlite3.c:31886:
}
// Create a new thread
-func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* sqlite3.c:31909:20: */
+func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* sqlite3.c:31918:20: */
var p uintptr
*(*uintptr)(unsafe.Pointer(ppThread)) = uintptr(0)
@@ -66453,7 +66453,7 @@ func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn ui
// os_win.c
// Get the results of the thread
-func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* sqlite3.c:31947:20: */
+func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* sqlite3.c:31956:20: */
var rc DWORD
var bRc WINBOOL
_ = bRc
@@ -66537,7 +66537,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:32092:28 */
+} /* sqlite3.c:32101:28 */
// Translate a single UTF-8 character. Return the unicode value.
//
@@ -66564,7 +66564,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:32186:20: */
+func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* sqlite3.c:32195:20: */
var c uint32
// Same as READ_UTF8() above but without the zTerm parameter.
@@ -66591,7 +66591,7 @@ func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* sqlite3.c:32186: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:32222:36: */
+func Xsqlite3VdbeMemTranslate(tls *libc.TLS, pMem uintptr, desiredEnc U8) int32 { /* sqlite3.c:32231:36: */
var len Sqlite3_int64 // Maximum length of output string in bytes
var zOut uintptr // Output buffer
var zIn uintptr // Input iterator
@@ -66916,7 +66916,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:32417:20: */
+func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:32426:20: */
var rc int32 = SQLITE_OK
var bom U8 = U8(0)
@@ -66950,7 +66950,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:32455:20: */
+func Xsqlite3Utf8CharLen(tls *libc.TLS, zIn uintptr, nByte int32) int32 { /* sqlite3.c:32464:20: */
var r int32 = 0
var z uintptr = zIn
var zTerm uintptr
@@ -66982,7 +66982,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:32509:21: */
+func Xsqlite3Utf16to8(tls *libc.TLS, db uintptr, z uintptr, nByte int32, enc U8) uintptr { /* sqlite3.c:32518:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -67003,7 +67003,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:32530:20: */
+func Xsqlite3Utf16ByteLen(tls *libc.TLS, zIn uintptr, nChar int32) int32 { /* sqlite3.c:32539:20: */
var c int32
var z uintptr = zIn
var n int32 = 0
@@ -67117,7 +67117,7 @@ type Double_t = float64 /* math.h:363:16 */
// sqlite3FaultSim() instance is being invoked. Each call to sqlite3FaultSim()
// should have a unique code. To prevent legacy testing applications from
// breaking, the codes should not be changed or reused.
-func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* sqlite3.c:32622:20: */
+func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* sqlite3.c:32631: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)
@@ -67129,7 +67129,7 @@ func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* sqlite3.c:32622: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:32635:20: */
+func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* sqlite3.c:32644:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = x
@@ -67149,7 +67149,7 @@ func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* sqlite3.c:32635: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:32657:20: */
+func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:32666:20: */
if z == uintptr(0) {
return 0
}
@@ -67161,7 +67161,7 @@ func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:32657: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:32669:21: */
+func Xsqlite3ColumnType(tls *libc.TLS, pCol uintptr, zDflt uintptr) uintptr { /* sqlite3.c:32678: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 {
@@ -67176,7 +67176,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:32685:30: */
+func sqlite3ErrorFinish(tls *libc.TLS, db uintptr, err_code int32) { /* sqlite3.c:32694:30: */
if (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 {
Xsqlite3ValueSetNull(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr)
}
@@ -67186,7 +67186,7 @@ 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:32695:21: */
+func Xsqlite3Error(tls *libc.TLS, db uintptr, err_code int32) { /* sqlite3.c:32704:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code
if err_code != 0 || (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 {
@@ -67198,7 +67198,7 @@ func Xsqlite3Error(tls *libc.TLS, db uintptr, err_code int32) { /* sqlite3.c:326
// The equivalent of sqlite3Error(db, SQLITE_OK). Clear the error state
// and error message.
-func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:32709:21: */
+func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:32718:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = SQLITE_OK
(*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -1
@@ -67209,7 +67209,7 @@ func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* sqlite3.c:32709: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:32720:21: */
+func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* sqlite3.c:32729:21: */
if rc == SQLITE_IOERR|int32(12)<<8 {
return
}
@@ -67229,7 +67229,7 @@ func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* sqlite3.c:327
// 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:32740:21: */
+func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uintptr, va uintptr) { /* sqlite3.c:32749:21: */
(*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code
Xsqlite3SystemError(tls, db, err_code)
@@ -67256,7 +67256,7 @@ func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uin
// stored by this function into the database handle using sqlite3Error().
// Functions sqlite3Error() or sqlite3ErrorWithMsg() should be used
// during statement execution (sqlite3_step() etc.).
-func Xsqlite3ErrorMsg(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:32766:21: */
+func Xsqlite3ErrorMsg(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:32775:21: */
var zMsg uintptr
var ap Va_list
_ = ap
@@ -67287,7 +67287,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:32797:20: */
+func Xsqlite3ErrorToParser(tls *libc.TLS, db uintptr, errCode int32) int32 { /* sqlite3.c:32806:20: */
var pParse uintptr
if db == uintptr(0) || libc.AssignUintptr(&pParse, (*Sqlite3)(unsafe.Pointer(db)).FpParse) == uintptr(0) {
return errCode
@@ -67312,7 +67312,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:32822:21: */
+func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* sqlite3.c:32831:21: */
var quote int8
var i int32
var j int32
@@ -67344,7 +67344,7 @@ func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* sqlite3.c:32822:21: */
*(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0)
}
-func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* sqlite3.c:32844:21: */
+func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* sqlite3.c:32853:21: */
*(*U32)(unsafe.Pointer(p + 4)) |= func() uint32 {
if int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 8))))) == '"' {
@@ -67364,7 +67364,7 @@ func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* sqlite3.c:32844: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:32862:21: */
+func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* sqlite3.c:32871:21: */
var i uint32
if (*Token)(unsafe.Pointer(p)).Fn < uint32(2) {
return
@@ -67382,7 +67382,7 @@ func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* sqlite3.c:32862:21: */
}
// Generate a Token object from a string
-func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:32876:21: */
+func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:32885:21: */
(*Token)(unsafe.Pointer(p)).Fz = z
(*Token)(unsafe.Pointer(p)).Fn = uint32(Xsqlite3Strlen30(tls, z))
}
@@ -67397,7 +67397,7 @@ func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* sqlite3.c:32876
// 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:32894:16: */
+func Xsqlite3_stricmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* sqlite3.c:32903:16: */
if zLeft == uintptr(0) {
if zRight != 0 {
return -1
@@ -67409,7 +67409,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:32902:20: */
+func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* sqlite3.c:32911:20: */
var a uintptr
var b uintptr
var c int32
@@ -67435,7 +67435,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:32921:16: */
+func Xsqlite3_strnicmp(tls *libc.TLS, zLeft uintptr, zRight uintptr, N int32) int32 { /* sqlite3.c:32930:16: */
var a uintptr
var b uintptr
if zLeft == uintptr(0) {
@@ -67459,7 +67459,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:32937:19: */
+func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* sqlite3.c:32946:19: */
var h U8 = U8(0)
if z == uintptr(0) {
return U8(0)
@@ -67475,7 +67475,7 @@ func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* sqlite3.c:32937: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:32953:24: */
+func sqlite3Pow10(tls *libc.TLS, E int32) float64 { /* sqlite3.c:32962:24: */
var r float64 = 1.0
var i int32
@@ -67511,7 +67511,7 @@ var x = [9]float64{
1.0e+064,
1.0e+128,
1.0e+256,
-} /* sqlite3.c:32955:32 */
+} /* sqlite3.c:32964:32 */
// The string z[] is an text representation of a real number.
// Convert this string to a double and write it into *pResult.
@@ -67540,7 +67540,7 @@ var x = [9]float64{
// If some prefix of the input string is a valid number, this routine
// returns FALSE but it still converts the prefix and writes the result
// into *pResult.
-func Xsqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc U8) int32 { /* sqlite3.c:33018:20: */
+func Xsqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc U8) int32 { /* sqlite3.c:33027:20: */
var incr int32
var zEnd uintptr
// sign * significand * (10 ^ (esign * exponent))
@@ -67920,7 +67920,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:33217:21: */
+func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* sqlite3.c:33226:21: */
bp := tls.Alloc(22)
defer tls.Free(22)
@@ -67961,7 +67961,7 @@ func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* sqlite3.c:3321
// compare2pow63("9223372036854775800", 1)
//
// will return -8.
-func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* sqlite3.c:33250:12: */
+func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* sqlite3.c:33259:12: */
var c int32 = 0
var i int32
// 012345678901234567
@@ -67990,7 +67990,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:33283:20: */
+func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc U8) int32 { /* sqlite3.c:33292:20: */
var incr int32
var u U64 = uint64(0)
var neg int32 = 0 // assume positive
@@ -68112,7 +68112,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:33386:20: */
+func Xsqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* sqlite3.c:33395:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -68145,7 +68145,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:33416:20: */
+func Xsqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) int32 { /* sqlite3.c:33425:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -68207,7 +68207,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:33475:20: */
+func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:33484:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -68220,7 +68220,7 @@ func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:33475: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:33487:20: */
+func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* sqlite3.c:33496:20: */
var v U64 = uint64(0)
var i int32
for i = 0; int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x04 != 0; i++ {
@@ -68263,7 +68263,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:33528:28: */
+func putVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:33537:28: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -68309,7 +68309,7 @@ __3:
return n
}
-func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:33552:20: */
+func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:33561:20: */
if v <= uint64(0x7f) {
*(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f))
return 1
@@ -68332,7 +68332,7 @@ func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:335
// 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:33582:19: */
+func Xsqlite3GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c:33591:19: */
var a U32
var b U32
var s U32
@@ -68485,7 +68485,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:33743:19: */
+func Xsqlite3GetVarint32(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c:33752:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -68553,7 +68553,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:33865:20: */
+func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* sqlite3.c:33874:20: */
var i int32
for i = 1; libc.AssignShrUint64(&v, int(uint64(7))) != uint64(0); i++ {
}
@@ -68561,7 +68561,7 @@ func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* sqlite3.c:33865:20: */
}
// Read or write a four-byte big-endian integer value.
-func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:33875:20: */
+func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:33884:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -68571,7 +68571,7 @@ func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:33875:20: */
return libc.X__builtin_bswap32(tls, *(*U32)(unsafe.Pointer(bp /* x */)))
}
-func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* sqlite3.c:33893:21: */
+func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* sqlite3.c:33902:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -68582,7 +68582,7 @@ func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* sqlite3.c:33893: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:33917:19: */
+func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* sqlite3.c:33926:19: */
h = h + 9*(1&(h>>6))
return U8(h & 0xf)
@@ -68592,7 +68592,7 @@ func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* sqlite3.c:33917: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:33935:21: */
+func Xsqlite3HexToBlob(tls *libc.TLS, db uintptr, z uintptr, n int32) uintptr { /* sqlite3.c:33944:21: */
var zBlob uintptr
var i int32
@@ -68610,7 +68610,7 @@ 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:33956:13: */
+func logBadConnection(tls *libc.TLS, zType uintptr) { /* sqlite3.c:33965:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -68631,7 +68631,7 @@ func logBadConnection(tls *libc.TLS, zType uintptr) { /* sqlite3.c:33956: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:33977:20: */
+func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:33986:20: */
var eOpenState U8
if db == uintptr(0) {
logBadConnection(tls, ts+1525)
@@ -68650,7 +68650,7 @@ func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:33977
return int32(0)
}
-func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:33994:20: */
+func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:34003: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 {
@@ -68667,21 +68667,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:34014:20: */
+func Xsqlite3AddInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* sqlite3.c:34023: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:34034:20: */
+func Xsqlite3SubInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* sqlite3.c:34043: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:34049:20: */
+func Xsqlite3MulInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* sqlite3.c:34058: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:34075:20: */
+func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* sqlite3.c:34084:20: */
if x >= 0 {
return x
}
@@ -68695,7 +68695,7 @@ func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* sqlite3.c:34075: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:34118:23: */
+func Xsqlite3LogEstAdd(tls *libc.TLS, a LogEst, b LogEst) LogEst { /* sqlite3.c:34127:23: */
if int32(a) >= int32(b) {
if int32(a) > int32(b)+49 {
return a
@@ -68726,11 +68726,11 @@ var x1 = [32]uint8{
uint8(4), uint8(4), uint8(4), uint8(4), // 15-18
uint8(3), uint8(3), uint8(3), uint8(3), uint8(3), uint8(3), // 19-24
uint8(2), uint8(2), uint8(2), uint8(2), uint8(2), uint8(2), uint8(2), // 25-31
-} /* sqlite3.c:34119:30 */
+} /* sqlite3.c:34128: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:34145:23: */
+func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* sqlite3.c:34154:23: */
var y LogEst = int16(40)
if x < uint64(8) {
if x < uint64(2) {
@@ -68748,11 +68748,11 @@ func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* sqlite3.c:34145: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:34146:17 */
+var a = [8]LogEst{int16(0), int16(2), int16(3), int16(5), int16(6), int16(7), int16(8), int16(9)} /* sqlite3.c:34155: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:34168:23: */
+func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* sqlite3.c:34177:23: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = x
@@ -68773,7 +68773,7 @@ func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* sqlite3.c:34
}
// Convert a LogEst into an integer.
-func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* sqlite3.c:34182:20: */
+func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* sqlite3.c:34191:20: */
var n U64
n = U64(int32(x) % 10)
x = int16(int32(x) / 10)
@@ -68825,7 +68825,7 @@ func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* sqlite3.c:34182: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:34228:22: */
+func Xsqlite3VListAdd(tls *libc.TLS, db uintptr, pIn uintptr, zName uintptr, nName int32, iVal int32) uintptr { /* sqlite3.c:34237: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
@@ -68864,7 +68864,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:34266:27: */
+func Xsqlite3VListNumToName(tls *libc.TLS, pIn uintptr, iVal int32) uintptr { /* sqlite3.c:34275:27: */
var i int32
var mx int32
if pIn == uintptr(0) {
@@ -68883,7 +68883,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:34282:20: */
+func Xsqlite3VListNameToNum(tls *libc.TLS, pIn uintptr, zName uintptr, nName int32) int32 { /* sqlite3.c:34291:20: */
var i int32
var mx int32
if pIn == uintptr(0) {
@@ -68922,7 +68922,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:34319:21: */
+func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* sqlite3.c:34328:21: */
(*Hash)(unsafe.Pointer(pNew)).Ffirst = uintptr(0)
(*Hash)(unsafe.Pointer(pNew)).Fcount = uint32(0)
@@ -68933,7 +68933,7 @@ func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* sqlite3.c:34319: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:34331:21: */
+func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* sqlite3.c:34340:21: */
var elem uintptr // For looping over all elements of the table
elem = (*Hash)(unsafe.Pointer(pH)).Ffirst
@@ -68950,7 +68950,7 @@ func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* sqlite3.c:34331:21: */
}
// The hashing function.
-func strHash(tls *libc.TLS, z uintptr) uint32 { /* sqlite3.c:34351:21: */
+func strHash(tls *libc.TLS, z uintptr) uint32 { /* sqlite3.c:34360: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
@@ -68965,7 +68965,7 @@ func strHash(tls *libc.TLS, z uintptr) uint32 { /* sqlite3.c:34351: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:34368:13: */
+func insertElement(tls *libc.TLS, pH uintptr, pEntry uintptr, pNew uintptr) { /* sqlite3.c:34377:13: */
var pHead uintptr // First element already in pEntry
if pEntry != 0 {
if (*_ht)(unsafe.Pointer(pEntry)).Fcount != 0 {
@@ -69002,7 +69002,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:34402:12: */
+func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* sqlite3.c:34411:12: */
var new_ht uintptr // The new hash table
var elem uintptr
var next_elem uintptr // For looping over existing elements
@@ -69046,7 +69046,7 @@ func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* sqlite3.c:344
// 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:34443:17: */
+func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr) uintptr { /* sqlite3.c:34452:17: */
var elem uintptr // Used to loop thru the element list
var count uint32 // Number of elements left to test
var h uint32
@@ -69075,11 +69075,11 @@ func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr)
return uintptr(unsafe.Pointer(&nullElement))
}
-var nullElement = HashElem{} /* sqlite3.c:34451:19 */
+var nullElement = HashElem{} /* sqlite3.c:34460: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:34478:13: */
+func removeElementGivenHash(tls *libc.TLS, pH uintptr, elem uintptr, h uint32) { /* sqlite3.c:34487: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
@@ -69108,7 +69108,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:34513:21: */
+func Xsqlite3HashFind(tls *libc.TLS, pH uintptr, pKey uintptr) uintptr { /* sqlite3.c:34522:21: */
return (*HashElem)(unsafe.Pointer(findElementWithHash(tls, pH, pKey, uintptr(0)))).Fdata
}
@@ -69126,7 +69126,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:34533:21: */
+func Xsqlite3HashInsert(tls *libc.TLS, pH uintptr, pKey uintptr, data uintptr) uintptr { /* sqlite3.c:34542:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -69175,7 +69175,7 @@ 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:34579:27: */
+func Xsqlite3OpcodeName(tls *libc.TLS, i int32) uintptr { /* sqlite3.c:34588:27: */
return azName[i]
}
@@ -69365,7 +69365,7 @@ var azName = [185]uintptr{
ts + 3179,
ts + 3184,
ts + 3192,
-} /* sqlite3.c:34580:20 */
+} /* sqlite3.c:34589:20 */
//************* End of opcodes.c ********************************************
//************* Begin file os_unix.c ****************************************
@@ -69499,7 +69499,7 @@ type winShm = struct {
FsharedMask U16
FexclMask U16
F__ccgo_pad2 [2]byte
-} /* sqlite3.c:43145:9 */
+} /* sqlite3.c:43154:9 */
//************* End of opcodes.c ********************************************
//************* Begin file os_unix.c ****************************************
@@ -69625,7 +69625,7 @@ type winShm = struct {
// Some Microsoft compilers lack this definition.
// Forward references to structures used for WAL
-type WinShm = winShm /* sqlite3.c:43145:23 */ // A connection to shared-memory
+type WinShm = winShm /* sqlite3.c:43154:23 */ // A connection to shared-memory
type winShmNode = struct {
Fmutex uintptr
FzFilename uintptr
@@ -69640,10 +69640,10 @@ type winShmNode = struct {
FnRef int32
FpFirst uintptr
FpNext uintptr
-} /* sqlite3.c:43145:9 */
+} /* sqlite3.c:43154:9 */
// A connection to shared-memory
-type WinShmNode = winShmNode /* sqlite3.c:43146:27 */ // A region of shared-memory
+type WinShmNode = winShmNode /* sqlite3.c:43155:27 */ // A region of shared-memory
// WinCE lacks native support for file locking so we have to fake it
// with some code of our own.
@@ -69669,7 +69669,7 @@ type winFile = struct {
FpMapRegion uintptr
FmmapSize Sqlite3_int64
FmmapSizeMax Sqlite3_int64
-} /* sqlite3.c:43145:9 */
+} /* sqlite3.c:43154:9 */
// A region of shared-memory
@@ -69678,7 +69678,7 @@ type winFile = struct {
// The winFile structure is a subclass of sqlite3_file* specific to the win32
// portability layer.
-type WinFile = winFile /* sqlite3.c:43166:24 */
+type WinFile = winFile /* sqlite3.c:43175:24 */
// The winVfsAppData structure is used for the pAppData member for all of the
// Win32 VFS variants.
@@ -69687,11 +69687,11 @@ type winVfsAppData = struct {
FpAppData uintptr
FbNoLock WINBOOL
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:43200:9 */
+} /* sqlite3.c:43209:9 */
// The winVfsAppData structure is used for the pAppData member for all of the
// Win32 VFS variants.
-type WinVfsAppData = winVfsAppData /* sqlite3.c:43200:30 */
+type WinVfsAppData = winVfsAppData /* sqlite3.c:43209:30 */
// Allowed values for winFile.ctrlFlags
@@ -69710,7 +69710,7 @@ type WinVfsAppData = winVfsAppData /* sqlite3.c:43200:30 */
//
// In order to facilitate testing on a WinNT system, the test fixture
// can manually set this value to 1 to emulate Win98 behavior.
-var sqlite3_os_type LONG = 0 /* sqlite3.c:43388:35 */
+var sqlite3_os_type LONG = 0 /* sqlite3.c:43397:35 */
// This function is not available on Windows CE or WinRT.
@@ -69722,7 +69722,7 @@ type win_syscall = struct {
FzName uintptr
FpCurrent Sqlite3_syscall_ptr
FpDefault Sqlite3_syscall_ptr
-} /* sqlite3.c:43409:8 */
+} /* sqlite3.c:43418:8 */
// This function is not available on Windows CE or WinRT.
@@ -69895,7 +69895,7 @@ var aSyscall = [80]win_syscall{
{FzName: ts + 4407},
{FzName: ts + 4428, FpCurrent: 0},
-} /* sqlite3.c:43413:3 */
+} /* sqlite3.c:43422:3 */
// End of the overrideable system calls
@@ -69903,7 +69903,7 @@ var aSyscall = [80]win_syscall{
// "win32" VFSes. Return SQLITE_OK opon successfully updating the
// system call pointer, or SQLITE_NOTFOUND if there is no configurable
// system call named zName.
-func winSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* sqlite3.c:44070:12: */
+func winSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* sqlite3.c:44079:12: */
var i uint32
var rc int32 = SQLITE_NOTFOUND
@@ -69940,7 +69940,7 @@ func winSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc S
// Return the value of a system call. Return NULL if zName is not a
// recognized system call name. NULL is also returned if the system call
// is currently undefined.
-func winGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* sqlite3.c:44113:28: */
+func winGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* sqlite3.c:44122:28: */
var i uint32
_ = pNotUsed
@@ -69956,7 +69956,7 @@ func winGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_sy
// then return the name of the first system call. Return NULL if zName
// is the last system call or if zName is not the name of a valid
// system call.
-func winNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* sqlite3.c:44132:19: */
+func winNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* sqlite3.c:44141:19: */
var i int32 = -1
_ = p
@@ -69978,7 +69978,7 @@ func winNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* sql
// This function outputs the specified (ANSI) string to the Win32 debugger
// (if available).
-func Xsqlite3_win32_write_debug(tls *libc.TLS, zBuf uintptr, nBuf int32) { /* sqlite3.c:44240:17: */
+func Xsqlite3_win32_write_debug(tls *libc.TLS, zBuf uintptr, nBuf int32) { /* sqlite3.c:44249:17: */
bp := tls.Alloc(4092)
defer tls.Free(4092)
@@ -70006,11 +70006,11 @@ func Xsqlite3_win32_write_debug(tls *libc.TLS, zBuf uintptr, nBuf int32) { /* sq
// The following routine suspends the current thread for at least ms
// milliseconds. This is equivalent to the Win32 Sleep() interface.
-func Xsqlite3_win32_sleep(tls *libc.TLS, milliseconds DWORD) { /* sqlite3.c:44286:17: */
+func Xsqlite3_win32_sleep(tls *libc.TLS, milliseconds DWORD) { /* sqlite3.c:44295:17: */
(*(*func(*libc.TLS, DWORD))(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 55*24 + 8)))(tls, milliseconds)
}
-func Xsqlite3Win32Wait(tls *libc.TLS, hObject HANDLE) DWORD { /* sqlite3.c:44301:22: */
+func Xsqlite3Win32Wait(tls *libc.TLS, hObject HANDLE) DWORD { /* sqlite3.c:44310:22: */
var rc DWORD
for libc.AssignUint32(&rc, (*(*func(*libc.TLS, HANDLE, DWORD, WINBOOL) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 64*24 + 8)))(tls, hObject, INFINITE,
TRUE)) == DWORD(0x000000C0) {
@@ -70030,7 +70030,7 @@ func Xsqlite3Win32Wait(tls *libc.TLS, hObject HANDLE) DWORD { /* sqlite3.c:44301
// This function determines if the machine is running a version of Windows
// based on the NT kernel.
-func Xsqlite3_win32_is_nt(tls *libc.TLS) int32 { /* sqlite3.c:44335:16: */
+func Xsqlite3_win32_is_nt(tls *libc.TLS) int32 { /* sqlite3.c:44344:16: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -70053,7 +70053,7 @@ func Xsqlite3_win32_is_nt(tls *libc.TLS) int32 { /* sqlite3.c:44335:16: */
// Convert a UTF-8 string to Microsoft Unicode.
//
// Space to hold the returned string is obtained from sqlite3_malloc().
-func winUtf8ToUnicode(tls *libc.TLS, zText uintptr) LPWSTR { /* sqlite3.c:44580:15: */
+func winUtf8ToUnicode(tls *libc.TLS, zText uintptr) LPWSTR { /* sqlite3.c:44589:15: */
var nChar int32
var zWideText LPWSTR
@@ -70077,7 +70077,7 @@ func winUtf8ToUnicode(tls *libc.TLS, zText uintptr) LPWSTR { /* sqlite3.c:44580:
// Convert a Microsoft Unicode string to UTF-8.
//
// Space to hold the returned string is obtained from sqlite3_malloc().
-func winUnicodeToUtf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* sqlite3.c:44606:13: */
+func winUnicodeToUtf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* sqlite3.c:44615:13: */
var nByte int32
var zText uintptr
@@ -70102,7 +70102,7 @@ func winUnicodeToUtf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* sqlite3.c:4
// code page.
//
// Space to hold the returned string is obtained from sqlite3_malloc().
-func winMbcsToUnicode(tls *libc.TLS, zText uintptr, useAnsi int32) LPWSTR { /* sqlite3.c:44633:15: */
+func winMbcsToUnicode(tls *libc.TLS, zText uintptr, useAnsi int32) LPWSTR { /* sqlite3.c:44642:15: */
var nByte int32
var zMbcsText LPWSTR
var codepage int32
@@ -70134,7 +70134,7 @@ func winMbcsToUnicode(tls *libc.TLS, zText uintptr, useAnsi int32) LPWSTR { /* s
// using the ANSI or OEM code page.
//
// Space to hold the returned string is obtained from sqlite3_malloc().
-func winUnicodeToMbcs(tls *libc.TLS, zWideText LPCWSTR, useAnsi int32) uintptr { /* sqlite3.c:44662:13: */
+func winUnicodeToMbcs(tls *libc.TLS, zWideText LPCWSTR, useAnsi int32) uintptr { /* sqlite3.c:44671:13: */
var nByte int32
var zText uintptr
var codepage int32
@@ -70164,7 +70164,7 @@ func winUnicodeToMbcs(tls *libc.TLS, zWideText LPCWSTR, useAnsi int32) uintptr {
// Convert a multi-byte character string to UTF-8.
//
// Space to hold the returned string is obtained from sqlite3_malloc().
-func winMbcsToUtf8(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44689:13: */
+func winMbcsToUtf8(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44698:13: */
var zTextUtf8 uintptr
var zTmpWide LPWSTR
@@ -70180,7 +70180,7 @@ func winMbcsToUtf8(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sql
// Convert a UTF-8 string to a multi-byte character string.
//
// Space to hold the returned string is obtained from sqlite3_malloc().
-func winUtf8ToMbcs(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44707:13: */
+func winUtf8ToMbcs(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44716:13: */
var zTextMbcs uintptr
var zTmpWide LPWSTR
@@ -70194,7 +70194,7 @@ func winUtf8ToMbcs(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sql
}
// This is a public wrapper for the winUtf8ToUnicode() function.
-func Xsqlite3_win32_utf8_to_unicode(tls *libc.TLS, zText uintptr) LPWSTR { /* sqlite3.c:44723:19: */
+func Xsqlite3_win32_utf8_to_unicode(tls *libc.TLS, zText uintptr) LPWSTR { /* sqlite3.c:44732:19: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -70202,7 +70202,7 @@ func Xsqlite3_win32_utf8_to_unicode(tls *libc.TLS, zText uintptr) LPWSTR { /* sq
}
// This is a public wrapper for the winUnicodeToUtf8() function.
-func Xsqlite3_win32_unicode_to_utf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* sqlite3.c:44739:17: */
+func Xsqlite3_win32_unicode_to_utf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* sqlite3.c:44748:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -70210,7 +70210,7 @@ func Xsqlite3_win32_unicode_to_utf8(tls *libc.TLS, zWideText LPCWSTR) uintptr {
}
// This is a public wrapper for the winMbcsToUtf8() function.
-func Xsqlite3_win32_mbcs_to_utf8(tls *libc.TLS, zText uintptr) uintptr { /* sqlite3.c:44755:17: */
+func Xsqlite3_win32_mbcs_to_utf8(tls *libc.TLS, zText uintptr) uintptr { /* sqlite3.c:44764:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -70218,7 +70218,7 @@ func Xsqlite3_win32_mbcs_to_utf8(tls *libc.TLS, zText uintptr) uintptr { /* sqli
}
// This is a public wrapper for the winMbcsToUtf8() function.
-func Xsqlite3_win32_mbcs_to_utf8_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44771:17: */
+func Xsqlite3_win32_mbcs_to_utf8_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44780:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -70226,7 +70226,7 @@ func Xsqlite3_win32_mbcs_to_utf8_v2(tls *libc.TLS, zText uintptr, useAnsi int32)
}
// This is a public wrapper for the winUtf8ToMbcs() function.
-func Xsqlite3_win32_utf8_to_mbcs(tls *libc.TLS, zText uintptr) uintptr { /* sqlite3.c:44787:17: */
+func Xsqlite3_win32_utf8_to_mbcs(tls *libc.TLS, zText uintptr) uintptr { /* sqlite3.c:44796:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -70234,7 +70234,7 @@ func Xsqlite3_win32_utf8_to_mbcs(tls *libc.TLS, zText uintptr) uintptr { /* sqli
}
// This is a public wrapper for the winUtf8ToMbcs() function.
-func Xsqlite3_win32_utf8_to_mbcs_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44803:17: */
+func Xsqlite3_win32_utf8_to_mbcs_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* sqlite3.c:44812:17: */
if Xsqlite3_initialize(tls) != 0 {
return uintptr(0)
}
@@ -70243,7 +70243,7 @@ func Xsqlite3_win32_utf8_to_mbcs_v2(tls *libc.TLS, zText uintptr, useAnsi int32)
// This function is the same as sqlite3_win32_set_directory (below); however,
// it accepts a UTF-8 string.
-func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* sqlite3.c:44820:16: */
+func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* sqlite3.c:44829:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -70275,7 +70275,7 @@ func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr)
// This function is the same as sqlite3_win32_set_directory (below); however,
// it accepts a UTF-16 string.
-func Xsqlite3_win32_set_directory16(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* sqlite3.c:44857:16: */
+func Xsqlite3_win32_set_directory16(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* sqlite3.c:44866:16: */
var rc int32
var zUtf8 uintptr = uintptr(0)
if zValue != 0 {
@@ -70296,14 +70296,14 @@ func Xsqlite3_win32_set_directory16(tls *libc.TLS, type1 uint32, zValue uintptr)
// data directory or 2 in order to set the temporary directory. The zValue
// argument is the name of the directory to use. The return value will be
// SQLITE_OK if successful.
-func Xsqlite3_win32_set_directory(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* sqlite3.c:44879:16: */
+func Xsqlite3_win32_set_directory(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* sqlite3.c:44888:16: */
return Xsqlite3_win32_set_directory16(tls, type1, zValue)
}
// The return value of winGetLastErrorMsg
// is zero if the error message fits in the buffer, or non-zero
// otherwise (if the message was truncated).
-func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:44891:12: */
+func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:44900:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -70372,7 +70372,7 @@ func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr
// will be returned to SQLite (e.g. SQLITE_IOERR_DELETE, SQLITE_CANTOPEN).
// The two subsequent arguments should be the name of the OS function that
// failed and the associated file-system path, if any.
-func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* sqlite3.c:44982:12: */
+func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* sqlite3.c:44991:12: */
bp := tls.Alloc(540)
defer tls.Free(540)
@@ -70400,8 +70400,8 @@ func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uint
// will be retried following a locking error - probably caused by
// antivirus software. Also the initial delay before the first retry.
// The delay increases linearly with each retry.
-var winIoerrRetry int32 = SQLITE_WIN32_IOERR_RETRY /* sqlite3.c:45018:12 */
-var winIoerrRetryDelay int32 = SQLITE_WIN32_IOERR_RETRY_DELAY /* sqlite3.c:45019:12 */
+var winIoerrRetry int32 = SQLITE_WIN32_IOERR_RETRY /* sqlite3.c:45027:12 */
+var winIoerrRetryDelay int32 = SQLITE_WIN32_IOERR_RETRY_DELAY /* sqlite3.c:45028:12 */
// The "winIoerrCanRetry1" macro is used to determine if a particular I/O
// error code obtained via GetLastError() is eligible to be retried. It
@@ -70421,7 +70421,7 @@ var winIoerrRetryDelay int32 = SQLITE_WIN32_IOERR_RETRY_DELAY /* sqlite3.c:45019
// If a ReadFile() or WriteFile() error occurs, invoke this routine
// to see if it should be retried. Return TRUE to retry. Return FALSE
// to give up with an error.
-func winRetryIoerr(tls *libc.TLS, pnRetry uintptr, pError uintptr) int32 { /* sqlite3.c:45052:12: */
+func winRetryIoerr(tls *libc.TLS, pnRetry uintptr, pError uintptr) int32 { /* sqlite3.c:45061:12: */
var e DWORD = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
if *(*int32)(unsafe.Pointer(pnRetry)) >= winIoerrRetry {
if pError != 0 {
@@ -70441,7 +70441,7 @@ func winRetryIoerr(tls *libc.TLS, pnRetry uintptr, pError uintptr) int32 { /* sq
}
// Log a I/O error retry episode.
-func winLogIoerr(tls *libc.TLS, nRetry int32, lineno int32) { /* sqlite3.c:45081:13: */
+func winLogIoerr(tls *libc.TLS, nRetry int32, lineno int32) { /* sqlite3.c:45090:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -70456,7 +70456,7 @@ func winLogIoerr(tls *libc.TLS, nRetry int32, lineno int32) { /* sqlite3.c:45081
// corresponding section in "date.c" cannot use it.
// Lock a file region.
-func winLockFile(tls *libc.TLS, phFile LPHANDLE, flags DWORD, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* sqlite3.c:45411:13: */
+func winLockFile(tls *libc.TLS, phFile LPHANDLE, flags DWORD, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* sqlite3.c:45420:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -70475,7 +70475,7 @@ func winLockFile(tls *libc.TLS, phFile LPHANDLE, flags DWORD, offsetLow DWORD, o
}
// Unlock a file region.
-func winUnlockFile(tls *libc.TLS, phFile LPHANDLE, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* sqlite3.c:45443:13: */
+func winUnlockFile(tls *libc.TLS, phFile LPHANDLE, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* sqlite3.c:45452:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -70504,7 +70504,7 @@ func winUnlockFile(tls *libc.TLS, phFile LPHANDLE, offsetLow DWORD, offsetHigh D
// Move the current position of the file handle passed as the first
// argument to offset iOffset within the file. If successful, return 0.
// Otherwise, set pFile->lastErrno and return non-zero.
-func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /* sqlite3.c:45488:12: */
+func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /* sqlite3.c:45497:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70528,7 +70528,7 @@ func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /*
if dwRet == libc.Uint32(libc.Uint32FromInt32(-1)) &&
libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(0) {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- winLogErrorAtLine(tls, SQLITE_IOERR|int32(22)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4548, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45512)
+ winLogErrorAtLine(tls, SQLITE_IOERR|int32(22)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4548, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45521)
return 1
}
@@ -70544,7 +70544,7 @@ func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /*
// the close fails, we pause for 100 milliseconds and try again. As
// many as MX_CLOSE_ATTEMPT attempts to close the handle are made before
// giving up and returning an error.
-func winClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:45561:12: */
+func winClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:45570:12: */
var rc int32
var cnt int32 = 0
var pFile uintptr = id
@@ -70562,13 +70562,13 @@ func winClose(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:45561:12: */
if rc != 0 {
return SQLITE_OK
}
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4560, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45608)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4560, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45617)
}
// Read data from a file into a buffer. Return SQLITE_OK if all
// bytes were read successfully and SQLITE_IOERR if anything goes
// wrong.
-func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* sqlite3.c:45617:12: */
+func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* sqlite3.c:45626:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -70605,9 +70605,9 @@ func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_
}
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = *(*DWORD)(unsafe.Pointer(bp + 40 /* lastErrno */))
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(1)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4569, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45676)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(1)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4569, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45685)
}
- winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 45679)
+ winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 45688)
if *(*DWORD)(unsafe.Pointer(bp + 32)) < DWORD(amt) {
// Unread parts of the buffer must be zero-filled
libc.Xmemset(tls, pBuf+uintptr(*(*DWORD)(unsafe.Pointer(bp + 32))), 0, uint64(DWORD(amt)-*(*DWORD)(unsafe.Pointer(bp + 32))))
@@ -70620,7 +70620,7 @@ func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_
// Write data from a buffer into a file. Return SQLITE_OK on success
// or some other error code on failure.
-func winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* sqlite3.c:45697:12: */
+func winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* sqlite3.c:45706:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -70670,19 +70670,19 @@ func winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3
if (*WinFile)(unsafe.Pointer(pFile)).FlastErrno == DWORD(39) ||
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno == DWORD(112) {
- return winLogErrorAtLine(tls, SQLITE_FULL, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4577, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45788)
+ return winLogErrorAtLine(tls, SQLITE_FULL, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4577, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45797)
}
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(3)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4587, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45793)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(3)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4587, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45802)
} else {
- winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 45796)
+ winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 45805)
}
return SQLITE_OK
}
// Truncate an open file to a specified size
-func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* sqlite3.c:45806:12: */
+func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* sqlite3.c:45815:12: */
var pFile uintptr = id // File handle object
var rc int32 = SQLITE_OK // Return code for this function
var lastErrno DWORD
@@ -70724,10 +70724,10 @@ func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* sqli
// SetEndOfFile() returns non-zero when successful, or zero when it fails.
if winSeekFile(tls, pFile, nByte) != 0 {
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4597, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45859)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4597, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45868)
} else if 0 == (*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 53*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).Fh) && libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(1224) {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4610, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45864)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4610, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45873)
}
if rc == SQLITE_OK && oldMmapSize > int64(0) {
@@ -70742,7 +70742,7 @@ func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* sqli
}
// Make sure all writes to a particular file are committed to disk.
-func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:45895:12: */
+func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:45904:12: */
// Used only when SQLITE_NO_SYNC is not defined.
var rc WINBOOL
// Used when SQLITE_NO_SYNC is not defined and by the assert() and/or
@@ -70764,7 +70764,7 @@ func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:45895:
} else {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4623, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45956)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4623, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45965)
}
}
rc = (*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 13*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).Fh)
@@ -70775,13 +70775,13 @@ func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* sqlite3.c:45895:
} else {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4632, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45971)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4632, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45980)
}
return int32(0)
}
// Determine the current size of a file in bytes
-func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:45980:12: */
+func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:45989:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70799,7 +70799,7 @@ func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:
if lowerBits == 0xffffffff &&
libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(0) {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(7)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4641, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46012)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(7)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4641, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46021)
}
}
@@ -70821,7 +70821,7 @@ func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* sqlite3.c:
// Acquire a reader lock.
// Different API routines are called depending on whether or not this
// is Win9x or WinNT.
-func winGetReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46058:12: */
+func winGetReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46067:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70847,7 +70847,7 @@ func winGetReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46058:12:
}
// Undo a readlock
-func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46093:12: */
+func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46102:12: */
var res int32
var lastErrno DWORD
@@ -70858,7 +70858,7 @@ func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46093:
}
if res == 0 && libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(158) {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4653, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46107)
+ winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4653, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46116)
}
return res
@@ -70888,7 +70888,7 @@ func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:46093:
// erases all locks at once and returns us immediately to locking level 0.
// It is not possible to lower the locking level one step at a time. You
// must go straight to locking level 0.
-func winLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46140:12: */
+func winLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46149:12: */
var rc int32 = SQLITE_OK // Return code from subroutines
var res int32 = 1 // Result of a Windows lock call
var newLocktype int32 // Set pFile->locktype to this value before exiting
@@ -71008,7 +71008,7 @@ func winLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:461
// This routine checks if there is a RESERVED lock held on the specified
// file by this or any other process. If such a lock is held, return
// non-zero, otherwise zero.
-func winCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* sqlite3.c:46283:12: */
+func winCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* sqlite3.c:46292:12: */
var res int32
var pFile uintptr = id
@@ -71037,7 +71037,7 @@ func winCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /*
// It is not possible for this routine to fail if the second argument
// is NO_LOCK. If the second argument is SHARED_LOCK then this routine
// might return SQLITE_IOERR;
-func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46319:12: */
+func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46328:12: */
var type1 int32
var pFile uintptr = id
var rc int32 = SQLITE_OK
@@ -71048,7 +71048,7 @@ func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:4
if locktype == SHARED_LOCK && !(winGetReadLock(tls, pFile) != 0) {
// This should never happen. We should always be able to
// reacquire the read lock
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4671, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46333)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4671, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46342)
}
}
if type1 >= RESERVED_LOCK {
@@ -71082,19 +71082,19 @@ func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:4
// database connections are accessing the same database file at the same
// time and one or more of those connections are writing.
-func winNolockLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46369:12: */
+func winNolockLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46378:12: */
_ = id
_ = locktype
return SQLITE_OK
}
-func winNolockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* sqlite3.c:46375:12: */
+func winNolockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* sqlite3.c:46384:12: */
_ = id
_ = pResOut
return SQLITE_OK
}
-func winNolockUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46381:12: */
+func winNolockUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlite3.c:46390:12: */
_ = id
_ = locktype
return SQLITE_OK
@@ -71108,7 +71108,7 @@ func winNolockUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* sqlit
// 1 or 0 depending on whether or not bit mask of pFile->ctrlFlags is set.
//
// If *pArg is 0 or 1, then clear or set the mask bit of pFile->ctrlFlags.
-func winModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* sqlite3.c:46396:13: */
+func winModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* sqlite3.c:46405:13: */
if *(*int32)(unsafe.Pointer(pArg)) < 0 {
*(*int32)(unsafe.Pointer(pArg)) = libc.Bool32(int32((*WinFile)(unsafe.Pointer(pFile)).FctrlFlags)&int32(mask) != 0)
} else if *(*int32)(unsafe.Pointer(pArg)) == 0 {
@@ -71119,7 +71119,7 @@ func winModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* sql
}
// Control and query of the open file handle.
-func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:46415:12: */
+func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:46424:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -71265,13 +71265,13 @@ func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /
// if two files are created in the same file-system directory (i.e.
// a database and its journal file) that the sector size will be the
// same for both.
-func winSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:46550:12: */
+func winSectorSize(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:46559:12: */
_ = id
return SQLITE_DEFAULT_SECTOR_SIZE
}
// Return a vector of device characteristics.
-func winDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:46558:12: */
+func winDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:46567:12: */
var p uintptr = id
return SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN | func() int32 {
if int32((*WinFile)(unsafe.Pointer(p)).FctrlFlags)&WINFILE_PSOW != 0 {
@@ -71285,7 +71285,7 @@ func winDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* sqlite3.c:46
// on allocation size granularity boundaries.
// During sqlite3_os_init() we do a GetSystemInfo()
// to get the granularity size.
-var winSysInfo SYSTEM_INFO /* sqlite3.c:46570:20: */
+var winSysInfo SYSTEM_INFO /* sqlite3.c:46579:20: */
// Helper functions to obtain and relinquish the global mutex. The
// global mutex is used to protect the winLockInfo objects used by
@@ -71298,13 +71298,13 @@ var winSysInfo SYSTEM_INFO /* sqlite3.c:46570:20: */
// winShmEnterMutex()
// assert( winShmMutexHeld() );
// winShmLeaveMutex()
-var winBigLock uintptr = uintptr(0) /* sqlite3.c:46587:22 */
+var winBigLock uintptr = uintptr(0) /* sqlite3.c:46596:22 */
-func winShmEnterMutex(tls *libc.TLS) { /* sqlite3.c:46588:13: */
+func winShmEnterMutex(tls *libc.TLS) { /* sqlite3.c:46597:13: */
Xsqlite3_mutex_enter(tls, winBigLock)
}
-func winShmLeaveMutex(tls *libc.TLS) { /* sqlite3.c:46591:13: */
+func winShmLeaveMutex(tls *libc.TLS) { /* sqlite3.c:46600:13: */
Xsqlite3_mutex_leave(tls, winBigLock)
}
@@ -71332,17 +71332,17 @@ func winShmLeaveMutex(tls *libc.TLS) { /* sqlite3.c:46591:13: */
type ShmRegion = struct {
FhMap HANDLE
FpMap uintptr
-} /* sqlite3.c:43145:9 */
+} /* sqlite3.c:43154:9 */
// A global array of all winShmNode objects.
//
// The winShmMutexHeld() must be true while reading or writing this list.
-var winShmNodeList uintptr = uintptr(0) /* sqlite3.c:46652:19 */
+var winShmNodeList uintptr = uintptr(0) /* sqlite3.c:46661:19 */
// Constants used for locking
// Apply advisory locks for all n bytes beginning at ofst.
-func winShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, nByte int32) int32 { /* sqlite3.c:46690:12: */
+func winShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, nByte int32) int32 { /* sqlite3.c:46699:12: */
var rc int32 = 0 // Result code form Lock/UnlockFileEx()
// Access to the winShmNode object is serialized by the caller
@@ -71373,7 +71373,7 @@ func winShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32,
//
// This is not a VFS shared-memory method; it is a utility function called
// by VFS shared-memory methods.
-func winShmPurge(tls *libc.TLS, pVfs uintptr, deleteFlag int32) { /* sqlite3.c:46738:13: */
+func winShmPurge(tls *libc.TLS, pVfs uintptr, deleteFlag int32) { /* sqlite3.c:46747:13: */
var pp uintptr
var p uintptr
@@ -71421,7 +71421,7 @@ func winShmPurge(tls *libc.TLS, pVfs uintptr, deleteFlag int32) { /* sqlite3.c:4
// If the DMS cannot be locked because this is a readonly_shm=1
// connection and no other process already holds a lock, return
// SQLITE_READONLY_CANTINIT and set pShmNode->isUnlocked=1.
-func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* sqlite3.c:46789:12: */
+func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* sqlite3.c:46798:12: */
var rc int32 = winShmSystemLock(tls, pShmNode, WINSHM_WRLCK, (22+SQLITE_SHM_NLOCK)*4+SQLITE_SHM_NLOCK, 1)
if rc == SQLITE_OK {
@@ -71431,7 +71431,7 @@ func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* sqlite3.c:4
return SQLITE_READONLY | int32(5)<<8
} else if winTruncate(tls, pShmNode+16, int64(0)) != 0 {
winShmSystemLock(tls, pShmNode, WINSHM_UNLCK, (22+SQLITE_SHM_NLOCK)*4+SQLITE_SHM_NLOCK, 1)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4681, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 46799)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4681, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 46808)
}
}
@@ -71447,7 +71447,7 @@ func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* sqlite3.c:4
// When opening a new shared-memory file, if no other instances of that
// file are currently open, in this process or in other processes, then
// the file must be truncated to zero length or have its header cleared.
-func winOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* sqlite3.c:46818:12: */
+func winOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* sqlite3.c:46827:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -71551,7 +71551,7 @@ __12:
if !(rc != SQLITE_OK) {
goto __13
}
- rc = winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4721, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 46881)
+ rc = winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4721, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 46890)
goto shm_open_err
__13:
;
@@ -71602,7 +71602,7 @@ shm_open_err:
// Close a connection to shared-memory. Delete the underlying
// storage if deleteFlag is true.
-func winShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* sqlite3.c:46927:12: */
+func winShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* sqlite3.c:46936:12: */
var pDbFd uintptr // Database holding shared-memory
var p uintptr // The connection to be closed
var pShmNode uintptr // The underlying shared-memory file
@@ -71641,7 +71641,7 @@ func winShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* sqlite3
}
// Change the lock state for a shared-memory segment.
-func winShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* sqlite3.c:46968:12: */
+func winShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* sqlite3.c:46977:12: */
var pDbFd uintptr = fd // Connection holding shared memory
var p uintptr = (*WinFile)(unsafe.Pointer(pDbFd)).FpShm // The shared memory being locked
var pX uintptr // For looping over all siblings
@@ -71732,7 +71732,7 @@ func winShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int
//
// All loads and stores begun before the barrier must complete before
// any load or store begun after the barrier.
-func winShmBarrier(tls *libc.TLS, fd uintptr) { /* sqlite3.c:47077:13: */
+func winShmBarrier(tls *libc.TLS, fd uintptr) { /* sqlite3.c:47086:13: */
_ = fd
// compiler-defined memory barrier
winShmEnterMutex(tls) // Also mutex, for redundancy
@@ -71756,7 +71756,7 @@ func winShmBarrier(tls *libc.TLS, fd uintptr) { /* sqlite3.c:47077:13: */
// this call as described above, then it is mapped into this processes
// address space (if it is not already), *pp is set to point to the mapped
// memory and SQLITE_OK returned.
-func winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* sqlite3.c:47105:12: */
+func winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* sqlite3.c:47114:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -71828,7 +71828,7 @@ __3:
if !(rc != SQLITE_OK) {
goto __6
}
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4732, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47148)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4732, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47157)
goto shmpage_out
__6:
;
@@ -71851,7 +71851,7 @@ __8:
if !(rc != SQLITE_OK) {
goto __9
}
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4743, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47163)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4743, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47172)
goto shmpage_out
__9:
;
@@ -71902,7 +71902,7 @@ __14:
goto __15
}
(*WinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, (*WinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno, ts+4754, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47222)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, (*WinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno, ts+4754, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47231)
if !(hMap != 0) {
goto __16
}
@@ -71946,13 +71946,13 @@ __19:
}
// Cleans up the mapped region of the specified file, if any.
-func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:47259:12: */
+func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:47268:12: */
if (*WinFile)(unsafe.Pointer(pFile)).FpMapRegion != 0 {
if !((*(*func(*libc.TLS, LPCVOID) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 59*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).FpMapRegion) != 0) {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4765, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47271)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4765, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47280)
}
(*WinFile)(unsafe.Pointer(pFile)).FpMapRegion = uintptr(0)
(*WinFile)(unsafe.Pointer(pFile)).FmmapSize = int64(0)
@@ -71961,7 +71961,7 @@ func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:47259:12: *
if !((*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 3*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).FhMap) != 0) {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4779, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47282)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4779, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47291)
}
(*WinFile)(unsafe.Pointer(pFile)).FhMap = uintptr(0)
}
@@ -71983,7 +71983,7 @@ func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:47259:12: *
// SQLITE_OK is returned if no error occurs (even if the mapping is not
// recreated as a result of outstanding references) or an SQLite error
// code otherwise.
-func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* sqlite3.c:47308:12: */
+func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* sqlite3.c:47317:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -72020,7 +72020,7 @@ func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* sqli
DWORD(*(*Sqlite3_int64)(unsafe.Pointer(bp))&int64(0xffffffff)), uintptr(0))
if (*WinFile)(unsafe.Pointer(pFd)).FhMap == uintptr(0) {
(*WinFile)(unsafe.Pointer(pFd)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4793, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 47359)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4793, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 47368)
// Log the error, but continue normal operation using xRead/xWrite
return SQLITE_OK
@@ -72031,7 +72031,7 @@ func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* sqli
(*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 3*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFd)).FhMap)
(*WinFile)(unsafe.Pointer(pFd)).FhMap = uintptr(0)
(*WinFile)(unsafe.Pointer(pFd)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4805, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 47377)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4805, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 47386)
// Log the error, but continue normal operation using xRead/xWrite
return SQLITE_OK
@@ -72053,7 +72053,7 @@ func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* sqli
//
// If this function does return a pointer, the caller must eventually
// release the reference by calling winUnfetch().
-func winFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* sqlite3.c:47406:12: */
+func winFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* sqlite3.c:47415:12: */
var pFd uintptr = fd // The underlying database file
*(*uintptr)(unsafe.Pointer(pp)) = uintptr(0)
@@ -72083,7 +72083,7 @@ func winFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32
// Or, if the third argument is NULL, then this function is being called
// to inform the VFS layer that, according to POSIX, any existing mapping
// may now be invalid and should be unmapped.
-func winUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* sqlite3.c:47448:12: */
+func winUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* sqlite3.c:47457:12: */
var pFd uintptr = fd // The underlying database file
// If p==0 (unmap the entire file) then there must be no outstanding
@@ -72133,7 +72133,7 @@ var winIoMethod = Sqlite3_io_methods{
FxShmUnmap: 0, // xShmUnmap
FxFetch: 0, // xFetch
FxUnfetch: 0, // xUnfetch
-} /* sqlite3.c:47491:33 */
+} /* sqlite3.c:47500:33 */
// This vector defines all the methods that can operate on an
// sqlite3_file for win32 without performing any locking.
@@ -72157,16 +72157,16 @@ var winIoNolockMethod = Sqlite3_io_methods{
FxShmUnmap: 0, // xShmUnmap
FxFetch: 0, // xFetch
FxUnfetch: 0, // xUnfetch
-} /* sqlite3.c:47517:33 */
+} /* sqlite3.c:47526:33 */
var winAppData = WinVfsAppData{
FpMethod: 0, // bNoLock
-} /* sqlite3.c:47539:22 */
+} /* sqlite3.c:47548:22 */
var winNolockAppData = WinVfsAppData{
FpMethod: 0, // pAppData
FbNoLock: 1, // bNoLock
-} /* sqlite3.c:47545:22 */
+} /* sqlite3.c:47554:22 */
// ***************************************************************************
//
@@ -72179,7 +72179,7 @@ var winNolockAppData = WinVfsAppData{
// operating system wants filenames in. Space to hold the result
// is obtained from malloc and must be freed by the calling
// function.
-func winConvertFromUtf8Filename(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:47585:13: */
+func winConvertFromUtf8Filename(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:47594:13: */
var zConverted uintptr = uintptr(0)
if sqlite3_os_type == 2 || Xsqlite3_win32_is_nt(tls) != 0 {
zConverted = winUtf8ToUnicode(tls, zFilename)
@@ -72193,7 +72193,7 @@ func winConvertFromUtf8Filename(tls *libc.TLS, zFilename uintptr) uintptr { /* s
// This function returns non-zero if the specified UTF-8 string buffer
// ends with a directory separator character or one was successfully
// added to it.
-func winMakeEndInDirSep(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:47604:12: */
+func winMakeEndInDirSep(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:47613:12: */
if zBuf != 0 {
var nLen int32 = Xsqlite3Strlen30(tls, zBuf)
if nLen > 0 {
@@ -72211,7 +72211,7 @@ func winMakeEndInDirSep(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* sqli
// Create a temporary file name and store the resulting pointer into pzBuf.
// The pointer returned in pzBuf must be freed via sqlite3_free().
-func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlite3.c:47624:12: */
+func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlite3.c:47633:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -72252,7 +72252,7 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlit
if nDirLen > nDir {
Xsqlite3_free(tls, zBuf)
- return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4825, uintptr(0), 47665)
+ return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4825, uintptr(0), 47674)
}
Xsqlite3_snprintf(tls, nMax, zBuf, ts+4444, libc.VaList(bp, Xsqlite3_temp_directory))
}
@@ -72268,7 +72268,7 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlit
Xsqlite3_free(tls, zWidePath)
Xsqlite3_free(tls, zBuf)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4841, uintptr(0), 47763)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4841, uintptr(0), 47772)
}
zMulti = winUnicodeToUtf8(tls, zWidePath)
if zMulti != 0 {
@@ -72292,7 +72292,7 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlit
if (*(*func(*libc.TLS, DWORD, LPSTR) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 31*24 + 8)))(tls, uint32(nMax), zMbcsPath) == DWORD(0) {
Xsqlite3_free(tls, zBuf)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4857, uintptr(0), 47790)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4857, uintptr(0), 47799)
}
zUtf8 = winMbcsToUtf8(tls, zMbcsPath, (*(*func(*libc.TLS) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls))
if zUtf8 != 0 {
@@ -72311,7 +72311,7 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlit
if !(winMakeEndInDirSep(tls, nDir+1, zBuf) != 0) {
Xsqlite3_free(tls, zBuf)
- return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4873, uintptr(0), 47814)
+ return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4873, uintptr(0), 47823)
}
// Check that the output buffer is large enough for the temporary file
@@ -72327,7 +72327,7 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* sqlit
if nLen+nPre+17 > nBuf {
Xsqlite3_free(tls, zBuf)
- return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4889, uintptr(0), 47832)
+ return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4889, uintptr(0), 47841)
}
Xsqlite3_snprintf(tls, nBuf-16-nLen, zBuf+uintptr(nLen), ts+4817, 0)
@@ -72358,12 +72358,12 @@ __3:
return SQLITE_OK
}
-var zChars = *(*[63]int8)(unsafe.Pointer(ts + 4905)) /* sqlite3.c:47625:15 */
+var zChars = *(*[63]int8)(unsafe.Pointer(ts + 4905)) /* sqlite3.c:47634:15 */
// Return TRUE if the named file is really a directory. Return false if
// it is something other than a directory, or if there is any kind of memory
// allocation failure.
-func winIsDir(tls *libc.TLS, zConverted uintptr) int32 { /* sqlite3.c:47855:12: */
+func winIsDir(tls *libc.TLS, zConverted uintptr) int32 { /* sqlite3.c:47864:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -72391,7 +72391,7 @@ func winIsDir(tls *libc.TLS, zConverted uintptr) int32 { /* sqlite3.c:47855:12:
}
// Open a file.
-func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32, pOutFlags uintptr) int32 { /* sqlite3.c:47890:12: */
+func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32, pOutFlags uintptr) int32 { /* sqlite3.c:47899:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -72547,7 +72547,7 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32
}
}
}
- winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 8 /* cnt */)), 48121)
+ winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 8 /* cnt */)), 48130)
if h == libc.UintptrFromInt64(int64(-1)) {
Xsqlite3_free(tls, zConverted)
@@ -72558,8 +72558,8 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32
pOutFlags)
} else {
(*WinFile)(unsafe.Pointer(pFile)).FlastErrno = *(*DWORD)(unsafe.Pointer(bp + 12 /* lastErrno */))
- winLogErrorAtLine(tls, SQLITE_CANTOPEN, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4978, zUtf8Name, 48136)
- return Xsqlite3CantopenError(tls, 48137)
+ winLogErrorAtLine(tls, SQLITE_CANTOPEN, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4978, zUtf8Name, 48145)
+ return Xsqlite3CantopenError(tls, 48146)
}
}
@@ -72614,7 +72614,7 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32
// problem, we delay 100 milliseconds and try to delete again. Up
// to MX_DELETION_ATTEMPTs deletion attempts are run before giving
// up and returning an error.
-func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) int32 { /* sqlite3.c:48213:12: */
+func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) int32 { /* sqlite3.c:48222:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -72685,9 +72685,9 @@ func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) in
}
}
if rc != 0 && rc != SQLITE_IOERR|int32(23)<<8 {
- rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, *(*DWORD)(unsafe.Pointer(bp + 4 /* lastErrno */)), ts+4991, zFilename, 48309)
+ rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, *(*DWORD)(unsafe.Pointer(bp + 4 /* lastErrno */)), ts+4991, zFilename, 48318)
} else {
- winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp /* cnt */)), 48311)
+ winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp /* cnt */)), 48320)
}
Xsqlite3_free(tls, zConverted)
@@ -72695,7 +72695,7 @@ func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) in
}
// Check the existence and status of a file.
-func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pResOut uintptr) int32 { /* sqlite3.c:48321:12: */
+func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pResOut uintptr) int32 { /* sqlite3.c:48330:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -72730,10 +72730,10 @@ func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pRes
attr = (*WIN32_FILE_ATTRIBUTE_DATA)(unsafe.Pointer(bp /* &sAttrData */)).FdwFileAttributes
}
} else {
- winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* cnt */)), 48361)
+ winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* cnt */)), 48370)
if *(*DWORD)(unsafe.Pointer(bp + 40)) != DWORD(2) && *(*DWORD)(unsafe.Pointer(bp + 40)) != DWORD(3) {
Xsqlite3_free(tls, zConverted)
- return winLogErrorAtLine(tls, SQLITE_IOERR|int32(13)<<8, *(*DWORD)(unsafe.Pointer(bp + 40 /* lastErrno */)), ts+5001, zFilename, 48364)
+ return winLogErrorAtLine(tls, SQLITE_IOERR|int32(13)<<8, *(*DWORD)(unsafe.Pointer(bp + 40 /* lastErrno */)), ts+5001, zFilename, 48373)
} else {
attr = libc.Uint32(libc.Uint32FromInt32(-1))
}
@@ -72761,14 +72761,14 @@ func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pRes
// Returns non-zero if the specified path name starts with the "long path"
// prefix.
-func winIsLongPathPrefix(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite3.c:48399:13: */
+func winIsLongPathPrefix(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite3.c:48408:13: */
return libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPathname))) == '\\' && int32(*(*int8)(unsafe.Pointer(zPathname + 1))) == '\\' &&
int32(*(*int8)(unsafe.Pointer(zPathname + 2))) == '?' && int32(*(*int8)(unsafe.Pointer(zPathname + 3))) == '\\')
}
// Returns non-zero if the specified path name starts with a drive letter
// followed by a colon character.
-func winIsDriveLetterAndColon(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite3.c:48410:13: */
+func winIsDriveLetterAndColon(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite3.c:48419:13: */
return libc.Bool32(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPathname)))])&0x02 != 0 && int32(*(*int8)(unsafe.Pointer(zPathname + 1))) == ':')
}
@@ -72776,7 +72776,7 @@ func winIsDriveLetterAndColon(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sql
// non-zero is returned from this function, the calling function must simply
// use the provided path name verbatim -OR- resolve it into a full path name
// using the GetFullPathName Win32 API function (if available).
-func winIsVerbatimPathname(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite3.c:48422:13: */
+func winIsVerbatimPathname(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite3.c:48431:13: */
// If the path name starts with a forward slash or a backslash, it is either
// a legal UNC name, a volume relative path, or an absolute path name in the
// "Unix" format on Windows. There is no easy way to differentiate between
@@ -72802,7 +72802,7 @@ func winIsVerbatimPathname(tls *libc.TLS, zPathname uintptr) WINBOOL { /* sqlite
// Turn a relative pathname into a full pathname. Write the full
// pathname into zOut[]. zOut[] will be at least pVfs->mxPathname
// bytes in size.
-func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32, zFull uintptr) int32 { /* sqlite3.c:48458:12: */
+func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32, zFull uintptr) int32 { /* sqlite3.c:48467:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -72845,7 +72845,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32
nByte = (*(*func(*libc.TLS, LPCWSTR, DWORD, LPWSTR, uintptr) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 25*24 + 8)))(tls, zConverted, uint32(0), uintptr(0), uintptr(0))
if nByte == DWORD(0) {
Xsqlite3_free(tls, zConverted)
- return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5018, zRelative, 48581)
+ return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5018, zRelative, 48590)
}
nByte = nByte + DWORD(3)
zTemp = Xsqlite3MallocZero(tls, uint64(nByte)*uint64(unsafe.Sizeof(WCHAR(0))))
@@ -72857,7 +72857,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32
if nByte == DWORD(0) {
Xsqlite3_free(tls, zConverted)
Xsqlite3_free(tls, zTemp)
- return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5035, zRelative, 48594)
+ return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5035, zRelative, 48603)
}
Xsqlite3_free(tls, zConverted)
zOut = winUnicodeToUtf8(tls, zTemp)
@@ -72867,7 +72867,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32
nByte = (*(*func(*libc.TLS, LPCSTR, DWORD, LPSTR, uintptr) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 24*24 + 8)))(tls, zConverted, uint32(0), uintptr(0), uintptr(0))
if nByte == DWORD(0) {
Xsqlite3_free(tls, zConverted)
- return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5052, zRelative, 48607)
+ return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5052, zRelative, 48616)
}
nByte = nByte + DWORD(3)
zTemp = Xsqlite3MallocZero(tls, uint64(nByte)*uint64(unsafe.Sizeof(int8(0))))
@@ -72879,7 +72879,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32
if nByte == DWORD(0) {
Xsqlite3_free(tls, zConverted)
Xsqlite3_free(tls, zTemp)
- return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5069, zRelative, 48620)
+ return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5069, zRelative, 48629)
}
Xsqlite3_free(tls, zConverted)
zOut = winMbcsToUtf8(tls, zTemp, (*(*func(*libc.TLS) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls))
@@ -72902,7 +72902,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32
// Interfaces for opening a shared library, finding entry points
// within the shared library, and closing the shared library.
-func winDlOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr) uintptr { /* sqlite3.c:48643:13: */
+func winDlOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr) uintptr { /* sqlite3.c:48652:13: */
var h HANDLE
var zConverted uintptr = winConvertFromUtf8Filename(tls, zFilename)
_ = pVfs
@@ -72920,12 +72920,12 @@ func winDlOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr) uintptr { /* sqli
return h
}
-func winDlError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBufOut uintptr) { /* sqlite3.c:48684:13: */
+func winDlError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBufOut uintptr) { /* sqlite3.c:48693:13: */
_ = pVfs
winGetLastErrorMsg(tls, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), nBuf, zBufOut)
}
-func winDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* sqlite3.c:48688:13: */
+func winDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* sqlite3.c:48697:13: */
var proc FARPROC
_ = pVfs
proc = (*(*func(*libc.TLS, HMODULE, LPCSTR) FARPROC)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 27*24 + 8)))(tls, pH, zSym)
@@ -72933,7 +72933,7 @@ func winDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /
return proc
}
-func winDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:48696:13: */
+func winDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:48705:13: */
_ = pVfs
(*(*func(*libc.TLS, HMODULE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 16*24 + 8)))(tls, pHandle)
@@ -72946,13 +72946,13 @@ type EntropyGatherer1 = struct {
Fi int32
FnXor int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:48709:9 */
+} /* sqlite3.c:48718:9 */
// State information for the randomness gatherer.
-type EntropyGatherer = EntropyGatherer1 /* sqlite3.c:48709:32 */
+type EntropyGatherer = EntropyGatherer1 /* sqlite3.c:48718:32 */
// Mix sz bytes of entropy into p.
-func xorMemory(tls *libc.TLS, p uintptr, x uintptr, sz int32) { /* sqlite3.c:48719:13: */
+func xorMemory(tls *libc.TLS, p uintptr, x uintptr, sz int32) { /* sqlite3.c:48728:13: */
var j int32
var k int32
j = 0
@@ -72968,7 +72968,7 @@ func xorMemory(tls *libc.TLS, p uintptr, x uintptr, sz int32) { /* sqlite3.c:487
}
// Write up to nBuf bytes of randomness into zBuf.
-func winRandomness(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:48733:12: */
+func winRandomness(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:48742:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -73011,7 +73011,7 @@ func winRandomness(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32
}
// Sleep for a little while. Return the amount of time slept.
-func winSleep(tls *libc.TLS, pVfs uintptr, microsec int32) int32 { /* sqlite3.c:48790:12: */
+func winSleep(tls *libc.TLS, pVfs uintptr, microsec int32) int32 { /* sqlite3.c:48799:12: */
Xsqlite3_win32_sleep(tls, uint32((microsec+999)/1000))
_ = pVfs
return (microsec + 999) / 1000 * 1000
@@ -73029,7 +73029,7 @@ func winSleep(tls *libc.TLS, pVfs uintptr, microsec int32) int32 { /* sqlite3.c:
//
// On success, return SQLITE_OK. Return SQLITE_ERROR if the time and date
// cannot be found.
-func winCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, piNow uintptr) int32 { /* sqlite3.c:48815:12: */
+func winCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, piNow uintptr) int32 { /* sqlite3.c:48824:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -73046,13 +73046,13 @@ func winCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, piNow uintptr) int32 { /*
return SQLITE_OK
}
-var winFiletimeEpoch Sqlite3_int64 = int64(23058135) * int64(8640000) /* sqlite3.c:48820:30 */
-var max32BitValue Sqlite3_int64 = int64(2000000000) + int64(2000000000) + int64(294967296) /* sqlite3.c:48825:30 */
+var winFiletimeEpoch Sqlite3_int64 = int64(23058135) * int64(8640000) /* sqlite3.c:48829:30 */
+var max32BitValue Sqlite3_int64 = int64(2000000000) + int64(2000000000) + int64(294967296) /* sqlite3.c:48834:30 */
// Find the current time (in Universal Coordinated Time). Write the
// current time and date as a Julian Day number into *prNow and
// return 0. Return 1 if the time and date cannot be found.
-func winCurrentTime(tls *libc.TLS, pVfs uintptr, prNow uintptr) int32 { /* sqlite3.c:48858:12: */
+func winCurrentTime(tls *libc.TLS, pVfs uintptr, prNow uintptr) int32 { /* sqlite3.c:48867:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -73094,7 +73094,7 @@ func winCurrentTime(tls *libc.TLS, pVfs uintptr, prNow uintptr) int32 { /* sqlit
// However if an error message is supplied, it will be incorporated
// by sqlite into the error message available to the user using
// sqlite3_errmsg(), possibly making IO errors easier to debug.
-func winGetLastError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:48898:12: */
+func winGetLastError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:48907:12: */
var e DWORD = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)
_ = pVfs
if nBuf > 0 {
@@ -73104,7 +73104,7 @@ func winGetLastError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int3
}
// Initialize and deinitialize the operating system interface.
-func Xsqlite3_os_init(tls *libc.TLS) int32 { /* sqlite3.c:48908:16: */
+func Xsqlite3_os_init(tls *libc.TLS) int32 { /* sqlite3.c:48917:16: */
// Double-check that the aSyscall[] array has been constructed
// correctly. See ticket [bb3a86e890c8e96ab]
@@ -73148,7 +73148,7 @@ var winVfs = Sqlite3_vfs{
FxSetSystemCall: 0, // xSetSystemCall
FxGetSystemCall: 0, // xGetSystemCall
FxNextSystemCall: 0, // xNextSystemCall
-} /* sqlite3.c:48909:22 */
+} /* sqlite3.c:48918:22 */
var winLongPathVfs = Sqlite3_vfs{
FiVersion: 3, // iVersion
FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile
@@ -73171,7 +73171,7 @@ var winLongPathVfs = Sqlite3_vfs{
FxSetSystemCall: 0, // xSetSystemCall
FxGetSystemCall: 0, // xGetSystemCall
FxNextSystemCall: 0, // xNextSystemCall
-} /* sqlite3.c:48934:22 */
+} /* sqlite3.c:48943:22 */
var winNolockVfs = Sqlite3_vfs{
FiVersion: 3, // iVersion
FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile
@@ -73194,7 +73194,7 @@ var winNolockVfs = Sqlite3_vfs{
FxSetSystemCall: 0, // xSetSystemCall
FxGetSystemCall: 0, // xGetSystemCall
FxNextSystemCall: 0, // xNextSystemCall
-} /* sqlite3.c:48959:22 */
+} /* sqlite3.c:48968:22 */
var winLongPathNolockVfs = Sqlite3_vfs{
FiVersion: 3, // iVersion
FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile
@@ -73217,9 +73217,9 @@ var winLongPathNolockVfs = Sqlite3_vfs{
FxSetSystemCall: 0, // xSetSystemCall
FxGetSystemCall: 0, // xGetSystemCall
FxNextSystemCall: 0, // xNextSystemCall
-} /* sqlite3.c:48984:22 */
+} /* sqlite3.c:48993:22 */
-func Xsqlite3_os_end(tls *libc.TLS) int32 { /* sqlite3.c:49043:16: */
+func Xsqlite3_os_end(tls *libc.TLS) int32 { /* sqlite3.c:49052:16: */
winBigLock = uintptr(0)
@@ -73247,15 +73247,15 @@ func Xsqlite3_os_end(tls *libc.TLS) int32 { /* sqlite3.c:49043:16: */
// #include "sqliteInt.h"
// Forward declaration of objects used by this utility
-type MemVfs = sqlite3_vfs /* sqlite3.c:49086:28 */
+type MemVfs = sqlite3_vfs /* sqlite3.c:49095:28 */
type MemFile1 = struct {
Fbase Sqlite3_file
FpStore uintptr
FeLock int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:49087:9 */
+} /* sqlite3.c:49096:9 */
-type MemFile = MemFile1 /* sqlite3.c:49087:24 */
+type MemFile = MemFile1 /* sqlite3.c:49096:24 */
type MemStore1 = struct {
Fsz Sqlite3_int64
FszAlloc Sqlite3_int64
@@ -73269,9 +73269,9 @@ type MemStore1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
FzFName uintptr
-} /* sqlite3.c:49087:9 */
+} /* sqlite3.c:49096:9 */
-type MemStore = MemStore1 /* sqlite3.c:49088:25 */
+type MemStore = MemStore1 /* sqlite3.c:49097:25 */
// File-scope variables for holding the memdb files that are accessible
// to multiple database connections in separate threads.
@@ -73281,13 +73281,13 @@ type MemFS = struct {
FnMemStore int32
F__ccgo_pad1 [4]byte
FapMemStore uintptr
-} /* sqlite3.c:49158:8 */
+} /* sqlite3.c:49167: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:49161:3: */
+var memdb_g MemFS /* sqlite3.c:49170:3: */
var memdb_vfs = Sqlite3_vfs{
FiVersion: 2, // szOsFile (set when registered)
@@ -73304,7 +73304,7 @@ var memdb_vfs = Sqlite3_vfs{
FxSleep: 0, /* memdbCurrentTime, */ // xCurrentTime
FxGetLastError: 0, // xGetLastError
FxCurrentTimeInt64: 0, // xNextSystemCall
-} /* sqlite3.c:49197:20 */
+} /* sqlite3.c:49206:20 */
var memdb_io_methods = Sqlite3_io_methods{
FiVersion: 3, // iVersion
@@ -73320,21 +73320,21 @@ var memdb_io_methods = Sqlite3_io_methods{
FxDeviceCharacteristics: 0, // xShmUnmap
FxFetch: 0, // xFetch
FxUnfetch: 0, // xUnfetch
-} /* sqlite3.c:49222:33 */
+} /* sqlite3.c:49231:33 */
// Enter/leave the mutex on a MemStore
-func memdbEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:49255:13: */
+func memdbEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:49264:13: */
Xsqlite3_mutex_enter(tls, (*MemStore)(unsafe.Pointer(p)).FpMutex)
}
-func memdbLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:49258:13: */
+func memdbLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:49267: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:49270:12: */
+func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:49279:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
if (*MemStore)(unsafe.Pointer(p)).FzFName != 0 {
var i int32
@@ -73372,7 +73372,7 @@ func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:49270:12: */
}
// Read data from an memdb-file.
-func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:49312:12: */
+func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:49321:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
if iOfst+Sqlite_int64(iAmt) > (*MemStore)(unsafe.Pointer(p)).Fsz {
@@ -73389,7 +73389,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:49334:12: */
+func memdbEnlarge(tls *libc.TLS, p uintptr, newSz Sqlite3_int64) int32 { /* sqlite3.c:49343: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
@@ -73411,7 +73411,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:49354:12: */
+func memdbWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:49363:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
if (*MemStore)(unsafe.Pointer(p)).FmFlags&uint32(SQLITE_DESERIALIZE_READONLY) != 0 {
@@ -73442,7 +73442,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:49391:12: */
+func memdbTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* sqlite3.c:49400:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
var rc int32 = SQLITE_OK
memdbEnter(tls, p)
@@ -73457,14 +73457,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:49408:12: */
+func memdbSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* sqlite3.c:49417: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:49417:12: */
+func memdbFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* sqlite3.c:49426:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
memdbEnter(tls, p)
*(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemStore)(unsafe.Pointer(p)).Fsz
@@ -73473,7 +73473,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:49428:12: */
+func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:49437:12: */
var pThis uintptr = pFile
var p uintptr = (*MemFile)(unsafe.Pointer(pThis)).FpStore
var rc int32 = SQLITE_OK
@@ -73517,7 +73517,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:49482:12: */
+func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:49491:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -73546,13 +73546,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:49519:12: */
+func memdbDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:49528: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:49528:12: */
+func memdbFetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, iAmt int32, pp uintptr) int32 { /* sqlite3.c:49537: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) {
@@ -73566,7 +73566,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:49547:12: */
+func memdbUnfetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, pPage uintptr) int32 { /* sqlite3.c:49556:12: */
var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore
_ = iOfst
_ = pPage
@@ -73577,7 +73577,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:49560:12: */
+func memdbOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFd uintptr, flags int32, pOutFlags uintptr) int32 { /* sqlite3.c:49569:12: */
var pFile uintptr = pFd
var p uintptr = uintptr(0)
var szName int32
@@ -73652,7 +73652,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:49657:12: */
+func memdbAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* sqlite3.c:49666:12: */
_ = pVfs
_ = zPath
_ = flags
@@ -73663,7 +73663,7 @@ 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:49675:12: */
+func memdbFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* sqlite3.c:49684:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -73673,7 +73673,7 @@ func memdbFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, z
}
// Open the dynamic library located at zPath and return a handle.
-func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* sqlite3.c:49689:13: */
+func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* sqlite3.c:49698: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)
@@ -73682,21 +73682,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:49698:13: */
+func memdbDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* sqlite3.c:49707: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:49705:13: */
+func memdbDlSym(tls *libc.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* sqlite3.c:49714: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:49712:13: */
+func memdbDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:49721: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)
@@ -73704,7 +73704,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:49720:12: */
+func memdbRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* sqlite3.c:49729: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)
@@ -73712,19 +73712,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:49728:12: */
+func memdbSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* sqlite3.c:49737: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:49741:12: */
+func memdbGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* sqlite3.c:49750: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:49744:12: */
+func memdbCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* sqlite3.c:49753: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)
@@ -73732,7 +73732,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:49752:16: */
+func memdbFromDbSchema(tls *libc.TLS, db uintptr, zSchema uintptr) uintptr { /* sqlite3.c:49761:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -73755,7 +73755,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:49768:26: */
+func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintptr, mFlags uint32) uintptr { /* sqlite3.c:49777:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -73846,7 +73846,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:49849:16: */
+func Xsqlite3_deserialize(tls *libc.TLS, db uintptr, zSchema uintptr, pData uintptr, szDb Sqlite3_int64, szBuf Sqlite3_int64, mFlags uint32) int32 { /* sqlite3.c:49858:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -73941,7 +73941,7 @@ __10:
// This routine is called when the extension is loaded.
// Register the new VFS.
-func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* sqlite3.c:49925:20: */
+func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* sqlite3.c:49934:20: */
var pLower uintptr = Xsqlite3_vfs_find(tls, uintptr(0))
var sz uint32
if pLower == uintptr(0) {
@@ -73963,7 +73963,7 @@ func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* sqlite3.c:49925: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:50057:23: */
+func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* sqlite3.c:50066:23: */
var p uintptr
p = Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(Bitvec{})))
@@ -73976,7 +73976,7 @@ func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* sqlite3.c:50057
// 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:50072:20: */
+func Xsqlite3BitvecTestNotNull(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlite3.c:50081:20: */
i--
if i >= (*Bitvec)(unsafe.Pointer(p)).FiSize {
@@ -74005,7 +74005,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:50095:20: */
+func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlite3.c:50104:20: */
return libc.Bool32(p != uintptr(0) && Xsqlite3BitvecTestNotNull(tls, p, i) != 0)
}
@@ -74019,7 +74019,7 @@ func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlite3.c:50
// 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:50111:20: */
+func Xsqlite3BitvecSet(tls *libc.TLS, p uintptr, i U32) int32 { /* sqlite3.c:50120:20: */
var h U32
var bin U32
var j uint32
@@ -74156,7 +74156,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:50182:21: */
+func Xsqlite3BitvecClear(tls *libc.TLS, p uintptr, i U32, pBuf uintptr) { /* sqlite3.c:50191:21: */
if p == uintptr(0) {
return
}
@@ -74195,7 +74195,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:50219:21: */
+func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:50228:21: */
if p == uintptr(0) {
return
}
@@ -74210,7 +74210,7 @@ func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:50219:21: */
// Return the value of the iSize parameter specified when Bitvec *p
// was created.
-func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:50234:20: */
+func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:50243:20: */
return (*Bitvec)(unsafe.Pointer(p)).FiSize
}
@@ -74247,7 +74247,7 @@ func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* sqlite3.c:50234: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:50279:20: */
+func Xsqlite3BitvecBuiltinTest(tls *libc.TLS, sz int32, aOp uintptr) int32 { /* sqlite3.c:50288:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -74410,7 +74410,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:50514:13: */
+func pcacheManageDirtyList(tls *libc.TLS, pPage uintptr, addRemove U8) { /* sqlite3.c:50523:13: */
var p uintptr = (*PgHdr)(unsafe.Pointer(pPage)).FpCache
if int32(addRemove)&PCACHE_DIRTYLIST_REMOVE != 0 {
@@ -74472,7 +74472,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:50584:13: */
+func pcacheUnpin(tls *libc.TLS, p uintptr) { /* sqlite3.c:50593:13: */
if (*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FbPurgeable != 0 {
(*struct {
@@ -74484,7 +74484,7 @@ func pcacheUnpin(tls *libc.TLS, p uintptr) { /* sqlite3.c:50584: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:50596:12: */
+func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:50605: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.
@@ -74509,7 +74509,7 @@ func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:50596:12:
//
// Initialize and shutdown the page cache subsystem. Neither of these
// functions are threadsafe.
-func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* sqlite3.c:50618:20: */
+func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* sqlite3.c:50627: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
@@ -74522,7 +74522,7 @@ func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* sqlite3.c:50618:20: */
})(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fpcache2.FxInit})).f(tls, Xsqlite3Config.Fpcache2.FpArg)
}
-func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* sqlite3.c:50628:21: */
+func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* sqlite3.c:50637: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)
@@ -74530,7 +74530,7 @@ func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* sqlite3.c:50628:21: */
}
// Return the size in bytes of a PCache object.
-func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* sqlite3.c:50638:20: */
+func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* sqlite3.c:50647:20: */
return int32(unsafe.Sizeof(PCache{}))
}
@@ -74544,7 +74544,7 @@ func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* sqlite3.c:50638: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:50652:20: */
+func Xsqlite3PcacheOpen(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32, xStress uintptr, pStress uintptr, p uintptr) int32 { /* sqlite3.c:50661:20: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(PCache{})))
(*PCache)(unsafe.Pointer(p)).FszPage = 1
(*PCache)(unsafe.Pointer(p)).FszExtra = szExtra
@@ -74561,7 +74561,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:50678:20: */
+func Xsqlite3PcacheSetPageSize(tls *libc.TLS, pCache uintptr, szPage int32) int32 { /* sqlite3.c:50687:20: */
if (*PCache)(unsafe.Pointer(pCache)).FszPage != 0 {
var pNew uintptr
@@ -74608,7 +74608,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:50722:36: */
+func Xsqlite3PcacheFetch(tls *libc.TLS, pCache uintptr, pgno Pgno, createFlag int32) uintptr { /* sqlite3.c:50731:36: */
var eCreate int32
var pRes uintptr
@@ -74636,7 +74636,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:50763:20: */
+func Xsqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno Pgno, ppPage uintptr) int32 { /* sqlite3.c:50772:20: */
var pPg uintptr
if int32((*PCache)(unsafe.Pointer(pCache)).FeCreate) == 2 {
return 0
@@ -74687,7 +74687,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:50819:30: */
+func pcacheFetchFinishWithInit(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* sqlite3.c:50828:30: */
var pPgHdr uintptr
pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra
@@ -74707,7 +74707,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:50845:22: */
+func Xsqlite3PcacheFetchFinish(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* sqlite3.c:50854:22: */
var pPgHdr uintptr
pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra
@@ -74723,7 +74723,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:50868:37: */
+func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:50877:37: */
(*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum--
if int32(libc.PreDecInt16(&(*PgHdr)(unsafe.Pointer(p)).FnRef, 1)) == 0 {
@@ -74736,7 +74736,7 @@ func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:50868:37: */
}
// Increase the reference count of a supplied page by 1.
-func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* sqlite3.c:50883:21: */
+func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* sqlite3.c:50892:21: */
(*PgHdr)(unsafe.Pointer(p)).FnRef++
(*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum++
@@ -74745,7 +74745,7 @@ func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* sqlite3.c:50883: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:50895:21: */
+func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* sqlite3.c:50904:21: */
if int32((*PgHdr)(unsafe.Pointer(p)).Fflags)&PGHDR_DIRTY != 0 {
pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE))
@@ -74758,7 +74758,7 @@ func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* sqlite3.c:50895: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:50909:21: */
+func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* sqlite3.c:50918: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))
@@ -74773,7 +74773,7 @@ func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* sqlite3.c:50909: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:50928:21: */
+func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* sqlite3.c:50938:21: */
pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE))
*(*U16)(unsafe.Pointer(p + 52)) &= libc.Uint16FromInt32(libc.CplInt32(PGHDR_DIRTY | PGHDR_NEED_SYNC | PGHDR_WRITEABLE))
@@ -74785,7 +74785,7 @@ func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* sqlite3.c:50928:21:
}
// Make every page in the cache clean.
-func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50945:21: */
+func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50955:21: */
var p uintptr
for libc.AssignUintptr(&p, (*PCache)(unsafe.Pointer(pCache)).FpDirty) != uintptr(0) {
@@ -74794,7 +74794,7 @@ func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50945:
}
// Clear the PGHDR_NEED_SYNC and PGHDR_WRITEABLE flag from all dirty pages.
-func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50956:21: */
+func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50966:21: */
var p uintptr
for p = (*PCache)(unsafe.Pointer(pCache)).FpDirty; p != 0; p = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext {
@@ -74804,7 +74804,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:50968:21: */
+func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:50978: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))
@@ -74813,7 +74813,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:50979:21: */
+func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* sqlite3.c:50989:21: */
var pCache uintptr = (*PgHdr)(unsafe.Pointer(p)).FpCache
(*struct {
@@ -74832,7 +74832,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:51001:21: */
+func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* sqlite3.c:51011:21: */
if (*PCache)(unsafe.Pointer(pCache)).FpCache != 0 {
var p uintptr
var pNext uintptr
@@ -74866,19 +74866,19 @@ func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* sqlit
}
// Close a cache.
-func Xsqlite3PcacheClose(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51034:21: */
+func Xsqlite3PcacheClose(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51044: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:51043:21: */
+func Xsqlite3PcacheClear(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51053: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:51051:14: */
+func pcacheMergeDirtyList(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* sqlite3.c:51061:14: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -74917,7 +74917,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:51088:14: */
+func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:51098:14: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -74960,7 +74960,7 @@ func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:5108
}
// Return a list of all dirty pages in the cache, sorted by page number.
-func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* sqlite3.c:51123:22: */
+func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* sqlite3.c:51133: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
@@ -74972,17 +74972,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:51137:20: */
+func Xsqlite3PcacheRefCount(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:51147: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:51144:20: */
+func Xsqlite3PcachePageRefcount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51154: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:51151:20: */
+func Xsqlite3PcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:51161:20: */
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -74990,7 +74990,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:51168:21: */
+func Xsqlite3PcacheSetCachesize(tls *libc.TLS, pCache uintptr, mxPage int32) { /* sqlite3.c:51178:21: */
(*PCache)(unsafe.Pointer(pCache)).FszCache = mxPage
(*struct {
@@ -75002,7 +75002,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:51180:20: */
+func Xsqlite3PcacheSetSpillsize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* sqlite3.c:51190:20: */
var res int32
if mxPage != 0 {
@@ -75019,20 +75019,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:51197:21: */
+func Xsqlite3PcacheShrink(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51207: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:51206:20: */
+func Xsqlite3HeaderSizePcache(tls *libc.TLS) int32 { /* sqlite3.c:51216: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:51212:20: */
+func Xsqlite3PCachePercentDirty(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:51222:20: */
var pDirty uintptr
var nDirty int32 = 0
var nCache int32 = numberOfCachePages(tls, pCache)
@@ -75147,7 +75147,7 @@ type PCache11 = struct {
FapHash uintptr
FpFree uintptr
FpBulk uintptr
-} /* sqlite3.c:51329:9 */
+} /* sqlite3.c:51339:9 */
//************* End of pcache.c *********************************************
//************* Begin file pcache1.c ****************************************
@@ -75233,7 +75233,7 @@ type PCache11 = struct {
// common workloads.
// #include "sqliteInt.h"
-type PCache1 = PCache11 /* sqlite3.c:51329:24 */
+type PCache1 = PCache11 /* sqlite3.c:51339:24 */
type PgHdr11 = struct {
Fpage Sqlite3_pcache_page
FiKey uint32
@@ -75243,12 +75243,12 @@ type PgHdr11 = struct {
FpCache uintptr
FpLruNext uintptr
FpLruPrev uintptr
-} /* sqlite3.c:51329:9 */
+} /* sqlite3.c:51339:9 */
-type PgHdr1 = PgHdr11 /* sqlite3.c:51330:23 */
-type PgFreeslot1 = struct{ FpNext uintptr } /* sqlite3.c:51331:9 */
+type PgHdr1 = PgHdr11 /* sqlite3.c:51340:23 */
+type PgFreeslot1 = struct{ FpNext uintptr } /* sqlite3.c:51341:9 */
-type PgFreeslot = PgFreeslot1 /* sqlite3.c:51331:27 */
+type PgFreeslot = PgFreeslot1 /* sqlite3.c:51341:27 */
type PGroup1 = struct {
Fmutex uintptr
FnMaxPage uint32
@@ -75256,9 +75256,9 @@ type PGroup1 = struct {
FmxPinned uint32
FnPurgeable uint32
Flru PgHdr1
-} /* sqlite3.c:51329:9 */
+} /* sqlite3.c:51339:9 */
-type PGroup = PGroup1 /* sqlite3.c:51332:23 */
+type PGroup = PGroup1 /* sqlite3.c:51342:23 */
// Global data used by this cache.
type PCacheGlobal = struct {
@@ -75275,10 +75275,10 @@ type PCacheGlobal = struct {
FpFree uintptr
FnFreeSlot int32
FbUnderPressure int32
-} /* sqlite3.c:51449:19 */
+} /* sqlite3.c:51459:19 */
// Global data used by this cache.
-var pcache1_g PCacheGlobal /* sqlite3.c:51473:3: */
+var pcache1_g PCacheGlobal /* sqlite3.c:51483: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
@@ -75296,7 +75296,7 @@ var pcache1_g PCacheGlobal /* sqlite3.c:51473: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:51508:21: */
+func Xsqlite3PCacheBufferSetup(tls *libc.TLS, pBuf uintptr, sz int32, n int32) { /* sqlite3.c:51518:21: */
if pcache1_g.FisInit != 0 {
var p uintptr
if pBuf == uintptr(0) {
@@ -75329,7 +75329,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:51534:12: */
+func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:51544:12: */
var szBulk I64
var zBulk uintptr
if pcache1_g.FnInitPage == 0 {
@@ -75374,7 +75374,7 @@ func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:51534: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:51577:13: */
+func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:51587:13: */
var p uintptr = uintptr(0)
if nByte <= pcache1_g.FszSlot {
@@ -75407,7 +75407,7 @@ func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* sqlite3.c:51577:13: *
}
// Free an allocated buffer obtained from pcache1Alloc().
-func pcache1Free(tls *libc.TLS, p uintptr) { /* sqlite3.c:51615:13: */
+func pcache1Free(tls *libc.TLS, p uintptr) { /* sqlite3.c:51625:13: */
if p == uintptr(0) {
return
}
@@ -75437,7 +75437,7 @@ func pcache1Free(tls *libc.TLS, p uintptr) { /* sqlite3.c:51615:13: */
}
// Return the size of a pcache allocation
-func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51648:12: */
+func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51658:12: */
if p >= pcache1_g.FpStart && p < pcache1_g.FpEnd {
return pcache1_g.FszSlot
} else {
@@ -75451,7 +75451,7 @@ func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:51648:12: */
}
// Allocate a new page object initially associated with cache pCache.
-func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr { /* sqlite3.c:51665:15: */
+func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr { /* sqlite3.c:51675:15: */
var p uintptr = uintptr(0)
var pPg uintptr
@@ -75489,7 +75489,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:51717:13: */
+func pcache1FreePage(tls *libc.TLS, p uintptr) { /* sqlite3.c:51727:13: */
var pCache uintptr
pCache = (*PgHdr1)(unsafe.Pointer(p)).FpCache
@@ -75506,13 +75506,13 @@ func pcache1FreePage(tls *libc.TLS, p uintptr) { /* sqlite3.c:51717: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:51739:21: */
+func Xsqlite3PageMalloc(tls *libc.TLS, sz int32) uintptr { /* sqlite3.c:51749: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:51747:21: */
+func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:51757:21: */
pcache1Free(tls, p)
}
@@ -75530,7 +75530,7 @@ func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:51747: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:51768:12: */
+func pcache1UnderMemoryPressure(tls *libc.TLS, pCache uintptr) int32 { /* sqlite3.c:51778:12: */
if pcache1_g.FnSlot != 0 && (*PCache1)(unsafe.Pointer(pCache)).FszPage+(*PCache1)(unsafe.Pointer(pCache)).FszExtra <= pcache1_g.FszSlot {
return pcache1_g.FbUnderPressure
} else {
@@ -75546,7 +75546,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:51785:13: */
+func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:51795:13: */
var apNew uintptr
var nNew uint32
var i uint32
@@ -75587,7 +75587,7 @@ func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:51785: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:51826:15: */
+func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* sqlite3.c:51836: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
@@ -75604,7 +75604,7 @@ func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* sqlite3.c:51826: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:51851:13: */
+func pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) { /* sqlite3.c:51861:13: */
var h uint32
var pCache uintptr = (*PgHdr1)(unsafe.Pointer(pPage)).FpCache
var pp uintptr
@@ -75622,7 +75622,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:51869:13: */
+func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51879:13: */
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
var p uintptr
@@ -75643,7 +75643,7 @@ func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* sqlite3.c:51869: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:51894:13: */
+func pcache1TruncateUnsafe(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* sqlite3.c:51904:13: */
var h uint32
var iStop uint32
@@ -75691,7 +75691,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:51945:12: */
+func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:51955:12: */
_ = NotUsed
libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g)))
@@ -75729,7 +75729,7 @@ func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* sqlite3.c:51945: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:51998:13: */
+func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:52008:13: */
_ = NotUsed
libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g)))
@@ -75738,7 +75738,7 @@ func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* sqlite3.c:51998: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:52012:23: */
+func pcache1Create(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* sqlite3.c:52022: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
@@ -75788,7 +75788,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:52062:13: */
+func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* sqlite3.c:52072:13: */
var pCache uintptr = p
var n U32
@@ -75811,7 +75811,7 @@ func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* sqlite3.c:52062
// Implementation of the sqlite3_pcache.xShrink method.
//
// Free up as much memory as possible.
-func pcache1Shrink(tls *libc.TLS, p uintptr) { /* sqlite3.c:52087:13: */
+func pcache1Shrink(tls *libc.TLS, p uintptr) { /* sqlite3.c:52097:13: */
var pCache uintptr = p
if (*PCache1)(unsafe.Pointer(pCache)).FbPurgeable != 0 {
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -75826,7 +75826,7 @@ func pcache1Shrink(tls *libc.TLS, p uintptr) { /* sqlite3.c:52087:13: */
}
// Implementation of the sqlite3_pcache.xPagecount method.
-func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:52104:12: */
+func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:52114:12: */
var n int32
var pCache uintptr = p
Xsqlite3_mutex_enter(tls, (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex)
@@ -75841,7 +75841,7 @@ func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:52104: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:52122:31: */
+func pcache1FetchStage2(tls *libc.TLS, pCache uintptr, iKey uint32, createFlag int32) uintptr { /* sqlite3.c:52132:31: */
var nPinned uint32
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
var pPage uintptr = uintptr(0)
@@ -75959,7 +75959,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:52250:15: */
+func pcache1FetchNoMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* sqlite3.c:52260:15: */
var pCache uintptr = p
var pPage uintptr = uintptr(0)
@@ -75988,7 +75988,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:52280:15: */
+func pcache1FetchWithMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* sqlite3.c:52290:15: */
var pCache uintptr = p
var pPage uintptr
@@ -75999,7 +75999,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:52295:28: */
+func pcache1Fetch(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* sqlite3.c:52305:28: */
var pCache uintptr = p
if (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex != 0 {
@@ -76013,7 +76013,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:52326:13: */
+func pcache1Unpin(tls *libc.TLS, p uintptr, pPg uintptr, reuseUnlikely int32) { /* sqlite3.c:52336:13: */
var pCache uintptr = p
var pPage uintptr = pPg
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -76038,7 +76038,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:52361:13: */
+func pcache1Rekey(tls *libc.TLS, p uintptr, pPg uintptr, iOld uint32, iNew uint32) { /* sqlite3.c:52371:13: */
var pCache uintptr = p
var pPage uintptr = pPg
var pp uintptr
@@ -76069,7 +76069,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:52401:13: */
+func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* sqlite3.c:52411: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 {
@@ -76082,7 +76082,7 @@ func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* sqlite3.c:524
// Implementation of the sqlite3_pcache.xDestroy method.
//
// Destroy a cache allocated using pcache1Create().
-func pcache1Destroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:52416:13: */
+func pcache1Destroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:52426:13: */
var pCache uintptr = p
var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup
@@ -76105,7 +76105,7 @@ func pcache1Destroy(tls *libc.TLS, p uintptr) { /* sqlite3.c:52416: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:52439:21: */
+func Xsqlite3PCacheSetDefault(tls *libc.TLS) { /* sqlite3.c:52449:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76125,16 +76125,16 @@ var defaultMethods1 = Sqlite3_pcache_methods2{
FxTruncate: 0, // xTruncate
FxDestroy: 0, // xDestroy
FxShrink: 0, // xShrink
-} /* sqlite3.c:52440:40 */
+} /* sqlite3.c:52450:40 */
// Return the size of the header on each page of this PCACHE implementation.
-func Xsqlite3HeaderSizePcache1(tls *libc.TLS) int32 { /* sqlite3.c:52461:20: */
+func Xsqlite3HeaderSizePcache1(tls *libc.TLS) int32 { /* sqlite3.c:52471: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:52467:30: */
+func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* sqlite3.c:52477:30: */
return pcache1_g.Fmutex
}
@@ -76145,7 +76145,7 @@ func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* sqlite3.c:52467: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:52481:20: */
+func Xsqlite3PcacheReleaseMemory(tls *libc.TLS, nReq int32) int32 { /* sqlite3.c:52491:20: */
var nFree int32 = 0
if Xsqlite3Config.FpPage == uintptr(0) {
@@ -76243,7 +76243,7 @@ type RowSetEntry = struct {
Fv I64
FpRight uintptr
FpLeft uintptr
-} /* sqlite3.c:14602:9 */
+} /* sqlite3.c:14606:9 */
// RowSetEntry objects are allocated in large chunks (instances of the
// following structure) to reduce memory allocation overhead. The
@@ -76256,13 +76256,13 @@ type RowSetChunk = struct {
FpRight uintptr
FpLeft uintptr
}
-} /* sqlite3.c:14602:9 */
+} /* sqlite3.c:14606:9 */
// Allowed values for RowSet.rsFlags
// Allocate a RowSet object. Return NULL if a memory allocation
// error occurs.
-func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:52661:23: */
+func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:52671:23: */
var p uintptr = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(RowSet{})))
if p != 0 {
var N int32 = Xsqlite3DbMallocSize(tls, db, p)
@@ -76282,7 +76282,7 @@ func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:52661:
// 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:52683:21: */
+func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:52693:21: */
var p uintptr = pArg
var pChunk uintptr
var pNextChunk uintptr
@@ -76301,7 +76301,7 @@ func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:52683: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:52703:21: */
+func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:52713:21: */
Xsqlite3RowSetClear(tls, pArg)
Xsqlite3DbFree(tls, (*RowSet)(unsafe.Pointer(pArg)).Fdb, pArg)
}
@@ -76312,7 +76312,7 @@ func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:52703: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:52716:27: */
+func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:52726: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
@@ -76335,7 +76335,7 @@ func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:52716: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:52741:21: */
+func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* sqlite3.c:52751:21: */
var pEntry uintptr // The new entry
var pLast uintptr // The last prior entry
@@ -76365,7 +76365,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:52772:27: */
+func rowSetEntryMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* sqlite3.c:52782:27: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -76400,7 +76400,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:52807:27: */
+func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:52817:27: */
bp := tls.Alloc(320)
defer tls.Free(320)
@@ -76436,7 +76436,7 @@ func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:52807: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:52836:13: */
+func rowSetTreeToList(tls *libc.TLS, pIn uintptr, ppFirst uintptr, ppLast uintptr) { /* sqlite3.c:52846:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -76467,7 +76467,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:52871:27: */
+func rowSetNDeepTree(tls *libc.TLS, ppList uintptr, iDepth int32) uintptr { /* sqlite3.c:52881:27: */
var p uintptr // Root of the new tree
var pLeft uintptr // Left subtree
if *(*uintptr)(unsafe.Pointer(ppList)) == uintptr(0) { //OPTIMIZATION-IF-TRUE
@@ -76498,7 +76498,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:52907:27: */
+func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* sqlite3.c:52917:27: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pList
@@ -76531,7 +76531,7 @@ func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* sqlite3.c:52907
// 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:52939:20: */
+func Xsqlite3RowSetNext(tls *libc.TLS, p uintptr, pRowid uintptr) int32 { /* sqlite3.c:52949:20: */
// Cannot be used with sqlite3RowSetText()
@@ -76564,7 +76564,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:52973:20: */
+func Xsqlite3RowSetTest(tls *libc.TLS, pRowSet uintptr, iBatch int32, iRowid Sqlite3_int64) int32 { /* sqlite3.c:52983:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -76749,7 +76749,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:53115:20 */
+type Wal = Wal1 /* sqlite3.c:53125:20 */
//************* End of wal.h ************************************************
//************* Continuing where we left off in pager.c *********************
@@ -77518,7 +77518,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:53626:31 */
+type PagerSavepoint = PagerSavepoint1 /* sqlite3.c:53636:31 */
// Indexes for use with Pager.aStat[]. The Pager.aStat[] array contains
// the values accessed by passing SQLITE_DBSTATUS_CACHE_HIT, CACHE_MISS
@@ -77551,11 +77551,11 @@ type PagerSavepoint = PagerSavepoint1 /* sqlite3.c:53626: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:53948:28 */
+} /* sqlite3.c:53958: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:54241:13: */
+func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54251: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
@@ -77578,7 +77578,7 @@ func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54241: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:54262:12: */
+func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:54272:12: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var p uintptr
var pgno Pgno = (*PgHdr)(unsafe.Pointer(pPg)).Fpgno
@@ -77600,7 +77600,7 @@ func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:54262: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:54295:12: */
+func read32bits(tls *libc.TLS, fd uintptr, offset I64, pRes uintptr) int32 { /* sqlite3.c:54305:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77617,7 +77617,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:54314:12: */
+func write32bits(tls *libc.TLS, fd uintptr, offset I64, val U32) int32 { /* sqlite3.c:54324:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -77634,7 +77634,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:54329:12: */
+func pagerUnlockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* sqlite3.c:54339:12: */
var rc int32 = SQLITE_OK
if (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods != uintptr(0) {
@@ -77661,7 +77661,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:54357:12: */
+func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* sqlite3.c:54367:12: */
var rc int32 = SQLITE_OK
if int32((*Pager)(unsafe.Pointer(pPager)).FeLock) < eLock || int32((*Pager)(unsafe.Pointer(pPager)).FeLock) == EXCLUSIVE_LOCK+1 {
@@ -77695,7 +77695,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:54390:12: */
+func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:54400:12: */
_ = pPager
@@ -77729,7 +77729,7 @@ func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:54390: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:54495:12: */
+func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32) int32 { /* sqlite3.c:54505:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -77788,7 +77788,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:54551:12: */
+func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* sqlite3.c:54561:12: */
var offset I64 = int64(0)
var c I64 = (*Pager)(unsafe.Pointer(pPager)).FjournalOff
if c != 0 {
@@ -77817,7 +77817,7 @@ func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* sqlite3.c:54551: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:54584:12: */
+func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /* sqlite3.c:54594:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -77852,7 +77852,7 @@ func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /*
return rc
}
-var zeroHdr = [28]int8{0: int8(0)} /* sqlite3.c:54595:25 */
+var zeroHdr = [28]int8{0: int8(0)} /* sqlite3.c:54605: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
@@ -77867,7 +77867,7 @@ var zeroHdr = [28]int8{0: int8(0)} /* sqlite3.c:54595: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:54634:12: */
+func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:54644: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
@@ -77977,7 +77977,7 @@ func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:54634: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:54752:12: */
+func readJournalHdr(tls *libc.TLS, pPager uintptr, isHot int32, journalSize I64, pNRec uintptr, pDbSize uintptr) int32 { /* sqlite3.c:54762:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -78087,7 +78087,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:54877:12: */
+func writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* sqlite3.c:54887:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -78147,21 +78147,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:54945:13: */
+func pager_reset(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54955: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:54954:20: */
+func Xsqlite3PagerDataVersion(tls *libc.TLS, pPager uintptr) U32 { /* sqlite3.c:54964: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:54963:13: */
+func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54973: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)
@@ -78178,7 +78178,7 @@ func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:54963: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:54982:12: */
+func addToSavepointBitvecs(tls *libc.TLS, pPager uintptr, pgno Pgno) int32 { /* sqlite3.c:54992:12: */
var ii int32 // Loop counter
var rc int32 = SQLITE_OK // Result code
@@ -78207,7 +78207,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:55014:13: */
+func pager_unlock(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55024:13: */
Xsqlite3BitvecDestroy(tls, (*Pager)(unsafe.Pointer(pPager)).FpInJournal)
(*Pager)(unsafe.Pointer(pPager)).FpInJournal = uintptr(0)
@@ -78299,7 +78299,7 @@ func pager_unlock(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55014: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:55111:12: */
+func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* sqlite3.c:55121:12: */
var rc2 int32 = rc & 0xff
if rc2 == SQLITE_FULL || rc2 == SQLITE_IOERR {
@@ -78324,7 +78324,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:55145:12: */
+func pagerFlushOnCommit(tls *libc.TLS, pPager uintptr, bCommit int32) int32 { /* sqlite3.c:55155:12: */
if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 {
return 1
}
@@ -78388,7 +78388,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:55205:12: */
+func pager_end_transaction(tls *libc.TLS, pPager uintptr, hasSuper int32, bCommit int32) int32 { /* sqlite3.c:55215:12: */
var rc int32 = SQLITE_OK // Error code from journal finalization operation
var rc2 int32 = SQLITE_OK // Error code from db file unlock operation
@@ -78515,7 +78515,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:55352:13: */
+func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55362: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 {
@@ -78547,7 +78547,7 @@ func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55352:
// 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:55386:12: */
+func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* sqlite3.c:55396: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 {
@@ -78592,7 +78592,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:55433:12: */
+func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDone uintptr, isMainJrnl int32, isSavepnt int32) int32 { /* sqlite3.c:55443:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -78826,7 +78826,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:55680:12: */
+func pager_delsuper(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* sqlite3.c:55690:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -78992,7 +78992,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:55798:12: */
+func pager_truncate(tls *libc.TLS, pPager uintptr, nPage Pgno) int32 { /* sqlite3.c:55808:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -79027,7 +79027,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:55834:20: */
+func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:55844:20: */
var iRet int32 = Xsqlite3OsSectorSize(tls, pFile)
if iRet < 32 {
iRet = 512
@@ -79059,7 +79059,7 @@ func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:55834
// (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:55868:13: */
+func setSectorSize(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55878:13: */
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 ||
Xsqlite3OsDeviceCharacteristics(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd)&SQLITE_IOCAP_POWERSAFE_OVERWRITE != 0 {
@@ -79127,7 +79127,7 @@ func setSectorSize(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:55868: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:55941:12: */
+func pager_playback(tls *libc.TLS, pPager uintptr, isHot int32) int32 { /* sqlite3.c:55951:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -79262,39 +79262,45 @@ __9:
__11:
;
(*Pager)(unsafe.Pointer(pPager)).FdbSize = *(*Pgno)(unsafe.Pointer(bp + 32 /* mxPg */))
+ if !((*Pager)(unsafe.Pointer(pPager)).FmxPgno < *(*Pgno)(unsafe.Pointer(bp + 32))) {
+ goto __12
+ }
+ (*Pager)(unsafe.Pointer(pPager)).FmxPgno = *(*Pgno)(unsafe.Pointer(bp + 32 /* mxPg */))
+__12:
+ ;
__10:
;
// Copy original pages out of the journal and back into the
// database file and/or page cache.
u = U32(0)
-__12:
+__13:
if !(u < *(*U32)(unsafe.Pointer(bp + 28))) {
- goto __14
+ goto __15
}
if !(needPagerReset != 0) {
- goto __15
+ goto __16
}
pager_reset(tls, pPager)
needPagerReset = 0
-__15:
+__16:
;
rc = pager_playback_one_page(tls, pPager, pPager+96, uintptr(0), 1, 0)
if !(rc == SQLITE_OK) {
- goto __16
+ goto __17
}
nPlayback++
- goto __17
-__16:
+ goto __18
+__17:
if !(rc == SQLITE_DONE) {
- goto __18
+ goto __19
}
(*Pager)(unsafe.Pointer(pPager)).FjournalOff = *(*I64)(unsafe.Pointer(bp + 16 /* szJ */))
- goto __14
- goto __19
-__18:
+ goto __15
+ goto __20
+__19:
if !(rc == SQLITE_IOERR|int32(2)<<8) {
- goto __20
+ goto __21
}
// If the journal has been truncated, simply stop reading and
// processing the journal. This might happen if the journal was
@@ -79303,25 +79309,25 @@ __18:
// first place so it is OK to simply abandon the rollback.
rc = SQLITE_OK
goto end_playback
- goto __21
-__20:
+ goto __22
+__21:
// If we are unable to rollback, quit and return the error
// code. This will cause the pager to enter the error state
// so that no further harm will be done. Perhaps the next
// process to come along will be able to rollback the database.
goto end_playback
-__21:
+__22:
;
-__19:
+__20:
;
-__17:
+__18:
;
- goto __13
-__13:
- u++
- goto __12
goto __14
__14:
+ u++
+ goto __13
+ goto __15
+__15:
;
goto __4
__5:
@@ -79330,10 +79336,10 @@ __5:
end_playback:
if !(rc == SQLITE_OK) {
- goto __22
+ goto __23
}
rc = Xsqlite3PagerSetPagesize(tls, pPager, bp+36, -1)
-__22:
+__23:
;
// Following a rollback, the database file should be back in its original
// state prior to the start of the transaction, so invoke the
@@ -79351,7 +79357,7 @@ __22:
(*Pager)(unsafe.Pointer(pPager)).FchangeCountDone = (*Pager)(unsafe.Pointer(pPager)).FtempFile
if !(rc == SQLITE_OK) {
- goto __23
+ goto __24
}
// Leave 4 bytes of space before the super-journal filename in memory.
// This is because it may end up being passed to sqlite3OsOpen(), in
@@ -79360,24 +79366,24 @@ __22:
zSuper = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace + 4
rc = readSuperJournal(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, zSuper, uint32((*Sqlite3_vfs)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).FpVfs)).FmxPathname+1))
-__23:
+__24:
;
if !(rc == SQLITE_OK &&
(int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_DBMOD || int32((*Pager)(unsafe.Pointer(pPager)).FeState) == PAGER_OPEN)) {
- goto __24
+ goto __25
}
rc = Xsqlite3PagerSync(tls, pPager, uintptr(0))
-__24:
+__25:
;
if !(rc == SQLITE_OK) {
- goto __25
+ goto __26
}
rc = pager_end_transaction(tls, pPager, libc.Bool32(int32(*(*int8)(unsafe.Pointer(zSuper))) != 0), 0)
-__25:
+__26:
;
if !(rc == SQLITE_OK && *(*int8)(unsafe.Pointer(zSuper)) != 0 && *(*int32)(unsafe.Pointer(bp + 24)) != 0) {
- goto __26
+ goto __27
}
// If there was a super-journal and this routine will return success,
// see if it is possible to delete the super-journal.
@@ -79385,14 +79391,14 @@ __25:
libc.Xmemset(tls, zSuper+libc.UintptrFromInt32(-4), 0, uint64(4))
rc = pager_delsuper(tls, pPager, zSuper)
-__26:
+__27:
;
if !(isHot != 0 && nPlayback != 0) {
- goto __27
+ goto __28
}
Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+5197,
libc.VaList(bp, nPlayback, (*Pager)(unsafe.Pointer(pPager)).FzJournal))
-__27:
+__28:
;
// The Pager.sectorSize variable may have been updated while rolling
@@ -79412,7 +79418,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:56158:12: */
+func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:56171:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -79466,7 +79472,7 @@ func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:56158: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:56221:13: */
+func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56234:13: */
var change_counter U32
if pPg == uintptr(0) {
return
@@ -79493,7 +79499,7 @@ func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:56221:
// 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:56249:12: */
+func pagerUndoCallback(tls *libc.TLS, pCtx uintptr, iPg Pgno) int32 { /* sqlite3.c:56262:12: */
var rc int32 = SQLITE_OK
var pPager uintptr = pCtx
var pPg uintptr
@@ -79524,7 +79530,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:56284:12: */
+func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:56297:12: */
var rc int32 // Return Code
var pList uintptr // List of dirty pages to revert
@@ -79555,7 +79561,7 @@ func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:56284:
//
// 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:56316:12: */
+func pagerWalFrames(tls *libc.TLS, pPager uintptr, pList uintptr, nTruncate Pgno, isCommit int32) int32 { /* sqlite3.c:56329:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pList
@@ -79603,7 +79609,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:56383:12: */
+func pagerBeginReadTransaction(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:56396:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -79634,7 +79640,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:56416:12: */
+func pagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) int32 { /* sqlite3.c:56429:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -79688,7 +79694,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:56476:12: */
+func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:56489:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -79756,7 +79762,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:56543:12: */
+func pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr) int32 { /* sqlite3.c:56556:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -79865,18 +79871,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:56655:21: */
+func Xsqlite3PagerSetCachesize(tls *libc.TLS, pPager uintptr, mxPage int32) { /* sqlite3.c:56668: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:56663:20: */
+func Xsqlite3PagerSetSpillsize(tls *libc.TLS, pPager uintptr, mxPage int32) int32 { /* sqlite3.c:56676: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:56670:13: */
+func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56683:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -79892,13 +79898,13 @@ func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56670: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:56686:21: */
+func Xsqlite3PagerSetMmapLimit(tls *libc.TLS, pPager uintptr, szMmap Sqlite3_int64) { /* sqlite3.c:56699: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:56694:21: */
+func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56707:21: */
Xsqlite3PcacheShrink(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache)
}
@@ -79951,7 +79957,7 @@ func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:56694: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:56750:21: */
+func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* sqlite3.c:56763:21: */
var level uint32 = pgFlags & uint32(PAGER_SYNCHRONOUS_MASK)
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 {
(*Pager)(unsafe.Pointer(pPager)).FnoSync = U8(1)
@@ -80015,7 +80021,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:56810:12: */
+func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) int32 { /* sqlite3.c:56823:12: */
var rc int32 // Return code
vfsFlags = vfsFlags | (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE)
@@ -80043,7 +80049,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:56849:21: */
+func Xsqlite3PagerSetBusyHandler(tls *libc.TLS, pPager uintptr, xBusyHandler uintptr, pBusyHandlerArg uintptr) { /* sqlite3.c:56862:21: */
var ap uintptr
(*Pager)(unsafe.Pointer(pPager)).FxBusyHandler = xBusyHandler
(*Pager)(unsafe.Pointer(pPager)).FpBusyHandlerArg = pBusyHandlerArg
@@ -80080,7 +80086,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:56893:20: */
+func Xsqlite3PagerSetPagesize(tls *libc.TLS, pPager uintptr, pPageSize uintptr, nReserve int32) int32 { /* sqlite3.c:56906:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -80149,7 +80155,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:56961:21: */
+func Xsqlite3PagerTempSpace(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:56974:21: */
return (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace
}
@@ -80158,7 +80164,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:56972:21: */
+func Xsqlite3PagerMaxPageCount(tls *libc.TLS, pPager uintptr, mxPage Pgno) Pgno { /* sqlite3.c:56985:21: */
if mxPage > Pgno(0) {
(*Pager)(unsafe.Pointer(pPager)).FmxPgno = mxPage
}
@@ -80189,7 +80195,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:57022:20: */
+func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest uintptr) int32 { /* sqlite3.c:57035:20: */
var rc int32 = SQLITE_OK
libc.Xmemset(tls, pDest, 0, uint64(N))
@@ -80212,7 +80218,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:57050:21: */
+func Xsqlite3PagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) { /* sqlite3.c:57063:21: */
*(*int32)(unsafe.Pointer(pnPage)) = int32((*Pager)(unsafe.Pointer(pPager)).FdbSize)
}
@@ -80229,7 +80235,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:57071:12: */
+func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { /* sqlite3.c:57084:12: */
var rc int32 // Return code
// Check that this is either a no-op (because the requested lock is
@@ -80274,7 +80280,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:57142:21: */
+func Xsqlite3PagerTruncateImage(tls *libc.TLS, pPager uintptr, nPage Pgno) { /* sqlite3.c:57155:21: */
(*Pager)(unsafe.Pointer(pPager)).FdbSize = nPage
@@ -80301,7 +80307,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:57173:12: */
+func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57186: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)
@@ -80320,7 +80326,7 @@ func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:571
//
// 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:57195:12: */
+func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr, ppPage uintptr) int32 { /* sqlite3.c:57208:12: */
var p uintptr // Memory mapped page to return
if (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist != 0 {
@@ -80350,7 +80356,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:57239:13: */
+func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:57252:13: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
(*Pager)(unsafe.Pointer(pPager)).FnMmapOut--
(*PgHdr)(unsafe.Pointer(pPg)).FpDirty = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist
@@ -80360,7 +80366,7 @@ func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:57239:13: */
}
// Free all PgHdr objects stored in the Pager.pMmapFreelist list.
-func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:57252:13: */
+func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:57265:13: */
var p uintptr
var pNext uintptr
for p = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist; p != 0; p = pNext {
@@ -80373,7 +80379,7 @@ func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:57252: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:57266:12: */
+func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57279:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -80411,7 +80417,7 @@ func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57266
// 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:57300:20: */
+func Xsqlite3PagerClose(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* sqlite3.c:57313:20: */
var pTmp uintptr = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace
Xsqlite3BeginBenignMalloc(tls)
@@ -80460,7 +80466,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:57369:21: */
+func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:57382:21: */
Xsqlite3PcacheRef(tls, pPg)
}
@@ -80497,7 +80503,7 @@ func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:57369: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:57408:12: */
+func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* sqlite3.c:57421:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -80611,7 +80617,7 @@ func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* sqlite3
return SQLITE_OK
}
-var zerobyte U8 = U8(0) /* sqlite3.c:57459:27 */
+var zerobyte U8 = U8(0) /* sqlite3.c:57472: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
@@ -80643,7 +80649,7 @@ var zerobyte U8 = U8(0) /* sqlite3.c:57459: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:57551:12: */
+func pager_write_pagelist(tls *libc.TLS, pPager uintptr, pList uintptr) int32 { /* sqlite3.c:57564:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -80723,7 +80729,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:57642:12: */
+func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57655: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 |
@@ -80747,7 +80753,7 @@ func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57642: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:57668:12: */
+func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:57681:12: */
var rc int32 = SQLITE_OK
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
if int32((*Pager)(unsafe.Pointer(pPager)).FjournalMode) != PAGER_JOURNALMODE_OFF {
@@ -80778,7 +80784,7 @@ func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:57668:12: *
return rc
}
-func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:57704:12: */
+func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:57717:12: */
if subjRequiresPage(tls, pPg) != 0 {
return subjournalPage(tls, pPg)
} else {
@@ -80804,7 +80810,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:57731:12: */
+func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* sqlite3.c:57744:12: */
var pPager uintptr = p
var rc int32 = SQLITE_OK
@@ -80866,7 +80872,7 @@ func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* sqlite3.c:577
}
// Flush all unreferenced dirty pages to disk.
-func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57808:20: */
+func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:57821: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)
@@ -80913,7 +80919,7 @@ func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:5780
// 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:57857:20: */
+func Xsqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename uintptr, nExtra int32, flags int32, vfsFlags int32, xReinit uintptr) int32 { /* sqlite3.c:57870:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -81039,7 +81045,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, 57944)
+ rc = Xsqlite3CantopenError(tls, 57957)
__12:
;
if !(rc != SQLITE_OK) {
@@ -81358,7 +81364,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:58229:25: */
+func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:58242: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--
@@ -81396,7 +81402,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:58270:12: */
+func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* sqlite3.c:58283:12: */
bp := tls.Alloc(17)
defer tls.Free(17)
@@ -81507,7 +81513,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:58390:20: */
+func Xsqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:58403:20: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -81633,7 +81639,7 @@ __7:
if !(rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8))&SQLITE_OPEN_READONLY != 0) {
goto __10
}
- rc = Xsqlite3CantopenError(tls, 58474)
+ rc = Xsqlite3CantopenError(tls, 58487)
Xsqlite3OsClose(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd)
__10:
;
@@ -81782,7 +81788,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:58607:13: */
+func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:58620:13: */
if Xsqlite3PcacheRefCount(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) == 0 {
// because page1 is never memory mapped
pagerUnlockAndRollback(tls, pPager)
@@ -81844,7 +81850,7 @@ func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:58607: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:58671:12: */
+func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58684:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -81857,7 +81863,7 @@ func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, fla
if !(pgno == Pgno(0)) {
goto __1
}
- return Xsqlite3CorruptError(tls, 58687)
+ return Xsqlite3CorruptError(tls, 58700)
__1:
;
*(*uintptr)(unsafe.Pointer(bp /* pBase */)) = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 3)
@@ -81903,7 +81909,7 @@ __5:
if !(pgno == Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1))) {
goto __7
}
- rc = Xsqlite3CorruptError(tls, 58719)
+ rc = Xsqlite3CorruptError(tls, 58732)
goto pager_acquire_err
__7:
;
@@ -81975,7 +81981,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:58773:12: */
+func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58786:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -81995,7 +82001,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, 58798)
+ return Xsqlite3CorruptError(tls, 58811)
}
if bMmapOk != 0 && (*Pager)(unsafe.Pointer(pPager)).FpWal != uintptr(0) {
@@ -82033,7 +82039,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:58842:12: */
+func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58855:12: */
_ = pgno
_ = flags
@@ -82042,7 +82048,7 @@ func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flag
}
// Dispatch all page fetch requests to the appropriate getter method.
-func Xsqlite3PagerGet(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58858:20: */
+func Xsqlite3PagerGet(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:58871:20: */
// printf("PAGE %u\n", pgno); fflush(stdout);
return (*struct {
f func(*libc.TLS, uintptr, Pgno, uintptr, int32) int32
@@ -82058,7 +82064,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:58879:23: */
+func Xsqlite3PagerLookup(tls *libc.TLS, pPager uintptr, pgno Pgno) uintptr { /* sqlite3.c:58892:23: */
var pPage uintptr
pPage = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 0)
@@ -82079,7 +82085,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:58902:21: */
+func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58915:21: */
if int32((*DbPage)(unsafe.Pointer(pPg)).Fflags)&PGHDR_MMAP != 0 {
// Page1 is never memory mapped
@@ -82091,13 +82097,13 @@ func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58902:
}
-func Xsqlite3PagerUnref(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58914:21: */
+func Xsqlite3PagerUnref(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58927:21: */
if pPg != 0 {
Xsqlite3PagerUnrefNotNull(tls, pPg)
}
}
-func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58917:21: */
+func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58930:21: */
var pPager uintptr
// Page1 is never memory mapped
@@ -82126,7 +82132,7 @@ func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:58917:
// 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:58949:12: */
+func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:58962:12: */
var rc int32 = SQLITE_OK // Return code
var pVfs uintptr = (*Pager)(unsafe.Pointer(pPager)).FpVfs // Local cache of vfs pointer
@@ -82208,7 +82214,7 @@ func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:5894
// 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:59038:20: */
+func Xsqlite3PagerBegin(tls *libc.TLS, pPager uintptr, exFlag int32, subjInMemory int32) int32 { /* sqlite3.c:59051:20: */
var rc int32 = SQLITE_OK
if (*Pager)(unsafe.Pointer(pPager)).FerrCode != 0 {
@@ -82268,7 +82274,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:59107:28: */
+func pagerAddPageToRollbackJournal(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:59120:28: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var rc int32
var cksum U32
@@ -82318,7 +82324,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:59164:12: */
+func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:59177:12: */
var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager
var rc int32 = SQLITE_OK
@@ -82392,7 +82398,7 @@ func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:59164: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:59256:28: */
+func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:59269:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82480,7 +82486,7 @@ func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:5925
//
// 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:59350:20: */
+func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:59363: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 {
@@ -82521,7 +82527,7 @@ func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* sqlite3.c:59350: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:59399:21: */
+func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:59412: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 {
@@ -82551,7 +82557,7 @@ func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* sqlite3.c:59399: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:59433:12: */
+func pager_incr_changecounter(tls *libc.TLS, pPager uintptr, isDirectMode int32) int32 { /* sqlite3.c:59446:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82621,7 +82627,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:59516:20: */
+func Xsqlite3PagerSync(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* sqlite3.c:59529:20: */
var rc int32 = SQLITE_OK
var pArg uintptr = zSuper
rc = Xsqlite3OsFileControl(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, SQLITE_FCNTL_SYNC, pArg)
@@ -82644,7 +82650,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:59539:20: */
+func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59552:20: */
var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode
if rc == SQLITE_OK {
@@ -82680,7 +82686,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:59581:20: */
+func Xsqlite3PagerCommitPhaseOne(tls *libc.TLS, pPager uintptr, zSuper uintptr, noSync int32) int32 { /* sqlite3.c:59594:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -82870,7 +82876,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:59811:20: */
+func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59824:20: */
var rc int32 = SQLITE_OK // Return code
// This routine should not be called if a prior error has occurred.
@@ -82927,7 +82933,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:59877:20: */
+func Xsqlite3PagerRollback(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59890:20: */
var rc int32 = SQLITE_OK // Return code
// PagerRollback() is a no-op if called in READER or OPEN state. If
@@ -82971,13 +82977,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:59927:19: */
+func Xsqlite3PagerIsreadonly(tls *libc.TLS, pPager uintptr) U8 { /* sqlite3.c:59940: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:59944:20: */
+func Xsqlite3PagerMemUsed(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:59957: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)+
@@ -82986,7 +82992,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:59955:20: */
+func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:59968:20: */
return Xsqlite3PcachePageRefcount(tls, pPage)
}
@@ -82999,7 +83005,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:59991:21: */
+func Xsqlite3PagerCacheStat(tls *libc.TLS, pPager uintptr, eStat int32, reset int32, pnVal uintptr) { /* sqlite3.c:60004:21: */
eStat = eStat - SQLITE_DBSTATUS_CACHE_HIT
*(*int32)(unsafe.Pointer(pnVal)) += *(*int32)(unsafe.Pointer(pPager + 240 + uintptr(eStat)*4))
@@ -83009,7 +83015,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:60014:20: */
+func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60027:20: */
return libc.Bool32((*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 || (*Pager)(unsafe.Pointer(pPager)).FmemVfs != 0)
}
@@ -83021,7 +83027,7 @@ func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60
// 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:60028:28: */
+func pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* sqlite3.c:60041: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
@@ -83061,7 +83067,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:60074:20: */
+func Xsqlite3PagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* sqlite3.c:60087:20: */
if nSavepoint > (*Pager)(unsafe.Pointer(pPager)).FnSavepoint && (*Pager)(unsafe.Pointer(pPager)).FuseJournal != 0 {
return pagerOpenSavepoint(tls, pPager, nSavepoint)
@@ -83099,7 +83105,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:60116:20: */
+func Xsqlite3PagerSavepoint(tls *libc.TLS, pPager uintptr, op int32, iSavepoint int32) int32 { /* sqlite3.c:60129:20: */
var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode
if rc == SQLITE_OK && iSavepoint < (*Pager)(unsafe.Pointer(pPager)).FnSavepoint {
@@ -83160,30 +83166,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:60197:27: */
+func Xsqlite3PagerFilename(tls *libc.TLS, pPager uintptr, nullIfMemDb int32) uintptr { /* sqlite3.c:60210: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:60198:21 */
+var zFake = [8]int8{int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0)} /* sqlite3.c:60211:21 */
// Return the VFS structure for the pager.
-func Xsqlite3PagerVfs(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:60205:28: */
+func Xsqlite3PagerVfs(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:60218: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:60214:29: */
+func Xsqlite3PagerFile(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:60227: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:60222:29: */
+func Xsqlite3PagerJrnlFile(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:60235:29: */
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
return Xsqlite3WalFile(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
}
@@ -83191,7 +83197,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:60233:27: */
+func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:60246:27: */
return (*Pager)(unsafe.Pointer(pPager)).FzJournal
}
@@ -83218,7 +83224,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:60263:20: */
+func Xsqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno Pgno, isCommit int32) int32 { /* sqlite3.c:60276:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -83280,7 +83286,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, 60337)
+ return Xsqlite3CorruptError(tls, 60350)
}
*(*U16)(unsafe.Pointer(pPg + 52)) |= U16(int32((*PgHdr)(unsafe.Pointer(pPgOld)).Fflags) & PGHDR_NEED_SYNC)
if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 {
@@ -83340,21 +83346,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:60401:21: */
+func Xsqlite3PagerRekey(tls *libc.TLS, pPg uintptr, iNew Pgno, flags U16) { /* sqlite3.c:60414: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:60410:21: */
+func Xsqlite3PagerGetData(tls *libc.TLS, pPg uintptr) uintptr { /* sqlite3.c:60423: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:60419:21: */
+func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* sqlite3.c:60432:21: */
return (*DbPage)(unsafe.Pointer(pPg)).FpExtra
}
@@ -83366,7 +83372,7 @@ func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* sqlite3.c:60
// 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:60433:20: */
+func Xsqlite3PagerLockingMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* sqlite3.c:60446:20: */
if eMode >= 0 && !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && !(Xsqlite3WalHeapMemory(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal) != 0) {
(*Pager)(unsafe.Pointer(pPager)).FexclusiveMode = U8(eMode)
@@ -83392,7 +83398,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:60466:20: */
+func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* sqlite3.c:60479:20: */
var eOld U8 = (*Pager)(unsafe.Pointer(pPager)).FjournalMode // Prior journalmode
// The eMode parameter is always valid
@@ -83462,14 +83468,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:60556:20: */
+func Xsqlite3PagerGetJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60569: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:60565:20: */
+func Xsqlite3PagerOkToChangeJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60578:20: */
if int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_CACHEMOD {
return 0
@@ -83484,7 +83490,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:60578:20: */
+func Xsqlite3PagerJournalSizeLimit(tls *libc.TLS, pPager uintptr, iLimit I64) I64 { /* sqlite3.c:60591:20: */
if iLimit >= int64(-1) {
(*Pager)(unsafe.Pointer(pPager)).FjournalSizeLimit = iLimit
Xsqlite3WalLimit(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, iLimit)
@@ -83496,12 +83502,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:60592:31: */
+func Xsqlite3PagerBackupPtr(tls *libc.TLS, pPager uintptr) uintptr { /* sqlite3.c:60605: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:60600:21: */
+func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:60613:21: */
if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 {
pager_reset(tls, pPager)
@@ -83513,7 +83519,7 @@ func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:60600
// 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:60615:20: */
+func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* sqlite3.c:60628: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
@@ -83541,13 +83547,13 @@ func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode in
return rc
}
-func Xsqlite3PagerWalCallback(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60646:20: */
+func Xsqlite3PagerWalCallback(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60659: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:60654:20: */
+func Xsqlite3PagerWalSupported(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60667:20: */
var pMethods uintptr = (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods
if (*Pager)(unsafe.Pointer(pPager)).FnoLock != 0 {
return 0
@@ -83557,7 +83563,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:60664:12: */
+func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60677:12: */
var rc int32 // Return code
rc = pagerLockDb(tls, pPager, EXCLUSIVE_LOCK)
@@ -83574,7 +83580,7 @@ func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:6066
// 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:60684:12: */
+func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60697:12: */
var rc int32 = SQLITE_OK
// If the pager is already in exclusive-mode, the WAL module will use
@@ -83610,7 +83616,7 @@ func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60684: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:60729:20: */
+func Xsqlite3PagerOpenWal(tls *libc.TLS, pPager uintptr, pbOpen uintptr) int32 { /* sqlite3.c:60742:20: */
var rc int32 = SQLITE_OK // Return code
if !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && !(int32((*Pager)(unsafe.Pointer(pPager)).FpWal) != 0) {
@@ -83640,7 +83646,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:60768:20: */
+func Xsqlite3PagerCloseWal(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* sqlite3.c:60781:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -83680,7 +83686,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:60837:20: */
+func Xsqlite3PagerSnapshotGet(tls *libc.TLS, pPager uintptr, ppSnapshot uintptr) int32 { /* sqlite3.c:60850:20: */
var rc int32 = SQLITE_ERROR
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotGet(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, ppSnapshot)
@@ -83691,7 +83697,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:60850:20: */
+func Xsqlite3PagerSnapshotOpen(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* sqlite3.c:60863:20: */
var rc int32 = SQLITE_OK
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
Xsqlite3WalSnapshotOpen(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot)
@@ -83703,7 +83709,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:60867:20: */
+func Xsqlite3PagerSnapshotRecover(tls *libc.TLS, pPager uintptr) int32 { /* sqlite3.c:60880:20: */
var rc int32
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotRecover(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
@@ -83723,7 +83729,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:60889:20: */
+func Xsqlite3PagerSnapshotCheck(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* sqlite3.c:60902:20: */
var rc int32
if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 {
rc = Xsqlite3WalSnapshotCheck(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot)
@@ -83735,7 +83741,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:60903:21: */
+func Xsqlite3PagerSnapshotUnlock(tls *libc.TLS, pPager uintptr) { /* sqlite3.c:60916:21: */
Xsqlite3WalSnapshotUnlock(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal)
}
@@ -84314,7 +84320,7 @@ type WalIndexHdr1 = struct {
// byte.
// Object declarations
-type WalIndexHdr = WalIndexHdr1 /* sqlite3.c:61231:28 */
+type WalIndexHdr = WalIndexHdr1 /* sqlite3.c:61244:28 */
type WalIterator1 = struct {
FiPrior U32
FnSegment int32
@@ -84326,18 +84332,18 @@ type WalIterator1 = struct {
FnEntry int32
FiZero int32
}
-} /* sqlite3.c:61232:9 */
+} /* sqlite3.c:61245:9 */
-type WalIterator = WalIterator1 /* sqlite3.c:61232:28 */
+type WalIterator = WalIterator1 /* sqlite3.c:61245:28 */
type WalCkptInfo1 = struct {
FnBackfill U32
FaReadMark [5]U32
FaLock [8]U8
FnBackfillAttempted U32
FnotUsed0 U32
-} /* sqlite3.c:61233:9 */
+} /* sqlite3.c:61246:9 */
-type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:61233:28 */
+type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:61246:28 */
// Candidate values for Wal.exclusiveMode.
@@ -84345,7 +84351,7 @@ type WalCkptInfo = WalCkptInfo1 /* sqlite3.c:61233: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:61488:13 */
+type Ht_slot = U16 /* sqlite3.c:61501: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
@@ -84367,7 +84373,7 @@ type WalSegment = struct {
FaPgno uintptr
FnEntry int32
FiZero int32
-} /* sqlite3.c:61232:9 */
+} /* sqlite3.c:61245: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
@@ -84398,7 +84404,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:61559:28: */
+func walIndexPageRealloc(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* sqlite3.c:61572:28: */
var rc int32 = SQLITE_OK
// Enlarge the pWal->apWiData[] array if required
@@ -84444,7 +84450,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:61608:12: */
+func walIndexPage(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* sqlite3.c:61621: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)
}
@@ -84452,13 +84458,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:61622:29: */
+func walCkptInfo(tls *libc.TLS, pWal uintptr) uintptr { /* sqlite3.c:61635: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:61630:29: */
+func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* sqlite3.c:61643:29: */
return *(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData))
}
@@ -84476,7 +84482,7 @@ func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* sqlite3.c:61630: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:61656:13: */
+func walChecksumBytes(tls *libc.TLS, nativeCksum int32, a uintptr, nByte int32, aIn uintptr, aOut uintptr) { /* sqlite3.c:61669:13: */
var s1 U32
var s2 U32
var aData uintptr = a
@@ -84508,7 +84514,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:61699:13: */
+func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61712:13: */
if int32((*Wal)(unsafe.Pointer(pWal)).FexclusiveMode) != WAL_HEAPMEMORY_MODE {
Xsqlite3OsShmBarrier(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd)
}
@@ -84523,7 +84529,7 @@ func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61699: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:61723:28: */
+func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61736:28: */
var aHdr uintptr = walIndexHdr(tls, pWal)
var nCksum int32 = int32(uintptr(0) + 40)
@@ -84547,7 +84553,7 @@ func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61723: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:61750:13: */
+func walEncodeFrame(tls *libc.TLS, pWal uintptr, iPage U32, nTruncate U32, aData uintptr, aFrame uintptr) { /* sqlite3.c:61763:13: */
var nativeCksum int32 // True for native byte-order checksums
var aCksum uintptr = pWal + 72 + 24
@@ -84570,7 +84576,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:61781:12: */
+func walDecodeFrame(tls *libc.TLS, pWal uintptr, piPage uintptr, pnTruncate uintptr, aData uintptr, aFrame uintptr) int32 { /* sqlite3.c:61794:12: */
var nativeCksum int32 // True for native byte-order checksums
var aCksum uintptr = pWal + 72 + 24
var pgno U32 // Page number of the frame
@@ -84612,7 +84618,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:61860:12: */
+func walLockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) int32 { /* sqlite3.c:61873:12: */
var rc int32
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return SQLITE_OK
@@ -84623,7 +84629,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:61870:13: */
+func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* sqlite3.c:61883:13: */
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return
}
@@ -84632,7 +84638,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:61876:12: */
+func walLockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) int32 { /* sqlite3.c:61889:12: */
var rc int32
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return SQLITE_OK
@@ -84643,7 +84649,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:61886:13: */
+func walUnlockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) { /* sqlite3.c:61899:13: */
if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 {
return
}
@@ -84655,12 +84661,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:61899:12: */
+func walHash(tls *libc.TLS, iPage U32) int32 { /* sqlite3.c:61912:12: */
return int32(iPage * U32(HASHTABLE_HASH_1) & U32(HASHTABLE_NPAGE*2-1))
}
-func walNextHash(tls *libc.TLS, iPriorHash int32) int32 { /* sqlite3.c:61904:12: */
+func walNextHash(tls *libc.TLS, iPriorHash int32) int32 { /* sqlite3.c:61917:12: */
return (iPriorHash + 1) & (HASHTABLE_NPAGE*2 - 1)
}
@@ -84672,12 +84678,12 @@ type WalHashLoc1 = struct {
FaPgno uintptr
FiZero U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:61913:9 */
+} /* sqlite3.c:61926: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:61913:27 */
+type WalHashLoc = WalHashLoc1 /* sqlite3.c:61926: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
@@ -84691,7 +84697,7 @@ type WalHashLoc = WalHashLoc1 /* sqlite3.c:61913: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:61934:12: */
+func walHashGet(tls *libc.TLS, pWal uintptr, iHash int32, pLoc uintptr) int32 { /* sqlite3.c:61947:12: */
var rc int32 // Return code
rc = walIndexPage(tls, pWal, iHash, pLoc+8)
@@ -84714,14 +84720,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:61964:12: */
+func walFramePage(tls *libc.TLS, iFrame U32) int32 { /* sqlite3.c:61977: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:61979:12: */
+func walFramePgno(tls *libc.TLS, pWal uintptr, iFrame U32) U32 { /* sqlite3.c:61992: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))
@@ -84739,7 +84745,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:61999:13: */
+func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:62012:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -84782,7 +84788,7 @@ func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:61999: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:62061:12: */
+func walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame U32, iPage U32) int32 { /* sqlite3.c:62074:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -84823,7 +84829,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, 62101)
+ return Xsqlite3CorruptError(tls, 62114)
}
}
*(*U32)(unsafe.Pointer((*WalHashLoc)(unsafe.Pointer(bp /* &sLoc */)).FaPgno + uintptr(idx-1)*4)) = iPage
@@ -84842,7 +84848,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:62150:12: */
+func walIndexRecover(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:62163:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -84957,7 +84963,7 @@ __6:
if !(version != U32(WAL_MAX_VERSION)) {
goto __7
}
- rc = Xsqlite3CantopenError(tls, 62233)
+ rc = Xsqlite3CantopenError(tls, 62246)
goto finished
__7:
;
@@ -85161,7 +85167,7 @@ recovery_error:
}
// Close an open wal-index.
-func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* sqlite3.c:62373:13: */
+func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* sqlite3.c:62386: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++ {
@@ -85187,7 +85193,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:62401:20: */
+func Xsqlite3WalOpen(tls *libc.TLS, pVfs uintptr, pDbFd uintptr, zWalName uintptr, bNoShm int32, mxWalSize I64, ppWal uintptr) int32 { /* sqlite3.c:62414:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -85259,7 +85265,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:62504:21: */
+func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* sqlite3.c:62517:21: */
if pWal != 0 {
(*Wal)(unsafe.Pointer(pWal)).FmxWalSize = iLimit
}
@@ -85273,7 +85279,7 @@ func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* sqlite3.c:62
//
// 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:62518:12: */
+func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) int32 { /* sqlite3.c:62531: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
@@ -85320,7 +85326,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:62571:13: */
+func walMerge(tls *libc.TLS, aContent uintptr, aLeft uintptr, nLeft int32, paRight uintptr, pnRight uintptr, aTmp uintptr) { /* sqlite3.c:62584: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
@@ -85366,7 +85372,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:62628:13: */
+func walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintptr, pnList uintptr) { /* sqlite3.c:62641:13: */
bp := tls.Alloc(220)
defer tls.Free(220)
@@ -85412,10 +85418,10 @@ type Sublist = struct {
FnList int32
F__ccgo_pad1 [4]byte
FaList uintptr
-} /* sqlite3.c:62634:3 */
+} /* sqlite3.c:62647:3 */
// Free an iterator allocated by walIteratorInit().
-func walIteratorFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:62691:13: */
+func walIteratorFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:62704:13: */
Xsqlite3_free(tls, p)
}
@@ -85430,7 +85436,7 @@ func walIteratorFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:62691: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:62708:12: */
+func walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill U32, pp uintptr) int32 { /* sqlite3.c:62721:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -85514,7 +85520,7 @@ func walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill U32, pp uintptr) int
// n. If the attempt fails and parameter xBusy is not NULL, then it is a
// busy-handler function. Invoke it and retry the lock until either the
// lock is successfully obtained or the busy-handler returns 0.
-func walBusyLock(tls *libc.TLS, pWal uintptr, xBusy uintptr, pBusyArg uintptr, lockIdx int32, n int32) int32 { /* sqlite3.c:62871:12: */
+func walBusyLock(tls *libc.TLS, pWal uintptr, xBusy uintptr, pBusyArg uintptr, lockIdx int32, n int32) int32 { /* sqlite3.c:62884:12: */
var rc int32
for __ccgo := true; __ccgo; __ccgo = xBusy != 0 && rc == SQLITE_BUSY && (*struct {
f func(*libc.TLS, uintptr) int32
@@ -85526,7 +85532,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:62895:12: */
+func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:62908:12: */
return int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0xfe00 + int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0x0001<<16
}
@@ -85545,7 +85551,7 @@ func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:62895: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:62916:13: */
+func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* sqlite3.c:62929:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
*(*U32)(unsafe.Pointer(bp)) = salt1
@@ -85596,7 +85602,7 @@ func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* sqlite3.c:62916:
// 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:62963:12: */
+func walCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy uintptr, pBusyArg uintptr, sync_flags int32, zBuf uintptr) int32 { /* sqlite3.c:62976:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -85727,7 +85733,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, 63047)
+ rc = Xsqlite3CorruptError(tls, 63060)
goto __15
__14:
Xsqlite3OsFileControlHint(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd, SQLITE_FCNTL_SIZE_HINT, bp+16)
@@ -85888,7 +85894,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:63149:13: */
+func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* sqlite3.c:63162:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -85907,7 +85913,7 @@ func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* sqlite3.c:63149:13
}
// 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:63166:20: */
+func Xsqlite3WalClose(tls *libc.TLS, pWal uintptr, db uintptr, sync_flags int32, nBuf int32, zBuf uintptr) int32 { /* sqlite3.c:63179:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -85979,7 +85985,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:63247:27: */
+func walIndexTryHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* sqlite3.c:63260:27: */
bp := tls.Alloc(104)
defer tls.Free(104)
@@ -86048,7 +86054,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:63317:12: */
+func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* sqlite3.c:63330:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -86128,7 +86134,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, 63396)
+ rc = Xsqlite3CantopenError(tls, 63409)
}
if (*Wal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 {
if rc != SQLITE_OK {
@@ -86173,7 +86179,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:63441:12: */
+func walBeginShmUnreliable(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* sqlite3.c:63454:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -86439,7 +86445,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:63638:12: */
+func walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int32, cnt int32) int32 { /* sqlite3.c:63651:12: */
var pInfo uintptr // Checkpoint information in wal-index
var mxReadMark U32 // Largest aReadMark[] value
var mxI int32 // Index of largest aReadMark[] value
@@ -86656,7 +86662,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:63868:20: */
+func Xsqlite3WalSnapshotRecover(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:63881:20: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -86730,7 +86736,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:63939:20: */
+func Xsqlite3WalBeginReadTransaction(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* sqlite3.c:63952:20: */
var rc int32 // Return code
var cnt int32 = 0 // Number of TryBeginRead attempts
var bChanged int32 = 0
@@ -86818,7 +86824,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:64047:21: */
+func Xsqlite3WalEndReadTransaction(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:64060:21: */
Xsqlite3WalEndWriteTransaction(tls, pWal)
if int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 {
walUnlockShared(tls, pWal, 3+int32((*Wal)(unsafe.Pointer(pWal)).FreadLock))
@@ -86832,7 +86838,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:64063:20: */
+func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr) int32 { /* sqlite3.c:64076:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -86899,7 +86905,7 @@ func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr
iRead = iFrame
}
if libc.PostDecInt32(&nCollide, 1) == 0 {
- return Xsqlite3CorruptError(tls, 64133)
+ return Xsqlite3CorruptError(tls, 64146)
}
iKey = walNextHash(tls, iKey)
}
@@ -86915,7 +86921,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:64167:20: */
+func Xsqlite3WalReadFrame(tls *libc.TLS, pWal uintptr, iRead U32, nOut int32, pOut uintptr) int32 { /* sqlite3.c:64180:20: */
var sz int32
var iOffset I64
sz = int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)
@@ -86932,7 +86938,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:64187:21: */
+func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* sqlite3.c:64200:21: */
if pWal != 0 && int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 {
return (*Wal)(unsafe.Pointer(pWal)).Fhdr.FnPage
}
@@ -86950,7 +86956,7 @@ func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* sqlite3.c:64187: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:64208:20: */
+func Xsqlite3WalBeginWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64221:20: */
var rc int32
// Cannot start a write transaction without first holding a read
@@ -86982,7 +86988,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:64256:20: */
+func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64269:20: */
if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 {
walUnlockExclusive(tls, pWal, WAL_WRITE_LOCK, 1)
(*Wal)(unsafe.Pointer(pWal)).FwriteLock = U8(0)
@@ -87002,7 +87008,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:64278:20: */
+func Xsqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintptr) int32 { /* sqlite3.c:64291:20: */
var rc int32 = SQLITE_OK
if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 {
var iMax Pgno = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame
@@ -87039,7 +87045,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:64318:21: */
+func Xsqlite3WalSavepoint(tls *libc.TLS, pWal uintptr, aWalData uintptr) { /* sqlite3.c:64331:21: */
*(*U32)(unsafe.Pointer(aWalData)) = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame
*(*U32)(unsafe.Pointer(aWalData + 1*4)) = *(*U32)(unsafe.Pointer(pWal + 72 + 24))
@@ -87051,7 +87057,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:64332:20: */
+func Xsqlite3WalSavepointUndo(tls *libc.TLS, pWal uintptr, aWalData uintptr) int32 { /* sqlite3.c:64345:20: */
var rc int32 = SQLITE_OK
if *(*U32)(unsafe.Pointer(aWalData + 3*4)) != (*Wal)(unsafe.Pointer(pWal)).FnCkpt {
@@ -87082,7 +87088,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:64369:12: */
+func walRestartLog(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64382:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -87136,12 +87142,12 @@ type WalWriter1 = struct {
FiSyncPoint Sqlite3_int64
FsyncFlags int32
FszPage int32
-} /* sqlite3.c:64416:9 */
+} /* sqlite3.c:64429: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:64422:3 */
+type WalWriter = WalWriter1 /* sqlite3.c:64435:3 */
// Write iAmt bytes of content into the WAL file beginning at iOffset.
// Do a sync when crossing the p->iSyncPoint boundary.
@@ -87149,7 +87155,7 @@ type WalWriter = WalWriter1 /* sqlite3.c:64422: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:64432:12: */
+func walWriteToLog(tls *libc.TLS, p uintptr, pContent uintptr, iAmt int32, iOffset Sqlite3_int64) int32 { /* sqlite3.c:64445: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)
@@ -87171,7 +87177,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:64457:12: */
+func walWriteOneFrame(tls *libc.TLS, p uintptr, pPage uintptr, nTruncate int32, iOffset Sqlite3_int64) int32 { /* sqlite3.c:64470:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -87196,7 +87202,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:64483:12: */
+func walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast U32) int32 { /* sqlite3.c:64496:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -87250,7 +87256,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:64532:20: */
+func Xsqlite3WalFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, nTruncate Pgno, isCommit int32, sync_flags int32) int32 { /* sqlite3.c:64545:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -87483,7 +87489,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:64770: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:64783:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -87548,7 +87554,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, 64852)
+ rc = Xsqlite3CorruptError(tls, 64865)
} else {
rc = walCheckpoint(tls, pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf)
}
@@ -87592,7 +87598,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:64895:20: */
+func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64908:20: */
var ret U32 = U32(0)
if pWal != 0 {
ret = (*Wal)(unsafe.Pointer(pWal)).FiCallback
@@ -87623,7 +87629,7 @@ func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64895
// 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:64928:20: */
+func Xsqlite3WalExclusiveMode(tls *libc.TLS, pWal uintptr, op int32) int32 { /* sqlite3.c:64941:20: */
var rc int32
// pWal->readLock is usually set, but might be -1 if there was a
@@ -87657,14 +87663,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:64970:20: */
+func Xsqlite3WalHeapMemory(tls *libc.TLS, pWal uintptr) int32 { /* sqlite3.c:64983: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:64979:20: */
+func Xsqlite3WalSnapshotGet(tls *libc.TLS, pWal uintptr, ppSnapshot uintptr) int32 { /* sqlite3.c:64992:20: */
var rc int32 = SQLITE_OK
var pRet uintptr
@@ -87683,16 +87689,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:64982:20 */
+var aZero = [4]U32{U32(0), U32(0), U32(0), U32(0)} /* sqlite3.c:64995:20 */
// Try to open on pSnapshot when the next read-transaction starts
-func Xsqlite3WalSnapshotOpen(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) { /* sqlite3.c:65003:21: */
+func Xsqlite3WalSnapshotOpen(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) { /* sqlite3.c:65016: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:65014:16: */
+func Xsqlite3_snapshot_cmp(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* sqlite3.c:65027:16: */
var pHdr1 uintptr = p1
var pHdr2 uintptr = p2
@@ -87722,7 +87728,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:65038:20: */
+func Xsqlite3WalSnapshotCheck(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) int32 { /* sqlite3.c:65051:20: */
var rc int32
rc = walLockShared(tls, pWal, WAL_CKPT_LOCK)
if rc == SQLITE_OK {
@@ -87738,13 +87744,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:65057:21: */
+func Xsqlite3WalSnapshotUnlock(tls *libc.TLS, pWal uintptr) { /* sqlite3.c:65070: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:65079:29: */
+func Xsqlite3WalFile(tls *libc.TLS, pWal uintptr) uintptr { /* sqlite3.c:65092:29: */
return (*Wal)(unsafe.Pointer(pWal)).FpWalFd
}
@@ -88265,7 +88271,7 @@ type MemPage1 = struct {
// small cells will be rare, but they are possible.
// Forward declarations
-type MemPage = MemPage1 /* sqlite3.c:65337:24 */
+type MemPage = MemPage1 /* sqlite3.c:65350:24 */
type BtLock1 = struct {
FpBtree uintptr
FiTable Pgno
@@ -88274,7 +88280,7 @@ type BtLock1 = struct {
FpNext uintptr
} /* sqlite3.c:578:9 */
-type BtLock = BtLock1 /* sqlite3.c:65338:23 */
+type BtLock = BtLock1 /* sqlite3.c:65351:23 */
type CellInfo1 = struct {
FnKey I64
FpPayload uintptr
@@ -88283,7 +88289,7 @@ type CellInfo1 = struct {
FnSize U16
} /* sqlite3.c:578:9 */
-type CellInfo = CellInfo1 /* sqlite3.c:65339:25 */
+type CellInfo = CellInfo1 /* sqlite3.c:65352:25 */
// Legal values for BtCursor.curFlags
@@ -88393,7 +88399,7 @@ type IntegrityCk1 = struct {
FerrMsg StrAccum
Fheap uintptr
Fdb uintptr
-} /* sqlite3.c:65796:9 */
+} /* sqlite3.c:65811:9 */
// Legal values for BtCursor.curFlags
@@ -88489,7 +88495,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:65796:28 */
+type IntegrityCk = IntegrityCk1 /* sqlite3.c:65811:28 */
// Routines to read or write a two- and four-byte big-endian integer values.
@@ -88503,7 +88509,7 @@ type IntegrityCk = IntegrityCk1 /* sqlite3.c:65796: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:65846:13: */
+func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65861: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
@@ -88512,7 +88518,7 @@ func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65846: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:65860:29: */
+func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65875:29: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3_mutex_leave(tls, (*BtShared)(unsafe.Pointer(pBt)).Fmutex)
@@ -88533,7 +88539,7 @@ func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* sqlite3.c:65860: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:65890:21: */
+func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:65905: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
@@ -88561,7 +88567,7 @@ func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:65890: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:65924:29: */
+func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* sqlite3.c:65939:29: */
var pLater uintptr
// In most cases, we should be able to acquire the lock we
@@ -88592,7 +88598,7 @@ func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* sqlite3.c:65924:29: */
}
// Exit the recursive mutex on a Btree.
-func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:65962:21: */
+func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:65977:21: */
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
@@ -88615,7 +88621,7 @@ func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:65962: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:66005:29: */
+func btreeEnterAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66020:29: */
var i int32
var skipOk int32 = 1
var p uintptr
@@ -88630,13 +88636,13 @@ func btreeEnterAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66005:29: */
(*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache = U8(skipOk)
}
-func Xsqlite3BtreeEnterAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66019:21: */
+func Xsqlite3BtreeEnterAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66034:21: */
if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 {
btreeEnterAll(tls, db)
}
}
-func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66022:29: */
+func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66037:29: */
var i int32
var p uintptr
@@ -88648,7 +88654,7 @@ func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66022:29: */
}
}
-func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66031:21: */
+func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66046:21: */
if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 {
btreeLeaveAll(tls, db)
}
@@ -88659,11 +88665,11 @@ func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* sqlite3.c:66031: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:66117:21: */
+func Xsqlite3BtreeEnterCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66132:21: */
Xsqlite3BtreeEnter(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
}
-func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66121:21: */
+func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66136:21: */
Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
}
@@ -88686,7 +88692,7 @@ func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66121:
// The header string that appears at the beginning of every
// SQLite database.
-var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 5336)) /* sqlite3.c:66152:19 */
+var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 5336)) /* sqlite3.c:66167:19 */
// Set this global variable to 1 to enable tracing using the TRACE
// macro.
@@ -88712,14 +88718,14 @@ var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 5336)) /* sqlite3.c:66152:19
// test builds.
//
// Access to this variable is protected by SQLITE_MUTEX_STATIC_MAIN.
-var sqlite3SharedCacheList uintptr = uintptr(0) /* sqlite3.c:66207:17 */
+var sqlite3SharedCacheList uintptr = uintptr(0) /* sqlite3.c:66222: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:66219:16: */
+func Xsqlite3_enable_shared_cache(tls *libc.TLS, enable int32) int32 { /* sqlite3.c:66234:16: */
Xsqlite3Config.FsharedCacheEnabled = enable
return SQLITE_OK
}
@@ -88736,7 +88742,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:66418:12: */
+func querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab Pgno, eLock U8) int32 { /* sqlite3.c:66433:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pIter uintptr
@@ -88793,7 +88799,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:66490:12: */
+func setSharedCacheTableLock(tls *libc.TLS, p uintptr, iTable Pgno, eLock U8) int32 { /* sqlite3.c:66505:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pLock uintptr = uintptr(0)
var pIter uintptr
@@ -88844,7 +88850,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:66554:13: */
+func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:66569:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var ppIter uintptr = pBt + 120
@@ -88879,7 +88885,7 @@ func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:6655
}
// This function changes all write-locks held by Btree p into read-locks.
-func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:66598:13: */
+func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* sqlite3.c:66613:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
if (*BtShared)(unsafe.Pointer(pBt)).FpWriter == p {
var pLock uintptr
@@ -88903,7 +88909,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:66651:13: */
+func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:66666:13: */
var p uintptr
for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext {
@@ -88922,7 +88928,7 @@ func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:66651
// 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:66673:13: */
+func invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot Pgno, iRow I64, isClearTable int32) { /* sqlite3.c:66688:13: */
var p uintptr
(*Btree)(unsafe.Pointer(pBtree)).FhasIncrblobCur = U8(0)
@@ -88969,7 +88975,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:66733:12: */
+func btreeSetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* sqlite3.c:66748:12: */
var rc int32 = SQLITE_OK
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpHasContent) != 0) {
@@ -88989,20 +88995,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:66755:12: */
+func btreeGetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* sqlite3.c:66770: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:66764:13: */
+func btreeClearHasContent(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:66779: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:66772:13: */
+func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66787:13: */
var i int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= 0 {
for i = 0; i < int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage); i++ {
@@ -89024,7 +89030,7 @@ func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:6677
// 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:66796:12: */
+func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66811:12: */
var rc int32 = SQLITE_OK
if (*BtCursor)(unsafe.Pointer(pCur)).FcurIntKey != 0 {
@@ -89061,7 +89067,7 @@ func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66796: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:66838:12: */
+func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66853:12: */
var rc int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_Pinned != 0 {
@@ -89102,7 +89108,7 @@ func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66838:
// 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:66888:12: */
+func saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot Pgno, pExcept uintptr) int32 { /* sqlite3.c:66903:12: */
var p uintptr
for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext {
@@ -89123,7 +89129,7 @@ func saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot Pgno, pExcept uintptr) int
// the cursors if and when a cursor is found that actually requires saving.
// The common case is that no cursors need to be saved, so this routine is
// broken out from its caller to avoid unnecessary stack pointer movement.
-func saveCursorsOnList(tls *libc.TLS, p uintptr, iRoot Pgno, pExcept uintptr) int32 { /* sqlite3.c:66905:28: */
+func saveCursorsOnList(tls *libc.TLS, p uintptr, iRoot Pgno, pExcept uintptr) int32 { /* sqlite3.c:66920: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 {
@@ -89142,7 +89148,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:66930:21: */
+func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66945:21: */
Xsqlite3_free(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey)
(*BtCursor)(unsafe.Pointer(pCur)).FpKey = uintptr(0)
@@ -89152,7 +89158,7 @@ func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:66930:
// 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:66942:12: */
+func btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey I64, bias int32, pRes uintptr) int32 { /* sqlite3.c:66957:12: */
var rc int32 // Status code
var pIdxKey uintptr // Unpacked index key
@@ -89165,7 +89171,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, 66959)
+ rc = Xsqlite3CorruptError(tls, 66974)
} else {
rc = Xsqlite3BtreeIndexMoveto(tls, pCur, pIdxKey, pRes)
}
@@ -89182,7 +89188,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:66978:12: */
+func btreeRestoreCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:66993:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -89222,7 +89228,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:67021:20: */
+func Xsqlite3BtreeCursorHasMoved(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:67036:20: */
return libc.Bool32(CURSOR_VALID != int32(*(*U8)(unsafe.Pointer(pCur))))
}
@@ -89230,12 +89236,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:67034:25: */
+func Xsqlite3BtreeFakeValidCursor(tls *libc.TLS) uintptr { /* sqlite3.c:67049:25: */
return uintptr(unsafe.Pointer(&fakeCursor))
}
-var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:67035:13 */
+var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:67050: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
@@ -89248,7 +89254,7 @@ var fakeCursor U8 = U8(CURSOR_VALID) /* sqlite3.c:67035: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:67053:20: */
+func Xsqlite3BtreeCursorRestore(tls *libc.TLS, pCur uintptr, pDifferentRow uintptr) int32 { /* sqlite3.c:67068:20: */
var rc int32
rc = func() int32 {
@@ -89270,7 +89276,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:67085:21: */
+func Xsqlite3BtreeCursorHintFlags(tls *libc.TLS, pCur uintptr, x uint32) { /* sqlite3.c:67100:21: */
(*BtCursor)(unsafe.Pointer(pCur)).Fhints = U8(x)
}
@@ -89282,7 +89288,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:67101:13: */
+func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* sqlite3.c:67116:13: */
var nPagesPerMapPage int32
var iPtrMap Pgno
var ret Pgno
@@ -89307,7 +89313,7 @@ func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* sqlite3.c:671
// 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:67125:13: */
+func ptrmapPut(tls *libc.TLS, pBt uintptr, key Pgno, eType U8, parent Pgno, pRC uintptr) { /* sqlite3.c:67140:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -89330,7 +89336,7 @@ __1:
if !(key == Pgno(0)) {
goto __2
}
- *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67140)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67155)
return
__2:
;
@@ -89349,7 +89355,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, 67153)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67168)
goto ptrmap_exit
__4:
;
@@ -89357,7 +89363,7 @@ __4:
if !(offset < 0) {
goto __5
}
- *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67158)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67173)
goto ptrmap_exit
__5:
;
@@ -89388,7 +89394,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:67184:12: */
+func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintptr) int32 { /* sqlite3.c:67199:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -89409,7 +89415,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, 67203)
+ return Xsqlite3CorruptError(tls, 67218)
}
*(*U8)(unsafe.Pointer(pEType)) = *(*U8)(unsafe.Pointer(pPtrmap + uintptr(offset)))
@@ -89419,7 +89425,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, 67211)
+ return Xsqlite3CorruptError(tls, 67226)
}
return SQLITE_OK
}
@@ -89437,7 +89443,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:67243:29: */
+func btreeParseCellAdjustSizeForOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* sqlite3.c:67258: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
@@ -89464,7 +89470,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:67278:12: */
+func btreePayloadToLocal(tls *libc.TLS, pPage uintptr, nPayload I64) int32 { /* sqlite3.c:67293:12: */
var maxLocal int32 // Maximum amount of payload held locally
maxLocal = int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)
if nPayload <= I64(maxLocal) {
@@ -89494,7 +89500,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:67306:13: */
+func btreeParseCellPtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* sqlite3.c:67321:13: */
_ = pPage
(*CellInfo)(unsafe.Pointer(pInfo)).FnSize = U16(4 + int32(Xsqlite3GetVarint(tls, pCell+4, pInfo)))
@@ -89504,7 +89510,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:67323:13: */
+func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* sqlite3.c:67338:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -89581,7 +89587,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:67405:13: */
+func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* sqlite3.c:67420:13: */
var pIter uintptr // For scanning through pCell
var nPayload U32 // Number of bytes of cell payload
@@ -89612,7 +89618,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:67442:13: */
+func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) { /* sqlite3.c:67457: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)
@@ -89628,7 +89634,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:67462:12: */
+func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* sqlite3.c:67477: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
@@ -89669,7 +89675,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:67510:12: */
+func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* sqlite3.c:67525:12: */
var pIter uintptr = pCell + uintptr(4) // For looping over bytes of pCell
var pEnd uintptr // End mark for a varint
@@ -89686,7 +89692,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:67548:13: */
+func ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr, pRC uintptr) { /* sqlite3.c:67563:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -89703,7 +89709,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, 67557)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67572)
return
}
ovfl = Xsqlite3Get4byte(tls, pCell+uintptr(int32((*CellInfo)(unsafe.Pointer(bp)).FnSize)-4))
@@ -89721,7 +89727,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:67579:12: */
+func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* sqlite3.c:67594:12: */
var i int32 // Loop counter
var pc int32 // Address of the i-th cell
var hdr int32 // Offset to the page header
@@ -89766,7 +89772,7 @@ func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* sql
if !(iFree > usableSize-4) {
goto __2
}
- return Xsqlite3CorruptError(tls, 67616)
+ return Xsqlite3CorruptError(tls, 67631)
__2:
;
if !(iFree != 0) {
@@ -89776,7 +89782,7 @@ __2:
if !(iFree2 > usableSize-4) {
goto __4
}
- return Xsqlite3CorruptError(tls, 67619)
+ return Xsqlite3CorruptError(tls, 67634)
__4:
;
if !(0 == iFree2 || int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2)))) == 0 && int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+1)))) == 0) {
@@ -89789,7 +89795,7 @@ __4:
if !(top >= iFree) {
goto __6
}
- return Xsqlite3CorruptError(tls, 67627)
+ return Xsqlite3CorruptError(tls, 67642)
__6:
;
if !(iFree2 != 0) {
@@ -89798,14 +89804,14 @@ __6:
if !(iFree+sz > iFree2) {
goto __9
}
- return Xsqlite3CorruptError(tls, 67630)
+ return Xsqlite3CorruptError(tls, 67645)
__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, 67632)
+ return Xsqlite3CorruptError(tls, 67647)
__10:
;
libc.Xmemmove(tls, data+uintptr(iFree+sz+sz2), data+uintptr(iFree+sz), uint64(iFree2-(iFree+sz)))
@@ -89815,7 +89821,7 @@ __7:
if !(iFree+sz > usableSize) {
goto __11
}
- return Xsqlite3CorruptError(tls, 67636)
+ return Xsqlite3CorruptError(tls, 67651)
__11:
;
__8:
@@ -89877,7 +89883,7 @@ __18:
if !(pc < iCellStart || pc > iCellLast) {
goto __21
}
- return Xsqlite3CorruptError(tls, 67665)
+ return Xsqlite3CorruptError(tls, 67680)
__21:
;
@@ -89888,7 +89894,7 @@ __21:
if !(cbrk < iCellStart || pc+size > usableSize) {
goto __22
}
- return Xsqlite3CorruptError(tls, 67671)
+ return Xsqlite3CorruptError(tls, 67686)
__22:
;
@@ -89923,7 +89929,7 @@ defragment_out:
if !(int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+7))))+cbrk-iCellFirst != (*MemPage)(unsafe.Pointer(pPage)).FnFree) {
goto __25
}
- return Xsqlite3CorruptError(tls, 67690)
+ return Xsqlite3CorruptError(tls, 67705)
__25:
;
@@ -89948,7 +89954,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:67715:11: */
+func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr { /* sqlite3.c:67730: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
@@ -89977,7 +89983,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, 67744)
+ *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67759)
return uintptr(0)
} else {
// The slot remains on the free-list. Reduce its size to account
@@ -89992,14 +89998,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, 67758)
+ *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67773)
}
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, 67765)
+ *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67780)
}
return uintptr(0)
}
@@ -90015,7 +90021,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:67783:12: */
+func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int32 { /* sqlite3.c:67798:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -90040,7 +90046,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, 67812)
+ return Xsqlite3CorruptError(tls, 67827)
}
}
@@ -90055,7 +90061,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, 67830)
+ return Xsqlite3CorruptError(tls, 67845)
} else {
return SQLITE_OK
}
@@ -90106,7 +90112,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:67879:12: */
+func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* sqlite3.c:67894: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
@@ -90130,12 +90136,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, 67908)
+ return Xsqlite3CorruptError(tls, 67923)
}
iPtr = iFreeBlk
}
if U32(iFreeBlk) > (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize-U32(4) { // TH3: corrupt081.100
- return Xsqlite3CorruptError(tls, 67913)
+ return Xsqlite3CorruptError(tls, 67928)
}
// At this point:
@@ -90146,11 +90152,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, 67925)
+ return Xsqlite3CorruptError(tls, 67940)
}
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, 67928)
+ return Xsqlite3CorruptError(tls, 67943)
}
iSize = U16(iEnd - U32(iStart))
iFreeBlk = U16(int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk) + 1))))
@@ -90163,7 +90169,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, 67941)
+ return Xsqlite3CorruptError(tls, 67956)
}
nFrag = U8(int32(nFrag) + (int32(iStart) - iPtrEnd))
iSize = U16(iEnd - U32(iPtr))
@@ -90171,7 +90177,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, 67947)
+ return Xsqlite3CorruptError(tls, 67962)
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+7))) -= uint8(int32(nFrag))
}
@@ -90181,10 +90187,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, 67955)
+ return Xsqlite3CorruptError(tls, 67970)
}
if int32(iPtr) != int32(hdr)+1 {
- return Xsqlite3CorruptError(tls, 67956)
+ return Xsqlite3CorruptError(tls, 67971)
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1))) = U8(int32(iFreeBlk) >> 8)
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1) + 1)) = U8(iFreeBlk)
@@ -90218,7 +90224,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:67986:12: */
+func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* sqlite3.c:68001:12: */
var pBt uintptr // A copy of pPage->pBt
(*MemPage)(unsafe.Pointer(pPage)).Fleaf = U8(flagByte >> 3)
@@ -90269,7 +90275,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, 68029)
+ return Xsqlite3CorruptError(tls, 68044)
}
(*MemPage)(unsafe.Pointer(pPage)).Fmax1bytePayload = (*BtShared)(unsafe.Pointer(pBt)).Fmax1bytePayload
return SQLITE_OK
@@ -90277,7 +90283,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:68039:12: */
+func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68054: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
@@ -90309,12 +90315,12 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68
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, 68080)
+ return Xsqlite3CorruptError(tls, 68095)
}
for 1 != 0 {
if pc > iCellLast {
// Freeblock off the end of the page
- return Xsqlite3CorruptError(tls, 68085)
+ return Xsqlite3CorruptError(tls, 68100)
}
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))))
@@ -90326,11 +90332,11 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68
}
if next > U32(0) {
// Freeblock not in ascending order
- return Xsqlite3CorruptError(tls, 68095)
+ return Xsqlite3CorruptError(tls, 68110)
}
if U32(pc)+size > uint32(usableSize) {
// Last freeblock extends past page end
- return Xsqlite3CorruptError(tls, 68099)
+ return Xsqlite3CorruptError(tls, 68114)
}
}
@@ -90341,7 +90347,7 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68
// 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, 68111)
+ return Xsqlite3CorruptError(tls, 68126)
}
(*MemPage)(unsafe.Pointer(pPage)).FnFree = int32(U16(nFree - iCellFirst))
return SQLITE_OK
@@ -90349,7 +90355,7 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68
// Do additional sanity check after btreeInitPage() if
// PRAGMA cell_size_check=ON
-func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68121:28: */
+func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68136: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
@@ -90371,14 +90377,14 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68121
pc = int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer(data + uintptr(cellOffset+i*2)))))
if pc < iCellFirst || pc > iCellLast {
- return Xsqlite3CorruptError(tls, 68142)
+ return Xsqlite3CorruptError(tls, 68157)
}
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, 68147)
+ return Xsqlite3CorruptError(tls, 68162)
}
}
return SQLITE_OK
@@ -90391,7 +90397,7 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68121
// 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:68162:12: */
+func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68177:12: */
var data uintptr // Equal to pPage->aData
var pBt uintptr // The main btree structure
@@ -90400,21 +90406,21 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68162: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, 68179)
+ return Xsqlite3CorruptError(tls, 68194)
}
(*MemPage)(unsafe.Pointer(pPage)).FmaskPage = U16((*BtShared)(unsafe.Pointer(pBt)).FpageSize - U32(1))
(*MemPage)(unsafe.Pointer(pPage)).FnOverflow = U8(0)
(*MemPage)(unsafe.Pointer(pPage)).FcellOffset = U16(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset) + 8 + int32((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize))
(*MemPage)(unsafe.Pointer(pPage)).FaCellIdx = data + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize) + uintptr(8)
- (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr((*BtShared)(unsafe.Pointer(pBt)).FusableSize)
+ (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr((*BtShared)(unsafe.Pointer(pBt)).FpageSize)
(*MemPage)(unsafe.Pointer(pPage)).FaDataOfst = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize)
// EVIDENCE-OF: R-37002-32774 The two-byte integer at offset 3 gives the
// number of cells on the page.
(*MemPage)(unsafe.Pointer(pPage)).FnCell = U16(int32(*(*U8)(unsafe.Pointer(data + 3)))<<8 | int32(*(*U8)(unsafe.Pointer(data + 3 + 1))))
if U32((*MemPage)(unsafe.Pointer(pPage)).FnCell) > ((*BtShared)(unsafe.Pointer(pBt)).FpageSize-U32(8))/U32(6) {
// To many cells for a single page. The page must be corrupt
- return Xsqlite3CorruptError(tls, 68193)
+ return Xsqlite3CorruptError(tls, 68208)
}
// EVIDENCE-OF: R-24089-57979 If a page contains no cells (which is only
@@ -90432,7 +90438,7 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:68162: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:68215:13: */
+func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* sqlite3.c:68230: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
@@ -90455,7 +90461,7 @@ func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* sqlite3.c:68215:13
(*MemPage)(unsafe.Pointer(pPage)).FnFree = int32(U16((*BtShared)(unsafe.Pointer(pBt)).FusableSize - U32(first)))
decodeFlags(tls, pPage, flags)
(*MemPage)(unsafe.Pointer(pPage)).FcellOffset = first
- (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = data + uintptr((*BtShared)(unsafe.Pointer(pBt)).FusableSize)
+ (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd = data + uintptr((*BtShared)(unsafe.Pointer(pBt)).FpageSize)
(*MemPage)(unsafe.Pointer(pPage)).FaCellIdx = data + uintptr(first)
(*MemPage)(unsafe.Pointer(pPage)).FaDataOfst = data + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize)
(*MemPage)(unsafe.Pointer(pPage)).FnOverflow = U8(0)
@@ -90467,7 +90473,7 @@ func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* sqlite3.c:68215: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:68252:16: */
+func btreePageFromDbPage(tls *libc.TLS, pDbPage uintptr, pgno Pgno, pBt uintptr) uintptr { /* sqlite3.c:68267:16: */
var pPage uintptr = Xsqlite3PagerGetExtra(tls, pDbPage)
if pgno != (*MemPage)(unsafe.Pointer(pPage)).Fpgno {
(*MemPage)(unsafe.Pointer(pPage)).FaData = Xsqlite3PagerGetData(tls, pDbPage)
@@ -90494,7 +90500,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:68276:12: */
+func btreeGetPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:68291:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -90512,7 +90518,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:68298:16: */
+func btreePageLookup(tls *libc.TLS, pBt uintptr, pgno Pgno) uintptr { /* sqlite3.c:68313:16: */
var pDbPage uintptr
pDbPage = Xsqlite3PagerLookup(tls, (*BtShared)(unsafe.Pointer(pBt)).FpPager, pgno)
@@ -90524,11 +90530,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:68312:13: */
+func btreePagecount(tls *libc.TLS, pBt uintptr) Pgno { /* sqlite3.c:68327:13: */
return (*BtShared)(unsafe.Pointer(pBt)).FnPage
}
-func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* sqlite3.c:68315:21: */
+func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* sqlite3.c:68330:21: */
return btreePagecount(tls, (*Btree)(unsafe.Pointer(p)).FpBt)
}
@@ -90544,7 +90550,7 @@ func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* sqlite3.c:68315: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:68333:12: */
+func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur uintptr, bReadOnly int32) int32 { /* sqlite3.c:68348:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -90554,7 +90560,7 @@ func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur
if !(pgno > btreePagecount(tls, pBt)) {
goto __1
}
- rc = Xsqlite3CorruptError(tls, 68348)
+ rc = Xsqlite3CorruptError(tls, 68363)
goto getAndInitPage_error1
__1:
;
@@ -90585,7 +90591,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, 68369)
+ rc = Xsqlite3CorruptError(tls, 68384)
goto getAndInitPage_error2
__5:
;
@@ -90609,18 +90615,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:68392:13: */
+func releasePageNotNull(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:68407:13: */
Xsqlite3PagerUnrefNotNull(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
}
-func releasePage(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:68401:13: */
+func releasePage(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:68416:13: */
if pPage != 0 {
releasePageNotNull(tls, pPage)
}
}
-func releasePageOne(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:68404:13: */
+func releasePageOne(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:68419:13: */
Xsqlite3PagerUnrefPageOne(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
}
@@ -90632,13 +90638,13 @@ func releasePageOne(tls *libc.TLS, pPage uintptr) { /* sqlite3.c:68404: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:68424:12: */
+func btreeGetUnusedPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* sqlite3.c:68439: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, 68435)
+ return Xsqlite3CorruptError(tls, 68450)
}
(*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FisInit = U8(0)
} else {
@@ -90653,7 +90659,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:68453:13: */
+func pageReinit(tls *libc.TLS, pData uintptr) { /* sqlite3.c:68468:13: */
var pPage uintptr
pPage = Xsqlite3PagerGetExtra(tls, pData)
@@ -90673,7 +90679,7 @@ func pageReinit(tls *libc.TLS, pData uintptr) { /* sqlite3.c:68453:13: */
}
// Invoke the busy handler for a btree.
-func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* sqlite3.c:68475:12: */
+func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* sqlite3.c:68490:12: */
var pBt uintptr = pArg
return Xsqlite3InvokeBusyHandler(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb+664)
@@ -90698,7 +90704,7 @@ func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* sqlite3.c:68
// 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:68503:20: */
+func Xsqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintptr, ppBtree uintptr, flags int32, vfsFlags int32) int32 { /* sqlite3.c:68518:20: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -91119,7 +91125,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:68801:12: */
+func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:68816:12: */
var pMainMtx uintptr
var pList uintptr
var removed int32 = 0
@@ -91151,7 +91157,7 @@ func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:6880
// Make sure pBt->pTmpSpace points to an allocation of
// MX_CELL_SIZE(pBt) bytes with a 4-byte prefix for a left-child
// pointer.
-func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:68840:28: */
+func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:68855:28: */
// This routine is called only by btreeCursor() when allocating the
// first write cursor for the BtShared object
@@ -91184,7 +91190,7 @@ func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:68840:28
}
// Free the pBt->pTmpSpace allocation
-func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:68877:13: */
+func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:68892:13: */
if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace != 0 {
*(*uintptr)(unsafe.Pointer(pBt + 136)) -= uintptr(4)
Xsqlite3PageFree(tls, (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace)
@@ -91193,7 +91199,7 @@ func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:68877:13: */
}
// Close an open database and invalidate all cursors.
-func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:68888:20: */
+func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:68903:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
// Close all cursors opened via this handle.
@@ -91243,7 +91249,7 @@ func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:68888: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:68954:20: */
+func Xsqlite3BtreeSetCacheSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* sqlite3.c:68969:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -91260,7 +91266,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:68973:20: */
+func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* sqlite3.c:68988:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var res int32
@@ -91272,7 +91278,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:68988:20: */
+func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) int32 { /* sqlite3.c:69003:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -91287,7 +91293,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:69007:20: */
+func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 { /* sqlite3.c:69022:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -91314,7 +91320,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:69040:20: */
+func Xsqlite3BtreeSetPageSize(tls *libc.TLS, p uintptr, pageSize int32, nReserve int32, iFix int32) int32 { /* sqlite3.c:69055:20: */
var rc int32 = SQLITE_OK
var x int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -91348,7 +91354,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:69072:20: */
+func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69087:20: */
return int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize)
}
@@ -91361,7 +91367,7 @@ func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:690
// 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:69087:20: */
+func Xsqlite3BtreeGetReserveNoMutex(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69102:20: */
var n int32
n = int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize - (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FusableSize)
@@ -91375,7 +91381,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:69103:20: */
+func Xsqlite3BtreeGetRequestedReserve(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69118:20: */
var n1 int32
var n2 int32
Xsqlite3BtreeEnter(tls, p)
@@ -91391,7 +91397,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:69118:21: */
+func Xsqlite3BtreeMaxPageCount(tls *libc.TLS, p uintptr, mxPage Pgno) Pgno { /* sqlite3.c:69133:21: */
var n Pgno
Xsqlite3BtreeEnter(tls, p)
n = Xsqlite3PagerMaxPageCount(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, mxPage)
@@ -91415,7 +91421,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:69144:20: */
+func Xsqlite3BtreeSecureDelete(tls *libc.TLS, p uintptr, newFlag int32) int32 { /* sqlite3.c:69159:20: */
var b int32
if p == uintptr(0) {
return 0
@@ -91435,7 +91441,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:69165:20: */
+func Xsqlite3BtreeSetAutoVacuum(tls *libc.TLS, p uintptr, autoVacuum int32) int32 { /* sqlite3.c:69180:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var rc int32 = SQLITE_OK
var av U8 = U8(autoVacuum)
@@ -91468,7 +91474,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:69189:20: */
+func Xsqlite3BtreeGetAutoVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69204:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = func() int32 {
@@ -91493,7 +91499,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:69245:12: */
+func lockBtree(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:69260:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -91662,7 +91668,7 @@ __16:
if !(Xsqlite3WritableSchema(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb) == 0) {
goto __18
}
- rc = Xsqlite3CorruptError(tls, 69370)
+ rc = Xsqlite3CorruptError(tls, 69385)
goto page1_init_failed
goto __19
__18:
@@ -91739,7 +91745,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:69455:13: */
+func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:69470: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
@@ -91752,7 +91758,7 @@ func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* sqlite3.c:69455: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:69472:12: */
+func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:69487:12: */
var pP1 uintptr
var data uintptr
var rc int32
@@ -91792,7 +91798,7 @@ func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* sqlite3.c:69472: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:69516:20: */
+func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69531:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
(*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnPage = U32(0)
@@ -91834,7 +91840,7 @@ func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:69516: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:69560:20: */
+func Xsqlite3BtreeBeginTrans(tls *libc.TLS, p uintptr, wrflag int32, pSchemaVersion uintptr) int32 { /* sqlite3.c:69575:20: */
var pBt uintptr
var pPager uintptr
var rc int32
@@ -92098,7 +92104,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:69740:12: */
+func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:69755:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -92150,14 +92156,14 @@ func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* sqlite3.c:69740: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:69785:12: */
+func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType U8) int32 { /* sqlite3.c:69800: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, 69791)
+ return Xsqlite3CorruptError(tls, 69806)
}
Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData, iTo)
} else {
@@ -92185,7 +92191,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, 69810)
+ return Xsqlite3CorruptError(tls, 69825)
}
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)
@@ -92202,7 +92208,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, 69828)
+ return Xsqlite3CorruptError(tls, 69843)
}
Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+8), iTo)
}
@@ -92217,7 +92223,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:69846:12: */
+func relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType U8, iPtrPage Pgno, iFreePage Pgno, isCommit int32) int32 { /* sqlite3.c:69861:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -92228,7 +92234,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, 69863)
+ return Xsqlite3CorruptError(tls, 69878)
}
// Move page iDbPage from its current location to page number iFreePage
@@ -92298,7 +92304,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:69940:12: */
+func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit int32) int32 { /* sqlite3.c:69955:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -92320,7 +92326,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, 69961)
+ return Xsqlite3CorruptError(tls, 69976)
}
if int32(*(*U8)(unsafe.Pointer(bp))) == PTRMAP_FREEPAGE {
@@ -92395,7 +92401,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:70036:13: */
+func finalDbSize(tls *libc.TLS, pBt uintptr, nOrig Pgno, nFree Pgno) Pgno { /* sqlite3.c:70051: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
@@ -92419,7 +92425,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:70062:20: */
+func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70077:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -92433,7 +92439,7 @@ func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:7006
var nFin Pgno = finalDbSize(tls, pBt, nOrig, nFree)
if nOrig < nFin || nFree >= nOrig {
- rc = Xsqlite3CorruptError(tls, 70076)
+ rc = Xsqlite3CorruptError(tls, 70091)
} else if nFree > Pgno(0) {
rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0))
if rc == SQLITE_OK {
@@ -92454,7 +92460,7 @@ func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:7006
// 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:70099:12: */
+func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70114:12: */
var rc int32 = SQLITE_OK
var pPager uintptr
var pBt uintptr
@@ -92477,7 +92483,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70099: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, 70127)
+ return Xsqlite3CorruptError(tls, 70142)
}
nFree = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer((*BtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)
@@ -92508,7 +92514,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70099:12: *
}
nFin = finalDbSize(tls, pBt, nOrig, nVac)
if nFin > nOrig {
- return Xsqlite3CorruptError(tls, 70154)
+ return Xsqlite3CorruptError(tls, 70169)
}
if nFin < nOrig {
rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -92558,7 +92564,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70099: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:70210:20: */
+func Xsqlite3BtreeCommitPhaseOne(tls *libc.TLS, p uintptr, zSuperJrnl uintptr) int32 { /* sqlite3.c:70225:20: */
var rc int32 = SQLITE_OK
if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_WRITE {
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -92581,7 +92587,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:70237:13: */
+func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* sqlite3.c:70252:13: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var db uintptr = (*Btree)(unsafe.Pointer(p)).Fdb
@@ -92637,7 +92643,7 @@ func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* sqlite3.c:70237: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:70299:20: */
+func Xsqlite3BtreeCommitPhaseTwo(tls *libc.TLS, p uintptr, bCleanup int32) int32 { /* sqlite3.c:70314:20: */
if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_NONE {
return SQLITE_OK
@@ -92666,7 +92672,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:70331:20: */
+func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70346:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = Xsqlite3BtreeCommitPhaseOne(tls, p, uintptr(0))
@@ -92701,7 +92707,7 @@ func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:70331: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:70368:20: */
+func Xsqlite3BtreeTripAllCursors(tls *libc.TLS, pBtree uintptr, errCode int32, writeOnly int32) int32 { /* sqlite3.c:70383:20: */
var p uintptr
var rc int32 = SQLITE_OK
@@ -92730,7 +92736,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:70400:13: */
+func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* sqlite3.c:70415:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -92752,7 +92758,7 @@ func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* sqlite3.c:70
//
// 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:70419:20: */
+func Xsqlite3BtreeRollback(tls *libc.TLS, p uintptr, tripCode int32, writeOnly int32) int32 { /* sqlite3.c:70434:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -92818,7 +92824,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:70484:20: */
+func Xsqlite3BtreeBeginStmt(tls *libc.TLS, p uintptr, iStatement int32) int32 { /* sqlite3.c:70499:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -92842,7 +92848,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:70515:20: */
+func Xsqlite3BtreeSavepoint(tls *libc.TLS, p uintptr, op int32, iSavepoint int32) int32 { /* sqlite3.c:70530: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
@@ -92910,7 +92916,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:70586:12: */
+func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* sqlite3.c:70601:12: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt // Shared b-tree handle
var pX uintptr // Looping over other all cursors
@@ -92923,7 +92929,7 @@ func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo u
if iTable <= Pgno(1) {
if iTable < Pgno(1) {
- return Xsqlite3CorruptError(tls, 70618)
+ return Xsqlite3CorruptError(tls, 70633)
} else if btreePagecount(tls, pBt) == Pgno(0) {
iTable = Pgno(0)
@@ -92961,7 +92967,7 @@ func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo u
return SQLITE_OK
}
-func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* sqlite3.c:70653:12: */
+func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* sqlite3.c:70668:12: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeCursor(tls, p, iTable, wrFlag, pKeyInfo, pCur)
@@ -92969,7 +92975,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:70666:20: */
+func Xsqlite3BtreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* sqlite3.c:70681:20: */
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
return btreeCursorWithLock(tls, p, iTable, wrFlag, pKeyInfo, pCur)
} else {
@@ -92984,7 +92990,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:70688:20: */
+func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* sqlite3.c:70703:20: */
return int32((uint64(unsafe.Sizeof(BtCursor{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7)))
}
@@ -92994,13 +93000,13 @@ func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* sqlite3.c:70688: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:70700:21: */
+func Xsqlite3BtreeCursorZero(tls *libc.TLS, p uintptr) { /* sqlite3.c:70715: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:70708:20: */
+func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:70723:20: */
var pBtree uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBtree
if pBtree != 0 {
var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt
@@ -93041,7 +93047,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:70769:29: */
+func getCellInfo(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70784: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)
@@ -93050,7 +93056,7 @@ func getCellInfo(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70769:29: */
}
}
-func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:70788:20: */
+func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:70803:20: */
return libc.Bool32(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID)
}
@@ -93059,26 +93065,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:70799:20: */
+func Xsqlite3BtreeIntegerKey(tls *libc.TLS, pCur uintptr) I64 { /* sqlite3.c:70814: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:70810:21: */
+func Xsqlite3BtreeCursorPin(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70825:21: */
*(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Pinned)
}
-func Xsqlite3BtreeCursorUnpin(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70814:21: */
+func Xsqlite3BtreeCursorUnpin(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:70829: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:70824:20: */
+func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* sqlite3.c:70839:20: */
getCellInfo(tls, pCur)
return I64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpageSize)*(I64((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).Fpgno)-int64(1)) + (int64((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload)-int64((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FaData))/1
@@ -93091,7 +93097,7 @@ func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* sqlite3.c:70824: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:70842:20: */
+func Xsqlite3BtreePayloadSize(tls *libc.TLS, pCur uintptr) U32 { /* sqlite3.c:70857:20: */
getCellInfo(tls, pCur)
return (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnPayload
@@ -93108,7 +93114,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:70862:30: */
+func Xsqlite3BtreeMaxRecordSize(tls *libc.TLS, pCur uintptr) Sqlite3_int64 { /* sqlite3.c:70877:30: */
return Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpageSize) * Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FnPage)
}
@@ -93130,7 +93136,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:70887:12: */
+func getOverflowPage(tls *libc.TLS, pBt uintptr, ovfl Pgno, ppPage uintptr, pPgnoNext uintptr) int32 { /* sqlite3.c:70902:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -93198,7 +93204,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:70955:12: */
+func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp int32, pDbPage uintptr) int32 { /* sqlite3.c:70970:12: */
if eOp != 0 {
// Copy data from buffer to page (a write operation)
var rc int32 = Xsqlite3PagerWrite(tls, pDbPage)
@@ -93240,7 +93246,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:71005:12: */
+func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr, eOp int32) int32 { /* sqlite3.c:71020:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -93251,7 +93257,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, 71025)
+ return Xsqlite3CorruptError(tls, 71040)
}
getCellInfo(tls, pCur)
@@ -93262,7 +93268,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, 71040)
+ return Xsqlite3CorruptError(tls, 71055)
}
// Check if data must be read/written to/from the btree page itself.
@@ -93319,7 +93325,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, 71102)
+ return Xsqlite3CorruptError(tls, 71117)
}
*(*Pgno)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FaOverflow + uintptr(iIdx)*4)) = *(*Pgno)(unsafe.Pointer(bp /* nextPage */))
@@ -93379,7 +93385,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, 71187)
+ return Xsqlite3CorruptError(tls, 71202)
}
return rc
}
@@ -93399,7 +93405,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:71209:20: */
+func Xsqlite3BtreePayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* sqlite3.c:71224:20: */
return accessPayload(tls, pCur, offset, amt, pBuf, 0)
}
@@ -93407,7 +93413,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:71222:28: */
+func accessPayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* sqlite3.c:71237:28: */
var rc int32
if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_INVALID {
return SQLITE_ABORT
@@ -93420,7 +93426,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:71236:20: */
+func Xsqlite3BtreePayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* sqlite3.c:71251:20: */
if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID {
return accessPayload(tls, pCur, offset, amt, pBuf, 0)
@@ -93447,7 +93453,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:71265:19: */
+func fetchPayload(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* sqlite3.c:71280:19: */
var amt int32
amt = int32((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal)
@@ -93478,7 +93484,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:71304:27: */
+func Xsqlite3BtreePayloadFetch(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* sqlite3.c:71319:27: */
return fetchPayload(tls, pCur, pAmt)
}
@@ -93489,11 +93495,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:71318:12: */
+func moveToChild(tls *libc.TLS, pCur uintptr, newPgno U32) int32 { /* sqlite3.c:71333:12: */
var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt
if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= BTCURSOR_MAX_DEPTH-1 {
- return Xsqlite3CorruptError(tls, 71326)
+ return Xsqlite3CorruptError(tls, 71341)
}
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey | BTCF_ValidOvfl))
@@ -93510,7 +93516,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:71367:13: */
+func moveToParent(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:71382:13: */
var pLeaf uintptr
(*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0)
@@ -93540,7 +93546,7 @@ func moveToParent(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:71367: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:71408:12: */
+func moveToRoot(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71423:12: */
var pRoot uintptr
var rc int32
var subpage Pgno
@@ -93619,7 +93625,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, 71464)
+ return Xsqlite3CorruptError(tls, 71479)
__11:
;
@@ -93640,7 +93646,7 @@ __12:
if !((*MemPage)(unsafe.Pointer(pRoot)).Fpgno != Pgno(1)) {
goto __16
}
- return Xsqlite3CorruptError(tls, 71476)
+ return Xsqlite3CorruptError(tls, 71491)
__16:
;
subpage = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pRoot)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pRoot)).FhdrOffset)+8))
@@ -93662,7 +93668,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:71494:12: */
+func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71509:12: */
var pgno Pgno
var rc int32 = SQLITE_OK
var pPage uintptr
@@ -93683,7 +93689,7 @@ func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71494: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:71519:12: */
+func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71534:12: */
var pgno Pgno
var rc int32 = SQLITE_OK
var pPage uintptr = uintptr(0)
@@ -93704,7 +93710,7 @@ func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71519: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:71542:20: */
+func Xsqlite3BtreeFirst(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* sqlite3.c:71557:20: */
var rc int32
rc = moveToRoot(tls, pCur)
@@ -93723,7 +93729,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:71564:20: */
+func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* sqlite3.c:71579:20: */
var rc int32
// If the cursor already points to the last entry, this is a no-op.
@@ -93772,7 +93778,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:71629:20: */
+func Xsqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey I64, biasRight int32, pRes uintptr) int32 { /* sqlite3.c:71644:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -93887,7 +93893,7 @@ __19:
if !(pCell >= (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) {
goto __21
}
- return Xsqlite3CorruptError(tls, 71718)
+ return Xsqlite3CorruptError(tls, 71733)
__21:
;
goto __19
@@ -94016,7 +94022,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:71797:20: */
+func Xsqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes uintptr) int32 { /* sqlite3.c:71812:20: */
var rc int32
var xRecordCompare RecordCompare
// The record flows over onto one or more overflow pages. In
@@ -94120,7 +94126,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, 71899)
+ rc = Xsqlite3CorruptError(tls, 71914)
goto moveto_index_finish
__13:
;
@@ -94169,7 +94175,7 @@ __18:
if !((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode != 0) {
goto __20
}
- rc = Xsqlite3CorruptError(tls, 71931)
+ rc = Xsqlite3CorruptError(tls, 71946)
__20:
;
goto moveto_index_finish
@@ -94236,7 +94242,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:71970:20: */
+func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71985: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.
@@ -94246,7 +94252,7 @@ func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:71970: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:71983:20: */
+func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* sqlite3.c:71998:20: */
var n I64
var i U8
@@ -94285,7 +94291,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:72023:28: */
+func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:72038:28: */
var rc int32
var idx int32
var pPage uintptr
@@ -94322,7 +94328,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:72023: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, 72054)
+ return Xsqlite3CorruptError(tls, 72069)
}
if idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) {
@@ -94355,7 +94361,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:72023:28: */
return int32(0)
}
-func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqlite3.c:72083:20: */
+func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqlite3.c:72098:20: */
var pPage uintptr
_ = flags // Used in COMDB2 but not native SQLite
@@ -94395,7 +94401,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:72123:28: */
+func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:72138:28: */
var rc int32
var pPage uintptr
@@ -94449,7 +94455,7 @@ func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:72123:28: *
return rc
}
-func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqlite3.c:72172:20: */
+func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* sqlite3.c:72187:20: */
_ = flags // Used in COMDB2 but not native SQLite
*(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_AtLast | BTCF_ValidOvfl | BTCF_ValidNKey))
@@ -94483,7 +94489,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:72210:12: */
+func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr, nearby Pgno, eMode U8) int32 { /* sqlite3.c:72225:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -94550,7 +94556,7 @@ func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr
if !(n >= mxPage) {
goto __1
}
- return Xsqlite3CorruptError(tls, 72234)
+ return Xsqlite3CorruptError(tls, 72249)
__1:
;
if !(n > U32(0)) {
@@ -94631,7 +94637,7 @@ __15:
if !(iTrunk > mxPage || libc.PostIncUint32(&nSearch, 1) > n) {
goto __16
}
- rc = Xsqlite3CorruptError(tls, 72290)
+ rc = Xsqlite3CorruptError(tls, 72305)
goto __17
__16:
rc = btreeGetUnusedPage(tls, pBt, iTrunk, bp+8, 0)
@@ -94673,7 +94679,7 @@ __19:
goto __22
}
// Value of k is out of range. Database corruption
- rc = Xsqlite3CorruptError(tls, 72319)
+ rc = Xsqlite3CorruptError(tls, 72334)
goto end_allocate_page
goto __23
__22:
@@ -94718,7 +94724,7 @@ __27:
if !(iNewTrunk > mxPage) {
goto __32
}
- rc = Xsqlite3CorruptError(tls, 72353)
+ rc = Xsqlite3CorruptError(tls, 72368)
goto end_allocate_page
__32:
;
@@ -94832,7 +94838,7 @@ __40:
if !(iPage > mxPage || iPage < Pgno(2)) {
goto __51
}
- rc = Xsqlite3CorruptError(tls, 72418)
+ rc = Xsqlite3CorruptError(tls, 72433)
goto end_allocate_page
__51:
;
@@ -95007,7 +95013,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:72532:12: */
+func freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage Pgno) int32 { /* sqlite3.c:72547:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -95028,7 +95034,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, 72545)
+ return Xsqlite3CorruptError(tls, 72560)
__1:
;
if !(pMemPage != 0) {
@@ -95098,7 +95104,7 @@ __7:
if !(iTrunk > btreePagecount(tls, pBt)) {
goto __10
}
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72592)
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72607)
goto freepage_out
__10:
;
@@ -95115,7 +95121,7 @@ __11:
if !(nLeaf > (*BtShared)(unsafe.Pointer(pBt)).FusableSize/U32(4)-U32(2)) {
goto __12
}
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72603)
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72618)
goto freepage_out
__12:
;
@@ -95196,14 +95202,14 @@ __18:
return *(*int32)(unsafe.Pointer(bp + 8 /* rc */))
}
-func freePage(tls *libc.TLS, pPage uintptr, pRC uintptr) { /* sqlite3.c:72666:13: */
+func freePage(tls *libc.TLS, pPage uintptr, pRC uintptr) { /* sqlite3.c:72681: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:72675:28: */
+func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) int32 { /* sqlite3.c:72690:28: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -95215,7 +95221,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, 72692)
+ return Xsqlite3CorruptError(tls, 72707)
}
ovflPgno = Xsqlite3Get4byte(tls, pCell+uintptr((*CellInfo)(unsafe.Pointer(pInfo)).FnSize)-uintptr(4))
pBt = (*MemPage)(unsafe.Pointer(pPage)).FpBt
@@ -95230,7 +95236,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, 72709)
+ return Xsqlite3CorruptError(tls, 72724)
}
if nOvfl != 0 {
rc = getOverflowPage(tls, pBt, ovflPgno, bp, bp+8)
@@ -95250,7 +95256,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, 72729)
+ rc = Xsqlite3CorruptError(tls, 72744)
} else {
rc = freePage2(tls, pBt, *(*uintptr)(unsafe.Pointer(bp /* pOvfl */)), ovflPgno)
}
@@ -95282,7 +95288,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:72770:12: */
+func fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize uintptr) int32 { /* sqlite3.c:72785:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -95464,7 +95470,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:72960:13: */
+func dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) { /* sqlite3.c:72975: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[]
@@ -95482,7 +95488,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, 72988)
+ *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 73003)
return
}
rc = freeSpace(tls, pPage, uint16(pc), uint16(sz))
@@ -95518,7 +95524,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:73024:13: */
+func insertCell(tls *libc.TLS, pPage uintptr, i int32, pCell uintptr, sz int32, pTemp uintptr, iChild Pgno, pRC uintptr) { /* sqlite3.c:73039:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -95679,7 +95685,7 @@ type CellArray1 = struct {
FszCell uintptr
FapEnd [6]uintptr
FixNx [6]int32
-} /* sqlite3.c:73199:9 */
+} /* sqlite3.c:73214:9 */
// The following parameters determine how many adjacent pages get involved
// in a balancing operation. NN is the number of neighbors on either side
@@ -95756,11 +95762,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:73199:26 */
+type CellArray = CellArray1 /* sqlite3.c:73214: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:73213:13: */
+func populateCellCache(tls *libc.TLS, p uintptr, idx int32, N int32) { /* sqlite3.c:73228:13: */
for N > 0 {
@@ -95777,7 +95783,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:73231:28: */
+func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:73246:28: */
*(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) = (*struct {
f func(*libc.TLS, uintptr, uintptr) U16
@@ -95785,7 +95791,7 @@ func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:73231
return *(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2))
}
-func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:73237:12: */
+func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:73252: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))
@@ -95804,7 +95810,7 @@ func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* sqlite3.c:73237:
//
// 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:73256:12: */
+func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg uintptr) int32 { /* sqlite3.c:73271: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)
@@ -95835,12 +95841,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, 73289)
+ return Xsqlite3CorruptError(tls, 73304)
}
pCell = pTmp + uintptr((int64(pCell)-int64(aData))/1)
} else if Uptr(pCell+uintptr(sz)) > Uptr(pSrcEnd) &&
Uptr(pCell) < Uptr(pSrcEnd) {
- return Xsqlite3CorruptError(tls, 73294)
+ return Xsqlite3CorruptError(tls, 73309)
}
pData -= uintptr(sz)
@@ -95848,7 +95854,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, 73300)
+ return Xsqlite3CorruptError(tls, 73315)
}
libc.Xmemmove(tls, pData, pCell, uint64(sz))
@@ -95898,7 +95904,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:73346:12: */
+func pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr, pCellptr uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* sqlite3.c:73361:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -95936,7 +95942,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, 73385)
+ Xsqlite3CorruptError(tls, 73400)
return 1
}
libc.Xmemmove(tls, pSlot, *(*uintptr)(unsafe.Pointer((*CellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8)), uint64(sz))
@@ -95963,7 +95969,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:73411:12: */
+func pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* sqlite3.c:73426: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))
@@ -96015,7 +96021,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:73470:12: */
+func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pCArray uintptr) int32 { /* sqlite3.c:73485:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -96049,7 +96055,7 @@ func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pC
if !(nShift > nCell) {
goto __2
}
- return Xsqlite3CorruptError(tls, 73496)
+ return Xsqlite3CorruptError(tls, 73511)
__2:
;
libc.Xmemmove(tls, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx+uintptr(nShift*2), uint64(nCell*2))
@@ -96189,7 +96195,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:73599:12: */
+func balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintptr) int32 { /* sqlite3.c:73614:12: */
bp := tls.Alloc(140)
defer tls.Free(140)
@@ -96202,7 +96208,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, 73609)
+ return Xsqlite3CorruptError(tls, 73624)
} // dbfuzz001.test
// Allocate a new page. This page will become the right-sibling of
@@ -96300,7 +96306,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:73754:13: */
+func copyNodeContent(tls *libc.TLS, pFrom uintptr, pTo uintptr, pRC uintptr) { /* sqlite3.c:73769:13: */
if *(*int32)(unsafe.Pointer(pRC)) == SQLITE_OK {
var pBt uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FpBt
var aFrom uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FaData
@@ -96380,7 +96386,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:73836:12: */
+func balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpace uintptr, isRoot int32, bBulk int32) int32 { /* sqlite3.c:73851:12: */
bp := tls.Alloc(344)
defer tls.Free(344)
@@ -96682,7 +96688,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, 74032)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74047)
goto balance_cleanup
__25:
;
@@ -96710,7 +96716,7 @@ __25:
if !(limit < int32(*(*U16)(unsafe.Pointer(pOld + 28)))) {
goto __27
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74056)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74071)
goto balance_cleanup
__27:
;
@@ -96889,7 +96895,7 @@ __52:
if !(k > NB+2) {
goto __55
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74157)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74172)
goto balance_cleanup
__55:
;
@@ -96963,7 +96969,7 @@ __65:
}()) {
goto __67
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74190)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74205)
goto balance_cleanup
__67:
;
@@ -97036,7 +97042,7 @@ __73:
}()) {
goto __75
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74232)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74247)
goto balance_cleanup
__75:
;
@@ -97073,7 +97079,7 @@ __76:
*(*int32)(unsafe.Pointer(bp + 172)) == SQLITE_OK) {
goto __81
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74265)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74280)
__81:
;
if !(*(*int32)(unsafe.Pointer(bp + 172)) != 0) {
@@ -97157,7 +97163,7 @@ __89:
// cache with two separate objects associated with the same
// page number.
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74311)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74326)
goto balance_cleanup
__92:
;
@@ -97410,7 +97416,7 @@ __125:
if !(Uptr(pSrcEnd) >= Uptr(pCell1) && Uptr(pSrcEnd) < Uptr(pCell1+uintptr(sz2))) {
goto __126
}
- *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74468)
+ *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74483)
goto balance_cleanup
__126:
;
@@ -97632,7 +97638,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:74633:12: */
+func balance_deeper(tls *libc.TLS, pRoot uintptr, ppChild uintptr) int32 { /* sqlite3.c:74648:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -97683,13 +97689,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:74691:12: */
+func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74706: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, 74698)
+ return Xsqlite3CorruptError(tls, 74713)
}
}
return SQLITE_OK
@@ -97703,7 +97709,7 @@ func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74691:
// balance_quick()
// balance_deeper()
// balance_nonroot()
-func balance(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74714:12: */
+func balance(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74729:12: */
bp := tls.Alloc(13)
defer tls.Free(13)
@@ -97822,7 +97828,7 @@ func balance(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:74714: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:74840:12: */
+func btreeOverwriteContent(tls *libc.TLS, pPage uintptr, pDest uintptr, pX uintptr, iOffset int32, iAmt int32) int32 { /* sqlite3.c:74855:12: */
var nData int32 = (*BtreePayload)(unsafe.Pointer(pX)).FnData - iOffset
if nData <= 0 {
// Overwritting with zeros
@@ -97864,7 +97870,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:74883:12: */
+func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* sqlite3.c:74898:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -97878,7 +97884,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, 74895)
+ return Xsqlite3CorruptError(tls, 74910)
}
// Overwrite the local portion first
rc = btreeOverwriteContent(tls, *(*uintptr)(unsafe.Pointer(bp /* pPage */)), (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload, pX,
@@ -97902,7 +97908,7 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* sqli
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, 74914)
+ rc = Xsqlite3CorruptError(tls, 74929)
} else {
if U32(iOffset)+ovflPageSize < U32(nTotal) {
ovflPgno = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPage */)))).FaData)
@@ -97949,7 +97955,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:74962:20: */
+func Xsqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, seekResult int32) int32 { /* sqlite3.c:74977:20: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -98021,7 +98027,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, 75019)
+ return Xsqlite3CorruptError(tls, 75034)
__4:
;
__2:
@@ -98149,7 +98155,7 @@ __6:
if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) > CURSOR_INVALID) {
goto __20
}
- *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 75119)
+ *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 75134)
goto __21
__20:
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeComputeFreeSpace(tls, pPage)
@@ -98212,7 +98218,7 @@ __28:
if !(idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell)) {
goto __31
}
- return Xsqlite3CorruptError(tls, 75155)
+ return Xsqlite3CorruptError(tls, 75170)
__31:
;
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3PagerWrite(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage)
@@ -98260,13 +98266,13 @@ __35:
if !(oldCell < (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+uintptr(10)) {
goto __37
}
- return Xsqlite3CorruptError(tls, 75182)
+ return Xsqlite3CorruptError(tls, 75197)
__37:
;
if !(oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 108))) > (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) {
goto __38
}
- return Xsqlite3CorruptError(tls, 75185)
+ return Xsqlite3CorruptError(tls, 75200)
__38:
;
libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 108 /* szNew */))))
@@ -98374,7 +98380,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:75271:20: */
+func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I64) int32 { /* sqlite3.c:75286:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -98401,7 +98407,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, 75285)
+ return Xsqlite3CorruptError(tls, 75300)
}
nRem = (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload
if nIn == nRem && nIn < U32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pDest)).FpPage)).FmaxLocal) {
@@ -98424,7 +98430,7 @@ func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I
if nRem > nIn {
if aIn+uintptr(nIn)+uintptr(4) > (*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pSrc)).FpPage)).FaDataEnd {
- return Xsqlite3CorruptError(tls, 75308)
+ return Xsqlite3CorruptError(tls, 75323)
}
ovflIn = Xsqlite3Get4byte(tls, (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload+uintptr(nIn))
}
@@ -98506,7 +98512,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:75381:20: */
+func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlite3.c:75396:20: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -98534,11 +98540,11 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* sqlit
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)
+ return Xsqlite3CorruptError(tls, 75425)
}
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, 75414)
+ return Xsqlite3CorruptError(tls, 75429)
}
// If the BTREE_SAVEPOSITION bit is on, then the cursor position must
@@ -98647,7 +98653,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, 75504)
+ return Xsqlite3CorruptError(tls, 75519)
}
nCell = int32((*struct {
f func(*libc.TLS, uintptr, uintptr) U16
@@ -98724,7 +98730,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:75578:12: */
+func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags int32) int32 { /* sqlite3.c:75593:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -98754,7 +98760,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, 75612)
+ return Xsqlite3CorruptError(tls, 75627)
}
*(*Pgno)(unsafe.Pointer(bp /* pgnoRoot */))++
@@ -98797,7 +98803,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, 75660)
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 75675)
}
if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK {
releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pRoot */)))
@@ -98860,7 +98866,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:75723:20: */
+func Xsqlite3BtreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, flags int32) int32 { /* sqlite3.c:75738:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeCreateTable(tls, p, piTable, flags)
@@ -98870,7 +98876,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:75735:12: */
+func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32, pnChange uintptr) int32 { /* sqlite3.c:75750:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -98886,7 +98892,7 @@ func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32
if !(pgno > btreePagecount(tls, pBt)) {
goto __1
}
- return Xsqlite3CorruptError(tls, 75750)
+ return Xsqlite3CorruptError(tls, 75765)
__1:
;
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = getAndInitPage(tls, pBt, pgno, bp, uintptr(0), 0)
@@ -98900,7 +98906,7 @@ __2:
Xsqlite3PagerPageRefcount(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpDbPage) != 1+libc.Bool32(pgno == Pgno(1))) {
goto __3
}
- *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = Xsqlite3CorruptError(tls, 75757)
+ *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = Xsqlite3CorruptError(tls, 75772)
goto cleardatabasepage_out
__3:
;
@@ -99004,7 +99010,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:75802:20: */
+func Xsqlite3BtreeClearTable(tls *libc.TLS, p uintptr, iTable int32, pnChange uintptr) int32 { /* sqlite3.c:75817:20: */
var rc int32
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -99027,7 +99033,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:75828:20: */
+func Xsqlite3BtreeClearTableOfCursor(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:75843:20: */
return Xsqlite3BtreeClearTable(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree, int32((*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot), uintptr(0))
}
@@ -99049,7 +99055,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:75852:12: */
+func btreeDropTable(tls *libc.TLS, p uintptr, iTable Pgno, piMoved uintptr) int32 { /* sqlite3.c:75867:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -99059,7 +99065,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, 75861)
+ return Xsqlite3CorruptError(tls, 75876)
}
*(*int32)(unsafe.Pointer(bp + 12 /* rc */)) = Xsqlite3BtreeClearTable(tls, p, int32(iTable), uintptr(0))
@@ -99131,7 +99137,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:75937:20: */
+func Xsqlite3BtreeDropTable(tls *libc.TLS, p uintptr, iTable int32, piMoved uintptr) int32 { /* sqlite3.c:75952:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
rc = btreeDropTable(tls, p, uint32(iTable), piMoved)
@@ -99157,7 +99163,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:75966:21: */
+func Xsqlite3BtreeGetMeta(tls *libc.TLS, p uintptr, idx int32, pMeta uintptr) { /* sqlite3.c:75981:21: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
@@ -99176,7 +99182,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:75996:20: */
+func Xsqlite3BtreeUpdateMeta(tls *libc.TLS, p uintptr, idx int32, iMeta U32) int32 { /* sqlite3.c:76011:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
var pP1 uintptr
var rc int32
@@ -99202,7 +99208,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:76028:20: */
+func Xsqlite3BtreeCount(tls *libc.TLS, db uintptr, pCur uintptr, pnEntry uintptr) int32 { /* sqlite3.c:76043:20: */
var nEntry I64 = int64(0) // Value to return in *pnEntry
var rc int32 // Return code
@@ -99265,12 +99271,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:76097:22: */
+func Xsqlite3BtreePager(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:76112: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:76105:13: */
+func checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:76120:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -99297,13 +99303,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:76135:12: */
+func getPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) int32 { /* sqlite3.c:76150: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:76143:13: */
+func setPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) { /* sqlite3.c:76158:13: */
*(*U8)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).FaPgRef + uintptr(iPg/Pgno(8)))) |= U8(int32(1) << (iPg & Pgno(0x07)))
}
@@ -99314,7 +99320,7 @@ 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:76157:12: */
+func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* sqlite3.c:76172:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -99336,7 +99342,7 @@ func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* sqlite3.c:76
// 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:76177:13: */
+func checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild Pgno, eType U8, iParent Pgno) { /* sqlite3.c:76192:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -99363,7 +99369,7 @@ func checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild Pgno, eType U8, iParent P
// 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:76206:13: */
+func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U32) { /* sqlite3.c:76221:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -99447,7 +99453,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:76295:13: */
+func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* sqlite3.c:76310:13: */
var j U32
var i U32 = libc.PreIncUint32(&*(*U32)(unsafe.Pointer(aHeap)), 1)
*(*U32)(unsafe.Pointer(aHeap + uintptr(i)*4)) = x
@@ -99459,7 +99465,7 @@ func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* sqlite3.c:76295:1
}
}
-func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* sqlite3.c:76305:12: */
+func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* sqlite3.c:76320:12: */
var j U32
var i U32
var x U32
@@ -99498,7 +99504,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:76339:12: */
+func checkTreePage(tls *libc.TLS, pCheck uintptr, iPage Pgno, piMinKey uintptr, maxKey I64) int32 { /* sqlite3.c:76354:12: */
bp := tls.Alloc(140)
defer tls.Free(140)
*(*I64)(unsafe.Pointer(bp + 104)) = maxKey
@@ -99887,7 +99893,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:76618:21: */
+func Xsqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uintptr, nRoot int32, mxErr int32, pnErr uintptr) uintptr { /* sqlite3.c:76633:21: */
bp := tls.Alloc(248)
defer tls.Free(248)
@@ -100121,7 +100127,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:76773:27: */
+func Xsqlite3BtreeGetFilename(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:76788:27: */
return Xsqlite3PagerFilename(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, 1)
}
@@ -100132,14 +100138,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:76786:27: */
+func Xsqlite3BtreeGetJournalname(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:76801: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:76795:20: */
+func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76810:20: */
if p != 0 {
return int32((*Btree)(unsafe.Pointer(p)).FinTrans)
@@ -100153,7 +100159,7 @@ func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76795:
// 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:76809:20: */
+func Xsqlite3BtreeCheckpoint(tls *libc.TLS, p uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* sqlite3.c:76824:20: */
var rc int32 = SQLITE_OK
if p != 0 {
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
@@ -100169,7 +100175,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:76828:20: */
+func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76843:20: */
return libc.Bool32((*Btree)(unsafe.Pointer(p)).FnBackup != 0)
}
@@ -100192,7 +100198,7 @@ func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:7682
// 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:76854:21: */
+func Xsqlite3BtreeSchema(tls *libc.TLS, p uintptr, nBytes int32, xFree uintptr) uintptr { /* sqlite3.c:76869:21: */
var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt
Xsqlite3BtreeEnter(tls, p)
if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpSchema) != 0) && nBytes != 0 {
@@ -100206,7 +100212,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:76870:20: */
+func Xsqlite3BtreeSchemaLocked(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:76885:20: */
var rc int32
Xsqlite3BtreeEnter(tls, p)
@@ -100219,7 +100225,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:76887:20: */
+func Xsqlite3BtreeLockTable(tls *libc.TLS, p uintptr, iTab int32, isWriteLock U8) int32 { /* sqlite3.c:76902:20: */
var rc int32 = SQLITE_OK
if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 {
@@ -100243,7 +100249,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:76917:20: */
+func Xsqlite3BtreePutData(tls *libc.TLS, pCsr uintptr, offset U32, amt U32, z uintptr) int32 { /* sqlite3.c:76932:20: */
var rc int32
rc = func() int32 {
@@ -100283,7 +100289,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:76965:21: */
+func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:76980:21: */
*(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Incrblob)
(*Btree)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBtree)).FhasIncrblobCur = U8(1)
}
@@ -100291,7 +100297,7 @@ func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* sqlite3.c:769
// 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:76976:20: */
+func Xsqlite3BtreeSetVersion(tls *libc.TLS, pBtree uintptr, iVersion int32) int32 { /* sqlite3.c:76991:20: */
var pBt uintptr = (*Btree)(unsafe.Pointer(pBtree)).FpBt
var rc int32 // Return code
@@ -100323,29 +100329,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:77011:20: */
+func Xsqlite3BtreeCursorHasHint(tls *libc.TLS, pCsr uintptr, mask uint32) int32 { /* sqlite3.c:77026: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:77018:20: */
+func Xsqlite3BtreeIsReadonly(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77033: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:77025:20: */
+func Xsqlite3HeaderSizeBtree(tls *libc.TLS) int32 { /* sqlite3.c:77040: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:77031:20: */
+func Xsqlite3BtreeSharable(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77046: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:77040:20: */
+func Xsqlite3BtreeConnectionCount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77055:20: */
return (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnRef
}
@@ -100385,7 +100391,7 @@ 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:77129:14: */
+func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintptr { /* sqlite3.c:77144:14: */
bp := tls.Alloc(424)
defer tls.Free(424)
@@ -100417,7 +100423,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:77159:12: */
+func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77174: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
@@ -100427,7 +100433,7 @@ func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77159: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:77171:12: */
+func checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:77186:12: */
if Xsqlite3BtreeTxnState(tls, p) != SQLITE_TXN_NONE {
Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+6157, 0)
return SQLITE_ERROR
@@ -100441,7 +100447,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:77187:27: */
+func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcDb uintptr, zSrcDb uintptr) uintptr { /* sqlite3.c:77202:27: */
var p uintptr // Value to return
// Lock the source database handle. The destination database
@@ -100501,14 +100507,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:77264:12: */
+func isFatalError(tls *libc.TLS, rc int32) int32 { /* sqlite3.c:77279: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:77273:12: */
+func backupOnePage(tls *libc.TLS, p uintptr, iSrcPg Pgno, zSrcData uintptr, bUpdate int32) int32 { /* sqlite3.c:77288:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -100570,7 +100576,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:77342:12: */
+func backupTruncateFile(tls *libc.TLS, pFile uintptr, iSize I64) int32 { /* sqlite3.c:77357:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -100585,7 +100591,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:77355:13: */
+func attachBackupObject(tls *libc.TLS, p uintptr) { /* sqlite3.c:77370:13: */
var pp uintptr
pp = Xsqlite3PagerBackupPtr(tls, Xsqlite3BtreePager(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).FpSrc))
@@ -100595,7 +100601,7 @@ func attachBackupObject(tls *libc.TLS, p uintptr) { /* sqlite3.c:77355: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:77367:16: */
+func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* sqlite3.c:77382:16: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -100833,7 +100839,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:77621:16: */
+func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77636:16: */
var pp uintptr // Ptr to head of pagers backup list
var pSrcDb uintptr // Source database connection
var rc int32 // Value to return
@@ -100891,13 +100897,13 @@ func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77621
// 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:77675:16: */
+func Xsqlite3_backup_remaining(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77690: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:77689:16: */
+func Xsqlite3_backup_pagecount(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:77704:16: */
return int32((*Sqlite3_backup)(unsafe.Pointer(p)).FnPagecount)
}
@@ -100911,7 +100917,7 @@ 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:77711:29: */
+func backupUpdate(tls *libc.TLS, p uintptr, iPage Pgno, aData uintptr) { /* sqlite3.c:77726:29: */
for __ccgo := true; __ccgo; __ccgo = libc.AssignUintptr(&p, (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext) != uintptr(0) {
@@ -100932,7 +100938,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:77736:21: */
+func Xsqlite3BackupUpdate(tls *libc.TLS, pBackup uintptr, iPage Pgno, aData uintptr) { /* sqlite3.c:77751:21: */
if pBackup != 0 {
backupUpdate(tls, pBackup, iPage, aData)
}
@@ -100947,7 +100953,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:77751:21: */
+func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* sqlite3.c:77766:21: */
var p uintptr // Iterator variable
for p = pBackup; p != 0; p = (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext {
@@ -100961,7 +100967,7 @@ func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* sqlite3.c:77751:
// 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:77768:20: */
+func Xsqlite3BtreeCopyFile(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* sqlite3.c:77783:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -101055,7 +101061,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:77926:13: */
+func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* sqlite3.c:77941:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -101093,7 +101099,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:78019:20: */
+func Xsqlite3VdbeChangeEncoding(tls *libc.TLS, pMem uintptr, desiredEnc int32) int32 { /* sqlite3.c:78034:20: */
var rc int32
if !(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0) || int32((*Mem)(unsafe.Pointer(pMem)).Fenc) == desiredEnc {
@@ -101113,7 +101119,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:78054:36: */
+func Xsqlite3VdbeMemGrow(tls *libc.TLS, pMem uintptr, n int32, bPreserve int32) int32 { /* sqlite3.c:78069:36: */
// If the bPreserve flag is set to true, then the memory cell must already
// contain a valid string or blob value.
@@ -101169,7 +101175,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:78117:20: */
+func Xsqlite3VdbeMemClearAndResize(tls *libc.TLS, pMem uintptr, szNew int32) int32 { /* sqlite3.c:78132:20: */
if (*Mem)(unsafe.Pointer(pMem)).FszMalloc < szNew {
return Xsqlite3VdbeMemGrow(tls, pMem, szNew, 0)
@@ -101187,7 +101193,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:78138:28: */
+func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78153:28: */
if Xsqlite3VdbeMemGrow(tls, pMem, (*Mem)(unsafe.Pointer(pMem)).Fn+3, 1) != 0 {
return SQLITE_NOMEM
}
@@ -101202,7 +101208,7 @@ func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:7813
// 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:78155:20: */
+func Xsqlite3VdbeMemMakeWriteable(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78170:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
if func() int32 {
@@ -101227,7 +101233,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:78179:20: */
+func Xsqlite3VdbeMemExpandBlob(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78194:20: */
var nByte int32
// Set nByte to the number of bytes required to store the expanded blob.
@@ -101249,7 +101255,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:78210:20: */
+func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78225:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Term|MEM_Str) != MEM_Str {
return SQLITE_OK // Nothing to do
@@ -101271,7 +101277,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:78236:20: */
+func Xsqlite3VdbeMemStringify(tls *libc.TLS, pMem uintptr, enc U8, bForce U8) int32 { /* sqlite3.c:78251:20: */
var nByte int32 = 32
if Xsqlite3VdbeMemClearAndResize(tls, pMem, nByte) != 0 {
@@ -101297,7 +101303,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:78271:20: */
+func Xsqlite3VdbeMemFinalize(tls *libc.TLS, pMem uintptr, pFunc uintptr) int32 { /* sqlite3.c:78286:20: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -101327,7 +101333,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:78302:20: */
+func Xsqlite3VdbeMemAggValue(tls *libc.TLS, pAccum uintptr, pOut uintptr, pFunc uintptr) int32 { /* sqlite3.c:78317:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -101349,7 +101355,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:78327:29: */
+func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* sqlite3.c:78342:29: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Agg != 0 {
Xsqlite3VdbeMemFinalize(tls, p, *(*uintptr)(unsafe.Pointer(p)))
@@ -101368,7 +101374,7 @@ func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* sqlite3.c:78327
// 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:78350:29: */
+func vdbeMemClear(tls *libc.TLS, p uintptr) { /* sqlite3.c:78365:29: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeMemClearExternAndSetNull(tls, p)
}
@@ -101387,7 +101393,7 @@ func vdbeMemClear(tls *libc.TLS, p uintptr) { /* sqlite3.c:78350: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:78371:21: */
+func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:78386:21: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 || (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 {
vdbeMemClear(tls, p)
@@ -101397,7 +101403,7 @@ func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:78371: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:78383:28: */
+func doubleToInt64(tls *libc.TLS, r float64) I64 { /* sqlite3.c:78398:28: */
if r <= float64(minInt) {
return minInt
@@ -101409,8 +101415,8 @@ func doubleToInt64(tls *libc.TLS, r float64) I64 { /* sqlite3.c:78383:28: */
return I64(0)
}
-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 */
+var maxInt I64 = int64(0xffffffff) | I64(int64(0x7fffffff))<<32 /* sqlite3.c:78410:20 */
+var minInt I64 = int64(-1) - (int64(0xffffffff) | I64(int64(0x7fffffff))<<32) /* sqlite3.c:78411:20 */
// Return some kind of integer value which is the best we can do
// at representing the value that *pMem describes as an integer.
@@ -101421,7 +101427,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:78419:28: */
+func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:78434:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -101430,7 +101436,7 @@ func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:78419:28: */
return *(*I64)(unsafe.Pointer(bp /* value */))
}
-func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:78424:20: */
+func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:78439:20: */
var flags int32
flags = int32((*Mem)(unsafe.Pointer(pMem)).Fflags)
@@ -101451,7 +101457,7 @@ func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* sqlite3.c:78424:
// 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:78448:31: */
+func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:78463:31: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -101461,7 +101467,7 @@ func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:78448:31:
return *(*float64)(unsafe.Pointer(bp /* val */))
}
-func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:78454:23: */
+func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* sqlite3.c:78469:23: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Real != 0 {
return *(*float64)(unsafe.Pointer(pMem))
@@ -101479,7 +101485,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:78475:20: */
+func Xsqlite3VdbeBooleanValue(tls *libc.TLS, pMem uintptr, ifNull int32) int32 { /* sqlite3.c:78490:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Int|MEM_IntReal) != 0 {
return libc.Bool32(*(*I64)(unsafe.Pointer(pMem)) != int64(0))
@@ -101492,7 +101498,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:78486:21: */
+func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* sqlite3.c:78501:21: */
var ix I64
ix = doubleToInt64(tls, *(*float64)(unsafe.Pointer(pMem)))
@@ -101513,7 +101519,7 @@ func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* sqlite3.c:784
}
// Convert pMem to type integer. Invalidate any prior representations.
-func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78515:20: */
+func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78530: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)
@@ -101522,7 +101528,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:78530:20: */
+func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78545: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)
@@ -101537,7 +101543,7 @@ func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78
// 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:78549:20: */
+func Xsqlite3RealSameAsInt(tls *libc.TLS, r1 float64, i Sqlite3_int64) int32 { /* sqlite3.c:78564:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp)) = r1
@@ -101554,7 +101560,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:78564:20: */
+func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78579:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -101581,7 +101587,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:78597:20: */
+func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 { /* sqlite3.c:78612:20: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Null != 0 {
return SQLITE_OK
}
@@ -101635,7 +101641,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:78640:21: */
+func Xsqlite3VdbeMemInit(tls *libc.TLS, pMem uintptr, db uintptr, flags U16) { /* sqlite3.c:78655:21: */
(*Mem)(unsafe.Pointer(pMem)).Fflags = flags
(*Mem)(unsafe.Pointer(pMem)).Fdb = db
@@ -101652,7 +101658,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:78660:21: */
+func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* sqlite3.c:78675:21: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeMemClearExternAndSetNull(tls, pMem)
} else {
@@ -101660,13 +101666,13 @@ func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* sqlite3.c:78660:21
}
}
-func Xsqlite3ValueSetNull(tls *libc.TLS, p uintptr) { /* sqlite3.c:78667:21: */
+func Xsqlite3ValueSetNull(tls *libc.TLS, p uintptr) { /* sqlite3.c:78682: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:78676:21: */
+func Xsqlite3VdbeMemSetZeroBlob(tls *libc.TLS, pMem uintptr, n int32) { /* sqlite3.c:78691:21: */
Xsqlite3VdbeMemRelease(tls, pMem)
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Blob | MEM_Zero)
(*Mem)(unsafe.Pointer(pMem)).Fn = 0
@@ -101681,7 +101687,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:78706:29: */
+func vdbeReleaseAndSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* sqlite3.c:78721:29: */
Xsqlite3VdbeMemSetNull(tls, pMem)
*(*I64)(unsafe.Pointer(pMem)) = val
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int)
@@ -101689,7 +101695,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:78716:21: */
+func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* sqlite3.c:78731:21: */
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeReleaseAndSetInt64(tls, pMem, val)
} else {
@@ -101699,14 +101705,15 @@ func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* sqlite3.
}
// A no-op destructor
-func Xsqlite3NoopDestructor(tls *libc.TLS, p uintptr) { /* sqlite3.c:78726:21: */
+func Xsqlite3NoopDestructor(tls *libc.TLS, p uintptr) { /* sqlite3.c:78741: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:78732:21: */
+func Xsqlite3VdbeMemSetPointer(tls *libc.TLS, pMem uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* sqlite3.c:78747:21: */
+ vdbeMemClear(tls, pMem)
*(*uintptr)(unsafe.Pointer(pMem)) = func() uintptr {
if zPType != 0 {
return zPType
@@ -101726,7 +101733,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:78751:21: */
+func Xsqlite3VdbeMemSetDouble(tls *libc.TLS, pMem uintptr, val float64) { /* sqlite3.c:78767:21: */
Xsqlite3VdbeMemSetNull(tls, pMem)
if !(Xsqlite3IsNaN(tls, val) != 0) {
*(*float64)(unsafe.Pointer(pMem)) = val
@@ -101739,7 +101746,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:78778:20: */
+func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* sqlite3.c:78794:20: */
var db uintptr = (*Mem)(unsafe.Pointer(pMem)).Fdb
var p uintptr
@@ -101756,7 +101763,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:78796:20: */
+func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:78812:20: */
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Str|MEM_Blob) != 0 {
var n int32 = (*Mem)(unsafe.Pointer(p)).Fn
@@ -101772,13 +101779,13 @@ func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:78796:
// 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:78852:29: */
+func vdbeClrCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, eType int32) { /* sqlite3.c:78868:29: */
vdbeMemClearExternAndSetNull(tls, pTo)
Xsqlite3VdbeMemShallowCopy(tls, pTo, pFrom, eType)
}
-func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcType int32) { /* sqlite3.c:78857:21: */
+func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcType int32) { /* sqlite3.c:78873:21: */
if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
vdbeClrCopy(tls, pTo, pFrom, srcType)
@@ -101794,7 +101801,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:78873:20: */
+func Xsqlite3VdbeMemCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* sqlite3.c:78889:20: */
var rc int32 = SQLITE_OK
if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 {
@@ -101816,7 +101823,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:78896:21: */
+func Xsqlite3VdbeMemMove(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* sqlite3.c:78912:21: */
Xsqlite3VdbeMemRelease(tls, pTo)
libc.Xmemcpy(tls, pTo, pFrom, uint64(unsafe.Sizeof(Mem{})))
@@ -101837,7 +101844,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:78922:20: */
+func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8, xDel uintptr) int32 { /* sqlite3.c:78938: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
@@ -101950,11 +101957,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:79031:20: */
+func Xsqlite3VdbeMemFromBtree(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pMem uintptr) int32 { /* sqlite3.c:79047:20: */
var rc int32
(*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null)
if Xsqlite3BtreeMaxRecordSize(tls, pCur) < Sqlite3_int64(offset+amt) {
- return Xsqlite3CorruptError(tls, 79040)
+ return Xsqlite3CorruptError(tls, 79056)
}
if SQLITE_OK == libc.AssignInt32(&rc, Xsqlite3VdbeMemClearAndResize(tls, pMem, int32(amt+U32(1)))) {
rc = Xsqlite3BtreePayload(tls, pCur, offset, amt, (*Mem)(unsafe.Pointer(pMem)).Fz)
@@ -101969,7 +101976,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:79054:20: */
+func Xsqlite3VdbeMemFromBtreeZeroOffset(tls *libc.TLS, pCur uintptr, amt U32, pMem uintptr) int32 { /* sqlite3.c:79070:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -101994,7 +102001,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:79086:35: */
+func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* sqlite3.c:79102:35: */
if int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&(MEM_Blob|MEM_Str) != 0 {
if func() int32 {
@@ -102039,7 +102046,7 @@ func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* sqlite3.c:790
// (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:79129:27: */
+func Xsqlite3ValueText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* sqlite3.c:79145:27: */
if !(pVal != 0) {
return uintptr(0)
}
@@ -102055,7 +102062,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:79147:30: */
+func Xsqlite3ValueNew(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:79163:30: */
var p uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Mem{})))
if p != 0 {
(*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Null)
@@ -102072,7 +102079,7 @@ type ValueNewStat4Ctx = struct {
FppRec uintptr
FiVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:79160:1 */
+} /* sqlite3.c:79176: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
@@ -102083,7 +102090,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:79178:22: */
+func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:79194:22: */
if p != 0 {
var pRec uintptr = *(*uintptr)(unsafe.Pointer((*ValueNewStat4Ctx)(unsafe.Pointer(p)).FppRec))
@@ -102139,7 +102146,7 @@ func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:79178
// 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:79240:12: */
+func valueFromFunction(tls *libc.TLS, db uintptr, p uintptr, enc U8, aff U8, ppVal uintptr, pCtx uintptr) int32 { /* sqlite3.c:79256:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -102285,7 +102292,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:79336:12: */
+func valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr, pCtx uintptr) int32 { /* sqlite3.c:79352:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -102533,7 +102540,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:79491:20: */
+func Xsqlite3ValueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr) int32 { /* sqlite3.c:79507:20: */
if pExpr != 0 {
return valueFromExpr(tls, db, pExpr, enc, affinity, ppVal, uintptr(0))
}
@@ -102556,7 +102563,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:79520:12: */
+func stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, pAlloc uintptr, ppVal uintptr) int32 { /* sqlite3.c:79536:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102624,7 +102631,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:79595:20: */
+func Xsqlite3Stat4ProbeSetValue(tls *libc.TLS, pParse uintptr, pIdx uintptr, ppRec uintptr, pExpr uintptr, nElem int32, iVal int32, pnExtract uintptr) int32 { /* sqlite3.c:79611:20: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -102669,7 +102676,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:79640:20: */
+func Xsqlite3Stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, ppVal uintptr) int32 { /* sqlite3.c:79656:20: */
return stat4ValueFromExpr(tls, pParse, pExpr, affinity, uintptr(0), ppVal)
}
@@ -102679,7 +102686,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:79657:20: */
+func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iCol int32, ppVal uintptr) int32 { /* sqlite3.c:79673:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -102700,7 +102707,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, 79675)
+ return Xsqlite3CorruptError(tls, 79691)
}
iField = *(*int32)(unsafe.Pointer(bp /* nHdr */))
for i = 0; i <= iCol; i++ {
@@ -102715,14 +102722,14 @@ func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
}())
if iHdr > *(*int32)(unsafe.Pointer(bp)) {
- return Xsqlite3CorruptError(tls, 79681)
+ return Xsqlite3CorruptError(tls, 79697)
}
szField = int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 4 /* t */))))
iField = iField + szField
}
if iField > nRec {
- return Xsqlite3CorruptError(tls, 79687)
+ return Xsqlite3CorruptError(tls, 79703)
}
if pMem == uintptr(0) {
pMem = libc.AssignPtrUintptr(ppVal, Xsqlite3ValueNew(tls, db))
@@ -102738,7 +102745,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:79702:21: */
+func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* sqlite3.c:79718:21: */
if pRec != 0 {
var i int32
var nCol int32 = int32((*KeyInfo)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pRec)).FpKeyInfo)).FnAllField)
@@ -102753,14 +102760,14 @@ func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* sqlite3.c:79702: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:79720:21: */
+func Xsqlite3ValueSetStr(tls *libc.TLS, v uintptr, n int32, z uintptr, enc U8, xDel uintptr) { /* sqlite3.c:79736: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:79733:21: */
+func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* sqlite3.c:79749:21: */
if !(v != 0) {
return
}
@@ -102771,14 +102778,14 @@ func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* sqlite3.c:79733: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:79744:28: */
+func valueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* sqlite3.c:79760: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:79747:20: */
+func Xsqlite3ValueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* sqlite3.c:79763:20: */
var p uintptr = pVal
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Str != 0 && int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fenc) == int32(enc) {
@@ -102798,7 +102805,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:79790:21: */
+func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* sqlite3.c:79806:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var p uintptr
p = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(Vdbe{})))
@@ -102822,12 +102829,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:79817:22: */
+func Xsqlite3VdbeParser(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:79833: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:79824:21: */
+func Xsqlite3VdbeError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:79840:21: */
var ap Va_list
_ = ap
Xsqlite3DbFree(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)
@@ -102837,7 +102844,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:79835:21: */
+func Xsqlite3VdbeSetSql(tls *libc.TLS, p uintptr, z uintptr, n int32, prepFlags U8) { /* sqlite3.c:79851:21: */
if p == uintptr(0) {
return
}
@@ -102850,7 +102857,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:79885:21: */
+func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* sqlite3.c:79901:21: */
var tmp Vdbe
var pTmp uintptr
var zTmp uintptr
@@ -102881,7 +102888,7 @@ func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* sqlite3.c:7988
// 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:79922:12: */
+func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* sqlite3.c:79938:12: */
var pNew uintptr
var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse
@@ -102934,7 +102941,7 @@ func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* sqlite3.c:79922
// 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:79993:28: */
+func growOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* sqlite3.c:80009:28: */
if growOpArray(tls, p, 1) != 0 {
return 1
@@ -102943,7 +102950,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:79999:20: */
+func Xsqlite3VdbeAddOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* sqlite3.c:80015:20: */
var i int32
var pOp uintptr
@@ -102966,26 +102973,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:80038:20: */
+func Xsqlite3VdbeAddOp0(tls *libc.TLS, p uintptr, op int32) int32 { /* sqlite3.c:80054:20: */
return Xsqlite3VdbeAddOp3(tls, p, op, 0, 0, 0)
}
-func Xsqlite3VdbeAddOp1(tls *libc.TLS, p uintptr, op int32, p1 int32) int32 { /* sqlite3.c:80041:20: */
+func Xsqlite3VdbeAddOp1(tls *libc.TLS, p uintptr, op int32, p1 int32) int32 { /* sqlite3.c:80057: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:80044:20: */
+func Xsqlite3VdbeAddOp2(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32) int32 { /* sqlite3.c:80060: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:80050:20: */
+func Xsqlite3VdbeGoto(tls *libc.TLS, p uintptr, iDest int32) int32 { /* sqlite3.c:80066: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:80057:20: */
+func Xsqlite3VdbeLoadString(tls *libc.TLS, p uintptr, iDest int32, zStr uintptr) int32 { /* sqlite3.c:80073:20: */
return Xsqlite3VdbeAddOp4(tls, p, OP_String8, 0, iDest, 0, zStr, 0)
}
@@ -102998,7 +103005,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:80072:21: */
+func Xsqlite3VdbeMultiLoad(tls *libc.TLS, p uintptr, iDest int32, zTypes uintptr, va uintptr) { /* sqlite3.c:80088:21: */
var ap Va_list
_ = ap
var i int32
@@ -103046,7 +103053,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:80095:20: */
+func Xsqlite3VdbeAddOp4(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, zP4 uintptr, p4type int32) int32 { /* sqlite3.c:80111:20: */
var addr int32 = Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, p3)
Xsqlite3VdbeChangeP4(tls, p, addr, zP4, p4type)
return addr
@@ -103060,7 +103067,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:80119:20: */
+func Xsqlite3VdbeAddFunctionCall(tls *libc.TLS, pParse uintptr, p1 int32, p2 int32, p3 int32, nArg int32, pFunc uintptr, eCallCtx int32) int32 { /* sqlite3.c:80135:20: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var nByte int32
var addr int32
@@ -103092,7 +103099,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:80156:20: */
+func Xsqlite3VdbeAddOp4Dup8(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, zP4 uintptr, p4type int32) int32 { /* sqlite3.c:80172:20: */
var p4copy uintptr = Xsqlite3DbMallocRawNN(tls, Xsqlite3VdbeDb(tls, p), uint64(8))
if p4copy != 0 {
libc.Xmemcpy(tls, p4copy, zP4, uint64(8))
@@ -103102,7 +103109,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:80175:20: */
+func Xsqlite3VdbeExplainParent(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:80191:20: */
var pOp uintptr
if (*Parse)(unsafe.Pointer(pParse)).FaddrExplain == 0 {
return 0
@@ -103118,7 +103125,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:80199:21: */
+func Xsqlite3VdbeExplain(tls *libc.TLS, pParse uintptr, bPush U8, zFmt uintptr, va uintptr) { /* sqlite3.c:80215: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 {
@@ -103142,7 +103149,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:80227:21: */
+func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:80243:21: */
(*Parse)(unsafe.Pointer(pParse)).FaddrExplain = Xsqlite3VdbeExplainParent(tls, pParse)
}
@@ -103153,7 +103160,7 @@ func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:80227:
//
// 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:80241:21: */
+func Xsqlite3VdbeAddParseSchemaOp(tls *libc.TLS, p uintptr, iDb int32, zWhere uintptr, p5 U16) { /* sqlite3.c:80257:21: */
var j int32
Xsqlite3VdbeAddOp4(tls, p, OP_ParseSchema, iDb, 0, 0, zWhere, -7)
Xsqlite3VdbeChangeP5(tls, p, p5)
@@ -103164,7 +103171,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:80252:20: */
+func Xsqlite3VdbeAddOp4Int(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, p4 int32) int32 { /* sqlite3.c:80268: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
@@ -103175,7 +103182,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:80271:21: */
+func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* sqlite3.c:80287:21: */
Xsqlite3VdbeAddOp1(tls, v, OP_EndCoroutine, regYield)
// Clear the temporary register cache, thereby ensuring that each
@@ -103210,14 +103217,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:80309:20: */
+func Xsqlite3VdbeMakeLabel(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:80325: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:80318:29: */
+func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* sqlite3.c:80334:29: */
var nNewSize int32 = 10 - (*Parse)(unsafe.Pointer(p)).FnLabel
(*Parse)(unsafe.Pointer(p)).FaLabel = Xsqlite3DbReallocOrFree(tls, (*Parse)(unsafe.Pointer(p)).Fdb, (*Parse)(unsafe.Pointer(p)).FaLabel,
uint64(nNewSize)*uint64(unsafe.Sizeof(int32(0))))
@@ -103229,7 +103236,7 @@ func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* sqlit
}
}
-func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* sqlite3.c:80333:21: */
+func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* sqlite3.c:80349:21: */
var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse
var j int32 = ^x
@@ -103242,12 +103249,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:80355:21: */
+func Xsqlite3VdbeRunOnlyOnce(tls *libc.TLS, p uintptr) { /* sqlite3.c:80371: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:80362:21: */
+func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* sqlite3.c:80378:21: */
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 5, 0x20)
}
@@ -103270,7 +103277,7 @@ func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* sqlite3.c:80362: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:80558:13: */
+func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* sqlite3.c:80574:13: */
var nMaxArgs int32 = *(*int32)(unsafe.Pointer(pMaxFuncArgs))
var pOp uintptr
var pParse uintptr = (*Vdbe)(unsafe.Pointer(p)).FpParse
@@ -103399,7 +103406,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:80660:20: */
+func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:80676:20: */
return (*Vdbe)(unsafe.Pointer(p)).FnOp
}
@@ -103430,7 +103437,7 @@ func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:8066
// 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:80717:23: */
+func Xsqlite3VdbeTakeOpArray(tls *libc.TLS, p uintptr, pnOp uintptr, pnMaxArg uintptr) uintptr { /* sqlite3.c:80733:23: */
var aOp uintptr = (*Vdbe)(unsafe.Pointer(p)).FaOp
// Check that sqlite3VdbeUsesBtree() was not called on this VM
@@ -103446,7 +103453,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:80737:23: */
+func Xsqlite3VdbeAddOpList(tls *libc.TLS, p uintptr, nOp int32, aOp uintptr, iLineno int32) uintptr { /* sqlite3.c:80753:23: */
var i int32
var pOut uintptr
var pFirst uintptr
@@ -103490,23 +103497,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:80813:21: */
+func Xsqlite3VdbeChangeOpcode(tls *libc.TLS, p uintptr, addr int32, iNewOpcode U8) { /* sqlite3.c:80829:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fopcode = iNewOpcode
}
-func Xsqlite3VdbeChangeP1(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80816:21: */
+func Xsqlite3VdbeChangeP1(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80832:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp1 = val
}
-func Xsqlite3VdbeChangeP2(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80819:21: */
+func Xsqlite3VdbeChangeP2(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80835:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp2 = val
}
-func Xsqlite3VdbeChangeP3(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80822:21: */
+func Xsqlite3VdbeChangeP3(tls *libc.TLS, p uintptr, addr int32, val int32) { /* sqlite3.c:80838:21: */
(*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp3 = val
}
-func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* sqlite3.c:80825:21: */
+func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* sqlite3.c:80841: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
@@ -103515,7 +103522,7 @@ func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* sqlite3.c:80825
// 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:80834:21: */
+func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* sqlite3.c:80850:21: */
Xsqlite3VdbeChangeP2(tls, p, addr, (*Vdbe)(unsafe.Pointer(p)).FnOp)
}
@@ -103530,7 +103537,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:80851:21: */
+func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* sqlite3.c:80867:21: */
if addr == (*Vdbe)(unsafe.Pointer(p)).FnOp-1 {
(*Vdbe)(unsafe.Pointer(p)).FnOp--
@@ -103541,26 +103548,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:80871:13: */
+func freeEphemeralFunction(tls *libc.TLS, db uintptr, pDef uintptr) { /* sqlite3.c:80887: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:80880:29: */
+func freeP4Mem(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:80896: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:80884:29: */
+func freeP4FuncCtx(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:80900: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:80888:13: */
+func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* sqlite3.c:80904:13: */
switch p4type {
case -16:
@@ -103621,7 +103628,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:80937:13: */
+func vdbeFreeOpArray(tls *libc.TLS, db uintptr, aOp uintptr, nOp int32) { /* sqlite3.c:80953:13: */
if aOp != 0 {
var pOp uintptr
for pOp = aOp + uintptr(nOp-1)*24; pOp >= aOp; pOp -= 24 {
@@ -103636,18 +103643,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:80955:21: */
+func Xsqlite3VdbeLinkSubProgram(tls *libc.TLS, pVdbe uintptr, p uintptr) { /* sqlite3.c:80971: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:80963:20: */
+func Xsqlite3VdbeHasSubProgram(tls *libc.TLS, pVdbe uintptr) int32 { /* sqlite3.c:80979: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:80970:20: */
+func Xsqlite3VdbeChangeToNoop(tls *libc.TLS, p uintptr, addr int32) int32 { /* sqlite3.c:80986:20: */
var pOp uintptr
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 {
return 0
@@ -103663,7 +103670,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:80986:20: */
+func Xsqlite3VdbeDeletePriorOpcode(tls *libc.TLS, p uintptr, op U8) int32 { /* sqlite3.c:81002: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 {
@@ -103687,7 +103694,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:81046:29: */
+func vdbeChangeP4Full(tls *libc.TLS, p uintptr, pOp uintptr, zP4 uintptr, n int32) { /* sqlite3.c:81062: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)
@@ -103704,7 +103711,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:81065:21: */
+func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n int32) { /* sqlite3.c:81081:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = zP4
@@ -103751,7 +103758,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:81108:21: */
+func Xsqlite3VdbeAppendP4(tls *libc.TLS, p uintptr, pP4 uintptr, n int32) { /* sqlite3.c:81124:21: */
var pOp uintptr
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 {
@@ -103767,7 +103774,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:81128:21: */
+func Xsqlite3VdbeSetP4KeyInfo(tls *libc.TLS, pParse uintptr, pIdx uintptr) { /* sqlite3.c:81144:21: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var pKeyInfo uintptr
@@ -103788,7 +103795,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:81194:23: */ // Ignore the MSVC warning about no initializer
+func Xsqlite3VdbeGetOp(tls *libc.TLS, p uintptr, addr int32) uintptr { /* sqlite3.c:81210:23: */ // Ignore the MSVC warning about no initializer
if addr < 0 {
addr = (*Vdbe)(unsafe.Pointer(p)).FnOp - 1
@@ -103802,11 +103809,11 @@ func Xsqlite3VdbeGetOp(tls *libc.TLS, p uintptr, addr int32) uintptr { /* sqlite
return uintptr(0)
}
-var dummy VdbeOp /* sqlite3.c:81197:17: */
+var dummy VdbeOp /* sqlite3.c:81213: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:81398:21: */
+func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* sqlite3.c:81414:21: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -103969,7 +103976,7 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /*
return Xsqlite3StrAccumFinish(tls, bp+144)
}
-var encnames = [4]uintptr{ts + 6311, ts + 6313, ts + 6315, ts + 6320} /* sqlite3.c:81428:25 */
+var encnames = [4]uintptr{ts + 6311, ts + 6313, ts + 6315, ts + 6320} /* sqlite3.c:81444:25 */
// Declare to the Vdbe that the BTree object at db->aDb[i] is used.
//
@@ -103977,7 +103984,7 @@ var encnames = [4]uintptr{ts + 6311, ts + 6313, ts + 6315, ts + 6320} /* 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:81523:21: */
+func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* sqlite3.c:81539: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 {
@@ -104004,7 +104011,7 @@ func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* sqlite3.c:815
// 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:81554:21: */
+func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:81570:21: */
var i int32
var db uintptr
var aDb uintptr
@@ -104023,7 +104030,7 @@ func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* sqlite3.c:81554:21: */
}
// Unlock all of the btrees previously locked by a call to sqlite3VdbeEnter().
-func vdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81575:29: */
+func vdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81591:29: */
var i int32
var db uintptr
var aDb uintptr
@@ -104038,7 +104045,7 @@ func vdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81575:29: */
}
}
-func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81589:21: */
+func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81605:21: */
if (*Vdbe)(unsafe.Pointer(p)).FlockMask == YDbMask(0) {
return
} // The common case
@@ -104046,7 +104053,7 @@ func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* sqlite3.c:81589:21: */
}
// Initialize an array of N Mem element.
-func initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags U16) { /* sqlite3.c:81631:13: */
+func initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags U16) { /* sqlite3.c:81647:13: */
for libc.PostDecInt32(&N, 1) > 0 {
(*Mem)(unsafe.Pointer(p)).Fdb = db
(*Mem)(unsafe.Pointer(p)).Fflags = flags
@@ -104056,7 +104063,7 @@ 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:81646:13: */
+func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* sqlite3.c:81662:13: */
if p != 0 && N != 0 {
var pEnd uintptr = p + uintptr(N)*56
var db uintptr = (*Mem)(unsafe.Pointer(p)).Fdb
@@ -104100,7 +104107,7 @@ func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* sqlite3.c:81646: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:81708:21: */
+func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:81724:21: */
var pFrame uintptr = pArg
(*VdbeFrame)(unsafe.Pointer(pFrame)).FpParent = (*Vdbe)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer(pFrame)).Fv)).FpDelFrame
@@ -104112,7 +104119,7 @@ func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:81708: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:81723:20: */
+func Xsqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32, piPc uintptr, piAddr uintptr, paOp uintptr) int32 { /* sqlite3.c:81739: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
@@ -104211,7 +104218,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:81835:21: */
+func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:81851:21: */
var i int32
var aMem uintptr = p + 120
var apCsr uintptr = aMem + uintptr((*VdbeFrame)(unsafe.Pointer(p)).FnChildMem)*56
@@ -104240,7 +104247,7 @@ func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:81835: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:81867:20: */
+func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:81883:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -104329,7 +104336,7 @@ type ReusableSpace = struct {
FpSpace uintptr
FnFree Sqlite3_int64
FnNeeded Sqlite3_int64
-} /* sqlite3.c:82012:1 */
+} /* sqlite3.c:82028:1 */
// Try to allocate nByte bytes of 8-byte aligned bulk memory for pBuf
// from the ReusableSpace object. Return a pointer to the allocated
@@ -104344,7 +104351,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:82032:13: */
+func allocSpace(tls *libc.TLS, p uintptr, pBuf uintptr, nByte Sqlite3_int64) uintptr { /* sqlite3.c:82048:13: */
if pBuf == uintptr(0) {
nByte = (nByte + int64(7)) & int64(libc.CplInt32(7))
@@ -104361,7 +104368,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:82055:21: */
+func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* sqlite3.c:82071:21: */
// There should be at least one opcode.
@@ -104394,7 +104401,7 @@ func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* sqlite3.c:82055: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:82108:21: */
+func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* sqlite3.c:82124:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -104503,11 +104510,11 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* sqlite
var azColName = [12]uintptr{
ts + 6325, ts + 6330, ts + 6337, ts + 6340, ts + 6343, ts + 6346, ts + 6349, ts + 6352,
ts + 6360, ts + 6363, ts + 6370, ts + 6378,
-} /* sqlite3.c:82156:23 */
+} /* sqlite3.c:82172: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:82233:21: */
+func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* sqlite3.c:82249:21: */
if pCx == uintptr(0) {
return
}
@@ -104541,7 +104548,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:82263:13: */
+func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* sqlite3.c:82279:13: */
if (*Vdbe)(unsafe.Pointer(p)).FapCsr != 0 {
var i int32
for i = 0; i < (*Vdbe)(unsafe.Pointer(p)).FnCursor; i++ {
@@ -104557,7 +104564,7 @@ func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* sqlite3.c:82263: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:82281:20: */
+func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* sqlite3.c:82297:20: */
var v uintptr = (*VdbeFrame)(unsafe.Pointer(pFrame)).Fv
closeCursorsInFrame(tls, v)
(*Vdbe)(unsafe.Pointer(v)).FaOp = (*VdbeFrame)(unsafe.Pointer(pFrame)).FaOp
@@ -104581,7 +104588,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:82310:13: */
+func closeAllCursors(tls *libc.TLS, p uintptr) { /* sqlite3.c:82326: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 {
@@ -104612,7 +104619,7 @@ func closeAllCursors(tls *libc.TLS, p uintptr) { /* sqlite3.c:82310: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:82340:21: */
+func Xsqlite3VdbeSetNumCols(tls *libc.TLS, p uintptr, nResColumn int32) { /* sqlite3.c:82356:21: */
var n int32
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -104637,7 +104644,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:82365:20: */
+func Xsqlite3VdbeSetColName(tls *libc.TLS, p uintptr, idx int32, var1 int32, zName uintptr, xDel uintptr) int32 { /* sqlite3.c:82381:20: */
var rc int32
var pColName uintptr
@@ -104656,7 +104663,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:82393:12: */
+func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:82409:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -104884,7 +104891,7 @@ var aMJNeeded = [6]U8{
/* TRUNCATE */ U8(1),
/* MEMORY */ U8(0),
/* WAL */ U8(0),
-} /* sqlite3.c:82428:23 */
+} /* sqlite3.c:82444:23 */
// This routine checks that the sqlite3.nVdbeActive count variable
// matches the number of vdbe's in the list sqlite3.pVdbe that are
@@ -104902,7 +104909,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:82689:28: */
+func vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* sqlite3.c:82705:28: */
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
var rc int32 = SQLITE_OK
var i int32
@@ -104945,7 +104952,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:82735:20: */
+func Xsqlite3VdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* sqlite3.c:82751:20: */
if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FnStatement != 0 && (*Vdbe)(unsafe.Pointer(p)).FiStatement != 0 {
return vdbeCloseStatement(tls, p, eOp)
}
@@ -104960,7 +104967,7 @@ 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:82754:20: */
+func Xsqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) int32 { /* sqlite3.c:82770: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) {
@@ -104983,7 +104990,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:82781:20: */
+func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82797:20: */
var rc int32 // Used to store transient return codes
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -105187,7 +105194,7 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:82781: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:82991:21: */
+func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:83007:21: */
(*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_OK
}
@@ -105197,7 +105204,7 @@ func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:82991:
//
// 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:83003:20: */
+func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83019:20: */
var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb
var rc int32 = (*Vdbe)(unsafe.Pointer(p)).Frc
if (*Vdbe)(unsafe.Pointer(p)).FzErrMsg != 0 {
@@ -105226,7 +105233,7 @@ func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83
// 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:83053:20: */
+func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83069:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -105278,7 +105285,7 @@ func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83053: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:83150:20: */
+func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83166: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)
@@ -105302,7 +105309,7 @@ func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83150: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:83176:21: */
+func Xsqlite3VdbeDeleteAuxData(tls *libc.TLS, db uintptr, pp uintptr, iOp int32, mask int32) { /* sqlite3.c:83192:21: */
for *(*uintptr)(unsafe.Pointer(pp)) != 0 {
var pAux uintptr = *(*uintptr)(unsafe.Pointer(pp))
if iOp < 0 ||
@@ -105327,7 +105334,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:83204:21: */
+func Xsqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:83220:21: */
var pSub uintptr
var pNext uintptr
@@ -105348,7 +105355,7 @@ func Xsqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.
}
// Delete an entire VDBE.
-func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:83245:21: */
+func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:83261:21: */
var db uintptr
db = (*Vdbe)(unsafe.Pointer(p)).Fdb
@@ -105371,7 +105378,7 @@ func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:83245: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:83271:36: */
+func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83287:36: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -105384,7 +105391,7 @@ func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:832
return rc
}
if *(*int32)(unsafe.Pointer(bp)) != 0 {
- return Xsqlite3CorruptError(tls, 83281)
+ return Xsqlite3CorruptError(tls, 83297)
}
(*VdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(p)).FcacheStatus = U32(CACHE_STALE)
@@ -105396,7 +105403,7 @@ func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:832
// 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:83297:28: */
+func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83313:28: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -105414,7 +105421,7 @@ func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83297: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:83312:20: */
+func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83328:20: */
if Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(p + 48))) != 0 {
return handleMovedCursor(tls, p)
@@ -105433,7 +105440,7 @@ func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:83
//
// 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:83333:20: */
+func Xsqlite3VdbeCursorMoveto(tls *libc.TLS, pp uintptr, piCol uintptr) int32 { /* sqlite3.c:83349:20: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pp))
if (*VdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto != 0 {
@@ -105508,10 +105515,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:83470:17 */
+} /* sqlite3.c:83486:17 */
// Return the length of the data corresponding to the supplied serial-type.
-func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* sqlite3.c:83490:20: */
+func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* sqlite3.c:83506:20: */
if serial_type >= U32(128) {
return (serial_type - U32(12)) / U32(2)
} else {
@@ -105521,7 +105528,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:83499:19: */
+func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* sqlite3.c:83515:19: */
return sqlite3SmallTypeSizes[serial_type]
}
@@ -105570,7 +105577,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:83570:20: */
+func Xsqlite3VdbeSerialPut(tls *libc.TLS, buf uintptr, pMem uintptr, serial_type U32) U32 { /* sqlite3.c:83586:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -105621,7 +105628,7 @@ func Xsqlite3VdbeSerialPut(tls *libc.TLS, buf uintptr, pMem uintptr, serial_type
// The few cases that require local variables are broken out into a separate
// routine so that in most cases the overhead of moving the stack pointer
// is avoided.
-func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* sqlite3.c:83624:13: */
+func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* sqlite3.c:83640:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -105648,7 +105655,7 @@ func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* s
}
}
-func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* sqlite3.c:83659:21: */
+func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* sqlite3.c:83675:21: */
switch serial_type {
case U32(10):
{ // Internal use only: NULL with virtual table
@@ -105751,7 +105758,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin
return
}
-var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* sqlite3.c:83742:24 */
+var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* sqlite3.c:83758:24 */
// This routine is used to allocate sufficient space for an UnpackedRecord
// structure large enough to be used with sqlite3VdbeRecordUnpack() if
@@ -105765,7 +105772,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:83765:31: */
+func Xsqlite3VdbeAllocUnpackedRecord(tls *libc.TLS, pKeyInfo uintptr) uintptr { /* sqlite3.c:83781: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))
@@ -105783,7 +105790,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:83785:21: */
+func Xsqlite3VdbeRecordUnpack(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr, p uintptr) { /* sqlite3.c:83801:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -105844,7 +105851,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:83982:12: */
+func vdbeCompareMemString(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr, prcErr uintptr) int32 { /* sqlite3.c:83998:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -105887,7 +105894,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:84019:12: */
+func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3.c:84035:12: */
var i int32
for i = 0; i < n; i++ {
if *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0 {
@@ -105900,7 +105907,7 @@ func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3.c:84019: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:84032:36: */
+func Xsqlite3BlobCompare(tls *libc.TLS, pB1 uintptr, pB2 uintptr) int32 { /* sqlite3.c:84048:36: */
var c int32
var n1 int32 = (*Mem)(unsafe.Pointer(pB1)).Fn
var n2 int32 = (*Mem)(unsafe.Pointer(pB2)).Fn
@@ -105940,7 +105947,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:84065:20: */
+func Xsqlite3IntFloatCompare(tls *libc.TLS, i I64, r float64) int32 { /* sqlite3.c:84081:20: */
if uint64(unsafe.Sizeof(float64(0))) > uint64(8) {
var x float64 = float64(i)
@@ -105986,7 +105993,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:84098:20: */
+func Xsqlite3MemCompare(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr) int32 { /* sqlite3.c:84114:20: */
var f1 int32
var f2 int32
var combined_flags int32
@@ -106080,7 +106087,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:84197:12: */
+func vdbeRecordDecodeInt(tls *libc.TLS, serial_type U32, aKey uintptr) I64 { /* sqlite3.c:84213:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -106143,7 +106150,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:84252:20: */
+func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr, bSkip int32) int32 { /* sqlite3.c:84268:20: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -106185,7 +106192,7 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
i = 0
}
if d1 > uint32(nKey1) {
- (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84283))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84299))
return 0 // Corruption
}
@@ -106250,7 +106257,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, 84360))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84376))
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
@@ -106285,7 +106292,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, 84390))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84406))
return 0 // Corruption
} else if int32((*Mem)(unsafe.Pointer(pRhs)).Fflags)&MEM_Zero != 0 {
if !(isAllZero(tls, aKey1+uintptr(d1), nStr) != 0) {
@@ -106346,7 +106353,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:84449:20: */
+func Xsqlite3VdbeRecordCompare(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* sqlite3.c:84465:20: */
return Xsqlite3VdbeRecordCompareWithSkip(tls, nKey1, pKey1, pPKey2, 0)
}
@@ -106357,7 +106364,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:84466:12: */
+func vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* sqlite3.c:84482:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -106462,7 +106469,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:84560:12: */
+func vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* sqlite3.c:84576:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -106486,7 +106493,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, 84585))
+ (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84601))
return 0 // Corruption
}
nCmp = func() int32 {
@@ -106524,7 +106531,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:84624:30: */
+func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* sqlite3.c:84640: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()
@@ -106578,7 +106585,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:84675:20: */
+func Xsqlite3VdbeIdxRowid(tls *libc.TLS, db uintptr, pCur uintptr, rowid uintptr) int32 { /* sqlite3.c:84691:20: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -106663,7 +106670,7 @@ __6:
idx_rowid_corruption:
;
Xsqlite3VdbeMemRelease(tls, bp)
- return Xsqlite3CorruptError(tls, 84740)
+ return Xsqlite3CorruptError(tls, 84756)
}
// Compare the key of the index entry that cursor pC is pointing to against
@@ -106675,7 +106682,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:84754:20: */
+func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked uintptr, res uintptr) int32 { /* sqlite3.c:84770:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -106691,7 +106698,7 @@ func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked
// that btreeParseCellPtr() and sqlite3GetVarint32() are implemented
if nCellKey <= int64(0) || nCellKey > int64(0x7fffffff) {
*(*int32)(unsafe.Pointer(res)) = 0
- return Xsqlite3CorruptError(tls, 84773)
+ return Xsqlite3CorruptError(tls, 84789)
}
Xsqlite3VdbeMemInit(tls, bp, db, uint16(0))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur, U32(nCellKey), bp)
@@ -106705,7 +106712,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:84789:21: */
+func Xsqlite3VdbeSetChanges(tls *libc.TLS, db uintptr, nChange I64) { /* sqlite3.c:84805:21: */
(*Sqlite3)(unsafe.Pointer(db)).FnChange = nChange
*(*I64)(unsafe.Pointer(db + 128)) += nChange
@@ -106713,7 +106720,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:84799:21: */
+func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* sqlite3.c:84815:21: */
libc.SetBitFieldPtr16Uint32(v+208, Bft(1), 4, 0x10)
}
@@ -106733,7 +106740,7 @@ func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* sqlite3.c:84799: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:84821:21: */
+func Xsqlite3ExpirePreparedStatements(tls *libc.TLS, db uintptr, iCode int32) { /* sqlite3.c:84837: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)
@@ -106741,12 +106748,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:84831:24: */
+func Xsqlite3VdbeDb(tls *libc.TLS, v uintptr) uintptr { /* sqlite3.c:84847: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:84838:19: */
+func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* sqlite3.c:84854:19: */
return (*Vdbe)(unsafe.Pointer(v)).FprepFlags
}
@@ -106756,7 +106763,7 @@ func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* sqlite3.c:84838:
// 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:84850:30: */
+func Xsqlite3VdbeGetBoundValue(tls *libc.TLS, v uintptr, iVar int32, aff U8) uintptr { /* sqlite3.c:84866:30: */
if v != 0 {
var pMem uintptr = (*Vdbe)(unsafe.Pointer(v)).FaVar + uintptr(iVar-1)*56
@@ -106776,7 +106783,7 @@ 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:84872:21: */
+func Xsqlite3VdbeSetVarmask(tls *libc.TLS, v uintptr, iVar int32) { /* sqlite3.c:84888:21: */
if iVar >= 32 {
*(*U32)(unsafe.Pointer(v + 292)) |= 0x80000000
@@ -106792,7 +106799,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:84891:20: */
+func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:84907:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -106823,7 +106830,7 @@ func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:84891
// 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:84922:21: */
+func Xsqlite3VtabImportErrmsg(tls *libc.TLS, p uintptr, pVtab uintptr) { /* sqlite3.c:84938: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)
@@ -106839,7 +106846,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:84943:13: */
+func vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) { /* sqlite3.c:84959:13: */
if p != 0 {
var i int32
for i = 0; i < nField; i++ {
@@ -106856,7 +106863,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:84962:21: */
+func Xsqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32, zDb uintptr, pTab uintptr, iKey1 I64, iReg int32, iBlobWrite int32) { /* sqlite3.c:84978:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -106908,7 +106915,7 @@ func Xsqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32,
}
}
-var fakeSortOrder U8 = U8(0) /* sqlite3.c:84976:19 */
+var fakeSortOrder U8 = U8(0) /* sqlite3.c:84992:19 */
//************* End of vdbeaux.c ********************************************
//************* Begin file vdbeapi.c ****************************************
@@ -106934,7 +106941,7 @@ var fakeSortOrder U8 = U8(0) /* sqlite3.c:84976: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:85055:16: */
+func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85071:16: */
var p uintptr = pStmt
return libc.Bool32(p == uintptr(0) || Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0)) != 0)
}
@@ -106942,7 +106949,7 @@ func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85055: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:85066:12: */
+func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85082:12: */
if (*Vdbe)(unsafe.Pointer(p)).Fdb == uintptr(0) {
Xsqlite3_log(tls, SQLITE_MISUSE, ts+6552, 0)
return 1
@@ -106952,7 +106959,7 @@ func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85066:12: */
return int32(0)
}
-func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85074:12: */
+func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85090:12: */
if p == uintptr(0) {
Xsqlite3_log(tls, SQLITE_MISUSE, ts+6597, 0)
return 1
@@ -106964,7 +106971,7 @@ func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85074: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:85088:29: */
+func invokeProfileCallback(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:85104:29: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -106997,7 +107004,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:85126:16: */
+func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85142:16: */
var rc int32
if pStmt == uintptr(0) {
// IMPLEMENTATION-OF: R-57228-12904 Invoking sqlite3_finalize() on a NULL
@@ -107007,7 +107014,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85126:
var v uintptr = pStmt
var db uintptr = (*Vdbe)(unsafe.Pointer(v)).Fdb
if vdbeSafety(tls, v) != 0 {
- return Xsqlite3MisuseError(tls, 85135)
+ return Xsqlite3MisuseError(tls, 85151)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Vdbe)(unsafe.Pointer(v)).FstartTime > int64(0) {
@@ -107027,7 +107034,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85126:
//
// 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:85153:16: */
+func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85169:16: */
var rc int32
if pStmt == uintptr(0) {
rc = SQLITE_OK
@@ -107049,7 +107056,7 @@ func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85153:16:
}
// Set all the parameters in the compiled SQL statement to NULL.
-func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85174:16: */
+func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85190:16: */
var i int32
var rc int32 = SQLITE_OK
var p uintptr = pStmt
@@ -107071,7 +107078,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:85199:23: */
+func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85215:23: */
var p uintptr = pVal
if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Blob|MEM_Str) != 0 {
if func() int32 {
@@ -107094,27 +107101,27 @@ func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:851
return uintptr(0)
}
-func Xsqlite3_value_bytes(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85212:16: */
+func Xsqlite3_value_bytes(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85228:16: */
return Xsqlite3ValueBytes(tls, pVal, uint8(SQLITE_UTF8))
}
-func Xsqlite3_value_bytes16(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85215:16: */
+func Xsqlite3_value_bytes16(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85231:16: */
return Xsqlite3ValueBytes(tls, pVal, uint8(SQLITE_UTF16LE))
}
-func Xsqlite3_value_double(tls *libc.TLS, pVal uintptr) float64 { /* sqlite3.c:85218:19: */
+func Xsqlite3_value_double(tls *libc.TLS, pVal uintptr) float64 { /* sqlite3.c:85234:19: */
return Xsqlite3VdbeRealValue(tls, pVal)
}
-func Xsqlite3_value_int(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85221:16: */
+func Xsqlite3_value_int(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85237:16: */
return int32(Xsqlite3VdbeIntValue(tls, pVal))
}
-func Xsqlite3_value_int64(tls *libc.TLS, pVal uintptr) Sqlite_int64 { /* sqlite3.c:85224:25: */
+func Xsqlite3_value_int64(tls *libc.TLS, pVal uintptr) Sqlite_int64 { /* sqlite3.c:85240:25: */
return Xsqlite3VdbeIntValue(tls, pVal)
}
-func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* sqlite3.c:85227:25: */
+func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* sqlite3.c:85243:25: */
var pMem uintptr = pVal
return func() uint32 {
if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Subtype != 0 {
@@ -107124,7 +107131,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:85231:17: */
+func Xsqlite3_value_pointer(tls *libc.TLS, pVal uintptr, zPType uintptr) uintptr { /* sqlite3.c:85247: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) &&
@@ -107137,26 +107144,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:85244:32: */
+func Xsqlite3_value_text(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85260:32: */
return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF8))
}
-func Xsqlite3_value_text16(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85248:23: */
+func Xsqlite3_value_text16(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85264:23: */
return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16LE))
}
-func Xsqlite3_value_text16be(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85251:23: */
+func Xsqlite3_value_text16be(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85267:23: */
return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16BE))
}
-func Xsqlite3_value_text16le(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85254:23: */
+func Xsqlite3_value_text16le(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:85270: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:85262:16: */
+func Xsqlite3_value_type(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85278:16: */
return int32(aType[int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&MEM_AffMask])
}
@@ -107225,20 +107232,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:85263:19 */
+} /* sqlite3.c:85279:19 */
// Return true if a parameter to xUpdate represents an unchanged column
-func Xsqlite3_value_nochange(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85348:16: */
+func Xsqlite3_value_nochange(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85364: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:85353:16: */
+func Xsqlite3_value_frombind(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:85369: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:85359:26: */
+func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* sqlite3.c:85375:26: */
var pNew uintptr
if pOrig == uintptr(0) {
return uintptr(0)
@@ -107264,7 +107271,7 @@ func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* sqlite3.c:853
// Destroy an sqlite3_value object previously obtained from
// sqlite3_value_dup().
-func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:85382:17: */
+func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:85398:17: */
Xsqlite3ValueFree(tls, pOld)
}
@@ -107279,7 +107286,7 @@ func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:85382: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:85398:13: */
+func setResultStrOrError(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, enc U8, xDel uintptr) { /* sqlite3.c:85414:13: */
var rc int32 = Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, z, int64(n), enc, xDel)
if rc != 0 {
if rc == SQLITE_TOOBIG {
@@ -107293,7 +107300,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:85417:12: */
+func invokeValueDestructor(tls *libc.TLS, p uintptr, xDel uintptr, pCtx uintptr) int32 { /* sqlite3.c:85433:12: */
if xDel == uintptr(0) {
// noop
@@ -107306,12 +107313,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:85433:17: */
+func Xsqlite3_result_blob(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* sqlite3.c:85449: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:85443:17: */
+func Xsqlite3_result_blob64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr) { /* sqlite3.c:85459:17: */
if n > uint64(0x7fffffff) {
invokeValueDestructor(tls, z, xDel, pCtx)
@@ -107320,39 +107327,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:85457:17: */
+func Xsqlite3_result_double(tls *libc.TLS, pCtx uintptr, rVal float64) { /* sqlite3.c:85473: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:85461:17: */
+func Xsqlite3_result_error(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* sqlite3.c:85477: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:85467:17: */
+func Xsqlite3_result_error16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* sqlite3.c:85483: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:85473:17: */
+func Xsqlite3_result_int(tls *libc.TLS, pCtx uintptr, iVal int32) { /* sqlite3.c:85489:17: */
Xsqlite3VdbeMemSetInt64(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, I64(iVal))
}
-func Xsqlite3_result_int64(tls *libc.TLS, pCtx uintptr, iVal I64) { /* sqlite3.c:85477:17: */
+func Xsqlite3_result_int64(tls *libc.TLS, pCtx uintptr, iVal I64) { /* sqlite3.c:85493:17: */
Xsqlite3VdbeMemSetInt64(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, iVal)
}
-func Xsqlite3_result_null(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85481:17: */
+func Xsqlite3_result_null(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85497: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:85485:17: */
+func Xsqlite3_result_pointer(tls *libc.TLS, pCtx uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* sqlite3.c:85501:17: */
var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut
Xsqlite3VdbeMemRelease(tls, pOut)
@@ -107360,19 +107367,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:85497:17: */
+func Xsqlite3_result_subtype(tls *libc.TLS, pCtx uintptr, eSubtype uint32) { /* sqlite3.c:85513: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:85503:17: */
+func Xsqlite3_result_text(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* sqlite3.c:85519: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:85512:17: */
+func Xsqlite3_result_text64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr, enc uint8) { /* sqlite3.c:85528:17: */
if int32(enc) == SQLITE_UTF16 {
enc = uint8(SQLITE_UTF16LE)
@@ -107384,32 +107391,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:85529:17: */
+func Xsqlite3_result_text16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* sqlite3.c:85545: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:85538:17: */
+func Xsqlite3_result_text16be(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* sqlite3.c:85554: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:85547:17: */
+func Xsqlite3_result_text16le(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* sqlite3.c:85563:17: */
setResultStrOrError(tls, pCtx, z, n, uint8(SQLITE_UTF16LE), xDel)
}
-func Xsqlite3_result_value(tls *libc.TLS, pCtx uintptr, pValue uintptr) { /* sqlite3.c:85557:17: */
+func Xsqlite3_result_value(tls *libc.TLS, pCtx uintptr, pValue uintptr) { /* sqlite3.c:85573:17: */
Xsqlite3VdbeMemCopy(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, pValue)
}
-func Xsqlite3_result_zeroblob(tls *libc.TLS, pCtx uintptr, n int32) { /* sqlite3.c:85561:17: */
+func Xsqlite3_result_zeroblob(tls *libc.TLS, pCtx uintptr, n int32) { /* sqlite3.c:85577:17: */
Xsqlite3VdbeMemSetZeroBlob(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, n)
}
-func Xsqlite3_result_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* sqlite3.c:85565:16: */
+func Xsqlite3_result_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* sqlite3.c:85581:16: */
var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut
if n > U64(*(*int32)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fdb + 136))) {
@@ -107419,7 +107426,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:85578:17: */
+func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /* sqlite3.c:85594:17: */
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = func() int32 {
if errCode != 0 {
return errCode
@@ -107433,7 +107440,7 @@ 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:85590:17: */
+func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85606:17: */
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_TOOBIG
Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+6637, int64(-1),
@@ -107441,7 +107448,7 @@ func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85
}
// An SQLITE_NOMEM error.
-func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85598:17: */
+func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85614:17: */
Xsqlite3VdbeMemSetNull(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut)
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_NOMEM
@@ -107451,7 +107458,7 @@ func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:855
// 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:85610:21: */
+func Xsqlite3ResultIntReal(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85626: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))
@@ -107461,7 +107468,7 @@ func Xsqlite3ResultIntReal(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:85610: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:85624:12: */
+func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:85640:12: */
var rc int32 = SQLITE_OK
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -107488,7 +107495,7 @@ func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:85624: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:85654:12: */
+func sqlite3Step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85670:12: */
var db uintptr
var rc int32
@@ -107655,14 +107662,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:85788:16: */
+func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85804: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, 85795)
+ return Xsqlite3MisuseError(tls, 85811)
}
db = (*Vdbe)(unsafe.Pointer(v)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -107702,7 +107709,7 @@ func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:85788: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:85837:17: */
+func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:85853:17: */
return (*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpFunc)).FpUserData
}
@@ -107715,7 +107722,7 @@ func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:85837: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:85852:20: */
+func Xsqlite3_context_db_handle(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:85868:20: */
return (*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpOut)).Fdb
}
@@ -107732,14 +107739,14 @@ 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:85871:16: */
+func Xsqlite3_vtab_nochange(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:85887: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: */
+func valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32) int32 { /* sqlite3.c:85896:12: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -107797,13 +107804,13 @@ func valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32)
// Set the iterator value pVal to point to the first value in the set.
// Set (*ppOut) to point to this value before returning.
-func Xsqlite3_vtab_in_first(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* sqlite3.c:85928:16: */
+func Xsqlite3_vtab_in_first(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* sqlite3.c:85944: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: */
+func Xsqlite3_vtab_in_next(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* sqlite3.c:85952:16: */
return valueFromValueList(tls, pVal, ppOut, 1)
}
@@ -107812,7 +107819,7 @@ func Xsqlite3_vtab_in_next(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /
// statement, the exact same time is returned for each invocation regardless
// of the amount of time that elapses between invocations. In other words,
// the time returned is always the time of the first call.
-func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* sqlite3.c:85947:30: */
+func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* sqlite3.c:85963:30: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -107835,7 +107842,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:85967:29: */
+func createAggContext(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* sqlite3.c:85983:29: */
var pMem uintptr = (*Sqlite3_context)(unsafe.Pointer(p)).FpMem
if nByte <= 0 {
@@ -107855,7 +107862,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:85989:17: */
+func Xsqlite3_aggregate_context(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* sqlite3.c:86005:17: */
if int32((*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpMem)).Fflags)&MEM_Agg == 0 {
return createAggContext(tls, p, nByte)
@@ -107873,7 +107880,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:86010:17: */
+func Xsqlite3_get_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32) uintptr { /* sqlite3.c:86026:17: */
var pAuxData uintptr
if (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe == uintptr(0) {
@@ -107896,7 +107903,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:86038:17: */
+func Xsqlite3_set_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32, pAux uintptr, xDelete uintptr) { /* sqlite3.c:86054:17: */
var pAuxData uintptr
var pVdbe uintptr
pVdbe = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe
@@ -107976,13 +107983,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:86091:16: */
+func Xsqlite3_aggregate_count(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:86107: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:86100:16: */
+func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86116:16: */
var pVm uintptr = pStmt
if pVm != 0 {
return int32((*Vdbe)(unsafe.Pointer(pVm)).FnResColumn)
@@ -107992,7 +107999,7 @@ func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86
// 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:86109:16: */
+func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86125:16: */
var pVm uintptr = pStmt
if pVm == uintptr(0) || (*Vdbe)(unsafe.Pointer(pVm)).FpResultSet == uintptr(0) {
return 0
@@ -108001,19 +108008,19 @@ func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:8610
}
// Return a pointer to static memory containing an SQL NULL value.
-func columnNullValue(tls *libc.TLS) uintptr { /* sqlite3.c:86118:18: */
+func columnNullValue(tls *libc.TLS) uintptr { /* sqlite3.c:86134:18: */
return uintptr(unsafe.Pointer(&nullMem))
}
var nullMem = Mem{
/* .flags = */ Fflags: U16(MEM_Null),
-} /* sqlite3.c:86128:20 */
+} /* sqlite3.c:86144: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:86158:12: */
+func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:86174:12: */
var pVm uintptr
var pOut uintptr
@@ -108048,7 +108055,7 @@ func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:861
// sqlite3_column_bytes()
// sqlite3_column_bytes16()
// sqiite3_column_blob()
-func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* sqlite3.c:86193:13: */
+func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* sqlite3.c:86209: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
@@ -108065,7 +108072,7 @@ func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* sqlite3.c:86193: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:86213:23: */
+func Xsqlite3_column_blob(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:86229:23: */
var val uintptr
val = Xsqlite3_value_blob(tls, columnMem(tls, pStmt, i))
// Even though there is no encoding conversion, value_blob() might
@@ -108075,43 +108082,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:86223:16: */
+func Xsqlite3_column_bytes(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite3.c:86239: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:86228:16: */
+func Xsqlite3_column_bytes16(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite3.c:86244: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:86233:19: */
+func Xsqlite3_column_double(tls *libc.TLS, pStmt uintptr, i int32) float64 { /* sqlite3.c:86249: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:86238:16: */
+func Xsqlite3_column_int(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite3.c:86254: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:86243:25: */
+func Xsqlite3_column_int64(tls *libc.TLS, pStmt uintptr, i int32) Sqlite_int64 { /* sqlite3.c:86259: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:86248:32: */
+func Xsqlite3_column_text(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:86264: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:86253:26: */
+func Xsqlite3_column_value(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:86269: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))
@@ -108121,13 +108128,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:86263:23: */
+func Xsqlite3_column_text16(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:86279: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:86269:16: */
+func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite3.c:86285:16: */
var iType int32 = Xsqlite3_value_type(tls, columnMem(tls, pStmt, i))
columnMallocFailure(tls, pStmt)
return iType
@@ -108147,7 +108154,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:86291:19: */
+func columnName(tls *libc.TLS, pStmt uintptr, N int32, useUtf16 int32, useType int32) uintptr { /* sqlite3.c:86307:19: */
var ret uintptr
var p uintptr
var n int32
@@ -108179,11 +108186,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:86340:23: */
+func Xsqlite3_column_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86356:23: */
return columnName(tls, pStmt, N, 0, COLNAME_NAME)
}
-func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86344:23: */
+func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86360:23: */
return columnName(tls, pStmt, N, 1, COLNAME_NAME)
}
@@ -108192,44 +108199,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:86363:23: */
+func Xsqlite3_column_decltype(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86379:23: */
return columnName(tls, pStmt, N, 0, COLNAME_DECLTYPE)
}
-func Xsqlite3_column_decltype16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86367:23: */
+func Xsqlite3_column_decltype16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86383: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:86379:23: */
+func Xsqlite3_column_database_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86395:23: */
return columnName(tls, pStmt, N, 0, COLNAME_DATABASE)
}
-func Xsqlite3_column_database_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86383:23: */
+func Xsqlite3_column_database_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86399: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:86393:23: */
+func Xsqlite3_column_table_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86409:23: */
return columnName(tls, pStmt, N, 0, COLNAME_TABLE)
}
-func Xsqlite3_column_table_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86397:23: */
+func Xsqlite3_column_table_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86413: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:86407:23: */
+func Xsqlite3_column_origin_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86423:23: */
return columnName(tls, pStmt, N, 0, COLNAME_COLUMN)
}
-func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86411:23: */
+func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* sqlite3.c:86427:23: */
return columnName(tls, pStmt, N, 1, COLNAME_COLUMN)
}
@@ -108246,13 +108253,13 @@ 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:86433:12: */
+func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* sqlite3.c:86449:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pVar uintptr
if vdbeSafetyNotNull(tls, p) != 0 {
- return Xsqlite3MisuseError(tls, 86436)
+ return Xsqlite3MisuseError(tls, 86452)
}
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 {
@@ -108260,7 +108267,7 @@ func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* sqlite3.c:86433:12
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
Xsqlite3_log(tls, SQLITE_MISUSE,
ts+6670, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql))
- return Xsqlite3MisuseError(tls, 86444)
+ return Xsqlite3MisuseError(tls, 86460)
}
if i < 1 || i > int32((*Vdbe)(unsafe.Pointer(p)).FnVar) {
Xsqlite3Error(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, SQLITE_RANGE)
@@ -108294,7 +108301,7 @@ func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* sqlite3.c:86433: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:86476:12: */
+func bindText(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData I64, xDel uintptr, encoding U8) int32 { /* sqlite3.c:86492:12: */
var p uintptr = pStmt
var pVar uintptr
var rc int32
@@ -108320,16 +108327,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:86512:16: */
+func Xsqlite3_bind_blob(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* sqlite3.c:86528: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:86524:16: */
+func Xsqlite3_bind_blob64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData Sqlite3_uint64, xDel uintptr) int32 { /* sqlite3.c:86540: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:86534:16: */
+func Xsqlite3_bind_double(tls *libc.TLS, pStmt uintptr, i int32, rValue float64) int32 { /* sqlite3.c:86550:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -108340,11 +108347,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:86544:16: */
+func Xsqlite3_bind_int(tls *libc.TLS, p uintptr, i int32, iValue int32) int32 { /* sqlite3.c:86560: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:86547:16: */
+func Xsqlite3_bind_int64(tls *libc.TLS, pStmt uintptr, i int32, iValue Sqlite_int64) int32 { /* sqlite3.c:86563:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -108355,7 +108362,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:86557:16: */
+func Xsqlite3_bind_null(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* sqlite3.c:86573:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -108365,7 +108372,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:86566:16: */
+func Xsqlite3_bind_pointer(tls *libc.TLS, pStmt uintptr, i int32, pPtr uintptr, zPTtype uintptr, xDestructor uintptr) int32 { /* sqlite3.c:86582:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -108378,11 +108385,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:86584:16: */
+func Xsqlite3_bind_text(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* sqlite3.c:86600: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:86593:16: */
+func Xsqlite3_bind_text64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData Sqlite3_uint64, xDel uintptr, enc uint8) int32 { /* sqlite3.c:86609:16: */
if int32(enc) == SQLITE_UTF16 {
enc = uint8(SQLITE_UTF16LE)
@@ -108390,11 +108397,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:86606:16: */
+func Xsqlite3_bind_text16(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* sqlite3.c:86622: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:86616:16: */
+func Xsqlite3_bind_value(tls *libc.TLS, pStmt uintptr, i int32, pValue uintptr) int32 { /* sqlite3.c:86632:16: */
var rc int32
switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_INTEGER:
@@ -108443,7 +108450,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:86650:16: */
+func Xsqlite3_bind_zeroblob(tls *libc.TLS, pStmt uintptr, i int32, n int32) int32 { /* sqlite3.c:86666:16: */
var rc int32
var p uintptr = pStmt
rc = vdbeUnbind(tls, p, i)
@@ -108454,7 +108461,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:86664:16: */
+func Xsqlite3_bind_zeroblob64(tls *libc.TLS, pStmt uintptr, i int32, n Sqlite3_uint64) int32 { /* sqlite3.c:86680:16: */
var rc int32
var p uintptr = pStmt
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
@@ -108471,7 +108478,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:86683:16: */
+func Xsqlite3_bind_parameter_count(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86699:16: */
var p uintptr = pStmt
if p != 0 {
return int32((*Vdbe)(unsafe.Pointer(p)).FnVar)
@@ -108483,7 +108490,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:86694:23: */
+func Xsqlite3_bind_parameter_name(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* sqlite3.c:86710:23: */
var p uintptr = pStmt
if p == uintptr(0) {
return uintptr(0)
@@ -108494,19 +108501,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:86705:20: */
+func Xsqlite3VdbeParameterIndex(tls *libc.TLS, p uintptr, zName uintptr, nName int32) int32 { /* sqlite3.c:86721: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:86709:16: */
+func Xsqlite3_bind_parameter_index(tls *libc.TLS, pStmt uintptr, zName uintptr) int32 { /* sqlite3.c:86725: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:86716:20: */
+func Xsqlite3TransferBindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* sqlite3.c:86732:20: */
var pFrom uintptr = pFromStmt
var pTo uintptr = pToStmt
var i int32
@@ -108529,7 +108536,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:86743:16: */
+func Xsqlite3_transfer_bindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* sqlite3.c:86759:16: */
var pFrom uintptr = pFromStmt
var pTo uintptr = pToStmt
if int32((*Vdbe)(unsafe.Pointer(pFrom)).FnVar) != int32((*Vdbe)(unsafe.Pointer(pTo)).FnVar) {
@@ -108550,7 +108557,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:86767:20: */
+func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:86783:20: */
if pStmt != 0 {
return (*Vdbe)(unsafe.Pointer(pStmt)).Fdb
}
@@ -108559,7 +108566,7 @@ func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:867
// 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:86775:16: */
+func Xsqlite3_stmt_readonly(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86791:16: */
if pStmt != 0 {
return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0x80 >> 7)
}
@@ -108568,7 +108575,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:86783:16: */
+func Xsqlite3_stmt_isexplain(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86799:16: */
if pStmt != 0 {
return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0xc >> 2)
}
@@ -108576,7 +108583,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:86790:16: */
+func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86806: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)
}
@@ -108585,7 +108592,7 @@ func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* sqlite3.c:86790
// 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:86801:25: */
+func Xsqlite3_next_stmt(tls *libc.TLS, pDb uintptr, pStmt uintptr) uintptr { /* sqlite3.c:86817:25: */
var pNext uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(pDb)).Fmutex)
if pStmt == uintptr(0) {
@@ -108598,7 +108605,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:86822:16: */
+func Xsqlite3_stmt_status(tls *libc.TLS, pStmt uintptr, op int32, resetFlag int32) int32 { /* sqlite3.c:86838:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -108624,7 +108631,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:86852:23: */
+func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:86868:23: */
var p uintptr = pStmt
if p != 0 {
return (*Vdbe)(unsafe.Pointer(p)).FzSql
@@ -108639,7 +108646,7 @@ func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:86852: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:86866:17: */
+func Xsqlite3_expanded_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* sqlite3.c:86882:17: */
var z uintptr = uintptr(0)
var zSql uintptr = Xsqlite3_sql(tls, pStmt)
if zSql != 0 {
@@ -108654,7 +108661,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:86904:23: */
+func vdbeUnpackRecord(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr) uintptr { /* sqlite3.c:86920:23: */
var pRet uintptr // Return value
pRet = Xsqlite3VdbeAllocUnpackedRecord(tls, pKeyInfo)
@@ -108667,7 +108674,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:86923:16: */
+func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* sqlite3.c:86939:16: */
var p uintptr
var pMem uintptr
var rc int32
@@ -108681,7 +108688,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, 86931)
+ rc = Xsqlite3MisuseError(tls, 86947)
goto preupdate_old_out
__1:
;
@@ -108773,7 +108780,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:86987:16: */
+func Xsqlite3_preupdate_count(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:87003:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -108792,7 +108799,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:87005:16: */
+func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:87021:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -108804,7 +108811,7 @@ func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:87
// 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:87016:16: */
+func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:87032:16: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate
return func() int32 {
if p != 0 {
@@ -108816,7 +108823,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:87027:16: */
+func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* sqlite3.c:87043:16: */
var p uintptr
var rc int32
var pMem uintptr
@@ -108830,7 +108837,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, 87033)
+ rc = Xsqlite3MisuseError(tls, 87049)
goto preupdate_new_out
__1:
;
@@ -108971,7 +108978,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:87197:12: */
+func findNextHostParameter(tls *libc.TLS, zSql uintptr, pnToken uintptr) int32 { /* sqlite3.c:87213:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -109016,7 +109023,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:87240:21: */
+func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { /* sqlite3.c:87256:21: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -109239,7 +109246,7 @@ func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr {
// Allocate VdbeCursor number iCur. Return a pointer to it. Return NULL
// if we run out of memory.
-func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType U8) uintptr { /* sqlite3.c:87603:19: */
+func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType U8) uintptr { /* sqlite3.c:87619: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
@@ -109310,7 +109317,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType
// floating point value of rValue. Return true and set *piValue to the
// integer value if the string is in range to be an integer. Otherwise,
// return false.
-func alsoAnInt(tls *libc.TLS, pRec uintptr, rValue float64, piValue uintptr) int32 { /* sqlite3.c:87679:12: */
+func alsoAnInt(tls *libc.TLS, pRec uintptr, rValue float64, piValue uintptr) int32 { /* sqlite3.c:87695:12: */
var iValue I64 = I64(rValue)
if Xsqlite3RealSameAsInt(tls, rValue, iValue) != 0 {
*(*I64)(unsafe.Pointer(piValue)) = iValue
@@ -109332,7 +109339,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:87703:13: */
+func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* sqlite3.c:87719:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -109378,7 +109385,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:87743:13: */
+func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* sqlite3.c:87759:13: */
if int32(affinity) >= SQLITE_AFF_NUMERIC {
if int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Int == 0 { //OPTIMIZATION-IF-FALSE
@@ -109410,7 +109417,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:87782:16: */
+func Xsqlite3_value_numeric_type(tls *libc.TLS, pVal uintptr) int32 { /* sqlite3.c:87798:16: */
var eType int32 = Xsqlite3_value_type(tls, pVal)
if eType == SQLITE_TEXT {
var pMem uintptr = pVal
@@ -109422,7 +109429,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:87796:21: */
+func Xsqlite3ValueApplyAffinity(tls *libc.TLS, pVal uintptr, affinity U8, enc U8) { /* sqlite3.c:87812:21: */
applyAffinity(tls, pVal, int8(affinity), enc)
}
@@ -109430,7 +109437,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:87810:28: */
+func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* sqlite3.c:87826:28: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -109466,7 +109473,7 @@ func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* sqlite3.c:87810: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:87841:12: */
+func numericType(tls *libc.TLS, pMem uintptr) U16 { /* sqlite3.c:87857: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))
@@ -109480,13 +109487,13 @@ func numericType(tls *libc.TLS, pMem uintptr) U16 { /* sqlite3.c:87841: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:88016:28: */
+func out2PrereleaseWithClear(tls *libc.TLS, pOut uintptr) uintptr { /* sqlite3.c:88032: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:88021:12: */
+func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* sqlite3.c:88037:12: */
var pOut uintptr
pOut = (*Vdbe)(unsafe.Pointer(p)).FaMem + uintptr((*VdbeOp)(unsafe.Pointer(pOp)).Fp2)*56
@@ -109502,7 +109509,7 @@ func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* sqlite3.
// 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: */
+func filterHash(tls *libc.TLS, aMem uintptr, pOp uintptr) U64 { /* sqlite3.c:88055:12: */
var i int32
var mx int32
var h U64 = uint64(0)
@@ -109526,7 +109533,7 @@ func filterHash(tls *libc.TLS, aMem uintptr, pOp uintptr) U64 { /* sqlite3.c:880
}
// Return the symbolic name for the data type of a pMem
-func vdbeMemTypeName(tls *libc.TLS, pMem uintptr) uintptr { /* sqlite3.c:88061:19: */
+func vdbeMemTypeName(tls *libc.TLS, pMem uintptr) uintptr { /* sqlite3.c:88077:19: */
return azTypes[Xsqlite3_value_type(tls, pMem)-1]
}
@@ -109536,11 +109543,11 @@ var azTypes = [5]uintptr{
ts + 1102,
ts + 1080,
ts + 1525,
-} /* sqlite3.c:88062:21 */
+} /* sqlite3.c:88078: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:88076:20: */
+func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:88092:20: */
bp := tls.Alloc(976)
defer tls.Free(976)
@@ -111650,6 +111657,10 @@ __5:
// Move the cursor P1 to a null row. Any OP_Column operations
// that occur while the cursor is on the null row will always
// write a NULL.
+ //
+ // Or, if P1 is a Pseudo-Cursor (a cursor opened using OP_OpenPseudo)
+ // just reset the cache for that cursor. This causes the row of
+ // content held by the pseudo-cursor to be reparsed.
case OP_NullRow:
goto __114
@@ -114669,7 +114680,27 @@ __70: // The VDBE cursor
Xsqlite3VdbeMemSetNull(tls, pOut)
goto __353
__352:
+ if !((*VdbeCursor)(unsafe.Pointer(pC)).FdeferredMoveto != 0) {
+ goto __354
+ }
+ rc = Xsqlite3VdbeFinishMoveto(tls, pC)
+ if !(rc != 0) {
+ goto __355
+ }
+ goto abort_due_to_error
+__355:
+ ;
+__354:
+ ;
+ if !(Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC + 48))) != 0) {
+ goto __356
+ }
+ Xsqlite3VdbeMemSetNull(tls, pOut)
+ goto __357
+__356:
Xsqlite3VdbeMemSetInt64(tls, pOut, Xsqlite3BtreeOffset(tls, *(*uintptr)(unsafe.Pointer(pC + 48))))
+__357:
+ ;
__353:
;
goto __8
@@ -114705,10 +114736,10 @@ __71: // PseudoTable input register
// B-Tree seek.
rc = Xsqlite3VdbeCursorMoveto(tls, bp+232, bp+240)
if !(rc != 0) {
- goto __354
+ goto __358
}
goto abort_due_to_error
-__354:
+__358:
;
pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -114716,13 +114747,13 @@ __354:
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 __355
+ goto __359
} //OPTIMIZATION-IF-FALSE
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnullRow != 0) {
- goto __356
+ goto __360
}
if !(int32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FeCurType) == CURTYPE_PSEUDO) {
- goto __358
+ goto __362
}
// For the special case of as pseudo-cursor, the seekResult field
// identifies the register that holds the record
@@ -114731,14 +114762,14 @@ __354:
(*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 __359
-__358:
+ goto __363
+__362:
Xsqlite3VdbeMemSetNull(tls, pDest)
goto op_column_out
-__359:
+__363:
;
- goto __357
-__356:
+ goto __361
+__360:
pCrsr = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48))
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FpayloadSize = Xsqlite3BtreePayloadSize(tls, pCrsr)
@@ -114746,12 +114777,12 @@ __356:
// Maximum page size is 64KiB
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FpayloadSize > U32(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __360
+ goto __364
}
goto too_big
-__360:
+__364:
;
-__357:
+__361:
;
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FcacheStatus = (*Vdbe)(unsafe.Pointer(p)).FcacheCtr
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FiHdrOffset = U32(func() uint8 {
@@ -114766,7 +114797,7 @@ __357:
(*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 __361
+ goto __365
} //OPTIMIZATION-IF-FALSE
// pC->aRow does not have to hold the entire row, but it does at least
// need to cover the header of the record. If pC->aRow does not contain
@@ -114784,13 +114815,13 @@ __357:
// 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 __363
+ goto __367
}
goto op_column_corrupt
-__363:
+__367:
;
- goto __362
-__361:
+ goto __366
+__365:
// This is an optimization. By skipping over the first few tests
// (ex: pC->nHdrParsed<=p2) in the next section, we achieve a
// measurable performance gain.
@@ -114807,38 +114838,38 @@ __361:
// Conditional skipped
goto op_column_read_header
-__362:
+__366:
;
-__355:
+__359:
;
// Make sure at least the first p2+1 entries of the header have been
// parsed and valid information is in aOffset[] and pC->aType[].
if !(U32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnHdrParsed) <= *(*U32)(unsafe.Pointer(bp + 240))) {
- goto __364
+ goto __368
}
// If there is more header available for parsing in the record, try
// to extract additional fields up through the p2+1-th field
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FiHdrOffset < *(*U32)(unsafe.Pointer(aOffset))) {
- goto __366
+ goto __370
}
// Make sure zData points to enough of the record to cover the header.
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) {
- goto __368
+ goto __372
}
libc.Xmemset(tls, bp+248, 0, uint64(unsafe.Sizeof(Mem{})))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48)), *(*U32)(unsafe.Pointer(aOffset)), bp+248)
if !(rc != SQLITE_OK) {
- goto __370
+ goto __374
}
goto abort_due_to_error
-__370:
+__374:
;
zData = (*Mem)(unsafe.Pointer(bp + 248 /* &sMem */)).Fz
- goto __369
-__368:
+ goto __373
+__372:
zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow
-__369:
+__373:
;
// Fill in pC->aType[i] and aOffset[i] values through the p2-th field.
@@ -114848,27 +114879,27 @@ op_column_read_header:
zHdr = zData + uintptr((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FiHdrOffset)
zEndHdr = zData + uintptr(*(*U32)(unsafe.Pointer(aOffset)))
-__371:
+__375:
if !(libc.AssignPtrUint32(*(*uintptr)(unsafe.Pointer(bp + 232))+112+uintptr(i2)*4, libc.AssignPtrUint32(bp+304, U32(*(*U8)(unsafe.Pointer(zHdr))))) < U32(0x80)) {
- goto __374
+ goto __378
}
zHdr++
offset64 = offset64 + U64(Xsqlite3VdbeOneByteSerialTypeLen(tls, uint8(*(*U32)(unsafe.Pointer(bp + 304)))))
- goto __375
-__374:
+ goto __379
+__378:
zHdr += uintptr(Xsqlite3GetVarint32(tls, zHdr, bp+304))
*(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 112 + uintptr(i2)*4)) = *(*U32)(unsafe.Pointer(bp + 304 /* t */))
offset64 = offset64 + U64(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 304))))
-__375:
+__379:
;
*(*U32)(unsafe.Pointer(aOffset + uintptr(libc.PreIncInt32(&i2, 1))*4)) = U32(offset64 & uint64(0xffffffff))
- goto __372
-__372:
+ goto __376
+__376:
if U32(i2) <= *(*U32)(unsafe.Pointer(bp + 240)) && zHdr < zEndHdr {
- goto __371
+ goto __375
}
- goto __373
-__373:
+ goto __377
+__377:
;
// The record is corrupt if any of the following are true:
@@ -114877,63 +114908,63 @@ __373:
// (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 __376
+ goto __380
}
if !(*(*U32)(unsafe.Pointer(aOffset)) == U32(0)) {
- goto __377
+ goto __381
}
i2 = 0
zHdr = zEndHdr
- goto __378
-__377:
+ goto __382
+__381:
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) {
- goto __379
+ goto __383
}
Xsqlite3VdbeMemRelease(tls, bp+248)
-__379:
+__383:
;
goto op_column_corrupt
-__378:
+__382:
;
-__376:
+__380:
;
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FnHdrParsed = U16(i2)
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FiHdrOffset = U32((int64(zHdr) - int64(zData)) / 1)
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) {
- goto __380
+ goto __384
}
Xsqlite3VdbeMemRelease(tls, bp+248)
-__380:
+__384:
;
- goto __367
-__366:
+ goto __371
+__370:
*(*U32)(unsafe.Pointer(bp + 304 /* t */)) = U32(0)
-__367:
+__371:
;
// If after trying to extract new entries from the header, nHdrParsed is
// still not up to p2, that means that the record has fewer than p2
// columns. So the result will be either the default value or a NULL.
if !(U32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnHdrParsed) <= *(*U32)(unsafe.Pointer(bp + 240))) {
- goto __381
+ goto __385
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -11) {
- goto __382
+ goto __386
}
Xsqlite3VdbeMemShallowCopy(tls, pDest, *(*uintptr)(unsafe.Pointer(pOp + 16)), MEM_Static)
- goto __383
-__382:
+ goto __387
+__386:
Xsqlite3VdbeMemSetNull(tls, pDest)
-__383:
+__387:
;
goto op_column_out
-__381:
+__385:
;
- goto __365
-__364:
+ goto __369
+__368:
*(*U32)(unsafe.Pointer(bp + 304 /* t */)) = *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 112 + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4))
-__365:
+__369:
;
// Extract the content for the p2+1-th column. Control can only
@@ -114941,55 +114972,55 @@ __365:
// all valid.
if !(int32((*Mem)(unsafe.Pointer(pDest)).Fflags)&(MEM_Agg|MEM_Dyn) != 0) {
- goto __384
+ goto __388
}
Xsqlite3VdbeMemSetNull(tls, pDest)
-__384:
+__388:
;
if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FszRow >= *(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240))+U32(1))*4))) {
- goto __385
+ goto __389
}
// This is the common case where the desired content fits on the original
// page - where the content is not on an overflow page
zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow + uintptr(*(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240)))*4)))
if !(*(*U32)(unsafe.Pointer(bp + 304)) < U32(12)) {
- goto __387
+ goto __391
}
Xsqlite3VdbeSerialGet(tls, zData, *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest)
- goto __388
-__387:
+ goto __392
+__391:
(*Mem)(unsafe.Pointer(pDest)).Fn = libc.AssignInt32(&len, int32((*(*U32)(unsafe.Pointer(bp + 304))-U32(12))/U32(2)))
(*Mem)(unsafe.Pointer(pDest)).Fenc = encoding
if !((*Mem)(unsafe.Pointer(pDest)).FszMalloc < len+2) {
- goto __389
+ goto __393
}
(*Mem)(unsafe.Pointer(pDest)).Fflags = U16(MEM_Null)
if !(Xsqlite3VdbeMemGrow(tls, pDest, len+2, 0) != 0) {
- goto __391
+ goto __395
}
goto no_mem
-__391:
+__395:
;
- goto __390
-__389:
+ goto __394
+__393:
(*Mem)(unsafe.Pointer(pDest)).Fz = (*Mem)(unsafe.Pointer(pDest)).FzMalloc
-__390:
+__394:
;
libc.Xmemcpy(tls, (*Mem)(unsafe.Pointer(pDest)).Fz, zData, uint64(len))
*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pDest)).Fz + uintptr(len))) = int8(0)
*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pDest)).Fz + uintptr(len+1))) = int8(0)
(*Mem)(unsafe.Pointer(pDest)).Fflags = aFlag1[*(*U32)(unsafe.Pointer(bp + 304))&U32(1)]
-__388:
+__392:
;
- goto __386
-__385:
+ goto __390
+__389:
(*Mem)(unsafe.Pointer(pDest)).Fenc = encoding
// This branch happens only when content is on overflow pages
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_LENGTHARG|OPFLAG_TYPEOFARG) != 0 &&
(*(*U32)(unsafe.Pointer(bp + 304)) >= U32(12) && *(*U32)(unsafe.Pointer(bp + 304))&U32(1) == U32(0) || int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_TYPEOFARG != 0) ||
libc.AssignInt32(&len, int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 304))))) == 0) {
- goto __392
+ goto __396
}
// Content is irrelevant for
// 1. the typeof() function,
@@ -115004,20 +115035,20 @@ __385:
// 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 __393
-__392:
+ goto __397
+__396:
rc = Xsqlite3VdbeMemFromBtree(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48)), *(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4)), uint32(len), pDest)
if !(rc != SQLITE_OK) {
- goto __394
+ goto __398
}
goto abort_due_to_error
-__394:
+__398:
;
Xsqlite3VdbeSerialGet(tls, (*Mem)(unsafe.Pointer(pDest)).Fz, *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest)
*(*U16)(unsafe.Pointer(pDest + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Ephem))
-__393:
+__397:
;
-__386:
+__390:
;
op_column_out:
@@ -115027,15 +115058,15 @@ op_column_out:
op_column_corrupt:
if !((*Op)(unsafe.Pointer(aOp)).Fp3 > 0) {
- goto __395
+ goto __399
}
pOp = aOp + uintptr((*Op)(unsafe.Pointer(aOp)).Fp3-1)*24
goto __8
- goto __396
-__395:
- rc = Xsqlite3CorruptError(tls, 90286)
+ goto __400
+__399:
+ rc = Xsqlite3CorruptError(tls, 90310)
goto abort_due_to_error
-__396:
+__400:
;
// Opcode: TypeCheck P1 P2 P3 P4 *
@@ -115070,81 +115101,81 @@ __72:
aCol = (*Table)(unsafe.Pointer(pTab)).FaCol
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
i3 = 0
-__397:
+__401:
if !(i3 < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) {
- goto __399
+ goto __403
}
if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_GENERATED != 0) {
- goto __400
+ goto __404
}
if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_VIRTUAL != 0) {
- goto __401
+ goto __405
}
- goto __398
-__401:
+ goto __402
+__405:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __402
+ goto __406
}
pIn1 += 56
- goto __398
-__402:
+ goto __402
+__406:
;
-__400:
+__404:
;
applyAffinity(tls, pIn1, (*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).Faffinity, encoding)
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) {
- goto __403
+ goto __407
}
switch int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i3)*24 + 8)) & 0xf0 >> 4) {
case COLTYPE_BLOB:
- goto __405
+ goto __409
case COLTYPE_INTEGER:
- goto __406
+ goto __410
case COLTYPE_INT:
- goto __407
+ goto __411
case COLTYPE_TEXT:
- goto __408
+ goto __412
case COLTYPE_REAL:
- goto __409
+ goto __413
default:
- goto __410
+ goto __414
}
- goto __404
-__405:
+ goto __408
+__409:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) {
- goto __411
+ goto __415
}
goto vdbe_type_error
-__411:
+__415:
;
- goto __404
+ goto __408
-__406:
-__407:
+__410:
+__411:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) {
- goto __412
+ goto __416
}
goto vdbe_type_error
-__412:
+__416:
;
- goto __404
+ goto __408
-__408:
+__412:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Str == 0) {
- goto __413
+ goto __417
}
goto vdbe_type_error
-__413:
+__417:
;
- goto __404
+ goto __408
-__409:
+__413:
;
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) {
- goto __414
+ goto __418
}
// When applying REAL affinity, if the result is still an MEM_Int
// that will fit in 6 bytes, then change the type to MEM_IntReal
@@ -115152,45 +115183,45 @@ __409:
// the type really wants to be REAL.
if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) {
- goto __416
+ goto __420
}
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
- goto __417
-__416:
+ goto __421
+__420:
*(*float64)(unsafe.Pointer(pIn1)) = float64(*(*I64)(unsafe.Pointer(pIn1)))
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_Real)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
-__417:
+__421:
;
- goto __415
-__414:
+ goto __419
+__418:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&(MEM_Real|MEM_IntReal) == 0) {
- goto __418
+ goto __422
}
goto vdbe_type_error
-__418:
+__422:
;
-__415:
+__419:
;
- goto __404
+ goto __408
-__410:
+__414:
// COLTYPE_ANY. Accept anything.
- goto __404
+ goto __408
-__404:
+__408:
;
-__403:
+__407:
;
pIn1 += 56
- goto __398
-__398:
+ goto __402
+__402:
i3++
- goto __397
- goto __399
-__399:
+ goto __401
+ goto __403
+__403:
;
goto __8
@@ -115215,14 +115246,14 @@ __73: // The affinity to be applied
zAffinity = *(*uintptr)(unsafe.Pointer(pOp + 16))
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
-__419:
+__423:
if !(1 != 0) {
- goto __420
+ goto __424
}
applyAffinity(tls, pIn1, *(*int8)(unsafe.Pointer(zAffinity)), encoding)
if !(int32(*(*int8)(unsafe.Pointer(zAffinity))) == SQLITE_AFF_REAL && int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) {
- goto __421
+ goto __425
}
// When applying REAL affinity, if the result is still an MEM_Int
// that will fit in 6 bytes, then change the type to MEM_IntReal
@@ -115230,30 +115261,30 @@ __419:
// the type really wants to be REAL.
if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) {
- goto __422
+ goto __426
}
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
- goto __423
-__422:
+ goto __427
+__426:
*(*float64)(unsafe.Pointer(pIn1)) = float64(*(*I64)(unsafe.Pointer(pIn1)))
*(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_Real)
*(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
-__423:
+__427:
;
-__421:
+__425:
;
zAffinity++
if !(int32(*(*int8)(unsafe.Pointer(zAffinity))) == 0) {
- goto __424
+ goto __428
}
- goto __420
-__424:
+ goto __424
+__428:
;
pIn1 += 56
- goto __419
-__420:
+ goto __423
+__424:
;
goto __8
@@ -115317,31 +115348,31 @@ __74: // Where to write next byte of the payload
// Apply the requested affinity to all inputs
if !(zAffinity1 != 0) {
- goto __425
+ goto __429
}
pRec = pData0
-__426:
+__430:
applyAffinity(tls, pRec, *(*int8)(unsafe.Pointer(zAffinity1)), encoding)
if !(int32(*(*int8)(unsafe.Pointer(zAffinity1))) == SQLITE_AFF_REAL && int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Int != 0) {
- goto __429
+ goto __433
}
*(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_IntReal)
*(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int))
-__429:
+__433:
;
zAffinity1++
pRec += 56
- goto __427
-__427:
+ goto __431
+__431:
if *(*int8)(unsafe.Pointer(zAffinity1)) != 0 {
- goto __426
+ goto __430
}
- goto __428
-__428:
+ goto __432
+__432:
;
-__425:
+__429:
;
// Loop through the elements that will make up the record to figure
@@ -115370,13 +115401,13 @@ __425:
// nData Number of bytes of data space needed for the record
// nZero Zero bytes at the end of the record
pRec = pLast
-__430:
+__434:
;
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Null != 0) {
- goto __433
+ goto __437
}
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Zero != 0) {
- goto __435
+ goto __439
}
// Values with MEM_Null and MEM_Zero are created by xColumn virtual
// table methods that never invoke sqlite3_result_xxxxx() while
@@ -115386,77 +115417,77 @@ __430:
// a true sqlite3_value_nochange().
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(10)
- goto __436
-__435:
+ goto __440
+__439:
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(0)
-__436:
+__440:
;
nHdr++
- goto __434
-__433:
+ goto __438
+__437:
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&(MEM_Int|MEM_IntReal) != 0) {
- goto __437
+ goto __441
}
// Figure out whether to use 1, 2, 4, 6 or 8 bytes.
i4 = *(*I64)(unsafe.Pointer(pRec))
if !(i4 < int64(0)) {
- goto __439
+ goto __443
}
uu = U64(^i4)
- goto __440
-__439:
+ goto __444
+__443:
uu = U64(i4)
-__440:
+__444:
;
nHdr++
if !(uu <= uint64(127)) {
- goto __441
+ goto __445
}
if !(i4&int64(1) == i4 && file_format >= 4) {
- goto __443
+ goto __447
}
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(8) + U32(uu)
- goto __444
-__443:
+ goto __448
+__447:
nData++
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(1)
-__444:
+__448:
;
- goto __442
-__441:
+ goto __446
+__445:
if !(uu <= uint64(32767)) {
- goto __445
+ goto __449
}
nData = nData + uint64(2)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(2)
- goto __446
-__445:
+ goto __450
+__449:
if !(uu <= uint64(8388607)) {
- goto __447
+ goto __451
}
nData = nData + uint64(3)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(3)
- goto __448
-__447:
+ goto __452
+__451:
if !(uu <= uint64(2147483647)) {
- goto __449
+ goto __453
}
nData = nData + uint64(4)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(4)
- goto __450
-__449:
+ goto __454
+__453:
if !(uu <= uint64(140737488355327)) {
- goto __451
+ goto __455
}
nData = nData + uint64(6)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(5)
- goto __452
-__451:
+ goto __456
+__455:
nData = nData + uint64(8)
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_IntReal != 0) {
- goto __453
+ goto __457
}
// If the value is IntReal and is going to take up 8 bytes to store
// as an integer, then we might as well make it an 8-byte floating
@@ -115465,79 +115496,79 @@ __451:
*(*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 __454
-__453:
+ goto __458
+__457:
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(6)
+__458:
+ ;
+__456:
+ ;
__454:
;
__452:
;
__450:
;
-__448:
- ;
__446:
;
-__442:
- ;
- goto __438
-__437:
+ goto __442
+__441:
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Real != 0) {
- goto __455
+ goto __459
}
nHdr++
nData = nData + uint64(8)
(*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(7)
- goto __456
-__455:
+ goto __460
+__459:
;
len1 = U32((*Mem)(unsafe.Pointer(pRec)).Fn)
serial_type = len1*U32(2) + U32(12) + U32(libc.Bool32(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Str != 0))
if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Zero != 0) {
- goto __457
+ goto __461
}
serial_type = serial_type + U32(*(*int32)(unsafe.Pointer(pRec))*2)
if !(nData != 0) {
- goto __458
+ goto __462
}
if !(Xsqlite3VdbeMemExpandBlob(tls, pRec) != 0) {
- goto __460
+ goto __464
}
goto no_mem
-__460:
+__464:
;
len1 = len1 + U32(*(*int32)(unsafe.Pointer(pRec)))
- goto __459
-__458:
+ goto __463
+__462:
nZero = nZero + I64(*(*int32)(unsafe.Pointer(pRec)))
-__459:
+__463:
;
-__457:
+__461:
;
nData = nData + U64(len1)
nHdr = nHdr + Xsqlite3VarintLen(tls, uint64(serial_type))
(*Mem)(unsafe.Pointer(pRec)).FuTemp = serial_type
-__456:
+__460:
;
-__438:
+__442:
;
-__434:
+__438:
;
if !(pRec == pData0) {
- goto __461
+ goto __465
}
- goto __432
-__461:
+ goto __436
+__465:
;
pRec -= 56
- goto __431
-__431:
+ goto __435
+__435:
if 1 != 0 {
- goto __430
+ goto __434
}
- goto __432
-__432:
+ goto __436
+__436:
;
// EVIDENCE-OF: R-22564-11647 The header begins with a single varint
@@ -115546,22 +115577,22 @@ __432:
// itself.
if !(nHdr <= 126) {
- goto __462
+ goto __466
}
// The common case
nHdr = nHdr + 1
- goto __463
-__462:
+ goto __467
+__466:
// Rare case of a really large header
nVarint = Xsqlite3VarintLen(tls, uint64(nHdr))
nHdr = nHdr + nVarint
if !(nVarint < Xsqlite3VarintLen(tls, uint64(nHdr))) {
- goto __464
+ goto __468
}
nHdr++
-__464:
+__468:
;
-__463:
+__467:
;
nByte1 = I64(U64(nHdr) + nData)
@@ -115570,37 +115601,37 @@ __463:
// 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 __465
+ goto __469
}
// The output register is already large enough to hold the record.
// No error checks or buffer enlargement is required
(*Mem)(unsafe.Pointer(pOut)).Fz = (*Mem)(unsafe.Pointer(pOut)).FzMalloc
- goto __466
-__465:
+ goto __470
+__469:
// Need to make sure that the output is not too big and then enlarge
// the output register to hold the full result
if !(nByte1+nZero > I64(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __467
+ goto __471
}
goto too_big
-__467:
+__471:
;
if !(Xsqlite3VdbeMemClearAndResize(tls, pOut, int32(nByte1)) != 0) {
- goto __468
+ goto __472
}
goto no_mem
-__468:
+__472:
;
-__466:
+__470:
;
(*Mem)(unsafe.Pointer(pOut)).Fn = int32(nByte1)
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Blob)
if !(nZero != 0) {
- goto __469
+ goto __473
}
*(*int32)(unsafe.Pointer(pOut)) = int32(nZero)
*(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Zero)
-__469:
+__473:
;
zHdr1 = (*Mem)(unsafe.Pointer(pOut)).Fz
@@ -115615,7 +115646,7 @@ __469:
}())
pRec = pData0
-__470:
+__474:
serial_type = (*Mem)(unsafe.Pointer(pRec)).FuTemp
// EVIDENCE-OF: R-06529-47362 Following the size varint are one or more
// additional varints, one per column.
@@ -115628,13 +115659,13 @@ __470:
// 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 __471
-__471:
+ goto __475
+__475:
if libc.PreIncUintptr(&pRec, 56) <= pLast {
- goto __470
+ goto __474
}
- goto __472
-__472:
+ goto __476
+__476:
;
goto __8
@@ -115653,20 +115684,20 @@ __75:
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 __473
+ goto __477
}
*(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) = Xsqlite3BtreeRowCountEst(tls, pCrsr1)
- goto __474
-__473:
+ goto __478
+__477:
*(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) = int64(0) // Not needed. Only used to silence a warning.
rc = Xsqlite3BtreeCount(tls, db, pCrsr1, bp+312)
if !(rc != 0) {
- goto __475
+ goto __479
}
goto abort_due_to_error
-__475:
+__479:
;
-__474:
+__478:
;
pOut = out2Prerelease(tls, p, pOp)
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 312 /* nEntry */))
@@ -115687,17 +115718,17 @@ __76:
// transaction, then there cannot be any savepoints.
if !(p12 == SAVEPOINT_BEGIN) {
- goto __476
+ goto __480
}
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) {
- goto __478
+ goto __482
}
// A new savepoint cannot be created if there are active write
// statements (i.e. open read/write incremental blob handles).
Xsqlite3VdbeError(tls, p, ts+6837, 0)
rc = SQLITE_BUSY
- goto __479
-__478:
+ goto __483
+__482:
nName = Xsqlite3Strlen30(tls, zName)
// This call is Ok even if this savepoint is actually a transaction
@@ -115708,16 +115739,16 @@ __478:
rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN,
(*Sqlite3)(unsafe.Pointer(db)).FnStatement+(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint)
if !(rc != SQLITE_OK) {
- goto __480
+ goto __484
}
goto abort_due_to_error
-__480:
+__484:
;
// Create a new savepoint structure.
pNew = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(Savepoint{}))+uint64(nName)+uint64(1))
if !(pNew != 0) {
- goto __481
+ goto __485
}
(*Savepoint)(unsafe.Pointer(pNew)).FzName = pNew + 1*32
libc.Xmemcpy(tls, (*Savepoint)(unsafe.Pointer(pNew)).FzName, zName, uint64(nName+1))
@@ -115725,14 +115756,14 @@ __480:
// If there is no open transaction, then mark this as a special
// "transaction savepoint".
if !((*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0) {
- goto __482
+ goto __486
}
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
(*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(1)
- goto __483
-__482:
+ goto __487
+__486:
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint++
-__483:
+__487:
;
// Link the new savepoint into the database handle's list.
@@ -115740,163 +115771,163 @@ __483:
(*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
-__481:
+__485:
;
-__479:
+__483:
;
- goto __477
-__476:
+ goto __481
+__480:
;
iSavepoint = 0
// Find the named savepoint. If there is no such savepoint, then an
// an error is returned to the user.
pSavepoint = (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint
-__484:
+__488:
if !(pSavepoint != 0 && Xsqlite3StrICmp(tls, (*Savepoint)(unsafe.Pointer(pSavepoint)).FzName, zName) != 0) {
- goto __486
+ goto __490
}
iSavepoint++
- goto __485
-__485:
+ goto __489
+__489:
pSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext
- goto __484
- goto __486
-__486:
+ goto __488
+ goto __490
+__490:
;
if !!(pSavepoint != 0) {
- goto __487
+ goto __491
}
Xsqlite3VdbeError(tls, p, ts+6888, libc.VaList(bp+88, zName))
rc = SQLITE_ERROR
- goto __488
-__487:
+ goto __492
+__491:
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0 && p12 == SAVEPOINT_RELEASE) {
- goto __489
+ goto __493
}
// It is not possible to release (commit) a savepoint if there are
// active write statements.
Xsqlite3VdbeError(tls, p,
ts+6910, 0)
rc = SQLITE_BUSY
- goto __490
-__489:
+ goto __494
+__493:
// Determine whether or not this is a transaction savepoint. If so,
// and this is a RELEASE command, then the current transaction
// is committed.
isTransaction = libc.Bool32((*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint != 0)
if !(isTransaction != 0 && p12 == SAVEPOINT_RELEASE) {
- goto __491
+ goto __495
}
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) {
- goto __493
+ goto __497
}
goto vdbe_return
-__493:
+__497:
;
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1)
if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) {
- goto __494
+ goto __498
}
(*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
(*Vdbe)(unsafe.Pointer(p)).Frc = libc.AssignInt32(&rc, SQLITE_BUSY)
goto vdbe_return
-__494:
+__498:
;
rc = (*Vdbe)(unsafe.Pointer(p)).Frc
if !(rc != 0) {
- goto __495
+ goto __499
}
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0)
- goto __496
-__495:
+ goto __500
+__499:
(*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(0)
-__496:
+__500:
;
- goto __492
-__491:
+ goto __496
+__495:
iSavepoint = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint - iSavepoint - 1
if !(p12 == SAVEPOINT_ROLLBACK) {
- goto __497
+ goto __501
}
isSchemaChange = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != U32(0))
ii = 0
-__499:
+__503:
if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __501
+ goto __505
}
rc = Xsqlite3BtreeTripAllCursors(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii)*32)).FpBt,
SQLITE_ABORT|int32(2)<<8,
libc.Bool32(isSchemaChange == 0))
if !(rc != SQLITE_OK) {
- goto __502
+ goto __506
}
goto abort_due_to_error
-__502:
+__506:
;
- goto __500
-__500:
+ goto __504
+__504:
ii++
- goto __499
- goto __501
-__501:
+ goto __503
+ goto __505
+__505:
;
- goto __498
-__497:
+ goto __502
+__501:
;
isSchemaChange = 0
-__498:
+__502:
;
ii = 0
-__503:
+__507:
if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
- goto __505
+ goto __509
}
rc = Xsqlite3BtreeSavepoint(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii)*32)).FpBt, p12, iSavepoint)
if !(rc != SQLITE_OK) {
- goto __506
+ goto __510
}
goto abort_due_to_error
-__506:
+__510:
;
- goto __504
-__504:
+ goto __508
+__508:
ii++
- goto __503
- goto __505
-__505:
+ goto __507
+ goto __509
+__509:
;
if !(isSchemaChange != 0) {
- goto __507
+ goto __511
}
Xsqlite3ExpirePreparedStatements(tls, db, 0)
Xsqlite3ResetAllSchemasOfConnection(tls, db)
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange)
-__507:
+__511:
;
-__492:
+__496:
;
if !(rc != 0) {
- goto __508
+ goto __512
}
goto abort_due_to_error
-__508:
+__512:
;
// Regardless of whether this is a RELEASE or ROLLBACK, destroy all
// savepoints nested inside of the savepoint being operated on.
-__509:
+__513:
if !((*Sqlite3)(unsafe.Pointer(db)).FpSavepoint != pSavepoint) {
- goto __510
+ goto __514
}
pTmp = (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint
(*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pTmp)).FpNext
Xsqlite3DbFree(tls, db, pTmp)
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint--
- goto __509
-__510:
+ goto __513
+__514:
;
// If it is a RELEASE, then destroy the savepoint being operated on
@@ -115904,48 +115935,48 @@ __510:
// constraint violations present in the database to the value stored
// when the savepoint was created.
if !(p12 == SAVEPOINT_RELEASE) {
- goto __511
+ goto __515
}
(*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext
Xsqlite3DbFree(tls, db, pSavepoint)
if !!(isTransaction != 0) {
- goto __513
+ goto __517
}
(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint--
-__513:
+__517:
;
- goto __512
-__511:
+ goto __516
+__515:
;
(*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredCons
(*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredImmCons
-__512:
+__516:
;
if !(!(isTransaction != 0) || p12 == SAVEPOINT_ROLLBACK) {
- goto __514
+ goto __518
}
rc = Xsqlite3VtabSavepoint(tls, db, p12, iSavepoint)
if !(rc != SQLITE_OK) {
- goto __515
+ goto __519
}
goto abort_due_to_error
-__515:
+__519:
;
-__514:
+__518:
;
-__490:
+__494:
;
-__488:
+__492:
;
-__477:
+__481:
;
if !(rc != 0) {
- goto __516
+ goto __520
}
goto abort_due_to_error
-__516:
+__520:
;
goto __8
@@ -115966,18 +115997,18 @@ __77:
// At least this one VM is active
if !(desiredAutoCommit != int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)) {
- goto __517
+ goto __521
}
if !(iRollback != 0) {
- goto __519
+ goto __523
}
Xsqlite3RollbackAll(tls, db, SQLITE_ABORT|int32(2)<<8)
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1)
- goto __520
-__519:
+ goto __524
+__523:
if !(desiredAutoCommit != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) {
- goto __521
+ goto __525
}
// If this instruction implements a COMMIT and other VMs are writing
// return an error indicating that the other VMs must complete first.
@@ -115985,43 +116016,43 @@ __519:
ts+6964, 0)
rc = SQLITE_BUSY
goto abort_due_to_error
- goto __522
-__521:
+ goto __526
+__525:
if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) {
- goto __523
+ goto __527
}
goto vdbe_return
- goto __524
-__523:
+ goto __528
+__527:
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(desiredAutoCommit)
-__524:
+__528:
;
-__522:
+__526:
;
-__520:
+__524:
;
if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) {
- goto __525
+ goto __529
}
(*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1 - desiredAutoCommit)
(*Vdbe)(unsafe.Pointer(p)).Frc = libc.AssignInt32(&rc, SQLITE_BUSY)
goto vdbe_return
-__525:
+__529:
;
Xsqlite3CloseSavepoints(tls, db)
if !((*Vdbe)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
- goto __526
+ goto __530
}
rc = SQLITE_DONE
- goto __527
-__526:
+ goto __531
+__530:
rc = SQLITE_ERROR
-__527:
+__531:
;
goto vdbe_return
- goto __518
-__517:
+ goto __522
+__521:
Xsqlite3VdbeError(tls, p,
func() uintptr {
if !(desiredAutoCommit != 0) {
@@ -116037,7 +116068,7 @@ __517:
rc = SQLITE_ERROR
goto abort_due_to_error
-__518:
+__522:
;
/*NOTREACHED*/
@@ -116079,66 +116110,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 __528
+ goto __532
}
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_QueryOnly) != 0) {
- goto __529
+ goto __533
}
// Writes prohibited by the "PRAGMA query_only=TRUE" statement
rc = SQLITE_READONLY
- goto __530
-__529:
+ goto __534
+__533:
// Writes prohibited due to a prior SQLITE_CORRUPT in the current
// transaction
rc = SQLITE_CORRUPT
-__530:
+__534:
;
goto abort_due_to_error
-__528:
+__532:
;
pBt = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt
if !(pBt != 0) {
- goto __531
+ goto __535
}
rc = Xsqlite3BtreeBeginTrans(tls, pBt, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+320)
if !(rc != SQLITE_OK) {
- goto __532
+ goto __536
}
if !(rc&0xff == SQLITE_BUSY) {
- goto __533
+ goto __537
}
(*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Vdbe)(unsafe.Pointer(p)).Frc = rc
goto vdbe_return
-__533:
+__537:
;
goto abort_due_to_error
-__532:
+__536:
;
if !(Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x40>>6)) != 0 &&
(*Op)(unsafe.Pointer(pOp)).Fp2 != 0 &&
(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0 || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1)) {
- goto __534
+ goto __538
}
if !((*Vdbe)(unsafe.Pointer(p)).FiStatement == 0) {
- goto __535
+ goto __539
}
(*Sqlite3)(unsafe.Pointer(db)).FnStatement++
(*Vdbe)(unsafe.Pointer(p)).FiStatement = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint + (*Sqlite3)(unsafe.Pointer(db)).FnStatement
-__535:
+__539:
;
rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN, (*Vdbe)(unsafe.Pointer(p)).FiStatement-1)
if !(rc == SQLITE_OK) {
- goto __536
+ goto __540
}
rc = Xsqlite3BtreeBeginStmt(tls, pBt, (*Vdbe)(unsafe.Pointer(p)).FiStatement)
-__536:
+__540:
;
// Store the current value of the database handles deferred constraint
@@ -116146,16 +116177,16 @@ __536:
// 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
-__534:
+__538:
;
-__531:
+__535:
;
if !(rc == SQLITE_OK &&
(*Op)(unsafe.Pointer(pOp)).Fp5 != 0 &&
(*(*int32)(unsafe.Pointer(bp + 320)) != (*Op)(unsafe.Pointer(pOp)).Fp3 ||
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpSchema)).FiGeneration != *(*int32)(unsafe.Pointer(pOp + 16)))) {
- goto __537
+ goto __541
}
// IMPLEMENTATION-OF: R-03189-51135 As each SQL statement runs, the schema
// version is checked to ensure that the schema has not changed since the
@@ -116175,20 +116206,20 @@ __531:
// 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 __538
+ goto __542
}
Xsqlite3ResetOneSchema(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
-__538:
+__542:
;
libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3)
rc = SQLITE_SCHEMA
-__537:
+__541:
;
if !(rc != 0) {
- goto __539
+ goto __543
}
goto abort_due_to_error
-__539:
+__543:
;
goto __8
@@ -116235,37 +116266,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 __540
+ goto __544
}
// When the schema cookie changes, record the new cookie internally
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Fschema_cookie = (*Op)(unsafe.Pointer(pOp)).Fp3 - int32((*Op)(unsafe.Pointer(pOp)).Fp5)
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange)
Xsqlite3FkClearTriggerCache(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
- goto __541
-__540:
+ goto __545
+__544:
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == BTREE_FILE_FORMAT) {
- goto __542
+ goto __546
}
// Record changes in the file format
(*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format = U8((*Op)(unsafe.Pointer(pOp)).Fp3)
-__542:
+__546:
;
-__541:
+__545:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 == 1) {
- goto __543
+ goto __547
}
// Invalidate all prepared statements whenever the TEMP database
// schema is changed. Ticket #1644
Xsqlite3ExpirePreparedStatements(tls, db, 0)
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3)
-__543:
+__547:
;
if !(rc != 0) {
- goto __544
+ goto __548
}
goto abort_due_to_error
-__544:
+__548:
;
goto __8
@@ -116355,13 +116386,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 __545
+ goto __549
}
// Guaranteed by the code generator
Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pCur + 48)))
goto open_cursor_set_hints
-__545:
+__549:
;
// If the cursor is not currently open or is open on a different
// index, then fall through into OP_OpenRead to force a reopen
@@ -116370,11 +116401,11 @@ __83:
;
if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0) == 1) {
- goto __546
+ goto __550
}
rc = SQLITE_ABORT | int32(2)<<8
goto abort_due_to_error
-__546:
+__550:
;
nField1 = 0
@@ -116386,24 +116417,24 @@ __546:
pX = (*Db)(unsafe.Pointer(pDb1)).FpBt
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_OpenWrite) {
- goto __547
+ goto __551
}
wrFlag = BTREE_WRCSR | int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_FORDELETE
if !(int32((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format) < int32((*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat)) {
- goto __549
+ goto __553
}
(*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat = (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format
-__549:
+__553:
;
- goto __548
-__547:
+ goto __552
+__551:
wrFlag = 0
-__548:
+__552:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_P2ISREG != 0) {
- goto __550
+ goto __554
}
pIn2 = aMem + uintptr(p23)*56
@@ -116415,32 +116446,32 @@ __548:
// If there were a failure, the prepared statement would have halted
// before reaching this instruction.
-__550:
+__554:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -9) {
- goto __551
+ goto __555
}
pKeyInfo1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
nField1 = int32((*KeyInfo)(unsafe.Pointer(pKeyInfo1)).FnAllField)
- goto __552
-__551:
+ goto __556
+__555:
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -3) {
- goto __553
+ goto __557
}
nField1 = *(*int32)(unsafe.Pointer(pOp + 16))
-__553:
+__557:
;
-__552:
+__556:
;
// Table with INTEGER PRIMARY KEY and nothing else
pCur = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, nField1, uint8(CURTYPE_BTREE))
if !(pCur == uintptr(0)) {
- goto __554
+ goto __558
}
goto no_mem
-__554:
+__558:
;
(*VdbeCursor)(unsafe.Pointer(pCur)).FiDb = I8(iDb1)
(*VdbeCursor)(unsafe.Pointer(pCur)).FnullRow = U8(1)
@@ -116460,10 +116491,10 @@ open_cursor_set_hints:
Xsqlite3BtreeCursorHintFlags(tls, *(*uintptr)(unsafe.Pointer(pCur + 48)),
uint32(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_BULKCSR|OPFLAG_SEEKEQ)))
if !(rc != 0) {
- goto __555
+ goto __559
}
goto abort_due_to_error
-__555:
+__559:
;
goto __8
@@ -116482,10 +116513,10 @@ __84: // The new cursor
pCx = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, int32((*VdbeCursor)(unsafe.Pointer(pOrig)).FnField), uint8(CURTYPE_BTREE))
if !(pCx == uintptr(0)) {
- goto __556
+ goto __560
}
goto no_mem
-__556:
+__560:
;
(*VdbeCursor)(unsafe.Pointer(pCx)).FnullRow = U8(1)
libc.SetBitFieldPtr8Uint32(pCx+8, Bool(1), 0, 0x1)
@@ -116540,7 +116571,7 @@ __86:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) {
- goto __557
+ goto __561
}
// Make register reg[P3] into a value that can be used as the data
// form sqlite3BtreeInsert() where the length of the data is zero.
@@ -116548,11 +116579,11 @@ __86:
(*Mem)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fn = 0
(*Mem)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fz = ts + 1524 /* "" */
-__557:
+__561:
;
pCx1 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
if !(pCx1 != 0 && !(int32(*(*uint8)(unsafe.Pointer(pCx1 + 8))&0x8>>3) != 0) && (*Op)(unsafe.Pointer(pOp)).Fp2 <= int32((*VdbeCursor)(unsafe.Pointer(pCx1)).FnField)) {
- goto __558
+ goto __562
}
// If the ephermeral table is already open and has no duplicates from
// OP_OpenDup, then erase all existing content so that the table is
@@ -116561,71 +116592,71 @@ __557:
(*VdbeCursor)(unsafe.Pointer(pCx1)).FseqCount = int64(0)
(*VdbeCursor)(unsafe.Pointer(pCx1)).FcacheStatus = U32(CACHE_STALE)
rc = Xsqlite3BtreeClearTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), int32((*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot), uintptr(0))
- goto __559
-__558:
+ goto __563
+__562:
pCx1 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_BTREE))
if !(pCx1 == uintptr(0)) {
- goto __560
+ goto __564
}
goto no_mem
-__560:
+__564:
;
libc.SetBitFieldPtr8Uint32(pCx1+8, Bool(1), 0, 0x1)
rc = Xsqlite3BtreeOpen(tls, (*Sqlite3)(unsafe.Pointer(db)).FpVfs, uintptr(0), db, pCx1+16,
BTREE_OMIT_JOURNAL|BTREE_SINGLE|int32((*Op)(unsafe.Pointer(pOp)).Fp5),
vfsFlags)
if !(rc == SQLITE_OK) {
- goto __561
+ goto __565
}
rc = Xsqlite3BtreeBeginTrans(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), 1, uintptr(0))
if !(rc == SQLITE_OK) {
- goto __562
+ goto __566
}
// If a transient index is required, create it by calling
// sqlite3BtreeCreateTable() with the BTREE_BLOBKEY flag before
// opening it. If a transient table is required, just use the
// automatically created table with root-page 1 (an BLOB_INTKEY table).
if !(libc.AssignPtrUintptr(pCx1+56, libc.AssignUintptr(&pKeyInfo2, *(*uintptr)(unsafe.Pointer(pOp + 16)))) != uintptr(0)) {
- goto __563
+ goto __567
}
rc = Xsqlite3BtreeCreateTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), pCx1+68,
BTREE_BLOBKEY|int32((*Op)(unsafe.Pointer(pOp)).Fp5))
if !(rc == SQLITE_OK) {
- goto __565
+ goto __569
}
rc = Xsqlite3BtreeCursor(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), (*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot, BTREE_WRCSR,
pKeyInfo2, *(*uintptr)(unsafe.Pointer(pCx1 + 48)))
-__565:
+__569:
;
(*VdbeCursor)(unsafe.Pointer(pCx1)).FisTable = U8(0)
- goto __564
-__563:
+ goto __568
+__567:
(*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot = Pgno(SCHEMA_ROOT)
rc = Xsqlite3BtreeCursor(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), uint32(SCHEMA_ROOT), BTREE_WRCSR,
uintptr(0), *(*uintptr)(unsafe.Pointer(pCx1 + 48)))
(*VdbeCursor)(unsafe.Pointer(pCx1)).FisTable = U8(1)
-__564:
+__568:
;
-__562:
+__566:
;
libc.SetBitFieldPtr8Uint32(pCx1+8, Bool(libc.Bool32(int32((*Op)(unsafe.Pointer(pOp)).Fp5) != BTREE_UNORDERED)), 2, 0x4)
if !(rc != 0) {
- goto __566
+ goto __570
}
Xsqlite3BtreeClose(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)))
-__566:
+__570:
;
-__561:
+__565:
;
-__559:
+__563:
;
if !(rc != 0) {
- goto __567
+ goto __571
}
goto abort_due_to_error
-__567:
+__571:
;
(*VdbeCursor)(unsafe.Pointer(pCx1)).FnullRow = U8(1)
goto __8
@@ -116644,19 +116675,19 @@ __87:
pCx2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_SORTER))
if !(pCx2 == uintptr(0)) {
- goto __568
+ goto __572
}
goto no_mem
-__568:
+__572:
;
(*VdbeCursor)(unsafe.Pointer(pCx2)).FpKeyInfo = *(*uintptr)(unsafe.Pointer(pOp + 16))
rc = Xsqlite3VdbeSorterInit(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp3, pCx2)
if !(rc != 0) {
- goto __569
+ goto __573
}
goto abort_due_to_error
-__569:
+__573:
;
goto __8
@@ -116671,10 +116702,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 __570
+ goto __574
}
goto jump_to_p2
-__570:
+__574:
;
goto __8
@@ -116698,10 +116729,10 @@ __89:
pCx3 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp3, uint8(CURTYPE_PSEUDO))
if !(pCx3 == uintptr(0)) {
- goto __571
+ goto __575
}
goto no_mem
-__571:
+__575:
;
(*VdbeCursor)(unsafe.Pointer(pCx3)).FnullRow = U8(1)
(*VdbeCursor)(unsafe.Pointer(pCx3)).FseekResult = (*Op)(unsafe.Pointer(pOp)).Fp2
@@ -116826,7 +116857,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 __572
+ goto __576
}
// The OPFLAG_SEEKEQ/BTREE_SEEK_EQ flag is only set on index cursors
@@ -116836,10 +116867,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 __574
+ goto __578
}
applyNumericAffinity(tls, pIn3, 0)
-__574:
+__578:
;
iKey = Xsqlite3VdbeIntValue(tls, pIn3) // Get the integer key value
newType = (*Mem)(unsafe.Pointer(pIn3)).Fflags // Record the type after applying numeric affinity
@@ -116848,29 +116879,29 @@ __574:
// 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 __575
+ goto __579
}
if !(int32(newType)&MEM_Real == 0) {
- goto __576
+ goto __580
}
if !(int32(newType)&MEM_Null != 0 || oc >= OP_SeekGE) {
- goto __577
+ goto __581
}
goto jump_to_p2
- goto __578
-__577:
+ goto __582
+__581:
rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+328)
if !(rc != SQLITE_OK) {
- goto __579
+ goto __583
}
goto abort_due_to_error
-__579:
+__583:
;
goto seek_not_found
-__578:
+__582:
;
-__576:
+__580:
;
c2 = Xsqlite3IntFloatCompare(tls, iKey, *(*float64)(unsafe.Pointer(pIn3)))
@@ -116881,53 +116912,53 @@ __576:
// (x > 4.9) -> (x >= 5)
// (x <= 4.9) -> (x < 5)
if !(c2 > 0) {
- goto __580
+ goto __584
}
if !(oc&0x0001 == OP_SeekGT&0x0001) {
- goto __582
+ goto __586
}
oc--
-__582:
+__586:
;
- goto __581
-__580:
+ goto __585
+__584:
if !(c2 < 0) {
- goto __583
+ goto __587
}
if !(oc&0x0001 == OP_SeekLT&0x0001) {
- goto __584
+ goto __588
}
oc++
-__584:
+__588:
;
-__583:
+__587:
;
-__581:
+__585:
;
-__575:
+__579:
;
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 __585
+ goto __589
}
goto abort_due_to_error
-__585:
+__589:
;
- goto __573
-__572:
+ goto __577
+__576:
// For a cursor with the OPFLAG_SEEKEQ/BTREE_SEEK_EQ hint, only the
// OP_SeekGE and OP_SeekLE opcodes are allowed, and these must be
// immediately followed by an OP_IdxGT or OP_IdxLT opcode, respectively,
// with the same key.
if !(Xsqlite3BtreeCursorHasHint(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), uint32(BTREE_SEEK_EQ)) != 0) {
- goto __586
+ goto __590
}
eqOnly = 1
-__586:
+__590:
;
nField2 = *(*int32)(unsafe.Pointer(pOp + 16))
@@ -116952,97 +116983,97 @@ __586:
(*UnpackedRecord)(unsafe.Pointer(bp + 336 /* &r */)).FeqSeen = U8(0)
rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+336, bp+328)
if !(rc != SQLITE_OK) {
- goto __587
+ goto __591
}
goto abort_due_to_error
-__587:
+__591:
;
if !(eqOnly != 0 && int32((*UnpackedRecord)(unsafe.Pointer(bp+336)).FeqSeen) == 0) {
- goto __588
+ goto __592
}
goto seek_not_found
-__588:
+__592:
;
-__573:
+__577:
;
if !(oc >= OP_SeekGE) {
- goto __589
+ goto __593
}
if !(*(*int32)(unsafe.Pointer(bp + 328)) < 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekGT) {
- goto __591
+ goto __595
}
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), 0)
if !(rc != SQLITE_OK) {
- goto __593
+ goto __597
}
if !(rc == SQLITE_DONE) {
- goto __594
+ goto __598
}
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1
- goto __595
-__594:
+ goto __599
+__598:
goto abort_due_to_error
-__595:
+__599:
;
-__593:
+__597:
;
- goto __592
-__591:
+ goto __596
+__595:
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
-__592:
+__596:
;
- goto __590
-__589:
+ goto __594
+__593:
;
if !(*(*int32)(unsafe.Pointer(bp + 328)) > 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekLT) {
- goto __596
+ goto __600
}
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0
rc = Xsqlite3BtreePrevious(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), 0)
if !(rc != SQLITE_OK) {
- goto __598
+ goto __602
}
if !(rc == SQLITE_DONE) {
- goto __599
+ goto __603
}
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1
- goto __600
-__599:
+ goto __604
+__603:
goto abort_due_to_error
-__600:
+__604:
;
-__598:
+__602:
;
- goto __597
-__596:
+ goto __601
+__600:
// res might be negative because the table is empty. Check to
// see if this is the case.
*(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)))
-__597:
+__601:
;
-__590:
+__594:
;
seek_not_found:
;
if !(*(*int32)(unsafe.Pointer(bp + 328)) != 0) {
- goto __601
+ goto __605
}
goto jump_to_p2
- goto __602
-__601:
+ goto __606
+__605:
if !(eqOnly != 0) {
- goto __603
+ goto __607
}
pOp += 24 // Skip the OP_IdxLt or OP_IdxGT that follows
-__603:
+__607:
;
-__602:
+__606:
;
goto __8
@@ -117100,10 +117131,10 @@ __95:
pC4 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp+1*24)).Fp1)*8))
if !!(Xsqlite3BtreeCursorIsValidNN(tls, *(*uintptr)(unsafe.Pointer(pC4 + 48))) != 0) {
- goto __604
+ goto __608
}
goto __8
-__604:
+__608:
;
nStep = (*Op)(unsafe.Pointer(pOp)).Fp1
@@ -117112,60 +117143,60 @@ __604:
(*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.
-__605:
+__609:
if !(1 != 0) {
- goto __606
+ goto __610
}
rc = Xsqlite3VdbeIdxKeyCompare(tls, db, pC4, bp+360, bp+384)
if !(rc != 0) {
- goto __607
+ goto __611
}
goto abort_due_to_error
-__607:
+__611:
;
if !(*(*int32)(unsafe.Pointer(bp + 384)) > 0) {
- goto __608
+ goto __612
}
seekscan_search_fail:
;
pOp += 24
goto jump_to_p2
-__608:
+__612:
;
if !(*(*int32)(unsafe.Pointer(bp + 384)) == 0) {
- goto __609
+ goto __613
}
goto jump_to_p2
- goto __606
-__609:
+ goto __610
+__613:
;
if !(nStep <= 0) {
- goto __610
+ goto __614
}
- goto __606
-__610:
+ goto __610
+__614:
;
nStep--
rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC4 + 48)), 0)
if !(rc != 0) {
- goto __611
+ goto __615
}
if !(rc == SQLITE_DONE) {
- goto __612
+ goto __616
}
rc = SQLITE_OK
goto seekscan_search_fail
- goto __613
-__612:
+ goto __617
+__616:
goto abort_due_to_error
-__613:
+__617:
;
-__611:
+__615:
;
- goto __605
-__606:
+ goto __609
+__610:
;
goto __8
@@ -117188,18 +117219,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 __614
+ goto __618
}
(*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __615
-__614:
+ goto __619
+__618:
if !(int32((*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit) > (*Op)(unsafe.Pointer(pOp)).Fp3) {
- goto __616
+ goto __620
}
(*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp3)
-__616:
+__620:
;
-__615:
+__619:
;
goto __8
@@ -117211,10 +117242,10 @@ __97: // jump
;
if !!(int32(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))) != 0) {
- goto __617
+ goto __621
}
goto jump_to_p2_and_check_for_interrupt
-__617:
+__621:
;
goto __8
@@ -117309,10 +117340,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 __618
+ goto __622
}
goto __8
-__618:
+__622:
;
__99: // jump, in3
@@ -117325,15 +117356,15 @@ __101:
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(*(*int32)(unsafe.Pointer(pOp + 16)) > 0) {
- goto __619
+ goto __623
}
(*UnpackedRecord)(unsafe.Pointer(bp + 392 /* &r2 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo
(*UnpackedRecord)(unsafe.Pointer(bp + 392 /* &r2 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 16)))
(*UnpackedRecord)(unsafe.Pointer(bp + 392 /* &r2 */)).FaMem = pIn3
pIdxKey = bp + 392 /* &r2 */
pFree = uintptr(0)
- goto __620
-__619:
+ goto __624
+__623:
;
rc = func() int32 {
if int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&MEM_Zero != 0 {
@@ -117343,62 +117374,62 @@ __619:
}()
if !(rc != 0) {
- goto __621
+ goto __625
}
goto no_mem
-__621:
+__625:
;
pFree = libc.AssignUintptr(&pIdxKey, Xsqlite3VdbeAllocUnpackedRecord(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo))
if !(pIdxKey == uintptr(0)) {
- goto __622
+ goto __626
}
goto no_mem
-__622:
+__626:
;
Xsqlite3VdbeRecordUnpack(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo, (*Mem)(unsafe.Pointer(pIn3)).Fn, (*Mem)(unsafe.Pointer(pIn3)).Fz, pIdxKey)
-__620:
+__624:
;
(*UnpackedRecord)(unsafe.Pointer(pIdxKey)).Fdefault_rc = int8(0)
takeJump = 0
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_NoConflict) {
- goto __623
+ goto __627
}
// For the OP_NoConflict opcode, take the jump if any of the
// input fields are NULL, since any key with a NULL will not
// conflict
ii1 = 0
-__624:
+__628:
if !(ii1 < int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField)) {
- goto __626
+ goto __630
}
if !(int32((*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FaMem+uintptr(ii1)*56)).Fflags)&MEM_Null != 0) {
- goto __627
+ goto __631
}
takeJump = 1
- goto __626
-__627:
+ goto __630
+__631:
;
- goto __625
-__625:
+ goto __629
+__629:
ii1++
- goto __624
- goto __626
-__626:
+ goto __628
+ goto __630
+__630:
;
-__623:
+__627:
;
rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC7 + 48)), pIdxKey, bp+416)
if !(pFree != 0) {
- goto __628
+ goto __632
}
Xsqlite3DbFreeNN(tls, db, pFree)
-__628:
+__632:
;
if !(rc != SQLITE_OK) {
- goto __629
+ goto __633
}
goto abort_due_to_error
-__629:
+__633:
;
(*VdbeCursor)(unsafe.Pointer(pC7)).FseekResult = *(*int32)(unsafe.Pointer(bp + 416 /* res4 */))
alreadyExists = libc.Bool32(*(*int32)(unsafe.Pointer(bp + 416)) == 0)
@@ -117406,31 +117437,31 @@ __629:
(*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 __630
+ goto __634
}
if !(alreadyExists != 0) {
- goto __632
+ goto __636
}
goto jump_to_p2
-__632:
+__636:
;
- goto __631
-__630:
+ goto __635
+__634:
;
if !(takeJump != 0 || !(alreadyExists != 0)) {
- goto __633
+ goto __637
}
goto jump_to_p2
-__633:
+__637:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_IfNoHope) {
- goto __634
+ goto __638
}
(*VdbeCursor)(unsafe.Pointer(pC7)).FseekHit = U16(*(*int32)(unsafe.Pointer(pOp + 16)))
-__634:
+__638:
;
-__631:
+__635:
;
goto __8
@@ -117484,7 +117515,7 @@ __102:
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&(MEM_Int|MEM_IntReal) == 0) {
- goto __635
+ goto __639
}
// If pIn3->u.i does not contain an integer, compute iKey as the
// integer value of pIn3. Jump to P2 if pIn3 cannot be converted
@@ -117494,14 +117525,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 __636
+ goto __640
}
goto jump_to_p2
-__636:
+__640:
;
iKey1 = U64(*(*I64)(unsafe.Pointer(bp + 424)))
goto notExistsWithKey
-__635:
+__639:
;
__103: // jump, in3
pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -117522,25 +117553,25 @@ notExistsWithKey:
(*VdbeCursor)(unsafe.Pointer(pC8)).FseekResult = *(*int32)(unsafe.Pointer(bp + 480 /* res5 */))
if !(*(*int32)(unsafe.Pointer(bp + 480)) != 0) {
- goto __637
+ goto __641
}
if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) {
- goto __638
+ goto __642
}
- rc = Xsqlite3CorruptError(tls, 92433)
- goto __639
-__638:
+ rc = Xsqlite3CorruptError(tls, 92457)
+ goto __643
+__642:
goto jump_to_p2
-__639:
+__643:
;
-__637:
+__641:
;
if !(rc != 0) {
- goto __640
+ goto __644
}
goto abort_due_to_error
-__640:
+__644:
;
goto __8
@@ -117598,89 +117629,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 __641
+ goto __645
}
rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), bp+484)
if !(rc != SQLITE_OK) {
- goto __642
+ goto __646
}
goto abort_due_to_error
-__642:
+__646:
;
if !(*(*int32)(unsafe.Pointer(bp + 484)) != 0) {
- goto __643
+ goto __647
}
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) = int64(1) // IMP: R-61914-48074
- goto __644
-__643:
+ goto __648
+__647:
;
*(*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 __645
+ goto __649
}
libc.SetBitFieldPtr8Uint32(pC9+8, Bool(1), 1, 0x2)
- goto __646
-__645:
+ goto __650
+__649:
*(*I64)(unsafe.Pointer(bp + 488 /* v */))++ // IMP: R-29538-34987
-__646:
+__650:
;
-__644:
+__648:
;
-__641:
+__645:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __647
+ goto __651
}
// Assert that P3 is a valid memory cell.
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __648
+ goto __652
}
pFrame1 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__650:
+__654:
if !((*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent != 0) {
- goto __652
+ goto __656
}
- goto __651
-__651:
+ goto __655
+__655:
pFrame1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent
- goto __650
- goto __652
-__652:
+ goto __654
+ goto __656
+__656:
;
// Assert that P3 is a valid memory cell.
pMem1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
- goto __649
-__648:
+ goto __653
+__652:
// Assert that P3 is a valid memory cell.
;
pMem1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
-__649:
+__653:
;
Xsqlite3VdbeMemIntegerify(tls, pMem1)
// mem(P3) holds an integer
if !(*(*I64)(unsafe.Pointer(pMem1)) == int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff)) || Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) {
- goto __653
+ goto __657
}
rc = SQLITE_FULL // IMP: R-17817-00630
goto abort_due_to_error
-__653:
+__657:
;
if !(*(*I64)(unsafe.Pointer(bp + 488)) < *(*I64)(unsafe.Pointer(pMem1))+int64(1)) {
- goto __654
+ goto __658
}
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) = *(*I64)(unsafe.Pointer(pMem1)) + int64(1)
-__654:
+__658:
;
*(*I64)(unsafe.Pointer(pMem1)) = *(*I64)(unsafe.Pointer(bp + 488 /* v */))
-__647:
+__651:
;
if !(Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) {
- goto __655
+ goto __659
}
// IMPLEMENTATION-OF: R-07677-41881 If the largest ROWID is equal to the
// largest possible integer (9223372036854775807) then the database
@@ -117689,36 +117720,36 @@ __647:
// We cannot be in random rowid mode if this is
// an AUTOINCREMENT table.
cnt1 = 0
-__656:
+__660:
Xsqlite3_randomness(tls, int32(unsafe.Sizeof(I64(0))), bp+488)
*(*I64)(unsafe.Pointer(bp + 488 /* v */)) &= I64(int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff))) >> 1
*(*I64)(unsafe.Pointer(bp + 488 /* v */))++ // Ensure that v is greater than zero
- goto __657
-__657:
+ goto __661
+__661:
if libc.AssignInt32(&rc, Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), int64(U64(*(*I64)(unsafe.Pointer(bp + 488)))),
0, bp+484)) == SQLITE_OK &&
*(*int32)(unsafe.Pointer(bp + 484)) == 0 &&
libc.PreIncInt32(&cnt1, 1) < 100 {
- goto __656
+ goto __660
}
- goto __658
-__658:
+ goto __662
+__662:
;
if !(rc != 0) {
- goto __659
+ goto __663
}
goto abort_due_to_error
-__659:
+__663:
;
if !(*(*int32)(unsafe.Pointer(bp + 484)) == 0) {
- goto __660
+ goto __664
}
rc = SQLITE_FULL // IMP: R-38219-53002
goto abort_due_to_error
-__660:
+__664:
;
// EV: R-40812-03570
-__655:
+__659:
;
(*VdbeCursor)(unsafe.Pointer(pC9)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(pC9)).FcacheStatus = U32(CACHE_STALE)
@@ -117773,56 +117804,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 __661
+ goto __665
}
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*VdbeCursor)(unsafe.Pointer(pC10)).FiDb)*32)).FzDbSName
pTab1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
- goto __662
-__661:
+ goto __666
+__665:
pTab1 = uintptr(0)
zDb = uintptr(0)
-__662:
+__666:
;
// Invoke the pre-update hook, if any
if !(pTab1 != 0) {
- goto __663
+ goto __667
}
if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISUPDATE != 0)) {
- goto __664
+ goto __668
}
Xsqlite3VdbePreUpdateHook(tls, p, pC10, SQLITE_INSERT, zDb, pTab1, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey, (*Op)(unsafe.Pointer(pOp)).Fp2, -1)
-__664:
+__668:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback == uintptr(0) || (*Table)(unsafe.Pointer(pTab1)).FaCol == uintptr(0)) {
- goto __665
+ goto __669
}
// Prevent post-update hook from running in cases when it should not
pTab1 = uintptr(0)
-__665:
+__669:
;
-__663:
+__667:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISNOOP != 0) {
- goto __666
+ goto __670
}
goto __8
-__666:
+__670:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) {
- goto __667
+ goto __671
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__667:
+__671:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_LASTROWID != 0) {
- goto __668
+ goto __672
}
(*Sqlite3)(unsafe.Pointer(db)).FlastRowid = (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnKey
-__668:
+__672:
;
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpData = (*Mem)(unsafe.Pointer(pData)).Fz
@@ -117834,13 +117865,13 @@ __668:
return 0
}()
if !(int32((*Mem)(unsafe.Pointer(pData)).Fflags)&MEM_Zero != 0) {
- goto __669
+ goto __673
}
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = *(*int32)(unsafe.Pointer(pData))
- goto __670
-__669:
+ goto __674
+__673:
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = 0
-__670:
+__674:
;
(*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpKey = uintptr(0)
rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC10 + 48)), bp+496,
@@ -117851,13 +117882,13 @@ __670:
// Invoke the update-hook if required.
if !(rc != 0) {
- goto __671
+ goto __675
}
goto abort_due_to_error
-__671:
+__675:
;
if !(pTab1 != 0) {
- goto __672
+ goto __676
}
(*struct {
@@ -117870,7 +117901,7 @@ __671:
return SQLITE_INSERT
}(),
zDb, (*Table)(unsafe.Pointer(pTab1)).FzName, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey)
-__672:
+__676:
;
goto __8
@@ -117896,10 +117927,10 @@ __107: // Rowid value to insert with
}
rc = Xsqlite3BtreeTransferRow(tls, *(*uintptr)(unsafe.Pointer(pDest1 + 48)), *(*uintptr)(unsafe.Pointer(pSrc + 48)), iKey2)
if !(rc != SQLITE_OK) {
- goto __673
+ goto __677
}
goto abort_due_to_error
-__673:
+__677:
;
goto __8
@@ -117949,28 +117980,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 __674
+ goto __678
}
zDb1 = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*VdbeCursor)(unsafe.Pointer(pC11)).FiDb)*32)).FzDbSName
pTab2 = *(*uintptr)(unsafe.Pointer(pOp + 16))
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_SAVEPOSITION != 0 && (*VdbeCursor)(unsafe.Pointer(pC11)).FisTable != 0) {
- goto __676
+ goto __680
}
(*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC11 + 48)))
-__676:
+__680:
;
- goto __675
-__674:
+ goto __679
+__678:
zDb1 = uintptr(0)
pTab2 = uintptr(0)
-__675:
+__679:
;
// Invoke the pre-update-hook if required.
if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && pTab2 != 0) {
- goto __677
+ goto __681
}
Xsqlite3VdbePreUpdateHook(tls, p, pC11,
@@ -117982,13 +118013,13 @@ __675:
}(),
zDb1, pTab2, (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget,
(*Op)(unsafe.Pointer(pOp)).Fp3, -1)
-__677:
+__681:
;
if !(opflags&OPFLAG_ISNOOP != 0) {
- goto __678
+ goto __682
}
goto __8
-__678:
+__682:
;
// Only flags that can be set are SAVEPOISTION and AUXDELETE
@@ -117997,28 +118028,28 @@ __678:
(*VdbeCursor)(unsafe.Pointer(pC11)).FcacheStatus = U32(CACHE_STALE)
(*VdbeCursor)(unsafe.Pointer(pC11)).FseekResult = 0
if !(rc != 0) {
- goto __679
+ goto __683
}
goto abort_due_to_error
-__679:
+__683:
;
// Invoke the update-hook if required.
if !(opflags&OPFLAG_NCHANGE != 0) {
- goto __680
+ goto __684
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
if !((*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback != 0 && pTab2 != uintptr(0) && (*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) {
- goto __681
+ goto __685
}
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr, uintptr, Sqlite_int64)
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpUpdateArg, SQLITE_DELETE, zDb1, (*Table)(unsafe.Pointer(pTab2)).FzName,
(*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget)
-__681:
+__685:
;
-__680:
+__684:
;
goto __8
@@ -118058,16 +118089,16 @@ __110:
rc = Xsqlite3VdbeSorterCompare(tls, pC12, pIn3, nKeyCol, bp+544)
if !(rc != 0) {
- goto __682
+ goto __686
}
goto abort_due_to_error
-__682:
+__686:
;
if !(*(*int32)(unsafe.Pointer(bp + 544)) != 0) {
- goto __683
+ goto __687
}
goto jump_to_p2
-__683:
+__687:
;
goto __8
@@ -118090,10 +118121,10 @@ __111:
rc = Xsqlite3VdbeSorterRowkey(tls, pC13, pOut)
if !(rc != 0) {
- goto __684
+ goto __688
}
goto abort_due_to_error
-__684:
+__688:
;
(*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8)))).FcacheStatus = U32(CACHE_STALE)
goto __8
@@ -118143,29 +118174,29 @@ __112:
n3 = Xsqlite3BtreePayloadSize(tls, pCrsr3)
if !(n3 > U32(*(*int32)(unsafe.Pointer(db + 136)))) {
- goto __685
+ goto __689
}
goto too_big
-__685:
+__689:
;
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCrsr3, n3, pOut)
if !(rc != 0) {
- goto __686
+ goto __690
}
goto abort_due_to_error
-__686:
+__690:
;
if !!((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __687
+ goto __691
}
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) {
- goto __688
+ goto __692
}
goto no_mem
-__688:
+__692:
;
-__687:
+__691:
;
goto __8
@@ -118186,20 +118217,20 @@ __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 __689
+ goto __693
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null)
goto __8
- goto __690
-__689:
+ goto __694
+__693:
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FdeferredMoveto != 0) {
- goto __691
+ goto __695
}
*(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = (*VdbeCursor)(unsafe.Pointer(pC15)).FmovetoTarget
- goto __692
-__691:
+ goto __696
+__695:
if !(int32((*VdbeCursor)(unsafe.Pointer(pC15)).FeCurType) == CURTYPE_VTAB) {
- goto __693
+ goto __697
}
pVtab = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC15 + 48)))).FpVtab
@@ -118210,35 +118241,35 @@ __691:
})(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 __695
+ goto __699
}
goto abort_due_to_error
-__695:
+__699:
;
- goto __694
-__693:
+ goto __698
+__697:
;
rc = Xsqlite3VdbeCursorRestore(tls, pC15)
if !(rc != 0) {
- goto __696
+ goto __700
}
goto abort_due_to_error
-__696:
+__700:
;
if !((*VdbeCursor)(unsafe.Pointer(pC15)).FnullRow != 0) {
- goto __697
+ goto __701
}
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null)
goto __8
-__697:
+__701:
;
*(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48)))
-__694:
+__698:
;
-__692:
+__696:
;
-__690:
+__694:
;
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 552 /* v3 */))
goto __8
@@ -118248,6 +118279,10 @@ __690:
// Move the cursor P1 to a null row. Any OP_Column operations
// that occur while the cursor is on the null row will always
// write a NULL.
+ //
+ // Or, if P1 is a Pseudo-Cursor (a cursor opened using OP_OpenPseudo)
+ // just reset the cache for that cursor. This causes the row of
+ // content held by the pseudo-cursor to be reparsed.
__114:
;
pC16 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -118255,11 +118290,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 __698
+ goto __702
}
Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pC16 + 48)))
-__698:
+__702:
;
goto __8
@@ -118292,39 +118327,39 @@ __116:
*(*int32)(unsafe.Pointer(bp + 560 /* res8 */)) = 0
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_SeekEnd) {
- goto __699
+ goto __703
}
(*VdbeCursor)(unsafe.Pointer(pC17)).FseekResult = -1
if !(Xsqlite3BtreeCursorIsValidNN(tls, pCrsr4) != 0) {
- goto __700
+ goto __704
}
goto __8
-__700:
+__704:
;
-__699:
+__703:
;
rc = Xsqlite3BtreeLast(tls, pCrsr4, bp+560)
(*VdbeCursor)(unsafe.Pointer(pC17)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 560 /* res8 */)))
(*VdbeCursor)(unsafe.Pointer(pC17)).FdeferredMoveto = U8(0)
(*VdbeCursor)(unsafe.Pointer(pC17)).FcacheStatus = U32(CACHE_STALE)
if !(rc != 0) {
- goto __701
+ goto __705
}
goto abort_due_to_error
-__701:
+__705:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp2 > 0) {
- goto __702
+ goto __706
}
if !(*(*int32)(unsafe.Pointer(bp + 560)) != 0) {
- goto __703
+ goto __707
}
goto jump_to_p2
-__703:
+__707:
;
-__702:
+__706:
;
goto __8
@@ -118340,29 +118375,29 @@ __117:
rc = Xsqlite3BtreeFirst(tls, pCrsr5, bp+564)
if !(rc != 0) {
- goto __704
+ goto __708
}
goto abort_due_to_error
-__704:
+__708:
;
if !(*(*int32)(unsafe.Pointer(bp + 564)) == 0) {
- goto __705
+ goto __709
}
sz = Xsqlite3BtreeRowCountEst(tls, pCrsr5)
if !(sz >= int64(0) && int32(Xsqlite3LogEst(tls, U64(sz))) < (*Op)(unsafe.Pointer(pOp)).Fp3) {
- goto __706
+ goto __710
}
*(*int32)(unsafe.Pointer(bp + 564 /* res9 */)) = 1
-__706:
+__710:
;
-__705:
+__709:
;
if !(*(*int32)(unsafe.Pointer(bp + 564)) != 0) {
- goto __707
+ goto __711
}
goto jump_to_p2
-__707:
+__711:
;
goto __8
@@ -118407,32 +118442,32 @@ __120:
*(*int32)(unsafe.Pointer(bp + 568 /* res10 */)) = 1
if !(int32((*VdbeCursor)(unsafe.Pointer(pC19)).FeCurType) == CURTYPE_SORTER) {
- goto __708
+ goto __712
}
rc = Xsqlite3VdbeSorterRewind(tls, pC19, bp+568)
- goto __709
-__708:
+ goto __713
+__712:
;
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)
-__709:
+__713:
;
if !(rc != 0) {
- goto __710
+ goto __714
}
goto abort_due_to_error
-__710:
+__714:
;
(*VdbeCursor)(unsafe.Pointer(pC19)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 568 /* res10 */)))
if !(*(*int32)(unsafe.Pointer(bp + 568)) != 0) {
- goto __711
+ goto __715
}
goto jump_to_p2
-__711:
+__715:
;
goto __8
@@ -118515,18 +118550,18 @@ next_tail:
(*VdbeCursor)(unsafe.Pointer(pC20)).FcacheStatus = U32(CACHE_STALE)
if !(rc == SQLITE_OK) {
- goto __712
+ goto __716
}
(*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(0)
*(*U32)(unsafe.Pointer(p + 220 + uintptr((*Op)(unsafe.Pointer(pOp)).Fp5)*4))++
goto jump_to_p2_and_check_for_interrupt
-__712:
+__716:
;
if !(rc != SQLITE_DONE) {
- goto __713
+ goto __717
}
goto abort_due_to_error
-__713:
+__717:
;
rc = SQLITE_OK
(*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(1)
@@ -118566,10 +118601,10 @@ __124:
pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) {
- goto __714
+ goto __718
}
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__714:
+__718:
;
rc = func() int32 {
@@ -118579,10 +118614,10 @@ __714:
return 0
}()
if !(rc != 0) {
- goto __715
+ goto __719
}
goto abort_due_to_error
-__715:
+__719:
;
(*BtreePayload)(unsafe.Pointer(bp + 576 /* &x2 */)).FnKey = Sqlite3_int64((*Mem)(unsafe.Pointer(pIn2)).Fn)
(*BtreePayload)(unsafe.Pointer(bp + 576 /* &x2 */)).FpKey = (*Mem)(unsafe.Pointer(pIn2)).Fz
@@ -118599,10 +118634,10 @@ __715:
(*VdbeCursor)(unsafe.Pointer(pC21)).FcacheStatus = U32(CACHE_STALE)
if !(rc != 0) {
- goto __716
+ goto __720
}
goto abort_due_to_error
-__716:
+__720:
;
goto __8
@@ -118625,17 +118660,17 @@ __125:
return 0
}()
if !(rc != 0) {
- goto __717
+ goto __721
}
goto abort_due_to_error
-__717:
+__721:
;
rc = Xsqlite3VdbeSorterWrite(tls, pC22, pIn2)
if !(rc != 0) {
- goto __718
+ goto __722
}
goto abort_due_to_error
-__718:
+__722:
;
goto __8
@@ -118666,31 +118701,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 __719
+ goto __723
}
goto abort_due_to_error
-__719:
+__723:
;
if !(*(*int32)(unsafe.Pointer(bp + 648)) == 0) {
- goto __720
+ goto __724
}
rc = Xsqlite3BtreeDelete(tls, pCrsr7, uint8(BTREE_AUXDELETE))
if !(rc != 0) {
- goto __722
+ goto __726
}
goto abort_due_to_error
-__722:
+__726:
;
- goto __721
-__720:
+ goto __725
+__724:
if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0 && !(Xsqlite3WritableSchema(tls, db) != 0)) {
- goto __723
+ goto __727
}
- rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 93485, ts+7179)
+ rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 93513, ts+7179)
goto abort_due_to_error
-__723:
+__727:
;
-__721:
+__725:
;
(*VdbeCursor)(unsafe.Pointer(pC23)).FcacheStatus = U32(CACHE_STALE)
@@ -118737,25 +118772,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 __724
+ goto __728
}
goto abort_due_to_error
-__724:
+__728:
;
if !!(int32((*VdbeCursor)(unsafe.Pointer(pC24)).FnullRow) != 0) {
- goto __725
+ goto __729
}
*(*I64)(unsafe.Pointer(bp + 656 /* rowid */)) = int64(0) // Not needed. Only used to silence a warning.
rc = Xsqlite3VdbeIdxRowid(tls, db, *(*uintptr)(unsafe.Pointer(pC24 + 48)), bp+656)
if !(rc != SQLITE_OK) {
- goto __727
+ goto __731
}
goto abort_due_to_error
-__727:
+__731:
;
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_DeferredSeek) {
- goto __728
+ goto __732
}
pTabCur = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8))
@@ -118767,17 +118802,17 @@ __727:
*(*uintptr)(unsafe.Pointer(pTabCur + 16)) = *(*uintptr)(unsafe.Pointer(pOp + 16))
(*VdbeCursor)(unsafe.Pointer(pTabCur)).FpAltCursor = pC24
- goto __729
-__728:
+ goto __733
+__732:
pOut = out2Prerelease(tls, p, pOp)
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 656 /* rowid */))
-__729:
+__733:
;
- goto __726
-__725:
+ goto __730
+__729:
;
Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56)
-__726:
+__730:
;
goto __8
@@ -118791,16 +118826,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 __730
+ goto __734
}
rc = Xsqlite3VdbeFinishMoveto(tls, pC25)
if !(rc != 0) {
- goto __731
+ goto __735
}
goto abort_due_to_error
-__731:
+__735:
;
-__730:
+__734:
;
goto __8
@@ -118854,15 +118889,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 __732
+ goto __736
}
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(-1)
- goto __733
-__732:
+ goto __737
+__736:
;
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(0)
-__733:
+__737:
;
(*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -118876,19 +118911,19 @@ __733:
// 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 __734
+ goto __738
}
- rc = Xsqlite3CorruptError(tls, 93689)
+ rc = Xsqlite3CorruptError(tls, 93717)
goto abort_due_to_error
-__734:
+__738:
;
Xsqlite3VdbeMemInit(tls, bp+664, db, uint16(0))
rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur1, U32(nCellKey), bp+664)
if !(rc != 0) {
- goto __735
+ goto __739
}
goto abort_due_to_error
-__735:
+__739:
;
res12 = Xsqlite3VdbeRecordCompareWithSkip(tls, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fn, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fz, bp+720, 0)
Xsqlite3VdbeMemRelease(tls, bp+664)
@@ -118896,22 +118931,22 @@ __735:
// End of inlined sqlite3VdbeIdxKeyCompare()
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode)&1 == OP_IdxLT&1) {
- goto __736
+ goto __740
}
res12 = -res12
- goto __737
-__736:
+ goto __741
+__740:
;
res12++
-__737:
+__741:
;
if !(res12 > 0) {
- goto __738
+ goto __742
}
goto jump_to_p2
-__738:
+__742:
;
goto __8
@@ -118947,13 +118982,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 __739
+ goto __743
}
rc = SQLITE_LOCKED
(*Vdbe)(unsafe.Pointer(p)).FerrorAction = U8(OE_Abort)
goto abort_due_to_error
- goto __740
-__739:
+ goto __744
+__743:
iDb2 = (*Op)(unsafe.Pointer(pOp)).Fp3
*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */)) = 0 // Not needed. Only to silence a warning.
@@ -118961,21 +118996,21 @@ __739:
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int)
*(*I64)(unsafe.Pointer(pOut)) = I64(*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */)))
if !(rc != 0) {
- goto __741
+ goto __745
}
goto abort_due_to_error
-__741:
+__745:
;
if !(*(*int32)(unsafe.Pointer(bp + 744)) != 0) {
- goto __742
+ goto __746
}
Xsqlite3RootPageMoved(tls, db, iDb2, uint32(*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */))), uint32((*Op)(unsafe.Pointer(pOp)).Fp1))
// All OP_Destroy operations occur on the same btree
resetSchemaOnFault = U8(iDb2 + 1)
-__742:
+__746:
;
-__740:
+__744:
;
goto __8
@@ -119001,23 +119036,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 __743
+ goto __747
}
*(*I64)(unsafe.Pointer(p + 64)) += *(*I64)(unsafe.Pointer(bp + 752))
if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) {
- goto __744
+ goto __748
}
*(*I64)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)) += *(*I64)(unsafe.Pointer(bp + 752))
-__744:
+__748:
;
-__743:
+__747:
;
if !(rc != 0) {
- goto __745
+ goto __749
}
goto abort_due_to_error
-__745:
+__749:
;
goto __8
@@ -119033,21 +119068,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 __746
+ goto __750
}
Xsqlite3VdbeSorterReset(tls, db, *(*uintptr)(unsafe.Pointer(pC27 + 48)))
- goto __747
-__746:
+ goto __751
+__750:
;
rc = Xsqlite3BtreeClearTableOfCursor(tls, *(*uintptr)(unsafe.Pointer(pC27 + 48)))
if !(rc != 0) {
- goto __748
+ goto __752
}
goto abort_due_to_error
-__748:
+__752:
;
-__747:
+__751:
;
goto __8
@@ -119068,10 +119103,10 @@ __137:
rc = Xsqlite3BtreeCreateTable(tls, (*Db)(unsafe.Pointer(pDb2)).FpBt, bp+760, (*Op)(unsafe.Pointer(pOp)).Fp3)
if !(rc != 0) {
- goto __749
+ goto __753
}
goto abort_due_to_error
-__749:
+__753:
;
*(*I64)(unsafe.Pointer(pOut)) = I64(*(*Pgno)(unsafe.Pointer(bp + 760 /* pgno */)))
goto __8
@@ -119085,10 +119120,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 __750
+ goto __754
}
goto abort_due_to_error
-__750:
+__754:
;
goto __8
@@ -119109,15 +119144,15 @@ __139:
iDb3 = (*Op)(unsafe.Pointer(pOp)).Fp1
if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0)) {
- goto __751
+ goto __755
}
Xsqlite3SchemaClear(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb3)*32)).FpSchema)
*(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_SchemaKnownOk))
rc = Xsqlite3InitOne(tls, db, iDb3, p+176, uint32((*Op)(unsafe.Pointer(pOp)).Fp5))
*(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange)
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3)
- goto __752
-__751:
+ goto __756
+__755:
zSchema = ts + 7196 /* "sqlite_master" */
(*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Fdb = db
@@ -119129,11 +119164,11 @@ __751:
ts+7210,
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 __753
+ goto __757
}
rc = SQLITE_NOMEM
- goto __754
-__753:
+ goto __758
+__757:
;
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(1)
(*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc = SQLITE_OK
@@ -119143,38 +119178,38 @@ __753:
f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{Xsqlite3InitCallback})), bp+768 /* &initData */, uintptr(0))
if !(rc == SQLITE_OK) {
- goto __755
+ goto __759
}
rc = (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc
-__755:
+__759:
;
if !(rc == SQLITE_OK && (*InitData)(unsafe.Pointer(bp+768)).FnInitRow == U32(0)) {
- goto __756
+ goto __760
}
// The OP_ParseSchema opcode with a non-NULL P4 argument should parse
// at least one SQL statement. Any less than that indicates that
// the sqlite_schema table is corrupt.
- rc = Xsqlite3CorruptError(tls, 93941)
-__756:
+ rc = Xsqlite3CorruptError(tls, 93969)
+__760:
;
Xsqlite3DbFreeNN(tls, db, zSql)
(*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(0)
-__754:
+__758:
;
-__752:
+__756:
;
if !(rc != 0) {
- goto __757
+ goto __761
}
Xsqlite3ResetAllSchemasOfConnection(tls, db)
if !(rc == SQLITE_NOMEM) {
- goto __758
+ goto __762
}
goto no_mem
-__758:
+__762:
;
goto abort_due_to_error
-__757:
+__761:
;
goto __8
@@ -119187,10 +119222,10 @@ __140:
;
rc = Xsqlite3AnalysisLoad(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1)
if !(rc != 0) {
- goto __759
+ goto __763
}
goto abort_due_to_error
-__759:
+__763:
;
goto __8
@@ -119262,22 +119297,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 __760
+ goto __764
}
- goto __761
-__760:
+ goto __765
+__764:
if !(z == uintptr(0)) {
- goto __762
+ goto __766
}
goto no_mem
- goto __763
-__762:
+ goto __767
+__766:
*(*I64)(unsafe.Pointer(pnErr)) -= I64(*(*int32)(unsafe.Pointer(bp + 808)) - 1)
Xsqlite3VdbeMemSetStr(tls, pIn1, z, int64(-1), uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
-__763:
+__767:
;
-__761:
+__765:
;
Xsqlite3VdbeChangeEncoding(tls, pIn1, int32(encoding))
@@ -119295,15 +119330,15 @@ __145: // in1, in2
pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) {
- goto __764
+ goto __768
}
if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) {
- goto __765
+ goto __769
}
goto no_mem
-__765:
+__769:
;
-__764:
+__768:
;
Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn2)))
@@ -119322,18 +119357,18 @@ __146:
if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0 ||
Xsqlite3RowSetNext(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, bp+816) == 0) {
- goto __766
+ goto __770
}
// The boolean index is empty
Xsqlite3VdbeMemSetNull(tls, pIn1)
goto jump_to_p2_and_check_for_interrupt
- goto __767
-__766:
+ goto __771
+__770:
// A value was pulled from the index
;
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*I64)(unsafe.Pointer(bp + 816 /* val */)))
-__767:
+__771:
;
goto check_for_interrupt
@@ -119368,35 +119403,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 __768
+ goto __772
}
if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) {
- goto __769
+ goto __773
}
goto no_mem
-__769:
+__773:
;
-__768:
+__772:
;
if !(iSet != 0) {
- goto __770
+ goto __774
}
exists = Xsqlite3RowSetTest(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, iSet, *(*I64)(unsafe.Pointer(pIn3)))
if !(exists != 0) {
- goto __771
+ goto __775
}
goto jump_to_p2
-__771:
+__775:
;
-__770:
+__774:
;
if !(iSet >= 0) {
- goto __772
+ goto __776
}
Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn3)))
-__772:
+__776:
;
goto __8
@@ -119431,37 +119466,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 __773
+ goto __777
}
t1 = (*SubProgram)(unsafe.Pointer(pProgram)).Ftoken
pFrame2 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__774:
+__778:
if !(pFrame2 != 0 && (*VdbeFrame)(unsafe.Pointer(pFrame2)).Ftoken != t1) {
- goto __776
+ goto __780
}
- goto __775
-__775:
+ goto __779
+__779:
pFrame2 = (*VdbeFrame)(unsafe.Pointer(pFrame2)).FpParent
- goto __774
- goto __776
-__776:
+ goto __778
+ goto __780
+__780:
;
if !(pFrame2 != 0) {
- goto __777
+ goto __781
}
goto __8
-__777:
+__781:
;
-__773:
+__777:
;
if !((*Vdbe)(unsafe.Pointer(p)).FnFrame >= *(*int32)(unsafe.Pointer(db + 136 + 10*4))) {
- goto __778
+ goto __782
}
rc = SQLITE_ERROR
Xsqlite3VdbeError(tls, p, ts+7253, 0)
goto abort_due_to_error
-__778:
+__782:
;
// Register pRt is used to store the memory required to save the state
@@ -119469,7 +119504,7 @@ __778:
// 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 __779
+ goto __783
}
// SubProgram.nMem is set to the number of memory cells used by the
// program stored in SubProgram.aOp. As well as these, one memory
@@ -119478,10 +119513,10 @@ __778:
nMem = (*SubProgram)(unsafe.Pointer(pProgram)).FnMem + (*SubProgram)(unsafe.Pointer(pProgram)).FnCsr
if !((*SubProgram)(unsafe.Pointer(pProgram)).FnCsr == 0) {
- goto __781
+ goto __785
}
nMem++
-__781:
+__785:
;
nByte2 = int32((uint64(unsafe.Sizeof(VdbeFrame{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7)) +
uint64(nMem)*uint64(unsafe.Sizeof(Mem{})) +
@@ -119489,10 +119524,10 @@ __781:
uint64(((*SubProgram)(unsafe.Pointer(pProgram)).FnOp+7)/8))
pFrame2 = Xsqlite3DbMallocZero(tls, db, uint64(nByte2))
if !!(pFrame2 != 0) {
- goto __782
+ goto __786
}
goto no_mem
-__782:
+__786:
;
Xsqlite3VdbeMemRelease(tls, pRt)
(*Mem)(unsafe.Pointer(pRt)).Fflags = U16(MEM_Blob | MEM_Dyn)
@@ -119514,24 +119549,24 @@ __782:
pEnd = pFrame2 + 120 + uintptr((*VdbeFrame)(unsafe.Pointer(pFrame2)).FnChildMem)*56
pMem2 = pFrame2 + 120
-__783:
+__787:
if !(pMem2 != pEnd) {
- goto __785
+ goto __789
}
(*Mem)(unsafe.Pointer(pMem2)).Fflags = U16(MEM_Undefined)
(*Mem)(unsafe.Pointer(pMem2)).Fdb = db
- goto __784
-__784:
+ goto __788
+__788:
pMem2 += 56
- goto __783
- goto __785
-__785:
+ goto __787
+ goto __789
+__789:
;
- goto __780
-__779:
+ goto __784
+__783:
pFrame2 = (*Mem)(unsafe.Pointer(pRt)).Fz
-__780:
+__784:
;
(*Vdbe)(unsafe.Pointer(p)).FnFrame++
@@ -119582,21 +119617,21 @@ __149:
// statement counter is incremented (immediate foreign key constraints).
__150:
if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_DeferFKs) != 0) {
- goto __786
+ goto __790
}
*(*I64)(unsafe.Pointer(db + 784)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __787
-__786:
+ goto __791
+__790:
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __788
+ goto __792
}
*(*I64)(unsafe.Pointer(db + 776)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __789
-__788:
+ goto __793
+__792:
*(*I64)(unsafe.Pointer(p + 88)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2)
-__789:
+__793:
;
-__787:
+__791:
;
goto __8
@@ -119613,25 +119648,25 @@ __787:
// (immediate foreign key constraint violations).
__151: // jump
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __790
+ goto __794
}
if !((*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) {
- goto __792
+ goto __796
}
goto jump_to_p2
-__792:
+__796:
;
- goto __791
-__790:
+ goto __795
+__794:
;
if !((*Vdbe)(unsafe.Pointer(p)).FnFkConstraint == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) {
- goto __793
+ goto __797
}
goto jump_to_p2
-__793:
+__797:
;
-__791:
+__795:
;
goto __8
@@ -119647,35 +119682,35 @@ __791:
// an integer.
__152:
if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) {
- goto __794
+ goto __798
}
pFrame4 = (*Vdbe)(unsafe.Pointer(p)).FpFrame
-__796:
+__800:
if !((*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent != 0) {
- goto __798
+ goto __802
}
- goto __797
-__797:
+ goto __801
+__801:
pFrame4 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent
- goto __796
- goto __798
-__798:
+ goto __800
+ goto __802
+__802:
;
pIn1 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
- goto __795
-__794:
+ goto __799
+__798:
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
-__795:
+__799:
;
Xsqlite3VdbeMemIntegerify(tls, pIn1)
pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56
Xsqlite3VdbeMemIntegerify(tls, pIn2)
if !(*(*I64)(unsafe.Pointer(pIn1)) < *(*I64)(unsafe.Pointer(pIn2))) {
- goto __799
+ goto __803
}
*(*I64)(unsafe.Pointer(pIn1)) = *(*I64)(unsafe.Pointer(pIn2))
-__799:
+__803:
;
goto __8
@@ -119692,11 +119727,11 @@ __153: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) {
- goto __800
+ goto __804
}
*(*I64)(unsafe.Pointer(pIn1)) -= I64((*Op)(unsafe.Pointer(pOp)).Fp3)
goto jump_to_p2
-__800:
+__804:
;
goto __8
@@ -119729,7 +119764,7 @@ __154:
}
return int64(0)
}()) != 0) {
- goto __801
+ goto __805
}
// If the LIMIT is less than or equal to zero, loop forever. This
// is documented. But also, if the LIMIT+OFFSET exceeds 2^63 then
@@ -119739,10 +119774,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 __802
-__801:
+ goto __806
+__805:
*(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 824 /* x3 */))
-__802:
+__806:
;
goto __8
@@ -119757,16 +119792,16 @@ __155: // jump, in1
pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !(*(*I64)(unsafe.Pointer(pIn1)) != 0) {
- goto __803
+ goto __807
}
if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) {
- goto __804
+ goto __808
}
*(*I64)(unsafe.Pointer(pIn1))--
-__804:
+__808:
;
goto jump_to_p2
-__803:
+__807:
;
goto __8
@@ -119779,17 +119814,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 __805
+ goto __809
}
*(*I64)(unsafe.Pointer(pIn1))--
-__805:
+__809:
;
if !(*(*I64)(unsafe.Pointer(pIn1)) == int64(0)) {
- goto __806
+ goto __810
}
goto jump_to_p2
-__806:
+__810:
;
goto __8
@@ -119836,10 +119871,10 @@ __158:
pCtx = Xsqlite3DbMallocRawNN(tls, db, uint64(n4)*uint64(unsafe.Sizeof(uintptr(0)))+(uint64(unsafe.Sizeof(Sqlite3_context{}))+uint64(unsafe.Sizeof(Mem{}))-uint64(unsafe.Sizeof(uintptr(0)))))
if !(pCtx == uintptr(0)) {
- goto __807
+ goto __811
}
goto no_mem
-__807:
+__811:
;
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FpMem = uintptr(0)
(*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut = pCtx + 48 + uintptr(n4)*8
@@ -119867,75 +119902,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 __808
+ goto __812
}
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem = pMem3
i5 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc) - 1
-__809:
+__813:
if !(i5 >= 0) {
- goto __811
+ goto __815
}
*(*uintptr)(unsafe.Pointer(pCtx1 + 48 + uintptr(i5)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i5)*56
- goto __810
-__810:
+ goto __814
+__814:
i5--
- goto __809
- goto __811
-__811:
+ goto __813
+ goto __815
+__815:
;
-__808:
+__812:
;
(*Mem)(unsafe.Pointer(pMem3)).Fn++
if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __812
+ goto __816
}
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr)
})(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpFunc)).FxInverse})).f(tls, pCtx1, int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc), pCtx1+48 /* &.argv */)
- goto __813
-__812:
+ goto __817
+__816:
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr)
})(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpFunc)).FxSFunc})).f(tls, pCtx1, int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc), pCtx1+48 /* &.argv */)
-__813:
+__817:
; // IMP: R-24505-23230
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError != 0) {
- goto __814
+ goto __818
}
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError > 0) {
- goto __815
+ goto __819
}
Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)))
rc = (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError
-__815:
+__819:
;
if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag != 0) {
- goto __816
+ goto __820
}
i5 = (*Op)(unsafe.Pointer(pOp + libc.UintptrFromInt32(-1)*24)).Fp1
if !(i5 != 0) {
- goto __817
+ goto __821
}
Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr(i5)*56, int64(1))
-__817:
+__821:
;
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag = U8(0)
-__816:
+__820:
;
Xsqlite3VdbeMemRelease(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)
(*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)).Fflags = U16(MEM_Null)
(*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError = 0
if !(rc != 0) {
- goto __818
+ goto __822
}
goto abort_due_to_error
-__818:
+__822:
;
-__814:
+__818:
;
goto __8
@@ -119971,32 +120006,32 @@ __161:
pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56
if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) {
- goto __819
+ goto __823
}
rc = Xsqlite3VdbeMemAggValue(tls, pMem4, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*uintptr)(unsafe.Pointer(pOp + 16)))
pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
- goto __820
-__819:
+ goto __824
+__823:
rc = Xsqlite3VdbeMemFinalize(tls, pMem4, *(*uintptr)(unsafe.Pointer(pOp + 16)))
-__820:
+__824:
;
if !(rc != 0) {
- goto __821
+ goto __825
}
Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4)))
goto abort_due_to_error
-__821:
+__825:
;
Xsqlite3VdbeChangeEncoding(tls, pMem4, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pMem4) != 0) {
- goto __822
+ goto __826
}
goto too_big
-__822:
+__826:
;
goto __8
@@ -120018,32 +120053,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 __823
+ goto __827
}
if !(rc != SQLITE_BUSY) {
- goto __824
+ goto __828
}
goto abort_due_to_error
-__824:
+__828:
;
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp + 832)) = 1
-__823:
+__827:
;
i6 = 0
pMem5 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
-__825:
+__829:
if !(i6 < 3) {
- goto __827
+ goto __831
}
Xsqlite3VdbeMemSetInt64(tls, pMem5, I64(*(*int32)(unsafe.Pointer(bp + 832 + uintptr(i6)*4))))
- goto __826
-__826:
+ goto __830
+__830:
i6++
pMem5 += 56
- goto __825
- goto __827
-__827:
+ goto __829
+ goto __831
+__831:
;
goto __8
@@ -120066,17 +120101,17 @@ __163: // Name of database file for pPager
pPager = Xsqlite3BtreePager(tls, pBt1)
eOld = Xsqlite3PagerGetJournalMode(tls, pPager)
if !(eNew == -1) {
- goto __828
+ goto __832
}
eNew = eOld
-__828:
+__832:
;
if !!(Xsqlite3PagerOkToChangeJournalMode(tls, pPager) != 0) {
- goto __829
+ goto __833
}
eNew = eOld
-__829:
+__833:
;
zFilename = Xsqlite3PagerFilename(tls, pPager, 1)
@@ -120086,18 +120121,18 @@ __829:
if !(eNew == PAGER_JOURNALMODE_WAL &&
(Xsqlite3Strlen30(tls, zFilename) == 0 ||
!(Xsqlite3PagerWalSupported(tls, pPager) != 0))) {
- goto __830
+ goto __834
}
eNew = eOld
-__830:
+__834:
;
if !(eNew != eOld &&
(eOld == PAGER_JOURNALMODE_WAL || eNew == PAGER_JOURNALMODE_WAL)) {
- goto __831
+ goto __835
}
if !(!(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) != 0) || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1) {
- goto __832
+ goto __836
}
rc = SQLITE_ERROR
Xsqlite3VdbeError(tls, p,
@@ -120109,11 +120144,11 @@ __830:
return ts + 7347 /* "out of" */
}()))
goto abort_due_to_error
- goto __833
-__832:
+ goto __837
+__836:
if !(eOld == PAGER_JOURNALMODE_WAL) {
- goto __834
+ goto __838
}
// If leaving WAL mode, close the log file. If successful, the call
// to PagerCloseWal() checkpoints and deletes the write-ahead-log
@@ -120121,29 +120156,29 @@ __832:
// after a successful return.
rc = Xsqlite3PagerCloseWal(tls, pPager, db)
if !(rc == SQLITE_OK) {
- goto __836
+ goto __840
}
Xsqlite3PagerSetJournalMode(tls, pPager, eNew)
-__836:
+__840:
;
- goto __835
-__834:
+ goto __839
+__838:
if !(eOld == PAGER_JOURNALMODE_MEMORY) {
- goto __837
+ goto __841
}
// Cannot transition directly from MEMORY to WAL. Use mode OFF
// as an intermediate
Xsqlite3PagerSetJournalMode(tls, pPager, PAGER_JOURNALMODE_OFF)
-__837:
+__841:
;
-__835:
+__839:
;
// Open a transaction on the database file. Regardless of the journal
// mode, this transaction always uses a rollback journal.
if !(rc == SQLITE_OK) {
- goto __838
+ goto __842
}
rc = Xsqlite3BtreeSetVersion(tls, pBt1, func() int32 {
if eNew == PAGER_JOURNALMODE_WAL {
@@ -120151,18 +120186,18 @@ __835:
}
return 1
}())
-__838:
+__842:
;
-__833:
+__837:
;
-__831:
+__835:
;
if !(rc != 0) {
- goto __839
+ goto __843
}
eNew = eOld
-__839:
+__843:
;
eNew = Xsqlite3PagerSetJournalMode(tls, pPager, eNew)
@@ -120172,10 +120207,10 @@ __839:
(*Mem)(unsafe.Pointer(pOut)).Fenc = U8(SQLITE_UTF8)
Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))
if !(rc != 0) {
- goto __840
+ goto __844
}
goto abort_due_to_error
-__840:
+__844:
;
goto __8
@@ -120197,10 +120232,10 @@ __164:
return uintptr(0)
}())
if !(rc != 0) {
- goto __841
+ goto __845
}
goto abort_due_to_error
-__841:
+__845:
;
goto __8
@@ -120216,17 +120251,17 @@ __165:
rc = Xsqlite3BtreeIncrVacuum(tls, pBt2)
if !(rc != 0) {
- goto __842
+ goto __846
}
if !(rc != SQLITE_DONE) {
- goto __843
+ goto __847
}
goto abort_due_to_error
-__843:
+__847:
;
rc = SQLITE_OK
goto jump_to_p2
-__842:
+__846:
;
goto __8
@@ -120248,13 +120283,13 @@ __842:
__166:
;
if !!((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __844
+ goto __848
}
Xsqlite3ExpirePreparedStatements(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp2)
- goto __845
-__844:
+ goto __849
+__848:
libc.SetBitFieldPtr16Uint32(p+208, Bft((*Op)(unsafe.Pointer(pOp)).Fp2+1), 0, 0x3)
-__845:
+__849:
;
goto __8
@@ -120297,25 +120332,25 @@ __168:
__169:
isWriteLock = U8((*Op)(unsafe.Pointer(pOp)).Fp3)
if !(isWriteLock != 0 || uint64(0) == (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ReadUncommit)) {
- goto __846
+ goto __850
}
p13 = (*Op)(unsafe.Pointer(pOp)).Fp1
rc = Xsqlite3BtreeLockTable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(p13)*32)).FpBt, (*Op)(unsafe.Pointer(pOp)).Fp2, isWriteLock)
if !(rc != 0) {
- goto __847
+ goto __851
}
if !(rc&0xFF == SQLITE_LOCKED) {
- goto __848
+ goto __852
}
z1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
Xsqlite3VdbeError(tls, p, ts+7354, libc.VaList(bp+144, z1))
-__848:
+__852:
;
goto abort_due_to_error
-__847:
+__851:
;
-__846:
+__850:
;
goto __8
@@ -120331,16 +120366,16 @@ __170:
pVTab = *(*uintptr)(unsafe.Pointer(pOp + 16))
rc = Xsqlite3VtabBegin(tls, db, pVTab)
if !(pVTab != 0) {
- goto __849
+ goto __853
}
Xsqlite3VtabImportErrmsg(tls, p, (*VTable)(unsafe.Pointer(pVTab)).FpVtab)
-__849:
+__853:
;
if !(rc != 0) {
- goto __850
+ goto __854
}
goto abort_due_to_error
-__850:
+__854:
;
goto __8
@@ -120360,17 +120395,17 @@ __171: // Name of the virtual table
zTab = Xsqlite3_value_text(tls, bp+848)
if !(zTab != 0) {
- goto __851
+ goto __855
}
rc = Xsqlite3VtabCallCreate(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, zTab, p+176)
-__851:
+__855:
;
Xsqlite3VdbeMemRelease(tls, bp+848)
if !(rc != 0) {
- goto __852
+ goto __856
}
goto abort_due_to_error
-__852:
+__856:
;
goto __8
@@ -120384,10 +120419,10 @@ __172:
(*Sqlite3)(unsafe.Pointer(db)).FnVDestroy--
if !(rc != 0) {
- goto __853
+ goto __857
}
goto abort_due_to_error
-__853:
+__857:
;
goto __8
@@ -120402,11 +120437,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 __854
+ goto __858
}
rc = SQLITE_LOCKED
goto abort_due_to_error
-__854:
+__858:
;
pModule1 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FpModule
rc = (*struct {
@@ -120414,10 +120449,10 @@ __854:
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxOpen})).f(tls, pVtab1, bp+904 /* &pVCur */)
Xsqlite3VtabImportErrmsg(tls, p, pVtab1)
if !(rc != 0) {
- goto __855
+ goto __859
}
goto abort_due_to_error
-__855:
+__859:
;
// Initialize sqlite3_vtab_cursor base class
@@ -120426,18 +120461,18 @@ __855:
// Initialize vdbe cursor object
pCur2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, 0, uint8(CURTYPE_VTAB))
if !(pCur2 != 0) {
- goto __856
+ goto __860
}
*(*uintptr)(unsafe.Pointer(pCur2 + 48)) = *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */))
(*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FnRef++
- goto __857
-__856:
+ goto __861
+__860:
;
(*struct {
f func(*libc.TLS, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxClose})).f(tls, *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */)))
goto no_mem
-__857:
+__861:
;
goto __8
@@ -120455,10 +120490,10 @@ __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 __862
}
goto no_mem
-__858:
+__862:
;
(*ValueList)(unsafe.Pointer(pRhs)).FpCsr = *(*uintptr)(unsafe.Pointer(pC30 + 48))
(*ValueList)(unsafe.Pointer(pRhs)).FpOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
@@ -120503,27 +120538,27 @@ __175:
// Invoke the xFilter method
apArg = (*Vdbe)(unsafe.Pointer(p)).FapArg
i7 = 0
-__859:
+__863:
if !(i7 < nArg) {
- goto __861
+ goto __865
}
*(*uintptr)(unsafe.Pointer(apArg + uintptr(i7)*8)) = pArgc + uintptr(i7+1)*56
- goto __860
-__860:
+ goto __864
+__864:
i7++
- goto __859
- goto __861
-__861:
+ goto __863
+ goto __865
+__865:
;
rc = (*struct {
f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule2)).FxFilter})).f(tls, pVCur1, iQuery, *(*uintptr)(unsafe.Pointer(pOp + 16 /* &.p4 */)), nArg, apArg)
Xsqlite3VtabImportErrmsg(tls, p, pVtab2)
if !(rc != 0) {
- goto __862
+ goto __866
}
goto abort_due_to_error
-__862:
+__866:
;
res13 = (*struct {
f func(*libc.TLS, uintptr) int32
@@ -120531,10 +120566,10 @@ __862:
(*VdbeCursor)(unsafe.Pointer(pCur3)).FnullRow = U8(0)
if !(res13 != 0) {
- goto __863
+ goto __867
}
goto jump_to_p2
-__863:
+__867:
;
goto __8
@@ -120558,11 +120593,11 @@ __176:
pDest2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !((*VdbeCursor)(unsafe.Pointer(pCur4)).FnullRow != 0) {
- goto __864
+ goto __868
}
Xsqlite3VdbeMemSetNull(tls, pDest2)
goto __8
-__864:
+__868:
;
pVtab3 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur4 + 48)))).FpVtab
pModule3 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab3)).FpModule
@@ -120571,40 +120606,40 @@ __864:
(*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FpOut = pDest2
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NOCHNG != 0) {
- goto __865
+ goto __869
}
Xsqlite3VdbeMemSetNull(tls, pDest2)
(*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(MEM_Null | MEM_Zero)
*(*int32)(unsafe.Pointer(pDest2)) = 0
- goto __866
-__865:
+ goto __870
+__869:
(*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pDest2)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
-__866:
+__870:
;
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr, int32) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule3)).FxColumn})).f(tls, *(*uintptr)(unsafe.Pointer(pCur4 + 48 /* &.uc */)), bp+912 /* &sContext */, (*Op)(unsafe.Pointer(pOp)).Fp2)
Xsqlite3VtabImportErrmsg(tls, p, pVtab3)
if !((*Sqlite3_context)(unsafe.Pointer(bp+912)).FisError > 0) {
- goto __867
+ goto __871
}
Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2)))
rc = (*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FisError
-__867:
+__871:
;
Xsqlite3VdbeChangeEncoding(tls, pDest2, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pDest2) != 0) {
- goto __868
+ goto __872
}
goto too_big
-__868:
+__872:
;
if !(rc != 0) {
- goto __869
+ goto __873
}
goto abort_due_to_error
-__869:
+__873:
;
goto __8
@@ -120618,10 +120653,10 @@ __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 __870
+ goto __874
}
goto __8
-__870:
+__874:
;
pVtab4 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur5 + 48)))).FpVtab
pModule4 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab4)).FpModule
@@ -120636,21 +120671,21 @@ __870:
})(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 __871
+ goto __875
}
goto abort_due_to_error
-__871:
+__875:
;
res14 = (*struct {
f func(*libc.TLS, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule4)).FxEof})).f(tls, *(*uintptr)(unsafe.Pointer(pCur5 + 48 /* &.uc */)))
if !!(res14 != 0) {
- goto __872
+ goto __876
}
// If there is data, jump to P2
goto jump_to_p2_and_check_for_interrupt
-__872:
+__876:
;
goto check_for_interrupt
@@ -120668,27 +120703,27 @@ __178:
rc = Xsqlite3VdbeChangeEncoding(tls, pName, SQLITE_UTF8)
if !(rc != 0) {
- goto __873
+ goto __877
}
goto abort_due_to_error
-__873:
+__877:
;
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer((*Sqlite3_vtab)(unsafe.Pointer(pVtab5)).FpModule)).FxRename})).f(tls, pVtab5, (*Mem)(unsafe.Pointer(pName)).Fz)
if !(isLegacy == 0) {
- goto __874
+ goto __878
}
*(*U64)(unsafe.Pointer(db + 48)) &= libc.CplUint64(uint64(SQLITE_LegacyAlter))
-__874:
+__878:
;
Xsqlite3VtabImportErrmsg(tls, p, pVtab5)
libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3)
if !(rc != 0) {
- goto __875
+ goto __879
}
goto abort_due_to_error
-__875:
+__879:
;
goto __8
@@ -120722,43 +120757,43 @@ __179:
*(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */)) = int64(0)
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __876
+ goto __880
}
goto no_mem
-__876:
+__880:
;
pVtab6 = (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab
if !(pVtab6 == uintptr(0) || (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule == uintptr(0)) {
- goto __877
+ goto __881
}
rc = SQLITE_LOCKED
goto abort_due_to_error
-__877:
+__881:
;
pModule5 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule
nArg1 = (*Op)(unsafe.Pointer(pOp)).Fp2
if !((*Sqlite3_module)(unsafe.Pointer(pModule5)).FxUpdate != 0) {
- goto __878
+ goto __882
}
vtabOnConflict = (*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict
apArg1 = (*Vdbe)(unsafe.Pointer(p)).FapArg
pX1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
i8 = 0
-__879:
+__883:
if !(i8 < nArg1) {
- goto __881
+ goto __885
}
*(*uintptr)(unsafe.Pointer(apArg1 + uintptr(i8)*8)) = pX1
pX1 += 56
- goto __880
-__880:
+ goto __884
+__884:
i8++
- goto __879
- goto __881
-__881:
+ goto __883
+ goto __885
+__885:
;
(*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = U8((*Op)(unsafe.Pointer(pOp)).Fp5)
rc = (*struct {
@@ -120767,41 +120802,41 @@ __881:
(*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = vtabOnConflict
Xsqlite3VtabImportErrmsg(tls, p, pVtab6)
if !(rc == SQLITE_OK && (*Op)(unsafe.Pointer(pOp)).Fp1 != 0) {
- goto __882
+ goto __886
}
(*Sqlite3)(unsafe.Pointer(db)).FlastRowid = *(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */))
-__882:
+__886:
;
if !(rc&0xff == SQLITE_CONSTRAINT && (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FbConstraint != 0) {
- goto __883
+ goto __887
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5) == OE_Ignore) {
- goto __885
+ goto __889
}
rc = SQLITE_OK
- goto __886
-__885:
+ goto __890
+__889:
(*Vdbe)(unsafe.Pointer(p)).FerrorAction = func() uint8 {
if int32((*Op)(unsafe.Pointer(pOp)).Fp5) == OE_Replace {
return uint8(OE_Abort)
}
return uint8((*Op)(unsafe.Pointer(pOp)).Fp5)
}()
-__886:
+__890:
;
- goto __884
-__883:
+ goto __888
+__887:
(*Vdbe)(unsafe.Pointer(p)).FnChange++
-__884:
+__888:
;
if !(rc != 0) {
- goto __887
+ goto __891
}
goto abort_due_to_error
-__887:
+__891:
;
-__878:
+__882:
;
goto __8
@@ -120826,16 +120861,16 @@ __181:
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 __888
+ goto __892
}
newMax = Xsqlite3BtreeLastPage(tls, pBt3)
if !(newMax < uint32((*Op)(unsafe.Pointer(pOp)).Fp3)) {
- goto __889
+ goto __893
}
newMax = uint32((*Op)(unsafe.Pointer(pOp)).Fp3)
-__889:
+__893:
;
-__888:
+__892:
;
*(*I64)(unsafe.Pointer(pOut)) = I64(Xsqlite3BtreeMaxPageCount(tls, pBt3, newMax))
goto __8
@@ -120895,24 +120930,24 @@ __183:
// reinitializes the relavant parts of the sqlite3_context object
pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpOut != pOut) {
- goto __890
+ goto __894
}
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpVdbe = p
(*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpOut = pOut
i9 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx2)).Fargc) - 1
-__891:
+__895:
if !(i9 >= 0) {
- goto __893
+ goto __897
}
*(*uintptr)(unsafe.Pointer(pCtx2 + 48 + uintptr(i9)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i9)*56
- goto __892
-__892:
+ goto __896
+__896:
i9--
- goto __891
- goto __893
-__893:
+ goto __895
+ goto __897
+__897:
;
-__890:
+__894:
;
(*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null)
@@ -120923,38 +120958,38 @@ __890:
// If the function returned an error, throw an exception
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError != 0) {
- goto __894
+ goto __898
}
if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError > 0) {
- goto __895
+ goto __899
}
Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut)))
rc = (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError
-__895:
+__899:
;
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 __896
+ goto __900
}
goto abort_due_to_error
-__896:
+__900:
;
-__894:
+__898:
;
// Copy the result of the function into register P3
if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&(MEM_Str|MEM_Blob) != 0) {
- goto __897
+ goto __901
}
Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))
if !(Xsqlite3VdbeMemTooBig(tls, pOut) != 0) {
- goto __898
+ goto __902
}
goto too_big
-__898:
+__902:
;
-__897:
+__901:
;
goto __8
@@ -120993,16 +121028,16 @@ __185:
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
+ goto __903
}
*(*U32)(unsafe.Pointer(p + 220 + 8*4))++
goto jump_to_p2
- goto __900
-__899:
+ goto __904
+__903:
*(*U32)(unsafe.Pointer(p + 220 + 7*4))++
-__900:
+__904:
;
goto __8
@@ -121052,67 +121087,67 @@ __187:
}
return (*Vdbe)(unsafe.Pointer(p)).FzSql
}()) != uintptr(0)) {
- goto __901
+ goto __905
}
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_LEGACY != 0) {
- goto __902
+ goto __906
}
z2 = Xsqlite3VdbeExpandSql(tls, p, zTrace)
(*struct {
f func(*libc.TLS, uintptr, uintptr)
})(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(db + 248 /* &.trace */))})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpTraceArg, z2)
Xsqlite3_free(tls, z2)
- goto __903
-__902:
+ goto __907
+__906:
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec > 1) {
- goto __904
+ goto __908
}
z3 = Xsqlite3MPrintf(tls, db, ts+7383, 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 __905
-__904:
+ goto __909
+__908:
(*struct {
f func(*libc.TLS, U32, uintptr, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(db + 248 /* &.trace */))})).f(tls, uint32(SQLITE_TRACE_STMT), (*Sqlite3)(unsafe.Pointer(db)).FpTraceArg, p, zTrace)
-__905:
+__909:
;
-__903:
+__907:
;
-__901:
+__905:
;
if !((*Op)(unsafe.Pointer(pOp)).Fp1 >= Xsqlite3Config.FiOnceResetThreshold) {
- goto __906
+ goto __910
}
if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_Trace) {
- goto __907
+ goto __911
}
goto __8
-__907:
+__911:
;
i10 = 1
-__908:
+__912:
if !(i10 < (*Vdbe)(unsafe.Pointer(p)).FnOp) {
- goto __910
+ goto __914
}
if !(int32((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr(i10)*24)).Fopcode) == OP_Once) {
- goto __911
+ goto __915
}
(*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(i10)*24)).Fp1 = 0
-__911:
+__915:
;
- goto __909
-__909:
+ goto __913
+__913:
i10++
- goto __908
- goto __910
-__910:
+ goto __912
+ goto __914
+__914:
;
(*Op)(unsafe.Pointer(pOp)).Fp1 = 0
-__906:
+__910:
;
(*Op)(unsafe.Pointer(pOp)).Fp1++
*(*U32)(unsafe.Pointer(p + 220 + 6*4))++
@@ -121157,25 +121192,25 @@ __7:
// an error of some kind.
abort_due_to_error:
if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- goto __912
+ goto __916
}
rc = SQLITE_NOMEM
- goto __913
-__912:
+ goto __917
+__916:
if !(rc == SQLITE_IOERR|int32(33)<<8) {
- goto __914
+ goto __918
}
- rc = Xsqlite3CorruptError(tls, 95878)
-__914:
+ rc = Xsqlite3CorruptError(tls, 95906)
+__918:
;
-__913:
+__917:
;
if !((*Vdbe)(unsafe.Pointer(p)).FzErrMsg == uintptr(0) && rc != SQLITE_IOERR|int32(12)<<8) {
- goto __915
+ goto __919
}
Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc)))
-__915:
+__919:
;
(*Vdbe)(unsafe.Pointer(p)).Frc = rc
Xsqlite3SystemError(tls, db, rc)
@@ -121184,46 +121219,46 @@ __915:
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 __916
+ goto __920
}
Xsqlite3OomFault(tls, db)
-__916:
+__920:
;
if !(rc == SQLITE_CORRUPT && int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0) {
- goto __917
+ goto __921
}
*(*U64)(unsafe.Pointer(db + 48)) |= U64(uint64(0x00002)) << 32
-__917:
+__921:
;
rc = SQLITE_ERROR
if !(int32(resetSchemaOnFault) > 0) {
- goto __918
+ goto __922
}
Xsqlite3ResetOneSchema(tls, db, int32(resetSchemaOnFault)-1)
-__918:
+__922:
;
// This is the only way out of this procedure. We have to
// release the mutexes on btrees that were acquired at the
// top.
vdbe_return:
-__919:
+__923:
if !(nVmStep >= nProgressLimit && (*Sqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0)) {
- goto __920
+ goto __924
}
nProgressLimit = nProgressLimit + U64((*Sqlite3)(unsafe.Pointer(db)).FnProgressOps)
if !((*struct {
f func(*libc.TLS, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxProgress})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpProgressArg) != 0) {
- goto __921
+ goto __925
}
nProgressLimit = uint64(0xffffffff) | U64(uint64(0xffffffff))<<32
rc = SQLITE_INTERRUPT
goto abort_due_to_error
-__921:
+__925:
;
- goto __919
-__920:
+ goto __923
+__924:
;
*(*U32)(unsafe.Pointer(p + 220 + 4*4)) += U32(int32(nVmStep))
Xsqlite3VdbeLeave(tls, p)
@@ -121254,11 +121289,11 @@ abort_due_to_interrupt:
}
var azType = [4]uintptr{ts + 7421, ts + 7430, ts + 7437,
- ts + 7443} /* 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 */
+ ts + 7443} /* sqlite3.c:88537: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:89761: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:89764:32 */
+var aFlag1 = [2]U16{U16(MEM_Blob), U16(MEM_Str | MEM_Term)} /* sqlite3.c:90257:24 */
+var vfsFlags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TRANSIENT_DB /* sqlite3.c:91512:20 */
//************* End of vdbe.c ***********************************************
//************* Begin file vdbeblob.c ***************************************
@@ -121289,7 +121324,7 @@ type Incrblob1 = struct {
Fdb uintptr
FzDb uintptr
FpTab uintptr
-} /* sqlite3.c:95983:9 */
+} /* sqlite3.c:96011:9 */
//************* End of vdbe.c ***********************************************
//************* Begin file vdbeblob.c ***************************************
@@ -121310,7 +121345,7 @@ type Incrblob1 = struct {
// #include "vdbeInt.h"
// Valid sqlite3_blob* handles point to Incrblob structures.
-type Incrblob = Incrblob1 /* sqlite3.c:95983:25 */
+type Incrblob = Incrblob1 /* sqlite3.c:96011: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.
@@ -121327,7 +121362,7 @@ type Incrblob = Incrblob1 /* sqlite3.c:95983: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:96013:12: */
+func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) int32 { /* sqlite3.c:96041:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -121403,7 +121438,7 @@ func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr)
}
// Open a blob handle.
-func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr, zColumn uintptr, iRow Sqlite_int64, wrFlag int32, ppBlob uintptr) int32 { /* sqlite3.c:96081:16: */
+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:96109:16: */
bp := tls.Alloc(464)
defer tls.Free(464)
@@ -121724,7 +121759,7 @@ __38:
return rc
}
-var iLn int32 = 0 /* sqlite3.c:96224:24 */
+var iLn int32 = 0 /* sqlite3.c:96252:24 */
var openBlob = [6]VdbeOpList{
{Fopcode: U8(OP_TableLock)}, // 0: Acquire a read or write lock
{Fopcode: U8(OP_OpenRead)}, // 1: Open a cursor
@@ -121733,11 +121768,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:96225:31 */
+} /* sqlite3.c:96253: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:96316:16: */
+func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:96344:16: */
var p uintptr = pBlob
var rc int32
var db uintptr
@@ -121756,14 +121791,14 @@ func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:9631
}
// 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:96337:12: */
+func blobReadWrite(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32, xCall uintptr) int32 { /* sqlite3.c:96365:12: */
var rc int32
var p uintptr = pBlob
var v uintptr
var db uintptr
if p == uintptr(0) {
- return Xsqlite3MisuseError(tls, 96349)
+ return Xsqlite3MisuseError(tls, 96377)
}
db = (*Incrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -121822,14 +121857,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:96412:16: */
+func Xsqlite3_blob_read(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* sqlite3.c:96440: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:96419:16: */
+func Xsqlite3_blob_write(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* sqlite3.c:96447:16: */
return blobReadWrite(tls, pBlob, z, n, iOffset, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, U32, U32, uintptr) int32
}{Xsqlite3BtreePutData})))
@@ -121839,7 +121874,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:96429:16: */
+func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:96457:16: */
var p uintptr = pBlob
if p != 0 && (*Incrblob)(unsafe.Pointer(p)).FpStmt != 0 {
return (*Incrblob)(unsafe.Pointer(p)).FnByte
@@ -121855,7 +121890,7 @@ func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* sqlite3.c:9642
// 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:96444:16: */
+func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int32 { /* sqlite3.c:96472:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -121864,7 +121899,7 @@ func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int3
var db uintptr
if p == uintptr(0) {
- return Xsqlite3MisuseError(tls, 96449)
+ return Xsqlite3MisuseError(tls, 96477)
}
db = (*Incrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -122051,7 +122086,7 @@ type MergeEngine1 = struct {
FpTask uintptr
FaTree uintptr
FaReadr uintptr
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
//************* End of vdbeblob.c *******************************************
//************* Begin file vdbesort.c ***************************************
@@ -122202,7 +122237,7 @@ type MergeEngine1 = struct {
// overflows. 512MiB.
// Private objects used by the sorter
-type MergeEngine = MergeEngine1 /* sqlite3.c:96638:28 */ // Merge PMAs together
+type MergeEngine = MergeEngine1 /* sqlite3.c:96666:28 */ // Merge PMAs together
type PmaReader1 = struct {
FiReadOff I64
FiEof I64
@@ -122216,10 +122251,10 @@ type PmaReader1 = struct {
F__ccgo_pad1 [4]byte
FaMap uintptr
FpIncr uintptr
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// Merge PMAs together
-type PmaReader = PmaReader1 /* sqlite3.c:96639:26 */ // Incrementally read one PMA
+type PmaReader = PmaReader1 /* sqlite3.c:96667:26 */ // Incrementally read one PMA
type PmaWriter1 = struct {
FeFWErr int32
F__ccgo_pad1 [4]byte
@@ -122230,18 +122265,18 @@ type PmaWriter1 = struct {
F__ccgo_pad2 [4]byte
FiWriteOff I64
FpFd uintptr
-} /* sqlite3.c:96640:9 */
+} /* sqlite3.c:96668:9 */
// Incrementally read one PMA
-type PmaWriter = PmaWriter1 /* sqlite3.c:96640:26 */ // Incrementally write one PMA
+type PmaWriter = PmaWriter1 /* sqlite3.c:96668:26 */ // Incrementally write one PMA
type SorterRecord1 = struct {
FnVal int32
F__ccgo_pad1 [4]byte
Fu struct{ FpNext uintptr }
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// Incrementally write one PMA
-type SorterRecord = SorterRecord1 /* sqlite3.c:96641:29 */ // A record being sorted
+type SorterRecord = SorterRecord1 /* sqlite3.c:96669:29 */ // A record being sorted
type SortSubtask1 = struct {
FpThread uintptr
FbDone int32
@@ -122254,26 +122289,26 @@ type SortSubtask1 = struct {
FxCompare SorterCompare
Ffile SorterFile
Ffile2 SorterFile
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// A record being sorted
-type SortSubtask = SortSubtask1 /* sqlite3.c:96642:28 */ // A sub-task in the sort process
+type SortSubtask = SortSubtask1 /* sqlite3.c:96670:28 */ // A sub-task in the sort process
type SorterFile1 = struct {
FpFd uintptr
FiEof I64
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// A sub-task in the sort process
-type SorterFile = SorterFile1 /* sqlite3.c:96643:27 */ // Temporary file object wrapper
+type SorterFile = SorterFile1 /* sqlite3.c:96671:27 */ // Temporary file object wrapper
type SorterList1 = struct {
FpList uintptr
FaMemory uintptr
FszPMA int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// Temporary file object wrapper
-type SorterList = SorterList1 /* sqlite3.c:96644:27 */ // In-memory list of records
+type SorterList = SorterList1 /* sqlite3.c:96672:27 */ // In-memory list of records
type IncrMerger1 = struct {
FpTask uintptr
FpMerger uintptr
@@ -122283,10 +122318,10 @@ type IncrMerger1 = struct {
FbUseThread int32
F__ccgo_pad1 [4]byte
FaFile [2]SorterFile
-} /* sqlite3.c:22073:9 */
+} /* sqlite3.c:22082:9 */
// In-memory list of records
-type IncrMerger = IncrMerger1 /* sqlite3.c:96645:27 */
+type IncrMerger = IncrMerger1 /* sqlite3.c:96673:27 */
// This object represents a single thread of control in a sort operation.
// Exactly VdbeSorter.nTask instances of this object are allocated
@@ -122317,11 +122352,11 @@ type IncrMerger = IncrMerger1 /* sqlite3.c:96645: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:96772:13 */
+type SorterCompare = uintptr /* sqlite3.c:96800: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:96947:13: */
+func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* sqlite3.c:96975:13: */
Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaAlloc)
Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaBuffer)
if (*PmaReader)(unsafe.Pointer(pReadr)).FaMap != 0 {
@@ -122338,7 +122373,7 @@ func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* sqlite3.c:96947: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:96964:12: */
+func vdbePmaReadBlob(tls *libc.TLS, p uintptr, nByte int32, ppOut uintptr) int32 { /* sqlite3.c:96992:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -122442,7 +122477,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:97058:12: */
+func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* sqlite3.c:97086:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -122482,7 +122517,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:97091:12: */
+func vdbeSorterMapFile(tls *libc.TLS, pTask uintptr, pFile uintptr, pp uintptr) int32 { /* sqlite3.c:97119: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
@@ -122497,7 +122532,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:97108:12: */
+func vdbePmaReaderSeek(tls *libc.TLS, pTask uintptr, pReadr uintptr, pFile uintptr, iOff I64) int32 { /* sqlite3.c:97136:12: */
var rc int32 = SQLITE_OK
if Xsqlite3FaultSim(tls, 201) != 0 {
@@ -122538,7 +122573,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:97155:12: */
+func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* sqlite3.c:97183:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -122584,7 +122619,7 @@ func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* sqlite3.c:97155
//
// 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:97202:12: */
+func vdbePmaReaderInit(tls *libc.TLS, pTask uintptr, pFile uintptr, iStart I64, pReadr uintptr, pnByte uintptr) int32 { /* sqlite3.c:97230:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -122607,7 +122642,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:97235:12: */
+func vdbeSorterCompareTail(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* sqlite3.c:97263: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)
@@ -122627,7 +122662,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:97262:12: */
+func vdbeSorterCompare(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* sqlite3.c:97290: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)
@@ -122639,7 +122674,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:97281:12: */
+func vdbeSorterCompareText(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* sqlite3.c:97309:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -122689,7 +122724,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:97323:12: */
+func vdbeSorterCompareInt(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* sqlite3.c:97351:12: */
var p1 uintptr = pKey1
var p2 uintptr = pKey2
var s1 int32 = int32(*(*U8)(unsafe.Pointer(p1 + 1))) // Left hand serial type
@@ -122749,7 +122784,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:97342: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:97370:21 */
// Initialize the temporary index cursor just opened as a sorter cursor.
//
@@ -122768,7 +122803,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:97406:20: */
+func Xsqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintptr) int32 { /* sqlite3.c:97434:20: */
var pgsz int32 // Page size of main database
var i int32 // Used to iterate through aTask[]
var pSorter uintptr // The new sorter
@@ -122864,7 +122899,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:97512:13: */
+func vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) { /* sqlite3.c:97540:13: */
var p uintptr
var pNext uintptr
for p = pRecord; p != 0; p = pNext {
@@ -122875,7 +122910,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:97525:13: */
+func vdbeSortSubtaskCleanup(tls *libc.TLS, db uintptr, pTask uintptr) { /* sqlite3.c:97553: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
@@ -122895,7 +122930,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:97591:12: */
+func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* sqlite3.c:97619:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -122914,14 +122949,14 @@ func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* sqlite3.c:975
}
// Launch a background thread to run xTask(pIn).
-func vdbeSorterCreateThread(tls *libc.TLS, pTask uintptr, xTask uintptr, pIn uintptr) int32 { /* sqlite3.c:97612:12: */
+func vdbeSorterCreateThread(tls *libc.TLS, pTask uintptr, xTask uintptr, pIn uintptr) int32 { /* sqlite3.c:97640: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:97625:12: */
+func vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) int32 { /* sqlite3.c:97653:12: */
var rc int32 = rcin
var i int32
@@ -122947,7 +122982,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:97655:20: */
+func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* sqlite3.c:97683: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
@@ -122972,7 +123007,7 @@ func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* sqlite3.c:976
}
// Free the MergeEngine object passed as the only argument.
-func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* sqlite3.c:97678:13: */
+func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* sqlite3.c:97706:13: */
var i int32
if pMerger != 0 {
for i = 0; i < (*MergeEngine)(unsafe.Pointer(pMerger)).FnTree; i++ {
@@ -122984,7 +123019,7 @@ func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* sqlite3.c:97678:13
// Free all resources associated with the IncrMerger object indicated by
// the first argument.
-func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:97692:13: */
+func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:97720:13: */
if pIncr != 0 {
if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 {
vdbeSorterJoinThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)
@@ -123001,7 +123036,7 @@ func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:97692:13: */
}
// Reset a sorting cursor back to its original empty state.
-func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* sqlite3.c:97709:21: */
+func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* sqlite3.c:97737:21: */
var i int32
vdbeSorterJoinAll(tls, pSorter, SQLITE_OK)
@@ -123030,7 +123065,7 @@ 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:97742:21: */
+func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* sqlite3.c:97770:21: */
var pSorter uintptr
pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48))
@@ -123049,7 +123084,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:97764:13: */
+func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { /* sqlite3.c:97792:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
*(*I64)(unsafe.Pointer(bp + 8)) = nByte
@@ -123069,7 +123104,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:97783:12: */
+func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr) int32 { /* sqlite3.c:97811:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -123093,7 +123128,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:97810:12: */
+func vdbeSortAllocUnpacked(tls *libc.TLS, pTask uintptr) int32 { /* sqlite3.c:97838: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) {
@@ -123106,7 +123141,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:97824:21: */
+func vdbeSorterMerge(tls *libc.TLS, pTask uintptr, p1 uintptr, p2 uintptr) uintptr { /* sqlite3.c:97852:21: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -123145,7 +123180,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:97866:22: */
+func vdbeSorterGetCompare(tls *libc.TLS, p uintptr) SorterCompare { /* sqlite3.c:97894: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
@@ -123163,7 +123198,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:97880:12: */
+func vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* sqlite3.c:97908:12: */
bp := tls.Alloc(512)
defer tls.Free(512)
@@ -123220,7 +123255,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:97931:13: */
+func vdbePmaWriterInit(tls *libc.TLS, pFd uintptr, p uintptr, nBuf int32, iStart I64) { /* sqlite3.c:97959: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) {
@@ -123235,7 +123270,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:97953:13: */
+func vdbePmaWriteBlob(tls *libc.TLS, p uintptr, pData uintptr, nData int32) { /* sqlite3.c:97981:13: */
var nRem int32 = nData
for nRem > 0 && (*PmaWriter)(unsafe.Pointer(p)).FeFWErr == 0 {
var nCopy int32 = nRem
@@ -123264,7 +123299,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:97986:12: */
+func vdbePmaWriterFinish(tls *libc.TLS, p uintptr, piEof uintptr) int32 { /* sqlite3.c:98014: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,
@@ -123280,7 +123315,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:98005:13: */
+func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* sqlite3.c:98033:13: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -123303,7 +123338,7 @@ func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* sqlite3.c:98005
// * 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:98026:12: */
+func vdbeSorterListToPMA(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* sqlite3.c:98054:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -123358,7 +123393,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:98090:12: */
+func vdbeMergeEngineStep(tls *libc.TLS, pMerger uintptr, pbEof uintptr) int32 { /* sqlite3.c:98118:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -123434,7 +123469,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:98161:13: */
+func vdbeSorterFlushThread(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:98189:13: */
var pTask uintptr = pCtx
var rc int32 // Return code
@@ -123445,7 +123480,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:98175:12: */
+func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* sqlite3.c:98203:12: */
var rc int32 = SQLITE_OK
var i int32
var pTask uintptr = uintptr(0) // Thread context used to create new PMA
@@ -123509,7 +123544,7 @@ func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* sqlite3.c:981
}
// Add a record to the sorter.
-func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { /* sqlite3.c:98245:20: */
+func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { /* sqlite3.c:98273:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -123625,7 +123660,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:98357:12: */
+func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:98385:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -123671,7 +123706,7 @@ func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:98357: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:98399:13: */
+func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:98427:13: */
var pIncr uintptr = pCtx
var pRet uintptr = uintptr(int64(vdbeIncrPopulate(tls, pIncr)))
(*SortSubtask)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)).FbDone = 1
@@ -123679,7 +123714,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:98409:12: */
+func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:98437:12: */
var p uintptr = pIncr
return vdbeSorterCreateThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask, *(*uintptr)(unsafe.Pointer(&struct {
@@ -123702,7 +123737,7 @@ func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:98409
// 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:98433:12: */
+func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:98461:12: */
var rc int32 = SQLITE_OK
if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 {
@@ -123736,7 +123771,7 @@ func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* sqlite3.c:98433: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:98472:12: */
+func vdbeIncrMergerNew(tls *libc.TLS, pTask uintptr, pMerger uintptr, ppOut uintptr) int32 { /* sqlite3.c:98500:12: */
var rc int32 = SQLITE_OK
var pIncr uintptr = libc.AssignPtrUintptr(ppOut, func() uintptr {
if Xsqlite3FaultSim(tls, 100) != 0 {
@@ -123763,7 +123798,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:98497:13: */
+func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:98525:13: */
(*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread = 1
*(*I64)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask + 88 + 8)) -= I64((*IncrMerger)(unsafe.Pointer(pIncr)).FmxSz)
}
@@ -123771,7 +123806,7 @@ func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* sqlite3.c:98497
// 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:98510:13: */
+func vdbeMergeEngineCompare(tls *libc.TLS, pMerger uintptr, iOut int32) { /* sqlite3.c:98538:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -123831,7 +123866,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:98592:12: */
+func vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode int32) int32 { /* sqlite3.c:98620:12: */
var rc int32 = SQLITE_OK // Return code
var i int32 // For looping over PmaReader objects
var nTree int32 // Number of subtrees to merge
@@ -123901,7 +123936,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:98668:12: */
+func vdbePmaReaderIncrMergeInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* sqlite3.c:98696:12: */
var rc int32 = SQLITE_OK
var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr
var pTask uintptr = (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask
@@ -123958,7 +123993,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:98735:13: */
+func vdbePmaReaderBgIncrInit(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:98763: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
@@ -123974,7 +124009,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:98756:12: */
+func vdbePmaReaderIncrInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* sqlite3.c:98784:12: */
var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr // Incremental merger
var rc int32 = SQLITE_OK // Return code
if pIncr != 0 {
@@ -124001,7 +124036,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:98786:12: */
+func vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset uintptr, ppOut uintptr) int32 { /* sqlite3.c:98814:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -124038,7 +124073,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:98825:12: */
+func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* sqlite3.c:98853:12: */
var nDepth int32 = 0
var nDiv I64 = int64(SORTER_MAX_MERGE_COUNT)
for nDiv < I64(nPMA) {
@@ -124054,7 +124089,7 @@ func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* sqlite3.c:98825: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:98843:12: */
+func vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32, pRoot uintptr, pLeaf uintptr) int32 { /* sqlite3.c:98871:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -124105,7 +124140,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:98899:12: */
+func vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) int32 { /* sqlite3.c:98927:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -124186,7 +124221,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:98978:12: */
+func vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) int32 { /* sqlite3.c:99006:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -124261,7 +124296,7 @@ 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:99060:20: */
+func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32 { /* sqlite3.c:99088:20: */
var pSorter uintptr
var rc int32 = SQLITE_OK // Return code
@@ -124306,7 +124341,7 @@ func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32
// SQLITE_OK success
// SQLITE_DONE end of data
// otherwise some kind of error.
-func Xsqlite3VdbeSorterNext(tls *libc.TLS, db uintptr, pCsr uintptr) int32 { /* sqlite3.c:99112:20: */
+func Xsqlite3VdbeSorterNext(tls *libc.TLS, db uintptr, pCsr uintptr) int32 { /* sqlite3.c:99140:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -124348,7 +124383,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:99150:13: */
+func vdbeSorterRowkey(tls *libc.TLS, pSorter uintptr, pnKey uintptr) uintptr { /* sqlite3.c:99178:13: */
var pKey uintptr
if (*VdbeSorter)(unsafe.Pointer(pSorter)).FbUsePMA != 0 {
var pReader uintptr
@@ -124367,7 +124402,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:99177:20: */
+func Xsqlite3VdbeSorterRowkey(tls *libc.TLS, pCsr uintptr, pOut uintptr) int32 { /* sqlite3.c:99205:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -124402,7 +124437,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:99210:20: */
+func Xsqlite3VdbeSorterCompare(tls *libc.TLS, pCsr uintptr, pVal uintptr, nKeyCol int32, pRes uintptr) int32 { /* sqlite3.c:99238:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -124494,7 +124529,7 @@ type MemJournal1 = struct {
F__ccgo_pad1 [4]byte
FpVfs uintptr
FzJournal uintptr
-} /* sqlite3.c:99703:9 */
+} /* sqlite3.c:99731:9 */
//************* End of vdbesort.c *******************************************
//************* Begin file vdbevtab.c ***************************************
@@ -124541,23 +124576,23 @@ type MemJournal1 = struct {
// #include "sqliteInt.h"
// Forward references to internal structures
-type MemJournal = MemJournal1 /* sqlite3.c:99703:27 */
+type MemJournal = MemJournal1 /* sqlite3.c:99731:27 */
type FilePoint1 = struct {
FiOffset Sqlite3_int64
FpChunk uintptr
-} /* sqlite3.c:99703:9 */
+} /* sqlite3.c:99731:9 */
-type FilePoint = FilePoint1 /* sqlite3.c:99704:26 */
+type FilePoint = FilePoint1 /* sqlite3.c:99732:26 */
type FileChunk1 = struct {
FpNext uintptr
FzChunk [8]U8
-} /* sqlite3.c:99703:9 */
+} /* sqlite3.c:99731:9 */
-type FileChunk = FileChunk1 /* sqlite3.c:99705:26 */
+type FileChunk = FileChunk1 /* sqlite3.c:99733: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:99760:12: */
+func memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:99788:12: */
var p uintptr = pJfd
var zOut uintptr = zBuf
var nRead int32 = iAmt
@@ -124604,7 +124639,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:99807:13: */
+func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* sqlite3.c:99835:13: */
var pIter uintptr
var pNext uintptr
for pIter = pFirst; pIter != 0; pIter = pNext {
@@ -124614,7 +124649,7 @@ func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* sqlite3.c:99807:13: *
}
// Flush the contents of memory to a real file on disk.
-func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:99819:12: */
+func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:99847:12: */
var rc int32
var pReal uintptr = p
var copy = *(*MemJournal)(unsafe.Pointer(p))
@@ -124652,7 +124687,7 @@ func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:99819:12:
}
// Write data to the file.
-func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:99861:12: */
+func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:99889:12: */
var p uintptr = pJfd
var nWrite int32 = iAmt
var zWrite uintptr = zBuf
@@ -124718,7 +124753,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:99934:12: */
+func memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Sqlite_int64) int32 { /* sqlite3.c:99962:12: */
var p uintptr = pJfd
if size < (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset {
@@ -124746,7 +124781,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:99964:12: */
+func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* sqlite3.c:99992:12: */
var p uintptr = pJfd
memjrnlFreeChunks(tls, (*MemJournal)(unsafe.Pointer(p)).FpFirst)
return SQLITE_OK
@@ -124756,14 +124791,14 @@ func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* sqlite3.c:99964: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:99976:12: */
+func memjrnlSync(tls *libc.TLS, pJfd uintptr, flags int32) int32 { /* sqlite3.c:100004: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:99984:12: */
+func memjrnlFileSize(tls *libc.TLS, pJfd uintptr, pSize uintptr) int32 { /* sqlite3.c:100012:12: */
var p uintptr = pJfd
*(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset
return SQLITE_OK
@@ -124778,7 +124813,7 @@ var sMemJournalMethods = sqlite3_io_methods{
FxTruncate: 0, // xTruncate
FxSync: 0, // xSync
FxFileSize: 0, // xUnfetch
-} /* sqlite3.c:99993:40 */
+} /* sqlite3.c:100021:40 */
// Open a journal file.
//
@@ -124790,7 +124825,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:100027:20: */
+func Xsqlite3JournalOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pJfd uintptr, flags int32, nSpill int32) int32 { /* sqlite3.c:100055:20: */
var p uintptr = pJfd
// Zero the file-handle object. If nSpill was passed zero, initialize
@@ -124818,20 +124853,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:100063:21: */
+func Xsqlite3MemJournalOpen(tls *libc.TLS, pJfd uintptr) { /* sqlite3.c:100091: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:100102:20: */
+func Xsqlite3JournalIsInMemory(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:100130: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:100110:20: */
+func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:100138:20: */
return func() int32 {
if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile > int32(unsafe.Sizeof(MemJournal{})) {
return (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile
@@ -124860,7 +124895,7 @@ func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* sqlite3.c:10011
// 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:100140:12: */
+func walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int32) int32 { /* sqlite3.c:100168:12: */
var pWin uintptr
for pWin = pList; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin {
var rc int32
@@ -124908,7 +124943,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:100179:28: */
+func walkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:100207:28: */
var rc int32
for 1 != 0 {
@@ -124950,7 +124985,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:100211:20: */
+func Xsqlite3WalkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:100239:20: */
if pExpr != 0 {
return walkExpr(tls, pWalker, pExpr)
}
@@ -124959,7 +124994,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:100219:20: */
+func Xsqlite3WalkExprList(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:100247:20: */
var i int32
var pItem uintptr
if p != 0 {
@@ -124988,7 +125023,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:100234:21: */
+func Xsqlite3WalkWinDefnDummyCallback(tls *libc.TLS, pWalker uintptr, p uintptr) { /* sqlite3.c:100262:21: */
_ = pWalker
_ = p
// No-op
@@ -124998,7 +125033,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:100246:20: */
+func Xsqlite3WalkSelectExpr(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:100274:20: */
if Xsqlite3WalkExprList(tls, pWalker, (*Select)(unsafe.Pointer(p)).FpEList) != 0 {
return WRC_Abort
}
@@ -125040,7 +125075,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:100279:20: */
+func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:100307:20: */
var pSrc uintptr
var i int32
var pItem uintptr
@@ -125089,7 +125124,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:100317:20: */
+func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:100345:20: */
var rc int32
if p == uintptr(0) {
return WRC_Continue
@@ -125120,13 +125155,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:100340:20: */
+func Xsqlite3WalkerDepthIncrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* sqlite3.c:100368:20: */
_ = pSelect
(*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth++
return WRC_Continue
}
-func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:100345:21: */
+func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:100373:21: */
_ = pSelect
(*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth--
}
@@ -125138,7 +125173,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:100360:20: */
+func Xsqlite3ExprWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* sqlite3.c:100388:20: */
_ = NotUsed
_ = NotUsed2
return WRC_Continue
@@ -125146,7 +125181,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:100369:20: */
+func Xsqlite3SelectWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* sqlite3.c:100397:20: */
_ = NotUsed
_ = NotUsed2
return WRC_Continue
@@ -125181,14 +125216,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:100410:12: */
+func incrAggDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:100438: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:100414:13: */
+func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* sqlite3.c:100442:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -125221,7 +125256,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:100443:13: */
+func resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pExpr uintptr, nSubquery int32) { /* sqlite3.c:100471:13: */
var pOrig uintptr // The iCol-th column of the result set
var pDup uintptr // Copy of pOrig
var db uintptr // The database connection
@@ -125267,7 +125302,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:100500:12: */
+func nameInUsingClause(tls *libc.TLS, pUsing uintptr, zCol uintptr) int32 { /* sqlite3.c:100528:12: */
if pUsing != 0 {
var k int32
for k = 0; k < (*IdList)(unsafe.Pointer(pUsing)).FnId; k++ {
@@ -125284,7 +125319,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:100517:20: */
+func Xsqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr, zDb uintptr) int32 { /* sqlite3.c:100545:20: */
var n int32
var zSpan uintptr
if int32(*(*uint8)(unsafe.Pointer(pItem + 20))&0x3>>0) != ENAME_TAB {
@@ -125310,7 +125345,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:100546:12: */
+func areDoubleQuotedStringsEnabled(tls *libc.TLS, db uintptr, pTopNC uintptr) int32 { /* sqlite3.c:100574:12: */
if (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 {
return 1
} // Always support for legacy schemas
@@ -125329,7 +125364,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:100564:24: */
+func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* sqlite3.c:100592:24: */
var n int32
var pExTab uintptr
@@ -125379,7 +125414,7 @@ func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* sqlite3.c:10
//
// 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:100613:12: */
+func lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol uintptr, pNC uintptr, pExpr uintptr) int32 { /* sqlite3.c:100641:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -126094,7 +126129,7 @@ __88:
// 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:101059:21: */
+func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int32, iCol int32) uintptr { /* sqlite3.c:101087:21: */
var p uintptr = Xsqlite3ExprAlloc(tls, db, TK_COLUMN, uintptr(0), 0)
if p != 0 {
var pItem uintptr = pSrc + 8 + uintptr(iSrc)*112
@@ -126143,7 +126178,7 @@ func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int3
// As an optimization, since the conditional is almost always false
// (because errors are rare), the conditional is moved outside of the
// function call using a macro.
-func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExpr uintptr, pError uintptr) { /* sqlite3.c:101103:13: */
+func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExpr uintptr, pError uintptr) { /* sqlite3.c:101131:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -126165,7 +126200,7 @@ func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExp
// Expression p should encode a floating point value between 1.0 and 0.0.
// Return 1024 times this value. Or return -1 if p is not a floating point
// value between 1.0 and 0.0.
-func exprProbability(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:101131:12: */
+func exprProbability(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:101159:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -126191,7 +126226,7 @@ func exprProbability(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:101131: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:101152:12: */
+func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:101180:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -126672,7 +126707,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:101610:12: */
+func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) int32 { /* sqlite3.c:101638:12: */
var i int32 // Loop counter
_ = pParse
@@ -126707,7 +126742,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:101652:12: */
+func resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintptr, pE uintptr) int32 { /* sqlite3.c:101680:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -126751,7 +126786,7 @@ func resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintptr
}
// Generate an ORDER BY or GROUP BY term out-of-range error.
-func resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int32, mx int32, pError uintptr) { /* sqlite3.c:101699:13: */
+func resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int32, mx int32, pError uintptr) { /* sqlite3.c:101727:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -126774,7 +126809,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:101727:12: */
+func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int32 { /* sqlite3.c:101755:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -126911,7 +126946,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:101840:20: */
+func Xsqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* sqlite3.c:101868:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -126957,7 +126992,7 @@ __3:
}
// Walker callback for windowRemoveExprFromSelect().
-func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:101874:12: */
+func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:101902:12: */
_ = pWalker
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) {
var pWin uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 64))
@@ -126968,7 +127003,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:101887:13: */
+func windowRemoveExprFromSelect(tls *libc.TLS, pSelect uintptr, pExpr uintptr) { /* sqlite3.c:101915:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -127000,7 +127035,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:101918:12: */
+func resolveOrderGroupBy(tls *libc.TLS, pNC uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* sqlite3.c:101946:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -127077,7 +127112,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:101981:12: */
+func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:102009:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -127376,7 +127411,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:102269:20: */
+func Xsqlite3ResolveExprNames(tls *libc.TLS, pNC uintptr, pExpr uintptr) int32 { /* sqlite3.c:102297:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -127417,7 +127452,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:102308:20: */
+func Xsqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) int32 { /* sqlite3.c:102336:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -127474,7 +127509,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:102364:21: */
+func Xsqlite3ResolveSelectNames(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* sqlite3.c:102392:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -127508,7 +127543,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:102398:20: */
+func Xsqlite3ResolveSelfReference(tls *libc.TLS, pParse uintptr, pTab uintptr, type1 int32, pExpr uintptr, pList uintptr) int32 { /* sqlite3.c:102426:20: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -127544,7 +127579,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:102458:21: */
+func Xsqlite3TableColumnAffinity(tls *libc.TLS, pTab uintptr, iCol int32) int8 { /* sqlite3.c:102486:21: */
if iCol < 0 || iCol >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) {
return int8(SQLITE_AFF_INTEGER)
}
@@ -127565,7 +127600,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:102479:21: */
+func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* sqlite3.c:102507:21: */
var op int32
for (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip|EP_IfNullRow) != U32(0) {
@@ -127608,7 +127643,7 @@ func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* sqlite3.c:1024
//
// 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:102532:21: */
+func Xsqlite3ExprAddCollateToken(tls *libc.TLS, pParse uintptr, pExpr uintptr, pCollName uintptr, dequote int32) uintptr { /* sqlite3.c:102560: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 {
@@ -127620,7 +127655,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:102548:21: */
+func Xsqlite3ExprAddCollateString(tls *libc.TLS, pParse uintptr, pExpr uintptr, zC uintptr) uintptr { /* sqlite3.c:102576:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -127631,7 +127666,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:102562:21: */
+func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* sqlite3.c:102590:21: */
for pExpr != 0 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip) != U32(0) {
pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
@@ -127642,7 +127677,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:102575:21: */
+func Xsqlite3ExprSkipCollateAndLikely(tls *libc.TLS, pExpr uintptr) uintptr { /* sqlite3.c:102603: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) {
@@ -127667,7 +127702,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:102604:24: */
+func Xsqlite3ExprCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* sqlite3.c:102632:24: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pColl uintptr = uintptr(0)
var p uintptr = pExpr
@@ -127739,7 +127774,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:102677:24: */
+func Xsqlite3ExprNNCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* sqlite3.c:102705:24: */
var p uintptr = Xsqlite3ExprCollSeq(tls, pParse, pExpr)
if p == uintptr(0) {
p = (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FpDfltColl
@@ -127749,7 +127784,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:102687:20: */
+func Xsqlite3ExprCollSeqMatch(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr) int32 { /* sqlite3.c:102715: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)
@@ -127758,7 +127793,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:102698:21: */
+func Xsqlite3CompareAffinity(tls *libc.TLS, pExpr uintptr, aff2 int8) int8 { /* sqlite3.c:102726: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
@@ -127783,7 +127818,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:102720:13: */
+func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* sqlite3.c:102748:13: */
var aff int8
aff = Xsqlite3ExprAffinity(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft)
@@ -127801,7 +127836,7 @@ func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* sqlite3.c:102720
// 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:102743:20: */
+func Xsqlite3IndexAffinityOk(tls *libc.TLS, pExpr uintptr, idx_affinity int8) int32 { /* sqlite3.c:102771:20: */
var aff int8 = comparisonAffinity(tls, pExpr)
if int32(aff) < SQLITE_AFF_TEXT {
return 1
@@ -127814,7 +127849,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:102758:11: */
+func binaryCompareP5(tls *libc.TLS, pExpr1 uintptr, pExpr2 uintptr, jumpIfNull int32) U8 { /* sqlite3.c:102786:11: */
var aff U8 = U8(Xsqlite3ExprAffinity(tls, pExpr2))
aff = U8(int32(U8(Xsqlite3CompareAffinity(tls, pExpr1, int8(aff)))) | int32(U8(jumpIfNull)))
return aff
@@ -127830,7 +127865,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:102780:24: */
+func Xsqlite3BinaryCompareCollSeq(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:102808:24: */
var pColl uintptr
if (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_Collate) != 0 {
@@ -127853,7 +127888,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:102808:24: */
+func Xsqlite3ExprCompareCollSeq(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* sqlite3.c:102836: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 {
@@ -127863,7 +127898,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:102819: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:102847:12: */
var p5 int32
var addr int32
var p4 uintptr
@@ -127890,7 +127925,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:102855:20: */
+func Xsqlite3ExprIsVector(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:102883:20: */
return libc.Bool32(Xsqlite3ExprVectorSize(tls, pExpr) > 1)
}
@@ -127898,7 +127933,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:102865:20: */
+func Xsqlite3ExprVectorSize(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:102893:20: */
var op U8 = (*Expr)(unsafe.Pointer(pExpr)).Fop
if int32(op) == TK_REGISTER {
op = (*Expr)(unsafe.Pointer(pExpr)).Fop2
@@ -127928,7 +127963,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:102894:21: */
+func Xsqlite3VectorFieldSubexpr(tls *libc.TLS, pVector uintptr, i int32) uintptr { /* sqlite3.c:102922:21: */
if Xsqlite3ExprIsVector(tls, pVector) != 0 {
@@ -127962,7 +127997,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:102930:21: */
+func Xsqlite3ExprForVectorField(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, nField int32) uintptr { /* sqlite3.c:102958:21: */
var pRet uintptr
if int32((*Expr)(unsafe.Pointer(pVector)).Fop) == TK_SELECT {
@@ -128010,7 +128045,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:102986:12: */
+func exprCodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* sqlite3.c:103014:12: */
var reg int32 = 0
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_SELECT {
reg = Xsqlite3CodeSubselect(tls, pParse, pExpr)
@@ -128034,7 +128069,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:103014:12: */
+func exprVectorRegister(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, regSelect int32, ppExpr uintptr, pRegFree uintptr) int32 { /* sqlite3.c:103042:12: */
var op U8 = (*Expr)(unsafe.Pointer(pVector)).Fop
if int32(op) == TK_REGISTER {
@@ -128063,7 +128098,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:103052:13: */
+func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, op U8, p5 U8) { /* sqlite3.c:103080:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -128151,7 +128186,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:103147:20: */
+func Xsqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) int32 { /* sqlite3.c:103175:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -128173,7 +128208,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:103168:13: */
+func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c:103196:13: */
if p != 0 {
if (*Expr)(unsafe.Pointer(p)).FnHeight > *(*int32)(unsafe.Pointer(pnHeight)) {
*(*int32)(unsafe.Pointer(pnHeight)) = (*Expr)(unsafe.Pointer(p)).FnHeight
@@ -128181,7 +128216,7 @@ func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c:103
}
}
-func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c:103175:13: */
+func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c:103203:13: */
if p != 0 {
var i int32
for i = 0; i < (*ExprList)(unsafe.Pointer(p)).FnExpr; i++ {
@@ -128190,7 +128225,7 @@ func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* sqlite3.c
}
}
-func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* sqlite3.c:103183:13: */
+func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* sqlite3.c:103211:13: */
var p uintptr
for p = pSelect; p != 0; p = (*Select)(unsafe.Pointer(p)).FpPrior {
heightOfExpr(tls, (*Select)(unsafe.Pointer(p)).FpWhere, pnHeight)
@@ -128210,7 +128245,7 @@ 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:103205:13: */
+func exprSetHeight(tls *libc.TLS, p uintptr) { /* sqlite3.c:103233:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -128237,7 +128272,7 @@ func exprSetHeight(tls *libc.TLS, p uintptr) { /* sqlite3.c:103205: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:103225:21: */
+func Xsqlite3ExprSetHeightAndFlags(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:103253:21: */
if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
return
}
@@ -128247,7 +128282,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:103235:20: */
+func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:103263:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -128274,7 +128309,7 @@ func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:103
// 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:103274:21: */
+func Xsqlite3ExprAlloc(tls *libc.TLS, db uintptr, op int32, pToken uintptr, dequote int32) uintptr { /* sqlite3.c:103302:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -128322,7 +128357,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:103322:21: */
+func Xsqlite3Expr(tls *libc.TLS, db uintptr, op int32, zToken uintptr) uintptr { /* sqlite3.c:103350:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -128337,7 +128372,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:103339:21: */
+func Xsqlite3ExprAttachSubtrees(tls *libc.TLS, db uintptr, pRoot uintptr, pLeft uintptr, pRight uintptr) { /* sqlite3.c:103367:21: */
if pRoot == uintptr(0) {
Xsqlite3ExprDelete(tls, db, pLeft)
@@ -128360,7 +128395,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:103369:21: */
+func Xsqlite3PExpr(tls *libc.TLS, pParse uintptr, op int32, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:103397:21: */
var p uintptr
p = Xsqlite3DbMallocRawNN(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(Expr{})))
if p != 0 {
@@ -128378,7 +128413,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:103394:21: */
+func Xsqlite3PExprAddSelect(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSelect uintptr) { /* sqlite3.c:103422:21: */
if pExpr != 0 {
*(*uintptr)(unsafe.Pointer(pExpr + 32)) = pSelect
*(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_xIsSelect | EP_Subquery)
@@ -128406,7 +128441,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:103424:23: */
+func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList uintptr) uintptr { /* sqlite3.c:103452:23: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -128458,7 +128493,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:103471:21: */
+func Xsqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:103499:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if pLeft == uintptr(0) {
return pRight
@@ -128477,7 +128512,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:103492:21: */
+func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr, eDistinct int32) uintptr { /* sqlite3.c:103520:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -128514,7 +128549,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:103532:21: */
+func Xsqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pDef uintptr) { /* sqlite3.c:103560:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -128546,7 +128581,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:103571:21: */
+func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n U32) { /* sqlite3.c:103599:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -128614,7 +128649,7 @@ func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n
}
// Recursively delete an expression tree.
-func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:103641:29: */
+func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:103669: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
@@ -128644,7 +128679,7 @@ func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:10
}
}
-func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:103682:21: */
+func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:103710:21: */
if p != 0 {
sqlite3ExprDeleteNN(tls, db, p)
}
@@ -128658,13 +128693,13 @@ func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:103
//
// 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:103697:21: */
+func Xsqlite3ExprDeferredDelete(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* sqlite3.c:103725: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:103705:21: */
+func Xsqlite3ExprUnmapAndDelete(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:103733:21: */
if p != 0 {
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
Xsqlite3RenameExprUnmap(tls, pParse, p)
@@ -128676,7 +128711,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:103719:12: */
+func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:103747:12: */
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_TokenOnly) != U32(0) {
return int32(uintptr(0) + 16)
}
@@ -128718,7 +128753,7 @@ func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:103719: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:103759:12: */
+func dupedExprStructSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* sqlite3.c:103787:12: */
var nSize int32
// Only one flag value allowed
@@ -128740,7 +128775,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:103790:12: */
+func dupedExprNodeSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* sqlite3.c:103818: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)))
@@ -128759,7 +128794,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:103811:12: */
+func dupedExprSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* sqlite3.c:103839:12: */
var nByte int32 = 0
if p != 0 {
nByte = dupedExprNodeSize(tls, p, flags)
@@ -128776,7 +128811,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:103830:13: */
+func exprDup(tls *libc.TLS, db uintptr, p uintptr, dupFlags int32, pzBuffer uintptr) uintptr { /* sqlite3.c:103858:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -128886,7 +128921,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:103940:21: */
+func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:103968: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))
@@ -128908,7 +128943,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:103968:12: */
+func gatherSelectWindowsCallback(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:103996: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))
@@ -128918,14 +128953,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:103979:12: */
+func gatherSelectWindowsSelectCallback(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:104007:12: */
if p == *(*uintptr)(unsafe.Pointer(pWalker + 40)) {
return WRC_Continue
}
return WRC_Prune
}
-func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* sqlite3.c:103982:13: */
+func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* sqlite3.c:104010:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -128958,7 +128993,7 @@ func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* sqlite3.c:103982: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:104011:21: */
+func Xsqlite3ExprDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* sqlite3.c:104039:21: */
if p != 0 {
return exprDup(tls, db, p, flags, uintptr(0))
@@ -128966,7 +129001,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:104015:25: */
+func Xsqlite3ExprListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* sqlite3.c:104043:25: */
var pNew uintptr
var pItem uintptr
var pOldItem uintptr
@@ -129035,7 +129070,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:104070:24: */
+func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* sqlite3.c:104098:24: */
var pNew uintptr
var i int32
var nByte int32
@@ -129088,7 +129123,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:104114:23: */
+func Xsqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:104142:23: */
var pNew uintptr
var i int32
@@ -129117,7 +129152,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:104138:23: */
+func Xsqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) uintptr { /* sqlite3.c:104166:23: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -129183,9 +129218,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:104209:35 */
+var zeroItem = ExprList_item{} /* sqlite3.c:104237:35 */
-func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr { /* sqlite3.c:104210:41: */
+func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr { /* sqlite3.c:104238:41: */
var pItem uintptr
var pList uintptr
@@ -129202,7 +129237,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:104229:41: */
+func Xsqlite3ExprListAppendGrow(tls *libc.TLS, db uintptr, pList uintptr, pExpr uintptr) uintptr { /* sqlite3.c:104257:41: */
var pItem uintptr
var pNew uintptr
*(*int32)(unsafe.Pointer(pList + 4)) *= 2
@@ -129221,7 +129256,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:104251:25: */
+func Xsqlite3ExprListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pExpr uintptr) uintptr { /* sqlite3.c:104279:25: */
var pItem uintptr
if pList == uintptr(0) {
return Xsqlite3ExprListAppendNew(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -129244,7 +129279,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:104280:25: */
+func Xsqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr, pColumns uintptr, pExpr uintptr) uintptr { /* sqlite3.c:104308:25: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -129341,7 +129376,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:104342:21: */
+func Xsqlite3ExprListSetSortOrder(tls *libc.TLS, p uintptr, iSortOrder int32, eNulls int32) { /* sqlite3.c:104370:21: */
var pItem uintptr
if p == uintptr(0) {
return
@@ -129368,7 +129403,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:104380:21: */
+func Xsqlite3ExprListSetName(tls *libc.TLS, pParse uintptr, pList uintptr, pName uintptr, dequote int32) { /* sqlite3.c:104408:21: */
if pList != 0 {
var pItem uintptr
@@ -129394,7 +129429,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:104415:21: */
+func Xsqlite3ExprListSetSpan(tls *libc.TLS, pParse uintptr, pList uintptr, zStart uintptr, zEnd uintptr) { /* sqlite3.c:104443:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if pList != 0 {
@@ -129409,7 +129444,7 @@ 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:104437:21: */
+func Xsqlite3ExprListCheckLength(tls *libc.TLS, pParse uintptr, pEList uintptr, zObject uintptr) { /* sqlite3.c:104465:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -129421,7 +129456,7 @@ func Xsqlite3ExprListCheckLength(tls *libc.TLS, pParse uintptr, pEList uintptr,
}
// Delete an entire expression list.
-func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:104453:29: */
+func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:104481:29: */
var i int32 = (*ExprList)(unsafe.Pointer(pList)).FnExpr
var pItem uintptr = pList + 8 /* &.a */
@@ -129433,7 +129468,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:104464:21: */
+func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:104492:21: */
if pList != 0 {
exprListDeleteNN(tls, db, pList)
}
@@ -129441,7 +129476,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:104472:20: */
+func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* sqlite3.c:104500:20: */
var i int32
var m U32 = U32(0)
@@ -129458,7 +129493,7 @@ func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* sqlite3.c:1044
// 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:104491:20: */
+func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int32 { /* sqlite3.c:104519:20: */
_ = NotUsed
(*Walker)(unsafe.Pointer(pWalker)).FeCode = U16(0)
return WRC_Abort
@@ -129470,7 +129505,7 @@ 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:104505:20: */
+func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* sqlite3.c:104533:20: */
if Xsqlite3StrICmp(tls, zIn, ts+7998) == 0 {
return U32(EP_IsTrue)
}
@@ -129483,7 +129518,7 @@ func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* sqlite3.c:104505
// 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:104517:20: */
+func Xsqlite3ExprIdToTrueFalse(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:104545:20: */
var v U32
if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Quoted|EP_IntValue) != U32(0)) &&
@@ -129497,7 +129532,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:104534:20: */
+func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:104562:20: */
pExpr = Xsqlite3ExprSkipCollate(tls, pExpr)
return libc.Bool32(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 8)) + 4))) == 0)
@@ -129514,7 +129549,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:104556:21: */
+func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* sqlite3.c:104584: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)
@@ -129560,7 +129595,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:104597:12: */
+func exprNodeIsConstant(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:104625: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
@@ -129635,7 +129670,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:104669:12: */
+func exprIsConst(tls *libc.TLS, p uintptr, initFlag int32, iCur int32) int32 { /* sqlite3.c:104697:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -129659,7 +129694,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:104690:20: */
+func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:104718:20: */
return exprIsConst(tls, p, 1, 0)
}
@@ -129674,7 +129709,7 @@ func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:10469
// 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:104707:20: */
+func Xsqlite3ExprIsConstantNotJoin(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:104735:20: */
return exprIsConst(tls, p, 2, 0)
}
@@ -129682,12 +129717,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:104717:20: */
+func Xsqlite3ExprIsTableConstant(tls *libc.TLS, p uintptr, iCur int32) int32 { /* sqlite3.c:104745:20: */
return exprIsConst(tls, p, 3, iCur)
}
// sqlite3WalkExpr() callback used by sqlite3ExprIsConstantOrGroupBy().
-func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:104725:12: */
+func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:104753:12: */
var pGroupBy uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var i int32
@@ -129729,7 +129764,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:104769:20: */
+func Xsqlite3ExprIsConstantOrGroupBy(tls *libc.TLS, pParse uintptr, p uintptr, pGroupBy uintptr) int32 { /* sqlite3.c:104797:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -129765,7 +129800,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:104801:20: */
+func Xsqlite3ExprIsConstantOrFunction(tls *libc.TLS, p uintptr, isInit U8) int32 { /* sqlite3.c:104829:20: */
return exprIsConst(tls, p, 4+int32(isInit), 0)
}
@@ -129774,7 +129809,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:104830:20: */
+func Xsqlite3ExprIsInteger(tls *libc.TLS, p uintptr, pValue uintptr) int32 { /* sqlite3.c:104858:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -129826,7 +129861,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:104876:20: */
+func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:104904:20: */
var op U8
for int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UPLUS || int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UMINUS {
@@ -129865,7 +129900,7 @@ func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:104876
// 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:104913:20: */
+func Xsqlite3ExprNeedsNoAffinityChange(tls *libc.TLS, p uintptr, aff int8) int32 { /* sqlite3.c:104941:20: */
var op U8
var unaryMinus int32 = 0
if int32(aff) == SQLITE_AFF_BLOB {
@@ -129918,7 +129953,7 @@ 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:104949:20: */
+func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:104977:20: */
if Xsqlite3StrICmp(tls, z, ts+8944) == 0 {
return 1
}
@@ -129936,7 +129971,7 @@ func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:104949: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:104964:15: */
+func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* sqlite3.c:104992:15: */
var p uintptr
var pSrc uintptr
var pEList uintptr
@@ -129994,7 +130029,7 @@ func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* sqlite3.c:10496
// 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:105009:13: */
+func sqlite3SetHasNullFlag(tls *libc.TLS, v uintptr, iCur int32, regHasNull int32) { /* sqlite3.c:105037:13: */
var addr1 int32
Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regHasNull)
addr1 = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, iCur)
@@ -130006,7 +130041,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:105026:12: */
+func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* sqlite3.c:105054:12: */
var pLHS uintptr
var res int32
@@ -130095,7 +130130,7 @@ func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* sqlite3.c:105
// 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:105119:20: */
+func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, prRhsHasNull uintptr, aiMap uintptr, piTab uintptr) int32 { /* sqlite3.c:105147:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -130313,7 +130348,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:105342:13: */
+func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* sqlite3.c:105370:13: */
var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft
var nVal int32 = Xsqlite3ExprVectorSize(tls, pLeft)
var pSelect uintptr
@@ -130345,7 +130380,7 @@ 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:105374:21: */
+func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpect int32) { /* sqlite3.c:105402:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -130364,7 +130399,7 @@ 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:105393:21: */
+func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* sqlite3.c:105421: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 {
@@ -130392,7 +130427,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:105427:21: */
+func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int32) { /* sqlite3.c:105455:21: */
bp := tls.Alloc(65)
defer tls.Free(65)
@@ -130587,7 +130622,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:105622:20: */
+func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* sqlite3.c:105650:20: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -130710,7 +130745,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:105744:20: */
+func Xsqlite3ExprCheckIN(tls *libc.TLS, pParse uintptr, pIn uintptr) int32 { /* sqlite3.c:105772: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 {
@@ -130747,7 +130782,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:105785:13: */
+func sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFalse int32, destIfNull int32) { /* sqlite3.c:105813:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -131128,7 +131163,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:106043:13: */
+func codeReal(tls *libc.TLS, v uintptr, z uintptr, negateFlag int32, iMem int32) { /* sqlite3.c:106071:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -131148,7 +131183,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:106061:13: */
+func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iMem int32) { /* sqlite3.c:106089:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -131194,7 +131229,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:106099:21: */
+func Xsqlite3ExprCodeLoadIndexColumn(tls *libc.TLS, pParse uintptr, pIdx uintptr, iTabCur int32, iIdxCol int32, regOut int32) { /* sqlite3.c:106127:21: */
var iTabCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iIdxCol)*2))
if int32(iTabCol) == -2 {
@@ -131209,7 +131244,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:106124:21: */
+func Xsqlite3ExprCodeGeneratedColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, regOut int32) { /* sqlite3.c:106152:21: */
var iAddr int32
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -131228,7 +131263,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:106150:21: */
+func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iTabCur int32, iCol int32, regOut int32) { /* sqlite3.c:106178:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -131279,7 +131314,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:106208:20: */
+func Xsqlite3ExprCodeGetColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, iColumn int32, iTable int32, iReg int32, p5 U8) int32 { /* sqlite3.c:106236:20: */
Xsqlite3ExprCodeGetColumnOfTable(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, pTab, iTable, iColumn, iReg)
if p5 != 0 {
@@ -131293,14 +131328,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:106229:21: */
+func Xsqlite3ExprCodeMove(tls *libc.TLS, pParse uintptr, iFrom int32, iTo int32, nReg int32) { /* sqlite3.c:106257: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:106238:13: */
+func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* sqlite3.c:106266:13: */
var p uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
if p == uintptr(0) {
return
@@ -131319,7 +131354,7 @@ func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* sqlite3.c:106
// 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:106257:12: */
+func exprCodeVector(tls *libc.TLS, pParse uintptr, p uintptr, piFreeable uintptr) int32 { /* sqlite3.c:106285:12: */
var iResult int32
var nResult int32 = Xsqlite3ExprVectorSize(tls, p)
if nResult == 1 {
@@ -131343,7 +131378,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:106287:13: */
+func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* sqlite3.c:106315: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
}
@@ -131351,7 +131386,7 @@ func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* sqlite3.c:106287: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:106297:12: */
+func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncId int32, target int32) int32 { /* sqlite3.c:106325:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -131476,7 +131511,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:106413:20: */
+func Xsqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) int32 { /* sqlite3.c:106441:20: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -132545,7 +132580,7 @@ __3:
return inReg
}
-var zAff = *(*[8]int8)(unsafe.Pointer(ts + 9363)) /* sqlite3.c:106480:29 */
+var zAff = *(*[8]int8)(unsafe.Pointer(ts + 9363)) /* sqlite3.c:106508:29 */
// Generate code that will evaluate expression pExpr just one time
// per prepared statement execution.
@@ -132562,7 +132597,7 @@ var zAff = *(*[8]int8)(unsafe.Pointer(ts + 9363)) /* sqlite3.c:106480: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:107187:20: */
+func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, regDest int32) int32 { /* sqlite3.c:107215:20: */
var p uintptr
p = (*Parse)(unsafe.Pointer(pParse)).FpConstExpr
@@ -132631,7 +132666,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:107244:20: */
+func Xsqlite3ExprCodeTemp(tls *libc.TLS, pParse uintptr, pExpr uintptr, pReg uintptr) int32 { /* sqlite3.c:107272:20: */
var r2 int32
pExpr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 &&
@@ -132656,7 +132691,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:107272:21: */
+func Xsqlite3ExprCode(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* sqlite3.c:107300:21: */
var inReg int32
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe == uintptr(0) {
@@ -132677,7 +132712,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:107296:21: */
+func Xsqlite3ExprCodeCopy(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* sqlite3.c:107324:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0)
if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
@@ -132690,7 +132725,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:107309:21: */
+func Xsqlite3ExprCodeFactorable(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* sqlite3.c:107337:21: */
if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 && Xsqlite3ExprIsConstantNotJoin(tls, pExpr) != 0 {
Xsqlite3ExprCodeRunJustOnce(tls, pParse, pExpr, target)
} else {
@@ -132716,7 +132751,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:107337:20: */
+func Xsqlite3ExprCodeExprList(tls *libc.TLS, pParse uintptr, pList uintptr, target int32, srcReg int32, flags U8) int32 { /* sqlite3.c:107365:20: */
var pItem uintptr
var i int32
var j int32
@@ -132798,7 +132833,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:107412:13: */
+func exprCodeBetween(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, xJump uintptr, jumpIfNull int32) { /* sqlite3.c:107440:13: */
bp := tls.Alloc(220)
defer tls.Free(220)
@@ -132861,7 +132896,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:107484:21: */
+func Xsqlite3ExprIfTrue(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* sqlite3.c:107512:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -133091,7 +133126,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:107626:21: */
+func Xsqlite3ExprIfFalse(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* sqlite3.c:107654:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -133339,7 +133374,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:107798:21: */
+func Xsqlite3ExprIfFalseDup(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* sqlite3.c:107826: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 {
@@ -133359,7 +133394,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:107820:12: */
+func exprCompareVariable(tls *libc.TLS, pParse uintptr, pVar uintptr, pExpr uintptr) int32 { /* sqlite3.c:107848:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -133413,7 +133448,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:107876:20: */
+func Xsqlite3ExprCompare(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, iTab int32) int32 { /* sqlite3.c:107904:20: */
var combinedFlags U32
if pA == uintptr(0) || pB == uintptr(0) {
if pB == pA {
@@ -133517,7 +133552,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:107972:20: */
+func Xsqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* sqlite3.c:108000:20: */
var i int32
if pA == uintptr(0) && pB == uintptr(0) {
return 0
@@ -133544,7 +133579,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:107991:20: */
+func Xsqlite3ExprCompareSkip(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* sqlite3.c:108019:20: */
return Xsqlite3ExprCompare(tls, uintptr(0),
Xsqlite3ExprSkipCollateAndLikely(tls, pA),
Xsqlite3ExprSkipCollateAndLikely(tls, pB),
@@ -133555,7 +133590,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:108004:12: */
+func exprImpliesNotNull(tls *libc.TLS, pParse uintptr, p uintptr, pNN uintptr, iTab int32, seenNot int32) int32 { /* sqlite3.c:108032:12: */
if Xsqlite3ExprCompare(tls, pParse, p, pNN, iTab) == 0 {
return libc.Bool32(int32((*Expr)(unsafe.Pointer(pNN)).Fop) != TK_NULL)
@@ -133681,7 +133716,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:108101:20: */
+func Xsqlite3ExprImpliesExpr(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr, iTab int32) int32 { /* sqlite3.c:108129:20: */
if Xsqlite3ExprCompare(tls, pParse, pE1, pE2, iTab) == 0 {
return 1
}
@@ -133704,7 +133739,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:108133:12: */
+func impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:108161:12: */
if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) {
return WRC_Prune
@@ -133813,7 +133848,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:108242:20: */
+func Xsqlite3ExprImpliesNonNullRow(tls *libc.TLS, p uintptr, iTab int32) int32 { /* sqlite3.c:108270:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -133847,7 +133882,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:108280:12: */
+func exprIdxCover(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:108308: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 {
@@ -133865,7 +133900,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:108301:20: */
+func Xsqlite3ExprCoveredByIndex(tls *libc.TLS, pExpr uintptr, iCur int32, pIdx uintptr) int32 { /* sqlite3.c:108329:20: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -133890,7 +133925,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:108336:12: */
+func selectRefEnter(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* sqlite3.c:108364:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
var i I64
@@ -133928,7 +133963,7 @@ __3:
return WRC_Continue
}
-func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:108356:13: */
+func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:108384:13: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
if (*RefSrcList)(unsafe.Pointer(p)).FnExclude != 0 {
@@ -133944,7 +133979,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:108373:12: */
+func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:108401:12: */
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN ||
int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_COLUMN {
var i int32
@@ -133984,7 +134019,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:108410:20: */
+func Xsqlite3ReferencesSrcList(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSrcList uintptr) int32 { /* sqlite3.c:108438:20: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -134033,7 +134068,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:108452:12: */
+func agginfoPersistExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:108480: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
@@ -134066,7 +134101,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:108488:21: */
+func Xsqlite3AggInfoPersistWalkerInit(tls *libc.TLS, pWalker uintptr, pParse uintptr) { /* sqlite3.c:108516: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 {
@@ -134079,7 +134114,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:108499:12: */
+func addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* sqlite3.c:108527:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -134096,7 +134131,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:108515:12: */
+func addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* sqlite3.c:108543:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -134114,7 +134149,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:108532:12: */
+func analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:108560:12: */
var i int32
var pNC uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pParse uintptr = (*NameContext)(unsafe.Pointer(pNC)).FpParse
@@ -134305,7 +134340,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:108670:21: */
+func Xsqlite3ExprAnalyzeAggregates(tls *libc.TLS, pNC uintptr, pExpr uintptr) { /* sqlite3.c:108698:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -134331,7 +134366,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:108688:21: */
+func Xsqlite3ExprAnalyzeAggList(tls *libc.TLS, pNC uintptr, pList uintptr) { /* sqlite3.c:108716:21: */
var pItem uintptr
var i int32
if pList != 0 {
@@ -134356,7 +134391,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:108701:20: */
+func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:108729:20: */
if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) == 0 {
return libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
}
@@ -134365,7 +134400,7 @@ func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:1087
// Deallocate a register, making available for reuse for some other
// purpose.
-func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* sqlite3.c:108712:21: */
+func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* sqlite3.c:108740:21: */
if iReg != 0 {
if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) < int32(uint64(unsafe.Sizeof([8]int32{}))/uint64(unsafe.Sizeof(int32(0)))) {
@@ -134375,7 +134410,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:108724:20: */
+func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /* sqlite3.c:108752:20: */
var i int32
var n int32
if nReg == 1 {
@@ -134393,7 +134428,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:108738:21: */
+func Xsqlite3ReleaseTempRange(tls *libc.TLS, pParse uintptr, iReg int32, nReg int32) { /* sqlite3.c:108766:21: */
if nReg == 1 {
Xsqlite3ReleaseTempReg(tls, pParse, iReg)
return
@@ -134411,7 +134446,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:108758:21: */
+func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:108786:21: */
(*Parse)(unsafe.Pointer(pParse)).FnTempReg = U8(0)
(*Parse)(unsafe.Pointer(pParse)).FnRangeReg = 0
}
@@ -134445,7 +134480,7 @@ func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:108
// 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:108818:12: */
+func isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* sqlite3.c:108846:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -134464,7 +134499,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:108840:13: */
+func renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32, zWhen uintptr, bNoDQS int32) { /* sqlite3.c:108868:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -134488,7 +134523,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:108877:13: */
+func renameFixQuotes(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32) { /* sqlite3.c:108905:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -134504,7 +134539,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:108898:13: */
+func renameReloadSchema(tls *libc.TLS, pParse uintptr, iDb int32, p5 U16) { /* sqlite3.c:108926:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
if v != 0 {
Xsqlite3ChangeCookie(tls, pParse, iDb)
@@ -134517,7 +134552,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:108911:21: */
+func Xsqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* sqlite3.c:108939:21: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -134702,7 +134737,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:109080:13: */
+func sqlite3ErrorIfNotEmpty(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zErr uintptr) { /* sqlite3.c:109108:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -134717,7 +134752,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:109100:21: */
+func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr) { /* sqlite3.c:109128:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -134863,7 +134898,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:109265:21: */
+func Xsqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) { /* sqlite3.c:109293:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -134980,7 +135015,7 @@ 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:109348:12: */
+func isRealTable(tls *libc.TLS, pParse uintptr, pTab uintptr, bDrop int32) int32 { /* sqlite3.c:109376:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -135008,7 +135043,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:109378:21: */
+func Xsqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld uintptr, pNew uintptr) { /* sqlite3.c:109406:21: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -135137,7 +135172,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:109493:26 */
+type RenameCtx = RenameCtx1 /* sqlite3.c:109521:26 */
// Remember that the parser tree element pPtr was created using
// the token pToken.
@@ -135149,7 +135184,7 @@ type RenameCtx = RenameCtx1 /* sqlite3.c:109493: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:109556:27: */
+func Xsqlite3RenameTokenMap(tls *libc.TLS, pParse uintptr, pPtr uintptr, pToken uintptr) uintptr { /* sqlite3.c:109584:27: */
var pNew uintptr
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_UNMAP {
@@ -135168,7 +135203,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:109582:21: */
+func Xsqlite3RenameTokenRemap(tls *libc.TLS, pParse uintptr, pTo uintptr, pFrom uintptr) { /* sqlite3.c:109610:21: */
var p uintptr
for p = (*Parse)(unsafe.Pointer(pParse)).FpRename; p != 0; p = (*RenameToken)(unsafe.Pointer(p)).FpNext {
@@ -135180,7 +135215,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:109596:12: */
+func renameUnmapExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:109624: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) {
@@ -135191,7 +135226,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:109609:13: */
+func renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* sqlite3.c:109637:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -135232,7 +135267,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:109644:13: */
+func unmapColumnIdlistNames(tls *libc.TLS, pParse uintptr, pIdList uintptr) { /* sqlite3.c:109672:13: */
if pIdList != 0 {
var ii int32
for ii = 0; ii < (*IdList)(unsafe.Pointer(pIdList)).FnId; ii++ {
@@ -135242,7 +135277,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:109659:12: */
+func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:109687:12: */
var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse
var i int32
if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
@@ -135274,7 +135309,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:109692:21: */
+func Xsqlite3RenameExprUnmap(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* sqlite3.c:109720:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -135296,7 +135331,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:109708:21: */
+func Xsqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr) { /* sqlite3.c:109736:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -135319,7 +135354,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:109727:13: */
+func renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) { /* sqlite3.c:109755:13: */
var pNext uintptr
var p uintptr
for p = pToken; p != 0; p = pNext {
@@ -135335,7 +135370,7 @@ 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:109745:20: */
+func renameTokenFind(tls *libc.TLS, pParse uintptr, pCtx uintptr, pPtr uintptr) uintptr { /* sqlite3.c:109773:20: */
var pp uintptr
if pPtr == uintptr(0) {
return uintptr(0)
@@ -135358,7 +135393,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:109774:12: */
+func renameColumnSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:109802:12: */
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_View|SF_CopyCte) != 0 {
return WRC_Prune
@@ -135374,7 +135409,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:109793:12: */
+func renameColumnExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:109821: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 &&
@@ -135396,7 +135431,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:109819:20: */
+func renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:109847:20: */
var pBest uintptr = (*RenameCtx)(unsafe.Pointer(pCtx)).FpList
var pToken uintptr
var pp uintptr
@@ -135418,7 +135453,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:109840:13: */
+func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType uintptr, pObject uintptr, pParse uintptr) { /* sqlite3.c:109868:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -135442,7 +135477,7 @@ func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType ui
// pEList->a[i].zName) that matches the string in zOld, extract the
// corresponding rename-token from Parse object pParse and add it
// to the RenameCtx pCtx.
-func renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList uintptr, zOld uintptr) { /* sqlite3.c:109865:13: */
+func renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList uintptr, zOld uintptr) { /* sqlite3.c:109893:13: */
if pEList != 0 {
var i int32
for i = 0; i < (*ExprList)(unsafe.Pointer(pEList)).FnExpr; i++ {
@@ -135459,7 +135494,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:109890:13: */
+func renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdList uintptr, zOld uintptr) { /* sqlite3.c:109918:13: */
if pIdList != 0 {
var i int32
for i = 0; i < (*IdList)(unsafe.Pointer(pIdList)).FnId; i++ {
@@ -135473,34 +135508,32 @@ func renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdLis
// Parse the SQL statement zSql using Parse object (*p). The Parse object
// is initialized by this function before it is used.
-func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uintptr, bTemp int32) int32 { /* sqlite3.c:109912:12: */
+func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uintptr, bTemp int32) int32 { /* sqlite3.c:109940:12: */
var rc int32
+ Xsqlite3ParseObjectInit(tls, p, db)
+ if zSql == uintptr(0) {
+ return SQLITE_NOMEM
+ }
+ if Xsqlite3_strnicmp(tls, zSql, ts+12159, 7) != 0 {
+ return Xsqlite3CorruptError(tls, 109954)
+ }
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = func() uint8 {
if bTemp != 0 {
return uint8(1)
}
return uint8(Xsqlite3FindDbName(tls, db, zDb))
}()
-
- // Parse the SQL statement passed as the first argument. If no error
- // occurs and the parse does not result in a new table, index or
- // trigger object, the database must be corrupt.
- 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)
- } else {
- rc = SQLITE_NOMEM
- }
+ rc = Xsqlite3RunParser(tls, p, zSql)
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
rc = SQLITE_NOMEM
}
if rc == SQLITE_OK &&
- (*Parse)(unsafe.Pointer(p)).FpNewTable == uintptr(0) && (*Parse)(unsafe.Pointer(p)).FpNewIndex == uintptr(0) && (*Parse)(unsafe.Pointer(p)).FpNewTrigger == uintptr(0) {
- rc = Xsqlite3CorruptError(tls, 109935)
+ ((*Parse)(unsafe.Pointer(p)).FpNewTable == uintptr(0) && (*Parse)(unsafe.Pointer(p)).FpNewIndex == uintptr(0) && (*Parse)(unsafe.Pointer(p)).FpNewTrigger == uintptr(0)) {
+ rc = Xsqlite3CorruptError(tls, 109965)
}
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(0)
@@ -135514,7 +135547,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:109963:12: */
+func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, zNew uintptr, bQuote int32) int32 { /* sqlite3.c:109993:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -135534,7 +135567,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+12159, libc.VaList(bp, zNew))
+ zQuot = Xsqlite3MPrintf(tls, db, ts+12167, libc.VaList(bp, zNew))
if zQuot == uintptr(0) {
return SQLITE_NOMEM
} else {
@@ -135584,7 +135617,7 @@ 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+12165, libc.VaList(bp+8, zBuf1,
+ Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, ts+12173, libc.VaList(bp+8, zBuf1,
func() uintptr {
if int32(*(*int8)(unsafe.Pointer((*RenameToken)(unsafe.Pointer(pBest)).Ft.Fz + uintptr((*RenameToken)(unsafe.Pointer(pBest)).Ft.Fn)))) == '\'' {
return ts + 12157 /* " " */
@@ -135620,7 +135653,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:110070:12: */
+func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:110100:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -135718,7 +135751,7 @@ func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:11
// 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:110166:13: */
+func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* sqlite3.c:110196:13: */
var pStep uintptr
// Find tokens to edit in WHEN clause
@@ -135747,7 +135780,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:110197:13: */
+func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:110227:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pIdx uintptr
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 {
@@ -135786,7 +135819,7 @@ func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:110197:13:
// It is only accessible to SQL created using sqlite3NestedParse(). It is
// not reachable from ordinary SQL passed into sqlite3_prepare() unless the
// SQLITE_TESTCTRL_INTERNAL_FUNCTIONS test setting is enabled.
-func renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110238:13: */
+func renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110268:13: */
bp := tls.Alloc(488)
defer tls.Free(488)
@@ -136129,7 +136162,7 @@ __44:
}
// Walker expression callback used by "RENAME TABLE".
-func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:110405:12: */
+func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:110435: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) &&
@@ -136140,7 +136173,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:110419:12: */
+func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* sqlite3.c:110449:12: */
var i int32
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc
@@ -136180,7 +136213,7 @@ func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32
//
// sqlite_rename_table('main', 'CREATE TABLE t1(a REFERENCES t2)','t2','t3',0)
// -> 'CREATE TABLE t1(a REFERENCES t3)'
-func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110463:13: */
+func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110493:13: */
bp := tls.Alloc(544)
defer tls.Free(544)
@@ -136314,7 +136347,7 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
return
}
-func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:110606:12: */
+func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:110636: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)
}
@@ -136347,7 +136380,7 @@ func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 {
// If there is a error in the input SQL, then raise an error, except
// if PRAGMA writable_schema=ON, then just return the input string
// unmodified following an error.
-func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110640:13: */
+func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110670:13: */
bp := tls.Alloc(488)
defer tls.Free(488)
@@ -136461,7 +136494,7 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint
// B. Else if a trigger is created and the the table that the trigger is
// attached to is in database zDb, then return 1.
// C. Otherwise return NULL.
-func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110753:13: */
+func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110783:13: */
bp := tls.Alloc(464)
defer tls.Free(464)
@@ -136533,7 +136566,7 @@ func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
//
// The value returned is a string containing the CREATE TABLE statement
// with column argv[2] removed.
-func dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110828:13: */
+func dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:110858:13: */
bp := tls.Alloc(432)
defer tls.Free(432)
@@ -136573,7 +136606,7 @@ __1:
goto __2
}
// This can happen if the sqlite_schema table is corrupt
- rc = Xsqlite3CorruptError(tls, 110856)
+ rc = Xsqlite3CorruptError(tls, 110886)
goto drop_column_done
__2:
;
@@ -136599,7 +136632,7 @@ __6:
__4:
;
- zNew = Xsqlite3MPrintf(tls, db, ts+12170, libc.VaList(bp, (int64((*RenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql))/1, zSql, zEnd))
+ zNew = Xsqlite3MPrintf(tls, db, ts+12178, 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)
@@ -136619,7 +136652,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:110893:21: */
+func Xsqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* sqlite3.c:110923:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -136697,10 +136730,10 @@ __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+12177,
+ Xsqlite3ErrorMsg(tls, pParse, ts+12185,
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 + 12205 /* "PRIMARY KEY" */
+ return ts + 12213 /* "PRIMARY KEY" */
}
return ts + 7430 /* "UNIQUE" */
}(),
@@ -136713,7 +136746,7 @@ __7:
if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) <= 1) {
goto __8
}
- Xsqlite3ErrorMsg(tls, pParse, ts+12217, libc.VaList(bp+24, zCol))
+ Xsqlite3ErrorMsg(tls, pParse, ts+12225, libc.VaList(bp+24, zCol))
goto exit_drop_column
__8:
;
@@ -136733,11 +136766,11 @@ __9:
renameFixQuotes(tls, pParse, zDb, libc.Bool32(iDb == 1))
Xsqlite3NestedParse(tls, pParse,
- ts+12265, libc.VaList(bp+32, zDb, iDb, iCol, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+12273, 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+12386, 1)
+ renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+12394, 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) {
@@ -136852,16 +136885,16 @@ exit_drop_column:
}
// Register built-in functions used to help implement ALTER TABLE
-func Xsqlite3AlterFunctions(tls *libc.TLS) { /* sqlite3.c:111035:21: */
+func Xsqlite3AlterFunctions(tls *libc.TLS) { /* sqlite3.c:111065: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 + 12404},
- {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12425},
- {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12445},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12464},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12483}} /* sqlite3.c:111036:18 */
+ {FnArg: int8(9), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12412},
+ {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12433},
+ {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12453},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12472},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12491}} /* sqlite3.c:111066:18 */
//************* End of alter.c **********************************************
//************* Begin file analyze.c ****************************************
@@ -137017,7 +137050,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:111214:13: */
+func openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zWhere uintptr, zWhereType uintptr) { /* sqlite3.c:111244:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -137058,7 +137091,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+12506, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, aTable[i].FzCols))
+ ts+12514, 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)
}
@@ -137070,10 +137103,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+12529,
+ ts+12537,
libc.VaList(bp+24, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere))
} else if (*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 {
- Xsqlite3NestedParse(tls, pParse, ts+12559, libc.VaList(bp+56, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab))
+ Xsqlite3NestedParse(tls, pParse, ts+12567, 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)
@@ -137094,10 +137127,10 @@ var aTable = [3]struct {
FzName uintptr
FzCols uintptr
}{
- {FzName: ts + 12577 /* "sqlite_stat1" */, FzCols: ts + 12590 /* "tbl,idx,stat" */},
- {FzName: ts + 12603 /* "sqlite_stat4" */, FzCols: ts + 12616 /* "tbl,idx,neq,nlt,..." */},
- {FzName: ts + 12644 /* "sqlite_stat3" */},
-} /* sqlite3.c:111224:5 */
+ {FzName: ts + 12585 /* "sqlite_stat1" */, FzCols: ts + 12598 /* "tbl,idx,stat" */},
+ {FzName: ts + 12611 /* "sqlite_stat4" */, FzCols: ts + 12624 /* "tbl,idx,neq,nlt,..." */},
+ {FzName: ts + 12652 /* "sqlite_stat3" */},
+} /* sqlite3.c:111254:5 */
// Recommended number of samples for sqlite_stat4
@@ -137124,14 +137157,14 @@ type StatAccum1 = struct {
FnMaxEqZero int32
FiGet int32
Fa uintptr
-} /* sqlite3.c:111312:9 */
+} /* sqlite3.c:111342: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:111312:26 */
+type StatAccum = StatAccum1 /* sqlite3.c:111342:26 */
type StatSample1 = struct {
FanEq uintptr
FanDLt uintptr
@@ -137142,12 +137175,12 @@ type StatSample1 = struct {
F__ccgo_pad1 [3]byte
FiCol int32
FiHash U32
-} /* sqlite3.c:111312:9 */
+} /* sqlite3.c:111342:9 */
-type StatSample = StatSample1 /* sqlite3.c:111313:27 */
+type StatSample = StatSample1 /* sqlite3.c:111343:27 */
// Reclaim memory used by a StatSample
-func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:111354:13: */
+func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:111384:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -137156,7 +137189,7 @@ func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:111354:13:
}
// Initialize the BLOB value of a ROWID
-func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr) { /* sqlite3.c:111366:13: */
+func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr) { /* sqlite3.c:111396:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -137171,7 +137204,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:111382:13: */
+func sampleSetRowidInt64(tls *libc.TLS, db uintptr, p uintptr, iRowid I64) { /* sqlite3.c:111412:13: */
if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 {
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24)))
@@ -137181,7 +137214,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:111395:13: */
+func sampleCopy(tls *libc.TLS, p uintptr, pTo uintptr, pFrom uintptr) { /* sqlite3.c:111425: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
@@ -137196,7 +137229,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:111413:13: */
+func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:111443:13: */
var p uintptr = pOld
if (*StatAccum)(unsafe.Pointer(p)).FmxSample != 0 {
var i int32
@@ -137231,7 +137264,7 @@ func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* sqlite3.c:111413: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:111448:13: */
+func statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:111478:13: */
var p uintptr
var nCol int32 // Number of columns in index being sampled
var nKeyCol int32 // Number of key columns
@@ -137326,7 +137359,7 @@ var statInitFuncdef = FuncDef{
FnArg: int8(4), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 12657} /* sqlite3.c:111534:22 */
+ FzName: ts + 12665} /* sqlite3.c:111564:22 */
// pNew and pOld are both candidate non-periodic samples selected for
// the same column (pNew->iCol==pOld->iCol). Ignoring this column and
@@ -137337,7 +137370,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:111558:12: */
+func sampleIsBetterPost(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* sqlite3.c:111588:12: */
var nCol int32 = (*StatAccum)(unsafe.Pointer(pAccum)).FnCol
var i int32
@@ -137359,7 +137392,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:111582:12: */
+func sampleIsBetter(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* sqlite3.c:111612: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))
@@ -137377,7 +137410,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:111605:13: */
+func sampleInsert(tls *libc.TLS, p uintptr, pNew uintptr, nEqZero int32) { /* sqlite3.c:111635:13: */
var pSample uintptr
var i int32
var pOld uintptr
@@ -137520,7 +137553,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:111697:13: */
+func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* sqlite3.c:111727:13: */
var i int32
// Check if any samples from the aBest[] array should be pushed
@@ -137572,7 +137605,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:111749:13: */
+func statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:111779:13: */
var i int32
// The three function arguments
@@ -137644,7 +137677,7 @@ var statPushFuncdef = FuncDef{
FnArg: int8(2 + IsStat4),
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 12667} /* sqlite3.c:111824:22 */
+ FzName: ts + 12675} /* sqlite3.c:111854:22 */
// Implementation of the stat_get(P,J) SQL function. This routine is
// used to query statistical information that has been gathered into
@@ -137663,7 +137696,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:111861:13: */
+func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:111891:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -137697,7 +137730,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+12677,
+ Xsqlite3_str_appendf(tls, bp+24, ts+12685,
libc.VaList(bp, func() uint64 {
if (*StatAccum)(unsafe.Pointer(p)).FnSkipAhead != 0 {
return U64((*StatAccum)(unsafe.Pointer(p)).FnEst)
@@ -137707,7 +137740,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+12682, libc.VaList(bp+8, iVal))
+ Xsqlite3_str_appendf(tls, bp+24, ts+12690, libc.VaList(bp+8, iVal))
}
Xsqlite3ResultStrAccum(tls, context, bp+24)
@@ -137750,7 +137783,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+12688, libc.VaList(bp+16, U64(*(*TRowcnt)(unsafe.Pointer(aCnt + uintptr(i)*4)))))
+ Xsqlite3_str_appendf(tls, bp+56, ts+12696, 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--
@@ -137764,9 +137797,9 @@ var statGetFuncdef = FuncDef{
FnArg: int8(1 + IsStat4),
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 12694} /* sqlite3.c:111958:22 */
+ FzName: ts + 12702} /* sqlite3.c:111988:22 */
-func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, regOut int32) { /* sqlite3.c:111970:13: */
+func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, regOut int32) { /* sqlite3.c:112000:13: */
Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Integer, iParam, regStat+1)
Xsqlite3VdbeAddFunctionCall(tls, pParse, 0, regStat, regOut, 1+IsStat4,
@@ -137775,7 +137808,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:112011:13: */
+func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr, iStatCur int32, iMem int32, iTab int32) { /* sqlite3.c:112041: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
@@ -137811,7 +137844,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+12703, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
+ if Xsqlite3_strlike(tls, ts+12711, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
// Do not gather statistics on system tables
return
}
@@ -137829,7 +137862,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+12577, uint64(13))
+ libc.Xmemcpy(tls, (*Table)(unsafe.Pointer(pStat1)).FzName, ts+12585, 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)
@@ -138062,7 +138095,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+12713, 0)
+ Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+12721, 0)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid)
Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid)
Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -6)
@@ -138124,7 +138157,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+12713, 0)
+ Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+12721, 0)
Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid)
Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid)
Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND))
@@ -138135,7 +138168,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:112373:13: */
+func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:112403:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if v != 0 {
Xsqlite3VdbeAddOp1(tls, v, OP_LoadAnalysis, iDb)
@@ -138143,7 +138176,7 @@ func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:11237
}
// Generate code that will do an analysis of an entire database
-func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:112383:13: */
+func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:112413: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
@@ -138168,7 +138201,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:112410:13: */
+func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) { /* sqlite3.c:112440:13: */
var iDb int32
var iStatCur int32
@@ -138177,9 +138210,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+12717)
+ openStatTable(tls, pParse, iDb, iStatCur, (*Index)(unsafe.Pointer(pOnlyIdx)).FzName, ts+12725)
} else {
- openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12721)
+ openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12729)
}
analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*Parse)(unsafe.Pointer(pParse)).FnMem+1, (*Parse)(unsafe.Pointer(pParse)).FnTab)
loadAnalysis(tls, pParse, iDb)
@@ -138195,7 +138228,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:112441:21: */
+func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* sqlite3.c:112471:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -138258,16 +138291,16 @@ func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
type analysisInfo = struct {
Fdb uintptr
FzDatabase uintptr
-} /* sqlite3.c:112493:9 */
+} /* sqlite3.c:112523:9 */
// Used to pass information from the analyzer reader through to the
// callback routine.
-type AnalysisInfo = analysisInfo /* sqlite3.c:112493:29 */
+type AnalysisInfo = analysisInfo /* sqlite3.c:112523: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:112504:13: */
+func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, aLog uintptr, pIndex uintptr) { /* sqlite3.c:112534:13: */
var z uintptr = zIntArray
var c int32
var i int32
@@ -138296,15 +138329,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+12725, z) == 0 {
+ if Xsqlite3_strglob(tls, ts+12733, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 2, 0x4)
- } else if Xsqlite3_strglob(tls, ts+12736, z) == 0 {
+ } else if Xsqlite3_strglob(tls, ts+12744, 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+12746, z) == 0 {
+ } else if Xsqlite3_strglob(tls, ts+12754, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 6, 0x40)
}
for int32(*(*int8)(unsafe.Pointer(z))) != 0 && int32(*(*int8)(unsafe.Pointer(z))) != ' ' {
@@ -138326,7 +138359,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:112577:12: */
+func analysisLoader(tls *libc.TLS, pData uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* sqlite3.c:112607:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -138388,7 +138421,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:112640:21: */
+func Xsqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) { /* sqlite3.c:112670:21: */
if (*Index)(unsafe.Pointer(pIdx)).FaSample != 0 {
var j int32
for j = 0; j < (*Index)(unsafe.Pointer(pIdx)).FnSample; j++ {
@@ -138405,7 +138438,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:112665:13: */
+func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:112695:13: */
if pIdx != 0 {
var aSample uintptr = (*Index)(unsafe.Pointer(pIdx)).FaSample
var pFinal uintptr = aSample + uintptr((*Index)(unsafe.Pointer(pIdx)).FnSample-1)*40
@@ -138463,7 +138496,7 @@ func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:112665: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:112724:14: */
+func findIndexOrPrimaryKey(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* sqlite3.c:112754:14: */
var pIdx uintptr = Xsqlite3FindIndex(tls, db, zName, zDb)
if pIdx == uintptr(0) {
var pTab uintptr = Xsqlite3FindTable(tls, db, zName, zDb)
@@ -138484,7 +138517,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:112749:12: */
+func loadStatTbl(tls *libc.TLS, db uintptr, zSql1 uintptr, zSql2 uintptr, zDb uintptr) int32 { /* sqlite3.c:112779:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -138620,15 +138653,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:112870:12: */
+func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* sqlite3.c:112900:12: */
var rc int32 = SQLITE_OK // Result codes from subroutines
var pStat4 uintptr
- if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+12603, zDb)) != uintptr(0) &&
+ if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+12611, zDb)) != uintptr(0) &&
int32((*Table)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM {
rc = loadStatTbl(tls, db,
- ts+12758,
- ts+12812,
+ ts+12766,
+ ts+12820,
zDb)
}
return rc
@@ -138652,7 +138685,7 @@ func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* sqlite3.c:1128
// 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:112908:20: */
+func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* sqlite3.c:112938:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -138680,10 +138713,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+12577, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 &&
+ if libc.AssignUintptr(&pStat1, Xsqlite3FindTable(tls, db, ts+12585, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 &&
int32((*Table)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM {
zSql = Xsqlite3MPrintf(tls, db,
- ts+12864, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase))
+ ts+12872, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase))
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
} else {
@@ -138759,7 +138792,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:113016:12: */
+func resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) int32 { /* sqlite3.c:113046:12: */
var rc int32 = SQLITE_OK
if pExpr != 0 {
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_ID {
@@ -138773,7 +138806,7 @@ 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:113033:20: */
+func Xsqlite3DbIsNamed(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) int32 { /* sqlite3.c:113063:20: */
return libc.Bool32(Xsqlite3StrICmp(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zName) == 0 ||
iDb == 0 && Xsqlite3StrICmp(tls, ts+7684, zName) == 0)
}
@@ -138791,7 +138824,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:113055:13: */
+func attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:113085:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -138858,7 +138891,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+12905, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB)
+ rc = Xsqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)), ts+12913, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB)
goto __4
__3:
// This is a real ATTACH
@@ -138871,7 +138904,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+12908,
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12916,
libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
goto attach_error
__7:
@@ -138885,7 +138918,7 @@ __8:
if !(Xsqlite3DbIsNamed(tls, db, i, zName) != 0) {
goto __11
}
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12945, libc.VaList(bp+8, zName))
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12953, libc.VaList(bp+8, zName))
goto attach_error
__11:
;
@@ -138956,7 +138989,7 @@ __4:
goto __18
}
rc = SQLITE_ERROR
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12975, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12983, 0)
goto __19
__18:
if !(rc == SQLITE_OK) {
@@ -138973,7 +139006,7 @@ __21:
goto __23
}
*(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db,
- ts+13004, 0)
+ ts+13012, 0)
rc = SQLITE_ERROR
__23:
;
@@ -139049,7 +139082,7 @@ __30:
if !(*(*uintptr)(unsafe.Pointer(bp + 56)) == uintptr(0)) {
goto __32
}
- *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+13072, libc.VaList(bp+16, zFile))
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+13080, libc.VaList(bp+16, zFile))
__32:
;
__31:
@@ -139084,7 +139117,7 @@ __34:
// DETACH DATABASE x
//
// SELECT sqlite_detach(x)
-func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:113248:13: */
+func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:113278:13: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -139137,14 +139170,14 @@ __4:
if !(i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb) {
goto __7
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13100, libc.VaList(bp, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13108, libc.VaList(bp, zName))
goto detach_error
__7:
;
if !(i < 2) {
goto __8
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13121, libc.VaList(bp+8, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13129, libc.VaList(bp+8, zName))
goto detach_error
__8:
;
@@ -139152,7 +139185,7 @@ __8:
Xsqlite3BtreeIsInBackup(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) != 0) {
goto __9
}
- Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13147, libc.VaList(bp+16, zName))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13155, libc.VaList(bp+16, zName))
goto detach_error
__9:
;
@@ -139189,7 +139222,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:113310:13: */
+func codeAttach(tls *libc.TLS, pParse uintptr, type1 int32, pFunc uintptr, pAuthArg uintptr, pFilename uintptr, pDbname uintptr, pKey uintptr) { /* sqlite3.c:113340:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -139268,7 +139301,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:113382:21: */
+func Xsqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) { /* sqlite3.c:113412:21: */
codeAttach(tls, pParse, SQLITE_DETACH, uintptr(unsafe.Pointer(&detach_func)), pDbname, uintptr(0), uintptr(0), pDbname)
}
@@ -139276,12 +139309,12 @@ var detach_func = FuncDef{
FnArg: int8(1), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 13169} /* sqlite3.c:113383:24 */
+ FzName: ts + 13177} /* sqlite3.c:113413: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:113402:21: */
+func Xsqlite3Attach(tls *libc.TLS, pParse uintptr, p uintptr, pDbname uintptr, pKey uintptr) { /* sqlite3.c:113432:21: */
codeAttach(tls, pParse, SQLITE_ATTACH, uintptr(unsafe.Pointer(&attach_func)), p, p, pDbname, pKey)
}
@@ -139289,10 +139322,10 @@ var attach_func = FuncDef{
FnArg: int8(3), // nArg
FfuncFlags: U32(SQLITE_UTF8), // pNext
FxSFunc: 0, // xValue, xInverse
- FzName: ts + 13183} /* sqlite3.c:113403:24 */
+ FzName: ts + 13191} /* sqlite3.c:113433:24 */
// Expression callback used by sqlite3FixAAAA() routines.
-func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:113421:12: */
+func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:113451:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -139304,7 +139337,7 @@ func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:113
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+13197, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType))
+ Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, ts+13205, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType))
return WRC_Abort
}
}
@@ -139312,7 +139345,7 @@ func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:113
}
// Select callback used by sqlite3FixAAAA() routines.
-func fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) int32 { /* sqlite3.c:113438:12: */
+func fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) int32 { /* sqlite3.c:113468:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -139337,7 +139370,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+13221,
+ ts+13229,
libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType, (*DbFixer)(unsafe.Pointer(pFix)).FpName, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase))
return WRC_Abort
}
@@ -139373,7 +139406,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:113481:21: */
+func Xsqlite3FixInit(tls *libc.TLS, pFix uintptr, pParse uintptr, iDb int32, zType uintptr, pName uintptr) { /* sqlite3.c:113511:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
(*DbFixer)(unsafe.Pointer(pFix)).FpParse = pParse
@@ -139409,7 +139442,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:113519:20: */
+func Xsqlite3FixSrcList(tls *libc.TLS, pFix uintptr, pList uintptr) int32 { /* sqlite3.c:113549:20: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -139424,15 +139457,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:113533:20: */
+func Xsqlite3FixSelect(tls *libc.TLS, pFix uintptr, pSelect uintptr) int32 { /* sqlite3.c:113563:20: */
return Xsqlite3WalkSelect(tls, pFix+8, pSelect)
}
-func Xsqlite3FixExpr(tls *libc.TLS, pFix uintptr, pExpr uintptr) int32 { /* sqlite3.c:113539:20: */
+func Xsqlite3FixExpr(tls *libc.TLS, pFix uintptr, pExpr uintptr) int32 { /* sqlite3.c:113569:20: */
return Xsqlite3WalkExpr(tls, pFix+8, pExpr)
}
-func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { /* sqlite3.c:113548:20: */
+func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { /* sqlite3.c:113578: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 ||
@@ -139522,7 +139555,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:113652:16: */
+func Xsqlite3_set_authorizer(tls *libc.TLS, db uintptr, xAuth uintptr, pArg uintptr) int32 { /* sqlite3.c:113682:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxAuth = xAuth
(*Sqlite3)(unsafe.Pointer(db)).FpAuthArg = pArg
@@ -139535,8 +139568,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:113672:13: */
- Xsqlite3ErrorMsg(tls, pParse, ts+13267, 0)
+func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113702:13: */
+ Xsqlite3ErrorMsg(tls, pParse, ts+13275, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR
}
@@ -139547,7 +139580,7 @@ func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:11367
// 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:113686:20: */
+func Xsqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintptr, iDb int32) int32 { /* sqlite3.c:113716:20: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -139562,11 +139595,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+13290, libc.VaList(bp, zTab, zCol))
+ var z uintptr = Xsqlite3_mprintf(tls, ts+13298, libc.VaList(bp, zTab, zCol))
if (*Sqlite3)(unsafe.Pointer(db)).FnDb > 2 || iDb != 0 {
- z = Xsqlite3_mprintf(tls, ts+13296, libc.VaList(bp+16, zDb, z))
+ z = Xsqlite3_mprintf(tls, ts+13304, libc.VaList(bp+16, zDb, z))
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13302, libc.VaList(bp+32, z))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13310, libc.VaList(bp+32, z))
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH
} else if rc != SQLITE_IGNORE && rc != SQLITE_OK {
sqliteAuthBadReturnCode(tls, pParse)
@@ -139581,7 +139614,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:113722:21: */
+func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uintptr, pTabList uintptr) { /* sqlite3.c:113752: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
@@ -139630,7 +139663,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:113779:20: */
+func Xsqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr, zArg2 uintptr, zArg3 uintptr) int32 { /* sqlite3.c:113809:20: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var rc int32
@@ -139652,7 +139685,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+13329, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13337, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH
} else if rc != SQLITE_OK && rc != SQLITE_IGNORE {
rc = SQLITE_DENY
@@ -139664,7 +139697,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:113828:21: */
+func Xsqlite3AuthContextPush(tls *libc.TLS, pParse uintptr, pContext uintptr, zContext uintptr) { /* sqlite3.c:113858:21: */
(*AuthContext)(unsafe.Pointer(pContext)).FpParse = pParse
(*AuthContext)(unsafe.Pointer(pContext)).FzAuthContext = (*Parse)(unsafe.Pointer(pParse)).FzAuthContext
@@ -139673,7 +139706,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:113843:21: */
+func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* sqlite3.c:113873: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)
@@ -139688,7 +139721,7 @@ func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* sqlite3.c:1138
// 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:113902:29: */
+func lockTable(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* sqlite3.c:113932:29: */
var pToplevel uintptr
var i int32
var nBytes int32
@@ -139722,7 +139755,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:113938:21: */
+func Xsqlite3TableLock(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* sqlite3.c:113968:21: */
if iDb == 1 {
return
}
@@ -139734,7 +139767,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:113954:13: */
+func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113984:13: */
var i int32
var pVdbe uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -139758,7 +139791,7 @@ func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113954: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:113993:21: */
+func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:114023:21: */
var db uintptr
var v uintptr
@@ -139911,7 +139944,7 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:113993: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:114164:21: */
+func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:114194:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -139962,7 +139995,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:114219:22: */
+func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintptr) uintptr { /* sqlite3.c:114249:22: */
var p uintptr = uintptr(0)
var i int32
@@ -139986,14 +140019,14 @@ 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+9371, 7) == 0 {
if i == 1 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13344+7) == 0 ||
- Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13363+7) == 0 ||
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13352+7) == 0 ||
+ Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13371+7) == 0 ||
Xsqlite3StrICmp(tls, zName+uintptr(7), ts+7196+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8,
- ts+13377)
+ ts+13385)
}
} else {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13363+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13371+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i)*32)).FpSchema+8,
ts+7196)
}
@@ -140019,11 +140052,11 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
}
}
if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+9371, 7) == 0 {
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13363+7) == 0 {
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13371+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+7196)
- } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13344+7) == 0 {
+ } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13352+7) == 0 {
p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8,
- ts+13377)
+ ts+13385)
}
}
}
@@ -140038,7 +140071,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:114297:22: */
+func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr, zDbase uintptr) uintptr { /* sqlite3.c:114327:22: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -140059,7 +140092,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+13396, 7) == 0 {
+ if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+13404, 7) == 0 {
pMod = Xsqlite3PragmaVtabRegister(tls, db, zName)
}
if pMod != 0 && Xsqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 {
@@ -140078,9 +140111,9 @@ 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 + 13404 /* "no such view" */
+ zMsg = ts + 13412 /* "no such view" */
} else {
- zMsg = ts + 13417 /* "no such table" */
+ zMsg = ts + 13425 /* "no such table" */
}
if zDbase != 0 {
Xsqlite3ErrorMsg(tls, pParse, ts+7879, libc.VaList(bp, zMsg, zDbase, zName))
@@ -140101,7 +140134,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:114360:22: */
+func Xsqlite3LocateTableItem(tls *libc.TLS, pParse uintptr, flags U32, p uintptr) uintptr { /* sqlite3.c:114390:22: */
var zDb uintptr
if (*SrcItem)(unsafe.Pointer(p)).FpSchema != 0 {
@@ -140115,13 +140148,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:114380:27: */
+func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:114410:27: */
if Xsqlite3_strnicmp(tls, zName, ts+9371, 7) == 0 {
if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+7196+7) == 0 {
- return ts + 13363 /* "sqlite_schema" */
+ return ts + 13371 /* "sqlite_schema" */
}
- if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13377+7) == 0 {
- return ts + 13344 /* "sqlite_temp_sche..." */
+ if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13385+7) == 0 {
+ return ts + 13352 /* "sqlite_temp_sche..." */
}
}
return zName
@@ -140137,7 +140170,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:114404:22: */
+func Xsqlite3FindIndex(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* sqlite3.c:114434:22: */
var p uintptr = uintptr(0)
var i int32
// All mutexes are required for schema access. Make sure we hold them.
@@ -140164,7 +140197,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:114424:21: */
+func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:114454:21: */
Xsqlite3DeleteIndexSamples(tls, db, p)
Xsqlite3ExprDelete(tls, db, (*Index)(unsafe.Pointer(p)).FpPartIdxWhere)
Xsqlite3ExprListDelete(tls, db, (*Index)(unsafe.Pointer(p)).FaColExpr)
@@ -140180,7 +140213,7 @@ func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:1144
// 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:114444:21: */
+func Xsqlite3UnlinkAndDeleteIndex(tls *libc.TLS, db uintptr, iDb int32, zIdxName uintptr) { /* sqlite3.c:114474:21: */
var pIndex uintptr
var pHash uintptr
@@ -140212,7 +140245,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:114477:21: */
+func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* sqlite3.c:114507:21: */
var i int32
var j int32
for i = libc.AssignInt32(&j, 2); i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -140238,7 +140271,7 @@ func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* sqlite3.c:114
// 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:114504:21: */
+func Xsqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) { /* sqlite3.c:114534:21: */
var i int32
if iDb >= 0 {
@@ -140259,7 +140292,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:114528:21: */
+func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* sqlite3.c:114558:21: */
var i int32
Xsqlite3BtreeEnterAll(tls, db)
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -140281,14 +140314,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:114552:21: */
+func Xsqlite3CommitInternalChanges(tls *libc.TLS, db uintptr) { /* sqlite3.c:114582: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:114561:21: */
+func Xsqlite3ColumnSetExpr(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, pExpr uintptr) { /* sqlite3.c:114591:21: */
var pList uintptr
pList = *(*uintptr)(unsafe.Pointer(pTab + 64 + 16 /* &.pDfltList */))
@@ -140311,7 +140344,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:114587:21: */
+func Xsqlite3ColumnExpr(tls *libc.TLS, pTab uintptr, pCol uintptr) uintptr { /* sqlite3.c:114617:21: */
if int32((*Column)(unsafe.Pointer(pCol)).FiDflt) == 0 {
return uintptr(0)
}
@@ -140328,7 +140361,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:114598:21: */
+func Xsqlite3ColumnSetColl(tls *libc.TLS, db uintptr, pCol uintptr, zColl uintptr) { /* sqlite3.c:114628:21: */
var nColl I64
var n I64
var zNew uintptr
@@ -140347,7 +140380,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:114623:27: */
+func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* sqlite3.c:114653:27: */
var z uintptr
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASCOLL == 0 {
return uintptr(0)
@@ -140366,7 +140399,7 @@ func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* sqlite3.c:1146
// 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:114638:21: */
+func Xsqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:114668:21: */
var i int32
var pCol uintptr
@@ -140416,7 +140449,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:114676:29: */
+func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:114706:29: */
var pIndex uintptr
var pNext uintptr
@@ -140453,7 +140486,7 @@ func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:11467
}
-func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:114733:21: */
+func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* sqlite3.c:114763:21: */
// Do not delete the table until the reference count reaches zero.
if !(pTable != 0) {
return
@@ -140466,7 +140499,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:114745:21: */
+func Xsqlite3UnlinkAndDeleteTable(tls *libc.TLS, db uintptr, iDb int32, zTabName uintptr) { /* sqlite3.c:114775:21: */
var p uintptr
var pDb uintptr
@@ -140488,7 +140521,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:114773:21: */
+func Xsqlite3NameFromToken(tls *libc.TLS, db uintptr, pName uintptr) uintptr { /* sqlite3.c:114803:21: */
var zName uintptr
if pName != 0 {
zName = Xsqlite3DbStrNDup(tls, db, (*Token)(unsafe.Pointer(pName)).Fz, uint64((*Token)(unsafe.Pointer(pName)).Fn))
@@ -140501,7 +140534,7 @@ 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:114788:21: */
+func Xsqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) { /* sqlite3.c:114818:21: */
var v uintptr = Xsqlite3GetVdbe(tls, p)
Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+7196)
Xsqlite3VdbeAddOp4Int(tls, v, OP_OpenWrite, 0, SCHEMA_ROOT, iDb, 5)
@@ -140514,7 +140547,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:114803:20: */
+func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* sqlite3.c:114833:20: */
var i int32 = -1 // Database number
if zName != 0 {
var pDb uintptr
@@ -140550,7 +140583,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:114823:20: */
+func Xsqlite3FindDb(tls *libc.TLS, db uintptr, pName uintptr) int32 { /* sqlite3.c:114853:20: */
var i int32 // Database number
var zName uintptr // Name we are searching for
zName = Xsqlite3NameFromToken(tls, db, pName)
@@ -140574,7 +140607,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:114848:20: */
+func Xsqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pUnqual uintptr) int32 { /* sqlite3.c:114878:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -140583,13 +140616,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+13431, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13439, 0)
return -1
}
*(*uintptr)(unsafe.Pointer(pUnqual)) = pName2
iDb = Xsqlite3FindDb(tls, db, pName1)
if iDb < 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+13448, libc.VaList(bp, pName1))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13456, libc.VaList(bp, pName1))
return -1
}
} else {
@@ -140601,7 +140634,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:114881:20: */
+func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:114911:20: */
return libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_WriteSchema|SQLITE_Defensive) == uint64(SQLITE_WriteSchema))
}
@@ -140615,7 +140648,7 @@ func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:1148
// 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:114903:20: */
+func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType uintptr, zTblName uintptr) int32 { /* sqlite3.c:114933:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -140636,7 +140669,7 @@ func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType
} else {
if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, ts+9371, 7) ||
Xsqlite3ReadOnlyShadowTables(tls, db) != 0 && Xsqlite3ShadowTableName(tls, db, zName) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+13468,
+ Xsqlite3ErrorMsg(tls, pParse, ts+13476,
libc.VaList(bp, zName))
return SQLITE_ERROR
}
@@ -140646,7 +140679,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:114941:22: */
+func Xsqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) uintptr { /* sqlite3.c:114971: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 {
}
@@ -140657,7 +140690,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:114953:20: */
+func Xsqlite3TableColumnToIndex(tls *libc.TLS, pIdx uintptr, iCol I16) I16 { /* sqlite3.c:114983: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))) {
@@ -140677,7 +140710,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:114973:20: */
+func Xsqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* sqlite3.c:115003:20: */
if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasVirtual) != 0 {
var i int32
for i = 0; i <= int32(iCol); i++ {
@@ -140724,7 +140757,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:115021:20: */
+func Xsqlite3TableColumnToStorage(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* sqlite3.c:115051:20: */
var i int32
var n I16
@@ -140754,7 +140787,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:115047:13: */
+func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:115077:13: */
var iReg int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if v != 0 {
@@ -140777,7 +140810,7 @@ func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:11504
// 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:115072:21: */
+func Xsqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, isTemp int32, isView int32, isVirtual int32, noErr int32) { /* sqlite3.c:115102:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -140805,7 +140838,7 @@ 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 + 13377 /* "sqlite_temp_mast..." */
+ return ts + 13385 /* "sqlite_temp_mast..." */
}
return ts + 7196 /* "sqlite_master" */
}())
@@ -140825,7 +140858,7 @@ __3:
}
// If creating a temp table, the name may not be qualified. Unless
// the database name is "temp" anyway.
- Xsqlite3ErrorMsg(tls, pParse, ts+13510, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13518, 0)
return
__4:
;
@@ -140872,7 +140905,7 @@ __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 + 13377
+ return ts + 13385
}
return ts + 7196
}(), uintptr(0), zDb) != 0) {
@@ -140912,7 +140945,7 @@ __13:
if !!(noErr != 0) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13551,
+ Xsqlite3ErrorMsg(tls, pParse, ts+13559,
libc.VaList(bp, func() uintptr {
if int32((*Table)(unsafe.Pointer(pTable)).FeTabType) == TABTYP_VIEW {
return ts + 11728 /* "view" */
@@ -140932,7 +140965,7 @@ __14:
if !(Xsqlite3FindIndex(tls, db, zName, zDb1) != uintptr(0)) {
goto __17
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13572, libc.VaList(bp+16, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13580, libc.VaList(bp+16, zName))
goto begin_table_error
__17:
;
@@ -141035,8 +141068,8 @@ var aCode = [4]U8{
U8(SQLITE_CREATE_TEMP_TABLE),
U8(SQLITE_CREATE_VIEW),
U8(SQLITE_CREATE_TEMP_VIEW),
-} /* sqlite3.c:115119:21 */
-var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* sqlite3.c:115198:23 */
+} /* sqlite3.c:115149:21 */
+var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* sqlite3.c:115228:23 */
// Set properties of a table column based on the (magical)
// name of the column.
@@ -141046,10 +141079,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:115283:13: */
+func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* sqlite3.c:115313:13: */
var pHash uintptr
pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema + 56
- Xsqlite3HashInsert(tls, pHash, ts+13607, uintptr(0))
+ Xsqlite3HashInsert(tls, pHash, ts+13615, uintptr(0))
Xsqlite3ExprListDelete(tls, db, (*Returning)(unsafe.Pointer(pRet)).FpReturnEL)
Xsqlite3DbFree(tls, db, pRet)
}
@@ -141068,12 +141101,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:115307:21: */
+func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* sqlite3.c:115337: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+13624, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13632, 0)
} else {
}
@@ -141094,7 +141127,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 + 13607 /* "sqlite_returning" */
+ (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 13615 /* "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)
@@ -141106,7 +141139,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+13607, pRet+16) ==
+ if Xsqlite3HashInsert(tls, pHash, ts+13615, pRet+16) ==
pRet+16 {
Xsqlite3OomFault(tls, db)
}
@@ -141118,7 +141151,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:115355:21: */
+func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) { /* sqlite3.c:115385:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
*(*Token)(unsafe.Pointer(bp + 16)) = sName
@@ -141140,7 +141173,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+13658, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13666, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName))
return
}
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
@@ -141152,13 +141185,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+13681, 6) == 0 {
+ Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(6)), ts+13689, 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+13688, 9) == 0 {
+ Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(9)), ts+13696, 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--
@@ -141198,7 +141231,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+13698, libc.VaList(bp+8, z))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13706, libc.VaList(bp+8, z))
Xsqlite3DbFree(tls, db, z)
return
}
@@ -141237,7 +141270,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:115468:21: */
+func Xsqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) { /* sqlite3.c:115498:21: */
var p uintptr
var pCol uintptr
p = (*Parse)(unsafe.Pointer(pParse)).FpNewTable
@@ -141284,7 +141317,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:115515:21: */
+func Xsqlite3AffinityType(tls *libc.TLS, zIn uintptr, pCol uintptr) int8 { /* sqlite3.c:115545:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -141358,7 +141391,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:115592:21: */
+func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStart uintptr, zEnd uintptr) { /* sqlite3.c:115622:21: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -141370,11 +141403,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+13724,
+ Xsqlite3ErrorMsg(tls, pParse, ts+13732,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
} else if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+13769, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13777, 0)
} else {
// A copy of pExpr is used instead of the original, as pExpr contains
// tokens that point to volatile memory.
@@ -141411,7 +141444,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:115651:13: */
+func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* sqlite3.c:115681: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 {
@@ -141420,12 +141453,12 @@ func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* sqlite3.c:115651:13: */
}
// Tag the given column as being part of the PRIMARY KEY
-func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { /* sqlite3.c:115662:13: */
+func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { /* sqlite3.c:115692:13: */
*(*U16)(unsafe.Pointer(pCol + 16)) |= U16(COLFLAG_PRIMKEY)
if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+13810, 0)
+ ts+13818, 0)
}
}
@@ -141445,7 +141478,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:115692:21: */
+func Xsqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError int32, autoInc int32, sortOrder int32) { /* sqlite3.c:115722:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -141470,7 +141503,7 @@ __1:
goto __2
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13862, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+13870, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto primary_key_exit
__2:
;
@@ -141559,7 +141592,7 @@ __13:
goto __17
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+13903, 0)
+ ts+13911, 0)
goto __18
__17:
Xsqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, onError, uintptr(0),
@@ -141576,7 +141609,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:115769:21: */
+func Xsqlite3AddCheckConstraint(tls *libc.TLS, pParse uintptr, pCheckExpr uintptr, zStart uintptr, zEnd uintptr) { /* sqlite3.c:115799:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -141606,7 +141639,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:115803:21: */
+func Xsqlite3AddCollateType(tls *libc.TLS, pParse uintptr, pToken uintptr) { /* sqlite3.c:115833:21: */
var p uintptr
var i int32
var zColl uintptr // Dequoted name of collation sequence
@@ -141641,7 +141674,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:115836:21: */
+func Xsqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType uintptr) { /* sqlite3.c:115866:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -141661,7 +141694,7 @@ __1:
if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) == PARSE_MODE_DECLARE_VTAB) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+13959, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+13967, 0)
goto generated_done
__2:
;
@@ -141674,13 +141707,13 @@ __3:
if !(pType != 0) {
goto __4
}
- if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+14002, (*Token)(unsafe.Pointer(pType)).Fz, 7) == 0) {
+ if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+14010, (*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+14010, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) {
+ if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, ts+14018, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) {
goto __7
}
eType = U8(COLFLAG_STORED)
@@ -141713,7 +141746,7 @@ __10:
goto generated_done
generated_error:
- Xsqlite3ErrorMsg(tls, pParse, ts+14017,
+ Xsqlite3ErrorMsg(tls, pParse, ts+14025,
libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName))
generated_done:
Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -141736,7 +141769,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:115904:21: */
+func Xsqlite3ChangeCookie(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:115934:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -141750,7 +141783,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:115920:12: */
+func identLength(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:115950:12: */
var n int32
n = 0
__1:
@@ -141785,7 +141818,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:115941:13: */
+func identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) { /* sqlite3.c:115971:13: */
var zIdent uintptr = zSignedIdent
var i int32
var j int32
@@ -141821,7 +141854,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:115969:13: */
+func createTableStmt(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:115999:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -141856,12 +141889,12 @@ __3:
n = n + identLength(tls, (*Table)(unsafe.Pointer(p)).FzName)
if n < 50 {
zSep = ts + 1524 /* "" */
- zSep2 = ts + 14048 /* "," */
+ zSep2 = ts + 14056 /* "," */
zEnd = ts + 6260 /* ")" */
} else {
- zSep = ts + 14050 /* "\n " */
- zSep2 = ts + 14054 /* ",\n " */
- zEnd = ts + 14059 /* "\n)" */
+ zSep = ts + 14058 /* "\n " */
+ zSep2 = ts + 14062 /* ",\n " */
+ zEnd = ts + 14067 /* "\n)" */
}
n = n + (35 + 6*int32((*Table)(unsafe.Pointer(p)).FnCol))
zStmt = Xsqlite3DbMallocRaw(tls, uintptr(0), uint64(n))
@@ -141869,7 +141902,7 @@ __3:
Xsqlite3OomFault(tls, db)
return uintptr(0)
}
- Xsqlite3_snprintf(tls, n, zStmt, ts+14062, 0)
+ Xsqlite3_snprintf(tls, n, zStmt, ts+14070, 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('(')
@@ -141909,15 +141942,15 @@ __6:
var azType1 = [5]uintptr{
ts + 1524,
- ts + 14076,
- ts + 14082,
- ts + 14087,
- ts + 14092,
-} /* sqlite3.c:115999:23 */
+ ts + 14084,
+ ts + 14090,
+ ts + 14095,
+ ts + 14100,
+} /* sqlite3.c:116029: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:116037:12: */
+func resizeIndexObject(tls *libc.TLS, db uintptr, pIdx uintptr, N int32) int32 { /* sqlite3.c:116067:12: */
var zExtra uintptr
var nByte int32
if int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) >= N {
@@ -141946,7 +141979,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:116064:13: */
+func estimateTableWidth(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:116094:13: */
var wTable uint32 = uint32(0)
var pTabCol uintptr
var i int32
@@ -141975,7 +142008,7 @@ __3:
}
// Estimate the average size of a row for an index.
-func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:116078:13: */
+func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:116108:13: */
var wIndex uint32 = uint32(0)
var i int32
var aCol uintptr = (*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol
@@ -141995,7 +142028,7 @@ func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:116078: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:116094:12: */
+func hasColumn(tls *libc.TLS, aiCol uintptr, nCol int32, x int32) int32 { /* sqlite3.c:116124:12: */
for libc.PostDecInt32(&nCol, 1) > 0 {
if x == int32(*(*I16)(unsafe.Pointer(libc.PostIncUintptr(&aiCol, 2)))) {
return 1
@@ -142015,7 +142048,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:116116:12: */
+func isDupColumn(tls *libc.TLS, pIdx uintptr, nKey int32, pPk uintptr, iCol int32) int32 { /* sqlite3.c:116146:12: */
var i int32
var j int32
@@ -142048,7 +142081,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:116155:13: */
+func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:116185:13: */
var m Bitmask = uint64(0)
var j int32
var pTab uintptr = (*Index)(unsafe.Pointer(pIdx)).FpTable
@@ -142087,7 +142120,7 @@ func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:1161
// indices with the PRIMARY KEY columns.
//
// For virtual tables, only (1) is performed.
-func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* sqlite3.c:116195:13: */
+func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* sqlite3.c:116225:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -142250,7 +142283,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:116355:20: */
+func Xsqlite3IsShadowTableOf(tls *libc.TLS, db uintptr, pTab uintptr, zName uintptr) int32 { /* sqlite3.c:116385:20: */
var nName int32 // Length of zName
var pMod uintptr // Module for the virtual table
@@ -142283,7 +142316,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:116378:21: */
+func Xsqlite3MarkAllShadowTablesOf(tls *libc.TLS, db uintptr, pTab uintptr) { /* sqlite3.c:116408: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
@@ -142327,7 +142360,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:116414:20: */
+func Xsqlite3ShadowTableName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* sqlite3.c:116444: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, '_')
@@ -142364,7 +142397,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:116475:21: */
+func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr, tabOpts U32, pSelect uintptr) { /* sqlite3.c:116505:21: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -142420,10 +142453,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+14098,
+ ts+14106,
libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1524)))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+14131,
+ Xsqlite3ErrorMsg(tls, pParse, ts+14139,
libc.VaList(bp+24, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName))
}
return
@@ -142443,11 +142476,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+14158, 0)
+ ts+14166, 0)
return
}
if (*Table)(unsafe.Pointer(p)).FtabFlags&U32(TF_HasPrimaryKey) == U32(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+14208, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14216, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName))
return
}
*(*U32)(unsafe.Pointer(p + 48)) |= U32(TF_WithoutRowid | TF_NoVisibleRowid)
@@ -142491,7 +142524,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
}
}
if nNG == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+14240, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14248, 0)
return
}
}
@@ -142525,11 +142558,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 + 10113 /* "table" */
- zType2 = ts + 14284 /* "TABLE" */
+ zType2 = ts + 14292 /* "TABLE" */
} else {
// A view
zType = ts + 11728 /* "view" */
- zType2 = ts + 14290 /* "VIEW" */
+ zType2 = ts + 14298 /* "VIEW" */
}
// If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT
@@ -142554,6 +142587,11 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
var addrInsLoop int32 // Top of the loop for inserting rows
var pSelTab uintptr // A table that describes the SELECT results
+ if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_NORMAL {
+ (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR
+ (*Parse)(unsafe.Pointer(pParse)).FnErr++
+ return
+ }
regYield = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
regRec = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
regRowid = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)
@@ -142610,7 +142648,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+14295, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
+ ts+14303, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
}
// A slot for the record has already been allocated in the
@@ -142618,7 +142656,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
// the information we've collected.
Xsqlite3NestedParse(tls, pParse,
- ts+14310,
+ ts+14318,
libc.VaList(bp+72, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName,
zType,
(*Table)(unsafe.Pointer(p)).FzName,
@@ -142636,14 +142674,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+14408,
+ ts+14416,
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+14450, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+14458, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0))
}
// Add the table to the in-memory representation of the database.
@@ -142680,7 +142718,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:116812:21: */
+func Xsqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 uintptr, pName2 uintptr, pCNames uintptr, pSelect uintptr, isTemp int32, noErr int32) { /* sqlite3.c:116847:21: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -142701,7 +142739,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+14484, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14492, 0)
goto create_view_fail
__1:
;
@@ -142798,7 +142836,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:116904:20: */
+func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) int32 { /* sqlite3.c:116939:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -142838,7 +142876,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+14520, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14528, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
return 1
}
@@ -142913,7 +142951,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:117032:13: */
+func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* sqlite3.c:117067: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) {
@@ -142943,7 +142981,7 @@ func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* sqlite3.c:117
// 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:117066:21: */
+func Xsqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom Pgno, iTo Pgno) { /* sqlite3.c:117101:21: */
var pElem uintptr
var pHash uintptr
var pDb uintptr
@@ -142969,14 +143007,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:117096:13: */
+func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /* sqlite3.c:117131: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+14550, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+14558, 0)
}
Xsqlite3VdbeAddOp3(tls, v, OP_Destroy, iTable, r1, iDb)
Xsqlite3MayAbort(tls, pParse)
@@ -142990,7 +143028,7 @@ func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /
// token for additional information.
Xsqlite3NestedParse(tls, pParse,
- ts+14565,
+ ts+14573,
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)
}
@@ -142999,7 +143037,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:117126:13: */
+func destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* sqlite3.c:117161: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
@@ -143045,7 +143083,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:117175:13: */
+func sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uintptr, zName uintptr) { /* sqlite3.c:117210:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -143054,17 +143092,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+14632, libc.VaList(bp, i))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([24]int8{})), bp+40, ts+14640, libc.VaList(bp, i))
if Xsqlite3FindTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, bp+40, zDbName) != 0 {
Xsqlite3NestedParse(tls, pParse,
- ts+12529,
+ ts+12537,
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:117198:21: */
+func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int32, isView int32) { /* sqlite3.c:117233:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -143097,7 +143135,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+14646,
+ ts+14654,
libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName))
}
@@ -143109,7 +143147,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3
// database.
Xsqlite3NestedParse(tls, pParse,
- ts+14691,
+ ts+14699,
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)
@@ -143128,7 +143166,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:117271:20: */
+func Xsqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:117306: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 &&
@@ -143139,9 +143177,9 @@ 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:117287:12: */
+func tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) int32 { /* sqlite3.c:117322:12: */
if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9371, 7) == 0 {
- if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+14758, 4) == 0 {
+ if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+14766, 4) == 0 {
return 0
}
if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+8367, 10) == 0 {
@@ -143160,7 +143198,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:117306:21: */
+func Xsqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int32, noErr int32) { /* sqlite3.c:117341:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -143228,7 +143266,7 @@ __7:
zTab = func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 13377
+ return ts + 13385
}
return ts + 7196
}()
@@ -143290,7 +143328,7 @@ __18:
if !(tableMayNotBeDropped(tls, db, pTab) != 0) {
goto __19
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14763, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14771, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
__19:
;
@@ -143300,14 +143338,14 @@ __19:
if !(isView != 0 && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW)) {
goto __20
}
- Xsqlite3ErrorMsg(tls, pParse, ts+14791, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14799, 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+14825, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+14833, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
__21:
;
@@ -143322,7 +143360,7 @@ __21:
if !!(isView != 0) {
goto __23
}
- sqlite3ClearStatTables(tls, pParse, iDb, ts+12721, (*Table)(unsafe.Pointer(pTab)).FzName)
+ sqlite3ClearStatTables(tls, pParse, iDb, ts+12729, (*Table)(unsafe.Pointer(pTab)).FzName)
Xsqlite3FkDropTable(tls, pParse, pName, pTab)
__23:
;
@@ -143348,7 +143386,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:117426:21: */
+func Xsqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, pTo uintptr, pToCol uintptr, flags int32) { /* sqlite3.c:117461:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -143387,7 +143425,7 @@ __4:
goto __5
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+14857,
+ ts+14865,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(iCol)*24)).FzCnName, pTo))
goto fk_end
__5:
@@ -143400,7 +143438,7 @@ __2:
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+14920, 0)
+ ts+14928, 0)
goto fk_end
goto __7
__6:
@@ -143485,7 +143523,7 @@ __21:
goto __23
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15014,
+ ts+15022,
libc.VaList(bp+16, (*ExprList_item)(unsafe.Pointer(pFromCol+8+uintptr(i)*32)).FzEName))
goto fk_end
__23:
@@ -143571,7 +143609,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:117558:21: */
+func Xsqlite3DeferForeignKey(tls *libc.TLS, pParse uintptr, isDeferred int32) { /* sqlite3.c:117593:21: */
var pTab uintptr
var pFKey uintptr
if libc.AssignUintptr(&pTab, (*Parse)(unsafe.Pointer(pParse)).FpNewTable) == uintptr(0) {
@@ -143596,7 +143634,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:117581:13: */
+func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPage int32) { /* sqlite3.c:117616:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -143708,7 +143746,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:117687:22: */
+func Xsqlite3AllocateIndexObject(tls *libc.TLS, db uintptr, nCol I16, nExtra int32, ppExtra uintptr) uintptr { /* sqlite3.c:117722:22: */
var p uintptr // Allocated index object
var nByte int32 // Bytes of space for Index object + arrays
@@ -143733,7 +143771,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:117720:20: */
+func Xsqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) int32 { /* sqlite3.c:117755:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -143742,12 +143780,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+15060,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15068,
libc.VaList(bp, func() uintptr {
if int32(sf) == 0 || int32(sf) == 3 {
- return ts + 15088 /* "FIRST" */
+ return ts + 15096 /* "FIRST" */
}
- return ts + 15094 /* "LAST" */
+ return ts + 15102 /* "LAST" */
}()))
return 1
}
@@ -143766,7 +143804,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:117748: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:117783:21: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -143906,7 +143944,7 @@ __9:
__8:
;
- Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+15099, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))
+ Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+15107, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))
if !(Xsqlite3FixSrcList(tls, bp+136, pTblName) != 0) {
goto __10
}
@@ -143927,7 +143965,7 @@ __11:
goto __12
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15105,
+ ts+15113,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
goto exit_create_index
__12:
@@ -143959,21 +143997,21 @@ __6:
pTblName != uintptr(0)) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15155, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15163, 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+15183, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+15191, 0)
goto exit_create_index
__16:
;
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __17
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15208, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+15216, 0)
goto exit_create_index
__17:
;
@@ -144000,7 +144038,7 @@ __17:
__20:
;
- if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+15099, (*Table)(unsafe.Pointer(pTab)).FzName)) {
+ if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+15107, (*Table)(unsafe.Pointer(pTab)).FzName)) {
goto __21
}
goto exit_create_index
@@ -144015,7 +144053,7 @@ __21:
if !(Xsqlite3FindTable(tls, db, zName, uintptr(0)) != uintptr(0)) {
goto __24
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15242, libc.VaList(bp+16, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15250, libc.VaList(bp+16, zName))
goto exit_create_index
__24:
;
@@ -144027,7 +144065,7 @@ __23:
if !!(ifNotExist != 0) {
goto __26
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15276, libc.VaList(bp+24, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15284, libc.VaList(bp+24, zName))
goto __27
__26:
;
@@ -144056,7 +144094,7 @@ __29:
goto __30
__30:
;
- zName = Xsqlite3MPrintf(tls, db, ts+15300, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n))
+ zName = Xsqlite3MPrintf(tls, db, ts+15308, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n))
if !(zName == uintptr(0)) {
goto __31
}
@@ -144085,7 +144123,7 @@ __19:
zDb = (*Db)(unsafe.Pointer(pDb)).FzDbSName
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 13377
+ return ts + 13385
}
return ts + 7196
}(), uintptr(0), zDb) != 0) {
@@ -144131,7 +144169,7 @@ __39:
Xsqlite3ExprListSetSortOrder(tls, pList, sortOrder, -1)
goto __38
__37:
- Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+15099)
+ Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+15107)
if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) {
goto __40
}
@@ -144249,7 +144287,7 @@ __53:
goto __56
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15323, 0)
+ ts+15331, 0)
goto exit_create_index
__56:
;
@@ -144479,7 +144517,7 @@ __88:
goto __93
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15384, libc.VaList(bp+48, 0))
+ ts+15392, libc.VaList(bp+48, 0))
__93:
;
if !(int32((*Index)(unsafe.Pointer(pIdx)).FonError) == OE_Default) {
@@ -144535,8 +144573,8 @@ __81:
if !(Xsqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0) {
goto __101
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15426, 0)
- (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 118204)
+ Xsqlite3ErrorMsg(tls, pParse, ts+15434, 0)
+ (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 118239)
goto exit_create_index
__101:
;
@@ -144593,12 +144631,12 @@ __104:
__107:
;
// A named index with an explicit CREATE INDEX statement
- zStmt = Xsqlite3MPrintf(tls, db, ts+15443,
+ zStmt = Xsqlite3MPrintf(tls, db, ts+15451,
libc.VaList(bp+56, func() uintptr {
if onError == OE_None {
return ts + 1524 /* "" */
}
- return ts + 15463 /* " UNIQUE" */
+ return ts + 15471 /* " UNIQUE" */
}(), n1, (*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))).Fz))
goto __106
__105:
@@ -144610,7 +144648,7 @@ __106:
// Add an entry in sqlite_schema for this index
Xsqlite3NestedParse(tls, pParse,
- ts+15471,
+ ts+15479,
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,
@@ -144626,7 +144664,7 @@ __106:
sqlite3RefillIndex(tls, pParse, pIndex, iMem)
Xsqlite3ChangeCookie(tls, pParse, iDb)
Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb,
- Xsqlite3MPrintf(tls, db, ts+15530, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+15538, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
Xsqlite3VdbeAddOp2(tls, v, OP_Expire, 0, 1)
__108:
;
@@ -144722,7 +144760,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:118359:21: */
+func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:118394:21: */
var a uintptr = (*Index)(unsafe.Pointer(pIdx)).FaiRowLogEst
var x LogEst
var nCopy int32 = func() int32 {
@@ -144766,11 +144804,11 @@ func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* sqlite3.c:118359:21
}
}
-var aVal = [5]LogEst{int16(33), int16(32), int16(30), int16(28), int16(26)} /* sqlite3.c:118361:23 */
+var aVal = [5]LogEst{int16(33), int16(32), int16(30), int16(28), int16(26)} /* sqlite3.c:118396: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:118403:21: */
+func Xsqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists int32) { /* sqlite3.c:118438:21: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -144805,7 +144843,7 @@ __2:
if !!(ifExists != 0) {
goto __4
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15557, libc.VaList(bp, pName+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15565, libc.VaList(bp, pName+8))
goto __5
__4:
Xsqlite3CodeVerifyNamedSchema(tls, pParse, (*SrcItem)(unsafe.Pointer(pName+8)).FzDatabase)
@@ -144820,7 +144858,7 @@ __3:
goto __6
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+15575, libc.VaList(bp+8, 0))
+ ts+15583, libc.VaList(bp+8, 0))
goto exit_drop_index
__6:
;
@@ -144831,7 +144869,7 @@ __6:
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName
zTab = func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 13377
+ return ts + 13385
}
return ts + 7196
}()
@@ -144861,9 +144899,9 @@ __9:
}
Xsqlite3BeginWriteOperation(tls, pParse, 1, iDb)
Xsqlite3NestedParse(tls, pParse,
- ts+15648,
+ ts+15656,
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+12717, (*Index)(unsafe.Pointer(pIndex)).FzName)
+ sqlite3ClearStatTables(tls, pParse, iDb, ts+12725, (*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)
@@ -144889,7 +144927,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:118485:21: */
+func Xsqlite3ArrayAllocate(tls *libc.TLS, db uintptr, pArray uintptr, szEntry int32, pnEntry uintptr, pIdx uintptr) uintptr { /* sqlite3.c:118520:21: */
var z uintptr
var n Sqlite3_int64 = Sqlite3_int64(libc.AssignPtrInt32(pIdx, *(*int32)(unsafe.Pointer(pnEntry))))
if n&(n-int64(1)) == int64(0) {
@@ -144916,7 +144954,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:118515:23: */
+func Xsqlite3IdListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr) uintptr { /* sqlite3.c:118550:23: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -144947,7 +144985,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:118543:21: */
+func Xsqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:118578:21: */
var i int32
if pList == uintptr(0) {
return
@@ -144961,7 +144999,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:118557:20: */
+func Xsqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) int32 { /* sqlite3.c:118592:20: */
var i int32
if pList == uintptr(0) {
return -1
@@ -144999,7 +145037,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:118598:24: */
+func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra int32, iStart int32) uintptr { /* sqlite3.c:118633:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -145014,7 +145052,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+15708,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15716,
libc.VaList(bp, SQLITE_MAX_SRCLIST))
return uintptr(0)
}
@@ -145081,7 +145119,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:118687:24: */
+func Xsqlite3SrcListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pTable uintptr, pDatabase uintptr) uintptr { /* sqlite3.c:118722:24: */
var pItem uintptr
var db uintptr
// Cannot have C without B
@@ -145120,7 +145158,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:118732:21: */
+func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) { /* sqlite3.c:118767:21: */
var i int32
var pItem uintptr
@@ -145152,7 +145190,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:118750:21: */
+func Xsqlite3SrcListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* sqlite3.c:118785:21: */
var i int32
var pItem uintptr
if pList == uintptr(0) {
@@ -145215,7 +145253,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:118784: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:118819:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -145226,12 +145264,12 @@ func Xsqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTa
if !(!(p != 0) && (pOn != 0 || pUsing != 0)) {
goto __1
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15744,
+ Xsqlite3ErrorMsg(tls, pParse, ts+15752,
libc.VaList(bp, func() uintptr {
if pOn != 0 {
- return ts + 15780 /* "ON" */
+ return ts + 15788 /* "ON" */
}
- return ts + 15783 /* "USING" */
+ return ts + 15791 /* "USING" */
}()))
goto append_from_error
__1:
@@ -145279,7 +145317,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:118835:21: */
+func Xsqlite3SrcListIndexedBy(tls *libc.TLS, pParse uintptr, p uintptr, pIndexedBy uintptr) { /* sqlite3.c:118870:21: */
if p != 0 && (*Token)(unsafe.Pointer(pIndexedBy)).Fn > uint32(0) {
var pItem uintptr
@@ -145301,7 +145339,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:118861:24: */
+func Xsqlite3SrcListAppendList(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr) uintptr { /* sqlite3.c:118896:24: */
if p2 != 0 {
var pNew uintptr = Xsqlite3SrcListEnlarge(tls, pParse, p1, (*SrcList)(unsafe.Pointer(p2)).FnSrc, 1)
@@ -145318,7 +145356,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:118880:21: */
+func Xsqlite3SrcListFuncArgs(tls *libc.TLS, pParse uintptr, p uintptr, pList uintptr) { /* sqlite3.c:118915:21: */
if p != 0 {
var pItem uintptr = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*112
@@ -145342,7 +145380,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:118908:21: */
+func Xsqlite3SrcListShiftJoinType(tls *libc.TLS, p uintptr) { /* sqlite3.c:118943:21: */
if p != 0 {
var i int32
for i = (*SrcList)(unsafe.Pointer(p)).FnSrc - 1; i > 0; i-- {
@@ -145353,14 +145391,14 @@ func Xsqlite3SrcListShiftJoinType(tls *libc.TLS, p uintptr) { /* sqlite3.c:11890
}
// Generate VDBE code for a BEGIN statement.
-func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* sqlite3.c:118921:21: */
+func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* sqlite3.c:118956:21: */
var db uintptr
var v uintptr
var i int32
db = (*Parse)(unsafe.Pointer(pParse)).Fdb
- if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+15789, uintptr(0), uintptr(0)) != 0 {
+ if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+15797, uintptr(0), uintptr(0)) != 0 {
return
}
v = Xsqlite3GetVdbe(tls, pParse)
@@ -145388,7 +145426,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:118957:21: */
+func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* sqlite3.c:118992:21: */
var v uintptr
var isRollback int32
@@ -145396,9 +145434,9 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* sql
if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION,
func() uintptr {
if isRollback != 0 {
- return ts + 15795
+ return ts + 15803
}
- return ts + 15804
+ return ts + 15812
}(), uintptr(0), uintptr(0)) != 0 {
return
}
@@ -145410,7 +145448,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:118979:21: */
+func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) { /* sqlite3.c:119014:21: */
var zName uintptr = Xsqlite3NameFromToken(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pName)
if zName != 0 {
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
@@ -145423,11 +145461,11 @@ func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) {
}
}
-var az = [3]uintptr{ts + 15789, ts + 15811, ts + 15795} /* sqlite3.c:118984:23 */
+var az = [3]uintptr{ts + 15797, ts + 15819, ts + 15803} /* sqlite3.c:119019: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:118999:20: */
+func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:119034:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -145439,7 +145477,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+15819, 0)
+ ts+15827, 0)
(*Parse)(unsafe.Pointer(pParse)).Frc = rc
return 1
}
@@ -145453,13 +145491,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:119004:22 */
+var flags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TEMP_DB /* sqlite3.c:119039: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:119034:13: */
+func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int32) { /* sqlite3.c:119069: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
@@ -145469,7 +145507,7 @@ func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int
}
}
-func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:119046:21: */
+func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* sqlite3.c:119081:21: */
sqlite3CodeVerifySchemaAtToplevel(tls, func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -145480,7 +145518,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:119055:21: */
+func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) { /* sqlite3.c:119090:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
@@ -145502,7 +145540,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:119079:21: */
+func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int32, iDb int32) { /* sqlite3.c:119114:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -145519,7 +145557,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:119093:21: */
+func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:119128:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -145543,7 +145581,7 @@ func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:119093: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:119114:21: */
+func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:119149:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -145556,7 +145594,7 @@ func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:119114: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:119124:21: */
+func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onError int32, p4 uintptr, p4type I8, p5Errmsg U8) { /* sqlite3.c:119159:21: */
var v uintptr
v = Xsqlite3GetVdbe(tls, pParse)
@@ -145569,7 +145607,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:119146:21: */
+func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx uintptr) { /* sqlite3.c:119181:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -145582,14 +145620,14 @@ func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx
Xsqlite3StrAccumInit(tls, bp+8, (*Parse)(unsafe.Pointer(pParse)).Fdb, uintptr(0), 0,
*(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136)))
if (*Index)(unsafe.Pointer(pIdx)).FaColExpr != 0 {
- Xsqlite3_str_appendf(tls, bp+8, ts+15889, libc.VaList(bp, (*Index)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3_str_appendf(tls, bp+8, ts+15897, 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+15900, 2)
+ Xsqlite3_str_append(tls, bp+8, ts+15908, 2)
}
Xsqlite3_str_appendall(tls, bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)
Xsqlite3_str_append(tls, bp+8, ts+1537, 1)
@@ -145608,18 +145646,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:119182:21: */
+func Xsqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab uintptr) { /* sqlite3.c:119217: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+13290, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
+ zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+13298, 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+15903, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
+ zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+15911, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
rc = SQLITE_CONSTRAINT | int32(10)<<8
}
Xsqlite3HaltConstraint(tls, pParse, rc, onError, zMsg, int8(-7),
@@ -145628,7 +145666,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:119206:12: */
+func collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) int32 { /* sqlite3.c:119241:12: */
var i int32
for i = 0; i < int32((*Index)(unsafe.Pointer(pIndex)).FnColumn); i++ {
@@ -145643,7 +145681,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:119225:13: */
+func reindexTable(tls *libc.TLS, pParse uintptr, pTab uintptr, zColl uintptr) { /* sqlite3.c:119260:13: */
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
var pIndex uintptr // An index associated with pTab
@@ -145660,7 +145698,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:119246:13: */
+func reindexDatabases(tls *libc.TLS, pParse uintptr, zColl uintptr) { /* sqlite3.c:119281: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
@@ -145702,7 +145740,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:119278:21: */
+func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* sqlite3.c:119313:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -145762,14 +145800,14 @@ func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
sqlite3RefillIndex(tls, pParse, pIndex, -1)
return
}
- Xsqlite3ErrorMsg(tls, pParse, ts+15912, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+15920, 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:119338:24: */
+func Xsqlite3KeyInfoOfIndex(tls *libc.TLS, pParse uintptr, pIdx uintptr) uintptr { /* sqlite3.c:119373:24: */
var i int32
var nCol int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnColumn)
var nKey int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)
@@ -145815,7 +145853,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:119382:20: */
+func Xsqlite3CteNew(tls *libc.TLS, pParse uintptr, pName uintptr, pArglist uintptr, pQuery uintptr, eM10d U8) uintptr { /* sqlite3.c:119417:20: */
var pNew uintptr
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -145835,7 +145873,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:119411:13: */
+func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:119446:13: */
Xsqlite3ExprListDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpCols)
Xsqlite3SelectDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpSelect)
@@ -145843,7 +145881,7 @@ func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:119411:13:
}
// Free the contents of the CTE object passed as the second argument.
-func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:119421:21: */
+func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* sqlite3.c:119456:21: */
cteClear(tls, db, pCte)
Xsqlite3DbFree(tls, db, pCte)
@@ -145853,7 +145891,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:119433:21: */
+func Xsqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr) uintptr { /* sqlite3.c:119468:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -145872,7 +145910,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+15958, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15966, libc.VaList(bp, zName))
}
}
}
@@ -145896,7 +145934,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:119480:21: */
+func Xsqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) { /* sqlite3.c:119515:21: */
if pWith != 0 {
var i int32
for i = 0; i < (*With)(unsafe.Pointer(pWith)).FnCte; i++ {
@@ -145926,7 +145964,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:119515:13: */
+func callCollNeeded(tls *libc.TLS, db uintptr, enc int32, zName uintptr) { /* sqlite3.c:119550:13: */
if (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded != 0 {
var zExternal uintptr = Xsqlite3DbStrDup(tls, db, zName)
@@ -145957,7 +145995,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:119544:12: */
+func synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) int32 { /* sqlite3.c:119579:12: */
var pColl2 uintptr
var z uintptr = (*CollSeq)(unsafe.Pointer(pColl)).FzName
var i int32
@@ -145972,7 +146010,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:119548:19 */
+var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* sqlite3.c:119583: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
@@ -145983,7 +146021,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:119571:20: */
+func Xsqlite3CheckCollSeq(tls *libc.TLS, pParse uintptr, pColl uintptr) int32 { /* sqlite3.c:119606: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
@@ -146007,7 +146045,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:119599:16: */
+func findCollSeqEntry(tls *libc.TLS, db uintptr, zName uintptr, create int32) uintptr { /* sqlite3.c:119634:16: */
var pColl uintptr
pColl = Xsqlite3HashFind(tls, db+640, zName)
@@ -146052,7 +146090,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:119651:24: */
+func Xsqlite3FindCollSeq(tls *libc.TLS, db uintptr, enc U8, zName uintptr, create int32) uintptr { /* sqlite3.c:119686:24: */
var pColl uintptr
if zName != 0 {
@@ -146068,7 +146106,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:119673:21: */
+func Xsqlite3SetTextEncoding(tls *libc.TLS, db uintptr, enc U8) { /* sqlite3.c:119708:21: */
(*Sqlite3)(unsafe.Pointer(db)).Fenc = enc
// EVIDENCE-OF: R-08308-17224 The default collating function for all
@@ -146088,7 +146126,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:119696:24: */
+func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zName uintptr) uintptr { /* sqlite3.c:119731:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -146110,7 +146148,7 @@ func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zN
}
if p == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+15988, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+15996, libc.VaList(bp, zName))
(*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR | int32(1)<<8
}
return p
@@ -146134,7 +146172,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:119747:24: */
+func Xsqlite3LocateCollSeq(tls *libc.TLS, pParse uintptr, zName uintptr) uintptr { /* sqlite3.c:119782: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
@@ -146175,7 +146213,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:119790:12: */
+func matchQuality(tls *libc.TLS, p uintptr, nArg int32, enc U8) int32 { /* sqlite3.c:119825:12: */
var match int32
// Wrong number of arguments means "no match"
@@ -146211,7 +146249,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:119826:24: */
+func Xsqlite3FunctionSearch(tls *libc.TLS, h int32, zFunc uintptr) uintptr { /* sqlite3.c:119861:24: */
var p uintptr
for p = *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3BuiltinFunctions)) + uintptr(h)*8)); p != 0; p = *(*uintptr)(unsafe.Pointer(p + 64)) {
@@ -146223,7 +146261,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:119843:21: */
+func Xsqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) { /* sqlite3.c:119878:21: */
var i int32
for i = 0; i < nDef; i++ {
var pOther uintptr
@@ -146261,7 +146299,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:119888:24: */
+func Xsqlite3FindFunction(tls *libc.TLS, db uintptr, zName uintptr, nArg int32, enc U8, createFlag U8) uintptr { /* sqlite3.c:119923:24: */
var p uintptr // Iterator variable
var pBest uintptr = uintptr(0) // Best match found so far
var bestScore int32 = 0 // Score of best match
@@ -146341,7 +146379,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:119980:21: */
+func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* sqlite3.c:120015:21: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -146376,7 +146414,7 @@ func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* sqlite3.c:119980: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:120012:23: */
+func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* sqlite3.c:120047: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})))
@@ -146423,7 +146461,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:120063:22: */
+func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr { /* sqlite3.c:120098:22: */
var pItem uintptr = pSrc + 8 /* &.a */
var pTab uintptr
@@ -146441,7 +146479,7 @@ func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr
// Generate byte-code that will report the number of rows modified
// by a DELETE, INSERT, or UPDATE statement.
-func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColName uintptr) { /* sqlite3.c:120082:21: */
+func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColName uintptr) { /* sqlite3.c:120117:21: */
Xsqlite3VdbeAddOp0(tls, v, OP_FkCheck)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, regCounter, 1)
Xsqlite3VdbeSetNumCols(tls, v, 1)
@@ -146462,7 +146500,7 @@ func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColNam
// 3) The table is a shadow table, the database connection is in
// defensive mode, and the current sqlite3_prepare()
// is for a top-level SQL statement.
-func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* sqlite3.c:120104:12: */
+func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* sqlite3.c:120139: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))
@@ -146481,16 +146519,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:120123:20: */
+func Xsqlite3IsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr, viewOk int32) int32 { /* sqlite3.c:120158:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
if tabIsReadOnly(tls, pParse, pTab) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+16019, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+16027, 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+16048, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+16056, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
return 1
}
return 0
@@ -146499,7 +146537,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:120144:21: */
+func Xsqlite3MaterializeView(tls *libc.TLS, pParse uintptr, pView uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr, iCur int32) { /* sqlite3.c:120179:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -146531,7 +146569,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:120283:21: */
+func Xsqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* sqlite3.c:120318:21: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -147082,7 +147120,7 @@ __60:
if !(memCnt != 0) {
goto __61
}
- Xsqlite3CodeChangeCount(tls, v, memCnt, ts+16086)
+ Xsqlite3CodeChangeCount(tls, v, memCnt, ts+16094)
__61:
;
@@ -147137,7 +147175,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:120731: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:120766: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
@@ -147227,7 +147265,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+12577) {
+ if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12585) {
Xsqlite3VdbeAppendP4(tls, v, pTab, -6)
}
if int32(eMode) != ONEPASS_OFF {
@@ -147274,7 +147312,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:120883:21: */
+func Xsqlite3GenerateRowIndexDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, iDataCur int32, iIdxCur int32, aRegIdx uintptr, iIdxNoSeek int32) { /* sqlite3.c:120918:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -147363,7 +147401,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:120948: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:120983:20: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var j int32
var regBase int32
@@ -147419,7 +147457,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:121010:21: */
+func Xsqlite3ResolvePartIdxLabel(tls *libc.TLS, pParse uintptr, iLabel int32) { /* sqlite3.c:121045:21: */
if iLabel != 0 {
Xsqlite3VdbeResolveLabel(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, iLabel)
}
@@ -147447,7 +147485,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:121044:16: */
+func sqlite3GetFuncCollSeq(tls *libc.TLS, context uintptr) uintptr { /* sqlite3.c:121079:16: */
var pOp uintptr
pOp = (*Vdbe)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(context)).FpVdbe)).FaOp + uintptr((*Sqlite3_context)(unsafe.Pointer(context)).FiOp-1)*24
@@ -147457,14 +147495,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:121057:13: */
+func sqlite3SkipAccumulatorLoad(tls *libc.TLS, context uintptr) { /* sqlite3.c:121092: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:121066:13: */
+func minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121101:13: */
var i int32
var mask int32 // 0 for min() or 0xffffffff for max()
var iBest int32
@@ -147494,7 +147532,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:121096:13: */
+func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:121131:13: */
var i int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) - 1
_ = NotUsed
@@ -147505,18 +147543,18 @@ func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
Xsqlite3_result_text(tls, context, azType2[i], -1, uintptr(0))
}
-var azType2 = [5]uintptr{ts + 7494, ts + 7489, ts + 9244, ts + 9239, ts + 7484} /* sqlite3.c:121101:21 */
+var azType2 = [5]uintptr{ts + 7494, ts + 7489, ts + 9244, ts + 9239, ts + 7484} /* sqlite3.c:121136:21 */
// subtype(X)
//
// Return the subtype of X
-func subtypeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121121:13: */
+func subtypeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121156: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:121133:13: */
+func lengthFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121168:13: */
_ = argc
switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
@@ -147565,7 +147603,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:121175:13: */
+func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121210:13: */
_ = argc
switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
@@ -147577,7 +147615,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+16099, -1)
+ Xsqlite3_result_error(tls, context, ts+16107, -1)
return
}
iVal = -iVal
@@ -147619,7 +147657,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:121224:13: */
+func instrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121259:13: */
var zHaystack uintptr
var zNeedle uintptr
var nHaystack int32
@@ -147734,7 +147772,7 @@ endInstrOOM:
}
// 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: */
+func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121327:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -147771,7 +147809,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:121328:13: */
+func substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121363:13: */
var z uintptr
var z2 uintptr
var len int32
@@ -147879,7 +147917,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:121423:13: */
+func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121458:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -147917,7 +147955,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
return +0.5
}()))
} else {
- zBuf = Xsqlite3_mprintf(tls, ts+16116, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */))))
+ zBuf = Xsqlite3_mprintf(tls, ts+16124, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */))))
if zBuf == uintptr(0) {
Xsqlite3_result_error_nomem(tls, context)
return
@@ -147933,7 +147971,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:121464:13: */
+func contextMalloc(tls *libc.TLS, context uintptr, nByte I64) uintptr { /* sqlite3.c:121499:13: */
var z uintptr
var db uintptr = Xsqlite3_context_db_handle(tls, context)
@@ -147950,7 +147988,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:121485:13: */
+func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121520:13: */
var z1 uintptr
var z2 uintptr
var i int32
@@ -147971,7 +148009,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:121504:13: */
+func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121539:13: */
var z1 uintptr
var z2 uintptr
var i int32
@@ -148000,7 +148038,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:121537:13: */
+func randomFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:121572:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148024,7 +148062,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:121563:13: */
+func randomBlob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121598:13: */
var n Sqlite3_int64
var p uintptr
@@ -148042,7 +148080,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:121587:13: */
+func last_insert_rowid(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:121622:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -148057,7 +148095,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:121607:13: */
+func changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:121642:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -148066,7 +148104,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:121621:13: */
+func total_changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:121656:13: */
var db uintptr = Xsqlite3_context_db_handle(tls, context)
_ = NotUsed
_ = NotUsed2
@@ -148081,20 +148119,20 @@ type compareInfo = struct {
FmatchOne U8
FmatchSet U8
FnoCase U8
-} /* sqlite3.c:121636:1 */
+} /* sqlite3.c:121671: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:121656:33 */
+var globInfo = compareInfo{FmatchAll: U8('*'), FmatchOne: U8('?'), FmatchSet: U8('[')} /* sqlite3.c:121691: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:121659:33 */
+var likeInfoNorm = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_'), FnoCase: U8(1)} /* sqlite3.c:121694: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:121662:33 */
+var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* sqlite3.c:121697:33 */
// Possible error returns from patternMatch()
@@ -148134,7 +148172,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:121709:12: */
+func patternCompare(tls *libc.TLS, zPattern uintptr, zString uintptr, pInfo uintptr, matchOther U32) int32 { /* sqlite3.c:121744:12: */
bp := tls.Alloc(19)
defer tls.Free(19)
*(*uintptr)(unsafe.Pointer(bp)) = zPattern
@@ -148320,13 +148358,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:121842:16: */
+func Xsqlite3_strglob(tls *libc.TLS, zGlobPattern uintptr, zString uintptr) int32 { /* sqlite3.c:121877: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:121850:16: */
+func Xsqlite3_strlike(tls *libc.TLS, zPattern uintptr, zStr uintptr, esc uint32) int32 { /* sqlite3.c:121885:16: */
return patternCompare(tls, zPattern, zStr, uintptr(unsafe.Pointer(&likeInfoNorm)), esc)
}
@@ -148344,7 +148382,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:121876:13: */
+func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:121911:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -148367,7 +148405,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+16121, -1)
+ Xsqlite3_result_error(tls, context, ts+16129, -1)
return
}
if argc == 3 {
@@ -148379,7 +148417,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+16154, -1)
+ ts+16162, -1)
return
}
escape = Xsqlite3Utf8Read(tls, bp)
@@ -148407,7 +148445,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:121947:13: */
+func nullifFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:121982:13: */
var pColl uintptr = sqlite3GetFuncCollSeq(tls, context)
_ = NotUsed
if Xsqlite3MemCompare(tls, *(*uintptr)(unsafe.Pointer(argv)), *(*uintptr)(unsafe.Pointer(argv + 1*8)), pColl) != 0 {
@@ -148417,7 +148455,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:121963:13: */
+func versionFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:121998:13: */
_ = NotUsed
_ = NotUsed2
// IMP: R-48699-48617 This function is an SQL wrapper around the
@@ -148428,7 +148466,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:121979:13: */
+func sourceidFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:122014:13: */
_ = NotUsed
_ = NotUsed2
// IMP: R-24470-31136 This function is an SQL wrapper around the
@@ -148439,7 +148477,7 @@ 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:121995:13: */
+func errlogFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122030:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148451,7 +148489,7 @@ func errlogFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
// 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:122011:13: */
+func compileoptionusedFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122046:13: */
var zOptName uintptr
_ = argc
@@ -148466,7 +148504,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:122035:13: */
+func compileoptiongetFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122070:13: */
var n int32
_ = argc
@@ -148481,11 +148519,11 @@ func compileoptiongetFunc(tls *libc.TLS, context uintptr, argc int32, argv uintp
var hexdigits = [16]int8{
int8('0'), int8('1'), int8('2'), int8('3'), int8('4'), int8('5'), int8('6'), int8('7'),
int8('8'), int8('9'), int8('A'), int8('B'), int8('C'), int8('D'), int8('E'), int8('F'),
-} /* sqlite3.c:122053:19 */
+} /* sqlite3.c:122088:19 */
// Append to pStr text that is the SQL literal representation of the
// value contained in pValue.
-func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* sqlite3.c:122062:21: */
+func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* sqlite3.c:122097:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -148507,7 +148545,7 @@ func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* sqlite
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+16199, libc.VaList(bp+8, r1))
+ Xsqlite3_str_appendf(tls, pStr, ts+16207, libc.VaList(bp+8, r1))
}
}
break
@@ -148544,7 +148582,7 @@ func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* sqlite
case SQLITE_TEXT:
{
var zArg uintptr = Xsqlite3_value_text(tls, pValue)
- Xsqlite3_str_appendf(tls, pStr, ts+16206, libc.VaList(bp+24, zArg))
+ Xsqlite3_str_appendf(tls, pStr, ts+16214, libc.VaList(bp+24, zArg))
break
}
@@ -148566,7 +148604,7 @@ func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* sqlite
// 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: */
+func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122166:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -148589,7 +148627,7 @@ func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
// 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:122150:13: */
+func unicodeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122185:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148603,7 +148641,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:122165:13: */
+func charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122200:13: */
var z uintptr
var zOut uintptr
var i int32
@@ -148641,7 +148679,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:122206:13: */
+func hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122241:13: */
var i int32
var n int32
var pBlob uintptr
@@ -148679,7 +148717,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:122234:13: */
+func zeroblobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122269:13: */
var n I64
var rc int32
@@ -148698,7 +148736,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:122257:13: */
+func replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122292:13: */
var zStr uintptr // The input string A
var zPattern uintptr // The pattern string B
var zRep uintptr // The replacement string C
@@ -148787,7 +148825,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:122350:13: */
+func trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122385:13: */
var zIn uintptr // Input string
var zCharSet uintptr // Set of characters to trim
var nIn uint32 // Number of bytes in input
@@ -148890,8 +148928,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:122372:27 */
-var azOne = [1]uintptr{uintptr(ts + 12157 /* " " */)} /* sqlite3.c:122373:26 */
+var lenOne = [1]uint32{uint32(1)} /* sqlite3.c:122407:27 */
+var azOne = [1]uintptr{uintptr(ts + 12157 /* " " */)} /* sqlite3.c:122408: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
@@ -148900,7 +148938,7 @@ var azOne = [1]uintptr{uintptr(ts + 12157 /* " " */)} /* sqlite3.c:122373: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:122463:13: */
+func soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122498:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148938,7 +148976,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+16209, 4, uintptr(0))
+ Xsqlite3_result_text(tls, context, ts+16217, 4, uintptr(0))
}
}
@@ -148951,10 +148989,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:122471:30 */
+} /* sqlite3.c:122506: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:122516:13: */
+func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122551:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -148966,7 +149004,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+13329, -1)
+ Xsqlite3_result_error(tls, context, ts+13337, -1)
return
}
@@ -148990,11 +149028,11 @@ type SumCtx1 = struct {
Foverflow U8
Fapprox U8
F__ccgo_pad1 [6]byte
-} /* sqlite3.c:122547:9 */
+} /* sqlite3.c:122582:9 */
// An instance of the following structure holds the context of a
// sum() or avg() aggregate computation.
-type SumCtx = SumCtx1 /* sqlite3.c:122547:23 */
+type SumCtx = SumCtx1 /* sqlite3.c:122582:23 */
// Routines used to compute the sum, average, and total.
//
@@ -149004,7 +149042,7 @@ type SumCtx = SumCtx1 /* sqlite3.c:122547: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:122566:13: */
+func sumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122601:13: */
var p uintptr
var type1 int32
@@ -149026,7 +149064,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:122588:13: */
+func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122623:13: */
var p uintptr
var type1 int32
@@ -149049,12 +149087,12 @@ func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* s
}
}
-func sumFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122613:13: */
+func sumFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122648: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+16099, -1)
+ Xsqlite3_result_error(tls, context, ts+16107, -1)
} else if (*SumCtx)(unsafe.Pointer(p)).Fapprox != 0 {
Xsqlite3_result_double(tls, context, (*SumCtx)(unsafe.Pointer(p)).FrSum)
} else {
@@ -149063,7 +149101,7 @@ func sumFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122613:13: */
}
}
-func avgFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122626:13: */
+func avgFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122661:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
if p != 0 && (*SumCtx)(unsafe.Pointer(p)).Fcnt > int64(0) {
@@ -149071,7 +149109,7 @@ func avgFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122626:13: */
}
}
-func totalFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122633:13: */
+func totalFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122668:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
// (double)0 In case of SQLITE_OMIT_FLOATING_POINT...
@@ -149085,14 +149123,14 @@ func totalFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122633:13: */
// The following structure keeps track of state information for the
// count() aggregate function.
-type CountCtx1 = struct{ Fn I64 } /* sqlite3.c:122644:9 */
+type CountCtx1 = struct{ Fn I64 } /* sqlite3.c:122679:9 */
// The following structure keeps track of state information for the
// count() aggregate function.
-type CountCtx = CountCtx1 /* sqlite3.c:122644:25 */
+type CountCtx = CountCtx1 /* sqlite3.c:122679:25 */
// Routines to implement the count() aggregate function.
-func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122655:13: */
+func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122690: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 {
@@ -149106,7 +149144,7 @@ func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sq
}
-func countFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122671:13: */
+func countFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122706:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, context, 0)
Xsqlite3_result_int64(tls, context, func() int64 {
@@ -149117,7 +149155,7 @@ func countFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122671:13: */
}())
}
-func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:122677:13: */
+func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:122712: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
@@ -149127,7 +149165,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:122695:13: */
+func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* sqlite3.c:122730:13: */
var pArg uintptr = *(*uintptr)(unsafe.Pointer(argv))
var pBest uintptr
_ = NotUsed
@@ -149165,7 +149203,7 @@ func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /
}
}
-func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* sqlite3.c:122733:13: */
+func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* sqlite3.c:122768:13: */
var pRes uintptr
pRes = Xsqlite3_aggregate_context(tls, context, 0)
if pRes != 0 {
@@ -149178,11 +149216,11 @@ func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* sqli
}
}
-func minMaxValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122744:13: */
+func minMaxValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122779:13: */
minMaxValueFinalize(tls, context, 1)
}
-func minMaxFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122750:13: */
+func minMaxFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122785:13: */
minMaxValueFinalize(tls, context, 0)
}
@@ -149198,9 +149236,9 @@ type GroupConcatCtx = struct {
FnAccum int32
FnFirstSepLength int32
FpnSepLengths uintptr
-} /* sqlite3.c:122775:3 */
+} /* sqlite3.c:122810:3 */
-func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122777:13: */
+func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122812:13: */
var zVal uintptr
var pGCC uintptr
var zSep uintptr
@@ -149265,7 +149303,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:122848:13: */
+func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:122883:13: */
var pGCC uintptr
_ = argc // Suppress unused parameter warning
@@ -149307,7 +149345,7 @@ func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr
}
}
-func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122894:13: */
+func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122929:13: */
var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0)
if pGCC != 0 {
Xsqlite3ResultStrAccum(tls, context, pGCC)
@@ -149315,7 +149353,7 @@ func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* sqlite3.c:122894:1
}
}
-func groupConcatValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122905:13: */
+func groupConcatValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122940:13: */
var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0)
if pGCC != 0 {
var pAccum uintptr = pGCC
@@ -149333,8 +149371,8 @@ func groupConcatValue(tls *libc.TLS, context uintptr) { /* sqlite3.c:122905: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:122929:21: */
- var rc int32 = Xsqlite3_overload_function(tls, db, ts+16214, 2)
+func Xsqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) { /* sqlite3.c:122964:21: */
+ var rc int32 = Xsqlite3_overload_function(tls, db, ts+16222, 2)
if rc == SQLITE_NOMEM {
Xsqlite3OomFault(tls, db)
@@ -149344,7 +149382,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:122942:21: */
+func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int32) { /* sqlite3.c:122977:21: */
var pInfo uintptr
var flags int32
if caseSensitive != 0 {
@@ -149354,14 +149392,14 @@ func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3
pInfo = uintptr(unsafe.Pointer(&likeInfoNorm))
flags = SQLITE_FUNC_LIKE
}
- Xsqlite3CreateFunc(tls, db, ts+16220, 2, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct {
+ Xsqlite3CreateFunc(tls, db, ts+16228, 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+16220, 3, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct {
+ Xsqlite3CreateFunc(tls, db, ts+16228, 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+16220, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
- *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16220, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
+ *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16228, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
+ *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16228, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags)
}
// pExpr points to an expression which implements a function. If
@@ -149379,7 +149417,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:122975:20: */
+func Xsqlite3IsLikeFunction(tls *libc.TLS, db uintptr, pExpr uintptr, pIsNocase uintptr, aWc uintptr) int32 { /* sqlite3.c:123010:20: */
var pDef uintptr
var nExpr int32
@@ -149435,7 +149473,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:123046:13: */
+func ceilingFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:123081:13: */
switch Xsqlite3_value_numeric_type(tls, *(*uintptr)(unsafe.Pointer(argv))) {
case SQLITE_INTEGER:
@@ -149464,11 +149502,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:123073:15: */
+func xCeil(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123108:15: */
return libc.Xceil(tls, x)
}
-func xFloor(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123074:15: */
+func xFloor(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123109:15: */
return libc.Xfloor(tls, x)
}
@@ -149478,7 +149516,7 @@ func xFloor(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123074: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:123084:13: */
+func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:123119:13: */
var x float64
var b float64
var ans float64
@@ -149535,18 +149573,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:123134:15: */
+func degToRad(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123169:15: */
return x * (float64(3.14159265358979323846) / 180.0)
}
-func radToDeg(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123135:15: */
+func radToDeg(tls *libc.TLS, x float64) float64 { /* sqlite3.c:123170: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:123142:13: */
+func math1Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:123177:13: */
var type0 int32
var v0 float64
var ans float64
@@ -149567,7 +149605,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:123164:13: */
+func math2Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:123199:13: */
var type0 int32
var type1 int32
var v0 float64
@@ -149593,13 +149631,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:123187:13: */
+func piFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:123222: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:123201:13: */
+func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:123236:13: */
var type0 int32
var x float64
_ = argc
@@ -149627,7 +149665,7 @@ 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:123223:21: */
+func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* sqlite3.c:123258:21: */
Xsqlite3AlterFunctions(tls)
Xsqlite3WindowFunctions(tls)
Xsqlite3RegisterDateTimeFunctions(tls)
@@ -149638,109 +149676,109 @@ func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* sqlite3.c:123223:21: *
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 + 16225},
- {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 + 16245},
- {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 + 16258},
- {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 + 16276},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_implies_nonnull_row)), FxSFunc: 0, FzName: ts + 16233},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_expr_compare)), FxSFunc: 0, FzName: ts + 16253},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_expr_implies_expr)), FxSFunc: 0, FzName: ts + 16266},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_affinity)), FxSFunc: 0, FzName: ts + 16284},
//**** Regular functions ****
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16285},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16293},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16293},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16308},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16334},
- {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 + 16359},
- {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 + 16368},
- {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 + 16379},
- {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 + 16386},
- {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 + 16400},
- {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 + 16400},
- {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 + 16406},
- {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 + 16406},
- {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 + 16412},
- {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 + 16412},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16417},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16417},
- {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 + 16417},
- {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 + 16421},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 16421},
- {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 + 16421},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16425},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16432},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 16440},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16447},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16453},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16460},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16467},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16475},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16480},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16484},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16484},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16490},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16496},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16502},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16506},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16513},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16520},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16531},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16538},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16553},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16570},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16581},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16587},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16605},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16293},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16301},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16301},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16316},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16342},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16367},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16376},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16387},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_OFFSET | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16394},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16408},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16408},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16414},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16414},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(3)), FxSFunc: 0, FzName: ts + 16420},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(3)), FxSFunc: 0, FzName: ts + 16420},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16425},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16425},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_MINMAX | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FzName: ts + 16425},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16429},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 16429},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_MINMAX | SQLITE_FUNC_ANYORDER), FpUserData: uintptr(int64(1)), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FzName: ts + 16429},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16433},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16440},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 16448},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16455},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16461},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16468},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16475},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16483},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16488},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16492},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16492},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16498},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16504},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16510},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16514},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16521},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16528},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16539},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16546},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16561},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16578},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16589},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16595},
{FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16613},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16627},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16635},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16644},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16644},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16651},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16651},
- {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 + 16661},
- {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 + 16665},
- {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 + 16671},
- {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 + 16675},
- {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 + 16675},
- {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 + 16681},
- {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 + 16681},
-
- {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 + 16694},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16220},
- {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16220},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16699},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16699},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16708},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16713},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16621},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16635},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16643},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16652},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16652},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16659},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16659},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16669},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16673},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16679},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_COUNT | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16683},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16683},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16689},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16689},
+
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16702},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16228},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16228},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16707},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16707},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16716},
{FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16721},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16727},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16733},
- {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 + 16736},
- {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 + 16740},
- {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 + 16746},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16736},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16751},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16755},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16759},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16765},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16769},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16774},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16779},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16784},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16790},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16794},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16729},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16735},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16741},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16744},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16748},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16754},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16744},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16759},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16763},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16767},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16773},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16777},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16782},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16787},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16792},
{FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16798},
{FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16802},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16807},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16812},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16817},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16823},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16829},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16835},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16840},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16806},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16810},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16815},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16820},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16825},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16831},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16837},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16843},
{FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16848},
- {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16856},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16859},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16699},
- {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 + 16864}} /* sqlite3.c:123234:18 */
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16856},
+ {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16864},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16867},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16707},
+ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_iif)), FxSFunc: 0, FzName: ts + 16872}} /* sqlite3.c:123269:18 */
//************* End of func.c ***********************************************
//************* Begin file fkey.c *******************************************
@@ -149915,7 +149953,7 @@ var aBuiltinFunc = [101]FuncDef{
// then non-zero is returned, and a "foreign key mismatch" error loaded
// into pParse. If an OOM error occurs, non-zero is returned and the
// pParse->db->mallocFailed flag is set.
-func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey uintptr, ppIdx uintptr, paiCol uintptr) int32 { /* sqlite3.c:123587:20: */
+func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey uintptr, ppIdx uintptr, paiCol uintptr) int32 { /* sqlite3.c:123622:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -150026,7 +150064,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+16868,
+ ts+16876,
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)
@@ -150061,7 +150099,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:123724: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:123759: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
@@ -150191,7 +150229,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:123877:13: */
+func exprTableRegister(tls *libc.TLS, pParse uintptr, pTab uintptr, regBase int32, iCol I16) uintptr { /* sqlite3.c:123912:13: */
var pExpr uintptr
var pCol uintptr
var zColl uintptr
@@ -150218,7 +150256,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:123909:13: */
+func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCol I16) uintptr { /* sqlite3.c:123944:13: */
var pExpr uintptr = Xsqlite3Expr(tls, db, TK_COLUMN, uintptr(0))
if pExpr != 0 {
@@ -150259,7 +150297,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:123957:13: */
+func fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, pIdx uintptr, pFKey uintptr, aiCol uintptr, regData int32, nIncr int32) { /* sqlite3.c:123992:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -150383,7 +150421,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:124086:21: */
+func Xsqlite3FkReferences(tls *libc.TLS, pTab uintptr) uintptr { /* sqlite3.c:124121:21: */
return Xsqlite3HashFind(tls, (*Table)(unsafe.Pointer(pTab)).FpSchema+80, (*Table)(unsafe.Pointer(pTab)).FzName)
}
@@ -150393,7 +150431,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:124098:13: */
+func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* sqlite3.c:124133:13: */
if p != 0 {
var pStep uintptr = (*Trigger)(unsafe.Pointer(p)).Fstep_list
Xsqlite3ExprDelete(tls, dbMem, (*TriggerStep)(unsafe.Pointer(pStep)).FpWhere)
@@ -150407,7 +150445,7 @@ func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* sqlite3.c:124
// 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:124114:21: */
+func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* sqlite3.c:124149: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 {
@@ -150440,7 +150478,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:124145:21: */
+func Xsqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uintptr) { /* sqlite3.c:124180: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
@@ -150503,7 +150541,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:124208:12: */
+func fkChildIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* sqlite3.c:124243: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
@@ -150527,7 +150565,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:124235:12: */
+func fkParentIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* sqlite3.c:124270: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
@@ -150551,7 +150589,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:124264:12: */
+func isSetNullAction(tls *libc.TLS, pParse uintptr, pFKey uintptr) int32 { /* sqlite3.c:124299:12: */
var pTop uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -150586,7 +150624,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:124297:21: */
+func Xsqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32, regNew int32, aChange uintptr, bChngRowid int32) { /* sqlite3.c:124332:21: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -150788,7 +150826,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:124500:20: */
+func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* sqlite3.c:124535:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -150847,7 +150885,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:124550:20: */
+func Xsqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uintptr, chngRowid int32) int32 { /* sqlite3.c:124585: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 {
@@ -150915,7 +150953,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:124618:16: */
+func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr, pChanges uintptr) uintptr { /* sqlite3.c:124653:16: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -151117,7 +151155,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:124810:21: */
+func Xsqlite3FkActions(tls *libc.TLS, pParse uintptr, pTab uintptr, pChanges uintptr, regOld int32, aChange uintptr, bChngRowid int32) { /* sqlite3.c:124845: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
@@ -151138,7 +151176,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:124842:21: */
+func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* sqlite3.c:124877:21: */
var pFKey uintptr // Iterator variable
var pNext uintptr // Copy of pFKey->pNextFrom
@@ -151198,7 +151236,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:124908:21: */
+func Xsqlite3OpenTable(tls *libc.TLS, pParse uintptr, iCur int32, iDb int32, pTab uintptr, opcode int32) { /* sqlite3.c:124943:21: */
var v uintptr
v = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -151240,7 +151278,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:124955:27: */
+func Xsqlite3IndexAffinityStr(tls *libc.TLS, db uintptr, pIdx uintptr) uintptr { /* sqlite3.c:124990: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
@@ -151319,7 +151357,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:125034:21: */
+func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { /* sqlite3.c:125069:21: */
var i int32
var j int32
var zColAff uintptr
@@ -151377,7 +151415,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:125095:12: */
+func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* sqlite3.c:125130:12: */
var v uintptr = Xsqlite3GetVdbe(tls, p)
var i int32
var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v)
@@ -151413,7 +151451,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:125132:12: */
+func exprColumnFlagUnion(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:125167: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))
@@ -151426,7 +151464,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:125148:21: */
+func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore int32, pTab uintptr) { /* sqlite3.c:125183:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -151539,7 +151577,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:125272:12: */
+func autoIncBegin(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr) int32 { /* sqlite3.c:125307:12: */
var memId int32 = 0 // Register holding maximum rowid
if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Autoincrement) != U32(0) &&
@@ -151593,7 +151631,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:125323:21: */
+func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:125358: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
@@ -151633,7 +151671,7 @@ func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:12
}
}
-var iLn1 int32 = 0 /* sqlite3.c:125337:22 */
+var iLn1 int32 = 0 /* sqlite3.c:125372:22 */
var autoInc = [12]VdbeOpList{
/* 0 */ {Fopcode: U8(OP_Null)},
/* 1 */ {Fopcode: U8(OP_Rewind), Fp2: int8(10)},
@@ -151647,7 +151685,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:125338:29 */
+} /* sqlite3.c:125373:29 */
// Update the maximum rowid for an autoincrement calculation.
//
@@ -151655,7 +151693,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:125384:13: */
+func autoIncStep(tls *libc.TLS, pParse uintptr, memId int32, regRowid int32) { /* sqlite3.c:125419:13: */
if memId > 0 {
Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_MemMax, memId, regRowid)
}
@@ -151666,7 +151704,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:125397:29: */
+func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:125432:29: */
var p uintptr
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -151697,16 +151735,16 @@ func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:125397:29: *
}
}
-var iLn2 int32 = 0 /* sqlite3.c:125404:22 */
+var iLn2 int32 = 0 /* sqlite3.c:125439: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:125405:29 */
+} /* sqlite3.c:125440:29 */
-func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:125434:21: */
+func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:125469:21: */
if (*Parse)(unsafe.Pointer(pParse)).FpAinc != 0 {
autoIncrementEnd(tls, pParse)
}
@@ -151807,7 +151845,7 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:1254
// 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:125553:21: */
+func Xsqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uintptr, pColumn uintptr, onError int32, pUpsert uintptr) { /* sqlite3.c:125588:21: */
bp := tls.Alloc(188)
defer tls.Free(188)
@@ -151989,7 +152027,10 @@ __8:
// very fast and which reduce fragmentation of indices.
//
// This is the 2nd template.
- if !(pColumn == uintptr(0) && xferOptimization(tls, pParse, pTab, pSelect, onError, iDb) != 0) {
+ if !(pColumn == uintptr(0) &&
+ pSelect != uintptr(0) &&
+ pTrigger == uintptr(0) &&
+ xferOptimization(tls, pParse, pTab, pSelect, onError, iDb) != 0) {
goto __9
}
@@ -152079,7 +152120,7 @@ __23:
goto __24
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+16913,
+ ts+16921,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName))
goto insert_cleanup
__24:
@@ -152104,7 +152145,7 @@ __20:
bIdListInOrder = U8(0)
goto __27
__26:
- Xsqlite3ErrorMsg(tls, pParse, ts+16954,
+ Xsqlite3ErrorMsg(tls, pParse, ts+16962,
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
@@ -152276,7 +152317,7 @@ __42:
goto __47
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+16986,
+ ts+16994,
libc.VaList(bp+24, pTabList+8, int32((*Table)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn))
goto insert_cleanup
__47:
@@ -152286,7 +152327,7 @@ __36:
if !(pColumn != uintptr(0) && nColumn != (*IdList)(unsafe.Pointer(pColumn)).FnId) {
goto __48
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17038, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId))
+ Xsqlite3ErrorMsg(tls, pParse, ts+17046, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId))
goto insert_cleanup
__48:
;
@@ -152342,7 +152383,7 @@ __50:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __56
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17063,
+ Xsqlite3ErrorMsg(tls, pParse, ts+17071,
libc.VaList(bp+64, (*Table)(unsafe.Pointer(pTab)).FzName))
goto insert_cleanup
__56:
@@ -152350,7 +152391,7 @@ __56:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) {
goto __57
}
- Xsqlite3ErrorMsg(tls, pParse, ts+17109, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+17117, 0)
goto insert_cleanup
__57:
;
@@ -152834,7 +152875,7 @@ __122:
if !(regRowCount != 0) {
goto __123
}
- Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+17130)
+ Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+17138)
__123:
;
@@ -152858,7 +152899,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:126308:12: */
+func checkConstraintExprNode(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:126347:12: */
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN {
if int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) >= 0 {
@@ -152885,7 +152926,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:126337:20: */
+func Xsqlite3ExprReferencesUpdatedColumn(tls *libc.TLS, pExpr uintptr, aiChng uintptr, chngRowid int32) int32 { /* sqlite3.c:126376:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -152919,7 +152960,7 @@ type IndexListTerm1 = struct {
Fp uintptr
Fix int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:126370:9 */
+} /* sqlite3.c:126409:9 */
// The sqlite3GenerateConstraintChecks() routine usually wants to visit
// the indexes of a table in the order provided in the Table->pIndex list.
@@ -152930,7 +152971,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:126370:30 */
+type IndexListTerm = IndexListTerm1 /* sqlite3.c:126409:30 */
type IndexIterator1 = struct {
FeType int32
Fi int32
@@ -152938,12 +152979,12 @@ type IndexIterator1 = struct {
Flx struct{ FpIdx uintptr }
F__ccgo_pad1 [8]byte
}
-} /* sqlite3.c:126371:9 */
+} /* sqlite3.c:126410:9 */
-type IndexIterator = IndexIterator1 /* sqlite3.c:126371:30 */
+type IndexIterator = IndexIterator1 /* sqlite3.c:126410:30 */
// Return the first index on the list
-func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* sqlite3.c:126395:14: */
+func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* sqlite3.c:126434:14: */
if (*IndexIterator)(unsafe.Pointer(pIter)).FeType != 0 {
*(*int32)(unsafe.Pointer(pIx)) = (*IndexListTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pIter + 8 + 8 /* &.aIdx */)))).Fix
@@ -152956,7 +152997,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:126407:14: */
+func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* sqlite3.c:126446: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)) {
@@ -153062,7 +153103,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:126514: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:126553:21: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -153179,7 +153220,7 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
fallthrough
case OE_Fail:
{
- var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+13290, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
+ var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+13298, 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)
@@ -153920,7 +153961,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:127372:13: */
+func codeWithoutRowidPreupdate(tls *libc.TLS, pParse uintptr, pTab uintptr, iCur int32, regData int32) { /* sqlite3.c:127411:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var r int32 = Xsqlite3GetTempReg(tls, pParse)
@@ -153937,7 +153978,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:127400: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:127439: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
@@ -154040,7 +154081,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:127488: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:127527:20: */
var i int32
var iDb int32
var iDataCur int32
@@ -154118,7 +154159,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:127567:12: */
+func xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) int32 { /* sqlite3.c:127606: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) {
@@ -154176,7 +154217,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:127628:12: */
+func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uintptr, onError int32, iDbDest int32) int32 { /* sqlite3.c:127667: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
@@ -154197,18 +154238,12 @@ func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uint
var regData int32
var regRowid int32 // Registers holding data and rowid
- if pSelect == uintptr(0) {
- return 0 // Must be of the form INSERT INTO ... SELECT ...
- }
if (*Parse)(unsafe.Pointer(pParse)).FpWith != 0 || (*Select)(unsafe.Pointer(pSelect)).FpWith != 0 {
// Do not attempt to process this query if there are an WITH clauses
// attached to it. Proceeding may generate a false "no such table: xxx"
// error if pSelect reads from a CTE named "xxx".
return 0
}
- if Xsqlite3TriggerList(tls, pParse, pDest) != 0 {
- return 0 // tab1 must not have triggers
- }
if int32((*Table)(unsafe.Pointer(pDest)).FeTabType) == TABTYP_VTAB {
return 0 // tab1 must not be a virtual table
}
@@ -154562,7 +154597,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:128044:16: */
+func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Sqlite3_callback, pArg uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:128078:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -154583,7 +154618,7 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Sqlite3_ca
if !!(Xsqlite3SafetyCheckOk(tls, db) != 0) {
goto __1
}
- return Xsqlite3MisuseError(tls, 128057)
+ return Xsqlite3MisuseError(tls, 128091)
__1:
;
if !(zSql == uintptr(0)) {
@@ -154772,7 +154807,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:128538:13 */
+type Sqlite3_loadext_entry = uintptr /* sqlite3.c:128572:13 */
// The following macros redefine the API routines so that they are
// redirected through the global sqlite3_api structure.
@@ -155106,7 +155141,7 @@ var sqlite3Apis = Sqlite3_api_routines{
Fvtab_in: 0,
Fvtab_in_first: 0,
Fvtab_in_next: 0,
-} /* sqlite3.c:128984:35 */
+} /* sqlite3.c:129018:35 */
// True if x is the directory separator character
@@ -155120,7 +155155,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:129368:12: */
+func sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:129402:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -155164,7 +155199,7 @@ __1:
if !(pzErrMsg != 0) {
goto __3
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+13329, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+13337, 0)
__3:
;
return SQLITE_ERROR
@@ -155174,7 +155209,7 @@ __2:
if zProc != 0 {
zEntry = zProc
} else {
- zEntry = ts + 17144 /* "sqlite3_extensio..." */
+ zEntry = ts + 17152 /* "sqlite3_extensio..." */
}
// tag-20210611-1. Some dlopen() implementations will segfault if given
@@ -155194,7 +155229,7 @@ __5:
if !(ii < int32(uint64(unsafe.Sizeof(azEndings))/uint64(unsafe.Sizeof(uintptr(0)))) && handle == uintptr(0)) {
goto __7
}
- zAltFile = Xsqlite3_mprintf(tls, ts+13290, libc.VaList(bp, zFile, azEndings[ii]))
+ zAltFile = Xsqlite3_mprintf(tls, ts+13298, libc.VaList(bp, zFile, azEndings[ii]))
if !(zAltFile == uintptr(0)) {
goto __8
}
@@ -155240,7 +155275,7 @@ __9:
return SQLITE_NOMEM
__11:
;
- libc.Xmemcpy(tls, zAltEntry, ts+17167, uint64(8))
+ libc.Xmemcpy(tls, zAltEntry, ts+17175, uint64(8))
iFile = ncFile - 1
__12:
if !(iFile >= 0 && !(int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '/' || int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '\\')) {
@@ -155254,7 +155289,7 @@ __13:
__14:
;
iFile++
- if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+17176, 3) == 0) {
+ if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+17184, 3) == 0) {
goto __15
}
iFile = iFile + 3
@@ -155278,7 +155313,7 @@ __17:
goto __18
__18:
;
- libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+17180, uint64(6))
+ libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+17188, uint64(6))
zEntry = zAltEntry
xInit = Xsqlite3OsDlSym(tls, pVfs, handle, zEntry)
__10:
@@ -155296,7 +155331,7 @@ __10:
}
// zErrmsg would be NULL if not so
Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)),
- ts+17186, libc.VaList(bp+16, zEntry, zFile))
+ ts+17194, libc.VaList(bp+16, zEntry, zFile))
Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
__22:
;
@@ -155323,7 +155358,7 @@ __24:
if !(pzErrMsg != 0) {
goto __25
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+17229, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+17237, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))))
__25:
;
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
@@ -155363,7 +155398,7 @@ extension_not_found:
}
// zErrmsg would be NULL if not so
Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)),
- ts+17261, libc.VaList(bp+40, FILENAME_MAX, zFile))
+ ts+17269, libc.VaList(bp+40, FILENAME_MAX, zFile))
Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))
__29:
;
@@ -155373,10 +155408,10 @@ __28:
}
var azEndings = [1]uintptr{
- ts + 17298,
-} /* sqlite3.c:129386:21 */
+ ts + 17306,
+} /* sqlite3.c:129420:21 */
-func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:129519:16: */
+func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:129553:16: */
var rc int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
rc = sqlite3LoadExtension(tls, db, zFile, zProc, pzErrMsg)
@@ -155387,7 +155422,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:129537:21: */
+func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:129571:21: */
var i int32
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnExtension; i++ {
@@ -155398,7 +155433,7 @@ func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:129537: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:129550:16: */
+func Xsqlite3_enable_load_extension(tls *libc.TLS, db uintptr, onoff int32) int32 { /* sqlite3.c:129584:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if onoff != 0 {
*(*U64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LoadExtension | SQLITE_LoadExtFunc)
@@ -155418,15 +155453,15 @@ type sqlite3AutoExtList = struct {
FnExt U32
F__ccgo_pad1 [4]byte
FaExt uintptr
-} /* sqlite3.c:129570:9 */
+} /* sqlite3.c:129604: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:129570:35 */
-var sqlite3Autoext = sqlite3AutoExtList{} /* sqlite3.c:129574:3 */
+type Sqlite3AutoExtList = sqlite3AutoExtList /* sqlite3.c:129604:35 */
+var sqlite3Autoext = sqlite3AutoExtList{} /* sqlite3.c:129608:3 */
// The "wsdAutoext" macro will resolve to the autoextension
// state vector. If writable static data is unsupported on the target,
@@ -155436,7 +155471,7 @@ var sqlite3Autoext = sqlite3AutoExtList{} /* sqlite3.c:129574: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:129596:16: */
+func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* sqlite3.c:129630:16: */
var rc int32 = SQLITE_OK
rc = Xsqlite3_initialize(tls)
if rc != 0 {
@@ -155477,7 +155512,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:129643:16: */
+func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* sqlite3.c:129677:16: */
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
var i int32
var n int32 = 0
@@ -155496,7 +155531,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:129668:17: */
+func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* sqlite3.c:129702:17: */
if Xsqlite3_initialize(tls) == SQLITE_OK {
var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)
@@ -155511,7 +155546,7 @@ func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* sqlite3.c:129668: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:129690:21: */
+func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:129724:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -155542,7 +155577,7 @@ func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:129690
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+17302, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))))
+ ts+17310, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))))
go1 = 0
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))
@@ -155588,67 +155623,67 @@ func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* sqlite3.c:129690
// result column is different from the name of the pragma
var pragCName = [57]uintptr{
ts + 6360,
- ts + 17341,
+ ts + 17349,
ts + 10113,
- ts + 17345,
- ts + 17350,
ts + 17353,
- ts + 17363,
- ts + 17373,
- ts + 17379,
- ts + 17383,
- ts + 17388,
- ts + 17393,
+ ts + 17358,
+ ts + 17361,
+ ts + 17371,
+ ts + 17381,
+ ts + 17387,
+ ts + 17391,
+ ts + 17396,
ts + 17401,
- ts + 17412,
- ts + 17415,
-
- ts + 17422,
- ts + 17383,
- ts + 17388,
- ts + 17429,
- ts + 17434,
+ ts + 17409,
+ ts + 17420,
+ ts + 17423,
+
+ ts + 17430,
+ ts + 17391,
+ ts + 17396,
ts + 17437,
- ts + 17444,
- ts + 17379,
- ts + 17383,
- ts + 17450,
- ts + 17455,
- ts + 17460,
- ts + 17383,
- ts + 17464,
- ts + 17388,
+ ts + 17442,
+ ts + 17445,
+ ts + 17452,
+ ts + 17387,
+ ts + 17391,
+ ts + 17458,
+ ts + 17463,
+ ts + 17468,
+ ts + 17391,
ts + 17472,
- ts + 17476,
- ts + 17481,
- ts + 12721,
- ts + 12717,
- ts + 17487,
- ts + 17492,
- ts + 17497,
- ts + 17341,
- ts + 17383,
- ts + 17502,
- ts + 17509,
- ts + 17516,
- ts + 10113,
+ ts + 17396,
+ ts + 17480,
+ ts + 17484,
+ ts + 17489,
+ ts + 12729,
+ ts + 12725,
+ ts + 17495,
+ ts + 17500,
+ ts + 17505,
+ ts + 17349,
+ ts + 17391,
+ ts + 17510,
+ ts + 17517,
ts + 17524,
+ ts + 10113,
+ ts + 17532,
ts + 6363,
- ts + 17530,
+ ts + 17538,
- ts + 17341,
- ts + 17383,
- ts + 17535,
- ts + 17540,
- ts + 16736,
- ts + 17545,
+ ts + 17349,
+ ts + 17391,
+ ts + 17543,
+ ts + 17548,
+ ts + 16744,
+ ts + 17553,
- ts + 17558,
- ts + 17567,
- ts + 17574,
+ ts + 17566,
+ ts + 17575,
+ ts + 17582,
- ts + 17585,
-} /* sqlite3.c:129831:19 */
+ ts + 17593,
+} /* sqlite3.c:129865:19 */
// Definitions of all built-in pragmas
type PragmaName1 = struct {
@@ -155659,250 +155694,250 @@ type PragmaName1 = struct {
FnPragCName U8
F__ccgo_pad1 [4]byte
FiArg U64
-} /* sqlite3.c:129896:9 */
+} /* sqlite3.c:129930:9 */
// Definitions of all built-in pragmas
-type PragmaName = PragmaName1 /* sqlite3.c:129903:3 */
+type PragmaName = PragmaName1 /* sqlite3.c:129937:3 */
var aPragmaName = [67]PragmaName{
- { /* zName: */ FzName: ts + 17593,
+ { /* zName: */ FzName: ts + 17601,
/* ePragTyp: */ FePragTyp: U8(PragTyp_ANALYSIS_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 17608,
+ { /* zName: */ FzName: ts + 17616,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_APPLICATION_ID)},
- { /* zName: */ FzName: ts + 17623,
+ { /* zName: */ FzName: ts + 17631,
/* ePragTyp: */ FePragTyp: U8(PragTyp_AUTO_VACUUM),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17635,
+ { /* zName: */ FzName: ts + 17643,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_AutoIndex)},
- { /* zName: */ FzName: ts + 17651,
+ { /* zName: */ FzName: ts + 17659,
/* ePragTyp: */ FePragTyp: U8(PragTyp_BUSY_TIMEOUT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(56), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 17574,
+ { /* zName: */ FzName: ts + 17582,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17664,
+ { /* zName: */ FzName: ts + 17672,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SPILL),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17676,
+ { /* zName: */ FzName: ts + 17684,
/* ePragTyp: */ FePragTyp: U8(PragTyp_CASE_SENSITIVE_LIKE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 17696,
+ { /* zName: */ FzName: ts + 17704,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_CellSizeCk)},
- { /* zName: */ FzName: ts + 17712,
+ { /* zName: */ FzName: ts + 17720,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_CkptFullFSync)},
- { /* zName: */ FzName: ts + 17733,
+ { /* zName: */ FzName: ts + 17741,
/* ePragTyp: */ FePragTyp: U8(PragTyp_COLLATION_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(38), FnPragCName: U8(2)},
- { /* zName: */ FzName: ts + 17748,
+ { /* zName: */ FzName: ts + 17756,
/* ePragTyp: */ FePragTyp: U8(PragTyp_COMPILE_OPTIONS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 17764,
+ { /* zName: */ FzName: ts + 17772,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: U64(uint64(0x00001)) << 32},
- { /* zName: */ FzName: ts + 17778,
+ { /* zName: */ FzName: ts + 17786,
/* ePragTyp: */ FePragTyp: U8(PragTyp_DATA_STORE_DIRECTORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17799,
+ { /* zName: */ FzName: ts + 17807,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_DATA_VERSION)},
- { /* zName: */ FzName: ts + 17812,
+ { /* zName: */ FzName: ts + 17820,
/* ePragTyp: */ FePragTyp: U8(PragTyp_DATABASE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(47), FnPragCName: U8(3)},
- { /* zName: */ FzName: ts + 17826,
+ { /* zName: */ FzName: ts + 17834,
/* 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 + 17845,
+ { /* zName: */ FzName: ts + 17853,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_DeferFKs)},
- { /* zName: */ FzName: ts + 17864,
+ { /* zName: */ FzName: ts + 17872,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_NullCallback)},
- { /* zName: */ FzName: ts + 17887,
+ { /* zName: */ FzName: ts + 17895,
/* ePragTyp: */ FePragTyp: U8(PragTyp_ENCODING),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 17896,
+ { /* zName: */ FzName: ts + 17904,
/* 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 + 17914,
+ { /* zName: */ FzName: ts + 17922,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FOREIGN_KEY_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), FnPragCName: U8(8)},
- { /* zName: */ FzName: ts + 17931,
+ { /* zName: */ FzName: ts + 17939,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ForeignKeys)},
- { /* zName: */ FzName: ts + 17944,
+ { /* zName: */ FzName: ts + 17952,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0)},
- { /* zName: */ FzName: ts + 17959,
+ { /* zName: */ FzName: ts + 17967,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_FullColNames)},
- { /* zName: */ FzName: ts + 17977,
+ { /* zName: */ FzName: ts + 17985,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_FullFSync)},
- { /* zName: */ FzName: ts + 17987,
+ { /* zName: */ FzName: ts + 17995,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FUNCTION_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(27), FnPragCName: U8(6)},
- { /* zName: */ FzName: ts + 18001,
+ { /* zName: */ FzName: ts + 18009,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HARD_HEAP_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 18017,
+ { /* zName: */ FzName: ts + 18025,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_IgnoreChecks)},
- { /* zName: */ FzName: ts + 18042,
+ { /* zName: */ FzName: ts + 18050,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INCREMENTAL_VACUUM),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 18061,
+ { /* zName: */ FzName: ts + 18069,
/* 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 + 18072,
+ { /* zName: */ FzName: ts + 18080,
/* 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 + 18083,
+ { /* zName: */ FzName: ts + 18091,
/* 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 + 18095,
+ { /* zName: */ FzName: ts + 18103,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)},
- { /* zName: */ FzName: ts + 18111,
+ { /* zName: */ FzName: ts + 18119,
/* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_MODE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 18124,
+ { /* zName: */ FzName: ts + 18132,
/* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_SIZE_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 18143,
+ { /* zName: */ FzName: ts + 18151,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_LegacyAlter)},
- { /* zName: */ FzName: ts + 18162,
+ { /* zName: */ FzName: ts + 18170,
/* ePragTyp: */ FePragTyp: U8(PragTyp_LOCKING_MODE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 18175,
+ { /* zName: */ FzName: ts + 18183,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 18190,
+ { /* zName: */ FzName: ts + 18198,
/* ePragTyp: */ FePragTyp: U8(PragTyp_MMAP_SIZE)},
- { /* zName: */ FzName: ts + 18200,
+ { /* zName: */ FzName: ts + 18208,
/* ePragTyp: */ FePragTyp: U8(PragTyp_MODULE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 18212,
+ { /* zName: */ FzName: ts + 18220,
/* ePragTyp: */ FePragTyp: U8(PragTyp_OPTIMIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result1 | PragFlg_NeedSchema)},
- { /* zName: */ FzName: ts + 18221,
+ { /* zName: */ FzName: ts + 18229,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)},
- { /* zName: */ FzName: ts + 18232,
+ { /* zName: */ FzName: ts + 18240,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_SIZE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 18242,
+ { /* zName: */ FzName: ts + 18250,
/* ePragTyp: */ FePragTyp: U8(PragTyp_PRAGMA_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0),
/* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)},
- { /* zName: */ FzName: ts + 18254,
+ { /* zName: */ FzName: ts + 18262,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_QueryOnly)},
- { /* zName: */ FzName: ts + 18265,
+ { /* zName: */ FzName: ts + 18273,
/* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)},
- { /* zName: */ FzName: ts + 18277,
+ { /* zName: */ FzName: ts + 18285,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ReadUncommit)},
- { /* zName: */ FzName: ts + 18294,
+ { /* zName: */ FzName: ts + 18302,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_RecTriggers)},
- { /* zName: */ FzName: ts + 18313,
+ { /* zName: */ FzName: ts + 18321,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ReverseOrder)},
- { /* zName: */ FzName: ts + 18339,
+ { /* zName: */ FzName: ts + 18347,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_SCHEMA_VERSION)},
- { /* zName: */ FzName: ts + 18354,
+ { /* zName: */ FzName: ts + 18362,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SECURE_DELETE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 18368,
+ { /* zName: */ FzName: ts + 18376,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_ShortColNames)},
- { /* zName: */ FzName: ts + 18387,
+ { /* zName: */ FzName: ts + 18395,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SHRINK_MEMORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)},
- { /* zName: */ FzName: ts + 18401,
+ { /* zName: */ FzName: ts + 18409,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SOFT_HEAP_LIMIT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 18417,
+ { /* zName: */ FzName: ts + 18425,
/* ePragTyp: */ FePragTyp: U8(PragTyp_SYNCHRONOUS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 18429,
+ { /* zName: */ FzName: ts + 18437,
/* 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 + 18440,
+ { /* zName: */ FzName: ts + 18448,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_LIST),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1),
/* ColNames: */ FiPragCName: U8(15), FnPragCName: U8(6)},
- { /* zName: */ FzName: ts + 18451,
+ { /* zName: */ FzName: ts + 18459,
/* 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 + 18463,
+ { /* zName: */ FzName: ts + 18471,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 18474,
+ { /* zName: */ FzName: ts + 18482,
/* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE_DIRECTORY),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)},
- { /* zName: */ FzName: ts + 18495,
+ { /* zName: */ FzName: ts + 18503,
/* ePragTyp: */ FePragTyp: U8(PragTyp_THREADS),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)},
- { /* zName: */ FzName: ts + 18503,
+ { /* zName: */ FzName: ts + 18511,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_TrustedSchema)},
- { /* zName: */ FzName: ts + 18518,
+ { /* zName: */ FzName: ts + 18526,
/* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0),
/* iArg: */ FiArg: uint64(BTREE_USER_VERSION)},
- { /* zName: */ FzName: ts + 18531,
+ { /* zName: */ FzName: ts + 18539,
/* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_AUTOCHECKPOINT)},
- { /* zName: */ FzName: ts + 18550,
+ { /* zName: */ FzName: ts + 18558,
/* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_CHECKPOINT),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema),
/* ColNames: */ FiPragCName: U8(50), FnPragCName: U8(3)},
- { /* zName: */ FzName: ts + 18565,
+ { /* zName: */ FzName: ts + 18573,
/* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG),
/* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1),
/* iArg: */ FiArg: uint64(SQLITE_WriteSchema | SQLITE_NoSchemaError)},
-} /* sqlite3.c:129904:25 */
+} /* sqlite3.c:129938:25 */
// Number of pragmas: 68 on by default, 78 total.
@@ -155918,7 +155953,7 @@ var aPragmaName = [67]PragmaName{
// should be passed into sqlite3BtreeSetSafetyLevel(). The is done
// to support legacy SQL code. The safety level used to be boolean
// and older scripts may have used numbers 0 for OFF and 1 for ON.
-func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* sqlite3.c:130438:11: */
+func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* sqlite3.c:130472:11: */
// on no off false yes true extra full
var i int32
var n int32
@@ -155935,13 +155970,13 @@ func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* s
return dflt
}
-var zText = *(*[25]int8)(unsafe.Pointer(ts + 18581)) /* 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 */
+var zText = *(*[25]int8)(unsafe.Pointer(ts + 18589)) /* sqlite3.c:130474:21 */
+var iOffset = [8]U8{U8(0), U8(1), U8(2), U8(4), U8(9), U8(12), U8(15), U8(20)} /* sqlite3.c:130475:19 */
+var iLength = [8]U8{U8(2), U8(2), U8(3), U8(5), U8(3), U8(4), U8(5), U8(4)} /* sqlite3.c:130476:19 */
+var iValue = [8]U8{U8(1), U8(0), U8(0), U8(0), U8(1), U8(1), U8(3), U8(2)} /* sqlite3.c:130477:19 */
// Interpret the given string as a boolean value.
-func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* sqlite3.c:130463:19: */
+func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* sqlite3.c:130497:19: */
return U8(libc.Bool32(int32(getSafetyLevel(tls, z, 1, dflt)) != 0))
}
@@ -155950,12 +155985,12 @@ func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* sqlite3.c:130
// 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:130476:12: */
+func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:130510:12: */
if z != 0 {
if 0 == Xsqlite3StrICmp(tls, z, ts+4968) {
return PAGER_LOCKINGMODE_EXCLUSIVE
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+18606) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+18614) {
return PAGER_LOCKINGMODE_NORMAL
}
}
@@ -155966,15 +156001,15 @@ func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:130476: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:130491:12: */
+func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:130525:12: */
var i int32
if 0 == Xsqlite3StrICmp(tls, z, ts+9257) {
return BTREE_AUTOVACUUM_NONE
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+18613) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+18621) {
return BTREE_AUTOVACUUM_FULL
}
- if 0 == Xsqlite3StrICmp(tls, z, ts+18618) {
+ if 0 == Xsqlite3StrICmp(tls, z, ts+18626) {
return BTREE_AUTOVACUUM_INCR
}
i = Xsqlite3Atoi(tls, z)
@@ -155989,12 +156024,12 @@ func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:130491: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:130507:12: */
+func getTempStore(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:130541: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+17535) == 0 {
+ } else if Xsqlite3StrICmp(tls, z, ts+17543) == 0 {
return 1
- } else if Xsqlite3StrICmp(tls, z, ts+18630) == 0 {
+ } else if Xsqlite3StrICmp(tls, z, ts+18638) == 0 {
return 2
} else {
return 0
@@ -156004,13 +156039,13 @@ func getTempStore(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:130507: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:130525:12: */
+func invalidateTempStorage(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:130559: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+18637, 0)
+ ts+18645, 0)
return SQLITE_ERROR
}
Xsqlite3BtreeClose(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt)
@@ -156023,7 +156058,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:130549:12: */
+func changeTempStorage(tls *libc.TLS, pParse uintptr, zStorageType uintptr) int32 { /* sqlite3.c:130583:12: */
var ts int32 = getTempStore(tls, zStorageType)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
if int32((*Sqlite3)(unsafe.Pointer(db)).Ftemp_store) == ts {
@@ -156037,7 +156072,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:130564:13: */
+func setPragmaResultColumnNames(tls *libc.TLS, v uintptr, pPragma uintptr) { /* sqlite3.c:130598:13: */
var n U8 = (*PragmaName)(unsafe.Pointer(pPragma)).FnPragCName
Xsqlite3VdbeSetNumCols(tls, v, func() int32 {
if int32(n) == 0 {
@@ -156071,7 +156106,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:130583:13: */
+func returnSingleInt(tls *libc.TLS, v uintptr, value I64) { /* sqlite3.c:130617:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*I64)(unsafe.Pointer(bp)) = value
@@ -156081,7 +156116,7 @@ func returnSingleInt(tls *libc.TLS, v uintptr, value I64) { /* sqlite3.c:130583:
}
// Generate code to return a single text value.
-func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* sqlite3.c:130591:13: */
+func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* sqlite3.c:130625:13: */
if zValue != 0 {
Xsqlite3VdbeLoadString(tls, v, 1, zValue)
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1)
@@ -156090,7 +156125,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:130607:13: */
+func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* sqlite3.c:130641:13: */
if (*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0 {
var pDb uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaDb
var n int32 = (*Sqlite3)(unsafe.Pointer(db)).FnDb
@@ -156106,23 +156141,23 @@ func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* sqlite3.c:130607:13: */
}
// Return a human-readable name for a constraint resolution action.
-func actionName(tls *libc.TLS, action U8) uintptr { /* sqlite3.c:130635:19: */
+func actionName(tls *libc.TLS, action U8) uintptr { /* sqlite3.c:130669:19: */
var zName uintptr
switch int32(action) {
case OE_SetNull:
- zName = ts + 18699 /* "SET NULL" */
+ zName = ts + 18707 /* "SET NULL" */
break
case OE_SetDflt:
- zName = ts + 18708 /* "SET DEFAULT" */
+ zName = ts + 18716 /* "SET DEFAULT" */
break
case OE_Cascade:
- zName = ts + 18720 /* "CASCADE" */
+ zName = ts + 18728 /* "CASCADE" */
break
case OE_Restrict:
- zName = ts + 18728 /* "RESTRICT" */
+ zName = ts + 18736 /* "RESTRICT" */
break
default:
- zName = ts + 18737 /* "NO ACTION" */
+ zName = ts + 18745 /* "NO ACTION" */
break
}
return zName
@@ -156131,7 +156166,7 @@ func actionName(tls *libc.TLS, action U8) uintptr { /* sqlite3.c:130635: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:130655:27: */
+func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* sqlite3.c:130689:27: */
if eMode == int32(uint64(unsafe.Sizeof(azModeName))/uint64(unsafe.Sizeof(uintptr(0)))) {
return uintptr(0)
@@ -156140,11 +156175,11 @@ func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* sqlite3.c:
}
var azModeName = [6]uintptr{
- ts + 18747, ts + 18754, ts + 18762, ts + 18766, ts + 18630, ts + 18775,
-} /* sqlite3.c:130656:15 */
+ ts + 18755, ts + 18762, ts + 18770, ts + 18774, ts + 18638, ts + 18783,
+} /* sqlite3.c:130690:15 */
// Locate a pragma in the aPragmaName[] array.
-func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:130677:25: */
+func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:130711:25: */
var upr int32
var lwr int32
var mid int32 = 0
@@ -156171,7 +156206,7 @@ func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:130677: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:130698:13: */
+func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, showInternFuncs int32) { /* sqlite3.c:130732:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -156186,13 +156221,13 @@ func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, sh
continue
}
if (*FuncDef)(unsafe.Pointer(p)).FxValue != uintptr(0) {
- zType = ts + 18779 /* "w" */
+ zType = ts + 18787 /* "w" */
} else if (*FuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) {
- zType = ts + 18781 /* "a" */
+ zType = ts + 18789 /* "a" */
} else {
zType = ts + 8767 /* "s" */
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18783,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18791,
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),
@@ -156200,15 +156235,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:130706:22 */
-var azEnc = [4]uintptr{uintptr(0), ts + 18790, ts + 18795, ts + 18803 /* "utf16be" */} /* sqlite3.c:130713:23 */
+var mask U32 = U32(SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS | SQLITE_FUNC_INTERNAL) /* sqlite3.c:130740:22 */
+var azEnc = [4]uintptr{uintptr(0), ts + 18798, ts + 18803, ts + 18811 /* "utf16be" */} /* sqlite3.c:130747: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:130750:12: */
+func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* sqlite3.c:130784:12: */
var addr int32
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 3, 1)
addr = Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, 1, Xsqlite3VdbeCurrentAddr(tls, v)+2, 1)
@@ -156230,7 +156265,7 @@ func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* sqlite3.c:1307
// 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:130774:21: */
+func Xsqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, pValue uintptr, minusFlag int32) { /* sqlite3.c:130808:21: */
bp := tls.Alloc(624)
defer tls.Free(624)
@@ -156479,7 +156514,7 @@ __4:
if !(minusFlag != 0) {
goto __5
}
- zRight = Xsqlite3MPrintf(tls, db, ts+18811, libc.VaList(bp, pValue))
+ zRight = Xsqlite3MPrintf(tls, db, ts+18819, libc.VaList(bp, pValue))
goto __6
__5:
zRight = Xsqlite3NameFromToken(tls, db, pValue)
@@ -157136,7 +157171,7 @@ __18:
if !(zRight != 0) {
goto __64
}
- if !(Xsqlite3_stricmp(tls, zRight, ts+18815) == 0) {
+ if !(Xsqlite3_stricmp(tls, zRight, ts+18823) == 0) {
goto __65
}
b = 2
@@ -157225,7 +157260,7 @@ __72:
// PRAGMA [schema.]locking_mode
// PRAGMA [schema.]locking_mode = (normal|exclusive)
__20:
- zRet = ts + 18606 /* "normal" */
+ zRet = ts + 18614 /* "normal" */
eMode = getLockingMode(tls, zRight)
if !((*Token)(unsafe.Pointer(pId2)).Fn == uint32(0) && eMode == -1) {
@@ -157631,7 +157666,7 @@ __124:
if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 520)) == 0) {
goto __127
}
- Xsqlite3ErrorMsg(tls, pParse, ts+18820, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18828, 0)
goto pragma_out
__127:
;
@@ -157684,7 +157719,7 @@ __131:
if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 524)) == 0) {
goto __134
}
- Xsqlite3ErrorMsg(tls, pParse, ts+18820, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+18828, 0)
goto pragma_out
__134:
;
@@ -157722,7 +157757,7 @@ __137:
goto __139
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+18845, 0)
+ ts+18853, 0)
goto __140
__139:
if !(iDb != 1) {
@@ -157778,7 +157813,7 @@ __146:
__148:
;
if !(mask&uint64(SQLITE_WriteSchema) != uint64(0) &&
- Xsqlite3_stricmp(tls, zRight, ts+18898) == 0) {
+ Xsqlite3_stricmp(tls, zRight, ts+18906) == 0) {
goto __149
}
// IMP: R-60817-01178 If the argument is "RESET" then schema
@@ -157892,9 +157927,9 @@ __162:
Xsqlite3VdbeMultiLoad(tls, v, 1, func() uintptr {
if (*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- return ts + 18904 /* "issisii" */
+ return ts + 18912 /* "issisii" */
}
- return ts + 18912 /* "issisi" */
+ return ts + 18920 /* "issisi" */
}(),
libc.VaList(bp+32, i-nHidden,
(*Column)(unsafe.Pointer(pCol)).FzCnName,
@@ -157979,7 +158014,7 @@ __177:
if !(int32((*Table)(unsafe.Pointer(pTab1)).FnCol) == 0) {
goto __178
}
- zSql = Xsqlite3MPrintf(tls, db, ts+18919, libc.VaList(bp+88, (*Table)(unsafe.Pointer(pTab1)).FzName))
+ zSql = Xsqlite3MPrintf(tls, db, ts+18927, libc.VaList(bp+88, (*Table)(unsafe.Pointer(pTab1)).FzName))
if !(zSql != 0) {
goto __179
}
@@ -158032,13 +158067,13 @@ __185:
if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VTAB) {
goto __187
}
- zType = ts + 14002 /* "virtual" */
+ zType = ts + 14010 /* "virtual" */
goto __188
__187:
if !((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_Shadow) != 0) {
goto __189
}
- zType = ts + 18935 /* "shadow" */
+ zType = ts + 18943 /* "shadow" */
goto __190
__189:
zType = ts + 10113 /* "table" */
@@ -158048,7 +158083,7 @@ __188:
;
__186:
;
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18942,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18950,
libc.VaList(bp+96, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii4)*32)).FzDbSName,
Xsqlite3PreferredTableName(tls, (*Table)(unsafe.Pointer(pTab2)).FzName),
zType,
@@ -158118,7 +158153,7 @@ __197:
goto __199
}
cnum = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i1)*2))
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18949, libc.VaList(bp+144, i1, int32(cnum),
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18957, libc.VaList(bp+144, i1, int32(cnum),
func() uintptr {
if int32(cnum) < 0 {
return uintptr(0)
@@ -158128,7 +158163,7 @@ __197:
if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) {
goto __200
}
- Xsqlite3VdbeMultiLoad(tls, v, 4, ts+18954,
+ Xsqlite3VdbeMultiLoad(tls, v, 4, ts+18962,
libc.VaList(bp+168, int32(*(*U8)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaSortOrder + uintptr(i1)))),
*(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(i1)*8)),
libc.Bool32(i1 < int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol))))
@@ -158165,8 +158200,8 @@ __203:
if !(pIdx1 != 0) {
goto __205
}
- *(*[3]uintptr)(unsafe.Pointer(bp + 536 /* azOrigin */)) = [3]uintptr{ts + 18959, ts + 18961, ts + 17412}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18963,
+ *(*[3]uintptr)(unsafe.Pointer(bp + 536 /* azOrigin */)) = [3]uintptr{ts + 18967, ts + 18969, ts + 17420}
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18971,
libc.VaList(bp+192, i2,
(*Index)(unsafe.Pointer(pIdx1)).FzName,
libc.Bool32(int32((*Index)(unsafe.Pointer(pIdx1)).FonError) != OE_None),
@@ -158200,7 +158235,7 @@ __206:
__209:
;
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18969,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18977,
libc.VaList(bp+232, i3,
(*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i3)*32)).FzDbSName,
Xsqlite3BtreeGetFilename(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i3)*32)).FpBt)))
@@ -158223,7 +158258,7 @@ __210:
goto __212
}
pColl = (*HashElem)(unsafe.Pointer(p)).Fdata
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18973, libc.VaList(bp+256, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName))
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18981, libc.VaList(bp+256, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName))
goto __211
__211:
p = (*HashElem)(unsafe.Pointer(p)).Fnext
@@ -158342,7 +158377,7 @@ __233:
if !(j2 < (*FKey)(unsafe.Pointer(pFK)).FnCol) {
goto __235
}
- Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18976,
+ Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18984,
libc.VaList(bp+288, i7,
j2,
(*FKey)(unsafe.Pointer(pFK)).FzTo,
@@ -158350,7 +158385,7 @@ __233:
(*sColMap)(unsafe.Pointer(pFK+64+uintptr(j2)*16)).FzCol,
actionName(tls, *(*U8)(unsafe.Pointer(pFK + 45 + 1))), // ON UPDATE
actionName(tls, *(*U8)(unsafe.Pointer(pFK + 45))),
- ts+18985))
+ ts+18993))
goto __234
__234:
j2++
@@ -158551,7 +158586,7 @@ __263:
Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1)
__264:
;
- Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+18990, libc.VaList(bp+352, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1))
+ Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+18998, libc.VaList(bp+352, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1))
Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, regResult, 4)
Xsqlite3VdbeResolveLabel(tls, v, addrOk)
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 568 /* aiCols */)))
@@ -158817,7 +158852,7 @@ __291:
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+18994, libc.VaList(bp+368, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)),
+ Xsqlite3MPrintf(tls, db, ts+19002, libc.VaList(bp+368, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)),
-7)
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 2, 3, 3)
integrityCheckResultRow(tls, v)
@@ -158919,7 +158954,7 @@ __311:
goto __312
}
jmp2 = Xsqlite3VdbeAddOp1(tls, v, OP_NotNull, 3)
- zErr = Xsqlite3MPrintf(tls, db, ts+19018, libc.VaList(bp+376, (*Table)(unsafe.Pointer(pTab9)).FzName,
+ zErr = Xsqlite3MPrintf(tls, db, ts+19026, libc.VaList(bp+376, (*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) {
@@ -158941,7 +158976,7 @@ __312:
jmp2 = Xsqlite3VdbeAddOp3(tls, v, OP_IsNullOrType, 3, 0,
int32(Xsqlite3StdTypeMap[(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4)-1)&0xf<<28>>28]))
- zErr = Xsqlite3MPrintf(tls, db, ts+19038,
+ zErr = Xsqlite3MPrintf(tls, db, ts+19046,
libc.VaList(bp+392, Xsqlite3StdType[(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4)-1)&0xf<<28>>28],
(*Table)(unsafe.Pointer(pTab9)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab9)).FaCol+uintptr(j4)*24)).FzCnName))
Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr, -7)
@@ -158985,7 +159020,7 @@ __320:
SQLITE_JUMPIFNULL)
Xsqlite3VdbeResolveLabel(tls, v, addrCkFault)
(*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0
- zErr1 = Xsqlite3MPrintf(tls, db, ts+19060,
+ zErr1 = Xsqlite3MPrintf(tls, db, ts+19068,
libc.VaList(bp+416, (*Table)(unsafe.Pointer(pTab9)).FzName))
Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr1, -7)
integrityCheckResultRow(tls, v)
@@ -159019,9 +159054,9 @@ __325:
// Verify that an index entry exists for the current table row
jmp21 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, *(*int32)(unsafe.Pointer(bp + 584))+j4, ckUniq, r1,
int32((*Index)(unsafe.Pointer(pIdx5)).FnColumn))
- Xsqlite3VdbeLoadString(tls, v, 3, ts+19090)
+ Xsqlite3VdbeLoadString(tls, v, 3, ts+19098)
Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 7, 3, 3)
- Xsqlite3VdbeLoadString(tls, v, 4, ts+19095)
+ Xsqlite3VdbeLoadString(tls, v, 4, ts+19103)
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)
@@ -159061,7 +159096,7 @@ __329:
Xsqlite3VdbeJumpHere(tls, v, jmp6)
Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxGT, *(*int32)(unsafe.Pointer(bp + 584))+j4, uniqOk, r1,
int32((*Index)(unsafe.Pointer(pIdx5)).FnKeyCol))
- Xsqlite3VdbeLoadString(tls, v, 3, ts+19116)
+ Xsqlite3VdbeLoadString(tls, v, 3, ts+19124)
Xsqlite3VdbeGoto(tls, v, jmp5)
Xsqlite3VdbeResolveLabel(tls, v, uniqOk)
__326:
@@ -159083,7 +159118,7 @@ __321:
if !!(isQuick != 0) {
goto __331
}
- Xsqlite3VdbeLoadString(tls, v, 2, ts+19143)
+ Xsqlite3VdbeLoadString(tls, v, 2, ts+19151)
j4 = 0
pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex
__332:
@@ -159134,7 +159169,7 @@ __273:
}
(*VdbeOp)(unsafe.Pointer(aOp2)).Fp2 = 1 - *(*int32)(unsafe.Pointer(bp + 576))
(*VdbeOp)(unsafe.Pointer(aOp2 + 2*24)).Fp4type = int8(-1)
- *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 19172 /* "ok" */
+ *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 19180 /* "ok" */
(*VdbeOp)(unsafe.Pointer(aOp2 + 5*24)).Fp4type = int8(-1)
*(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = Xsqlite3ErrStr(tls, SQLITE_CORRUPT)
__336:
@@ -159212,7 +159247,7 @@ __343:
if !!(int32((*EncName)(unsafe.Pointer(pEnc)).FzName) != 0) {
goto __345
}
- Xsqlite3ErrorMsg(tls, pParse, ts+19175, libc.VaList(bp+424, zRight))
+ Xsqlite3ErrorMsg(tls, pParse, ts+19183, libc.VaList(bp+424, zRight))
__345:
;
__340:
@@ -159324,19 +159359,19 @@ __49:
if !(zRight != 0) {
goto __352
}
- if !(Xsqlite3StrICmp(tls, zRight, ts+18613) == 0) {
+ if !(Xsqlite3StrICmp(tls, zRight, ts+18621) == 0) {
goto __353
}
eMode2 = SQLITE_CHECKPOINT_FULL
goto __354
__353:
- if !(Xsqlite3StrICmp(tls, zRight, ts+19200) == 0) {
+ if !(Xsqlite3StrICmp(tls, zRight, ts+19208) == 0) {
goto __355
}
eMode2 = SQLITE_CHECKPOINT_RESTART
goto __356
__355:
- if !(Xsqlite3StrICmp(tls, zRight, ts+18766) == 0) {
+ if !(Xsqlite3StrICmp(tls, zRight, ts+18774) == 0) {
goto __357
}
eMode2 = SQLITE_CHECKPOINT_TRUNCATE
@@ -159523,7 +159558,7 @@ __372:
__374:
;
- zSubSql = Xsqlite3MPrintf(tls, db, ts+19208,
+ zSubSql = Xsqlite3MPrintf(tls, db, ts+19216,
libc.VaList(bp+432, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Table)(unsafe.Pointer(pTab10)).FzName))
if !(opMask&U32(0x01) != 0) {
goto __375
@@ -159674,9 +159709,9 @@ type EncName = struct {
FzName uintptr
Fenc U8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:132349:18 */
+} /* sqlite3.c:132383:18 */
-var iLn3 int32 = 0 /* sqlite3.c:130903:22 */
+var iLn3 int32 = 0 /* sqlite3.c:130937:22 */
var getCacheSize = [9]VdbeOpList{
{Fopcode: U8(OP_Transaction)}, // 0
{Fopcode: U8(OP_ReadCookie), Fp2: int8(1), Fp3: int8(BTREE_DEFAULT_CACHE_SIZE)}, // 1
@@ -159687,16 +159722,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:130904:29 */
-var iLn4 int32 = 0 /* sqlite3.c:131172:26 */
+} /* sqlite3.c:130938:29 */
+var iLn4 int32 = 0 /* sqlite3.c:131206: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:131173:33 */
-var iLn5 int32 = 0 /* sqlite3.c:132299:24 */
+} /* sqlite3.c:131207:33 */
+var iLn5 int32 = 0 /* sqlite3.c:132333:24 */
var endCode = [7]VdbeOpList{
{Fopcode: U8(OP_AddImm), Fp1: int8(1)}, // 0
{Fopcode: U8(OP_IfNotZero), Fp1: int8(1), Fp2: int8(4)}, // 1
@@ -159705,27 +159740,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:132300:31 */
+} /* sqlite3.c:132334:31 */
var encnames1 = [9]EncName{
- {FzName: ts + 19226, Fenc: U8(SQLITE_UTF8)},
- {FzName: ts + 19231, Fenc: U8(SQLITE_UTF8)}, // Must be element [1]
- {FzName: ts + 19237, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2]
- {FzName: ts + 19246, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3]
- {FzName: ts + 19255, Fenc: U8(SQLITE_UTF16LE)},
- {FzName: ts + 19263, Fenc: U8(SQLITE_UTF16BE)},
- {FzName: ts + 19271},
- {FzName: ts + 19278},
+ {FzName: ts + 19234, Fenc: U8(SQLITE_UTF8)},
+ {FzName: ts + 19239, Fenc: U8(SQLITE_UTF8)}, // Must be element [1]
+ {FzName: ts + 19245, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2]
+ {FzName: ts + 19254, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3]
+ {FzName: ts + 19263, Fenc: U8(SQLITE_UTF16LE)},
+ {FzName: ts + 19271, Fenc: U8(SQLITE_UTF16BE)},
+ {FzName: ts + 19279},
+ {FzName: ts + 19286},
{},
-} /* sqlite3.c:132352:7 */
+} /* sqlite3.c:132386:7 */
var setCookie = [2]VdbeOpList{
{Fopcode: U8(OP_Transaction), Fp2: int8(1)}, // 0
{Fopcode: U8(OP_SetCookie)}, // 1
-} /* sqlite3.c:132432:31 */
+} /* sqlite3.c:132466: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:132447:31 */
+} /* sqlite3.c:132481:31 */
// ****************************************************************************
//
// Implementation of an eponymous virtual table that runs a pragma.
@@ -159737,24 +159772,24 @@ type PragmaVtab1 = struct {
FnHidden U8
FiHidden U8
F__ccgo_pad1 [6]byte
-} /* sqlite3.c:132807:9 */
+} /* sqlite3.c:132841:9 */
// ****************************************************************************
//
// Implementation of an eponymous virtual table that runs a pragma.
//
-type PragmaVtab = PragmaVtab1 /* sqlite3.c:132807:27 */
+type PragmaVtab = PragmaVtab1 /* sqlite3.c:132841:27 */
type PragmaVtabCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpPragma uintptr
FiRowid Sqlite_int64
FazArg [2]uintptr
-} /* sqlite3.c:132808:9 */
+} /* sqlite3.c:132842:9 */
-type PragmaVtabCursor = PragmaVtabCursor1 /* sqlite3.c:132808:33 */
+type PragmaVtabCursor = PragmaVtabCursor1 /* sqlite3.c:132842: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:132826:12: */
+func pragmaVtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:132860:12: */
bp := tls.Alloc(264)
defer tls.Free(264)
@@ -159771,7 +159806,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+19284)
+ Xsqlite3_str_appendall(tls, bp+32, ts+19292)
i = 0
j = int32((*PragmaName)(unsafe.Pointer(pPragma)).FiPragCName)
__1:
@@ -159779,7 +159814,7 @@ __1:
goto __3
}
{
- Xsqlite3_str_appendf(tls, bp+32, ts+19299, libc.VaList(bp, int32(cSep), pragCName[j]))
+ Xsqlite3_str_appendf(tls, bp+32, ts+19307, libc.VaList(bp, int32(cSep), pragCName[j]))
cSep = int8(',')
}
@@ -159792,16 +159827,16 @@ __2:
__3:
;
if i == 0 {
- Xsqlite3_str_appendf(tls, bp+32, ts+19306, libc.VaList(bp+16, (*PragmaName)(unsafe.Pointer(pPragma)).FzName))
+ Xsqlite3_str_appendf(tls, bp+32, ts+19314, 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+19312)
+ Xsqlite3_str_appendall(tls, bp+32, ts+19320)
j++
}
if int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(PragFlg_SchemaOpt|PragFlg_SchemaReq) != 0 {
- Xsqlite3_str_appendall(tls, bp+32, ts+19324)
+ Xsqlite3_str_appendall(tls, bp+32, ts+19332)
j++
}
Xsqlite3_str_append(tls, bp+32, ts+6260, 1)
@@ -159828,7 +159863,7 @@ __3:
}
// Pragma virtual table module xDisconnect method.
-func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:132888:12: */
+func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:132922:12: */
var pTab uintptr = pVtab
Xsqlite3_free(tls, pTab)
return SQLITE_OK
@@ -159840,7 +159875,7 @@ func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:132
// 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:132901:12: */
+func pragmaVtabBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* sqlite3.c:132935:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -159905,7 +159940,7 @@ __3:
}
// Create a new cursor for the pragma virtual table
-func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* sqlite3.c:132938:12: */
+func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* sqlite3.c:132972:12: */
var pCsr uintptr
pCsr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(PragmaVtabCursor{})))
if pCsr == uintptr(0) {
@@ -159918,7 +159953,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:132949:13: */
+func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:132983:13: */
var i int32
Xsqlite3_finalize(tls, (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma)
(*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma = uintptr(0)
@@ -159929,7 +159964,7 @@ func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:132949:13
}
// Close a pragma virtual table cursor
-func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:132960:12: */
+func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:132994:12: */
var pCsr uintptr = cur
pragmaVtabCursorClear(tls, pCsr)
Xsqlite3_free(tls, pCsr)
@@ -159937,7 +159972,7 @@ func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:132960:12:
}
// Advance the pragma virtual table cursor to the next row
-func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:132968:12: */
+func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:133002:12: */
var pCsr uintptr = pVtabCursor
var rc int32 = SQLITE_OK
@@ -159953,7 +159988,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:132986:12: */
+func pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3.c:133020:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -159999,13 +160034,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+19339)
+ Xsqlite3_str_appendall(tls, bp+32, ts+19347)
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 {
- Xsqlite3_str_appendf(tls, bp+32, ts+19347, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8))))
+ Xsqlite3_str_appendf(tls, bp+32, ts+19355, 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+19351, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
+ Xsqlite3_str_appendf(tls, bp+32, ts+19359, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
}
zSql = Xsqlite3StrAccumFinish(tls, bp+32)
if zSql == uintptr(0) {
@@ -160021,14 +160056,14 @@ __3:
}
// Pragma virtual table module xEof method.
-func pragmaVtabEof(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:133036:12: */
+func pragmaVtabEof(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:133070: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:133044:12: */
+func pragmaVtabColumn(tls *libc.TLS, pVtabCursor uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:133078:12: */
var pCsr uintptr = pVtabCursor
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab
if i < int32((*PragmaVtab)(unsafe.Pointer(pTab)).FiHidden) {
@@ -160040,7 +160075,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:133062:12: */
+func pragmaVtabRowid(tls *libc.TLS, pVtabCursor uintptr, p uintptr) int32 { /* sqlite3.c:133096:12: */
var pCsr uintptr = pVtabCursor
*(*Sqlite_int64)(unsafe.Pointer(p)) = (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FiRowid
return SQLITE_OK
@@ -160058,12 +160093,12 @@ var pragmaVtabModule = Sqlite3_module{ // xCreate - create a table
FxEof: 0, // xEof
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:133069:29 */
+} /* sqlite3.c:133103: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:133101:23: */
+func Xsqlite3PragmaVtabRegister(tls *libc.TLS, db uintptr, zName uintptr) uintptr { /* sqlite3.c:133135:23: */
var pName uintptr
pName = pragmaLocate(tls, zName+uintptr(7))
@@ -160096,7 +160131,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:133138:13: */
+func corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr) { /* sqlite3.c:133172:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -160107,12 +160142,12 @@ 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+19355, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)),
+ ts+19363, 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, 133161)
+ (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133195)
} else {
var z uintptr
var zObj uintptr
@@ -160121,25 +160156,25 @@ func corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr)
} else {
zObj = ts + 6311 /* "?" */
}
- z = Xsqlite3MPrintf(tls, db, ts+19383, libc.VaList(bp+32, zObj))
+ z = Xsqlite3MPrintf(tls, db, ts+19391, libc.VaList(bp+32, zObj))
if zExtra != 0 && *(*int8)(unsafe.Pointer(zExtra)) != 0 {
- z = Xsqlite3MPrintf(tls, db, ts+19414, libc.VaList(bp+40, z, zExtra))
+ z = Xsqlite3MPrintf(tls, db, ts+19422, libc.VaList(bp+40, z, zExtra))
}
*(*uintptr)(unsafe.Pointer((*InitData)(unsafe.Pointer(pData)).FpzErrMsg)) = z
- (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133168)
+ (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133202)
}
}
var azAlterType = [3]uintptr{
- ts + 19422,
- ts + 19429,
- ts + 19441,
-} /* sqlite3.c:133149:23 */
+ ts + 19430,
+ ts + 19437,
+ ts + 19449,
+} /* sqlite3.c:133183: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:133177:20: */
+func Xsqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) int32 { /* sqlite3.c:133211: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 {
@@ -160161,7 +160196,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:133211:20: */
+func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* sqlite3.c:133245:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -160206,7 +160241,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+15426)
+ corruptSchema(tls, pData, argv, ts+15434)
}
}
libc.SetBitFieldPtr8Uint32(db+192+8, uint32(0), 0, 0x1)
@@ -160244,13 +160279,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+19452)
+ corruptSchema(tls, pData, argv, ts+19460)
} 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+15426)
+ corruptSchema(tls, pData, argv, ts+15434)
}
}
}
@@ -160263,7 +160298,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:133314:20: */
+func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFlags U32) int32 { /* sqlite3.c:133348:20: */
bp := tls.Alloc(124)
defer tls.Free(124)
@@ -160296,13 +160331,13 @@ func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
*(*uintptr)(unsafe.Pointer(bp + 16)) = ts + 10113 /* "table" */
*(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) = libc.AssignUintptr(&zSchemaTabName, func() uintptr {
if !(0 != 0) && iDb == 1 {
- return ts + 13377
+ return ts + 13385
}
return ts + 7196
}())
*(*uintptr)(unsafe.Pointer(bp + 16 + 2*8)) = *(*uintptr)(unsafe.Pointer(bp + 16 + 1*8))
*(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 9177 /* "1" */
- *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 19465 /* "CREATE TABLE x(t..." */
+ *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 19473 /* "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
@@ -160415,7 +160450,7 @@ __10:
goto __13
}
Xsqlite3SetString(tls, pzErrMsg, db,
- ts+13004)
+ ts+13012)
rc = SQLITE_ERROR
goto initone_error_out
__13:
@@ -160455,7 +160490,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+19537)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+19545)
rc = SQLITE_ERROR
goto initone_error_out
__17:
@@ -160477,7 +160512,7 @@ __18:
(*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer(pDb)).FpBt)
zSql = Xsqlite3MPrintf(tls, db,
- ts+19561,
+ ts+19569,
libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zSchemaTabName))
xAuth = (*Sqlite3)(unsafe.Pointer(db)).FxAuth
@@ -160564,7 +160599,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:133553:20: */
+func Xsqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:133587:20: */
var i int32
var rc int32
var commit_internal int32 = libc.BoolInt32(!((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != 0))
@@ -160596,7 +160631,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:133585:20: */
+func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:133619:20: */
var rc int32 = SQLITE_OK
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
@@ -160615,7 +160650,7 @@ func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:1335
// 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:133607:13: */
+func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:133641:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -160668,7 +160703,7 @@ func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:133607: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:133657:20: */
+func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { /* sqlite3.c:133691:20: */
var i int32 = -32768
// If pSchema is NULL, then return -32768. This happens when code in
@@ -160695,7 +160730,7 @@ func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { /
}
// Free all memory allocations in the pParse object
-func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:133687:21: */
+func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:133721:21: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FaTableLock)
@@ -160751,7 +160786,7 @@ func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:1336
// 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:133742:21: */
+func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, pPtr uintptr) uintptr { /* sqlite3.c:133776: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
@@ -160774,7 +160809,7 @@ func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, p
//
// Caution: Do not confuse this routine with sqlite3ParseObjectInit() which
// is generated by Lemon.
-func Xsqlite3ParseObjectInit(tls *libc.TLS, pParse uintptr, db uintptr) { /* sqlite3.c:133772:21: */
+func Xsqlite3ParseObjectInit(tls *libc.TLS, pParse uintptr, db uintptr) { /* sqlite3.c:133806: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))
@@ -160787,7 +160822,7 @@ func Xsqlite3ParseObjectInit(tls *libc.TLS, pParse uintptr, db uintptr) { /* sql
}
// 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:133785:12: */
+func sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pReprepare uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:133819:12: */
bp := tls.Alloc(424)
defer tls.Free(424)
@@ -160869,7 +160904,7 @@ __4:
goto __8
}
zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32)).FzDbSName
- Xsqlite3ErrorWithMsg(tls, db, rc, ts+19595, libc.VaList(bp, zDb))
+ Xsqlite3ErrorWithMsg(tls, db, rc, ts+19603, libc.VaList(bp, zDb))
goto end_prepare
__8:
@@ -160896,7 +160931,7 @@ __3:
if !(nBytes > mxLen) {
goto __11
}
- Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+19625, 0)
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+19633, 0)
rc = Xsqlite3ApiExit(tls, db, SQLITE_TOOBIG)
goto end_prepare
__11:
@@ -160993,13 +161028,13 @@ end_prepare:
return rc
}
-func sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pOld uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:133928:12: */
+func sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pOld uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:133962: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, 133945)
+ return Xsqlite3MisuseError(tls, 133979)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
Xsqlite3BtreeEnterAll(tls, db)
@@ -161028,7 +161063,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:133975:20: */
+func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:134009:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -161067,14 +161102,14 @@ func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:133975: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:134014:16: */
+func Xsqlite3_prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134048: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:134026:16: */
+func Xsqlite3_prepare_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134060: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
@@ -161087,7 +161122,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:134044:16: */
+func Xsqlite3_prepare_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags uint32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134078:16: */
var rc int32
// EVIDENCE-OF: R-56861-42673 sqlite3_prepare_v3() differs from
// sqlite3_prepare_v2() only in having the extra prepFlags parameter,
@@ -161104,7 +161139,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:134072:12: */
+func sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134106:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -161117,7 +161152,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, 134093)
+ return Xsqlite3MisuseError(tls, 134127)
}
if nBytes >= 0 {
var sz int32
@@ -161152,21 +161187,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:134130:16: */
+func Xsqlite3_prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134164: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:134142:16: */
+func Xsqlite3_prepare16_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134176: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:134154:16: */
+func Xsqlite3_prepare16_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags uint32, ppStmt uintptr, pzTail uintptr) int32 { /* sqlite3.c:134188:16: */
var rc int32
rc = sqlite3Prepare16(tls, db, zSql, nBytes,
uint32(SQLITE_PREPARE_SAVESQL)|prepFlags&uint32(SQLITE_PREPARE_MASK),
@@ -161200,7 +161235,7 @@ type DistinctCtx1 = struct {
F__ccgo_pad1 [2]byte
FtabTnct int32
FaddrTnct int32
-} /* sqlite3.c:134195:9 */
+} /* sqlite3.c:134229:9 */
//************* End of prepare.c ********************************************
//************* Begin file select.c *****************************************
@@ -161221,7 +161256,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:134195:28 */
+type DistinctCtx = DistinctCtx1 /* sqlite3.c:134229: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.
@@ -161251,7 +161286,7 @@ type SortCtx1 = struct {
FsortFlags U8
F__ccgo_pad1 [3]byte
FpDeferredRowLoad uintptr
-} /* sqlite3.c:134221:9 */
+} /* sqlite3.c:134255: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.
@@ -161269,19 +161304,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:134221:24 */
+type SortCtx = SortCtx1 /* sqlite3.c:134255:24 */
type RowLoadInfo1 = struct {
FregResult int32
FecelFlags U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:134221:9 */
+} /* sqlite3.c:134255: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:134251:13: */
+func clearSelect(tls *libc.TLS, db uintptr, p uintptr, bFree int32) { /* sqlite3.c:134285:13: */
for p != 0 {
var pPrior uintptr = (*Select)(unsafe.Pointer(p)).FpPrior
Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(p)).FpEList)
@@ -161310,7 +161345,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:134280:21: */
+func Xsqlite3SelectDestInit(tls *libc.TLS, pDest uintptr, eDest int32, iParm int32) { /* sqlite3.c:134314:21: */
(*SelectDest)(unsafe.Pointer(pDest)).FeDest = U8(eDest)
(*SelectDest)(unsafe.Pointer(pDest)).FiSDParm = iParm
(*SelectDest)(unsafe.Pointer(pDest)).FiSDParm2 = 0
@@ -161321,7 +161356,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:134294: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:134328:23: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -161371,14 +161406,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:134352:21: */
+func Xsqlite3SelectDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:134386: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:134359:15: */
+func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:134393:15: */
for (*Select)(unsafe.Pointer(p)).FpNext != 0 {
p = (*Select)(unsafe.Pointer(p)).FpNext
}
@@ -161400,7 +161435,7 @@ func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:134359: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:134381:20: */
+func Xsqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC uintptr) int32 { /* sqlite3.c:134415:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -161443,18 +161478,18 @@ func Xsqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC
zSp++
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+19644, libc.VaList(bp, pA, pB, zSp, pC))
+ ts+19652, libc.VaList(bp, pA, pB, zSp, pC))
jointype = JT_INNER
} else if jointype&JT_OUTER != 0 &&
jointype&(JT_LEFT|JT_RIGHT) != JT_LEFT {
Xsqlite3ErrorMsg(tls, pParse,
- ts+19688, 0)
+ ts+19696, 0)
jointype = JT_INNER
}
return jointype
}
-var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 19743)) /* sqlite3.c:134386:21 */
+var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 19751)) /* sqlite3.c:134420:21 */
var aKeyword = [7]struct {
Fi U8
FnChar U8
@@ -161467,11 +161502,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:134391:5 */
+} /* sqlite3.c:134425: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:134442:20: */
+func Xsqlite3ColumnIndex(tls *libc.TLS, pTab uintptr, zCol uintptr) int32 { /* sqlite3.c:134476:20: */
var i int32
var h U8 = Xsqlite3StrIHash(tls, zCol)
var pCol uintptr
@@ -161505,7 +161540,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:134461:12: */
+func tableAndColumnIndex(tls *libc.TLS, pSrc uintptr, N int32, zCol uintptr, piTab uintptr, piCol uintptr, bIgnoreHidden int32) int32 { /* sqlite3.c:134495:12: */
var i int32 // For looping over tables in pSrc
var iCol int32 // Index of column matching zCol
@@ -161533,7 +161568,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:134499:13: */
+func addWhereTerm(tls *libc.TLS, pParse uintptr, pSrc uintptr, iLeft int32, iColLeft int32, iRight int32, iColRight int32, isOuterJoin int32, ppWhere uintptr) { /* sqlite3.c:134533:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pE1 uintptr
var pE2 uintptr
@@ -161578,7 +161613,7 @@ 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:134561:21: */
+func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:134595:21: */
for p != 0 {
*(*U32)(unsafe.Pointer(p + 4)) |= U32(EP_FromJoin)
@@ -161602,7 +161637,7 @@ func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:
// 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:134587:13: */
+func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:134621:13: */
for p != 0 {
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_FromJoin) != U32(0) &&
(iTable < 0 || *(*int32)(unsafe.Pointer(p + 52)) == iTable) {
@@ -161637,7 +161672,7 @@ func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* sqlite3.c:134587
// 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:134624:12: */
+func sqliteProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:134658:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -161669,7 +161704,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+19777, libc.VaList(bp, 0))
+ ts+19785, libc.VaList(bp, 0))
return 1
}
for j = 0; j < int32((*Table)(unsafe.Pointer(pRightTab)).FnCol); j++ {
@@ -161693,7 +161728,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+19827, 0)
+ ts+19835, 0)
return 1
}
@@ -161728,7 +161763,7 @@ __1:
if iRightCol < 0 ||
!(tableAndColumnIndex(tls, pSrc, i+1, zName, bp+24, bp+28, 0) != 0) {
Xsqlite3ErrorMsg(tls, pParse,
- ts+19882, libc.VaList(bp+8, zName))
+ ts+19890, 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,
@@ -161751,11 +161786,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:134716:28 */
+type RowLoadInfo = RowLoadInfo1 /* sqlite3.c:134750: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:134730:13: */
+func innerLoopLoadRow(tls *libc.TLS, pParse uintptr, pSelect uintptr, pInfo uintptr) { /* sqlite3.c:134764:13: */
Xsqlite3ExprCodeExprList(tls, pParse, (*Select)(unsafe.Pointer(pSelect)).FpEList, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FregResult,
0, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FecelFlags)
}
@@ -161764,7 +161799,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:134751:12: */
+func makeSorterRecord(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regBase int32, nBase int32) int32 { /* sqlite3.c:134785: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)
@@ -161777,7 +161812,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:134772:13: */
+func pushOntoSorter(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regData int32, regOrigData int32, nData int32, nPrefixReg int32) { /* sqlite3.c:134806: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
@@ -161920,7 +161955,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:134914:13: */
+func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* sqlite3.c:134948:13: */
if iOffset > 0 {
Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, iOffset, iContinue, 1)
@@ -161968,7 +162003,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:134968:12: */
+func codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, addrRepeat int32, pEList uintptr, regElem int32) int32 { /* sqlite3.c:135002:12: */
var iRet int32 = 0
var nResultCol int32 = (*ExprList)(unsafe.Pointer(pEList)).FnExpr
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -162049,7 +162084,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:135052:13: */
+func fixDistinctOpenEph(tls *libc.TLS, pParse uintptr, eTnctType int32, iVal int32, iOpenEphAddr int32) { /* sqlite3.c:135086:13: */
if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 &&
(eTnctType == WHERE_DISTINCT_UNIQUE || eTnctType == WHERE_DISTINCT_ORDERED) {
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
@@ -162077,7 +162112,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:135174:13: */
+func selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pSort uintptr, pDistinct uintptr, pDest uintptr, iContinue int32, iBreak int32) { /* sqlite3.c:135208:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -162433,7 +162468,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:135568:24: */
+func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr { /* sqlite3.c:135602:24: */
var nExtra int32 = int32(uint64(N+X)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64(1)) - uint64(unsafe.Sizeof(uintptr(0))))
var p uintptr = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(KeyInfo{}))+uint64(nExtra))
if p != 0 {
@@ -162451,7 +162486,7 @@ func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr {
}
// Deallocate a KeyInfo object
-func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* sqlite3.c:135588:21: */
+func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* sqlite3.c:135622:21: */
if p != 0 {
(*KeyInfo)(unsafe.Pointer(p)).FnRef--
@@ -162462,7 +162497,7 @@ func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* sqlite3.c:135588:21: */
}
// Make a new pointer to a KeyInfo object
-func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:135599:24: */
+func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:135633:24: */
if p != 0 {
(*KeyInfo)(unsafe.Pointer(p)).FnRef++
@@ -162482,7 +162517,7 @@ func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:135599:
// 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:135631:24: */
+func Xsqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, iStart int32, nExtra int32) uintptr { /* sqlite3.c:135665:24: */
var nExpr int32
var pInfo uintptr
var pItem uintptr
@@ -162516,20 +162551,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:135658:27: */
+func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:135692:27: */
var z uintptr
switch id {
case TK_ALL:
- z = ts + 19946 /* "UNION ALL" */
+ z = ts + 19954 /* "UNION ALL" */
break
case TK_INTERSECT:
- z = ts + 19956 /* "INTERSECT" */
+ z = ts + 19964 /* "INTERSECT" */
break
case TK_EXCEPT:
- z = ts + 19966 /* "EXCEPT" */
+ z = ts + 19974 /* "EXCEPT" */
break
default:
- z = ts + 19973 /* "UNION" */
+ z = ts + 19981 /* "UNION" */
break
}
return z
@@ -162543,11 +162578,11 @@ func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* sqlite3.c:135658
//
// 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:135680:13: */
+func explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) { /* sqlite3.c:135714:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19979, libc.VaList(bp, zUsage))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19987, libc.VaList(bp, zUsage))
}
// Assign expression b to lvalue a. A second, no-op, version of this macro
@@ -162560,7 +162595,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:135706:13: */
+func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, nColumn int32, pDest uintptr) { /* sqlite3.c:135740: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
@@ -162739,7 +162774,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:135934:19: */
+func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, pzOrigTab uintptr, pzOrigCol uintptr) uintptr { /* sqlite3.c:135968:19: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -162817,7 +162852,7 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr,
if iCol < 0 {
zType = ts + 1089 /* "INTEGER" */
- *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 17524 /* "rowid" */
+ *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 17532 /* "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))
@@ -162863,7 +162898,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:136085:13: */
+func generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pEList uintptr) { /* sqlite3.c:136119:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -162920,7 +162955,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:136152:21: */
+func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sqlite3.c:136186:21: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -162972,13 +163007,13 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
}
if iCol < 0 {
- zCol = ts + 17524 /* "rowid" */
+ zCol = ts + 17532 /* "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+13290, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, zCol))
+ zName = Xsqlite3MPrintf(tls, db, ts+13298, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, zCol))
Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zName, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr) uintptr
}{Xsqlite3OomFault})))
@@ -162988,7 +163023,7 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
} else {
var z uintptr = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32)).FzEName
if z == uintptr(0) {
- z = Xsqlite3MPrintf(tls, db, ts+20002, libc.VaList(bp+16, i+1))
+ z = Xsqlite3MPrintf(tls, db, ts+20010, libc.VaList(bp+16, i+1))
} else {
z = Xsqlite3DbStrDup(tls, db, z)
}
@@ -163020,7 +163055,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:136245:20: */
+func Xsqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr, pnCol uintptr, paCol uintptr) int32 { /* sqlite3.c:136279:20: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -163081,7 +163116,7 @@ __1:
if iCol >= 0 {
zName = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*24)).FzCnName
} else {
- zName = ts + 17524 /* "rowid" */
+ zName = ts + 17532 /* "rowid" */
}
} else if int32((*Expr)(unsafe.Pointer(pColExpr)).Fop) == TK_ID {
@@ -163094,7 +163129,7 @@ __1:
if zName != 0 && !(Xsqlite3IsTrueOrFalse(tls, zName) != 0) {
zName = Xsqlite3DbStrDup(tls, db, zName)
} else {
- zName = Xsqlite3MPrintf(tls, db, ts+20002, libc.VaList(bp, i+1))
+ zName = Xsqlite3MPrintf(tls, db, ts+20010, libc.VaList(bp, i+1))
}
// Make sure the column name is unique. If the name is not unique,
@@ -163109,7 +163144,7 @@ __1:
nName = j
}
}
- zName = Xsqlite3MPrintf(tls, db, ts+20011, libc.VaList(bp+8, nName, zName, libc.PreIncUint32(&*(*U32)(unsafe.Pointer(bp + 56 /* cnt */)), 1)))
+ zName = Xsqlite3MPrintf(tls, db, ts+20019, 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)
}
@@ -163152,7 +163187,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:136352:21: */
+func Xsqlite3SelectAddColumnTypeAndCollation(tls *libc.TLS, pParse uintptr, pTab uintptr, pSelect uintptr, aff int8) { /* sqlite3.c:136386:21: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -163221,7 +163256,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:136407:22: */
+func Xsqlite3ResultSetOfSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, aff int8) uintptr { /* sqlite3.c:136441:22: */
var pTab uintptr
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var savedFlags U64
@@ -163256,7 +163291,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:136440:21: */
+func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* sqlite3.c:136474:21: */
if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpVdbe
}
@@ -163288,7 +163323,7 @@ func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* sqlite3.c:13644
// 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:136476:13: */
+func computeLimitRegisters(tls *libc.TLS, pParse uintptr, p uintptr, iBreak int32) { /* sqlite3.c:136510:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -163345,7 +163380,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:136533:16: */
+func multiSelectCollSeq(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* sqlite3.c:136567:16: */
var pRet uintptr
if (*Select)(unsafe.Pointer(p)).FpPrior != 0 {
pRet = multiSelectCollSeq(tls, pParse, (*Select)(unsafe.Pointer(p)).FpPrior, iCol)
@@ -163369,7 +163404,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:136559:16: */
+func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra int32) uintptr { /* sqlite3.c:136593:16: */
var pOrderBy uintptr = (*Select)(unsafe.Pointer(p)).FpOrderBy
var nOrderBy int32
if pOrderBy != uintptr(0) {
@@ -163438,7 +163473,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:136625:13: */
+func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) { /* sqlite3.c:136659:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -163474,7 +163509,7 @@ func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
if !((*Select)(unsafe.Pointer(p)).FpWin != 0) {
goto __1
}
- Xsqlite3ErrorMsg(tls, pParse, ts+20019, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20027, 0)
return
__1:
;
@@ -163584,7 +163619,7 @@ __12:
if !((*Select)(unsafe.Pointer(pFirstRec)).FselFlags&U32(SF_Aggregate) != 0) {
goto __15
}
- Xsqlite3ErrorMsg(tls, pParse, ts+20068, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20076, 0)
goto end_of_recursive_query
__15:
;
@@ -163606,7 +163641,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+20110, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20118, 0)
rc = Xsqlite3Select(tls, pParse, pSetup, bp)
(*Select)(unsafe.Pointer(pSetup)).FpNext = p
if !(rc != 0) {
@@ -163649,7 +163684,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+20116, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20124, 0)
Xsqlite3Select(tls, pParse, p, bp)
(*Select)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup
@@ -163679,7 +163714,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:136801:12: */
+func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* sqlite3.c:136835:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -163699,11 +163734,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+20131, libc.VaList(bp, nRow, func() uintptr {
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20139, libc.VaList(bp, nRow, func() uintptr {
if nRow == 1 {
return ts + 1524 /* "" */
}
- return ts + 20154 /* "S" */
+ return ts + 20162 /* "S" */
}()))
for p != 0 {
selectInnerLoop(tls, pParse, p, -1, uintptr(0), uintptr(0), pDest, 1, 1)
@@ -163719,7 +163754,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:136838:12: */
+func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:136872:12: */
for p != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Recursive) != U32(0) {
p = (*Select)(unsafe.Pointer(p)).FpPrior
}
@@ -163755,7 +163790,7 @@ func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:136838: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:136874:12: */
+func multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* sqlite3.c:136908:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -163855,8 +163890,8 @@ __6:
if !((*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0)) {
goto __8
}
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20156, 0)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20171, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20164, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20179, 0)
__8:
;
@@ -163905,7 +163940,7 @@ __16:
;
__15:
;
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19946, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19954, 0)
rc = Xsqlite3Select(tls, pParse, p, bp+16)
@@ -163981,7 +164016,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+20190, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20198, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
rc = Xsqlite3Select(tls, pParse, p, bp+64)
@@ -164053,7 +164088,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+20190, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20198, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
rc = Xsqlite3Select(tls, pParse, p, bp+104)
@@ -164218,15 +164253,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:137230:21: */
+func Xsqlite3SelectWrongNumTermsError(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:137264:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Values) != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+20211, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20219, 0)
} else {
Xsqlite3ErrorMsg(tls, pParse,
- ts+20257,
+ ts+20265,
libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
}
}
@@ -164249,7 +164284,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:137260: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:137294:12: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var iContinue int32
var addr int32
@@ -164445,7 +164480,7 @@ func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uint
// actually called using Gosub and they do not Return. EofA and EofB loop
// until all data is exhausted then jump to the "end" labe. AltB, AeqB,
// and AgtB jump to either L2 or to one of EofA or EofB.
-func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* sqlite3.c:137468:12: */
+func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* sqlite3.c:137502:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -164652,7 +164687,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+20339, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop))))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20347, 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.
@@ -164660,7 +164695,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+20350, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20358, 0)
Xsqlite3Select(tls, pParse, pPrior, bp+8)
Xsqlite3VdbeEndCoroutine(tls, v, regAddrA)
Xsqlite3VdbeJumpHere(tls, v, addr1)
@@ -164674,7 +164709,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+20355, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20363, 0)
Xsqlite3Select(tls, pParse, p, bp+48)
(*Select)(unsafe.Pointer(p)).FiLimit = savedLimit
(*Select)(unsafe.Pointer(p)).FiOffset = savedOffset
@@ -164795,14 +164830,14 @@ type SubstContext1 = struct {
FisLeftJoin int32
F__ccgo_pad1 [4]byte
FpEList uintptr
-} /* sqlite3.c:137793:9 */
+} /* sqlite3.c:137827: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:137799:3 */
+type SubstContext = SubstContext1 /* sqlite3.c:137833:3 */
// Scan through the expression pExpr. Replace every reference to
// a column in table number iTable with a copy of the iColumn-th
@@ -164815,7 +164850,7 @@ type SubstContext = SubstContext1 /* sqlite3.c:137799: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:137818:13: */
+func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* sqlite3.c:137852:13: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -164898,7 +164933,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:137903:13: */
+func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* sqlite3.c:137937:13: */
var i int32
if pList == uintptr(0) {
return
@@ -164908,7 +164943,7 @@ func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* sqlite3.c:
}
}
-func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* sqlite3.c:137913:13: */
+func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* sqlite3.c:137947:13: */
var pSrc uintptr
var pItem uintptr
var i int32
@@ -164951,7 +164986,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:137948:12: */
+func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:137982:12: */
var pItem uintptr
if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN {
return WRC_Continue
@@ -164967,7 +165002,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:137957:13: */
+func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* sqlite3.c:137991:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -164999,7 +165034,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:137986:13: */
+func srclistRenumberCursors(tls *libc.TLS, pParse uintptr, aCsrMap uintptr, pSrc uintptr, iExcept int32) { /* sqlite3.c:138020:13: */
var i int32
var pItem uintptr
i = 0
@@ -165032,7 +165067,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:138012:13: */
+func renumberCursorDoMapping(tls *libc.TLS, pWalker uintptr, piCursor uintptr) { /* sqlite3.c:138046: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 {
@@ -165042,7 +165077,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:138024:12: */
+func renumberCursorsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:138058:12: */
var op int32 = int32((*Expr)(unsafe.Pointer(pExpr)).Fop)
if op == TK_COLUMN || op == TK_IF_NULL_ROW {
renumberCursorDoMapping(tls, pWalker, pExpr+44)
@@ -165069,7 +165104,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:138053:13: */
+func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aCsrMap uintptr) { /* sqlite3.c:138087:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -165239,7 +165274,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:138224:12: */
+func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAgg int32) int32 { /* sqlite3.c:138258:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -165664,7 +165699,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:138648:27 */
+type WhereConst = WhereConst1 /* sqlite3.c:138682: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.
@@ -165672,7 +165707,7 @@ type WhereConst = WhereConst1 /* sqlite3.c:138648: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:138666:13: */
+func constInsert(tls *libc.TLS, pConst uintptr, pColumn uintptr, pValue uintptr, pExpr uintptr) { /* sqlite3.c:138700:13: */
var i int32
if (*Expr)(unsafe.Pointer(pColumn)).Fflags&U32(EP_FixedCol) != U32(0) {
@@ -165714,7 +165749,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:138714:13: */
+func findConstInWhere(tls *libc.TLS, pConst uintptr, pExpr uintptr) { /* sqlite3.c:138748:13: */
var pRight uintptr
var pLeft uintptr
if pExpr == uintptr(0) {
@@ -165749,7 +165784,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:138745:12: */
+func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintptr, bIgnoreAffBlob int32) int32 { /* sqlite3.c:138779:12: */
var i int32
if *(*U8)(unsafe.Pointer((*WhereConst)(unsafe.Pointer(pConst)).FpOomFault)) != 0 {
return WRC_Prune
@@ -165803,7 +165838,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:138794:12: */
+func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:138828:12: */
var pConst uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
if (*WhereConst)(unsafe.Pointer(pConst)).FbHasAffBlob != 0 {
@@ -165870,7 +165905,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:138865:12: */
+func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:138899:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -165923,7 +165958,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:138916:12: */
+func pushDownWindowCheck(tls *libc.TLS, pParse uintptr, pSubq uintptr, pExpr uintptr) int32 { /* sqlite3.c:138950:12: */
return Xsqlite3ExprIsConstantOrGroupBy(tls, pParse, pExpr, (*Window)(unsafe.Pointer((*Select)(unsafe.Pointer(pSubq)).FpWin)).FpPartition)
}
@@ -165994,7 +166029,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:138994:12: */
+func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uintptr, iCursor int32, isLeftJoin int32) int32 { /* sqlite3.c:139028:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -166082,7 +166117,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:139098:11: */
+func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 { /* sqlite3.c:139132:11: */
var eRet int32 = WHERE_ORDERBY_NORMAL // Return value
var pEList uintptr // Arguments to agg function
var zFunc uintptr // Name of aggregate function pFunc
@@ -166098,12 +166133,12 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8
}
zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8))
- if Xsqlite3StrICmp(tls, zFunc, ts+16417) == 0 {
+ if Xsqlite3StrICmp(tls, zFunc, ts+16425) == 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+16421) == 0 {
+ } else if Xsqlite3StrICmp(tls, zFunc, ts+16429) == 0 {
eRet = WHERE_ORDERBY_MAX
sortFlags = U8(KEYINFO_ORDER_DESC)
} else {
@@ -166132,7 +166167,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:139153:14: */
+func isSimpleCount(tls *libc.TLS, p uintptr, pAggInfo uintptr) uintptr { /* sqlite3.c:139187:14: */
var pTab uintptr
var pExpr uintptr
@@ -166172,7 +166207,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:139191:20: */
+func Xsqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* sqlite3.c:139225:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -166183,7 +166218,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+20361, libc.VaList(bp, zIndexedBy, 0))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20369, libc.VaList(bp, zIndexedBy, 0))
(*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1)
return SQLITE_ERROR
}
@@ -166211,7 +166246,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:139233:12: */
+func convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:139267:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -166290,12 +166325,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:139298:12: */
+func cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* sqlite3.c:139332: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+20379, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20387, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName))
return 1
}
return 0
@@ -166309,7 +166344,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:139317:19: */
+func searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr) uintptr { /* sqlite3.c:139351:19: */
var zName uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FzName
var p uintptr
@@ -166344,7 +166379,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:139356:21: */
+func Xsqlite3WithPush(tls *libc.TLS, pParse uintptr, pWith uintptr, bFree U8) uintptr { /* sqlite3.c:139390:21: */
if pWith != 0 {
if bFree != 0 {
pWith = Xsqlite3ParserAddCleanup(tls, pParse,
@@ -166377,7 +166412,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:139387:12: */
+func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom uintptr) int32 { /* sqlite3.c:139421:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -166460,7 +166495,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+20402, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20410, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96))))
return 2
}
libc.SetBitFieldPtr16Uint32(pFrom+60+4, uint32(1), 7, 0x80)
@@ -166487,7 +166522,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+20422, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName))
+ ts+20430, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName))
return 2
}
*(*U32)(unsafe.Pointer(pRecTerm + 4)) |= U32(SF_Recursive)
@@ -166503,7 +166538,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
pRecTerm = (*Select)(unsafe.Pointer(pRecTerm)).FpPrior
}
- (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20465 /* "circular referen..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20473 /* "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 {
@@ -166529,7 +166564,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+20488,
+ Xsqlite3ErrorMsg(tls, pParse, ts+20496,
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
@@ -166540,9 +166575,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 + 20526 /* "multiple recursi..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20534 /* "multiple recursi..." */
} else {
- (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20560 /* "recursive refere..." */
+ (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20568 /* "recursive refere..." */
}
Xsqlite3WalkSelect(tls, pWalker, pSel)
}
@@ -166559,7 +166594,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:139571:21: */
+func Xsqlite3SelectPopWith(tls *libc.TLS, pWalker uintptr, p uintptr) { /* sqlite3.c:139605: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
@@ -166575,7 +166610,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:139590:20: */
+func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* sqlite3.c:139624:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -166590,7 +166625,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+20598, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
+ (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+20606, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId))
}
for (*Select)(unsafe.Pointer(pSel)).FpPrior != 0 {
pSel = (*Select)(unsafe.Pointer(pSel)).FpPrior
@@ -166629,7 +166664,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:139642:12: */
+func selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* sqlite3.c:139676:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -166717,7 +166752,7 @@ __1:
return WRC_Abort
}
if (*Table)(unsafe.Pointer(pTab)).FnTabRef >= U32(0xffff) {
- Xsqlite3ErrorMsg(tls, pParse, ts+20610,
+ Xsqlite3ErrorMsg(tls, pParse, ts+20618,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
(*SrcItem)(unsafe.Pointer(pFrom)).FpTab = uintptr(0)
return WRC_Abort
@@ -166736,7 +166771,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+20649,
+ Xsqlite3ErrorMsg(tls, pParse, ts+20657,
libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName))
}
(*SrcItem)(unsafe.Pointer(pFrom)).FpSelect = Xsqlite3SelectDup(tls, db, *(*uintptr)(unsafe.Pointer(pTab + 64)), 0)
@@ -166744,7 +166779,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+20680,
+ Xsqlite3ErrorMsg(tls, pParse, ts+20688,
libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName))
}
@@ -166909,7 +166944,7 @@ __3:
pExpr = Xsqlite3PExpr(tls, pParse, TK_DOT, pLeft, pExpr)
}
if longNames != 0 {
- zColname = Xsqlite3MPrintf(tls, db, ts+13290, libc.VaList(bp+24, zTabName, zName))
+ zColname = Xsqlite3MPrintf(tls, db, ts+13298, libc.VaList(bp+24, zTabName, zName))
zToFree = zColname
}
} else {
@@ -166925,7 +166960,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+20713,
+ (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+20721,
libc.VaList(bp+40, zSchemaName, zTabName, zColname))
}
@@ -166945,9 +166980,9 @@ __3:
;
if !(tableSeen != 0) {
if zTName != 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+20722, libc.VaList(bp+64, zTName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+20730, libc.VaList(bp+64, zTName))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+20740, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20748, 0)
}
}
}
@@ -166957,7 +166992,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+20760, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+20768, 0)
return WRC_Abort
}
if elistFlags&U32(EP_HasFunc|EP_Subquery) != U32(0) {
@@ -166978,7 +167013,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:139969:13: */
+func sqlite3SelectExpand(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sqlite3.c:140003:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -167016,7 +167051,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:139999:13: */
+func selectAddSubqueryTypeInfo(tls *libc.TLS, pWalker uintptr, p uintptr) { /* sqlite3.c:140033:13: */
var pParse uintptr
var i int32
var pTabList uintptr
@@ -167064,7 +167099,7 @@ __3:
// SELECT statement.
//
// Use this routine after name resolution.
-func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sqlite3.c:140034:13: */
+func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sqlite3.c:140068:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -167093,7 +167128,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:140058:21: */
+func Xsqlite3SelectPrep(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* sqlite3.c:140092:21: */
if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
return
@@ -167118,7 +167153,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:140082:13: */
+func resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* sqlite3.c:140116:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -167146,13 +167181,13 @@ __1:
if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != 1 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+20791, 0)
+ ts+20799, 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+20842, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20850, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
}
@@ -167168,7 +167203,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:140128:13: */
+func finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* sqlite3.c:140162:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
var pF uintptr
@@ -167207,7 +167242,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:140151:13: */
+func updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo uintptr, eDistinctType int32) { /* sqlite3.c:140185:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
var regHit int32 = 0
@@ -167348,17 +167383,17 @@ __9:
// Add a single OP_Explain instruction to the VDBE to explain a simple
// count(*) query ("SELECT count(*) FROM pTab").
-func explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintptr) { /* sqlite3.c:140253:13: */
+func explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintptr) { /* sqlite3.c:140287: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+20875,
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20883,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName,
func() uintptr {
if bCover != 0 {
- return ts + 20887 /* " USING COVERING ..." */
+ return ts + 20895 /* " USING COVERING ..." */
}
return ts + 1524 /* "" */
}(),
@@ -167380,7 +167415,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:140282:12: */
+func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:140316: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
@@ -167426,7 +167461,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:140326:13: */
+func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:140360:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -167444,7 +167479,7 @@ func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:1403
// 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:140346:16: */
+func isSelfJoinView(tls *libc.TLS, pTabList uintptr, pThis uintptr) uintptr { /* sqlite3.c:140380:16: */
var pItem uintptr
if (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pThis)).FpSelect)).FselFlags&U32(SF_PushDown) != 0 {
@@ -167485,7 +167520,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:140381:13: */
+func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:140415:13: */
Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaCol)
Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaFunc)
Xsqlite3DbFreeNN(tls, db, p)
@@ -167502,7 +167537,7 @@ func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:140381: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:140489:20: */
+func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* sqlite3.c:140523:20: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -167703,7 +167738,7 @@ __7:
goto __10
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+20910,
+ ts+20918,
libc.VaList(bp, func() uintptr {
if (*SrcItem)(unsafe.Pointer(p0)).FzAlias != 0 {
return (*SrcItem)(unsafe.Pointer(p0)).FzAlias
@@ -167789,7 +167824,7 @@ __17:
if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) != (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList)).FnExpr) {
goto __18
}
- Xsqlite3ErrorMsg(tls, pParse, ts+20964,
+ Xsqlite3ErrorMsg(tls, pParse, ts+20972,
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:
@@ -168029,7 +168064,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+21004, libc.VaList(bp+32, pItem1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21012, 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)
@@ -168092,7 +168127,7 @@ __45:
__46:
;
Xsqlite3SelectDestInit(tls, bp+96, SRT_EphemTab, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor)
- Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21019, libc.VaList(bp+40, pItem1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21027, 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) {
@@ -168614,9 +168649,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 + 21035 /* "DISTINCT" */
+ return ts + 21043 /* "DISTINCT" */
}
- return ts + 21044 /* "GROUP BY" */
+ return ts + 21052 /* "GROUP BY" */
}())
groupBySort = 1
@@ -169029,7 +169064,7 @@ __59:
if !(int32((*DistinctCtx)(unsafe.Pointer(bp+136)).FeTnctType) == WHERE_DISTINCT_UNORDERED) {
goto __141
}
- explainTempTable(tls, pParse, ts+21035)
+ explainTempTable(tls, pParse, ts+21043)
__141:
;
@@ -169041,9 +169076,9 @@ __141:
explainTempTable(tls, pParse,
func() uintptr {
if (*SortCtx)(unsafe.Pointer(bp+48)).FnOBSat > 0 {
- return ts + 21053 /* "RIGHT PART OF OR..." */
+ return ts + 21061 /* "RIGHT PART OF OR..." */
}
- return ts + 21076 /* "ORDER BY" */
+ return ts + 21084 /* "ORDER BY" */
}())
generateSortTail(tls, pParse, p, bp+48, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pDest)
@@ -169099,7 +169134,7 @@ type TabResult1 = struct {
FnData U32
Frc int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:141752:9 */
+} /* sqlite3.c:141786:9 */
//************* End of select.c *********************************************
//************* Begin file table.c ******************************************
@@ -169123,12 +169158,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:141760:3 */
+type TabResult = TabResult1 /* sqlite3.c:141794: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:141767:12: */
+func sqlite3_get_table_cb(tls *libc.TLS, pArg uintptr, nCol int32, argv uintptr, colv uintptr) int32 { /* sqlite3.c:141801:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -169199,7 +169234,7 @@ __5:
}
Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(p)).FzErrMsg)
(*TabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls,
- ts+21085, 0)
+ ts+21093, 0)
(*TabResult)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
return 1
__11:
@@ -169259,7 +169294,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:141841:16: */
+func Xsqlite3_get_table(tls *libc.TLS, db uintptr, zSql uintptr, pazResult uintptr, pnRow uintptr, pnColumn uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:141875:16: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -169331,7 +169366,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:141910:17: */
+func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* sqlite3.c:141944:17: */
if azResult != 0 {
var i int32
var n int32
@@ -169362,7 +169397,7 @@ func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* sqlite3.c:141910:
// #include "sqliteInt.h"
// Delete a linked list of TriggerStep structures.
-func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) { /* sqlite3.c:141945:21: */
+func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) { /* sqlite3.c:141979:21: */
for pTriggerStep != 0 {
var pTmp uintptr = pTriggerStep
pTriggerStep = (*TriggerStep)(unsafe.Pointer(pTriggerStep)).FpNext
@@ -169391,7 +169426,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:141976:24: */
+func Xsqlite3TriggerList(tls *libc.TLS, pParse uintptr, pTab uintptr) uintptr { /* sqlite3.c:142010: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
@@ -169429,7 +169464,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:142032: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:142066:21: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -169459,7 +169494,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+21150, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21158, 0)
goto trigger_cleanup
__3:
;
@@ -169520,7 +169555,7 @@ __7:
__8:
;
- Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+21196, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))
+ Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+21204, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))
if !(Xsqlite3FixSrcList(tls, bp+40, pTableName) != 0) {
goto __9
}
@@ -169538,7 +169573,7 @@ __10:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) {
goto __11
}
- Xsqlite3ErrorMsg(tls, pParse, ts+21204, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21212, 0)
goto trigger_orphan_error
__11:
;
@@ -169553,7 +169588,7 @@ __11:
goto trigger_cleanup
__12:
;
- if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+21196, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) {
+ if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+21204, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) {
goto __13
}
goto trigger_cleanup
@@ -169569,7 +169604,7 @@ __13:
if !!(noErr != 0) {
goto __16
}
- Xsqlite3ErrorMsg(tls, pParse, ts+21245, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21253, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))))
goto __17
__16:
;
@@ -169586,7 +169621,7 @@ __14:
if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9371, 7) == 0) {
goto __18
}
- Xsqlite3ErrorMsg(tls, pParse, ts+21271, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21279, 0)
goto trigger_cleanup
__18:
;
@@ -169596,12 +169631,12 @@ __18:
if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW && tr_tm != TK_INSTEAD) {
goto __19
}
- Xsqlite3ErrorMsg(tls, pParse, ts+21309,
+ Xsqlite3ErrorMsg(tls, pParse, ts+21317,
libc.VaList(bp+8, func() uintptr {
if tr_tm == TK_BEFORE {
- return ts + 21346 /* "BEFORE" */
+ return ts + 21354 /* "BEFORE" */
}
- return ts + 21353 /* "AFTER" */
+ return ts + 21361 /* "AFTER" */
}(), pTableName+8 /* &.a */))
goto trigger_orphan_error
__19:
@@ -169610,7 +169645,7 @@ __19:
goto __20
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+21359, libc.VaList(bp+24, pTableName+8))
+ ts+21367, libc.VaList(bp+24, pTableName+8))
goto trigger_orphan_error
__20:
;
@@ -169640,7 +169675,7 @@ __23:
;
if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr {
if !(0 != 0) && iTabDb == 1 {
- return ts + 13377
+ return ts + 13385
}
return ts + 7196
}(), uintptr(0), zDb) != 0) {
@@ -169736,7 +169771,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:142239:21: */
+func Xsqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAll uintptr) { /* sqlite3.c:142273:21: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -169776,7 +169811,7 @@ __2:
__3:
;
Xsqlite3TokenInit(tls, bp+40, (*Trigger)(unsafe.Pointer(pTrig)).FzName)
- Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+21196, bp+40)
+ Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+21204, 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
@@ -169813,13 +169848,13 @@ __8:
Xsqlite3NestedParse(tls, pParse,
- ts+21405,
+ ts+21413,
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+21480, libc.VaList(bp+32, zName)), uint16(0))
+ Xsqlite3MPrintf(tls, db, ts+21488, libc.VaList(bp+32, zName)), uint16(0))
__7:
;
__6:
@@ -169860,7 +169895,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:142327:13: */
+func triggerSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:142361:13: */
var z uintptr = Xsqlite3DbSpanDup(tls, db, zStart, zEnd)
var i int32
if z != 0 {
@@ -169878,7 +169913,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:142341:28: */
+func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:142375:28: */
var pTriggerStep uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(TriggerStep{})))
if pTriggerStep == uintptr(0) {
Xsqlite3SelectDelete(tls, db, pSelect)
@@ -169895,10 +169930,13 @@ func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStar
// holds both the TriggerStep object and the TriggerStep.target.z string.
//
// If an OOM error occurs, NULL is returned and db->mallocFailed is set.
-func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:142365:20: */
+func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:142399:20: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
+ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 {
+ return uintptr(0)
+ }
pTriggerStep = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(TriggerStep{}))+uint64((*Token)(unsafe.Pointer(pName)).Fn)+uint64(1))
if pTriggerStep != 0 {
var z uintptr = pTriggerStep + 1*96
@@ -169919,7 +169957,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:142397: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:142432:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -169951,7 +169989,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:142442: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:142477:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -169980,7 +170018,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:142482:28: */
+func Xsqlite3TriggerDeleteStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pWhere uintptr, zStart uintptr, zEnd uintptr) uintptr { /* sqlite3.c:142517:28: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pTriggerStep uintptr
@@ -169999,7 +170037,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:142509:21: */
+func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* sqlite3.c:142544:21: */
if pTrigger == uintptr(0) || (*Trigger)(unsafe.Pointer(pTrigger)).FbReturning != 0 {
return
}
@@ -170019,7 +170057,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:142527:21: */
+func Xsqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int32) { /* sqlite3.c:142562:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170085,7 +170123,7 @@ __5:
if !!(noErr != 0) {
goto __9
}
- Xsqlite3ErrorMsg(tls, pParse, ts+21509, libc.VaList(bp, pName+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21517, libc.VaList(bp, pName+8))
goto __10
__9:
Xsqlite3CodeVerifyNamedSchema(tls, pParse, zDb)
@@ -170103,12 +170141,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:142569:14: */
+func tableOfTrigger(tls *libc.TLS, pTrigger uintptr) uintptr { /* sqlite3.c:142604: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:142577:21: */
+func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { /* sqlite3.c:142612:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -170126,7 +170164,7 @@ 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 + 13377
+ return ts + 13385
}
return ts + 7196
}()
@@ -170141,7 +170179,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+21529,
+ ts+21537,
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)
@@ -170149,7 +170187,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:142615:21: */
+func Xsqlite3UnlinkAndDeleteTrigger(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) { /* sqlite3.c:142650:21: */
var pTrigger uintptr
var pHash uintptr
@@ -170180,7 +170218,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:142649:12: */
+func checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) int32 { /* sqlite3.c:142684:12: */
var e int32
if pIdList == uintptr(0) || pEList == uintptr(0) {
return 1
@@ -170197,7 +170235,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:142664:24: */
+func Xsqlite3TriggersExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, pChanges uintptr, pMask uintptr) uintptr { /* sqlite3.c:142699:24: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170260,12 +170298,12 @@ __9:
goto __15
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+21591,
+ ts+21599,
libc.VaList(bp, func() uintptr {
if op == TK_DELETE {
- return ts + 21639 /* "DELETE" */
+ return ts + 21647 /* "DELETE" */
}
- return ts + 21646 /* "UPDATE" */
+ return ts + 21654 /* "UPDATE" */
}()))
__15:
;
@@ -170324,7 +170362,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:142738:24: */
+func Xsqlite3TriggerStepSrc(tls *libc.TLS, pParse uintptr, pStep uintptr) uintptr { /* sqlite3.c:142773: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)
@@ -170349,7 +170387,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:142769:12: */
+func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* sqlite3.c:142804:12: */
if int32((*Expr)(unsafe.Pointer(pTerm)).Fop) == TK_ASTERISK {
return 1
@@ -170361,7 +170399,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+21653, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+21661, 0)
return 1
}
@@ -170370,7 +170408,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:142789:17: */
+func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab uintptr) uintptr { /* sqlite3.c:142824:17: */
var pNew uintptr = uintptr(0)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var i int32
@@ -170411,7 +170449,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:142832:13: */
+func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, regIn int32) { /* sqlite3.c:142867:13: */
bp := tls.Alloc(304)
defer tls.Free(304)
@@ -170479,7 +170517,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:142908:12: */
+func codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orconf int32) int32 { /* sqlite3.c:142943:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -170566,7 +170604,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:143012:13: */
+func transferParseError(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* sqlite3.c:143047:13: */
if (*Parse)(unsafe.Pointer(pTo)).FnErr == 0 {
(*Parse)(unsafe.Pointer(pTo)).FzErrMsg = (*Parse)(unsafe.Pointer(pFrom)).FzErrMsg
@@ -170579,7 +170617,7 @@ 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:143028:19: */
+func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* sqlite3.c:143063:19: */
bp := tls.Alloc(472)
defer tls.Free(472)
@@ -170636,7 +170674,7 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt
if (*Trigger)(unsafe.Pointer(pTrigger)).FzName != 0 {
Xsqlite3VdbeChangeP4(tls, v, -1,
- Xsqlite3MPrintf(tls, db, ts+21695, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7)
+ Xsqlite3MPrintf(tls, db, ts+21703, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7)
}
// If one was specified, code the WHEN clause. If it evaluates to false
@@ -170685,7 +170723,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:143142:19: */
+func getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* sqlite3.c:143177:19: */
var pRoot uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -170714,7 +170752,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:143177:21: */
+func Xsqlite3CodeRowTriggerDirect(tls *libc.TLS, pParse uintptr, p uintptr, pTab uintptr, reg int32, orconf int32, ignoreJump int32) { /* sqlite3.c:143212:21: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Main VM
var pPrg uintptr
pPrg = getRowTrigger(tls, pParse, p, pTab, orconf)
@@ -170774,7 +170812,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:143249: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:143284:21: */
var p uintptr // Used to iterate through pTrigger list
for p = pTrigger; p != 0; p = (*Trigger)(unsafe.Pointer(p)).FpNext {
@@ -170822,7 +170860,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:143319:20: */
+func Xsqlite3TriggerColmask(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pChanges uintptr, isNew int32, tr_tm int32, pTab uintptr, orconf int32) U32 { /* sqlite3.c:143354:20: */
var op int32
if pChanges != 0 {
op = TK_UPDATE
@@ -170879,7 +170917,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:143417:21: */
+func Xsqlite3ColumnDefault(tls *libc.TLS, v uintptr, pTab uintptr, i int32, iReg int32) { /* sqlite3.c:143452:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -170909,7 +170947,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:143450:12: */
+func indexColumnIsBeingUpdated(tls *libc.TLS, pIdx uintptr, iCol int32, aXRef uintptr, chngRowid int32) int32 { /* sqlite3.c:143485:12: */
var iIdxCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2))
// Cannot index rowid
if int32(iIdxCol) >= 0 {
@@ -170930,7 +170968,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:143480:12: */
+func indexWhereClauseMightChange(tls *libc.TLS, pIdx uintptr, aXRef uintptr, chngRowid int32) int32 { /* sqlite3.c:143515:12: */
if (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere == uintptr(0) {
return 0
}
@@ -170942,7 +170980,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:143496:13: */
+func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* sqlite3.c:143531:13: */
var pRet uintptr = Xsqlite3PExpr(tls, pParse, TK_ROW, uintptr(0), uintptr(0))
if pRet != 0 {
(*Expr)(unsafe.Pointer(pRet)).FiColumn = YnVar(iCol + 1)
@@ -170986,7 +171024,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:143540:13: */
+func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pChanges uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* sqlite3.c:143575:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -171069,7 +171107,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:143637:21: */
+func Xsqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges uintptr, pWhere uintptr, onError int32, pOrderBy uintptr, pLimit uintptr, pUpsert uintptr) { /* sqlite3.c:143672:21: */
bp := tls.Alloc(108)
defer tls.Free(108)
@@ -171350,7 +171388,7 @@ __25:
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+21709,
+ ts+21717,
libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName))
goto update_cleanup
__27:
@@ -171382,7 +171420,7 @@ __21:
iRowidExpr = i
goto __30
__29:
- Xsqlite3ErrorMsg(tls, pParse, ts+21745, libc.VaList(bp+8, (*ExprList_item)(unsafe.Pointer(pChanges+8+uintptr(i)*32)).FzEName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+21753, 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:
@@ -172423,7 +172461,7 @@ __168:
if !(regRowCount != 0) {
goto __169
}
- Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+21764)
+ Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+21772)
__169:
;
@@ -172459,7 +172497,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:144529:13: */
+func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, pChanges uintptr, pRowid uintptr, aXRef uintptr, pWhere uintptr, onError int32) { /* sqlite3.c:144564:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172632,7 +172670,7 @@ func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintpt
// #include "sqliteInt.h"
// Free a list of Upsert objects
-func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:144717:29: */
+func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:144752:29: */
for __ccgo := true; __ccgo; __ccgo = p != 0 {
var pNext uintptr = (*Upsert)(unsafe.Pointer(p)).FpNextUpsert
Xsqlite3ExprListDelete(tls, db, (*Upsert)(unsafe.Pointer(p)).FpUpsertTarget)
@@ -172645,14 +172683,14 @@ func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:144717:29
}
}
-func Xsqlite3UpsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:144729:21: */
+func Xsqlite3UpsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:144764:21: */
if p != 0 {
upsertDelete(tls, db, p)
}
}
// Duplicate an Upsert object.
-func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:144737:23: */
+func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:144772:23: */
if p == uintptr(0) {
return uintptr(0)
}
@@ -172665,7 +172703,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:144751:23: */
+func Xsqlite3UpsertNew(tls *libc.TLS, db uintptr, pTarget uintptr, pTargetWhere uintptr, pSet uintptr, pWhere uintptr, pNext uintptr) uintptr { /* sqlite3.c:144786:23: */
var pNew uintptr
pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Upsert{})))
if pNew == uintptr(0) {
@@ -172691,7 +172729,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:144786:20: */
+func Xsqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr, pUpsert uintptr) int32 { /* sqlite3.c:144821:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
@@ -172811,10 +172849,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+21777, libc.VaList(bp, nClause+1))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([16]int8{})), bp+216, ts+21785, libc.VaList(bp, nClause+1))
}
Xsqlite3ErrorMsg(tls, pParse,
- ts+21781, libc.VaList(bp+8, bp+216))
+ ts+21789, libc.VaList(bp+8, bp+216))
return SQLITE_ERROR
}
@@ -172833,7 +172871,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:144913:20: */
+func Xsqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) int32 { /* sqlite3.c:144948:20: */
var pNext uintptr
if pUpsert == uintptr(0) {
return 0
@@ -172855,7 +172893,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:144929:23: */
+func Xsqlite3UpsertOfIndex(tls *libc.TLS, pUpsert uintptr, pIdx uintptr) uintptr { /* sqlite3.c:144964:23: */
for pUpsert != 0 &&
(*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertTarget != uintptr(0) &&
(*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertIdx != pIdx {
@@ -172871,7 +172909,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:144949:21: */
+func Xsqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab uintptr, pIdx uintptr, iCur int32) { /* sqlite3.c:144984: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
@@ -172905,7 +172943,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+13431, -1)
+ ts+13439, -1)
Xsqlite3MayAbort(tls, pParse)
Xsqlite3VdbeJumpHere(tls, v, i)
}
@@ -172951,7 +172989,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:145046:12: */
+func execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) int32 { /* sqlite3.c:145081:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -172973,7 +173011,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+21854, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+21858, uint64(3)) == 0) {
+ (libc.Xstrncmp(tls, zSubSql, ts+21862, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+21866, uint64(3)) == 0) {
rc = execSql(tls, db, pzErrMsg, zSubSql)
if rc != SQLITE_OK {
break
@@ -172991,7 +173029,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:145076:12: */
+func execSqlF(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr, va uintptr) int32 { /* sqlite3.c:145111:12: */
var z uintptr
var ap Va_list
_ = ap
@@ -173035,7 +173073,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:145119:21: */
+func Xsqlite3Vacuum(tls *libc.TLS, pParse uintptr, pNm uintptr, pInto uintptr) { /* sqlite3.c:145154:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pNm
@@ -173092,7 +173130,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:145157:36: */
+func Xsqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, pOut uintptr) int32 { /* sqlite3.c:145192:36: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -173123,14 +173161,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+21862)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+21870)
return SQLITE_ERROR // IMP: R-12218-18073
__1:
;
if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive > 1) {
goto __2
}
- Xsqlite3SetString(tls, pzErrMsg, db, ts+21902)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+21910)
return SQLITE_ERROR // IMP: R-15610-35227
__2:
;
@@ -173141,7 +173179,7 @@ __2:
if !(Xsqlite3_value_type(tls, pOut) != SQLITE_TEXT) {
goto __5
}
- Xsqlite3SetString(tls, pzErrMsg, db, ts+21945)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+21953)
return SQLITE_ERROR
__5:
;
@@ -173186,7 +173224,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+21963, libc.VaList(bp, zOut))
+ rc = execSqlF(tls, db, pzErrMsg, ts+21971, libc.VaList(bp, zOut))
(*Sqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags
if !(rc != SQLITE_OK) {
goto __6
@@ -173207,7 +173245,7 @@ __6:
goto __8
}
rc = SQLITE_ERROR
- Xsqlite3SetString(tls, pzErrMsg, db, ts+21986)
+ Xsqlite3SetString(tls, pzErrMsg, db, ts+21994)
goto end_of_vacuum
__8:
;
@@ -173223,7 +173261,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+15789)
+ rc = execSql(tls, db, pzErrMsg, ts+15797)
if !(rc != SQLITE_OK) {
goto __9
}
@@ -173275,7 +173313,7 @@ __12:
(*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(nDb) // force new CREATE statements into vacuum_db
rc = execSqlF(tls, db, pzErrMsg,
- ts+22013,
+ ts+22021,
libc.VaList(bp+8, zDbMain))
if !(rc != SQLITE_OK) {
goto __13
@@ -173285,7 +173323,7 @@ __13:
;
rc = execSqlF(tls, db, pzErrMsg,
- ts+22121,
+ ts+22129,
libc.VaList(bp+16, zDbMain))
if !(rc != SQLITE_OK) {
goto __14
@@ -173300,7 +173338,7 @@ __14:
// the contents to the temporary database.
rc = execSqlF(tls, db, pzErrMsg,
- ts+22175,
+ ts+22183,
libc.VaList(bp+24, zDbMain))
*(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_Vacuum))
@@ -173317,7 +173355,7 @@ __15:
// from the schema table.
rc = execSqlF(tls, db, pzErrMsg,
- ts+22326,
+ ts+22334,
libc.VaList(bp+32, zDbMain))
if !(rc != 0) {
goto __16
@@ -173430,7 +173468,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:145350:32 */
+} /* sqlite3.c:145385: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
@@ -173438,7 +173476,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:145462:23: */
+func Xsqlite3VtabCreateModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) uintptr { /* sqlite3.c:145497:23: */
var pMod uintptr
var pDel uintptr
var zCopy uintptr
@@ -173478,7 +173516,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:145510:12: */
+func createModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* sqlite3.c:145545:12: */
var rc int32 = SQLITE_OK
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -173492,18 +173530,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:145531:16: */
+func Xsqlite3_create_module(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr) int32 { /* sqlite3.c:145566: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:145546:16: */
+func Xsqlite3_create_module_v2(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* sqlite3.c:145581: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:145563:16: */
+func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) int32 { /* sqlite3.c:145598:16: */
var pThis uintptr
var pNext uintptr
for pThis = (*Hash)(unsafe.Pointer(db + 568)).Ffirst; pThis != 0; pThis = pNext {
@@ -173524,7 +173562,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:145585:21: */
+func Xsqlite3VtabModuleUnref(tls *libc.TLS, db uintptr, pMod uintptr) { /* sqlite3.c:145620:21: */
(*Module)(unsafe.Pointer(pMod)).FnRefModule--
if (*Module)(unsafe.Pointer(pMod)).FnRefModule == 0 {
@@ -173542,14 +173580,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:145605:21: */
+func Xsqlite3VtabLock(tls *libc.TLS, pVTab uintptr) { /* sqlite3.c:145640: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:145615:23: */
+func Xsqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) uintptr { /* sqlite3.c:145650: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 {
@@ -173559,7 +173597,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:145626:21: */
+func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* sqlite3.c:145661:21: */
var db uintptr = (*VTable)(unsafe.Pointer(pVTab)).Fdb
(*VTable)(unsafe.Pointer(pVTab)).FnRef--
@@ -173580,7 +173618,7 @@ func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* sqlite3.c:145626: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:145652:15: */
+func vtabDisconnectAll(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:145687:15: */
var pRet uintptr = uintptr(0)
var pVTable uintptr
@@ -173617,7 +173655,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:145695:21: */
+func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:145730:21: */
var ppVTab uintptr
for ppVTab = p + 64 + 16; *(*uintptr)(unsafe.Pointer(ppVTab)) != 0; ppVTab = *(*uintptr)(unsafe.Pointer(ppVTab)) + 40 {
@@ -173648,7 +173686,7 @@ 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:145733:21: */
+func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* sqlite3.c:145768:21: */
var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpDisconnect
if p != 0 {
@@ -173674,7 +173712,7 @@ func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* sqlite3.c:145733: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:145764:21: */
+func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:145799:21: */
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) {
vtabDisconnectAll(tls, uintptr(0), p)
@@ -173694,7 +173732,7 @@ func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:1457
// 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:145782:13: */
+func addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uintptr) { /* sqlite3.c:145817:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -173704,7 +173742,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+13658, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+13666, 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) {
@@ -173720,7 +173758,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:145808:21: */
+func Xsqlite3VtabBeginParse(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pModuleName uintptr, ifNotExists int32) { /* sqlite3.c:145843:21: */
var pTable uintptr // The new virtual table
var db uintptr // Database connection
@@ -173755,7 +173793,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:145857:13: */
+func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:145892: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)
@@ -173766,7 +173804,7 @@ func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:145857: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:145870:21: */
+func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* sqlite3.c:145905:21: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -173801,7 +173839,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+22456, libc.VaList(bp, pParse+256))
+ zStmt = Xsqlite3MPrintf(tls, db, ts+22464, 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
@@ -173813,7 +173851,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* s
iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema)
Xsqlite3NestedParse(tls, pParse,
- ts+22480,
+ ts+22488,
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,
@@ -173823,7 +173861,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+22579, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt))
+ zWhere = Xsqlite3MPrintf(tls, db, ts+22587, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt))
Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0))
Xsqlite3DbFree(tls, db, zStmt)
@@ -173850,7 +173888,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:145953:21: */
+func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:145988:21: */
addArgumentToVtab(tls, pParse)
(*Parse)(unsafe.Pointer(pParse)).FsArg.Fz = uintptr(0)
(*Parse)(unsafe.Pointer(pParse)).FsArg.Fn = uint32(0)
@@ -173858,7 +173896,7 @@ func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:145953: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:145963:21: */
+func Xsqlite3VtabArgExtend(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:145998:21: */
var pArg uintptr = pParse + 368
if (*Token)(unsafe.Pointer(pArg)).Fz == uintptr(0) {
(*Token)(unsafe.Pointer(pArg)).Fz = (*Token)(unsafe.Pointer(p)).Fz
@@ -173872,7 +173910,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:145979:12: */
+func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, xConstruct uintptr, pzErr uintptr) int32 { /* sqlite3.c:146014:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -173893,7 +173931,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+22598, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
+ ts+22606, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName))
return SQLITE_LOCKED
}
}
@@ -173933,7 +173971,7 @@ 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+22640, libc.VaList(bp+8, zModuleName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+22648, libc.VaList(bp+8, zModuleName))
} else {
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+4444, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))
@@ -173947,7 +173985,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 + 22670 /* "vtable construct..." */
+ var zFormat uintptr = ts + 22678 /* "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
@@ -173968,7 +174006,7 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
var i int32 = 0
nType = Xsqlite3Strlen30(tls, zType)
for i = 0; i < nType; i++ {
- if 0 == Xsqlite3_strnicmp(tls, ts+17415, zType+uintptr(i), 6) &&
+ if 0 == Xsqlite3_strnicmp(tls, ts+17423, 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
@@ -174008,7 +174046,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:146115:20: */
+func Xsqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* sqlite3.c:146150:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -174027,7 +174065,7 @@ 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+22716, libc.VaList(bp, zModule))
+ Xsqlite3ErrorMsg(tls, pParse, ts+22724, libc.VaList(bp, zModule))
rc = SQLITE_ERROR
} else {
*(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */)) = uintptr(0)
@@ -174044,7 +174082,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:146151:12: */
+func growVTrans(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:146186:12: */
var ARRAY_INCR int32 = 5
// Grow the sqlite3.aVTrans array if required
@@ -174064,7 +174102,7 @@ func growVTrans(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:146151: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:146174:13: */
+func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* sqlite3.c:146209: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)
@@ -174076,7 +174114,7 @@ func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* sqlite3.c:146174
// 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:146188:20: */
+func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr, pzErr uintptr) int32 { /* sqlite3.c:146223:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -174095,7 +174133,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+22716, libc.VaList(bp, zMod))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+22724, 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)
@@ -174116,7 +174154,7 @@ func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr,
// This function is used to set the schema of a virtual table. It is only
// valid to call this function from within the xCreate() or xConnect() of a
// virtual table module.
-func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int32 { /* sqlite3.c:146229:16: */
+func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int32 { /* sqlite3.c:146264:16: */
bp := tls.Alloc(416)
defer tls.Free(416)
@@ -174132,7 +174170,7 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3
if !(pCtx != 0) || (*VtabCtx)(unsafe.Pointer(pCtx)).FbDeclared != 0 {
Xsqlite3Error(tls, db, SQLITE_MISUSE)
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
- return Xsqlite3MisuseError(tls, 146246)
+ return Xsqlite3MisuseError(tls, 146281)
}
pTab = (*VtabCtx)(unsafe.Pointer(pCtx)).FpTab
@@ -174206,7 +174244,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:146322:20: */
+func Xsqlite3VtabCallDestroy(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr) int32 { /* sqlite3.c:146357:20: */
var rc int32 = SQLITE_OK
var pTab uintptr
@@ -174251,7 +174289,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:146366:13: */
+func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* sqlite3.c:146401:13: */
var i int32
if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 {
var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans
@@ -174281,7 +174319,7 @@ func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* sqlite3.c:14636
// 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:146394:20: */
+func Xsqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:146429:20: */
var i int32
var rc int32 = SQLITE_OK
var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans
@@ -174303,14 +174341,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:146416:20: */
+func Xsqlite3VtabRollback(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:146451: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:146425:20: */
+func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:146460:20: */
callFinaliser(tls, db, int32(uintptr(0)+128))
return SQLITE_OK
}
@@ -174321,7 +174359,7 @@ func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:146425: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:146438:20: */
+func Xsqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) int32 { /* sqlite3.c:146473:20: */
var rc int32 = SQLITE_OK
var pModule uintptr
@@ -174382,7 +174420,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:146498:20: */
+func Xsqlite3VtabSavepoint(tls *libc.TLS, db uintptr, op int32, iSavepoint int32) int32 { /* sqlite3.c:146533:20: */
var rc int32 = SQLITE_OK
if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 {
@@ -174430,7 +174468,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:146546:24: */
+func Xsqlite3VtabOverloadFunction(tls *libc.TLS, db uintptr, pDef uintptr, nArg int32, pExpr uintptr) uintptr { /* sqlite3.c:146581:24: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174497,7 +174535,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:146616:21: */
+func Xsqlite3VtabMakeWritable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* sqlite3.c:146651:21: */
var pToplevel uintptr = func() uintptr {
if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 {
return (*Parse)(unsafe.Pointer(pParse)).FpToplevel
@@ -174536,7 +174574,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:146650:20: */
+func Xsqlite3VtabEponymousTableInit(tls *libc.TLS, pParse uintptr, pMod uintptr) int32 { /* sqlite3.c:146685:20: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -174581,7 +174619,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:146688:21: */
+func Xsqlite3VtabEponymousTableClear(tls *libc.TLS, db uintptr, pMod uintptr) { /* sqlite3.c:146723: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
@@ -174598,19 +174636,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:146707:16: */
+func Xsqlite3_vtab_on_conflict(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:146742: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:146708:30 */
+} /* sqlite3.c:146743: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:146725:16: */
+func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* sqlite3.c:146760:16: */
var ap Va_list
_ = ap
var rc int32 = SQLITE_OK
@@ -174619,7 +174657,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, 146736)
+ rc = Xsqlite3MisuseError(tls, 146771)
} else {
ap = va
@@ -174647,7 +174685,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32
fallthrough
default:
{
- rc = Xsqlite3MisuseError(tls, 146754)
+ rc = Xsqlite3MisuseError(tls, 146789)
break
}
@@ -174711,7 +174749,7 @@ type WhereClause1 = struct {
FnBase int32
Fa uintptr
FaStatic [8]WhereTerm
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
//************* End of vtab.c ***********************************************
//************* Begin file wherecode.c **************************************
@@ -174751,23 +174789,23 @@ type WhereClause1 = struct {
// a separate source file for easier editing.
// Forward references
-type WhereClause = WhereClause1 /* sqlite3.c:146814:28 */
+type WhereClause = WhereClause1 /* sqlite3.c:146849:28 */
type WhereMaskSet1 = struct {
FbVarSelect int32
Fn int32
Fix [64]int32
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
-type WhereMaskSet = WhereMaskSet1 /* sqlite3.c:146815:29 */
+type WhereMaskSet = WhereMaskSet1 /* sqlite3.c:146850:29 */
type WhereOrInfo1 = struct {
Fwc WhereClause
Findexable Bitmask
-} /* sqlite3.c:146816:9 */
+} /* sqlite3.c:146851:9 */
-type WhereOrInfo = WhereOrInfo1 /* sqlite3.c:146816:28 */
-type WhereAndInfo1 = struct{ Fwc WhereClause } /* sqlite3.c:146817:9 */
+type WhereOrInfo = WhereOrInfo1 /* sqlite3.c:146851:28 */
+type WhereAndInfo1 = struct{ Fwc WhereClause } /* sqlite3.c:146852:9 */
-type WhereAndInfo = WhereAndInfo1 /* sqlite3.c:146817:29 */
+type WhereAndInfo = WhereAndInfo1 /* sqlite3.c:146852:29 */
type WhereLevel1 = struct {
FiLeftJoin int32
FiTabCur int32
@@ -174797,9 +174835,9 @@ type WhereLevel1 = struct {
}
FpWLoop uintptr
FnotReady Bitmask
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
-type WhereLevel = WhereLevel1 /* sqlite3.c:146818:27 */
+type WhereLevel = WhereLevel1 /* sqlite3.c:146853:27 */
type WhereLoop1 = struct {
Fprereq Bitmask
FmaskSelf Bitmask
@@ -174826,9 +174864,9 @@ type WhereLoop1 = struct {
FaLTerm uintptr
FpNextLoop uintptr
FaLTermSpace [3]uintptr
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
-type WhereLoop = WhereLoop1 /* sqlite3.c:146819:26 */
+type WhereLoop = WhereLoop1 /* sqlite3.c:146854:26 */
type WherePath1 = struct {
FmaskLoop Bitmask
FrevLoop Bitmask
@@ -174838,9 +174876,9 @@ type WherePath1 = struct {
FisOrdered I8
F__ccgo_pad1 [1]byte
FaLoop uintptr
-} /* sqlite3.c:146820:9 */
+} /* sqlite3.c:146855:9 */
-type WherePath = WherePath1 /* sqlite3.c:146820:26 */
+type WherePath = WherePath1 /* sqlite3.c:146855:26 */
type WhereTerm1 = struct {
FpExpr uintptr
FpWC uintptr
@@ -174860,9 +174898,9 @@ type WhereTerm1 = struct {
}
FprereqRight Bitmask
FprereqAll Bitmask
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
-type WhereTerm = WhereTerm1 /* sqlite3.c:146821:26 */
+type WhereTerm = WhereTerm1 /* sqlite3.c:146856:26 */
type WhereLoopBuilder1 = struct {
FpWInfo uintptr
FpWC uintptr
@@ -174875,9 +174913,9 @@ type WhereLoopBuilder1 = struct {
F__ccgo_pad1 [2]byte
FiPlanLimit uint32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:146822:9 */
+} /* sqlite3.c:146857:9 */
-type WhereLoopBuilder = WhereLoopBuilder1 /* sqlite3.c:146822:33 */
+type WhereLoopBuilder = WhereLoopBuilder1 /* sqlite3.c:146857:33 */
type WhereScan1 = struct {
FpOrigWC uintptr
FpWC uintptr
@@ -174892,24 +174930,24 @@ type WhereScan1 = struct {
FaiCur [11]int32
FaiColumn [11]I16
F__ccgo_pad2 [2]byte
-} /* sqlite3.c:146823:9 */
+} /* sqlite3.c:146858:9 */
-type WhereScan = WhereScan1 /* sqlite3.c:146823:26 */
+type WhereScan = WhereScan1 /* sqlite3.c:146858:26 */
type WhereOrCost1 = struct {
Fprereq Bitmask
FrRun LogEst
FnOut LogEst
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:146822:9 */
+} /* sqlite3.c:146857:9 */
-type WhereOrCost = WhereOrCost1 /* sqlite3.c:146824:28 */
+type WhereOrCost = WhereOrCost1 /* sqlite3.c:146859:28 */
type WhereOrSet1 = struct {
Fn U16
F__ccgo_pad1 [6]byte
Fa [3]WhereOrCost
-} /* sqlite3.c:146822:9 */
+} /* sqlite3.c:146857:9 */
-type WhereOrSet = WhereOrSet1 /* sqlite3.c:146825:27 */
+type WhereOrSet = WhereOrSet1 /* sqlite3.c:146860:27 */
// This object contains information needed to implement a single nested
// loop in WHERE clause.
@@ -174931,7 +174969,7 @@ type InLoop = struct {
FnPrefix int32
FeEndLoopOp U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:146865:7 */
+} /* sqlite3.c:146900:7 */
// Allowed values for WhereLoopBuider.bldFlags
@@ -174957,7 +174995,7 @@ type WhereExprMod1 = struct {
FpNext uintptr
FpExpr uintptr
Forig Expr
-} /* sqlite3.c:14622:9 */
+} /* sqlite3.c:14626:9 */
// Allowed values for WhereLoopBuider.bldFlags
@@ -174979,7 +175017,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:147227:29 */
+type WhereExprMod = WhereExprMod1 /* sqlite3.c:147262:29 */
// Bitmasks for the operators on WhereTerm objects. These are all
// operators that are of interest to the query planner. An
@@ -175001,13 +175039,13 @@ type WhereExprMod = WhereExprMod1 /* sqlite3.c:147227: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:147421:19: */
+func explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) uintptr { /* sqlite3.c:147456:19: */
i = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i)*2)))
if i == -2 {
- return ts + 22735 /* "<expr>" */
+ return ts + 22743 /* "<expr>" */
}
if i == -1 {
- return ts + 17524 /* "rowid" */
+ return ts + 17532 /* "rowid" */
}
return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*24)).FzCnName
}
@@ -175018,19 +175056,19 @@ 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:147436:13: */
+func explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32, iTerm int32, bAnd int32, zOp uintptr) { /* sqlite3.c:147471:13: */
var i int32
if bAnd != 0 {
- Xsqlite3_str_append(tls, pStr, ts+22742, 5)
+ Xsqlite3_str_append(tls, pStr, ts+22750, 5)
}
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+22748, 1)
+ Xsqlite3_str_append(tls, pStr, ts+22756, 1)
}
for i = 0; i < nTerm; i++ {
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+14048, 1)
+ Xsqlite3_str_append(tls, pStr, ts+14056, 1)
}
Xsqlite3_str_appendall(tls, pStr, explainIndexColumnName(tls, pIdx, iTerm+i))
}
@@ -175041,11 +175079,11 @@ func explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32, i
Xsqlite3_str_append(tls, pStr, zOp, 1)
if nTerm > 1 {
- Xsqlite3_str_append(tls, pStr, ts+22748, 1)
+ Xsqlite3_str_append(tls, pStr, ts+22756, 1)
}
for i = 0; i < nTerm; i++ {
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+14048, 1)
+ Xsqlite3_str_append(tls, pStr, ts+14056, 1)
}
Xsqlite3_str_append(tls, pStr, ts+6311, 1)
}
@@ -175066,7 +175104,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:147480:13: */
+func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* sqlite3.c:147515:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -175079,27 +175117,27 @@ 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+22750, 2)
+ Xsqlite3_str_append(tls, pStr, ts+22758, 2)
for i = 0; i < int32(nEq); i++ {
var z uintptr = explainIndexColumnName(tls, pIndex, i)
if i != 0 {
- Xsqlite3_str_append(tls, pStr, ts+22742, 5)
+ Xsqlite3_str_append(tls, pStr, ts+22750, 5)
}
Xsqlite3_str_appendf(tls, pStr, func() uintptr {
if i >= int32(nSkip) {
- return ts + 22753 /* "%s=?" */
+ return ts + 22761 /* "%s=?" */
}
- return ts + 22758 /* "ANY(%s)" */
+ return ts + 22766 /* "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+22766)
+ explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */))), j, i, ts+22774)
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+22768)
+ explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */))), j, i, ts+22776)
}
Xsqlite3_str_append(tls, pStr, ts+6260, 1)
}
@@ -175111,7 +175149,7 @@ 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:147514:20: */
+func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr, pLevel uintptr, wctrlFlags U16) int32 { /* sqlite3.c:147549:20: */
bp := tls.Alloc(196)
defer tls.Free(196)
@@ -175146,11 +175184,11 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
Xsqlite3StrAccumInit(tls, bp+64, db, bp+96, int32(unsafe.Sizeof([100]int8{})), SQLITE_MAX_LENGTH)
(*StrAccum)(unsafe.Pointer(bp + 64 /* &str */)).FprintfFlags = U8(SQLITE_PRINTF_INTERNAL)
- Xsqlite3_str_appendf(tls, bp+64, ts+22770, libc.VaList(bp, func() uintptr {
+ Xsqlite3_str_appendf(tls, bp+64, ts+22778, libc.VaList(bp, func() uintptr {
if isSearch != 0 {
- return ts + 22776 /* "SEARCH" */
+ return ts + 22784 /* "SEARCH" */
}
- return ts + 22783 /* "SCAN" */
+ return ts + 22791 /* "SCAN" */
}(), pItem))
if flags&U32(WHERE_IPK|WHERE_VIRTUALTABLE) == U32(0) {
var zFmt uintptr = uintptr(0)
@@ -175160,30 +175198,30 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
if !((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) && int32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY {
if isSearch != 0 {
- zFmt = ts + 12205 /* "PRIMARY KEY" */
+ zFmt = ts + 12213 /* "PRIMARY KEY" */
}
} else if flags&U32(WHERE_PARTIALIDX) != 0 {
- zFmt = ts + 22788 /* "AUTOMATIC PARTIA..." */
+ zFmt = ts + 22796 /* "AUTOMATIC PARTIA..." */
} else if flags&U32(WHERE_AUTO_INDEX) != 0 {
- zFmt = ts + 22821 /* "AUTOMATIC COVERI..." */
+ zFmt = ts + 22829 /* "AUTOMATIC COVERI..." */
} else if flags&U32(WHERE_IDX_ONLY) != 0 {
- zFmt = ts + 22846 /* "COVERING INDEX %..." */
+ zFmt = ts + 22854 /* "COVERING INDEX %..." */
} else {
- zFmt = ts + 22864 /* "INDEX %s" */
+ zFmt = ts + 22872 /* "INDEX %s" */
}
if zFmt != 0 {
- Xsqlite3_str_append(tls, bp+64, ts+22873, 7)
+ Xsqlite3_str_append(tls, bp+64, ts+22881, 7)
Xsqlite3_str_appendf(tls, bp+64, zFmt, libc.VaList(bp+16, (*Index)(unsafe.Pointer(pIdx)).FzName))
explainIndexRange(tls, bp+64, pLoop)
}
} else if flags&U32(WHERE_IPK) != U32(0) && flags&U32(WHERE_CONSTRAINT) != U32(0) {
var cRangeOp int8
- var zRowid uintptr = ts + 17524 /* "rowid" */
- Xsqlite3_str_appendf(tls, bp+64, ts+22881, libc.VaList(bp+24, zRowid))
+ var zRowid uintptr = ts + 17532 /* "rowid" */
+ Xsqlite3_str_appendf(tls, bp+64, ts+22889, libc.VaList(bp+24, zRowid))
if flags&U32(WHERE_COLUMN_EQ|WHERE_COLUMN_IN) != 0 {
cRangeOp = int8('=')
} else if flags&U32(WHERE_BOTH_LIMIT) == U32(WHERE_BOTH_LIMIT) {
- Xsqlite3_str_appendf(tls, bp+64, ts+22912, libc.VaList(bp+32, zRowid))
+ Xsqlite3_str_appendf(tls, bp+64, ts+22920, libc.VaList(bp+32, zRowid))
cRangeOp = int8('<')
} else if flags&U32(WHERE_BTM_LIMIT) != 0 {
cRangeOp = int8('>')
@@ -175191,9 +175229,9 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
cRangeOp = int8('<')
}
- Xsqlite3_str_appendf(tls, bp+64, ts+22922, libc.VaList(bp+40, int32(cRangeOp)))
+ Xsqlite3_str_appendf(tls, bp+64, ts+22930, libc.VaList(bp+40, int32(cRangeOp)))
} else if flags&U32(WHERE_VIRTUALTABLE) != U32(0) {
- Xsqlite3_str_appendf(tls, bp+64, ts+22927,
+ Xsqlite3_str_appendf(tls, bp+64, ts+22935,
libc.VaList(bp+48, *(*int32)(unsafe.Pointer(pLoop + 24)), *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */))))
}
zMsg = Xsqlite3StrAccumFinish(tls, bp+64)
@@ -175212,7 +175250,7 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
//
// If an OP_Explain opcode is added to the VM, its address is returned.
// Otherwise, if no OP_Explain is coded, zero is returned.
-func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintptr, pLevel uintptr) int32 { /* sqlite3.c:147626:20: */
+func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintptr, pLevel uintptr) int32 { /* sqlite3.c:147661:20: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -175230,22 +175268,22 @@ func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp
Xsqlite3StrAccumInit(tls, bp+24, db, bp+56, int32(unsafe.Sizeof([100]int8{})), SQLITE_MAX_LENGTH)
(*StrAccum)(unsafe.Pointer(bp + 24 /* &str */)).FprintfFlags = U8(SQLITE_PRINTF_INTERNAL)
- Xsqlite3_str_appendf(tls, bp+24, ts+22954, libc.VaList(bp, pItem))
+ Xsqlite3_str_appendf(tls, bp+24, ts+22962, 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+22753, libc.VaList(bp+8, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr((*Table)(unsafe.Pointer(pTab)).FiPKey)*24)).FzCnName))
+ Xsqlite3_str_appendf(tls, bp+24, ts+22761, 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+22975, 0)
+ Xsqlite3_str_appendf(tls, bp+24, ts+22983, 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+22742, 5)
+ Xsqlite3_str_append(tls, bp+24, ts+22750, 5)
}
- Xsqlite3_str_appendf(tls, bp+24, ts+22753, libc.VaList(bp+16, z))
+ Xsqlite3_str_appendf(tls, bp+24, ts+22761, libc.VaList(bp+16, z))
}
}
Xsqlite3_str_append(tls, bp+24, ts+6260, 1)
@@ -175295,7 +175333,7 @@ func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp
// The TERM_LIKECOND marking indicates that the term should be coded inside
// a conditional such that is only evaluated on the second pass of a
// LIKE-optimization loop, when scanning BLOBs instead of strings.
-func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* sqlite3.c:147739:13: */
+func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* sqlite3.c:147774:13: */
var nLoop int32 = 0
for int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_CODED == 0 &&
@@ -175328,7 +175366,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:147777:13: */
+func codeApplyAffinity(tls *libc.TLS, pParse uintptr, base int32, n int32, zAff uintptr) { /* sqlite3.c:147812:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
if zAff == uintptr(0) {
@@ -175361,7 +175399,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:147814:13: */
+func updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintptr) { /* sqlite3.c:147849:13: */
var i int32
for i = 0; i < n; i++ {
var p uintptr = Xsqlite3VectorFieldSubexpr(tls, pRight, i)
@@ -175399,7 +175437,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:147860:13: */
+func removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, pLoop uintptr, pX uintptr) uintptr { /* sqlite3.c:147895:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pNew uintptr
pNew = Xsqlite3ExprDup(tls, db, pX, 0)
@@ -175474,7 +175512,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:147949:12: */
+func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, iEq int32, bRev int32, iTarget int32) int32 { /* sqlite3.c:147984:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -175667,7 +175705,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:148145:12: */
+func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev int32, nExtraReg int32, pzAff uintptr) int32 { /* sqlite3.c:148180: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
@@ -175704,6 +175742,7 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in
}(), iIdxCur)
j = Xsqlite3VdbeAddOp0(tls, v, OP_Goto)
+
(*WhereLevel)(unsafe.Pointer(pLevel)).FaddrSkip = Xsqlite3VdbeAddOp4Int(tls, v, func() int32 {
if bRev != 0 {
return OP_SeekLT
@@ -175787,7 +175826,7 @@ 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:148522:13: */
+func codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32, iIdxCur int32) { /* sqlite3.c:148558:13: */
var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse // Parse context
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // Vdbe to generate code within
@@ -175828,7 +175867,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:148566:13: */
+func codeExprOrVector(tls *libc.TLS, pParse uintptr, p uintptr, iReg int32, nReg int32) { /* sqlite3.c:148602:13: */
if p != 0 && Xsqlite3ExprIsVector(tls, p) != 0 {
if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_xIsSelect) != U32(0) {
@@ -175856,10 +175895,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:148606:3 */
+type IdxExprTrans = IdxExprTrans1 /* sqlite3.c:148642:3 */
// Preserve pExpr on the WhereETrans list of the WhereInfo.
-func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* sqlite3.c:148611:13: */
+func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* sqlite3.c:148647:13: */
var pNew uintptr
pNew = Xsqlite3DbMallocRaw(tls, (*IdxExprTrans)(unsafe.Pointer(pTrans)).Fdb, uint64(unsafe.Sizeof(WhereExprMod{})))
if pNew == uintptr(0) {
@@ -175876,7 +175915,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:148627:12: */
+func whereIndexExprTransNode(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:148663: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)
@@ -175896,7 +175935,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:148649:12: */
+func whereIndexExprTransColumn(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* sqlite3.c:148685: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 {
@@ -175918,7 +175957,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:148674:13: */
+func whereIndexExprTrans(tls *libc.TLS, pIdx uintptr, iTabCur int32, iIdxCur int32, pWInfo uintptr) { /* sqlite3.c:148710:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -175983,7 +176022,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:148738:13: */
+func whereApplyPartialIndexConstraints(tls *libc.TLS, pTruth uintptr, iTabCur int32, pWC uintptr) { /* sqlite3.c:148774:13: */
var i int32
var pTerm uintptr
for int32((*Expr)(unsafe.Pointer(pTruth)).Fop) == TK_AND {
@@ -176029,7 +176068,7 @@ __3:
// WhereLevel.regFilter set. If an inner-loop Bloom filter is checked,
// then clear the WhereLevel.regFilter value to prevent the Bloom filter
// from being checked a second time when the inner loop is evaluated.
-func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32, addrNxt int32, notReady Bitmask) { /* sqlite3.c:148774:29: */
+func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32, addrNxt int32, notReady Bitmask) { /* sqlite3.c:148810:29: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -176039,6 +176078,9 @@ func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32,
if (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter == 0 {
continue
}
+ if (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop)).FnSkip != 0 {
+ continue
+ }
// ,--- Because sqlite3ConstructBloomFilter() has will not have set
// vvvvv--' pLevel->regFilter if this were true.
if (*WhereLoop)(unsafe.Pointer(pLoop)).Fprereq&notReady != 0 {
@@ -176071,7 +176113,7 @@ func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32,
// Generate code for the start of the iLevel-th loop in the WHERE clause
// implementation described by pWInfo.
-func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) Bitmask { /* sqlite3.c:148821:24: */
+func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) Bitmask { /* sqlite3.c:148858:24: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -176142,7 +176184,6 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
var iReg int32 // P3 Value for OP_VFilter
var addrNotFound int32
var nConstraint int32 = int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnLTerm)
- var iIn int32 // Counter for IN constraints
iReg = Xsqlite3GetTempRange(tls, pParse, nConstraint+2)
addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk
@@ -176204,53 +176245,52 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}()
(*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v)
- if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_ABLE) != 0 {
- iIn = *(*int32)(unsafe.Pointer(pLevel + 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
+ for j = 0; j < nConstraint; j++ {
pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8))
+ if j < 16 && int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 8)))>>j&1 != 0 {
+ disableTerm(tls, pLevel, pTerm)
+ continue
+ }
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 + 8)))>>j&1 != 0 {
- disableTerm(tls, pLevel, pTerm)
- } else if bIn != 0 && Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft) == 1 {
+ }()&*(*U32)(unsafe.Pointer(pLoop + 24 + 24)) == uint32(0) &&
+ !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
var pCompare uintptr // The comparison operator
var pRight uintptr // RHS of the comparison
var pOp uintptr // Opcode to access the value of the IN constraint
+ var iIn int32 // IN loop corresponding to the j-th constraint
// Reload the constraint value into reg[iReg+j+2]. The same value
// was loaded into the same register prior to the OP_VFilter, but
// the xFilter implementation might have changed the datatype or
// encoding of the value in the register, so it *must* be reloaded.
-
- if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
-
+ for iIn = 0; iIn < *(*int32)(unsafe.Pointer(pLevel + 64 /* &.u */ /* &.in */ /* &.nIn */)); iIn++ {
pOp = Xsqlite3VdbeGetOp(tls, v, *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLevel + 64 + 8)) + uintptr(iIn)*20 + 4 /* &.addrInTop */)))
+ if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Column && (*VdbeOp)(unsafe.Pointer(pOp)).Fp3 == iReg+j+2 ||
+ int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Rowid && (*VdbeOp)(unsafe.Pointer(pOp)).Fp2 == iReg+j+2 {
- Xsqlite3VdbeAddOp3(tls, v, int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode), (*VdbeOp)(unsafe.Pointer(pOp)).Fp1, (*VdbeOp)(unsafe.Pointer(pOp)).Fp2, (*VdbeOp)(unsafe.Pointer(pOp)).Fp3)
+ Xsqlite3VdbeAddOp3(tls, v, int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode), (*VdbeOp)(unsafe.Pointer(pOp)).Fp1, (*VdbeOp)(unsafe.Pointer(pOp)).Fp2, (*VdbeOp)(unsafe.Pointer(pOp)).Fp3)
+ break
+ }
}
// Generate code that will continue to the next row if
// the IN constraint is not satisfied
pCompare = Xsqlite3PExpr(tls, pParse, TK_EQ, uintptr(0), uintptr(0))
+ if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) {
+ var iFld int32 = *(*int32)(unsafe.Pointer(pTerm + 32 + 4 /* &.iField */))
+ var pLeft uintptr = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft
- if pCompare != 0 {
- (*Expr)(unsafe.Pointer(pCompare)).FpLeft = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft
+ if iFld > 0 {
+
+ (*Expr)(unsafe.Pointer(pCompare)).FpLeft = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLeft + 32)) + 8 + uintptr(iFld-1)*32)).FpExpr
+ } else {
+ (*Expr)(unsafe.Pointer(pCompare)).FpLeft = pLeft
+ }
(*Expr)(unsafe.Pointer(pCompare)).FpRight = libc.AssignUintptr(&pRight, Xsqlite3Expr(tls, db, TK_REGISTER, uintptr(0)))
if pRight != 0 {
(*Expr)(unsafe.Pointer(pRight)).FiTable = iReg + j + 2
@@ -176258,8 +176298,8 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
pParse, pCompare, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont, SQLITE_JUMPIFNULL)
}
(*Expr)(unsafe.Pointer(pCompare)).FpLeft = uintptr(0)
- Xsqlite3ExprDelete(tls, db, pCompare)
}
+ Xsqlite3ExprDelete(tls, db, pCompare)
}
}
@@ -176895,6 +176935,14 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
// the initialization of the right-hand operand of the vector comparison
// might not occur, or might occur only in an OR branch that is not
// taken. dbsqlfuzz 80a9fade844b4fb43564efc972bcb2c68270f5d1.
+ //
+ // 2022-03-03: Do not push down expressions that involve subqueries.
+ // The subquery might get coded as a subroutine. Any table-references
+ // in the subquery might be resolved to index-references for the index on
+ // the OR branch in which the subroutine is coded. But if the subroutine
+ // is invoked from a different OR branch that uses a different index, such
+ // index-references will not work. tag-20220303a
+ // https://sqlite.org/forum/forumpost/36937b197273d403
if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 1 {
var iTerm int32
for iTerm = 0; iTerm < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm; iTerm++ {
@@ -176909,7 +176957,9 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
if int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56)).FeOperator)&WO_ALL == 0 {
continue
}
-
+ if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subquery) != U32(0) {
+ continue
+ } // tag-20220303a
pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0)
pAndExpr = Xsqlite3ExprAnd(tls, pParse, pAndExpr, pExpr)
}
@@ -176926,7 +176976,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+22983, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+22991, 0)
for ii = 0; ii < (*WhereClause)(unsafe.Pointer(pOrWc)).FnTerm; ii++ {
var pOrTerm uintptr = (*WhereClause)(unsafe.Pointer(pOrWc)).Fa + uintptr(ii)*56
if (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor == iCur || int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FeOperator)&WO_AND != 0 {
@@ -176945,7 +176995,7 @@ 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+22998, libc.VaList(bp, ii+1))
+ Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+23006, libc.VaList(bp, ii+1))
pSubWInfo = Xsqlite3WhereBegin(tls, pParse, pOrTab, pOrExpr, uintptr(0), uintptr(0), uintptr(0),
uint16(WHERE_OR_SUBCLAUSE), iCovCur)
@@ -177293,24 +177343,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:149198:21 */
+} /* sqlite3.c:149238: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: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 */
+} /* sqlite3.c:149248:21 */
+var aStep = [2]U8{U8(OP_Next), U8(OP_Prev)} /* sqlite3.c:149966:21 */
+var aStart = [2]U8{U8(OP_Rewind), U8(OP_Last)} /* sqlite3.c:149967:21 */
// Deallocate all memory associated with a WhereOrInfo object.
-func whereOrInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:150128:13: */
+func whereOrInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:150176: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:150136:13: */
+func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:150184:13: */
Xsqlite3WhereClauseClear(tls, p)
Xsqlite3DbFree(tls, db, p)
}
@@ -177332,7 +177382,7 @@ func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:150
// 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:150160:12: */
+func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32 { /* sqlite3.c:150208:12: */
var pTerm uintptr
var idx int32
@@ -177374,14 +177424,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:150202:12: */
+func allowedOp(tls *libc.TLS, op int32) int32 { /* sqlite3.c:150250: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:150214:12: */
+func exprCommute(tls *libc.TLS, pParse uintptr, pExpr uintptr) U16 { /* sqlite3.c:150262: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) {
@@ -177401,7 +177451,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:150237:12: */
+func operatorMask(tls *libc.TLS, op int32) U16 { /* sqlite3.c:150285:12: */
var c U16
if op == TK_IN {
@@ -177428,7 +177478,7 @@ func operatorMask(tls *libc.TLS, op int32) U16 { /* sqlite3.c:150237: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:150275:12: */
+func isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintptr, pisComplete uintptr, pnoCase uintptr) int32 { /* sqlite3.c:150323:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -177600,7 +177650,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:150454:12: */
+func isAuxiliaryVtabOperator(tls *libc.TLS, db uintptr, pExpr uintptr, peOp2 uintptr, ppLeft uintptr, ppRight uintptr) int32 { /* sqlite3.c:150502:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -177705,18 +177755,18 @@ type Op2 = struct {
FzOp uintptr
FeOp2 uint8
F__ccgo_pad1 [7]byte
-} /* sqlite3.c:150462:18 */
+} /* sqlite3.c:150510:18 */
var aOp = [4]Op2{
- {FzOp: ts + 17373, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)},
- {FzOp: ts + 16694, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)},
- {FzOp: ts + 16220, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)},
- {FzOp: ts + 23007, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)},
-} /* sqlite3.c:150465:7 */
+ {FzOp: ts + 17381, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)},
+ {FzOp: ts + 16702, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)},
+ {FzOp: ts + 16228, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)},
+ {FzOp: ts + 23015, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)},
+} /* sqlite3.c:150513: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:150566:13: */
+func transferJoinMarkings(tls *libc.TLS, pDerived uintptr, pBase uintptr) { /* sqlite3.c:150614:13: */
if pDerived != 0 {
*(*U32)(unsafe.Pointer(pDerived + 4)) |= (*Expr)(unsafe.Pointer(pBase)).Fflags & U32(EP_FromJoin)
*(*int32)(unsafe.Pointer(pDerived + 52)) = *(*int32)(unsafe.Pointer(pBase + 52))
@@ -177724,7 +177774,7 @@ func transferJoinMarkings(tls *libc.TLS, pDerived uintptr, pBase uintptr) { /* s
}
// Mark term iChild as being a child of term iParent
-func markTermAsChild(tls *libc.TLS, pWC uintptr, iChild int32, iParent int32) { /* sqlite3.c:150576:13: */
+func markTermAsChild(tls *libc.TLS, pWC uintptr, iChild int32, iParent int32) { /* sqlite3.c:150624: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++
@@ -177733,7 +177783,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:150587:18: */
+func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* sqlite3.c:150635:18: */
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator) != WO_AND {
if N == 0 {
return pTerm
@@ -177764,7 +177814,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:150617:13: */
+func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintptr, pTwo uintptr) { /* sqlite3.c:150665: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
@@ -177897,7 +177947,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:150744:13: */
+func exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* sqlite3.c:150792: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
@@ -178216,7 +178266,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:151018:12: */
+func termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* sqlite3.c:151066:12: */
var aff1 int8
var aff2 int8
var pColl uintptr
@@ -178245,7 +178295,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:151041:16: */
+func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* sqlite3.c:151089:16: */
var mask Bitmask = uint64(0)
for pS != 0 {
var pSrc uintptr = (*Select)(unsafe.Pointer(pS)).FpSrc
@@ -178280,7 +178330,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:151078:28: */
+func exprMightBeIndexed2(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr) int32 { /* sqlite3.c:151126:28: */
var pIdx uintptr
var i int32
var iCur int32
@@ -178318,7 +178368,7 @@ __3:
return 0
}
-func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr, op int32) int32 { /* sqlite3.c:151102:12: */
+func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr, op int32) int32 { /* sqlite3.c:151150: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.
@@ -178359,7 +178409,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:151150:13: */
+func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* sqlite3.c:151198:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -178422,7 +178472,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* s
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+23014, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+23022, 0)
return
}
}
@@ -178606,7 +178656,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 + 23055 /* "NOCASE" */
+ return ts + 23063 /* "NOCASE" */
}
return uintptr(unsafe.Pointer(&Xsqlite3StrBINARY))
}()
@@ -178727,7 +178777,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:151319:21 */
+var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* sqlite3.c:151367:21 */
// **************************************************************************
//
@@ -178750,7 +178800,7 @@ var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* sqlite3.c:151319: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:151615:21: */
+func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* sqlite3.c:151663:21: */
var pE2 uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr)
(*WhereClause)(unsafe.Pointer(pWC)).Fop = op
@@ -178774,7 +178824,7 @@ func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* s
// (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: */
+func whereAddLimitExpr(tls *libc.TLS, pWC uintptr, iReg int32, pExpr uintptr, iCsr int32, eMatchOp int32) { /* sqlite3.c:151687:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -178826,7 +178876,7 @@ func whereAddLimitExpr(tls *libc.TLS, pWC uintptr, iReg int32, pExpr uintptr, iC
// LIMIT and OFFSET terms are ignored by most of the planner code. They
// exist only so that they may be passed to the xBestIndex method of the
// single virtual table in the FROM clause of the SELECT.
-func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* sqlite3.c:151692:21: */
+func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* sqlite3.c:151740:21: */
if p != 0 && (*Select)(unsafe.Pointer(p)).FpLimit != 0 &&
(*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct|SF_Aggregate) == U32(0) &&
@@ -178876,7 +178926,7 @@ func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* sqlite3.c
}
// Initialize a preallocated WhereClause structure.
-func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* sqlite3.c:151738:21: */
+func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* sqlite3.c:151786:21: */
(*WhereClause)(unsafe.Pointer(pWC)).FpWInfo = pWInfo
(*WhereClause)(unsafe.Pointer(pWC)).FhasOr = U8(0)
(*WhereClause)(unsafe.Pointer(pWC)).FpOuter = uintptr(0)
@@ -178889,7 +178939,7 @@ 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:151756:21: */
+func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* sqlite3.c:151804:21: */
var db uintptr = (*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse)).Fdb
if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 0 {
@@ -178949,7 +178999,7 @@ func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* sqlite3.c:151756:
// 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: */
+func sqlite3WhereExprUsageFull(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:151872:32: */
var mask Bitmask
if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_IF_NULL_ROW {
mask = Xsqlite3WhereGetMask(tls, pMaskSet, (*Expr)(unsafe.Pointer(p)).FiTable)
@@ -178979,7 +179029,7 @@ func sqlite3WhereExprUsageFull(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitma
return mask
}
-func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:151850:24: */
+func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:151898: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) {
@@ -178989,14 +179039,14 @@ func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmas
return sqlite3WhereExprUsageFull(tls, pMaskSet, p)
}
-func Xsqlite3WhereExprUsage(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:151859:24: */
+func Xsqlite3WhereExprUsage(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* sqlite3.c:151907:24: */
if p != 0 {
return Xsqlite3WhereExprUsageNN(tls, pMaskSet, p)
}
return uint64(0)
}
-func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) Bitmask { /* sqlite3.c:151862:24: */
+func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) Bitmask { /* sqlite3.c:151910:24: */
var i int32
var mask Bitmask = uint64(0)
if pList != 0 {
@@ -179013,7 +179063,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:151882:21: */
+func Xsqlite3WhereExprAnalyze(tls *libc.TLS, pTabList uintptr, pWC uintptr) { /* sqlite3.c:151930:21: */
var i int32
for i = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm - 1; i >= 0; i-- {
exprAnalyze(tls, pTabList, pWC, i)
@@ -179025,7 +179075,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:151899:21: */
+func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC uintptr) { /* sqlite3.c:151947:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -179050,7 +179100,7 @@ func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC
k++
}
if k >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) {
- Xsqlite3ErrorMsg(tls, pParse, ts+23062,
+ Xsqlite3ErrorMsg(tls, pParse, ts+23070,
libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, j))
return
}
@@ -179109,7 +179159,7 @@ type HiddenIndexInfo1 = struct {
FmHandleIn U32
F__ccgo_pad1 [4]byte
FaRhs [1]uintptr
-} /* sqlite3.c:151971:9 */
+} /* sqlite3.c:152019:9 */
//************* End of whereexpr.c ******************************************
//************* Begin file where.c ******************************************
@@ -179139,16 +179189,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:151971:32 */
+type HiddenIndexInfo = HiddenIndexInfo1 /* sqlite3.c:152019:32 */
// Return the estimated number of output rows from a WHERE clause
-func Xsqlite3WhereOutputRowCount(tls *libc.TLS, pWInfo uintptr) LogEst { /* sqlite3.c:151989:23: */
+func Xsqlite3WhereOutputRowCount(tls *libc.TLS, pWInfo uintptr) LogEst { /* sqlite3.c:152037: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:151997:20: */
+func Xsqlite3WhereIsDistinct(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:152045:20: */
return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct)
}
@@ -179158,7 +179208,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:152009:20: */
+func Xsqlite3WhereIsOrdered(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:152057:20: */
return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat)
}
@@ -179183,7 +179233,7 @@ 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:152036:20: */
+func Xsqlite3WhereOrderByLimitOptLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:152084:20: */
var pInner uintptr
if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 76))&0x4>>2) != 0) {
// The ORDER BY LIMIT optimization does not apply. Jump to the
@@ -179204,7 +179254,7 @@ func Xsqlite3WhereOrderByLimitOptLabel(tls *libc.TLS, pWInfo uintptr) int32 { /*
// Any extra OP_Goto that is coded here is an optimization. The
// correct answer should be obtained regardless. This OP_Goto just
// makes the answer appear faster.
-func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { /* sqlite3.c:152059:21: */
+func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { /* sqlite3.c:152107:21: */
var pInner uintptr
var i int32
if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 76))&0x4>>2) != 0) {
@@ -179225,14 +179275,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:152078:20: */
+func Xsqlite3WhereContinueLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:152126: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:152087:20: */
+func Xsqlite3WhereBreakLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:152135:20: */
return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak
}
@@ -179251,19 +179301,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:152108:20: */
+func Xsqlite3WhereOkOnePass(tls *libc.TLS, pWInfo uintptr, aiCur uintptr) int32 { /* sqlite3.c:152156: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:152124:20: */
+func Xsqlite3WhereUsesDeferredSeek(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:152172: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:152131:13: */
+func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* sqlite3.c:152179: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{})))
}
@@ -179273,7 +179323,7 @@ func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* sqlite3.c:1521
// 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:152143:12: */
+func whereOrInsert(tls *libc.TLS, pSet uintptr, prereq Bitmask, rRun LogEst, nOut LogEst) int32 { /* sqlite3.c:152191:12: */
var i U16
var p uintptr
i = (*WhereOrSet)(unsafe.Pointer(pSet)).Fn
@@ -179350,7 +179400,7 @@ __13:
// Return the bitmask for the given cursor number. Return 0 if
// iCursor is not in the set.
-func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmask { /* sqlite3.c:152180:24: */
+func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmask { /* sqlite3.c:152228:24: */
var i int32
if *(*int32)(unsafe.Pointer(pMaskSet + 8)) == iCursor {
@@ -179370,14 +179420,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:152204:13: */
+func createMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) { /* sqlite3.c:152252: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:152213:13: */
+func whereRightSubexprIsColumn(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:152261: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
@@ -179388,7 +179438,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:152226:18: */
+func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* sqlite3.c:152274: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
@@ -179492,7 +179542,7 @@ func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* sqlite3.c:152226: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:152328:34: */
+func whereScanInitIndexExpr(tls *libc.TLS, pScan uintptr) uintptr { /* sqlite3.c:152376:34: */
(*WhereScan)(unsafe.Pointer(pScan)).Fidxaff = Xsqlite3ExprAffinity(tls, (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr)
return whereScanNext(tls, pScan)
}
@@ -179514,7 +179564,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:152352:18: */
+func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColumn int32, opMask U32, pIdx uintptr) uintptr { /* sqlite3.c:152400:18: */
(*WhereScan)(unsafe.Pointer(pScan)).FpOrigWC = pWC
(*WhereScan)(unsafe.Pointer(pScan)).FpWC = pWC
(*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr = uintptr(0)
@@ -179569,7 +179619,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:152416:26: */
+func Xsqlite3WhereFindTerm(tls *libc.TLS, pWC uintptr, iCur int32, iColumn int32, notReady Bitmask, op U32, pIdx uintptr) uintptr { /* sqlite3.c:152464:26: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -179599,7 +179649,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:152450:12: */
+func findIndexCol(tls *libc.TLS, pParse uintptr, pList uintptr, iBase int32, pIdx uintptr, iCol int32) int32 { /* sqlite3.c:152498:12: */
var i int32
var zColl uintptr = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(iCol)*8))
@@ -179620,7 +179670,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:152480:12: */
+func indexColumnNotNull(tls *libc.TLS, pIdx uintptr, iCol int32) int32 { /* sqlite3.c:152528:12: */
var j int32
j = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2)))
@@ -179641,7 +179691,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:152503:12: */
+func isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC uintptr, pDistinct uintptr) int32 { /* sqlite3.c:152551:12: */
var pTab uintptr
var pIdx uintptr
var i int32
@@ -179711,7 +179761,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:152567:15: */
+func estLog(tls *libc.TLS, N LogEst) LogEst { /* sqlite3.c:152615:15: */
if int32(N) <= 10 {
return int16(0)
}
@@ -179728,7 +179778,7 @@ func estLog(tls *libc.TLS, N LogEst) LogEst { /* sqlite3.c:152567: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:152583:13: */
+func translateColumnToCopy(tls *libc.TLS, pParse uintptr, iStart int32, iTabCur int32, iRegister int32, iAutoidxCur int32) { /* sqlite3.c:152631:13: */
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var pOp uintptr = Xsqlite3VdbeGetOp(tls, v, iStart)
var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v)
@@ -179771,7 +179821,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:152667:12: */
+func termCanDriveIndex(tls *libc.TLS, pTerm uintptr, pSrc uintptr, notReady Bitmask) int32 { /* sqlite3.c:152715:12: */
var aff int8
if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor {
return 0
@@ -179805,7 +179855,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:152701:29: */
+func constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, pSrc uintptr, notReady Bitmask, pLevel uintptr) { /* sqlite3.c:152749:29: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -179891,7 +179941,7 @@ __4:
goto __6
}
Xsqlite3_log(tls, SQLITE_WARNING|int32(1)<<8,
- ts+23098, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName,
+ ts+23106, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName,
(*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTable)).FaCol+uintptr(iCol)*24)).FzCnName))
sentWarning = U8(1)
__6:
@@ -179972,7 +180022,7 @@ __13:
__14:
;
*(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) = pIdx
- (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 23124 /* "auto-index" */
+ (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 23132 /* "auto-index" */
(*Index)(unsafe.Pointer(pIdx)).FpTable = pTable
n = 0
idxCols = uint64(0)
@@ -180163,7 +180213,7 @@ end_auto_index_create:
// This routine may only be called if it has previously been determined that
// the loop would benefit from a Bloom filter, and the WHERE_BLOOMFILTER bit
// is set.
-func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) { /* sqlite3.c:152936:29: */
+func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) { /* sqlite3.c:152984: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
@@ -180239,7 +180289,12 @@ func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pL
break
}
for libc.PreIncInt32(&iLevel, 1) < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) {
+ var pTabItem uintptr
pLevel = pWInfo + 864 + uintptr(iLevel)*96
+ pTabItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112
+ if int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT != 0 {
+ continue
+ }
pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
if pLoop == uintptr(0) {
continue
@@ -180263,7 +180318,7 @@ func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pL
// Allocate and populate an sqlite3_index_info structure. It is the
// responsibility of the caller to eventually release the structure
// by passing the pointer returned by this function to freeIndexInfo().
-func allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable Bitmask, pSrc uintptr, pmNoOmit uintptr) uintptr { /* sqlite3.c:153046:27: */
+func allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable Bitmask, pSrc uintptr, pmNoOmit uintptr) uintptr { /* sqlite3.c:153097:27: */
var i int32
var j int32
var nTerm int32
@@ -180489,7 +180544,7 @@ __6:
// Free an sqlite3_index_info structure allocated by allocateIndexInfo()
// and possibly modified by xBestIndex methods.
-func freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) { /* sqlite3.c:153245:13: */
+func freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) { /* sqlite3.c:153296:13: */
var pHidden uintptr
var i int32
@@ -180516,7 +180571,7 @@ func freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) { /* sqlite3.c:1
// 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:153275:12: */
+func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 { /* sqlite3.c:153326:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -180554,7 +180609,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:153314:12: */
+func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, roundUp int32, aStat uintptr) int32 { /* sqlite3.c:153365: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
@@ -180693,7 +180748,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:153506:15: */
+func whereRangeAdjust(tls *libc.TLS, pTerm uintptr, nNew LogEst) LogEst { /* sqlite3.c:153557:15: */
var nRet LogEst = nNew
if pTerm != 0 {
if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FtruthProb) <= 0 {
@@ -180706,7 +180761,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:153523:21: */
+func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol int32) int8 { /* sqlite3.c:153574:21: */
if !(int32((*Index)(unsafe.Pointer(pIdx)).FzColAff) != 0) {
if Xsqlite3IndexAffinityStr(tls, db, pIdx) == uintptr(0) {
@@ -180750,7 +180805,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:153570:12: */
+func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr, pbDone uintptr) int32 { /* sqlite3.c:153621:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -180865,7 +180920,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:153682:12: */
+func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr) int32 { /* sqlite3.c:153733:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -181061,7 +181116,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:153863:12: */
+func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr uintptr, pnRow uintptr) int32 { /* sqlite3.c:153914:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -181117,7 +181172,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:153927:12: */
+func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintptr, pnRow uintptr) int32 { /* sqlite3.c:153978:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -181150,7 +181205,7 @@ func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintp
// Convert bulk memory into a valid WhereLoop that can be passed
// to whereLoopClear harmlessly.
-func whereLoopInit(tls *libc.TLS, p uintptr) { /* sqlite3.c:154074:13: */
+func whereLoopInit(tls *libc.TLS, p uintptr) { /* sqlite3.c:154125: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)))))
@@ -181158,7 +181213,7 @@ func whereLoopInit(tls *libc.TLS, p uintptr) { /* sqlite3.c:154074:13: */
}
// Clear the WhereLoop.u union. Leave WhereLoop.pLTerm intact.
-func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:154084:13: */
+func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:154135:13: */
if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE|WHERE_AUTO_INDEX) != 0 {
if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0) && U32(int32(*(*uint8)(unsafe.Pointer(p + 24 + 4))&0x1>>0)) != 0 {
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(p + 24 + 16 /* &.idxStr */)))
@@ -181173,7 +181228,7 @@ 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:154101:13: */
+func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:154152:13: */
if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+88 {
Xsqlite3DbFreeNN(tls, db, (*WhereLoop)(unsafe.Pointer(p)).FaLTerm)
}
@@ -181182,7 +181237,7 @@ func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:154101:
}
// 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:154110:12: */
+func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* sqlite3.c:154161:12: */
var paNew uintptr
if int32((*WhereLoop)(unsafe.Pointer(p)).FnLSlot) >= n {
return SQLITE_OK
@@ -181202,7 +181257,7 @@ 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:154126:12: */
+func whereLoopXfer(tls *libc.TLS, db uintptr, pTo uintptr, pFrom uintptr) int32 { /* sqlite3.c:154177:12: */
whereLoopClearUnion(tls, db, pTo)
if whereLoopResize(tls, db, pTo, int32((*WhereLoop)(unsafe.Pointer(pFrom)).FnLTerm)) != 0 {
libc.Xmemset(tls, pTo, 0, uint64(uintptr(0)+64))
@@ -181219,13 +181274,13 @@ 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:154145:13: */
+func whereLoopDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:154196:13: */
whereLoopClear(tls, db, p)
Xsqlite3DbFreeNN(tls, db, p)
}
// Free a WhereInfo structure
-func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* sqlite3.c:154153:13: */
+func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* sqlite3.c:154204:13: */
var i int32
for i = 0; i < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel); i++ {
@@ -181246,7 +181301,7 @@ func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* sqlite3.c:154
}
// Undo all Expr node modifications
-func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:154175:13: */
+func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:154226: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
@@ -181272,7 +181327,7 @@ func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:154175: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:154203:12: */
+func whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) int32 { /* sqlite3.c:154254: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) {
@@ -181316,7 +181371,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:154241:13: */
+func whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) { /* sqlite3.c:154292:13: */
if (*WhereLoop)(unsafe.Pointer(pTemplate)).FwsFlags&U32(WHERE_INDEXED) == U32(0) {
return
}
@@ -181375,7 +181430,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:154282:18: */
+func whereLoopFindLesser(tls *libc.TLS, ppPrev uintptr, pTemplate uintptr) uintptr { /* sqlite3.c:154333:18: */
var p uintptr
p = *(*uintptr)(unsafe.Pointer(ppPrev))
__1:
@@ -181464,7 +181519,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:154370:12: */
+func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 { /* sqlite3.c:154421:12: */
var ppPrev uintptr
var p uintptr
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
@@ -181571,7 +181626,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:154507:13: */
+func whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow LogEst) { /* sqlite3.c:154558:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -181674,7 +181729,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:154586:12: */
+func whereRangeVectorLen(tls *libc.TLS, pParse uintptr, iCur int32, pIdx uintptr, nEq int32, pTerm uintptr) int32 { /* sqlite3.c:154637:12: */
var nCmp int32 = Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft)
var i int32
@@ -181742,7 +181797,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:154660:12: */
+func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProbe uintptr, nInMul LogEst) int32 { /* sqlite3.c:154711:12: */
bp := tls.Alloc(116)
defer tls.Free(116)
@@ -182102,7 +182157,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:155060:12: */
+func indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr, iCursor int32) int32 { /* sqlite3.c:155111:12: */
var pOB uintptr
var aColExpr uintptr
var ii int32
@@ -182144,7 +182199,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:155094:12: */
+func whereUsablePartialIndex(tls *libc.TLS, iTab int32, isLeft int32, pWC uintptr, pWhere uintptr) int32 { /* sqlite3.c:155145:12: */
var i int32
var pTerm uintptr
var pParse uintptr = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse
@@ -182219,7 +182274,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:155158:12: */
+func whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask) int32 { /* sqlite3.c:155209:12: */
bp := tls.Alloc(158)
defer tls.Free(158)
@@ -182504,7 +182559,7 @@ __3:
}
// Return true if pTerm is a virtual table LIMIT or OFFSET term.
-func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* sqlite3.c:155416:12: */
+func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* sqlite3.c:155467:12: */
return libc.Bool32(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) >= SQLITE_INDEX_CONSTRAINT_LIMIT &&
int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) <= SQLITE_INDEX_CONSTRAINT_OFFSET)
@@ -182528,7 +182583,7 @@ func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* sqlite3.c:155416:12: *
//
// Output parameter *pbIn is set to true if the plan added to pBuilder
// uses one or more WO_IN terms, or false otherwise.
-func whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUsable Bitmask, mExclude U16, pIdxInfo uintptr, mNoOmit U16, pbIn uintptr, pbRetryLimit uintptr) int32 { /* sqlite3.c:155442: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:155493:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -182630,7 +182685,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+23135, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+23143, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return SQLITE_ERROR
}
@@ -182703,7 +182758,7 @@ __6:
if *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)) == uintptr(0) {
// The non-zero argvIdx values must be contiguous. Raise an
// error if they are not
- Xsqlite3ErrorMsg(tls, pParse, ts+23135, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+23143, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return SQLITE_ERROR
}
@@ -182752,7 +182807,7 @@ __6:
// 2. Else, if the column has an alternative collation, return that.
//
// 3. Otherwise, return "BINARY".
-func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintptr { /* sqlite3.c:155634:23: */
+func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintptr { /* sqlite3.c:155685:23: */
var pHidden uintptr = pIdxInfo + 1*96
var zRet uintptr = uintptr(0)
if iCons >= 0 && iCons < (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint {
@@ -182775,7 +182830,7 @@ func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintp
// Return true if constraint iCons is really an IN(...) constraint, or
// false otherwise. If iCons is an IN(...) constraint, set (if bHandle!=0)
// or clear (if bHandle==0) the flag to handle it using an iterator.
-func Xsqlite3_vtab_in(tls *libc.TLS, pIdxInfo uintptr, iCons int32, bHandle int32) int32 { /* sqlite3.c:155654:16: */
+func Xsqlite3_vtab_in(tls *libc.TLS, pIdxInfo uintptr, iCons int32, bHandle int32) int32 { /* sqlite3.c:155705:16: */
var pHidden uintptr = pIdxInfo + 1*96
var m U32 = func() uint32 {
if iCons <= 31 {
@@ -182798,7 +182853,7 @@ func Xsqlite3_vtab_in(tls *libc.TLS, pIdxInfo uintptr, iCons int32, bHandle int3
//
// If possible, set (*ppVal) to point to an object containing the value
// on the right-hand-side of constraint iCons.
-func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal uintptr) int32 { /* sqlite3.c:155674:16: */
+func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal uintptr) int32 { /* sqlite3.c:155725:16: */
var pH uintptr = pIdxInfo + 1*96
var pVal uintptr = uintptr(0)
var rc int32 = SQLITE_OK
@@ -182824,7 +182879,7 @@ func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal
}
// Return true if ORDER BY clause may be handled as DISTINCT.
-func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* sqlite3.c:155708:16: */
+func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* sqlite3.c:155758:16: */
var pHidden uintptr = pIdxInfo + 1*96
return (*HiddenIndexInfo)(unsafe.Pointer(pHidden)).FeDistinct
@@ -182853,7 +182908,7 @@ func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* sqlite3.
// 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:155741:12: */
+func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* sqlite3.c:155807:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -182989,7 +183044,7 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus
// Add WhereLoop entries to handle OR terms. This works for either
// btrees or virtual tables.
-func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* sqlite3.c:155872:12: */
+func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* sqlite3.c:155938:12: */
bp := tls.Alloc(712)
defer tls.Free(712)
@@ -183114,7 +183169,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:155998:12: */
+func whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:156064:12: */
var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo
var mPrereq Bitmask = uint64(0)
var mPrior Bitmask = uint64(0)
@@ -183166,7 +183221,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+23161, 0)
+ Xsqlite3_log(tls, SQLITE_WARNING, ts+23169, 0)
rc = SQLITE_OK
} else {
goto __3
@@ -183202,7 +183257,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:156076:11: */
+func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, pPath uintptr, wctrlFlags U16, nLoop U16, pLast uintptr, pRevMask uintptr) I8 { /* sqlite3.c:156142:11: */
var revSet U8 // True if rev is known
var rev U8 // Composite sort order
var revIdx U8 // Index sort order
@@ -183570,7 +183625,7 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
//
// SELECT * FROM t1 GROUP BY x,y ORDER BY x,y; -- IsSorted()==1
// SELECT * FROM t1 GROUP BY y,x ORDER BY y,x; -- IsSorted()==0
-func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:156421:20: */
+func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:156487:20: */
return int32(*(*uint8)(unsafe.Pointer(pWInfo + 76)) & 0x8 >> 3)
}
@@ -183578,7 +183633,7 @@ func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* sqlite3.c:1
// 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:156444:15: */
+func whereSortingCost(tls *libc.TLS, pWInfo uintptr, nRow LogEst, nOrderBy int32, nSorted int32) LogEst { /* sqlite3.c:156510:15: */
// TUNING: Estimated cost of a full external sort, where N is
// the number of rows to sort is:
//
@@ -183625,7 +183680,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:156497:12: */
+func wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst LogEst) int32 { /* sqlite3.c:156563:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -183940,7 +183995,7 @@ __3:
}
if nFrom == 0 {
- Xsqlite3ErrorMsg(tls, pParse, ts+23196, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+23204, 0)
Xsqlite3DbFreeNN(tls, db, pSpace)
return SQLITE_ERROR
}
@@ -184032,7 +184087,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:156889:12: */
+func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:156955:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -184139,7 +184194,7 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* sqlite3.c:156889:
}
// Helper function for exprIsDeterministic().
-func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:156980:12: */
+func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:157046: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
@@ -184150,7 +184205,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:156993:12: */
+func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:157059:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -184196,7 +184251,7 @@ func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:156993:1
// 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: */
+func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask { /* sqlite3.c:157120:32: */
var i int32
var tabUsed Bitmask
@@ -184271,7 +184326,7 @@ func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask
// appropriate, and if so sets the WHERE_BLOOMFILTER flag on the
// WhereLoop. The implementation of the Bloom filter comes further
// down where the code for each WhereLoop is generated.
-func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:157133:29: */
+func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:157199:29: */
var i int32
var nSearch LogEst
@@ -184383,7 +184438,7 @@ func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* sqlite3
// the first cursor in an array of cursors for all indices. iIdxCur should
// be used to compute the appropriate cursor depending on which index is
// used.
-func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pResultSet uintptr, pLimit uintptr, wctrlFlags U16, iAuxArg int32) uintptr { /* sqlite3.c:157257:26: */
+func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pResultSet uintptr, pLimit uintptr, wctrlFlags U16, iAuxArg int32) uintptr { /* sqlite3.c:157323:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -184447,7 +184502,7 @@ __1:
if !((*SrcList)(unsafe.Pointer(pTabList)).FnSrc > int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+23214, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))))
+ Xsqlite3ErrorMsg(tls, pParse, ts+23222, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))))
return uintptr(0)
__2:
;
@@ -184527,7 +184582,7 @@ __6:
(*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNIQUE)
__7:
;
- Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+23242, 0)
+ Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+23250, 0)
goto __5
__4:
// Assign a bit from the bitmask to every term in the FROM clause.
@@ -185068,7 +185123,7 @@ __78:
// Generate the end of the WHERE loop. See comments on
// sqlite3WhereBegin() for additional information.
-func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:157823:21: */
+func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* sqlite3.c:157889:21: */
var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse
var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe
var i int32
@@ -185285,6 +185340,8 @@ __4:
var pPk uintptr = Xsqlite3PrimaryKeyIndex(tls, pTab)
x = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk)).FaiColumn + uintptr(x)*2)))
+ } else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Offset {
+ // Do not need to translate the column number
} else {
x = int32(Xsqlite3StorageColumnToTable(tls, pTab, int16(x)))
@@ -185466,7 +185523,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:158261:13: */
+func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158331:13: */
var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0))))
if p != 0 {
*(*I64)(unsafe.Pointer(p))++
@@ -185475,7 +185532,7 @@ func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
}
-func row_numberValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158271:13: */
+func row_numberValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158341:13: */
var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0))))
Xsqlite3_result_int64(tls, pCtx, func() int64 {
if p != 0 {
@@ -185491,13 +185548,13 @@ type CallCount = struct {
FnValue I64
FnStep I64
FnTotal I64
-} /* sqlite3.c:158280:1 */
+} /* sqlite3.c:158350: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:158292:13: */
+func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158362:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -185507,7 +185564,7 @@ func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
}
-func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158303:13: */
+func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158373:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -185525,9 +185582,9 @@ func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158303:13:
type NthValueCtx = struct {
FnStep I64
FpValue uintptr
-} /* sqlite3.c:158320:1 */
+} /* sqlite3.c:158390:1 */
-func nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158324:13: */
+func nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158394:13: */
var p uintptr
var fVal float64
var iVal I64
@@ -185590,10 +185647,10 @@ __1:
error_out:
Xsqlite3_result_error(tls,
- pCtx, ts+23260, -1)
+ pCtx, ts+23268, -1)
}
-func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158365:13: */
+func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158435:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 {
@@ -185603,7 +185660,7 @@ func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158365:13
}
}
-func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158377:13: */
+func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158447:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{})))
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue == uintptr(0) {
@@ -185616,7 +185673,7 @@ func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
}
-func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158393:13: */
+func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158463:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{})))
if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 {
@@ -185630,7 +185687,7 @@ func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158393:
// 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:158411:13: */
+func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158481:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -185643,7 +185700,7 @@ func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* s
_ = apArg
}
-func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158427:13: */
+func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158497:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -185656,7 +185713,7 @@ func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158427: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:158442:13: */
+func percent_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158512:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -185666,7 +185723,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:158455:13: */
+func percent_rankInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158525:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -185674,7 +185731,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:158466:13: */
+func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158536:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{})))
if p != 0 {
@@ -185692,7 +185749,7 @@ func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158466: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:158487:13: */
+func cume_distStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158557:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -185702,7 +185759,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:158500:13: */
+func cume_distInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158570:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -185710,7 +185767,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:158511:13: */
+func cume_distValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158581:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 {
@@ -185724,13 +185781,13 @@ type NtileCtx = struct {
FnTotal I64
FnParam I64
FiRow I64
-} /* sqlite3.c:158524:1 */
+} /* sqlite3.c:158594: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:158536:13: */
+func ntileStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158606:13: */
var p uintptr
_ = nArg
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{})))
@@ -185739,14 +185796,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+23316, -1)
+ pCtx, ts+23324, -1)
}
}
(*NtileCtx)(unsafe.Pointer(p)).FnTotal++
}
}
-func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158556:13: */
+func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158626:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -185754,7 +185811,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:158567:13: */
+func ntileValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158637:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{})))
if p != 0 && (*NtileCtx)(unsafe.Pointer(p)).FnParam > int64(0) {
@@ -185780,10 +185837,10 @@ type LastValueCtx = struct {
FpVal uintptr
FnVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:158594:1 */
+} /* sqlite3.c:158664:1 */
// Implementation of last_value().
-func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158602:13: */
+func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158672:13: */
var p uintptr
_ = nArg
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{})))
@@ -185798,7 +185855,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:158620:13: */
+func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:158690:13: */
var p uintptr
_ = nArg
_ = apArg
@@ -185812,7 +185869,7 @@ func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) {
}
}
-func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158637:13: */
+func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158707:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, 0)
if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 {
@@ -185820,7 +185877,7 @@ func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158637:13:
}
}
-func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158644:13: */
+func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158714:13: */
var p uintptr
p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{})))
if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 {
@@ -185836,17 +185893,17 @@ func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:158644:1
// comparison of the zName pointer. Example:
//
// if( pFuncDef->zName==row_valueName ){ ... }
-var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 23361)) /* sqlite3.c:158662:19 */
-var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 23372)) /* sqlite3.c:158663:19 */
-var rankName = *(*[5]int8)(unsafe.Pointer(ts + 23383)) /* sqlite3.c:158664:19 */
-var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 23388)) /* sqlite3.c:158665:19 */
-var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 23401)) /* sqlite3.c:158666:19 */
-var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 23411)) /* sqlite3.c:158667:19 */
-var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 23417)) /* sqlite3.c:158668:19 */
-var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 23428)) /* sqlite3.c:158669:19 */
-var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 23438)) /* sqlite3.c:158670:19 */
-var leadName = *(*[5]int8)(unsafe.Pointer(ts + 23450)) /* sqlite3.c:158671:19 */
-var lagName = *(*[4]int8)(unsafe.Pointer(ts + 23455 /* "lag" */)) /* sqlite3.c:158672:19 */
+var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 23369)) /* sqlite3.c:158732:19 */
+var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 23380)) /* sqlite3.c:158733:19 */
+var rankName = *(*[5]int8)(unsafe.Pointer(ts + 23391)) /* sqlite3.c:158734:19 */
+var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 23396)) /* sqlite3.c:158735:19 */
+var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 23409)) /* sqlite3.c:158736:19 */
+var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 23419)) /* sqlite3.c:158737:19 */
+var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 23425)) /* sqlite3.c:158738:19 */
+var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 23436)) /* sqlite3.c:158739:19 */
+var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 23446)) /* sqlite3.c:158740:19 */
+var leadName = *(*[5]int8)(unsafe.Pointer(ts + 23458)) /* sqlite3.c:158741:19 */
+var lagName = *(*[4]int8)(unsafe.Pointer(ts + 23463 /* "lag" */)) /* sqlite3.c:158742:19 */
// No-op implementations of xStep() and xFinalize(). Used as place-holders
// for built-in window functions that never call those interfaces.
@@ -185855,7 +185912,7 @@ var lagName = *(*[4]int8)(unsafe.Pointer(ts + 23455 /* "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:158683:13: */ //NO_TEST
+func noopStepFunc(tls *libc.TLS, p uintptr, n int32, a uintptr) { /* sqlite3.c:158753:13: */ //NO_TEST
_ = p //NO_TEST
_ = n //NO_TEST
_ = a //NO_TEST
@@ -185863,7 +185920,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:158693:13: */
+func noopValueFunc(tls *libc.TLS, p uintptr) { /* sqlite3.c:158763:13: */
_ = p /*no-op*/
}
@@ -185878,7 +185935,7 @@ func noopValueFunc(tls *libc.TLS, p uintptr) { /* sqlite3.c:158693:13: */
// xInverse.
// Register those built-in window functions that are not also aggregates.
-func Xsqlite3WindowFunctions(tls *libc.TLS) { /* sqlite3.c:158724:21: */
+func Xsqlite3WindowFunctions(tls *libc.TLS) { /* sqlite3.c:158794:21: */
Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aWindowFuncs)), int32(uint64(unsafe.Sizeof(aWindowFuncs))/uint64(unsafe.Sizeof(FuncDef{}))))
}
@@ -185897,9 +185954,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:158725: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:158795:18 */
-func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uintptr { /* sqlite3.c:158745:15: */
+func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uintptr { /* sqlite3.c:158815:15: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -185910,7 +185967,7 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin
}
}
if p == uintptr(0) {
- Xsqlite3ErrorMsg(tls, pParse, ts+23459, libc.VaList(bp, zName))
+ Xsqlite3ErrorMsg(tls, pParse, ts+23467, libc.VaList(bp, zName))
}
return p
}
@@ -185930,7 +185987,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:158773:21: */
+func Xsqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uintptr, pFunc uintptr) { /* sqlite3.c:158843:21: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -185954,12 +186011,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+23478, 0)
+ ts+23486, 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+23549, 0)
+ ts+23557, 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},
@@ -185998,16 +186055,16 @@ type WindowUpdate = struct {
FeStart int32
FeEnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:158808:7 */
+} /* sqlite3.c:158878:7 */
// Context object passed through sqlite3WalkExprList() to
// selectWindowRewriteExprCb() by selectWindowRewriteEList().
-type WindowRewrite = WindowRewrite1 /* sqlite3.c:158848:30 */
+type WindowRewrite = WindowRewrite1 /* sqlite3.c:158918: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:158862:12: */
+func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:158932:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse
@@ -186106,7 +186163,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:158944:12: */
+func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* sqlite3.c:159014:12: */
var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40))
var pSave uintptr = (*WindowRewrite1)(unsafe.Pointer(p)).FpSubSelect
if pSave == pSelect {
@@ -186130,7 +186187,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:158971:13: */
+func selectWindowRewriteEList(tls *libc.TLS, pParse uintptr, pWin uintptr, pSrc uintptr, pEList uintptr, pTab uintptr, ppSub uintptr) { /* sqlite3.c:159041:13: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -186162,7 +186219,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:159005:17: */
+func exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend uintptr, bIntToNull int32) uintptr { /* sqlite3.c:159075:17: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -186208,7 +186265,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:159047:12: */
+func sqlite3WindowExtraAggFuncDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:159117: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++
@@ -186216,14 +186273,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:159056:12: */
+func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* sqlite3.c:159126: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+23612, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ ts+23620, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
}
return WRC_Continue
}
@@ -186233,12 +186290,15 @@ func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr
// rewrites the SELECT statement so that window function xStep functions
// are invoked in the correct order as described under "SELECT REWRITING"
// at the top of this file.
-func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:159072:20: */
+func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* sqlite3.c:159142:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
var rc int32 = SQLITE_OK
- if (*Select)(unsafe.Pointer(p)).FpWin != 0 && (*Select)(unsafe.Pointer(p)).FpPrior == uintptr(0) && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_WinRewrite) == U32(0) {
+ if (*Select)(unsafe.Pointer(p)).FpWin != 0 &&
+ (*Select)(unsafe.Pointer(p)).FpPrior == uintptr(0) &&
+ (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_WinRewrite) == U32(0) &&
+ !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) {
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
var pSub uintptr = uintptr(0) // The subquery
@@ -186414,7 +186474,7 @@ func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /*
// Unlink the Window object from the Select to which it is attached,
// if it is attached.
-func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* sqlite3.c:159231:21: */
+func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* sqlite3.c:159306: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 {
@@ -186425,7 +186485,7 @@ func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* sqlite3.c:159
}
// Free the Window object passed as the second argument.
-func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:159242:21: */
+func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:159317:21: */
if p != 0 {
Xsqlite3WindowUnlinkFromSelect(tls, p)
Xsqlite3ExprDelete(tls, db, (*Window)(unsafe.Pointer(p)).FpFilter)
@@ -186440,7 +186500,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:159259:21: */
+func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:159334:21: */
for p != 0 {
var pNext uintptr = (*Window)(unsafe.Pointer(p)).FpNextWin
Xsqlite3WindowDelete(tls, db, p)
@@ -186453,7 +186513,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:159274:13: */
+func sqlite3WindowOffsetExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* sqlite3.c:159349:13: */
if 0 == Xsqlite3ExprIsConstant(tls, pExpr) {
if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME {
Xsqlite3RenameExprUnmap(tls, pParse, pExpr)
@@ -186465,7 +186525,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:159286:23: */
+func Xsqlite3WindowAlloc(tls *libc.TLS, pParse uintptr, eType int32, eStart int32, pStart uintptr, eEnd int32, pEnd uintptr, eExclude U8) uintptr { /* sqlite3.c:159361:23: */
var pWin uintptr
var bImplicitFrame int32
pWin = uintptr(0)
@@ -186498,7 +186558,7 @@ __1:
eStart == TK_FOLLOWING && (eEnd == TK_PRECEDING || eEnd == TK_CURRENT)) {
goto __2
}
- Xsqlite3ErrorMsg(tls, pParse, ts+23638, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+23646, 0)
goto windowAllocErr
__2:
;
@@ -186534,7 +186594,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:159358:23: */
+func Xsqlite3WindowAssemble(tls *libc.TLS, pParse uintptr, pWin uintptr, pPartition uintptr, pOrderBy uintptr, pBase uintptr) uintptr { /* sqlite3.c:159433:23: */
if pWin != 0 {
(*Window)(unsafe.Pointer(pWin)).FpPartition = pPartition
(*Window)(unsafe.Pointer(pWin)).FpOrderBy = pOrderBy
@@ -186553,7 +186613,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:159385:21: */
+func Xsqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uintptr) { /* sqlite3.c:159460:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -186564,15 +186624,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 + 23670 /* "PARTITION clause" */
+ zErr = ts + 23678 /* "PARTITION clause" */
} else if (*Window)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*Window)(unsafe.Pointer(pWin)).FpOrderBy != 0 {
- zErr = ts + 23687 /* "ORDER BY clause" */
+ zErr = ts + 23695 /* "ORDER BY clause" */
} else if int32((*Window)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 {
- zErr = ts + 23703 /* "frame specificat..." */
+ zErr = ts + 23711 /* "frame specificat..." */
}
if zErr != 0 {
Xsqlite3ErrorMsg(tls, pParse,
- ts+23723, libc.VaList(bp, zErr, (*Window)(unsafe.Pointer(pWin)).FzBase))
+ ts+23731, 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 {
@@ -186587,7 +186647,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:159419:21: */
+func Xsqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr) { /* sqlite3.c:159494:21: */
if p != 0 {
*(*uintptr)(unsafe.Pointer(p + 64)) = pWin
@@ -186595,7 +186655,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+23756, 0)
+ ts+23764, 0)
}
} else {
Xsqlite3WindowDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWin)
@@ -186606,7 +186666,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:159442:21: */
+func Xsqlite3WindowLink(tls *libc.TLS, pSel uintptr, pWin uintptr) { /* sqlite3.c:159517: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
@@ -186626,7 +186686,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:159464:20: */
+func Xsqlite3WindowCompare(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr, bFilter int32) int32 { /* sqlite3.c:159539:20: */
var res int32
if p1 == uintptr(0) || p2 == uintptr(0) {
return 1
@@ -186666,7 +186726,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:159498:21: */
+func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* sqlite3.c:159573: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
@@ -186742,7 +186802,7 @@ func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /*
// evaluated and the result left in register reg. This function generates VM
// code to check that the value is a non-negative integer and throws an
// exception if it is not.
-func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /* sqlite3.c:159585:13: */
+func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /* sqlite3.c:159660:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var regZero int32 = Xsqlite3GetTempReg(tls, pParse)
@@ -186771,17 +186831,17 @@ func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /
}
var azErr = [5]uintptr{
- ts + 23803,
- ts + 23856,
- ts + 23260,
- ts + 23907,
- ts + 23959,
-} /* sqlite3.c:159586:21 */
-var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* sqlite3.c:159593:14 */
+ ts + 23811,
+ ts + 23864,
+ ts + 23268,
+ ts + 23915,
+ ts + 23967,
+} /* sqlite3.c:159661:21 */
+var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* sqlite3.c:159668: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:159632:12: */
+func windowArgCount(tls *libc.TLS, pWin uintptr) int32 { /* sqlite3.c:159707:12: */
var pList uintptr
pList = *(*uintptr)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpOwner + 32))
@@ -186806,19 +186866,19 @@ type WindowCodeArg1 = struct {
Fcurrent WindowCsrAndReg
Fend WindowCsrAndReg
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:159639:9 */
+} /* sqlite3.c:159714:9 */
-type WindowCodeArg = WindowCodeArg1 /* sqlite3.c:159639:30 */
+type WindowCodeArg = WindowCodeArg1 /* sqlite3.c:159714:30 */
type WindowCsrAndReg1 = struct {
Fcsr int32
Freg int32
-} /* sqlite3.c:159639:9 */
+} /* sqlite3.c:159714:9 */
-type WindowCsrAndReg = WindowCsrAndReg1 /* sqlite3.c:159640:32 */
+type WindowCsrAndReg = WindowCsrAndReg1 /* sqlite3.c:159715: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:159724:13: */
+func windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) { /* sqlite3.c:159799:13: */
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var pOrderBy uintptr = (*Window)(unsafe.Pointer(pMWin)).FpOrderBy
if pOrderBy != 0 {
@@ -186854,7 +186914,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:159761:13: */
+func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse int32, reg int32) { /* sqlite3.c:159836:13: */
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var pWin uintptr
@@ -186961,7 +187021,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:159878:13: */
+func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* sqlite3.c:159953:13: */
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
@@ -186997,7 +187057,7 @@ func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* sqlite3.c:159878:
// 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:159917:13: */
+func windowFullScan(tls *libc.TLS, p uintptr) { /* sqlite3.c:159992:13: */
var pWin uintptr
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
@@ -187104,7 +187164,7 @@ func windowFullScan(tls *libc.TLS, p uintptr) { /* sqlite3.c:159917:13: */
// first_value()
// lag()
// lead()
-func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* sqlite3.c:160023:13: */
+func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* sqlite3.c:160098:13: */
var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin
var v uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpVdbe
@@ -187187,7 +187247,7 @@ func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* sqlite3.c:160023: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:160100:12: */
+func windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) int32 { /* sqlite3.c:160175:12: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
var regArg int32
var nArg int32 = 0
@@ -187222,7 +187282,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:160132:12: */
+func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* sqlite3.c:160207:12: */
var pWin uintptr
if (*Window)(unsafe.Pointer(pMWin)).FregStartRowid != 0 {
return 1
@@ -187247,7 +187307,7 @@ func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* sqlite3.c:160132:
// 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:160158:13: */
+func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int32, regOld int32, addr int32) { /* sqlite3.c:160233:13: */
var v uintptr = Xsqlite3GetVdbe(tls, pParse)
if pOrderBy != 0 {
var nVal int32 = (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr
@@ -187284,7 +187344,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:160204:13: */
+func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal int32, csr2 int32, lbl int32) { /* sqlite3.c:160279: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
@@ -187407,7 +187467,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:160337:12: */
+func windowCodeOp(tls *libc.TLS, p uintptr, op int32, regCountdown int32, jumpOnEof int32) int32 { /* sqlite3.c:160412:12: */
var csr int32
var reg int32
var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse
@@ -187555,7 +187615,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:160486:23: */
+func Xsqlite3WindowDup(tls *libc.TLS, db uintptr, pOwner uintptr, p uintptr) uintptr { /* sqlite3.c:160561:23: */
var pNew uintptr = uintptr(0)
if p != 0 {
pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Window{})))
@@ -187586,7 +187646,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:160519:23: */
+func Xsqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* sqlite3.c:160594:23: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -187611,7 +187671,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:160541:12: */
+func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* sqlite3.c:160616:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -187959,7 +188019,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:160888:21: */
+func Xsqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uintptr, regGosub int32, addrGosub int32) { /* sqlite3.c:160963:21: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -188356,17 +188416,17 @@ type TrigEvent = struct {
Fa int32
F__ccgo_pad1 [4]byte
Fb uintptr
-} /* sqlite3.c:161288:1 */
+} /* sqlite3.c:161363:1 */
type FrameBound = struct {
FeType int32
F__ccgo_pad1 [4]byte
FpExpr uintptr
-} /* sqlite3.c:161290:1 */
+} /* sqlite3.c:161365:1 */
// Disable lookaside memory allocation for objects that might be
// shared across database connections.
-func disableLookaside(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:161296:13: */
+func disableLookaside(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:161371:13: */
var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb
(*Parse)(unsafe.Pointer(pParse)).FdisableLookaside++
(*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++
@@ -188376,7 +188436,7 @@ func disableLookaside(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:161296: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:161329:15: */
+func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:161404:15: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -188395,19 +188455,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+24009,
+ Xsqlite3ErrorMsg(tls, pParse, ts+24017,
libc.VaList(bp, func() uintptr {
if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != uintptr(0) {
- return ts + 21076 /* "ORDER BY" */
+ return ts + 21084 /* "ORDER BY" */
}
- return ts + 24051 /* "LIMIT" */
+ return ts + 24059 /* "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+24057, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+24065, 0)
}
}
@@ -188415,7 +188475,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:161360:17: */
+func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith uintptr) uintptr { /* sqlite3.c:161435:17: */
if pSelect != 0 {
(*Select)(unsafe.Pointer(pSelect)).FpWith = pWith
parserDoubleLinkSelect(tls, pParse, pSelect)
@@ -188427,7 +188487,7 @@ func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith ui
}
// Construct a new Expr object from a single token
-func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* sqlite3.c:161372:15: */
+func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* sqlite3.c:161447:15: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*Token)(unsafe.Pointer(bp)) = t
@@ -188465,7 +188525,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:161408:15: */
+func binaryToUnaryIfNull(tls *libc.TLS, pParse uintptr, pY uintptr, pA uintptr, op int32) { /* sqlite3.c:161483: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)
@@ -188479,14 +188539,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:161422:19: */
+func parserAddExprIdListTerm(tls *libc.TLS, pParse uintptr, pPrior uintptr, pIdToken uintptr, hasCollate int32, sortOrder int32) uintptr { /* sqlite3.c:161497: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+24091,
+ Xsqlite3ErrorMsg(tls, pParse, ts+24099,
libc.VaList(bp, (*Token)(unsafe.Pointer(pIdToken)).Fn, (*Token)(unsafe.Pointer(pIdToken)).Fz))
}
Xsqlite3ExprListSetName(tls, pParse, p, pIdToken, 1)
@@ -188554,7 +188614,7 @@ type YYMINORTYPE = struct {
F__ccgo_pad1 [0]uint64
Fyyinit int32
F__ccgo_pad2 [12]byte
-} /* sqlite3.c:161714:3 */
+} /* sqlite3.c:161789:3 */
//************ End control #defines ******************************************
// Define the yytestcase() macro to be a no-op if is not already defined
@@ -188823,7 +188883,7 @@ var yy_action = [2070]uint16{
/* 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 */
+} /* sqlite3.c:161883: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),
@@ -189051,7 +189111,7 @@ var yy_lookahead = [2255]uint16{
/* 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 */
+} /* sqlite3.c:162092: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),
@@ -189111,7 +189171,7 @@ var yy_shift_ofst = [574]uint16{
/* 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 */
+} /* sqlite3.c:162323: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),
@@ -189154,7 +189214,7 @@ var yy_reduce_ofst = [409]int16{
/* 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 */
+} /* sqlite3.c:162386: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),
@@ -189214,7 +189274,7 @@ var yy_default = [574]uint16{
/* 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 */
+} /* sqlite3.c:162429:27 */
//********* End of lemon-generated parsing tables ****************************
// The next table maps tokens (terminal symbols) into fallback tokens.
@@ -189416,7 +189476,7 @@ var yyFallback = [185]uint16{
uint16(0), // ERROR => nothing
uint16(0), // SPACE => nothing
uint16(0), // ILLEGAL => nothing
-} /* sqlite3.c:162431:25 */
+} /* sqlite3.c:162506:25 */
// The following structure represents a single element of the
// parser's stack. Information stored includes:
@@ -189438,9 +189498,9 @@ type yyStackEntry = struct {
Fmajor uint16
F__ccgo_pad1 [4]byte
Fminor YYMINORTYPE
-} /* sqlite3.c:162636:1 */
+} /* sqlite3.c:162711:1 */
-type YyStackEntry = yyStackEntry /* sqlite3.c:162643:29 */
+type YyStackEntry = yyStackEntry /* sqlite3.c:162718:29 */
// The state of the parser is completely contained in an instance of
// the following structure
@@ -189449,9 +189509,9 @@ type yyParser = struct {
FpParse uintptr
Fyystack [100]YyStackEntry
FyystackEnd uintptr
-} /* sqlite3.c:162647:1 */
+} /* sqlite3.c:162722:1 */
-type YyParser = yyParser /* sqlite3.c:162666:25 */
+type YyParser = yyParser /* sqlite3.c:162741:25 */
// #include <assert.h>
@@ -189461,7 +189521,7 @@ type YyParser = yyParser /* sqlite3.c:162666:25 */
// grammar.
// Initialize a new parser that has already been allocated.
-func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { /* sqlite3.c:163481:21: */
+func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { /* sqlite3.c:163556:21: */
var yypParser uintptr = yypRawParser
(*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
(*YyParser)(unsafe.Pointer(yypParser)).Fyytos = yypParser + 16 /* &.yystack */
@@ -189476,7 +189536,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:163539:13: */
+func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor uintptr) { /* sqlite3.c:163614:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
switch int32(yymajor) {
@@ -189635,7 +189695,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:163664:13: */
+func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* sqlite3.c:163739:13: */
var yytos uintptr
yytos = libc.PostDecUintptr(&(*YyParser)(unsafe.Pointer(pParser)).Fyytos, 24)
@@ -189643,7 +189703,7 @@ func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* sqlite3.c:163664:1
}
// Clear all secondary memory allocations from the parser
-func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:163682:21: */
+func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:163757:21: */
var pParser uintptr = p
for (*YyParser)(unsafe.Pointer(pParser)).Fyytos > pParser+16 {
yy_pop_parser_stack(tls, pParser)
@@ -189666,7 +189726,7 @@ func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:163682: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:163762:21: */
+func yy_find_shift_action(tls *libc.TLS, iLookAhead uint16, stateno uint16) uint16 { /* sqlite3.c:163837:21: */
var i int32
if int32(stateno) > YY_MAX_SHIFT {
@@ -189706,7 +189766,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:163827:21: */
+func yy_find_reduce_action(tls *libc.TLS, stateno uint16, iLookAhead uint16) uint16 { /* sqlite3.c:163902:21: */
var i int32
i = int32(yy_reduce_ofst[stateno])
@@ -189717,7 +189777,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:163856:13: */
+func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:163931:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
for (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > yypParser+16 {
@@ -189727,7 +189787,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:163856:13:
// stack every overflows
//******* Begin %stack_overflow code *****************************************
- Xsqlite3ErrorMsg(tls, pParse, ts+24129, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+24137, 0)
//******* End %stack_overflow code *******************************************
(*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
@@ -189736,7 +189796,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:163856: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:163899:13: */
+func yy_shift(tls *libc.TLS, yypParser uintptr, yyNewState uint16, yyMajor uint16, yyMinor Token) { /* sqlite3.c:163974:13: */
var yytos uintptr
(*YyParser)(unsafe.Pointer(yypParser)).Fyytos += 24
if (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > (*YyParser)(unsafe.Pointer(yypParser)).FyystackEnd {
@@ -190159,7 +190219,7 @@ var yyRuleInfoLhs = [402]uint16{
uint16(303), // (399) anylist ::= anylist LP anylist RP
uint16(303), // (400) anylist ::= anylist ANY
uint16(266), // (401) with ::=
-} /* sqlite3.c:163940:25 */
+} /* sqlite3.c:164015:25 */
// For rule J, yyRuleInfoNRhs[J] contains the negative of the number
// of symbols on the right-hand side of that rule.
@@ -190566,7 +190626,7 @@ var yyRuleInfoNRhs = [402]int8{
int8(-4), // (399) anylist ::= anylist LP anylist RP
int8(-2), // (400) anylist ::= anylist ANY
int8(0), // (401) with ::=
-} /* sqlite3.c:164347:26 */
+} /* sqlite3.c:164422:26 */
// Forward Declaration
@@ -190578,7 +190638,7 @@ var yyRuleInfoNRhs = [402]int8{
// if the lookahead token has already been consumed. As this procedure is
// only called from one place, optimizing compilers will in-line it, which
// means that the extra parameters have no performance impact.
-func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead int32, yyLookaheadToken Token, pParse uintptr) uint16 { /* sqlite3.c:164764:21: */
+func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead int32, yyLookaheadToken Token, pParse uintptr) uint16 { /* sqlite3.c:164839:21: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -190723,21 +190783,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+17524, 5) == 0 {
+ if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(5) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+17532, 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+24151, libc.VaList(bp, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz))
+ Xsqlite3ErrorMsg(tls, pParse, ts+24159, 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+17437, 6) == 0 {
+ if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+17445, 6) == 0 {
*(*U32)(unsafe.Pointer(bp + 40)) = U32(TF_Strict)
} else {
*(*U32)(unsafe.Pointer(bp + 40)) = U32(0)
- Xsqlite3ErrorMsg(tls, pParse, ts+24151, libc.VaList(bp+16, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz))
+ Xsqlite3ErrorMsg(tls, pParse, ts+24159, 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))
@@ -191473,7 +191533,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+24178)
+ Xsqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), ts+24186)
*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendList(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))
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))
}
@@ -191624,7 +191684,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+24187, libc.VaList(bp+32, bp+112))
+ Xsqlite3ErrorMsg(tls, pParse, ts+24195, 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))
@@ -192119,21 +192179,21 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in
*(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8))
Xsqlite3ErrorMsg(tls, pParse,
- ts+24211, 0)
+ ts+24219, 0)
}
break
case uint32(269): /* tridxby ::= INDEXED BY nm */
{
Xsqlite3ErrorMsg(tls, pParse,
- ts+24306, 0)
+ ts+24314, 0)
}
break
case uint32(270): /* tridxby ::= NOT INDEXED */
{
Xsqlite3ErrorMsg(tls, pParse,
- ts+24390, 0)
+ ts+24398, 0)
}
break
case uint32(271): /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
@@ -192573,7 +192633,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:166320:13: */
+func yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, yyminor Token) { /* sqlite3.c:166395:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
*(*Token)(unsafe.Pointer(bp + 8)) = yyminor
@@ -192583,9 +192643,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+24187, libc.VaList(bp, bp+8))
+ Xsqlite3ErrorMsg(tls, pParse, ts+24195, libc.VaList(bp, bp+8))
} else {
- Xsqlite3ErrorMsg(tls, pParse, ts+24475, 0)
+ Xsqlite3ErrorMsg(tls, pParse, ts+24483, 0)
}
//*********** End %syntax_error code *****************************************
@@ -192593,7 +192653,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:166344:13: */
+func yy_accept(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:166419:13: */
var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse
@@ -192623,7 +192683,7 @@ func yy_accept(tls *libc.TLS, yypParser uintptr) { /* sqlite3.c:166344:13: */
//
// Outputs:
// None.
-func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { /* sqlite3.c:166385:21: */
+func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { /* sqlite3.c:166460:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -192677,7 +192737,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:166602:20: */
+func Xsqlite3ParserFallback(tls *libc.TLS, iToken int32) int32 { /* sqlite3.c:166677:20: */
return int32(yyFallback[iToken])
}
@@ -192728,7 +192788,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:166674:28 */
+} /* sqlite3.c:166749:28 */
// The charMap() macro maps alphabetic characters (only) into their
// lower-case ASCII equivalent. On ASCII machines, this is just
@@ -192814,7 +192874,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:166790:19 */
+} /* sqlite3.c:166865: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),
@@ -192827,7 +192887,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:166830:28 */
+} /* sqlite3.c:166905: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.
@@ -192844,7 +192904,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:166845:28 */
+} /* sqlite3.c:166920: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),
@@ -192859,7 +192919,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:166860:28 */
+} /* sqlite3.c:166935:28 */
// aKWOffset[i] is the index into zKWText[] of the start of
// the text for the i-th keyword.
var aKWOffset = [147]uint16{
@@ -192875,7 +192935,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:166876:33 */
+} /* sqlite3.c:166951: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),
@@ -192908,7 +192968,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:166891:28 */
+} /* sqlite3.c:166966:28 */
// Hash table decoded:
// 0: INSERT
@@ -193041,7 +193101,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:167055:12: */
+func keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) int32 { /* sqlite3.c:167130:12: */
var i int32
var j int32
var zKW uintptr
@@ -193219,7 +193279,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:167229:20: */
+func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3.c:167304:20: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -193228,7 +193288,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:167235:16: */
+func Xsqlite3_keyword_name(tls *libc.TLS, i int32, pzName uintptr, pnName uintptr) int32 { /* sqlite3.c:167310:16: */
if i < 0 || i >= SQLITE_N_KEYWORD {
return SQLITE_ERROR
}
@@ -193237,11 +193297,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:167241:16: */
+func Xsqlite3_keyword_count(tls *libc.TLS) int32 { /* sqlite3.c:167316:16: */
return SQLITE_N_KEYWORD
}
-func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /* sqlite3.c:167242:16: */
+func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /* sqlite3.c:167317:16: */
return libc.Bool32(TK_ID != Xsqlite3KeywordCode(tls, zName, nName))
}
@@ -193264,13 +193324,13 @@ func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /
// But the feature is undocumented.
// Make the IdChar function accessible from ctime.c and alter.c
-func Xsqlite3IsIdChar(tls *libc.TLS, c U8) int32 { /* sqlite3.c:167289:20: */
+func Xsqlite3IsIdChar(tls *libc.TLS, c U8) int32 { /* sqlite3.c:167364: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:167296:12: */
+func getToken(tls *libc.TLS, pz uintptr) int32 { /* sqlite3.c:167371:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -193320,7 +193380,7 @@ func getToken(tls *libc.TLS, pz uintptr) int32 { /* sqlite3.c:167296:12: */
//
// * the previous token was TK_RP, and
// * the next token is TK_LP.
-func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:167345:12: */
+func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:167420:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -193337,7 +193397,7 @@ func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:167345:
return TK_WINDOW
}
-func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* sqlite3.c:167353:12: */
+func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* sqlite3.c:167428:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -193351,7 +193411,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:167360:12: */
+func analyzeFilterKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* sqlite3.c:167435:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = z
@@ -193364,7 +193424,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:167372:20: */
+func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* sqlite3.c:167447:20: */
var i int32
var c int32
switch int32(aiClass[*(*uint8)(unsafe.Pointer(z))]) { // Switch on the character-class of the first byte
@@ -193726,7 +193786,7 @@ func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* sq
}
// Run the parser on the given SQL string.
-func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* sqlite3.c:167666:20: */
+func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* sqlite3.c:167741:20: */
bp := tls.Alloc(2480)
defer tls.Free(2480)
@@ -193796,7 +193856,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* s
(*Token)(unsafe.Pointer(bp + 2464 /* &x */)).Fz = zSql
(*Token)(unsafe.Pointer(bp + 2464 /* &x */)).Fn = uint32(n)
- Xsqlite3ErrorMsg(tls, pParse, ts+24492, libc.VaList(bp, bp+2464))
+ Xsqlite3ErrorMsg(tls, pParse, ts+24500, libc.VaList(bp, bp+2464))
break
}
}
@@ -193819,7 +193879,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* s
if (*Parse)(unsafe.Pointer(pParse)).FzErrMsg == uintptr(0) {
(*Parse)(unsafe.Pointer(pParse)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+4444, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc)))
}
- Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+24517, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail))
+ Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+24525, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail))
nErr++
}
(*Parse)(unsafe.Pointer(pParse)).FzTail = zSql
@@ -193916,7 +193976,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* s
// 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:168058:16: */
+func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:168133:16: */
var state U8 = U8(0) // Current state, using numbers defined in header comment
var token U8
@@ -194019,7 +194079,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:168058:
fallthrough
case 'C':
{
- if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+24528, 6) == 0 {
+ if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+24536, 6) == 0 {
token = U8(TkCREATE)
} else {
token = U8(TkOTHER)
@@ -194032,11 +194092,11 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:168058:
fallthrough
case 'T':
{
- if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+21196, 7) == 0 {
+ if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+21204, 7) == 0 {
token = U8(TkTRIGGER)
- } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+24535, 4) == 0 {
+ } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+24543, 4) == 0 {
token = U8(TkTEMP)
- } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+24540, 9) == 0 {
+ } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+24548, 9) == 0 {
token = U8(TkTEMP)
} else {
token = U8(TkOTHER)
@@ -194049,9 +194109,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:168058:
fallthrough
case 'E':
{
- if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+24550, 3) == 0 {
+ if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+24558, 3) == 0 {
token = U8(TkEND)
- } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+24554, 7) == 0 {
+ } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+24562, 7) == 0 {
token = U8(TkEXPLAIN)
} else {
token = U8(TkOTHER)
@@ -194093,12 +194153,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:168066:19 */
+} /* sqlite3.c:168141: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:168223:16: */
+func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:168298:16: */
var pVal uintptr
var zSql8 uintptr
var rc int32
@@ -194125,7 +194185,7 @@ func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* sqlite3.c:16822
// 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:168375:12: */
+func sqlite3TestExtInit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:168450:12: */
_ = db
return Xsqlite3FaultSim(tls, 500)
}
@@ -194137,11 +194197,11 @@ var sqlite3BuiltinExtensions = [4]uintptr{
0,
0,
0,
-} /* sqlite3.c:168402:12 */
+} /* sqlite3.c:168477: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:168449:23: */
+func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* sqlite3.c:168524:23: */
return uintptr(unsafe.Pointer(&Xsqlite3_version))
}
@@ -194154,14 +194214,14 @@ func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* sqlite3.c:168449: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:168462:16: */
+func Xsqlite3_libversion_number(tls *libc.TLS) int32 { /* sqlite3.c:168537: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:168468:16: */
+func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* sqlite3.c:168543:16: */
return SQLITE_THREADSAFE
}
@@ -194174,14 +194234,14 @@ func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* sqlite3.c:168468:16: */
// temporary files.
//
// See also the "PRAGMA temp_store_directory" SQL command.
-var Xsqlite3_temp_directory uintptr = uintptr(0) /* sqlite3.c:168499:17 */
+var Xsqlite3_temp_directory uintptr = uintptr(0) /* sqlite3.c:168574: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:168508:17 */
+var Xsqlite3_data_directory uintptr = uintptr(0) /* sqlite3.c:168583:17 */
// Initialize SQLite.
//
@@ -194212,7 +194272,7 @@ var Xsqlite3_data_directory uintptr = uintptr(0) /* sqlite3.c:168508:17 */
//
// * Recursive calls to this routine from thread X return immediately
// without blocking.
-func Xsqlite3_initialize(tls *libc.TLS) int32 { /* sqlite3.c:168541:16: */
+func Xsqlite3_initialize(tls *libc.TLS) int32 { /* sqlite3.c:168616:16: */
var pMainMtx uintptr // The main static mutex
var rc int32 // Result code
@@ -194338,7 +194398,7 @@ func Xsqlite3_initialize(tls *libc.TLS) int32 { /* sqlite3.c:168541: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:168716:16: */
+func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* sqlite3.c:168791:16: */
if Xsqlite3Config.FisInit != 0 {
Xsqlite3_os_end(tls)
@@ -194377,7 +194437,7 @@ func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* sqlite3.c:168716: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:168770:16: */
+func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlite3.c:168845:16: */
var ap Va_list
_ = ap
var rc int32 = SQLITE_OK
@@ -194385,7 +194445,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, 168776)
+ return Xsqlite3MisuseError(tls, 168851)
}
ap = va
@@ -194655,7 +194715,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:169088:12: */
+func setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int32) int32 { /* sqlite3.c:169163:12: */
var pStart uintptr
var szAlloc Sqlite3_int64 = Sqlite3_int64(sz) * Sqlite3_int64(cnt)
var nBig int32 // Number of full-size slots
@@ -194753,13 +194813,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:169188:26: */
+func Xsqlite3_db_mutex(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:169263: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:169202:16: */
+func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169277:16: */
var i int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -194778,7 +194838,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:169226:16: */
+func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169301:16: */
var i int32
var rc int32 = SQLITE_OK
var bSeenBusy int32 = 0
@@ -194807,7 +194867,7 @@ func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:1692
}
// Configuration settings for an individual database connection
-func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* sqlite3.c:169255:16: */
+func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* sqlite3.c:169330:16: */
var ap Va_list
_ = ap
var rc int32
@@ -194886,11 +194946,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:169278:9 */
+} /* sqlite3.c:169353: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:169330:12: */
+func binCollFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* sqlite3.c:169405:12: */
var rc int32
var n int32
_ = NotUsed
@@ -194912,7 +194972,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:169353:12: */
+func rtrimCollFunc(tls *libc.TLS, pUser uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* sqlite3.c:169428:12: */
var pK1 uintptr = pKey1
var pK2 uintptr = pKey2
for nKey1 != 0 && int32(*(*U8)(unsafe.Pointer(pK1 + uintptr(nKey1-1)))) == ' ' {
@@ -194925,7 +194985,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:169368:20: */
+func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:169443: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
@@ -194939,7 +194999,7 @@ func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:169368: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:169382:12: */
+func nocaseCollatingFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* sqlite3.c:169457:12: */
var r int32 = Xsqlite3_strnicmp(tls,
pKey1, pKey2, func() int32 {
if nKey1 < nKey2 {
@@ -194955,39 +195015,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:169399:25: */
+func Xsqlite3_last_insert_rowid(tls *libc.TLS, db uintptr) Sqlite_int64 { /* sqlite3.c:169474: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:169412:17: */
+func Xsqlite3_set_last_insert_rowid(tls *libc.TLS, db uintptr, iRowid Sqlite3_int64) { /* sqlite3.c:169487: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:169427:26: */
+func Xsqlite3_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* sqlite3.c:169502:26: */
return (*Sqlite3)(unsafe.Pointer(db)).FnChange
}
-func Xsqlite3_changes(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169436:16: */
+func Xsqlite3_changes(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169511: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:169443:26: */
+func Xsqlite3_total_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* sqlite3.c:169518:26: */
return (*Sqlite3)(unsafe.Pointer(db)).FnTotalChange
}
-func Xsqlite3_total_changes(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169452:16: */
+func Xsqlite3_total_changes(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169527: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:169461:21: */
+func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* sqlite3.c:169536: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
@@ -195002,7 +195062,7 @@ func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* sqlite3.c:169461: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:169478:13: */
+func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:169553:13: */
var pDestructor uintptr
pDestructor = *(*uintptr)(unsafe.Pointer(p + 64))
@@ -195017,7 +195077,7 @@ func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* sqlite3.c:169478
// 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:169495:13: */
+func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* sqlite3.c:169570:13: */
var i int32
var p uintptr
Xsqlite3BtreeEnterAll(tls, db)
@@ -195044,7 +195104,7 @@ func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* sqlite3.c:169495: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:169526:12: */
+func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169601:12: */
var j int32
if (*Sqlite3)(unsafe.Pointer(db)).FpVdbe != 0 {
@@ -195060,14 +195120,14 @@ func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169526:12:
}
// Close an existing SQLite database
-func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* sqlite3.c:169540:12: */
+func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* sqlite3.c:169615: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, 169547)
+ return Xsqlite3MisuseError(tls, 169622)
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_CLOSE != 0 {
@@ -195091,7 +195151,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+24562, 0)
+ ts+24570, 0)
Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
return SQLITE_BUSY
}
@@ -195104,7 +195164,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:169594:16: */
+func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) int32 { /* sqlite3.c:169669:16: */
var iDb int32
var nDb int32
var iTxn int32 = -1
@@ -195141,11 +195201,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:169629:16: */
+func Xsqlite3_close(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169704:16: */
return sqlite3Close(tls, db, 0)
}
-func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169630:16: */
+func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169705:16: */
return sqlite3Close(tls, db, 1)
}
@@ -195155,7 +195215,7 @@ func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:169630: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:169641:21: */
+func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* sqlite3.c:169716:21: */
var i uintptr // Hash table iterator
var j int32
@@ -195265,7 +195325,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:169764:21: */
+func Xsqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) { /* sqlite3.c:169839:21: */
var i int32
var inTrans int32 = 0
var schemaChange int32
@@ -195315,24 +195375,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:169925:27: */
- var zErr uintptr = ts + 24630 /* "unknown error" */
+func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:170000:27: */
+ var zErr uintptr = ts + 24638 /* "unknown error" */
switch rc {
case SQLITE_ABORT | int32(2)<<8:
{
- zErr = ts + 24644 /* "abort due to ROL..." */
+ zErr = ts + 24652 /* "abort due to ROL..." */
break
}
case SQLITE_ROW:
{
- zErr = ts + 24666 /* "another row avai..." */
+ zErr = ts + 24674 /* "another row avai..." */
break
}
case SQLITE_DONE:
{
- zErr = ts + 24688 /* "no more rows ava..." */
+ zErr = ts + 24696 /* "no more rows ava..." */
break
}
@@ -195350,36 +195410,36 @@ func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:169925:27: *
}
var aMsg = [29]uintptr{
- ts + 24711,
- ts + 24724,
+ ts + 24719,
+ ts + 24732,
/* SQLITE_INTERNAL */ uintptr(0),
- ts + 24740,
- ts + 24765,
- ts + 24779,
- ts + 24798,
+ ts + 24748,
+ ts + 24773,
+ ts + 24787,
+ ts + 24806,
ts + 1460,
- ts + 24823,
- ts + 24860,
- ts + 24872,
- ts + 24887,
- ts + 24920,
- ts + 24938,
- ts + 24963,
- ts + 24992,
+ ts + 24831,
+ ts + 24868,
+ ts + 24880,
+ ts + 24895,
+ ts + 24928,
+ ts + 24946,
+ ts + 24971,
+ ts + 25000,
/* SQLITE_EMPTY */ uintptr(0),
ts + 7151,
ts + 6637,
- ts + 25009,
- ts + 25027,
- ts + 25045,
+ ts + 25017,
+ ts + 25035,
+ ts + 25053,
/* SQLITE_NOLFS */ uintptr(0),
- ts + 25079,
+ ts + 25087,
/* SQLITE_FORMAT */ uintptr(0),
- ts + 25100,
- ts + 25126,
- ts + 25149,
- ts + 25170,
-} /* sqlite3.c:169926:20 */
+ ts + 25108,
+ ts + 25134,
+ ts + 25157,
+ ts + 25178,
+} /* sqlite3.c:170001:20 */
// This routine implements a busy callback that sleeps and tries
// again until a timeout value is reached. The timeout value is
@@ -195388,7 +195448,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:169995:12: */
+func sqliteDefaultBusyCallback(tls *libc.TLS, ptr uintptr, count int32) int32 { /* sqlite3.c:170070:12: */
var db uintptr = ptr
var tmout int32 = (*Sqlite3)(unsafe.Pointer(db)).FbusyTimeout
var delay int32
@@ -195411,8 +195471,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: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 */
+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:170077: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:170079:19 */
// Invoke the given busy handler.
//
@@ -195421,7 +195481,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:170047:20: */
+func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:170122:20: */
var rc int32
if (*BusyHandler)(unsafe.Pointer(p)).FxBusyHandler == uintptr(0) || (*BusyHandler)(unsafe.Pointer(p)).FnBusy < 0 {
return 0
@@ -195439,7 +195499,7 @@ func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:17
// 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:170063:16: */
+func Xsqlite3_busy_handler(tls *libc.TLS, db uintptr, xBusy uintptr, pArg uintptr) int32 { /* sqlite3.c:170138:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FxBusyHandler = xBusy
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FpBusyArg = pArg
@@ -195452,7 +195512,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:170086:17: */
+func Xsqlite3_progress_handler(tls *libc.TLS, db uintptr, nOps int32, xProgress uintptr, pArg uintptr) { /* sqlite3.c:170161:17: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if nOps > 0 {
(*Sqlite3)(unsafe.Pointer(db)).FxProgress = xProgress
@@ -195468,7 +195528,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:170117:16: */
+func Xsqlite3_busy_timeout(tls *libc.TLS, db uintptr, ms int32) int32 { /* sqlite3.c:170192:16: */
if ms > 0 {
Xsqlite3_busy_handler(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -195482,7 +195542,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:170134:17: */
+func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* sqlite3.c:170209:17: */
libc.AtomicStoreNInt32(db+432, int32(1), 0)
}
@@ -195490,7 +195550,7 @@ func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* sqlite3.c:170134: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:170151: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:170226:20: */
var p uintptr
var extraFlags int32
@@ -195500,7 +195560,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, 170176)
+ return Xsqlite3MisuseError(tls, 170251)
}
extraFlags = enc & (SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS)
@@ -195558,7 +195618,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+25186, 0)
+ ts+25194, 0)
return SQLITE_BUSY
} else {
@@ -195605,7 +195665,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:170285: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:170360:12: */
var rc int32
var pArg uintptr
rc = SQLITE_ERROR
@@ -195647,22 +195707,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:170336: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:170411: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:170349: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:170424: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:170363: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:170438: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:170380: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:170455:16: */
var rc int32
var zFunc8 uintptr
@@ -195682,7 +195742,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:170416:13: */
+func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* sqlite3.c:170491:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -195691,7 +195751,7 @@ func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUs
_ = NotUsed
_ = NotUsed2
zErr = Xsqlite3_mprintf(tls,
- ts+25249, libc.VaList(bp, zName))
+ ts+25257, libc.VaList(bp, zName))
Xsqlite3_result_error(tls, context, zErr, -1)
Xsqlite3_free(tls, zErr)
}
@@ -195706,7 +195766,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:170442:16: */
+func Xsqlite3_overload_function(tls *libc.TLS, db uintptr, zName uintptr, nArg int32) int32 { /* sqlite3.c:170517:16: */
var rc int32
var zCopy uintptr
@@ -195732,7 +195792,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:170475:17: */
+func Xsqlite3_trace(tls *libc.TLS, db uintptr, xTrace uintptr, pArg uintptr) uintptr { /* sqlite3.c:170550:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -195750,7 +195810,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:170496:16: */
+func Xsqlite3_trace_v2(tls *libc.TLS, db uintptr, mTrace uint32, xTrace uintptr, pArg uintptr) int32 { /* sqlite3.c:170571:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if mTrace == uint32(0) {
xTrace = uintptr(0)
@@ -195771,7 +195831,7 @@ func Xsqlite3_trace_v2(tls *libc.TLS, db uintptr, mTrace uint32, xTrace uintptr,
// A NULL profile function means that no profiling is executes. A non-NULL
// profile is a pointer to a function that is invoked at the conclusion of
// each SQL statement that is run.
-func Xsqlite3_profile(tls *libc.TLS, db uintptr, xProfile uintptr, pArg uintptr) uintptr { /* sqlite3.c:170526:17: */
+func Xsqlite3_profile(tls *libc.TLS, db uintptr, xProfile uintptr, pArg uintptr) uintptr { /* sqlite3.c:170601:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -195789,7 +195849,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:170556:17: */
+func Xsqlite3_commit_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* sqlite3.c:170631:17: */
var pOld uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -195802,7 +195862,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:170581:17: */
+func Xsqlite3_update_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* sqlite3.c:170656:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -195815,7 +195875,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:170606:17: */
+func Xsqlite3_rollback_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* sqlite3.c:170681:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -195828,7 +195888,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:170632:17: */
+func Xsqlite3_preupdate_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* sqlite3.c:170707:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pRet = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdateArg
@@ -195840,7 +195900,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:170652:16: */
+func Xsqlite3_autovacuum_pages(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr, xDestructor uintptr) int32 { /* sqlite3.c:170727: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)
@@ -195856,7 +195916,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:170683:20: */
+func Xsqlite3WalDefaultHook(tls *libc.TLS, pClientData uintptr, db uintptr, zDb uintptr, nFrame int32) int32 { /* sqlite3.c:170758:20: */
if nFrame >= int32(pClientData) {
Xsqlite3BeginBenignMalloc(tls)
Xsqlite3_wal_checkpoint(tls, db, zDb)
@@ -195874,7 +195934,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:170709:16: */
+func Xsqlite3_wal_autocheckpoint(tls *libc.TLS, db uintptr, nFrame int32) int32 { /* sqlite3.c:170784:16: */
if nFrame > 0 {
Xsqlite3_wal_hook(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32) int32
@@ -195887,7 +195947,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:170730:17: */
+func Xsqlite3_wal_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* sqlite3.c:170805:17: */
var pRet uintptr
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
pRet = (*Sqlite3)(unsafe.Pointer(db)).FpWalArg
@@ -195898,7 +195958,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:170757:16: */
+func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* sqlite3.c:170832:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -195927,7 +195987,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+25300, libc.VaList(bp, zDb))
+ Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+25308, libc.VaList(bp, zDb))
} else {
(*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0
rc = Xsqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt)
@@ -195948,7 +196008,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:170821:16: */
+func Xsqlite3_wal_checkpoint(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* sqlite3.c:170896: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))
@@ -195972,7 +196032,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:170848:20: */
+func Xsqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* sqlite3.c:170923: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
@@ -196014,19 +196074,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:170894:20: */
+func Xsqlite3TempInMemory(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:170969: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:170915:23: */
+func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:170990:23: */
var z uintptr
if !(db != 0) {
return Xsqlite3ErrStr(tls, SQLITE_NOMEM)
}
if !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3ErrStr(tls, Xsqlite3MisuseError(tls, 170921))
+ return Xsqlite3ErrStr(tls, Xsqlite3MisuseError(tls, 170996))
}
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -196048,7 +196108,7 @@ func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:170915:23
}
// Return the byte offset of the most recent error
-func Xsqlite3_error_offset(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:170941:16: */
+func Xsqlite3_error_offset(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:171016: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)
@@ -196060,7 +196120,7 @@ func Xsqlite3_error_offset(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:17094
// Return UTF-16 encoded English language explanation of the most recent
// error.
-func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:170956:23: */
+func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:171031:23: */
var z uintptr
if !(db != 0) {
return uintptr(uintptr(unsafe.Pointer(&outOfMem)))
@@ -196089,18 +196149,18 @@ func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* sqlite3.c:170956:
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:170957:20 */
+} /* sqlite3.c:171032: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:170960:20 */
+} /* sqlite3.c:171035: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:170998:16: */
+func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:171073:16: */
if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3MisuseError(tls, 171000)
+ return Xsqlite3MisuseError(tls, 171075)
}
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return SQLITE_NOMEM
@@ -196108,9 +196168,9 @@ func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:170998:16:
return (*Sqlite3)(unsafe.Pointer(db)).FerrCode & (*Sqlite3)(unsafe.Pointer(db)).FerrMask
}
-func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:171007:16: */
+func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:171082:16: */
if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return Xsqlite3MisuseError(tls, 171009)
+ return Xsqlite3MisuseError(tls, 171084)
}
if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return SQLITE_NOMEM
@@ -196118,7 +196178,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:171016:16: */
+func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:171091:16: */
if db != 0 {
return (*Sqlite3)(unsafe.Pointer(db)).FiSysErrno
}
@@ -196128,13 +196188,13 @@ func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:17101
// 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:171025:23: */
+func Xsqlite3_errstr(tls *libc.TLS, rc int32) uintptr { /* sqlite3.c:171100: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:171033:12: */
+func createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc U8, pCtx uintptr, xCompare uintptr, xDel uintptr) int32 { /* sqlite3.c:171108:12: */
var pColl uintptr
var enc2 int32
@@ -196147,7 +196207,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, 171057)
+ return Xsqlite3MisuseError(tls, 171132)
}
// Check if this call is removing or replacing an existing collation
@@ -196157,7 +196217,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+25321, 0)
+ ts+25329, 0)
return SQLITE_BUSY
}
Xsqlite3ExpirePreparedStatements(tls, db, 0)
@@ -196210,7 +196270,7 @@ var aHardLimit = [12]int32{
SQLITE_MAX_VARIABLE_NUMBER, // IMP: R-38091-32352
SQLITE_MAX_TRIGGER_DEPTH,
SQLITE_MAX_WORKER_THREADS,
-} /* sqlite3.c:171110:18 */
+} /* sqlite3.c:171185:18 */
// Make sure the hard limits are set to reasonable values
@@ -196222,7 +196282,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:171173:16: */
+func Xsqlite3_limit(tls *libc.TLS, db uintptr, limitId int32, newLimit int32) int32 { /* sqlite3.c:171248:16: */
var oldLimit int32
// EVIDENCE-OF: R-30189-54097 For each limit category SQLITE_LIMIT_NAME
@@ -196269,7 +196329,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:171245:20: */
+func Xsqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags uintptr, ppVfs uintptr, pzFile uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:171320:20: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -196302,7 +196362,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+25389, uint64(5)) == 0) {
+ nUri >= 5 && libc.Xmemcmp(tls, zUri, ts+25397, uint64(5)) == 0) {
goto __1
} // Input character index
iOut = 0 // Output character index
@@ -196350,10 +196410,10 @@ __8:
goto __8
__9:
;
- if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+25395, zUri+7, uint64(9)) != 0)) {
+ if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+25403, zUri+7, uint64(9)) != 0)) {
goto __10
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25405,
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25413,
libc.VaList(bp, iIn-7, zUri+7))
rc = SQLITE_ERROR
goto parse_uri_out
@@ -196475,7 +196535,7 @@ __27:
zVal = zOpt + uintptr(nOpt+1)
nVal = Xsqlite3Strlen30(tls, zVal)
- if !(nOpt == 3 && libc.Xmemcmp(tls, ts+25433, zOpt, uint64(3)) == 0) {
+ if !(nOpt == 3 && libc.Xmemcmp(tls, ts+25441, zOpt, uint64(3)) == 0) {
goto __29
}
zVfs = zVal
@@ -196486,17 +196546,17 @@ __29:
mask = 0
limit = 0
- if !(nOpt == 5 && libc.Xmemcmp(tls, ts+25437, zOpt, uint64(5)) == 0) {
+ if !(nOpt == 5 && libc.Xmemcmp(tls, ts+25445, zOpt, uint64(5)) == 0) {
goto __31
}
mask = SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_PRIVATECACHE
aMode = uintptr(unsafe.Pointer(&aCacheMode))
limit = mask
- zModeType = ts + 25437 /* "cache" */
+ zModeType = ts + 25445 /* "cache" */
__31:
;
- if !(nOpt == 4 && libc.Xmemcmp(tls, ts+25443, zOpt, uint64(4)) == 0) {
+ if !(nOpt == 4 && libc.Xmemcmp(tls, ts+25451, zOpt, uint64(4)) == 0) {
goto __32
}
@@ -196504,7 +196564,7 @@ __31:
SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY
aMode = uintptr(unsafe.Pointer(&aOpenMode))
limit = int32(uint32(mask) & flags)
- zModeType = ts + 25448 /* "access" */
+ zModeType = ts + 25456 /* "access" */
__32:
;
@@ -196535,7 +196595,7 @@ __36:
if !(mode == 0) {
goto __38
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25455, libc.VaList(bp+16, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25463, libc.VaList(bp+16, zModeType, zVal))
rc = SQLITE_ERROR
goto parse_uri_out
__38:
@@ -196543,7 +196603,7 @@ __38:
if !(mode&libc.CplInt32(SQLITE_OPEN_MEMORY) > limit) {
goto __39
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25475,
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25483,
libc.VaList(bp+32, zModeType, zVal))
rc = SQLITE_PERM
goto parse_uri_out
@@ -196586,7 +196646,7 @@ __2:
if !(*(*uintptr)(unsafe.Pointer(ppVfs)) == uintptr(0)) {
goto __42
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25499, libc.VaList(bp+48, zVfs))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25507, libc.VaList(bp+48, zVfs))
rc = SQLITE_ERROR
__42:
;
@@ -196607,24 +196667,24 @@ type OpenMode = struct {
Fz uintptr
Fmode int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:171387:9 */
+} /* sqlite3.c:171462:9 */
var aCacheMode = [3]OpenMode{
- {Fz: ts + 25515, Fmode: SQLITE_OPEN_SHAREDCACHE},
- {Fz: ts + 25522, Fmode: SQLITE_OPEN_PRIVATECACHE},
+ {Fz: ts + 25523, Fmode: SQLITE_OPEN_SHAREDCACHE},
+ {Fz: ts + 25530, Fmode: SQLITE_OPEN_PRIVATECACHE},
{},
-} /* sqlite3.c:171396:34 */
+} /* sqlite3.c:171471:34 */
var aOpenMode = [5]OpenMode{
- {Fz: ts + 25530, Fmode: SQLITE_OPEN_READONLY},
- {Fz: ts + 25533, Fmode: SQLITE_OPEN_READWRITE},
- {Fz: ts + 25536, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE},
- {Fz: ts + 18630, Fmode: SQLITE_OPEN_MEMORY},
+ {Fz: ts + 25538, Fmode: SQLITE_OPEN_READONLY},
+ {Fz: ts + 25541, Fmode: SQLITE_OPEN_READWRITE},
+ {Fz: ts + 25544, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE},
+ {Fz: ts + 18638, Fmode: SQLITE_OPEN_MEMORY},
{},
-} /* sqlite3.c:171408:34 */
+} /* sqlite3.c:171483: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:171482:19: */
+func uriParameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* sqlite3.c:171557:19: */
zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1)
for zFilename != uintptr(0) && *(*int8)(unsafe.Pointer(zFilename)) != 0 {
var x int32 = libc.Xstrcmp(tls, zFilename, zParam)
@@ -196640,7 +196700,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:171500:12: */
+func openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, flags uint32, zVfs uintptr) int32 { /* sqlite3.c:171575:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
*(*uint32)(unsafe.Pointer(bp + 8)) = flags
@@ -196792,10 +196852,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+23055, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ createCollation(tls, db, ts+23063, 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+25540, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ createCollation(tls, db, ts+25548, 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) {
@@ -196824,7 +196884,7 @@ __15:
if !(int32(1)<<(*(*uint32)(unsafe.Pointer(bp + 8))&uint32(7))&0x46 == 0) {
goto __16
}
- rc = Xsqlite3MisuseError(tls, 171713) // IMP: R-18321-05872
+ rc = Xsqlite3MisuseError(tls, 171788) // IMP: R-18321-05872
goto __17
__16:
rc = Xsqlite3ParseUri(tls, zVfs, zFilename, bp+8, db, bp+16, bp+24)
@@ -196881,7 +196941,7 @@ __22:
// database it is OFF. This matches the pager layer defaults.
(*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FzDbSName = ts + 7684 /* "main" */
(*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).Fsafety_level = U8(SQLITE_DEFAULT_SYNCHRONOUS + 1)
- (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 24535 /* "temp" */
+ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 24543 /* "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)
@@ -196980,17 +197040,17 @@ __32:
}
// Open a new database handle.
-func Xsqlite3_open(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* sqlite3.c:171835:16: */
+func Xsqlite3_open(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* sqlite3.c:171910: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:171842:16: */
+func Xsqlite3_open_v2(tls *libc.TLS, filename uintptr, ppDb uintptr, flags int32, zVfs uintptr) int32 { /* sqlite3.c:171917: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:171855:16: */
+func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* sqlite3.c:171930:16: */
var zFilename8 uintptr // zFilename encoded in UTF-8 instead of UTF-16
var pVal uintptr
var rc int32
@@ -197001,7 +197061,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /*
return rc
}
if zFilename == uintptr(0) {
- zFilename = ts + 25546 /* "\x00\x00" */
+ zFilename = ts + 25554 /* "\x00\x00" */
}
pVal = Xsqlite3ValueNew(tls, uintptr(0))
Xsqlite3ValueSetStr(tls, pVal, -1, zFilename, uint8(SQLITE_UTF16LE), uintptr(0))
@@ -197022,12 +197082,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:171894:16: */
+func Xsqlite3_create_collation(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr) int32 { /* sqlite3.c:171969: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:171907:16: */
+func Xsqlite3_create_collation_v2(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr, xDel uintptr) int32 { /* sqlite3.c:171982:16: */
var rc int32
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -197039,7 +197099,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:171932:16: */
+func Xsqlite3_create_collation16(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr) int32 { /* sqlite3.c:172007:16: */
var rc int32 = SQLITE_OK
var zName8 uintptr
@@ -197057,7 +197117,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:171962:16: */
+func Xsqlite3_collation_needed(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded uintptr) int32 { /* sqlite3.c:172037:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = xCollNeeded
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = uintptr(0)
@@ -197068,7 +197128,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:171983:16: */
+func Xsqlite3_collation_needed16(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded16 uintptr) int32 { /* sqlite3.c:172058:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = uintptr(0)
(*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = xCollNeeded16
@@ -197079,7 +197139,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:172005:16: */
+func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* sqlite3.c:172080:16: */
return SQLITE_OK
}
@@ -197087,7 +197147,7 @@ func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* sqlite3.c:172005: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:172016:16: */
+func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:172091:16: */
return int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)
}
@@ -197100,28 +197160,28 @@ func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:172
//
// 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:172037:20: */
+func Xsqlite3ReportError(tls *libc.TLS, iErr int32, lineno int32, zType uintptr) int32 { /* sqlite3.c:172112:20: */
bp := tls.Alloc(24)
defer tls.Free(24)
- Xsqlite3_log(tls, iErr, ts+25549,
+ Xsqlite3_log(tls, iErr, ts+25557,
libc.VaList(bp, zType, lineno, uintptr(20)+Xsqlite3_sourceid(tls)))
return iErr
}
-func Xsqlite3CorruptError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172042:20: */
+func Xsqlite3CorruptError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172117:20: */
- return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+25574)
+ return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+25582)
}
-func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172046:20: */
+func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172121:20: */
- return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+25594)
+ return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+25602)
}
-func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172050:20: */
+func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172125:20: */
- return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+25601)
+ return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+25609)
}
// This is a convenience routine that makes sure that all thread-specific
@@ -197129,12 +197189,12 @@ func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* sqlite3.c:172
//
// 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:172081:17: */
+func Xsqlite3_thread_cleanup(tls *libc.TLS) { /* sqlite3.c:172156: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:172089: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:172164:16: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -197300,7 +197360,7 @@ __19:
goto __20
}
Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))
- *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+25618, libc.VaList(bp, zTableName,
+ *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+25626, libc.VaList(bp, zTableName,
zColumnName))
rc = SQLITE_ERROR
__20:
@@ -197318,7 +197378,7 @@ __20:
}
// Sleep for a little while. Return the amount of time slept.
-func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* sqlite3.c:172207:16: */
+func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* sqlite3.c:172282:16: */
var pVfs uintptr
var rc int32
pVfs = Xsqlite3_vfs_find(tls, uintptr(0))
@@ -197333,7 +197393,7 @@ func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* sqlite3.c:172207:16: */
}
// Enable or disable the extended result codes.
-func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int32 { /* sqlite3.c:172223:16: */
+func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int32 { /* sqlite3.c:172298:16: */
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
(*Sqlite3)(unsafe.Pointer(db)).FerrMask = func() int32 {
if onoff != 0 {
@@ -197346,7 +197406,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:172236:16: */
+func Xsqlite3_file_control(tls *libc.TLS, db uintptr, zDbName uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:172311:16: */
var rc int32 = SQLITE_ERROR
var pBtree uintptr
@@ -197391,7 +197451,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:172286:16: */
+func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* sqlite3.c:172361:16: */
var rc int32 = 0
var ap Va_list
_ = ap
@@ -197850,7 +197910,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:172782:19: */
+func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:172857: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--
}
@@ -197859,7 +197919,7 @@ func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* sqlite3.c:172782: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:172793:13: */
+func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* sqlite3.c:172868:13: */
var n Size_t = libc.Xstrlen(tls, z)
libc.Xmemcpy(tls, p, z, n+uint64(1))
return p + uintptr(n) + uintptr(1)
@@ -197872,7 +197932,7 @@ func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* sqlite3.c:1727
//
// 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:172808:17: */
+func Xsqlite3_create_filename(tls *libc.TLS, zDatabase uintptr, zJournal uintptr, zWal uintptr, nParam int32, azParam uintptr) uintptr { /* sqlite3.c:172883:17: */
var nByte Sqlite3_int64
var i int32
var pResult uintptr
@@ -197903,7 +197963,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:172844:17: */
+func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* sqlite3.c:172919:17: */
if p == uintptr(0) {
return
}
@@ -197920,7 +197980,7 @@ func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* sqlite3.c:172844: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:172862:23: */
+func Xsqlite3_uri_parameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* sqlite3.c:172937:23: */
if zFilename == uintptr(0) || zParam == uintptr(0) {
return uintptr(0)
}
@@ -197929,7 +197989,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:172871:23: */
+func Xsqlite3_uri_key(tls *libc.TLS, zFilename uintptr, N int32) uintptr { /* sqlite3.c:172946:23: */
if zFilename == uintptr(0) || N < 0 {
return uintptr(0)
}
@@ -197946,7 +198006,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:172885:16: */
+func Xsqlite3_uri_boolean(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt int32) int32 { /* sqlite3.c:172960:16: */
var z uintptr = Xsqlite3_uri_parameter(tls, zFilename, zParam)
bDflt = libc.Bool32(bDflt != 0)
if z != 0 {
@@ -197956,7 +198016,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:172894:26: */
+func Xsqlite3_uri_int64(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt Sqlite3_int64) Sqlite3_int64 { /* sqlite3.c:172969:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -197977,14 +198037,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:172917:23: */
+func Xsqlite3_filename_database(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:172992:23: */
if zFilename == uintptr(0) {
return uintptr(0)
}
return databaseName(tls, zFilename)
}
-func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:172921:23: */
+func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:172996:23: */
if zFilename == uintptr(0) {
return uintptr(0)
}
@@ -197997,7 +198057,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:172931:23: */
+func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* sqlite3.c:173006:23: */
zFilename = Xsqlite3_filename_journal(tls, zFilename)
if zFilename != 0 {
zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1)
@@ -198006,7 +198066,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:172944:22: */
+func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* sqlite3.c:173019:22: */
var iDb int32
if zDbName != 0 {
iDb = Xsqlite3FindDbName(tls, db, zDbName)
@@ -198021,7 +198081,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:172953:23: */
+func Xsqlite3_db_filename(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* sqlite3.c:173028:23: */
var pBt uintptr
pBt = Xsqlite3DbNameToBtree(tls, db, zDbName)
if pBt != 0 {
@@ -198032,7 +198092,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:172969:16: */
+func Xsqlite3_db_readonly(tls *libc.TLS, db uintptr, zDbName uintptr) int32 { /* sqlite3.c:173044:16: */
var pBt uintptr
pBt = Xsqlite3DbNameToBtree(tls, db, zDbName)
if pBt != 0 {
@@ -198043,7 +198103,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:172986:16: */
+func Xsqlite3_snapshot_get(tls *libc.TLS, db uintptr, zDb uintptr, ppSnapshot uintptr) int32 { /* sqlite3.c:173061:16: */
var rc int32 = SQLITE_ERROR
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -198066,7 +198126,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:173022:16: */
+func Xsqlite3_snapshot_open(tls *libc.TLS, db uintptr, zDb uintptr, pSnapshot uintptr) int32 { /* sqlite3.c:173097:16: */
var rc int32 = SQLITE_ERROR
Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -198109,7 +198169,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:173078:16: */
+func Xsqlite3_snapshot_recover(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* sqlite3.c:173153:16: */
var rc int32 = SQLITE_ERROR
var iDb int32
@@ -198130,7 +198190,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:173109:17: */
+func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* sqlite3.c:173184:17: */
Xsqlite3_free(tls, pSnapshot)
}
@@ -198139,7 +198199,7 @@ func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* sqlite3.c:173
//
// 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:173122:16: */
+func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* sqlite3.c:173197:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -198151,7 +198211,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* sql
azCompileOpt = Xsqlite3CompileOptions(tls, bp)
- if Xsqlite3_strnicmp(tls, zOptName, ts+25646, 7) == 0 {
+ if Xsqlite3_strnicmp(tls, zOptName, ts+25654, 7) == 0 {
zOptName += uintptr(7)
}
n = Xsqlite3Strlen30(tls, zOptName)
@@ -198169,7 +198229,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:173155:23: */
+func Xsqlite3_compileoption_get(tls *libc.TLS, N int32) uintptr { /* sqlite3.c:173230:23: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -198214,11 +198274,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:173207:16 */
+var sqlite3BlockedList uintptr = uintptr(0) /* sqlite3.c:173282: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:173250:13: */
+func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* sqlite3.c:173325:13: */
var pp uintptr
for pp = uintptr(unsafe.Pointer(&sqlite3BlockedList)); *(*uintptr)(unsafe.Pointer(pp)) != 0; pp = *(*uintptr)(unsafe.Pointer(pp)) + 832 {
@@ -198231,7 +198291,7 @@ func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* sqlite3.c:173250: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:173265:13: */
+func addToBlockedList(tls *libc.TLS, db uintptr) { /* sqlite3.c:173340: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 {
@@ -198241,13 +198301,13 @@ func addToBlockedList(tls *libc.TLS, db uintptr) { /* sqlite3.c:173265:13: */
}
// Obtain the STATIC_MAIN mutex.
-func enterMutex(tls *libc.TLS) { /* sqlite3.c:173280:13: */
+func enterMutex(tls *libc.TLS) { /* sqlite3.c:173355:13: */
Xsqlite3_mutex_enter(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN))
}
// Release the STATIC_MAIN mutex.
-func leaveMutex(tls *libc.TLS) { /* sqlite3.c:173288:13: */
+func leaveMutex(tls *libc.TLS) { /* sqlite3.c:173363:13: */
Xsqlite3_mutex_leave(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN))
}
@@ -198271,7 +198331,7 @@ func leaveMutex(tls *libc.TLS) { /* sqlite3.c:173288: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:173315:16: */
+func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, pArg uintptr) int32 { /* sqlite3.c:173390:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = pArg
@@ -198314,7 +198374,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 + 25654 /* "database is dead..." */
+ return ts + 25662 /* "database is dead..." */
}
return uintptr(0)
}(), 0)
@@ -198326,7 +198386,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:173365:21: */
+func Xsqlite3ConnectionBlocked(tls *libc.TLS, db uintptr, pBlocker uintptr) { /* sqlite3.c:173440:21: */
enterMutex(tls)
if (*Sqlite3)(unsafe.Pointer(db)).FpBlockingConnection == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FpUnlockConnection == uintptr(0) {
addToBlockedList(tls, db)
@@ -198352,7 +198412,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:173393:21: */
+func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* sqlite3.c:173468:21: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -198456,7 +198516,7 @@ func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* sqlite3.c:173393
// 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:173492:21: */
+func Xsqlite3ConnectionClosed(tls *libc.TLS, db uintptr) { /* sqlite3.c:173567:21: */
Xsqlite3ConnectionUnlocked(tls, db)
enterMutex(tls)
removeFromBlockedList(tls, db)
@@ -199061,7 +199121,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:193069:19 */
+} /* sqlite3.c:193144:19 */
// Objects
type JsonString1 = struct {
@@ -199073,10 +199133,10 @@ type JsonString1 = struct {
FbErr U8
FzSpace [100]int8
F__ccgo_pad1 [2]byte
-} /* sqlite3.c:193096:9 */
+} /* sqlite3.c:193171:9 */
// Objects
-type JsonString = JsonString1 /* sqlite3.c:193096:27 */
+type JsonString = JsonString1 /* sqlite3.c:193171:27 */
type JsonNode1 = struct {
FeType U8
FjnFlags U8
@@ -199084,9 +199144,9 @@ type JsonNode1 = struct {
F__ccgo_pad1 [1]byte
Fn U32
Fu struct{ FzJContent uintptr }
-} /* sqlite3.c:193097:9 */
+} /* sqlite3.c:193172:9 */
-type JsonNode = JsonNode1 /* sqlite3.c:193097:25 */
+type JsonNode = JsonNode1 /* sqlite3.c:193172:25 */
type JsonParse1 = struct {
FnNode U32
FnAlloc U32
@@ -199099,9 +199159,9 @@ type JsonParse1 = struct {
FnJson int32
FiHold U32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:193098:9 */
+} /* sqlite3.c:193173:9 */
-type JsonParse = JsonParse1 /* sqlite3.c:193098:26 */
+type JsonParse = JsonParse1 /* sqlite3.c:193173:26 */
// JSON type values
@@ -199109,8 +199169,8 @@ type JsonParse = JsonParse1 /* sqlite3.c:193098:26 */
// Names of the various JSON types:
var jsonType = [8]uintptr{
- ts + 7484, ts + 7998, ts + 8003, ts + 7494, ts + 7489, ts + 9244, ts + 25677, ts + 25683,
-} /* sqlite3.c:193131:19 */
+ ts + 7484, ts + 7998, ts + 8003, ts + 7494, ts + 7489, ts + 9244, ts + 25685, ts + 25691,
+} /* sqlite3.c:193206:19 */
// Maximum nesting depth of JSON for this implementation.
//
@@ -199124,7 +199184,7 @@ var jsonType = [8]uintptr{
//
// Set the JsonString object to an empty string
-func jsonZero(tls *libc.TLS, p uintptr) { /* sqlite3.c:193192:13: */
+func jsonZero(tls *libc.TLS, p uintptr) { /* sqlite3.c:193267: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)
@@ -199132,7 +199192,7 @@ func jsonZero(tls *libc.TLS, p uintptr) { /* sqlite3.c:193192:13: */
}
// Initialize the JsonString object
-func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* sqlite3.c:193201:13: */
+func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* sqlite3.c:193276:13: */
(*JsonString)(unsafe.Pointer(p)).FpCtx = pCtx
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(0)
jsonZero(tls, p)
@@ -199140,7 +199200,7 @@ func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* sqlite3.c:193201:13:
// Free all allocated memory and reset the JsonString object back to its
// initial state.
-func jsonReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:193211:13: */
+func jsonReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:193286:13: */
if !(int32((*JsonString)(unsafe.Pointer(p)).FbStatic) != 0) {
Xsqlite3_free(tls, (*JsonString)(unsafe.Pointer(p)).FzBuf)
}
@@ -199148,7 +199208,7 @@ func jsonReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:193211:13: */
}
// Report an out-of-memory (OOM) condition
-func jsonOom(tls *libc.TLS, p uintptr) { /* sqlite3.c:193219:13: */
+func jsonOom(tls *libc.TLS, p uintptr) { /* sqlite3.c:193294:13: */
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(1)
Xsqlite3_result_error_nomem(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx)
jsonReset(tls, p)
@@ -199156,7 +199216,7 @@ func jsonOom(tls *libc.TLS, p uintptr) { /* sqlite3.c:193219: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:193228:12: */
+func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* sqlite3.c:193303:12: */
var nTotal U64
if U64(N) < (*JsonString)(unsafe.Pointer(p)).FnAlloc {
nTotal = (*JsonString)(unsafe.Pointer(p)).FnAlloc * uint64(2)
@@ -199189,7 +199249,7 @@ func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* sqlite3.c:193228: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:193255:13: */
+func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* sqlite3.c:193330:13: */
if N == U32(0) {
return
}
@@ -199201,7 +199261,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:193264:13: */
+func jsonPrintf(tls *libc.TLS, N int32, p uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:193339: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 {
@@ -199214,7 +199274,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:193275:13: */
+func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* sqlite3.c:193350:13: */
if (*JsonString)(unsafe.Pointer(p)).FnUsed >= (*JsonString)(unsafe.Pointer(p)).FnAlloc && jsonGrow(tls, p, uint32(1)) != 0 {
return
}
@@ -199223,7 +199283,7 @@ func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* sqlite3.c:193275: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:193283:13: */
+func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* sqlite3.c:193358:13: */
var c int8
if (*JsonString)(unsafe.Pointer(p)).FnUsed == uint64(0) {
return
@@ -199238,7 +199298,7 @@ func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* sqlite3.c:193283: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:193295:13: */
+func jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* sqlite3.c:193370: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) {
@@ -199289,7 +199349,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 + 25690 + uintptr(int32(c)&0xf))))
+ c = uint8(*(*int8)(unsafe.Pointer(ts + 25698 + uintptr(int32(c)&0xf))))
__8:
;
__6:
@@ -199309,11 +199369,11 @@ __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:193306:25 */
+} /* sqlite3.c:193381:25 */
// Append a function parameter value to the JSON string under
// construction.
-func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* sqlite3.c:193338:13: */
+func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* sqlite3.c:193413:13: */
switch Xsqlite3_value_type(tls, pValue) {
case SQLITE_NULL:
{
@@ -199346,7 +199406,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+25707, -1)
+ Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+25715, -1)
(*JsonString)(unsafe.Pointer(p)).FbErr = U8(2)
jsonReset(tls, p)
}
@@ -199357,7 +199417,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:193378:13: */
+func jsonResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:193453: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 {
@@ -199384,7 +199444,7 @@ func jsonResult(tls *libc.TLS, p uintptr) { /* sqlite3.c:193378: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:193401:12: */
+func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* sqlite3.c:193476:12: */
if int32((*JsonNode)(unsafe.Pointer(pNode)).FeType) >= JSON_ARRAY {
return (*JsonNode)(unsafe.Pointer(pNode)).Fn + U32(1)
}
@@ -199393,7 +199453,7 @@ func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* sqlite3.c:193401: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:193409:13: */
+func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:193484:13: */
Xsqlite3_free(tls, (*JsonParse)(unsafe.Pointer(pParse)).FaNode)
(*JsonParse)(unsafe.Pointer(pParse)).FaNode = uintptr(0)
(*JsonParse)(unsafe.Pointer(pParse)).FnNode = U32(0)
@@ -199403,7 +199463,7 @@ func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:193409:13: */
}
// Free a JsonParse object that was obtained from sqlite3_malloc().
-func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:193421:13: */
+func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:193496:13: */
jsonParseReset(tls, pParse)
Xsqlite3_free(tls, pParse)
}
@@ -199411,7 +199471,7 @@ func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* sqlite3.c:193421: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:193431:13: */
+func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr) { /* sqlite3.c:193506: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) {
@@ -199513,7 +199573,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:193520:13: */
+func jsonReturnJson(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* sqlite3.c:193595:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -199528,14 +199588,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:193537:11: */
+func jsonHexToInt(tls *libc.TLS, h int32) U8 { /* sqlite3.c:193612: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:193550:12: */
+func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* sqlite3.c:193625:12: */
var v U32
v = U32(int32(jsonHexToInt(tls, int32(*(*int8)(unsafe.Pointer(z)))))<<12 +
@@ -199546,7 +199606,7 @@ func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* sqlite3.c:193550:12: */
}
// Make the JsonNode the return value of the function.
-func jsonReturn(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* sqlite3.c:193566:13: */
+func jsonReturn(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* sqlite3.c:193641:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -199827,7 +199887,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:193739:26: */
+func jsonParseAddNodeExpand(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* sqlite3.c:193814:26: */
var nNew U32
var pNew uintptr
@@ -199849,7 +199909,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:193766:12: */
+func jsonParseAddNode(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* sqlite3.c:193841: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)
@@ -199864,7 +199924,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:193788:12: */
+func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:193863:12: */
var i int32
for i = 0; i < 4; i++ {
if !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x08 != 0) {
@@ -199880,7 +199940,7 @@ func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:193788: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:193802:12: */
+func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* sqlite3.c:193877:12: */
var c int8
var j U32
var iThis int32
@@ -200107,7 +200167,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:193963:12: */
+func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 { /* sqlite3.c:194038:12: */
var i int32
libc.Xmemset(tls, pParse, 0, uint64(unsafe.Sizeof(JsonParse{})))
if zJson == uintptr(0) {
@@ -200132,7 +200192,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+25736, -1)
+ Xsqlite3_result_error(tls, pCtx, ts+25744, -1)
}
}
jsonParseReset(tls, pParse)
@@ -200143,7 +200203,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:193996:13: */
+func jsonParseFillInParentage(tls *libc.TLS, pParse uintptr, i U32, iParent U32) { /* sqlite3.c:194071: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
@@ -200174,7 +200234,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:194023:12: */
+func jsonParseFindParents(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:194098:12: */
var aUp uintptr
aUp = libc.AssignPtrUintptr(pParse+24, Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(U32(0)))*uint64((*JsonParse)(unsafe.Pointer(pParse)).FnNode)))
@@ -200194,7 +200254,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:194049:18: */
+func jsonParseCached(tls *libc.TLS, pCtx uintptr, argv uintptr, pErrCtx uintptr) uintptr { /* sqlite3.c:194124: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
@@ -200251,7 +200311,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:194111:12: */
+func jsonLabelCompare(tls *libc.TLS, pNode uintptr, zKey uintptr, nKey U32) int32 { /* sqlite3.c:194186:12: */
if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_RAW != 0 {
if (*JsonNode)(unsafe.Pointer(pNode)).Fn != nKey {
@@ -200274,7 +200334,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:194134:17: */
+func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* sqlite3.c:194209:17: */
var i U32
var j U32
var nKey U32
@@ -200449,7 +200509,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:194286:17: */
+func jsonLookupAppend(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* sqlite3.c:194361:17: */
*(*int32)(unsafe.Pointer(pApnd)) = 1
if int32(*(*int8)(unsafe.Pointer(zPath))) == 0 {
jsonParseAddNode(tls, pParse, uint32(JSON_NULL), uint32(0), uintptr(0))
@@ -200460,7 +200520,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+25751, uint64(3)) == 0 {
+ } else if libc.Xstrncmp(tls, zPath, ts+25759, uint64(3)) == 0 {
jsonParseAddNode(tls, pParse, uint32(JSON_ARRAY), uint32(0), uintptr(0))
} else {
return uintptr(0)
@@ -200473,11 +200533,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:194312:13: */
+func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* sqlite3.c:194387:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- return Xsqlite3_mprintf(tls, ts+25755, libc.VaList(bp, zErr))
+ return Xsqlite3_mprintf(tls, ts+25763, libc.VaList(bp, zErr))
}
// Do a node lookup using zPath. Return a pointer to the node on success.
@@ -200488,7 +200548,7 @@ func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* sqlite3.c:194
//
// 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:194326:17: */
+func jsonLookup(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pCtx uintptr) uintptr { /* sqlite3.c:194401:17: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -200540,18 +200600,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:194363:13: */
+func jsonWrongNumArgs(tls *libc.TLS, pCtx uintptr, zFuncName uintptr) { /* sqlite3.c:194438:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- var zMsg uintptr = Xsqlite3_mprintf(tls, ts+25781,
+ var zMsg uintptr = Xsqlite3_mprintf(tls, ts+25789,
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:194376:13: */
+func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:194451:13: */
var i int32
var n int32
@@ -200582,7 +200642,7 @@ func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:194376: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:194465:13: */
+func jsonQuoteFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194540:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -200599,7 +200659,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:194484:13: */
+func jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194559:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -200622,7 +200682,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:194511:13: */
+func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194586:13: */
var p uintptr // The parse
var n Sqlite3_int64 = int64(0)
var i U32
@@ -200672,7 +200732,7 @@ func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
//
// Abbreviated JSON path expressions are allows if JSON_ABPATH, for
// compatibility with PG.
-func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194571:13: */
+func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194646:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -200706,11 +200766,11 @@ func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /*
// [NUMBER] ==> $[NUMBER] // Not PG. Purely for convenience
jsonInit(tls, bp, ctx)
if int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPath)))])&0x04 != 0 {
- jsonAppendRaw(tls, bp, ts+25824, uint32(2))
+ jsonAppendRaw(tls, bp, ts+25832, uint32(2))
jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath))))
jsonAppendRaw(tls, bp, ts+6301, uint32(2))
} else {
- jsonAppendRaw(tls, bp, ts+25827, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '[')))
+ jsonAppendRaw(tls, bp, ts+25835, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '[')))
jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath))))
jsonAppendChar(tls, bp, int8(0))
}
@@ -200766,7 +200826,7 @@ func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /*
}
// This is the RFC 7396 MergePatch algorithm.
-func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) uintptr { /* sqlite3.c:194654:17: */
+func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) uintptr { /* sqlite3.c:194729:17: */
var i U32
var j U32
var iRoot U32
@@ -200839,7 +200899,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:194736:13: */
+func jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194811:13: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -200871,7 +200931,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:194768:13: */
+func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194843:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -200883,14 +200943,14 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* s
if argc&1 != 0 {
Xsqlite3_result_error(tls, ctx,
- ts+25830, -1)
+ ts+25838, -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+25881, -1)
+ Xsqlite3_result_error(tls, ctx, ts+25889, -1)
jsonReset(tls, bp)
return
}
@@ -200910,7 +200970,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:194810:13: */
+func jsonRemoveFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194885:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -200979,7 +201039,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:194843:13: */
+func jsonReplaceFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194918:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -200998,7 +201058,7 @@ __1:
if !(argc&1 == 0) {
goto __2
}
- jsonWrongNumArgs(tls, ctx, ts+16627)
+ jsonWrongNumArgs(tls, ctx, ts+16635)
return
__2:
;
@@ -201062,7 +201122,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:194895:13: */
+func jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194970:13: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -201087,9 +201147,9 @@ __1:
}
jsonWrongNumArgs(tls, ctx, func() uintptr {
if bIsSet != 0 {
- return ts + 25915 /* "set" */
+ return ts + 25923 /* "set" */
}
- return ts + 25919 /* "insert" */
+ return ts + 25927 /* "insert" */
}())
return
__2:
@@ -201160,7 +201220,7 @@ jsonSetDone:
//
// Return the top-level "type" of a JSON string. json_type() raises an
// error if either the JSON or PATH inputs are not well-formed.
-func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:194948:13: */
+func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:195023:13: */
var p uintptr // The parse
var zPath uintptr
var pNode uintptr
@@ -201184,7 +201244,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:194976:13: */
+func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:195051:13: */
var p uintptr // The parse
_ = argc
p = jsonParseCached(tls, ctx, argv, uintptr(0))
@@ -201198,7 +201258,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:194996:13: */
+func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:195071:13: */
var pStr uintptr
_ = argc
pStr = Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(JsonString{})))
@@ -201214,7 +201274,7 @@ func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sq
}
}
-func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:195015:13: */
+func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:195090:13: */
var pStr uintptr
pStr = Xsqlite3_aggregate_context(tls, ctx, 0)
if pStr != 0 {
@@ -201239,16 +201299,16 @@ func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:
(*JsonString)(unsafe.Pointer(pStr)).FnUsed--
}
} else {
- Xsqlite3_result_text(tls, ctx, ts+25926, 2, uintptr(0))
+ Xsqlite3_result_text(tls, ctx, ts+25934, 2, uintptr(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
-func jsonArrayValue(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195037:13: */
+func jsonArrayValue(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195112:13: */
jsonArrayCompute(tls, ctx, 0)
}
-func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195040:13: */
+func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195115:13: */
jsonArrayCompute(tls, ctx, 1)
}
@@ -201256,7 +201316,7 @@ func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195040: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:195051:13: */
+func jsonGroupInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:195126:13: */
var i uint32
var inStr int32 = 0
var nNest int32 = 0
@@ -201298,7 +201358,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:195099:13: */
+func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* sqlite3.c:195174:13: */
var pStr uintptr
var z uintptr
var n U32
@@ -201320,7 +201380,7 @@ func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* s
}
}
-func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:195124:13: */
+func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c:195199:13: */
var pStr uintptr
pStr = Xsqlite3_aggregate_context(tls, ctx, 0)
if pStr != 0 {
@@ -201344,16 +201404,16 @@ func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* sqlite3.c
(*JsonString)(unsafe.Pointer(pStr)).FnUsed--
}
} else {
- Xsqlite3_result_text(tls, ctx, ts+25929, 2, uintptr(0))
+ Xsqlite3_result_text(tls, ctx, ts+25937, 2, uintptr(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
-func jsonObjectValue(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195145:13: */
+func jsonObjectValue(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195220:13: */
jsonObjectCompute(tls, ctx, 0)
}
-func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195148:13: */
+func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* sqlite3.c:195223:13: */
jsonObjectCompute(tls, ctx, 1)
}
@@ -201373,16 +201433,16 @@ type JsonEachCursor1 = struct {
FzJson uintptr
FzRoot uintptr
FsParse JsonParse
-} /* sqlite3.c:195158:9 */
+} /* sqlite3.c:195233:9 */
// ***************************************************************************
//
// The json_each virtual table
//
-type JsonEachCursor = JsonEachCursor1 /* sqlite3.c:195158:31 */
+type JsonEachCursor = JsonEachCursor1 /* sqlite3.c:195233: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:195173:12: */
+func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:195248:12: */
var pNew uintptr
var rc int32
@@ -201397,7 +201457,7 @@ func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv u
_ = pAux
rc = Xsqlite3_declare_vtab(tls, db,
- ts+25932)
+ ts+25940)
if rc == SQLITE_OK {
pNew = libc.AssignPtrUintptr(ppVtab, Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_vtab{}))))
if pNew == uintptr(0) {
@@ -201410,13 +201470,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:195215:12: */
+func jsonEachDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:195290: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:195221:12: */
+func jsonEachOpenEach(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* sqlite3.c:195296:12: */
var pCur uintptr
_ = p
@@ -201430,7 +201490,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:195233:12: */
+func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* sqlite3.c:195308:12: */
var rc int32 = jsonEachOpenEach(tls, p, ppCursor)
if rc == SQLITE_OK {
var pCur uintptr = *(*uintptr)(unsafe.Pointer(ppCursor))
@@ -201441,7 +201501,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:195244:13: */
+func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:195319:13: */
Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzJson)
Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot)
jsonParseReset(tls, p+48)
@@ -201454,7 +201514,7 @@ func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* sqlite3.c:195244:13: */
}
// Destructor for a jsonEachCursor object
-func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195257:12: */
+func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195332:12: */
var p uintptr = cur
jsonEachCursorReset(tls, p)
Xsqlite3_free(tls, cur)
@@ -201463,13 +201523,13 @@ func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195257: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:195266:12: */
+func jsonEachEof(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195341: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:195272:12: */
+func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195347: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 {
@@ -201520,7 +201580,7 @@ func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:195272: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:195316:13: */
+func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* sqlite3.c:195391:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -201537,19 +201597,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+26015, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8))))
+ jsonPrintf(tls, 30, pStr, ts+26023, 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+26020, 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+26028, 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:195346:12: */
+func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:195421:12: */
bp := tls.Alloc(296)
defer tls.Free(296)
@@ -201638,10 +201698,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+26015, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid))
+ jsonPrintf(tls, 30, bp+24, ts+26023, 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+26020, 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+26028, libc.VaList(bp+8, (*JsonNode)(unsafe.Pointer(pThis)).Fn-U32(2), *(*uintptr)(unsafe.Pointer(pThis + 8))+uintptr(1)))
}
}
jsonResult(tls, bp+24)
@@ -201665,7 +201725,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 + 26026 /* "$" */
+ zRoot = ts + 26034 /* "$" */
}
Xsqlite3_result_text(tls, ctx, zRoot, -1, uintptr(0))
break
@@ -201683,7 +201743,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:195447:12: */
+func jsonEachRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* sqlite3.c:195522:12: */
var p uintptr = cur
*(*Sqlite_int64)(unsafe.Pointer(pRowid)) = Sqlite_int64((*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)
return SQLITE_OK
@@ -201693,7 +201753,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:195458:12: */
+func jsonEachBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* sqlite3.c:195533:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -201768,7 +201828,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:195517:12: */
+func jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3.c:195592:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -201797,7 +201857,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+25736, 0)
+ (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+25744, 0)
if (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 {
rc = SQLITE_ERROR
}
@@ -201873,7 +201933,7 @@ var jsonEachModule = Sqlite3_module{ // xCreate
FxEof: 0, // xEof - check for end of scan
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:195598:23 */
+} /* sqlite3.c:195673:23 */
// The methods of the json_tree virtual table.
var jsonTreeModule = Sqlite3_module{ // xCreate
@@ -201887,36 +201947,36 @@ var jsonTreeModule = Sqlite3_module{ // xCreate
FxEof: 0, // xEof - check for end of scan
FxColumn: 0, // xColumn - read data
FxRowid: 0, // xShadowName
-} /* sqlite3.c:195626:23 */
+} /* sqlite3.c:195701:23 */
// Register JSON functions.
-func Xsqlite3RegisterJsonFunctions(tls *libc.TLS) { /* sqlite3.c:195658:21: */
+func Xsqlite3RegisterJsonFunctions(tls *libc.TLS) { /* sqlite3.c:195733: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 + 26028},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26033},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26044},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26044},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26062},
- {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 + 26075},
- {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 + 26078},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26082},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26094},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26106},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26117},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26128},
- {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26140},
- {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 + 26153},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26162},
- {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26162},
- {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26172},
- {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 + 26183},
- {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 + 26200}} /* sqlite3.c:195660:18 */
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26036},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26041},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26052},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26052},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26070},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_JSON)), FxSFunc: 0, FzName: ts + 26083},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_SQL)), FxSFunc: 0, FzName: ts + 26086},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26090},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26102},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26114},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26125},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26136},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26148},
+ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_ISSET)), FxSFunc: 0, FzName: ts + 26161},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26170},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26170},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26180},
+ {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_SUBTYPE | SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 26191},
+ {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_SUBTYPE | SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 26208}} /* sqlite3.c:195735:18 */
// Register the JSON table-valued functions
-func Xsqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:195697:20: */
+func Xsqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:195772:20: */
var rc int32 = SQLITE_OK
var i uint32
for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(aMod))/uint64(unsafe.Sizeof(struct {
@@ -201932,9 +201992,9 @@ var aMod = [2]struct {
FzName uintptr
FpModule uintptr
}{
- {FzName: ts + 26218 /* "json_each" */, FpModule: 0},
- {FzName: ts + 26228 /* "json_tree" */, FpModule: 0},
-} /* sqlite3.c:195702:5 */ // In the SQLite core
+ {FzName: ts + 26226 /* "json_each" */, FpModule: 0},
+ {FzName: ts + 26236 /* "json_tree" */, FpModule: 0},
+} /* sqlite3.c:195777:5 */ // In the SQLite core
// If building separately, we will need some setup that is normally
// found in sqliteInt.h
@@ -201981,7 +202041,7 @@ type Rtree1 = struct {
FpDeleteParent uintptr
FpWriteAux uintptr
FaHash [97]uintptr
-} /* sqlite3.c:195825:9 */
+} /* sqlite3.c:195900:9 */
// In the SQLite core
@@ -201995,7 +202055,7 @@ type Rtree1 = struct {
// The following macro is used to suppress compiler warnings.
-type Rtree = Rtree1 /* sqlite3.c:195825:22 */
+type Rtree = Rtree1 /* sqlite3.c:195900:22 */
type RtreeCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FatEOF U8
@@ -202016,9 +202076,9 @@ type RtreeCursor1 = struct {
FaNode [5]uintptr
FanQueue [41]U32
F__ccgo_pad4 [4]byte
-} /* sqlite3.c:195826:9 */
+} /* sqlite3.c:195901:9 */
-type RtreeCursor = RtreeCursor1 /* sqlite3.c:195826:28 */
+type RtreeCursor = RtreeCursor1 /* sqlite3.c:195901:28 */
type RtreeNode1 = struct {
FpParent uintptr
FiNode I64
@@ -202026,23 +202086,23 @@ type RtreeNode1 = struct {
FisDirty int32
FzData uintptr
FpNext uintptr
-} /* sqlite3.c:195825:9 */
+} /* sqlite3.c:195900:9 */
-type RtreeNode = RtreeNode1 /* sqlite3.c:195827:26 */
+type RtreeNode = RtreeNode1 /* sqlite3.c:195902:26 */
type RtreeCell1 = struct {
FiRowid I64
FaCoord [10]RtreeCoord
-} /* sqlite3.c:195828:9 */
+} /* sqlite3.c:195903:9 */
-type RtreeCell = RtreeCell1 /* sqlite3.c:195828:26 */
+type RtreeCell = RtreeCell1 /* sqlite3.c:195903:26 */
type RtreeConstraint1 = struct {
FiCoord int32
Fop int32
Fu struct{ FrValue RtreeDValue }
FpInfo uintptr
-} /* sqlite3.c:195826:9 */
+} /* sqlite3.c:195901:9 */
-type RtreeConstraint = RtreeConstraint1 /* sqlite3.c:195829:32 */
+type RtreeConstraint = RtreeConstraint1 /* sqlite3.c:195904:32 */
type RtreeMatchArg1 = struct {
FiSize U32
F__ccgo_pad1 [4]byte
@@ -202051,20 +202111,20 @@ type RtreeMatchArg1 = struct {
F__ccgo_pad2 [4]byte
FapSqlParam uintptr
FaParam [1]RtreeDValue
-} /* sqlite3.c:195830:9 */
+} /* sqlite3.c:195905:9 */
-type RtreeMatchArg = RtreeMatchArg1 /* sqlite3.c:195830:30 */
+type RtreeMatchArg = RtreeMatchArg1 /* sqlite3.c:195905:30 */
type RtreeGeomCallback1 = struct {
FxGeom uintptr
FxQueryFunc uintptr
FxDestructor uintptr
FpContext uintptr
-} /* sqlite3.c:195830:9 */
+} /* sqlite3.c:195905:9 */
-type RtreeGeomCallback = RtreeGeomCallback1 /* sqlite3.c:195831:34 */
-type RtreeCoord1 = struct{ Ff RtreeValue } /* sqlite3.c:195828:9 */
+type RtreeGeomCallback = RtreeGeomCallback1 /* sqlite3.c:195906:34 */
+type RtreeCoord1 = struct{ Ff RtreeValue } /* sqlite3.c:195903:9 */
-type RtreeCoord = RtreeCoord1 /* sqlite3.c:195832:26 */
+type RtreeCoord = RtreeCoord1 /* sqlite3.c:195907:26 */
type RtreeSearchPoint1 = struct {
FrScore RtreeDValue
Fid Sqlite3_int64
@@ -202072,17 +202132,17 @@ type RtreeSearchPoint1 = struct {
FeWithin U8
FiCell U8
F__ccgo_pad1 [5]byte
-} /* sqlite3.c:195826:9 */
+} /* sqlite3.c:195901:9 */
-type RtreeSearchPoint = RtreeSearchPoint1 /* sqlite3.c:195833:33 */
+type RtreeSearchPoint = RtreeSearchPoint1 /* sqlite3.c:195908: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:195930:18 */ // High accuracy coordinate
-type RtreeValue = float32 /* sqlite3.c:195931:17 */
+type RtreeDValue = float64 /* sqlite3.c:196005:18 */ // High accuracy coordinate
+type RtreeValue = float32 /* sqlite3.c:196006: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
@@ -202109,16 +202169,16 @@ type RtreeValue = float32 /* sqlite3.c:195931: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:196215:12: */
+func readInt16(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:196290: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:196218:13: */
+func readCoord(tls *libc.TLS, p uintptr, pCoord uintptr) { /* sqlite3.c:196293:13: */
// p is always 4-byte aligned
*(*U32)(unsafe.Pointer(pCoord)) = U32(libc.X_byteswap_ulong(tls, uint32(*(*U32)(unsafe.Pointer(p)))))
}
-func readInt64(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:196235:12: */
+func readInt64(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:196310:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -202131,12 +202191,12 @@ func readInt64(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:196235: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:196267:13: */
+func writeInt16(tls *libc.TLS, p uintptr, i int32) { /* sqlite3.c:196342: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:196271:12: */
+func writeCoord(tls *libc.TLS, p uintptr, pCoord uintptr) int32 { /* sqlite3.c:196346:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -202149,7 +202209,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:196294:12: */
+func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* sqlite3.c:196369:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*I64)(unsafe.Pointer(bp)) = i
@@ -202160,7 +202220,7 @@ func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* sqlite3.c:196294:12:
}
// Increment the reference count of node p.
-func nodeReference(tls *libc.TLS, p uintptr) { /* sqlite3.c:196319:13: */
+func nodeReference(tls *libc.TLS, p uintptr) { /* sqlite3.c:196394:13: */
if p != 0 {
(*RtreeNode)(unsafe.Pointer(p)).FnRef++
@@ -202168,20 +202228,20 @@ func nodeReference(tls *libc.TLS, p uintptr) { /* sqlite3.c:196319:13: */
}
// Clear the content of node p (set all bytes to 0x00).
-func nodeZero(tls *libc.TLS, pRtree uintptr, p uintptr) { /* sqlite3.c:196329:13: */
+func nodeZero(tls *libc.TLS, pRtree uintptr, p uintptr) { /* sqlite3.c:196404: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:196338:21: */
+func nodeHash(tls *libc.TLS, iNode I64) uint32 { /* sqlite3.c:196413: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:196346:18: */
+func nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode I64) uintptr { /* sqlite3.c:196421: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 {
}
@@ -202189,7 +202249,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:196355:13: */
+func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* sqlite3.c:196430:13: */
var iHash int32
iHash = int32(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))
@@ -202198,7 +202258,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:196366:13: */
+func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* sqlite3.c:196441:13: */
var pp uintptr
if (*RtreeNode)(unsafe.Pointer(pNode)).FiNode != int64(0) {
pp = pRtree + 192 + uintptr(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))*8
@@ -202213,7 +202273,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:196382:18: */
+func nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) uintptr { /* sqlite3.c:196457:18: */
var pNode uintptr
pNode = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(RtreeNode{}))+uint64((*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize))
if pNode != 0 {
@@ -202229,7 +202289,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:196400:13: */
+func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:196475: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)
@@ -202238,7 +202298,7 @@ func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:196400: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:196411:12: */
+func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNode uintptr) int32 { /* sqlite3.c:196486:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -202270,11 +202330,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+26238, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
+ var zTab uintptr = Xsqlite3_mprintf(tls, ts+26246, 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+26246, iNode, 0,
+ rc = Xsqlite3_blob_open(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, zTab, ts+26254, iNode, 0,
pRtree+112)
Xsqlite3_free(tls, zTab)
}
@@ -202348,7 +202408,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:196524:13: */
+func nodeOverwriteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iCell int32) { /* sqlite3.c:196599: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))
@@ -202359,7 +202419,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:196542:13: */
+func nodeDeleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) { /* sqlite3.c:196617: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)
@@ -202372,7 +202432,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:196557:12: */
+func nodeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* sqlite3.c:196632:12: */
var nCell int32 // Current number of cells in pNode
var nMaxCell int32 // Maximum number of cells for pNode
@@ -202389,7 +202449,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:196581:12: */
+func nodeWrite(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite3.c:196656:12: */
var rc int32 = SQLITE_OK
if (*RtreeNode)(unsafe.Pointer(pNode)).FisDirty != 0 {
var p uintptr = (*Rtree)(unsafe.Pointer(pRtree)).FpWriteNode
@@ -202413,7 +202473,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:196607:12: */
+func nodeRelease(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite3.c:196682:12: */
var rc int32 = SQLITE_OK
if pNode != 0 {
@@ -202439,19 +202499,19 @@ 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:196636:12: */
+func nodeGetRowid(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) I64 { /* sqlite3.c:196711: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:196648:13: */
+func nodeGetCoord(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iCoord int32, pCoord uintptr) { /* sqlite3.c:196723: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:196662:13: */
+func nodeGetCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, pCell uintptr) { /* sqlite3.c:196737:13: */
var pData uintptr
var pCoord uintptr
var ii int32 = 0
@@ -202467,23 +202527,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:196693:12: */
+func rtreeCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:196768: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:196706:12: */
+func rtreeConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:196781: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:196719:13: */
+func rtreeReference(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:196794: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:196727:13: */
+func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:196802:13: */
(*Rtree)(unsafe.Pointer(pRtree)).FnBusy--
if (*Rtree)(unsafe.Pointer(pRtree)).FnBusy == U32(0) {
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0)
@@ -202505,13 +202565,13 @@ func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* sqlite3.c:196727:13: */
}
// Rtree virtual table module xDisconnect method.
-func rtreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:196751:12: */
+func rtreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:196826:12: */
rtreeRelease(tls, pVtab)
return SQLITE_OK
}
// Rtree virtual table module xDestroy method.
-func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:196759:12: */
+func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:196834:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -202519,7 +202579,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:196759:12:
var rc int32
var zCreate uintptr = Xsqlite3_mprintf(tls,
- ts+26251,
+ ts+26259,
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))
@@ -202538,7 +202598,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:196759:12:
}
// Rtree virtual table module xOpen method.
-func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite3.c:196787:12: */
+func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite3.c:196862:12: */
var rc int32 = SQLITE_NOMEM
var pRtree uintptr = pVTab
var pCsr uintptr
@@ -202556,7 +202616,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:196808:13: */
+func resetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:196883:13: */
var pRtree uintptr = (*RtreeCursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var ii int32
var pStmt uintptr
@@ -202586,7 +202646,7 @@ func resetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:196808:13: */
}
// Rtree virtual table module xClose method.
-func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:196836:12: */
+func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:196911:12: */
var pRtree uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
var pCsr uintptr = cur
@@ -202602,7 +202662,7 @@ func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:196836: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:196854:12: */
+func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:196929:12: */
var pCsr uintptr = cur
return int32((*RtreeCursor)(unsafe.Pointer(pCsr)).FatEOF)
}
@@ -202619,7 +202679,7 @@ func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* sqlite3.c:196854: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:196909:12: */
+func rtreeCallbackConstraint(tls *libc.TLS, pConstraint uintptr, eInt int32, pCellData uintptr, pSearch uintptr, prScore uintptr, peWithin uintptr) int32 { /* sqlite3.c:196984:12: */
bp := tls.Alloc(92)
defer tls.Free(92)
@@ -202731,7 +202791,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:196985:13: */
+func rtreeNonleafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* sqlite3.c:197060:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -202829,7 +202889,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:197042:13: */
+func rtreeLeafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* sqlite3.c:197117:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -202884,7 +202944,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:197072:12: */
+func nodeRowidIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, iRowid I64, piIndex uintptr) int32 { /* sqlite3.c:197147:12: */
var ii int32
var nCell int32 = readInt16(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+2)
@@ -202900,7 +202960,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:197095:12: */
+func nodeParentIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, piIndex uintptr) int32 { /* sqlite3.c:197170:12: */
var pParent uintptr = (*RtreeNode)(unsafe.Pointer(pNode)).FpParent
if pParent != 0 {
return nodeRowidIndex(tls, pRtree, pParent, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode, piIndex)
@@ -202919,7 +202979,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:197115:12: */
+func rtreeSearchPointCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* sqlite3.c:197190:12: */
if (*RtreeSearchPoint)(unsafe.Pointer(pA)).FrScore < (*RtreeSearchPoint)(unsafe.Pointer(pB)).FrScore {
return -1
}
@@ -202936,7 +202996,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:197129:13: */
+func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* sqlite3.c:197204: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))
@@ -202956,7 +203016,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:197150:25: */
+func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* sqlite3.c:197225:25: */
if (*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint != 0 {
return pCur + 64
}
@@ -202967,7 +203027,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:197157:18: */
+func rtreeNodeOfFirstSearchPoint(tls *libc.TLS, pCur uintptr, pRC uintptr) uintptr { /* sqlite3.c:197232:18: */
var id Sqlite3_int64
var ii int32 = 1 - int32((*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint)
@@ -202984,7 +203044,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:197173:25: */
+func rtreeEnqueue(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* sqlite3.c:197248:25: */
var i int32
var j int32
var pNew uintptr
@@ -203018,7 +203078,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:197208:25: */
+func rtreeSearchPointNew(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* sqlite3.c:197283:25: */
var pNew uintptr
var pFirst uintptr
pFirst = rtreeSearchPointFirst(tls, pCur)
@@ -203054,7 +203114,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:197276:13: */
+func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* sqlite3.c:197351:13: */
var i int32
var j int32
var k int32
@@ -203102,7 +203162,7 @@ func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* sqlite3.c:197276: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:197324:12: */
+func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:197399:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -203195,7 +203255,7 @@ func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* sqlite3.c:197324:12
}
// Rtree virtual table module xNext method.
-func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:197405:12: */
+func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:197480:12: */
var pCsr uintptr = pVtabCursor
var rc int32 = SQLITE_OK
@@ -203211,7 +203271,7 @@ func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* sqlite3.c:197405:1
}
// Rtree virtual table module xRowid method.
-func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* sqlite3.c:197423:12: */
+func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* sqlite3.c:197498:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -203226,7 +203286,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:197437:12: */
+func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:197512:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -203287,7 +203347,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:197491:12: */
+func findLeafNode(tls *libc.TLS, pRtree uintptr, iRowid I64, ppLeaf uintptr, piNode uintptr) int32 { /* sqlite3.c:197566:12: */
var rc int32
*(*uintptr)(unsafe.Pointer(ppLeaf)) = uintptr(0)
Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpReadRowid, 1, iRowid)
@@ -203308,12 +203368,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:197517:12: */
+func deserializeGeometry(tls *libc.TLS, pValue uintptr, pCons uintptr) int32 { /* sqlite3.c:197592:12: */
var pBlob uintptr
var pSrc uintptr // BLOB returned by geometry function
var pInfo uintptr // Callback information
- pSrc = Xsqlite3_value_pointer(tls, pValue, ts+26333)
+ pSrc = Xsqlite3_value_pointer(tls, pValue, ts+26341)
if pSrc == uintptr(0) {
return SQLITE_ERROR
}
@@ -203340,7 +203400,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:197547:12: */
+func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3.c:197622:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -203483,7 +203543,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:197700:12: */
+func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* sqlite3.c:197775:12: */
bp := tls.Alloc(49)
defer tls.Free(49)
@@ -203590,7 +203650,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:197789:20: */
+func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* sqlite3.c:197864:20: */
var area RtreeDValue = RtreeDValue(1)
if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 {
@@ -203633,7 +203693,7 @@ 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:197819:20: */
+func cellMargin(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* sqlite3.c:197894:20: */
var margin RtreeDValue = RtreeDValue(0)
var ii int32 = int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) - 2
for __ccgo := true; __ccgo; __ccgo = ii >= 0 {
@@ -203654,7 +203714,7 @@ 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:197832:13: */
+func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* sqlite3.c:197907:13: */
var ii int32 = 0
if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 {
for __ccgo := true; __ccgo; __ccgo = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) {
@@ -203693,7 +203753,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:197853:12: */
+func cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) int32 { /* sqlite3.c:197928: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 {
@@ -203708,7 +203768,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:197871:20: */
+func cellGrowth(tls *libc.TLS, pRtree uintptr, p uintptr, pCell uintptr) RtreeDValue { /* sqlite3.c:197946:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -203721,7 +203781,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:197880:20: */
+func cellOverlap(tls *libc.TLS, pRtree uintptr, p uintptr, aCell uintptr, nCell int32) RtreeDValue { /* sqlite3.c:197955:20: */
var ii int32
var overlap RtreeDValue = 0.0
for ii = 0; ii < nCell; ii++ {
@@ -203796,7 +203856,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:197912:12: */
+func sChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, ppLeaf uintptr) int32 { /* sqlite3.c:197987:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -203852,7 +203912,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:197972:12: */
+func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* sqlite3.c:198047:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -203888,7 +203948,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:198010:12: */
+func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlite3_int64) int32 { /* sqlite3.c:198085: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)
@@ -203896,7 +203956,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:198020:12: */
+func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite3_int64) int32 { /* sqlite3.c:198095: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)
@@ -203918,7 +203978,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:198047:13: */
+func sSortByDistance(tls *libc.TLS, aIdx uintptr, nIdx int32, aDistance uintptr, aSpare uintptr) { /* sqlite3.c:198122:13: */
if nIdx > 1 {
var iLeft int32 = 0
var iRight int32 = 0
@@ -203966,7 +204026,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:198113:13: */
+func sSortByDimension(tls *libc.TLS, pRtree uintptr, aIdx uintptr, nIdx int32, iDim int32, aCell uintptr, aSpare uintptr) { /* sqlite3.c:198188:13: */
if nIdx > 1 {
var iLeft int32 = 0
@@ -204022,7 +204082,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:198172:12: */
+func splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int32, pLeft uintptr, pRight uintptr, pBboxLeft uintptr, pBboxRight uintptr) int32 { /* sqlite3.c:198247:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -204121,7 +204181,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:198270:12: */
+func updateMapping(tls *libc.TLS, pRtree uintptr, iRowid I64, pNode uintptr, iHeight int32) int32 { /* sqlite3.c:198345:12: */
var xSetMapping uintptr
xSetMapping = func() uintptr {
if iHeight == 0 {
@@ -204155,7 +204215,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:198294:12: */
+func sSplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* sqlite3.c:198369:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -204390,7 +204450,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:198442:12: */
+func fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) int32 { /* sqlite3.c:198517: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) {
@@ -204425,7 +204485,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:198477:12: */
+func removeNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, iHeight int32) int32 { /* sqlite3.c:198552:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -204475,7 +204535,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:198527:12: */
+func fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite3.c:198602:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -204506,7 +204566,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:198554:12: */
+func deleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iHeight int32) int32 { /* sqlite3.c:198629:12: */
var pParent uintptr
var rc int32
@@ -204535,7 +204595,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:198585:12: */
+func sReinsert(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* sqlite3.c:198660:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -204650,7 +204710,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:198690:12: */
+func rtreeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* sqlite3.c:198765:12: */
var rc int32 = SQLITE_OK
if iHeight > 0 {
var pChild uintptr = nodeHashLookup(tls, pRtree, (*RtreeCell)(unsafe.Pointer(pCell)).FiRowid)
@@ -204680,7 +204740,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:198725:12: */
+func reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* sqlite3.c:198800:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -204711,7 +204771,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:198754:12: */
+func rtreeNewRowid(tls *libc.TLS, pRtree uintptr, piRowid uintptr) int32 { /* sqlite3.c:198829:12: */
var rc int32
Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 1)
Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 2)
@@ -204722,7 +204782,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:198767:12: */
+func rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Sqlite3_int64) int32 { /* sqlite3.c:198842:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -204811,7 +204871,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:198864:19: */
+func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:198939:19: */
var d float64 = Xsqlite3_value_double(tls, v)
var f float32 = float32(d)
if float64(f) > d {
@@ -204825,7 +204885,7 @@ func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:198864:1
return f
}
-func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:198872:19: */
+func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:198947:19: */
var d float64 = Xsqlite3_value_double(tls, v)
var f float32 = float32(d)
if float64(f) < d {
@@ -204850,7 +204910,7 @@ func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* sqlite3.c:198872: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:198895:12: */
+func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* sqlite3.c:198970:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -204858,7 +204918,7 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /*
var zSql uintptr
var rc int32
- zSql = Xsqlite3_mprintf(tls, ts+26347, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, ts+26355, 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 {
@@ -204870,12 +204930,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+26367, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol))
+ ts+26375, 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+26399, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
+ ts+26407, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
}
}
@@ -204889,7 +204949,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:198933:12: */
+func rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* sqlite3.c:199008:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -205118,7 +205178,7 @@ constraint:
}
// Called when a transaction starts.
-func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:199081:12: */
+func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:199156:12: */
var pRtree uintptr = pVtab
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans++
@@ -205127,7 +205187,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:199092:12: */
+func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:199167:12: */
var pRtree uintptr = pVtab
(*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0)
nodeBlobReset(tls, pRtree)
@@ -205135,7 +205195,7 @@ func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:1990
}
// The xRename method for rtree module virtual tables.
-func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqlite3.c:199102:12: */
+func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqlite3.c:199177:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -205143,7 +205203,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* sqli
var rc int32 = SQLITE_NOMEM
var zSql uintptr = Xsqlite3_mprintf(tls,
- ts+26436, 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+26444, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName))
if zSql != 0 {
nodeBlobReset(tls, pRtree)
rc = Xsqlite3_exec(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, zSql, uintptr(0), uintptr(0), uintptr(0))
@@ -205164,7 +205224,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:199135:12: */
+func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* sqlite3.c:199210:12: */
var pRtree uintptr = pVtab
var iwt U8 = (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans
_ = iSavepoint
@@ -205177,11 +205237,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:199150:12: */
+func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* sqlite3.c:199225:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
- var zFmt uintptr = ts + 26581 /* "SELECT stat FROM..." */
+ var zFmt uintptr = ts + 26589 /* "SELECT stat FROM..." */
var zSql uintptr
// var p uintptr at bp+16, 8
@@ -205189,7 +205249,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+12577, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
+ db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+12585, 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 {
@@ -205221,7 +205281,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:199184:12: */
+func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:199259: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 {
@@ -205232,8 +205292,8 @@ func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:199184:1
}
var azName1 = [3]uintptr{
- ts + 26637, ts + 6363, ts + 17524,
-} /* sqlite3.c:199185:21 */
+ ts + 26645, ts + 6363, ts + 17532,
+} /* sqlite3.c:199260:21 */
var rtreeModule = Sqlite3_module{
FiVersion: 3, // iVersion
@@ -205257,9 +205317,9 @@ var rtreeModule = Sqlite3_module{
FxRename: 0, // xRename - rename the table
FxSavepoint: 0, // xRollbackTo
FxShadowName: 0, // xShadowName
-} /* sqlite3.c:199195:23 */
+} /* sqlite3.c:199270:23 */
-func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefix uintptr, isCreate int32) int32 { /* sqlite3.c:199222:12: */
+func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefix uintptr, isCreate int32) int32 { /* sqlite3.c:199297:12: */
bp := tls.Alloc(232)
defer tls.Free(232)
@@ -205276,19 +205336,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+26642,
+ ts+26650,
libc.VaList(bp, zDb, zPrefix))
for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux); ii++ {
- Xsqlite3_str_appendf(tls, p, ts+26704, libc.VaList(bp+16, ii))
+ Xsqlite3_str_appendf(tls, p, ts+26712, libc.VaList(bp+16, ii))
}
Xsqlite3_str_appendf(tls, p,
- ts+26709,
+ ts+26717,
libc.VaList(bp+24, zDb, zPrefix))
Xsqlite3_str_appendf(tls, p,
- ts+26773,
+ ts+26781,
libc.VaList(bp+40, zDb, zPrefix))
Xsqlite3_str_appendf(tls, p,
- ts+26843,
+ ts+26851,
libc.VaList(bp+56, zDb, zPrefix, (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize))
zCreate = Xsqlite3_str_finish(tls, p)
if !(zCreate != 0) {
@@ -205319,7 +205379,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 + 26892 /* "INSERT INTO\"%w\"...." */
+ zFormat = ts + 26900 /* "INSERT INTO\"%w\"...." */
}
zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+80, zDb, zPrefix))
if zSql != 0 {
@@ -205331,7 +205391,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+27000,
+ ts+27008,
libc.VaList(bp+96, zDb, zPrefix))
if (*Rtree)(unsafe.Pointer(pRtree)).FzReadAuxSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -205339,18 +205399,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+27045, libc.VaList(bp+112, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, ts+27053, 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+14048, 1)
+ Xsqlite3_str_append(tls, p, ts+14056, 1)
}
if ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) {
- Xsqlite3_str_appendf(tls, p, ts+27072, libc.VaList(bp+128, ii, ii+2, ii))
+ Xsqlite3_str_appendf(tls, p, ts+27080, libc.VaList(bp+128, ii, ii+2, ii))
} else {
- Xsqlite3_str_appendf(tls, p, ts+27094, libc.VaList(bp+152, ii, ii+2))
+ Xsqlite3_str_appendf(tls, p, ts+27102, libc.VaList(bp+152, ii, ii+2))
}
}
- Xsqlite3_str_appendf(tls, p, ts+27102, 0)
+ Xsqlite3_str_appendf(tls, p, ts+27110, 0)
zSql = Xsqlite3_str_finish(tls, p)
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -205366,24 +205426,24 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi
var azSql = [8]uintptr{
- ts + 27118,
- ts + 27171,
+ ts + 27126,
+ ts + 27179,
- ts + 27216,
- ts + 27268,
- ts + 27322,
+ ts + 27224,
+ ts + 27276,
+ ts + 27330,
- ts + 27367,
- ts + 27425,
- ts + 27480,
-} /* sqlite3.c:199232:21 */
+ ts + 27375,
+ ts + 27433,
+ ts + 27488,
+} /* sqlite3.c:199307: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:199355:12: */
+func getIntFromStmt(tls *libc.TLS, db uintptr, zSql uintptr, piVal uintptr) int32 { /* sqlite3.c:199430:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -205414,7 +205474,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:199385:12: */
+func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzErr uintptr) int32 { /* sqlite3.c:199460:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -205422,7 +205482,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+27527, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb))
+ zSql = Xsqlite3_mprintf(tls, ts+27535, 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
@@ -205434,7 +205494,7 @@ func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzEr
}
} else {
zSql = Xsqlite3_mprintf(tls,
- ts+27547,
+ ts+27555,
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 {
@@ -205442,7 +205502,7 @@ func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzEr
} else if (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize < 512-64 {
rc = SQLITE_CORRUPT | int32(1)<<8
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+27604,
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+27612,
libc.VaList(bp+40, (*Rtree)(unsafe.Pointer(pRtree)).FzName))
}
}
@@ -205452,7 +205512,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:199428:12: */
+func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:199503:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -205467,7 +205527,7 @@ func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:199428: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:199442:12: */
+func rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr, isCreate int32) int32 { /* sqlite3.c:199517:12: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -205493,10 +205553,10 @@ 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 + 27639,
- ts + 27682,
- ts + 27717,
- ts + 27753,
+ ts + 27647,
+ ts + 27690,
+ ts + 27725,
+ ts + 27761,
}
// Aux columns counted by a u8
@@ -205533,7 +205593,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+27790,
+ Xsqlite3_str_appendf(tls, pSql, ts+27798,
libc.VaList(bp+16, rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8))))
ii = 4
__3:
@@ -205545,7 +205605,7 @@ __3:
goto __6
}
(*Rtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, ts+27814, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
+ Xsqlite3_str_appendf(tls, pSql, ts+27822, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
goto __7
__6:
if !(int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux) > 0) {
@@ -205568,7 +205628,7 @@ __4:
goto __5
__5:
;
- Xsqlite3_str_appendf(tls, pSql, ts+27820, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+27828, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !!(zSql != 0) {
goto __10
@@ -205667,7 +205727,7 @@ __25:
return rc
}
-var azFormat = [2]uintptr{ts + 27823, ts + 27834} /* sqlite3.c:199508:25 */
+var azFormat = [2]uintptr{ts + 27831, ts + 27842} /* sqlite3.c:199583:25 */
// Implementation of a scalar function that decodes r-tree nodes to
// human readable strings. This can be used for debugging and analysis.
@@ -205683,7 +205743,7 @@ var azFormat = [2]uintptr{ts + 27823, ts + 27834} /* sqlite3.c:199508: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:199579:13: */
+func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:199654:13: */
bp := tls.Alloc(1072)
defer tls.Free(1072)
@@ -205727,11 +205787,11 @@ func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlit
if ii > 0 {
Xsqlite3_str_append(tls, pOut, ts+12157, 1)
}
- Xsqlite3_str_appendf(tls, pOut, ts+27844, libc.VaList(bp, (*RtreeCell)(unsafe.Pointer(bp+1024 /* &cell */)).FiRowid))
+ Xsqlite3_str_appendf(tls, pOut, ts+27852, 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+27850, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4)))))
+ Xsqlite3_str_appendf(tls, pOut, ts+27858, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4)))))
}
- Xsqlite3_str_append(tls, pOut, ts+27854, 1)
+ Xsqlite3_str_append(tls, pOut, ts+27862, 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})))
@@ -205746,11 +205806,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:199631:13: */
+func rtreedepth(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:199706: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+27856, -1)
+ Xsqlite3_result_error(tls, ctx, ts+27864, -1)
} else {
var zBlob uintptr = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if zBlob != 0 {
@@ -205778,15 +205838,15 @@ type RtreeCheck1 = struct {
FzReport uintptr
FnErr int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:199652:9 */
+} /* sqlite3.c:199727:9 */
// Context object passed between the various routines that make up the
// implementation of integrity-check function rtreecheck().
-type RtreeCheck = RtreeCheck1 /* sqlite3.c:199652:27 */
+type RtreeCheck = RtreeCheck1 /* sqlite3.c:199727: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:199674:13: */
+func rtreeCheckReset(tls *libc.TLS, pCheck uintptr, pStmt uintptr) { /* sqlite3.c:199749:13: */
var rc int32 = Xsqlite3_reset(tls, pStmt)
if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK {
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = rc
@@ -205799,7 +205859,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:199687:21: */
+func rtreeCheckPrepare(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) uintptr { /* sqlite3.c:199762:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -205827,7 +205887,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:199716:13: */
+func rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) { /* sqlite3.c:199791:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -205839,7 +205899,7 @@ 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+27889,
+ (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, ts+27897,
libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport, func() uintptr {
if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport != 0 {
return ts + 5365 /* "\n" */
@@ -205867,7 +205927,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:199750:11: */
+func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) uintptr { /* sqlite3.c:199825:11: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -205875,7 +205935,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+27896,
+ ts+27904,
libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
}
@@ -205894,7 +205954,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+27941, libc.VaList(bp+16, iNode))
+ rtreeCheckAppendMsg(tls, pCheck, ts+27949, libc.VaList(bp+16, iNode))
}
}
@@ -205911,15 +205971,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:199794:13: */
+func rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey I64, iVal I64) { /* sqlite3.c:199869: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 + 27973,
- ts + 28027,
+ ts + 27981,
+ ts + 28035,
}
if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) {
@@ -205934,23 +205994,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+28075,
+ rtreeCheckAppendMsg(tls, pCheck, ts+28083,
libc.VaList(bp+16, iKey, iVal, func() uintptr {
if bLeaf != 0 {
- return ts + 28120 /* "%_rowid" */
+ return ts + 28128 /* "%_rowid" */
}
- return ts + 28128 /* "%_parent" */
+ return ts + 28136 /* "%_parent" */
}()))
} else if rc == SQLITE_ROW {
var ii I64 = Xsqlite3_column_int64(tls, pStmt, 0)
if ii != iVal {
rtreeCheckAppendMsg(tls, pCheck,
- ts+28137,
+ ts+28145,
libc.VaList(bp+40, iKey, ii, func() uintptr {
if bLeaf != 0 {
- return ts + 28120 /* "%_rowid" */
+ return ts + 28128 /* "%_rowid" */
}
- return ts + 28128 /* "%_parent" */
+ return ts + 28136 /* "%_parent" */
}(), iKey, iVal))
}
}
@@ -205967,7 +206027,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:199846:13: */
+func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, pCell uintptr, pParent uintptr) { /* sqlite3.c:199921:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -205993,7 +206053,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+28195, libc.VaList(bp, i, iCell, iNode))
+ ts+28203, libc.VaList(bp, i, iCell, iNode))
}
if pParent != 0 {
@@ -206013,7 +206073,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+28243, libc.VaList(bp+24, i, iCell, iNode))
+ ts+28251, libc.VaList(bp+24, i, iCell, iNode))
}
}
}
@@ -206025,7 +206085,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:199892:13: */
+func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr, iNode I64) { /* sqlite3.c:199967:13: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -206036,14 +206096,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+28310, libc.VaList(bp, iNode, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */))))
+ ts+28318, 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+28344, libc.VaList(bp+16, iDepth))
+ rtreeCheckAppendMsg(tls, pCheck, ts+28352, libc.VaList(bp+16, iDepth))
Xsqlite3_free(tls, aNode)
return
}
@@ -206051,7 +206111,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+28374,
+ ts+28382,
libc.VaList(bp+24, iNode, nCell, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */))))
} else {
for i = 0; i < nCell; i++ {
@@ -206079,20 +206139,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:199955:13: */
+func rtreeCheckCount(tls *libc.TLS, pCheck uintptr, zTbl uintptr, nExpect I64) { /* sqlite3.c:200030: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+28429,
+ pCount = rtreeCheckPrepare(tls, pCheck, ts+28437,
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+28460, libc.VaList(bp+24, zTbl, nExpect, nActual))
+ ts+28468, libc.VaList(bp+24, zTbl, nExpect, nActual))
}
}
(*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount)
@@ -206102,7 +206162,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:199979:12: */
+func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzReport uintptr) int32 { /* sqlite3.c:200054:12: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -206122,13 +206182,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+15789, uintptr(0), uintptr(0), uintptr(0))
+ (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = Xsqlite3_exec(tls, db, ts+15797, 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+28527, libc.VaList(bp, zDb, zTab))
+ pStmt = rtreeCheckPrepare(tls, bp+32, ts+28535, libc.VaList(bp, zDb, zTab))
if pStmt != 0 {
nAux = Xsqlite3_column_count(tls, pStmt) - 2
Xsqlite3_finalize(tls, pStmt)
@@ -206138,12 +206198,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+26347, libc.VaList(bp+16, zDb, zTab))
+ pStmt = rtreeCheckPrepare(tls, bp+32, ts+26355, 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+28555, 0)
+ rtreeCheckAppendMsg(tls, bp+32, ts+28563, 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)
}
@@ -206158,8 +206218,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+28586, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf))
- rtreeCheckCount(tls, bp+32, ts+28593, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf))
+ rtreeCheckCount(tls, bp+32, ts+28594, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf))
+ rtreeCheckCount(tls, bp+32, ts+28601, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf))
}
// Finalize SQL statements used by the integrity-check
@@ -206169,7 +206229,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+28601, uintptr(0), uintptr(0), uintptr(0))
+ var rc int32 = Xsqlite3_exec(tls, db, ts+28609, uintptr(0), uintptr(0), uintptr(0))
if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK {
(*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = rc
}
@@ -206209,13 +206269,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:200086:13: */
+func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:200161:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
if nArg != 1 && nArg != 2 {
Xsqlite3_result_error(tls, ctx,
- ts+28605, -1)
+ ts+28613, -1)
} else {
var rc int32
*(*uintptr)(unsafe.Pointer(bp /* zReport */)) = uintptr(0)
@@ -206233,7 +206293,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 + 19172 /* "ok" */
+ return ts + 19180 /* "ok" */
}(), -1, libc.UintptrFromInt32(-1))
} else {
Xsqlite3_result_error_code(tls, ctx, rc)
@@ -206272,7 +206332,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* sqli
// Compiler and version
// Datatype for coordinates
-type GeoCoord = float32 /* sqlite3.c:200207:15 */
+type GeoCoord = float32 /* sqlite3.c:200282:15 */
// Internal representation of a polygon.
//
@@ -206298,7 +206358,7 @@ type GeoPoly1 = struct {
FnVertex int32
Fhdr [4]uint8
Fa [8]GeoCoord
-} /* sqlite3.c:200231:9 */
+} /* sqlite3.c:200306:9 */
// Internal representation of a polygon.
//
@@ -206320,7 +206380,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:200231:24 */
+type GeoPoly = GeoPoly1 /* sqlite3.c:200306:24 */
// The size of a memory allocation needed for a GeoPoly object sufficient
// to hold N coordinate pairs.
@@ -206337,7 +206397,7 @@ type GeoParse1 = struct {
FnErr int32
F__ccgo_pad1 [4]byte
Fa uintptr
-} /* sqlite3.c:200254:9 */
+} /* sqlite3.c:200329:9 */
// The size of a memory allocation needed for a GeoPoly object sufficient
// to hold N coordinate pairs.
@@ -206347,10 +206407,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:200254:25 */
+type GeoParse = GeoParse1 /* sqlite3.c:200329:25 */
// Do a 4-byte byte swap
-func geopolySwab32(tls *libc.TLS, a uintptr) { /* sqlite3.c:200264:13: */
+func geopolySwab32(tls *libc.TLS, a uintptr) { /* sqlite3.c:200339:13: */
var t uint8 = *(*uint8)(unsafe.Pointer(a))
*(*uint8)(unsafe.Pointer(a)) = *(*uint8)(unsafe.Pointer(a + 3))
*(*uint8)(unsafe.Pointer(a + 3)) = t
@@ -206360,7 +206420,7 @@ func geopolySwab32(tls *libc.TLS, a uintptr) { /* sqlite3.c:200264:13: */
}
// Skip whitespace. Return the next non-whitespace character.
-func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* sqlite3.c:200274:13: */
+func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* sqlite3.c:200349:13: */
for jsonIsSpace[*(*uint8)(unsafe.Pointer((*GeoParse)(unsafe.Pointer(p)).Fz))] != 0 {
(*GeoParse)(unsafe.Pointer(p)).Fz++
}
@@ -206369,7 +206429,7 @@ func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* sqlite3.c:200274: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:200282:12: */
+func geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) int32 { /* sqlite3.c:200357:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -206441,7 +206501,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:200340:16: */
+func geopolyParseJson(tls *libc.TLS, z uintptr, pRc uintptr) uintptr { /* sqlite3.c:200415:16: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -206583,7 +206643,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:200417:16: */
+func geopolyFuncParam(tls *libc.TLS, pCtx uintptr, pVal uintptr, pRc uintptr) uintptr { /* sqlite3.c:200492:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -206652,7 +206712,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:200478:13: */
+func geopolyBlobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200553:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
Xsqlite3_result_blob(tls, context, p+4,
@@ -206665,7 +206725,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:200497:13: */
+func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200572:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -206674,11 +206734,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+28656, 1)
+ Xsqlite3_str_append(tls, x, ts+28664, 1)
for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ {
- Xsqlite3_str_appendf(tls, x, ts+28658, 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+28666, libc.VaList(bp, float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2)*4))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2+1)*4)))))
}
- Xsqlite3_str_appendf(tls, x, ts+28669, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
+ Xsqlite3_str_appendf(tls, x, ts+28677, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
Xsqlite3_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)
}
@@ -206688,7 +206748,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:200523:13: */
+func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200598:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -206702,19 +206762,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+28680, 0)
+ Xsqlite3_str_appendf(tls, x, ts+28688, 0)
for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ {
- Xsqlite3_str_appendf(tls, x, ts+28698, 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+28706, libc.VaList(bp, int32(cSep), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2)*4))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2+1)*4)))))
cSep = int8(' ')
}
- Xsqlite3_str_appendf(tls, x, ts+28706, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
+ Xsqlite3_str_appendf(tls, x, ts+28714, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4)))))
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+28714, libc.VaList(bp+40, z))
+ Xsqlite3_str_appendf(tls, x, ts+28722, libc.VaList(bp+40, z))
}
}
- Xsqlite3_str_appendf(tls, x, ts+28718, 0)
+ Xsqlite3_str_appendf(tls, x, ts+28726, 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)
}
@@ -206734,7 +206794,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:200570:13: */
+func geopolyXformFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200645: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)))
@@ -206767,7 +206827,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:200606:15: */
+func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* sqlite3.c:200681:15: */
var rArea float64 = 0.0
var ii int32
for ii = 0; ii < (*GeoPoly)(unsafe.Pointer(p)).FnVertex-1; ii++ {
@@ -206787,7 +206847,7 @@ func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* sqlite3.c:200606: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:200628:13: */
+func geopolyAreaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200703:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
Xsqlite3_result_double(tls, context, geopolyArea(tls, p))
@@ -206806,7 +206866,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:200653:13: */
+func geopolyCcwFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200728:13: */
var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0))
if p != 0 {
if geopolyArea(tls, p) < 0.0 {
@@ -206842,7 +206902,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:200681:15: */
+func geopolySine(tls *libc.TLS, r float64) float64 { /* sqlite3.c:200756:15: */
if r >= float64(1.5)*3.1415926535897932385 {
r = r - float64(2.0)*3.1415926535897932385
@@ -206862,7 +206922,7 @@ func geopolySine(tls *libc.TLS, r float64) float64 { /* sqlite3.c:200681: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:200702:13: */
+func geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200777:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -206907,7 +206967,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:200745:16: */
+func geopolyBBox(tls *libc.TLS, context uintptr, pPoly uintptr, aCoord uintptr, pRc uintptr) uintptr { /* sqlite3.c:200820:16: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -207048,7 +207108,7 @@ __4:
}
// Implementation of the geopoly_bbox(X) SQL function.
-func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200816:13: */
+func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200891: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,
@@ -207061,13 +207121,13 @@ func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
type GeoBBox1 = struct {
FisInit int32
Fa [4]RtreeCoord
-} /* sqlite3.c:200832:9 */
+} /* sqlite3.c:200907:9 */
// State vector for the geopoly_group_bbox() aggregate function.
-type GeoBBox = GeoBBox1 /* sqlite3.c:200832:24 */
+type GeoBBox = GeoBBox1 /* sqlite3.c:200907:24 */
// Implementation of the geopoly_group_bbox(X) aggregate SQL function.
-func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200842:13: */
+func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:200917:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -207101,7 +207161,7 @@ func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
}
-func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* sqlite3.c:200865:13: */
+func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* sqlite3.c:200940:13: */
var p uintptr
var pBBox uintptr
pBBox = Xsqlite3_aggregate_context(tls, context, 0)
@@ -207128,7 +207188,7 @@ func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* sqlite3.c:200865: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:200895:12: */
+func pointBeneathLine(tls *libc.TLS, x0 float64, y0 float64, x1 float64, y1 float64, x2 float64, y2 float64) int32 { /* sqlite3.c:200970:12: */
var y float64
if x0 == x1 && y0 == y1 {
return 2
@@ -207169,7 +207229,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:200926:13: */
+func geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:201001: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)))
@@ -207207,7 +207267,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:200969:13: */
+func geopolyWithinFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:201044: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 {
@@ -207239,10 +207299,10 @@ type GeoEvent1 = struct {
F__ccgo_pad1 [4]byte
FpSeg uintptr
FpNext uintptr
-} /* sqlite3.c:200989:9 */
+} /* sqlite3.c:201064:9 */
// Objects used by the overlap algorihm.
-type GeoEvent = GeoEvent1 /* sqlite3.c:200989:25 */
+type GeoEvent = GeoEvent1 /* sqlite3.c:201064:25 */
type GeoSegment1 = struct {
FC float64
FB float64
@@ -207253,20 +207313,20 @@ type GeoSegment1 = struct {
Fidx uint32
F__ccgo_pad2 [4]byte
FpNext uintptr
-} /* sqlite3.c:200989:9 */
+} /* sqlite3.c:201064:9 */
-type GeoSegment = GeoSegment1 /* sqlite3.c:200990:27 */
+type GeoSegment = GeoSegment1 /* sqlite3.c:201065:27 */
type GeoOverlap1 = struct {
FaEvent uintptr
FaSegment uintptr
FnEvent int32
FnSegment int32
-} /* sqlite3.c:200991:9 */
+} /* sqlite3.c:201066:9 */
-type GeoOverlap = GeoOverlap1 /* sqlite3.c:200991:27 */
+type GeoOverlap = GeoOverlap1 /* sqlite3.c:201066: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:201016:13: */
+func geopolyAddOneSegment(tls *libc.TLS, p uintptr, x0 GeoCoord, y0 GeoCoord, x1 GeoCoord, y1 GeoCoord, side uint8, idx uint32) { /* sqlite3.c:201091:13: */
var pSeg uintptr
var pEvent uintptr
if x0 == x1 {
@@ -207300,7 +207360,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:201060:13: */
+func geopolyAddSegments(tls *libc.TLS, p uintptr, pPoly uintptr, side uint8) { /* sqlite3.c:201135:13: */
var i uint32
var x uintptr
for i = uint32(0); i < uint32((*GeoPoly)(unsafe.Pointer(pPoly)).FnVertex)-uint32(1); i++ {
@@ -207312,7 +207372,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:201078:17: */
+func geopolyEventMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:201153:17: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -207342,7 +207402,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:201100:17: */
+func geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) uintptr { /* sqlite3.c:201175:17: */
bp := tls.Alloc(400)
defer tls.Free(400)
@@ -207372,7 +207432,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:201125:19: */
+func geopolySegmentMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:201200:19: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -207407,7 +207467,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:201150:19: */
+func geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) uintptr { /* sqlite3.c:201225:19: */
bp := tls.Alloc(400)
defer tls.Free(400)
@@ -207437,7 +207497,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:201176:12: */
+func geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* sqlite3.c:201251:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -207673,7 +207733,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:201299:13: */
+func geopolyOverlapFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:201374: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 {
@@ -207689,7 +207749,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:201321:13: */
+func geopolyDebugFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:201396:13: */
}
// This function is the implementation of both the xConnect and xCreate
@@ -207699,7 +207759,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:201340:12: */
+func geopolyInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr, isCreate int32) int32 { /* sqlite3.c:201415:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -207739,7 +207799,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+28731, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+28739, 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
@@ -207748,7 +207808,7 @@ __2:
goto __4
}
(*Rtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, ts+28753, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
+ Xsqlite3_str_appendf(tls, pSql, ts+28761, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
goto __3
__3:
ii++
@@ -207756,7 +207816,7 @@ __3:
goto __4
__4:
;
- Xsqlite3_str_appendf(tls, pSql, ts+27820, 0)
+ Xsqlite3_str_appendf(tls, pSql, ts+27828, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !!(zSql != 0) {
goto __5
@@ -207814,12 +207874,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:201424:12: */
+func geopolyCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:201499: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:201437:12: */
+func geopolyConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:201512:12: */
return geopolyInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 0)
}
@@ -207833,7 +207893,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:201460:12: */
+func geopolyFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3.c:201535:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -208000,7 +208060,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:201592:12: */
+func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* sqlite3.c:201667:12: */
var ii int32
var iRowidTerm int32 = -1
var iFuncTerm int32 = -1
@@ -208026,7 +208086,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 + 17524 /* "rowid" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 17532 /* "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
@@ -208036,7 +208096,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 + 28757 /* "rtree" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 28765 /* "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
@@ -208044,14 +208104,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 + 28763 /* "fullscan" */
+ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 28771 /* "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:201644:12: */
+func geopolyColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3.c:201719:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -208116,7 +208176,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:201699:12: */
+func geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* sqlite3.c:201774:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -208183,7 +208243,7 @@ __1:
if !(*(*int32)(unsafe.Pointer(bp + 48)) == SQLITE_ERROR) {
goto __4
}
- (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+28772, 0)
+ (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+28780, 0)
__4:
;
goto geopoly_update_end
@@ -208327,15 +208387,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:201836:12: */
- if Xsqlite3_stricmp(tls, zName, ts+28812) == 0 {
+func geopolyFindFunction(tls *libc.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* sqlite3.c:201911:12: */
+ if Xsqlite3_stricmp(tls, zName, ts+28820) == 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+28828) == 0 {
+ if Xsqlite3_stricmp(tls, zName, ts+28836) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{geopolyWithinFunc}))
@@ -208368,9 +208428,9 @@ var geopolyModule = Sqlite3_module{
FxRename: 0, // xRename - rename the table
FxSavepoint: 0, // xRollbackTo
FxShadowName: 0, // xShadowName
-} /* sqlite3.c:201857:23 */
+} /* sqlite3.c:201932:23 */
-func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:201884:12: */
+func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:201959:12: */
var rc int32 = SQLITE_OK
var i int32
for i = 0; uint64(i) < uint64(unsafe.Sizeof(aFunc))/uint64(unsafe.Sizeof(struct {
@@ -208400,7 +208460,7 @@ func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:201884
uintptr(0), aAgg[i].FxStep, aAgg[i].FxFinal)
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_module_v2(tls, db, ts+28843, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+28851, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0))
}
return rc
}
@@ -208412,26 +208472,26 @@ var aFunc = [12]struct {
F__ccgo_pad1 [6]byte
FzName uintptr
}{
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28851 /* "geopoly_area" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28864 /* "geopoly_blob" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28877 /* "geopoly_json" */},
- {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 28890 /* "geopoly_svg" */},
- {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28828 /* "geopoly_within" */},
- {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 28902 /* "geopoly_contains..." */},
- {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28812 /* "geopoly_overlap" */},
- {FxFunc: 0, FnArg: int8(1), FzName: ts + 28925 /* "geopoly_debug" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28939 /* "geopoly_bbox" */},
- {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 28952 /* "geopoly_xform" */},
- {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 28966 /* "geopoly_regular" */},
- {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28982 /* "geopoly_ccw" */},
-} /* sqlite3.c:201891:5 */
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28859 /* "geopoly_area" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28872 /* "geopoly_blob" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28885 /* "geopoly_json" */},
+ {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 28898 /* "geopoly_svg" */},
+ {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28836 /* "geopoly_within" */},
+ {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 28910 /* "geopoly_contains..." */},
+ {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28820 /* "geopoly_overlap" */},
+ {FxFunc: 0, FnArg: int8(1), FzName: ts + 28933 /* "geopoly_debug" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28947 /* "geopoly_bbox" */},
+ {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 28960 /* "geopoly_xform" */},
+ {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 28974 /* "geopoly_regular" */},
+ {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28990 /* "geopoly_ccw" */},
+} /* sqlite3.c:201966:5 */
var aAgg = [1]struct {
FxStep uintptr
FxFinal uintptr
FzName uintptr
}{
- {FxStep: 0, FxFinal: 0, FzName: ts + 28994 /* "geopoly_group_bb..." */},
-} /* sqlite3.c:201909:5 */
+ {FxStep: 0, FxFinal: 0, FzName: ts + 29002 /* "geopoly_group_bb..." */},
+} /* sqlite3.c:201984:5 */
//************* End of geopoly.c ********************************************
//************* Continuing where we left off in rtree.c *********************
@@ -208439,30 +208499,30 @@ var aAgg = [1]struct {
// Register the r-tree module with database handle db. This creates the
// virtual table module "rtree" and the debugging/analysis scalar
// function "rtreenode".
-func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:201944:20: */
+func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:202019:20: */
var utf8 int32 = SQLITE_UTF8
var rc int32
- rc = Xsqlite3_create_function(tls, db, ts+29013, 2, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+29021, 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+29023, 1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+29031, 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+29034, -1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ rc = Xsqlite3_create_function(tls, db, ts+29042, -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+28757, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+28765, 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+29045, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+29053, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0))
}
if rc == SQLITE_OK {
rc = sqlite3_geopoly_init(tls, db)
@@ -208476,7 +208536,7 @@ func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:201944: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:201983:13: */
+func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* sqlite3.c:202058: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)
@@ -208485,7 +208545,7 @@ func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* sqlite3.c:201983:13: */
}
// This routine frees the BLOB that is returned by geomCallback().
-func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:201992:13: */
+func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:202067:13: */
var i int32
var p uintptr = pArg
for i = 0; i < (*RtreeMatchArg)(unsafe.Pointer(p)).FnParam; i++ {
@@ -208506,7 +208566,7 @@ func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* sqlite3.c:201992: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:202015:13: */
+func geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* sqlite3.c:202090:13: */
var pGeomCtx uintptr = Xsqlite3_user_data(tls, ctx)
var pBlob uintptr
var nBlob Sqlite3_int64
@@ -208534,13 +208594,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+26333, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{rtreeMatchArgFree})))
+ Xsqlite3_result_pointer(tls, ctx, pBlob, ts+26341, *(*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:202053:16: */
+func Xsqlite3_rtree_geometry_callback(tls *libc.TLS, db uintptr, zGeom uintptr, xGeom uintptr, pContext uintptr) int32 { /* sqlite3.c:202128:16: */
var pGeomCtx uintptr // Context object for new user-function
// Allocate and populate the context object.
@@ -208560,7 +208620,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:202077:16: */
+func Xsqlite3_rtree_query_callback(tls *libc.TLS, db uintptr, zQueryFunc uintptr, xQueryFunc uintptr, pContext uintptr, xDestructor uintptr) int32 { /* sqlite3.c:202152:16: */
var pGeomCtx uintptr // Context object for new user-function
// Allocate and populate the context object.
@@ -209016,7 +209076,7 @@ type sqlite3rbu = struct {
FnRbu int32
F__ccgo_pad6 [4]byte
FpRbuFd uintptr
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
//************* End of rtree.c **********************************************
//************* Begin file icu.c ********************************************
@@ -209417,7 +209477,7 @@ type sqlite3rbu = struct {
// #include "sqlite3.h" ** Required for error code definitions **
-type Sqlite3rbu = sqlite3rbu /* sqlite3.c:203307:27 */
+type Sqlite3rbu = sqlite3rbu /* sqlite3.c:203382:27 */
//************* End of sqlite3rbu.h *****************************************
//************* Continuing where we left off in sqlite3rbu.c ****************
@@ -209482,7 +209542,7 @@ type Sqlite3rbu = sqlite3rbu /* sqlite3.c:203307:27 */
type RbuFrame1 = struct {
FiDbPage U32
FiWalFrame U32
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
//************* End of sqlite3rbu.h *****************************************
//************* Continuing where we left off in sqlite3rbu.c ****************
@@ -209544,7 +209604,7 @@ type RbuFrame1 = struct {
// Only valid if STAGE==1. The RBU database name of the table
// currently being read.
-type RbuFrame = RbuFrame1 /* sqlite3.c:203738:25 */
+type RbuFrame = RbuFrame1 /* sqlite3.c:203813:25 */
type RbuObjIter1 = struct {
FpTblIter uintptr
FpIdxIter uintptr
@@ -209576,9 +209636,9 @@ type RbuObjIter1 = struct {
FaIdxCol uintptr
FzIdxSql uintptr
FpRbuUpdate uintptr
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
-type RbuObjIter = RbuObjIter1 /* sqlite3.c:203739:27 */
+type RbuObjIter = RbuObjIter1 /* sqlite3.c:203814:27 */
type RbuState1 = struct {
FeStage int32
F__ccgo_pad1 [4]byte
@@ -209593,16 +209653,16 @@ type RbuState1 = struct {
F__ccgo_pad3 [4]byte
FiOalSz I64
FnPhaseOneStep I64
-} /* sqlite3.c:203740:9 */
+} /* sqlite3.c:203815:9 */
-type RbuState = RbuState1 /* sqlite3.c:203740:25 */
+type RbuState = RbuState1 /* sqlite3.c:203815:25 */
type RbuSpan1 = struct {
FzSpan uintptr
FnSpan int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
-type RbuSpan = RbuSpan1 /* sqlite3.c:203741:24 */
+type RbuSpan = RbuSpan1 /* sqlite3.c:203816:24 */
type rbu_vfs = struct {
Fbase Sqlite3_vfs
FpRealVfs uintptr
@@ -209610,9 +209670,9 @@ type rbu_vfs = struct {
FpRbu uintptr
FpMain uintptr
FpMainRbu uintptr
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
-type Rbu_vfs = rbu_vfs /* sqlite3.c:203742:24 */
+type Rbu_vfs = rbu_vfs /* sqlite3.c:203817:24 */
type rbu_file = struct {
Fbase Sqlite3_file
FpReal uintptr
@@ -209631,16 +209691,16 @@ type rbu_file = struct {
FpWalFd uintptr
FpMainNext uintptr
FpMainRbuNext uintptr
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
-type Rbu_file = rbu_file /* sqlite3.c:203743:25 */
+type Rbu_file = rbu_file /* sqlite3.c:203818:25 */
type RbuUpdateStmt1 = struct {
FzMask uintptr
FpUpdate uintptr
FpNext uintptr
-} /* sqlite3.c:203307:9 */
+} /* sqlite3.c:203382:9 */
-type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:203744:30 */
+type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:203819:30 */
// True for an RBU vacuum handle, or false otherwise.
@@ -209659,7 +209719,7 @@ type RbuUpdateStmt = RbuUpdateStmt1 /* sqlite3.c:203744: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:204034:21: */
+func rbuDeltaGetInt(tls *libc.TLS, pz uintptr, pLen uintptr) uint32 { /* sqlite3.c:204109:21: */
var v uint32 = uint32(0)
var c int32
var z uintptr = *(*uintptr)(unsafe.Pointer(pz))
@@ -209682,7 +209742,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:204035:28 */
+} /* sqlite3.c:204110:28 */
// Apply a delta.
//
@@ -209702,7 +209762,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:204115:12: */
+func rbuDeltaApply(tls *libc.TLS, zSrc uintptr, lenSrc int32, zDelta uintptr, lenDelta int32, zOut uintptr) int32 { /* sqlite3.c:204190:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
*(*uintptr)(unsafe.Pointer(bp)) = zDelta
@@ -209792,7 +209852,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:204201:12: */
+func rbuDeltaOutputSize(tls *libc.TLS, zDelta uintptr, lenDelta int32) int32 { /* sqlite3.c:204276:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
*(*uintptr)(unsafe.Pointer(bp)) = zDelta
@@ -209817,7 +209877,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:204223:13: */
+func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:204298:13: */
var aDelta uintptr
var nDelta int32
var aOrig uintptr
@@ -209834,7 +209894,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+29055, -1)
+ Xsqlite3_result_error(tls, context, ts+29063, -1)
return
}
@@ -209845,7 +209905,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+29055, -1)
+ Xsqlite3_result_error(tls, context, ts+29063, -1)
} else {
Xsqlite3_result_blob(tls, context, aOut, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free})))
}
@@ -209860,7 +209920,7 @@ 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:204276:12: */
+func prepareAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* sqlite3.c:204351:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -209878,7 +209938,7 @@ 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:204298:12: */
+func resetAndCollectError(tls *libc.TLS, pStmt uintptr, pzErrmsg uintptr) int32 { /* sqlite3.c:204373:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -209902,7 +209962,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:204321:12: */
+func prepareFreeAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* sqlite3.c:204396:12: */
var rc int32
if zSql == uintptr(0) {
@@ -209917,7 +209977,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:204343:13: */
+func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:204418: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)))
@@ -209935,7 +209995,7 @@ func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:204343: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:204363:13: */
+func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:204438:13: */
var pUp uintptr
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpSelect)
@@ -209965,7 +210025,7 @@ func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:2043
// 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:204395:13: */
+func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:204470:13: */
rbuObjIterClearStatements(tls, pIter)
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpTblIter)
Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpIdxIter)
@@ -209979,7 +210039,7 @@ func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:204395: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:204411:12: */
+func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:204486:12: */
var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
if rc == SQLITE_OK {
@@ -209988,7 +210048,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+29076, uintptr(0), uintptr(0), p+64)
+ ts+29084, uintptr(0), uintptr(0), p+64)
}
if rc == SQLITE_OK {
@@ -210060,7 +210120,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:204491:13: */
+func rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlite3.c:204566:13: */
var p uintptr = Xsqlite3_user_data(tls, pCtx)
var zIn uintptr
@@ -210072,7 +210132,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+26246, zIn, uint64(4)) == 0 {
+ if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, ts+26254, 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++ {
}
@@ -210090,7 +210150,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:204527:12: */
+func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:204602:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -210100,9 +210160,9 @@ 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+29247, libc.VaList(bp, func() uintptr {
+ ts+29255, libc.VaList(bp, func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 29397 /* "AND rootpage!=0 ..." */
+ return ts + 29405 /* "AND rootpage!=0 ..." */
}
return ts + 1524 /* "" */
}())))
@@ -210110,7 +210170,7 @@ func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3
if rc == SQLITE_OK {
rc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64,
- ts+29438)
+ ts+29446)
}
(*RbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = 1
@@ -210125,7 +210185,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:204562:13: */
+func rbuMPrintf(tls *libc.TLS, p uintptr, zFmt uintptr, va uintptr) uintptr { /* sqlite3.c:204637:13: */
var zSql uintptr = uintptr(0)
var ap Va_list
_ = ap
@@ -210151,7 +210211,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:204587:12: */
+func rbuMPrintfExec(tls *libc.TLS, p uintptr, db uintptr, zFmt uintptr, va uintptr) int32 { /* sqlite3.c:204662:12: */
var ap Va_list
_ = ap
var zSql uintptr
@@ -210177,7 +210237,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:204614:13: */
+func rbuMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* sqlite3.c:204689:13: */
var pRet uintptr = uintptr(0)
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -210194,7 +210254,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:204634:13: */
+func rbuAllocateIterArrays(tls *libc.TLS, p uintptr, pIter uintptr, nCol int32) { /* sqlite3.c:204709: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
@@ -210217,7 +210277,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:204659:13: */
+func rbuStrndup(tls *libc.TLS, zStr uintptr, pRc uintptr) uintptr { /* sqlite3.c:204734:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
@@ -210240,7 +210300,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:204684:13: */
+func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* sqlite3.c:204759:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -210290,7 +210350,7 @@ func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* sqlite3.c:204684:
// }else{
// return RBU_PK_NONE
// }
-func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum uintptr, piPk uintptr) { /* sqlite3.c:204732:13: */
+func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum uintptr, piPk uintptr) { /* sqlite3.c:204807:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -210311,7 +210371,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+29563, libc.VaList(bp, zTab)))
+ ts+29571, libc.VaList(bp, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK || Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 32))) != SQLITE_ROW) {
goto __1
}
@@ -210329,7 +210389,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+29682, libc.VaList(bp+8, zTab)))
+ Xsqlite3_mprintf(tls, ts+29690, libc.VaList(bp+8, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0) {
goto __3
}
@@ -210347,7 +210407,7 @@ __4:
}
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+2*8, p+64,
Xsqlite3_mprintf(tls,
- ts+29703, libc.VaList(bp+16, zIdx)))
+ ts+29711, libc.VaList(bp+16, zIdx)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
goto __7
}
@@ -210371,7 +210431,7 @@ __5:
;
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+3*8, p+64,
- Xsqlite3_mprintf(tls, ts+29754, libc.VaList(bp+24, zTab)))
+ Xsqlite3_mprintf(tls, ts+29762, libc.VaList(bp+24, zTab)))
if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) {
goto __10
}
@@ -210410,7 +210470,7 @@ __16:
// This is a helper function for rbuObjIterCacheTableInfo(). It populates
// the pIter->abIndexed[] array.
-func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:204818:13: */
+func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:204893:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -210420,7 +210480,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+29775, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+29783, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
}
(*RbuObjIter)(unsafe.Pointer(pIter)).FnIndex = 0
@@ -210435,7 +210495,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+29803, libc.VaList(bp+8, zIdx)))
+ Xsqlite3_mprintf(tls, ts+29811, 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 {
@@ -210468,7 +210528,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:204872:12: */
+func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:204947:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -210485,7 +210545,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+20722, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+20730, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
return (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
@@ -210498,18 +210558,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+29832, libc.VaList(bp+8, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)))
+ Xsqlite3_mprintf(tls, ts+29840, 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+29851, zName, 4) != 0 {
+ if Xsqlite3_strnicmp(tls, ts+29859, 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+29856, zName) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+29864, zName) {
bRbuRowid = 1
}
}
@@ -210521,12 +210581,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+29866, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
+ ts+29874, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
func() uintptr {
if bRbuRowid != 0 {
- return ts + 29895 /* "may not have" */
+ return ts + 29903 /* "may not have" */
}
- return ts + 29908 /* "requires" */
+ return ts + 29916 /* "requires" */
}()))
}
@@ -210535,7 +210595,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+29917, libc.VaList(bp+32, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+29925, 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)
@@ -210549,7 +210609,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+29939,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29947,
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)
@@ -210590,7 +210650,7 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /
// This function constructs and returns a pointer to a nul-terminated
// string containing some SQL clause or list based on one or more of the
// column names currently stored in the pIter->azTblCol[] array.
-func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:204982:13: */
+func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205057:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -210599,8 +210659,8 @@ func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /*
var i int32
for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ {
var z uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zList = rbuMPrintf(tls, p, ts+29966, libc.VaList(bp, zList, zSep, z))
- zSep = ts + 15900 /* ", " */
+ zList = rbuMPrintf(tls, p, ts+29974, libc.VaList(bp, zList, zSep, z))
+ zSep = ts + 15908 /* ", " */
}
return zList
}
@@ -210609,7 +210669,7 @@ func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /*
// in order, for the current table. Before each column name, add the text
// zPre. After each column name, add the zPost text. Use zSeparator as
// the separator text (usually ", ").
-func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, zSeparator uintptr, zPost uintptr) uintptr { /* sqlite3.c:205003:13: */
+func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, zSeparator uintptr, zPost uintptr) uintptr { /* sqlite3.c:205078:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -210621,7 +210681,7 @@ func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr,
for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ {
if int32(*(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i)))) == iPk {
var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zRet = rbuMPrintf(tls, p, ts+29975, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost))
+ zRet = rbuMPrintf(tls, p, ts+29983, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost))
zSep = zSeparator
break
}
@@ -210651,7 +210711,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:205048:13: */
+func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, zWrite uintptr) uintptr { /* sqlite3.c:205123:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -210660,25 +210720,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+29988, libc.VaList(bp, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ ts+29996, 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+30020, libc.VaList(bp+16, iMax))
+ zRet = rbuMPrintf(tls, p, ts+30028, libc.VaList(bp+16, iMax))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)))
} else {
- var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15900, ts+30043)
- var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+30049, ts+30056, ts+6260)
- var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15900, ts+1524)
+ var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15908, ts+30051)
+ var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+30057, ts+30064, ts+6260)
+ var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15908, ts+1524)
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+30064,
+ ts+30072,
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+30106, libc.VaList(bp+56, zList, zVal))
+ zRet = rbuMPrintf(tls, p, ts+30114, libc.VaList(bp+56, zList, zVal))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)))
}
@@ -210710,7 +210770,7 @@ func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32,
// If the expression cannot be created, NULL is returned. In this case,
// the caller has to use an OFFSET clause to extract only the required
// rows from the sourct table, just as it does for an RBU update operation.
-func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205115:13: */
+func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205190:13: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -210741,7 +210801,7 @@ func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* s
*(*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+29803, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ Xsqlite3_mprintf(tls, ts+29811, 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
@@ -210778,7 +210838,7 @@ __10:
zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
goto __7
__6:
- zCol = ts + 30126 /* "_rowid_" */
+ zCol = ts + 30134 /* "_rowid_" */
__7:
;
goto __5
@@ -210787,13 +210847,13 @@ __4:
__5:
;
- zLhs = rbuMPrintf(tls, p, ts+30134,
+ zLhs = rbuMPrintf(tls, p, ts+30142,
libc.VaList(bp+8, zLhs, zSep, zCol, zCollate))
- zOrder = rbuMPrintf(tls, p, ts+30155,
+ zOrder = rbuMPrintf(tls, p, ts+30163,
libc.VaList(bp+40, zOrder, zSep, iCol, zCol, zCollate))
- zSelect = rbuMPrintf(tls, p, ts+30191,
+ zSelect = rbuMPrintf(tls, p, ts+30199,
libc.VaList(bp+80, zSelect, zSep, iCol, zCol))
- zSep = ts + 15900 /* ", " */
+ zSep = ts + 15908 /* ", " */
iCol++
goto __1
__2:
@@ -210812,7 +210872,7 @@ __11:
*(*uintptr)(unsafe.Pointer(bp + 184 /* pSel */)) = uintptr(0)
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+184, p+64,
- Xsqlite3_mprintf(tls, ts+30218,
+ Xsqlite3_mprintf(tls, ts+30226,
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
@@ -210839,8 +210899,8 @@ __19:
;
__18:
;
- zVector = rbuMPrintf(tls, p, ts+30266, libc.VaList(bp+136, zVector, zSep, zQuoted))
- zSep = ts + 15900 /* ", " */
+ zVector = rbuMPrintf(tls, p, ts+30274, libc.VaList(bp+136, zVector, zSep, zQuoted))
+ zSep = ts + 15908 /* ", " */
goto __15
__15:
iCol++
@@ -210852,7 +210912,7 @@ __16:
if !!(bFailed != 0) {
goto __20
}
- zRet = rbuMPrintf(tls, p, ts+30273, libc.VaList(bp+160, zLhs, zVector))
+ zRet = rbuMPrintf(tls, p, ts+30281, libc.VaList(bp+160, zLhs, zVector))
__20:
;
__13:
@@ -210891,7 +210951,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:205230:13: */
+func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterCols uintptr, pzImposterPk uintptr, pzWhere uintptr, pnBind uintptr) uintptr { /* sqlite3.c:205305:13: */
bp := tls.Alloc(208)
defer tls.Free(208)
@@ -210909,7 +210969,7 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC
if rc == SQLITE_OK {
rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+200, p+64,
- Xsqlite3_mprintf(tls, ts+29803, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
}
for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 200))) {
@@ -210921,7 +210981,7 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC
if iCid == -2 {
var iSeq int32 = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 200 /* pXInfo */)), 0)
- zRet = Xsqlite3_mprintf(tls, ts+30285, libc.VaList(bp+8, zRet, zCom,
+ zRet = Xsqlite3_mprintf(tls, ts+30293, libc.VaList(bp+8, zRet, zCom,
(*RbuSpan)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol+uintptr(iSeq)*16)).FnSpan, (*RbuSpan)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol+uintptr(iSeq)*16)).FzSpan, zCollate))
zType = ts + 1524 /* "" */
} else {
@@ -210935,37 +210995,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 + 30126 /* "_rowid_" */
+ zCol = ts + 30134 /* "_rowid_" */
} else {
- zCol = ts + 29856 /* "rbu_rowid" */
+ zCol = ts + 29864 /* "rbu_rowid" */
}
zType = ts + 1089 /* "INTEGER" */
} else {
zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCid)*8))
zType = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8))
}
- zRet = Xsqlite3_mprintf(tls, ts+30307, libc.VaList(bp+48, zRet, zCom, zCol, zCollate))
+ zRet = Xsqlite3_mprintf(tls, ts+30315, 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 + 30043
+ return ts + 30051
}
return ts + 1524
}()
- zImpPK = Xsqlite3_mprintf(tls, ts+30327,
+ zImpPK = Xsqlite3_mprintf(tls, ts+30335,
libc.VaList(bp+80, zImpPK, zCom, nBind, zCol, zOrder))
}
- zImpCols = Xsqlite3_mprintf(tls, ts+30348,
+ zImpCols = Xsqlite3_mprintf(tls, ts+30356,
libc.VaList(bp+120, zImpCols, zCom, nBind, zCol, zType, zCollate))
zWhere = Xsqlite3_mprintf(tls,
- ts+30381, libc.VaList(bp+168, zWhere, zAnd, nBind, zCol))
+ ts+30389, 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 + 15900 /* ", " */
- zAnd = ts + 22742 /* " AND " */
+ zCom = ts + 15908 /* ", " */
+ zAnd = ts + 22750 /* " AND " */
nBind++
}
@@ -211002,7 +211062,7 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC
//
// For tables with implicit rowids - RBU_PK_EXTERNAL and RBU_PK_NONE, append
// the text ", old._rowid_" to the returned value.
-func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) uintptr { /* sqlite3.c:205342:13: */
+func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) uintptr { /* sqlite3.c:205417:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -211013,11 +211073,11 @@ func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr)
for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ {
if *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed + uintptr(i))) != 0 {
var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zList = Xsqlite3_mprintf(tls, ts+30405, libc.VaList(bp, zList, zS, zObj, zCol))
+ zList = Xsqlite3_mprintf(tls, ts+30413, libc.VaList(bp, zList, zS, zObj, zCol))
} else {
- zList = Xsqlite3_mprintf(tls, ts+30417, libc.VaList(bp+32, zList, zS))
+ zList = Xsqlite3_mprintf(tls, ts+30425, libc.VaList(bp+32, zList, zS))
}
- zS = ts + 15900 /* ", " */
+ zS = ts + 15908 /* ", " */
if zList == uintptr(0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
break
@@ -211026,7 +211086,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+30426, libc.VaList(bp+48, zList, zObj))
+ zList = rbuMPrintf(tls, p, ts+30434, libc.VaList(bp+48, zList, zObj))
}
}
return zList
@@ -211040,24 +211100,24 @@ func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr)
// Return the string:
//
// "b = ?1 AND c = ?2"
-func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205383:13: */
+func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205458: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+30441, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1))
+ zList = rbuMPrintf(tls, p, ts+30449, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1))
} else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL {
var zSep uintptr = ts + 1524 /* "" */
var i int32
for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ {
if *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 {
- zList = rbuMPrintf(tls, p, ts+30455, libc.VaList(bp+8, zList, zSep, i, i+1))
- zSep = ts + 22742 /* " AND " */
+ zList = rbuMPrintf(tls, p, ts+30463, libc.VaList(bp+8, zList, zSep, i, i+1))
+ zSep = ts + 22750 /* " AND " */
}
}
zList = rbuMPrintf(tls, p,
- ts+30467, libc.VaList(bp+40, zList))
+ ts+30475, libc.VaList(bp+40, zList))
} else {
var zSep uintptr = ts + 1524 /* "" */
@@ -211065,8 +211125,8 @@ func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sq
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+30517, libc.VaList(bp+48, zList, zSep, zCol, i+1))
- zSep = ts + 22742 /* " AND " */
+ zList = rbuMPrintf(tls, p, ts+30525, libc.VaList(bp+48, zList, zSep, zCol, i+1))
+ zSep = ts + 22750 /* " AND " */
}
}
}
@@ -211078,9 +211138,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:205424:13: */
+func rbuBadControlError(tls *libc.TLS, p uintptr) { /* sqlite3.c:205499:13: */
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30530, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30538, 0)
}
// Return a nul-terminated string containing the comma separated list of
@@ -211098,7 +211158,7 @@ func rbuBadControlError(tls *libc.TLS, p uintptr) { /* sqlite3.c:205424: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:205447:13: */
+func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr) uintptr { /* sqlite3.c:205522:13: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -211113,17 +211173,17 @@ func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr
for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ {
var c int8 = *(*int8)(unsafe.Pointer(zMask + uintptr(*(*int32)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaiSrcOrder + uintptr(i)*4)))))
if int32(c) == 'x' {
- zList = rbuMPrintf(tls, p, ts+30517,
+ zList = rbuMPrintf(tls, p, ts+30525,
libc.VaList(bp, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1))
- zSep = ts + 15900 /* ", " */
+ zSep = ts + 15908 /* ", " */
} else if int32(c) == 'd' {
- zList = rbuMPrintf(tls, p, ts+30556,
+ zList = rbuMPrintf(tls, p, ts+30564,
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 + 15900 /* ", " */
+ zSep = ts + 15908 /* ", " */
} else if int32(c) == 'f' {
- zList = rbuMPrintf(tls, p, ts+30586,
+ zList = rbuMPrintf(tls, p, ts+30594,
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 + 15900 /* ", " */
+ zSep = ts + 15908 /* ", " */
}
}
}
@@ -211144,7 +211204,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:205501:13: */
+func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* sqlite3.c:205576:13: */
var zRet uintptr = uintptr(0)
var nByte Sqlite3_int64 = int64(2)*Sqlite3_int64(nBind) + int64(1)
@@ -211174,26 +211234,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:205528:13: */
+func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205603: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 + 30623 /* "PRIMARY KEY(" */
+ var zSep uintptr = ts + 30631 /* "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+29775, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ Xsqlite3_mprintf(tls, ts+29783, 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+17412) == 0 {
+ if zOrig != 0 && libc.Xstrcmp(tls, zOrig, ts+17420) == 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+29803, libc.VaList(bp+8, zIdx)))
+ Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp+8, zIdx)))
}
break
}
@@ -211206,15 +211266,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 + 30043 /* " DESC" */
+ zDesc = ts + 30051 /* " DESC" */
} else {
zDesc = ts + 1524 /* "" */
}
- z = rbuMPrintf(tls, p, ts+30636, libc.VaList(bp+16, z, zSep, zCol, zDesc))
- zSep = ts + 15900 /* ", " */
+ z = rbuMPrintf(tls, p, ts+30644, libc.VaList(bp+16, z, zSep, zCol, zDesc))
+ zSep = ts + 15908 /* ", " */
}
}
- z = rbuMPrintf(tls, p, ts+30647, libc.VaList(bp+48, z))
+ z = rbuMPrintf(tls, p, ts+30655, libc.VaList(bp+48, z))
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */)))
}
return z
@@ -211237,7 +211297,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:205587:13: */
+func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:205662:13: */
bp := tls.Alloc(184)
defer tls.Free(184)
@@ -211254,7 +211314,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+30651)
+ ts+30659)
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))) {
@@ -211263,7 +211323,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+29803, libc.VaList(bp, zIdx)))
+ Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp, zIdx)))
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */)))
@@ -211273,23 +211333,23 @@ 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+30701, libc.VaList(bp+8, zCols, zComma,
+ zCols = rbuMPrintf(tls, p, ts+30709, libc.VaList(bp+8, zCols, zComma,
iCid, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate))
- zPk = rbuMPrintf(tls, p, ts+30723, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr {
+ zPk = rbuMPrintf(tls, p, ts+30731, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr {
if bDesc != 0 {
- return ts + 30043 /* " DESC" */
+ return ts + 30051 /* " DESC" */
}
return ts + 1524 /* "" */
}()))
- zComma = ts + 15900 /* ", " */
+ zComma = ts + 15908 /* ", " */
}
}
- zCols = rbuMPrintf(tls, p, ts+30733, libc.VaList(bp+80, zCols))
+ zCols = rbuMPrintf(tls, p, ts+30741, libc.VaList(bp+80, zCols))
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */)))
Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+88, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 1, tnum))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+30748,
+ ts+30756,
libc.VaList(bp+120, zCols, zPk))
Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 0))
}
@@ -211313,7 +211373,7 @@ 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:205661:13: */
+func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:205736:13: */
bp := tls.Alloc(200)
defer tls.Free(200)
@@ -211335,32 +211395,32 @@ func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite
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 + 30810 /* "PRIMARY KEY " */
+ zPk = ts + 30818 /* "PRIMARY KEY " */
}
- zSql = rbuMPrintf(tls, p, ts+30823,
+ zSql = rbuMPrintf(tls, p, ts+30831,
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 + 30850 /* " NOT NULL" */
+ return ts + 30858 /* " NOT NULL" */
}
return ts + 1524 /* "" */
}()))
- zComma = ts + 15900 /* ", " */
+ zComma = ts + 15908 /* ", " */
}
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+30860, libc.VaList(bp+88, zSql, zPk))
+ zSql = rbuMPrintf(tls, p, ts+30868, libc.VaList(bp+88, zSql, zPk))
}
}
Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 1, tnum))
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+30867,
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+30875,
libc.VaList(bp+136, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql,
func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_WITHOUT_ROWID {
- return ts + 30899 /* " WITHOUT ROWID" */
+ return ts + 30907 /* " WITHOUT ROWID" */
}
return ts + 1524 /* "" */
}()))
@@ -211377,7 +211437,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:205717:13: */
+func rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zCollist uintptr, zRbuRowid uintptr) { /* sqlite3.c:205792:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -211387,12 +211447,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+30914,
+ ts+30922,
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:205735:13: */
+func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:205810:13: */
var p uintptr = Xsqlite3_user_data(tls, pCtx)
var rc int32 = SQLITE_OK
var i int32
@@ -211414,7 +211474,7 @@ func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) {
}
}
-func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205765:13: */
+func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* sqlite3.c:205840:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -211424,7 +211484,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+30971)
+ ts+30979)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
var rc2 int32
@@ -211522,7 +211582,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:205865:12: */
+func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32) int32 { /* sqlite3.c:205940:12: */
bp := tls.Alloc(628)
defer tls.Free(628)
@@ -211534,7 +211594,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+31037, libc.VaList(bp, nOffset))
+ zLimit = Xsqlite3_mprintf(tls, ts+31045, libc.VaList(bp, nOffset))
if !(zLimit != 0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
}
@@ -211558,7 +211618,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+8, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 1))
Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 1, tnum))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+31057,
+ ts+31065,
libc.VaList(bp+72, zTbl, *(*uintptr)(unsafe.Pointer(bp + 600 /* zImposterCols */)), *(*uintptr)(unsafe.Pointer(bp + 608 /* zImposterPK */))))
Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+96, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 0))
@@ -211567,14 +211627,14 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
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+31122, libc.VaList(bp+128, zTbl, zBind)))
+ Xsqlite3_mprintf(tls, ts+31130, 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+31158, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */)))))
+ Xsqlite3_mprintf(tls, ts+31166, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */)))))
}
// Create the SELECT statement to read keys in sorted order
@@ -211591,7 +211651,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}
zSql = Xsqlite3_mprintf(tls,
- ts+31192,
+ ts+31200,
libc.VaList(bp+160, zCollist,
(*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
zPart,
@@ -211599,9 +211659,9 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
if zStart != 0 {
return func() uintptr {
if zPart != 0 {
- return ts + 31253 /* "AND" */
+ return ts + 31261 /* "AND" */
}
- return ts + 31257 /* "WHERE" */
+ return ts + 31265 /* "WHERE" */
}()
}
return ts + 1524 /* "" */
@@ -211610,21 +211670,21 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
Xsqlite3_free(tls, zStart)
} else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE {
zSql = Xsqlite3_mprintf(tls,
- ts+31263,
+ ts+31271,
libc.VaList(bp+216, zCollist, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl,
zPart, zCollist, zLimit))
} else {
zSql = Xsqlite3_mprintf(tls,
- ts+31324,
+ ts+31332,
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 + 31253 /* "AND" */
+ return ts + 31261 /* "AND" */
}
- return ts + 31257 /* "WHERE" */
+ return ts + 31265 /* "WHERE" */
}(),
zCollist, zLimit))
}
@@ -211662,17 +211722,17 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_VTAB {
return ts + 1524
}
- return ts + 31483
+ return ts + 31491
}()
// 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+31492,
+ ts+31500,
libc.VaList(bp+344, zWrite, zTbl, zCollist, func() uintptr {
if bRbuRowid != 0 {
- return ts + 31528 /* ", _rowid_" */
+ return ts + 31536 /* ", _rowid_" */
}
return ts + 1524 /* "" */
}(), zBindings)))
@@ -211684,28 +211744,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+31538, libc.VaList(bp+384, zWrite, zTbl, zWhere)))
+ ts+31546, libc.VaList(bp+384, zWrite, zTbl, zWhere)))
}
if libc.Bool32((*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed != 0 {
var zRbuRowid uintptr = ts + 1524 /* "" */
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE {
- zRbuRowid = ts + 31566 /* ", rbu_rowid" */
+ zRbuRowid = ts + 31574 /* ", rbu_rowid" */
}
// Create the rbu_tmp_xxx table and the triggers to populate it.
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu,
- ts+31578, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
+ ts+31586, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr {
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL {
- return ts + 31654 /* ", 0 AS rbu_rowid" */
+ return ts + 31662 /* ", 0 AS rbu_rowid" */
}
return ts + 1524 /* "" */
}(), (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain,
- ts+31671,
+ ts+31679,
libc.VaList(bp+440, zWrite, zTbl, zOldlist,
zWrite, zTbl, zOldlist,
zWrite, zTbl, zNewlist))
@@ -211713,7 +211773,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+31970,
+ ts+31978,
libc.VaList(bp+512, zWrite, zTbl, zNewlist))
}
@@ -211727,9 +211787,9 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
var zOrder uintptr = uintptr(0)
if bRbuRowid != 0 {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zRbuRowid = ts + 32069 /* ",_rowid_ " */
+ zRbuRowid = ts + 32077 /* ",_rowid_ " */
} else {
- zRbuRowid = ts + 32079 /* ",rbu_rowid" */
+ zRbuRowid = ts + 32087 /* ",rbu_rowid" */
}
}
@@ -211742,20 +211802,20 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}
}
if bRbuRowid != 0 {
- zOrder = rbuMPrintf(tls, p, ts+30126, 0)
+ zOrder = rbuMPrintf(tls, p, ts+30134, 0)
} else {
- zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15900, ts+1524)
+ zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15908, ts+1524)
}
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+128, pz,
Xsqlite3_mprintf(tls,
- ts+32090,
+ ts+32098,
libc.VaList(bp+536, zCollist,
func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 32138 /* "0 AS " */
+ return ts + 32146 /* "0 AS " */
}
return ts + 1524 /* "" */
}(),
@@ -211768,7 +211828,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32
}(),
func() uintptr {
if zOrder != 0 {
- return ts + 21076 /* "ORDER BY" */
+ return ts + 21084 /* "ORDER BY" */
}
return ts + 1524 /* "" */
}(), zOrder,
@@ -211797,7 +211857,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:206132:12: */
+func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, ppStmt uintptr) int32 { /* sqlite3.c:206207:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -211848,9 +211908,9 @@ func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, pp
var zPrefix uintptr = ts + 1524 /* "" */
if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType != RBU_PK_VTAB {
- zPrefix = ts + 31483 /* "rbu_imp_" */
+ zPrefix = ts + 31491 /* "rbu_imp_" */
}
- zUpdate = Xsqlite3_mprintf(tls, ts+32144,
+ zUpdate = Xsqlite3_mprintf(tls, ts+32152,
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)
@@ -211863,7 +211923,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:206200:16: */
+func rbuOpenDbhandle(tls *libc.TLS, p uintptr, zName uintptr, bUseVfs int32) uintptr { /* sqlite3.c:206275:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -211886,7 +211946,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:206221:13: */
+func rbuFreeState(tls *libc.TLS, p uintptr) { /* sqlite3.c:206296:13: */
if p != 0 {
Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzTbl)
Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzDataTbl)
@@ -211902,7 +211962,7 @@ func rbuFreeState(tls *libc.TLS, p uintptr) { /* sqlite3.c:206221: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:206239:17: */
+func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:206314:17: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -211918,7 +211978,7 @@ func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:206239:17: */
}
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+8, p+64,
- Xsqlite3_mprintf(tls, ts+32174, libc.VaList(bp, p+48)))
+ Xsqlite3_mprintf(tls, ts+32182, 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:
@@ -211986,7 +212046,7 @@ func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:206239: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:206320:13: */
+func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) { /* sqlite3.c:206395:13: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -211998,21 +212058,21 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684, SQLITE_FCNTL_RBUCNT, p)
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzState == uintptr(0) {
var zFile uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684)
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+32204, libc.VaList(bp, zFile, zFile))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+32212, 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+32231, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState))
- libc.Xmemcpy(tls, p+48, ts+14758, uint64(4))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32239, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState))
+ libc.Xmemcpy(tls, p+48, ts+14766, uint64(4))
} else {
libc.Xmemcpy(tls, p+48, ts+7684, uint64(4))
}
// If it has not already been created, create the rbu_state table
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32249, libc.VaList(bp+24, p+48))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32257, 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
@@ -212052,11 +212112,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+32315, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32323, 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+25389, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
+ if libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, ts+25397, (*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)))) == '?' {
@@ -212068,13 +212128,13 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
}
}
- zTarget = Xsqlite3_mprintf(tls, ts+32347,
+ zTarget = Xsqlite3_mprintf(tls, ts+32355,
libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684),
func() uintptr {
if zExtra == uintptr(0) {
return ts + 1524 /* "" */
}
- return ts + 32379 /* "&" */
+ return ts + 32387 /* "&" */
}(), func() uintptr {
if zExtra == uintptr(0) {
return ts + 1524 /* "" */
@@ -212093,21 +212153,21 @@ 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+32381, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+32389, -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+32396, 2, SQLITE_UTF8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ ts+32404, 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+32413, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+32421, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{rbuTargetNameFunc})), uintptr(0), uintptr(0))
}
@@ -212115,7 +212175,7 @@ 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_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, SQLITE_FCNTL_RBU, p)
}
- rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32429, 0)
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32437, 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.
@@ -212126,7 +212186,7 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_NOTFOUND {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32457, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32465, 0)
}
}
@@ -212148,7 +212208,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:206501:13: */
+func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* sqlite3.c:206576:13: */
}
// Return the current wal-index header checksum for the target database
@@ -212156,7 +212216,7 @@ func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* sqlite3.c:2065
//
// 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:206522:12: */
+func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:206597:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -212189,7 +212249,7 @@ func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:206522: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:206551:13: */
+func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c:206626: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
@@ -212197,7 +212257,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+32429, uintptr(0), uintptr(0), uintptr(0))
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32437, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -212231,7 +212291,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+32475, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32483, uintptr(0), uintptr(0), uintptr(0))
if rc2 != SQLITE_INTERNAL {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -212281,7 +212341,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:206635:12: */
+func rbuCaptureWalRead(tls *libc.TLS, pRbu uintptr, iOff I64, iAmt int32) int32 { /* sqlite3.c:206710:12: */
var mReq U32 = U32(int32(1)<<WAL_LOCK_WRITE | int32(1)<<WAL_LOCK_CKPT | int32(1)<<WAL_LOCK_READ0)
var iFrame U32
@@ -212320,7 +212380,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:206667:12: */
+func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* sqlite3.c:206742: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
}
@@ -212328,7 +212388,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:206677:13: */
+func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* sqlite3.c:206752: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
@@ -212349,7 +212409,7 @@ 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:206696:12: */
+func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:206771:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -212373,9 +212433,9 @@ func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:206696: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:206715:12: */
+func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:206790:12: */
var zUri uintptr = Xsqlite3_db_filename(tls, db, uintptr(0))
- return Xsqlite3_uri_boolean(tls, zUri, ts+32510, 0)
+ return Xsqlite3_uri_boolean(tls, zUri, ts+32518, 0)
}
// The RBU handle is currently in RBU_STAGE_OAL state, with a SHARED lock
@@ -212383,7 +212443,7 @@ func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:2067
// 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:206751:13: */
+func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:206826:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -212395,8 +212455,8 @@ func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:206751:13: */
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
zMove = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684)
}
- zOal = Xsqlite3_mprintf(tls, ts+32535, libc.VaList(bp, zMove))
- zWal = Xsqlite3_mprintf(tls, ts+32542, libc.VaList(bp+8, zMove))
+ zOal = Xsqlite3_mprintf(tls, ts+32543, libc.VaList(bp, zMove))
+ zWal = Xsqlite3_mprintf(tls, ts+32550, libc.VaList(bp+8, zMove))
if zWal == uintptr(0) || zOal == uintptr(0) {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM
@@ -212465,7 +212525,7 @@ func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:206751: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:206856:12: */
+func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* sqlite3.c:206931:12: */
var iCol int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FnCol // Index of rbu_control column
var res int32 = 0 // Return value
@@ -212521,7 +212581,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:206912:13: */
+func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* sqlite3.c:206987:13: */
var pIter uintptr = p + 80
var pVal uintptr
var pWriter uintptr
@@ -212549,7 +212609,7 @@ func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* sqlite3.c:206912: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+25027, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+25035, 0)
return
}
@@ -212593,7 +212653,7 @@ func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* sqlite3.c:206912: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:206995:12: */
+func rbuStep(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207070:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -212652,7 +212712,7 @@ func rbuStep(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:206995: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:207060:13: */
+func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:207135:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -212667,7 +212727,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:207060:13: */
// var pStmt uintptr at bp+8, 8
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, dbread, bp+8, p+64,
- ts+32549)
+ ts+32557)
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
@@ -212680,7 +212740,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:207060: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+32571, libc.VaList(bp, iCookie+1))
+ rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32579, libc.VaList(bp, iCookie+1))
}
}
}
@@ -212688,7 +212748,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* sqlite3.c:207060: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:207091:13: */
+func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* sqlite3.c:207166:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -212705,7 +212765,7 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* sqlite3.c:207091:
rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+168, p+64,
Xsqlite3_mprintf(tls,
- ts+32598,
+ ts+32606,
libc.VaList(bp, p+48,
RBU_STATE_STAGE, eStage,
RBU_STATE_TBL, (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl,
@@ -212743,16 +212803,16 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* sqlite3.c:207091:
//
// 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:207152:13: */
+func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* sqlite3.c:207227: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+32756, libc.VaList(bp, zPragma)))
+ Xsqlite3_mprintf(tls, ts+32764, 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+32771,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32779,
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 */)))
@@ -212762,18 +212822,18 @@ func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* sqlite3.c:207
// 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:207172:13: */
+func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:207247: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+32791, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32799, 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+32816)
+ ts+32824)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW {
@@ -212787,12 +212847,12 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:207172: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+32924)
+ ts+32932)
}
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+32989)
+ ts+32997)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW {
@@ -212804,7 +212864,7 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:207172: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+33033, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+33041, uintptr(0), uintptr(0), p+64)
}
rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp /* pSql */)))
@@ -212812,7 +212872,7 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* sqlite3.c:207172:13: *
}
// Step the RBU object.
-func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207224:16: */
+func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207299:16: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -212826,8 +212886,8 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207224: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+18518)
- rbuCopyPragma(tls, p, ts+17608)
+ rbuCopyPragma(tls, p, ts+18526)
+ rbuCopyPragma(tls, p, ts+17616)
}
for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 {
@@ -212838,7 +212898,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207224: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+33058, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
+ ts+33066, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
}
} else {
rbuObjIterPrepareAll(tls, p, pIter, 0)
@@ -212864,10 +212924,10 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207224: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+15804, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15812, 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+15804, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15812, uintptr(0), uintptr(0), p+64)
}
(*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_MOVE
}
@@ -212955,7 +213015,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207224: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:207353:12: */
+func rbuStrCompare(tls *libc.TLS, z1 uintptr, z2 uintptr) int32 { /* sqlite3.c:207428:12: */
if z1 == uintptr(0) && z2 == uintptr(0) {
return 0
}
@@ -212973,7 +213033,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:207369:13: */
+func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c:207444:13: */
if (*RbuState)(unsafe.Pointer(pState)).FzTbl != 0 {
var pIter uintptr = p + 80
@@ -212988,7 +213048,7 @@ func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c:207369
if rc == SQLITE_OK && !(int32((*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl) != 0) {
rc = SQLITE_ERROR
- (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33086, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33094, 0)
}
if rc == SQLITE_OK {
@@ -213003,11 +213063,11 @@ func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* sqlite3.c:207369
// 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:207402:13: */
+func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:207477:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- var zOal uintptr = rbuMPrintf(tls, p, ts+32535, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget))
+ var zOal uintptr = rbuMPrintf(tls, p, ts+32543, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget))
if zOal != 0 {
var pVfs uintptr = Xsqlite3_vfs_find(tls, uintptr(0))
@@ -213022,7 +213082,7 @@ func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* sqlite3.c:207402: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:207418:13: */
+func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:207493:13: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -213031,7 +213091,7 @@ func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:207418: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+33111, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* rnd */))))
+ Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+12, ts+33119, 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)
@@ -213043,7 +213103,7 @@ func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:207418: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:207438:13: */
+func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:207513:13: */
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName != 0 {
Xsqlite3rbu_destroy_vfs(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName)
(*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName = uintptr(0)
@@ -213053,7 +213113,7 @@ func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* sqlite3.c:207438: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:207450:13: */
+func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:207525:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -213070,7 +213130,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /
rc = prepareFreeAndCollectError(tls, db, bp+8, bp+16,
Xsqlite3_mprintf(tls,
- ts+33122, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal))))))
+ ts+33130, 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 {
@@ -213102,7 +213162,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:207500:13: */
+func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:207575:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -213113,7 +213173,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:207500:13: */
(*Sqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep = int64(-1)
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu,
- ts+33194, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ ts+33202, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{rbuIndexCntFunc})), uintptr(0), uintptr(0))
@@ -213121,7 +213181,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:207500: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+33208)
+ ts+33216)
}
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -213133,7 +213193,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:207500: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+33265)
+ ts+33273)
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)
@@ -213144,7 +213204,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* sqlite3.c:207500:13: */
}
}
-func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* sqlite3.c:207541:19: */
+func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* sqlite3.c:207616:19: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -213216,7 +213276,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+33339, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33347, 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
@@ -213238,12 +213298,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+33371,
+ (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33379,
libc.VaList(bp+8, func() uintptr {
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- return ts + 33403 /* "vacuum" */
+ return ts + 33411 /* "vacuum" */
}
- return ts + 33410 /* "update" */
+ return ts + 33418 /* "update" */
}()))
}
}
@@ -213251,7 +213311,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+15789, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15797, uintptr(0), uintptr(0), p+64)
// Point the object iterator at the first object
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -213265,14 +213325,14 @@ 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+18232)
- rbuCopyPragma(tls, p, ts+17623)
+ rbuCopyPragma(tls, p, ts+18240)
+ rbuCopyPragma(tls, p, ts+17631)
}
// 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+33417, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, ts+33425, uintptr(0), uintptr(0), p+64)
}
// Check if the main database is a zipvfs db. If it is, set the upper
@@ -213282,7 +213342,7 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr)
var frc int32 = Xsqlite3_file_control(tls, db, ts+7684, SQLITE_FCNTL_ZIPVFS, uintptr(0))
if frc == SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls,
- db, ts+33433, uintptr(0), uintptr(0), p+64)
+ db, ts+33441, uintptr(0), uintptr(0), p+64)
}
}
@@ -213317,7 +213377,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:207705:19: */
+func rbuMisuseError(tls *libc.TLS) uintptr { /* sqlite3.c:207780:19: */
var pRet uintptr
pRet = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3rbu{})))
if pRet != 0 {
@@ -213328,7 +213388,7 @@ func rbuMisuseError(tls *libc.TLS) uintptr { /* sqlite3.c:207705:19: */
}
// Open and return a new RBU handle.
-func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* sqlite3.c:207718:23: */
+func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* sqlite3.c:207793:23: */
if zTarget == uintptr(0) || zRbu == uintptr(0) {
return rbuMisuseError(tls)
}
@@ -213336,13 +213396,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:207730:23: */
+func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) uintptr { /* sqlite3.c:207805: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+33457, zState+uintptr(n-7), uint64(7)) {
+ if n >= 7 && 0 == libc.Xmemcmp(tls, ts+33465, zState+uintptr(n-7), uint64(7)) {
return rbuMisuseError(tls)
}
}
@@ -213351,7 +213411,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:207748:20: */
+func Xsqlite3rbu_db(tls *libc.TLS, pRbu uintptr, bRbu int32) uintptr { /* sqlite3.c:207823:20: */
var db uintptr = uintptr(0)
if pRbu != 0 {
db = func() uintptr {
@@ -213367,12 +213427,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:207762:13: */
+func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* sqlite3.c:207837: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+31483, uint64(8)) == 0 {
+ if libc.Xmemcmp(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), ts+31491, 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++
@@ -213385,13 +213445,13 @@ func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* sqlite3.c:207762:13: */
}
// Close the RBU handle.
-func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sqlite3.c:207780:16: */
+func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sqlite3.c:207855: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+15804, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15812, uintptr(0), uintptr(0), p+64)
}
// Sync the db file if currently doing an incremental checkpoint
@@ -213405,7 +213465,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+15804, uintptr(0), uintptr(0), p+64)
+ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15812, uintptr(0), uintptr(0), p+64)
}
// Close any open statement handles.
@@ -213417,7 +213477,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+33465, uintptr(0), uintptr(0), uintptr(0))
+ var rc2 int32 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+33473, uintptr(0), uintptr(0), uintptr(0))
if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_DONE && rc2 != SQLITE_OK {
(*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -213450,13 +213510,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:207843:26: */
+func Xsqlite3rbu_progress(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* sqlite3.c:207918: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:207851:17: */
+func Xsqlite3rbu_bp_progress(tls *libc.TLS, p uintptr, pnOne uintptr, pnTwo uintptr) { /* sqlite3.c:207926:17: */
var MAX_PROGRESS int32 = 10000
switch (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage {
case RBU_STAGE_OAL:
@@ -213489,7 +213549,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:207886:16: */
+func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207961:16: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -213507,7 +213567,7 @@ func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207886:16:
return int32(0)
}
-func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207914:16: */
+func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207989:16: */
var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc
if rc == SQLITE_DONE {
return SQLITE_OK
@@ -213516,7 +213576,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207914
if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15804, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15812, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -213535,19 +213595,19 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207914
if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15804, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15812, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
var zBegin uintptr
if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zBegin = ts + 15789 /* "BEGIN" */
+ zBegin = ts + 15797 /* "BEGIN" */
} else {
- zBegin = ts + 33417 /* "BEGIN IMMEDIATE" */
+ zBegin = ts + 33425 /* "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+33417, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+33425, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -213614,7 +213674,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:207914
// relinquished). Finally, calls to xSync() on the target database
// file fail with SQLITE_INTERNAL errors.
-func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* sqlite3.c:208007:13: */
+func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* sqlite3.c:208082: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
@@ -213631,7 +213691,7 @@ func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* sqlite3.c:208007:13: */
}
//
-func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { /* sqlite3.c:208023:12: */
+func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { /* sqlite3.c:208098: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
@@ -213649,7 +213709,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:208041:13: */
+func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* sqlite3.c:208116:13: */
var pRbuVfs uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs
var pIter uintptr
@@ -213671,7 +213731,7 @@ func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* sqlite3.c:208041:13: */
}
// Remove an item from the main-db lists.
-func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* sqlite3.c:208063:13: */
+func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* sqlite3.c:208138: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 {
@@ -213696,7 +213756,7 @@ func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* sqlite3.c:208063: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:208084:17: */
+func rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) uintptr { /* sqlite3.c:208159:17: */
var pDb uintptr
Xsqlite3_mutex_enter(tls, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fmutex)
if bRbu != 0 {
@@ -213711,7 +213771,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:208099:12: */
+func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:208174:12: */
var p uintptr = pFile
var rc int32
var i int32
@@ -213743,7 +213803,7 @@ func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:208099: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:208132:12: */
+func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* sqlite3.c:208207:12: */
return U32(*(*U8)(unsafe.Pointer(aBuf)))<<24 +
U32(*(*U8)(unsafe.Pointer(aBuf + 1)))<<16 +
U32(*(*U8)(unsafe.Pointer(aBuf + 2)))<<8 +
@@ -213752,20 +213812,20 @@ func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* sqlite3.c:208132: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:208143:13: */
+func rbuPutU32(tls *libc.TLS, aBuf uintptr, iVal U32) { /* sqlite3.c:208218: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:208150:13: */
+func rbuPutU16(tls *libc.TLS, aBuf uintptr, iVal U16) { /* sqlite3.c:208225: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:208158:12: */
+func rbuVfsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:208233:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32
@@ -213829,7 +213889,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:208224:12: */
+func rbuVfsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* sqlite3.c:208299:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32
@@ -213868,7 +213928,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:208267:12: */
+func rbuVfsTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* sqlite3.c:208342: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)
@@ -213882,7 +213942,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:208279:12: */
+func rbuVfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* sqlite3.c:208354: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 {
@@ -213896,7 +213956,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:208293:12: */
+func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* sqlite3.c:208368:12: */
var p uintptr = pFile
var rc int32
rc = (*struct {
@@ -213916,7 +213976,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:208314:12: */
+func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:208389:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32 = SQLITE_OK
@@ -213936,7 +213996,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:208336:12: */
+func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* sqlite3.c:208411:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -213944,7 +214004,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:208344:12: */
+func rbuVfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* sqlite3.c:208419:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -213952,7 +214012,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:208352:12: */
+func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:208427:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -213979,7 +214039,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+33492, 0)
+ (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33500, 0)
} else if rc == SQLITE_NOTFOUND {
(*Sqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p
(*Rbu_file)(unsafe.Pointer(p)).FpRbu = pRbu
@@ -214004,7 +214064,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+33515, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
+ var zOut uintptr = Xsqlite3_mprintf(tls, ts+33523, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
*(*uintptr)(unsafe.Pointer(pArg)) = zOut
if zOut == uintptr(0) {
rc = SQLITE_NOMEM
@@ -214015,7 +214075,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:208408:12: */
+func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:208483:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -214023,7 +214083,7 @@ func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:208408:
}
// Return the device characteristic flags supported by an rbuVfs-file.
-func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:208416:12: */
+func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* sqlite3.c:208491:12: */
var p uintptr = pFile
return (*struct {
f func(*libc.TLS, uintptr) int32
@@ -214031,7 +214091,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:208424:12: */
+func rbuVfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* sqlite3.c:208499:12: */
var p uintptr = pFile
var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu
var rc int32 = SQLITE_OK
@@ -214064,7 +214124,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:208462:12: */
+func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* sqlite3.c:208537:12: */
var p uintptr = pFile
var rc int32 = SQLITE_OK
var eStage int32 = func() int32 {
@@ -214121,13 +214181,13 @@ func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, i
}
// Memory barrier.
-func rbuVfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:208520:13: */
+func rbuVfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* sqlite3.c:208595: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:208528:12: */
+func rbuVfsShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* sqlite3.c:208603:12: */
var p uintptr = pFile
var rc int32 = SQLITE_OK
var eStage int32 = func() int32 {
@@ -214150,7 +214210,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:208547:12: */
+func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* sqlite3.c:208622:12: */
var pRbuVfs uintptr = pVfs
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).FpRealVfs
var pFd uintptr = pFile
@@ -214192,7 +214252,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+33526, 0) != 0 {
+ Xsqlite3_uri_boolean(tls, zName, ts+33534, 0) != 0 {
oflags = SQLITE_OPEN_TEMP_DB | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE
zOpen = uintptr(0)
@@ -214236,10 +214296,10 @@ var rbuvfs_io_methods = Sqlite3_io_methods{
FxShmLock: 0, // xShmLock
FxShmBarrier: 0, // xShmBarrier
FxShmUnmap: 0, // xFetch, xUnfetch
-} /* sqlite3.c:208554:29 */
+} /* sqlite3.c:208629:29 */
// Delete the file located at zPath.
-func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* sqlite3.c:208645:12: */
+func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* sqlite3.c:208720:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, int32) int32
@@ -214248,7 +214308,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:208654:12: */
+func rbuVfsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* sqlite3.c:208729:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -214293,7 +214353,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:208702:12: */
+func rbuVfsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* sqlite3.c:208777:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
@@ -214301,7 +214361,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:208716:13: */
+func rbuVfsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* sqlite3.c:208791:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr) uintptr
@@ -214311,7 +214371,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:208726:13: */
+func rbuVfsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* sqlite3.c:208801:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
(*struct {
f func(*libc.TLS, uintptr, int32, uintptr)
@@ -214319,7 +214379,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:208734:13: */
+func rbuVfsDlSym(tls *libc.TLS, pVfs uintptr, pArg uintptr, zSym uintptr) uintptr { /* sqlite3.c:208809:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr
@@ -214327,7 +214387,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:208746:13: */
+func rbuVfsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* sqlite3.c:208821:13: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
(*struct {
f func(*libc.TLS, uintptr, uintptr)
@@ -214336,7 +214396,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:208756:12: */
+func rbuVfsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* sqlite3.c:208831:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, int32, uintptr) int32
@@ -214345,7 +214405,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:208765:12: */
+func rbuVfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* sqlite3.c:208840:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, int32) int32
@@ -214353,7 +214413,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:208773:12: */
+func rbuVfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* sqlite3.c:208848:12: */
var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs
return (*struct {
f func(*libc.TLS, uintptr, uintptr) int32
@@ -214361,13 +214421,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:208781:12: */
+func rbuVfsGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* sqlite3.c:208856: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:208789:17: */
+func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* sqlite3.c:208864: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
@@ -214381,7 +214441,7 @@ func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* sqlite3.c:208789
// 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:208803:16: */
+func Xsqlite3rbu_create_vfs(tls *libc.TLS, zName uintptr, zParent uintptr) int32 { /* sqlite3.c:208878:16: */
var pNew uintptr = uintptr(0) // Newly allocated VFS
var rc int32 = SQLITE_OK
@@ -214442,17 +214502,17 @@ var vfs_template = Sqlite3_vfs{
FxSleep: 0, // xSleep
FxCurrentTime: 0, // xCurrentTime
FxGetLastError: 0, // Unimplemented version 3 methods
-} /* sqlite3.c:208806:22 */
+} /* sqlite3.c:208881: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:208881:26: */
+func Xsqlite3rbu_temp_size_limit(tls *libc.TLS, pRbu uintptr, n Sqlite3_int64) Sqlite3_int64 { /* sqlite3.c:208956: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:208888:26: */
+func Xsqlite3rbu_temp_size(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* sqlite3.c:208963:26: */
return (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FszTemp
}
@@ -214535,7 +214595,7 @@ type SessionTable1 = struct {
FnEntry int32
FnChange int32
FapChange uintptr
-} /* sqlite3.c:10828:9 */
+} /* sqlite3.c:10832:9 */
//************************************************************************
@@ -214606,7 +214666,7 @@ type SessionTable1 = struct {
// #include <assert.h>
// #include <string.h>
-type SessionTable = SessionTable1 /* sqlite3.c:210232:29 */
+type SessionTable = SessionTable1 /* sqlite3.c:210308:29 */
type SessionChange1 = struct {
Fop U8
FbIndirect U8
@@ -214616,16 +214676,16 @@ type SessionChange1 = struct {
F__ccgo_pad2 [4]byte
FaRecord uintptr
FpNext uintptr
-} /* sqlite3.c:10828:9 */
+} /* sqlite3.c:10832:9 */
-type SessionChange = SessionChange1 /* sqlite3.c:210233:30 */
+type SessionChange = SessionChange1 /* sqlite3.c:210309:30 */
type SessionBuffer1 = struct {
FaBuf uintptr
FnBuf int32
FnAlloc int32
-} /* sqlite3.c:10836:9 */
+} /* sqlite3.c:10840:9 */
-type SessionBuffer = SessionBuffer1 /* sqlite3.c:210234:30 */
+type SessionBuffer = SessionBuffer1 /* sqlite3.c:210310:30 */
type SessionInput1 = struct {
FbNoDiscard int32
FiCurrent int32
@@ -214639,13 +214699,13 @@ type SessionInput1 = struct {
FpIn uintptr
FbEof int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:10836:9 */
+} /* sqlite3.c:10840:9 */
-type SessionInput = SessionInput1 /* sqlite3.c:210235:29 */
+type SessionInput = SessionInput1 /* sqlite3.c:210311:29 */
// Minimum chunk size used by streaming versions of functions.
-var sessions_strm_chunk_size int32 = SESSIONS_STRM_CHUNK_SIZE /* sqlite3.c:210248:12 */
+var sessions_strm_chunk_size int32 = SESSIONS_STRM_CHUNK_SIZE /* sqlite3.c:210324:12 */
type SessionHook1 = struct {
FpCtx uintptr
@@ -214653,13 +214713,13 @@ type SessionHook1 = struct {
FxNew uintptr
FxCount uintptr
FxDepth uintptr
-} /* sqlite3.c:10828:9 */
+} /* sqlite3.c:10832:9 */
-type SessionHook = SessionHook1 /* sqlite3.c:210250:28 */
+type SessionHook = SessionHook1 /* sqlite3.c:210326: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:210528:12: */
+func sessionVarintPut(tls *libc.TLS, aBuf uintptr, iVal int32) int32 { /* sqlite3.c:210604:12: */
return int32(func() uint8 {
if U32(iVal) < U32(0x80) {
return uint8(func() int32 { *(*U8)(unsafe.Pointer(aBuf)) = uint8(iVal); return 1 }())
@@ -214669,13 +214729,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:210535:12: */
+func sessionVarintLen(tls *libc.TLS, iVal int32) int32 { /* sqlite3.c:210611: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:210543:12: */
+func sessionVarintGet(tls *libc.TLS, aBuf uintptr, piVal uintptr) int32 { /* sqlite3.c:210619: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 }())
@@ -214688,7 +214748,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:210554:22: */
+func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* sqlite3.c:210630: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)
@@ -214696,7 +214756,7 @@ func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* sqlite3.c:210
}
// Write a 64-bit big-endian integer value to the buffer aBuf[].
-func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* sqlite3.c:210564:13: */
+func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* sqlite3.c:210640: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))
@@ -214718,7 +214778,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:210588:12: */
+func sessionSerializeValue(tls *libc.TLS, aBuf uintptr, pValue uintptr, pnWrite uintptr) int32 { /* sqlite3.c:210664:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -214806,7 +214866,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:210664:13: */
+func sessionMalloc64(tls *libc.TLS, pSession uintptr, nByte I64) uintptr { /* sqlite3.c:210740:13: */
var pRet uintptr = Xsqlite3_malloc64(tls, uint64(nByte))
if pSession != 0 {
*(*I64)(unsafe.Pointer(pSession + 56)) += I64(Xsqlite3_msize(tls, pRet))
@@ -214817,7 +214877,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:210675:13: */
+func sessionFree(tls *libc.TLS, pSession uintptr, pFree uintptr) { /* sqlite3.c:210751:13: */
if pSession != 0 {
*(*I64)(unsafe.Pointer(pSession + 56)) -= I64(Xsqlite3_msize(tls, pFree))
}
@@ -214840,14 +214900,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:210701:21: */
+func sessionHashAppendI64(tls *libc.TLS, h uint32, i I64) uint32 { /* sqlite3.c:210777: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:210710:21: */
+func sessionHashAppendBlob(tls *libc.TLS, h uint32, n int32, z uintptr) uint32 { /* sqlite3.c:210786:21: */
var i int32
for i = 0; i < n; i++ {
h = h<<3 ^ h ^ uint32(*(*U8)(unsafe.Pointer(z + uintptr(i))))
@@ -214857,7 +214917,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:210720:21: */
+func sessionHashAppendType(tls *libc.TLS, h uint32, eType int32) uint32 { /* sqlite3.c:210796:21: */
return h<<3 ^ h ^ uint32(eType)
}
@@ -214870,7 +214930,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:210735:12: */
+func sessionPreupdateHash(tls *libc.TLS, pSession uintptr, pTab uintptr, bNew int32, piHash uintptr, pbNullPK uintptr) int32 { /* sqlite3.c:210811:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -214936,7 +214996,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:210800:12: */
+func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* sqlite3.c:210876:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -214962,7 +215022,7 @@ func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* sqlite3.c:210800: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:210818:21: */
+func sessionChangeHash(tls *libc.TLS, pTab uintptr, bPkOnly int32, aRecord uintptr, nBucket int32) uint32 { /* sqlite3.c:210894:21: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -215005,7 +215065,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:210867:12: */
+func sessionChangeEqual(tls *libc.TLS, pTab uintptr, bLeftPkOnly int32, aLeft uintptr, bRightPkOnly int32, aRight uintptr) int32 { /* sqlite3.c:210943: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
@@ -215044,7 +215104,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:210910:13: */
+func sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr, aRight uintptr) { /* sqlite3.c:210986: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
@@ -215083,7 +215143,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:210956:11: */
+func sessionMergeValue(tls *libc.TLS, paOne uintptr, paTwo uintptr, pnVal uintptr) uintptr { /* sqlite3.c:211032:11: */
var a1 uintptr = *(*uintptr)(unsafe.Pointer(paOne))
var a2 uintptr = *(*uintptr)(unsafe.Pointer(paTwo))
var pRet uintptr = uintptr(0)
@@ -215110,7 +215170,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:210990:12: */
+func sessionMergeUpdate(tls *libc.TLS, paOut uintptr, pTab uintptr, bPatchset int32, aOldRecord1 uintptr, aOldRecord2 uintptr, aNewRecord1 uintptr, aNewRecord2 uintptr) int32 { /* sqlite3.c:211066:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -215185,7 +215245,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:211067:12: */
+func sessionPreupdateEqual(tls *libc.TLS, pSession uintptr, pTab uintptr, pChange uintptr, op int32) int32 { /* sqlite3.c:211143:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -215273,7 +215333,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:211146:12: */
+func sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uintptr) int32 { /* sqlite3.c:211222: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
@@ -215337,7 +215397,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:211212: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:211288:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -215354,13 +215414,13 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
var abPK uintptr = uintptr(0)
nThis = Xsqlite3Strlen30(tls, zThis)
- if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+12577, zThis) {
+ if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+12585, 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+33537, 0)
+ ts+33545, 0)
} else if rc == SQLITE_ERROR {
zPragma = Xsqlite3_mprintf(tls, ts+1524, 0)
} else {
@@ -215373,7 +215433,7 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
return rc
}
} else {
- zPragma = Xsqlite3_mprintf(tls, ts+33658, libc.VaList(bp, zDb, zThis))
+ zPragma = Xsqlite3_mprintf(tls, ts+33666, libc.VaList(bp, zDb, zThis))
}
if !(zPragma != 0) {
*(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0)
@@ -215468,7 +215528,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:211345:12: */
+func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* sqlite3.c:211421:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -215485,7 +215545,7 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /*
break
}
}
- if 0 == Xsqlite3_stricmp(tls, ts+12577, (*SessionTable)(unsafe.Pointer(pTab)).FzName) {
+ if 0 == Xsqlite3_stricmp(tls, ts+12585, (*SessionTable)(unsafe.Pointer(pTab)).FzName) {
(*SessionTable)(unsafe.Pointer(pTab)).FbStat1 = 1
}
@@ -215504,15 +215564,15 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /*
type SessionStat1Ctx1 = struct {
Fhook SessionHook
FpSession uintptr
-} /* sqlite3.c:211380:9 */
+} /* sqlite3.c:211456: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:211380:32 */
+type SessionStat1Ctx = SessionStat1Ctx1 /* sqlite3.c:211456:32 */
-func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* sqlite3.c:211385:12: */
+func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* sqlite3.c:211461:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -215528,7 +215588,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:211395:12: */
+func sessionStat1New(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* sqlite3.c:211471:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -215544,21 +215604,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:211405:12: */
+func sessionStat1Count(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211481: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:211409:12: */
+func sessionStat1Depth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211485: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:211414:12: */
+func sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, pC uintptr) int32 { /* sqlite3.c:211490:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -215672,7 +215732,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:211520:13: */
+func sessionPreupdateOneChange(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr) { /* sqlite3.c:211596:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -215968,7 +216028,7 @@ __35:
__36:
}
-func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uintptr) int32 { /* sqlite3.c:211669:12: */
+func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uintptr) int32 { /* sqlite3.c:211745:12: */
var rc int32 = SQLITE_OK
var nName int32 = Xsqlite3Strlen30(tls, zName)
var pRet uintptr
@@ -216003,7 +216063,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:211709:13: */
+func xPreUpdate(tls *libc.TLS, pCtx uintptr, db uintptr, op int32, zDb uintptr, zName uintptr, iKey1 Sqlite3_int64, iKey2 Sqlite3_int64) { /* sqlite3.c:211785:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -216038,25 +216098,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:211747:12: */
+func sessionPreupdateOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:211823:12: */
return Xsqlite3_preupdate_old(tls, pCtx, iVal, ppVal)
}
-func sessionPreupdateNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:211750:12: */
+func sessionPreupdateNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:211826:12: */
return Xsqlite3_preupdate_new(tls, pCtx, iVal, ppVal)
}
-func sessionPreupdateCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211753:12: */
+func sessionPreupdateCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211829:12: */
return Xsqlite3_preupdate_count(tls, pCtx)
}
-func sessionPreupdateDepth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211756:12: */
+func sessionPreupdateDepth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211832: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:211764:13: */
+func sessionPreupdateHooks(tls *libc.TLS, pSession uintptr) { /* sqlite3.c:211840: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
@@ -216076,24 +216136,24 @@ type SessionDiffCtx1 = struct {
FpStmt uintptr
FnOldOff int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:211774:9 */
+} /* sqlite3.c:211850:9 */
-type SessionDiffCtx = SessionDiffCtx1 /* sqlite3.c:211774:31 */
+type SessionDiffCtx = SessionDiffCtx1 /* sqlite3.c:211850:31 */
// The diff hook implementations.
-func sessionDiffOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:211783:12: */
+func sessionDiffOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:211859: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:211788:12: */
+func sessionDiffNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* sqlite3.c:211864: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:211793:12: */
+func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211869:12: */
var p uintptr = pCtx
if (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff != 0 {
return (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff
@@ -216101,13 +216161,13 @@ func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211793:1
return Xsqlite3_column_count(tls, (*SessionDiffCtx)(unsafe.Pointer(p)).FpStmt)
}
-func sessionDiffDepth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211797:12: */
+func sessionDiffDepth(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:211873: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:211805:13: */
+func sessionDiffHooks(tls *libc.TLS, pSession uintptr, pDiffCtx uintptr) { /* sqlite3.c:211881: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
@@ -216123,7 +216183,7 @@ 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:211816:13: */
+func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* sqlite3.c:211892:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -216133,9 +216193,9 @@ func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr,
for i = 0; i < nCol; i++ {
if *(*U8)(unsafe.Pointer(abPK + uintptr(i))) != 0 {
- zRet = Xsqlite3_mprintf(tls, ts+33687,
+ zRet = Xsqlite3_mprintf(tls, ts+33695,
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 + 22742 /* " AND " */
+ zSep = ts + 22750 /* " AND " */
if zRet == uintptr(0) {
break
}
@@ -216145,7 +216205,7 @@ func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr,
return zRet
}
-func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* sqlite3.c:211839:13: */
+func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* sqlite3.c:211915:13: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -216158,9 +216218,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+33721,
+ ts+33729,
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 + 33762 /* " OR " */
+ zSep = ts + 33770 /* " OR " */
if zRet == uintptr(0) {
break
}
@@ -216175,18 +216235,18 @@ func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintp
return zRet
}
-func sessionSelectFindNew(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTbl uintptr, zExpr uintptr) uintptr { /* sqlite3.c:211870:13: */
+func sessionSelectFindNew(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTbl uintptr, zExpr uintptr) uintptr { /* sqlite3.c:211946:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
var zRet uintptr = Xsqlite3_mprintf(tls,
- ts+33767,
+ ts+33775,
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:211886:12: */
+func sessionDiffFindNew(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, zDb1 uintptr, zDb2 uintptr, zExpr uintptr) int32 { /* sqlite3.c:211962:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -216214,7 +216274,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:211917:12: */
+func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFrom uintptr, zExpr uintptr) int32 { /* sqlite3.c:211993:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -216226,7 +216286,7 @@ func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFro
rc = SQLITE_NOMEM
} else {
var zStmt uintptr = Xsqlite3_mprintf(tls,
- ts+33845,
+ ts+33853,
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
@@ -216251,7 +216311,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:211957:16: */
+func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:212033:16: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -216364,7 +216424,7 @@ __6:
if !(pzErrMsg != 0) {
goto __16
}
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+33898, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+33906, 0)
__16:
;
rc = SQLITE_SCHEMA
@@ -216424,7 +216484,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:212052:16: */
+func Xsqlite3session_create(tls *libc.TLS, db uintptr, zDb uintptr, ppSession uintptr) int32 { /* sqlite3.c:212128: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
@@ -216460,7 +216520,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:212090:13: */
+func sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) { /* sqlite3.c:212166:13: */
var pNext uintptr
var pTab uintptr
@@ -216482,7 +216542,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:212114:17: */
+func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* sqlite3.c:212190:17: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -216520,7 +216580,7 @@ func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* sqlite3.c:2121
}
// Set a table filter on a Session Object.
-func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintptr, pCtx uintptr) { /* sqlite3.c:212146:17: */
+func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintptr, pCtx uintptr) { /* sqlite3.c:212222:17: */
(*Sqlite3_session)(unsafe.Pointer(pSession)).FbAutoAttach = 1
(*Sqlite3_session)(unsafe.Pointer(pSession)).FpFilterCtx = pCtx
(*Sqlite3_session)(unsafe.Pointer(pSession)).FxTableFilter = xFilter
@@ -216532,7 +216592,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:212164:16: */
+func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) int32 { /* sqlite3.c:212240:16: */
var rc int32 = SQLITE_OK
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
@@ -216583,7 +216643,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:212217:12: */
+func sessionBufferGrow(tls *libc.TLS, p uintptr, nByte I64, pRc uintptr) int32 { /* sqlite3.c:212293: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
@@ -216628,7 +216688,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:212260:13: */
+func sessionAppendValue(tls *libc.TLS, p uintptr, pVal uintptr, pRc uintptr) { /* sqlite3.c:212336:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -216651,7 +216711,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:212282:13: */
+func sessionAppendByte(tls *libc.TLS, p uintptr, v U8, pRc uintptr) { /* sqlite3.c:212358: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
}
@@ -216662,7 +216722,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:212295:13: */
+func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* sqlite3.c:212371: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)
}
@@ -216673,7 +216733,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:212308:13: */
+func sessionAppendBlob(tls *libc.TLS, p uintptr, aBlob uintptr, nBlob int32, pRc uintptr) { /* sqlite3.c:212384: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
@@ -216686,7 +216746,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:212328:13: */
+func sessionAppendStr(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* sqlite3.c:212404: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))
@@ -216700,7 +216760,7 @@ 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:212348:13: */
+func sessionAppendInteger(tls *libc.TLS, p uintptr, iVal int32, pRc uintptr) { /* sqlite3.c:212424:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -216717,7 +216777,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:212367:13: */
+func sessionAppendIdent(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* sqlite3.c:212443: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)
@@ -216738,7 +216798,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:212392:13: */
+func sessionAppendCol(tls *libc.TLS, p uintptr, pStmt uintptr, iCol int32, pRc uintptr) { /* sqlite3.c:212468:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -216798,7 +216858,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:212454:12: */
+func sessionAppendUpdate(tls *libc.TLS, pBuf uintptr, bPatchset int32, pStmt uintptr, p uintptr, abPK uintptr) int32 { /* sqlite3.c:212530:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -216904,7 +216964,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:212554:12: */
+func sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintptr, nCol int32, abPK uintptr) int32 { /* sqlite3.c:212630:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -216961,7 +217021,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:212609:12: */
+func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCol int32, azCol uintptr, abPK uintptr, ppStmt uintptr) int32 { /* sqlite3.c:212685:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -216969,10 +217029,10 @@ func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCo
var zSql uintptr = uintptr(0)
var nSql int32 = -1
- if 0 == Xsqlite3_stricmp(tls, ts+12577, zTab) {
+ if 0 == Xsqlite3_stricmp(tls, ts+12585, zTab) {
zSql = Xsqlite3_mprintf(tls,
- ts+33925, libc.VaList(bp, zDb))
+ ts+33933, libc.VaList(bp, zDb))
if zSql == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_NOMEM
}
@@ -216981,18 +217041,18 @@ func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCo
var zSep uintptr = ts + 1524 /* "" */
*(*SessionBuffer)(unsafe.Pointer(bp + 8 /* buf */)) = SessionBuffer{}
- sessionAppendStr(tls, bp+8, ts+34035, bp+24)
+ sessionAppendStr(tls, bp+8, ts+34043, bp+24)
sessionAppendIdent(tls, bp+8, zDb, bp+24)
sessionAppendStr(tls, bp+8, ts+1537, bp+24)
sessionAppendIdent(tls, bp+8, zTab, bp+24)
- sessionAppendStr(tls, bp+8, ts+34050, bp+24)
+ sessionAppendStr(tls, bp+8, ts+34058, 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+34058, bp+24)
+ sessionAppendStr(tls, bp+8, ts+34066, bp+24)
sessionAppendInteger(tls, bp+8, i+1, bp+24)
- zSep = ts + 22742 /* " AND " */
+ zSep = ts + 22750 /* " AND " */
}
}
zSql = (*SessionBuffer)(unsafe.Pointer(bp + 8 /* &buf */)).FaBuf
@@ -217012,7 +217072,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:212666:12: */
+func sessionSelectBind(tls *libc.TLS, pSelect uintptr, nCol int32, abPK uintptr, pChange uintptr) int32 { /* sqlite3.c:212742:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -217090,7 +217150,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:212737:13: */
+func sessionAppendTableHdr(tls *libc.TLS, pBuf uintptr, bPatchset int32, pTab uintptr, pRc uintptr) { /* sqlite3.c:212813:13: */
// Write a table header
sessionAppendByte(tls, pBuf, func() uint8 {
if bPatchset != 0 {
@@ -217111,7 +217171,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:212760:12: */
+func sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32, xOutput uintptr, pOut uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* sqlite3.c:212836:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -217133,7 +217193,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+34064, uintptr(0), uintptr(0), uintptr(0))
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3_exec(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb, ts+34072, uintptr(0), uintptr(0), uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK {
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
@@ -217231,7 +217291,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+34084, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+34092, uintptr(0), uintptr(0), uintptr(0))
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db))
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
@@ -217241,7 +217301,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:212889:16: */
+func Xsqlite3session_changeset(tls *libc.TLS, pSession uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* sqlite3.c:212965:16: */
var rc int32
if pnChangeset == uintptr(0) || ppChangeset == uintptr(0) {
@@ -217253,7 +217313,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:212907:16: */
+func Xsqlite3session_changeset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* sqlite3.c:212983:16: */
if xOutput == uintptr(0) {
return SQLITE_MISUSE
}
@@ -217261,7 +217321,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:212919:16: */
+func Xsqlite3session_patchset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* sqlite3.c:212995:16: */
if xOutput == uintptr(0) {
return SQLITE_MISUSE
}
@@ -217273,7 +217333,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:212935:16: */
+func Xsqlite3session_patchset(tls *libc.TLS, pSession uintptr, pnPatchset uintptr, ppPatchset uintptr) int32 { /* sqlite3.c:213011:16: */
if pnPatchset == uintptr(0) || ppPatchset == uintptr(0) {
return SQLITE_MISUSE
}
@@ -217281,7 +217341,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:212947:16: */
+func Xsqlite3session_enable(tls *libc.TLS, pSession uintptr, bEnable int32) int32 { /* sqlite3.c:213023:16: */
var ret int32
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
if bEnable >= 0 {
@@ -217293,7 +217353,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:212961:16: */
+func Xsqlite3session_indirect(tls *libc.TLS, pSession uintptr, bIndirect int32) int32 { /* sqlite3.c:213037:16: */
var ret int32
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb))
if bIndirect >= 0 {
@@ -217306,7 +217366,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:212976:16: */
+func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) int32 { /* sqlite3.c:213052:16: */
var ret int32 = 0
var pTab uintptr
@@ -217320,12 +217380,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:212992:26: */
+func Xsqlite3session_memory_used(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* sqlite3.c:213068: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:212999:16: */
+func Xsqlite3session_object_config(tls *libc.TLS, pSession uintptr, op int32, pArg uintptr) int32 { /* sqlite3.c:213075:16: */
var rc int32 = SQLITE_OK
switch op {
case SQLITE_SESSION_OBJCONFIG_SIZE:
@@ -217351,12 +217411,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:213025:26: */
+func Xsqlite3session_changeset_size(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* sqlite3.c:213101: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:213032:12: */
+func sessionChangesetStart(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr, nChangeset int32, pChangeset uintptr, bInvert int32, bSkipEmpty int32) int32 { /* sqlite3.c:213108:12: */
var pRet uintptr // Iterator to return
var nByte int32 // Number of bytes to allocate for iterator
@@ -217389,28 +217449,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:213070:16: */
+func Xsqlite3changeset_start(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr) int32 { /* sqlite3.c:213146: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:213077:16: */
+func Xsqlite3changeset_start_v2(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr, flags int32) int32 { /* sqlite3.c:213153: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:213090:16: */
+func Xsqlite3changeset_start_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr) int32 { /* sqlite3.c:213166: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:213097:16: */
+func Xsqlite3changeset_start_v2_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr, flags int32) int32 { /* sqlite3.c:213173: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:213111:13: */
+func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* sqlite3.c:213187: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
@@ -217428,7 +217488,7 @@ func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* sqlite3.c:213111: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:213131:12: */
+func sessionInputBuffer(tls *libc.TLS, pIn uintptr, nByte int32) int32 { /* sqlite3.c:213207:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -217461,7 +217521,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:213159:13: */
+func sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) { /* sqlite3.c:213235:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -217486,7 +217546,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:213185:12: */
+func sessionValueSetStr(tls *libc.TLS, pVal uintptr, aData uintptr, nData int32, enc U8) int32 { /* sqlite3.c:213261: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
@@ -217522,7 +217582,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:213226:12: */
+func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apOut uintptr, pbEmpty uintptr) int32 { /* sqlite3.c:213302:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -217540,7 +217600,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, 213244)
+ rc = Xsqlite3CorruptError(tls, 213320)
} else {
eType = int32(*(*U8)(unsafe.Pointer((*SessionInput)(unsafe.Pointer(pIn)).FaData + uintptr(libc.PostIncInt32(&(*SessionInput)(unsafe.Pointer(pIn)).FiNext, 1)))))
@@ -217565,7 +217625,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, 213264)
+ rc = Xsqlite3CorruptError(tls, 213340)
} else {
var enc U8 = func() uint8 {
if eType == SQLITE_TEXT {
@@ -217607,7 +217667,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:213302:12: */
+func sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) int32 { /* sqlite3.c:213378:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -217626,7 +217686,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, 213318)
+ rc = Xsqlite3CorruptError(tls, 213394)
} else {
rc = sessionInputBuffer(tls, pIn, nRead+*(*int32)(unsafe.Pointer(bp))+100)
nRead = nRead + *(*int32)(unsafe.Pointer(bp))
@@ -217653,7 +217713,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:213345:12: */
+func sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByte uintptr) int32 { /* sqlite3.c:213421:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -217695,7 +217755,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:213389:12: */
+func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:213465:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -217715,7 +217775,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, 213406)
+ *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = Xsqlite3CorruptError(tls, 213482)
}
}
@@ -217750,7 +217810,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:213438:12: */
+func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr, pbEmpty uintptr) int32 { /* sqlite3.c:213514:12: */
var i int32
var op U8
@@ -217807,13 +217867,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, 213492))
+ return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213568))
}
(*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, 213498))
+ return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213574))
}
if paRec != 0 {
@@ -217883,7 +217943,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, 213542))
+ return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213618))
}
*(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i+(*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*8)) = uintptr(0)
}
@@ -217914,7 +217974,7 @@ func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uint
// successfully advanced to the next change in the changeset, an SQLite
// error code if an error occurs, or SQLITE_DONE if there are no further
// changes in the changeset.
-func sessionChangesetNext(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr) int32 { /* sqlite3.c:213571:12: */
+func sessionChangesetNext(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr) int32 { /* sqlite3.c:213647:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -217934,14 +217994,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:213594:16: */
+func Xsqlite3changeset_next(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:213670: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:213603:16: */
+func Xsqlite3changeset_op(tls *libc.TLS, pIter uintptr, pzTab uintptr, pnCol uintptr, pOp uintptr, pbIndirect uintptr) int32 { /* sqlite3.c:213679: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
@@ -217955,7 +218015,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:213623:16: */
+func Xsqlite3changeset_pk(tls *libc.TLS, pIter uintptr, pabPK uintptr, pnCol uintptr) int32 { /* sqlite3.c:213699: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
@@ -217974,7 +218034,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:213646:16: */
+func Xsqlite3changeset_old(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* sqlite3.c:213722:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_DELETE {
return SQLITE_MISUSE
}
@@ -217996,7 +218056,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:213674:16: */
+func Xsqlite3changeset_new(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* sqlite3.c:213750:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_INSERT {
return SQLITE_MISUSE
}
@@ -218020,7 +218080,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:213708:16: */
+func Xsqlite3changeset_conflict(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* sqlite3.c:213784:16: */
if !(int32((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict) != 0) {
return SQLITE_MISUSE
}
@@ -218037,7 +218097,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:213731:16: */
+func Xsqlite3changeset_fk_conflicts(tls *libc.TLS, pIter uintptr, pnOut uintptr) int32 { /* sqlite3.c:213807:16: */
if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict != 0 || (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue != 0 {
return SQLITE_MISUSE
}
@@ -218049,7 +218109,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:213749:16: */
+func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:213825:16: */
var rc int32 = SQLITE_OK
if p != 0 {
var i int32 // Used to iterate through p->apValue[]
@@ -218066,7 +218126,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:213764:12: */
+func sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOut uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* sqlite3.c:213840:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -218302,7 +218362,7 @@ __27:
goto __6
__11:
- *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 213891)
+ *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 213967)
goto finished_invert
__6:
;
@@ -218353,7 +218413,7 @@ finished_invert:
}
// Invert a changeset object.
-func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* sqlite3.c:213923:16: */
+func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* sqlite3.c:213999:16: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -218368,7 +218428,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:213942:16: */
+func Xsqlite3changeset_invert_strm(tls *libc.TLS, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* sqlite3.c:214018:16: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -218390,9 +218450,9 @@ type SessionUpdate1 = struct {
FpStmt uintptr
FaMask uintptr
FpNext uintptr
-} /* sqlite3.c:213962:9 */
+} /* sqlite3.c:214038:9 */
-type SessionUpdate = SessionUpdate1 /* sqlite3.c:213962:30 */
+type SessionUpdate = SessionUpdate1 /* sqlite3.c:214038:30 */
type SessionApplyCtx1 = struct {
Fdb uintptr
@@ -218414,9 +218474,9 @@ type SessionApplyCtx1 = struct {
FbRebaseStarted U8
FbRebase U8
F__ccgo_pad3 [6]byte
-} /* sqlite3.c:213969:9 */
+} /* sqlite3.c:214045:9 */
-type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:213969:32 */
+type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:214045:32 */
// Number of prepared UPDATE statements to cache.
@@ -218424,7 +218484,7 @@ type SessionApplyCtx = SessionApplyCtx1 /* sqlite3.c:213969: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:213998:12: */
+func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, ppStmt uintptr) int32 { /* sqlite3.c:214074:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -218485,7 +218545,7 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32,
if pUp == uintptr(0) {
var nByte int32 = int32(uint64(unsafe.Sizeof(SessionUpdate{})) * uint64(nU32) * uint64(unsafe.Sizeof(U32(0))))
- var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+12577) == 0)
+ var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+12585) == 0)
pUp = Xsqlite3_malloc(tls, nByte)
if pUp == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_NOMEM
@@ -218497,24 +218557,24 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32,
(*SessionUpdate)(unsafe.Pointer(pUp)).FaMask = pUp + 1*24
libc.Xmemcpy(tls, (*SessionUpdate)(unsafe.Pointer(pUp)).FaMask, (*SessionApplyCtx)(unsafe.Pointer(p)).FaUpdateMask, uint64(nU32)*uint64(unsafe.Sizeof(U32(0))))
- sessionAppendStr(tls, bp, ts+34102, bp+16)
+ sessionAppendStr(tls, bp, ts+34110, bp+16)
sessionAppendIdent(tls, bp, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp+16)
- sessionAppendStr(tls, bp, ts+34115, bp+16)
+ sessionAppendStr(tls, bp, ts+34123, 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+34121, bp+16)
+ sessionAppendStr(tls, bp, ts+34129, bp+16)
sessionAppendInteger(tls, bp, ii*2+1, bp+16)
- zSep = ts + 15900 /* ", " */
+ zSep = ts + 15908 /* ", " */
}
}
// Create the WHERE clause part of the UPDATE
zSep = ts + 1524 /* "" */
- sessionAppendStr(tls, bp, ts+34050, bp+16)
+ sessionAppendStr(tls, bp, ts+34058, 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)
@@ -218522,13 +218582,13 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32,
sessionAppendStr(tls, bp,
- ts+34126, bp+16)
+ ts+34134, bp+16)
} else {
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp+16)
- sessionAppendStr(tls, bp, ts+34058, bp+16)
+ sessionAppendStr(tls, bp, ts+34066, bp+16)
sessionAppendInteger(tls, bp, ii*2+2, bp+16)
}
- zSep = ts + 22742 /* " AND " */
+ zSep = ts + 22750 /* " AND " */
}
}
@@ -218558,7 +218618,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:214137:13: */
+func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:214213:13: */
var pUp uintptr
var pNext uintptr
for pUp = (*SessionApplyCtx)(unsafe.Pointer(p)).FpUp; pUp != 0; pUp = pNext {
@@ -218586,7 +218646,7 @@ func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:214137: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:214167:12: */
+func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* sqlite3.c:214243:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -218596,34 +218656,34 @@ func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32
*(*SessionBuffer)(unsafe.Pointer(bp /* buf */)) = SessionBuffer{}
var nPk int32 = 0
- sessionAppendStr(tls, bp, ts+34201, bp+16)
+ sessionAppendStr(tls, bp, ts+34209, bp+16)
sessionAppendIdent(tls, bp, zTab, bp+16)
- sessionAppendStr(tls, bp, ts+34050, bp+16)
+ sessionAppendStr(tls, bp, ts+34058, 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+34121, bp+16)
+ sessionAppendStr(tls, bp, ts+34129, bp+16)
sessionAppendInteger(tls, bp, i+1, bp+16)
- zSep = ts + 22742 /* " AND " */
+ zSep = ts + 22750 /* " AND " */
}
}
if nPk < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol {
- sessionAppendStr(tls, bp, ts+34219, bp+16)
+ sessionAppendStr(tls, bp, ts+34227, bp+16)
sessionAppendInteger(tls, bp, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol+1, bp+16)
- sessionAppendStr(tls, bp, ts+33762, bp+16)
+ sessionAppendStr(tls, bp, ts+33770, bp+16)
zSep = ts + 1524 /* "" */
for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
if !(int32(*(*U8)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(i)))) != 0) {
sessionAppendStr(tls, bp, zSep, bp+16)
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16)
- sessionAppendStr(tls, bp, ts+34058, bp+16)
+ sessionAppendStr(tls, bp, ts+34066, bp+16)
sessionAppendInteger(tls, bp, i+1, bp+16)
- zSep = ts + 34227 /* "AND " */
+ zSep = ts + 34235 /* "AND " */
}
}
sessionAppendStr(tls, bp, ts+6260, bp+16)
@@ -218648,7 +218708,7 @@ 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:214232:12: */
+func sessionSelectRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* sqlite3.c:214308:12: */
return sessionSelectStmt(tls,
db, ts+7684, zTab, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24)
}
@@ -218660,7 +218720,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:214250:12: */
+func sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* sqlite3.c:214326:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -218668,19 +218728,19 @@ 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+34232, bp+16)
+ sessionAppendStr(tls, bp, ts+34240, bp+16)
sessionAppendIdent(tls, bp, zTab, bp+16)
- sessionAppendStr(tls, bp, ts+22748, bp+16)
+ sessionAppendStr(tls, bp, ts+22756, bp+16)
for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
if i != 0 {
- sessionAppendStr(tls, bp, ts+15900, bp+16)
+ sessionAppendStr(tls, bp, ts+15908, bp+16)
}
sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16)
}
- sessionAppendStr(tls, bp, ts+34250, bp+16)
+ sessionAppendStr(tls, bp, ts+34258, bp+16)
for i = 1; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ {
- sessionAppendStr(tls, bp, ts+34261, bp+16)
+ sessionAppendStr(tls, bp, ts+34269, bp+16)
}
sessionAppendStr(tls, bp, ts+6260, bp+16)
@@ -218691,7 +218751,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:214280:12: */
+func sessionPrepare(tls *libc.TLS, db uintptr, pp uintptr, zSql uintptr) int32 { /* sqlite3.c:214356:12: */
return Xsqlite3_prepare_v2(tls, db, zSql, -1, pp, uintptr(0))
}
@@ -218699,24 +218759,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:214290:12: */
- var rc int32 = sessionSelectRow(tls, db, ts+12577, p)
+func sessionStat1Sql(tls *libc.TLS, db uintptr, p uintptr) int32 { /* sqlite3.c:214366:12: */
+ var rc int32 = sessionSelectRow(tls, db, ts+12585, p)
if rc == SQLITE_OK {
rc = sessionPrepare(tls, db, p+16,
- ts+34265)
+ ts+34273)
}
if rc == SQLITE_OK {
rc = sessionPrepare(tls, db, p+8,
- ts+34378)
+ ts+34386)
}
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:214313:12: */
+func sessionBindValue(tls *libc.TLS, pStmt uintptr, i int32, pVal uintptr) int32 { /* sqlite3.c:214389: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
@@ -218743,7 +218803,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:214346:12: */
+func sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, abPK uintptr, pStmt uintptr) int32 { /* sqlite3.c:214422:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -218764,7 +218824,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, 214369)
+ rc = Xsqlite3CorruptError(tls, 214445)
} else {
rc = sessionBindValue(tls, pStmt, i+1, *(*uintptr)(unsafe.Pointer(bp /* pVal */)))
}
@@ -218788,7 +218848,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:214395:12: */
+func sessionSeekToRow(tls *libc.TLS, db uintptr, pIter uintptr, abPK uintptr, pSelect uintptr) int32 { /* sqlite3.c:214471:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -218832,7 +218892,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:214430:12: */
+func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int32 { /* sqlite3.c:214506:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -218904,7 +218964,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:214504:12: */
+func sessionConflictHandler(tls *libc.TLS, eType int32, p uintptr, pIter uintptr, xConflict uintptr, pCtx uintptr, pbReplace uintptr) int32 { /* sqlite3.c:214580:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -219004,7 +219064,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:214602:12: */
+func sessionApplyOneOp(tls *libc.TLS, pIter uintptr, p uintptr, xConflict uintptr, pCtx uintptr, pbReplace uintptr, pbRetry uintptr) int32 { /* sqlite3.c:214678:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -219139,7 +219199,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:214735:12: */
+func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* sqlite3.c:214811:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219161,7 +219221,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+34522, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+34530, uintptr(0), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
rc = sessionBindRow(tls, pIter,
*(*uintptr)(unsafe.Pointer(&struct {
@@ -219177,7 +219237,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+34543, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+34551, uintptr(0), uintptr(0), uintptr(0))
}
}
}
@@ -219186,7 +219246,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:214792:12: */
+func sessionRetryConstraints(tls *libc.TLS, db uintptr, bPatchset int32, zTab uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* sqlite3.c:214868:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -219240,7 +219300,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:214848: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:214924:12: */
bp := tls.Alloc(368)
defer tls.Free(368)
@@ -219258,10 +219318,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+34562, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+34570, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, ts+34588, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+34596, uintptr(0), uintptr(0), uintptr(0))
}
for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3changeset_next(tls, pIter) {
// var nCol int32 at bp+184, 4
@@ -219331,20 +219391,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+34618, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */))))
+ ts+34626, 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+34662,
+ ts+34670,
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+34733, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */))))
+ ts+34741, 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+12577) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), ts+12585) {
if libc.AssignInt32(&rc, sessionStat1Sql(tls, db, bp+48)) != 0 {
break
}
@@ -219402,14 +219462,14 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin
}
}
}
- Xsqlite3_exec(tls, db, ts+34793, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+34801, uintptr(0), uintptr(0), uintptr(0))
if flags&SQLITE_CHANGESETAPPLY_NOSAVEPOINT == 0 {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, ts+34823, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, ts+34831, uintptr(0), uintptr(0), uintptr(0))
} else {
- Xsqlite3_exec(tls, db, ts+34847, uintptr(0), uintptr(0), uintptr(0))
- Xsqlite3_exec(tls, db, ts+34823, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+34855, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, ts+34831, uintptr(0), uintptr(0), uintptr(0))
}
}
@@ -219431,7 +219491,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:215046: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:215122:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219449,7 +219509,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:215079:16: */
+func Xsqlite3changeset_apply(tls *libc.TLS, db uintptr, nChangeset int32, pChangeset uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr) int32 { /* sqlite3.c:215155:16: */
return Xsqlite3changeset_apply_v2(tls,
db, nChangeset, pChangeset, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0)
}
@@ -219457,7 +219517,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:215104: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:215180:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219472,7 +219532,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:215131:16: */
+func Xsqlite3changeset_apply_strm(tls *libc.TLS, db uintptr, xInput uintptr, pIn uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr) int32 { /* sqlite3.c:215207:16: */
return Xsqlite3changeset_apply_v2_strm(tls,
db, xInput, pIn, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0)
}
@@ -219480,7 +219540,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:215165: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:215241:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -219652,7 +219712,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:215347:12: */
+func sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase int32) int32 { /* sqlite3.c:215423:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -219783,7 +219843,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:215470:12: */
+func sessionChangegroupOutput(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* sqlite3.c:215546:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -219837,7 +219897,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:215521:16: */
+func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:215597:16: */
var rc int32 = SQLITE_OK // Return code
var p uintptr // New object
p = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_changegroup{})))
@@ -219852,7 +219912,7 @@ func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:215
// 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:215538:16: */
+func Xsqlite3changegroup_add(tls *libc.TLS, pGrp uintptr, nData int32, pData uintptr) int32 { /* sqlite3.c:215614:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219870,12 +219930,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:215554:16: */
+func Xsqlite3changegroup_output(tls *libc.TLS, pGrp uintptr, pnData uintptr, ppData uintptr) int32 { /* sqlite3.c:215630: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:215565:16: */
+func Xsqlite3changegroup_add_strm(tls *libc.TLS, pGrp uintptr, xInput uintptr, pIn uintptr) int32 { /* sqlite3.c:215641:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219892,12 +219952,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:215584:16: */
+func Xsqlite3changegroup_output_strm(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr) int32 { /* sqlite3.c:215660: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:215595:17: */
+func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* sqlite3.c:215671:17: */
if pGrp != 0 {
sessionDeleteTable(tls, uintptr(0), (*Sqlite3_changegroup)(unsafe.Pointer(pGrp)).FpList)
Xsqlite3_free(tls, pGrp)
@@ -219905,7 +219965,7 @@ func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* sqlite3.c:2155
}
// 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:215605:16: */
+func Xsqlite3changeset_concat(tls *libc.TLS, nLeft int32, pLeft uintptr, nRight int32, pRight uintptr, pnOut uintptr, ppOut uintptr) int32 { /* sqlite3.c:215681:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219929,7 +219989,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:215634:16: */
+func Xsqlite3changeset_concat_strm(tls *libc.TLS, xInputA uintptr, pInA uintptr, xInputB uintptr, pInB uintptr, xOutput uintptr, pOut uintptr) int32 { /* sqlite3.c:215710:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -219956,7 +220016,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:215673:13: */
+func sessionAppendRecordMerge(tls *libc.TLS, pBuf uintptr, nCol int32, a1 uintptr, n1 int32, a2 uintptr, n2 int32, pRc uintptr) { /* sqlite3.c:215749:13: */
sessionBufferGrow(tls, pBuf, int64(n1+n2), pRc)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var i int32
@@ -219997,7 +220057,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:215722:13: */
+func sessionAppendPartialUpdate(tls *libc.TLS, pBuf uintptr, pIter uintptr, aRec uintptr, nRec int32, aChange uintptr, nChange int32, pRc uintptr) { /* sqlite3.c:215798:13: */
sessionBufferGrow(tls, pBuf, int64(2+nRec+nChange), pRc)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var bData int32 = 0
@@ -220059,7 +220119,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:215790:12: */
+func sessionRebase(tls *libc.TLS, p uintptr, pIter uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* sqlite3.c:215866:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -220197,7 +220257,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:215922:16: */
+func Xsqlite3rebaser_create(tls *libc.TLS, ppNew uintptr) int32 { /* sqlite3.c:215998:16: */
var rc int32 = SQLITE_OK
var pNew uintptr
@@ -220212,7 +220272,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:215939:16: */
+func Xsqlite3rebaser_configure(tls *libc.TLS, p uintptr, nRebase int32, pRebase uintptr) int32 { /* sqlite3.c:216015:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -220227,7 +220287,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:215956:16: */
+func Xsqlite3rebaser_rebase(tls *libc.TLS, p uintptr, nIn int32, pIn uintptr, pnOut uintptr, ppOut uintptr) int32 { /* sqlite3.c:216032:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -220243,7 +220303,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:215975:16: */
+func Xsqlite3rebaser_rebase_strm(tls *libc.TLS, p uintptr, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* sqlite3.c:216051:16: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -220259,7 +220319,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:215996:17: */
+func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* sqlite3.c:216072:17: */
if p != 0 {
sessionDeleteTable(tls, uintptr(0), (*Sqlite3_rebaser)(unsafe.Pointer(p)).Fgrp.FpList)
Xsqlite3_free(tls, p)
@@ -220267,7 +220327,7 @@ func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* sqlite3.c:215996:17:
}
// Global configuration
-func Xsqlite3session_config(tls *libc.TLS, op int32, pArg uintptr) int32 { /* sqlite3.c:216006:16: */
+func Xsqlite3session_config(tls *libc.TLS, op int32, pArg uintptr) int32 { /* sqlite3.c:216082:16: */
var rc int32 = SQLITE_OK
switch op {
case SQLITE_SESSION_CONFIG_STRMSIZE:
@@ -220355,7 +220415,7 @@ type Fts5Global1 = struct {
FpTok uintptr
FpDfltTok uintptr
FpCsr uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
//************* End of sqlite3session.c *************************************
//************* Begin file fts5.c *******************************************
@@ -220417,13 +220477,13 @@ type Fts5Global1 = struct {
// Mark a function parameter as unused, to suppress nuisance compiler
// warnings.
-type Fts5Global = Fts5Global1 /* sqlite3.c:216737:27 */
+type Fts5Global = Fts5Global1 /* sqlite3.c:216813:27 */
type Fts5Colset1 = struct {
FnCol int32
FaiCol [1]int32
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5Colset = Fts5Colset1 /* sqlite3.c:216738:27 */
+type Fts5Colset = Fts5Colset1 /* sqlite3.c:216814:27 */
// *************************************************************************
//
@@ -220461,14 +220521,14 @@ type Fts5Config1 = struct {
FzRank uintptr
FzRankArgs uintptr
FpzErrmsg uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813: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:216758:27 */
+type Fts5Config = Fts5Config1 /* sqlite3.c:216834:27 */
//
// End of interface to code in fts5_config.c.
@@ -220483,7 +220543,7 @@ type Fts5Buffer1 = struct {
Fp uintptr
Fn int32
FnSpace int32
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
//
// End of interface to code in fts5_config.c.
@@ -220494,7 +220554,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:216884:27 */
+type Fts5Buffer = Fts5Buffer1 /* sqlite3.c:216960:27 */
type Fts5PoslistReader1 = struct {
Fa uintptr
@@ -220504,19 +220564,19 @@ type Fts5PoslistReader1 = struct {
FbEof U8
F__ccgo_pad1 [6]byte
FiPos I64
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5PoslistReader = Fts5PoslistReader1 /* sqlite3.c:216920:34 */
+type Fts5PoslistReader = Fts5PoslistReader1 /* sqlite3.c:216996:34 */
-type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* sqlite3.c:216939:9 */
+type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* sqlite3.c:217015:9 */
-type Fts5PoslistWriter = Fts5PoslistWriter1 /* sqlite3.c:216939:34 */
+type Fts5PoslistWriter = Fts5PoslistWriter1 /* sqlite3.c:217015:34 */
// Bucket of terms object used by the integrity-check in offsets=0 mode.
-type Fts5Termset1 = struct{ FapHash [512]uintptr } /* sqlite3.c:216961:9 */
+type Fts5Termset1 = struct{ FapHash [512]uintptr } /* sqlite3.c:217037:9 */
// Bucket of terms object used by the integrity-check in offsets=0 mode.
-type Fts5Termset = Fts5Termset1 /* sqlite3.c:216961:28 */
+type Fts5Termset = Fts5Termset1 /* sqlite3.c:217037:28 */
//
// End of interface to code in fts5_buffer.c.
@@ -220549,7 +220609,7 @@ type Fts5Index1 = struct {
FpDataVersion uintptr
FiStructVersion I64
FpStruct uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
//
// End of interface to code in fts5_buffer.c.
@@ -220560,16 +220620,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:216975:26 */
+type Fts5Index = Fts5Index1 /* sqlite3.c:217051:26 */
type Fts5IndexIter1 = struct {
FiRowid I64
FpData uintptr
FnData int32
FbEof U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5IndexIter = Fts5IndexIter1 /* sqlite3.c:216976:30 */
+type Fts5IndexIter = Fts5IndexIter1 /* sqlite3.c:217052:30 */
//
// End of interface to code in fts5_varint.c.
@@ -220584,7 +220644,7 @@ type Fts5Table1 = struct {
Fbase Sqlite3_vtab
FpConfig uintptr
FpIndex uintptr
-} /* sqlite3.c:217178:9 */
+} /* sqlite3.c:217254:9 */
//
// End of interface to code in fts5_varint.c.
@@ -220595,7 +220655,7 @@ type Fts5Table1 = struct {
// Interface to code in fts5_main.c.
// Virtual-table object.
-type Fts5Table = Fts5Table1 /* sqlite3.c:217178:26 */
+type Fts5Table = Fts5Table1 /* sqlite3.c:217254:26 */
//
// End of interface to code in fts5.c.
@@ -220612,7 +220672,7 @@ type Fts5Hash1 = struct {
FnSlot int32
FpScan uintptr
FaSlot uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
//
// End of interface to code in fts5.c.
@@ -220621,7 +220681,7 @@ type Fts5Hash1 = struct {
// *************************************************************************
//
// Interface to code in fts5_hash.c.
-type Fts5Hash = Fts5Hash1 /* sqlite3.c:217204:25 */
+type Fts5Hash = Fts5Hash1 /* sqlite3.c:217280:25 */
//
// End of interface to code in fts5_hash.c.
@@ -220640,7 +220700,7 @@ type Fts5Storage1 = struct {
FnTotalRow I64
FaTotalSize uintptr
FaStmt [11]uintptr
-} /* sqlite3.c:217260:9 */
+} /* sqlite3.c:217336:9 */
//
// End of interface to code in fts5_hash.c.
@@ -220651,7 +220711,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:217260:28 */
+type Fts5Storage = Fts5Storage1 /* sqlite3.c:217336:28 */
//
// End of interface to code in fts5_storage.c.
@@ -220667,7 +220727,7 @@ type Fts5Expr1 = struct {
FbDesc int32
FnPhrase int32
FapExprPhrase uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
//
// End of interface to code in fts5_storage.c.
@@ -220676,7 +220736,7 @@ type Fts5Expr1 = struct {
// *************************************************************************
//
// Interface to code in fts5_expr.c.
-type Fts5Expr = Fts5Expr1 /* sqlite3.c:217303:25 */
+type Fts5Expr = Fts5Expr1 /* sqlite3.c:217379:25 */
type Fts5ExprNode1 = struct {
FeType int32
FbEof int32
@@ -220688,9 +220748,9 @@ type Fts5ExprNode1 = struct {
FnChild int32
F__ccgo_pad2 [4]byte
FapChild [1]uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5ExprNode = Fts5ExprNode1 /* sqlite3.c:217304:29 */
+type Fts5ExprNode = Fts5ExprNode1 /* sqlite3.c:217380:29 */
type Fts5Parse1 = struct {
FpConfig uintptr
FzErr uintptr
@@ -220700,25 +220760,25 @@ type Fts5Parse1 = struct {
FpExpr uintptr
FbPhraseToAnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:217305:9 */
+} /* sqlite3.c:217381:9 */
-type Fts5Parse = Fts5Parse1 /* sqlite3.c:217305:26 */
+type Fts5Parse = Fts5Parse1 /* sqlite3.c:217381:26 */
type Fts5Token1 = struct {
Fp uintptr
Fn int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:217306:9 */
+} /* sqlite3.c:217382:9 */
-type Fts5Token = Fts5Token1 /* sqlite3.c:217306:26 */
+type Fts5Token = Fts5Token1 /* sqlite3.c:217382:26 */
type Fts5ExprPhrase1 = struct {
FpNode uintptr
Fposlist Fts5Buffer
FnTerm int32
F__ccgo_pad1 [4]byte
FaTerm [1]Fts5ExprTerm
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5ExprPhrase = Fts5ExprPhrase1 /* sqlite3.c:217307:31 */
+type Fts5ExprPhrase = Fts5ExprPhrase1 /* sqlite3.c:217383:31 */
type Fts5ExprNearset1 = struct {
FnNear int32
F__ccgo_pad1 [4]byte
@@ -220726,17 +220786,17 @@ type Fts5ExprNearset1 = struct {
FnPhrase int32
F__ccgo_pad2 [4]byte
FapPhrase [1]uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5ExprNearset = Fts5ExprNearset1 /* sqlite3.c:217308:32 */
+type Fts5ExprNearset = Fts5ExprNearset1 /* sqlite3.c:217384:32 */
type Fts5PoslistPopulator1 = struct {
Fwriter Fts5PoslistWriter
FbOk int32
FbMiss int32
-} /* sqlite3.c:217356:9 */
+} /* sqlite3.c:217432:9 */
-type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* sqlite3.c:217356:37 */
+type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* sqlite3.c:217432:37 */
//
// End of interface to code in fts5_unicode2.c.
//
@@ -220841,7 +220901,7 @@ type Fts5YYMINORTYPE = struct {
F__ccgo_pad1 [0]uint64
Ffts5yyinit int32
F__ccgo_pad2 [12]byte
-} /* sqlite3.c:217632:3 */
+} /* sqlite3.c:217708:3 */
//************ End control #defines ******************************************
// Define the fts5yytestcase() macro to be a no-op if is not already defined
@@ -220914,7 +220974,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:217725:31 */
+} /* sqlite3.c:217801: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),
@@ -220929,23 +220989,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:217738:29 */
+} /* sqlite3.c:217814: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:217756:28 */
+} /* sqlite3.c:217832: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:217765:26 */
+} /* sqlite3.c:217841: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:217769:31 */
+} /* sqlite3.c:217845:31 */
//********* End of lemon-generated parsing tables ****************************
// The next table maps tokens (terminal symbols) into fallback tokens.
@@ -220982,9 +221042,9 @@ type fts5yyStackEntry = struct {
Fmajor uint8
F__ccgo_pad1 [6]byte
Fminor Fts5YYMINORTYPE
-} /* sqlite3.c:217812:1 */
+} /* sqlite3.c:217888:1 */
-type Fts5yyStackEntry = fts5yyStackEntry /* sqlite3.c:217819:33 */
+type Fts5yyStackEntry = fts5yyStackEntry /* sqlite3.c:217895:33 */
// The state of the parser is completely contained in an instance of
// the following structure
@@ -220993,9 +221053,9 @@ type fts5yyParser = struct {
FpParse uintptr
Ffts5yystack [100]Fts5yyStackEntry
Ffts5yystackEnd uintptr
-} /* sqlite3.c:217823:1 */
+} /* sqlite3.c:217899:1 */
-type Fts5yyParser = fts5yyParser /* sqlite3.c:217842:29 */
+type Fts5yyParser = fts5yyParser /* sqlite3.c:217918:29 */
// #include <assert.h>
@@ -221005,7 +221065,7 @@ type Fts5yyParser = fts5yyParser /* sqlite3.c:217842:29 */
// grammar.
// Initialize a new parser that has already been allocated.
-func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* sqlite3.c:217991:13: */
+func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* sqlite3.c:218067:13: */
var fts5yypParser uintptr = fts5yypRawParser
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos = fts5yypParser + 16 /* &.fts5yystack */
@@ -221024,7 +221084,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:218030:13: */
+func sqlite3Fts5ParserAlloc(tls *libc.TLS, mallocProc uintptr) uintptr { /* sqlite3.c:218106: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 {
@@ -221040,7 +221100,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:218049:13: */
+func fts5yy_destructor(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor uint8, fts5yypminor uintptr) { /* sqlite3.c:218125:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
_ = pParse
@@ -221098,7 +221158,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:218108:13: */
+func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* sqlite3.c:218184:13: */
var fts5yytos uintptr
fts5yytos = libc.PostDecUintptr(&(*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos, 24)
@@ -221106,7 +221166,7 @@ func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* sqlite3.c:2181
}
// Clear all secondary memory allocations from the parser
-func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:218126:13: */
+func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:218202:13: */
var pParser uintptr = p
for (*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos > pParser+16 {
fts5yy_pop_parser_stack(tls, pParser)
@@ -221119,7 +221179,7 @@ func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* sqlite3.c:218126: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:218143:13: */
+func sqlite3Fts5ParserFree(tls *libc.TLS, p uintptr, freeProc uintptr) { /* sqlite3.c:218219:13: */
if p == uintptr(0) {
return
}
@@ -221143,7 +221203,7 @@ 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:218206:25: */
+func fts5yy_find_shift_action(tls *libc.TLS, iLookAhead uint8, stateno uint8) uint8 { /* sqlite3.c:218282:25: */
var i int32
if int32(stateno) > Fts5YY_MAX_SHIFT {
@@ -221167,7 +221227,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:218271:25: */
+func fts5yy_find_reduce_action(tls *libc.TLS, stateno uint8, iLookAhead uint8) uint8 { /* sqlite3.c:218347:25: */
var i int32
i = int32(fts5yy_reduce_ofst[stateno])
@@ -221178,7 +221238,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:218300:13: */
+func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:218376:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
for (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > fts5yypParser+16 {
@@ -221188,7 +221248,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:21
// stack every overflows
//******* Begin %stack_overflow code *****************************************
- sqlite3Fts5ParseError(tls, pParse, ts+34875, 0)
+ sqlite3Fts5ParseError(tls, pParse, ts+34883, 0)
//******* End %stack_overflow code *******************************************
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse // Suppress warning about unused %extra_argument var
@@ -221197,7 +221257,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:218343:13: */
+func fts5yy_shift(tls *libc.TLS, fts5yypParser uintptr, fts5yyNewState uint8, fts5yyMajor uint8, fts5yyMinor Fts5Token) { /* sqlite3.c:218419:13: */
var fts5yytos uintptr
(*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos += 24
if (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yystackEnd {
@@ -221246,7 +221306,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:218384:29 */
+} /* sqlite3.c:218460:29 */
// For rule J, fts5yyRuleInfoNRhs[J] contains the negative of the number
// of symbols on the right-hand side of that rule.
@@ -221279,7 +221339,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:218417:26 */
+} /* sqlite3.c:218493:26 */
// Forward Declaration
@@ -221291,7 +221351,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:218460:25: */
+func fts5yy_reduce(tls *libc.TLS, fts5yypParser uintptr, fts5yyruleno uint32, fts5yyLookahead int32, fts5yyLookaheadToken Fts5Token) uint8 { /* sqlite3.c:218536:25: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -221501,7 +221561,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:218678:13: */
+func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32, fts5yyminor Fts5Token) { /* sqlite3.c:218754:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -221511,14 +221571,14 @@ func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32
_ = fts5yymajor // Silence a compiler warning
sqlite3Fts5ParseError(tls,
- pParse, ts+34903, libc.VaList(bp, fts5yyminor.Fn, fts5yyminor.Fp))
+ pParse, ts+34911, 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:218700:13: */
+func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:218776:13: */
var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
// Here code is inserted which will be executed whenever the
@@ -221547,7 +221607,7 @@ func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* sqlite3.c:218700:1
//
// Outputs:
// None.
-func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yyminor Fts5Token, pParse uintptr) { /* sqlite3.c:218741:13: */
+func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yyminor Fts5Token, pParse uintptr) { /* sqlite3.c:218817:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -221602,7 +221662,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:218958:12: */
+func sqlite3Fts5ParserFallback(tls *libc.TLS, iToken int32) int32 { /* sqlite3.c:219034:12: */
_ = iToken
return 0
}
@@ -221650,7 +221710,7 @@ type CInstIter1 = struct {
FiStart int32
FiEnd int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:219004:9 */
+} /* sqlite3.c:219080:9 */
// 2014 May 31
//
@@ -221686,11 +221746,11 @@ type CInstIter1 = struct {
// printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd);
// }
//
-type CInstIter = CInstIter1 /* sqlite3.c:219004:26 */
+type CInstIter = CInstIter1 /* sqlite3.c:219080: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:219021:12: */
+func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:219097:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -221733,7 +221793,7 @@ func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:219021
// 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:219052:12: */
+func fts5CInstIterInit(tls *libc.TLS, pApi uintptr, pFts uintptr, iCol int32, pIter uintptr) int32 { /* sqlite3.c:219128:12: */
var rc int32
libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(CInstIter{})))
@@ -221766,12 +221826,12 @@ type HighlightContext1 = struct {
FnIn int32
FiOff int32
FzOut uintptr
-} /* sqlite3.c:219078:9 */
+} /* sqlite3.c:219154:9 */
// ************************************************************************
//
// Start of highlight() implementation.
-type HighlightContext = HighlightContext1 /* sqlite3.c:219078:33 */
+type HighlightContext = HighlightContext1 /* sqlite3.c:219154: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
@@ -221780,7 +221840,7 @@ type HighlightContext = HighlightContext1 /* sqlite3.c:219078: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:219101:13: */
+func fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n int32) { /* sqlite3.c:219177:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -221788,7 +221848,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+34934, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
+ (*HighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, ts+34942, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
if (*HighlightContext)(unsafe.Pointer(p)).FzOut == uintptr(0) {
*(*int32)(unsafe.Pointer(pRc)) = SQLITE_NOMEM
}
@@ -221796,7 +221856,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:219116:12: */
+func fts5HighlightCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iStartOff int32, iEndOff int32) int32 { /* sqlite3.c:219192:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -221851,7 +221911,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:219170:13: */
+func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:219246:13: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -221862,7 +221922,7 @@ func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintp
var iCol int32
if nVal != 3 {
- var zErr uintptr = ts + 34941 /* "wrong number of ..." */
+ var zErr uintptr = ts + 34949 /* "wrong number of ..." */
Xsqlite3_result_error(tls, pCtx, zErr, -1)
return
}
@@ -221911,19 +221971,19 @@ type Fts5SFinder1 = struct {
F__ccgo_pad1 [4]byte
FaFirst uintptr
FzDoc uintptr
-} /* sqlite3.c:219219:9 */
+} /* sqlite3.c:219295:9 */
//
// End of highlight() implementation.
//
// Context object passed to the fts5SentenceFinderCb() function.
-type Fts5SFinder = Fts5SFinder1 /* sqlite3.c:219219:28 */
+type Fts5SFinder = Fts5SFinder1 /* sqlite3.c:219295: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:219233:12: */
+func fts5SentenceFinderAdd(tls *libc.TLS, p uintptr, iAdd int32) int32 { /* sqlite3.c:219309:12: */
if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc == (*Fts5SFinder)(unsafe.Pointer(p)).FnFirst {
var nNew int32
if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc != 0 {
@@ -221947,7 +222007,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:219252:12: */
+func fts5SentenceFinderCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iStartOff int32, iEndOff int32) int32 { /* sqlite3.c:219328:12: */
var rc int32 = SQLITE_OK
_ = pToken
@@ -221976,7 +222036,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:219285: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:219361:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -222034,7 +222094,7 @@ func fts5SnippetScore(tls *libc.TLS, pApi uintptr, pFts uintptr, nDocsize int32,
// Return the value in pVal interpreted as utf-8 text. Except, if pVal
// contains a NULL value, return a pointer to a static string zero
// bytes in length instead of a NULL pointer.
-func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:219334:19: */
+func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:219410:19: */
var zRet uintptr = Xsqlite3_value_text(tls, pVal)
if zRet != 0 {
return zRet
@@ -222043,7 +222103,7 @@ func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* sqlite3.c:219334:
}
// Implementation of snippet() function.
-func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:219342:13: */
+func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:219418:13: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -222066,7 +222126,7 @@ func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr
var nCol int32
if nVal != 5 {
- var zErr uintptr = ts + 34991 /* "wrong number of ..." */
+ var zErr uintptr = ts + 34999 /* "wrong number of ..." */
Xsqlite3_result_error(tls, pCtx, zErr, -1)
return
}
@@ -222258,17 +222318,17 @@ type Fts5Bm25Data1 = struct {
Favgdl float64
FaIDF uintptr
FaFreq uintptr
-} /* sqlite3.c:219500:9 */
+} /* sqlite3.c:219576: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:219500:29 */
+type Fts5Bm25Data = Fts5Bm25Data1 /* sqlite3.c:219576: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:219512:12: */
+func fts5CountCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pUserData uintptr) int32 { /* sqlite3.c:219588:12: */
var pn uintptr = pUserData
_ = pApi
_ = pFts
@@ -222279,7 +222339,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:219528:12: */
+func fts5Bm25GetData(tls *libc.TLS, pApi uintptr, pFts uintptr, ppData uintptr) int32 { /* sqlite3.c:219604:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -222373,7 +222433,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:219601:13: */
+func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* sqlite3.c:219677:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -222441,18 +222501,18 @@ func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, n
}
}
-func sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:219657:12: */
+func sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:219733:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
*(*[3]Builtin)(unsafe.Pointer(bp /* aBuiltin */)) = [3]Builtin{
- {FzFunc: ts + 35039, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 35047, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5SnippetFunction}))},
- {FzFunc: ts + 35047, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 35055, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5HighlightFunction}))},
- {FzFunc: ts + 35057, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzFunc: ts + 35065, FxFunc: *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
}{fts5Bm25Function}))},
}
@@ -222477,7 +222537,7 @@ type Builtin = struct {
FpUserData uintptr
FxFunc Fts5_extension_function
FxDestroy uintptr
-} /* sqlite3.c:219658:3 */
+} /* sqlite3.c:219734:3 */
// 2014 May 31
//
@@ -222492,7 +222552,7 @@ type Builtin = struct {
// #include "fts5Int.h"
-func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) int32 { /* sqlite3.c:219700:12: */
+func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) int32 { /* sqlite3.c:219776:12: */
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) < nByte {
var nNew U64
if (*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace != 0 {
@@ -222518,7 +222578,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:219724:13: */
+func sqlite3Fts5BufferAppendVarint(tls *libc.TLS, pRc uintptr, pBuf uintptr, iVal I64) { /* sqlite3.c:219800:13: */
if func() int32 {
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+U32(9) <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) {
return 0
@@ -222530,21 +222590,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:219729:13: */
+func sqlite3Fts5Put32(tls *libc.TLS, aBuf uintptr, iVal int32) { /* sqlite3.c:219805: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:219736:12: */
+func sqlite3Fts5Get32(tls *libc.TLS, aBuf uintptr) int32 { /* sqlite3.c:219812: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:219745:13: */
+func sqlite3Fts5BufferAppendBlob(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData U32, pData uintptr) { /* sqlite3.c:219821:13: */
if nData != 0 {
if func() int32 {
if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+nData <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) {
@@ -222562,7 +222622,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:219763:13: */
+func sqlite3Fts5BufferAppendString(tls *libc.TLS, pRc uintptr, pBuf uintptr, zStr uintptr) { /* sqlite3.c:219839:13: */
var nStr int32 = int32(libc.Xstrlen(tls, zStr))
sqlite3Fts5BufferAppendBlob(tls, pRc, pBuf, uint32(nStr+1), zStr)
(*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn--
@@ -222574,7 +222634,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:219781:13: */
+func sqlite3Fts5BufferAppendPrintf(tls *libc.TLS, pRc uintptr, pBuf uintptr, zFmt uintptr, va uintptr) { /* sqlite3.c:219857:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var zTmp uintptr
var ap Va_list
@@ -222592,7 +222652,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:219802:13: */
+func sqlite3Fts5Mprintf(tls *libc.TLS, pRc uintptr, zFmt uintptr, va uintptr) uintptr { /* sqlite3.c:219878:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var ap Va_list
@@ -222608,26 +222668,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:219820:13: */
+func sqlite3Fts5BufferFree(tls *libc.TLS, pBuf uintptr) { /* sqlite3.c:219896: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:219829:13: */
+func sqlite3Fts5BufferZero(tls *libc.TLS, pBuf uintptr) { /* sqlite3.c:219905: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:219838:13: */
+func sqlite3Fts5BufferSet(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData int32, pData uintptr) { /* sqlite3.c:219914: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:219848:12: */
+func sqlite3Fts5PoslistNext64(tls *libc.TLS, a uintptr, n int32, pi uintptr, piOff uintptr) int32 { /* sqlite3.c:219924:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -222689,14 +222749,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:219891:12: */
+func sqlite3Fts5PoslistReaderNext(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:219967: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:219898:12: */
+func sqlite3Fts5PoslistReaderInit(tls *libc.TLS, a uintptr, n int32, pIter uintptr) int32 { /* sqlite3.c:219974:12: */
libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(Fts5PoslistReader{})))
(*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fa = a
(*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fn = n
@@ -222708,7 +222768,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:219915:13: */
+func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, iPos I64) { /* sqlite3.c:219991: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)
@@ -222720,9 +222780,9 @@ func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, i
}
}
-var colmask I64 = I64(int64(0x7FFFFFFF)) << 32 /* sqlite3.c:219921:22 */
+var colmask I64 = I64(int64(0x7FFFFFFF)) << 32 /* sqlite3.c:219997:22 */
-func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr, iPos I64) int32 { /* sqlite3.c:219932:12: */
+func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr, iPos I64) int32 { /* sqlite3.c:220008:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -222739,7 +222799,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:219943:13: */
+func sqlite3Fts5MallocZero(tls *libc.TLS, pRc uintptr, nByte Sqlite3_int64) uintptr { /* sqlite3.c:220019:13: */
var pRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
pRet = Xsqlite3_malloc64(tls, uint64(nByte))
@@ -222760,7 +222820,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:219964:13: */
+func sqlite3Fts5Strndup(tls *libc.TLS, pRc uintptr, pIn uintptr, nIn int32) uintptr { /* sqlite3.c:220040:13: */
var zRet uintptr = uintptr(0)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
if nIn < 0 {
@@ -222785,7 +222845,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:219992:12: */
+func sqlite3Fts5IsBareword(tls *libc.TLS, t int8) int32 { /* sqlite3.c:220068:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -222810,13 +222870,13 @@ type Fts5TermsetEntry1 = struct {
FnTerm int32
FiIdx int32
FpNext uintptr
-} /* sqlite3.c:216961:9 */
+} /* sqlite3.c:217037:9 */
// ************************************************************************
//
-type Fts5TermsetEntry = Fts5TermsetEntry1 /* sqlite3.c:220010:33 */
+type Fts5TermsetEntry = Fts5TermsetEntry1 /* sqlite3.c:220086:33 */
-func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:220022:12: */
+func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:220098:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -222825,7 +222885,7 @@ func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* sqlite3.c:22002
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, nTerm int32, pbPresent uintptr) int32 { /* sqlite3.c:220028:12: */
+func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, nTerm int32, pbPresent uintptr) int32 { /* sqlite3.c:220104:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -222871,7 +222931,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:220077:13: */
+func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:220153: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++ {
@@ -222903,18 +222963,18 @@ func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:220077:13:
// Maximum allowed page size
-func fts5_iswhitespace(tls *libc.TLS, x int8) int32 { /* sqlite3.c:220119:12: */
+func fts5_iswhitespace(tls *libc.TLS, x int8) int32 { /* sqlite3.c:220195:12: */
return libc.Bool32(int32(x) == ' ')
}
-func fts5_isopenquote(tls *libc.TLS, x int8) int32 { /* sqlite3.c:220123:12: */
+func fts5_isopenquote(tls *libc.TLS, x int8) int32 { /* sqlite3.c:220199: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:220132:19: */
+func fts5ConfigSkipWhitespace(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:220208:19: */
var p uintptr = pIn
if p != 0 {
for fts5_iswhitespace(tls, *(*int8)(unsafe.Pointer(p))) != 0 {
@@ -222927,7 +222987,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:220145:19: */
+func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:220221:19: */
var p uintptr = pIn
for sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(p))) != 0 {
p++
@@ -222938,11 +222998,11 @@ func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:2
return p
}
-func fts5_isdigit(tls *libc.TLS, a int8) int32 { /* sqlite3.c:220152:12: */
+func fts5_isdigit(tls *libc.TLS, a int8) int32 { /* sqlite3.c:220228:12: */
return libc.Bool32(int32(a) >= '0' && int32(a) <= '9')
}
-func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:220158:19: */
+func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:220234:19: */
var p uintptr = pIn
switch int32(*(*int8)(unsafe.Pointer(p))) {
case 'n':
@@ -223031,7 +223091,7 @@ func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:22
// 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:220234:12: */
+func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:220310:12: */
var q int8
var iIn int32 = 1
var iOut int32 = 0
@@ -223076,7 +223136,7 @@ func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* sqlite3.c:220234:12: */
// 'xyz' becomes xyz
// [pqr] becomes pqr
// `mno` becomes mno
-func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* sqlite3.c:220279:13: */
+func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* sqlite3.c:220355:13: */
var quote int8 // Quote character (if any )
quote = *(*int8)(unsafe.Pointer(z))
@@ -223089,11 +223149,11 @@ type Fts5Enum1 = struct {
FzName uintptr
FeVal int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:220290:1 */
+} /* sqlite3.c:220366:1 */
-type Fts5Enum = Fts5Enum1 /* sqlite3.c:220294:25 */
+type Fts5Enum = Fts5Enum1 /* sqlite3.c:220370:25 */
-func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintptr) int32 { /* sqlite3.c:220296:12: */
+func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintptr) int32 { /* sqlite3.c:220372:12: */
var nEnum int32 = int32(libc.Xstrlen(tls, zEnum))
var i int32
var iVal int32 = -1
@@ -223121,13 +223181,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:220325:12: */
+func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCmd uintptr, zArg uintptr, pzErr uintptr) int32 { /* sqlite3.c:220401: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+35062, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+35070, zCmd, nCmd) == 0 {
var nByte int32 = int32(uint64(unsafe.Sizeof(int32(0))) * uint64(FTS5_MAX_PREFIX_INDEXES))
var p uintptr
var bFirst int32 = 1
@@ -223154,14 +223214,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+35069, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35077, 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+35100, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES))
+ ts+35108, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
break
}
@@ -223172,7 +223232,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
}
if nPre <= 0 || nPre >= 1000 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35133, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35141, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
break
}
@@ -223185,7 +223245,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+35170, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+35178, 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)))
@@ -223194,7 +223254,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+35179, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35187, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
for nArg = int64(0); p != 0 && *(*int8)(unsafe.Pointer(p)) != 0; nArg++ {
@@ -223213,7 +223273,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
}
}
if p == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35212, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35220, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = sqlite3Fts5GetTokenizer(tls, pGlobal,
@@ -223228,14 +223288,14 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+35246, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+35254, zCmd, nCmd) == 0 {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35254, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35262, 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+35286, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
+ (*Fts5Config)(unsafe.Pointer(pConfig)).FzContent = sqlite3Fts5Mprintf(tls, bp+40, ts+35294, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FeContent = FTS5_CONTENT_NONE
}
@@ -223243,9 +223303,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+35292, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+35300, zCmd, nCmd) == 0 {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35306, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35314, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, zArg, -1)
@@ -223253,9 +223313,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- if Xsqlite3_strnicmp(tls, ts+35344, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, ts+35352, 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+35355, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35363, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.Bool32(int32(*(*int8)(unsafe.Pointer(zArg))) == '1')
@@ -223266,25 +223326,25 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm
if Xsqlite3_strnicmp(tls, ts+6378, zCmd, nCmd) == 0 {
*(*[4]Fts5Enum)(unsafe.Pointer(bp + 48 /* aDetail */)) = [4]Fts5Enum{
{FzName: ts + 9257, FeVal: FTS5_DETAIL_NONE},
- {FzName: ts + 18613},
- {FzName: ts + 35390, FeVal: FTS5_DETAIL_COLUMNS},
+ {FzName: ts + 18621},
+ {FzName: ts + 35398, 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+35398, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35406, 0)
}
return *(*int32)(unsafe.Pointer(bp + 40 /* rc */))
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35429, libc.VaList(bp+24, nCmd, zCmd))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35437, 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:220489:12: */
+func fts5ConfigDefaultTokenizer(tls *libc.TLS, pGlobal uintptr, pConfig uintptr) int32 { /* sqlite3.c:220565:12: */
return sqlite3Fts5GetTokenizer(tls, pGlobal, uintptr(0), 0, pConfig, uintptr(0))
}
@@ -223302,7 +223362,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:220509:19: */
+func fts5ConfigGobbleWord(tls *libc.TLS, pRc uintptr, zIn uintptr, pzOut uintptr, pbQuoted uintptr) uintptr { /* sqlite3.c:220585:19: */
var zRet uintptr = uintptr(0)
var nIn Sqlite3_int64 = Sqlite3_int64(libc.Xstrlen(tls, zIn))
@@ -223336,20 +223396,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:220549:12: */
+func fts5ConfigParseColumn(tls *libc.TLS, p uintptr, zCol uintptr, zArg uintptr, pzErr uintptr) int32 { /* sqlite3.c:220625:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zCol, ts+23383) ||
- 0 == Xsqlite3_stricmp(tls, zCol, ts+17524) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35457, libc.VaList(bp, zCol))
+ if 0 == Xsqlite3_stricmp(tls, zCol, ts+23391) ||
+ 0 == Xsqlite3_stricmp(tls, zCol, ts+17532) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35465, libc.VaList(bp, zCol))
rc = SQLITE_ERROR
} else if zArg != 0 {
- if 0 == Xsqlite3_stricmp(tls, zArg, ts+35487) {
+ if 0 == Xsqlite3_stricmp(tls, zArg, ts+35495) {
*(*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+35497, libc.VaList(bp+8, zArg))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35505, libc.VaList(bp+8, zArg))
rc = SQLITE_ERROR
}
}
@@ -223359,7 +223419,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:220577:12: */
+func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:220653:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -223367,13 +223427,13 @@ func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:22057
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_OK
*(*Fts5Buffer)(unsafe.Pointer(bp + 32 /* buf */)) = Fts5Buffer{}
- sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35528, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(p)).FzContentRowid))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35536, 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+35533, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35541, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
} else {
- sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35540, libc.VaList(bp+16, i))
+ sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35548, libc.VaList(bp+16, i))
}
}
}
@@ -223392,7 +223452,7 @@ func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:22057
// 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:220610:12: */
+func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int32, azArg uintptr, ppOut uintptr, pzErr uintptr) int32 { /* sqlite3.c:220686:12: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -223421,8 +223481,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+23383) == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35548, 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+23391) == 0 {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35556, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pRet)).FzName))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
}
@@ -223456,7 +223516,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+35577, libc.VaList(bp+8, zOrig))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35585, libc.VaList(bp+8, zOrig))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR
} else {
if bOption != 0 {
@@ -223497,19 +223557,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 + 35246 /* "content" */
+ zTail = ts + 35254 /* "content" */
} else if (*Fts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 {
- zTail = ts + 35597 /* "docsize" */
+ zTail = ts + 35605 /* "docsize" */
}
if zTail != 0 {
(*Fts5Config)(unsafe.Pointer(pRet)).FzContent = sqlite3Fts5Mprintf(tls,
- bp+40, ts+35605, libc.VaList(bp+16, (*Fts5Config)(unsafe.Pointer(pRet)).FzDb, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, zTail))
+ bp+40, ts+35613, 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+17524, -1)
+ (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, ts+17532, -1)
}
// Formulate the zContentExprlist text
@@ -223525,7 +223585,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:220734:13: */
+func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* sqlite3.c:220810:13: */
if pConfig != 0 {
var i int32
if (*Fts5Config)(unsafe.Pointer(pConfig)).FpTok != 0 {
@@ -223550,7 +223610,7 @@ func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* sqlite3.c:220734
// 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:220761:12: */
+func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* sqlite3.c:220837:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -223558,18 +223618,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+35616, 0)
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35624, 0)
for i = 0; zSql != 0 && i < (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol; i++ {
var zSep uintptr = func() uintptr {
if i == 0 {
return ts + 1524
}
- return ts + 15900
+ return ts + 15908
}()
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35632, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35640, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
}
- zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35639,
- libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+23383))
+ zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35647,
+ libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+23391))
if zSql != 0 {
*(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = Xsqlite3_declare_vtab(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql)
@@ -223600,7 +223660,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:220807:12: */
+func sqlite3Fts5Tokenize(tls *libc.TLS, pConfig uintptr, flags int32, pText uintptr, nText int32, pCtx uintptr, xToken uintptr) int32 { /* sqlite3.c:220883:12: */
if pText == uintptr(0) {
return SQLITE_OK
}
@@ -223614,7 +223674,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:220826:19: */
+func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:220902:19: */
var p uintptr = pIn
for 1 != 0 {
@@ -223641,7 +223701,7 @@ func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* sqlite3.c:22082
// + 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:220853:12: */
+func sqlite3Fts5ConfigParseRank(tls *libc.TLS, zIn uintptr, pzRank uintptr, pzRankArgs uintptr) int32 { /* sqlite3.c:220929:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -223705,13 +223765,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:220912:12: */
+func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVal uintptr, pbBadkey uintptr) int32 { /* sqlite3.c:220988:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zKey, ts+35665) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, ts+35673) {
var pgsz int32 = 0
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
pgsz = Xsqlite3_value_int(tls, pVal)
@@ -223721,7 +223781,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+35670) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35678) {
var nHashSize int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nHashSize = Xsqlite3_value_int(tls, pVal)
@@ -223731,7 +223791,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+35679) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35687) {
var nAutomerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nAutomerge = Xsqlite3_value_int(tls, pVal)
@@ -223744,7 +223804,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+35689) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35697) {
var nUsermerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nUsermerge = Xsqlite3_value_int(tls, pVal)
@@ -223754,7 +223814,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+35699) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35707) {
var nCrisisMerge int32 = -1
if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) {
nCrisisMerge = Xsqlite3_value_int(tls, pVal)
@@ -223770,7 +223830,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+23383) {
+ } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+23391) {
var zIn uintptr = Xsqlite3_value_text(tls, pVal)
// var zRank uintptr at bp, 8
@@ -223793,11 +223853,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:221006:12: */
+func sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) int32 { /* sqlite3.c:221082:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
- var zSelect uintptr = ts + 35711 /* "SELECT k, v FROM..." */
+ var zSelect uintptr = ts + 35719 /* "SELECT k, v FROM..." */
var zSql uintptr
*(*uintptr)(unsafe.Pointer(bp + 40 /* p */)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK
@@ -223820,7 +223880,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+35743) {
+ if 0 == Xsqlite3_stricmp(tls, zK, ts+35751) {
iVersion = Xsqlite3_value_int(tls, pVal)
} else {
*(*int32)(unsafe.Pointer(bp + 48 /* bDummy */)) = 0
@@ -223835,7 +223895,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+35751,
+ ts+35759,
libc.VaList(bp+16, iVersion, FTS5_CURRENT_VERSION))
}
}
@@ -223870,7 +223930,7 @@ type Fts5ExprTerm1 = struct {
FzTerm uintptr
FpIter uintptr
FpSynonym uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
// 2014 May 31
//
@@ -223889,9 +223949,9 @@ type Fts5ExprTerm1 = struct {
// All token types in the generated fts5parse.h file are greater than 0.
-type Fts5ExprTerm = Fts5ExprTerm1 /* sqlite3.c:221084:29 */
+type Fts5ExprTerm = Fts5ExprTerm1 /* sqlite3.c:221160:29 */
-func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintptr) { /* sqlite3.c:221191:13: */
+func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintptr) { /* sqlite3.c:221267:13: */
var ap Va_list
_ = ap
ap = va
@@ -223903,12 +223963,12 @@ func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintp
_ = ap
}
-func fts5ExprIsspace(tls *libc.TLS, t int8) int32 { /* sqlite3.c:221202:12: */
+func fts5ExprIsspace(tls *libc.TLS, t int8) int32 { /* sqlite3.c:221278: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:221209:12: */
+func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) int32 { /* sqlite3.c:221285:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -223970,7 +224030,7 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr)
}
}
if int32(*(*int8)(unsafe.Pointer(z2))) == 0 {
- sqlite3Fts5ParseError(tls, pParse, ts+35816, 0)
+ sqlite3Fts5ParseError(tls, pParse, ts+35824, 0)
return FTS5_EOF
}
}
@@ -223983,20 +224043,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+35836, libc.VaList(bp, z))
+ sqlite3Fts5ParseError(tls, pParse, ts+35844, 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+35867, uint64(2)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 2 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35875, uint64(2)) == 0 {
tok = FTS5_OR
}
- if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35870, uint64(3)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35878, uint64(3)) == 0 {
tok = FTS5_NOT
}
- if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+31253, uint64(3)) == 0 {
+ if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+31261, uint64(3)) == 0 {
tok = FTS5_AND
}
break
@@ -224008,15 +224068,15 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr)
return tok
}
-func fts5ParseAlloc(tls *libc.TLS, t U64) uintptr { /* sqlite3.c:221273:13: */
+func fts5ParseAlloc(tls *libc.TLS, t U64) uintptr { /* sqlite3.c:221349:13: */
return Xsqlite3_malloc64(tls, uint64(Sqlite3_int64(t)))
}
-func fts5ParseFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221274:13: */
+func fts5ParseFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221350: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:221276:12: */
+func sqlite3Fts5ExprNew(tls *libc.TLS, pConfig uintptr, bPhraseToAnd int32, iCol int32, zExpr uintptr, ppNew uintptr, pzErr uintptr) int32 { /* sqlite3.c:221352:12: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -224094,7 +224154,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:221357:12: */
+func sqlite3Fts5ExprPattern(tls *libc.TLS, pConfig uintptr, bGlob int32, iCol int32, zText uintptr, pp uintptr) int32 { /* sqlite3.c:221433:12: */
bp := tls.Alloc(3)
defer tls.Free(3)
@@ -224169,7 +224229,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:221427:13: */
+func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221503:13: */
if p != 0 {
var i int32
for i = 0; i < (*Fts5ExprNode)(unsafe.Pointer(p)).FnChild; i++ {
@@ -224181,7 +224241,7 @@ func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221427:13
}
// Free the expression object passed as the only argument.
-func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221441:13: */
+func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221517:13: */
if p != 0 {
sqlite3Fts5ParseNodeFree(tls, (*Fts5Expr)(unsafe.Pointer(p)).FpRoot)
Xsqlite3_free(tls, (*Fts5Expr)(unsafe.Pointer(p)).FapExprPhrase)
@@ -224189,7 +224249,7 @@ func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* sqlite3.c:221441:13: */
}
}
-func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* sqlite3.c:221449:12: */
+func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* sqlite3.c:221525:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -224230,7 +224290,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:221489:12: */
+func fts5ExprSynonymRowid(tls *libc.TLS, pTerm uintptr, bDesc int32, pbEof uintptr) I64 { /* sqlite3.c:221565:12: */
var iRet I64 = int64(0)
var bRetValid int32 = 0
var p uintptr
@@ -224252,7 +224312,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:221514:12: */
+func fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid I64, pBuf uintptr, pa uintptr, pn uintptr) int32 { /* sqlite3.c:221590:12: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -224416,7 +224476,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:221597:12: */
+func fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMatch uintptr) int32 { /* sqlite3.c:221673:12: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -224641,11 +224701,11 @@ type Fts5LookaheadReader1 = struct {
Fi int32
FiPos I64
FiLookahead I64
-} /* sqlite3.c:221681:9 */
+} /* sqlite3.c:221757:9 */
-type Fts5LookaheadReader = Fts5LookaheadReader1 /* sqlite3.c:221681:36 */
+type Fts5LookaheadReader = Fts5LookaheadReader1 /* sqlite3.c:221757:36 */
-func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:221692:12: */
+func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:221768: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
@@ -224653,7 +224713,7 @@ func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2216
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:221700:12: */
+func fts5LookaheadReaderInit(tls *libc.TLS, a uintptr, n int32, p uintptr) int32 { /* sqlite3.c:221776:12: */
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Fts5LookaheadReader{})))
(*Fts5LookaheadReader)(unsafe.Pointer(p)).Fa = a
(*Fts5LookaheadReader)(unsafe.Pointer(p)).Fn = n
@@ -224665,9 +224725,9 @@ type Fts5NearTrimmer1 = struct {
Freader Fts5LookaheadReader
Fwriter Fts5PoslistWriter
FpOut uintptr
-} /* sqlite3.c:221711:9 */
+} /* sqlite3.c:221787:9 */
-type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:221711:32 */
+type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:221787:32 */
// The near-set object passed as the first argument contains more than
// one phrase. All phrases currently point to the same row. The
@@ -224684,7 +224744,7 @@ type Fts5NearTrimmer = Fts5NearTrimmer1 /* sqlite3.c:221711: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:221735:12: */
+func fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) int32 { /* sqlite3.c:221811:12: */
bp := tls.Alloc(196)
defer tls.Free(196)
@@ -224886,7 +224946,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:221834:12: */
+func fts5ExprAdvanceto(tls *libc.TLS, pIter uintptr, bDesc int32, piLast uintptr, pRc uintptr, pbEof uintptr) int32 { /* sqlite3.c:221910:12: */
var iLast I64 = *(*I64)(unsafe.Pointer(piLast))
var iRowid I64
@@ -224906,7 +224966,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:221860:12: */
+func fts5ExprSynonymAdvanceto(tls *libc.TLS, pTerm uintptr, bDesc int32, piLast uintptr, pRc uintptr) int32 { /* sqlite3.c:221936:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -224933,7 +224993,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:221890:12: */
+func fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:221966:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -224990,7 +225050,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:221949:12: */
+func fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:222025:12: */
var pNear uintptr = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear
var i int32
@@ -225056,7 +225116,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:222011:12: */
+func fts5RowidCmp(tls *libc.TLS, pExpr uintptr, iLhs I64, iRhs I64) int32 { /* sqlite3.c:222087:12: */
if (*Fts5Expr)(unsafe.Pointer(pExpr)).FbDesc == 0 {
if iLhs < iRhs {
@@ -225072,7 +225132,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:222026:13: */
+func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222102:13: */
var i int32
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 1
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0
@@ -225081,7 +225141,7 @@ func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222026:13: */
}
}
-func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222035:13: */
+func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222111: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
@@ -225107,7 +225167,7 @@ func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:222035
// 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:222065:12: */
+func fts5NodeCompare(tls *libc.TLS, pExpr uintptr, p1 uintptr, p2 uintptr) int32 { /* sqlite3.c:222141:12: */
if (*Fts5ExprNode)(unsafe.Pointer(p2)).FbEof != 0 {
return -1
}
@@ -225126,7 +225186,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:222086:12: */
+func fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:222162:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -225194,7 +225254,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:222156:12: */
+func fts5ExprNodeNext_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* sqlite3.c:222232:12: */
var pTerm uintptr = *(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32
var rc int32 = SQLITE_OK
@@ -225253,7 +225313,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:222221:12: */
+func fts5ExprNodeTest_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:222297: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
@@ -225272,7 +225332,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:222249:12: */
+func fts5ExprNodeNext_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* sqlite3.c:222325:12: */
var rc int32
var pIter uintptr = (*Fts5ExprTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32)).FpIter
@@ -225290,7 +225350,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:222273:13: */
+func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* sqlite3.c:222349:13: */
var pNext uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48))
var i int32
@@ -225306,7 +225366,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:222292:12: */
+func fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* sqlite3.c:222368:12: */
var i int32
var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid
@@ -225332,7 +225392,7 @@ func fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid
}
// Argument pNode is an FTS5_AND node.
-func fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) int32 { /* sqlite3.c:222324:12: */
+func fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) int32 { /* sqlite3.c:222400:12: */
var iChild int32
var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pAnd)).FiRowid
var rc int32 = SQLITE_OK
@@ -225382,7 +225442,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:222376:12: */
+func fts5ExprNodeNext_AND(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* sqlite3.c:222452: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)
@@ -225394,7 +225454,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:222391:12: */
+func fts5ExprNodeTest_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:222467:12: */
var rc int32 = SQLITE_OK
var p1 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48))
var p2 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48 + 1*8))
@@ -225424,7 +225484,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:222419:12: */
+func fts5ExprNodeNext_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* sqlite3.c:222495: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)
@@ -225440,7 +225500,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:222440:12: */
+func fts5ExprNodeTest(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:222516:12: */
var rc int32 = SQLITE_OK
if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof == 0 {
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
@@ -225493,7 +225553,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:222485:12: */
+func fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* sqlite3.c:222561:12: */
var rc int32 = SQLITE_OK
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0
@@ -225555,7 +225615,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:222544:12: */
+func sqlite3Fts5ExprFirst(tls *libc.TLS, p uintptr, pIdx uintptr, iFirst I64, bDesc int32) int32 { /* sqlite3.c:222620:12: */
var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot
var rc int32 // Return code
@@ -225587,7 +225647,7 @@ func sqlite3Fts5ExprFirst(tls *libc.TLS, p uintptr, pIdx uintptr, iFirst I64, bD
//
// Return SQLITE_OK if successful, or an SQLite error code otherwise. It
// is not considered an error if the query does not match any documents.
-func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* sqlite3.c:222575:12: */
+func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* sqlite3.c:222651:12: */
var rc int32
var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot
@@ -225603,15 +225663,15 @@ func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* sqlite3
return rc
}
-func sqlite3Fts5ExprEof(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:222589:12: */
+func sqlite3Fts5ExprEof(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:222665:12: */
return (*Fts5ExprNode)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(p)).FpRoot)).FbEof
}
-func sqlite3Fts5ExprRowid(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:222593:12: */
+func sqlite3Fts5ExprRowid(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:222669:12: */
return (*Fts5ExprNode)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(p)).FpRoot)).FiRowid
}
-func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { /* sqlite3.c:222597:12: */
+func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { /* sqlite3.c:222673:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -225621,7 +225681,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:222606:13: */
+func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:222682:13: */
if pPhrase != 0 {
var i int32
for i = 0; i < (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm; i++ {
@@ -225646,7 +225706,7 @@ func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:222606: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:222631:13: */
+func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:222707:13: */
if pPhrase != 0 && (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm != 0 {
(*Fts5ExprTerm)(unsafe.Pointer(pPhrase + 32)).FbFirst = U8(1)
}
@@ -225658,7 +225718,7 @@ func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:222
//
// 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:222645:24: */
+func sqlite3Fts5ParseNearset(tls *libc.TLS, pParse uintptr, pNear uintptr, pPhrase uintptr) uintptr { /* sqlite3.c:222721:24: */
var SZALLOC int32 = 8
var pRet uintptr = uintptr(0)
@@ -225718,12 +225778,12 @@ type TokenCtx1 = struct {
FpPhrase uintptr
Frc int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:222705:9 */
+} /* sqlite3.c:222781:9 */
-type TokenCtx = TokenCtx1 /* sqlite3.c:222705:25 */
+type TokenCtx = TokenCtx1 /* sqlite3.c:222781: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:222714:12: */
+func fts5ParseTokenize(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:222790:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -225792,12 +225852,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:222779:13: */
+func sqlite3Fts5ParsePhraseFree(tls *libc.TLS, pPhrase uintptr) { /* sqlite3.c:222855:13: */
fts5ExprPhraseFree(tls, pPhrase)
}
// Free the phrase object passed as the second argument.
-func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* sqlite3.c:222786:13: */
+func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* sqlite3.c:222862:13: */
if pNear != 0 {
var i int32
for i = 0; i < (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase; i++ {
@@ -225808,12 +225868,12 @@ func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* sqlite3.c:22
}
}
-func sqlite3Fts5ParseFinished(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:222797:13: */
+func sqlite3Fts5ParseFinished(tls *libc.TLS, pParse uintptr, p uintptr) { /* sqlite3.c:222873:13: */
(*Fts5Parse)(unsafe.Pointer(pParse)).FpExpr = p
}
-func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:222802:12: */
+func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* sqlite3.c:222878: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
@@ -225830,7 +225890,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:222821:23: */
+func sqlite3Fts5ParseTerm(tls *libc.TLS, pParse uintptr, pAppend uintptr, pToken uintptr, bPrefix int32) uintptr { /* sqlite3.c:222897:23: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -225888,7 +225948,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:222875:12: */
+func sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppNew uintptr) int32 { /* sqlite3.c:222951:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -225983,17 +226043,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:222971:13: */
+func sqlite3Fts5ParseNear(tls *libc.TLS, pParse uintptr, pTok uintptr) { /* sqlite3.c:223047:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
- if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+35874, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
+ if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+35882, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
sqlite3Fts5ParseError(tls,
- pParse, ts+34903, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp))
+ pParse, ts+34911, 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:222979:13: */
+func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p uintptr) { /* sqlite3.c:223055:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -226005,7 +226065,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+35879, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(p)).Fn, (*Fts5Token)(unsafe.Pointer(p)).Fp))
+ pParse, ts+35887, 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')
@@ -226024,7 +226084,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:223014:19: */
+func fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* sqlite3.c:223090:19: */
var nCol int32
if p != 0 {
nCol = (*Fts5Colset)(unsafe.Pointer(p)).FnCol
@@ -226062,7 +226122,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:223055:19: */
+func sqlite3Fts5ParseColsetInvert(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* sqlite3.c:223131:19: */
var pRet uintptr
var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FnCol
@@ -226084,7 +226144,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:223078:19: */
+func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p uintptr) uintptr { /* sqlite3.c:223154:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -226102,7 +226162,7 @@ func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p ui
}
}
if iCol == (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol {
- sqlite3Fts5ParseError(tls, pParse, ts+21745, libc.VaList(bp, z))
+ sqlite3Fts5ParseError(tls, pParse, ts+21753, libc.VaList(bp, z))
} else {
pRet = fts5ParseColset(tls, pParse, pColset, iCol)
}
@@ -226123,7 +226183,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:223118:19: */
+func fts5CloneColset(tls *libc.TLS, pRc uintptr, pOrig uintptr) uintptr { /* sqlite3.c:223194: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))))
@@ -226138,7 +226198,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:223135:13: */
+func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* sqlite3.c:223211: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
@@ -226162,7 +226222,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:223161:13: */
+func fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pNode uintptr, pColset uintptr, ppFree uintptr) { /* sqlite3.c:223237:13: */
if (*Fts5Parse)(unsafe.Pointer(pParse)).Frc == SQLITE_OK {
if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_STRING || (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_TERM {
@@ -226190,21 +226250,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:223199:13: */
+func sqlite3Fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pExpr uintptr, pColset uintptr) { /* sqlite3.c:223275: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+35908, 0)
+ ts+35916, 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:223215:13: */
+func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:223291:13: */
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
case FTS5_STRING:
{
@@ -226255,7 +226315,7 @@ func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:223215:13:
}
}
-func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* sqlite3.c:223248:13: */
+func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* sqlite3.c:223324: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))
@@ -226275,7 +226335,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:223270:21: */
+func fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) uintptr { /* sqlite3.c:223346:21: */
var nTerm int32 = (*Fts5ExprPhrase)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNear + 24)))).FnTerm
var ii int32
var nByte int32
@@ -226318,7 +226378,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:223324:21: */
+func sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uintptr, pRight uintptr, pNear uintptr) uintptr { /* sqlite3.c:223400:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -226378,12 +226438,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+35961,
+ ts+35969,
libc.VaList(bp, func() uintptr {
if (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase == 1 {
- return ts + 36011 /* "phrase" */
+ return ts + 36019 /* "phrase" */
}
- return ts + 35874 /* "NEAR" */
+ return ts + 35882 /* "NEAR" */
}()))
Xsqlite3_free(tls, pRet)
pRet = uintptr(0)
@@ -226406,7 +226466,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:223406:21: */
+func sqlite3Fts5ParseImplicitAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:223482:21: */
var pRet uintptr = uintptr(0)
var pPrev uintptr
@@ -226452,7 +226512,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:223843:12: */
+func sqlite3Fts5ExprInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* sqlite3.c:223919:12: */
var rc int32 = SQLITE_OK
_ = pGlobal
_ = db
@@ -226465,7 +226525,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:223880:12: */
+func sqlite3Fts5ExprPhraseCount(tls *libc.TLS, pExpr uintptr) int32 { /* sqlite3.c:223956:12: */
return func() int32 {
if pExpr != 0 {
return (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase
@@ -226475,7 +226535,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:223887:12: */
+func sqlite3Fts5ExprPhraseSize(tls *libc.TLS, pExpr uintptr, iPhrase int32) int32 { /* sqlite3.c:223963:12: */
if iPhrase < 0 || iPhrase >= (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase {
return 0
}
@@ -226484,7 +226544,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:223896:12: */
+func sqlite3Fts5ExprPoslist(tls *libc.TLS, pExpr uintptr, iPhrase int32, pa uintptr) int32 { /* sqlite3.c:223972: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
@@ -226505,7 +226565,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:223925:29: */
+func sqlite3Fts5ExprClearPoslists(tls *libc.TLS, pExpr uintptr, bLive int32) uintptr { /* sqlite3.c:224001:29: */
var pRet uintptr
pRet = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Fts5PoslistPopulator{}))*uint64((*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase))
if pRet != 0 {
@@ -226529,12 +226589,12 @@ type Fts5ExprCtx1 = struct {
FpExpr uintptr
FaPopulator uintptr
FiOff I64
-} /* sqlite3.c:223947:1 */
+} /* sqlite3.c:224023:1 */
-type Fts5ExprCtx = Fts5ExprCtx1 /* sqlite3.c:223952:28 */
+type Fts5ExprCtx = Fts5ExprCtx1 /* sqlite3.c:224028:28 */
// TODO: Make this more efficient!
-func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* sqlite3.c:223957:12: */
+func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* sqlite3.c:224033:12: */
var i int32
for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ {
if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol {
@@ -226544,7 +226604,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:223965:12: */
+func fts5ExprPopulatePoslistsCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:224041:12: */
var p uintptr = pCtx
var pExpr uintptr = (*Fts5ExprCtx)(unsafe.Pointer(p)).FpExpr
var i int32
@@ -226579,7 +226639,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:224000:12: */
+func sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uintptr, aPopulator uintptr, iCol int32, z uintptr, n int32) int32 { /* sqlite3.c:224076:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -226607,7 +226667,7 @@ func sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uintp
}{fts5ExprPopulatePoslistsCb})))
}
-func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:224030:13: */
+func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:224106: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 {
@@ -226618,7 +226678,7 @@ func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* sqlite3.c:224030:1
}
}
-func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* sqlite3.c:224041:12: */
+func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* sqlite3.c:224117:12: */
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid = iRowid
(*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType {
@@ -226668,12 +226728,12 @@ func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /*
return 1
}
-func sqlite3Fts5ExprCheckPoslists(tls *libc.TLS, pExpr uintptr, iRowid I64) { /* sqlite3.c:224085:13: */
+func sqlite3Fts5ExprCheckPoslists(tls *libc.TLS, pExpr uintptr, iRowid I64) { /* sqlite3.c:224161: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:224092:12: */
+func sqlite3Fts5ExprPhraseCollist(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppCollist uintptr, pnCollist uintptr) int32 { /* sqlite3.c:224168: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
@@ -226724,7 +226784,7 @@ type Fts5HashEntry1 = struct {
FiCol I16
FiPos int32
FiRowid I64
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
// 2014 August 11
//
@@ -226740,14 +226800,14 @@ type Fts5HashEntry1 = struct {
// #include "fts5Int.h"
-type Fts5HashEntry = Fts5HashEntry1 /* sqlite3.c:224145:30 */
+type Fts5HashEntry = Fts5HashEntry1 /* sqlite3.c:224221: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:224211:12: */
+func sqlite3Fts5HashNew(tls *libc.TLS, pConfig uintptr, ppNew uintptr, pnByte uintptr) int32 { /* sqlite3.c:224287:12: */
var rc int32 = SQLITE_OK
var pNew uintptr
@@ -226775,7 +226835,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:224241:13: */
+func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:224317:13: */
if pHash != 0 {
sqlite3Fts5HashClear(tls, pHash)
Xsqlite3_free(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FaSlot)
@@ -226784,7 +226844,7 @@ func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:224241:13:
}
// Empty (but do not delete) a hash table.
-func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:224252:13: */
+func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:224328:13: */
var i int32
for i = 0; i < (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot; i++ {
var pNext uintptr
@@ -226798,7 +226858,7 @@ func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* sqlite3.c:224252:13
(*Fts5Hash)(unsafe.Pointer(pHash)).FnEntry = 0
}
-func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* sqlite3.c:224266:21: */
+func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* sqlite3.c:224342:21: */
var i int32
var h uint32 = uint32(13)
for i = n - 1; i >= 0; i-- {
@@ -226807,7 +226867,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:224275:21: */
+func fts5HashKey2(tls *libc.TLS, nSlot int32, b U8, p uintptr, n int32) uint32 { /* sqlite3.c:224351:21: */
var i int32
var h uint32 = uint32(13)
for i = n - 1; i >= 0; i-- {
@@ -226818,7 +226878,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:224288:12: */
+func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* sqlite3.c:224364:12: */
var nNew int32 = (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot * 2
var i int32
var apNew uintptr
@@ -226848,7 +226908,7 @@ func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* sqlite3.c:224288:12
return SQLITE_OK
}
-func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) int32 { /* sqlite3.c:224316:12: */
+func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) int32 { /* sqlite3.c:224392:12: */
var nRet int32 = 0
if (*Fts5HashEntry)(unsafe.Pointer(p)).FiSzPoslist != 0 {
var pPtr uintptr
@@ -226897,7 +226957,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:224367:12: */
+func sqlite3Fts5HashWrite(tls *libc.TLS, pHash uintptr, iRowid I64, iCol int32, iPos int32, bByte int8, pToken uintptr, nToken int32) int32 { /* sqlite3.c:224443:12: */
var iHash uint32
var p uintptr
var pPtr uintptr
@@ -227056,7 +227116,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:224520:22: */
+func fts5HashEntryMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* sqlite3.c:224596:22: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -227102,7 +227162,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:224566:12: */
+func fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32, ppSorted uintptr) int32 { /* sqlite3.c:224642:12: */
var nMergeSlot int32 = 32
var ap uintptr
var pList uintptr
@@ -227144,7 +227204,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:224613:12: */
+func sqlite3Fts5HashQuery(tls *libc.TLS, pHash uintptr, nPre int32, pTerm uintptr, nTerm int32, ppOut uintptr, pnDoclist uintptr) int32 { /* sqlite3.c:224689:12: */
var iHash uint32 = fts5HashKey(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot, pTerm, nTerm)
var zKey uintptr = uintptr(0)
var p uintptr
@@ -227178,20 +227238,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:224651:12: */
+func sqlite3Fts5HashScanInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32) int32 { /* sqlite3.c:224727:12: */
return fts5HashEntrySort(tls, p, pTerm, nTerm, p+24)
}
-func sqlite3Fts5HashScanNext(tls *libc.TLS, p uintptr) { /* sqlite3.c:224658:13: */
+func sqlite3Fts5HashScanNext(tls *libc.TLS, p uintptr) { /* sqlite3.c:224734: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:224663:12: */
+func sqlite3Fts5HashScanEof(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:224739: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:224667:13: */
+func sqlite3Fts5HashScanEntry(tls *libc.TLS, pHash uintptr, pzTerm uintptr, ppDoclist uintptr, pnDoclist uintptr) { /* sqlite3.c:224743:13: */
var p uintptr
if libc.AssignUintptr(&p, (*Fts5Hash)(unsafe.Pointer(pHash)).FpScan) != 0 {
var zKey uintptr = p + 1*48
@@ -227417,7 +227477,7 @@ type Fts5Data1 = struct {
Fp uintptr
Fnn int32
FszLeaf int32
-} /* sqlite3.c:224942:9 */
+} /* sqlite3.c:225018:9 */
// 2014 May 31
//
@@ -227625,14 +227685,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:224942:25 */
+type Fts5Data = Fts5Data1 /* sqlite3.c:225018:25 */
type Fts5DlidxIter1 = struct {
FnLvl int32
FiSegid int32
FaLvl [1]Fts5DlidxLvl
-} /* sqlite3.c:224943:9 */
+} /* sqlite3.c:225019:9 */
-type Fts5DlidxIter = Fts5DlidxIter1 /* sqlite3.c:224943:30 */
+type Fts5DlidxIter = Fts5DlidxIter1 /* sqlite3.c:225019:30 */
type Fts5DlidxLvl1 = struct {
FpData uintptr
FiOff int32
@@ -227640,17 +227700,17 @@ type Fts5DlidxLvl1 = struct {
FiFirstOff int32
FiLeafPgno int32
FiRowid I64
-} /* sqlite3.c:224943:9 */
+} /* sqlite3.c:225019:9 */
-type Fts5DlidxLvl = Fts5DlidxLvl1 /* sqlite3.c:224944:29 */
+type Fts5DlidxLvl = Fts5DlidxLvl1 /* sqlite3.c:225020:29 */
type Fts5DlidxWriter1 = struct {
Fpgno int32
FbPrevValid int32
FiPrev I64
Fbuf Fts5Buffer
-} /* sqlite3.c:224945:9 */
+} /* sqlite3.c:225021:9 */
-type Fts5DlidxWriter = Fts5DlidxWriter1 /* sqlite3.c:224945:32 */
+type Fts5DlidxWriter = Fts5DlidxWriter1 /* sqlite3.c:225021:32 */
type Fts5Iter1 = struct {
Fbase Fts5IndexIter
FpIndex uintptr
@@ -227664,18 +227724,18 @@ type Fts5Iter1 = struct {
FiSwitchRowid I64
FaFirst uintptr
FaSeg [1]Fts5SegIter
-} /* sqlite3.c:224946:9 */
+} /* sqlite3.c:225022:9 */
-type Fts5Iter = Fts5Iter1 /* sqlite3.c:224946:25 */
+type Fts5Iter = Fts5Iter1 /* sqlite3.c:225022:25 */
type Fts5PageWriter1 = struct {
Fpgno int32
FiPrevPgidx int32
Fbuf Fts5Buffer
Fpgidx Fts5Buffer
Fterm Fts5Buffer
-} /* sqlite3.c:224947:9 */
+} /* sqlite3.c:225023:9 */
-type Fts5PageWriter = Fts5PageWriter1 /* sqlite3.c:224947:31 */
+type Fts5PageWriter = Fts5PageWriter1 /* sqlite3.c:225023:31 */
type Fts5SegIter1 = struct {
FpSeg uintptr
Fflags int32
@@ -227697,18 +227757,18 @@ type Fts5SegIter1 = struct {
FnPos int32
FbDel U8
F__ccgo_pad1 [3]byte
-} /* sqlite3.c:224946:9 */
+} /* sqlite3.c:225022:9 */
-type Fts5SegIter = Fts5SegIter1 /* sqlite3.c:224948:28 */
+type Fts5SegIter = Fts5SegIter1 /* sqlite3.c:225024:28 */
type Fts5DoclistIter1 = struct {
FaEof uintptr
FiRowid I64
FaPoslist uintptr
FnPoslist int32
FnSize int32
-} /* sqlite3.c:224949:9 */
+} /* sqlite3.c:225025:9 */
-type Fts5DoclistIter = Fts5DoclistIter1 /* sqlite3.c:224949:32 */
+type Fts5DoclistIter = Fts5DoclistIter1 /* sqlite3.c:225025:32 */
type Fts5SegWriter1 = struct {
FiSegid int32
F__ccgo_pad1 [4]byte
@@ -227725,9 +227785,9 @@ type Fts5SegWriter1 = struct {
Fbtterm Fts5Buffer
FiBtPage int32
F__ccgo_pad3 [4]byte
-} /* sqlite3.c:224950:9 */
+} /* sqlite3.c:225026:9 */
-type Fts5SegWriter = Fts5SegWriter1 /* sqlite3.c:224950:30 */
+type Fts5SegWriter = Fts5SegWriter1 /* sqlite3.c:225026:30 */
type Fts5Structure1 = struct {
FnRef int32
F__ccgo_pad1 [4]byte
@@ -227735,38 +227795,38 @@ type Fts5Structure1 = struct {
FnSegment int32
FnLevel int32
FaLevel [1]Fts5StructureLevel
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5Structure = Fts5Structure1 /* sqlite3.c:224951:30 */
+type Fts5Structure = Fts5Structure1 /* sqlite3.c:225027:30 */
type Fts5StructureLevel1 = struct {
FnMerge int32
FnSeg int32
FaSeg uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5StructureLevel = Fts5StructureLevel1 /* sqlite3.c:224952:35 */
+type Fts5StructureLevel = Fts5StructureLevel1 /* sqlite3.c:225028:35 */
type Fts5StructureSegment1 = struct {
FiSegid int32
FpgnoFirst int32
FpgnoLast int32
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5StructureSegment = Fts5StructureSegment1 /* sqlite3.c:224953:37 */
+type Fts5StructureSegment = Fts5StructureSegment1 /* sqlite3.c:225029:37 */
type Fts5CResult1 = struct {
FiFirst U16
FbTermEq U8
F__ccgo_pad1 [1]byte
-} /* sqlite3.c:224946:9 */
+} /* sqlite3.c:225022:9 */
-type Fts5CResult = Fts5CResult1 /* sqlite3.c:225063:28 */
+type Fts5CResult = Fts5CResult1 /* sqlite3.c:225139:28 */
-func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* sqlite3.c:225242:13: */
+func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* sqlite3.c:225318: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:225247:12: */
+func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* sqlite3.c:225323:12: */
return U16(int32(U16(*(*U8)(unsafe.Pointer(aIn))))<<8 + int32(*(*U8)(unsafe.Pointer(aIn + 1))))
}
@@ -227774,7 +227834,7 @@ func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* sqlite3.c:225247: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:225257:13: */
+func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* sqlite3.c:225333:13: */
return sqlite3Fts5MallocZero(tls, p+52, nByte)
}
@@ -227792,7 +227852,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:225289:12: */
+func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /* sqlite3.c:225365:12: */
var nCmp int32
var res int32
nCmp = func() int32 {
@@ -227816,7 +227876,7 @@ func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /*
}()
}
-func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* sqlite3.c:225298:12: */
+func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* sqlite3.c:225374:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -227827,7 +227887,7 @@ func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* sqlite3.c:225
}
// Close the read-only blob handle, if it is open.
-func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* sqlite3.c:225307:13: */
+func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* sqlite3.c:225383:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpReader != 0 {
var pReader uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpReader
(*Fts5Index)(unsafe.Pointer(p)).FpReader = uintptr(0)
@@ -227839,7 +227899,7 @@ func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* sqlite3.c:225307
//
// 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:225321:17: */
+func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:225397:17: */
var pRet uintptr = uintptr(0)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var rc int32 = SQLITE_OK
@@ -227866,7 +227926,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+36018, iRowid, 0, p+56)
+ (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, ts+36026, iRowid, 0, p+56)
}
// If either of the sqlite3_blob_open() or sqlite3_blob_reopen() calls
@@ -227912,11 +227972,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:225395:13: */
+func fts5DataRelease(tls *libc.TLS, pData uintptr) { /* sqlite3.c:225471:13: */
Xsqlite3_free(tls, pData)
}
-func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:225399:17: */
+func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* sqlite3.c:225475: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 {
@@ -227928,7 +227988,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:225411:12: */
+func fts5IndexPrepareStmt(tls *libc.TLS, p uintptr, ppStmt uintptr, zSql uintptr) int32 { /* sqlite3.c:225487: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,
@@ -227943,7 +228003,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:225433:13: */
+func fts5DataWrite(tls *libc.TLS, p uintptr, iRowid I64, pData uintptr, nData int32) { /* sqlite3.c:225509:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -227954,7 +228014,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+36024,
+ ts+36032,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 {
return
@@ -227971,7 +228031,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:225457:13: */
+func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* sqlite3.c:225533:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -227982,7 +228042,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+36075,
+ ts+36083,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
if fts5IndexPrepareStmt(tls, p, p+72, zSql) != 0 {
return
@@ -227996,7 +228056,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:225478:13: */
+func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* sqlite3.c:225554:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -228006,7 +228066,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+36124,
+ ts+36132,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -228018,7 +228078,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:225500:13: */
+func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:225576:13: */
if pStruct != 0 && 0 >= libc.PreDecInt32(&(*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef, 1) {
var i int32
@@ -228029,22 +228089,22 @@ func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:225500:
}
}
-func fts5StructureRef(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:225511:13: */
+func fts5StructureRef(tls *libc.TLS, pStruct uintptr) { /* sqlite3.c:225587:13: */
(*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef++
}
-func sqlite3Fts5StructureRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225515:13: */
+func sqlite3Fts5StructureRef(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225591:13: */
fts5StructureRef(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct)
return (*Fts5Index)(unsafe.Pointer(p)).FpStruct
}
-func sqlite3Fts5StructureRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:225519:13: */
+func sqlite3Fts5StructureRelease(tls *libc.TLS, p uintptr) { /* sqlite3.c:225595:13: */
if p != 0 {
fts5StructureRelease(tls, p)
}
}
-func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* sqlite3.c:225524:12: */
+func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* sqlite3.c:225600:12: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != pStruct {
return SQLITE_ABORT
}
@@ -228055,7 +228115,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:225537:13: */
+func fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) { /* sqlite3.c:225613: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{})))
@@ -228097,7 +228157,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:225579:12: */
+func fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie uintptr, ppOut uintptr) int32 { /* sqlite3.c:225655:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -228190,7 +228250,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:225671:13: */
+func fts5StructureAddLevel(tls *libc.TLS, pRc uintptr, ppStruct uintptr) { /* sqlite3.c:225747:13: */
fts5StructureMakeWritable(tls, pRc, ppStruct)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pStruct uintptr = *(*uintptr)(unsafe.Pointer(ppStruct))
@@ -228210,7 +228270,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:225696:13: */
+func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl int32, nExtra int32, bInsert int32) { /* sqlite3.c:225772:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pLvl uintptr = pStruct + 24 + uintptr(iLvl)*16
var aNew uintptr
@@ -228233,7 +228293,7 @@ func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl
}
}
-func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225725:22: */
+func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225801:22: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -228261,7 +228321,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:225749:12: */
+func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:225825:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -228270,7 +228330,7 @@ func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:225749: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+36164, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
+ Xsqlite3_mprintf(tls, ts+36172, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 {
return int64(0)
}
@@ -228294,7 +228354,7 @@ func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* sqlite3.c:225749: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:225780:22: */
+func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225856:22: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct == uintptr(0) {
(*Fts5Index)(unsafe.Pointer(p)).FiStructVersion = fts5IndexDataVersion(tls, p)
@@ -228311,7 +228371,7 @@ func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:225780:2
return (*Fts5Index)(unsafe.Pointer(p)).FpStruct
}
-func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* sqlite3.c:225819:13: */
+func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* sqlite3.c:225895:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != 0 {
fts5StructureRelease(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct)
(*Fts5Index)(unsafe.Pointer(p)).FpStruct = uintptr(0)
@@ -228325,7 +228385,7 @@ func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* sqlite3.c:225819: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:225862:13: */
+func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* sqlite3.c:225938:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -228378,14 +228438,14 @@ func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* sqlite3.
}
}
-func fts5SegmentSize(tls *libc.TLS, pSeg uintptr) int32 { /* sqlite3.c:225917:12: */
+func fts5SegmentSize(tls *libc.TLS, pSeg uintptr) int32 { /* sqlite3.c:225993: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:225926:13: */
+func fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote int32, pStruct uintptr) { /* sqlite3.c:226002:13: */
var il int32
var is int32
var pOut uintptr = pStruct + 24 + uintptr(iPromote)*16
@@ -228428,7 +228488,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:225969:13: */
+func fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr) { /* sqlite3.c:226045:13: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var iTst int32
var iPromote int32 = -1
@@ -228477,7 +228537,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:226020:12: */
+func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:226096:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -228513,7 +228573,7 @@ func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:226020:1
}
// Advance the iterator passed as the only argument.
-func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* sqlite3.c:226052:12: */
+func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* sqlite3.c:226128:12: */
var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32
if fts5DlidxLvlNext(tls, pLvl) != 0 {
@@ -228534,7 +228594,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:226072:12: */
+func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:226148:12: */
return fts5DlidxIterNextR(tls, p, pIter, 0)
}
@@ -228547,7 +228607,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:226087:12: */
+func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:226163:12: */
var i int32
for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ {
fts5DlidxLvlNext(tls, pIter+8+uintptr(i)*32)
@@ -228555,11 +228615,11 @@ func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:22608
return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FbEof
}
-func fts5DlidxIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:226096:12: */
+func fts5DlidxIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:226172: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:226100:13: */
+func fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226176:13: */
var i int32
// Advance each level to the last entry on the last page
@@ -228580,7 +228640,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:226123:12: */
+func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:226199:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -228642,7 +228702,7 @@ func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* sqlite3.c:226123:1
return (*Fts5DlidxLvl)(unsafe.Pointer(pLvl)).FbEof
}
-func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* sqlite3.c:226172:12: */
+func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* sqlite3.c:226248:12: */
var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32
if fts5DlidxLvlPrev(tls, pLvl) != 0 {
@@ -228665,12 +228725,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:226195:12: */
+func fts5DlidxIterPrev(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:226271: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:226202:13: */
+func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:226278:13: */
if pIter != 0 {
var i int32
for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ {
@@ -228680,7 +228740,7 @@ func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:226202:13: *
}
}
-func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeafPg int32) uintptr { /* sqlite3.c:226212:22: */
+func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeafPg int32) uintptr { /* sqlite3.c:226288:22: */
var pIter uintptr = uintptr(0)
var i int32
var bDone int32 = 0
@@ -228722,16 +228782,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:226259:12: */
+func fts5DlidxIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* sqlite3.c:226335:12: */
return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FiRowid
}
-func fts5DlidxIterPgno(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:226262:12: */
+func fts5DlidxIterPgno(tls *libc.TLS, pIter uintptr) int32 { /* sqlite3.c:226338: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:226269:13: */
+func fts5SegIterNextPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226345:13: */
var pLeaf uintptr
var pSeg uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
@@ -228761,7 +228821,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:226307:12: */
+func fts5GetPoslistSize(tls *libc.TLS, p uintptr, pnSz uintptr, pbDel uintptr) int32 { /* sqlite3.c:226383:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -228790,7 +228850,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:226328:13: */
+func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226404:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -228835,7 +228895,7 @@ func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c
}
}
-func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226357:13: */
+func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226433: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
@@ -228867,7 +228927,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:226390:13: */
+func fts5SegIterLoadTerm(tls *libc.TLS, p uintptr, pIter uintptr, nKeep int32) { /* sqlite3.c:226466:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -228901,7 +228961,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:226423:13: */
+func fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226499: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)
@@ -228923,7 +228983,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:226441:13: */
+func fts5SegIterInit(tls *libc.TLS, p uintptr, pSeg uintptr, pIter uintptr) { /* sqlite3.c:226517: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
@@ -228964,7 +229024,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:226490:13: */
+func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226566:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -229023,7 +229083,7 @@ func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sq
}
//
-func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226543:13: */
+func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226619:13: */
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
(*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf = uintptr(0)
@@ -229073,7 +229133,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:226599:12: */
+func fts5MultiIterIsEmpty(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:226675: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)
}
@@ -229081,7 +229141,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:226609:13: */
+func fts5SegIterNext_Reverse(tls *libc.TLS, p uintptr, pIter uintptr, pbUnused uintptr) { /* sqlite3.c:226685:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -229110,7 +229170,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:226643:13: */
+func fts5SegIterNext_None(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* sqlite3.c:226719:13: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -229215,7 +229275,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:226715:13: */
+func fts5SegIterNext(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* sqlite3.c:226791:13: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -229340,7 +229400,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:226846:13: */
+func fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:226922:13: */
var pDlidx uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpDlidx
var pLast uintptr = uintptr(0)
var pgnoLast int32 = 0
@@ -229440,7 +229500,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:226935:13: */
+func fts5SegIterLoadDlidx(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:227011: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
@@ -229468,7 +229528,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:226969:13: */
+func fts5LeafSeek(tls *libc.TLS, p uintptr, bGe int32, pIter uintptr, pTerm uintptr, nTerm int32) { /* sqlite3.c:227045:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -229702,7 +229762,7 @@ __31:
fts5SegIterLoadNPos(tls, p, pIter)
}
-func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:227095:21: */
+func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:227171:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -229710,7 +229770,7 @@ func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:227095:2
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig
fts5IndexPrepareStmt(tls, p, p+96, Xsqlite3_mprintf(tls,
- ts+36187,
+ ts+36195,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*Fts5Index)(unsafe.Pointer(p)).FpIdxSelect
@@ -229721,7 +229781,7 @@ func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* sqlite3.c:227095: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:227114:13: */
+func fts5SegIterSeekInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pSeg uintptr, pIter uintptr) { /* sqlite3.c:227190:13: */
var iPg int32 = 1
var bGe int32 = flags & FTS5INDEX_QUERY_SCAN
var bDlidx int32 = 0 // True if there is a doclist-index
@@ -229791,7 +229851,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:227197:13: */
+func fts5SegIterHashInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pIter uintptr) { /* sqlite3.c:227273:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -229847,7 +229907,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:227256:13: */
+func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227332:13: */
sqlite3Fts5BufferFree(tls, pIter+88)
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpNextLeaf)
@@ -229862,7 +229922,7 @@ func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227256: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:227360:12: */
+func fts5MultiIterDoCompare(tls *libc.TLS, pIter uintptr, iOut int32) int32 { /* sqlite3.c:227436:12: */
var i1 int32 // Index of left-hand Fts5SegIter
var i2 int32 // Index of right-hand Fts5SegIter
var iRes int32
@@ -229914,7 +229974,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:227414:13: */
+func fts5SegIterGotoPage(tls *libc.TLS, p uintptr, pIter uintptr, iLeafPgno int32) { /* sqlite3.c:227490:13: */
if iLeafPgno > (*Fts5StructureSegment)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FpgnoLast {
(*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_CORRUPT | int32(1)<<8
@@ -229944,7 +230004,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:227452:13: */
+func fts5SegIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* sqlite3.c:227528: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
@@ -229994,7 +230054,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:227506:13: */
+func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227582:13: */
if pIter != 0 {
var i int32
for i = 0; i < (*Fts5Iter)(unsafe.Pointer(pIter)).FnSeg; i++ {
@@ -230005,7 +230065,7 @@ func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227506:13: *
}
}
-func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int32, iMinset int32) { /* sqlite3.c:227517:13: */
+func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int32, iMinset int32) { /* sqlite3.c:227593: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
@@ -230028,7 +230088,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:227545:12: */
+func fts5MultiIterAdvanceRowid(tls *libc.TLS, pIter uintptr, iChanged int32, ppFirst uintptr) int32 { /* sqlite3.c:227621:12: */
var pNew uintptr = pIter + 96 + uintptr(iChanged)*120
if (*Fts5SegIter)(unsafe.Pointer(pNew)).FiRowid == (*Fts5Iter)(unsafe.Pointer(pIter)).FiSwitchRowid ||
@@ -230068,7 +230128,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:227588:13: */
+func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227664: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
@@ -230079,7 +230139,7 @@ func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:227588: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:227601:13: */
+func fts5MultiIterNext(tls *libc.TLS, p uintptr, pIter uintptr, bFrom int32, iFrom I64) { /* sqlite3.c:227677:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -230118,7 +230178,7 @@ 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:227639:13: */
+func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* sqlite3.c:227715:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -230143,12 +230203,12 @@ func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintp
}
}
-func fts5IterSetOutputs_Noop(tls *libc.TLS, pUnused1 uintptr, pUnused2 uintptr) { /* sqlite3.c:227667:13: */
+func fts5IterSetOutputs_Noop(tls *libc.TLS, pUnused1 uintptr, pUnused2 uintptr) { /* sqlite3.c:227743:13: */
_ = pUnused1
_ = pUnused2
}
-func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* sqlite3.c:227671:17: */
+func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* sqlite3.c:227747:17: */
var pNew uintptr
var nSlot int32 // Power of two >= nSeg
@@ -230167,7 +230227,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:227693:13: */
+func fts5PoslistCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:227769:13: */
_ = pUnused
if nChunk > 0 {
@@ -230184,21 +230244,21 @@ type PoslistCallbackCtx1 = struct {
FpColset uintptr
FeState int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:227705:9 */
+} /* sqlite3.c:227781:9 */
-type PoslistCallbackCtx = PoslistCallbackCtx1 /* sqlite3.c:227705:35 */
+type PoslistCallbackCtx = PoslistCallbackCtx1 /* sqlite3.c:227781:35 */
type PoslistOffsetsCtx1 = struct {
FpBuf uintptr
FpColset uintptr
FiRead int32
FiWrite int32
-} /* sqlite3.c:227712:9 */
+} /* sqlite3.c:227788:9 */
-type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* sqlite3.c:227712:34 */
+type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* sqlite3.c:227788:34 */
// TODO: Make this more efficient!
-func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* sqlite3.c:227723:12: */
+func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* sqlite3.c:227799:12: */
var i int32
for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ {
if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol {
@@ -230208,7 +230268,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:227731:13: */
+func fts5PoslistOffsetsCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:227807:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -230234,7 +230294,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:227754:13: */
+func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:227830:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -230314,7 +230374,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:227806:13: */
+func fts5ChunkIterate(tls *libc.TLS, p uintptr, pSeg uintptr, pCtx uintptr, xChunk uintptr) { /* sqlite3.c:227882: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)
@@ -230370,7 +230430,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:227856:13: */
+func fts5SegiterPoslist(tls *libc.TLS, p uintptr, pSeg uintptr, pColset uintptr, pBuf uintptr) { /* sqlite3.c:227932:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -230421,7 +230481,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:227901:13: */
+func fts5IndexExtractColset(tls *libc.TLS, pRc uintptr, pColset uintptr, pPos uintptr, nPos int32, pIter uintptr) { /* sqlite3.c:227977:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -230482,7 +230542,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:227961:13: */
+func fts5IterSetOutputs_None(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:228037:13: */
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos
@@ -230490,7 +230550,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:227971:13: */
+func fts5IterSetOutputs_Nocolset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:228047:13: */
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos
@@ -230510,7 +230570,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:227996:13: */
+func fts5IterSetOutputs_ZeroColset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:228072:13: */
_ = pSeg
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = 0
}
@@ -230518,7 +230578,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:228006:13: */
+func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:228082: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
@@ -230534,7 +230594,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:228024:13: */
+func fts5IterSetOutputs_Col100(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:228100:13: */
var a uintptr
var pEnd uintptr
var iPrev int32
@@ -230596,7 +230656,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:228064:13: */
+func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sqlite3.c:228140:13: */
var pColset uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpColset
(*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid
@@ -230618,7 +230678,7 @@ func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* sq
}
}
-func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* sqlite3.c:228089:13: */
+func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* sqlite3.c:228165:13: */
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex)).FpConfig
@@ -230663,7 +230723,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:228133: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:228209:13: */
var nSeg int32 // Number of segment-iters in use
var iIter int32 //
var iSeg int32 // Used to iterate through segments
@@ -230866,7 +230926,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:228239:13: */
+func fts5MultiIterNew2(tls *libc.TLS, p uintptr, pData uintptr, bDesc int32, ppOut uintptr) { /* sqlite3.c:228315:13: */
var pNew uintptr
pNew = fts5MultiIterAlloc(tls, p, 2)
if pNew != 0 {
@@ -230899,7 +230959,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:228279:12: */
+func fts5MultiIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* sqlite3.c:228355:12: */
return libc.Bool32((*Fts5Index)(unsafe.Pointer(p)).Frc != 0 || (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FbEof != 0)
}
@@ -230907,13 +230967,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:228292:12: */
+func fts5MultiIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* sqlite3.c:228368: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:228300:13: */
+func fts5MultiIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* sqlite3.c:228376:13: */
for 1 != 0 {
var iRowid I64
fts5MultiIterNext(tls, p, pIter, 1, iMatch)
@@ -230932,7 +230992,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:228319:17: */
+func fts5MultiIterTerm(tls *libc.TLS, pIter uintptr, pn uintptr) uintptr { /* sqlite3.c:228395: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
@@ -230945,7 +231005,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:228334:12: */
+func fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* sqlite3.c:228410:12: */
bp := tls.Alloc(252)
defer tls.Free(252)
@@ -230987,7 +231047,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:228391:13: */
+func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* sqlite3.c:228467:13: */
if (*Fts5Index)(unsafe.Pointer(p)).FpHash != 0 {
sqlite3Fts5HashClear(tls, (*Fts5Index)(unsafe.Pointer(p)).FpHash)
@@ -231000,7 +231060,7 @@ func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* sqlite3.c:228391: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:228406:12: */
+func fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr) int32 { /* sqlite3.c:228482: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)))) {
@@ -231010,7 +231070,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:228414:13: */
+func fts5WriteDlidxClear(tls *libc.TLS, p uintptr, pWriter uintptr, bFlush int32) { /* sqlite3.c:228490:13: */
var i int32
for i = 0; i < (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnDlidx; i++ {
@@ -231031,7 +231091,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:228440:12: */
+func fts5WriteDlidxGrow(tls *libc.TLS, p uintptr, pWriter uintptr, nLvl int32) int32 { /* sqlite3.c:228516:12: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK && nLvl >= (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnDlidx {
var aDlidx uintptr = Xsqlite3_realloc64(tls,
(*Fts5SegWriter)(unsafe.Pointer(pWriter)).FaDlidx, uint64(unsafe.Sizeof(Fts5DlidxWriter{}))*uint64(nLvl))
@@ -231050,7 +231110,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:228466:12: */
+func fts5WriteFlushDlidx(tls *libc.TLS, p uintptr, pWriter uintptr) int32 { /* sqlite3.c:228542:12: */
var bFlag int32 = 0
// If there were FTS5_MIN_DLIDX_SIZE or more empty leaf pages written
@@ -231072,7 +231132,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:228490:13: */
+func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.c:228566:13: */
var bFlag int32
if (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FiBtPage == 0 {
@@ -231105,7 +231165,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:228519:13: */
+func fts5WriteBtreeTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* sqlite3.c:228595:13: */
fts5WriteFlushBtree(tls, p, pWriter)
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
sqlite3Fts5BufferSet(tls, p+52, pWriter+96, nTerm, pTerm)
@@ -231115,7 +231175,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:228535:13: */
+func fts5WriteBtreeNoTerm(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.c:228611: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 {
@@ -231128,7 +231188,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:228551:12: */
+func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* sqlite3.c:228627:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -231144,7 +231204,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:228565:13: */
+func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* sqlite3.c:228641:13: */
var i int32
var bDone int32 = 0
@@ -231204,7 +231264,7 @@ func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64)
}
}
-func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.c:228625:13: */
+func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* sqlite3.c:228701:13: */
var pPage uintptr = pWriter + 8
var iRowid I64
@@ -231240,14 +231300,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:228626:19 */
+var zero = [4]U8{U8(0x00), U8(0x00), U8(0x00), U8(0x00)} /* sqlite3.c:228702: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:228671:13: */
+func fts5WriteAppendTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* sqlite3.c:228747:13: */
var nPrefix int32 // Bytes of prefix compression for term
var pPage uintptr = pWriter + 8
var pPgidx uintptr = pWriter + 8 + 24
@@ -231323,7 +231383,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:228752:13: */
+func fts5WriteAppendRowid(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* sqlite3.c:228828:13: */
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
var pPage uintptr = pWriter + 8
@@ -231352,7 +231412,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:228785:13: */
+func fts5WriteAppendPoslistData(tls *libc.TLS, p uintptr, pWriter uintptr, aData uintptr, nData int32) { /* sqlite3.c:228861:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -231381,7 +231441,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:228819:13: */
+func fts5WriteFinish(tls *libc.TLS, p uintptr, pWriter uintptr, pnLeaf uintptr) { /* sqlite3.c:228895:13: */
var i int32
var pLeaf uintptr = pWriter + 8
if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -231405,7 +231465,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:228847:13: */
+func fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) { /* sqlite3.c:228923:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -231426,7 +231486,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+36271,
+ ts+36279,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
@@ -231445,7 +231505,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:228894:13: */
+func fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) { /* sqlite3.c:228970:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -231514,13 +231574,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:228960:13: */
+func fts5MergeChunkCallback(tls *libc.TLS, p uintptr, pCtx uintptr, pChunk uintptr, nChunk int32) { /* sqlite3.c:229036: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:228972:13: */
+func fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32, pnRem uintptr) { /* sqlite3.c:229048:13: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -231679,7 +231739,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:229122:12: */
+func fts5IndexMerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nPg int32, nMin int32) int32 { /* sqlite3.c:229198:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -231729,7 +231789,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:229181:13: */
+func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32) { /* sqlite3.c:229257: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
@@ -231746,7 +231806,7 @@ func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32)
}
}
-func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* sqlite3.c:229202:13: */
+func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* sqlite3.c:229278:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -231763,7 +231823,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:229220:12: */
+func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:229296:12: */
var rc int32 = (*Fts5Index)(unsafe.Pointer(p)).Frc
(*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_OK
return rc
@@ -231772,14 +231832,14 @@ func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:229220:12: *
type Fts5FlushCtx1 = struct {
FpIdx uintptr
Fwriter Fts5SegWriter
-} /* sqlite3.c:229226:9 */
+} /* sqlite3.c:229302:9 */
-type Fts5FlushCtx = Fts5FlushCtx1 /* sqlite3.c:229226:29 */
+type Fts5FlushCtx = Fts5FlushCtx1 /* sqlite3.c:229302: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:229237:12: */
+func fts5PoslistPrefix(tls *libc.TLS, aBuf uintptr, nMax int32) int32 { /* sqlite3.c:229313:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -231804,7 +231864,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:229258:13: */
+func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:229334:13: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -231982,7 +232042,7 @@ func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* sqlite3.c:229258:13: */
}
// Flush any data stored in the in-memory hash tables to the database.
-func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* sqlite3.c:229412:13: */
+func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* sqlite3.c:229488:13: */
// Unless it is empty, flush the hash table to disk
if (*Fts5Index)(unsafe.Pointer(p)).FnPendingData != 0 {
@@ -231991,7 +232051,7 @@ func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* sqlite3.c:229412:13: */
}
}
-func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr { /* sqlite3.c:229421:22: */
+func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr { /* sqlite3.c:229497:22: */
var pNew uintptr = uintptr(0)
var nByte Sqlite3_int64 = Sqlite3_int64(unsafe.Sizeof(Fts5Structure{}))
var nSeg int32 = (*Fts5Structure)(unsafe.Pointer(pStruct)).FnSegment
@@ -232052,7 +232112,7 @@ func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr
return pNew
}
-func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:229483:12: */
+func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:229559:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -232086,7 +232146,7 @@ func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:229
// This is called to implement the special "VALUES('merge', $nMerge)"
// INSERT command.
-func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sqlite3.c:229517:12: */
+func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sqlite3.c:229593:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -232111,12 +232171,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:229539:13: */
+func fts5AppendRowid(tls *libc.TLS, p uintptr, iDelta I64, pUnused uintptr, pBuf uintptr) { /* sqlite3.c:229615:13: */
_ = pUnused
sqlite3Fts5BufferAppendVarint(tls, p+52, pBuf, iDelta)
}
-func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBuf uintptr) { /* sqlite3.c:229549:13: */
+func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBuf uintptr) { /* sqlite3.c:229625:13: */
var nData int32 = (*Fts5Iter)(unsafe.Pointer(pMulti)).Fbase.FnData
var nByte int32 = nData + 9 + 9 + FTS5_DATA_ZERO_PADDING
@@ -232143,7 +232203,7 @@ func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBu
}
}
-func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:229567:13: */
+func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:229643:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -232175,7 +232235,7 @@ func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* sqlite3.c:229567:13:
}
}
-func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* sqlite3.c:229596:13: */
+func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* sqlite3.c:229672: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
@@ -232185,13 +232245,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:229635:13: */
+func fts5BufferSwap(tls *libc.TLS, p1 uintptr, p2 uintptr) { /* sqlite3.c:229711: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:229641:13: */
+func fts5NextRowid(tls *libc.TLS, pBuf uintptr, piOff uintptr, piRowid uintptr) { /* sqlite3.c:229717:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -232208,7 +232268,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:229656:13: */
+func fts5MergeRowidLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* sqlite3.c:229732:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -232264,11 +232324,11 @@ type PrefixMerger1 = struct {
F__ccgo_pad1 [4]byte
FaPos uintptr
FpNext uintptr
-} /* sqlite3.c:229699:9 */
+} /* sqlite3.c:229775:9 */
-type PrefixMerger = PrefixMerger1 /* sqlite3.c:229699:29 */
+type PrefixMerger = PrefixMerger1 /* sqlite3.c:229775:29 */
-func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:229708:13: */
+func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:229784: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 {
@@ -232279,7 +232339,7 @@ func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /
}
}
-func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:229722:13: */
+func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) { /* sqlite3.c:229798: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 {
@@ -232292,7 +232352,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:229741:13: */
+func fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* sqlite3.c:229817:13: */
bp := tls.Alloc(1072)
defer tls.Free(1072)
@@ -232457,7 +232517,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:229885:13: */
+func fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pToken uintptr, nToken int32, pColset uintptr, ppIter uintptr) { /* sqlite3.c:229961:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -232604,7 +232664,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:230022:12: */
+func sqlite3Fts5IndexBeginWrite(tls *libc.TLS, p uintptr, bDelete int32, iRowid I64) int32 { /* sqlite3.c:230098:12: */
// Allocate the hash table if it has not already been allocated
if (*Fts5Index)(unsafe.Pointer(p)).FpHash == uintptr(0) {
@@ -232624,7 +232684,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:230046:12: */
+func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230122:12: */
fts5IndexFlush(tls, p)
sqlite3Fts5IndexCloseReader(tls, p)
@@ -232635,7 +232695,7 @@ func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230046:
// 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:230059:12: */
+func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230135:12: */
sqlite3Fts5IndexCloseReader(tls, p)
fts5IndexDiscardData(tls, p)
fts5StructureInvalidate(tls, p)
@@ -232646,7 +232706,7 @@ func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230
// 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:230072:12: */
+func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230148:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -232665,7 +232725,7 @@ func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:23007
//
// 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:230089:12: */
+func sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* sqlite3.c:230165:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -232676,13 +232736,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+36328, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
+ (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl = sqlite3Fts5Mprintf(tls, bp+8, ts+36336, 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+26246, ts+36336, 0, pzErr)
+ pConfig, ts+26254, ts+36344, 0, pzErr)
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+12717,
- ts+36371,
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+12725,
+ ts+36379,
1, pzErr)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
@@ -232699,7 +232759,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:230130:12: */
+func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230206:12: */
var rc int32 = SQLITE_OK
if p != 0 {
@@ -232720,7 +232780,7 @@ func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230130
// 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:230153:12: */
+func sqlite3Fts5IndexCharlenToBytelen(tls *libc.TLS, p uintptr, nByte int32, nChar int32) int32 { /* sqlite3.c:230229:12: */
var n int32 = 0
var i int32
for i = 0; i < nChar; i++ {
@@ -232747,7 +232807,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:230180:12: */
+func fts5IndexCharlen(tls *libc.TLS, pIn uintptr, nIn int32) int32 { /* sqlite3.c:230256:12: */
var nChar int32 = 0
var i int32 = 0
for i < nIn {
@@ -232769,7 +232829,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:230202:12: */
+func sqlite3Fts5IndexWrite(tls *libc.TLS, p uintptr, iCol int32, iPos int32, pToken uintptr, nToken int32) int32 { /* sqlite3.c:230278:12: */
var i int32 // Used to iterate through indexes
var rc int32 = SQLITE_OK // Return code
var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig
@@ -232793,7 +232853,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:230238:12: */
+func sqlite3Fts5IndexQuery(tls *libc.TLS, p uintptr, pToken uintptr, nToken int32, flags int32, pColset uintptr, ppIter uintptr) int32 { /* sqlite3.c:230314:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -232876,7 +232936,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:230326:12: */
+func sqlite3Fts5IterNext(tls *libc.TLS, pIndexIter uintptr) int32 { /* sqlite3.c:230402:12: */
var pIter uintptr = pIndexIter
fts5MultiIterNext(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex, pIter, 0, int64(0))
@@ -232884,7 +232944,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:230336:12: */
+func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* sqlite3.c:230412:12: */
var pIter uintptr = pIndexIter
var p uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex
@@ -232904,14 +232964,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:230360:12: */
+func sqlite3Fts5IterNextFrom(tls *libc.TLS, pIndexIter uintptr, iMatch I64) int32 { /* sqlite3.c:230436: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:230369:19: */
+func sqlite3Fts5IterTerm(tls *libc.TLS, pIndexIter uintptr, pn uintptr) uintptr { /* sqlite3.c:230445:19: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -232929,7 +232989,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:230380:13: */
+func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* sqlite3.c:230456:13: */
if pIndexIter != 0 {
var pIter uintptr = pIndexIter
var pIndex uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex
@@ -232942,7 +233002,7 @@ func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* sqlite3.c:2303
//
// 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:230395:12: */
+func sqlite3Fts5IndexGetAverages(tls *libc.TLS, p uintptr, pnRow uintptr, anSize uintptr) int32 { /* sqlite3.c:230471:12: */
var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FnCol
var pData uintptr
@@ -232964,7 +233024,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:230419:12: */
+func sqlite3Fts5IndexSetAverages(tls *libc.TLS, p uintptr, pData uintptr, nData int32) int32 { /* sqlite3.c:230495:12: */
fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), pData, nData)
return fts5IndexReturn(tls, p)
@@ -232972,7 +233032,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:230429:12: */
+func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230505:12: */
return (*Fts5Index)(unsafe.Pointer(p)).FnRead
}
@@ -232981,7 +233041,7 @@ func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230429
//
// 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:230440:12: */
+func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* sqlite3.c:230516:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -232994,7 +233054,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+36018, int64(FTS5_STRUCTURE_ROWID), 1, bp+8)
+ ts+36026, 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 */)))
@@ -233003,7 +233063,7 @@ func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /*
return rc
}
-func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230460:12: */
+func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:230536:12: */
var pStruct uintptr
pStruct = fts5StructureRead(tls, p)
fts5StructureRelease(tls, pStruct)
@@ -233017,7 +233077,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:230477:12: */
+func sqlite3Fts5IndexEntryCksum(tls *libc.TLS, iRowid I64, iCol int32, iPos int32, iIdx int32, pTerm uintptr, nTerm int32) U64 { /* sqlite3.c:230553:12: */
var i int32
var ret U64 = U64(iRowid)
ret = ret + (ret<<3 + U64(iCol))
@@ -233037,7 +233097,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:230695:13: */
+func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst int32, iNoRowid int32, iLast int32) { /* sqlite3.c:230771:13: */
var i int32
// Now check that the iter.nEmpty leaves following the current leaf
@@ -233056,7 +233116,7 @@ func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst
}
}
-func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* sqlite3.c:230716:13: */
+func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* sqlite3.c:230792:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -233115,7 +233175,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:230766:13: */
+func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* sqlite3.c:230842:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -233131,7 +233191,7 @@ func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /*
fts5IndexPrepareStmt(tls, p, bp+24, Xsqlite3_mprintf(tls,
- ts+36415,
+ ts+36423,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid)))
// Iterate through the b-tree hierarchy.
@@ -233284,7 +233344,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:230911:12: */
+func sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum U64, bUseCksum int32) int32 { /* sqlite3.c:230987:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -233343,7 +233403,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+36501)
+ sqlite3Fts5BufferAppendBlob(tls, p+52, bp+16, uint32(4), ts+36509)
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))
@@ -233374,13 +233434,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:231474:12: */
+func sqlite3Fts5IndexInit(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:231550:12: */
return SQLITE_OK
_ = db
return int32(0)
}
-func sqlite3Fts5IndexReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:231500:12: */
+func sqlite3Fts5IndexReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:231576:12: */
if fts5IndexDataVersion(tls, p) != (*Fts5Index)(unsafe.Pointer(p)).FiStructVersion {
fts5StructureInvalidate(tls, p)
@@ -233413,7 +233473,7 @@ type Fts5Auxdata1 = struct {
FpPtr uintptr
FxDelete uintptr
FpNext uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
// 2014 Jun 09
//
@@ -233435,7 +233495,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:231537:28 */
+type Fts5Auxdata = Fts5Auxdata1 /* sqlite3.c:231613:28 */
type Fts5Auxiliary1 = struct {
FpGlobal uintptr
FzFunc uintptr
@@ -233443,9 +233503,9 @@ type Fts5Auxiliary1 = struct {
FxFunc Fts5_extension_function
FxDestroy uintptr
FpNext uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5Auxiliary = Fts5Auxiliary1 /* sqlite3.c:231538:30 */
+type Fts5Auxiliary = Fts5Auxiliary1 /* sqlite3.c:231614:30 */
type Fts5Cursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpNext uintptr
@@ -233474,35 +233534,35 @@ type Fts5Cursor1 = struct {
FnInstAlloc int32
FnInstCount int32
FaInst uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5Cursor = Fts5Cursor1 /* sqlite3.c:231539:27 */
+type Fts5Cursor = Fts5Cursor1 /* sqlite3.c:231615:27 */
type Fts5FullTable1 = struct {
Fp Fts5Table
FpStorage uintptr
FpGlobal uintptr
FpSortCsr uintptr
-} /* sqlite3.c:231540:9 */
+} /* sqlite3.c:231616:9 */
-type Fts5FullTable = Fts5FullTable1 /* sqlite3.c:231540:30 */
+type Fts5FullTable = Fts5FullTable1 /* sqlite3.c:231616:30 */
type Fts5Sorter1 = struct {
FpStmt uintptr
FiRowid I64
FaPoslist uintptr
FnIdx int32
FaIdx [1]int32
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5Sorter = Fts5Sorter1 /* sqlite3.c:231541:27 */
+type Fts5Sorter = Fts5Sorter1 /* sqlite3.c:231617:27 */
type Fts5TokenizerModule1 = struct {
FzName uintptr
FpUserData uintptr
Fx Fts5_tokenizer
FxDestroy uintptr
FpNext uintptr
-} /* sqlite3.c:216737:9 */
+} /* sqlite3.c:216813:9 */
-type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:231542:36 */
+type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:231618:36 */
// NOTES ON TRANSACTIONS:
//
@@ -233536,21 +233596,21 @@ type Fts5TokenizerModule = Fts5TokenizerModule1 /* sqlite3.c:231542:36 */
type Fts5TransactionState = struct {
FeState int32
FiSavepoint int32
-} /* sqlite3.c:231575:1 */
+} /* sqlite3.c:231651:1 */
type Fts5MatchPhrase = struct {
FpPoslist uintptr
FnTerm int32
F__ccgo_pad1 [4]byte
-} /* sqlite3.c:231632:1 */
+} /* sqlite3.c:231708:1 */
// Return true if pTab is a contentless table.
-func fts5IsContentless(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:231816:12: */
+func fts5IsContentless(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:231892: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:231823:13: */
+func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:231899:13: */
if pTab != 0 {
sqlite3Fts5IndexClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex)
sqlite3Fts5StorageClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
@@ -233560,13 +233620,13 @@ func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:231823:13: */
}
// The xDisconnect() virtual table method.
-func fts5DisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231835:12: */
+func fts5DisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231911:12: */
fts5FreeVtab(tls, pVtab)
return SQLITE_OK
}
// The xDestroy() virtual table method.
-func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231843:12: */
+func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231919:12: */
var pTab uintptr = pVtab
var rc int32 = sqlite3Fts5DropAll(tls, (*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)
if rc == SQLITE_OK {
@@ -233584,7 +233644,7 @@ func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:231843
// 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:231863:12: */
+func fts5InitVtab(tls *libc.TLS, bCreate int32, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* sqlite3.c:231939:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -233642,11 +233702,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:231929:12: */
+func fts5ConnectMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:232005: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:231939:12: */
+func fts5CreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:232015:12: */
return fts5InitVtab(tls, 1, db, pAux, argc, argv, ppVtab, pzErr)
}
@@ -233655,14 +233715,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:231965:13: */
+func fts5SetUniqueFlag(tls *libc.TLS, pIdxInfo uintptr) { /* sqlite3.c:232041:13: */
{
*(*int32)(unsafe.Pointer(pIdxInfo + 80)) |= SQLITE_INDEX_SCAN_UNIQUE
}
}
-func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* sqlite3.c:231976:12: */
+func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* sqlite3.c:232052:12: */
if (*Fts5Config)(unsafe.Pointer(pConfig)).FePattern == FTS5_PATTERN_GLOB && int32((*sqlite3_index_constraint)(unsafe.Pointer(p)).Fop) == FTS5_PATTERN_GLOB {
return 1
@@ -233733,7 +233793,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:232054:12: */
+func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* sqlite3.c:232130:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -233754,7 +233814,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+36506, 0)
+ ts+36514, 0)
return SQLITE_ERROR
}
@@ -233895,7 +233955,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /*
return SQLITE_OK
}
-func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:232189:12: */
+func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:232265: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 {
@@ -233906,7 +233966,7 @@ func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:232189
}
// Implementation of xOpen method.
-func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* sqlite3.c:232200:12: */
+func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* sqlite3.c:232276:12: */
var pTab uintptr = pVTab
var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig
var pCsr uintptr = uintptr(0) // New cursor object
@@ -233932,7 +233992,7 @@ func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* sqli
return rc
}
-func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232226:12: */
+func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232302:12: */
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan == FTS5_PLAN_SCAN {
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FbDesc != 0 {
return FTS5_STMT_SCAN_DESC
@@ -233945,11 +234005,11 @@ func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232226: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:232238:13: */
+func fts5CsrNewrow(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:232314: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:232247:13: */
+func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:232323:13: */
var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var pData uintptr
var pNext uintptr
@@ -233992,7 +234052,7 @@ func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:232247
// 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:232291:12: */
+func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:232367:12: */
if pCursor != 0 {
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pCsr uintptr = pCursor
@@ -234009,7 +234069,7 @@ func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:232291
return SQLITE_OK
}
-func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232307:12: */
+func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232383:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -234019,7 +234079,7 @@ func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232307:12:
rc = Xsqlite3_step(tls, (*Fts5Sorter)(unsafe.Pointer(pSorter)).FpStmt)
if rc == SQLITE_DONE {
rc = SQLITE_OK
- *(*int32)(unsafe.Pointer(pCsr + 80)) |= FTS5CSR_EOF
+ *(*int32)(unsafe.Pointer(pCsr + 80)) |= FTS5CSR_EOF | FTS5CSR_REQUIRE_CONTENT
} else if rc == SQLITE_ROW {
var a uintptr
var aBlob uintptr
@@ -234053,7 +234113,7 @@ func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232307: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:232350:13: */
+func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:232426: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 &&
@@ -234073,7 +234133,7 @@ func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* sqlite3.c:232350: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:232373:12: */
+func fts5CursorReseek(tls *libc.TLS, pCsr uintptr, pbSkip uintptr) int32 { /* sqlite3.c:232449:12: */
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_RESEEK != 0 {
@@ -234102,7 +234162,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:232405:12: */
+func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:232481:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -234161,7 +234221,7 @@ func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:232405:
return rc
}
-func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt uintptr, va uintptr) int32 { /* sqlite3.c:232458:12: */
+func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt uintptr, va uintptr) int32 { /* sqlite3.c:232534:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -234189,7 +234249,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:232487:12: */
+func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* sqlite3.c:232563:12: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -234218,11 +234278,11 @@ func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int3
//
// If SQLite a built-in statement cache, this wouldn't be a problem.
rc = fts5PrepareStatement(tls, pSorter, pConfig,
- ts+36545,
+ ts+36553,
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 + 15900 /* ", " */
+ return ts + 15908 /* ", " */
}
return ts + 1524 /* "" */
}(),
@@ -234234,9 +234294,9 @@ func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int3
}(),
func() uintptr {
if bDesc != 0 {
- return ts + 36600 /* "DESC" */
+ return ts + 36608 /* "DESC" */
}
- return ts + 36605 /* "ASC" */
+ return ts + 36613 /* "ASC" */
}()))
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter = pSorter
@@ -234256,7 +234316,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:232539:12: */
+func fts5CursorFirst(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* sqlite3.c:232615: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)
@@ -234271,7 +234331,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:232556:12: */
+func fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr) int32 { /* sqlite3.c:232632:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -234287,13 +234347,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+36609, z, n) {
+ if n == 5 && 0 == Xsqlite3_strnicmp(tls, ts+36617, z, n) {
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FiSpecial = I64(sqlite3Fts5IndexReads(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex))
} else if n == 2 && 0 == Xsqlite3_strnicmp(tls, ts+6360, z, n) {
(*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+36615, libc.VaList(bp, n, z))
+ (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36623, libc.VaList(bp, n, z))
rc = SQLITE_ERROR
}
@@ -234303,7 +234363,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:232591:22: */
+func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /* sqlite3.c:232667:22: */
var pAux uintptr
for pAux = (*Fts5Global)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).FpGlobal)).FpAux; pAux != 0; pAux = (*Fts5Auxiliary)(unsafe.Pointer(pAux)).FpNext {
@@ -234316,7 +234376,7 @@ func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /*
return uintptr(0)
}
-func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232603:12: */
+func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:232679:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -234328,7 +234388,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:2326
var zRankArgs uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs
if zRankArgs != 0 {
- var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+36643, libc.VaList(bp, zRankArgs))
+ var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+36651, 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,
@@ -234360,7 +234420,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:2326
pAux = fts5FindAuxiliary(tls, pTab, zRank)
if pAux == uintptr(0) {
- (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36653, libc.VaList(bp+8, zRank))
+ (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36661, libc.VaList(bp+8, zRank))
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR
}
}
@@ -234369,7 +234429,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:2326
return *(*int32)(unsafe.Pointer(bp + 16 /* rc */))
}
-func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uintptr) int32 { /* sqlite3.c:232654:12: */
+func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uintptr) int32 { /* sqlite3.c:232730:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -234392,21 +234452,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+36674, libc.VaList(bp, z))
+ ts+36682, 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 + 35057 /* "bm25" */
+ (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = ts + 35065 /* "bm25" */
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = uintptr(0)
}
}
return rc
}
-func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* sqlite3.c:232691:12: */
+func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* sqlite3.c:232767:12: */
if pVal != 0 {
var eType int32 = Xsqlite3_value_numeric_type(tls, pVal)
if eType == SQLITE_INTEGER {
@@ -234425,7 +234485,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:232712:12: */
+func fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, nVal int32, apVal uintptr) int32 { /* sqlite3.c:232788:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -234465,7 +234525,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+36506, 0)
+ ts+36514, 0)
return SQLITE_ERROR
__1:
;
@@ -234700,7 +234760,7 @@ __35:
goto __40
}
*(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls,
- ts+36707, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
+ ts+36715, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
rc = SQLITE_ERROR
goto __41
__40:
@@ -234746,7 +234806,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:232905:12: */
+func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:232981:12: */
var pCsr uintptr = pCursor
return func() int32 {
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_EOF != 0 {
@@ -234757,7 +234817,7 @@ func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:232905:1
}
// Return the rowid that the cursor currently points to.
-func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* sqlite3.c:232913:12: */
+func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* sqlite3.c:232989:12: */
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter != 0 {
return (*Fts5Sorter)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter)).FiRowid
@@ -234771,7 +234831,7 @@ func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* sqlite3.c:232913: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:232931:12: */
+func fts5RowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* sqlite3.c:233007:12: */
var pCsr uintptr = pCursor
var ePlan int32 = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan
@@ -234801,7 +234861,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:232962:12: */
+func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* sqlite3.c:233038:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -234845,7 +234905,7 @@ func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* sql
return rc
}
-func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:233001:13: */
+func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* sqlite3.c:233077:13: */
var ap Va_list
_ = ap // ... printf arguments
ap = va
@@ -234867,7 +234927,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:233024:12: */
+func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr) int32 { /* sqlite3.c:233100:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -234875,29 +234935,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+36743, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, ts+36751, zCmd) {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
fts5SetVtabError(tls, pTab,
- ts+36754, 0)
+ ts+36762, 0)
rc = SQLITE_ERROR
} else {
rc = sqlite3Fts5StorageDeleteAll(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
- } else if 0 == Xsqlite3_stricmp(tls, ts+36834, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+36842, zCmd) {
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NONE {
fts5SetVtabError(tls, pTab,
- ts+36842, 0)
+ ts+36850, 0)
rc = SQLITE_ERROR
} else {
rc = sqlite3Fts5StorageRebuild(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
- } else if 0 == Xsqlite3_stricmp(tls, ts+18212, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+18220, zCmd) {
rc = sqlite3Fts5StorageOptimize(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
- } else if 0 == Xsqlite3_stricmp(tls, ts+36898, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+36906, 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+36904, zCmd) {
+ } else if 0 == Xsqlite3_stricmp(tls, ts+36912, zCmd) {
var iArg int32 = Xsqlite3_value_int(tls, pVal)
rc = sqlite3Fts5StorageIntegrity(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg)
} else {
@@ -234916,7 +234976,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:233080:12: */
+func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* sqlite3.c:233156:12: */
var rc int32 = SQLITE_OK
var eType1 int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + 1*8)))
if eType1 == SQLITE_INTEGER {
@@ -234926,7 +234986,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:233093:13: */
+func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, piRowid uintptr) { /* sqlite3.c:233169:13: */
var rc int32 = *(*int32)(unsafe.Pointer(pRc))
if rc == SQLITE_OK {
rc = sqlite3Fts5StorageContentInsert(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, apVal, piRowid)
@@ -234949,7 +235009,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:233123:12: */
+func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, pRowid uintptr) int32 { /* sqlite3.c:233199:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -234971,7 +235031,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+18747, z) {
+ 0 == Xsqlite3_stricmp(tls, ts+18755, 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)))
@@ -234996,12 +235056,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+36920,
+ ts+36928,
libc.VaList(bp, func() uintptr {
if nArg > 1 {
- return ts + 21646 /* "UPDATE" */
+ return ts + 21654 /* "UPDATE" */
}
- return ts + 36957 /* "DELETE from" */
+ return ts + 36965 /* "DELETE from" */
}(), (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR
} else if nArg == 1 {
@@ -235051,7 +235111,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:233249:12: */
+func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233325:12: */
var rc int32
var pTab uintptr = pVtab
@@ -235063,7 +235123,7 @@ func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233249:12
}
// Implementation of xBegin() method.
-func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233263:12: */
+func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233339:12: */
fts5NewTransaction(tls, pVtab)
return SQLITE_OK
@@ -235072,7 +235132,7 @@ func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233263: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:233274:12: */
+func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233350:12: */
_ = pVtab // Call below is a no-op for NDEBUG builds
return SQLITE_OK
@@ -235080,7 +235140,7 @@ func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233274:
// 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:233284:12: */
+func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:233360:12: */
var rc int32
var pTab uintptr = pVtab
@@ -235088,46 +235148,46 @@ func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:23328
return rc
}
-func fts5ApiUserData(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:233294:13: */
+func fts5ApiUserData(tls *libc.TLS, pCtx uintptr) uintptr { /* sqlite3.c:233370: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:233299:12: */
+func fts5ApiColumnCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:233375: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:233304:12: */
+func fts5ApiColumnTotalSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* sqlite3.c:233380: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:233314:12: */
+func fts5ApiRowCount(tls *libc.TLS, pCtx uintptr, pnRow uintptr) int32 { /* sqlite3.c:233390: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:233320:12: */
+func fts5ApiTokenize(tls *libc.TLS, pCtx uintptr, pText uintptr, nText int32, pUserData uintptr, xToken uintptr) int32 { /* sqlite3.c:233396: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:233333:12: */
+func fts5ApiPhraseCount(tls *libc.TLS, pCtx uintptr) int32 { /* sqlite3.c:233409: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:233338:12: */
+func fts5ApiPhraseSize(tls *libc.TLS, pCtx uintptr, iPhrase int32) int32 { /* sqlite3.c:233414: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:233343:12: */
+func fts5ApiColumnText(tls *libc.TLS, pCtx uintptr, iCol int32, pz uintptr, pn uintptr) int32 { /* sqlite3.c:233419:12: */
var rc int32 = SQLITE_OK
var pCsr uintptr = pCtx
if fts5IsContentless(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab) != 0 ||
@@ -235144,7 +235204,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:233366:12: */
+func fts5CsrPoslist(tls *libc.TLS, pCsr uintptr, iPhrase int32, pa uintptr, pn uintptr) int32 { /* sqlite3.c:233442:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -235201,7 +235261,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:233418:12: */
+func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:233494:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -235285,7 +235345,7 @@ func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:233418
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* sqlite3.c:233492:12: */
+func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* sqlite3.c:233568:12: */
var pCsr uintptr = pCtx
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 ||
@@ -235295,7 +235355,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:233502:12: */
+func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCol uintptr, piOff uintptr) int32 { /* sqlite3.c:233578:12: */
var pCsr uintptr = pCtx
var rc int32 = SQLITE_OK
if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 ||
@@ -235311,11 +235371,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:233531:22: */
+func fts5ApiRowid(tls *libc.TLS, pCtx uintptr) Sqlite3_int64 { /* sqlite3.c:233607: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:233535:12: */
+func fts5ColumnSizeCb(tls *libc.TLS, pContext uintptr, tflags int32, pUnused uintptr, nUnused int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:233611:12: */
var pCnt uintptr = pContext
_ = pUnused
_ = nUnused
@@ -235327,7 +235387,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:233552:12: */
+func fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* sqlite3.c:233628:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -235385,7 +235445,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:233605:12: */
+func fts5ApiSetAuxdata(tls *libc.TLS, pCtx uintptr, pPtr uintptr, xDelete uintptr) int32 { /* sqlite3.c:233681:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -235423,7 +235483,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:233640:13: */
+func fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) uintptr { /* sqlite3.c:233716:13: */
var pCsr uintptr = pCtx
var pData uintptr
var pRet uintptr = uintptr(0)
@@ -235445,7 +235505,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:233660:13: */
+func fts5ApiPhraseNext(tls *libc.TLS, pUnused uintptr, pIter uintptr, piCol uintptr, piOff uintptr) { /* sqlite3.c:233736:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -235467,7 +235527,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:233682:12: */
+func fts5ApiPhraseFirst(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr, piOff uintptr) int32 { /* sqlite3.c:233758:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -235490,7 +235550,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:233701:13: */
+func fts5ApiPhraseNextColumn(tls *libc.TLS, pCtx uintptr, pIter uintptr, piCol uintptr) { /* sqlite3.c:233777:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -235523,7 +235583,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:233731:12: */
+func fts5ApiPhraseFirstColumn(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr) int32 { /* sqlite3.c:233807:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -235604,10 +235664,10 @@ var sFts5Api = Fts5ExtensionApi{
FxPhraseNext: 0,
FxPhraseFirstColumn: 0,
FxPhraseNextColumn: 0,
-} /* sqlite3.c:233781:31 */
+} /* sqlite3.c:233857:31 */
// Implementation of API function xQueryPhrase().
-func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData uintptr, xCallback uintptr) int32 { /* sqlite3.c:233807:12: */
+func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData uintptr, xCallback uintptr) int32 { /* sqlite3.c:233883:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -235643,7 +235703,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:233844:13: */
+func fts5ApiInvoke(tls *libc.TLS, pAux uintptr, pCsr uintptr, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:233920:13: */
(*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux = pAux
(*struct {
@@ -235652,7 +235712,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:233857:19: */
+func fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* sqlite3.c:233933: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 {
@@ -235662,7 +235722,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:233865:13: */
+func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* sqlite3.c:233941:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -235675,7 +235735,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+36969, libc.VaList(bp, iCsrId))
+ var zErr uintptr = Xsqlite3_mprintf(tls, ts+36977, libc.VaList(bp, iCsrId))
Xsqlite3_result_error(tls, context, zErr, -1)
Xsqlite3_free(tls, zErr)
} else {
@@ -235685,7 +235745,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:233894:18: */
+func sqlite3Fts5TableFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* sqlite3.c:233970:18: */
var pCsr uintptr
pCsr = fts5CursorFromCsrid(tls, pGlobal, iCsrId)
if pCsr != 0 {
@@ -235707,7 +235767,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:233921:12: */
+func fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) int32 { /* sqlite3.c:233997:12: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -235771,7 +235831,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:233978:12: */
+func fts5ColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* sqlite3.c:234054:12: */
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig
var pCsr uintptr = pCursor
@@ -235811,7 +235871,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:234031:12: */
+func fts5FindFunctionMethod(tls *libc.TLS, pVtab uintptr, nUnused int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* sqlite3.c:234107:12: */
var pTab uintptr = pVtab
var pAux uintptr
@@ -235830,12 +235890,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:234056:12: */
+func fts5RenameMethod(tls *libc.TLS, pVtab uintptr, zName uintptr) int32 { /* sqlite3.c:234132:12: */
var pTab uintptr = pVtab
return sqlite3Fts5StorageRename(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, zName)
}
-func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:234064:12: */
+func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* sqlite3.c:234140:12: */
fts5TripCursors(tls, pTab)
return sqlite3Fts5StorageSync(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
@@ -235843,7 +235903,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:234074:12: */
+func fts5SavepointMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* sqlite3.c:234150:12: */
_ = iSavepoint // Call below is a no-op for NDEBUG builds
return sqlite3Fts5FlushToDisk(tls, pVtab)
@@ -235852,7 +235912,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:234085:12: */
+func fts5ReleaseMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* sqlite3.c:234161:12: */
_ = iSavepoint // Call below is a no-op for NDEBUG builds
return sqlite3Fts5FlushToDisk(tls, pVtab)
@@ -235861,7 +235921,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:234096:12: */
+func fts5RollbackToMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* sqlite3.c:234172:12: */
var pTab uintptr = pVtab
_ = iSavepoint // Call below is a no-op for NDEBUG builds
@@ -235870,7 +235930,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:234107:12: */
+func fts5CreateAux(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, xFunc Fts5_extension_function, xDestroy uintptr) int32 { /* sqlite3.c:234183:12: */
var pGlobal uintptr = pApi
var rc int32 = Xsqlite3_overload_function(tls, (*Fts5Global)(unsafe.Pointer(pGlobal)).Fdb, zName, -1)
if rc == SQLITE_OK {
@@ -235901,7 +235961,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:234146:12: */
+func fts5CreateTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, pTokenizer uintptr, xDestroy uintptr) int32 { /* sqlite3.c:234222:12: */
var pGlobal uintptr = pApi
var pNew uintptr
var nName Sqlite3_int64 // Size of zName and its \0 terminator
@@ -235930,7 +235990,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:234181:28: */
+func fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) uintptr { /* sqlite3.c:234257:28: */
var pMod uintptr = uintptr(0)
if zName == uintptr(0) {
@@ -235948,7 +236008,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:234202:12: */
+func fts5FindTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, ppUserData uintptr, pTokenizer uintptr) int32 { /* sqlite3.c:234278:12: */
var rc int32 = SQLITE_OK
var pMod uintptr
@@ -235964,7 +236024,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:234223:12: */
+func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg int32, pConfig uintptr, pzErr uintptr) int32 { /* sqlite3.c:234299:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -235980,7 +236040,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+36990, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+36998, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg))))
} else {
rc = (*struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
@@ -235999,7 +236059,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+37012, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37020, 0)
}
} else {
(*Fts5Config)(unsafe.Pointer(pConfig)).FePattern = sqlite3Fts5TokenizerPattern(tls,
@@ -236015,7 +236075,7 @@ func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg
return rc
}
-func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:234260:13: */
+func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:234336:13: */
var pTok uintptr
var pNextTok uintptr
var pAux uintptr
@@ -236041,28 +236101,28 @@ func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* sqlite3.c:234260:13: */
Xsqlite3_free(tls, pGlobal)
}
-func fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:234280:13: */
+func fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* sqlite3.c:234356:13: */
var pGlobal uintptr = Xsqlite3_user_data(tls, pCtx)
var ppApi uintptr
_ = nArg
- ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+37043)
+ ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+37051)
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:234296:13: */
+func fts5SourceIdFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apUnused uintptr) { /* sqlite3.c:234372:13: */
_ = nArg
_ = apUnused
- Xsqlite3_result_text(tls, pCtx, ts+37056, -1, libc.UintptrFromInt32(-1))
+ Xsqlite3_result_text(tls, pCtx, ts+37064, -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:234310:12: */
+func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:234386: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 {
@@ -236073,10 +236133,10 @@ func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* sqlite3.c:234310:12
}
var azName2 = [5]uintptr{
- ts + 37147, ts + 35246, ts + 26246, ts + 35597, ts + 12717,
-} /* sqlite3.c:234311:21 */
+ ts + 37155, ts + 35254, ts + 26254, ts + 35605, ts + 12725,
+} /* sqlite3.c:234387:21 */
-func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234321:12: */
+func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234397:12: */
var rc int32
var pGlobal uintptr = uintptr(0)
@@ -236097,7 +236157,7 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234321: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+37154, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy})))
+ rc = Xsqlite3_create_module_v2(tls, db, ts+37162, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy})))
if rc == SQLITE_OK {
rc = sqlite3Fts5IndexInit(tls, db)
}
@@ -236115,13 +236175,13 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234321:12: */
}
if rc == SQLITE_OK {
rc = Xsqlite3_create_function(tls,
- db, ts+37154, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ db, ts+37162, 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+37159, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
+ db, ts+37167, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, int32, uintptr)
}{fts5SourceIdFunc})), uintptr(0), uintptr(0))
}
@@ -236159,7 +236219,7 @@ var fts5Mod = Sqlite3_module{
/* xRelease */ FxRelease: 0,
/* xRollbackTo */ FxRollbackTo: 0,
/* xShadowName */ FxShadowName: 0,
-} /* sqlite3.c:234322:31 */
+} /* sqlite3.c:234398: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
@@ -236168,7 +236228,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:234430:20: */
+func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234506:20: */
return fts5Init(tls, db)
}
@@ -236176,7 +236236,7 @@ func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* sqlite3.c:234430: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:234488:12: */
+func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:234564:12: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -236187,20 +236247,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 + 37174,
- ts + 37242,
- ts + 37311,
+ ts + 37182,
+ ts + 37250,
+ ts + 37319,
- ts + 37344,
- ts + 37383,
- ts + 37423,
- ts + 37462,
- ts + 37503,
+ ts + 37352,
+ ts + 37391,
+ ts + 37431,
+ ts + 37470,
+ ts + 37511,
- ts + 37542,
+ ts + 37550,
- ts + 37584,
- ts + 37624,
+ ts + 37592,
+ ts + 37632,
}
var pC uintptr = (*Fts5Storage)(unsafe.Pointer(p)).FpConfig
var zSql uintptr = uintptr(0)
@@ -236277,7 +236337,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:234591:12: */
+func fts5ExecPrintf(tls *libc.TLS, db uintptr, pzErr uintptr, zFormat uintptr, va uintptr) int32 { /* sqlite3.c:234667:12: */
var rc int32
var ap Va_list
_ = ap // ... printf arguments
@@ -236299,79 +236359,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:234619:12: */
+func sqlite3Fts5DropAll(tls *libc.TLS, pConfig uintptr) int32 { /* sqlite3.c:234695:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
var rc int32 = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0),
- ts+37647,
+ ts+37655,
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+37751,
+ ts+37759,
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+37789,
+ ts+37797,
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:234643:13: */
+func fts5StorageRenameOne(tls *libc.TLS, pConfig uintptr, pRc uintptr, zTail uintptr, zName uintptr) { /* sqlite3.c:234719: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+37827,
+ ts+37835,
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:234657:12: */
+func sqlite3Fts5StorageRename(tls *libc.TLS, pStorage uintptr, zName uintptr) int32 { /* sqlite3.c:234733: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+26246, zName)
- fts5StorageRenameOne(tls, pConfig, bp, ts+12717, zName)
- fts5StorageRenameOne(tls, pConfig, bp, ts+37147, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+26254, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+12725, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+37155, zName)
if (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- fts5StorageRenameOne(tls, pConfig, bp, ts+35597, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+35605, zName)
}
if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- fts5StorageRenameOne(tls, pConfig, bp, ts+35246, zName)
+ fts5StorageRenameOne(tls, pConfig, bp, ts+35254, 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:234677:12: */
+func sqlite3Fts5CreateTable(tls *libc.TLS, pConfig uintptr, zPost uintptr, zDefn uintptr, bWithout int32, pzErr uintptr) int32 { /* sqlite3.c:234753: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+37869,
+ rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, bp+64, ts+37877,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn,
func() uintptr {
if bWithout != 0 {
- return ts + 30899 /* " WITHOUT ROWID" */
+ return ts + 30907 /* " WITHOUT ROWID" */
}
return ts + 1524 /* "" */
}()))
if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 {
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls,
- ts+37899,
+ ts+37907,
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 */)))
}
@@ -236384,7 +236444,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:234712:12: */
+func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* sqlite3.c:234788:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -236413,27 +236473,27 @@ func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCre
} else {
var i int32
var iOff int32
- Xsqlite3_snprintf(tls, nDefn, zDefn, ts+37943, 0)
+ Xsqlite3_snprintf(tls, nDefn, zDefn, ts+37951, 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+37966, libc.VaList(bp, i))
+ Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), ts+37974, libc.VaList(bp, i))
iOff = iOff + int32(libc.Xstrlen(tls, zDefn+uintptr(iOff)))
}
- rc = sqlite3Fts5CreateTable(tls, pConfig, ts+35246, zDefn, 0, pzErr)
+ rc = sqlite3Fts5CreateTable(tls, pConfig, ts+35254, zDefn, 0, pzErr)
}
Xsqlite3_free(tls, zDefn)
}
if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
rc = sqlite3Fts5CreateTable(tls,
- pConfig, ts+35597, ts+37972, 0, pzErr)
+ pConfig, ts+35605, ts+37980, 0, pzErr)
}
if rc == SQLITE_OK {
rc = sqlite3Fts5CreateTable(tls,
- pConfig, ts+37147, ts+38004, 1, pzErr)
+ pConfig, ts+37155, ts+38012, 1, pzErr)
}
if rc == SQLITE_OK {
- rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35743, uintptr(0), FTS5_CURRENT_VERSION)
+ rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35751, uintptr(0), FTS5_CURRENT_VERSION)
}
}
@@ -236445,7 +236505,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:234778:12: */
+func sqlite3Fts5StorageClose(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:234854:12: */
var rc int32 = SQLITE_OK
if p != 0 {
var i int32
@@ -236464,12 +236524,12 @@ type Fts5InsertCtx1 = struct {
FpStorage uintptr
FiCol int32
FszCol int32
-} /* sqlite3.c:234793:9 */
+} /* sqlite3.c:234869:9 */
-type Fts5InsertCtx = Fts5InsertCtx1 /* sqlite3.c:234793:30 */
+type Fts5InsertCtx = Fts5InsertCtx1 /* sqlite3.c:234869: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:234803:12: */
+func fts5StorageInsertCallback(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:234879:12: */
var pCtx uintptr = pContext
var pIdx uintptr = (*Fts5Storage)(unsafe.Pointer((*Fts5InsertCtx)(unsafe.Pointer(pCtx)).FpStorage)).FpIndex
_ = iUnused1
@@ -236486,7 +236546,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:234826:12: */
+func fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* sqlite3.c:234902:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -236555,7 +236615,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:234895:12: */
+func fts5StorageInsertDocsize(tls *libc.TLS, p uintptr, iRowid I64, pBuf uintptr) int32 { /* sqlite3.c:234971:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -236582,7 +236642,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:234925:12: */
+func fts5StorageLoadTotals(tls *libc.TLS, p uintptr, bCache int32) int32 { /* sqlite3.c:235001: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)
@@ -236596,7 +236656,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:234941:12: */
+func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235017:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -236620,7 +236680,7 @@ func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:234941
}
// Remove a row from the FTS table.
-func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* sqlite3.c:234963:12: */
+func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* sqlite3.c:235039:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -236661,7 +236721,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:235004:12: */
+func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235080:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -236673,12 +236733,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+38021,
+ ts+38029,
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+38071,
+ ts+38079,
libc.VaList(bp+32, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))
}
@@ -236688,12 +236748,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+35743, uintptr(0), FTS5_CURRENT_VERSION)
+ rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35751, uintptr(0), FTS5_CURRENT_VERSION)
}
return rc
}
-func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235035:12: */
+func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235111:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -236757,15 +236817,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:235090:12: */
+func sqlite3Fts5StorageOptimize(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235166:12: */
return sqlite3Fts5IndexOptimize(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex)
}
-func sqlite3Fts5StorageMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sqlite3.c:235094:12: */
+func sqlite3Fts5StorageMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* sqlite3.c:235170:12: */
return sqlite3Fts5IndexMerge(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex, nMerge)
}
-func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235098:12: */
+func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235174:12: */
return sqlite3Fts5IndexReset(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex)
}
@@ -236776,7 +236836,7 @@ func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:2350
//
// 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:235111:12: */
+func fts5StorageNewRowid(tls *libc.TLS, p uintptr, piRowid uintptr) int32 { /* sqlite3.c:235187:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -236798,7 +236858,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:235132:12: */
+func sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, piRowid uintptr) int32 { /* sqlite3.c:235208:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -236830,7 +236890,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:235167:12: */
+func sqlite3Fts5StorageIndexInsert(tls *libc.TLS, p uintptr, apVal uintptr, iRowid I64) int32 { /* sqlite3.c:235243:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -236875,7 +236935,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:235210:12: */
+func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr) int32 { /* sqlite3.c:235286:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -236883,7 +236943,7 @@ func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr)
var zSql uintptr
var rc int32
- zSql = Xsqlite3_mprintf(tls, ts+38100,
+ zSql = Xsqlite3_mprintf(tls, ts+38108,
libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
if zSql == uintptr(0) {
rc = SQLITE_NOMEM
@@ -236910,13 +236970,13 @@ type Fts5IntegrityCtx1 = struct {
Fcksum U64
FpTermset uintptr
FpConfig uintptr
-} /* sqlite3.c:235238:9 */
+} /* sqlite3.c:235314:9 */
// Context object used by sqlite3Fts5StorageIntegrity().
-type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* sqlite3.c:235238:33 */
+type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* sqlite3.c:235314: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:235252:12: */
+func fts5StorageIntegrityCallback(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* sqlite3.c:235328:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -236982,7 +237042,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:235322:12: */
+func sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) int32 { /* sqlite3.c:235398:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -237080,14 +237140,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+35246, bp+48)
+ rc = fts5StorageCount(tls, p, ts+35254, 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+35597, bp+56)
+ rc = fts5StorageCount(tls, p, ts+35605, bp+56)
if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp + 56)) != (*Fts5Storage)(unsafe.Pointer(p)).FnTotalRow {
rc = SQLITE_CORRUPT | int32(1)<<8
}
@@ -237107,7 +237167,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:235430:12: */
+func sqlite3Fts5StorageStmt(tls *libc.TLS, p uintptr, eStmt int32, pp uintptr, pzErrMsg uintptr) int32 { /* sqlite3.c:235506:12: */
var rc int32
rc = fts5StorageGetStmt(tls, p, eStmt, pp, pzErrMsg)
@@ -237121,7 +237181,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:235454:13: */
+func sqlite3Fts5StorageStmtRelease(tls *libc.TLS, p uintptr, eStmt int32, pStmt uintptr) { /* sqlite3.c:235530:13: */
if *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(eStmt)*8)) == uintptr(0) {
Xsqlite3_reset(tls, pStmt)
@@ -237131,7 +237191,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:235471:12: */
+func fts5StorageDecodeSizeArray(tls *libc.TLS, aCol uintptr, nCol int32, aBlob uintptr, nBlob int32) int32 { /* sqlite3.c:235547:12: */
var i int32
var iOff int32 = 0
for i = 0; i < nCol; i++ {
@@ -237149,7 +237209,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:235492:12: */
+func sqlite3Fts5StorageDocsize(tls *libc.TLS, p uintptr, iRowid I64, aCol uintptr) int32 { /* sqlite3.c:235568:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -237180,7 +237240,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:235521:12: */
+func sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintptr) int32 { /* sqlite3.c:235597:12: */
var rc int32 = fts5StorageLoadTotals(tls, p, 0)
if rc == SQLITE_OK {
*(*I64)(unsafe.Pointer(pnToken)) = int64(0)
@@ -237198,7 +237258,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:235539:12: */
+func sqlite3Fts5StorageRowCount(tls *libc.TLS, p uintptr, pnRow uintptr) int32 { /* sqlite3.c:235615:12: */
var rc int32 = fts5StorageLoadTotals(tls, p, 0)
if rc == SQLITE_OK {
// nTotalRow being zero does not necessarily indicate a corrupt
@@ -237215,7 +237275,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:235556:12: */
+func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235632: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 {
@@ -237229,12 +237289,12 @@ func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:23555
return rc
}
-func sqlite3Fts5StorageRollback(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235570:12: */
+func sqlite3Fts5StorageRollback(tls *libc.TLS, p uintptr) int32 { /* sqlite3.c:235646: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:235575:12: */
+func sqlite3Fts5StorageConfigValue(tls *libc.TLS, p uintptr, z uintptr, pVal uintptr, iVal int32) int32 { /* sqlite3.c:235651:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -237289,13 +237349,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:235628:22 */
+} /* sqlite3.c:235704:22 */
-type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* sqlite3.c:235639:9 */
+type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* sqlite3.c:235715:9 */
-type AsciiTokenizer = AsciiTokenizer1 /* sqlite3.c:235639:31 */
+type AsciiTokenizer = AsciiTokenizer1 /* sqlite3.c:235715:31 */
-func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars int32) { /* sqlite3.c:235644:13: */
+func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars int32) { /* sqlite3.c:235720: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 {
@@ -237305,12 +237365,12 @@ func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars
}
// Delete a "ascii" tokenizer.
-func fts5AsciiDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:235660:13: */
+func fts5AsciiDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:235736: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:235667:12: */
+func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:235743:12: */
var rc int32 = SQLITE_OK
var p uintptr = uintptr(0)
_ = pUnused
@@ -237326,9 +237386,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+38132) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38140) {
fts5AsciiAddExceptions(tls, p, zArg, 1)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38143) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38151) {
fts5AsciiAddExceptions(tls, p, zArg, 0)
} else {
rc = SQLITE_ERROR
@@ -237345,7 +237405,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:235708:13: */
+func asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) { /* sqlite3.c:235784:13: */
var i int32
for i = 0; i < nByte; i++ {
var c int8 = *(*int8)(unsafe.Pointer(aIn + uintptr(i)))
@@ -237357,7 +237417,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:235720:12: */
+func fts5AsciiTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnused int32, pText uintptr, nText int32, xToken uintptr) int32 { /* sqlite3.c:235796:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -237438,7 +237498,7 @@ type Unicode61Tokenizer1 = struct {
F__ccgo_pad1 [4]byte
FaiException uintptr
FaCategory [32]uint8
-} /* sqlite3.c:235835:9 */
+} /* sqlite3.c:235911:9 */
// *************************************************************************
//
@@ -237448,11 +237508,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:235835:35 */
+type Unicode61Tokenizer = Unicode61Tokenizer1 /* sqlite3.c:235911: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:235852:12: */
+func fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars int32) int32 { /* sqlite3.c:235928:12: */
var rc int32 = SQLITE_OK
var n int32 = int32(libc.Xstrlen(tls, z))
var aNew uintptr
@@ -237507,7 +237567,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:235902:12: */
+func fts5UnicodeIsException(tls *libc.TLS, p uintptr, iCode int32) int32 { /* sqlite3.c:235978:12: */
if (*Unicode61Tokenizer)(unsafe.Pointer(p)).FnException > 0 {
var a uintptr = (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException
var iLo int32 = 0
@@ -237529,7 +237589,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:235926:13: */
+func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:236002:13: */
if pTok != 0 {
var p uintptr = pTok
Xsqlite3_free(tls, (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException)
@@ -237539,7 +237599,7 @@ func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:235926:13: */
return
}
-func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* sqlite3.c:235936:12: */
+func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* sqlite3.c:236012:12: */
var z uintptr = zCat
for *(*int8)(unsafe.Pointer(z)) != 0 {
@@ -237559,7 +237619,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:235954:12: */
+func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:236030:12: */
var rc int32 = SQLITE_OK // Return code
var p uintptr = uintptr(0) // New tokenizer object
@@ -237570,7 +237630,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 + 38154 /* "L* N* Co" */
+ var zCat uintptr = ts + 38162 /* "L* N* Co" */
var i int32
libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Unicode61Tokenizer{})))
@@ -237583,7 +237643,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+38163) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38171) {
zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8))
}
}
@@ -237594,18 +237654,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+38174) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38182) {
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+38132) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38140) {
rc = fts5UnicodeAddExceptions(tls, p, zArg, 1)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38143) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38151) {
rc = fts5UnicodeAddExceptions(tls, p, zArg, 0)
- } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38163) {
+ } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38171) {
// no-op
} else {
rc = SQLITE_ERROR
@@ -237627,12 +237687,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:236034:12: */
+func fts5UnicodeIsAlnum(tls *libc.TLS, p uintptr, iCode int32) int32 { /* sqlite3.c:236110: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:236041:12: */
+func fts5UnicodeTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnused int32, pText uintptr, nText int32, xToken uintptr) int32 { /* sqlite3.c:236117:12: */
var p uintptr
var rc int32
var a uintptr
@@ -237888,7 +237948,7 @@ type PorterTokenizer1 = struct {
Ftokenizer Fts5_tokenizer
FpTokenizer uintptr
FaBuf [128]int8
-} /* sqlite3.c:236153:9 */
+} /* sqlite3.c:236229:9 */
// *************************************************************************
//
@@ -237897,10 +237957,10 @@ type PorterTokenizer1 = struct {
// Any tokens larger than this (in bytes) are passed through without
// stemming.
-type PorterTokenizer = PorterTokenizer1 /* sqlite3.c:236153:32 */
+type PorterTokenizer = PorterTokenizer1 /* sqlite3.c:236229:32 */
// Delete a "porter" tokenizer.
-func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:236163:13: */
+func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:236239:13: */
if pTok != 0 {
var p uintptr = pTok
if (*PorterTokenizer)(unsafe.Pointer(p)).FpTokenizer != 0 {
@@ -237911,7 +237971,7 @@ func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* sqlite3.c:236163:13: */
}
// Create a "porter" tokenizer.
-func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:236176:12: */
+func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:236252:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -237919,7 +237979,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 + 38192 /* "unicode61" */
+ var zBase uintptr = ts + 38200 /* "unicode61" */
if nArg > 0 {
zBase = *(*uintptr)(unsafe.Pointer(azArg))
@@ -237964,9 +238024,9 @@ type PorterContext1 = struct {
FpCtx uintptr
FxToken uintptr
FaBuf uintptr
-} /* sqlite3.c:236212:9 */
+} /* sqlite3.c:236288:9 */
-type PorterContext = PorterContext1 /* sqlite3.c:236212:30 */
+type PorterContext = PorterContext1 /* sqlite3.c:236288:30 */
type PorterRule1 = struct {
FzSuffix uintptr
@@ -237976,15 +238036,15 @@ type PorterRule1 = struct {
FzOutput uintptr
FnOutput int32
F__ccgo_pad2 [4]byte
-} /* sqlite3.c:236219:9 */
+} /* sqlite3.c:236295:9 */
-type PorterRule = PorterRule1 /* sqlite3.c:236219:27 */
+type PorterRule = PorterRule1 /* sqlite3.c:236295:27 */
-func fts5PorterIsVowel(tls *libc.TLS, c int8, bYIsVowel int32) int32 { /* sqlite3.c:236254:12: */
+func fts5PorterIsVowel(tls *libc.TLS, c int8, bYIsVowel int32) int32 { /* sqlite3.c:236330: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:236260:12: */
+func fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons int32) int32 { /* sqlite3.c:236336:12: */
var i int32
var bCons int32 = bPrevCons
@@ -238005,12 +238065,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:236277:12: */
+func fts5Porter_MGt0(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:236353: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:236282:12: */
+func fts5Porter_MGt1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:236358:12: */
var n int32
n = fts5PorterGobbleVC(tls, zStem, nStem, 0)
if n != 0 && fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) != 0 {
@@ -238020,7 +238080,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:236292:12: */
+func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:236368:12: */
var n int32
n = fts5PorterGobbleVC(tls, zStem, nStem, 0)
if n != 0 && 0 == fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) {
@@ -238030,7 +238090,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:236302:12: */
+func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:236378: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 {
@@ -238048,14 +238108,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:236319:12: */
+func fts5Porter_MGt1_and_S_or_T(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:236395: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:236326:12: */
+func fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* sqlite3.c:236402:12: */
var i int32
for i = 0; i < nStem; i++ {
if fts5PorterIsVowel(tls, *(*int8)(unsafe.Pointer(zStem + uintptr(i))), libc.Bool32(i > 0)) != 0 {
@@ -238070,13 +238130,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:236342:12: */
+func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:236418: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+38202, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38210, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -238084,11 +238144,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'c':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38205, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38213, 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+38210, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38218, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -238096,7 +238156,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'e':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38215, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38223, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -238104,7 +238164,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'i':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38218, aBuf+uintptr(nBuf-2), uint64(2)) {
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38226, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -238112,11 +238172,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'l':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38221, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38229, 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+38226, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38234, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -238124,19 +238184,19 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'n':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38231, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38239, 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+38235, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38243, 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+38241, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38249, 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+38246, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38254, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238144,11 +238204,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'o':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38250, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38258, 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+38254, aBuf+uintptr(nBuf-2), uint64(2)) {
+ } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38262, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
}
@@ -238156,7 +238216,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 's':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38257, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38265, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238164,11 +238224,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 't':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38261, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38269, 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+38265, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38273, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238176,7 +238236,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'u':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38269, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38277, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238184,7 +238244,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'v':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38273, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38281, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238192,7 +238252,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'z':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38277, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38285, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238203,30 +238263,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:236476:12: */
+func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:236552: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+38281, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38261, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38289, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38269, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
break
case 'b':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38284, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38287, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38292, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38295, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
break
case 'i':
- if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38291, aBuf+uintptr(nBuf-2), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38277, uint64(3))
+ if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38299, aBuf+uintptr(nBuf-2), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38285, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3
ret = 1
}
@@ -238236,143 +238296,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:236510:12: */
+func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:236586: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+38294, aBuf+uintptr(nBuf-7), uint64(7)) {
+ if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38302, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38261, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38269, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38302, aBuf+uintptr(nBuf-6), uint64(6)) {
+ } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38310, aBuf+uintptr(nBuf-6), uint64(6)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38309, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38317, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 4
}
}
break
case 'c':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38314, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38322, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38210, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38218, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38319, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38327, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38205, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38213, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4
}
}
break
case 'e':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38324, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38332, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38277, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38285, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 'g':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38329, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38337, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+16736, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+16744, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 'l':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38334, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38342, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38287, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38295, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 3
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38338, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38346, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38202, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38210, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38343, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38351, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38246, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38254, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38349, aBuf+uintptr(nBuf-3), uint64(3)) {
+ } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38357, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38353, uint64(1))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38361, uint64(1))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 1
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38355, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38363, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38269, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38277, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
}
break
case 'o':
- if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38361, aBuf+uintptr(nBuf-7), uint64(7)) {
+ if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38369, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38277, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38285, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38369, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38377, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38261, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38269, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38375, aBuf+uintptr(nBuf-4), uint64(4)) {
+ } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38383, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38261, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38269, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3
}
}
break
case 's':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38380, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38388, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38202, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38210, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38386, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38394, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38273, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38281, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38394, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38402, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38402, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38410, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
- } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38406, aBuf+uintptr(nBuf-7), uint64(7)) {
+ } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38414, aBuf+uintptr(nBuf-7), uint64(7)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38269, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38277, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3
}
}
break
case 't':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38414, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38422, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38202, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38210, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38420, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38428, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38273, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38281, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3
}
- } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38426, aBuf+uintptr(nBuf-6), uint64(6)) {
+ } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38434, aBuf+uintptr(nBuf-6), uint64(6)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38287, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38295, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 3
}
}
@@ -238382,22 +238442,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:236657:12: */
+func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:236733: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+38433, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38441, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38218, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38226, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2
}
}
break
case 's':
- if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38438, aBuf+uintptr(nBuf-4), uint64(4)) {
+ if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38446, aBuf+uintptr(nBuf-4), uint64(4)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4
}
@@ -238405,21 +238465,21 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 't':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38443, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38451, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38218, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38226, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
- } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38449, aBuf+uintptr(nBuf-5), uint64(5)) {
+ } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38457, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38218, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38226, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
}
break
case 'u':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38402, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38410, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
}
@@ -238427,7 +238487,7 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'v':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38455, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38463, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5
}
@@ -238435,9 +238495,9 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqli
break
case 'z':
- if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38461, aBuf+uintptr(nBuf-5), uint64(5)) {
+ if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38469, aBuf+uintptr(nBuf-5), uint64(5)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38202, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38210, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2
}
}
@@ -238447,18 +238507,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:236723:12: */
+func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sqlite3.c:236799: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+38467, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38475, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38471, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38479, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 2
}
- } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38474, aBuf+uintptr(nBuf-2), uint64(2)) {
+ } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38482, aBuf+uintptr(nBuf-2), uint64(2)) {
if fts5Porter_Vowel(tls, aBuf, nBuf-2) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2
ret = 1
@@ -238467,7 +238527,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sql
break
case 'n':
- if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38477, aBuf+uintptr(nBuf-3), uint64(3)) {
+ if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38485, aBuf+uintptr(nBuf-3), uint64(3)) {
if fts5Porter_Vowel(tls, aBuf, nBuf-3) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3
ret = 1
@@ -238484,7 +238544,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* sql
//
//
-func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* sqlite3.c:236760:13: */
+func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* sqlite3.c:236836: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' {
@@ -238500,7 +238560,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:236778:12: */
+func fts5PorterCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* sqlite3.c:236854:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -238598,7 +238658,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:236847:12: */
+func fts5PorterTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, flags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* sqlite3.c:236923:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -238619,20 +238679,20 @@ func fts5PorterTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, flags i
// *************************************************************************
//
// Start of trigram implementation.
-type TrigramTokenizer1 = struct{ FbFold int32 } /* sqlite3.c:236867:9 */
+type TrigramTokenizer1 = struct{ FbFold int32 } /* sqlite3.c:236943:9 */
// *************************************************************************
//
// Start of trigram implementation.
-type TrigramTokenizer = TrigramTokenizer1 /* sqlite3.c:236867:33 */
+type TrigramTokenizer = TrigramTokenizer1 /* sqlite3.c:236943:33 */
// Free a trigram tokenizer.
-func fts5TriDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:236875:13: */
+func fts5TriDelete(tls *libc.TLS, p uintptr) { /* sqlite3.c:236951: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:236882:12: */
+func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* sqlite3.c:236958:12: */
var rc int32 = SQLITE_OK
var pNew uintptr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(TrigramTokenizer{})))
_ = pUnused
@@ -238643,7 +238703,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+38481) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38489) {
if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = SQLITE_ERROR
} else {
@@ -238663,7 +238723,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:236920:12: */
+func fts5TriTokenize(tls *libc.TLS, pTok uintptr, pCtx uintptr, unusedFlags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* sqlite3.c:236996:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -238816,7 +238876,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:236980:12: */
+func sqlite3Fts5TokenizerPattern(tls *libc.TLS, xCreate uintptr, pTok uintptr) int32 { /* sqlite3.c:237056:12: */
if xCreate == *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{fts5TriCreate})) {
@@ -238830,27 +238890,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:236994:12: */
+func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:237070:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
*(*[4]BuiltinTokenizer)(unsafe.Pointer(bp /* aBuiltin */)) = [4]BuiltinTokenizer{
- {FzName: ts + 38192, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 38200, 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 + 38496, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 38504, 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 + 38502, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 38510, 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 + 38509, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ {FzName: ts + 38517, 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
@@ -238876,7 +238936,7 @@ func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* sqlite3.c:
type BuiltinTokenizer = struct {
FzName uintptr
Fx Fts5_tokenizer
-} /* sqlite3.c:236995:3 */
+} /* sqlite3.c:237071:3 */
// 2012-05-25
//
@@ -238899,7 +238959,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:237050:12: */
+func fts5_remove_diacritic(tls *libc.TLS, c int32, bComplex int32) int32 { /* sqlite3.c:237126:12: */
bp := tls.Alloc(378)
defer tls.Free(378)
@@ -238970,7 +239030,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:237117:12: */
+func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* sqlite3.c:237193:12: */
var mask0 uint32 = uint32(0x08029FDF)
var mask1 uint32 = uint32(0x000361F8)
if c < 768 || c > 817 {
@@ -238989,7 +239049,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:237136:12: */
+func sqlite3Fts5UnicodeFold(tls *libc.TLS, c int32, eRemoveDiacritic int32) int32 { /* sqlite3.c:237212:12: */
var ret int32 = c
@@ -239050,7 +239110,7 @@ type TableEntry = struct {
FiCode uint16
Fflags uint8
FnRange uint8
-} /* sqlite3.c:237154:16 */
+} /* sqlite3.c:237230: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)},
@@ -239108,7 +239168,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:237158:5 */
+} /* sqlite3.c:237234: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),
@@ -239120,9 +239180,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:237215:31 */
+} /* sqlite3.c:237291:31 */
-func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int32 { /* sqlite3.c:237272:12: */
+func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int32 { /* sqlite3.c:237348:12: */
*(*U8)(unsafe.Pointer(aArray)) = U8(1)
switch int32(*(*int8)(unsafe.Pointer(zCat))) {
case 'C':
@@ -239319,7 +239379,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:237390:12 */
+} /* sqlite3.c:237466: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),
@@ -239498,7 +239558,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:237394:12 */
+} /* sqlite3.c:237470: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),
@@ -239677,9 +239737,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:237573:12 */
+} /* sqlite3.c:237649:12 */
-func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* sqlite3.c:237753:12: */
+func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* sqlite3.c:237829:12: */
var iRes int32 = -1
var iHi int32
var iLo int32
@@ -239719,7 +239779,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:237784:13: */
+func sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) { /* sqlite3.c:237860:13: */
var i int32 = 0
var iTbl int32 = 0
for i < 128 {
@@ -239751,7 +239811,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:237822:12: */
+func sqlite3Fts5GetVarint32(tls *libc.TLS, p uintptr, v uintptr) int32 { /* sqlite3.c:237898:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -239826,7 +239886,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:237900:11: */
+func sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* sqlite3.c:237976:11: */
var a U32
var b U32
var s U32
@@ -240002,7 +240062,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:238094:26: */
+func fts5PutVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:238170:26: */
bp := tls.Alloc(10)
defer tls.Free(10)
@@ -240048,7 +240108,7 @@ __3:
return n
}
-func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:238119:12: */
+func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* sqlite3.c:238195:12: */
if v <= uint64(0x7f) {
*(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f))
return 1
@@ -240061,7 +240121,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:238133:12: */
+func sqlite3Fts5GetVarintLen(tls *libc.TLS, iVal U32) int32 { /* sqlite3.c:238209:12: */
if iVal < U32(int32(1)<<14) {
return 2
@@ -240121,7 +240181,7 @@ type Fts5VocabTable1 = struct {
FpGlobal uintptr
FeType int32
FbBusy uint32
-} /* sqlite3.c:238186:9 */
+} /* sqlite3.c:238262:9 */
// 2015 May 08
//
@@ -240161,7 +240221,7 @@ type Fts5VocabTable1 = struct {
// #include "fts5Int.h"
-type Fts5VocabTable = Fts5VocabTable1 /* sqlite3.c:238186:31 */
+type Fts5VocabTable = Fts5VocabTable1 /* sqlite3.c:238262:31 */
type Fts5VocabCursor1 = struct {
Fbase Sqlite3_vtab_cursor
FpStmt uintptr
@@ -240182,9 +240242,9 @@ type Fts5VocabCursor1 = struct {
FiInstPos I64
FiInstOff int32
F__ccgo_pad4 [4]byte
-} /* sqlite3.c:238187:9 */
+} /* sqlite3.c:238263:9 */
-type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:238187:32 */
+type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:238263:32 */
// Bits for the mask used as the idxNum value by xBestIndex/xFilter.
@@ -240192,7 +240252,7 @@ type Fts5VocabCursor = Fts5VocabCursor1 /* sqlite3.c:238187: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:238247:12: */
+func fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uintptr) int32 { /* sqlite3.c:238323:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -240200,14 +240260,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+38517) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, ts+38525) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL
- } else if Xsqlite3_stricmp(tls, zCopy, ts+38521) == 0 {
+ } else if Xsqlite3_stricmp(tls, zCopy, ts+38529) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_ROW
- } else if Xsqlite3_stricmp(tls, zCopy, ts+38525) == 0 {
+ } else if Xsqlite3_stricmp(tls, zCopy, ts+38533) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_INSTANCE
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38534, libc.VaList(bp, zCopy))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38542, libc.VaList(bp, zCopy))
*(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = SQLITE_ERROR
}
Xsqlite3_free(tls, zCopy)
@@ -240217,14 +240277,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:238276:12: */
+func fts5VocabDisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:238352: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:238285:12: */
+func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3.c:238361:12: */
var pTab uintptr = pVtab
Xsqlite3_free(tls, pTab)
return SQLITE_OK
@@ -240249,24 +240309,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:238312:12: */
+func fts5VocabInitVtab(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* sqlite3.c:238388:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
*(*[3]uintptr)(unsafe.Pointer(bp + 8 /* azSchema */)) = [3]uintptr{
- ts + 38568,
- ts + 38608,
- ts + 38643,
+ ts + 38576,
+ ts + 38616,
+ ts + 38651,
}
var pRet uintptr = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK // Return code
var bDb int32
- bDb = libc.Bool32(argc == 6 && libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) == uint64(4) && libc.Xmemcmp(tls, ts+24535, *(*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+24543, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0)
if argc != 5 && bDb == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38686, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38694, 0)
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_ERROR
} else {
var nByte int32 // Bytes of space to allocate
@@ -240319,11 +240379,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:238374:12: */
+func fts5VocabConnectMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:238450: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:238384:12: */
+func fts5VocabCreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3.c:238460:12: */
return fts5VocabInitVtab(tls, db, pAux, argc, argv, ppVtab, pzErr)
}
@@ -240337,7 +240397,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:238407:12: */
+func fts5VocabBestIndexMethod(tls *libc.TLS, pUnused uintptr, pInfo uintptr) int32 { /* sqlite3.c:238483:12: */
var i int32
var iTermEq int32 = -1
var iTermGe int32 = -1
@@ -240405,7 +240465,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:238469:12: */
+func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* sqlite3.c:238545:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -240418,11 +240478,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+38719, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ ts+38727, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
return SQLITE_ERROR
}
zSql = sqlite3Fts5Mprintf(tls, bp+64,
- ts+38750,
+ ts+38758,
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))
@@ -240446,7 +240506,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+38801, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ ts+38809, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = SQLITE_ERROR
}
} else {
@@ -240472,7 +240532,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:238537:13: */
+func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:238613:13: */
(*Fts5VocabCursor)(unsafe.Pointer(pCsr)).Frowid = int64(0)
sqlite3Fts5IterClose(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpIter)
sqlite3Fts5StructureRelease(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpStruct)
@@ -240486,7 +240546,7 @@ func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* sqlite3.c:238537: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:238553:12: */
+func fts5VocabCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:238629:12: */
var pCsr uintptr = pCursor
fts5VocabResetCursor(tls, pCsr)
sqlite3Fts5BufferFree(tls, pCsr+96)
@@ -240495,7 +240555,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:238562:12: */
+func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:238638:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -240526,7 +240586,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:238584:12: */
+func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:238660: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
@@ -240555,7 +240615,7 @@ func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* sqlite3.c:238
}
// Advance the cursor to the next row in the table.
-func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:238616:12: */
+func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:238692:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -240699,7 +240759,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:238744:12: */
+func fts5VocabFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, zUnused uintptr, nUnused int32, apVal uintptr) int32 { /* sqlite3.c:238820:12: */
var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
var pCsr uintptr = pCursor
var eType int32 = (*Fts5VocabTable)(unsafe.Pointer(pTab)).FeType
@@ -240773,12 +240833,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:238818:12: */
+func fts5VocabEofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* sqlite3.c:238894: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:238823:12: */
+func fts5VocabColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* sqlite3.c:238899: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
@@ -240851,16 +240911,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:238895:12: */
+func fts5VocabRowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* sqlite3.c:238971: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:238904:12: */
+func sqlite3Fts5VocabInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* sqlite3.c:238980:12: */
var p uintptr = pGlobal
- return Xsqlite3_create_module_v2(tls, db, ts+38827, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0))
+ return Xsqlite3_create_module_v2(tls, db, ts+38835, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0))
}
var fts5Vocab = Sqlite3_module{
@@ -240877,7 +240937,7 @@ var fts5Vocab = Sqlite3_module{
/* xEof */ FxEof: 0,
/* xColumn */ FxColumn: 0,
/* xRowid */ FxRowid: 0,
-} /* sqlite3.c:238905:31 */
+} /* sqlite3.c:238981:31 */
//************* End of fts5.c ***********************************************
//************* Begin file stmt.c *******************************************
@@ -240904,1056 +240964,1056 @@ var fts5Vocab = Sqlite3_module{
//************* End of stmt.c ***********************************************
// Return the source-id for this library
-func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* sqlite3.c:239245:23: */
- return ts + 38837 /* "2022-02-22 18:58..." */
+func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* sqlite3.c:239321:23: */
+ return ts + 38845 /* "2022-03-12 13:37..." */
}
//************************* End of sqlite3.c *****************************
func init() {
- *(*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) WINBOOL }{libc.XAreFileApisANSI})) // sqlite3.c:43415:32:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aEQb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 210 // sqlite3.c:21690:51:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aGTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 216 // sqlite3.c:21691:51:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aLTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 204 // sqlite3.c:21689:51:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 0)) = geopolyBBoxStep // sqlite3.c:201985:8:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 8)) = geopolyBBoxFinal // sqlite3.c:201985:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 24)) = renameColumnFunc // sqlite3.c:111067:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 96)) = renameTableFunc // sqlite3.c:111068:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 168)) = renameTableTest // sqlite3.c:111069:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 240)) = dropColumnFunc // sqlite3.c:111070:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 312)) = renameQuotefixFunc // sqlite3.c:111071:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 24)) = versionFunc // sqlite3.c:123272:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 96)) = versionFunc // sqlite3.c:123273:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 168)) = versionFunc // sqlite3.c:123274:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 240)) = versionFunc // sqlite3.c:123275:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 312)) = soundexFunc // sqlite3.c:123279:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 384)) = loadExt // sqlite3.c:123282:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 456)) = loadExt // sqlite3.c:123283:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 528)) = compileoptionusedFunc // sqlite3.c:123289:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 600)) = compileoptiongetFunc // sqlite3.c:123290:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 672)) = versionFunc // sqlite3.c:123292:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 744)) = versionFunc // sqlite3.c:123293:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 816)) = versionFunc // sqlite3.c:123294:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 888)) = versionFunc // sqlite3.c:123297:12:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 960)) = trimFunc // sqlite3.c:123299:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1032)) = trimFunc // sqlite3.c:123300:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1104)) = trimFunc // sqlite3.c:123301:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1176)) = trimFunc // sqlite3.c:123302:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1248)) = trimFunc // sqlite3.c:123303:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1320)) = trimFunc // sqlite3.c:123304:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1392)) = minmaxFunc // sqlite3.c:123305:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1536)) = minmaxStep // sqlite3.c:123307:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1544)) = minMaxFinalize // sqlite3.c:123307:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1552)) = minMaxValue // sqlite3.c:123307:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1608)) = minmaxFunc // sqlite3.c:123309:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1752)) = minmaxStep // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1760)) = minMaxFinalize // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1768)) = minMaxValue // sqlite3.c:123311:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1824)) = typeofFunc // sqlite3.c:123313:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1896)) = subtypeFunc // sqlite3.c:123314:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1968)) = lengthFunc // sqlite3.c:123315:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2040)) = instrFunc // sqlite3.c:123316:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2112)) = printfFunc // sqlite3.c:123317:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2184)) = printfFunc // sqlite3.c:123318:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2256)) = unicodeFunc // sqlite3.c:123319:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2328)) = charFunc // sqlite3.c:123320:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2400)) = absFunc // sqlite3.c:123321:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2472)) = roundFunc // sqlite3.c:123323:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2544)) = roundFunc // sqlite3.c:123324:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2616)) = upperFunc // sqlite3.c:123326:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2688)) = lowerFunc // sqlite3.c:123327:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2760)) = hexFunc // sqlite3.c:123328:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2832)) = versionFunc // sqlite3.c:123329:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2904)) = randomFunc // sqlite3.c:123330:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2976)) = randomBlob // sqlite3.c:123331:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3048)) = nullifFunc // sqlite3.c:123332:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3120)) = versionFunc // sqlite3.c:123333:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3192)) = sourceidFunc // sqlite3.c:123334:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3264)) = errlogFunc // sqlite3.c:123335:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3336)) = quoteFunc // sqlite3.c:123336:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3408)) = last_insert_rowid // sqlite3.c:123337:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3480)) = changes // sqlite3.c:123338:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3552)) = total_changes // sqlite3.c:123339:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3624)) = replaceFunc // sqlite3.c:123340:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3696)) = zeroblobFunc // sqlite3.c:123341:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3768)) = substrFunc // sqlite3.c:123342:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3840)) = substrFunc // sqlite3.c:123343:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3912)) = substrFunc // sqlite3.c:123344:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3984)) = substrFunc // sqlite3.c:123345:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4056)) = sumStep // sqlite3.c:123346:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4064)) = sumFinalize // sqlite3.c:123346:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4072)) = sumFinalize // sqlite3.c:123346:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4080)) = sumInverse // sqlite3.c:123346:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4128)) = sumStep // sqlite3.c:123347:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4136)) = totalFinalize // sqlite3.c:123347:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4144)) = totalFinalize // sqlite3.c:123347:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4152)) = sumInverse // sqlite3.c:123347:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4200)) = sumStep // sqlite3.c:123348:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4208)) = avgFinalize // sqlite3.c:123348:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4216)) = avgFinalize // sqlite3.c:123348:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4224)) = sumInverse // sqlite3.c:123348:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4272)) = countStep // sqlite3.c:123349:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4280)) = countFinalize // sqlite3.c:123349:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4288)) = countFinalize // sqlite3.c:123349:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4296)) = countInverse // sqlite3.c:123349:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4344)) = countStep // sqlite3.c:123352:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4352)) = countFinalize // sqlite3.c:123352:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4360)) = countFinalize // sqlite3.c:123352:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4368)) = countInverse // sqlite3.c:123352:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4416)) = groupConcatStep // sqlite3.c:123354:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4424)) = groupConcatFinalize // sqlite3.c:123354:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4432)) = groupConcatValue // sqlite3.c:123354:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4440)) = groupConcatInverse // sqlite3.c:123354:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4488)) = groupConcatStep // sqlite3.c:123356:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4496)) = groupConcatFinalize // sqlite3.c:123356:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4504)) = groupConcatValue // sqlite3.c:123356:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4512)) = groupConcatInverse // sqlite3.c:123356:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4544 /* .pUserData */)) = uintptr(unsafe.Pointer(&globInfo)) // sqlite3.c:123359:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4560)) = likeFunc // sqlite3.c:123359:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4616 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // sqlite3.c:123364:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4632)) = likeFunc // sqlite3.c:123364:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4688 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // sqlite3.c:123365:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4704)) = likeFunc // sqlite3.c:123365:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4904)) = xCeil // sqlite3.c:123373:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4920)) = ceilingFunc // sqlite3.c:123373:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4976)) = xCeil // sqlite3.c:123374:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4992)) = ceilingFunc // sqlite3.c:123374:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5048)) = xFloor // sqlite3.c:123375:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5064)) = ceilingFunc // sqlite3.c:123375:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5120)) = libc.Xtrunc // sqlite3.c:123377:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5136)) = ceilingFunc // sqlite3.c:123377:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5208)) = logFunc // sqlite3.c:123379:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5280)) = logFunc // sqlite3.c:123380:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5352)) = logFunc // sqlite3.c:123381:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5424)) = logFunc // sqlite3.c:123382:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5496)) = logFunc // sqlite3.c:123383:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5552)) = libc.Xexp // sqlite3.c:123384:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5568)) = math1Func // sqlite3.c:123384:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5624)) = libc.Xpow // sqlite3.c:123385:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5640)) = math2Func // sqlite3.c:123385:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5696)) = libc.Xpow // sqlite3.c:123386:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5712)) = math2Func // sqlite3.c:123386:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5768)) = libc.Xfmod // sqlite3.c:123387:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5784)) = math2Func // sqlite3.c:123387:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5840)) = libc.Xacos // sqlite3.c:123388:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5856)) = math1Func // sqlite3.c:123388:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5912)) = libc.Xasin // sqlite3.c:123389:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5928)) = math1Func // sqlite3.c:123389:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5984)) = libc.Xatan // sqlite3.c:123390:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6000)) = math1Func // sqlite3.c:123390:5:
+ *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6056)) = libc.Xatan2 // sqlite3.c:123391:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6072)) = math2Func // sqlite3.c:123391:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6128)) = libc.Xcos // sqlite3.c:123392:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6144)) = math1Func // sqlite3.c:123392:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6200)) = libc.Xsin // sqlite3.c:123393:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6216)) = math1Func // sqlite3.c:123393:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6272)) = libc.Xtan // sqlite3.c:123394:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6288)) = math1Func // sqlite3.c:123394:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6344)) = libc.Xcosh // sqlite3.c:123395:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6360)) = math1Func // sqlite3.c:123395:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6416)) = libc.Xsinh // sqlite3.c:123396:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6432)) = math1Func // sqlite3.c:123396:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6488)) = libc.Xtanh // sqlite3.c:123397:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6504)) = math1Func // sqlite3.c:123397:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6560)) = libc.Xacosh // sqlite3.c:123399:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6576)) = math1Func // sqlite3.c:123399:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6632)) = libc.Xasinh // sqlite3.c:123400:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6648)) = math1Func // sqlite3.c:123400:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6704)) = libc.Xatanh // sqlite3.c:123401:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6720)) = math1Func // sqlite3.c:123401:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6776)) = libc.Xsqrt // sqlite3.c:123403:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6792)) = math1Func // sqlite3.c:123403:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6848)) = degToRad // sqlite3.c:123404:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6864)) = math1Func // sqlite3.c:123404:5:
+ *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6920)) = radToDeg // sqlite3.c:123405:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6936)) = math1Func // sqlite3.c:123405:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7008)) = piFunc // sqlite3.c:123406:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7080)) = signFunc // sqlite3.c:123408:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7152)) = versionFunc // sqlite3.c:123409:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7224)) = versionFunc // sqlite3.c:123410:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 8 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24402:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 24)) = juliandayFunc // sqlite3.c:24402:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 80 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24403:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 96)) = unixepochFunc // sqlite3.c:24403:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 152 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24404:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 168)) = dateFunc // sqlite3.c:24404:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 224 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24405:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 240)) = timeFunc // sqlite3.c:24405:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 296 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24406:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 312)) = datetimeFunc // sqlite3.c:24406:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 368 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // sqlite3.c:24407:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 384)) = strftimeFunc // sqlite3.c:24407:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 456)) = ctimeFunc // sqlite3.c:24408:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 528)) = ctimestampFunc // sqlite3.c:24409:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 600)) = cdateFunc // sqlite3.c:24410:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 0)) = geopolyAreaFunc // sqlite3.c:201967:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 24)) = geopolyBlobFunc // sqlite3.c:201968:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 48)) = geopolyJsonFunc // sqlite3.c:201969:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 72)) = geopolySvgFunc // sqlite3.c:201970:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 96)) = geopolyWithinFunc // sqlite3.c:201971:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 120)) = geopolyContainsPointFunc // sqlite3.c:201972:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 144)) = geopolyOverlapFunc // sqlite3.c:201973:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 168)) = geopolyDebugFunc // sqlite3.c:201974:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 192)) = geopolyBBoxFunc // sqlite3.c:201975:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 216)) = geopolyXformFunc // sqlite3.c:201976:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 240)) = geopolyRegularFunc // sqlite3.c:201977:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 264)) = geopolyCcwFunc // sqlite3.c:201978:8:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 24)) = jsonRemoveFunc // sqlite3.c:195736:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 96)) = jsonArrayFunc // sqlite3.c:195737:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 168)) = jsonArrayLengthFunc // sqlite3.c:195738:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 240)) = jsonArrayLengthFunc // sqlite3.c:195739:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 312)) = jsonExtractFunc // sqlite3.c:195740:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 384)) = jsonExtractFunc // sqlite3.c:195741:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 456)) = jsonExtractFunc // sqlite3.c:195742:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 528)) = jsonSetFunc // sqlite3.c:195743:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 600)) = jsonObjectFunc // sqlite3.c:195744:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 672)) = jsonPatchFunc // sqlite3.c:195745:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 744)) = jsonQuoteFunc // sqlite3.c:195746:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 816)) = jsonRemoveFunc // sqlite3.c:195747:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 888)) = jsonReplaceFunc // sqlite3.c:195748:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 960)) = jsonSetFunc // sqlite3.c:195749:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1032)) = jsonTypeFunc // sqlite3.c:195750:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1104)) = jsonTypeFunc // sqlite3.c:195751:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1176)) = jsonValidFunc // sqlite3.c:195752:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1248)) = jsonArrayStep // sqlite3.c:195757:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1256)) = jsonArrayFinal // sqlite3.c:195757:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1264)) = jsonArrayValue // sqlite3.c:195757:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1272)) = jsonGroupInverse // sqlite3.c:195757:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1320)) = jsonObjectStep // sqlite3.c:195760:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1328)) = jsonObjectFinal // sqlite3.c:195760:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1336)) = jsonObjectValue // sqlite3.c:195760:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1344)) = jsonGroupInverse // sqlite3.c:195760:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 8 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonEachModule)) // sqlite3.c:195778:31:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 24 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonTreeModule)) // sqlite3.c:195779:31:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) WINBOOL }{libc.XAreFileApisANSI})) // sqlite3.c:43424:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 80 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE) WINBOOL
- }{libc.XCloseHandle})) // sqlite3.c:43440:32:
+ }{libc.XCloseHandle})) // sqlite3.c:43449:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 104 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE) HANDLE
- }{libc.XCreateFileA})) // sqlite3.c:43445:32:
+ }{libc.XCreateFileA})) // sqlite3.c:43454:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 128 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE) HANDLE
- }{libc.XCreateFileW})) // sqlite3.c:43454:32:
+ }{libc.XCreateFileW})) // sqlite3.c:43463:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 152 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, LPSECURITY_ATTRIBUTES, DWORD, DWORD, DWORD, LPCSTR) HANDLE
- }{libc.XCreateFileMappingA})) // sqlite3.c:43465:32:
+ }{libc.XCreateFileMappingA})) // sqlite3.c:43474:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 176 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, LPSECURITY_ATTRIBUTES, DWORD, DWORD, DWORD, LPCWSTR) HANDLE
- }{libc.XCreateFileMappingW})) // sqlite3.c:43475:32:
+ }{libc.XCreateFileMappingW})) // sqlite3.c:43484:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 200 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPSECURITY_ATTRIBUTES, WINBOOL, LPCWSTR) HANDLE
- }{libc.XCreateMutexW})) // sqlite3.c:43484:32:
+ }{libc.XCreateMutexW})) // sqlite3.c:43493:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 224 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCSTR) WINBOOL
- }{libc.XDeleteFileA})) // sqlite3.c:43493:32:
+ }{libc.XDeleteFileA})) // sqlite3.c:43502:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 248 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR) WINBOOL
- }{libc.XDeleteFileW})) // sqlite3.c:43501:32:
+ }{libc.XDeleteFileW})) // sqlite3.c:43510:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 320 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE) WINBOOL
- }{libc.XFlushFileBuffers})) // sqlite3.c:43526:32:
+ }{libc.XFlushFileBuffers})) // sqlite3.c:43535:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 344 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, DWORD, LPCVOID, DWORD, DWORD, LPSTR, DWORD, uintptr) DWORD
- }{libc.XFormatMessageA})) // sqlite3.c:43531:32:
+ }{libc.XFormatMessageA})) // sqlite3.c:43540:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 368 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, DWORD, LPCVOID, DWORD, DWORD, LPWSTR, DWORD, uintptr) DWORD
- }{libc.XFormatMessageW})) // sqlite3.c:43540:32:
+ }{libc.XFormatMessageW})) // sqlite3.c:43549:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 392 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HMODULE) WINBOOL
- }{libc.XFreeLibrary})) // sqlite3.c:43549:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 416 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetCurrentProcessId})) // sqlite3.c:43556:32:
+ }{libc.XFreeLibrary})) // sqlite3.c:43558:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 416 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetCurrentProcessId})) // sqlite3.c:43565:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 440 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD) WINBOOL
- }{libc.XGetDiskFreeSpaceA})) // sqlite3.c:43561:32:
+ }{libc.XGetDiskFreeSpaceA})) // sqlite3.c:43570:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 464 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD) WINBOOL
- }{libc.XGetDiskFreeSpaceW})) // sqlite3.c:43570:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) DWORD }{libc.XGetFileAttributesA})) // sqlite3.c:43579:32:
+ }{libc.XGetDiskFreeSpaceW})) // sqlite3.c:43579:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) DWORD }{libc.XGetFileAttributesA})) // sqlite3.c:43588:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 512 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR) DWORD
- }{libc.XGetFileAttributesW})) // sqlite3.c:43587:32:
+ }{libc.XGetFileAttributesW})) // sqlite3.c:43596:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 536 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR, GET_FILEEX_INFO_LEVELS, LPVOID) WINBOOL
- }{libc.XGetFileAttributesExW})) // sqlite3.c:43595:32:
+ }{libc.XGetFileAttributesExW})) // sqlite3.c:43604:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 560 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, LPDWORD) DWORD
- }{libc.XGetFileSize})) // sqlite3.c:43604:32:
+ }{libc.XGetFileSize})) // sqlite3.c:43613:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 584 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCSTR, DWORD, LPSTR, uintptr) DWORD
- }{libc.XGetFullPathNameA})) // sqlite3.c:43612:32:
+ }{libc.XGetFullPathNameA})) // sqlite3.c:43621:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 608 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR, DWORD, LPWSTR, uintptr) DWORD
- }{libc.XGetFullPathNameW})) // sqlite3.c:43621:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 632 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetLastError})) // sqlite3.c:43629:32:
+ }{libc.XGetFullPathNameW})) // sqlite3.c:43630:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 632 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetLastError})) // sqlite3.c:43638:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 656 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HMODULE, LPCSTR) FARPROC
- }{libc.XGetProcAddress})) // sqlite3.c:43640:32:
+ }{libc.XGetProcAddress})) // sqlite3.c:43649:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 680 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPSYSTEM_INFO)
- }{libc.XGetSystemInfo})) // sqlite3.c:43650:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 704 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPSYSTEMTIME) }{libc.XGetSystemTime})) // sqlite3.c:43657:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 728 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPFILETIME) }{libc.XGetSystemTimeAsFileTime})) // sqlite3.c:43662:32:
+ }{libc.XGetSystemInfo})) // sqlite3.c:43659:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 704 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPSYSTEMTIME) }{libc.XGetSystemTime})) // sqlite3.c:43666:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 728 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPFILETIME) }{libc.XGetSystemTimeAsFileTime})) // sqlite3.c:43671:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 752 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, DWORD, LPSTR) DWORD
- }{libc.XGetTempPathA})) // sqlite3.c:43671:32:
+ }{libc.XGetTempPathA})) // sqlite3.c:43680:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 776 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, DWORD, LPWSTR) DWORD
- }{libc.XGetTempPathW})) // sqlite3.c:43679:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 800 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetTickCount})) // sqlite3.c:43687:32:
+ }{libc.XGetTempPathW})) // sqlite3.c:43688:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 800 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetTickCount})) // sqlite3.c:43696:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 824 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPOSVERSIONINFOA) WINBOOL
- }{libc.XGetVersionExA})) // sqlite3.c:43695:32:
+ }{libc.XGetVersionExA})) // sqlite3.c:43704:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 848 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPOSVERSIONINFOW) WINBOOL
- }{libc.XGetVersionExW})) // sqlite3.c:43705:32:
+ }{libc.XGetVersionExW})) // sqlite3.c:43714:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 872 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, SIZE_T) LPVOID
- }{libc.XHeapAlloc})) // sqlite3.c:43713:32:
+ }{libc.XHeapAlloc})) // sqlite3.c:43722:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 896 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, DWORD, SIZE_T, SIZE_T) HANDLE
- }{libc.XHeapCreate})) // sqlite3.c:43719:32:
+ }{libc.XHeapCreate})) // sqlite3.c:43728:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 920 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE) WINBOOL
- }{libc.XHeapDestroy})) // sqlite3.c:43728:32:
+ }{libc.XHeapDestroy})) // sqlite3.c:43737:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 944 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, LPVOID) WINBOOL
- }{libc.XHeapFree})) // sqlite3.c:43735:32:
+ }{libc.XHeapFree})) // sqlite3.c:43744:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 968 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, LPVOID, SIZE_T) LPVOID
- }{libc.XHeapReAlloc})) // sqlite3.c:43739:32:
+ }{libc.XHeapReAlloc})) // sqlite3.c:43748:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 992 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, LPCVOID) SIZE_T
- }{libc.XHeapSize})) // sqlite3.c:43744:32:
+ }{libc.XHeapSize})) // sqlite3.c:43753:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1016 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, LPCVOID) WINBOOL
- }{libc.XHeapValidate})) // sqlite3.c:43750:32:
+ }{libc.XHeapValidate})) // sqlite3.c:43759:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1040 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD) SIZE_T
- }{libc.XHeapCompact})) // sqlite3.c:43759:32:
+ }{libc.XHeapCompact})) // sqlite3.c:43768:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1064 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCSTR) HMODULE
- }{libc.XLoadLibraryA})) // sqlite3.c:43767:32:
+ }{libc.XLoadLibraryA})) // sqlite3.c:43776:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1088 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCWSTR) HMODULE
- }{libc.XLoadLibraryW})) // sqlite3.c:43776:32:
+ }{libc.XLoadLibraryW})) // sqlite3.c:43785:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1112 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HLOCAL) HLOCAL
- }{libc.XLocalFree})) // sqlite3.c:43784:32:
+ }{libc.XLocalFree})) // sqlite3.c:43793:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1136 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, DWORD) WINBOOL
- }{libc.XLockFile})) // sqlite3.c:43792:32:
+ }{libc.XLockFile})) // sqlite3.c:43801:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1160 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED) WINBOOL
- }{libc.XLockFileEx})) // sqlite3.c:43803:32:
+ }{libc.XLockFileEx})) // sqlite3.c:43812:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1184 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, SIZE_T) LPVOID
- }{libc.XMapViewOfFile})) // sqlite3.c:43815:32:
+ }{libc.XMapViewOfFile})) // sqlite3.c:43824:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1208 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, UINT, DWORD, LPCCH, int32, LPWSTR, int32) int32
- }{libc.XMultiByteToWideChar})) // sqlite3.c:43823:32:
+ }{libc.XMultiByteToWideChar})) // sqlite3.c:43832:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1232 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr) WINBOOL
- }{libc.XQueryPerformanceCounter})) // sqlite3.c:43828:32:
+ }{libc.XQueryPerformanceCounter})) // sqlite3.c:43837:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1256 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, LPVOID, DWORD, LPDWORD, LPOVERLAPPED) WINBOOL
- }{libc.XReadFile})) // sqlite3.c:43833:32:
+ }{libc.XReadFile})) // sqlite3.c:43842:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1280 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE) WINBOOL
- }{libc.XSetEndOfFile})) // sqlite3.c:43838:32:
+ }{libc.XSetEndOfFile})) // sqlite3.c:43847:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1304 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, LONG, PLONG, DWORD) DWORD
- }{libc.XSetFilePointer})) // sqlite3.c:43843:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1328 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, DWORD) }{libc.XSleep})) // sqlite3.c:43852:32:
+ }{libc.XSetFilePointer})) // sqlite3.c:43852:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1328 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, DWORD) }{libc.XSleep})) // sqlite3.c:43861:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1352 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, uintptr, LPFILETIME) WINBOOL
- }{libc.XSystemTimeToFileTime})) // sqlite3.c:43859:32:
+ }{libc.XSystemTimeToFileTime})) // sqlite3.c:43868:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1376 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, DWORD) WINBOOL
- }{libc.XUnlockFile})) // sqlite3.c:43865:32:
+ }{libc.XUnlockFile})) // sqlite3.c:43874:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1400 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, LPOVERLAPPED) WINBOOL
- }{libc.XUnlockFileEx})) // sqlite3.c:43876:32:
+ }{libc.XUnlockFileEx})) // sqlite3.c:43885:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1424 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCVOID) WINBOOL
- }{libc.XUnmapViewOfFile})) // sqlite3.c:43885:32:
+ }{libc.XUnmapViewOfFile})) // sqlite3.c:43894:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1448 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, UINT, DWORD, LPCWCH, int32, LPSTR, int32, LPCCH, LPBOOL) int32
- }{libc.XWideCharToMultiByte})) // sqlite3.c:43892:32:
+ }{libc.XWideCharToMultiByte})) // sqlite3.c:43901:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1472 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED) WINBOOL
- }{libc.XWriteFile})) // sqlite3.c:43897:32:
+ }{libc.XWriteFile})) // sqlite3.c:43906:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1520 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD) DWORD
- }{libc.XWaitForSingleObject})) // sqlite3.c:43912:32:
+ }{libc.XWaitForSingleObject})) // sqlite3.c:43921:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1544 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, HANDLE, DWORD, WINBOOL) DWORD
- }{libc.XWaitForSingleObjectEx})) // sqlite3.c:43921:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1736 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) }{libc.XOutputDebugStringA})) // sqlite3.c:43992:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1760 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCWSTR) }{libc.XOutputDebugStringW})) // sqlite3.c:44000:32:
- *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1784 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) HANDLE }{libc.XGetProcessHeap})) // sqlite3.c:44007:32:
+ }{libc.XWaitForSingleObjectEx})) // sqlite3.c:43930:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1736 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) }{libc.XOutputDebugStringA})) // sqlite3.c:44001:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1760 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCWSTR) }{libc.XOutputDebugStringW})) // sqlite3.c:44009:32:
+ *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1784 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) HANDLE }{libc.XGetProcessHeap})) // sqlite3.c:44016:32:
*(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1904 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct {
f func(*libc.TLS, LPCVOID, SIZE_T) WINBOOL
- }{libc.XFlushViewOfFile})) // sqlite3.c:44054:33:
- *(*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, 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, 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:
+ }{libc.XFlushViewOfFile})) // sqlite3.c:44063:33:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 24)) = row_numberStepFunc // sqlite3.c:158796:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 32)) = row_numberValueFunc // sqlite3.c:158796:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 40)) = row_numberValueFunc // sqlite3.c:158796:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 48)) = noopStepFunc // sqlite3.c:158796:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 56 /* .zName */)) = uintptr(unsafe.Pointer(&row_numberName)) // sqlite3.c:158796:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 96)) = dense_rankStepFunc // sqlite3.c:158797:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 104)) = dense_rankValueFunc // sqlite3.c:158797:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 112)) = dense_rankValueFunc // sqlite3.c:158797:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 120)) = noopStepFunc // sqlite3.c:158797:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 128 /* .zName */)) = uintptr(unsafe.Pointer(&dense_rankName)) // sqlite3.c:158797:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 168)) = rankStepFunc // sqlite3.c:158798:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 176)) = rankValueFunc // sqlite3.c:158798:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 184)) = rankValueFunc // sqlite3.c:158798:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 192)) = noopStepFunc // sqlite3.c:158798:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 200 /* .zName */)) = uintptr(unsafe.Pointer(&rankName)) // sqlite3.c:158798:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 240)) = percent_rankStepFunc // sqlite3.c:158799:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 248)) = percent_rankValueFunc // sqlite3.c:158799:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 256)) = percent_rankValueFunc // sqlite3.c:158799:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 264)) = percent_rankInvFunc // sqlite3.c:158799:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 272 /* .zName */)) = uintptr(unsafe.Pointer(&percent_rankName)) // sqlite3.c:158799:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 312)) = cume_distStepFunc // sqlite3.c:158800:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 320)) = cume_distValueFunc // sqlite3.c:158800:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 328)) = cume_distValueFunc // sqlite3.c:158800:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 336)) = cume_distInvFunc // sqlite3.c:158800:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 344 /* .zName */)) = uintptr(unsafe.Pointer(&cume_distName)) // sqlite3.c:158800:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 384)) = ntileStepFunc // sqlite3.c:158801:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 392)) = ntileValueFunc // sqlite3.c:158801:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 400)) = ntileValueFunc // sqlite3.c:158801:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 408)) = ntileInvFunc // sqlite3.c:158801:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 416 /* .zName */)) = uintptr(unsafe.Pointer(&ntileName)) // sqlite3.c:158801:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 456)) = last_valueStepFunc // sqlite3.c:158802:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 464)) = last_valueFinalizeFunc // sqlite3.c:158802:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 472)) = last_valueValueFunc // sqlite3.c:158802:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 480)) = last_valueInvFunc // sqlite3.c:158802:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 488 /* .zName */)) = uintptr(unsafe.Pointer(&last_valueName)) // sqlite3.c:158802:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 528)) = nth_valueStepFunc // sqlite3.c:158803:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 536)) = nth_valueFinalizeFunc // sqlite3.c:158803:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 544)) = noopValueFunc // sqlite3.c:158803:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 552)) = noopStepFunc // sqlite3.c:158803:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 560 /* .zName */)) = uintptr(unsafe.Pointer(&nth_valueName)) // sqlite3.c:158803:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 600)) = first_valueStepFunc // sqlite3.c:158804:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 608)) = first_valueFinalizeFunc // sqlite3.c:158804:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 616)) = noopValueFunc // sqlite3.c:158804:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 624)) = noopStepFunc // sqlite3.c:158804:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 632 /* .zName */)) = uintptr(unsafe.Pointer(&first_valueName)) // sqlite3.c:158804:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 672)) = noopStepFunc // sqlite3.c:158805:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 680)) = noopValueFunc // sqlite3.c:158805:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 688)) = noopValueFunc // sqlite3.c:158805:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 696)) = noopStepFunc // sqlite3.c:158805:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 704 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:158805:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 744)) = noopStepFunc // sqlite3.c:158806:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 752)) = noopValueFunc // sqlite3.c:158806:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 760)) = noopValueFunc // sqlite3.c:158806:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 768)) = noopStepFunc // sqlite3.c:158806:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 776 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:158806:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 816)) = noopStepFunc // sqlite3.c:158807:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 824)) = noopValueFunc // sqlite3.c:158807:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 832)) = noopValueFunc // sqlite3.c:158807:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 840)) = noopStepFunc // sqlite3.c:158807:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 848 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // sqlite3.c:158807:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 888)) = noopStepFunc // sqlite3.c:158808:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 896)) = noopValueFunc // sqlite3.c:158808:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 904)) = noopValueFunc // sqlite3.c:158808:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 912)) = noopStepFunc // sqlite3.c:158808:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 920 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:158808:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 960)) = noopStepFunc // sqlite3.c:158809:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 968)) = noopValueFunc // sqlite3.c:158809:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 976)) = noopValueFunc // sqlite3.c:158809:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 984)) = noopStepFunc // sqlite3.c:158809:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 992 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:158809:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1032)) = noopStepFunc // sqlite3.c:158810:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1040)) = noopValueFunc // sqlite3.c:158810:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1048)) = noopValueFunc // sqlite3.c:158810:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1056)) = noopStepFunc // sqlite3.c:158810:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1064 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // sqlite3.c:158810:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&attach_func)) + 24)) = attachFunc // sqlite3.c:113438:5:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 0)) = sqlite3MemMalloc // sqlite3.c:25299:6:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 8)) = sqlite3MemFree // sqlite3.c:25300:6:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 16)) = sqlite3MemRealloc // sqlite3.c:25301:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 24)) = sqlite3MemSize // sqlite3.c:25302:6:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 32)) = sqlite3MemRoundup // sqlite3.c:25303:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 40)) = sqlite3MemInit // sqlite3.c:25304:6:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 48)) = sqlite3MemShutdown // sqlite3.c:25305:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 16)) = pcache1Init // sqlite3.c:52453:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 24)) = pcache1Shutdown // sqlite3.c:52454:5:
+ *(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 32)) = pcache1Create // sqlite3.c:52455:5:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 40)) = pcache1Cachesize // sqlite3.c:52456:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 48)) = pcache1Pagecount // sqlite3.c:52457:5:
+ *(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 56)) = pcache1Fetch // sqlite3.c:52458:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 64)) = pcache1Unpin // sqlite3.c:52459:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 72)) = pcache1Rekey // sqlite3.c:52460:5:
+ *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 80)) = pcache1Truncate // sqlite3.c:52461:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 88)) = pcache1Destroy // sqlite3.c:52462:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 96)) = pcache1Shrink // sqlite3.c:52463:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&detach_func)) + 24)) = detachFunc // sqlite3.c:113418:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 8)) = fts5CreateMethod // sqlite3.c:234400:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 16)) = fts5ConnectMethod // sqlite3.c:234401:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 24)) = fts5BestIndexMethod // sqlite3.c:234402:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 32)) = fts5DisconnectMethod // sqlite3.c:234403:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 40)) = fts5DestroyMethod // sqlite3.c:234404:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 48)) = fts5OpenMethod // sqlite3.c:234405:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 56)) = fts5CloseMethod // sqlite3.c:234406:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 64)) = fts5FilterMethod // sqlite3.c:234407:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 72)) = fts5NextMethod // sqlite3.c:234408:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 80)) = fts5EofMethod // sqlite3.c:234409:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 88)) = fts5ColumnMethod // sqlite3.c:234410:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 96)) = fts5RowidMethod // sqlite3.c:234411:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 104)) = fts5UpdateMethod // sqlite3.c:234412:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 112)) = fts5BeginMethod // sqlite3.c:234413:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 120)) = fts5SyncMethod // sqlite3.c:234414:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 128)) = fts5CommitMethod // sqlite3.c:234415:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 136)) = fts5RollbackMethod // sqlite3.c:234416:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 144)) = fts5FindFunctionMethod // sqlite3.c:234417:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 152)) = fts5RenameMethod // sqlite3.c:234418:25:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 160)) = fts5SavepointMethod // sqlite3.c:234419:25:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 168)) = fts5ReleaseMethod // sqlite3.c:234420:25:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 176)) = fts5RollbackToMethod // sqlite3.c:234421:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 184)) = fts5ShadowName // sqlite3.c:234422:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 8)) = fts5VocabCreateMethod // sqlite3.c:238983:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 16)) = fts5VocabConnectMethod // sqlite3.c:238984:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 24)) = fts5VocabBestIndexMethod // sqlite3.c:238985:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 32)) = fts5VocabDisconnectMethod // sqlite3.c:238986:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 40)) = fts5VocabDestroyMethod // sqlite3.c:238987:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 48)) = fts5VocabOpenMethod // sqlite3.c:238988:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 56)) = fts5VocabCloseMethod // sqlite3.c:238989:25:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 64)) = fts5VocabFilterMethod // sqlite3.c:238990:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 72)) = fts5VocabNextMethod // sqlite3.c:238991:25:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 80)) = fts5VocabEofMethod // sqlite3.c:238992:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 88)) = fts5VocabColumnMethod // sqlite3.c:238993:25:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 96)) = fts5VocabRowidMethod // sqlite3.c:238994:25:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 8)) = geopolyCreate // sqlite3.c:201934:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 16)) = geopolyConnect // sqlite3.c:201935:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 24)) = geopolyBestIndex // sqlite3.c:201936:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 32)) = rtreeDisconnect // sqlite3.c:201937:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 40)) = rtreeDestroy // sqlite3.c:201938:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 48)) = rtreeOpen // sqlite3.c:201939:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 56)) = rtreeClose // sqlite3.c:201940:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 64)) = geopolyFilter // sqlite3.c:201941:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 72)) = rtreeNext // sqlite3.c:201942:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 80)) = rtreeEof // sqlite3.c:201943:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 88)) = geopolyColumn // sqlite3.c:201944:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 96)) = rtreeRowid // sqlite3.c:201945:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 104)) = geopolyUpdate // sqlite3.c:201946:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 112)) = rtreeBeginTransaction // sqlite3.c:201947:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 120)) = rtreeEndTransaction // sqlite3.c:201948:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 128)) = rtreeEndTransaction // sqlite3.c:201949:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 136)) = rtreeEndTransaction // sqlite3.c:201950:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 144)) = geopolyFindFunction // sqlite3.c:201951:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 152)) = rtreeRename // sqlite3.c:201952:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 160)) = rtreeSavepoint // sqlite3.c:201953:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 184)) = rtreeShadowName // sqlite3.c:201956:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 16)) = jsonEachConnect // sqlite3.c:195676:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 24)) = jsonEachBestIndex // sqlite3.c:195677:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 32)) = jsonEachDisconnect // sqlite3.c:195678:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 48)) = jsonEachOpenEach // sqlite3.c:195680:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 56)) = jsonEachClose // sqlite3.c:195681:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 64)) = jsonEachFilter // sqlite3.c:195682:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 72)) = jsonEachNext // sqlite3.c:195683:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 80)) = jsonEachEof // sqlite3.c:195684:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 88)) = jsonEachColumn // sqlite3.c:195685:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 96)) = jsonEachRowid // sqlite3.c:195686:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 16)) = jsonEachConnect // sqlite3.c:195704:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 24)) = jsonEachBestIndex // sqlite3.c:195705:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 32)) = jsonEachDisconnect // sqlite3.c:195706:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 48)) = jsonEachOpenTree // sqlite3.c:195708:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 56)) = jsonEachClose // sqlite3.c:195709:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 64)) = jsonEachFilter // sqlite3.c:195710:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 72)) = jsonEachNext // sqlite3.c:195711:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 80)) = jsonEachEof // sqlite3.c:195712:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 88)) = jsonEachColumn // sqlite3.c:195713:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 96)) = jsonEachRowid // sqlite3.c:195714:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 8)) = memdbClose // sqlite3.c:49233:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 16)) = memdbRead // sqlite3.c:49234:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 24)) = memdbWrite // sqlite3.c:49235:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 32)) = memdbTruncate // sqlite3.c:49236:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 40)) = memdbSync // sqlite3.c:49237:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 48)) = memdbFileSize // sqlite3.c:49238:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 56)) = memdbLock // sqlite3.c:49239:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 64)) = memdbLock // sqlite3.c:49240:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 80)) = memdbFileControl // sqlite3.c:49242:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 96)) = memdbDeviceCharacteristics // sqlite3.c:49244:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 136)) = memdbFetch // sqlite3.c:49249:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 144)) = memdbUnfetch // sqlite3.c:49250:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 40)) = memdbOpen // sqlite3.c:49213:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 56)) = memdbAccess // sqlite3.c:49215:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 64)) = memdbFullPathname // sqlite3.c:49216:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 72)) = memdbDlOpen // sqlite3.c:49217:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 80)) = memdbDlError // sqlite3.c:49218:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 88)) = memdbDlSym // sqlite3.c:49219:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 96)) = memdbDlClose // sqlite3.c:49220:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 104)) = memdbRandomness // sqlite3.c:49221:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 112)) = memdbSleep // sqlite3.c:49222:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 128)) = memdbGetLastError // sqlite3.c:49224:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 136)) = memdbCurrentTimeInt64 // sqlite3.c:49225:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 16)) = pragmaVtabConnect // sqlite3.c:133106:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 24)) = pragmaVtabBestIndex // sqlite3.c:133107:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 32)) = pragmaVtabDisconnect // sqlite3.c:133108:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 48)) = pragmaVtabOpen // sqlite3.c:133110:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 56)) = pragmaVtabClose // sqlite3.c:133111:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 64)) = pragmaVtabFilter // sqlite3.c:133112:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 72)) = pragmaVtabNext // sqlite3.c:133113:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 80)) = pragmaVtabEof // sqlite3.c:133114:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 88)) = pragmaVtabColumn // sqlite3.c:133115:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 96)) = pragmaVtabRowid // sqlite3.c:133116:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 8)) = rbuVfsClose // sqlite3.c:208631:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 16)) = rbuVfsRead // sqlite3.c:208632:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 24)) = rbuVfsWrite // sqlite3.c:208633:5:
+ *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 32)) = rbuVfsTruncate // sqlite3.c:208634:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 40)) = rbuVfsSync // sqlite3.c:208635:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 48)) = rbuVfsFileSize // sqlite3.c:208636:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 56)) = rbuVfsLock // sqlite3.c:208637:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 64)) = rbuVfsUnlock // sqlite3.c:208638:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 72)) = rbuVfsCheckReservedLock // sqlite3.c:208639:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 80)) = rbuVfsFileControl // sqlite3.c:208640:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 88)) = rbuVfsSectorSize // sqlite3.c:208641:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 96)) = rbuVfsDeviceCharacteristics // sqlite3.c:208642:5:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 104)) = rbuVfsShmMap // sqlite3.c:208643:5:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 112)) = rbuVfsShmLock // sqlite3.c:208644:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 120)) = rbuVfsShmBarrier // sqlite3.c:208645:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 128)) = rbuVfsShmUnmap // sqlite3.c:208646:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 8)) = rtreeCreate // sqlite3.c:199272:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 16)) = rtreeConnect // sqlite3.c:199273:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 24)) = rtreeBestIndex // sqlite3.c:199274:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 32)) = rtreeDisconnect // sqlite3.c:199275:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 40)) = rtreeDestroy // sqlite3.c:199276:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 48)) = rtreeOpen // sqlite3.c:199277:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 56)) = rtreeClose // sqlite3.c:199278:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 64)) = rtreeFilter // sqlite3.c:199279:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 72)) = rtreeNext // sqlite3.c:199280:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 80)) = rtreeEof // sqlite3.c:199281:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 88)) = rtreeColumn // sqlite3.c:199282:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 96)) = rtreeRowid // sqlite3.c:199283:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 104)) = rtreeUpdate // sqlite3.c:199284:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 112)) = rtreeBeginTransaction // sqlite3.c:199285:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 120)) = rtreeEndTransaction // sqlite3.c:199286:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 128)) = rtreeEndTransaction // sqlite3.c:199287:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 136)) = rtreeEndTransaction // sqlite3.c:199288:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 152)) = rtreeRename // sqlite3.c:199290:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 160)) = rtreeSavepoint // sqlite3.c:199291:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 184)) = rtreeShadowName // sqlite3.c:199294:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 8)) = fts5ApiUserData // sqlite3.c:233859:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 16)) = fts5ApiColumnCount // sqlite3.c:233860:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 24)) = fts5ApiRowCount // sqlite3.c:233861:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 32)) = fts5ApiColumnTotalSize // sqlite3.c:233862:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 40)) = fts5ApiTokenize // sqlite3.c:233863:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 48)) = fts5ApiPhraseCount // sqlite3.c:233864:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 56)) = fts5ApiPhraseSize // sqlite3.c:233865:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 64)) = fts5ApiInstCount // sqlite3.c:233866:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 72)) = fts5ApiInst // sqlite3.c:233867:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 80)) = fts5ApiRowid // sqlite3.c:233868:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 88)) = fts5ApiColumnText // sqlite3.c:233869:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 96)) = fts5ApiColumnSize // sqlite3.c:233870:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 104)) = fts5ApiQueryPhrase // sqlite3.c:233871:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 112)) = fts5ApiSetAuxdata // sqlite3.c:233872:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 120)) = fts5ApiGetAuxdata // sqlite3.c:233873:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 128)) = fts5ApiPhraseFirst // sqlite3.c:233874:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 136)) = fts5ApiPhraseNext // sqlite3.c:233875:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 144)) = fts5ApiPhraseFirstColumn // sqlite3.c:233876:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 152)) = fts5ApiPhraseNextColumn // sqlite3.c:233877:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 8)) = memjrnlClose // sqlite3.c:100023:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 16)) = memjrnlRead // sqlite3.c:100024:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 24)) = memjrnlWrite // sqlite3.c:100025:3:
+ *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 32)) = memjrnlTruncate // sqlite3.c:100026:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 40)) = memjrnlSync // sqlite3.c:100027:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 48)) = memjrnlFileSize // sqlite3.c:100028:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 0)) = noopMutexInit // sqlite3.c:27532:5:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 8)) = noopMutexEnd // sqlite3.c:27533:5:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 16)) = noopMutexAlloc // sqlite3.c:27534:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 24)) = noopMutexFree // sqlite3.c:27535:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 32)) = noopMutexEnter // sqlite3.c:27536:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 40)) = noopMutexTry // sqlite3.c:27537:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 48)) = noopMutexLeave // sqlite3.c:27538:5:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 0)) = Xsqlite3_aggregate_context // sqlite3.c:129019:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 8)) = Xsqlite3_aggregate_count // sqlite3.c:129021:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 16)) = Xsqlite3_bind_blob // sqlite3.c:129025:3:
+ *(*func(*libc.TLS, uintptr, int32, float64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 24)) = Xsqlite3_bind_double // sqlite3.c:129026:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 32)) = Xsqlite3_bind_int // sqlite3.c:129027:3:
+ *(*func(*libc.TLS, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 40)) = Xsqlite3_bind_int64 // sqlite3.c:129028:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 48)) = Xsqlite3_bind_null // sqlite3.c:129029:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 56)) = Xsqlite3_bind_parameter_count // sqlite3.c:129030:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 64)) = Xsqlite3_bind_parameter_index // sqlite3.c:129031:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 72)) = Xsqlite3_bind_parameter_name // sqlite3.c:129032:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 80)) = Xsqlite3_bind_text // sqlite3.c:129033:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 88)) = Xsqlite3_bind_text16 // sqlite3.c:129034:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 96)) = Xsqlite3_bind_value // sqlite3.c:129035:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 104)) = Xsqlite3_busy_handler // sqlite3.c:129036:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 112)) = Xsqlite3_busy_timeout // sqlite3.c:129037:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 120)) = Xsqlite3_changes // sqlite3.c:129038:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 128)) = Xsqlite3_close // sqlite3.c:129039:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 136)) = Xsqlite3_collation_needed // sqlite3.c:129040:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 144)) = Xsqlite3_collation_needed16 // sqlite3.c:129041:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 152)) = Xsqlite3_column_blob // sqlite3.c:129042:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 160)) = Xsqlite3_column_bytes // sqlite3.c:129043:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 168)) = Xsqlite3_column_bytes16 // sqlite3.c:129044:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 176)) = Xsqlite3_column_count // sqlite3.c:129045:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 184)) = Xsqlite3_column_database_name // sqlite3.c:129046:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 192)) = Xsqlite3_column_database_name16 // sqlite3.c:129047:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 200)) = Xsqlite3_column_decltype // sqlite3.c:129048:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 208)) = Xsqlite3_column_decltype16 // sqlite3.c:129049:3:
+ *(*func(*libc.TLS, uintptr, int32) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 216)) = Xsqlite3_column_double // sqlite3.c:129050:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 224)) = Xsqlite3_column_int // sqlite3.c:129051:3:
+ *(*func(*libc.TLS, uintptr, int32) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 232)) = Xsqlite3_column_int64 // sqlite3.c:129052:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 240)) = Xsqlite3_column_name // sqlite3.c:129053:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 248)) = Xsqlite3_column_name16 // sqlite3.c:129054:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 256)) = Xsqlite3_column_origin_name // sqlite3.c:129055:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 264)) = Xsqlite3_column_origin_name16 // sqlite3.c:129056:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 272)) = Xsqlite3_column_table_name // sqlite3.c:129057:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 280)) = Xsqlite3_column_table_name16 // sqlite3.c:129058:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 288)) = Xsqlite3_column_text // sqlite3.c:129059:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 296)) = Xsqlite3_column_text16 // sqlite3.c:129060:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 304)) = Xsqlite3_column_type // sqlite3.c:129061:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 312)) = Xsqlite3_column_value // sqlite3.c:129062:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 320)) = Xsqlite3_commit_hook // sqlite3.c:129063:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 328)) = Xsqlite3_complete // sqlite3.c:129064:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 336)) = Xsqlite3_complete16 // sqlite3.c:129065:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 344)) = Xsqlite3_create_collation // sqlite3.c:129066:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 352)) = Xsqlite3_create_collation16 // sqlite3.c:129067: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:129068: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:129069:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 376)) = Xsqlite3_create_module // sqlite3.c:129070:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 384)) = Xsqlite3_data_count // sqlite3.c:129071:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 392)) = Xsqlite3_db_handle // sqlite3.c:129072:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 400)) = Xsqlite3_declare_vtab // sqlite3.c:129073:3:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 408)) = Xsqlite3_enable_shared_cache // sqlite3.c:129074:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 416)) = Xsqlite3_errcode // sqlite3.c:129075:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 424)) = Xsqlite3_errmsg // sqlite3.c:129076:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 432)) = Xsqlite3_errmsg16 // sqlite3.c:129077:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_callback, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 440)) = Xsqlite3_exec // sqlite3.c:129078:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 448)) = Xsqlite3_expired // sqlite3.c:129080:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 456)) = Xsqlite3_finalize // sqlite3.c:129084:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 464)) = Xsqlite3_free // sqlite3.c:129085:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 472)) = Xsqlite3_free_table // sqlite3.c:129086:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 480)) = Xsqlite3_get_autocommit // sqlite3.c:129087:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 488)) = Xsqlite3_get_auxdata // sqlite3.c:129088:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 496)) = Xsqlite3_get_table // sqlite3.c:129089:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 512)) = Xsqlite3_interrupt // sqlite3.c:129091:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 520)) = Xsqlite3_last_insert_rowid // sqlite3.c:129092:3:
+ *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 528)) = Xsqlite3_libversion // sqlite3.c:129093:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 536)) = Xsqlite3_libversion_number // sqlite3.c:129094:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 544)) = Xsqlite3_malloc // sqlite3.c:129095:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 552)) = Xsqlite3_mprintf // sqlite3.c:129096:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 560)) = Xsqlite3_open // sqlite3.c:129097:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 568)) = Xsqlite3_open16 // sqlite3.c:129098:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 576)) = Xsqlite3_prepare // sqlite3.c:129099:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 584)) = Xsqlite3_prepare16 // sqlite3.c:129100:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 592)) = Xsqlite3_profile // sqlite3.c:129101:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 600)) = Xsqlite3_progress_handler // sqlite3.c:129102:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 608)) = Xsqlite3_realloc // sqlite3.c:129103:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 616)) = Xsqlite3_reset // sqlite3.c:129104:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 624)) = Xsqlite3_result_blob // sqlite3.c:129105:3:
+ *(*func(*libc.TLS, uintptr, float64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 632)) = Xsqlite3_result_double // sqlite3.c:129106:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 640)) = Xsqlite3_result_error // sqlite3.c:129107:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 648)) = Xsqlite3_result_error16 // sqlite3.c:129108:3:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 656)) = Xsqlite3_result_int // sqlite3.c:129109:3:
+ *(*func(*libc.TLS, uintptr, I64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 664)) = Xsqlite3_result_int64 // sqlite3.c:129110:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 672)) = Xsqlite3_result_null // sqlite3.c:129111:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 680)) = Xsqlite3_result_text // sqlite3.c:129112:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 688)) = Xsqlite3_result_text16 // sqlite3.c:129113:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 696)) = Xsqlite3_result_text16be // sqlite3.c:129114:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 704)) = Xsqlite3_result_text16le // sqlite3.c:129115:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 712)) = Xsqlite3_result_value // sqlite3.c:129116:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 720)) = Xsqlite3_rollback_hook // sqlite3.c:129117:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 728)) = Xsqlite3_set_authorizer // sqlite3.c:129118:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 736)) = Xsqlite3_set_auxdata // sqlite3.c:129119:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 744)) = Xsqlite3_snprintf // sqlite3.c:129120:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 752)) = Xsqlite3_step // sqlite3.c:129121: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:129122:3:
+ *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 768)) = Xsqlite3_thread_cleanup // sqlite3.c:129124:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 776)) = Xsqlite3_total_changes // sqlite3.c:129128:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 784)) = Xsqlite3_trace // sqlite3.c:129129:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 792)) = Xsqlite3_transfer_bindings // sqlite3.c:129131:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 800)) = Xsqlite3_update_hook // sqlite3.c:129135:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 808)) = Xsqlite3_user_data // sqlite3.c:129136:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 816)) = Xsqlite3_value_blob // sqlite3.c:129137:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 824)) = Xsqlite3_value_bytes // sqlite3.c:129138:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 832)) = Xsqlite3_value_bytes16 // sqlite3.c:129139:3:
+ *(*func(*libc.TLS, uintptr) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 840)) = Xsqlite3_value_double // sqlite3.c:129140:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 848)) = Xsqlite3_value_int // sqlite3.c:129141:3:
+ *(*func(*libc.TLS, uintptr) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 856)) = Xsqlite3_value_int64 // sqlite3.c:129142:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 864)) = Xsqlite3_value_numeric_type // sqlite3.c:129143:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 872)) = Xsqlite3_value_text // sqlite3.c:129144:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 880)) = Xsqlite3_value_text16 // sqlite3.c:129145:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 888)) = Xsqlite3_value_text16be // sqlite3.c:129146:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 896)) = Xsqlite3_value_text16le // sqlite3.c:129147:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 904)) = Xsqlite3_value_type // sqlite3.c:129148:3:
+ *(*func(*libc.TLS, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 912)) = Xsqlite3_vmprintf // sqlite3.c:129149:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 920)) = Xsqlite3_overload_function // sqlite3.c:129158:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 928)) = Xsqlite3_prepare_v2 // sqlite3.c:129163:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 936)) = Xsqlite3_prepare16_v2 // sqlite3.c:129164:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 944)) = Xsqlite3_clear_bindings // sqlite3.c:129165:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 952)) = Xsqlite3_create_module_v2 // sqlite3.c:129170:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 960)) = Xsqlite3_bind_zeroblob // sqlite3.c:129175:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 968)) = Xsqlite3_blob_bytes // sqlite3.c:129176:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 976)) = Xsqlite3_blob_close // sqlite3.c:129177: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:129178:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 992)) = Xsqlite3_blob_read // sqlite3.c:129179:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1000)) = Xsqlite3_blob_write // sqlite3.c:129180:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1008)) = Xsqlite3_create_collation_v2 // sqlite3.c:129181:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1016)) = Xsqlite3_file_control // sqlite3.c:129182:3:
+ *(*func(*libc.TLS, int32) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1024)) = Xsqlite3_memory_highwater // sqlite3.c:129183:3:
+ *(*func(*libc.TLS) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1032)) = Xsqlite3_memory_used // sqlite3.c:129184:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1040)) = Xsqlite3_mutex_alloc // sqlite3.c:129192:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1048)) = Xsqlite3_mutex_enter // sqlite3.c:129193:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1056)) = Xsqlite3_mutex_free // sqlite3.c:129194:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1064)) = Xsqlite3_mutex_leave // sqlite3.c:129195:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1072)) = Xsqlite3_mutex_try // sqlite3.c:129196:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1080)) = Xsqlite3_open_v2 // sqlite3.c:129198:3:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1088)) = Xsqlite3_release_memory // sqlite3.c:129199:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1096)) = Xsqlite3_result_error_nomem // sqlite3.c:129200:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1104)) = Xsqlite3_result_error_toobig // sqlite3.c:129201:3:
+ *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1112)) = Xsqlite3_sleep // sqlite3.c:129202:3:
+ *(*func(*libc.TLS, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1120)) = Xsqlite3_soft_heap_limit // sqlite3.c:129203:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1128)) = Xsqlite3_vfs_find // sqlite3.c:129204:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1136)) = Xsqlite3_vfs_register // sqlite3.c:129205:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1144)) = Xsqlite3_vfs_unregister // sqlite3.c:129206:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1152)) = Xsqlite3_threadsafe // sqlite3.c:129211:3:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1160)) = Xsqlite3_result_zeroblob // sqlite3.c:129212:3:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1168)) = Xsqlite3_result_error_code // sqlite3.c:129213:3:
+ *(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1176)) = Xsqlite3_test_control // sqlite3.c:129214:3:
+ *(*func(*libc.TLS, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1184)) = Xsqlite3_randomness // sqlite3.c:129215:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1192)) = Xsqlite3_context_db_handle // sqlite3.c:129216:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1200)) = Xsqlite3_extended_result_codes // sqlite3.c:129221:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1208)) = Xsqlite3_limit // sqlite3.c:129222:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1216)) = Xsqlite3_next_stmt // sqlite3.c:129223:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1224)) = Xsqlite3_sql // sqlite3.c:129224:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1232)) = Xsqlite3_status // sqlite3.c:129225:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1240)) = Xsqlite3_backup_finish // sqlite3.c:129230:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1248)) = Xsqlite3_backup_init // sqlite3.c:129231:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1256)) = Xsqlite3_backup_pagecount // sqlite3.c:129232:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1264)) = Xsqlite3_backup_remaining // sqlite3.c:129233:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1272)) = Xsqlite3_backup_step // sqlite3.c:129234:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1280)) = Xsqlite3_compileoption_get // sqlite3.c:129236:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1288)) = Xsqlite3_compileoption_used // sqlite3.c:129237: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:129242:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1304)) = Xsqlite3_db_config // sqlite3.c:129243:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1312)) = Xsqlite3_db_mutex // sqlite3.c:129244:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1320)) = Xsqlite3_db_status // sqlite3.c:129245:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1328)) = Xsqlite3_extended_errcode // sqlite3.c:129246:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1336)) = Xsqlite3_log // sqlite3.c:129247:3:
+ *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1344)) = Xsqlite3_soft_heap_limit64 // sqlite3.c:129248:3:
+ *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1352)) = Xsqlite3_sourceid // sqlite3.c:129249:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1360)) = Xsqlite3_stmt_status // sqlite3.c:129250:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1368)) = Xsqlite3_strnicmp // sqlite3.c:129251:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1376)) = Xsqlite3_unlock_notify // sqlite3.c:129253:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1384)) = Xsqlite3_wal_autocheckpoint // sqlite3.c:129258:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1392)) = Xsqlite3_wal_checkpoint // sqlite3.c:129259:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1400)) = Xsqlite3_wal_hook // sqlite3.c:129260:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1408)) = Xsqlite3_blob_reopen // sqlite3.c:129266:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1416)) = Xsqlite3_vtab_config // sqlite3.c:129267:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1424)) = Xsqlite3_vtab_on_conflict // sqlite3.c:129268:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1432)) = Xsqlite3_close_v2 // sqlite3.c:129269:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1440)) = Xsqlite3_db_filename // sqlite3.c:129270:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1448)) = Xsqlite3_db_readonly // sqlite3.c:129271:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1456)) = Xsqlite3_db_release_memory // sqlite3.c:129272:3:
+ *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1464)) = Xsqlite3_errstr // sqlite3.c:129273:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1472)) = Xsqlite3_stmt_busy // sqlite3.c:129274:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1480)) = Xsqlite3_stmt_readonly // sqlite3.c:129275:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1488)) = Xsqlite3_stricmp // sqlite3.c:129276:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1496)) = Xsqlite3_uri_boolean // sqlite3.c:129277:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1504)) = Xsqlite3_uri_int64 // sqlite3.c:129278:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1512)) = Xsqlite3_uri_parameter // sqlite3.c:129279:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1520)) = Xsqlite3_vsnprintf // sqlite3.c:129280:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1528)) = Xsqlite3_wal_checkpoint_v2 // sqlite3.c:129281:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1536)) = Xsqlite3_auto_extension // sqlite3.c:129283:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1544)) = Xsqlite3_bind_blob64 // sqlite3.c:129284:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr, uint8) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1552)) = Xsqlite3_bind_text64 // sqlite3.c:129285:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1560)) = Xsqlite3_cancel_auto_extension // sqlite3.c:129286:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1568)) = Xsqlite3_load_extension // sqlite3.c:129287:3:
+ *(*func(*libc.TLS, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1576)) = Xsqlite3_malloc64 // sqlite3.c:129288:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_uint64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1584)) = Xsqlite3_msize // sqlite3.c:129289:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1592)) = Xsqlite3_realloc64 // sqlite3.c:129290:3:
+ *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1600)) = Xsqlite3_reset_auto_extension // sqlite3.c:129291:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1608)) = Xsqlite3_result_blob64 // sqlite3.c:129292:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr, uint8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1616)) = Xsqlite3_result_text64 // sqlite3.c:129293:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1624)) = Xsqlite3_strglob // sqlite3.c:129294: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: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:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoMethod)) // sqlite3.c:47540:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 8)) = winClose // sqlite3.c:47493:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 16)) = winRead // sqlite3.c:47494:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 24)) = winWrite // sqlite3.c:47495:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 32)) = winTruncate // sqlite3.c:47496:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 40)) = winSync // sqlite3.c:47497:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 48)) = winFileSize // sqlite3.c:47498:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 56)) = winLock // sqlite3.c:47499:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 64)) = winUnlock // sqlite3.c:47500:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 72)) = winCheckReservedLock // sqlite3.c:47501:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 80)) = winFileControl // sqlite3.c:47502:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 88)) = winSectorSize // sqlite3.c:47503:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 96)) = winDeviceCharacteristics // sqlite3.c:47504:3:
- *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 104)) = winShmMap // sqlite3.c:47505:3:
- *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 112)) = winShmLock // sqlite3.c:47506:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 120)) = winShmBarrier // sqlite3.c:47507:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 128)) = winShmUnmap // sqlite3.c:47508:3:
- *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 136)) = winFetch // sqlite3.c:47509:3:
- *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 144)) = winUnfetch // sqlite3.c:47510:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 8)) = winClose // sqlite3.c:47519:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 16)) = winRead // sqlite3.c:47520:3:
- *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 24)) = winWrite // sqlite3.c:47521:3:
- *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 32)) = winTruncate // sqlite3.c:47522:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 40)) = winSync // sqlite3.c:47523:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 48)) = winFileSize // sqlite3.c:47524:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 56)) = winNolockLock // sqlite3.c:47525:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 64)) = winNolockUnlock // sqlite3.c:47526:3:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 72)) = winNolockCheckReservedLock // sqlite3.c:47527:3:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 80)) = winFileControl // sqlite3.c:47528:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 88)) = winSectorSize // sqlite3.c:47529:3:
- *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 96)) = winDeviceCharacteristics // sqlite3.c:47530:3:
- *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 104)) = winShmMap // sqlite3.c:47531:3:
- *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 112)) = winShmLock // sqlite3.c:47532:3:
- *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 120)) = winShmBarrier // sqlite3.c:47533:3:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 128)) = winShmUnmap // sqlite3.c:47534:3:
- *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 136)) = winFetch // sqlite3.c:47535:3:
- *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 144)) = winUnfetch // sqlite3.c:47536:3:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // sqlite3.c:48990:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 40)) = winOpen // sqlite3.c:48991:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 48)) = winDelete // sqlite3.c:48992:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 56)) = winAccess // sqlite3.c:48993:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 64)) = winFullPathname // sqlite3.c:48994:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 72)) = winDlOpen // sqlite3.c:48995:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 80)) = winDlError // sqlite3.c:48996:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 88)) = winDlSym // sqlite3.c:48997:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 96)) = winDlClose // sqlite3.c:48998:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 104)) = winRandomness // sqlite3.c:48999:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 112)) = winSleep // sqlite3.c:49000:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 120)) = winCurrentTime // sqlite3.c:49001:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 128)) = winGetLastError // sqlite3.c:49002:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:49003:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 144)) = winSetSystemCall // sqlite3.c:49004:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 152)) = winGetSystemCall // sqlite3.c:49005:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 160)) = winNextSystemCall // sqlite3.c:49006:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // sqlite3.c:48940:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 40)) = winOpen // sqlite3.c:48941:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 48)) = winDelete // sqlite3.c:48942:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 56)) = winAccess // sqlite3.c:48943:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 64)) = winFullPathname // sqlite3.c:48944:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 72)) = winDlOpen // sqlite3.c:48945:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 80)) = winDlError // sqlite3.c:48946:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 88)) = winDlSym // sqlite3.c:48947:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 96)) = winDlClose // sqlite3.c:48948:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 104)) = winRandomness // sqlite3.c:48949:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 112)) = winSleep // sqlite3.c:48950:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 120)) = winCurrentTime // sqlite3.c:48951:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 128)) = winGetLastError // sqlite3.c:48952:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:48953:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 144)) = winSetSystemCall // sqlite3.c:48954:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 152)) = winGetSystemCall // sqlite3.c:48955:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 160)) = winNextSystemCall // sqlite3.c:48956:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoNolockMethod)) // sqlite3.c:47546:3:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // sqlite3.c:48965:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 40)) = winOpen // sqlite3.c:48966:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 48)) = winDelete // sqlite3.c:48967:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 56)) = winAccess // sqlite3.c:48968:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 64)) = winFullPathname // sqlite3.c:48969:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 72)) = winDlOpen // sqlite3.c:48970:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 80)) = winDlError // sqlite3.c:48971:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 88)) = winDlSym // sqlite3.c:48972:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 96)) = winDlClose // sqlite3.c:48973:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 104)) = winRandomness // sqlite3.c:48974:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 112)) = winSleep // sqlite3.c:48975:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 120)) = winCurrentTime // sqlite3.c:48976:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 128)) = winGetLastError // sqlite3.c:48977:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:48978:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 144)) = winSetSystemCall // sqlite3.c:48979:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 152)) = winGetSystemCall // sqlite3.c:48980:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 160)) = winNextSystemCall // sqlite3.c:48981:5:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // sqlite3.c:48915:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 40)) = winOpen // sqlite3.c:48916:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 48)) = winDelete // sqlite3.c:48917:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 56)) = winAccess // sqlite3.c:48918:5:
- *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 64)) = winFullPathname // sqlite3.c:48919:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 72)) = winDlOpen // sqlite3.c:48920:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 80)) = winDlError // sqlite3.c:48921:5:
- *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 88)) = winDlSym // sqlite3.c:48922:5:
- *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 96)) = winDlClose // sqlite3.c:48923:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 104)) = winRandomness // sqlite3.c:48924:5:
- *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 112)) = winSleep // sqlite3.c:48925:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 120)) = winCurrentTime // sqlite3.c:48926:5:
- *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 128)) = winGetLastError // sqlite3.c:48927:5:
- *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:48928:5:
- *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 144)) = winSetSystemCall // sqlite3.c:48929:5:
- *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 152)) = winGetSystemCall // sqlite3.c:48930:5:
- *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 160)) = winNextSystemCall // sqlite3.c:48931:5:
-}
-
-var ts1 = "3.38.0\x00ATOMIC_INTRINSICS=1\x00COMPILER=msvc-1900\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MMAP_SIZE=0\x00DEFAULT_PAGE_SIZE=4096\x00DEFAULT_PCACHE_INITSZ=20\x00DEFAULT_RECURSIVE_TRIGGERS\x00DEFAULT_SECTOR_SIZE=4096\x00DEFAULT_SYNCHRONOUS=2\x00DEFAULT_WAL_AUTOCHECKPOINT=1000\x00DEFAULT_WAL_SYNCHRONOUS=2\x00DEFAULT_WORKER_THREADS=0\x00ENABLE_COLUMN_METADATA\x00ENABLE_FTS5\x00ENABLE_GEOPOLY\x00ENABLE_MATH_FUNCTIONS\x00ENABLE_MEMORY_MANAGEMENT\x00ENABLE_OFFSET_SQL_FUNC\x00ENABLE_PREUPDATE_HOOK\x00ENABLE_RBU\x00ENABLE_RTREE\x00ENABLE_SESSION\x00ENABLE_SNAPSHOT\x00ENABLE_STAT4\x00ENABLE_UNLOCK_NOTIFY\x00LIKE_DOESNT_MATCH_BLOBS\x00MALLOC_SOFT_LIMIT=1024\x00MAX_ATTACHED=10\x00MAX_COLUMN=2000\x00MAX_COMPOUND_SELECT=500\x00MAX_DEFAULT_PAGE_SIZE=8192\x00MAX_EXPR_DEPTH=1000\x00MAX_FUNCTION_ARG=127\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=1073741823\x00MAX_PAGE_SIZE=65536\x00MAX_SQL_LENGTH=1000000000\x00MAX_TRIGGER_DEPTH=1000\x00MAX_VARIABLE_NUMBER=32766\x00MAX_VDBE_OP=250000000\x00MAX_WORKER_THREADS=8\x00MUTEX_NOOP\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00BINARY\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00local time unavailable\x00second\x00minute\x00hour\x00\x00\x00day\x00\x00\x00\x00month\x00\x00year\x00\x00\x00auto\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x00%02d\x00%06.3f\x00%03d\x00%.16g\x00%lld\x00%04d\x00date\x00time\x00datetime\x00strftime\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x000123456789ABCDEF0123456789abcdef\x00-x0\x00X0\x00%\x00NaN\x00Inf\x00\x00NULL\x00(NULL)\x00.\x00SUBQUERY %u\x00thstndrd\x00922337203685477580\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00SorterNext\x00Prev\x00Next\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00Not\x00IfNot\x00IsNullOrType\x00IfNullRow\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00IdxLE\x00IdxGT\x00IdxLT\x00IdxGE\x00Or\x00And\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00Init\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\x00OpenRead\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenWrite\x00OpenDup\x00BitNot\x00OpenAutoindex\x00OpenEphemeral\x00String8\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00DropTrigger\x00Real\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\x00AreFileApisANSI\x00CharLowerW\x00CharUpperW\x00CloseHandle\x00CreateFileA\x00CreateFileW\x00CreateFileMappingA\x00CreateFileMappingW\x00CreateMutexW\x00DeleteFileA\x00DeleteFileW\x00FileTimeToLocalFileTime\x00FileTimeToSystemTime\x00FlushFileBuffers\x00FormatMessageA\x00FormatMessageW\x00FreeLibrary\x00GetCurrentProcessId\x00GetDiskFreeSpaceA\x00GetDiskFreeSpaceW\x00GetFileAttributesA\x00GetFileAttributesW\x00GetFileAttributesExW\x00GetFileSize\x00GetFullPathNameA\x00GetFullPathNameW\x00GetLastError\x00GetProcAddressA\x00GetSystemInfo\x00GetSystemTime\x00GetSystemTimeAsFileTime\x00GetTempPathA\x00GetTempPathW\x00GetTickCount\x00GetVersionExA\x00GetVersionExW\x00HeapAlloc\x00HeapCreate\x00HeapDestroy\x00HeapFree\x00HeapReAlloc\x00HeapSize\x00HeapValidate\x00HeapCompact\x00LoadLibraryA\x00LoadLibraryW\x00LocalFree\x00LockFile\x00LockFileEx\x00MapViewOfFile\x00MultiByteToWideChar\x00QueryPerformanceCounter\x00ReadFile\x00SetEndOfFile\x00SetFilePointer\x00Sleep\x00SystemTimeToFileTime\x00UnlockFile\x00UnlockFileEx\x00UnmapViewOfFile\x00WideCharToMultiByte\x00WriteFile\x00CreateEventExW\x00WaitForSingleObject\x00WaitForSingleObjectEx\x00SetFilePointerEx\x00GetFileInformationByHandleEx\x00MapViewOfFileFromApp\x00CreateFile2\x00LoadPackagedLibrary\x00GetTickCount64\x00GetNativeSystemInfo\x00OutputDebugStringA\x00OutputDebugStringW\x00GetProcessHeap\x00CreateFileMappingFromApp\x00InterlockedCompareExchange\x00UuidCreate\x00UuidCreateSequential\x00FlushViewOfFile\x00%s\x00OsError 0x%lx (%lu)\x00os_win.c:%d: (%lu) %s(%s) - %s\x00delayed %dms for lock/sharing conflict at line %d\x00winSeekFile\x00winClose\x00winRead\x00winWrite1\x00winWrite2\x00winTruncate1\x00winTruncate2\x00winSync1\x00winSync2\x00winFileSize\x00winUnlockReadLock\x00winUnlock\x00winLockSharedMemory\x00%s-shm\x00readonly_shm\x00winOpenShm\x00winShmMap1\x00winShmMap2\x00winShmMap3\x00winUnmapfile1\x00winUnmapfile2\x00winMapfile1\x00winMapfile2\x00etilqs_\x00winGetTempname1\x00winGetTempname2\x00winGetTempname3\x00winGetTempname4\x00winGetTempname5\x00abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\x00exclusive\x00winOpen\x00psow\x00winDelete\x00winAccess\x00%s%c%s\x00winFullPathname1\x00winFullPathname2\x00winFullPathname3\x00winFullPathname4\x00win32\x00win32-longpath\x00win32-none\x00win32-longpath-none\x00memdb\x00memdb(%p,%lld)\x00PRAGMA \"%w\".page_count\x00ATTACH x AS %Q\x00recovered %d pages from %s\x00-journal\x00-wal\x00nolock\x00immutable\x00PRAGMA table_list\x00recovered %d frames from WAL file %s\x00cannot limit WAL size: %s\x00SQLite format 3\x00:memory:\x00@ \x00\n\x00invalid page number %d\x002nd reference to page %d\x00Failed to read ptrmap key=%d\x00Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)\x00failed to get page %d\x00freelist leaf count too big on page %d\x00%s is %d but should be %d\x00size\x00overflow list length\x00Page %u: \x00unable to get the page. error code=%d\x00btreeInitPage() returns error code %d\x00free space corruption\x00On tree page %u cell %d: \x00On page %u at right child: \x00Offset %d out of range %d..%d\x00Extends off end of page\x00Rowid %lld out of order\x00Child page depth differs\x00Multiple uses for byte %u of page %u\x00Fragmentation of %d bytes reported as %d on page %u\x00Main freelist: \x00max rootpage (%d) disagrees with header (%d)\x00incremental_vacuum enabled with a max rootpage of zero\x00Page %d is never used\x00Pointer map page %d is referenced\x00unknown database %s\x00destination database is in use\x00source and destination must be distinct\x00%!.15g\x00-\x00%s%s\x00k(%d\x00B\x00,%s%s%s\x00N.\x00)\x00%.18s-%s\x00%s(%d)\x00%d\x00(blob)\x00vtab:%p\x00%c%u\x00]\x00program\x00?\x008\x0016LE\x0016BE\x00addr\x00opcode\x00p1\x00p2\x00p3\x00p4\x00p5\x00comment\x00id\x00parent\x00notused\x00detail\x00%.4c%s%.16c\x00MJ delete: %s\x00MJ collide: %s\x00-mj%06X9%02X\x00FOREIGN KEY constraint failed\x00a CHECK constraint\x00a generated column\x00an index\x00non-deterministic use of %s() in %s\x00API called with finalized prepared statement\x00API called with NULL prepared statement\x00string or blob too big\x00ValueList\x00bind on a busy prepared statement: [%s]\x00-- \x00'%.*q'\x00zeroblob(%d)\x00x'\x00%02x\x00'\x00%s constraint failed\x00%z: %s\x00abort at %d in [%s]: %s\x00cannot store %s value in %s column %s.%s\x00cannot open savepoint - SQL statements in progress\x00no such savepoint: %s\x00cannot release savepoint - SQL statements in progress\x00cannot commit transaction - SQL statements in progress\x00cannot start a transaction within a transaction\x00cannot rollback - no transaction is active\x00cannot commit - no transaction is active\x00database schema has changed\x00index corruption\x00sqlite_master\x00SELECT*FROM\"%w\".%s WHERE %s ORDER BY rowid\x00too many levels of trigger recursion\x00cannot change %s wal mode from within a transaction\x00into\x00out of\x00database table is locked: %s\x00-- %s\x00statement aborts at %d: [%s] %s\x00NOT NULL\x00UNIQUE\x00CHECK\x00FOREIGN KEY\x00cannot open value of type %s\x00null\x00real\x00integer\x00no such rowid: %lld\x00cannot open virtual table: %s\x00cannot open table without rowid: %s\x00cannot open view: %s\x00no such column: \"%s\"\x00foreign key\x00indexed\x00cannot open %s column for writing\x00main\x00*\x00new\x00old\x00excluded\x00misuse of aliased aggregate %s\x00misuse of aliased window function %s\x00row value misused\x00double-quoted string literal: \"%w\"\x00no such column\x00ambiguous column name\x00%s: %s.%s.%s\x00%s: %s.%s\x00%s: %s\x00partial index WHERE clauses\x00index expressions\x00CHECK constraints\x00generated columns\x00%s prohibited in %s\x00true\x00false\x00the \".\" operator\x00second argument to %#T() must be a constant between 0.0 and 1.0\x00not authorized to use function: %#T\x00non-deterministic functions\x00%#T() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %#T()\x00no such function: %#T\x00wrong number of arguments to function %#T()\x00FILTER may not be used with non-aggregate %#T()\x00subqueries\x00parameters\x00%r %s BY term out of range - should be between 1 and %d\x00too many terms in ORDER BY clause\x00ORDER\x00%r ORDER BY term does not match any column in the result set\x00too many terms in %s BY clause\x00a GROUP BY clause is required before HAVING\x00GROUP\x00aggregate functions are not allowed in the GROUP BY clause\x00Expression tree is too large (maximum depth %d)\x00IN(...) element has %d term%s - expected %d\x00s\x000\x00too many arguments on function %T\x00unsafe use of %#T()\x00variable number must be between ?1 and ?%d\x00too many SQL variables\x00%d columns assigned %d values\x00too many columns in %s\x00_ROWID_\x00ROWID\x00OID\x00USING ROWID SEARCH ON TABLE %s FOR IN-OPERATOR\x00USING INDEX %s FOR IN-OPERATOR\x00sub-select returns %d columns - expected %d\x00REUSE LIST SUBQUERY %d\x00%sLIST SUBQUERY %d\x00CORRELATED \x00REUSE SUBQUERY %d\x00%sSCALAR SUBQUERY %d\x001\x000x\x00hex literal too big: %s%#T\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00none\x00misuse of aggregate: %#T()\x00unknown function: %#T()\x00RAISE() may only be used within a trigger-program\x00B\x00C\x00D\x00E\x00sqlite_\x00table %s may not be altered\x00SELECT 1 FROM \"%w\".sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, %d, %Q, %d)=NULL \x00SELECT 1 FROM temp.sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, 1, %Q, %d)=NULL \x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_quotefix(%Q, sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_quotefix('temp', sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00there is already another table or index with this name: %s\x00table\x00view %s may not be altered\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, %d) WHERE (type!='index' OR tbl_name=%Q COLLATE nocase)AND name NOT LIKE 'sqliteX_%%' ESCAPE 'X'\x00UPDATE %Q.sqlite_master SET tbl_name = %Q, name = CASE WHEN type='table' THEN %Q WHEN name LIKE 'sqliteX_autoindex%%' ESCAPE 'X' AND type='index' THEN 'sqlite_autoindex_' || %Q || substr(name,%d+18) ELSE name END WHERE tbl_name=%Q COLLATE nocase AND (type='table' OR type='index' OR type='trigger');\x00sqlite_sequence\x00UPDATE \"%w\".sqlite_sequence set name = %Q WHERE name = %Q\x00UPDATE sqlite_temp_schema SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, 1), tbl_name = CASE WHEN tbl_name=%Q COLLATE nocase AND sqlite_rename_test(%Q, sql, type, name, 1, 'after rename', 0) THEN %Q ELSE tbl_name END WHERE type IN ('view', 'trigger')\x00after rename\x00SELECT raise(ABORT,%Q) FROM \"%w\".\"%w\"\x00Cannot add a PRIMARY KEY column\x00Cannot add a UNIQUE column\x00Cannot add a REFERENCES column with non-NULL default value\x00Cannot add a NOT NULL column with default value NULL\x00Cannot add a column with non-constant default\x00cannot add a STORED column\x00UPDATE \"%w\".sqlite_master SET sql = printf('%%.%ds, ',sql) || %Q || substr(sql,1+length(printf('%%.%ds',sql))) WHERE type = 'table' AND name = %Q\x00SELECT CASE WHEN quick_check GLOB 'CHECK*' THEN raise(ABORT,'CHECK constraint failed') ELSE raise(ABORT,'NOT NULL constraint failed') END FROM pragma_quick_check(%Q,%Q) WHERE quick_check GLOB 'CHECK*' OR quick_check GLOB 'NULL*'\x00virtual tables may not be altered\x00Cannot add a column to a view\x00sqlite_altertab_%s\x00view\x00virtual table\x00cannot %s %s \"%s\"\x00drop column from\x00rename columns of\x00no such column: \"%T\"\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, %d) WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND (type != 'index' OR tbl_name = %Q)\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, 1) WHERE type IN ('trigger', 'view')\x00error in %s %s%s%s: %s\x00 \x00\"%w\" \x00%Q%s\x00%.*s%s\x00cannot drop %s column: \"%s\"\x00PRIMARY KEY\x00cannot drop column \"%s\": no other columns exist\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_drop_column(%d, sql, %d) WHERE (type=='table' AND tbl_name=%Q COLLATE nocase)\x00after drop column\x00sqlite_rename_column\x00sqlite_rename_table\x00sqlite_rename_test\x00sqlite_drop_column\x00sqlite_rename_quotefix\x00CREATE TABLE %Q.%s(%s)\x00DELETE FROM %Q.%s WHERE %s=%Q\x00DELETE FROM %Q.%s\x00sqlite_stat1\x00tbl,idx,stat\x00sqlite_stat4\x00tbl,idx,neq,nlt,ndlt,sample\x00sqlite_stat3\x00stat_init\x00stat_push\x00%llu\x00 %llu\x00%llu \x00stat_get\x00sqlite\\_%\x00BBB\x00idx\x00tbl\x00unordered*\x00sz=[0-9]*\x00noskipscan*\x00SELECT idx,count(*) FROM %Q.sqlite_stat4 GROUP BY idx\x00SELECT idx,neq,nlt,ndlt,sample FROM %Q.sqlite_stat4\x00SELECT tbl,idx,stat FROM %Q.sqlite_stat1\x00x\x00\x00too many attached databases - max %d\x00database %s is already in use\x00database is already attached\x00attached databases must use the same text encoding as main database\x00unable to open database: %s\x00no such database: %s\x00cannot detach database %s\x00database %s is locked\x00sqlite_detach\x00sqlite_attach\x00%s cannot use variables\x00%s %T cannot reference objects in database %s\x00authorizer malfunction\x00%s.%s\x00%s.%z\x00access to %z is prohibited\x00not authorized\x00sqlite_temp_schema\x00sqlite_schema\x00sqlite_temp_master\x00pragma_\x00no such view\x00no such table\x00corrupt database\x00unknown database %T\x00object name reserved for internal use: %s\x00temporary table name must be unqualified\x00%s %T already exists\x00there is already an index named %s\x00sqlite_returning\x00cannot use RETURNING in a trigger\x00too many columns on %s\x00always\x00generated\x00duplicate column name: %s\x00default value of column [%s] is not constant\x00cannot use DEFAULT on a generated column\x00generated columns cannot be part of the PRIMARY KEY\x00table \"%s\" has more than one primary key\x00AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY\x00virtual tables cannot use computed columns\x00virtual\x00stored\x00error in generated column \"%s\"\x00,\x00\n \x00,\n \x00\n)\x00CREATE TABLE \x00 TEXT\x00 NUM\x00 INT\x00 REAL\x00unknown datatype for %s.%s: \"%s\"\x00missing datatype for %s.%s\x00AUTOINCREMENT not allowed on WITHOUT ROWID tables\x00PRIMARY KEY missing on table %s\x00must have at least one non-generated column\x00TABLE\x00VIEW\x00CREATE %s %.*s\x00UPDATE %Q.sqlite_master SET type='%s', name=%Q, tbl_name=%Q, rootpage=#%d, sql=%Q WHERE rowid=#%d\x00CREATE TABLE %Q.sqlite_sequence(name,seq)\x00tbl_name='%q' AND type!='trigger'\x00parameters are not allowed in views\x00view %s is circularly defined\x00corrupt schema\x00UPDATE %Q.sqlite_master SET rootpage=%d WHERE #%d AND rootpage=#%d\x00sqlite_stat%d\x00DELETE FROM %Q.sqlite_sequence WHERE name=%Q\x00DELETE FROM %Q.sqlite_master WHERE tbl_name=%Q and type!='trigger'\x00stat\x00table %s may not be dropped\x00use DROP TABLE to delete table %s\x00use DROP VIEW to delete view %s\x00foreign key on %s should reference only one column of table %T\x00number of columns in foreign key does not match the number of columns in the referenced table\x00unknown column \"%s\" in foreign key definition\x00unsupported use of NULLS %s\x00FIRST\x00LAST\x00index\x00cannot create a TEMP index on non-TEMP table \"%s\"\x00table %s may not be indexed\x00views may not be indexed\x00virtual tables may not be indexed\x00there is already a table named %s\x00index %s already exists\x00sqlite_autoindex_%s_%d\x00expressions prohibited in PRIMARY KEY and UNIQUE constraints\x00conflicting ON CONFLICT clauses specified\x00invalid rootpage\x00CREATE%s INDEX %.*s\x00 UNIQUE\x00INSERT INTO %Q.sqlite_master VALUES('index',%Q,%Q,#%d,%Q);\x00name='%q' AND type='index'\x00no such index: %S\x00index associated with UNIQUE or PRIMARY KEY constraint cannot be dropped\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='index'\x00too many FROM clause terms, max: %d\x00a JOIN clause is required before %s\x00ON\x00USING\x00BEGIN\x00ROLLBACK\x00COMMIT\x00RELEASE\x00unable to open a temporary database file for storing temporary tables\x00index '%q'\x00, \x00%s.rowid\x00unable to identify the object to be reindexed\x00duplicate WITH table name: %s\x00no such collation sequence: %s\x00table %s may not be modified\x00cannot modify %s because it is a view\x00rows deleted\x00integer overflow\x00%.*f\x00LIKE or GLOB pattern too complex\x00ESCAPE expression must be a single character\x00%!.20e\x00%Q\x00?000\x00MATCH\x00like\x00implies_nonnull_row\x00expr_compare\x00expr_implies_expr\x00affinity\x00soundex\x00load_extension\x00sqlite_compileoption_used\x00sqlite_compileoption_get\x00unlikely\x00likelihood\x00likely\x00sqlite_offset\x00ltrim\x00rtrim\x00trim\x00min\x00max\x00typeof\x00subtype\x00length\x00instr\x00printf\x00format\x00unicode\x00char\x00abs\x00round\x00upper\x00lower\x00hex\x00ifnull\x00random\x00randomblob\x00nullif\x00sqlite_version\x00sqlite_source_id\x00sqlite_log\x00quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00glob\x00coalesce\x00ceil\x00ceiling\x00floor\x00trunc\x00ln\x00log\x00log10\x00log2\x00exp\x00pow\x00power\x00mod\x00acos\x00asin\x00atan\x00atan2\x00cos\x00sin\x00tan\x00cosh\x00sinh\x00tanh\x00acosh\x00asinh\x00atanh\x00sqrt\x00radians\x00degrees\x00pi\x00sign\x00iif\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00table %S has %d columns but %d values were supplied\x00%d values for %d columns\x00UPSERT not implemented for virtual table \"%s\"\x00cannot UPSERT a view\x00rows inserted\x00sqlite3_extension_init\x00sqlite3_\x00lib\x00_init\x00no entry point [%s] in shared library [%s]\x00error during initialization: %s\x00unable to open shared library [%.*s]\x00dll\x00automatic extension loading failed: %s\x00seq\x00from\x00to\x00on_update\x00on_delete\x00match\x00cid\x00name\x00type\x00notnull\x00dflt_value\x00pk\x00hidden\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00builtin\x00enc\x00narg\x00flags\x00wdth\x00hght\x00flgs\x00unique\x00origin\x00partial\x00rowid\x00fkid\x00file\x00busy\x00checkpointed\x00database\x00status\x00cache_size\x00timeout\x00analysis_limit\x00application_id\x00auto_vacuum\x00automatic_index\x00busy_timeout\x00cache_spill\x00case_sensitive_like\x00cell_size_check\x00checkpoint_fullfsync\x00collation_list\x00compile_options\x00count_changes\x00data_store_directory\x00data_version\x00database_list\x00default_cache_size\x00defer_foreign_keys\x00empty_result_callbacks\x00encoding\x00foreign_key_check\x00foreign_key_list\x00foreign_keys\x00freelist_count\x00full_column_names\x00fullfsync\x00function_list\x00hard_heap_limit\x00ignore_check_constraints\x00incremental_vacuum\x00index_info\x00index_list\x00index_xinfo\x00integrity_check\x00journal_mode\x00journal_size_limit\x00legacy_alter_table\x00locking_mode\x00max_page_count\x00mmap_size\x00module_list\x00optimize\x00page_count\x00page_size\x00pragma_list\x00query_only\x00quick_check\x00read_uncommitted\x00recursive_triggers\x00reverse_unordered_selects\x00schema_version\x00secure_delete\x00short_column_names\x00shrink_memory\x00soft_heap_limit\x00synchronous\x00table_info\x00table_list\x00table_xinfo\x00temp_store\x00temp_store_directory\x00threads\x00trusted_schema\x00user_version\x00wal_autocheckpoint\x00wal_checkpoint\x00writable_schema\x00onoffalseyestruextrafull\x00normal\x00full\x00incremental\x00memory\x00temporary storage cannot be changed from within a transaction\x00SET NULL\x00SET DEFAULT\x00CASCADE\x00RESTRICT\x00NO ACTION\x00delete\x00persist\x00off\x00truncate\x00wal\x00w\x00a\x00sissii\x00utf8\x00utf16le\x00utf16be\x00-%T\x00fast\x00not a writable directory\x00Safety level may not be changed inside a transaction\x00reset\x00issisii\x00issisi\x00SELECT*FROM\"%w\"\x00shadow\x00sssiii\x00iisX\x00isiX\x00c\x00u\x00isisi\x00iss\x00is\x00iissssss\x00NONE\x00siX\x00*** in database %s ***\n\x00NULL value in %s.%s\x00non-%s value in %s.%s\x00CHECK constraint failed in %s\x00row \x00 missing from index \x00non-unique entry in index \x00wrong # of entries in index \x00ok\x00unsupported encoding: %s\x00restart\x00ANALYZE \"%w\".\"%w\"\x00UTF8\x00UTF-8\x00UTF-16le\x00UTF-16be\x00UTF16le\x00UTF16be\x00UTF-16\x00UTF16\x00CREATE TABLE x\x00%c\"%s\"\x00(\"%s\"\x00,arg HIDDEN\x00,schema HIDDEN\x00PRAGMA \x00%Q.\x00=%Q\x00error in %s %s after %s: %s\x00malformed database schema (%s)\x00%z - %s\x00rename\x00drop column\x00add column\x00orphan index\x00CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)\x00unsupported file format\x00SELECT*FROM\"%w\".%s ORDER BY rowid\x00database schema is locked: %s\x00statement too long\x00unknown or unsupported join type: %T %T%s%T\x00RIGHT and FULL OUTER JOINs are not currently supported\x00naturaleftouterightfullinnercross\x00a NATURAL join may not have an ON or USING clause\x00cannot have both ON and USING clauses in the same join\x00cannot join using column %s - column not present in both tables\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00column%d\x00%.*z:%u\x00cannot use window functions in recursive queries\x00recursive aggregate queries not supported\x00SETUP\x00RECURSIVE STEP\x00SCAN %d CONSTANT ROW%s\x00S\x00COMPOUND QUERY\x00LEFT-MOST SUBQUERY\x00%s USING TEMP B-TREE\x00all VALUES must have the same number of terms\x00SELECTs to the left and right of %s do not have the same number of result columns\x00MERGE (%s)\x00LEFT\x00RIGHT\x00no such index: %s\x00'%s' is not a function\x00no such index: \"%s\"\x00multiple references to recursive table: %s\x00circular reference: %s\x00table %s has %d values for %d columns\x00multiple recursive references: %s\x00recursive reference in a subquery: %s\x00subquery_%u\x00too many references to \"%s\": max 65535\x00access to view \"%s\" prohibited\x00unsafe use of virtual table \"%s\"\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00SCAN %s%s%s\x00 USING COVERING INDEX \x00target object/alias may not appear in FROM clause: %s\x00expected %d columns for '%s' but got %d\x00CO-ROUTINE %!S\x00MATERIALIZE %!S\x00DISTINCT\x00GROUP BY\x00RIGHT PART OF ORDER BY\x00ORDER BY\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00trigger %T already exists\x00cannot create trigger on system table\x00cannot create %s trigger on view: %S\x00BEFORE\x00AFTER\x00cannot create INSTEAD OF trigger on table: %S\x00INSERT INTO %Q.sqlite_master VALUES('trigger',%Q,%Q,0,'CREATE TRIGGER %q')\x00type='trigger' AND name='%q'\x00no such trigger: %S\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='trigger'\x00%s RETURNING is not available on virtual tables\x00DELETE\x00UPDATE\x00RETURNING may not use \"TABLE.*\" wildcards\x00-- TRIGGER %s\x00cannot UPDATE generated column \"%s\"\x00no such column: %s\x00rows updated\x00%r \x00%sON CONFLICT clause does not match any PRIMARY KEY or UNIQUE constraint\x00CRE\x00INS\x00cannot VACUUM from within a transaction\x00cannot VACUUM - SQL statements in progress\x00non-text filename\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00%s %S\x00SEARCH\x00SCAN\x00AUTOMATIC PARTIAL COVERING INDEX\x00AUTOMATIC COVERING INDEX\x00COVERING INDEX %s\x00INDEX %s\x00 USING \x00 USING INTEGER PRIMARY KEY (%s\x00>? AND %s\x00%c?)\x00 VIRTUAL TABLE INDEX %d:%s\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\x00row_number\x00dense_rank\x00rank\x00percent_rank\x00cume_dist\x00ntile\x00last_value\x00nth_value\x00first_value\x00lead\x00lag\x00no such window: %s\x00RANGE with offset PRECEDING/FOLLOWING requires one ORDER BY expression\x00FILTER clause may only be used with aggregate window functions\x00misuse of aggregate: %s()\x00unsupported frame specification\x00PARTITION clause\x00ORDER BY clause\x00frame specification\x00cannot override %s of window: %s\x00DISTINCT is not supported for window functions\x00frame starting offset must be a non-negative integer\x00frame ending offset must be a non-negative integer\x00frame starting offset must be a non-negative number\x00frame ending offset must be a non-negative number\x00%s clause should come after %s not before\x00LIMIT\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\x00not an error\x00SQL logic error\x00access permission denied\x00query aborted\x00database is locked\x00database table is locked\x00attempt to write a readonly database\x00interrupted\x00disk I/O error\x00database disk image is malformed\x00unknown operation\x00database or disk is full\x00unable to open database file\x00locking protocol\x00constraint failed\x00datatype mismatch\x00bad parameter or other API misuse\x00authorization denied\x00column index out of range\x00file is not a database\x00notification message\x00warning message\x00unable to delete/modify user-function due to active statements\x00unable to use function %s in the requested context\x00unknown database: %s\x00unable to delete/modify collation sequence due to active statements\x00file:\x00localhost\x00invalid uri authority: %.*s\x00vfs\x00cache\x00mode\x00access\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\x00shared\x00private\x00ro\x00rw\x00rwc\x00RTRIM\x00\x00\x00\x00%s at line %d of [%.10s]\x00database corruption\x00misuse\x00cannot open file\x00no such table column: %s.%s\x00SQLITE_\x00database is deadlocked\x00array\x00object\x000123456789abcdef\x00JSON cannot hold BLOB values\x00malformed JSON\x00[0]\x00JSON path error near '%q'\x00json_%s() needs an odd number of arguments\x00$[\x00$.\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00[%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"
+ }{Xsqlite3_value_dup})) // sqlite3.c:129296:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1640)) = Xsqlite3_value_free // sqlite3.c:129297:3:
+ *(*func(*libc.TLS, uintptr, U64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1648)) = Xsqlite3_result_zeroblob64 // sqlite3.c:129298:3:
+ *(*func(*libc.TLS, uintptr, int32, Sqlite3_uint64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1656)) = Xsqlite3_bind_zeroblob64 // sqlite3.c:129299:3:
+ *(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1664)) = Xsqlite3_value_subtype // sqlite3.c:129301:3:
+ *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1672)) = Xsqlite3_result_subtype // sqlite3.c:129302:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1680)) = Xsqlite3_status64 // sqlite3.c:129304:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1688)) = Xsqlite3_strlike // sqlite3.c:129305:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1696)) = Xsqlite3_db_cacheflush // sqlite3.c:129306:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1704)) = Xsqlite3_system_errno // sqlite3.c:129308:3:
+ *(*func(*libc.TLS, uintptr, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1712)) = Xsqlite3_trace_v2 // sqlite3.c:129310:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1720)) = Xsqlite3_expanded_sql // sqlite3.c:129311:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1728)) = Xsqlite3_set_last_insert_rowid // sqlite3.c:129313:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1736)) = Xsqlite3_prepare_v3 // sqlite3.c:129315:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1744)) = Xsqlite3_prepare16_v3 // sqlite3.c:129316:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1752)) = Xsqlite3_bind_pointer // sqlite3.c:129317:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1760)) = Xsqlite3_result_pointer // sqlite3.c:129318:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1768)) = Xsqlite3_value_pointer // sqlite3.c:129319:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1776)) = Xsqlite3_vtab_nochange // sqlite3.c:129321:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1784)) = Xsqlite3_value_nochange // sqlite3.c:129322:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1792)) = Xsqlite3_vtab_collation // sqlite3.c:129323:3:
+ *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1800)) = Xsqlite3_keyword_count // sqlite3.c:129325:3:
+ *(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1808)) = Xsqlite3_keyword_name // sqlite3.c:129326:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1816)) = Xsqlite3_keyword_check // sqlite3.c:129327:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1824)) = Xsqlite3_str_new // sqlite3.c:129328:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1832)) = Xsqlite3_str_finish // sqlite3.c:129329:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1840)) = Xsqlite3_str_appendf // sqlite3.c:129330:3:
+ *(*func(*libc.TLS, uintptr, uintptr, Va_list))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1848)) = Xsqlite3_str_vappendf // sqlite3.c:129331:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1856)) = Xsqlite3_str_append // sqlite3.c:129332:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1864)) = Xsqlite3_str_appendall // sqlite3.c:129333:3:
+ *(*func(*libc.TLS, uintptr, int32, int8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1872)) = Xsqlite3_str_appendchar // sqlite3.c:129334:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1880)) = Xsqlite3_str_reset // sqlite3.c:129335:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1888)) = Xsqlite3_str_errcode // sqlite3.c:129336:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1896)) = Xsqlite3_str_length // sqlite3.c:129337:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1904)) = Xsqlite3_str_value // sqlite3.c:129338: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:129340:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1928)) = Xsqlite3_stmt_isexplain // sqlite3.c:129348:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1936)) = Xsqlite3_value_frombind // sqlite3.c:129349:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1944)) = Xsqlite3_drop_modules // sqlite3.c:129352:3:
+ *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1952)) = Xsqlite3_hard_heap_limit64 // sqlite3.c:129357:3:
+ *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1960)) = Xsqlite3_uri_key // sqlite3.c:129358:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1968)) = Xsqlite3_filename_database // sqlite3.c:129359:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1976)) = Xsqlite3_filename_journal // sqlite3.c:129360:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1984)) = Xsqlite3_filename_wal // sqlite3.c:129361:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1992)) = Xsqlite3_create_filename // sqlite3.c:129363:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2000)) = Xsqlite3_free_filename // sqlite3.c:129364:3:
+ *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2008)) = Xsqlite3_database_file_object // sqlite3.c:129365:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2016)) = Xsqlite3_txn_state // sqlite3.c:129367:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2024)) = Xsqlite3_changes64 // sqlite3.c:129369:3:
+ *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2032)) = Xsqlite3_total_changes64 // sqlite3.c:129370:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2040)) = Xsqlite3_autovacuum_pages // sqlite3.c:129372:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2048)) = Xsqlite3_error_offset // sqlite3.c:129374:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2056)) = Xsqlite3_vtab_rhs_value // sqlite3.c:129375:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2064)) = Xsqlite3_vtab_distinct // sqlite3.c:129376:3:
+ *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2072)) = Xsqlite3_vtab_in // sqlite3.c:129377:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2080)) = Xsqlite3_vtab_in_first // sqlite3.c:129378:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2088)) = Xsqlite3_vtab_in_next // sqlite3.c:129379:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 0)) = Xsqlite3Fts5Init // sqlite3.c:168488:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 8)) = Xsqlite3RtreeInit // sqlite3.c:168494:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 16)) = sqlite3TestExtInit // sqlite3.c:168502:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 24)) = Xsqlite3JsonTableFunctions // sqlite3.c:168504:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statGetFuncdef)) + 24)) = statGet // sqlite3.c:111993:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statInitFuncdef)) + 24)) = statInit // sqlite3.c:111569:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statPushFuncdef)) + 24)) = statPush // sqlite3.c:111859:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 40)) = rbuVfsOpen // sqlite3.c:208888:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 48)) = rbuVfsDelete // sqlite3.c:208889:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 56)) = rbuVfsAccess // sqlite3.c:208890:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 64)) = rbuVfsFullPathname // sqlite3.c:208891:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 72)) = rbuVfsDlOpen // sqlite3.c:208894:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 80)) = rbuVfsDlError // sqlite3.c:208895:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 88)) = rbuVfsDlSym // sqlite3.c:208896:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 96)) = rbuVfsDlClose // sqlite3.c:208897:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 104)) = rbuVfsRandomness // sqlite3.c:208902:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 112)) = rbuVfsSleep // sqlite3.c:208903:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 120)) = rbuVfsCurrentTime // sqlite3.c:208904:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 128)) = rbuVfsGetLastError // sqlite3.c:208905:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoMethod)) // sqlite3.c:47549:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 8)) = winClose // sqlite3.c:47502:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 16)) = winRead // sqlite3.c:47503:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 24)) = winWrite // sqlite3.c:47504:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 32)) = winTruncate // sqlite3.c:47505:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 40)) = winSync // sqlite3.c:47506:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 48)) = winFileSize // sqlite3.c:47507:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 56)) = winLock // sqlite3.c:47508:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 64)) = winUnlock // sqlite3.c:47509:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 72)) = winCheckReservedLock // sqlite3.c:47510:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 80)) = winFileControl // sqlite3.c:47511:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 88)) = winSectorSize // sqlite3.c:47512:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 96)) = winDeviceCharacteristics // sqlite3.c:47513:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 104)) = winShmMap // sqlite3.c:47514:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 112)) = winShmLock // sqlite3.c:47515:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 120)) = winShmBarrier // sqlite3.c:47516:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 128)) = winShmUnmap // sqlite3.c:47517:3:
+ *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 136)) = winFetch // sqlite3.c:47518:3:
+ *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 144)) = winUnfetch // sqlite3.c:47519:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 8)) = winClose // sqlite3.c:47528:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 16)) = winRead // sqlite3.c:47529:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 24)) = winWrite // sqlite3.c:47530:3:
+ *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 32)) = winTruncate // sqlite3.c:47531:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 40)) = winSync // sqlite3.c:47532:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 48)) = winFileSize // sqlite3.c:47533:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 56)) = winNolockLock // sqlite3.c:47534:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 64)) = winNolockUnlock // sqlite3.c:47535:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 72)) = winNolockCheckReservedLock // sqlite3.c:47536:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 80)) = winFileControl // sqlite3.c:47537:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 88)) = winSectorSize // sqlite3.c:47538:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 96)) = winDeviceCharacteristics // sqlite3.c:47539:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 104)) = winShmMap // sqlite3.c:47540:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 112)) = winShmLock // sqlite3.c:47541:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 120)) = winShmBarrier // sqlite3.c:47542:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 128)) = winShmUnmap // sqlite3.c:47543:3:
+ *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 136)) = winFetch // sqlite3.c:47544:3:
+ *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 144)) = winUnfetch // sqlite3.c:47545:3:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // sqlite3.c:48999:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 40)) = winOpen // sqlite3.c:49000:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 48)) = winDelete // sqlite3.c:49001:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 56)) = winAccess // sqlite3.c:49002:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 64)) = winFullPathname // sqlite3.c:49003:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 72)) = winDlOpen // sqlite3.c:49004:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 80)) = winDlError // sqlite3.c:49005:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 88)) = winDlSym // sqlite3.c:49006:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 96)) = winDlClose // sqlite3.c:49007:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 104)) = winRandomness // sqlite3.c:49008:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 112)) = winSleep // sqlite3.c:49009:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 120)) = winCurrentTime // sqlite3.c:49010:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 128)) = winGetLastError // sqlite3.c:49011:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:49012:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 144)) = winSetSystemCall // sqlite3.c:49013:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 152)) = winGetSystemCall // sqlite3.c:49014:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 160)) = winNextSystemCall // sqlite3.c:49015:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // sqlite3.c:48949:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 40)) = winOpen // sqlite3.c:48950:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 48)) = winDelete // sqlite3.c:48951:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 56)) = winAccess // sqlite3.c:48952:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 64)) = winFullPathname // sqlite3.c:48953:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 72)) = winDlOpen // sqlite3.c:48954:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 80)) = winDlError // sqlite3.c:48955:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 88)) = winDlSym // sqlite3.c:48956:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 96)) = winDlClose // sqlite3.c:48957:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 104)) = winRandomness // sqlite3.c:48958:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 112)) = winSleep // sqlite3.c:48959:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 120)) = winCurrentTime // sqlite3.c:48960:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 128)) = winGetLastError // sqlite3.c:48961:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:48962:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 144)) = winSetSystemCall // sqlite3.c:48963:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 152)) = winGetSystemCall // sqlite3.c:48964:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 160)) = winNextSystemCall // sqlite3.c:48965:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoNolockMethod)) // sqlite3.c:47555:3:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // sqlite3.c:48974:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 40)) = winOpen // sqlite3.c:48975:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 48)) = winDelete // sqlite3.c:48976:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 56)) = winAccess // sqlite3.c:48977:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 64)) = winFullPathname // sqlite3.c:48978:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 72)) = winDlOpen // sqlite3.c:48979:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 80)) = winDlError // sqlite3.c:48980:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 88)) = winDlSym // sqlite3.c:48981:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 96)) = winDlClose // sqlite3.c:48982:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 104)) = winRandomness // sqlite3.c:48983:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 112)) = winSleep // sqlite3.c:48984:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 120)) = winCurrentTime // sqlite3.c:48985:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 128)) = winGetLastError // sqlite3.c:48986:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:48987:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 144)) = winSetSystemCall // sqlite3.c:48988:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 152)) = winGetSystemCall // sqlite3.c:48989:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 160)) = winNextSystemCall // sqlite3.c:48990:5:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // sqlite3.c:48924:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 40)) = winOpen // sqlite3.c:48925:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 48)) = winDelete // sqlite3.c:48926:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 56)) = winAccess // sqlite3.c:48927:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 64)) = winFullPathname // sqlite3.c:48928:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 72)) = winDlOpen // sqlite3.c:48929:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 80)) = winDlError // sqlite3.c:48930:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 88)) = winDlSym // sqlite3.c:48931:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 96)) = winDlClose // sqlite3.c:48932:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 104)) = winRandomness // sqlite3.c:48933:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 112)) = winSleep // sqlite3.c:48934:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 120)) = winCurrentTime // sqlite3.c:48935:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 128)) = winGetLastError // sqlite3.c:48936:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 136)) = winCurrentTimeInt64 // sqlite3.c:48937:5:
+ *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 144)) = winSetSystemCall // sqlite3.c:48938:5:
+ *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 152)) = winGetSystemCall // sqlite3.c:48939:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 160)) = winNextSystemCall // sqlite3.c:48940:5:
+}
+
+var ts1 = "3.38.1\x00ATOMIC_INTRINSICS=1\x00COMPILER=msvc-1900\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MMAP_SIZE=0\x00DEFAULT_PAGE_SIZE=4096\x00DEFAULT_PCACHE_INITSZ=20\x00DEFAULT_RECURSIVE_TRIGGERS\x00DEFAULT_SECTOR_SIZE=4096\x00DEFAULT_SYNCHRONOUS=2\x00DEFAULT_WAL_AUTOCHECKPOINT=1000\x00DEFAULT_WAL_SYNCHRONOUS=2\x00DEFAULT_WORKER_THREADS=0\x00ENABLE_COLUMN_METADATA\x00ENABLE_FTS5\x00ENABLE_GEOPOLY\x00ENABLE_MATH_FUNCTIONS\x00ENABLE_MEMORY_MANAGEMENT\x00ENABLE_OFFSET_SQL_FUNC\x00ENABLE_PREUPDATE_HOOK\x00ENABLE_RBU\x00ENABLE_RTREE\x00ENABLE_SESSION\x00ENABLE_SNAPSHOT\x00ENABLE_STAT4\x00ENABLE_UNLOCK_NOTIFY\x00LIKE_DOESNT_MATCH_BLOBS\x00MALLOC_SOFT_LIMIT=1024\x00MAX_ATTACHED=10\x00MAX_COLUMN=2000\x00MAX_COMPOUND_SELECT=500\x00MAX_DEFAULT_PAGE_SIZE=8192\x00MAX_EXPR_DEPTH=1000\x00MAX_FUNCTION_ARG=127\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=1073741823\x00MAX_PAGE_SIZE=65536\x00MAX_SQL_LENGTH=1000000000\x00MAX_TRIGGER_DEPTH=1000\x00MAX_VARIABLE_NUMBER=32766\x00MAX_VDBE_OP=250000000\x00MAX_WORKER_THREADS=8\x00MUTEX_NOOP\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00BINARY\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00local time unavailable\x00second\x00minute\x00hour\x00\x00\x00day\x00\x00\x00\x00month\x00\x00year\x00\x00\x00auto\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x00%02d\x00%06.3f\x00%03d\x00%.16g\x00%lld\x00%04d\x00date\x00time\x00datetime\x00strftime\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x000123456789ABCDEF0123456789abcdef\x00-x0\x00X0\x00%\x00NaN\x00Inf\x00\x00NULL\x00(NULL)\x00.\x00SUBQUERY %u\x00thstndrd\x00922337203685477580\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00SorterNext\x00Prev\x00Next\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00Not\x00IfNot\x00IsNullOrType\x00IfNullRow\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00IdxLE\x00IdxGT\x00IdxLT\x00IdxGE\x00Or\x00And\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00Init\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\x00OpenRead\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenWrite\x00OpenDup\x00BitNot\x00OpenAutoindex\x00OpenEphemeral\x00String8\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00DropTrigger\x00Real\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\x00AreFileApisANSI\x00CharLowerW\x00CharUpperW\x00CloseHandle\x00CreateFileA\x00CreateFileW\x00CreateFileMappingA\x00CreateFileMappingW\x00CreateMutexW\x00DeleteFileA\x00DeleteFileW\x00FileTimeToLocalFileTime\x00FileTimeToSystemTime\x00FlushFileBuffers\x00FormatMessageA\x00FormatMessageW\x00FreeLibrary\x00GetCurrentProcessId\x00GetDiskFreeSpaceA\x00GetDiskFreeSpaceW\x00GetFileAttributesA\x00GetFileAttributesW\x00GetFileAttributesExW\x00GetFileSize\x00GetFullPathNameA\x00GetFullPathNameW\x00GetLastError\x00GetProcAddressA\x00GetSystemInfo\x00GetSystemTime\x00GetSystemTimeAsFileTime\x00GetTempPathA\x00GetTempPathW\x00GetTickCount\x00GetVersionExA\x00GetVersionExW\x00HeapAlloc\x00HeapCreate\x00HeapDestroy\x00HeapFree\x00HeapReAlloc\x00HeapSize\x00HeapValidate\x00HeapCompact\x00LoadLibraryA\x00LoadLibraryW\x00LocalFree\x00LockFile\x00LockFileEx\x00MapViewOfFile\x00MultiByteToWideChar\x00QueryPerformanceCounter\x00ReadFile\x00SetEndOfFile\x00SetFilePointer\x00Sleep\x00SystemTimeToFileTime\x00UnlockFile\x00UnlockFileEx\x00UnmapViewOfFile\x00WideCharToMultiByte\x00WriteFile\x00CreateEventExW\x00WaitForSingleObject\x00WaitForSingleObjectEx\x00SetFilePointerEx\x00GetFileInformationByHandleEx\x00MapViewOfFileFromApp\x00CreateFile2\x00LoadPackagedLibrary\x00GetTickCount64\x00GetNativeSystemInfo\x00OutputDebugStringA\x00OutputDebugStringW\x00GetProcessHeap\x00CreateFileMappingFromApp\x00InterlockedCompareExchange\x00UuidCreate\x00UuidCreateSequential\x00FlushViewOfFile\x00%s\x00OsError 0x%lx (%lu)\x00os_win.c:%d: (%lu) %s(%s) - %s\x00delayed %dms for lock/sharing conflict at line %d\x00winSeekFile\x00winClose\x00winRead\x00winWrite1\x00winWrite2\x00winTruncate1\x00winTruncate2\x00winSync1\x00winSync2\x00winFileSize\x00winUnlockReadLock\x00winUnlock\x00winLockSharedMemory\x00%s-shm\x00readonly_shm\x00winOpenShm\x00winShmMap1\x00winShmMap2\x00winShmMap3\x00winUnmapfile1\x00winUnmapfile2\x00winMapfile1\x00winMapfile2\x00etilqs_\x00winGetTempname1\x00winGetTempname2\x00winGetTempname3\x00winGetTempname4\x00winGetTempname5\x00abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\x00exclusive\x00winOpen\x00psow\x00winDelete\x00winAccess\x00%s%c%s\x00winFullPathname1\x00winFullPathname2\x00winFullPathname3\x00winFullPathname4\x00win32\x00win32-longpath\x00win32-none\x00win32-longpath-none\x00memdb\x00memdb(%p,%lld)\x00PRAGMA \"%w\".page_count\x00ATTACH x AS %Q\x00recovered %d pages from %s\x00-journal\x00-wal\x00nolock\x00immutable\x00PRAGMA table_list\x00recovered %d frames from WAL file %s\x00cannot limit WAL size: %s\x00SQLite format 3\x00:memory:\x00@ \x00\n\x00invalid page number %d\x002nd reference to page %d\x00Failed to read ptrmap key=%d\x00Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)\x00failed to get page %d\x00freelist leaf count too big on page %d\x00%s is %d but should be %d\x00size\x00overflow list length\x00Page %u: \x00unable to get the page. error code=%d\x00btreeInitPage() returns error code %d\x00free space corruption\x00On tree page %u cell %d: \x00On page %u at right child: \x00Offset %d out of range %d..%d\x00Extends off end of page\x00Rowid %lld out of order\x00Child page depth differs\x00Multiple uses for byte %u of page %u\x00Fragmentation of %d bytes reported as %d on page %u\x00Main freelist: \x00max rootpage (%d) disagrees with header (%d)\x00incremental_vacuum enabled with a max rootpage of zero\x00Page %d is never used\x00Pointer map page %d is referenced\x00unknown database %s\x00destination database is in use\x00source and destination must be distinct\x00%!.15g\x00-\x00%s%s\x00k(%d\x00B\x00,%s%s%s\x00N.\x00)\x00%.18s-%s\x00%s(%d)\x00%d\x00(blob)\x00vtab:%p\x00%c%u\x00]\x00program\x00?\x008\x0016LE\x0016BE\x00addr\x00opcode\x00p1\x00p2\x00p3\x00p4\x00p5\x00comment\x00id\x00parent\x00notused\x00detail\x00%.4c%s%.16c\x00MJ delete: %s\x00MJ collide: %s\x00-mj%06X9%02X\x00FOREIGN KEY constraint failed\x00a CHECK constraint\x00a generated column\x00an index\x00non-deterministic use of %s() in %s\x00API called with finalized prepared statement\x00API called with NULL prepared statement\x00string or blob too big\x00ValueList\x00bind on a busy prepared statement: [%s]\x00-- \x00'%.*q'\x00zeroblob(%d)\x00x'\x00%02x\x00'\x00%s constraint failed\x00%z: %s\x00abort at %d in [%s]: %s\x00cannot store %s value in %s column %s.%s\x00cannot open savepoint - SQL statements in progress\x00no such savepoint: %s\x00cannot release savepoint - SQL statements in progress\x00cannot commit transaction - SQL statements in progress\x00cannot start a transaction within a transaction\x00cannot rollback - no transaction is active\x00cannot commit - no transaction is active\x00database schema has changed\x00index corruption\x00sqlite_master\x00SELECT*FROM\"%w\".%s WHERE %s ORDER BY rowid\x00too many levels of trigger recursion\x00cannot change %s wal mode from within a transaction\x00into\x00out of\x00database table is locked: %s\x00-- %s\x00statement aborts at %d: [%s] %s\x00NOT NULL\x00UNIQUE\x00CHECK\x00FOREIGN KEY\x00cannot open value of type %s\x00null\x00real\x00integer\x00no such rowid: %lld\x00cannot open virtual table: %s\x00cannot open table without rowid: %s\x00cannot open view: %s\x00no such column: \"%s\"\x00foreign key\x00indexed\x00cannot open %s column for writing\x00main\x00*\x00new\x00old\x00excluded\x00misuse of aliased aggregate %s\x00misuse of aliased window function %s\x00row value misused\x00double-quoted string literal: \"%w\"\x00no such column\x00ambiguous column name\x00%s: %s.%s.%s\x00%s: %s.%s\x00%s: %s\x00partial index WHERE clauses\x00index expressions\x00CHECK constraints\x00generated columns\x00%s prohibited in %s\x00true\x00false\x00the \".\" operator\x00second argument to %#T() must be a constant between 0.0 and 1.0\x00not authorized to use function: %#T\x00non-deterministic functions\x00%#T() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %#T()\x00no such function: %#T\x00wrong number of arguments to function %#T()\x00FILTER may not be used with non-aggregate %#T()\x00subqueries\x00parameters\x00%r %s BY term out of range - should be between 1 and %d\x00too many terms in ORDER BY clause\x00ORDER\x00%r ORDER BY term does not match any column in the result set\x00too many terms in %s BY clause\x00a GROUP BY clause is required before HAVING\x00GROUP\x00aggregate functions are not allowed in the GROUP BY clause\x00Expression tree is too large (maximum depth %d)\x00IN(...) element has %d term%s - expected %d\x00s\x000\x00too many arguments on function %T\x00unsafe use of %#T()\x00variable number must be between ?1 and ?%d\x00too many SQL variables\x00%d columns assigned %d values\x00too many columns in %s\x00_ROWID_\x00ROWID\x00OID\x00USING ROWID SEARCH ON TABLE %s FOR IN-OPERATOR\x00USING INDEX %s FOR IN-OPERATOR\x00sub-select returns %d columns - expected %d\x00REUSE LIST SUBQUERY %d\x00%sLIST SUBQUERY %d\x00CORRELATED \x00REUSE SUBQUERY %d\x00%sSCALAR SUBQUERY %d\x001\x000x\x00hex literal too big: %s%#T\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00none\x00misuse of aggregate: %#T()\x00unknown function: %#T()\x00RAISE() may only be used within a trigger-program\x00B\x00C\x00D\x00E\x00sqlite_\x00table %s may not be altered\x00SELECT 1 FROM \"%w\".sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, %d, %Q, %d)=NULL \x00SELECT 1 FROM temp.sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, 1, %Q, %d)=NULL \x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_quotefix(%Q, sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_quotefix('temp', sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00there is already another table or index with this name: %s\x00table\x00view %s may not be altered\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, %d) WHERE (type!='index' OR tbl_name=%Q COLLATE nocase)AND name NOT LIKE 'sqliteX_%%' ESCAPE 'X'\x00UPDATE %Q.sqlite_master SET tbl_name = %Q, name = CASE WHEN type='table' THEN %Q WHEN name LIKE 'sqliteX_autoindex%%' ESCAPE 'X' AND type='index' THEN 'sqlite_autoindex_' || %Q || substr(name,%d+18) ELSE name END WHERE tbl_name=%Q COLLATE nocase AND (type='table' OR type='index' OR type='trigger');\x00sqlite_sequence\x00UPDATE \"%w\".sqlite_sequence set name = %Q WHERE name = %Q\x00UPDATE sqlite_temp_schema SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, 1), tbl_name = CASE WHEN tbl_name=%Q COLLATE nocase AND sqlite_rename_test(%Q, sql, type, name, 1, 'after rename', 0) THEN %Q ELSE tbl_name END WHERE type IN ('view', 'trigger')\x00after rename\x00SELECT raise(ABORT,%Q) FROM \"%w\".\"%w\"\x00Cannot add a PRIMARY KEY column\x00Cannot add a UNIQUE column\x00Cannot add a REFERENCES column with non-NULL default value\x00Cannot add a NOT NULL column with default value NULL\x00Cannot add a column with non-constant default\x00cannot add a STORED column\x00UPDATE \"%w\".sqlite_master SET sql = printf('%%.%ds, ',sql) || %Q || substr(sql,1+length(printf('%%.%ds',sql))) WHERE type = 'table' AND name = %Q\x00SELECT CASE WHEN quick_check GLOB 'CHECK*' THEN raise(ABORT,'CHECK constraint failed') ELSE raise(ABORT,'NOT NULL constraint failed') END FROM pragma_quick_check(%Q,%Q) WHERE quick_check GLOB 'CHECK*' OR quick_check GLOB 'NULL*'\x00virtual tables may not be altered\x00Cannot add a column to a view\x00sqlite_altertab_%s\x00view\x00virtual table\x00cannot %s %s \"%s\"\x00drop column from\x00rename columns of\x00no such column: \"%T\"\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, %d) WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND (type != 'index' OR tbl_name = %Q)\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, 1) WHERE type IN ('trigger', 'view')\x00error in %s %s%s%s: %s\x00 \x00CREATE \x00\"%w\" \x00%Q%s\x00%.*s%s\x00cannot drop %s column: \"%s\"\x00PRIMARY KEY\x00cannot drop column \"%s\": no other columns exist\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_drop_column(%d, sql, %d) WHERE (type=='table' AND tbl_name=%Q COLLATE nocase)\x00after drop column\x00sqlite_rename_column\x00sqlite_rename_table\x00sqlite_rename_test\x00sqlite_drop_column\x00sqlite_rename_quotefix\x00CREATE TABLE %Q.%s(%s)\x00DELETE FROM %Q.%s WHERE %s=%Q\x00DELETE FROM %Q.%s\x00sqlite_stat1\x00tbl,idx,stat\x00sqlite_stat4\x00tbl,idx,neq,nlt,ndlt,sample\x00sqlite_stat3\x00stat_init\x00stat_push\x00%llu\x00 %llu\x00%llu \x00stat_get\x00sqlite\\_%\x00BBB\x00idx\x00tbl\x00unordered*\x00sz=[0-9]*\x00noskipscan*\x00SELECT idx,count(*) FROM %Q.sqlite_stat4 GROUP BY idx\x00SELECT idx,neq,nlt,ndlt,sample FROM %Q.sqlite_stat4\x00SELECT tbl,idx,stat FROM %Q.sqlite_stat1\x00x\x00\x00too many attached databases - max %d\x00database %s is already in use\x00database is already attached\x00attached databases must use the same text encoding as main database\x00unable to open database: %s\x00no such database: %s\x00cannot detach database %s\x00database %s is locked\x00sqlite_detach\x00sqlite_attach\x00%s cannot use variables\x00%s %T cannot reference objects in database %s\x00authorizer malfunction\x00%s.%s\x00%s.%z\x00access to %z is prohibited\x00not authorized\x00sqlite_temp_schema\x00sqlite_schema\x00sqlite_temp_master\x00pragma_\x00no such view\x00no such table\x00corrupt database\x00unknown database %T\x00object name reserved for internal use: %s\x00temporary table name must be unqualified\x00%s %T already exists\x00there is already an index named %s\x00sqlite_returning\x00cannot use RETURNING in a trigger\x00too many columns on %s\x00always\x00generated\x00duplicate column name: %s\x00default value of column [%s] is not constant\x00cannot use DEFAULT on a generated column\x00generated columns cannot be part of the PRIMARY KEY\x00table \"%s\" has more than one primary key\x00AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY\x00virtual tables cannot use computed columns\x00virtual\x00stored\x00error in generated column \"%s\"\x00,\x00\n \x00,\n \x00\n)\x00CREATE TABLE \x00 TEXT\x00 NUM\x00 INT\x00 REAL\x00unknown datatype for %s.%s: \"%s\"\x00missing datatype for %s.%s\x00AUTOINCREMENT not allowed on WITHOUT ROWID tables\x00PRIMARY KEY missing on table %s\x00must have at least one non-generated column\x00TABLE\x00VIEW\x00CREATE %s %.*s\x00UPDATE %Q.sqlite_master SET type='%s', name=%Q, tbl_name=%Q, rootpage=#%d, sql=%Q WHERE rowid=#%d\x00CREATE TABLE %Q.sqlite_sequence(name,seq)\x00tbl_name='%q' AND type!='trigger'\x00parameters are not allowed in views\x00view %s is circularly defined\x00corrupt schema\x00UPDATE %Q.sqlite_master SET rootpage=%d WHERE #%d AND rootpage=#%d\x00sqlite_stat%d\x00DELETE FROM %Q.sqlite_sequence WHERE name=%Q\x00DELETE FROM %Q.sqlite_master WHERE tbl_name=%Q and type!='trigger'\x00stat\x00table %s may not be dropped\x00use DROP TABLE to delete table %s\x00use DROP VIEW to delete view %s\x00foreign key on %s should reference only one column of table %T\x00number of columns in foreign key does not match the number of columns in the referenced table\x00unknown column \"%s\" in foreign key definition\x00unsupported use of NULLS %s\x00FIRST\x00LAST\x00index\x00cannot create a TEMP index on non-TEMP table \"%s\"\x00table %s may not be indexed\x00views may not be indexed\x00virtual tables may not be indexed\x00there is already a table named %s\x00index %s already exists\x00sqlite_autoindex_%s_%d\x00expressions prohibited in PRIMARY KEY and UNIQUE constraints\x00conflicting ON CONFLICT clauses specified\x00invalid rootpage\x00CREATE%s INDEX %.*s\x00 UNIQUE\x00INSERT INTO %Q.sqlite_master VALUES('index',%Q,%Q,#%d,%Q);\x00name='%q' AND type='index'\x00no such index: %S\x00index associated with UNIQUE or PRIMARY KEY constraint cannot be dropped\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='index'\x00too many FROM clause terms, max: %d\x00a JOIN clause is required before %s\x00ON\x00USING\x00BEGIN\x00ROLLBACK\x00COMMIT\x00RELEASE\x00unable to open a temporary database file for storing temporary tables\x00index '%q'\x00, \x00%s.rowid\x00unable to identify the object to be reindexed\x00duplicate WITH table name: %s\x00no such collation sequence: %s\x00table %s may not be modified\x00cannot modify %s because it is a view\x00rows deleted\x00integer overflow\x00%.*f\x00LIKE or GLOB pattern too complex\x00ESCAPE expression must be a single character\x00%!.20e\x00%Q\x00?000\x00MATCH\x00like\x00implies_nonnull_row\x00expr_compare\x00expr_implies_expr\x00affinity\x00soundex\x00load_extension\x00sqlite_compileoption_used\x00sqlite_compileoption_get\x00unlikely\x00likelihood\x00likely\x00sqlite_offset\x00ltrim\x00rtrim\x00trim\x00min\x00max\x00typeof\x00subtype\x00length\x00instr\x00printf\x00format\x00unicode\x00char\x00abs\x00round\x00upper\x00lower\x00hex\x00ifnull\x00random\x00randomblob\x00nullif\x00sqlite_version\x00sqlite_source_id\x00sqlite_log\x00quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00glob\x00coalesce\x00ceil\x00ceiling\x00floor\x00trunc\x00ln\x00log\x00log10\x00log2\x00exp\x00pow\x00power\x00mod\x00acos\x00asin\x00atan\x00atan2\x00cos\x00sin\x00tan\x00cosh\x00sinh\x00tanh\x00acosh\x00asinh\x00atanh\x00sqrt\x00radians\x00degrees\x00pi\x00sign\x00iif\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00table %S has %d columns but %d values were supplied\x00%d values for %d columns\x00UPSERT not implemented for virtual table \"%s\"\x00cannot UPSERT a view\x00rows inserted\x00sqlite3_extension_init\x00sqlite3_\x00lib\x00_init\x00no entry point [%s] in shared library [%s]\x00error during initialization: %s\x00unable to open shared library [%.*s]\x00dll\x00automatic extension loading failed: %s\x00seq\x00from\x00to\x00on_update\x00on_delete\x00match\x00cid\x00name\x00type\x00notnull\x00dflt_value\x00pk\x00hidden\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00builtin\x00enc\x00narg\x00flags\x00wdth\x00hght\x00flgs\x00unique\x00origin\x00partial\x00rowid\x00fkid\x00file\x00busy\x00checkpointed\x00database\x00status\x00cache_size\x00timeout\x00analysis_limit\x00application_id\x00auto_vacuum\x00automatic_index\x00busy_timeout\x00cache_spill\x00case_sensitive_like\x00cell_size_check\x00checkpoint_fullfsync\x00collation_list\x00compile_options\x00count_changes\x00data_store_directory\x00data_version\x00database_list\x00default_cache_size\x00defer_foreign_keys\x00empty_result_callbacks\x00encoding\x00foreign_key_check\x00foreign_key_list\x00foreign_keys\x00freelist_count\x00full_column_names\x00fullfsync\x00function_list\x00hard_heap_limit\x00ignore_check_constraints\x00incremental_vacuum\x00index_info\x00index_list\x00index_xinfo\x00integrity_check\x00journal_mode\x00journal_size_limit\x00legacy_alter_table\x00locking_mode\x00max_page_count\x00mmap_size\x00module_list\x00optimize\x00page_count\x00page_size\x00pragma_list\x00query_only\x00quick_check\x00read_uncommitted\x00recursive_triggers\x00reverse_unordered_selects\x00schema_version\x00secure_delete\x00short_column_names\x00shrink_memory\x00soft_heap_limit\x00synchronous\x00table_info\x00table_list\x00table_xinfo\x00temp_store\x00temp_store_directory\x00threads\x00trusted_schema\x00user_version\x00wal_autocheckpoint\x00wal_checkpoint\x00writable_schema\x00onoffalseyestruextrafull\x00normal\x00full\x00incremental\x00memory\x00temporary storage cannot be changed from within a transaction\x00SET NULL\x00SET DEFAULT\x00CASCADE\x00RESTRICT\x00NO ACTION\x00delete\x00persist\x00off\x00truncate\x00wal\x00w\x00a\x00sissii\x00utf8\x00utf16le\x00utf16be\x00-%T\x00fast\x00not a writable directory\x00Safety level may not be changed inside a transaction\x00reset\x00issisii\x00issisi\x00SELECT*FROM\"%w\"\x00shadow\x00sssiii\x00iisX\x00isiX\x00c\x00u\x00isisi\x00iss\x00is\x00iissssss\x00NONE\x00siX\x00*** in database %s ***\n\x00NULL value in %s.%s\x00non-%s value in %s.%s\x00CHECK constraint failed in %s\x00row \x00 missing from index \x00non-unique entry in index \x00wrong # of entries in index \x00ok\x00unsupported encoding: %s\x00restart\x00ANALYZE \"%w\".\"%w\"\x00UTF8\x00UTF-8\x00UTF-16le\x00UTF-16be\x00UTF16le\x00UTF16be\x00UTF-16\x00UTF16\x00CREATE TABLE x\x00%c\"%s\"\x00(\"%s\"\x00,arg HIDDEN\x00,schema HIDDEN\x00PRAGMA \x00%Q.\x00=%Q\x00error in %s %s after %s: %s\x00malformed database schema (%s)\x00%z - %s\x00rename\x00drop column\x00add column\x00orphan index\x00CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)\x00unsupported file format\x00SELECT*FROM\"%w\".%s ORDER BY rowid\x00database schema is locked: %s\x00statement too long\x00unknown or unsupported join type: %T %T%s%T\x00RIGHT and FULL OUTER JOINs are not currently supported\x00naturaleftouterightfullinnercross\x00a NATURAL join may not have an ON or USING clause\x00cannot have both ON and USING clauses in the same join\x00cannot join using column %s - column not present in both tables\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00column%d\x00%.*z:%u\x00cannot use window functions in recursive queries\x00recursive aggregate queries not supported\x00SETUP\x00RECURSIVE STEP\x00SCAN %d CONSTANT ROW%s\x00S\x00COMPOUND QUERY\x00LEFT-MOST SUBQUERY\x00%s USING TEMP B-TREE\x00all VALUES must have the same number of terms\x00SELECTs to the left and right of %s do not have the same number of result columns\x00MERGE (%s)\x00LEFT\x00RIGHT\x00no such index: %s\x00'%s' is not a function\x00no such index: \"%s\"\x00multiple references to recursive table: %s\x00circular reference: %s\x00table %s has %d values for %d columns\x00multiple recursive references: %s\x00recursive reference in a subquery: %s\x00subquery_%u\x00too many references to \"%s\": max 65535\x00access to view \"%s\" prohibited\x00unsafe use of virtual table \"%s\"\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00SCAN %s%s%s\x00 USING COVERING INDEX \x00target object/alias may not appear in FROM clause: %s\x00expected %d columns for '%s' but got %d\x00CO-ROUTINE %!S\x00MATERIALIZE %!S\x00DISTINCT\x00GROUP BY\x00RIGHT PART OF ORDER BY\x00ORDER BY\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00trigger %T already exists\x00cannot create trigger on system table\x00cannot create %s trigger on view: %S\x00BEFORE\x00AFTER\x00cannot create INSTEAD OF trigger on table: %S\x00INSERT INTO %Q.sqlite_master VALUES('trigger',%Q,%Q,0,'CREATE TRIGGER %q')\x00type='trigger' AND name='%q'\x00no such trigger: %S\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='trigger'\x00%s RETURNING is not available on virtual tables\x00DELETE\x00UPDATE\x00RETURNING may not use \"TABLE.*\" wildcards\x00-- TRIGGER %s\x00cannot UPDATE generated column \"%s\"\x00no such column: %s\x00rows updated\x00%r \x00%sON CONFLICT clause does not match any PRIMARY KEY or UNIQUE constraint\x00CRE\x00INS\x00cannot VACUUM from within a transaction\x00cannot VACUUM - SQL statements in progress\x00non-text filename\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00%s %S\x00SEARCH\x00SCAN\x00AUTOMATIC PARTIAL COVERING INDEX\x00AUTOMATIC COVERING INDEX\x00COVERING INDEX %s\x00INDEX %s\x00 USING \x00 USING INTEGER PRIMARY KEY (%s\x00>? AND %s\x00%c?)\x00 VIRTUAL TABLE INDEX %d:%s\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\x00row_number\x00dense_rank\x00rank\x00percent_rank\x00cume_dist\x00ntile\x00last_value\x00nth_value\x00first_value\x00lead\x00lag\x00no such window: %s\x00RANGE with offset PRECEDING/FOLLOWING requires one ORDER BY expression\x00FILTER clause may only be used with aggregate window functions\x00misuse of aggregate: %s()\x00unsupported frame specification\x00PARTITION clause\x00ORDER BY clause\x00frame specification\x00cannot override %s of window: %s\x00DISTINCT is not supported for window functions\x00frame starting offset must be a non-negative integer\x00frame ending offset must be a non-negative integer\x00frame starting offset must be a non-negative number\x00frame ending offset must be a non-negative number\x00%s clause should come after %s not before\x00LIMIT\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\x00not an error\x00SQL logic error\x00access permission denied\x00query aborted\x00database is locked\x00database table is locked\x00attempt to write a readonly database\x00interrupted\x00disk I/O error\x00database disk image is malformed\x00unknown operation\x00database or disk is full\x00unable to open database file\x00locking protocol\x00constraint failed\x00datatype mismatch\x00bad parameter or other API misuse\x00authorization denied\x00column index out of range\x00file is not a database\x00notification message\x00warning message\x00unable to delete/modify user-function due to active statements\x00unable to use function %s in the requested context\x00unknown database: %s\x00unable to delete/modify collation sequence due to active statements\x00file:\x00localhost\x00invalid uri authority: %.*s\x00vfs\x00cache\x00mode\x00access\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\x00shared\x00private\x00ro\x00rw\x00rwc\x00RTRIM\x00\x00\x00\x00%s at line %d of [%.10s]\x00database corruption\x00misuse\x00cannot open file\x00no such table column: %s.%s\x00SQLITE_\x00database is deadlocked\x00array\x00object\x000123456789abcdef\x00JSON cannot hold BLOB values\x00malformed JSON\x00[0]\x00JSON path error near '%q'\x00json_%s() needs an odd number of arguments\x00$[\x00$.\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00[%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-03-12 13:37:29 38c210fdd258658321c85ec9c01a072fda3ada94540e3239d29b34dc547a8cbc\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-03-12 13:37:29 38c210fdd258658321c85ec9c01a072fda3ada94540e3239d29b34dc547a8cbc\x00"
var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data