summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/sqlite/lib/sqlite_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/sqlite/lib/sqlite_windows.go')
-rw-r--r--vendor/modernc.org/sqlite/lib/sqlite_windows.go4238
1 files changed, 2150 insertions, 2088 deletions
diff --git a/vendor/modernc.org/sqlite/lib/sqlite_windows.go b/vendor/modernc.org/sqlite/lib/sqlite_windows.go
index d254f6e59..3e7cb1c8d 100644
--- a/vendor/modernc.org/sqlite/lib/sqlite_windows.go
+++ b/vendor/modernc.org/sqlite/lib/sqlite_windows.go
@@ -17501,7 +17501,7 @@ const SQLITE_SHM_SHARED = 4
const SQLITE_SHM_UNLOCK = 1
const SQLITE_SORTER_PMASZ = 250
const SQLITE_SOUNDEX = 1
-const SQLITE_SOURCE_ID = "2025-06-06 14:52:32 b77dc5e0f596d2140d9ac682b2893ff65d3a4140aa86067a3efebe29dc914c95"
+const SQLITE_SOURCE_ID = "2025-07-17 13:25:10 3ce993b8657d6d9deda380a93cdd6404a8c8ba1b185b2bc423703e41ae5f2543"
const SQLITE_SO_ASC = 0
const SQLITE_SO_DESC = 1
const SQLITE_SO_UNDEFINED = -1
@@ -17612,8 +17612,8 @@ const SQLITE_UTF16LE = 2
const SQLITE_UTF16NATIVE = 2
const SQLITE_UTF16_ALIGNED = 8
const SQLITE_UTF8 = 1
-const SQLITE_VERSION = "3.50.1"
-const SQLITE_VERSION_NUMBER = 3050001
+const SQLITE_VERSION = "3.50.3"
+const SQLITE_VERSION_NUMBER = 3050003
const SQLITE_VTABRISK_High = 2
const SQLITE_VTABRISK_Low = 0
const SQLITE_VTABRISK_Normal = 1
@@ -23908,7 +23908,7 @@ type sqlite3_module1 = Tsqlite3_module1
** virtual table and might not be checked again by the byte code.)^ ^(The
** aConstraintUsage[].omit flag is an optimization hint. When the omit flag
** is left in its default setting of false, the constraint will always be
-** checked separately in byte code. If the omit flag is change to true, then
+** checked separately in byte code. If the omit flag is changed to true, then
** the constraint may or may not be checked in byte code. In other words,
** when the omit flag is true there is no guarantee that the constraint will
** not be checked again using byte code.)^
@@ -23934,7 +23934,7 @@ type sqlite3_module1 = Tsqlite3_module1
** The xBestIndex method may optionally populate the idxFlags field with a
** mask of SQLITE_INDEX_SCAN_* flags. One such flag is
** [SQLITE_INDEX_SCAN_HEX], which if set causes the [EXPLAIN QUERY PLAN]
-** output to show the idxNum has hex instead of as decimal. Another flag is
+** output to show the idxNum as hex instead of as decimal. Another flag is
** SQLITE_INDEX_SCAN_UNIQUE, which if set indicates that the query plan will
** return at most one row.
**
@@ -24237,9 +24237,9 @@ type sqlite3_pcache_page1 = Tsqlite3_pcache_page1
// ** SQLite will typically create one cache instance for each open database file,
// ** though this is not guaranteed. ^The
// ** first parameter, szPage, is the size in bytes of the pages that must
-// ** be allocated by the cache. ^szPage will always a power of two. ^The
+// ** be allocated by the cache. ^szPage will always be a power of two. ^The
// ** second parameter szExtra is a number of bytes of extra storage
-// ** associated with each page cache entry. ^The szExtra parameter will
+// ** associated with each page cache entry. ^The szExtra parameter will be
// ** a number less than 250. SQLite will use the
// ** extra szExtra bytes on each page to store metadata about the underlying
// ** database page on disk. The value passed into szExtra depends
@@ -24247,17 +24247,17 @@ type sqlite3_pcache_page1 = Tsqlite3_pcache_page1
// ** ^The third argument to xCreate(), bPurgeable, is true if the cache being
// ** created will be used to cache database pages of a file stored on disk, or
// ** false if it is used for an in-memory database. The cache implementation
-// ** does not have to do anything special based with the value of bPurgeable;
+// ** does not have to do anything special based upon the value of bPurgeable;
// ** it is purely advisory. ^On a cache where bPurgeable is false, SQLite will
// ** never invoke xUnpin() except to deliberately delete a page.
// ** ^In other words, calls to xUnpin() on a cache with bPurgeable set to
// ** false will always have the "discard" flag set to true.
-// ** ^Hence, a cache created with bPurgeable false will
+// ** ^Hence, a cache created with bPurgeable set to false will
// ** never contain any unpinned pages.
// **
// ** [[the xCachesize() page cache method]]
// ** ^(The xCachesize() method may be called at any time by SQLite to set the
-// ** suggested maximum cache-size (number of pages stored by) the cache
+// ** suggested maximum cache-size (number of pages stored) for the cache
// ** instance passed as the first argument. This is the value configured using
// ** the SQLite "[PRAGMA cache_size]" command.)^ As with the bPurgeable
// ** parameter, the implementation is not required to do anything with this
@@ -24284,12 +24284,12 @@ type sqlite3_pcache_page1 = Tsqlite3_pcache_page1
// ** implementation must return a pointer to the page buffer with its content
// ** intact. If the requested page is not already in the cache, then the
// ** cache implementation should use the value of the createFlag
-// ** parameter to help it determined what action to take:
+// ** parameter to help it determine what action to take:
// **
// ** <table border=1 width=85% align=center>
// ** <tr><th> createFlag <th> Behavior when page is not already in cache
// ** <tr><td> 0 <td> Do not allocate a new page. Return NULL.
-// ** <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so.
+// ** <tr><td> 1 <td> Allocate a new page if it is easy and convenient to do so.
// ** Otherwise return NULL.
// ** <tr><td> 2 <td> Make every effort to allocate a new page. Only return
// ** NULL if allocating a new page is effectively impossible.
@@ -24306,7 +24306,7 @@ type sqlite3_pcache_page1 = Tsqlite3_pcache_page1
// ** as its second argument. If the third parameter, discard, is non-zero,
// ** then the page must be evicted from the cache.
// ** ^If the discard parameter is
-// ** zero, then the page may be discarded or retained at the discretion of
+// ** zero, then the page may be discarded or retained at the discretion of the
// ** page cache implementation. ^The page cache implementation
// ** may choose to evict unpinned pages at any time.
// **
@@ -24324,7 +24324,7 @@ type sqlite3_pcache_page1 = Tsqlite3_pcache_page1
// ** When SQLite calls the xTruncate() method, the cache must discard all
// ** existing cache entries with page numbers (keys) greater than or equal
// ** to the value of the iLimit parameter passed to xTruncate(). If any
-// ** of these pages are pinned, they are implicitly unpinned, meaning that
+// ** of these pages are pinned, they become implicitly unpinned, meaning that
// ** they can be safely discarded.
// **
// ** [[the xDestroy() page cache method]]
@@ -24475,7 +24475,7 @@ type sqlite3_snapshot = Tsqlite3_snapshot
/*
** CAPI3REF: Flags for sqlite3_deserialize()
**
-** The following are allowed values for 6th argument (the F argument) to
+** The following are allowed values for the 6th argument (the F argument) to
** the [sqlite3_deserialize(D,S,P,N,M,F)] interface.
**
** The SQLITE_DESERIALIZE_FREEONCLOSE means that the database serialization
@@ -26520,7 +26520,7 @@ type BusyHandler1 = TBusyHandler1
type TAggInfo = struct {
FdirectMode Tu8
FuseSortingIdx Tu8
- FnSortingColumn Tu16
+ FnSortingColumn Tu32
FsortingIdx int32
FsortingIdxPTab int32
FiFirstReg int32
@@ -29184,7 +29184,7 @@ type Token1 = TToken1
type TAggInfo1 = struct {
FdirectMode Tu8
FuseSortingIdx Tu8
- FnSortingColumn Tu16
+ FnSortingColumn Tu32
FsortingIdx int32
FsortingIdxPTab int32
FiFirstReg int32
@@ -32178,7 +32178,7 @@ func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uin
var pMutex, v1 uintptr
_, _ = pMutex, v1
if op < 0 || op >= int32(libc.Uint64FromInt64(80)/libc.Uint64FromInt64(8)) {
- return _sqlite3MisuseError(tls, int32(24453))
+ return _sqlite3MisuseError(tls, int32(24454))
}
if _statMutex[op] != 0 {
v1 = _sqlite3Pcache1Mutex(tls)
@@ -35457,7 +35457,10 @@ func init() {
// ** Initialize the mutex system.
// */
var mu sync.Mutex
- func _sqlite3MutexInit(tls *libc.TLS) (r int32) { mu.Lock(); defer mu.Unlock();
+
+func _sqlite3MutexInit(tls *libc.TLS) (r int32) {
+ mu.Lock()
+ defer mu.Unlock()
var pFrom, pTo uintptr
var rc int32
_, _, _ = pFrom, pTo, rc
@@ -101080,7 +101083,7 @@ func _winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Tsqlite3_int64) (r int32
rc = _winHandleSeek(tls, (*TwinFile)(unsafe.Pointer(pFile)).Fh, iOffset)
if rc != SQLITE_OK {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- _winLogErrorAtLine(tls, rc, (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4933, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(49989))
+ _winLogErrorAtLine(tls, rc, (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4933, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(49990))
}
return rc
}
@@ -101128,7 +101131,7 @@ func _winClose(tls *libc.TLS, id uintptr) (r int32) {
if rc != 0 {
v5 = SQLITE_OK
} else {
- v5 = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(16)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+4945, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50059))
+ v5 = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(16)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+4945, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50060))
}
return v5
}
@@ -101174,9 +101177,9 @@ func _winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Tsqlite
continue
}
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = *(*TDWORD)(unsafe.Pointer(bp + 40))
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(1)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4954, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50127))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(1)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4954, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50128))
}
- _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36)), int32(50130))
+ _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36)), int32(50131))
if *(*TDWORD)(unsafe.Pointer(bp + 32)) < uint32(amt) {
/* Unread parts of the buffer must be zero-filled */
libc.Xmemset(tls, pBuf+uintptr(*(*TDWORD)(unsafe.Pointer(bp + 32))), 0, uint64(uint32(amt)-*(*TDWORD)(unsafe.Pointer(bp + 32))))
@@ -101234,11 +101237,11 @@ func _winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Tsqlit
}
if rc != 0 {
if (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno == uint32(39) || (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno == uint32(112) {
- return _winLogErrorAtLine(tls, int32(SQLITE_FULL), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4962, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50239))
+ return _winLogErrorAtLine(tls, int32(SQLITE_FULL), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4962, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50240))
}
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4972, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50244))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4972, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50245))
} else {
- _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp)), int32(50247))
+ _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp)), int32(50248))
}
return SQLITE_OK
}
@@ -101346,7 +101349,7 @@ func _winTruncate(tls *libc.TLS, id uintptr, nByte Tsqlite3_int64) (r int32) {
_winUnmapfile(tls, pFile)
/* SetEndOfFile() returns non-zero when successful, or zero when it fails. */
if _winSeekFile(tls, pFile, nByte) != 0 {
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4982, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50364))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4982, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50365))
} else {
if v2 = 0 == (*(*func(*libc.TLS, THANDLE) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(53)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFile)).Fh); v2 {
v1 = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
@@ -101354,7 +101357,7 @@ func _winTruncate(tls *libc.TLS, id uintptr, nByte Tsqlite3_int64) (r int32) {
}
if v2 && v1 != uint32(1224) {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4995, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50369))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+4995, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50370))
}
}
if rc == SQLITE_OK && oldMmapSize > 0 {
@@ -101393,7 +101396,7 @@ func _winSync(tls *libc.TLS, id uintptr, flags int32) (r int32) {
if (*(*func(*libc.TLS, TLPCVOID, TSIZE_T) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(79)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFile)).FpMapRegion, uint64(0)) != 0 {
} else {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5008, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50461))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5008, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50462))
}
}
rc = (*(*func(*libc.TLS, THANDLE) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(13)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFile)).Fh)
@@ -101401,7 +101404,7 @@ func _winSync(tls *libc.TLS, id uintptr, flags int32) (r int32) {
return SQLITE_OK
} else {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(4)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5017, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50476))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(4)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5017, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50477))
}
return r
}
@@ -101430,7 +101433,7 @@ func _winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) (r int32) {
}
if v2 && v1 != uint32(0) {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(7)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5026, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50517))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(7)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5026, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50518))
}
return rc
}
@@ -101507,7 +101510,7 @@ func _winUnlockReadLock(tls *libc.TLS, pFile uintptr) (r int32) {
}
if v2 && v1 != uint32(158) {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno
- _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(8)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5038, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50613))
+ _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(8)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5038, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50614))
}
return res
}
@@ -101709,7 +101712,7 @@ func _winUnlock(tls *libc.TLS, id uintptr, locktype int32) (r int32) {
if locktype == int32(SHARED_LOCK) && !(_winGetReadLock(tls, pFile, 0) != 0) {
/* This should never happen. We should always be able to
** reacquire the read lock */
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(8)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5056, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50855))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(8)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5056, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(50856))
}
}
if type1 >= int32(RESERVED_LOCK) {
@@ -102212,7 +102215,7 @@ func _winHandleOpen(tls *libc.TLS, zUtf8 uintptr, pbReadonly uintptr, ph uintptr
*(*int32)(unsafe.Pointer(bp)) = int32(1)
rc = _winHandleOpen(tls, zUtf8, bp, bp+8)
} else {
- rc = _sqlite3CantopenError(tls, int32(51496))
+ rc = _sqlite3CantopenError(tls, int32(51497))
}
}
goto winopenfile_out
@@ -102504,7 +102507,7 @@ func _winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrit
*/
rc = _winHandleSize(tls, hShared, bp)
if rc != SQLITE_OK {
- rc = _winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5086, (*TwinFile)(unsafe.Pointer(pDbFd)).FzPath, int32(51822))
+ rc = _winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5086, (*TwinFile)(unsafe.Pointer(pDbFd)).FzPath, int32(51823))
goto shmpage_out
}
if *(*Tsqlite3_int64)(unsafe.Pointer(bp)) < int64(nByte) {
@@ -102518,7 +102521,7 @@ func _winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrit
}
rc = _winHandleTruncate(tls, hShared, int64(nByte))
if rc != SQLITE_OK {
- rc = _winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5097, (*TwinFile)(unsafe.Pointer(pDbFd)).FzPath, int32(51835))
+ rc = _winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5097, (*TwinFile)(unsafe.Pointer(pDbFd)).FzPath, int32(51836))
goto shmpage_out
}
}
@@ -102544,7 +102547,7 @@ func _winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrit
}
if !(pMap != 0) {
(*TwinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(21)<<libc.Int32FromInt32(8), (*TwinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno, __ccgo_ts+5108, (*TwinFile)(unsafe.Pointer(pDbFd)).FzPath, int32(51888))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(21)<<libc.Int32FromInt32(8), (*TwinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno, __ccgo_ts+5108, (*TwinFile)(unsafe.Pointer(pDbFd)).FzPath, int32(51889))
if hMap != 0 {
(*(*func(*libc.TLS, THANDLE) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(3)].FpCurrent})))(tls, hMap)
}
@@ -102582,7 +102585,7 @@ func _winUnmapfile(tls *libc.TLS, pFile uintptr) (r int32) {
if (*TwinFile)(unsafe.Pointer(pFile)).FpMapRegion != 0 {
if !((*(*func(*libc.TLS, TLPCVOID) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(59)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFile)).FpMapRegion) != 0) {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5119, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(51939))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5119, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(51940))
}
(*TwinFile)(unsafe.Pointer(pFile)).FpMapRegion = uintptr(0)
(*TwinFile)(unsafe.Pointer(pFile)).FmmapSize = 0
@@ -102590,7 +102593,7 @@ func _winUnmapfile(tls *libc.TLS, pFile uintptr) (r int32) {
if (*TwinFile)(unsafe.Pointer(pFile)).FhMap != libc.UintptrFromInt32(0) {
if !((*(*func(*libc.TLS, THANDLE) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(3)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFile)).FhMap) != 0) {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5133, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(51950))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5133, (*TwinFile)(unsafe.Pointer(pFile)).FzPath, int32(51951))
}
(*TwinFile)(unsafe.Pointer(pFile)).FhMap = libc.UintptrFromInt32(0)
}
@@ -102648,7 +102651,7 @@ func _winMapfile(tls *libc.TLS, pFd uintptr, nByte Tsqlite3_int64) (r int32) {
(*TwinFile)(unsafe.Pointer(pFd)).FhMap = (*(*func(*libc.TLS, THANDLE, TLPSECURITY_ATTRIBUTES, TDWORD, TDWORD, TDWORD, TLPCWSTR) THANDLE)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(7)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFd)).Fh, libc.UintptrFromInt32(0), protect, uint32(*(*Tsqlite3_int64)(unsafe.Pointer(bp))>>libc.Int32FromInt32(32)&libc.Int64FromUint32(0xffffffff)), uint32(*(*Tsqlite3_int64)(unsafe.Pointer(bp))&libc.Int64FromUint32(0xffffffff)), libc.UintptrFromInt32(0))
if (*TwinFile)(unsafe.Pointer(pFd)).FhMap == libc.UintptrFromInt32(0) {
(*TwinFile)(unsafe.Pointer(pFd)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFd)).FlastErrno, __ccgo_ts+5147, (*TwinFile)(unsafe.Pointer(pFd)).FzPath, int32(52027))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFd)).FlastErrno, __ccgo_ts+5147, (*TwinFile)(unsafe.Pointer(pFd)).FzPath, int32(52028))
/* Log the error, but continue normal operation using xRead/xWrite */
return SQLITE_OK
}
@@ -102657,7 +102660,7 @@ func _winMapfile(tls *libc.TLS, pFd uintptr, nByte Tsqlite3_int64) (r int32) {
(*(*func(*libc.TLS, THANDLE) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(3)].FpCurrent})))(tls, (*TwinFile)(unsafe.Pointer(pFd)).FhMap)
(*TwinFile)(unsafe.Pointer(pFd)).FhMap = libc.UintptrFromInt32(0)
(*TwinFile)(unsafe.Pointer(pFd)).FlastErrno = (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls)
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFd)).FlastErrno, __ccgo_ts+5159, (*TwinFile)(unsafe.Pointer(pFd)).FzPath, int32(52045))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(24)<<libc.Int32FromInt32(8), (*TwinFile)(unsafe.Pointer(pFd)).FlastErrno, __ccgo_ts+5159, (*TwinFile)(unsafe.Pointer(pFd)).FzPath, int32(52046))
/* Log the error, but continue normal operation using xRead/xWrite */
return SQLITE_OK
}
@@ -102922,7 +102925,7 @@ func _winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) (r int32) {
if int64(nDirLen) > nDir {
Xsqlite3_mutex_leave(tls, _sqlite3MutexAlloc(tls, int32(SQLITE_MUTEX_STATIC_VFS1)))
Xsqlite3_free(tls, zBuf)
- return _winLogErrorAtLine(tls, int32(SQLITE_ERROR), uint32(0), __ccgo_ts+5179, uintptr(0), int32(52320))
+ return _winLogErrorAtLine(tls, int32(SQLITE_ERROR), uint32(0), __ccgo_ts+5179, uintptr(0), int32(52321))
}
Xsqlite3_snprintf(tls, int32(nMax), zBuf, __ccgo_ts+4829, libc.VaList(bp+8, Xsqlite3_temp_directory))
}
@@ -102937,7 +102940,7 @@ func _winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) (r int32) {
if (*(*func(*libc.TLS, TDWORD, TLPWSTR) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(32)].FpCurrent})))(tls, uint32(nMax), zWidePath) == uint32(0) {
Xsqlite3_free(tls, zWidePath)
Xsqlite3_free(tls, zBuf)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(25)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5195, uintptr(0), int32(52388))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(25)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5195, uintptr(0), int32(52389))
}
zMulti = _winUnicodeToUtf8(tls, zWidePath)
if zMulti != 0 {
@@ -102957,7 +102960,7 @@ func _winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) (r int32) {
}
if (*(*func(*libc.TLS, TDWORD, TLPSTR) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(31)].FpCurrent})))(tls, uint32(nMax), zMbcsPath) == uint32(0) {
Xsqlite3_free(tls, zBuf)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(25)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5211, uintptr(0), int32(52415))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(25)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5211, uintptr(0), int32(52416))
}
zUtf8 = _winMbcsToUtf8(tls, zMbcsPath, (*(*func(*libc.TLS) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[0].FpCurrent})))(tls))
if zUtf8 != 0 {
@@ -102976,7 +102979,7 @@ func _winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) (r int32) {
*/
if !(_winMakeEndInDirSep(tls, int32(nDir+int64(1)), zBuf) != 0) {
Xsqlite3_free(tls, zBuf)
- return _winLogErrorAtLine(tls, int32(SQLITE_ERROR), uint32(0), __ccgo_ts+5227, uintptr(0), int32(52439))
+ return _winLogErrorAtLine(tls, int32(SQLITE_ERROR), uint32(0), __ccgo_ts+5227, uintptr(0), int32(52440))
}
/*
** Check that the output buffer is large enough for the temporary file
@@ -102992,7 +102995,7 @@ func _winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) (r int32) {
nLen = int64(_sqlite3Strlen30(tls, zBuf))
if nLen+int64(nPre)+int64(17) > nBuf {
Xsqlite3_free(tls, zBuf)
- return _winLogErrorAtLine(tls, int32(SQLITE_ERROR), uint32(0), __ccgo_ts+5243, uintptr(0), int32(52457))
+ return _winLogErrorAtLine(tls, int32(SQLITE_ERROR), uint32(0), __ccgo_ts+5243, uintptr(0), int32(52458))
}
Xsqlite3_snprintf(tls, int32(nBuf-int64(16)-nLen), zBuf+uintptr(nLen), __ccgo_ts+5171, 0)
j = uint64(_sqlite3Strlen30(tls, zBuf))
@@ -103198,7 +103201,7 @@ func _winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int3
}
}
}
- _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 4)), int32(52756))
+ _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 4)), int32(52757))
if h == uintptr(int64(-libc.Int32FromInt32(1))) {
Xsqlite3_free(tls, zConverted)
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
@@ -103206,8 +103209,8 @@ func _winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int3
return _winOpen(tls, pVfs, zName, id, (flags|int32(SQLITE_OPEN_READONLY)) & ^(libc.Int32FromInt32(SQLITE_OPEN_CREATE)|libc.Int32FromInt32(SQLITE_OPEN_READWRITE)), pOutFlags)
} else {
(*TwinFile)(unsafe.Pointer(pFile)).FlastErrno = *(*TDWORD)(unsafe.Pointer(bp))
- _winLogErrorAtLine(tls, int32(SQLITE_CANTOPEN), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5269, zUtf8Name, int32(52771))
- return _sqlite3CantopenError(tls, int32(52772))
+ _winLogErrorAtLine(tls, int32(SQLITE_CANTOPEN), (*TwinFile)(unsafe.Pointer(pFile)).FlastErrno, __ccgo_ts+5269, zUtf8Name, int32(52772))
+ return _sqlite3CantopenError(tls, int32(52773))
}
}
if pOutFlags != 0 {
@@ -103328,9 +103331,9 @@ func _winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) (
}
}
if rc != 0 && rc != libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(23)<<libc.Int32FromInt32(8) {
- rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(10)<<libc.Int32FromInt32(8), *(*TDWORD)(unsafe.Pointer(bp + 4)), __ccgo_ts+5282, zFilename, int32(52944))
+ rc = _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(10)<<libc.Int32FromInt32(8), *(*TDWORD)(unsafe.Pointer(bp + 4)), __ccgo_ts+5282, zFilename, int32(52945))
} else {
- _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp)), int32(52946))
+ _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp)), int32(52947))
}
Xsqlite3_free(tls, zConverted)
return rc
@@ -103387,10 +103390,10 @@ func _winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pRe
attr = (*(*TWIN32_FILE_ATTRIBUTE_DATA)(unsafe.Pointer(bp + 8))).FdwFileAttributes
}
} else {
- _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 4)), int32(53012))
+ _winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 4)), int32(53013))
if *(*TDWORD)(unsafe.Pointer(bp)) != uint32(2) && *(*TDWORD)(unsafe.Pointer(bp)) != uint32(3) {
Xsqlite3_free(tls, zConverted)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(13)<<libc.Int32FromInt32(8), *(*TDWORD)(unsafe.Pointer(bp)), __ccgo_ts+5292, zFilename, int32(53015))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(13)<<libc.Int32FromInt32(8), *(*TDWORD)(unsafe.Pointer(bp)), __ccgo_ts+5292, zFilename, int32(53016))
} else {
attr = uint32(-libc.Int32FromInt32(1))
}
@@ -103515,7 +103518,7 @@ func _winFullPathnameNoMutex(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFu
nByte = int32((*(*func(*libc.TLS, TLPCWSTR, TDWORD, TLPWSTR, uintptr) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(25)].FpCurrent})))(tls, zConverted, uint32(0), uintptr(0), uintptr(0)))
if nByte == 0 {
Xsqlite3_free(tls, zConverted)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5309, zRelative, int32(53317))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5309, zRelative, int32(53318))
}
nByte += int32(3)
zTemp = _sqlite3MallocZero(tls, uint64(nByte)*uint64(2))
@@ -103527,7 +103530,7 @@ func _winFullPathnameNoMutex(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFu
if nByte == 0 {
Xsqlite3_free(tls, zConverted)
Xsqlite3_free(tls, zTemp)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5326, zRelative, int32(53330))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5326, zRelative, int32(53331))
}
Xsqlite3_free(tls, zConverted)
zOut = _winUnicodeToUtf8(tls, zTemp)
@@ -103536,7 +103539,7 @@ func _winFullPathnameNoMutex(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFu
nByte = int32((*(*func(*libc.TLS, TLPCSTR, TDWORD, TLPSTR, uintptr) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(24)].FpCurrent})))(tls, zConverted, uint32(0), uintptr(0), uintptr(0)))
if nByte == 0 {
Xsqlite3_free(tls, zConverted)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5343, zRelative, int32(53343))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5343, zRelative, int32(53344))
}
zTemp1 = _sqlite3MallocZero(tls, uint64(nByte)*uint64(1)+libc.Uint64FromInt32(3)*libc.Uint64FromInt64(1))
if zTemp1 == uintptr(0) {
@@ -103547,7 +103550,7 @@ func _winFullPathnameNoMutex(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFu
if nByte == 0 {
Xsqlite3_free(tls, zConverted)
Xsqlite3_free(tls, zTemp1)
- return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5360, zRelative, int32(53355))
+ return _winLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_CANTOPEN)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), (*(*func(*libc.TLS) TDWORD)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls), __ccgo_ts+5360, zRelative, int32(53356))
}
Xsqlite3_free(tls, zConverted)
zOut = _winMbcsToUtf8(tls, zTemp1, (*(*func(*libc.TLS) TBOOL)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[0].FpCurrent})))(tls))
@@ -105184,7 +105187,13 @@ bitvec_set_rehash:
} else {
libc.Xmemcpy(tls, aiValues, p+16, uint64(496))
libc.Xmemset(tls, p+16, 0, uint64(496))
- (*TBitvec)(unsafe.Pointer(p)).FiDivisor = ((*TBitvec)(unsafe.Pointer(p)).FiSize + uint32((libc.Uint64FromInt32(BITVEC_SZ)-libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))/libc.Uint64FromInt64(8)*libc.Uint64FromInt64(8)/libc.Uint64FromInt64(8)) - uint32(1)) / uint32((libc.Uint64FromInt32(BITVEC_SZ)-libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))/libc.Uint64FromInt64(8)*libc.Uint64FromInt64(8)/libc.Uint64FromInt64(8))
+ (*TBitvec)(unsafe.Pointer(p)).FiDivisor = (*TBitvec)(unsafe.Pointer(p)).FiSize / uint32((libc.Uint64FromInt32(BITVEC_SZ)-libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))/libc.Uint64FromInt64(8)*libc.Uint64FromInt64(8)/libc.Uint64FromInt64(8))
+ if (*TBitvec)(unsafe.Pointer(p)).FiSize%uint32((libc.Uint64FromInt32(BITVEC_SZ)-libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))/libc.Uint64FromInt64(8)*libc.Uint64FromInt64(8)/libc.Uint64FromInt64(8)) != uint32(0) {
+ (*TBitvec)(unsafe.Pointer(p)).FiDivisor++
+ }
+ if uint64((*TBitvec)(unsafe.Pointer(p)).FiDivisor) < (libc.Uint64FromInt32(BITVEC_SZ)-libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))/libc.Uint64FromInt64(8)*libc.Uint64FromInt64(8)/libc.Uint64FromInt64(1)*libc.Uint64FromInt32(BITVEC_SZELEM) {
+ (*TBitvec)(unsafe.Pointer(p)).FiDivisor = uint32((libc.Uint64FromInt32(BITVEC_SZ) - libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4)) / libc.Uint64FromInt64(8) * libc.Uint64FromInt64(8) / libc.Uint64FromInt64(1) * libc.Uint64FromInt32(BITVEC_SZELEM))
+ }
rc = _sqlite3BitvecSet(tls, p, i)
j = uint32(0)
for {
@@ -112799,7 +112808,7 @@ func _sqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename u
** as it will not be possible to open the journal file or even
** check for a hot-journal before reading.
*/
- rc = _sqlite3CantopenError(tls, int32(62854))
+ rc = _sqlite3CantopenError(tls, int32(62857))
}
if rc != SQLITE_OK {
_sqlite3DbFree(tls, uintptr(0), zPathname)
@@ -113277,7 +113286,7 @@ func _sqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) (r int32) {
f = libc.Int32FromInt32(SQLITE_OPEN_READWRITE) | libc.Int32FromInt32(SQLITE_OPEN_MAIN_JOURNAL)
rc = _sqlite3OsOpen(tls, pVfs, (*TPager)(unsafe.Pointer(pPager)).FzJournal, (*TPager)(unsafe.Pointer(pPager)).Fjfd, f, bp+8)
if rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8))&int32(SQLITE_OPEN_READONLY) != 0 {
- rc = _sqlite3CantopenError(tls, int32(63375))
+ rc = _sqlite3CantopenError(tls, int32(63378))
_sqlite3OsClose(tls, (*TPager)(unsafe.Pointer(pPager)).Fjfd)
}
}
@@ -113452,7 +113461,7 @@ func _getPageNormal(tls *libc.TLS, pPager uintptr, pgno TPgno, ppPage uintptr, f
_, _, _, _ = noContent, pPg, rc, v1
rc = SQLITE_OK
if pgno == uint32(0) {
- return _sqlite3CorruptError(tls, int32(63588))
+ return _sqlite3CorruptError(tls, int32(63591))
}
*(*uintptr)(unsafe.Pointer(bp)) = _sqlite3PcacheFetch(tls, (*TPager)(unsafe.Pointer(pPager)).FpPCache, pgno, int32(3))
if *(*uintptr)(unsafe.Pointer(bp)) == uintptr(0) {
@@ -113483,7 +113492,7 @@ func _getPageNormal(tls *libc.TLS, pPager uintptr, pgno TPgno, ppPage uintptr, f
** (2) Never try to fetch the locking page
*/
if pgno == (*TPager)(unsafe.Pointer(pPager)).FlckPgno {
- rc = _sqlite3CorruptError(tls, int32(63620))
+ rc = _sqlite3CorruptError(tls, int32(63623))
goto pager_acquire_err
}
(*TPgHdr)(unsafe.Pointer(pPg)).FpPager = pPager
@@ -113555,7 +113564,7 @@ func _getPageMMap(tls *libc.TLS, pPager uintptr, pgno TPgno, ppPage uintptr, fla
** test in the previous statement, and avoid testing pgno==0 in the
** common case where pgno is large. */
if pgno <= uint32(1) && pgno == uint32(0) {
- return _sqlite3CorruptError(tls, int32(63703))
+ return _sqlite3CorruptError(tls, int32(63706))
}
if bMmapOk != 0 && (*TPager)(unsafe.Pointer(pPager)).FpWal != uintptr(0) {
rc = _sqlite3WalFindFrame(tls, (*TPager)(unsafe.Pointer(pPager)).FpWal, pgno, bp+8)
@@ -114912,7 +114921,7 @@ func _sqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno TPgn
if pPgOld != 0 {
if (*TPgHdr)(unsafe.Pointer(pPgOld)).FnRef > int64(1) {
_sqlite3PagerUnrefNotNull(tls, pPgOld)
- return _sqlite3CorruptError(tls, int32(65269))
+ return _sqlite3CorruptError(tls, int32(65272))
}
p4 = pPg + 52
*(*Tu16)(unsafe.Pointer(p4)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p4))) | int32((*TPgHdr)(unsafe.Pointer(pPgOld)).Fflags)&libc.Int32FromInt32(PGHDR_NEED_SYNC))
@@ -116630,7 +116639,7 @@ func _walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame Tu32, iPage Tu32) (r in
v2 = nCollide
nCollide--
if v2 == 0 {
- return _sqlite3CorruptError(tls, int32(67209))
+ return _sqlite3CorruptError(tls, int32(67212))
}
goto _1
_1:
@@ -116718,7 +116727,7 @@ func _walIndexRecover(tls *libc.TLS, pWal uintptr) (r int32) {
** are able to understand */
version = _sqlite3Get4byte(tls, bp+8+4)
if version != uint32(WAL_MAX_VERSION) {
- rc = _sqlite3CantopenError(tls, int32(67341))
+ rc = _sqlite3CantopenError(tls, int32(67344))
goto finished
}
/* Malloc a buffer to read frames into. */
@@ -117488,7 +117497,7 @@ func _walCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy
** 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 = _sqlite3CorruptError(tls, int32(68150))
+ rc = _sqlite3CorruptError(tls, int32(68153))
} else {
_sqlite3OsFileControlHint(tls, (*TWal)(unsafe.Pointer(pWal)).FpDbFd, int32(SQLITE_FCNTL_SIZE_HINT), bp+16)
}
@@ -117852,7 +117861,7 @@ func _walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) (r int32) {
** this version of SQLite cannot understand.
*/
if badHdr == 0 && (*TWal)(unsafe.Pointer(pWal)).Fhdr.FiVersion != uint32(WALINDEX_MAX_VERSION) {
- rc = _sqlite3CantopenError(tls, int32(68601))
+ rc = _sqlite3CantopenError(tls, int32(68604))
}
if (*TWal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 {
if rc != SQLITE_OK {
@@ -118663,7 +118672,7 @@ func _walFindFrame(tls *libc.TLS, pWal uintptr, pgno TPgno, piRead uintptr) (r i
nCollide--
if v3 == 0 {
*(*Tu32)(unsafe.Pointer(piRead)) = uint32(0)
- return _sqlite3CorruptError(tls, int32(69451))
+ return _sqlite3CorruptError(tls, int32(69454))
}
iKey = _walNextHash(tls, iKey)
}
@@ -118845,6 +118854,7 @@ func _sqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintpt
if iMax != (*TWal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame {
_walCleanupHash(tls, pWal)
}
+ (*TWal)(unsafe.Pointer(pWal)).FiReCksum = uint32(0)
}
return rc
}
@@ -118889,6 +118899,9 @@ func _sqlite3WalSavepointUndo(tls *libc.TLS, pWal uintptr, aWalData uintptr) (r
*(*Tu32)(unsafe.Pointer(pWal + 72 + 24)) = *(*Tu32)(unsafe.Pointer(aWalData + 1*4))
*(*Tu32)(unsafe.Pointer(pWal + 72 + 24 + 1*4)) = *(*Tu32)(unsafe.Pointer(aWalData + 2*4))
_walCleanupHash(tls, pWal)
+ if (*TWal)(unsafe.Pointer(pWal)).FiReCksum > (*TWal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame {
+ (*TWal)(unsafe.Pointer(pWal)).FiReCksum = uint32(0)
+ }
}
return rc
}
@@ -119160,7 +119173,7 @@ func _walFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, nTrunc
}
}
if int32((*TWal)(unsafe.Pointer(pWal)).FszPage) != szPage {
- return _sqlite3CorruptError(tls, int32(69974)) /* TH3 test case: cov1/corrupt155.test */
+ return _sqlite3CorruptError(tls, int32(69981)) /* TH3 test case: cov1/corrupt155.test */
}
/* Setup information needed to write frames into the WAL */
(*(*TWalWriter)(unsafe.Pointer(bp))).FpWal = pWal
@@ -119409,7 +119422,7 @@ func _sqlite3WalCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32,
/* Copy data from the log to the database file. */
if rc == SQLITE_OK {
if (*TWal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame != 0 && _walPagesize(tls, pWal) != nBuf {
- rc = _sqlite3CorruptError(tls, int32(70234))
+ rc = _sqlite3CorruptError(tls, int32(70241))
} else {
rc = _walCheckpoint(tls, pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf)
}
@@ -121272,7 +121285,7 @@ func _btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey Ti64, bias int
}
_sqlite3VdbeRecordUnpack(tls, pKeyInfo, int32(nKey), pKey, pIdxKey)
if int32((*TUnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField) == 0 || int32((*TUnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField) > int32((*TKeyInfo)(unsafe.Pointer(pKeyInfo)).FnAllField) {
- rc = _sqlite3CorruptError(tls, int32(72422))
+ rc = _sqlite3CorruptError(tls, int32(72429))
} else {
rc = _sqlite3BtreeIndexMoveto(tls, pCur, pIdxKey, pRes)
}
@@ -121450,7 +121463,7 @@ func _ptrmapPut(tls *libc.TLS, pBt uintptr, key TPgno, eType Tu8, parent TPgno,
}
/* The super-journal page number must never be used as a pointer map page */
if key == uint32(0) {
- *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(72620))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(72627))
return
}
iPtrmap = _ptrmapPageno(tls, pBt, key)
@@ -121463,12 +121476,12 @@ func _ptrmapPut(tls *libc.TLS, pBt uintptr, key TPgno, eType Tu8, parent TPgno,
/* 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)) = _sqlite3CorruptError(tls, int32(72633))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(72640))
goto ptrmap_exit
}
offset = int32(libc.Uint32FromInt32(5) * (key - iPtrmap - libc.Uint32FromInt32(1)))
if offset < 0 {
- *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(72638))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(72645))
goto ptrmap_exit
}
pPtrmap = _sqlite3PagerGetData(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -121512,7 +121525,7 @@ func _ptrmapGet(tls *libc.TLS, pBt uintptr, key TPgno, pEType uintptr, pPgno uin
offset = int32(libc.Uint32FromInt32(5) * (key - uint32(iPtrmap) - libc.Uint32FromInt32(1)))
if offset < 0 {
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp)))
- return _sqlite3CorruptError(tls, int32(72683))
+ return _sqlite3CorruptError(tls, int32(72690))
}
*(*Tu8)(unsafe.Pointer(pEType)) = *(*Tu8)(unsafe.Pointer(pPtrmap + uintptr(offset)))
if pPgno != 0 {
@@ -121520,7 +121533,7 @@ func _ptrmapGet(tls *libc.TLS, pBt uintptr, key TPgno, pEType uintptr, pPgno uin
}
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp)))
if int32(*(*Tu8)(unsafe.Pointer(pEType))) < int32(1) || int32(*(*Tu8)(unsafe.Pointer(pEType))) > int32(5) {
- return _sqlite3CorruptError(tls, int32(72691))
+ return _sqlite3CorruptError(tls, int32(72698))
}
return SQLITE_OK
}
@@ -121940,7 +121953,7 @@ func _ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr
(*(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pPage)).FxParseCell})))(tls, pPage, pCell, bp)
if uint32((*(*TCellInfo)(unsafe.Pointer(bp))).FnLocal) < (*(*TCellInfo)(unsafe.Pointer(bp))).FnPayload {
if uint64(pCell) < uint64((*TMemPage)(unsafe.Pointer(pSrc)).FaDataEnd) && uint64(pCell+uintptr((*(*TCellInfo)(unsafe.Pointer(bp))).FnLocal)) > uint64((*TMemPage)(unsafe.Pointer(pSrc)).FaDataEnd) {
- *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(73136))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(73143))
return
}
ovfl = _sqlite3Get4byte(tls, pCell+uintptr(int32((*(*TCellInfo)(unsafe.Pointer(bp))).FnSize)-int32(4)))
@@ -121980,12 +121993,12 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
if int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(7))))) <= nMaxFrag {
iFree = int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(1)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(1)) + 1)))
if iFree > usableSize-int32(4) {
- return _sqlite3CorruptError(tls, int32(73194))
+ return _sqlite3CorruptError(tls, int32(73201))
}
if iFree != 0 {
iFree2 = int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree) + 1)))
if iFree2 > usableSize-int32(4) {
- return _sqlite3CorruptError(tls, int32(73197))
+ return _sqlite3CorruptError(tls, int32(73204))
}
if 0 == iFree2 || int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2)))) == 0 && int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+int32(1))))) == 0 {
pEnd = data + uintptr(cellOffset+nCell*int32(2))
@@ -121993,21 +122006,21 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
sz = int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree+int32(2)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree+int32(2)) + 1)))
top = int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(5)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(5)) + 1)))
if top >= iFree {
- return _sqlite3CorruptError(tls, int32(73205))
+ return _sqlite3CorruptError(tls, int32(73212))
}
if iFree2 != 0 {
if iFree+sz > iFree2 {
- return _sqlite3CorruptError(tls, int32(73208))
+ return _sqlite3CorruptError(tls, int32(73215))
}
sz2 = int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+int32(2)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+int32(2)) + 1)))
if iFree2+sz2 > usableSize {
- return _sqlite3CorruptError(tls, int32(73210))
+ return _sqlite3CorruptError(tls, int32(73217))
}
libc.Xmemmove(tls, data+uintptr(iFree+sz+sz2), data+uintptr(iFree+sz), uint64(iFree2-(iFree+sz)))
sz += sz2
} else {
if iFree+sz > usableSize {
- return _sqlite3CorruptError(tls, int32(73214))
+ return _sqlite3CorruptError(tls, int32(73221))
}
}
cbrk = top + sz
@@ -122054,12 +122067,12 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
** if PRAGMA cell_size_check=ON.
*/
if pc > iCellLast {
- return _sqlite3CorruptError(tls, int32(73247))
+ return _sqlite3CorruptError(tls, int32(73254))
}
size = int32((*(*func(*libc.TLS, uintptr, uintptr) Tu16)(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pPage)).FxCellSize})))(tls, pPage, src+uintptr(pc)))
cbrk -= size
if cbrk < iCellStart || pc+size > usableSize {
- return _sqlite3CorruptError(tls, int32(73253))
+ return _sqlite3CorruptError(tls, int32(73260))
}
*(*Tu8)(unsafe.Pointer(pAddr1)) = uint8(cbrk >> libc.Int32FromInt32(8))
*(*Tu8)(unsafe.Pointer(pAddr1 + 1)) = uint8(cbrk)
@@ -122075,7 +122088,7 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
defragment_out:
;
if int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(7)))))+cbrk-iCellFirst != (*TMemPage)(unsafe.Pointer(pPage)).FnFree {
- return _sqlite3CorruptError(tls, int32(73267))
+ return _sqlite3CorruptError(tls, int32(73274))
}
*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(5)))) = uint8(cbrk >> libc.Int32FromInt32(8))
*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(5)) + 1)) = uint8(cbrk)
@@ -122135,7 +122148,7 @@ func _pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) (r uint
} else {
if x+pc > maxPC {
/* This slot extends off the end of the usable part of the page */
- *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(73324))
+ *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(73331))
return uintptr(0)
} else {
/* The slot remains on the free-list. Reduce its size to account
@@ -122152,14 +122165,14 @@ func _pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) (r uint
if pc <= iAddr {
if pc != 0 {
/* The next slot in the chain comes before the current slot */
- *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(73339))
+ *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(73346))
}
return uintptr(0)
}
}
if pc > maxPC+nByte-int32(4) {
/* The free slot chain extends off the end of the page */
- *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(73346))
+ *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(73353))
}
return uintptr(0)
}
@@ -122202,11 +122215,11 @@ func _allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) (r
if top == 0 && (*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize == uint32(65536) {
top = int32(65536)
} else {
- return _sqlite3CorruptError(tls, int32(73394))
+ return _sqlite3CorruptError(tls, int32(73401))
}
} else {
if top > int32((*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize) {
- return _sqlite3CorruptError(tls, int32(73397))
+ return _sqlite3CorruptError(tls, int32(73404))
}
}
/* If there is enough space between gap and top for one more cell pointer,
@@ -122220,7 +122233,7 @@ func _allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) (r
g2 = v1
*(*int32)(unsafe.Pointer(pIdx)) = v1
if g2 <= gap {
- return _sqlite3CorruptError(tls, int32(73414))
+ return _sqlite3CorruptError(tls, int32(73421))
} else {
return SQLITE_OK
}
@@ -122301,12 +122314,12 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart int32, iSize int32) (r int3
if iFreeBlk == 0 {
break
} /* TH3: corrupt082.100 */
- return _sqlite3CorruptError(tls, int32(73493))
+ return _sqlite3CorruptError(tls, int32(73500))
}
iPtr = iFreeBlk
}
if iFreeBlk > int32((*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize)-int32(4) { /* TH3: corrupt081.100 */
- return _sqlite3CorruptError(tls, int32(73498))
+ return _sqlite3CorruptError(tls, int32(73505))
}
/* At this point:
** iFreeBlk: First freeblock after iStart, or zero if none
@@ -122317,11 +122330,11 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart int32, iSize int32) (r int3
if iFreeBlk != 0 && iEnd+int32(3) >= iFreeBlk {
nFrag = iFreeBlk - iEnd
if iEnd > iFreeBlk {
- return _sqlite3CorruptError(tls, int32(73510))
+ return _sqlite3CorruptError(tls, int32(73517))
}
iEnd = iFreeBlk + (int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk+int32(2)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk+int32(2)) + 1))))
if iEnd > int32((*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize) {
- return _sqlite3CorruptError(tls, int32(73513))
+ return _sqlite3CorruptError(tls, int32(73520))
}
iSize = iEnd - iStart
iFreeBlk = int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk) + 1)))
@@ -122334,7 +122347,7 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart int32, iSize int32) (r int3
iPtrEnd = iPtr + (int32(*(*uint8)(unsafe.Pointer(data + uintptr(iPtr+int32(2)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iPtr+int32(2)) + 1))))
if iPtrEnd+int32(3) >= iStart {
if iPtrEnd > iStart {
- return _sqlite3CorruptError(tls, int32(73526))
+ return _sqlite3CorruptError(tls, int32(73533))
}
nFrag += iStart - iPtrEnd
iSize = iEnd - iPtr
@@ -122342,7 +122355,7 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart int32, iSize int32) (r int3
}
}
if nFrag > int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+int32(7))))) {
- return _sqlite3CorruptError(tls, int32(73532))
+ return _sqlite3CorruptError(tls, int32(73539))
}
p2 = data + uintptr(int32(hdr)+int32(7))
*(*uint8)(unsafe.Pointer(p2)) = uint8(int32(*(*uint8)(unsafe.Pointer(p2))) - int32(uint8(nFrag)))
@@ -122359,10 +122372,10 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart int32, iSize int32) (r int3
** so just extend the cell content area rather than create another
** freelist entry */
if iStart < x {
- return _sqlite3CorruptError(tls, int32(73546))
+ return _sqlite3CorruptError(tls, int32(73553))
}
if iPtr != int32(hdr)+int32(1) {
- return _sqlite3CorruptError(tls, int32(73547))
+ return _sqlite3CorruptError(tls, int32(73554))
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+int32(1)))) = uint8(iFreeBlk >> libc.Int32FromInt32(8))
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+int32(1)) + 1)) = uint8(iFreeBlk)
@@ -122423,7 +122436,7 @@ func _decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) (r int32) {
(*TMemPage)(unsafe.Pointer(pPage)).FintKeyLeaf = uint8(0)
(*TMemPage)(unsafe.Pointer(pPage)).FxCellSize = __ccgo_fp(_cellSizePtrIdxLeaf)
(*TMemPage)(unsafe.Pointer(pPage)).FxParseCell = __ccgo_fp(_btreeParseCellPtrIndex)
- return _sqlite3CorruptError(tls, int32(73602))
+ return _sqlite3CorruptError(tls, int32(73609))
}
}
} else {
@@ -122449,7 +122462,7 @@ func _decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) (r int32) {
(*TMemPage)(unsafe.Pointer(pPage)).FintKeyLeaf = uint8(0)
(*TMemPage)(unsafe.Pointer(pPage)).FxCellSize = __ccgo_fp(_cellSizePtr)
(*TMemPage)(unsafe.Pointer(pPage)).FxParseCell = __ccgo_fp(_btreeParseCellPtrIndex)
- return _sqlite3CorruptError(tls, int32(73626))
+ return _sqlite3CorruptError(tls, int32(73633))
}
}
}
@@ -122488,12 +122501,12 @@ func _btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) (r int32) {
/* 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 _sqlite3CorruptError(tls, int32(73677))
+ return _sqlite3CorruptError(tls, int32(73684))
}
for int32(1) != 0 {
if pc > iCellLast {
/* Freeblock off the end of the page */
- return _sqlite3CorruptError(tls, int32(73682))
+ return _sqlite3CorruptError(tls, int32(73689))
}
next = uint32(int32(*(*Tu8)(unsafe.Pointer(data + uintptr(pc))))<<libc.Int32FromInt32(8) | int32(*(*Tu8)(unsafe.Pointer(data + uintptr(pc) + 1))))
size = uint32(int32(*(*Tu8)(unsafe.Pointer(data + uintptr(pc+int32(2)))))<<libc.Int32FromInt32(8) | int32(*(*Tu8)(unsafe.Pointer(data + uintptr(pc+int32(2)) + 1))))
@@ -122505,11 +122518,11 @@ func _btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) (r int32) {
}
if next > uint32(0) {
/* Freeblock not in ascending order */
- return _sqlite3CorruptError(tls, int32(73692))
+ return _sqlite3CorruptError(tls, int32(73699))
}
if uint32(pc)+size > uint32(usableSize) {
/* Last freeblock extends past page end */
- return _sqlite3CorruptError(tls, int32(73696))
+ return _sqlite3CorruptError(tls, int32(73703))
}
}
/* At this point, nFree contains the sum of the offset to the start
@@ -122520,7 +122533,7 @@ func _btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) (r int32) {
** area, according to the page header, lies within the page.
*/
if nFree > usableSize || nFree < iCellFirst {
- return _sqlite3CorruptError(tls, int32(73708))
+ return _sqlite3CorruptError(tls, int32(73715))
}
(*TMemPage)(unsafe.Pointer(pPage)).FnFree = int32(uint16(nFree - iCellFirst))
return SQLITE_OK
@@ -122551,11 +122564,11 @@ func _btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) (r int32) {
}
pc = int32(libc.X__builtin_bswap16(tls, *(*Tu16)(unsafe.Pointer(data + uintptr(cellOffset+i*int32(2))))))
if pc < iCellFirst || pc > iCellLast {
- return _sqlite3CorruptError(tls, int32(73739))
+ return _sqlite3CorruptError(tls, int32(73746))
}
sz = int32((*(*func(*libc.TLS, uintptr, uintptr) Tu16)(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pPage)).FxCellSize})))(tls, pPage, data+uintptr(pc)))
if pc+sz > usableSize {
- return _sqlite3CorruptError(tls, int32(73744))
+ return _sqlite3CorruptError(tls, int32(73751))
}
goto _1
_1:
@@ -122584,7 +122597,7 @@ func _btreeInitPage(tls *libc.TLS, pPage uintptr) (r int32) {
/* EVIDENCE-OF: R-28594-02890 The one-byte flag at offset 0 indicating
** the b-tree page type. */
if _decodeFlags(tls, pPage, int32(*(*Tu8)(unsafe.Pointer(data)))) != 0 {
- return _sqlite3CorruptError(tls, int32(73776))
+ return _sqlite3CorruptError(tls, int32(73783))
}
(*TMemPage)(unsafe.Pointer(pPage)).FmaskPage = uint16((*TBtShared)(unsafe.Pointer(pBt)).FpageSize - libc.Uint32FromInt32(1))
(*TMemPage)(unsafe.Pointer(pPage)).FnOverflow = uint8(0)
@@ -122597,7 +122610,7 @@ func _btreeInitPage(tls *libc.TLS, pPage uintptr) (r int32) {
(*TMemPage)(unsafe.Pointer(pPage)).FnCell = uint16(int32(*(*Tu8)(unsafe.Pointer(data + 3)))<<libc.Int32FromInt32(8) | int32(*(*Tu8)(unsafe.Pointer(data + 3 + 1))))
if uint32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) > ((*TBtShared)(unsafe.Pointer(pBt)).FpageSize-uint32(8))/uint32(6) {
/* To many cells for a single page. The page must be corrupt */
- return _sqlite3CorruptError(tls, int32(73790))
+ return _sqlite3CorruptError(tls, int32(73797))
}
/* EVIDENCE-OF: R-24089-57979 If a page contains no cells (which is only
** possible for a root page of a table that contains no rows) then the
@@ -122748,7 +122761,7 @@ func _getAndInitPage(tls *libc.TLS, pBt uintptr, pgno TPgno, ppPage uintptr, bRe
_, _ = pPage, rc
if pgno > _btreePagecount(tls, pBt) {
*(*uintptr)(unsafe.Pointer(ppPage)) = uintptr(0)
- return _sqlite3CorruptError(tls, int32(73933))
+ return _sqlite3CorruptError(tls, int32(73940))
}
rc = _sqlite3PagerGet(tls, (*TBtShared)(unsafe.Pointer(pBt)).FpPager, pgno, bp, bReadOnly)
if rc != 0 {
@@ -122810,7 +122823,7 @@ func _btreeGetUnusedPage(tls *libc.TLS, pBt uintptr, pgno TPgno, ppPage uintptr,
if _sqlite3PagerPageRefcount(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FpDbPage) > int32(1) {
_releasePage(tls, *(*uintptr)(unsafe.Pointer(ppPage)))
*(*uintptr)(unsafe.Pointer(ppPage)) = uintptr(0)
- return _sqlite3CorruptError(tls, int32(74005))
+ return _sqlite3CorruptError(tls, int32(74012))
}
(*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FisInit = uint8(0)
} else {
@@ -123722,7 +123735,7 @@ func _lockBtree(tls *libc.TLS, pBt uintptr) (r int32) {
}
if nPage > *(*Tu32)(unsafe.Pointer(bp + 8)) {
if _sqlite3WritableSchema(tls, (*TBtShared)(unsafe.Pointer(pBt)).Fdb) == 0 {
- rc = _sqlite3CorruptError(tls, int32(74943))
+ rc = _sqlite3CorruptError(tls, int32(74950))
goto page1_init_failed
} else {
nPage = *(*Tu32)(unsafe.Pointer(bp + 8))
@@ -124163,7 +124176,7 @@ func _modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom TPgno, iTo TPgno, eT
if int32(eType) == int32(PTRMAP_OVERFLOW2) {
/* The pointer is always the first 4 bytes of the page in this case. */
if _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData) != iFrom {
- return _sqlite3CorruptError(tls, int32(75398))
+ return _sqlite3CorruptError(tls, int32(75405))
}
_sqlite3Put4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData, iTo)
} else {
@@ -124187,7 +124200,7 @@ func _modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom TPgno, iTo TPgno, eT
(*(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pPage)).FxParseCell})))(tls, pPage, pCell, bp)
if uint32((*(*TCellInfo)(unsafe.Pointer(bp))).FnLocal) < (*(*TCellInfo)(unsafe.Pointer(bp))).FnPayload {
if pCell+uintptr((*(*TCellInfo)(unsafe.Pointer(bp))).FnSize) > (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize) {
- return _sqlite3CorruptError(tls, int32(75417))
+ return _sqlite3CorruptError(tls, int32(75424))
}
if iFrom == _sqlite3Get4byte(tls, pCell+uintptr((*(*TCellInfo)(unsafe.Pointer(bp))).FnSize)-uintptr(4)) {
_sqlite3Put4byte(tls, pCell+uintptr((*(*TCellInfo)(unsafe.Pointer(bp))).FnSize)-uintptr(4), iTo)
@@ -124196,7 +124209,7 @@ func _modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom TPgno, iTo TPgno, eT
}
} else {
if pCell+uintptr(4) > (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize) {
- return _sqlite3CorruptError(tls, int32(75426))
+ return _sqlite3CorruptError(tls, int32(75433))
}
if _sqlite3Get4byte(tls, pCell) == iFrom {
_sqlite3Put4byte(tls, pCell, iTo)
@@ -124210,7 +124223,7 @@ func _modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom TPgno, iTo TPgno, eT
}
if i == nCell {
if int32(eType) != int32(PTRMAP_BTREE) || _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*TMemPage)(unsafe.Pointer(pPage)).FhdrOffset)+int32(8))) != iFrom {
- return _sqlite3CorruptError(tls, int32(75438))
+ return _sqlite3CorruptError(tls, int32(75445))
}
_sqlite3Put4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*TMemPage)(unsafe.Pointer(pPage)).FhdrOffset)+int32(8)), iTo)
}
@@ -124240,7 +124253,7 @@ func _relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType Tu8, iPtrP
iDbPage = (*TMemPage)(unsafe.Pointer(pDbPage)).Fpgno
pPager = (*TBtShared)(unsafe.Pointer(pBt)).FpPager
if iDbPage < uint32(3) {
- return _sqlite3CorruptError(tls, int32(75473))
+ return _sqlite3CorruptError(tls, int32(75480))
}
/* Move page iDbPage from its current location to page number iFreePage */
*(*int32)(unsafe.Pointer(bp + 8)) = _sqlite3PagerMovepage(tls, pPager, (*TMemPage)(unsafe.Pointer(pDbPage)).FpDbPage, iFreePage, isCommit)
@@ -124336,7 +124349,7 @@ func _incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin TPgno, iLastPg TPgno, bCom
return rc
}
if int32(*(*Tu8)(unsafe.Pointer(bp))) == int32(PTRMAP_ROOTPAGE) {
- return _sqlite3CorruptError(tls, int32(75571))
+ return _sqlite3CorruptError(tls, int32(75578))
}
if int32(*(*Tu8)(unsafe.Pointer(bp))) == int32(PTRMAP_FREEPAGE) {
if bCommit == 0 {
@@ -124374,7 +124387,7 @@ func _incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin TPgno, iLastPg TPgno, bCom
_releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 40)))
if *(*TPgno)(unsafe.Pointer(bp + 24)) > dbSize {
_releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 32)))
- return _sqlite3CorruptError(tls, int32(75623))
+ return _sqlite3CorruptError(tls, int32(75630))
}
}
rc = _relocatePage(tls, pBt, *(*uintptr)(unsafe.Pointer(bp + 32)), *(*Tu8)(unsafe.Pointer(bp)), *(*TPgno)(unsafe.Pointer(bp + 4)), *(*TPgno)(unsafe.Pointer(bp + 24)), bCommit)
@@ -124441,7 +124454,7 @@ func _sqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) (r int32) {
nFree = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)
nFin = _finalDbSize(tls, pBt, nOrig, nFree)
if nOrig < nFin || nFree >= nOrig {
- rc = _sqlite3CorruptError(tls, int32(75691))
+ rc = _sqlite3CorruptError(tls, int32(75698))
} else {
if nFree > uint32(0) {
rc = _saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -124484,7 +124497,7 @@ func _autoVacuumCommit(tls *libc.TLS, p uintptr) (r int32) {
** is either a pointer-map page or the pending-byte page. If one
** is encountered, this indicates corruption.
*/
- return _sqlite3CorruptError(tls, int32(75742))
+ return _sqlite3CorruptError(tls, int32(75749))
}
nFree = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)
db = (*TBtree)(unsafe.Pointer(p)).Fdb
@@ -124514,7 +124527,7 @@ func _autoVacuumCommit(tls *libc.TLS, p uintptr) (r int32) {
}
nFin = _finalDbSize(tls, pBt, nOrig, nVac)
if nFin > nOrig {
- return _sqlite3CorruptError(tls, int32(75769))
+ return _sqlite3CorruptError(tls, int32(75776))
}
if nFin < nOrig {
rc = _saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -124980,7 +124993,7 @@ func _btreeCursor(tls *libc.TLS, p uintptr, iTable TPgno, wrFlag int32, pKeyInfo
/* Assert that the caller has opened the required transaction. */
if iTable <= uint32(1) {
if iTable < uint32(1) {
- return _sqlite3CorruptError(tls, int32(76233))
+ return _sqlite3CorruptError(tls, int32(76240))
} else {
if _btreePagecount(tls, pBt) == uint32(0) {
iTable = uint32(0)
@@ -125372,7 +125385,7 @@ func _accessPayload(tls *libc.TLS, pCur uintptr, offset Tu32, amt Tu32, pBuf uin
pBt = (*TBtCursor)(unsafe.Pointer(pCur)).FpBt /* Btree this cursor belongs to */
pBufStart = pBuf /* Start of original out buffer */
if int32((*TBtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
- return _sqlite3CorruptError(tls, int32(76657))
+ return _sqlite3CorruptError(tls, int32(76664))
}
_getCellInfo(tls, pCur)
aPayload = (*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload
@@ -125382,7 +125395,7 @@ func _accessPayload(tls *libc.TLS, pCur uintptr, offset Tu32, amt Tu32, pBuf uin
** &aPayload[pCur->info.nLocal] > &pPage->aData[pBt->usableSize]
** but is recast into its current form to avoid integer overflow problems
*/
- return _sqlite3CorruptError(tls, int32(76672))
+ return _sqlite3CorruptError(tls, int32(76679))
}
/* Check if data must be read/written to/from the btree page itself. */
if offset < uint32((*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) {
@@ -125439,7 +125452,7 @@ func _accessPayload(tls *libc.TLS, pCur uintptr, offset Tu32, amt Tu32, pBuf uin
for *(*TPgno)(unsafe.Pointer(bp)) != 0 {
/* If required, populate the overflow page-list cache. */
if *(*TPgno)(unsafe.Pointer(bp)) > (*TBtShared)(unsafe.Pointer(pBt)).FnPage {
- return _sqlite3CorruptError(tls, int32(76743))
+ return _sqlite3CorruptError(tls, int32(76750))
}
*(*TPgno)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FaOverflow + uintptr(iIdx)*4)) = *(*TPgno)(unsafe.Pointer(bp))
if offset >= ovflSize {
@@ -125513,7 +125526,7 @@ func _accessPayload(tls *libc.TLS, pCur uintptr, offset Tu32, amt Tu32, pBuf uin
}
if rc == SQLITE_OK && amt > uint32(0) {
/* Overflow chain ends prematurely */
- return _sqlite3CorruptError(tls, int32(76827))
+ return _sqlite3CorruptError(tls, int32(76834))
}
return rc
}
@@ -125648,7 +125661,7 @@ func _moveToChild(tls *libc.TLS, pCur uintptr, newPgno Tu32) (r int32) {
var v3, p1 uintptr
_, _, _, _ = rc, v2, v3, p1
if int32((*TBtCursor)(unsafe.Pointer(pCur)).FiPage) >= libc.Int32FromInt32(BTCURSOR_MAX_DEPTH)-libc.Int32FromInt32(1) {
- return _sqlite3CorruptError(tls, int32(76965))
+ return _sqlite3CorruptError(tls, int32(76972))
}
(*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = uint16(0)
p1 = pCur + 1
@@ -125660,7 +125673,7 @@ func _moveToChild(tls *libc.TLS, pCur uintptr, newPgno Tu32) (r int32) {
rc = _getAndInitPage(tls, (*TBtCursor)(unsafe.Pointer(pCur)).FpBt, newPgno, pCur+136, int32((*TBtCursor)(unsafe.Pointer(pCur)).FcurPagerFlags))
if rc == SQLITE_OK && (int32((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpPage)).FnCell) < int32(1) || int32((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpPage)).FintKey) != int32((*TBtCursor)(unsafe.Pointer(pCur)).FcurIntKey)) {
_releasePage(tls, (*TBtCursor)(unsafe.Pointer(pCur)).FpPage)
- rc = _sqlite3CorruptError(tls, int32(76979))
+ rc = _sqlite3CorruptError(tls, int32(76986))
}
if rc != 0 {
v3 = pCur + 84
@@ -125776,7 +125789,7 @@ func _moveToRoot(tls *libc.TLS, pCur uintptr) (r int32) {
** in such a way that page pRoot is linked into a second b-tree table
** (or the freelist). */
if int32((*TMemPage)(unsafe.Pointer(pRoot)).FisInit) == 0 || libc.BoolInt32((*TBtCursor)(unsafe.Pointer(pCur)).FpKeyInfo == uintptr(0)) != int32((*TMemPage)(unsafe.Pointer(pRoot)).FintKey) {
- return _sqlite3CorruptError(tls, int32(77114))
+ return _sqlite3CorruptError(tls, int32(77121))
}
goto skip_init
skip_init:
@@ -125790,7 +125803,7 @@ skip_init:
} else {
if !((*TMemPage)(unsafe.Pointer(pRoot)).Fleaf != 0) {
if (*TMemPage)(unsafe.Pointer(pRoot)).Fpgno != uint32(1) {
- return _sqlite3CorruptError(tls, int32(77126))
+ return _sqlite3CorruptError(tls, int32(77133))
}
subpage = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(pRoot)).FaData+uintptr(int32((*TMemPage)(unsafe.Pointer(pRoot)).FhdrOffset)+int32(8)))
(*TBtCursor)(unsafe.Pointer(pCur)).FeState = uint8(CURSOR_VALID)
@@ -126024,7 +126037,7 @@ func _sqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey Ti64, biasRigh
break
}
if pCell >= (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd {
- return _sqlite3CorruptError(tls, int32(77375))
+ return _sqlite3CorruptError(tls, int32(77382))
}
}
}
@@ -126228,7 +126241,7 @@ func _sqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes
p3 = pCur + 1
*(*Tu8)(unsafe.Pointer(p3)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p3))) & ^(libc.Int32FromInt32(BTCF_ValidOvfl) | libc.Int32FromInt32(BTCF_AtLast)))
if !((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpPage)).FisInit != 0) {
- return _sqlite3CorruptError(tls, int32(77571))
+ return _sqlite3CorruptError(tls, int32(77578))
}
goto bypass_moveto_root /* Start search on the current page */
}
@@ -126291,7 +126304,7 @@ bypass_moveto_root:
/* Invalid key size: 0x80 0x80 0x01 */
/* Minimum legal index key size */
if nCell < int32(2) || uint32(nCell)/(*TBtShared)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpBt)).FusableSize > (*TBtShared)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpBt)).FnPage {
- rc = _sqlite3CorruptError(tls, int32(77658))
+ rc = _sqlite3CorruptError(tls, int32(77665))
goto moveto_index_finish
}
pCellKey = _sqlite3Malloc(tls, uint64(nCell)+uint64(nOverrun))
@@ -126322,7 +126335,7 @@ bypass_moveto_root:
rc = SQLITE_OK
(*TBtCursor)(unsafe.Pointer(pCur)).Fix = uint16(idx)
if (*TUnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode != 0 {
- rc = _sqlite3CorruptError(tls, int32(77690))
+ rc = _sqlite3CorruptError(tls, int32(77697))
}
goto moveto_index_finish
}
@@ -126355,7 +126368,7 @@ bypass_moveto_root:
p9 = pCur + 1
*(*Tu8)(unsafe.Pointer(p9)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p9))) & ^(libc.Int32FromInt32(BTCF_ValidNKey) | libc.Int32FromInt32(BTCF_ValidOvfl)))
if int32((*TBtCursor)(unsafe.Pointer(pCur)).FiPage) >= libc.Int32FromInt32(BTCURSOR_MAX_DEPTH)-libc.Int32FromInt32(1) {
- return _sqlite3CorruptError(tls, int32(77721))
+ return _sqlite3CorruptError(tls, int32(77728))
}
*(*Tu16)(unsafe.Pointer(pCur + 88 + uintptr((*TBtCursor)(unsafe.Pointer(pCur)).FiPage)*2)) = uint16(lwr)
*(*uintptr)(unsafe.Pointer(pCur + 144 + uintptr((*TBtCursor)(unsafe.Pointer(pCur)).FiPage)*8)) = (*TBtCursor)(unsafe.Pointer(pCur)).FpPage
@@ -126364,7 +126377,7 @@ bypass_moveto_root:
rc = _getAndInitPage(tls, (*TBtCursor)(unsafe.Pointer(pCur)).FpBt, chldPg, pCur+136, int32((*TBtCursor)(unsafe.Pointer(pCur)).FcurPagerFlags))
if rc == SQLITE_OK && (int32((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpPage)).FnCell) < int32(1) || int32((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpPage)).FintKey) != int32((*TBtCursor)(unsafe.Pointer(pCur)).FcurIntKey)) {
_releasePage(tls, (*TBtCursor)(unsafe.Pointer(pCur)).FpPage)
- rc = _sqlite3CorruptError(tls, int32(77732))
+ rc = _sqlite3CorruptError(tls, int32(77739))
}
if rc != 0 {
v11 = pCur + 84
@@ -126493,7 +126506,7 @@ func _btreeNext(tls *libc.TLS, pCur uintptr) (r int32) {
(*TMemPage)(unsafe.Pointer(pPage)).FisInit = uint8(0)
}
if !((*TMemPage)(unsafe.Pointer(pPage)).FisInit != 0) {
- return _sqlite3CorruptError(tls, int32(77833))
+ return _sqlite3CorruptError(tls, int32(77840))
}
if idx >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
if !((*TMemPage)(unsafe.Pointer(pPage)).Fleaf != 0) {
@@ -126603,7 +126616,7 @@ func _btreePrevious(tls *libc.TLS, pCur uintptr) (r int32) {
(*TMemPage)(unsafe.Pointer(pPage)).FisInit = uint8(0)
}
if !((*TMemPage)(unsafe.Pointer(pPage)).FisInit != 0) {
- return _sqlite3CorruptError(tls, int32(77926))
+ return _sqlite3CorruptError(tls, int32(77933))
}
if !((*TMemPage)(unsafe.Pointer(pPage)).Fleaf != 0) {
idx = int32((*TBtCursor)(unsafe.Pointer(pCur)).Fix)
@@ -126691,7 +126704,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
** stores the total number of pages on the freelist. */
n = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(pPage1)).FaData+36)
if n >= mxPage {
- return _sqlite3CorruptError(tls, int32(78016))
+ return _sqlite3CorruptError(tls, int32(78023))
}
if n > uint32(0) {
searchList = uint8(0) /* If the free-list must be searched for 'nearby' */
@@ -126746,7 +126759,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
nSearch++
}
if v2 || v1 > n {
- rc = _sqlite3CorruptError(tls, int32(78072))
+ rc = _sqlite3CorruptError(tls, int32(78079))
} else {
rc = _btreeGetUnusedPage(tls, pBt, iTrunk, bp, 0)
}
@@ -126772,7 +126785,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
} else {
if k > (*TBtShared)(unsafe.Pointer(pBt)).FusableSize/libc.Uint32FromInt32(4)-libc.Uint32FromInt32(2) {
/* Value of k is out of range. Database corruption */
- rc = _sqlite3CorruptError(tls, int32(78101))
+ rc = _sqlite3CorruptError(tls, int32(78108))
goto end_allocate_page
} else {
if searchList != 0 && (nearby == iTrunk || iTrunk < nearby && int32(eMode) == int32(BTALLOC_LE)) {
@@ -126799,7 +126812,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
} else {
iNewTrunk = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaData+8)
if iNewTrunk > mxPage {
- rc = _sqlite3CorruptError(tls, int32(78135))
+ rc = _sqlite3CorruptError(tls, int32(78142))
goto end_allocate_page
}
rc = _btreeGetUnusedPage(tls, pBt, iNewTrunk, bp+16, 0)
@@ -126870,7 +126883,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
}
iPage = _sqlite3Get4byte(tls, aData+uintptr(uint32(8)+closest*uint32(4)))
if iPage > mxPage || iPage < uint32(2) {
- rc = _sqlite3CorruptError(tls, int32(78200))
+ rc = _sqlite3CorruptError(tls, int32(78207))
goto end_allocate_page
}
if !(searchList != 0) || (iPage == nearby || iPage < nearby && int32(eMode) == int32(BTALLOC_LE)) {
@@ -127008,7 +127021,7 @@ func _freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage TPgno) (r in
iTrunk = uint32(0) /* Page number of free-list trunk page */
pPage1 = (*TBtShared)(unsafe.Pointer(pBt)).FpPage1 /* Initial number of pages on free-list */
if iPage < uint32(2) || iPage > (*TBtShared)(unsafe.Pointer(pBt)).FnPage {
- return _sqlite3CorruptError(tls, int32(78327))
+ return _sqlite3CorruptError(tls, int32(78334))
}
if pMemPage != 0 {
*(*uintptr)(unsafe.Pointer(bp + 8)) = pMemPage
@@ -127059,7 +127072,7 @@ func _freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage TPgno) (r in
if nFree != uint32(0) { /* Initial number of leaf cells on trunk page */
iTrunk = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(pPage1)).FaData+32)
if iTrunk > _btreePagecount(tls, pBt) {
- *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(78374))
+ *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(78381))
goto freepage_out
}
*(*int32)(unsafe.Pointer(bp + 16)) = _btreeGetPage(tls, pBt, iTrunk, bp, 0)
@@ -127068,7 +127081,7 @@ func _freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage TPgno) (r in
}
nLeaf = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaData+4)
if nLeaf > (*TBtShared)(unsafe.Pointer(pBt)).FusableSize/uint32(4)-uint32(2) {
- *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(78385))
+ *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(78392))
goto freepage_out
}
if nLeaf < (*TBtShared)(unsafe.Pointer(pBt)).FusableSize/uint32(4)-uint32(8) {
@@ -127158,7 +127171,7 @@ func _clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintp
_, _, _, _, _, _, _, _ = nOvfl, ovflPageSize, ovflPgno, pBt, rc, v1, v2, v3
if pCell+uintptr((*TCellInfo)(unsafe.Pointer(pInfo)).FnSize) > (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd {
/* Cell extends past end of page */
- return _sqlite3CorruptError(tls, int32(78474))
+ return _sqlite3CorruptError(tls, int32(78481))
}
ovflPgno = _sqlite3Get4byte(tls, pCell+uintptr((*TCellInfo)(unsafe.Pointer(pInfo)).FnSize)-uintptr(4))
pBt = (*TMemPage)(unsafe.Pointer(pPage)).FpBt
@@ -127176,7 +127189,7 @@ func _clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintp
/* 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 _sqlite3CorruptError(tls, int32(78491))
+ return _sqlite3CorruptError(tls, int32(78498))
}
if nOvfl != 0 {
rc = _getOverflowPage(tls, pBt, ovflPgno, bp+8, bp)
@@ -127199,7 +127212,7 @@ func _clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintp
** caller is iterating through or using in some other way, this
** can be problematic.
*/
- rc = _sqlite3CorruptError(tls, int32(78511))
+ rc = _sqlite3CorruptError(tls, int32(78518))
} else {
rc = _freePage2(tls, pBt, *(*uintptr)(unsafe.Pointer(bp + 8)), ovflPgno)
}
@@ -127420,7 +127433,7 @@ func _dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) {
pc = uint32(int32(*(*Tu8)(unsafe.Pointer(ptr)))<<libc.Int32FromInt32(8) | int32(*(*Tu8)(unsafe.Pointer(ptr + 1))))
hdr = int32((*TMemPage)(unsafe.Pointer(pPage)).FhdrOffset)
if pc+uint32(sz) > (*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize {
- *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(78767))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(78774))
return
}
rc = _freeSpace(tls, pPage, int32(pc), sz)
@@ -127814,12 +127827,12 @@ func _rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg
sz = *(*Tu16)(unsafe.Pointer((*TCellArray)(unsafe.Pointer(pCArray)).FszCell + uintptr(i)*2))
if uint64(pCell) >= uint64(aData+uintptr(j)) && uint64(pCell) < uint64(pEnd) {
if uint64(pCell+uintptr(sz)) > uint64(pEnd) {
- return _sqlite3CorruptError(tls, int32(79157))
+ return _sqlite3CorruptError(tls, int32(79164))
}
pCell = pTmp + uintptr(int64(pCell)-int64(aData))
} else {
if uint64(pCell+uintptr(sz)) > uint64(pSrcEnd) && uint64(pCell) < uint64(pSrcEnd) {
- return _sqlite3CorruptError(tls, int32(79162))
+ return _sqlite3CorruptError(tls, int32(79169))
}
}
pData -= uintptr(sz)
@@ -127827,7 +127840,7 @@ func _rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg
*(*Tu8)(unsafe.Pointer(pCellptr + 1)) = uint8(int64(pData) - int64(aData))
pCellptr += uintptr(2)
if pData < pCellptr {
- return _sqlite3CorruptError(tls, int32(79168))
+ return _sqlite3CorruptError(tls, int32(79175))
}
libc.Xmemmove(tls, pData, pCell, uint64(sz))
i++
@@ -127922,7 +127935,7 @@ func _pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr
** database. But they might for a corrupt database. Hence use memmove()
** since memcpy() sends SIGABORT with overlapping buffers on OpenBSD */
if uint64(*(*uintptr)(unsafe.Pointer((*TCellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8))+uintptr(sz)) > uint64(pEnd) && uint64(*(*uintptr)(unsafe.Pointer((*TCellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8))) < uint64(pEnd) {
- _sqlite3CorruptError(tls, int32(79255))
+ _sqlite3CorruptError(tls, int32(79262))
return int32(1)
}
libc.Xmemmove(tls, pSlot, *(*uintptr)(unsafe.Pointer((*TCellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8)), uint64(sz))
@@ -128070,7 +128083,7 @@ func _editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, p
if iOld < iNew {
nShift = _pageFreeArray(tls, pPg, iOld, iNew-iOld, pCArray)
if nShift > nCell {
- return _sqlite3CorruptError(tls, int32(79377))
+ return _sqlite3CorruptError(tls, int32(79384))
}
libc.Xmemmove(tls, (*TMemPage)(unsafe.Pointer(pPg)).FaCellIdx, (*TMemPage)(unsafe.Pointer(pPg)).FaCellIdx+uintptr(nShift*int32(2)), uint64(nCell*int32(2)))
nCell -= nShift
@@ -128141,7 +128154,7 @@ editpage_fail:
;
/* Unable to edit this page. Rebuild it from scratch instead. */
if nNew < int32(1) {
- return _sqlite3CorruptError(tls, int32(79455))
+ return _sqlite3CorruptError(tls, int32(79462))
}
_populateCellCache(tls, pCArray, iNew, nNew)
return _rebuildPage(tls, pCArray, iNew, nNew, pPg)
@@ -128186,7 +128199,7 @@ func _balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintpt
_, _, _, _, _, _, _ = pBt, pOut, pStop, v1, v2, v3, v4
pBt = (*TMemPage)(unsafe.Pointer(pPage)).FpBt /* Page number of pNew */
if int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) == 0 {
- return _sqlite3CorruptError(tls, int32(79495))
+ return _sqlite3CorruptError(tls, int32(79502))
} /* dbfuzz001.test */
/* Allocate a new page. This page will become the right-sibling of
** pPage. Make the parent page writable, so that the new divider cell
@@ -128550,7 +128563,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
** table-interior, index-leaf, or index-interior).
*/
if int32(*(*Tu8)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pOld)).FaData))) != int32(*(*Tu8)(unsafe.Pointer((*TMemPage)(unsafe.Pointer((*(*[3]uintptr)(unsafe.Pointer(bp + 8)))[0])).FaData))) {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(79919))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(79926))
goto balance_cleanup
}
/* Load b.apCell[] with pointers to all cells in pOld. If pOld
@@ -128573,7 +128586,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
libc.Xmemset(tls, (*(*TCellArray)(unsafe.Pointer(bp + 112))).FszCell+uintptr((*(*TCellArray)(unsafe.Pointer(bp + 112))).FnCell)*2, 0, uint64(2)*uint64(limit+int32((*TMemPage)(unsafe.Pointer(pOld)).FnOverflow)))
if int32((*TMemPage)(unsafe.Pointer(pOld)).FnOverflow) > 0 {
if limit < int32(*(*Tu16)(unsafe.Pointer(pOld + 28))) {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(79943))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(79950))
goto balance_cleanup
}
limit = int32(*(*Tu16)(unsafe.Pointer(pOld + 28)))
@@ -128704,7 +128717,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
if i+int32(1) >= k {
k = i + int32(2)
if k > libc.Int32FromInt32(NB)+libc.Int32FromInt32(2) {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80044))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80051))
goto balance_cleanup
}
(*(*[5]int32)(unsafe.Pointer(bp + 72)))[k-int32(1)] = 0
@@ -128747,7 +128760,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
v10 = 0
}
if cntNew[i] <= v10 {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80077))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80084))
goto balance_cleanup
}
}
@@ -128806,7 +128819,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
v15 = 0
}
if cntNew[i-int32(1)] <= v15 {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80121))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80128))
goto balance_cleanup
}
goto _11
@@ -128838,7 +128851,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
*(*int32)(unsafe.Pointer(bp)) = _sqlite3PagerWrite(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 216)))).FpDbPage)
nNew++
if _sqlite3PagerPageRefcount(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 216)))).FpDbPage) != int32(1)+libc.BoolInt32(i == iParentIdx-nxDiv) && *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80154))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80161))
}
if *(*int32)(unsafe.Pointer(bp)) != 0 {
goto balance_cleanup
@@ -129068,7 +129081,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
pSrcEnd = *(*uintptr)(unsafe.Pointer(bp + 112 + 32 + uintptr(k)*8))
if uint64(pCell1) < uint64(pSrcEnd) && uint64(pCell1+uintptr(sz2)) > uint64(pSrcEnd) {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80355))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(80362))
goto balance_cleanup
}
*(*int32)(unsafe.Pointer(bp)) = _insertCell(tls, pParent, nxDiv+i, pCell1, sz2, pTemp1, (*TMemPage)(unsafe.Pointer(pNew2)).Fpgno)
@@ -129314,7 +129327,7 @@ func _anotherValidCursor(tls *libc.TLS, pCur uintptr) (r int32) {
break
}
if pOther != pCur && int32((*TBtCursor)(unsafe.Pointer(pOther)).FeState) == CURSOR_VALID && (*TBtCursor)(unsafe.Pointer(pOther)).FpPage == (*TBtCursor)(unsafe.Pointer(pCur)).FpPage {
- return _sqlite3CorruptError(tls, int32(80587))
+ return _sqlite3CorruptError(tls, int32(80594))
}
goto _1
_1:
@@ -129387,7 +129400,7 @@ func _balance(tls *libc.TLS, pCur uintptr) (r int32) {
/* The page being written is not a root page, and there is currently
** more than one reference to it. This only happens if the page is one
** of its own ancestor pages. Corruption. */
- rc = _sqlite3CorruptError(tls, int32(80647))
+ rc = _sqlite3CorruptError(tls, int32(80654))
} else {
pParent = *(*uintptr)(unsafe.Pointer(pCur + 144 + uintptr(iPage-int32(1))*8))
iIdx = int32(*(*Tu16)(unsafe.Pointer(pCur + 88 + uintptr(iPage-int32(1))*2)))
@@ -129546,7 +129559,7 @@ func _btreeOverwriteOverflowCell(tls *libc.TLS, pCur uintptr, pX uintptr) (r int
return rc
}
if _sqlite3PagerPageRefcount(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpDbPage) != int32(1) || (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FisInit != 0 {
- rc = _sqlite3CorruptError(tls, int32(80811))
+ rc = _sqlite3CorruptError(tls, int32(80818))
} else {
if uint32(iOffset)+ovflPageSize < uint32(nTotal) {
ovflPgno = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaData)
@@ -129577,7 +129590,7 @@ func _btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) (r int32) {
nTotal = (*TBtreePayload)(unsafe.Pointer(pX)).FnData + (*TBtreePayload)(unsafe.Pointer(pX)).FnZero /* Total bytes of to write */
pPage = (*TBtCursor)(unsafe.Pointer(pCur)).FpPage /* Page being written */
if (*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload+uintptr((*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) > (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd || (*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload < (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*TMemPage)(unsafe.Pointer(pPage)).FcellOffset) {
- return _sqlite3CorruptError(tls, int32(80839))
+ return _sqlite3CorruptError(tls, int32(80846))
}
if int32((*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) == nTotal {
/* The entire cell is local */
@@ -129662,7 +129675,7 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
** 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 _sqlite3CorruptError(tls, int32(80920))
+ return _sqlite3CorruptError(tls, int32(80927))
}
}
/* Ensure that the cursor is not in the CURSOR_FAULT state and that it
@@ -129754,7 +129767,7 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
if (*TMemPage)(unsafe.Pointer(pPage)).FnFree < 0 {
if int32((*TBtCursor)(unsafe.Pointer(pCur)).FeState) > int32(CURSOR_INVALID) {
/* ^^^^^--- due to the moveToRoot() call above */
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(81043))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(81050))
} else {
*(*int32)(unsafe.Pointer(bp)) = _btreeComputeFreeSpace(tls, pPage)
}
@@ -129790,7 +129803,7 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
(*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = uint16(0)
if *(*int32)(unsafe.Pointer(bp + 4)) == 0 {
if idx >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
- return _sqlite3CorruptError(tls, int32(81085))
+ return _sqlite3CorruptError(tls, int32(81092))
}
*(*int32)(unsafe.Pointer(bp)) = _sqlite3PagerWrite(tls, (*TMemPage)(unsafe.Pointer(pPage)).FpDbPage)
if *(*int32)(unsafe.Pointer(bp)) != 0 {
@@ -129820,10 +129833,10 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
** necessary to add the PTRMAP_OVERFLOW1 pointer-map entry. */
/* clearCell never fails when nLocal==nPayload */
if oldCell < (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*TMemPage)(unsafe.Pointer(pPage)).FhdrOffset)+uintptr(10) {
- return _sqlite3CorruptError(tls, int32(81112))
+ return _sqlite3CorruptError(tls, int32(81119))
}
if oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 8))) > (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd {
- return _sqlite3CorruptError(tls, int32(81115))
+ return _sqlite3CorruptError(tls, int32(81122))
}
libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 8))))
return SQLITE_OK
@@ -129941,7 +129954,7 @@ func _sqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey T
nIn = uint32((*TBtCursor)(unsafe.Pointer(pSrc)).Finfo.FnLocal)
aIn = (*TBtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload
if aIn+uintptr(nIn) > (*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pSrc)).FpPage)).FaDataEnd {
- return _sqlite3CorruptError(tls, int32(81217))
+ return _sqlite3CorruptError(tls, int32(81224))
}
nRem = (*TBtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload
if nIn == nRem && nIn < uint32((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pDest)).FpPage)).FmaxLocal) {
@@ -129963,7 +129976,7 @@ func _sqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey T
}
if nRem > nIn {
if aIn+uintptr(nIn)+uintptr(4) > (*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pSrc)).FpPage)).FaDataEnd {
- return _sqlite3CorruptError(tls, int32(81242))
+ return _sqlite3CorruptError(tls, int32(81249))
}
ovflIn = _sqlite3Get4byte(tls, (*TBtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload+uintptr(nIn))
}
@@ -130063,21 +130076,21 @@ func _sqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags Tu8) (r int32) {
return *(*int32)(unsafe.Pointer(bp))
}
} else {
- return _sqlite3CorruptError(tls, int32(81338))
+ return _sqlite3CorruptError(tls, int32(81345))
}
}
iCellDepth = int32((*TBtCursor)(unsafe.Pointer(pCur)).FiPage)
iCellIdx = int32((*TBtCursor)(unsafe.Pointer(pCur)).Fix)
pPage = (*TBtCursor)(unsafe.Pointer(pCur)).FpPage
if int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) <= iCellIdx {
- return _sqlite3CorruptError(tls, int32(81347))
+ return _sqlite3CorruptError(tls, int32(81354))
}
pCell = (*TMemPage)(unsafe.Pointer(pPage)).FaData + uintptr(int32((*TMemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*Tu16)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(int32(2)*iCellIdx))))))
if (*TMemPage)(unsafe.Pointer(pPage)).FnFree < 0 && _btreeComputeFreeSpace(tls, pPage) != 0 {
- return _sqlite3CorruptError(tls, int32(81351))
+ return _sqlite3CorruptError(tls, int32(81358))
}
if pCell < (*TMemPage)(unsafe.Pointer(pPage)).FaCellIdx+uintptr((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
- return _sqlite3CorruptError(tls, int32(81354))
+ return _sqlite3CorruptError(tls, int32(81361))
}
/* If the BTREE_SAVEPOSITION bit is on, then the cursor position must
** be preserved following this delete operation. If the current delete
@@ -130171,7 +130184,7 @@ func _sqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags Tu8) (r int32) {
}
pCell = (*TMemPage)(unsafe.Pointer(pLeaf)).FaData + uintptr(int32((*TMemPage)(unsafe.Pointer(pLeaf)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*Tu16)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pLeaf)).FaCellIdx + uintptr(int32(2)*(int32((*TMemPage)(unsafe.Pointer(pLeaf)).FnCell)-int32(1))))))))
if pCell < (*TMemPage)(unsafe.Pointer(pLeaf)).FaData+4 {
- return _sqlite3CorruptError(tls, int32(81445))
+ return _sqlite3CorruptError(tls, int32(81452))
}
nCell = int32((*(*func(*libc.TLS, uintptr, uintptr) Tu16)(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pLeaf)).FxCellSize})))(tls, pLeaf, pCell))
pTmp = (*TBtShared)(unsafe.Pointer(pBt)).FpTmpSpace
@@ -130281,7 +130294,7 @@ func _btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags
*/
_sqlite3BtreeGetMeta(tls, p, int32(BTREE_LARGEST_ROOT_PAGE), bp+8)
if *(*TPgno)(unsafe.Pointer(bp + 8)) > _btreePagecount(tls, pBt) {
- return _sqlite3CorruptError(tls, int32(81561))
+ return _sqlite3CorruptError(tls, int32(81568))
}
*(*TPgno)(unsafe.Pointer(bp + 8))++
/* The new root-page may not be allocated on a pointer-map page, or the
@@ -130322,7 +130335,7 @@ func _btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags
}
*(*int32)(unsafe.Pointer(bp + 12)) = _ptrmapGet(tls, pBt, *(*TPgno)(unsafe.Pointer(bp + 8)), bp+32, bp+36)
if int32(*(*Tu8)(unsafe.Pointer(bp + 32))) == int32(PTRMAP_ROOTPAGE) || int32(*(*Tu8)(unsafe.Pointer(bp + 32))) == int32(PTRMAP_FREEPAGE) {
- *(*int32)(unsafe.Pointer(bp + 12)) = _sqlite3CorruptError(tls, int32(81609))
+ *(*int32)(unsafe.Pointer(bp + 12)) = _sqlite3CorruptError(tls, int32(81616))
}
if *(*int32)(unsafe.Pointer(bp + 12)) != SQLITE_OK {
_releasePage(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -130403,14 +130416,14 @@ func _clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno TPgno, freePageFlag int
var _ /* rc at bp+8 */ int32
_, _, _, _ = hdr, i, pCell, v2
if pgno > _btreePagecount(tls, pBt) {
- return _sqlite3CorruptError(tls, int32(81699))
+ return _sqlite3CorruptError(tls, int32(81706))
}
*(*int32)(unsafe.Pointer(bp + 8)) = _getAndInitPage(tls, pBt, pgno, bp, 0)
if *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
return *(*int32)(unsafe.Pointer(bp + 8))
}
if int32((*TBtShared)(unsafe.Pointer(pBt)).FopenFlags)&int32(BTREE_SINGLE) == 0 && _sqlite3PagerPageRefcount(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpDbPage) != int32(1)+libc.BoolInt32(pgno == uint32(1)) {
- *(*int32)(unsafe.Pointer(bp + 8)) = _sqlite3CorruptError(tls, int32(81706))
+ *(*int32)(unsafe.Pointer(bp + 8)) = _sqlite3CorruptError(tls, int32(81713))
goto cleardatabasepage_out
}
hdr = int32((*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FhdrOffset)
@@ -130547,7 +130560,7 @@ func _btreeDropTable(tls *libc.TLS, p uintptr, iTable TPgno, piMoved uintptr) (r
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
pBt = (*TBtree)(unsafe.Pointer(p)).FpBt
if iTable > _btreePagecount(tls, pBt) {
- return _sqlite3CorruptError(tls, int32(81810))
+ return _sqlite3CorruptError(tls, int32(81817))
}
*(*int32)(unsafe.Pointer(bp)) = _sqlite3BtreeClearTable(tls, p, int32(iTable), uintptr(0))
if *(*int32)(unsafe.Pointer(bp)) != 0 {
@@ -133752,7 +133765,7 @@ func _sqlite3VdbeMemFromBtree(tls *libc.TLS, pCur uintptr, offset Tu32, amt Tu32
_, _ = rc, v1
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Null)
if _sqlite3BtreeMaxRecordSize(tls, pCur) < int64(offset+amt) {
- return _sqlite3CorruptError(tls, int32(85108))
+ return _sqlite3CorruptError(tls, int32(85115))
}
v1 = _sqlite3VdbeMemClearAndResize(tls, pMem, int32(amt+uint32(1)))
rc = v1
@@ -134455,7 +134468,7 @@ func _sqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
}
iHdr = uint32(uint8(v1))
if *(*Tu32)(unsafe.Pointer(bp + 4)) > uint32(nRec) || iHdr >= *(*Tu32)(unsafe.Pointer(bp + 4)) {
- return _sqlite3CorruptError(tls, int32(85794))
+ return _sqlite3CorruptError(tls, int32(85801))
}
iField = int64(*(*Tu32)(unsafe.Pointer(bp + 4)))
i = 0
@@ -134471,7 +134484,7 @@ func _sqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
}
iHdr += uint32(uint8(v3))
if iHdr > *(*Tu32)(unsafe.Pointer(bp + 4)) {
- return _sqlite3CorruptError(tls, int32(85800))
+ return _sqlite3CorruptError(tls, int32(85807))
}
szField = _sqlite3VdbeSerialTypeLen(tls, *(*Tu32)(unsafe.Pointer(bp)))
iField += int64(szField)
@@ -134481,7 +134494,7 @@ func _sqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
i++
}
if iField > int64(nRec) {
- return _sqlite3CorruptError(tls, int32(85806))
+ return _sqlite3CorruptError(tls, int32(85813))
}
if pMem == uintptr(0) {
v4 = _sqlite3ValueNew(tls, db)
@@ -137567,7 +137580,7 @@ func _sqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) (r int32) {
return rc
}
if *(*int32)(unsafe.Pointer(bp)) != 0 {
- return _sqlite3CorruptError(tls, int32(89687))
+ return _sqlite3CorruptError(tls, int32(89694))
}
(*TVdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto = uint8(0)
(*TVdbeCursor)(unsafe.Pointer(p)).FcacheStatus = uint32(CACHE_STALE)
@@ -138415,7 +138428,7 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
i = 0
}
if d1 > uint32(nKey1) {
- (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90646)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90653)))
return 0 /* Corruption */
}
/* Only needed by assert() statements */
@@ -138505,7 +138518,7 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
pKeyInfo = v4
}
if v5 || int32((*TKeyInfo)(unsafe.Pointer(v4)).FnAllField) <= i {
- (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90727)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90734)))
return 0 /* Corruption */
} else {
if *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)) != 0 {
@@ -138540,7 +138553,7 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
} else {
nStr = int32((*(*Tu32)(unsafe.Pointer(bp + 68)) - uint32(12)) / uint32(2))
if d1+uint32(nStr) > uint32(nKey1) {
- (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90757)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90764)))
return 0 /* Corruption */
} else {
if int32((*TMem)(unsafe.Pointer(pRhs)).Fflags)&int32(MEM_Zero) != 0 {
@@ -138594,7 +138607,7 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
}
idx1 += uint32(_sqlite3VarintLen(tls, uint64(*(*Tu32)(unsafe.Pointer(bp + 68)))))
if idx1 >= *(*Tu32)(unsafe.Pointer(bp)) {
- (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90808)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90815)))
return 0 /* Corrupt index */
}
}
@@ -138726,7 +138739,7 @@ vrcs_restart:
szHdr = int32(*(*Tu8)(unsafe.Pointer(aKey1)))
nStr = (*(*int32)(unsafe.Pointer(bp)) - int32(12)) / int32(2)
if szHdr+nStr > nKey1 {
- (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90971)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(90978)))
return 0 /* Corruption */
}
if (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).Fn < nStr {
@@ -138878,7 +138891,7 @@ func _sqlite3VdbeIdxRowid(tls *libc.TLS, db uintptr, pCur uintptr, rowid uintptr
idx_rowid_corruption:
;
_sqlite3VdbeMemReleaseMalloc(tls, bp+8)
- return _sqlite3CorruptError(tls, int32(91129))
+ return _sqlite3CorruptError(tls, int32(91136))
}
// C documentation
@@ -138909,7 +138922,7 @@ func _sqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked
** that btreeParseCellPtr() and sqlite3GetVarint32() are implemented */
if nCellKey <= 0 || nCellKey > int64(0x7fffffff) {
*(*int32)(unsafe.Pointer(res)) = 0
- return _sqlite3CorruptError(tls, int32(91162))
+ return _sqlite3CorruptError(tls, int32(91169))
}
_sqlite3VdbeMemInit(tls, bp, db, uint16(0))
rc = _sqlite3VdbeMemFromBtreeZeroOffset(tls, pCur, uint32(nCellKey), bp)
@@ -139326,7 +139339,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) (r int32) {
v = pStmt
db = (*TVdbe)(unsafe.Pointer(v)).Fdb
if _vdbeSafety(tls, v) != 0 {
- return _sqlite3MisuseError(tls, int32(91560))
+ return _sqlite3MisuseError(tls, int32(91567))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if (*TVdbe)(unsafe.Pointer(v)).FstartTime > 0 {
@@ -140030,7 +140043,7 @@ func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) (r int32) {
v = pStmt /* the prepared statement */
cnt = 0 /* The database connection */
if _vdbeSafetyNotNull(tls, v) != 0 {
- return _sqlite3MisuseError(tls, int32(92354))
+ return _sqlite3MisuseError(tls, int32(92361))
}
db = (*TVdbe)(unsafe.Pointer(v)).Fdb
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -140160,7 +140173,7 @@ func _valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32
_, _, _, _, _, _, _ = iOff, pOut, pRhs, rc, sz, zBuf, v1
*(*uintptr)(unsafe.Pointer(ppOut)) = uintptr(0)
if pVal == uintptr(0) {
- return _sqlite3MisuseError(tls, int32(92475))
+ return _sqlite3MisuseError(tls, int32(92482))
}
if int32((*Tsqlite3_value)(unsafe.Pointer(pVal)).Fflags)&int32(MEM_Dyn) == 0 || (*Tsqlite3_value)(unsafe.Pointer(pVal)).FxDel != __ccgo_fp(_sqlite3VdbeValueListFree) {
return int32(SQLITE_ERROR)
@@ -140886,14 +140899,14 @@ func _vdbeUnbind(tls *libc.TLS, p uintptr, i uint32) (r int32) {
var v2 bool
_, _, _ = pVar, v1, v2
if _vdbeSafetyNotNull(tls, p) != 0 {
- return _sqlite3MisuseError(tls, int32(93091))
+ return _sqlite3MisuseError(tls, int32(93098))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
if int32((*TVdbe)(unsafe.Pointer(p)).FeVdbeState) != int32(VDBE_READY_STATE) {
- _sqlite3Error(tls, (*TVdbe)(unsafe.Pointer(p)).Fdb, _sqlite3MisuseError(tls, int32(93095)))
+ _sqlite3Error(tls, (*TVdbe)(unsafe.Pointer(p)).Fdb, _sqlite3MisuseError(tls, int32(93102)))
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+6984, libc.VaList(bp+8, (*TVdbe)(unsafe.Pointer(p)).FzSql))
- return _sqlite3MisuseError(tls, int32(93099))
+ return _sqlite3MisuseError(tls, int32(93106))
}
if i >= uint32((*TVdbe)(unsafe.Pointer(p)).FnVar) {
_sqlite3Error(tls, (*TVdbe)(unsafe.Pointer(p)).Fdb, int32(SQLITE_RANGE))
@@ -141467,7 +141480,7 @@ func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp
/* Test that this call is being made from within an SQLITE_DELETE or
** SQLITE_UPDATE pre-update callback, and that iIdx is within range. */
if !(p != 0) || (*TPreUpdate)(unsafe.Pointer(p)).Fop == int32(SQLITE_INSERT) {
- rc = _sqlite3MisuseError(tls, int32(93642))
+ rc = _sqlite3MisuseError(tls, int32(93649))
goto preupdate_old_out
}
if (*TPreUpdate)(unsafe.Pointer(p)).FpPk != 0 {
@@ -141529,7 +141542,7 @@ func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp
})(unsafe.Pointer((*TPreUpdate)(unsafe.Pointer(p)).FpTab + 64))).FpDfltList + 8 + uintptr(int32((*TColumn)(unsafe.Pointer(pCol)).FiDflt)-int32(1))*32))).FpExpr
rc = _sqlite3ValueFromExpr(tls, db, pDflt, (*Tsqlite3)(unsafe.Pointer(db)).Fenc, uint8((*TColumn)(unsafe.Pointer(pCol)).Faffinity), bp)
if rc == SQLITE_OK && *(*uintptr)(unsafe.Pointer(bp)) == uintptr(0) {
- rc = _sqlite3CorruptError(tls, int32(93701))
+ rc = _sqlite3CorruptError(tls, int32(93708))
}
*(*uintptr)(unsafe.Pointer((*TPreUpdate)(unsafe.Pointer(p)).FapDflt + uintptr(iIdx)*8)) = *(*uintptr)(unsafe.Pointer(bp))
}
@@ -141630,7 +141643,7 @@ func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp
iStore = 0
p = (*Tsqlite3)(unsafe.Pointer(db)).FpPreUpdate
if !(p != 0) || (*TPreUpdate)(unsafe.Pointer(p)).Fop == int32(SQLITE_DELETE) {
- rc = _sqlite3MisuseError(tls, int32(93797))
+ rc = _sqlite3MisuseError(tls, int32(93804))
goto preupdate_new_out
}
if (*TPreUpdate)(unsafe.Pointer(p)).FpPk != 0 && (*TPreUpdate)(unsafe.Pointer(p)).Fop != int32(SQLITE_UPDATE) {
@@ -144991,7 +145004,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
pOp = aOp + uintptr((*(*TOp)(unsafe.Pointer(aOp))).Fp3-int32(1))*24
goto _187
} else {
- rc = _sqlite3CorruptError(tls, int32(97561))
+ rc = _sqlite3CorruptError(tls, int32(97568))
goto abort_due_to_error
}
/* Opcode: TypeCheck P1 P2 P3 P4 *
@@ -146928,7 +146941,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*TVdbeCursor)(unsafe.Pointer(pC10)).FseekResult = *(*int32)(unsafe.Pointer(bp + 248))
if *(*int32)(unsafe.Pointer(bp + 248)) != 0 {
if (*TOp)(unsafe.Pointer(pOp)).Fp2 == 0 {
- rc = _sqlite3CorruptError(tls, int32(99822))
+ rc = _sqlite3CorruptError(tls, int32(99829))
} else {
goto jump_to_p2
}
@@ -147820,7 +147833,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
} else {
if (*TOp)(unsafe.Pointer(pOp)).Fp5 != 0 && !(_sqlite3WritableSchema(tls, db) != 0) {
- rc = _sqlite3ReportError(tls, libc.Int32FromInt32(SQLITE_CORRUPT)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), int32(100914), __ccgo_ts+7525)
+ rc = _sqlite3ReportError(tls, libc.Int32FromInt32(SQLITE_CORRUPT)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), int32(100921), __ccgo_ts+7525)
goto abort_due_to_error
}
}
@@ -147975,7 +147988,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
/* nCellKey will always be between 0 and 0xffffffff because of the way
** that btreeParseCellPtr() and sqlite3GetVarint32() are implemented */
if nCellKey <= 0 || nCellKey > int64(0x7fffffff) {
- rc = _sqlite3CorruptError(tls, int32(101119))
+ rc = _sqlite3CorruptError(tls, int32(101126))
goto abort_due_to_error
}
_sqlite3VdbeMemInit(tls, bp+552, db, uint16(0))
@@ -148202,7 +148215,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
/* 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 = _sqlite3CorruptError(tls, int32(101412))
+ rc = _sqlite3CorruptError(tls, int32(101419))
}
_sqlite3DbFreeNN(tls, db, zSql)
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy = uint8(0)
@@ -149853,7 +149866,7 @@ abort_due_to_error:
rc = int32(SQLITE_NOMEM)
} else {
if rc == libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(33)<<libc.Int32FromInt32(8) {
- rc = _sqlite3CorruptError(tls, int32(103474))
+ rc = _sqlite3CorruptError(tls, int32(103481))
}
}
if (*TVdbe)(unsafe.Pointer(p)).FzErrMsg == uintptr(0) && rc != libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(12)<<libc.Int32FromInt32(8) {
@@ -150409,7 +150422,7 @@ func _blobReadWrite(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset in
_, _, _, _, _ = db, iKey, p, rc, v
p = pBlob
if p == uintptr(0) {
- return _sqlite3MisuseError(tls, int32(103962))
+ return _sqlite3MisuseError(tls, int32(103969))
}
db = (*TIncrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -150508,7 +150521,7 @@ func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Tsqlite3_int64) (r
_, _, _, _ = db, p, rc, v1
p = pBlob
if p == uintptr(0) {
- return _sqlite3MisuseError(tls, int32(104062))
+ return _sqlite3MisuseError(tls, int32(104069))
}
db = (*TIncrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -157962,7 +157975,7 @@ func _sqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintpt
return pLeft
} else {
f = (*TExpr)(unsafe.Pointer(pLeft)).Fflags | (*TExpr)(unsafe.Pointer(pRight)).Fflags
- if f&uint32(libc.Int32FromInt32(EP_OuterON)|libc.Int32FromInt32(EP_InnerON)|libc.Int32FromInt32(EP_IsFalse)) == uint32(EP_IsFalse) && !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
+ if f&uint32(libc.Int32FromInt32(EP_OuterON)|libc.Int32FromInt32(EP_InnerON)|libc.Int32FromInt32(EP_IsFalse)|libc.Int32FromInt32(EP_HasFunc)) == uint32(EP_IsFalse) && !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
_sqlite3ExprDeferredDelete(tls, pParse, pLeft)
_sqlite3ExprDeferredDelete(tls, pParse, pRight)
return _sqlite3Expr(tls, db, int32(TK_INTEGER), __ccgo_ts+1820)
@@ -161889,17 +161902,17 @@ expr_code_doover:
_sqlite3VdbeAddOp2(tls, v, int32(OP_Null), 0, target)
break
}
- pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)*24
+ pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)*32
if !((*TAggInfo)(unsafe.Pointer(pAggInfo)).FdirectMode != 0) {
return (*TAggInfo)(unsafe.Pointer(pAggInfo)).FiFirstReg + int32((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)
} else {
if (*TAggInfo)(unsafe.Pointer(pAggInfo)).FuseSortingIdx != 0 {
pTab = (*TAggInfo_col)(unsafe.Pointer(pCol)).FpTab
- _sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TAggInfo)(unsafe.Pointer(pAggInfo)).FsortingIdxPTab, int32((*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn), target)
+ _sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TAggInfo)(unsafe.Pointer(pAggInfo)).FsortingIdxPTab, (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn, target)
if pTab == uintptr(0) {
/* No comment added */
} else {
- if int32((*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn) < 0 {
+ if (*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn < 0 {
} else {
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr((*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn)*16))).Faffinity) == int32(SQLITE_AFF_REAL) {
_sqlite3VdbeAddOp1(tls, v, int32(OP_RealAffinity), target)
@@ -162325,7 +162338,7 @@ expr_code_doover:
break
}
if (*TAggInfo)(unsafe.Pointer((*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo)).FuseSortingIdx != 0 {
- _sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TAggInfo)(unsafe.Pointer(pAggInfo1)).FsortingIdxPTab, int32((*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo1)).FaCol + uintptr((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)*24))).FiSorterColumn), target)
+ _sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TAggInfo)(unsafe.Pointer(pAggInfo1)).FsortingIdxPTab, (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo1)).FaCol + uintptr((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)*32))).FiSorterColumn, target)
inReg = target
break
}
@@ -164073,10 +164086,10 @@ func _agginfoPersistExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int
pParse = (*TWalker)(unsafe.Pointer(pWalker)).FpParse
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_AGG_FUNCTION) {
- if iAgg < (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn && (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(iAgg)*24))).FpCExpr == pExpr {
+ if iAgg < (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn && (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(iAgg)*32))).FpCExpr == pExpr {
pExpr = _sqlite3ExprDup(tls, db, pExpr, 0)
if pExpr != 0 && !(_sqlite3ExprDeferredDelete(tls, pParse, pExpr) != 0) {
- (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(iAgg)*24))).FpCExpr = pExpr
+ (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(iAgg)*32))).FpCExpr = pExpr
}
}
} else {
@@ -164114,7 +164127,7 @@ func _addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
var _ /* i at bp+0 */ int32
- (*TAggInfo)(unsafe.Pointer(pInfo)).FaCol = _sqlite3ArrayAllocate(tls, db, (*TAggInfo)(unsafe.Pointer(pInfo)).FaCol, int32(24), pInfo+32, bp)
+ (*TAggInfo)(unsafe.Pointer(pInfo)).FaCol = _sqlite3ArrayAllocate(tls, db, (*TAggInfo)(unsafe.Pointer(pInfo)).FaCol, int32(32), pInfo+40, bp)
return *(*int32)(unsafe.Pointer(bp))
}
@@ -164128,7 +164141,7 @@ func _addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
var _ /* i at bp+0 */ int32
- (*TAggInfo)(unsafe.Pointer(pInfo)).FaFunc = _sqlite3ArrayAllocate(tls, db, (*TAggInfo)(unsafe.Pointer(pInfo)).FaFunc, int32(32), pInfo+48, bp)
+ (*TAggInfo)(unsafe.Pointer(pInfo)).FaFunc = _sqlite3ArrayAllocate(tls, db, (*TAggInfo)(unsafe.Pointer(pInfo)).FaFunc, int32(32), pInfo+56, bp)
return *(*int32)(unsafe.Pointer(bp))
}
@@ -164142,10 +164155,13 @@ func _addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) (r int32) {
// ** new column will have an index of pAggInfo->nColumn-1.
// */
func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr, pExpr uintptr) {
- var j, k, n int32
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+ var j, k, mxTerm, n int32
var pCol, pE, pGB, pTerm, v4 uintptr
- var v3 Tu16
- _, _, _, _, _, _, _, _, _ = j, k, n, pCol, pE, pGB, pTerm, v3, v4
+ var v3 Tu32
+ _, _, _, _, _, _, _, _, _, _ = j, k, mxTerm, n, pCol, pE, pGB, pTerm, v3, v4
+ mxTerm = *(*int32)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb + 136 + 2*4))
pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol
k = 0
for {
@@ -164155,25 +164171,29 @@ func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr,
if (*TAggInfo_col)(unsafe.Pointer(pCol)).FpCExpr == pExpr {
return
}
- if (*TAggInfo_col)(unsafe.Pointer(pCol)).FiTable == (*TExpr)(unsafe.Pointer(pExpr)).FiTable && int32((*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn) == int32((*TExpr)(unsafe.Pointer(pExpr)).FiColumn) && int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_IF_NULL_ROW) {
+ if (*TAggInfo_col)(unsafe.Pointer(pCol)).FiTable == (*TExpr)(unsafe.Pointer(pExpr)).FiTable && (*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn == int32((*TExpr)(unsafe.Pointer(pExpr)).FiColumn) && int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_IF_NULL_ROW) {
goto fix_up_expr
}
goto _1
_1:
;
k++
- pCol += 24
+ pCol += 32
}
k = _addAggInfoColumn(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pAggInfo)
if k < 0 {
/* OOM on resize */
return
}
- pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(k)*24
+ if k > mxTerm {
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9907, libc.VaList(bp+8, mxTerm))
+ k = mxTerm
+ }
+ pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(k)*32
(*TAggInfo_col)(unsafe.Pointer(pCol)).FpTab = *(*uintptr)(unsafe.Pointer(pExpr + 64))
(*TAggInfo_col)(unsafe.Pointer(pCol)).FiTable = (*TExpr)(unsafe.Pointer(pExpr)).FiTable
- (*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn = (*TExpr)(unsafe.Pointer(pExpr)).FiColumn
- (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = int16(-int32(1))
+ (*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn = int32((*TExpr)(unsafe.Pointer(pExpr)).FiColumn)
+ (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = -int32(1)
(*TAggInfo_col)(unsafe.Pointer(pCol)).FpCExpr = pExpr
if (*TAggInfo)(unsafe.Pointer(pAggInfo)).FpGroupBy != 0 && int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_IF_NULL_ROW) {
pGB = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FpGroupBy
@@ -164186,7 +164206,7 @@ func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr,
}
pE = (*TExprList_item)(unsafe.Pointer(pTerm)).FpExpr
if int32((*TExpr)(unsafe.Pointer(pE)).Fop) == int32(TK_COLUMN) && (*TExpr)(unsafe.Pointer(pE)).FiTable == (*TExpr)(unsafe.Pointer(pExpr)).FiTable && int32((*TExpr)(unsafe.Pointer(pE)).FiColumn) == int32((*TExpr)(unsafe.Pointer(pExpr)).FiColumn) {
- (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = int16(j)
+ (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = j
break
}
goto _2
@@ -164196,11 +164216,11 @@ func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr,
pTerm += 32
}
}
- if int32((*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn) < 0 {
- v4 = pAggInfo + 2
- v3 = *(*Tu16)(unsafe.Pointer(v4))
- *(*Tu16)(unsafe.Pointer(v4))++
- (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = int16(v3)
+ if (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn < 0 {
+ v4 = pAggInfo + 4
+ v3 = *(*Tu32)(unsafe.Pointer(v4))
+ *(*Tu32)(unsafe.Pointer(v4))++
+ (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = int32(v3)
}
goto fix_up_expr
fix_up_expr:
@@ -164220,13 +164240,13 @@ fix_up_expr:
// ** for additional information.
// */
func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
+ bp := tls.Alloc(96)
+ defer tls.Free(96)
var enc Tu8
- var i, iDataCur, nArg, v5, v6, v8 int32
+ var i, iDataCur, mxTerm, nArg, v5, v6, v8 int32
var pAggInfo, pIEpr, pItem, pItem1, pNC, pOBList, pParse, pSrcList, v7, v9 uintptr
var _ /* tmp at bp+0 */ TExpr
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = enc, i, iDataCur, nArg, pAggInfo, pIEpr, pItem, pItem1, pNC, pOBList, pParse, pSrcList, v5, v6, v7, v8, v9
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = enc, i, iDataCur, mxTerm, nArg, pAggInfo, pIEpr, pItem, pItem1, pNC, pOBList, pParse, pSrcList, v5, v6, v7, v8, v9
pNC = *(*uintptr)(unsafe.Pointer(pWalker + 40))
pParse = (*TNameContext)(unsafe.Pointer(pNC)).FpParse
pSrcList = (*TNameContext)(unsafe.Pointer(pNC)).FpSrcList
@@ -164296,7 +164316,7 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
if (*TParse)(unsafe.Pointer(pParse)).FnErr != 0 {
return int32(WRC_Abort)
}
- (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr((*(*TExpr)(unsafe.Pointer(bp))).FiAgg)*24))).FpCExpr = pExpr
+ (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr((*(*TExpr)(unsafe.Pointer(bp))).FiAgg)*32))).FpCExpr = pExpr
(*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo = pAggInfo
(*TExpr)(unsafe.Pointer(pExpr)).FiAgg = (*(*TExpr)(unsafe.Pointer(bp))).FiAgg
return int32(WRC_Prune)
@@ -164332,6 +164352,7 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
** function that is already in the pAggInfo structure
*/
pItem1 = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaFunc
+ mxTerm = *(*int32)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb + 136 + 2*4))
i = 0
for {
if !(i < (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnFunc) {
@@ -164349,44 +164370,49 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
i++
pItem1 += 32
}
- if i >= (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnFunc {
- /* pExpr is original. Make a new entry in pAggInfo->aFunc[]
- */
- enc = (*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Fenc
- i = _addAggInfoFunc(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pAggInfo)
- if i >= 0 {
- pItem1 = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaFunc + uintptr(i)*32
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFExpr = pExpr
- if *(*uintptr)(unsafe.Pointer(pExpr + 32)) != 0 {
- v5 = (*TExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FnExpr
- } else {
- v5 = 0
- }
- nArg = v5
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFunc = _sqlite3FindFunction(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(pExpr + 8)), nArg, enc, uint8(0))
- if (*TExpr)(unsafe.Pointer(pExpr)).FpLeft != 0 && (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFunc)).FfuncFlags&uint32(SQLITE_FUNC_NEEDCOLL) == uint32(0) {
- v7 = pParse + 60
- v6 = *(*int32)(unsafe.Pointer(v7))
- *(*int32)(unsafe.Pointer(v7))++
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiOBTab = v6
- pOBList = *(*uintptr)(unsafe.Pointer((*TExpr)(unsafe.Pointer(pExpr)).FpLeft + 32))
- if (*TExprList)(unsafe.Pointer(pOBList)).FnExpr == int32(1) && nArg == int32(1) && _sqlite3ExprCompare(tls, uintptr(0), (*(*TExprList_item)(unsafe.Pointer(pOBList + 8))).FpExpr, (*(*TExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)) + 8))).FpExpr, 0) == 0 {
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBPayload = uint8(0)
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBUnique = libc.BoolUint8((*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Distinct)) != libc.Uint32FromInt32(0))
+ if i > mxTerm {
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9907, libc.VaList(bp+80, mxTerm))
+ i = mxTerm
+ } else {
+ if i >= (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnFunc {
+ /* pExpr is original. Make a new entry in pAggInfo->aFunc[]
+ */
+ enc = (*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Fenc
+ i = _addAggInfoFunc(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pAggInfo)
+ if i >= 0 {
+ pItem1 = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaFunc + uintptr(i)*32
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFExpr = pExpr
+ if *(*uintptr)(unsafe.Pointer(pExpr + 32)) != 0 {
+ v5 = (*TExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FnExpr
} else {
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBPayload = uint8(1)
+ v5 = 0
+ }
+ nArg = v5
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFunc = _sqlite3FindFunction(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(pExpr + 8)), nArg, enc, uint8(0))
+ if (*TExpr)(unsafe.Pointer(pExpr)).FpLeft != 0 && (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFunc)).FfuncFlags&uint32(SQLITE_FUNC_NEEDCOLL) == uint32(0) {
+ v7 = pParse + 60
+ v6 = *(*int32)(unsafe.Pointer(v7))
+ *(*int32)(unsafe.Pointer(v7))++
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiOBTab = v6
+ pOBList = *(*uintptr)(unsafe.Pointer((*TExpr)(unsafe.Pointer(pExpr)).FpLeft + 32))
+ if (*TExprList)(unsafe.Pointer(pOBList)).FnExpr == int32(1) && nArg == int32(1) && _sqlite3ExprCompare(tls, uintptr(0), (*(*TExprList_item)(unsafe.Pointer(pOBList + 8))).FpExpr, (*(*TExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)) + 8))).FpExpr, 0) == 0 {
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBPayload = uint8(0)
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBUnique = libc.BoolUint8((*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Distinct)) != libc.Uint32FromInt32(0))
+ } else {
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBPayload = uint8(1)
+ }
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbUseSubtype = libc.BoolUint8((*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFunc)).FfuncFlags&uint32(SQLITE_SUBTYPE) != uint32(0))
+ } else {
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiOBTab = -int32(1)
+ }
+ if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Distinct)) != uint32(0) && !((*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBUnique != 0) {
+ v9 = pParse + 60
+ v8 = *(*int32)(unsafe.Pointer(v9))
+ *(*int32)(unsafe.Pointer(v9))++
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiDistinct = v8
+ } else {
+ (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiDistinct = -int32(1)
}
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FbUseSubtype = libc.BoolUint8((*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pItem1)).FpFunc)).FfuncFlags&uint32(SQLITE_SUBTYPE) != uint32(0))
- } else {
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiOBTab = -int32(1)
- }
- if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Distinct)) != uint32(0) && !((*TAggInfo_func)(unsafe.Pointer(pItem1)).FbOBUnique != 0) {
- v9 = pParse + 60
- v8 = *(*int32)(unsafe.Pointer(v9))
- *(*int32)(unsafe.Pointer(v9))++
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiDistinct = v8
- } else {
- (*TAggInfo_func)(unsafe.Pointer(pItem1)).FiDistinct = -int32(1)
}
}
}
@@ -164634,7 +164660,7 @@ func _isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
if 0 == Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+8047, int32(7)) || (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_Eponymous) != uint32(0) || (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_Shadow) != uint32(0) && _sqlite3ReadOnlyShadowTables(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9907, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9936, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
return 0
@@ -164653,9 +164679,9 @@ func _renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32,
bp := tls.Alloc(48)
defer tls.Free(48)
libc.SetBitFieldPtr8Uint32(pParse+44, libc.Uint32FromInt32(1), 0, 0x1)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+9935, libc.VaList(bp+8, zDb, zDb, bTemp, zWhen, bNoDQS))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+9964, libc.VaList(bp+8, zDb, zDb, bTemp, zWhen, bNoDQS))
if bTemp == 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10110, libc.VaList(bp+8, zDb, zWhen, bNoDQS))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10139, libc.VaList(bp+8, zDb, zWhen, bNoDQS))
}
}
@@ -164671,9 +164697,9 @@ func _renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32,
func _renameFixQuotes(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32) {
bp := tls.Alloc(32)
defer tls.Free(32)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10284, libc.VaList(bp+8, zDb, zDb))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10313, libc.VaList(bp+8, zDb, zDb))
if bTemp == 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10431, 0)
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10460, 0)
}
}
@@ -164729,7 +164755,7 @@ func _sqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
** in database iDb. If so, this is an error.
*/
if _sqlite3FindTable(tls, db, zName, zDb) != 0 || _sqlite3FindIndex(tls, db, zName, zDb) != 0 || _sqlite3IsShadowTableOf(tls, db, pTab, zName) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10582, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10611, libc.VaList(bp+8, zName))
goto exit_rename_table
}
/* Make sure it is not a system table being altered, or a reserved name
@@ -164738,11 +164764,11 @@ func _sqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
if SQLITE_OK != _isAlterableTable(tls, pParse, pTab) {
goto exit_rename_table
}
- if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+10641, zName) {
+ if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+10670, zName) {
goto exit_rename_table
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10647, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10676, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_rename_table
}
/* Invoke the authorization callback. */
@@ -164772,21 +164798,21 @@ func _sqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
nTabName = _sqlite3Utf8CharLen(tls, zTabName, -int32(1))
/* Rewrite all CREATE TABLE, INDEX, TRIGGER or VIEW statements in
** the schema to use the new table name. */
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10674, libc.VaList(bp+8, zDb, zDb, zTabName, zName, libc.BoolInt32(iDb == int32(1)), zTabName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10703, libc.VaList(bp+8, zDb, zDb, zTabName, zName, libc.BoolInt32(iDb == int32(1)), zTabName))
/* Update the tbl_name and name columns of the sqlite_schema table
** as required. */
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10858, libc.VaList(bp+8, zDb, zName, zName, zName, nTabName, zTabName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10887, libc.VaList(bp+8, zDb, zName, zName, zName, nTabName, zTabName))
/* If the sqlite_sequence table exists in this database, then update
** it with the new table name.
*/
- if _sqlite3FindTable(tls, db, __ccgo_ts+11163, zDb) != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11179, libc.VaList(bp+8, zDb, zName, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ if _sqlite3FindTable(tls, db, __ccgo_ts+11192, zDb) != 0 {
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11208, libc.VaList(bp+8, zDb, zName, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
/* If the table being renamed is not itself part of the temp database,
** edit view and trigger definitions within the temp database
** as required. */
if iDb != int32(1) {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11237, libc.VaList(bp+8, zDb, zTabName, zName, zTabName, zDb, zName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11266, libc.VaList(bp+8, zDb, zTabName, zName, zTabName, zDb, zName))
}
/* If this is a virtual table, invoke the xRename() function if
** one is defined. The xRename() callback will modify the names
@@ -164802,7 +164828,7 @@ func _sqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
_sqlite3VdbeAddOp4(tls, v, int32(OP_VRename), i, 0, 0, pVTab, -int32(11))
}
_renameReloadSchema(tls, pParse, iDb, uint16(INITFLAG_AlterRename))
- _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+11502, 0)
+ _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+11531, 0)
goto exit_rename_table
exit_rename_table:
;
@@ -164819,7 +164845,7 @@ exit_rename_table:
func _sqlite3ErrorIfNotEmpty(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zErr uintptr) {
bp := tls.Alloc(32)
defer tls.Free(32)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11515, libc.VaList(bp+8, zErr, zDb, zTab))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11544, libc.VaList(bp+8, zErr, zDb, zTab))
}
// C documentation
@@ -164859,11 +164885,11 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
** column must not be NULL.
*/
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_PRIMKEY) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11553, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11582, 0)
return
}
if (*TTable)(unsafe.Pointer(pNew)).FpIndex != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11585, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11614, 0)
return
}
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_GENERATED) == 0 {
@@ -164879,10 +164905,10 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
FpFKey uintptr
FpDfltList uintptr
})(unsafe.Pointer(pNew + 64))).FpFKey != 0 && pDflt != 0 {
- _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11612)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11641)
}
if int32(uint32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 && !(pDflt != 0) {
- _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11671)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11700)
}
/* Ensure the default expression is something that sqlite3ValueFromExpr()
** can handle (i.e. not CURRENT_TIME etc.)
@@ -164894,13 +164920,13 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
return
}
if !(*(*uintptr)(unsafe.Pointer(bp)) != 0) {
- _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11724)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11753)
}
_sqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
} else {
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_STORED) != 0 {
- _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11770)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+11799)
}
}
/* Modify the CREATE TABLE statement. */
@@ -164914,7 +164940,7 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
}
/* substr() operations on characters, but addColOffset is in bytes. So we
** have to use printf() to translate between these units: */
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11797, libc.VaList(bp+16, zDb, (*(*struct {
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11826, libc.VaList(bp+16, zDb, (*(*struct {
FaddColOffset int32
FpFKey uintptr
FpDfltList uintptr
@@ -164942,7 +164968,7 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
_renameReloadSchema(tls, pParse, iDb, uint16(INITFLAG_AlterAdd))
/* Verify that constraints are still satisfied */
if (*TTable)(unsafe.Pointer(pNew)).FpCheck != uintptr(0) || int32(uint32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 && int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_GENERATED) != 0 || (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_Strict) != uint32(0) {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11943, libc.VaList(bp+16, zTab, zDb))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11972, libc.VaList(bp+16, zTab, zDb))
}
}
}
@@ -164980,12 +165006,12 @@ func _sqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) {
goto exit_begin_add_column
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12296, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12325, 0)
goto exit_begin_add_column
}
/* Make sure this is not an attempt to ALTER a view. */
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12330, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12359, 0)
goto exit_begin_add_column
}
if SQLITE_OK != _isAlterableTable(tls, pParse, pTab) {
@@ -165009,7 +165035,7 @@ func _sqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) {
(*TTable)(unsafe.Pointer(pNew)).FnCol = (*TTable)(unsafe.Pointer(pTab)).FnCol
nAlloc = (int32((*TTable)(unsafe.Pointer(pNew)).FnCol)-int32(1))/int32(8)*int32(8) + int32(8)
(*TTable)(unsafe.Pointer(pNew)).FaCol = _sqlite3DbMallocZero(tls, db, uint64(16)*uint64(uint32(nAlloc)))
- (*TTable)(unsafe.Pointer(pNew)).FzName = _sqlite3MPrintf(tls, db, __ccgo_ts+12360, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ (*TTable)(unsafe.Pointer(pNew)).FzName = _sqlite3MPrintf(tls, db, __ccgo_ts+12389, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
if !((*TTable)(unsafe.Pointer(pNew)).FaCol != 0) || !((*TTable)(unsafe.Pointer(pNew)).FzName != 0) {
goto exit_begin_add_column
}
@@ -165070,18 +165096,18 @@ func _isRealTable(tls *libc.TLS, pParse uintptr, pTab uintptr, bDrop int32) (r i
_, _ = zType, v1
zType = uintptr(0)
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- zType = __ccgo_ts + 12379
+ zType = __ccgo_ts + 12408
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- zType = __ccgo_ts + 12384
+ zType = __ccgo_ts + 12413
}
if zType != 0 {
if bDrop != 0 {
- v1 = __ccgo_ts + 12398
+ v1 = __ccgo_ts + 12427
} else {
- v1 = __ccgo_ts + 12415
+ v1 = __ccgo_ts + 12444
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12433, libc.VaList(bp+8, v1, zType, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12462, libc.VaList(bp+8, v1, zType, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
return 0
@@ -165130,7 +165156,7 @@ func _sqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld
}
iCol = _sqlite3ColumnIndex(tls, pTab, zOld)
if iCol < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12451, libc.VaList(bp+8, pOld))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12480, libc.VaList(bp+8, pOld))
goto exit_rename_column
}
/* Ensure the schema contains no double-quoted strings */
@@ -165146,11 +165172,11 @@ func _sqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld
goto exit_rename_column
}
bQuote = int32(_sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*TToken)(unsafe.Pointer(pNew)).Fz)))]) & int32(0x80)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+12472, libc.VaList(bp+8, zDb, zDb, (*TTable)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote, libc.BoolInt32(iSchema == int32(1)), (*TTable)(unsafe.Pointer(pTab)).FzName))
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+12654, libc.VaList(bp+8, zDb, (*TTable)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+12501, libc.VaList(bp+8, zDb, zDb, (*TTable)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote, libc.BoolInt32(iSchema == int32(1)), (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+12683, libc.VaList(bp+8, zDb, (*TTable)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote))
/* Drop and reload the database schema. */
_renameReloadSchema(tls, pParse, iSchema, uint16(INITFLAG_AlterRename))
- _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iSchema == int32(1)), __ccgo_ts+11502, int32(1))
+ _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iSchema == int32(1)), __ccgo_ts+11531, int32(1))
goto exit_rename_column
exit_rename_column:
;
@@ -165626,11 +165652,11 @@ func _renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType u
zT = Xsqlite3_value_text(tls, pType)
zN = Xsqlite3_value_text(tls, pObject)
if *(*int8)(unsafe.Pointer(zWhen)) != 0 {
- v1 = __ccgo_ts + 12785
+ v1 = __ccgo_ts + 12814
} else {
v1 = __ccgo_ts + 1674
}
- zErr = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+12787, libc.VaList(bp+8, zT, zN, v1, zWhen, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg))
+ zErr = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+12816, libc.VaList(bp+8, zT, zN, v1, zWhen, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg))
Xsqlite3_result_error(tls, pCtx, zErr, -int32(1))
_sqlite3DbFree(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, zErr)
}
@@ -165708,8 +165734,8 @@ func _renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uin
if zSql == uintptr(0) {
return int32(SQLITE_NOMEM)
}
- if Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+12810, int32(7)) != 0 {
- return _sqlite3CorruptError(tls, int32(118867))
+ if Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+12839, int32(7)) != 0 {
+ return _sqlite3CorruptError(tls, int32(118888))
}
if bTemp != 0 {
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb = uint8(1)
@@ -165728,7 +165754,7 @@ func _renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uin
rc = int32(SQLITE_NOMEM)
}
if rc == SQLITE_OK && ((*TParse)(unsafe.Pointer(p)).FpNewTable == uintptr(0) && (*TParse)(unsafe.Pointer(p)).FpNewIndex == uintptr(0) && (*TParse)(unsafe.Pointer(p)).FpNewTrigger == uintptr(0)) {
- rc = _sqlite3CorruptError(tls, int32(118888))
+ rc = _sqlite3CorruptError(tls, int32(118909))
}
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb = uint8(0)
return rc
@@ -165766,7 +165792,7 @@ func _renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr,
** 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 = _sqlite3MPrintf(tls, db, __ccgo_ts+12818, libc.VaList(bp+8, zNew))
+ zQuot = _sqlite3MPrintf(tls, db, __ccgo_ts+12847, libc.VaList(bp+8, zNew))
if zQuot == uintptr(0) {
return int32(SQLITE_NOMEM)
} else {
@@ -165811,11 +165837,11 @@ func _renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr,
*(*int8)(unsafe.Pointer(zBuf1 + uintptr((*TRenameToken)(unsafe.Pointer(pBest)).Ft.Fn))) = 0
_sqlite3Dequote(tls, zBuf1)
if int32(*(*int8)(unsafe.Pointer((*TRenameToken)(unsafe.Pointer(pBest)).Ft.Fz + uintptr((*TRenameToken)(unsafe.Pointer(pBest)).Ft.Fn)))) == int32('\'') {
- v1 = __ccgo_ts + 12785
+ v1 = __ccgo_ts + 12814
} else {
v1 = __ccgo_ts + 1674
}
- Xsqlite3_snprintf(tls, int32(nSql*libc.Int64FromInt32(2)), zBuf2, __ccgo_ts+12824, libc.VaList(bp+8, zBuf1, v1))
+ Xsqlite3_snprintf(tls, int32(nSql*libc.Int64FromInt32(2)), zBuf2, __ccgo_ts+12853, libc.VaList(bp+8, zBuf1, v1))
zReplace = zBuf2
nReplace = int64(_sqlite3Strlen30(tls, zReplace))
}
@@ -166792,7 +166818,7 @@ func _dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
pTab = (*(*TParse)(unsafe.Pointer(bp))).FpNewTable
if pTab == uintptr(0) || int32((*TTable)(unsafe.Pointer(pTab)).FnCol) == int32(1) || iCol >= int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
/* This can happen if the sqlite_schema table is corrupt */
- rc = _sqlite3CorruptError(tls, int32(119856))
+ rc = _sqlite3CorruptError(tls, int32(119877))
goto drop_column_done
}
pCol = _renameTokenFind(tls, bp, uintptr(0), (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FzCnName)
@@ -166809,7 +166835,7 @@ func _dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
(*TRenameToken)(unsafe.Pointer(pCol)).Ft.Fz--
}
}
- zNew = _sqlite3MPrintf(tls, db, __ccgo_ts+12829, libc.VaList(bp+432, int64((*TRenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql), zSql, zEnd))
+ zNew = _sqlite3MPrintf(tls, db, __ccgo_ts+12858, libc.VaList(bp+432, int64((*TRenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql), zSql, zEnd))
Xsqlite3_result_text(tls, context, zNew, -int32(1), uintptr(-libc.Int32FromInt32(1)))
Xsqlite3_free(tls, zNew)
goto drop_column_done
@@ -166864,23 +166890,23 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
}
iCol = _sqlite3ColumnIndex(tls, pTab, zCol)
if iCol < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12451, libc.VaList(bp+8, pName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12480, libc.VaList(bp+8, pName))
goto exit_drop_column
}
/* Do not allow the user to drop a PRIMARY KEY column or a column
** constrained by a UNIQUE constraint. */
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FcolFlags)&(libc.Int32FromInt32(COLFLAG_PRIMKEY)|libc.Int32FromInt32(COLFLAG_UNIQUE)) != 0 {
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FcolFlags)&int32(COLFLAG_PRIMKEY) != 0 {
- v1 = __ccgo_ts + 12836
+ v1 = __ccgo_ts + 12865
} else {
v1 = __ccgo_ts + 7067
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12848, libc.VaList(bp+8, v1, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12877, libc.VaList(bp+8, v1, zCol))
goto exit_drop_column
}
/* Do not allow the number of columns to go to zero */
if int32((*TTable)(unsafe.Pointer(pTab)).FnCol) <= int32(1) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12876, libc.VaList(bp+8, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12905, libc.VaList(bp+8, zCol))
goto exit_drop_column
}
/* Edit the sqlite_schema table */
@@ -166892,10 +166918,10 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
}
_renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+1674, 0)
_renameFixQuotes(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)))
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+12924, libc.VaList(bp+8, zDb, iDb, iCol, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+12953, libc.VaList(bp+8, zDb, iDb, iCol, (*TTable)(unsafe.Pointer(pTab)).FzName))
/* Drop and reload the database schema. */
_renameReloadSchema(tls, pParse, iDb, uint16(INITFLAG_AlterDrop))
- _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+13045, int32(1))
+ _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+13074, int32(1))
/* Edit rows of table on disk */
if (*TParse)(unsafe.Pointer(pParse)).FnErr == 0 && int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FcolFlags)&int32(COLFLAG_VIRTUAL) == 0 {
pPk = uintptr(0)
@@ -167003,27 +167029,27 @@ var _aAlterTableFuncs = [5]TFuncDef{
0: {
FnArg: int16(9),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT)),
- FzName: __ccgo_ts + 13063,
+ FzName: __ccgo_ts + 13092,
},
1: {
FnArg: int16(7),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT)),
- FzName: __ccgo_ts + 13084,
+ FzName: __ccgo_ts + 13113,
},
2: {
FnArg: int16(7),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT)),
- FzName: __ccgo_ts + 13104,
+ FzName: __ccgo_ts + 13133,
},
3: {
FnArg: int16(3),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT)),
- FzName: __ccgo_ts + 13123,
+ FzName: __ccgo_ts + 13152,
},
4: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT)),
- FzName: __ccgo_ts + 13142,
+ FzName: __ccgo_ts + 13171,
},
}
@@ -167234,7 +167260,7 @@ func _openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zW
** side-effect of the CREATE TABLE statement is to leave the rootpage
** of the new table in register pParse->regRoot. This is important
** because the OpenWrite opcode below will be needing it. */
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+13245, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, _aTable[i].FzCols))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13274, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, _aTable[i].FzCols))
aRoot[i] = uint32((*(*struct {
FaddrCrTab int32
FregRowid int32
@@ -167250,10 +167276,10 @@ func _openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zW
aRoot[i] = (*TTable)(unsafe.Pointer(pStat)).Ftnum
_sqlite3TableLock(tls, pParse, iDb, aRoot[i], uint8(1), zTab)
if zWhere != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+13268, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13297, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere))
} else {
if (*Tsqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+13298, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13327, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab))
} else {
/* The sqlite_stat[134] table already exists. Delete all rows. */
_sqlite3VdbeAddOp2(tls, v, int32(OP_Clear), int32(aRoot[i]), iDb)
@@ -167285,15 +167311,15 @@ var _aTable = [3]struct {
FzCols uintptr
}{
0: {
- FzName: __ccgo_ts + 13165,
- FzCols: __ccgo_ts + 13178,
+ FzName: __ccgo_ts + 13194,
+ FzCols: __ccgo_ts + 13207,
},
1: {
- FzName: __ccgo_ts + 13191,
- FzCols: __ccgo_ts + 13204,
+ FzName: __ccgo_ts + 13220,
+ FzCols: __ccgo_ts + 13233,
},
2: {
- FzName: __ccgo_ts + 13232,
+ FzName: __ccgo_ts + 13261,
},
}
@@ -167596,7 +167622,7 @@ func _statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
var _statInitFuncdef = TFuncDef{
FnArg: int16(4),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 13316,
+ FzName: __ccgo_ts + 13345,
}
func init() {
@@ -167970,7 +167996,7 @@ func _statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
var _statPushFuncdef = TFuncDef{
FnArg: int16(libc.Int32FromInt32(2) + libc.Int32FromInt32(IsStat4)),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 13326,
+ FzName: __ccgo_ts + 13355,
}
func init() {
@@ -168020,7 +168046,7 @@ func _statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
} else {
v1 = (*TStatAccum)(unsafe.Pointer(p)).FnRow
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+13336, libc.VaList(bp+72, v1))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+13365, libc.VaList(bp+72, v1))
i = 0
for {
if !(i < (*TStatAccum)(unsafe.Pointer(p)).FnKeyCol) {
@@ -168031,7 +168057,7 @@ func _statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
if iVal == uint64(2) && (*TStatAccum)(unsafe.Pointer(p)).FnRow*uint64(10) <= nDistinct*uint64(11) {
iVal = uint64(1)
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+13341, libc.VaList(bp+72, iVal))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+13370, libc.VaList(bp+72, iVal))
goto _2
_2:
;
@@ -168070,7 +168096,7 @@ func _statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
if !(i1 < (*TStatAccum)(unsafe.Pointer(p)).FnCol) {
break
}
- Xsqlite3_str_appendf(tls, bp+32, __ccgo_ts+13347, libc.VaList(bp+72, *(*TtRowcnt)(unsafe.Pointer(aCnt + uintptr(i1)*8))))
+ Xsqlite3_str_appendf(tls, bp+32, __ccgo_ts+13376, libc.VaList(bp+72, *(*TtRowcnt)(unsafe.Pointer(aCnt + uintptr(i1)*8))))
goto _3
_3:
;
@@ -168088,7 +168114,7 @@ func _statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
var _statGetFuncdef = TFuncDef{
FnArg: int16(libc.Int32FromInt32(1) + libc.Int32FromInt32(IsStat4)),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 13353,
+ FzName: __ccgo_ts + 13382,
}
func init() {
@@ -168154,7 +168180,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
/* Do not gather statistics on views or virtual tables */
return
}
- if Xsqlite3_strlike(tls, __ccgo_ts+13362, (*TTable)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
+ if Xsqlite3_strlike(tls, __ccgo_ts+13391, (*TTable)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
/* Do not gather statistics on system tables */
return
}
@@ -168168,7 +168194,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
return
}
(*TTable)(unsafe.Pointer(pStat1)).FzName = pStat1 + 1*120
- libc.Xmemcpy(tls, (*TTable)(unsafe.Pointer(pStat1)).FzName, __ccgo_ts+13165, uint64(13))
+ libc.Xmemcpy(tls, (*TTable)(unsafe.Pointer(pStat1)).FzName, __ccgo_ts+13194, uint64(13))
(*TTable)(unsafe.Pointer(pStat1)).FnCol = int16(3)
(*TTable)(unsafe.Pointer(pStat1)).FiPKey = int16(-int32(1))
_sqlite3VdbeAddOp4(tls, (*TParse)(unsafe.Pointer(pParse)).FpVdbe, int32(OP_Noop), 0, 0, 0, pStat1, -int32(6))
@@ -168401,7 +168427,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
addrGotoEnd = 0
}
_callStatGet(tls, pParse, regStat, STAT_GET_STAT1, regStat1)
- _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+13372, 0)
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+13401, 0)
_sqlite3VdbeAddOp2(tls, v, int32(OP_NewRowid), iStatCur, regNewRowid)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Insert), iStatCur, regTemp, regNewRowid)
_sqlite3VdbeChangeP4(tls, v, -int32(1), pStat1, -int32(5))
@@ -168492,7 +168518,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
_sqlite3VdbeAddOp2(tls, v, int32(OP_Count), iTabCur, regStat1)
jZeroRows = _sqlite3VdbeAddOp1(tls, v, int32(OP_IfNot), regStat1)
_sqlite3VdbeAddOp2(tls, v, int32(OP_Null), 0, regIdxname)
- _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+13372, 0)
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+13401, 0)
_sqlite3VdbeAddOp2(tls, v, int32(OP_NewRowid), iStatCur, regNewRowid)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Insert), iStatCur, regTemp, regNewRowid)
_sqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND))
@@ -168564,9 +168590,9 @@ func _analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr
iStatCur = (*TParse)(unsafe.Pointer(pParse)).FnTab
*(*int32)(unsafe.Pointer(pParse + 60)) += int32(3)
if pOnlyIdx != 0 {
- _openStatTable(tls, pParse, iDb, iStatCur, (*TIndex)(unsafe.Pointer(pOnlyIdx)).FzName, __ccgo_ts+13376)
+ _openStatTable(tls, pParse, iDb, iStatCur, (*TIndex)(unsafe.Pointer(pOnlyIdx)).FzName, __ccgo_ts+13405)
} else {
- _openStatTable(tls, pParse, iDb, iStatCur, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+13380)
+ _openStatTable(tls, pParse, iDb, iStatCur, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+13409)
}
_analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*TParse)(unsafe.Pointer(pParse)).FnMem+int32(1), (*TParse)(unsafe.Pointer(pParse)).FnTab)
_loadAnalysis(tls, pParse, iDb)
@@ -168730,17 +168756,17 @@ func _decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr,
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(0), 2, 0x4)
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(0), 6, 0x40)
for *(*int8)(unsafe.Pointer(z)) != 0 {
- if Xsqlite3_strglob(tls, __ccgo_ts+13384, z) == 0 {
+ if Xsqlite3_strglob(tls, __ccgo_ts+13413, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 2, 0x4)
} else {
- if Xsqlite3_strglob(tls, __ccgo_ts+13395, z) == 0 {
+ if Xsqlite3_strglob(tls, __ccgo_ts+13424, z) == 0 {
sz = _sqlite3Atoi(tls, z+uintptr(3))
if sz < int32(2) {
sz = int32(2)
}
(*TIndex)(unsafe.Pointer(pIndex)).FszIdxRow = _sqlite3LogEst(tls, uint64(sz))
} else {
- if Xsqlite3_strglob(tls, __ccgo_ts+13405, z) == 0 {
+ if Xsqlite3_strglob(tls, __ccgo_ts+13434, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 6, 0x40)
}
}
@@ -169112,11 +169138,11 @@ func _loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) (r int32) {
_, _, _, _ = pStat4, rc, v1, v2
rc = SQLITE_OK
if v2 = (*Tsqlite3)(unsafe.Pointer(db)).FdbOptFlags&uint32(libc.Int32FromInt32(SQLITE_Stat4)) == uint32(0); v2 {
- v1 = _sqlite3FindTable(tls, db, __ccgo_ts+13191, zDb)
+ v1 = _sqlite3FindTable(tls, db, __ccgo_ts+13220, zDb)
pStat4 = v1
}
if v2 && v1 != uintptr(0) && int32((*TTable)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM {
- rc = _loadStatTbl(tls, db, __ccgo_ts+13417, __ccgo_ts+13486, zDb)
+ rc = _loadStatTbl(tls, db, __ccgo_ts+13446, __ccgo_ts+13515, zDb)
}
return rc
}
@@ -169182,10 +169208,10 @@ func _sqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) (r int32) {
/* Load new statistics out of the sqlite_stat1 table */
(*(*TanalysisInfo)(unsafe.Pointer(bp))).Fdb = db
(*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName
- v3 = _sqlite3FindTable(tls, db, __ccgo_ts+13165, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase)
+ v3 = _sqlite3FindTable(tls, db, __ccgo_ts+13194, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase)
pStat1 = v3
if v3 != 0 && int32((*TTable)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM {
- zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+13538, libc.VaList(bp+24, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+13567, libc.VaList(bp+24, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase))
if zSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -169354,7 +169380,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
if *(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0) {
return
}
- rc = _sqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32)), __ccgo_ts+13579, db, bp+40, 0, int32(SQLITE_OPEN_MAIN_DB))
+ rc = _sqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32)), __ccgo_ts+13608, db, bp+40, 0, int32(SQLITE_OPEN_MAIN_DB))
if rc == SQLITE_OK {
pNewSchema = _sqlite3SchemaGet(tls, db, *(*uintptr)(unsafe.Pointer(bp + 40)))
if pNewSchema != 0 {
@@ -169385,7 +169411,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
** * Specified database name already being used.
*/
if (*Tsqlite3)(unsafe.Pointer(db)).FnDb >= *(*int32)(unsafe.Pointer(db + 136 + 7*4))+int32(2) {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13582, libc.VaList(bp+56, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13611, libc.VaList(bp+56, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
goto attach_error
}
i = 0
@@ -169394,7 +169420,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
break
}
if _sqlite3DbIsNamed(tls, db, i, zName) != 0 {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13619, libc.VaList(bp+56, zName))
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13648, libc.VaList(bp+56, zName))
goto attach_error
}
goto _1
@@ -169450,7 +169476,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
(*Tsqlite3)(unsafe.Pointer(db)).FnoSharedCache = uint8(0)
if rc == int32(SQLITE_CONSTRAINT) {
rc = int32(SQLITE_ERROR)
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13649, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13678, 0)
} else {
if rc == SQLITE_OK {
(*TDb)(unsafe.Pointer(pNew)).FpSchema = _sqlite3SchemaGet(tls, db, (*TDb)(unsafe.Pointer(pNew)).FpBt)
@@ -169458,7 +169484,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
rc = int32(SQLITE_NOMEM)
} else {
if (*TSchema)(unsafe.Pointer((*TDb)(unsafe.Pointer(pNew)).FpSchema)).Ffile_format != 0 && int32((*TSchema)(unsafe.Pointer((*TDb)(unsafe.Pointer(pNew)).FpSchema)).Fenc) != int32((*Tsqlite3)(unsafe.Pointer(db)).Fenc) {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13678, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13707, 0)
rc = int32(SQLITE_ERROR)
}
}
@@ -169505,7 +169531,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
*(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+1644, 0)
} else {
if *(*uintptr)(unsafe.Pointer(bp + 24)) == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13746, libc.VaList(bp+56, zFile))
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+13775, libc.VaList(bp+56, zFile))
}
}
}
@@ -169567,15 +169593,15 @@ func _detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
i++
}
if i >= (*Tsqlite3)(unsafe.Pointer(db)).FnDb {
- Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+13774, libc.VaList(bp+136, zName))
+ Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+13803, libc.VaList(bp+136, zName))
goto detach_error
}
if i < int32(2) {
- Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+13795, libc.VaList(bp+136, zName))
+ Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+13824, libc.VaList(bp+136, zName))
goto detach_error
}
if _sqlite3BtreeTxnState(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt) != SQLITE_TXN_NONE || _sqlite3BtreeIsInBackup(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt) != 0 {
- Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+13821, libc.VaList(bp+136, zName))
+ Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+13850, libc.VaList(bp+136, zName))
goto detach_error
}
/* If any TEMP triggers reference the schema being detached, move those
@@ -169670,7 +169696,7 @@ func _sqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) {
var _detach_func = TFuncDef{
FnArg: int16(1),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 13843,
+ FzName: __ccgo_ts + 13872,
}
func init() {
@@ -169692,7 +169718,7 @@ func _sqlite3Attach(tls *libc.TLS, pParse uintptr, p uintptr, pDbname uintptr, p
var _attach_func = TFuncDef{
FnArg: int16(3),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 13857,
+ FzName: __ccgo_ts + 13886,
}
func init() {
@@ -169718,7 +169744,7 @@ func _fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) (r int32) {
if (*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer((*TDbFixer)(unsafe.Pointer(pFix)).FpParse)).Fdb)).Finit1.Fbusy != 0 {
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_NULL)
} else {
- _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+13871, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType))
+ _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+13900, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType))
return int32(WRC_Abort)
}
}
@@ -169752,7 +169778,7 @@ func _fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) (r int32) {
if int32((*TDbFixer)(unsafe.Pointer(pFix)).FbTemp) == 0 && int32(*(*uint32)(unsafe.Pointer(pItem + 24 + 4))&0x4>>2) == 0 {
if int32(*(*uint32)(unsafe.Pointer(pItem + 24 + 4))&0x10000>>16) == 0 && *(*uintptr)(unsafe.Pointer(pItem + 72)) != uintptr(0) {
if iDb != _sqlite3FindDbName(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 72))) {
- _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+13895, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType, (*TDbFixer)(unsafe.Pointer(pFix)).FpName, *(*uintptr)(unsafe.Pointer(pItem + 72))))
+ _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+13924, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType, (*TDbFixer)(unsafe.Pointer(pFix)).FpName, *(*uintptr)(unsafe.Pointer(pItem + 72))))
return int32(WRC_Abort)
}
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 72)))
@@ -169969,7 +169995,7 @@ func Xsqlite3_set_authorizer(tls *libc.TLS, db uintptr, xAuth uintptr, pArg uint
// ** user-supplied authorization function returned an illegal value.
// */
func _sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13941, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13970, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_ERROR)
}
@@ -169997,11 +170023,11 @@ func _sqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintp
}
rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).FxAuth})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpAuthArg, int32(SQLITE_READ), zTab, zCol, zDb, (*TParse)(unsafe.Pointer(pParse)).FzAuthContext)
if rc == int32(SQLITE_DENY) {
- z = Xsqlite3_mprintf(tls, __ccgo_ts+13964, libc.VaList(bp+8, zTab, zCol))
+ z = Xsqlite3_mprintf(tls, __ccgo_ts+13993, libc.VaList(bp+8, zTab, zCol))
if (*Tsqlite3)(unsafe.Pointer(db)).FnDb > int32(2) || iDb != 0 {
- z = Xsqlite3_mprintf(tls, __ccgo_ts+13970, libc.VaList(bp+8, zDb, z))
+ z = Xsqlite3_mprintf(tls, __ccgo_ts+13999, libc.VaList(bp+8, zDb, z))
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13976, libc.VaList(bp+8, z))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14005, libc.VaList(bp+8, z))
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_AUTH)
} else {
if rc != int32(SQLITE_IGNORE) && rc != SQLITE_OK {
@@ -170096,7 +170122,7 @@ func _sqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr,
** parameters can be either NULL or a string. */
rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).FxAuth})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpAuthArg, code, zArg1, zArg2, zArg3, (*TParse)(unsafe.Pointer(pParse)).FzAuthContext)
if rc == int32(SQLITE_DENY) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14003, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14032, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_AUTH)
} else {
if rc != SQLITE_OK && rc != int32(SQLITE_IGNORE) {
@@ -170608,7 +170634,7 @@ func _sqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags Tu32, zName uintpt
** can be an eponymous virtual table. */
if int32((*TParse)(unsafe.Pointer(pParse)).FprepFlags)&int32(SQLITE_PREPARE_NO_VTAB) == 0 && int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy) == 0 {
pMod = _sqlite3HashFind(tls, db+576, zName)
- if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+14018, int32(7)) == 0 {
+ if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+14047, int32(7)) == 0 {
pMod = _sqlite3PragmaVtabRegister(tls, db, zName)
}
if pMod != 0 && _sqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 {
@@ -170626,9 +170652,9 @@ func _sqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags Tu32, zName uintpt
}
if p == uintptr(0) {
if flags&uint32(LOCATE_VIEW) != 0 {
- v1 = __ccgo_ts + 14026
+ v1 = __ccgo_ts + 14055
} else {
- v1 = __ccgo_ts + 14039
+ v1 = __ccgo_ts + 14068
}
zMsg = v1
if zDbase != 0 {
@@ -171292,13 +171318,13 @@ func _sqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if (*TToken)(unsafe.Pointer(pName2)).Fn > uint32(0) {
if (*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14053, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14082, 0)
return -int32(1)
}
*(*uintptr)(unsafe.Pointer(pUnqual)) = pName2
iDb = _sqlite3FindDb(tls, db, pName1)
if iDb < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14070, libc.VaList(bp+8, pName1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14099, libc.VaList(bp+8, pName1))
return -int32(1)
}
} else {
@@ -171347,7 +171373,7 @@ func _sqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType
}
} else {
if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, __ccgo_ts+8047, int32(7)) || _sqlite3ReadOnlyShadowTables(tls, db) != 0 && _sqlite3ShadowTableName(tls, db, zName) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14090, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14119, libc.VaList(bp+8, zName))
return int32(SQLITE_ERROR)
}
}
@@ -171579,7 +171605,7 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && isTemp != 0 && (*TToken)(unsafe.Pointer(pName2)).Fn > uint32(0) && iDb != int32(1) {
/* If creating a temp table, the name may not be qualified. Unless
** the database name is "temp" anyway. */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14132, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14161, 0)
return
}
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && isTemp != 0 {
@@ -171595,9 +171621,9 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
return
}
if isView != 0 {
- v2 = __ccgo_ts + 12379
+ v2 = __ccgo_ts + 12408
} else {
- v2 = __ccgo_ts + 10641
+ v2 = __ccgo_ts + 10670
}
if _sqlite3CheckObjectName(tls, pParse, zName, v2, zName) != 0 {
goto begin_table_error
@@ -171633,11 +171659,11 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
if pTable != 0 {
if !(noErr != 0) {
if int32((*TTable)(unsafe.Pointer(pTable)).FeTabType) == int32(TABTYP_VIEW) {
- v4 = __ccgo_ts + 12379
+ v4 = __ccgo_ts + 12408
} else {
- v4 = __ccgo_ts + 10641
+ v4 = __ccgo_ts + 10670
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14173, libc.VaList(bp+16, v4, *(*uintptr)(unsafe.Pointer(bp))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14202, libc.VaList(bp+16, v4, *(*uintptr)(unsafe.Pointer(bp))))
} else {
_sqlite3CodeVerifySchema(tls, pParse, iDb)
_sqlite3ForceNotReadOnly(tls, pParse)
@@ -171645,7 +171671,7 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
goto begin_table_error
}
if _sqlite3FindIndex(tls, db, zName, zDb1) != uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14194, libc.VaList(bp+16, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14223, libc.VaList(bp+16, zName))
goto begin_table_error
}
}
@@ -171812,7 +171838,7 @@ func _sqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) {
_, _, _ = db, pHash, pRet
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if (*TParse)(unsafe.Pointer(pParse)).FpNewTrigger != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14229, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14258, 0)
} else {
}
(*TParse)(unsafe.Pointer(pParse)).FbReturning = uint8(1)
@@ -171830,7 +171856,7 @@ func _sqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) {
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return
}
- Xsqlite3_snprintf(tls, int32(40), pRet+196, __ccgo_ts+14263, libc.VaList(bp+8, pParse))
+ Xsqlite3_snprintf(tls, int32(40), pRet+196, __ccgo_ts+14292, libc.VaList(bp+8, pParse))
(*TReturning)(unsafe.Pointer(pRet)).FretTrig.FzName = pRet + 196
(*TReturning)(unsafe.Pointer(pRet)).FretTrig.Fop = uint8(TK_RETURNING)
(*TReturning)(unsafe.Pointer(pRet)).FretTrig.Ftr_tm = uint8(TRIGGER_AFTER)
@@ -171877,7 +171903,7 @@ func _sqlite3AddColumn(tls *libc.TLS, pParse uintptr, _sName TToken, _sType TTok
return
}
if int32((*TTable)(unsafe.Pointer(p)).FnCol)+int32(1) > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14283, libc.VaList(bp+40, (*TTable)(unsafe.Pointer(p)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14312, libc.VaList(bp+40, (*TTable)(unsafe.Pointer(p)).FzName))
return
}
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
@@ -171887,12 +171913,12 @@ func _sqlite3AddColumn(tls *libc.TLS, pParse uintptr, _sName TToken, _sType TTok
** by the parser, we can sometimes end up with a typename that ends
** with "generated always". Check for this case and omit the surplus
** text. */
- if (*(*TToken)(unsafe.Pointer(bp + 16))).Fn >= uint32(16) && Xsqlite3_strnicmp(tls, (*(*TToken)(unsafe.Pointer(bp + 16))).Fz+uintptr((*(*TToken)(unsafe.Pointer(bp + 16))).Fn-libc.Uint32FromInt32(6)), __ccgo_ts+14306, int32(6)) == 0 {
+ if (*(*TToken)(unsafe.Pointer(bp + 16))).Fn >= uint32(16) && Xsqlite3_strnicmp(tls, (*(*TToken)(unsafe.Pointer(bp + 16))).Fz+uintptr((*(*TToken)(unsafe.Pointer(bp + 16))).Fn-libc.Uint32FromInt32(6)), __ccgo_ts+14335, int32(6)) == 0 {
(*(*TToken)(unsafe.Pointer(bp + 16))).Fn -= uint32(6)
for (*(*TToken)(unsafe.Pointer(bp + 16))).Fn > uint32(0) && int32(_sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*(*TToken)(unsafe.Pointer(bp + 16))).Fz + uintptr((*(*TToken)(unsafe.Pointer(bp + 16))).Fn-uint32(1)))))])&int32(0x01) != 0 {
(*(*TToken)(unsafe.Pointer(bp + 16))).Fn--
}
- if (*(*TToken)(unsafe.Pointer(bp + 16))).Fn >= uint32(9) && Xsqlite3_strnicmp(tls, (*(*TToken)(unsafe.Pointer(bp + 16))).Fz+uintptr((*(*TToken)(unsafe.Pointer(bp + 16))).Fn-libc.Uint32FromInt32(9)), __ccgo_ts+14313, int32(9)) == 0 {
+ if (*(*TToken)(unsafe.Pointer(bp + 16))).Fn >= uint32(9) && Xsqlite3_strnicmp(tls, (*(*TToken)(unsafe.Pointer(bp + 16))).Fz+uintptr((*(*TToken)(unsafe.Pointer(bp + 16))).Fn-libc.Uint32FromInt32(9)), __ccgo_ts+14342, int32(9)) == 0 {
(*(*TToken)(unsafe.Pointer(bp + 16))).Fn -= uint32(9)
for (*(*TToken)(unsafe.Pointer(bp + 16))).Fn > uint32(0) && int32(_sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*(*TToken)(unsafe.Pointer(bp + 16))).Fz + uintptr((*(*TToken)(unsafe.Pointer(bp + 16))).Fn-uint32(1)))))])&int32(0x01) != 0 {
(*(*TToken)(unsafe.Pointer(bp + 16))).Fn--
@@ -171935,7 +171961,7 @@ func _sqlite3AddColumn(tls *libc.TLS, pParse uintptr, _sName TToken, _sType TTok
*(*int8)(unsafe.Pointer(z + uintptr((*(*TToken)(unsafe.Pointer(bp))).Fn))) = 0
_sqlite3Dequote(tls, z)
if (*TTable)(unsafe.Pointer(p)).FnCol != 0 && _sqlite3ColumnIndex(tls, p, z) >= 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14323, libc.VaList(bp+40, z))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14352, libc.VaList(bp+40, z))
_sqlite3DbFree(tls, db, z)
return
}
@@ -172147,10 +172173,10 @@ func _sqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStar
isInit = libc.BoolInt32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy != 0 && int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb) != int32(1))
pCol = (*TTable)(unsafe.Pointer(p)).FaCol + uintptr(int32((*TTable)(unsafe.Pointer(p)).FnCol)-int32(1))*16
if !(_sqlite3ExprIsConstantOrFunction(tls, pExpr, uint8(isInit)) != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14349, libc.VaList(bp+80, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14378, libc.VaList(bp+80, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
} else {
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_GENERATED) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14394, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14423, 0)
} else {
libc.Xmemset(tls, bp, 0, uint64(72))
(*(*TExpr)(unsafe.Pointer(bp))).Fop = uint8(TK_SPAN)
@@ -172208,7 +172234,7 @@ func _makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) {
p1 = pCol + 14
*(*Tu16)(unsafe.Pointer(p1)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p1))) | libc.Int32FromInt32(COLFLAG_PRIMKEY))
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_GENERATED) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14435, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14464, 0)
}
}
@@ -172245,7 +172271,7 @@ func _sqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError
goto primary_key_exit
}
if (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_HasPrimaryKey) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14487, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14516, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto primary_key_exit
}
*(*Tu32)(unsafe.Pointer(pTab + 48)) |= uint32(TF_HasPrimaryKey)
@@ -172290,7 +172316,7 @@ func _sqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError
_sqlite3HasExplicitNulls(tls, pParse, pList)
} else {
if autoInc != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14528, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14557, 0)
} else {
_sqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, onError, uintptr(0), uintptr(0), sortOrder, 0, uint8(SQLITE_IDXTYPE_PRIMARYKEY))
pList = uintptr(0)
@@ -172411,17 +172437,17 @@ func _sqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType ui
}
pCol = (*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(int32((*TTable)(unsafe.Pointer(pTab)).FnCol)-int32(1))*16
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) == int32(PARSE_MODE_DECLARE_VTAB) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14584, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14613, 0)
goto generated_done
}
if int32((*TColumn)(unsafe.Pointer(pCol)).FiDflt) > 0 {
goto generated_error
}
if pType != 0 {
- if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, __ccgo_ts+14627, (*TToken)(unsafe.Pointer(pType)).Fz, int32(7)) == 0 {
+ if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, __ccgo_ts+14656, (*TToken)(unsafe.Pointer(pType)).Fz, int32(7)) == 0 {
/* no-op */
} else {
- if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, __ccgo_ts+14635, (*TToken)(unsafe.Pointer(pType)).Fz, int32(6)) == 0 {
+ if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, __ccgo_ts+14664, (*TToken)(unsafe.Pointer(pType)).Fz, int32(6)) == 0 {
eType = uint8(COLFLAG_STORED)
} else {
goto generated_error
@@ -172453,7 +172479,7 @@ func _sqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType ui
goto generated_error
generated_error:
;
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14642, libc.VaList(bp+8, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14671, libc.VaList(bp+8, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
goto generated_done
generated_done:
;
@@ -172618,12 +172644,12 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
n += int64(_identLength(tls, (*TTable)(unsafe.Pointer(p)).FzName))
if n < int64(50) {
zSep = __ccgo_ts + 1674
- zSep2 = __ccgo_ts + 14673
+ zSep2 = __ccgo_ts + 14702
zEnd = __ccgo_ts + 6568
} else {
- zSep = __ccgo_ts + 14675
- zSep2 = __ccgo_ts + 14679
- zEnd = __ccgo_ts + 14684
+ zSep = __ccgo_ts + 14704
+ zSep2 = __ccgo_ts + 14708
+ zEnd = __ccgo_ts + 14713
}
n += int64(int32(35) + int32(6)*int32((*TTable)(unsafe.Pointer(p)).FnCol))
zStmt = _sqlite3DbMallocRaw(tls, uintptr(0), uint64(n))
@@ -172631,7 +172657,7 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
_sqlite3OomFault(tls, db)
return uintptr(0)
}
- libc.Xmemcpy(tls, zStmt, __ccgo_ts+14687, uint64(13))
+ libc.Xmemcpy(tls, zStmt, __ccgo_ts+14716, uint64(13))
*(*int32)(unsafe.Pointer(bp)) = int32(13)
_identPut(tls, zStmt, bp, (*TTable)(unsafe.Pointer(p)).FzName)
v2 = *(*int32)(unsafe.Pointer(bp))
@@ -172665,11 +172691,11 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
var _azType1 = [6]uintptr{
0: __ccgo_ts + 1674,
- 1: __ccgo_ts + 14701,
- 2: __ccgo_ts + 14707,
- 3: __ccgo_ts + 14712,
- 4: __ccgo_ts + 14717,
- 5: __ccgo_ts + 14707,
+ 1: __ccgo_ts + 14730,
+ 2: __ccgo_ts + 14736,
+ 3: __ccgo_ts + 14741,
+ 4: __ccgo_ts + 14746,
+ 5: __ccgo_ts + 14736,
}
// C documentation
@@ -173309,9 +173335,9 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
pCol = (*TTable)(unsafe.Pointer(p)).FaCol + uintptr(ii)*16
if int32(uint32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf0>>4)) == COLTYPE_CUSTOM {
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_HASTYPE) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14723, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName, _sqlite3ColumnType(tls, pCol, __ccgo_ts+1674)))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14752, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName, _sqlite3ColumnType(tls, pCol, __ccgo_ts+1674)))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14756, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14785, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
}
return
} else {
@@ -173332,11 +173358,11 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
/* Special processing for WITHOUT ROWID Tables */
if tabOpts&uint32(TF_WithoutRowid) != 0 {
if (*TTable)(unsafe.Pointer(p)).FtabFlags&uint32(TF_Autoincrement) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14783, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14812, 0)
return
}
if (*TTable)(unsafe.Pointer(p)).FtabFlags&uint32(TF_HasPrimaryKey) == uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14833, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14862, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName))
return
}
*(*Tu32)(unsafe.Pointer(p + 48)) |= uint32(libc.Int32FromInt32(TF_WithoutRowid) | libc.Int32FromInt32(TF_NoVisibleRowid))
@@ -173383,7 +173409,7 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
ii1++
}
if nNG == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14865, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14894, 0)
return
}
}
@@ -173417,12 +173443,12 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
*/
if int32((*TTable)(unsafe.Pointer(p)).FeTabType) == TABTYP_NORM {
/* A regular table */
- zType = __ccgo_ts + 10641
- zType2 = __ccgo_ts + 14909
+ zType = __ccgo_ts + 10670
+ zType2 = __ccgo_ts + 14938
} else {
/* A view */
- zType = __ccgo_ts + 12379
- zType2 = __ccgo_ts + 14915
+ zType = __ccgo_ts + 12408
+ zType2 = __ccgo_ts + 14944
}
/* If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT
** statement to populate the new table. The root-page number for the
@@ -173513,13 +173539,13 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
if int32(*(*int8)(unsafe.Pointer((*TToken)(unsafe.Pointer(pEnd2)).Fz))) != int32(';') {
n = int32(uint32(n) + (*TToken)(unsafe.Pointer(pEnd2)).Fn)
}
- zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+14920, libc.VaList(bp+48, zType2, n, (*TParse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
+ zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+14949, libc.VaList(bp+48, zType2, n, (*TParse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
}
/* A slot for the record has already been allocated in the
** schema table. We just need to update that slot with all
** the information we've collected.
*/
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+14935, libc.VaList(bp+48, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zType, (*TTable)(unsafe.Pointer(p)).FzName, (*TTable)(unsafe.Pointer(p)).FzName, (*(*struct {
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+14964, libc.VaList(bp+48, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zType, (*TTable)(unsafe.Pointer(p)).FzName, (*TTable)(unsafe.Pointer(p)).FzName, (*(*struct {
FaddrCrTab int32
FregRowid int32
FregRoot int32
@@ -173538,15 +173564,15 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
if (*TTable)(unsafe.Pointer(p)).FtabFlags&uint32(TF_Autoincrement) != uint32(0) && !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) != libc.Int32FromInt32(PARSE_MODE_NORMAL)) {
pDb = (*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32
if (*TSchema)(unsafe.Pointer((*TDb)(unsafe.Pointer(pDb)).FpSchema)).FpSeqTab == uintptr(0) {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+15033, libc.VaList(bp+48, (*TDb)(unsafe.Pointer(pDb)).FzDbSName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+15062, libc.VaList(bp+48, (*TDb)(unsafe.Pointer(pDb)).FzDbSName))
}
}
/* Reparse everything to update our internal data structures */
- _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+15075, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName)), uint16(0))
+ _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+15104, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName)), uint16(0))
/* Test for cycles in generated columns and illegal expressions
** in CHECK constraints and in DEFAULT clauses. */
if (*TTable)(unsafe.Pointer(p)).FtabFlags&uint32(TF_HasGenerated) != 0 {
- _sqlite3VdbeAddOp4(tls, v, int32(OP_SqlExec), int32(0x0001), 0, 0, _sqlite3MPrintf(tls, db, __ccgo_ts+15109, libc.VaList(bp+48, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(p)).FzName)), -int32(6))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_SqlExec), int32(0x0001), 0, 0, _sqlite3MPrintf(tls, db, __ccgo_ts+15138, libc.VaList(bp+48, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(p)).FzName)), -int32(6))
}
}
/* Add the table to the in-memory representation of the database.
@@ -173564,7 +173590,7 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
/* If this is the magic sqlite_sequence table used by autoincrement,
** then record a pointer to this table in the main database structure
** so that INSERT can find the table easily. */
- if libc.Xstrcmp(tls, (*TTable)(unsafe.Pointer(p)).FzName, __ccgo_ts+11163) == 0 {
+ if libc.Xstrcmp(tls, (*TTable)(unsafe.Pointer(p)).FzName, __ccgo_ts+11192) == 0 {
(*TSchema)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FpSchema)).FpSeqTab = p
}
}
@@ -173597,7 +173623,7 @@ func _sqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 ui
*(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if int32((*TParse)(unsafe.Pointer(pParse)).FnVar) > 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15130, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15159, 0)
goto create_view_fail
}
_sqlite3StartTable(tls, pParse, pName1, pName2, isTemp, int32(1), 0, noErr)
@@ -173614,7 +173640,7 @@ func _sqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 ui
*(*Tu32)(unsafe.Pointer(p + 48)) |= uint32(TF_NoVisibleRowid) /* Never allow rowid in view */
_sqlite3TwoPartName(tls, pParse, pName1, pName2, bp+112)
iDb = _sqlite3SchemaToIndex(tls, db, (*TTable)(unsafe.Pointer(p)).FpSchema)
- _sqlite3FixInit(tls, bp+16, pParse, iDb, __ccgo_ts+12379, *(*uintptr)(unsafe.Pointer(bp + 112)))
+ _sqlite3FixInit(tls, bp+16, pParse, iDb, __ccgo_ts+12408, *(*uintptr)(unsafe.Pointer(bp + 112)))
if _sqlite3FixSelect(tls, bp+16, pSelect) != 0 {
goto create_view_fail
}
@@ -173711,7 +173737,7 @@ func _viewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) (r int32
** SELECT * FROM temp.ex1;
*/
if int32((*TTable)(unsafe.Pointer(pTable)).FnCol) < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15166, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15195, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
return int32(1)
}
/* If we get this far, it means we need to compute the table names.
@@ -173895,7 +173921,7 @@ func _destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) {
v = _sqlite3GetVdbe(tls, pParse)
r1 = _sqlite3GetTempReg(tls, pParse)
if iTable < int32(2) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15196, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15225, 0)
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_Destroy), iTable, r1, iDb)
_sqlite3MayAbort(tls, pParse)
@@ -173908,7 +173934,7 @@ func _destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) {
** is in register NNN. See grammar rules associated with the TK_REGISTER
** token for additional information.
*/
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+15211, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).FaDb + uintptr(iDb)*32))).FzDbSName, iTable, r1, r1))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+15240, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).FaDb + uintptr(iDb)*32))).FzDbSName, iTable, r1, r1))
_sqlite3ReleaseTempReg(tls, pParse, r1)
}
@@ -173991,9 +174017,9 @@ func _sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uin
if !(i <= int32(4)) {
break
}
- Xsqlite3_snprintf(tls, int32(24), bp, __ccgo_ts+15278, libc.VaList(bp+32, i))
+ Xsqlite3_snprintf(tls, int32(24), bp, __ccgo_ts+15307, libc.VaList(bp+32, i))
if _sqlite3FindTable(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, bp, zDbName) != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+13268, libc.VaList(bp+32, zDbName, bp, zType, zName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13297, libc.VaList(bp+32, zDbName, bp, zType, zName))
}
goto _1
_1:
@@ -174034,7 +174060,7 @@ func _sqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3
** move as a result of the drop (can happen in auto-vacuum mode).
*/
if (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_Autoincrement) != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+15292, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+15321, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
/* Drop all entries in the schema table that refer to the
** table. The program name loops through the schema table and deletes
@@ -174043,7 +174069,7 @@ func _sqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3
** created in the temp database that refers to a table in another
** database.
*/
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+15337, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+15366, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName))
if !(isView != 0) && !(int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == libc.Int32FromInt32(TABTYP_VTAB)) {
_destroyTable(tls, pParse, pTab)
}
@@ -174079,7 +174105,7 @@ func _sqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) (r int32) {
// */
func _tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) (r int32) {
if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+8047, int32(7)) == 0 {
- if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName+uintptr(7), __ccgo_ts+15404, int32(4)) == 0 {
+ if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName+uintptr(7), __ccgo_ts+15433, int32(4)) == 0 {
return 0
}
if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName+uintptr(7), __ccgo_ts+8849, int32(10)) == 0 {
@@ -174172,18 +174198,18 @@ func _sqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int3
goto exit_drop_table
}
if _tableMayNotBeDropped(tls, db, pTab) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15409, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15438, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
}
/* Ensure DROP TABLE is not used on a view, and DROP VIEW is not used
** on a table.
*/
if isView != 0 && !(int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == libc.Int32FromInt32(TABTYP_VIEW)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15437, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15466, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
}
if !(isView != 0) && int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15471, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15500, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
}
/* Generate code to remove the table from the schema table
@@ -174193,7 +174219,7 @@ func _sqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int3
if v != 0 {
_sqlite3BeginWriteOperation(tls, pParse, int32(1), iDb)
if !(isView != 0) {
- _sqlite3ClearStatTables(tls, pParse, iDb, __ccgo_ts+13380, (*TTable)(unsafe.Pointer(pTab)).FzName)
+ _sqlite3ClearStatTables(tls, pParse, iDb, __ccgo_ts+13409, (*TTable)(unsafe.Pointer(pTab)).FzName)
_sqlite3FkDropTable(tls, pParse, pName, pTab)
}
_sqlite3CodeDropTable(tls, pParse, pTab, iDb, isView)
@@ -174241,13 +174267,13 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
goto fk_end
}
if pToCol != 0 && (*TExprList)(unsafe.Pointer(pToCol)).FnExpr != int32(1) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15503, libc.VaList(bp+8, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FaCol + uintptr(iCol)*16))).FzCnName, pTo))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15532, libc.VaList(bp+8, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FaCol + uintptr(iCol)*16))).FzCnName, pTo))
goto fk_end
}
nCol = int32(1)
} else {
if pToCol != 0 && (*TExprList)(unsafe.Pointer(pToCol)).FnExpr != (*TExprList)(unsafe.Pointer(pFromCol)).FnExpr {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15566, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15595, 0)
goto fk_end
} else {
nCol = (*TExprList)(unsafe.Pointer(pFromCol)).FnExpr
@@ -174310,7 +174336,7 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
j++
}
if j >= int32((*TTable)(unsafe.Pointer(p)).FnCol) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15660, libc.VaList(bp+8, (*(*TExprList_item)(unsafe.Pointer(pFromCol + 8 + uintptr(i)*32))).FzEName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15689, libc.VaList(bp+8, (*(*TExprList_item)(unsafe.Pointer(pFromCol + 8 + uintptr(i)*32))).FzEName))
goto fk_end
}
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) {
@@ -174570,11 +174596,11 @@ func _sqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) (r i
if int32(uint32(*(*uint16)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 16 + 4))&0x20>>5)) != 0 {
sf = (*(*TExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32))).Ffg.FsortFlags
if int32(sf) == 0 || int32(sf) == int32(3) {
- v2 = __ccgo_ts + 15706
+ v2 = __ccgo_ts + 15735
} else {
- v2 = __ccgo_ts + 15712
+ v2 = __ccgo_ts + 15741
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15717, libc.VaList(bp+8, v2))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15746, libc.VaList(bp+8, v2))
return int32(1)
}
goto _1
@@ -174652,7 +174678,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
iDb = int32(1)
}
}
- _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+15745, *(*uintptr)(unsafe.Pointer(bp + 96)))
+ _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+15774, *(*uintptr)(unsafe.Pointer(bp + 96)))
if _sqlite3FixSrcList(tls, bp, pTblName) != 0 {
/* Because the parser constructs pTblName from a single identifier,
** sqlite3FixSrcList can never fail. */
@@ -174662,7 +174688,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
goto exit_create_index
}
if iDb == int32(1) && (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FpSchema != (*TTable)(unsafe.Pointer(pTab)).FpSchema {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15751, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15780, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_create_index
}
if !((*TTable)(unsafe.Pointer(pTab)).FtabFlags&libc.Uint32FromInt32(TF_WithoutRowid) == libc.Uint32FromInt32(0)) {
@@ -174677,15 +174703,15 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
pDb = (*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32
if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+8047, int32(7)) == 0 && int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy) == 0 && pTblName != uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15801, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15830, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_create_index
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15829, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15858, 0)
goto exit_create_index
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15854, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15883, 0)
goto exit_create_index
}
/*
@@ -174706,19 +174732,19 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
if zName == uintptr(0) {
goto exit_create_index
}
- if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+15745, (*TTable)(unsafe.Pointer(pTab)).FzName) {
+ if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+15774, (*TTable)(unsafe.Pointer(pTab)).FzName) {
goto exit_create_index
}
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
if !((*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy != 0) {
if _sqlite3FindTable(tls, db, zName, (*TDb)(unsafe.Pointer(pDb)).FzDbSName) != uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15888, libc.VaList(bp+136, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15917, libc.VaList(bp+136, zName))
goto exit_create_index
}
}
if _sqlite3FindIndex(tls, db, zName, (*TDb)(unsafe.Pointer(pDb)).FzDbSName) != uintptr(0) {
if !(ifNotExist != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15922, libc.VaList(bp+136, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15951, libc.VaList(bp+136, zName))
} else {
_sqlite3CodeVerifySchema(tls, pParse, iDb)
_sqlite3ForceNotReadOnly(tls, pParse)
@@ -174739,7 +174765,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
pLoop = (*TIndex)(unsafe.Pointer(pLoop)).FpNext
n++
}
- zName = _sqlite3MPrintf(tls, db, __ccgo_ts+15946, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName, n))
+ zName = _sqlite3MPrintf(tls, db, __ccgo_ts+15975, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName, n))
if zName == uintptr(0) {
goto exit_create_index
}
@@ -174787,7 +174813,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
_sqlite3ExprListSetSortOrder(tls, pList, sortOrder, -int32(1))
} else {
- _sqlite3ExprListCheckLength(tls, pParse, pList, __ccgo_ts+15745)
+ _sqlite3ExprListCheckLength(tls, pParse, pList, __ccgo_ts+15774)
if (*TParse)(unsafe.Pointer(pParse)).FnErr != 0 {
goto exit_create_index
}
@@ -174871,7 +174897,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
pCExpr = _sqlite3ExprSkipCollate(tls, (*TExprList_item)(unsafe.Pointer(pListItem)).FpExpr)
if int32((*TExpr)(unsafe.Pointer(pCExpr)).Fop) != int32(TK_COLUMN) {
if pTab == (*TParse)(unsafe.Pointer(pParse)).FpNewTable {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15969, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15998, 0)
goto exit_create_index
}
if (*TIndex)(unsafe.Pointer(pIndex)).FaColExpr == uintptr(0) {
@@ -174881,19 +174907,18 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
j = -int32(2)
*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIndex)).FaiColumn + uintptr(i)*2)) = int16(-libc.Int32FromInt32(2))
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(0), 3, 0x8)
- libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 12, 0x1000)
+ libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 11, 0x800)
} else {
j = int32((*TExpr)(unsafe.Pointer(pCExpr)).FiColumn)
if j < 0 {
j = int32((*TTable)(unsafe.Pointer(pTab)).FiPKey)
- libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 10, 0x400)
} else {
if int32(uint32(*(*uint8)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16 + 8))&0xf>>0)) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(0), 3, 0x8)
}
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FcolFlags)&int32(COLFLAG_VIRTUAL) != 0 {
+ libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 10, 0x400)
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 11, 0x800)
- libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 12, 0x1000)
}
}
*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIndex)).FaiColumn + uintptr(i)*2)) = int16(j)
@@ -175019,7 +175044,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
** explicitly specified behavior for the index.
*/
if !(int32((*TIndex)(unsafe.Pointer(pIdx)).FonError) == int32(OE_Default) || int32((*TIndex)(unsafe.Pointer(pIndex)).FonError) == int32(OE_Default)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16030, libc.VaList(bp+136, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16059, libc.VaList(bp+136, 0))
}
if int32((*TIndex)(unsafe.Pointer(pIdx)).FonError) == int32(OE_Default) {
(*TIndex)(unsafe.Pointer(pIdx)).FonError = (*TIndex)(unsafe.Pointer(pIndex)).FonError
@@ -175049,8 +175074,8 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
if pTblName != uintptr(0) {
(*TIndex)(unsafe.Pointer(pIndex)).Ftnum = (*Tsqlite3)(unsafe.Pointer(db)).Finit1.FnewTnum
if _sqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16072, 0)
- (*TParse)(unsafe.Pointer(pParse)).Frc = _sqlite3CorruptError(tls, int32(127335))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16101, 0)
+ (*TParse)(unsafe.Pointer(pParse)).Frc = _sqlite3CorruptError(tls, int32(127355))
goto exit_create_index
}
}
@@ -175092,9 +175117,9 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
if onError == OE_None {
v13 = __ccgo_ts + 1674
} else {
- v13 = __ccgo_ts + 16089
+ v13 = __ccgo_ts + 16118
}
- zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+16097, libc.VaList(bp+136, v13, n1, (*TToken)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 96)))).Fz))
+ zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+16126, libc.VaList(bp+136, v13, n1, (*TToken)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 96)))).Fz))
} else {
/* An automatic index created by a PRIMARY KEY or UNIQUE constraint */
/* zStmt = sqlite3MPrintf(""); */
@@ -175102,7 +175127,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
/* Add an entry in sqlite_schema for this index
*/
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+16117, libc.VaList(bp+136, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TIndex)(unsafe.Pointer(pIndex)).FzName, (*TTable)(unsafe.Pointer(pTab)).FzName, iMem, zStmt))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+16146, libc.VaList(bp+136, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TIndex)(unsafe.Pointer(pIndex)).FzName, (*TTable)(unsafe.Pointer(pTab)).FzName, iMem, zStmt))
_sqlite3DbFree(tls, db, zStmt)
/* Fill the index with data and reparse the schema. Code an OP_Expire
** to invalidate all pre-compiled statements.
@@ -175110,7 +175135,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
if pTblName != 0 {
_sqlite3RefillIndex(tls, pParse, pIndex, iMem)
_sqlite3ChangeCookie(tls, pParse, iDb)
- _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+16176, libc.VaList(bp+136, (*TIndex)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
+ _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+16205, libc.VaList(bp+136, (*TIndex)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
_sqlite3VdbeAddOp2(tls, v, int32(OP_Expire), 0, int32(1))
}
_sqlite3VdbeJumpHere(tls, v, int32((*TIndex)(unsafe.Pointer(pIndex)).Ftnum))
@@ -175273,7 +175298,7 @@ func _sqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists in
pIndex = _sqlite3FindIndex(tls, db, (*(*TSrcItem)(unsafe.Pointer(pName + 8))).FzName, *(*uintptr)(unsafe.Pointer(pName + 8 + 72)))
if pIndex == uintptr(0) {
if !(ifExists != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16203, libc.VaList(bp+8, pName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16232, libc.VaList(bp+8, pName+8))
} else {
_sqlite3CodeVerifyNamedSchema(tls, pParse, *(*uintptr)(unsafe.Pointer(pName + 8 + 72)))
_sqlite3ForceNotReadOnly(tls, pParse)
@@ -175282,7 +175307,7 @@ func _sqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists in
goto exit_drop_index
}
if int32(uint32(*(*uint16)(unsafe.Pointer(pIndex + 100))&0x3>>0)) != SQLITE_IDXTYPE_APPDEF {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16221, libc.VaList(bp+8, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16250, libc.VaList(bp+8, 0))
goto exit_drop_index
}
iDb = _sqlite3SchemaToIndex(tls, db, (*TIndex)(unsafe.Pointer(pIndex)).FpSchema)
@@ -175308,8 +175333,8 @@ func _sqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists in
v = _sqlite3GetVdbe(tls, pParse)
if v != 0 {
_sqlite3BeginWriteOperation(tls, pParse, int32(1), iDb)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+16294, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TIndex)(unsafe.Pointer(pIndex)).FzName))
- _sqlite3ClearStatTables(tls, pParse, iDb, __ccgo_ts+13376, (*TIndex)(unsafe.Pointer(pIndex)).FzName)
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+16323, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TIndex)(unsafe.Pointer(pIndex)).FzName))
+ _sqlite3ClearStatTables(tls, pParse, iDb, __ccgo_ts+13405, (*TIndex)(unsafe.Pointer(pIndex)).FzName)
_sqlite3ChangeCookie(tls, pParse, iDb)
_destroyRootPage(tls, pParse, int32((*TIndex)(unsafe.Pointer(pIndex)).Ftnum), iDb)
_sqlite3VdbeAddOp4(tls, v, int32(OP_DropIndex), iDb, 0, 0, (*TIndex)(unsafe.Pointer(pIndex)).FzName, 0)
@@ -175499,7 +175524,7 @@ func _sqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra
nAlloc = int64(2)*int64((*TSrcList)(unsafe.Pointer(pSrc)).FnSrc) + int64(nExtra)
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if (*TSrcList)(unsafe.Pointer(pSrc)).FnSrc+nExtra >= int32(SQLITE_MAX_SRCLIST) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16354, libc.VaList(bp+8, int32(SQLITE_MAX_SRCLIST)))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16383, libc.VaList(bp+8, int32(SQLITE_MAX_SRCLIST)))
return uintptr(0)
}
if nAlloc > int64(SQLITE_MAX_SRCLIST) {
@@ -175807,11 +175832,11 @@ func _sqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTa
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if !(p != 0) && pOnUsing != uintptr(0) && ((*TOnOrUsing)(unsafe.Pointer(pOnUsing)).FpOn != 0 || (*TOnOrUsing)(unsafe.Pointer(pOnUsing)).FpUsing != 0) {
if (*TOnOrUsing)(unsafe.Pointer(pOnUsing)).FpOn != 0 {
- v1 = __ccgo_ts + 16390
+ v1 = __ccgo_ts + 16419
} else {
- v1 = __ccgo_ts + 16393
+ v1 = __ccgo_ts + 16422
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16399, libc.VaList(bp+8, v1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16428, libc.VaList(bp+8, v1))
goto append_from_error
}
p = _sqlite3SrcListAppend(tls, pParse, p, pTable, pDatabase)
@@ -176010,7 +176035,7 @@ func _sqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) {
var eTxnType, i int32
_, _, _, _, _ = db, eTxnType, i, pBt, v
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
- if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_TRANSACTION), __ccgo_ts+16435, uintptr(0), uintptr(0)) != 0 {
+ if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_TRANSACTION), __ccgo_ts+16464, uintptr(0), uintptr(0)) != 0 {
return
}
v = _sqlite3GetVdbe(tls, pParse)
@@ -176057,9 +176082,9 @@ func _sqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) {
_, _, _ = isRollback, v, v1
isRollback = libc.BoolInt32(eType == int32(TK_ROLLBACK))
if isRollback != 0 {
- v1 = __ccgo_ts + 16441
+ v1 = __ccgo_ts + 16470
} else {
- v1 = __ccgo_ts + 16450
+ v1 = __ccgo_ts + 16479
}
if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_TRANSACTION), v1, uintptr(0), uintptr(0)) != 0 {
return
@@ -176091,9 +176116,9 @@ func _sqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) {
}
var _az = [3]uintptr{
- 0: __ccgo_ts + 16435,
- 1: __ccgo_ts + 16457,
- 2: __ccgo_ts + 16441,
+ 0: __ccgo_ts + 16464,
+ 1: __ccgo_ts + 16486,
+ 2: __ccgo_ts + 16470,
}
// C documentation
@@ -176113,7 +176138,7 @@ func _sqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) (r int32) {
if (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpBt == uintptr(0) && !((*TParse)(unsafe.Pointer(pParse)).Fexplain != 0) {
rc = _sqlite3BtreeOpen(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpVfs, uintptr(0), db, bp, 0, _flags)
if rc != SQLITE_OK {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16465, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16494, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = rc
return int32(1)
}
@@ -176297,7 +176322,7 @@ func _sqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx
pTab = (*TIndex)(unsafe.Pointer(pIdx)).FpTable
_sqlite3StrAccumInit(tls, bp, (*TParse)(unsafe.Pointer(pParse)).Fdb, uintptr(0), 0, *(*int32)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb + 136)))
if (*TIndex)(unsafe.Pointer(pIdx)).FaColExpr != 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+16535, libc.VaList(bp+40, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+16564, libc.VaList(bp+40, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
} else {
j = 0
for {
@@ -176306,7 +176331,7 @@ func _sqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx
}
zCol = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j)*2)))*16))).FzCnName
if j != 0 {
- Xsqlite3_str_append(tls, bp, __ccgo_ts+16546, int32(2))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+16575, int32(2))
}
Xsqlite3_str_appendall(tls, bp, (*TTable)(unsafe.Pointer(pTab)).FzName)
Xsqlite3_str_append(tls, bp, __ccgo_ts+1713, int32(1))
@@ -176338,10 +176363,10 @@ func _sqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab
var zMsg uintptr
_, _ = rc, zMsg
if int32((*TTable)(unsafe.Pointer(pTab)).FiPKey) >= 0 {
- zMsg = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+13964, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr((*TTable)(unsafe.Pointer(pTab)).FiPKey)*16))).FzCnName))
+ zMsg = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+13993, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr((*TTable)(unsafe.Pointer(pTab)).FiPKey)*16))).FzCnName))
rc = libc.Int32FromInt32(SQLITE_CONSTRAINT) | libc.Int32FromInt32(6)<<libc.Int32FromInt32(8)
} else {
- zMsg = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+16549, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ zMsg = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+16578, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
rc = libc.Int32FromInt32(SQLITE_CONSTRAINT) | libc.Int32FromInt32(10)<<libc.Int32FromInt32(8)
}
_sqlite3HaltConstraint(tls, pParse, rc, onError, zMsg, int8(-libc.Int32FromInt32(6)), uint8(P5_ConstraintUnique))
@@ -176516,7 +176541,7 @@ func _sqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
_sqlite3RefillIndex(tls, pParse, pIndex, -int32(1))
return
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16558, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16587, 0)
}
// C documentation
@@ -176651,7 +176676,7 @@ func _sqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr)
break
}
if _sqlite3StrICmp(tls, zName, (*(*TCte)(unsafe.Pointer(pWith + 16 + uintptr(i)*48))).FzName) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16604, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16633, libc.VaList(bp+8, zName))
}
goto _1
_1:
@@ -176949,7 +176974,7 @@ func _sqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc Tu8, pColl uintptr, z
p = uintptr(0)
}
if p == uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16634, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16663, libc.VaList(bp+8, zName))
(*TParse)(unsafe.Pointer(pParse)).Frc = libc.Int32FromInt32(SQLITE_ERROR) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
}
return p
@@ -177415,7 +177440,7 @@ func _vtabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) (r int32) {
FazArg uintptr
Fp uintptr
})(unsafe.Pointer(pTab + 64))).Fp)).FeVtabRisk) > libc.BoolInt32((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Fflags&uint64(SQLITE_TrustedSchema) != uint64(0)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16665, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16694, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
return 0
}
@@ -177449,11 +177474,11 @@ func _sqlite3IsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr, pTrigger ui
bp := tls.Alloc(16)
defer tls.Free(16)
if _tabIsReadOnly(tls, pParse, pTab) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16698, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16727, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) && (pTrigger == uintptr(0) || (*TTrigger)(unsafe.Pointer(pTrigger)).FbReturning != 0 && (*TTrigger)(unsafe.Pointer(pTrigger)).FpNext == uintptr(0)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16727, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16756, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
return 0
@@ -177856,7 +177881,7 @@ func _sqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
** invoke the callback function.
*/
if memCnt != 0 {
- _sqlite3CodeChangeCount(tls, v, memCnt, __ccgo_ts+16765)
+ _sqlite3CodeChangeCount(tls, v, memCnt, __ccgo_ts+16794)
}
goto delete_from_cleanup
delete_from_cleanup:
@@ -178004,7 +178029,7 @@ func _sqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTri
v3 = 0
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_Delete), iDataCur, v3)
- if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+13165) {
+ if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+13194) {
_sqlite3VdbeAppendP4(tls, v, pTab, -int32(5))
}
if int32(eMode) != ONEPASS_OFF {
@@ -178426,7 +178451,7 @@ func _absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
/* 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, __ccgo_ts+16778, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+16807, -int32(1))
return
}
iVal = -iVal
@@ -178746,7 +178771,7 @@ func _roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
*(*float64)(unsafe.Pointer(bp)) = float64(int64(*(*float64)(unsafe.Pointer(bp)) + v1))
} else {
- zBuf = Xsqlite3_mprintf(tls, __ccgo_ts+16795, libc.VaList(bp+16, int32(n), *(*float64)(unsafe.Pointer(bp))))
+ zBuf = Xsqlite3_mprintf(tls, __ccgo_ts+16824, libc.VaList(bp+16, int32(n), *(*float64)(unsafe.Pointer(bp))))
if zBuf == uintptr(0) {
Xsqlite3_result_error_nomem(tls, context)
return
@@ -179326,7 +179351,7 @@ func _likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*/
nPat = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv)))
if nPat > *(*int32)(unsafe.Pointer(db + 136 + 8*4)) {
- Xsqlite3_result_error(tls, context, __ccgo_ts+16801, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+16830, -int32(1))
return
}
if argc == int32(3) {
@@ -179338,7 +179363,7 @@ func _likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
return
}
if _sqlite3Utf8CharLen(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), -int32(1)) != int32(1) {
- Xsqlite3_result_error(tls, context, __ccgo_ts+16834, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+16863, -int32(1))
return
}
escape = _sqlite3Utf8Read(tls, bp+8)
@@ -179507,13 +179532,13 @@ func _sqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr, bEscape int
switch Xsqlite3_value_type(tls, pValue) {
case int32(SQLITE_FLOAT):
r1 = Xsqlite3_value_double(tls, pValue)
- Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+16879, libc.VaList(bp+16, r1))
+ Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+16908, libc.VaList(bp+16, r1))
zVal = Xsqlite3_str_value(tls, pStr)
if zVal != 0 {
_sqlite3AtoF(tls, zVal, bp, int32((*TStrAccum)(unsafe.Pointer(pStr)).FnChar), uint8(SQLITE_UTF8))
if r1 != *(*float64)(unsafe.Pointer(bp)) {
Xsqlite3_str_reset(tls, pStr)
- Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+16887, libc.VaList(bp+16, r1))
+ Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+16916, libc.VaList(bp+16, r1))
}
}
case int32(SQLITE_INTEGER):
@@ -179546,9 +179571,9 @@ func _sqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr, bEscape int
case int32(SQLITE_TEXT):
zArg = Xsqlite3_value_text(tls, pValue)
if bEscape != 0 {
- v2 = __ccgo_ts + 16895
+ v2 = __ccgo_ts + 16924
} else {
- v2 = __ccgo_ts + 16899
+ v2 = __ccgo_ts + 16928
}
Xsqlite3_str_appendf(tls, pStr, v2, libc.VaList(bp+16, zArg))
default:
@@ -179684,7 +179709,7 @@ func _unistrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
unistr_error:
;
Xsqlite3_free(tls, zOut)
- Xsqlite3_result_error(tls, context, __ccgo_ts+16902, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+16931, -int32(1))
return
}
@@ -180237,7 +180262,7 @@ var _lenOne = [1]uint32{
}
var _azOne = [1]uintptr{
- 0: __ccgo_ts + 12785,
+ 0: __ccgo_ts + 12814,
}
// C documentation
@@ -180249,8 +180274,8 @@ var _azOne = [1]uintptr{
// ** entries in argv[]. Use zSep as the separator.
// */
func _concatFuncCore(tls *libc.TLS, context uintptr, argc int32, argv uintptr, nSep int32, zSep uintptr) {
- var i int32
- var j, k, n Ti64
+ var i, k int32
+ var j, n Ti64
var v, z uintptr
_, _, _, _, _, _ = i, j, k, n, v, z
n = 0
@@ -180277,8 +180302,8 @@ func _concatFuncCore(tls *libc.TLS, context uintptr, argc int32, argv uintptr, n
if !(i < argc) {
break
}
- k = int64(Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
- if k > 0 {
+ if Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) != int32(SQLITE_NULL) {
+ k = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
v = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if v != uintptr(0) {
if j > 0 && nSep > 0 {
@@ -180286,7 +180311,7 @@ func _concatFuncCore(tls *libc.TLS, context uintptr, argc int32, argv uintptr, n
j += int64(nSep)
}
libc.Xmemcpy(tls, z+uintptr(j), v, uint64(k))
- j += k
+ j += int64(k)
}
}
goto _2
@@ -180397,7 +180422,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, __ccgo_ts+16925, int32(4), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, context, __ccgo_ts+16954, int32(4), libc.UintptrFromInt32(0))
}
}
@@ -180458,7 +180483,7 @@ func _loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
** flag is set. See the sqlite3_enable_load_extension() API.
*/
if (*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_LoadExtFunc) == uint64(0) {
- Xsqlite3_result_error(tls, context, __ccgo_ts+14003, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+14032, -int32(1))
return
}
if argc == int32(2) {
@@ -180650,7 +180675,7 @@ func _sumFinalize(tls *libc.TLS, context uintptr) {
if p != 0 && (*TSumCtx)(unsafe.Pointer(p)).Fcnt > 0 {
if (*TSumCtx)(unsafe.Pointer(p)).Fapprox != 0 {
if (*TSumCtx)(unsafe.Pointer(p)).Fovrfl != 0 {
- Xsqlite3_result_error(tls, context, __ccgo_ts+16778, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+16807, -int32(1))
} else {
if !(_sqlite3IsOverflow(tls, (*TSumCtx)(unsafe.Pointer(p)).FrErr) != 0) {
Xsqlite3_result_double(tls, context, (*TSumCtx)(unsafe.Pointer(p)).FrSum+(*TSumCtx)(unsafe.Pointer(p)).FrErr)
@@ -181000,7 +181025,7 @@ func _groupConcatValue(tls *libc.TLS, context uintptr) {
func _sqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) {
var rc int32
_ = rc
- rc = Xsqlite3_overload_function(tls, db, __ccgo_ts+16930, int32(2))
+ rc = Xsqlite3_overload_function(tls, db, __ccgo_ts+16959, int32(2))
if rc == int32(SQLITE_NOMEM) {
_sqlite3OomFault(tls, db)
}
@@ -181029,8 +181054,8 @@ func _sqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3
if !(nArg <= int32(3)) {
break
}
- _sqlite3CreateFunc(tls, db, __ccgo_ts+16936, nArg, int32(SQLITE_UTF8), pInfo, __ccgo_fp(_likeFunc), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
- pDef = _sqlite3FindFunction(tls, db, __ccgo_ts+16936, nArg, uint8(SQLITE_UTF8), uint8(0))
+ _sqlite3CreateFunc(tls, db, __ccgo_ts+16965, nArg, int32(SQLITE_UTF8), pInfo, __ccgo_fp(_likeFunc), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
+ pDef = _sqlite3FindFunction(tls, db, __ccgo_ts+16965, nArg, uint8(SQLITE_UTF8), uint8(0))
*(*Tu32)(unsafe.Pointer(pDef + 4)) |= uint32(flags)
*(*Tu32)(unsafe.Pointer(pDef + 4)) &= uint32(^libc.Int32FromInt32(SQLITE_FUNC_UNSAFE))
goto _1
@@ -181336,379 +181361,379 @@ var _aBuiltinFunc = [106]TFuncDef{
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_FUNC_TEST) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_implies_nonnull_row))),
- FzName: __ccgo_ts + 16941,
+ FzName: __ccgo_ts + 16970,
},
1: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_FUNC_TEST) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_expr_compare))),
- FzName: __ccgo_ts + 16961,
+ FzName: __ccgo_ts + 16990,
},
2: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_FUNC_TEST) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_expr_implies_expr))),
- FzName: __ccgo_ts + 16974,
+ FzName: __ccgo_ts + 17003,
},
3: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INTERNAL) | libc.Int32FromInt32(SQLITE_FUNC_TEST) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_affinity))),
- FzName: __ccgo_ts + 16992,
+ FzName: __ccgo_ts + 17021,
},
4: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17001,
+ FzName: __ccgo_ts + 17030,
},
5: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DIRECTONLY) | libc.Int32FromInt32(SQLITE_FUNC_UNSAFE)),
- FzName: __ccgo_ts + 17009,
+ FzName: __ccgo_ts + 17038,
},
6: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DIRECTONLY) | libc.Int32FromInt32(SQLITE_FUNC_UNSAFE)),
- FzName: __ccgo_ts + 17009,
+ FzName: __ccgo_ts + 17038,
},
7: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17024,
+ FzName: __ccgo_ts + 17053,
},
8: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17050,
+ FzName: __ccgo_ts + 17079,
},
9: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_FUNC_UNLIKELY)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_unlikely))),
- FzName: __ccgo_ts + 17075,
+ FzName: __ccgo_ts + 17104,
},
10: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_FUNC_UNLIKELY)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_unlikely))),
- FzName: __ccgo_ts + 17084,
+ FzName: __ccgo_ts + 17113,
},
11: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_FUNC_UNLIKELY)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_unlikely))),
- FzName: __ccgo_ts + 17095,
+ FzName: __ccgo_ts + 17124,
},
12: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_sqlite_offset))),
- FzName: __ccgo_ts + 17102,
+ FzName: __ccgo_ts + 17131,
},
13: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17116,
+ FzName: __ccgo_ts + 17145,
},
14: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17116,
+ FzName: __ccgo_ts + 17145,
},
15: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(2))),
- FzName: __ccgo_ts + 17122,
+ FzName: __ccgo_ts + 17151,
},
16: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(2))),
- FzName: __ccgo_ts + 17122,
+ FzName: __ccgo_ts + 17151,
},
17: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(3))),
- FzName: __ccgo_ts + 17128,
+ FzName: __ccgo_ts + 17157,
},
18: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(3))),
- FzName: __ccgo_ts + 17128,
+ FzName: __ccgo_ts + 17157,
},
19: {
FnArg: int16(-int32(3)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17133,
+ FzName: __ccgo_ts + 17162,
},
20: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_MINMAX) | libc.Int32FromInt32(SQLITE_FUNC_ANYORDER)),
- FzName: __ccgo_ts + 17133,
+ FzName: __ccgo_ts + 17162,
},
21: {
FnArg: int16(-int32(3)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17137,
+ FzName: __ccgo_ts + 17166,
},
22: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_MINMAX) | libc.Int32FromInt32(SQLITE_FUNC_ANYORDER)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17137,
+ FzName: __ccgo_ts + 17166,
},
23: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_TYPEOF)),
- FzName: __ccgo_ts + 17141,
+ FzName: __ccgo_ts + 17170,
},
24: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_TYPEOF) | libc.Int32FromInt32(SQLITE_SUBTYPE)),
- FzName: __ccgo_ts + 17148,
+ FzName: __ccgo_ts + 17177,
},
25: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_LENGTH)),
- FzName: __ccgo_ts + 17156,
+ FzName: __ccgo_ts + 17185,
},
26: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_BYTELEN)),
- FzName: __ccgo_ts + 17163,
+ FzName: __ccgo_ts + 17192,
},
27: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17176,
+ FzName: __ccgo_ts + 17205,
},
28: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17182,
+ FzName: __ccgo_ts + 17211,
},
29: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17189,
+ FzName: __ccgo_ts + 17218,
},
30: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17196,
+ FzName: __ccgo_ts + 17225,
},
31: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17204,
+ FzName: __ccgo_ts + 17233,
},
32: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17209,
+ FzName: __ccgo_ts + 17238,
},
33: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17213,
+ FzName: __ccgo_ts + 17242,
},
34: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17213,
+ FzName: __ccgo_ts + 17242,
},
35: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17219,
+ FzName: __ccgo_ts + 17248,
},
36: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17225,
+ FzName: __ccgo_ts + 17254,
},
37: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17231,
+ FzName: __ccgo_ts + 17260,
},
38: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17235,
+ FzName: __ccgo_ts + 17264,
},
39: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17235,
+ FzName: __ccgo_ts + 17264,
},
40: {
FnArg: int16(-int32(3)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17241,
+ FzName: __ccgo_ts + 17270,
},
41: {
FnArg: int16(-int32(4)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17248,
+ FzName: __ccgo_ts + 17277,
},
42: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17258,
+ FzName: __ccgo_ts + 17287,
},
43: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17265,
+ FzName: __ccgo_ts + 17294,
},
44: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17272,
+ FzName: __ccgo_ts + 17301,
},
45: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17283,
+ FzName: __ccgo_ts + 17312,
},
46: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17290,
+ FzName: __ccgo_ts + 17319,
},
47: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17305,
+ FzName: __ccgo_ts + 17334,
},
48: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17322,
+ FzName: __ccgo_ts + 17351,
},
49: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17333,
+ FzName: __ccgo_ts + 17362,
},
50: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17340,
+ FzName: __ccgo_ts + 17369,
},
51: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17346,
+ FzName: __ccgo_ts + 17375,
},
52: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17359,
+ FzName: __ccgo_ts + 17388,
},
53: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17377,
+ FzName: __ccgo_ts + 17406,
},
54: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17385,
+ FzName: __ccgo_ts + 17414,
},
55: {
FnArg: int16(3),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17399,
+ FzName: __ccgo_ts + 17428,
},
56: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17407,
+ FzName: __ccgo_ts + 17436,
},
57: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17416,
+ FzName: __ccgo_ts + 17445,
},
58: {
FnArg: int16(3),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17416,
+ FzName: __ccgo_ts + 17445,
},
59: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17423,
+ FzName: __ccgo_ts + 17452,
},
60: {
FnArg: int16(3),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17423,
+ FzName: __ccgo_ts + 17452,
},
61: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17433,
+ FzName: __ccgo_ts + 17462,
},
62: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17437,
+ FzName: __ccgo_ts + 17466,
},
63: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17443,
+ FzName: __ccgo_ts + 17472,
},
64: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_COUNT) | libc.Int32FromInt32(SQLITE_FUNC_ANYORDER)),
- FzName: __ccgo_ts + 17447,
+ FzName: __ccgo_ts + 17476,
},
65: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_FUNC_ANYORDER)),
- FzName: __ccgo_ts + 17447,
+ FzName: __ccgo_ts + 17476,
},
66: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17453,
+ FzName: __ccgo_ts + 17482,
},
67: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17453,
+ FzName: __ccgo_ts + 17482,
},
68: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(0)),
- FzName: __ccgo_ts + 17466,
+ FzName: __ccgo_ts + 17495,
},
69: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_LIKE) | libc.Int32FromInt32(SQLITE_FUNC_CASE)),
FpUserData: uintptr(unsafe.Pointer(&_globInfo)),
- FzName: __ccgo_ts + 17477,
+ FzName: __ccgo_ts + 17506,
},
70: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_LIKE)),
FpUserData: uintptr(unsafe.Pointer(&_likeInfoNorm)),
- FzName: __ccgo_ts + 16936,
+ FzName: __ccgo_ts + 16965,
},
71: {
FnArg: int16(3),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_LIKE)),
FpUserData: uintptr(unsafe.Pointer(&_likeInfoNorm)),
- FzName: __ccgo_ts + 16936,
+ FzName: __ccgo_ts + 16965,
},
72: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17482,
+ FzName: __ccgo_ts + 17511,
},
73: {
FnArg: int16(1),
@@ -181723,144 +181748,144 @@ var _aBuiltinFunc = [106]TFuncDef{
75: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17487,
+ FzName: __ccgo_ts + 17516,
},
76: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17493,
+ FzName: __ccgo_ts + 17522,
},
77: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17496,
+ FzName: __ccgo_ts + 17525,
},
78: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(1))),
- FzName: __ccgo_ts + 17500,
+ FzName: __ccgo_ts + 17529,
},
79: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
FpUserData: uintptr(int64(libc.Int32FromInt32(2))),
- FzName: __ccgo_ts + 17506,
+ FzName: __ccgo_ts + 17535,
},
80: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17496,
+ FzName: __ccgo_ts + 17525,
},
81: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17511,
+ FzName: __ccgo_ts + 17540,
},
82: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17515,
+ FzName: __ccgo_ts + 17544,
},
83: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17519,
+ FzName: __ccgo_ts + 17548,
},
84: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17525,
+ FzName: __ccgo_ts + 17554,
},
85: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17529,
+ FzName: __ccgo_ts + 17558,
},
86: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17534,
+ FzName: __ccgo_ts + 17563,
},
87: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17539,
+ FzName: __ccgo_ts + 17568,
},
88: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17544,
+ FzName: __ccgo_ts + 17573,
},
89: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17550,
+ FzName: __ccgo_ts + 17579,
},
90: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17554,
+ FzName: __ccgo_ts + 17583,
},
91: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17558,
+ FzName: __ccgo_ts + 17587,
},
92: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17562,
+ FzName: __ccgo_ts + 17591,
},
93: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17567,
+ FzName: __ccgo_ts + 17596,
},
94: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17572,
+ FzName: __ccgo_ts + 17601,
},
95: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17577,
+ FzName: __ccgo_ts + 17606,
},
96: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17583,
+ FzName: __ccgo_ts + 17612,
},
97: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17589,
+ FzName: __ccgo_ts + 17618,
},
98: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17595,
+ FzName: __ccgo_ts + 17624,
},
99: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17600,
+ FzName: __ccgo_ts + 17629,
},
100: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17608,
+ FzName: __ccgo_ts + 17637,
},
101: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 17616,
+ FzName: __ccgo_ts + 17645,
},
102: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 17619,
+ FzName: __ccgo_ts + 17648,
},
103: {
FnArg: int16(-int32(4)),
@@ -181871,13 +181896,13 @@ var _aBuiltinFunc = [106]TFuncDef{
FnArg: int16(-int32(4)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_iif))),
- FzName: __ccgo_ts + 17624,
+ FzName: __ccgo_ts + 17653,
},
105: {
FnArg: int16(-int32(4)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_FUNC_INLINE) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(0)),
FpUserData: uintptr(int64(libc.Int32FromInt32(INLINEFUNC_iif))),
- FzName: __ccgo_ts + 17628,
+ FzName: __ccgo_ts + 17657,
},
}
@@ -182357,7 +182382,7 @@ func _sqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey
}
if !(pIdx != 0) {
if !((*TParse)(unsafe.Pointer(pParse)).FdisableTriggers != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17631, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TFKey)(unsafe.Pointer(pFKey)).FpFrom)).FzName, (*TFKey)(unsafe.Pointer(pFKey)).FzTo))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17660, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TFKey)(unsafe.Pointer(pFKey)).FpFrom)).FzName, (*TFKey)(unsafe.Pointer(pFKey)).FzTo))
}
_sqlite3DbFree(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, aiCol)
return int32(1)
@@ -184851,7 +184876,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
ipkColumn = i
}
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FcolFlags)&(libc.Int32FromInt32(COLFLAG_STORED)|libc.Int32FromInt32(COLFLAG_VIRTUAL)) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17676, libc.VaList(bp+128, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17705, libc.VaList(bp+128, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
goto insert_cleanup
}
} else {
@@ -184859,7 +184884,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
ipkColumn = i
bIdListInOrder = uint8(0)
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17717, libc.VaList(bp+128, pTabList+8, (*(*TIdList_item)(unsafe.Pointer(pColumn + 8 + uintptr(i)*8))).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17746, libc.VaList(bp+128, pTabList+8, (*(*TIdList_item)(unsafe.Pointer(pColumn + 8 + uintptr(i)*8))).FzName))
libc.SetBitFieldPtr8Uint32(pParse+44, libc.Uint32FromInt32(1), 3, 0x8)
goto insert_cleanup
}
@@ -184882,7 +184907,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
(*(*TSelectDest)(unsafe.Pointer(bp + 8))).FiSDParm = (*TSubquery)(unsafe.Pointer(pSubq)).FregReturn
regFromSelect = (*TSubquery)(unsafe.Pointer(pSubq)).FregResult
nColumn = (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer((*TSubquery)(unsafe.Pointer(pSubq)).FpSelect)).FpEList)).FnExpr
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+17749, libc.VaList(bp+128, pItem))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+17778, libc.VaList(bp+128, pItem))
if bIdListInOrder != 0 && nColumn == int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
regData = regFromSelect
regRowid = regData - int32(1)
@@ -184999,12 +185024,12 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
}
if nColumn != int32((*TTable)(unsafe.Pointer(pTab)).FnCol)-nHidden {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17757, libc.VaList(bp+128, pTabList+8, int32((*TTable)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17786, libc.VaList(bp+128, pTabList+8, int32((*TTable)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn))
goto insert_cleanup
}
}
if pColumn != uintptr(0) && nColumn != (*TIdList)(unsafe.Pointer(pColumn)).FnId {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17809, libc.VaList(bp+128, nColumn, (*TIdList)(unsafe.Pointer(pColumn)).FnId))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17838, libc.VaList(bp+128, nColumn, (*TIdList)(unsafe.Pointer(pColumn)).FnId))
goto insert_cleanup
}
/* Initialize the count of rows to be inserted
@@ -185047,11 +185072,11 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
if pUpsert != 0 {
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17834, libc.VaList(bp+128, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17863, libc.VaList(bp+128, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto insert_cleanup
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17880, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17909, 0)
goto insert_cleanup
}
if _sqlite3HasExplicitNulls(tls, pParse, (*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertTarget) != 0 {
@@ -185371,7 +185396,7 @@ insert_end:
** invoke the callback function.
*/
if regRowCount != 0 {
- _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+17901)
+ _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+17930)
}
goto insert_cleanup
insert_cleanup:
@@ -185767,7 +185792,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
case int32(OE_Rollback):
fallthrough
case int32(OE_Fail):
- zMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+13964, libc.VaList(bp+64, (*TTable)(unsafe.Pointer(pTab)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ zMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+13993, libc.VaList(bp+64, (*TTable)(unsafe.Pointer(pTab)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
_sqlite3VdbeAddOp3(tls, v, int32(OP_HaltIfNull), libc.Int32FromInt32(SQLITE_CONSTRAINT)|libc.Int32FromInt32(5)<<libc.Int32FromInt32(8), onError, iReg)
_sqlite3VdbeAppendP4(tls, v, zMsg, -int32(6))
_sqlite3VdbeChangeP5(tls, v, uint16(P5_ConstraintNotNull))
@@ -187119,7 +187144,7 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Tsqlite3_c
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0) /* The current SQL statement */
azCols = uintptr(0) /* True if callback data is initialized */
if !(_sqlite3SafetyCheckOk(tls, db) != 0) {
- return _sqlite3MisuseError(tls, int32(138204))
+ return _sqlite3MisuseError(tls, int32(138224))
}
if zSql == uintptr(0) {
zSql = __ccgo_ts + 1674
@@ -187924,14 +187949,14 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
*/
if (*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_LoadExtension) == uint64(0) {
if pzErrMsg != 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+14003, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+14032, 0)
}
return int32(SQLITE_ERROR)
}
if zProc != 0 {
v1 = zProc
} else {
- v1 = __ccgo_ts + 17919
+ v1 = __ccgo_ts + 17948
}
zEntry = v1
/* tag-20210611-1. Some dlopen() implementations will segfault if given
@@ -187956,7 +187981,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
if !(ii < int32(libc.Uint64FromInt64(8)/libc.Uint64FromInt64(8)) && handle == uintptr(0)) {
break
}
- zAltFile = Xsqlite3_mprintf(tls, __ccgo_ts+13964, libc.VaList(bp+16, zFile, _azEndings[ii]))
+ zAltFile = Xsqlite3_mprintf(tls, __ccgo_ts+13993, libc.VaList(bp+16, zFile, _azEndings[ii]))
if zAltFile == uintptr(0) {
return int32(SQLITE_NOMEM)
}
@@ -187991,7 +188016,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
_sqlite3OsDlClose(tls, pVfs, handle)
return int32(SQLITE_NOMEM)
}
- libc.Xmemcpy(tls, zAltEntry, __ccgo_ts+17942, uint64(8))
+ libc.Xmemcpy(tls, zAltEntry, __ccgo_ts+17971, uint64(8))
iFile = ncFile - int32(1)
for {
if !(iFile >= 0 && !(int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == int32('/') || int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == int32('\\'))) {
@@ -188003,7 +188028,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
iFile--
}
iFile++
- if Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), __ccgo_ts+17951, int32(3)) == 0 {
+ if Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), __ccgo_ts+17980, int32(3)) == 0 {
iFile += int32(3)
}
iEntry = int32(8)
@@ -188023,7 +188048,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
;
iFile++
}
- libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), __ccgo_ts+17955, uint64(6))
+ libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), __ccgo_ts+17984, uint64(6))
zEntry = zAltEntry
xInit = _sqlite3OsDlSym(tls, pVfs, handle, zEntry)
}
@@ -188035,7 +188060,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
*(*uintptr)(unsafe.Pointer(pzErrMsg)) = v7
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
/* zErrmsg would be NULL if not so */
- Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+17961, libc.VaList(bp+16, zEntry, zFile))
+ Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+17990, libc.VaList(bp+16, zEntry, zFile))
_sqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp)))
}
}
@@ -188050,7 +188075,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
return SQLITE_OK
}
if pzErrMsg != 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+18004, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+18033, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
_sqlite3OsDlClose(tls, pVfs, handle)
@@ -188081,7 +188106,7 @@ extension_not_found:
*(*uintptr)(unsafe.Pointer(pzErrMsg)) = v10
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
/* zErrmsg would be NULL if not so */
- Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+18036, libc.VaList(bp+16, int32(FILENAME_MAX), zFile))
+ Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+18065, libc.VaList(bp+16, int32(FILENAME_MAX), zFile))
_sqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp)))
}
}
@@ -188090,7 +188115,7 @@ extension_not_found:
/* Shared library endings to try if zFile cannot be loaded as written */
var _azEndings = [1]uintptr{
- 0: __ccgo_ts + 17915,
+ 0: __ccgo_ts + 17944,
}
func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) (r int32) {
@@ -188323,7 +188348,7 @@ func _sqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) {
rc = v2
}
if v3 && v2 != 0 {
- _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+18073, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
+ _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+18102, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
go1 = 0
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -188378,62 +188403,62 @@ func _sqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) {
// */
var _pragCName = [57]uintptr{
0: __ccgo_ts + 6959,
- 1: __ccgo_ts + 18112,
- 2: __ccgo_ts + 10641,
- 3: __ccgo_ts + 18116,
- 4: __ccgo_ts + 18121,
- 5: __ccgo_ts + 18124,
- 6: __ccgo_ts + 18134,
- 7: __ccgo_ts + 18144,
- 8: __ccgo_ts + 18150,
- 9: __ccgo_ts + 18154,
- 10: __ccgo_ts + 18159,
- 11: __ccgo_ts + 18164,
- 12: __ccgo_ts + 18172,
- 13: __ccgo_ts + 18183,
- 14: __ccgo_ts + 18186,
- 15: __ccgo_ts + 18154,
- 16: __ccgo_ts + 18193,
- 17: __ccgo_ts + 18159,
- 18: __ccgo_ts + 18201,
- 19: __ccgo_ts + 18205,
- 20: __ccgo_ts + 18210,
- 21: __ccgo_ts + 18216,
- 22: __ccgo_ts + 18154,
- 23: __ccgo_ts + 18159,
- 24: __ccgo_ts + 18223,
- 25: __ccgo_ts + 18228,
- 26: __ccgo_ts + 18231,
- 27: __ccgo_ts + 18238,
- 28: __ccgo_ts + 18150,
- 29: __ccgo_ts + 18154,
- 30: __ccgo_ts + 18244,
- 31: __ccgo_ts + 18249,
- 32: __ccgo_ts + 18254,
- 33: __ccgo_ts + 18112,
- 34: __ccgo_ts + 18154,
- 35: __ccgo_ts + 18258,
- 36: __ccgo_ts + 18265,
- 37: __ccgo_ts + 18272,
- 38: __ccgo_ts + 13380,
- 39: __ccgo_ts + 13376,
- 40: __ccgo_ts + 18280,
- 41: __ccgo_ts + 18285,
- 42: __ccgo_ts + 18290,
- 43: __ccgo_ts + 10641,
- 44: __ccgo_ts + 18295,
+ 1: __ccgo_ts + 18141,
+ 2: __ccgo_ts + 10670,
+ 3: __ccgo_ts + 18145,
+ 4: __ccgo_ts + 18150,
+ 5: __ccgo_ts + 18153,
+ 6: __ccgo_ts + 18163,
+ 7: __ccgo_ts + 18173,
+ 8: __ccgo_ts + 18179,
+ 9: __ccgo_ts + 18183,
+ 10: __ccgo_ts + 18188,
+ 11: __ccgo_ts + 18193,
+ 12: __ccgo_ts + 18201,
+ 13: __ccgo_ts + 18212,
+ 14: __ccgo_ts + 18215,
+ 15: __ccgo_ts + 18183,
+ 16: __ccgo_ts + 18222,
+ 17: __ccgo_ts + 18188,
+ 18: __ccgo_ts + 18230,
+ 19: __ccgo_ts + 18234,
+ 20: __ccgo_ts + 18239,
+ 21: __ccgo_ts + 18245,
+ 22: __ccgo_ts + 18183,
+ 23: __ccgo_ts + 18188,
+ 24: __ccgo_ts + 18252,
+ 25: __ccgo_ts + 18257,
+ 26: __ccgo_ts + 18260,
+ 27: __ccgo_ts + 18267,
+ 28: __ccgo_ts + 18179,
+ 29: __ccgo_ts + 18183,
+ 30: __ccgo_ts + 18273,
+ 31: __ccgo_ts + 18278,
+ 32: __ccgo_ts + 18283,
+ 33: __ccgo_ts + 18141,
+ 34: __ccgo_ts + 18183,
+ 35: __ccgo_ts + 18287,
+ 36: __ccgo_ts + 18294,
+ 37: __ccgo_ts + 18301,
+ 38: __ccgo_ts + 13409,
+ 39: __ccgo_ts + 13405,
+ 40: __ccgo_ts + 18309,
+ 41: __ccgo_ts + 18314,
+ 42: __ccgo_ts + 18319,
+ 43: __ccgo_ts + 10670,
+ 44: __ccgo_ts + 18324,
45: __ccgo_ts + 6962,
- 46: __ccgo_ts + 18301,
- 47: __ccgo_ts + 18306,
- 48: __ccgo_ts + 17496,
- 49: __ccgo_ts + 18311,
- 50: __ccgo_ts + 18112,
- 51: __ccgo_ts + 18154,
- 52: __ccgo_ts + 18324,
- 53: __ccgo_ts + 18329,
- 54: __ccgo_ts + 18338,
- 55: __ccgo_ts + 18345,
- 56: __ccgo_ts + 18356,
+ 46: __ccgo_ts + 18330,
+ 47: __ccgo_ts + 18335,
+ 48: __ccgo_ts + 17525,
+ 49: __ccgo_ts + 18340,
+ 50: __ccgo_ts + 18141,
+ 51: __ccgo_ts + 18183,
+ 52: __ccgo_ts + 18353,
+ 53: __ccgo_ts + 18358,
+ 54: __ccgo_ts + 18367,
+ 55: __ccgo_ts + 18374,
+ 56: __ccgo_ts + 18385,
}
// C documentation
@@ -188452,196 +188477,196 @@ type PragmaName = TPragmaName
var _aPragmaName = [67]TPragmaName{
0: {
- FzName: __ccgo_ts + 18364,
+ FzName: __ccgo_ts + 18393,
FePragTyp: uint8(PragTyp_ANALYSIS_LIMIT),
FmPragFlg: uint8(PragFlg_Result0),
},
1: {
- FzName: __ccgo_ts + 18379,
+ FzName: __ccgo_ts + 18408,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NoColumns1) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_APPLICATION_ID),
},
2: {
- FzName: __ccgo_ts + 18394,
+ FzName: __ccgo_ts + 18423,
FePragTyp: uint8(PragTyp_AUTO_VACUUM),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
3: {
- FzName: __ccgo_ts + 18406,
+ FzName: __ccgo_ts + 18435,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_AutoIndex),
},
4: {
- FzName: __ccgo_ts + 18422,
+ FzName: __ccgo_ts + 18451,
FePragTyp: uint8(PragTyp_BUSY_TIMEOUT),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(56),
FnPragCName: uint8(1),
},
5: {
- FzName: __ccgo_ts + 18345,
+ FzName: __ccgo_ts + 18374,
FePragTyp: uint8(PragTyp_CACHE_SIZE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
6: {
- FzName: __ccgo_ts + 18435,
+ FzName: __ccgo_ts + 18464,
FePragTyp: uint8(PragTyp_CACHE_SPILL),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
7: {
- FzName: __ccgo_ts + 18447,
+ FzName: __ccgo_ts + 18476,
FePragTyp: uint8(PragTyp_CASE_SENSITIVE_LIKE),
FmPragFlg: uint8(PragFlg_NoColumns),
},
8: {
- FzName: __ccgo_ts + 18467,
+ FzName: __ccgo_ts + 18496,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_CellSizeCk),
},
9: {
- FzName: __ccgo_ts + 18483,
+ FzName: __ccgo_ts + 18512,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_CkptFullFSync),
},
10: {
- FzName: __ccgo_ts + 18504,
+ FzName: __ccgo_ts + 18533,
FePragTyp: uint8(PragTyp_COLLATION_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(33),
FnPragCName: uint8(2),
},
11: {
- FzName: __ccgo_ts + 18519,
+ FzName: __ccgo_ts + 18548,
FePragTyp: uint8(PragTyp_COMPILE_OPTIONS),
FmPragFlg: uint8(PragFlg_Result0),
},
12: {
- FzName: __ccgo_ts + 18535,
+ FzName: __ccgo_ts + 18564,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(libc.Int32FromInt32(0x00001)) << libc.Int32FromInt32(32),
},
13: {
- FzName: __ccgo_ts + 18549,
+ FzName: __ccgo_ts + 18578,
FePragTyp: uint8(PragTyp_DATA_STORE_DIRECTORY),
FmPragFlg: uint8(PragFlg_NoColumns1),
},
14: {
- FzName: __ccgo_ts + 18570,
+ FzName: __ccgo_ts + 18599,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_ReadOnly) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_DATA_VERSION),
},
15: {
- FzName: __ccgo_ts + 18583,
+ FzName: __ccgo_ts + 18612,
FePragTyp: uint8(PragTyp_DATABASE_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(50),
FnPragCName: uint8(3),
},
16: {
- FzName: __ccgo_ts + 18597,
+ FzName: __ccgo_ts + 18626,
FePragTyp: uint8(PragTyp_DEFAULT_CACHE_SIZE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiPragCName: uint8(55),
FnPragCName: uint8(1),
},
17: {
- FzName: __ccgo_ts + 18616,
+ FzName: __ccgo_ts + 18645,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_DeferFKs),
},
18: {
- FzName: __ccgo_ts + 18635,
+ FzName: __ccgo_ts + 18664,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_NullCallback),
},
19: {
- FzName: __ccgo_ts + 18658,
+ FzName: __ccgo_ts + 18687,
FePragTyp: uint8(PragTyp_ENCODING),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
20: {
- FzName: __ccgo_ts + 18667,
+ FzName: __ccgo_ts + 18696,
FePragTyp: uint8(PragTyp_FOREIGN_KEY_CHECK),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(43),
FnPragCName: uint8(4),
},
21: {
- FzName: __ccgo_ts + 18685,
+ FzName: __ccgo_ts + 18714,
FePragTyp: uint8(PragTyp_FOREIGN_KEY_LIST),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FnPragCName: uint8(8),
},
22: {
- FzName: __ccgo_ts + 18702,
+ FzName: __ccgo_ts + 18731,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_ForeignKeys),
},
23: {
- FzName: __ccgo_ts + 18715,
+ FzName: __ccgo_ts + 18744,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_ReadOnly) | libc.Int32FromInt32(PragFlg_Result0)),
},
24: {
- FzName: __ccgo_ts + 18730,
+ FzName: __ccgo_ts + 18759,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_FullColNames),
},
25: {
- FzName: __ccgo_ts + 18748,
+ FzName: __ccgo_ts + 18777,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_FullFSync),
},
26: {
- FzName: __ccgo_ts + 18758,
+ FzName: __ccgo_ts + 18787,
FePragTyp: uint8(PragTyp_FUNCTION_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(15),
FnPragCName: uint8(6),
},
27: {
- FzName: __ccgo_ts + 18772,
+ FzName: __ccgo_ts + 18801,
FePragTyp: uint8(PragTyp_HARD_HEAP_LIMIT),
FmPragFlg: uint8(PragFlg_Result0),
},
28: {
- FzName: __ccgo_ts + 18788,
+ FzName: __ccgo_ts + 18817,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_IgnoreChecks),
},
29: {
- FzName: __ccgo_ts + 18813,
+ FzName: __ccgo_ts + 18842,
FePragTyp: uint8(PragTyp_INCREMENTAL_VACUUM),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_NoColumns)),
},
30: {
- FzName: __ccgo_ts + 18832,
+ FzName: __ccgo_ts + 18861,
FePragTyp: uint8(PragTyp_INDEX_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(27),
FnPragCName: uint8(3),
},
31: {
- FzName: __ccgo_ts + 18843,
+ FzName: __ccgo_ts + 18872,
FePragTyp: uint8(PragTyp_INDEX_LIST),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(33),
FnPragCName: uint8(5),
},
32: {
- FzName: __ccgo_ts + 18854,
+ FzName: __ccgo_ts + 18883,
FePragTyp: uint8(PragTyp_INDEX_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(27),
@@ -188649,146 +188674,146 @@ var _aPragmaName = [67]TPragmaName{
FiArg: uint64(1),
},
33: {
- FzName: __ccgo_ts + 18866,
+ FzName: __ccgo_ts + 18895,
FePragTyp: uint8(PragTyp_INTEGRITY_CHECK),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
},
34: {
- FzName: __ccgo_ts + 18882,
+ FzName: __ccgo_ts + 18911,
FePragTyp: uint8(PragTyp_JOURNAL_MODE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
35: {
- FzName: __ccgo_ts + 18895,
+ FzName: __ccgo_ts + 18924,
FePragTyp: uint8(PragTyp_JOURNAL_SIZE_LIMIT),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
36: {
- FzName: __ccgo_ts + 18914,
+ FzName: __ccgo_ts + 18943,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_LegacyAlter),
},
37: {
- FzName: __ccgo_ts + 18933,
+ FzName: __ccgo_ts + 18962,
FePragTyp: uint8(PragTyp_LOCKING_MODE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
38: {
- FzName: __ccgo_ts + 18946,
+ FzName: __ccgo_ts + 18975,
FePragTyp: uint8(PragTyp_PAGE_COUNT),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
39: {
- FzName: __ccgo_ts + 18961,
+ FzName: __ccgo_ts + 18990,
FePragTyp: uint8(PragTyp_MMAP_SIZE),
},
40: {
- FzName: __ccgo_ts + 18971,
+ FzName: __ccgo_ts + 19000,
FePragTyp: uint8(PragTyp_MODULE_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(9),
FnPragCName: uint8(1),
},
41: {
- FzName: __ccgo_ts + 18983,
+ FzName: __ccgo_ts + 19012,
FePragTyp: uint8(PragTyp_OPTIMIZE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_NeedSchema)),
},
42: {
- FzName: __ccgo_ts + 18992,
+ FzName: __ccgo_ts + 19021,
FePragTyp: uint8(PragTyp_PAGE_COUNT),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
43: {
- FzName: __ccgo_ts + 19003,
+ FzName: __ccgo_ts + 19032,
FePragTyp: uint8(PragTyp_PAGE_SIZE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
44: {
- FzName: __ccgo_ts + 19013,
+ FzName: __ccgo_ts + 19042,
FePragTyp: uint8(PragTyp_PRAGMA_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(9),
FnPragCName: uint8(1),
},
45: {
- FzName: __ccgo_ts + 19025,
+ FzName: __ccgo_ts + 19054,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_QueryOnly),
},
46: {
- FzName: __ccgo_ts + 19036,
+ FzName: __ccgo_ts + 19065,
FePragTyp: uint8(PragTyp_INTEGRITY_CHECK),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
},
47: {
- FzName: __ccgo_ts + 19048,
+ FzName: __ccgo_ts + 19077,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(libc.Int32FromInt32(0x00004)) << libc.Int32FromInt32(32),
},
48: {
- FzName: __ccgo_ts + 19065,
+ FzName: __ccgo_ts + 19094,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_RecTriggers),
},
49: {
- FzName: __ccgo_ts + 19084,
+ FzName: __ccgo_ts + 19113,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_ReverseOrder),
},
50: {
- FzName: __ccgo_ts + 19110,
+ FzName: __ccgo_ts + 19139,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NoColumns1) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_SCHEMA_VERSION),
},
51: {
- FzName: __ccgo_ts + 19125,
+ FzName: __ccgo_ts + 19154,
FePragTyp: uint8(PragTyp_SECURE_DELETE),
FmPragFlg: uint8(PragFlg_Result0),
},
52: {
- FzName: __ccgo_ts + 19139,
+ FzName: __ccgo_ts + 19168,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_ShortColNames),
},
53: {
- FzName: __ccgo_ts + 19158,
+ FzName: __ccgo_ts + 19187,
FePragTyp: uint8(PragTyp_SHRINK_MEMORY),
FmPragFlg: uint8(PragFlg_NoColumns),
},
54: {
- FzName: __ccgo_ts + 19172,
+ FzName: __ccgo_ts + 19201,
FePragTyp: uint8(PragTyp_SOFT_HEAP_LIMIT),
FmPragFlg: uint8(PragFlg_Result0),
},
55: {
- FzName: __ccgo_ts + 19188,
+ FzName: __ccgo_ts + 19217,
FePragTyp: uint8(PragTyp_SYNCHRONOUS),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
56: {
- FzName: __ccgo_ts + 19200,
+ FzName: __ccgo_ts + 19229,
FePragTyp: uint8(PragTyp_TABLE_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(8),
FnPragCName: uint8(6),
},
57: {
- FzName: __ccgo_ts + 19211,
+ FzName: __ccgo_ts + 19240,
FePragTyp: uint8(PragTyp_TABLE_LIST),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1)),
FiPragCName: uint8(21),
FnPragCName: uint8(6),
},
58: {
- FzName: __ccgo_ts + 19222,
+ FzName: __ccgo_ts + 19251,
FePragTyp: uint8(PragTyp_TABLE_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(8),
@@ -188796,45 +188821,45 @@ var _aPragmaName = [67]TPragmaName{
FiArg: uint64(1),
},
59: {
- FzName: __ccgo_ts + 19234,
+ FzName: __ccgo_ts + 19263,
FePragTyp: uint8(PragTyp_TEMP_STORE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
60: {
- FzName: __ccgo_ts + 19245,
+ FzName: __ccgo_ts + 19274,
FePragTyp: uint8(PragTyp_TEMP_STORE_DIRECTORY),
FmPragFlg: uint8(PragFlg_NoColumns1),
},
61: {
- FzName: __ccgo_ts + 19266,
+ FzName: __ccgo_ts + 19295,
FePragTyp: uint8(PragTyp_THREADS),
FmPragFlg: uint8(PragFlg_Result0),
},
62: {
- FzName: __ccgo_ts + 19274,
+ FzName: __ccgo_ts + 19303,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_TrustedSchema),
},
63: {
- FzName: __ccgo_ts + 19289,
+ FzName: __ccgo_ts + 19318,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NoColumns1) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_USER_VERSION),
},
64: {
- FzName: __ccgo_ts + 19302,
+ FzName: __ccgo_ts + 19331,
FePragTyp: uint8(PragTyp_WAL_AUTOCHECKPOINT),
},
65: {
- FzName: __ccgo_ts + 19321,
+ FzName: __ccgo_ts + 19350,
FePragTyp: uint8(PragTyp_WAL_CHECKPOINT),
FmPragFlg: uint8(PragFlg_NeedSchema),
FiPragCName: uint8(47),
FnPragCName: uint8(3),
},
66: {
- FzName: __ccgo_ts + 19336,
+ FzName: __ccgo_ts + 19365,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(libc.Int32FromInt32(SQLITE_WriteSchema) | libc.Int32FromInt32(SQLITE_NoSchemaError)),
@@ -188963,7 +188988,7 @@ func _getLockingMode(tls *libc.TLS, z uintptr) (r int32) {
if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+5259) {
return int32(PAGER_LOCKINGMODE_EXCLUSIVE)
}
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+19352) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+19381) {
return PAGER_LOCKINGMODE_NORMAL
}
}
@@ -188984,10 +189009,10 @@ func _getAutoVacuum(tls *libc.TLS, z uintptr) (r int32) {
if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+9801) {
return BTREE_AUTOVACUUM_NONE
}
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+19359) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+19388) {
return int32(BTREE_AUTOVACUUM_FULL)
}
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+19364) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+19393) {
return int32(BTREE_AUTOVACUUM_INCR)
}
i = _sqlite3Atoi(tls, z)
@@ -189010,10 +189035,10 @@ func _getTempStore(tls *libc.TLS, z uintptr) (r int32) {
if int32(*(*int8)(unsafe.Pointer(z))) >= int32('0') && int32(*(*int8)(unsafe.Pointer(z))) <= int32('2') {
return int32(*(*int8)(unsafe.Pointer(z))) - int32('0')
} else {
- if _sqlite3StrICmp(tls, z, __ccgo_ts+18324) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+18353) == 0 {
return int32(1)
} else {
- if _sqlite3StrICmp(tls, z, __ccgo_ts+19376) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+19405) == 0 {
return int32(2)
} else {
return 0
@@ -189035,7 +189060,7 @@ func _invalidateTempStorage(tls *libc.TLS, pParse uintptr) (r int32) {
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpBt != uintptr(0) {
if !((*Tsqlite3)(unsafe.Pointer(db)).FautoCommit != 0) || _sqlite3BtreeTxnState(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpBt) != SQLITE_TXN_NONE {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19383, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19412, 0)
return int32(SQLITE_ERROR)
}
_sqlite3BtreeClose(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpBt)
@@ -189165,15 +189190,15 @@ func _actionName(tls *libc.TLS, action Tu8) (r uintptr) {
_ = zName
switch int32(action) {
case int32(OE_SetNull):
- zName = __ccgo_ts + 19445
+ zName = __ccgo_ts + 19474
case int32(OE_SetDflt):
- zName = __ccgo_ts + 19454
+ zName = __ccgo_ts + 19483
case int32(OE_Cascade):
- zName = __ccgo_ts + 19466
+ zName = __ccgo_ts + 19495
case int32(OE_Restrict):
- zName = __ccgo_ts + 19474
+ zName = __ccgo_ts + 19503
default:
- zName = __ccgo_ts + 19483
+ zName = __ccgo_ts + 19512
break
}
return zName
@@ -189194,12 +189219,12 @@ func _sqlite3JournalModename(tls *libc.TLS, eMode int32) (r uintptr) {
}
var _azModeName = [6]uintptr{
- 0: __ccgo_ts + 19493,
- 1: __ccgo_ts + 19500,
- 2: __ccgo_ts + 19508,
- 3: __ccgo_ts + 19512,
- 4: __ccgo_ts + 19376,
- 5: __ccgo_ts + 19521,
+ 0: __ccgo_ts + 19522,
+ 1: __ccgo_ts + 19529,
+ 2: __ccgo_ts + 19537,
+ 3: __ccgo_ts + 19541,
+ 4: __ccgo_ts + 19405,
+ 5: __ccgo_ts + 19550,
}
// C documentation
@@ -189261,15 +189286,15 @@ func _pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, s
goto _1
}
if (*TFuncDef)(unsafe.Pointer(p)).FxValue != uintptr(0) {
- zType = __ccgo_ts + 19546
+ zType = __ccgo_ts + 19575
} else {
if (*TFuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) {
- zType = __ccgo_ts + 19548
+ zType = __ccgo_ts + 19577
} else {
zType = __ccgo_ts + 9200
}
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19550, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer(p)).FzName, isBuiltin, zType, _azEnc[(*TFuncDef)(unsafe.Pointer(p)).FfuncFlags&uint32(SQLITE_FUNC_ENCMASK)], int32((*TFuncDef)(unsafe.Pointer(p)).FnArg), (*TFuncDef)(unsafe.Pointer(p)).FfuncFlags&mask^uint32(SQLITE_INNOCUOUS)))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19579, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer(p)).FzName, isBuiltin, zType, _azEnc[(*TFuncDef)(unsafe.Pointer(p)).FfuncFlags&uint32(SQLITE_FUNC_ENCMASK)], int32((*TFuncDef)(unsafe.Pointer(p)).FnArg), (*TFuncDef)(unsafe.Pointer(p)).FfuncFlags&mask^uint32(SQLITE_INNOCUOUS)))
goto _1
_1:
;
@@ -189278,9 +189303,9 @@ func _pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, s
}
var _azEnc = [4]uintptr{
- 1: __ccgo_ts + 19525,
- 2: __ccgo_ts + 19530,
- 3: __ccgo_ts + 19538,
+ 1: __ccgo_ts + 19554,
+ 2: __ccgo_ts + 19559,
+ 3: __ccgo_ts + 19567,
}
// C documentation
@@ -189380,7 +189405,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
return
}
if minusFlag != 0 {
- zRight = _sqlite3MPrintf(tls, db, __ccgo_ts+19557, libc.VaList(bp+176, pValue))
+ zRight = _sqlite3MPrintf(tls, db, __ccgo_ts+19586, libc.VaList(bp+176, pValue))
} else {
zRight = _sqlite3NameFromToken(tls, db, pValue)
}
@@ -189527,7 +189552,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
pBt1 = (*TDb)(unsafe.Pointer(pDb)).FpBt
b = -int32(1)
if zRight != 0 {
- if Xsqlite3_stricmp(tls, zRight, __ccgo_ts+19561) == 0 {
+ if Xsqlite3_stricmp(tls, zRight, __ccgo_ts+19590) == 0 {
b = int32(2)
} else {
b = int32(_sqlite3GetBoolean(tls, zRight, uint8(0)))
@@ -189598,7 +189623,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
*/
fallthrough
case int32(PragTyp_LOCKING_MODE):
- zRet = __ccgo_ts + 19352
+ zRet = __ccgo_ts + 19381
eMode = _getLockingMode(tls, zRight)
if (*TToken)(unsafe.Pointer(pId2)).Fn == uint32(0) && eMode == -int32(1) {
/* Simple "PRAGMA locking_mode;" statement. This is a query for
@@ -189916,7 +189941,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if *(*int8)(unsafe.Pointer(zRight)) != 0 {
rc = _sqlite3OsAccess(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpVfs, zRight, int32(SQLITE_ACCESS_READWRITE), bp+72)
if rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 72)) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19566, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19595, 0)
Xsqlite3_mutex_leave(tls, _sqlite3MutexAlloc(tls, int32(SQLITE_MUTEX_STATIC_VFS1)))
goto pragma_out
}
@@ -189955,7 +189980,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if *(*int8)(unsafe.Pointer(zRight)) != 0 {
rc = _sqlite3OsAccess(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpVfs, zRight, int32(SQLITE_ACCESS_READWRITE), bp+76)
if rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 76)) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19566, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19595, 0)
Xsqlite3_mutex_leave(tls, _sqlite3MutexAlloc(tls, int32(SQLITE_MUTEX_STATIC_VFS1)))
goto pragma_out
}
@@ -189984,7 +190009,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_returnSingleInt(tls, v, int64(int32((*TDb)(unsafe.Pointer(pDb)).Fsafety_level)-int32(1)))
} else {
if !((*Tsqlite3)(unsafe.Pointer(db)).FautoCommit != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19591, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19620, 0)
} else {
if iDb != int32(1) {
iLevel = (int32(_getSafetyLevel(tls, zRight, 0, uint8(1))) + int32(1)) & int32(PAGER_SYNCHRONOUS_MASK)
@@ -190018,7 +190043,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
(*Tsqlite3)(unsafe.Pointer(db)).FnDeferredImmCons = 0
(*Tsqlite3)(unsafe.Pointer(db)).FnDeferredCons = 0
}
- if mask&uint64(SQLITE_WriteSchema) != uint64(0) && Xsqlite3_stricmp(tls, zRight, __ccgo_ts+19644) == 0 {
+ if mask&uint64(SQLITE_WriteSchema) != uint64(0) && Xsqlite3_stricmp(tls, zRight, __ccgo_ts+19673) == 0 {
/* IMP: R-60817-01178 If the argument is "RESET" then schema
** writing is disabled (as with "PRAGMA writable_schema=OFF") and,
** in addition, the schema is reloaded. */
@@ -190098,9 +190123,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
pColExpr = _sqlite3ColumnExpr(tls, pTab, pCol)
if (*TPragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- v14 = __ccgo_ts + 19650
+ v14 = __ccgo_ts + 19679
} else {
- v14 = __ccgo_ts + 19658
+ v14 = __ccgo_ts + 19687
}
if int32(uint32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 {
v15 = int32(1)
@@ -190171,7 +190196,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
pTab1 = (*THashElem)(unsafe.Pointer(k1)).Fdata
if int32((*TTable)(unsafe.Pointer(pTab1)).FnCol) == 0 {
- zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+19665, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab1)).FzName))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+19694, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab1)).FzName))
if zSql != 0 {
*(*uintptr)(unsafe.Pointer(bp + 80)) = uintptr(0)
Xsqlite3_prepare_v3(tls, db, zSql, -int32(1), uint32(SQLITE_PREPARE_DONT_LOG), bp+80, uintptr(0))
@@ -190201,19 +190226,19 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
goto _20
}
if int32((*TTable)(unsafe.Pointer(pTab2)).FeTabType) == int32(TABTYP_VIEW) {
- zType = __ccgo_ts + 12379
+ zType = __ccgo_ts + 12408
} else {
if int32((*TTable)(unsafe.Pointer(pTab2)).FeTabType) == int32(TABTYP_VTAB) {
- zType = __ccgo_ts + 14627
+ zType = __ccgo_ts + 14656
} else {
if (*TTable)(unsafe.Pointer(pTab2)).FtabFlags&uint32(TF_Shadow) != 0 {
- zType = __ccgo_ts + 19681
+ zType = __ccgo_ts + 19710
} else {
- zType = __ccgo_ts + 10641
+ zType = __ccgo_ts + 10670
}
}
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19688, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(ii4)*32))).FzDbSName, _sqlite3PreferredTableName(tls, (*TTable)(unsafe.Pointer(pTab2)).FzName), zType, int32((*TTable)(unsafe.Pointer(pTab2)).FnCol), libc.BoolInt32((*TTable)(unsafe.Pointer(pTab2)).FtabFlags&uint32(TF_WithoutRowid) != uint32(0)), libc.BoolInt32((*TTable)(unsafe.Pointer(pTab2)).FtabFlags&uint32(TF_Strict) != uint32(0))))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19717, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(ii4)*32))).FzDbSName, _sqlite3PreferredTableName(tls, (*TTable)(unsafe.Pointer(pTab2)).FzName), zType, int32((*TTable)(unsafe.Pointer(pTab2)).FnCol), libc.BoolInt32((*TTable)(unsafe.Pointer(pTab2)).FtabFlags&uint32(TF_WithoutRowid) != uint32(0)), libc.BoolInt32((*TTable)(unsafe.Pointer(pTab2)).FtabFlags&uint32(TF_Strict) != uint32(0))))
goto _20
_20:
;
@@ -190260,9 +190285,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
} else {
v22 = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab3)).FaCol + uintptr(cnum)*16))).FzCnName
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19695, libc.VaList(bp+176, i1, int32(cnum), v22))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19724, libc.VaList(bp+176, i1, int32(cnum), v22))
if (*TPragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- _sqlite3VdbeMultiLoad(tls, v, int32(4), __ccgo_ts+19700, libc.VaList(bp+176, int32(*(*Tu8)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaSortOrder + uintptr(i1)))), *(*uintptr)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FazColl + uintptr(i1)*8)), libc.BoolInt32(i1 < int32((*TIndex)(unsafe.Pointer(pIdx)).FnKeyCol))))
+ _sqlite3VdbeMultiLoad(tls, v, int32(4), __ccgo_ts+19729, libc.VaList(bp+176, int32(*(*Tu8)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaSortOrder + uintptr(i1)))), *(*uintptr)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FazColl + uintptr(i1)*8)), libc.BoolInt32(i1 < int32((*TIndex)(unsafe.Pointer(pIdx)).FnKeyCol))))
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_ResultRow), int32(1), (*TParse)(unsafe.Pointer(pParse)).FnMem)
goto _21
@@ -190286,11 +190311,11 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
break
}
azOrigin = [3]uintptr{
- 0: __ccgo_ts + 19705,
- 1: __ccgo_ts + 19707,
- 2: __ccgo_ts + 18183,
+ 0: __ccgo_ts + 19734,
+ 1: __ccgo_ts + 19736,
+ 2: __ccgo_ts + 18212,
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19709, libc.VaList(bp+176, i2, (*TIndex)(unsafe.Pointer(pIdx1)).FzName, libc.BoolInt32(int32((*TIndex)(unsafe.Pointer(pIdx1)).FonError) != OE_None), azOrigin[int32(uint32(*(*uint16)(unsafe.Pointer(pIdx1 + 100))&0x3>>0))], libc.BoolInt32((*TIndex)(unsafe.Pointer(pIdx1)).FpPartIdxWhere != uintptr(0))))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19738, libc.VaList(bp+176, i2, (*TIndex)(unsafe.Pointer(pIdx1)).FzName, libc.BoolInt32(int32((*TIndex)(unsafe.Pointer(pIdx1)).FonError) != OE_None), azOrigin[int32(uint32(*(*uint16)(unsafe.Pointer(pIdx1 + 100))&0x3>>0))], libc.BoolInt32((*TIndex)(unsafe.Pointer(pIdx1)).FpPartIdxWhere != uintptr(0))))
goto _23
_23:
;
@@ -190309,7 +190334,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i3)*32))).FpBt == uintptr(0) {
goto _24
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19715, libc.VaList(bp+176, i3, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i3)*32))).FzDbSName, _sqlite3BtreeGetFilename(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i3)*32))).FpBt)))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19744, libc.VaList(bp+176, i3, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i3)*32))).FzDbSName, _sqlite3BtreeGetFilename(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i3)*32))).FpBt)))
goto _24
_24:
;
@@ -190326,7 +190351,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
pColl = (*THashElem)(unsafe.Pointer(p)).Fdata
v26 = i4
i4++
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19719, libc.VaList(bp+176, v26, (*TCollSeq)(unsafe.Pointer(pColl)).FzName))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19748, libc.VaList(bp+176, v26, (*TCollSeq)(unsafe.Pointer(pColl)).FzName))
goto _25
_25:
;
@@ -190414,7 +190439,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if !(j2 < (*TFKey)(unsafe.Pointer(pFK)).FnCol) {
break
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19722, libc.VaList(bp+176, i7, j2, (*TFKey)(unsafe.Pointer(pFK)).FzTo, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab5)).FaCol + uintptr((*(*TsColMap)(unsafe.Pointer(pFK + 64 + uintptr(j2)*16))).FiFrom)*16))).FzCnName, (*(*TsColMap)(unsafe.Pointer(pFK + 64 + uintptr(j2)*16))).FzCol, _actionName(tls, *(*Tu8)(unsafe.Pointer(pFK + 45 + 1))), _actionName(tls, *(*Tu8)(unsafe.Pointer(pFK + 45))), __ccgo_ts+19731))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+19751, libc.VaList(bp+176, i7, j2, (*TFKey)(unsafe.Pointer(pFK)).FzTo, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab5)).FaCol + uintptr((*(*TsColMap)(unsafe.Pointer(pFK + 64 + uintptr(j2)*16))).FiFrom)*16))).FzCnName, (*(*TsColMap)(unsafe.Pointer(pFK + 64 + uintptr(j2)*16))).FzCol, _actionName(tls, *(*Tu8)(unsafe.Pointer(pFK + 45 + 1))), _actionName(tls, *(*Tu8)(unsafe.Pointer(pFK + 45))), __ccgo_ts+19760))
goto _32
_32:
;
@@ -190555,7 +190580,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
} else {
_sqlite3VdbeAddOp2(tls, v, int32(OP_Null), 0, regResult+int32(1))
}
- _sqlite3VdbeMultiLoad(tls, v, regResult+int32(2), __ccgo_ts+19736, libc.VaList(bp+176, (*TFKey)(unsafe.Pointer(pFK1)).FzTo, i8-int32(1)))
+ _sqlite3VdbeMultiLoad(tls, v, regResult+int32(2), __ccgo_ts+19765, libc.VaList(bp+176, (*TFKey)(unsafe.Pointer(pFK1)).FzTo, i8-int32(1)))
_sqlite3VdbeAddOp2(tls, v, int32(OP_ResultRow), regResult, int32(4))
_sqlite3VdbeResolveLabel(tls, v, addrOk)
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 96)))
@@ -190746,7 +190771,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp4(tls, v, int32(OP_IntegrityCk), int32(1), cnt, int32(8), aRoot, -int32(14))
_sqlite3VdbeChangeP5(tls, v, uint16(i9))
addr1 = _sqlite3VdbeAddOp1(tls, v, int32(OP_IsNull), int32(2))
- _sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, _sqlite3MPrintf(tls, db, __ccgo_ts+19740, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i9)*32))).FzDbSName)), -int32(6))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, _sqlite3MPrintf(tls, db, __ccgo_ts+19769, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i9)*32))).FzDbSName)), -int32(6))
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(2), int32(3), int32(3))
_integrityCheckResultRow(tls, v)
_sqlite3VdbeJumpHere(tls, v, addr1)
@@ -190757,7 +190782,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
v48 = 0
}
cnt = v48
- _sqlite3VdbeLoadString(tls, v, int32(2), __ccgo_ts+19764)
+ _sqlite3VdbeLoadString(tls, v, int32(2), __ccgo_ts+19793)
x2 = (*THash)(unsafe.Pointer(pTbls)).Ffirst
for {
if !(x2 != 0) {
@@ -190893,7 +190918,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if pPk1 != 0 {
a1 = _sqlite3VdbeAddOp4Int(tls, v, int32(OP_IdxGT), *(*int32)(unsafe.Pointer(bp + 108)), 0, r2, int32((*TIndex)(unsafe.Pointer(pPk1)).FnKeyCol))
_sqlite3VdbeAddOp1(tls, v, int32(OP_IsNull), r2)
- zErr = _sqlite3MPrintf(tls, db, __ccgo_ts+19793, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName))
+ zErr = _sqlite3MPrintf(tls, db, __ccgo_ts+19822, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr, -int32(6))
_integrityCheckResultRow(tls, v)
_sqlite3VdbeJumpHere(tls, v, a1)
@@ -190977,7 +191002,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3ColumnDefault(tls, v, pTab10, j4, int32(3))
jmp3 = _sqlite3VdbeAddOp2(tls, v, int32(OP_NotNull), int32(3), labelOk)
}
- zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19829, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName, (*TColumn)(unsafe.Pointer(pCol1)).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19858, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName, (*TColumn)(unsafe.Pointer(pCol1)).FzCnName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr1, -int32(6))
if doTypeCheck != 0 {
_sqlite3VdbeGoto(tls, v, labelError)
@@ -190990,7 +191015,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if bStrict != 0 && doTypeCheck != 0 {
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IsType), p11, labelOk, p3, p4)
_sqlite3VdbeChangeP5(tls, v, uint16(_aStdTypeMask[int32(uint32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4))-int32(1)]))
- zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19849, libc.VaList(bp+176, _sqlite3StdType[int32(uint32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4))-int32(1)], (*TTable)(unsafe.Pointer(pTab10)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab10)).FaCol + uintptr(j4)*16))).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19878, libc.VaList(bp+176, _sqlite3StdType[int32(uint32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4))-int32(1)], (*TTable)(unsafe.Pointer(pTab10)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab10)).FaCol + uintptr(j4)*16))).FzCnName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr1, -int32(6))
} else {
if !(bStrict != 0) && int32((*TColumn)(unsafe.Pointer(pCol1)).Faffinity) == int32(SQLITE_AFF_TEXT) {
@@ -190998,7 +191023,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
** NULL, TEXT, or BLOB. */
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IsType), p11, labelOk, p3, p4)
_sqlite3VdbeChangeP5(tls, v, uint16(0x1c)) /* NULL, TEXT, or BLOB */
- zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19871, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab10)).FaCol + uintptr(j4)*16))).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19900, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab10)).FaCol + uintptr(j4)*16))).FzCnName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr1, -int32(6))
} else {
if !(bStrict != 0) && int32((*TColumn)(unsafe.Pointer(pCol1)).Faffinity) >= int32(SQLITE_AFF_NUMERIC) {
@@ -191009,10 +191034,10 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if p11 >= 0 {
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab10, *(*int32)(unsafe.Pointer(bp + 108)), j4, int32(3))
}
- _sqlite3VdbeAddOp4(tls, v, int32(OP_Affinity), int32(3), int32(1), 0, __ccgo_ts+19894, -int32(1))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_Affinity), int32(3), int32(1), 0, __ccgo_ts+19923, -int32(1))
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IsType), -int32(1), labelOk, int32(3), p4)
_sqlite3VdbeChangeP5(tls, v, uint16(0x1c)) /* NULL, TEXT, or BLOB */
- zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19896, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab10)).FaCol + uintptr(j4)*16))).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+19925, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab10)).FaCol + uintptr(j4)*16))).FzCnName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr1, -int32(6))
}
}
@@ -191046,7 +191071,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3ExprIfTrue(tls, pParse, (*(*TExprList_item)(unsafe.Pointer(pCheck + 8))).FpExpr, addrCkOk, int32(SQLITE_JUMPIFNULL))
_sqlite3VdbeResolveLabel(tls, v, addrCkFault)
(*TParse)(unsafe.Pointer(pParse)).FiSelfTab = 0
- zErr2 = _sqlite3MPrintf(tls, db, __ccgo_ts+19916, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName))
+ zErr2 = _sqlite3MPrintf(tls, db, __ccgo_ts+19945, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab10)).FzName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr2, -int32(6))
_integrityCheckResultRow(tls, v)
_sqlite3VdbeResolveLabel(tls, v, addrCkOk)
@@ -191070,9 +191095,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp2(tls, v, int32(OP_AddImm), int32(8)+j4, int32(1)) /* increment entry count */
/* Verify that an index entry exists for the current table row */
jmp21 = _sqlite3VdbeAddOp4Int(tls, v, int32(OP_Found), *(*int32)(unsafe.Pointer(bp + 112))+j4, ckUniq, r1, int32((*TIndex)(unsafe.Pointer(pIdx6)).FnColumn))
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+19946)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+19975)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(7), int32(3), int32(3))
- _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+19951)
+ _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+19980)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(4), int32(3), int32(3))
jmp5 = _sqlite3VdbeLoadString(tls, v, int32(4), (*TIndex)(unsafe.Pointer(pIdx6)).FzName)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(4), int32(3), int32(3))
@@ -191085,9 +191110,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if (*TTable)(unsafe.Pointer(pTab10)).FtabFlags&uint32(TF_WithoutRowid) == uint32(0) {
_sqlite3VdbeAddOp2(tls, v, int32(OP_IdxRowid), *(*int32)(unsafe.Pointer(bp + 112))+j4, int32(3))
jmp7 = _sqlite3VdbeAddOp3(tls, v, int32(OP_Eq), int32(3), 0, r1+int32((*TIndex)(unsafe.Pointer(pIdx6)).FnColumn)-int32(1))
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+19972)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+20001)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(7), int32(3), int32(3))
- _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+20008)
+ _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+20037)
_sqlite3VdbeGoto(tls, v, jmp5-int32(1))
_sqlite3VdbeJumpHere(tls, v, jmp7)
}
@@ -191115,9 +191140,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if label6 != 0 {
jmp6 = _sqlite3VdbeAddOp0(tls, v, int32(OP_Goto))
_sqlite3VdbeResolveLabel(tls, v, label6)
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+19946)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+19975)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(7), int32(3), int32(3))
- _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+20019)
+ _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+20048)
_sqlite3VdbeGoto(tls, v, jmp5-int32(1))
_sqlite3VdbeJumpHere(tls, v, jmp6)
}
@@ -191145,7 +191170,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeGoto(tls, v, uniqOk)
_sqlite3VdbeJumpHere(tls, v, jmp61)
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IdxGT), *(*int32)(unsafe.Pointer(bp + 112))+j4, uniqOk, r1, int32((*TIndex)(unsafe.Pointer(pIdx6)).FnKeyCol))
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+20046)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+20075)
_sqlite3VdbeGoto(tls, v, jmp5)
_sqlite3VdbeResolveLabel(tls, v, uniqOk)
}
@@ -191242,7 +191267,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if aOp2 != 0 {
(*(*TVdbeOp)(unsafe.Pointer(aOp2))).Fp2 = int32(1) - *(*int32)(unsafe.Pointer(bp + 104))
(*(*TVdbeOp)(unsafe.Pointer(aOp2 + 2*24))).Fp4type = int8(-libc.Int32FromInt32(1))
- *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = __ccgo_ts + 20073
+ *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = __ccgo_ts + 20102
(*(*TVdbeOp)(unsafe.Pointer(aOp2 + 5*24))).Fp4type = int8(-libc.Int32FromInt32(1))
*(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = _sqlite3ErrStr(tls, int32(SQLITE_CORRUPT))
}
@@ -191321,7 +191346,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
FzName uintptr
Fenc Tu8
})(unsafe.Pointer(pEnc)).FzName != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20134, libc.VaList(bp+176, zRight))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20163, libc.VaList(bp+176, zRight))
}
}
}
@@ -191426,13 +191451,13 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
iBt = v67
eMode2 = SQLITE_CHECKPOINT_PASSIVE
if zRight != 0 {
- if _sqlite3StrICmp(tls, zRight, __ccgo_ts+19359) == 0 {
+ if _sqlite3StrICmp(tls, zRight, __ccgo_ts+19388) == 0 {
eMode2 = int32(SQLITE_CHECKPOINT_FULL)
} else {
- if _sqlite3StrICmp(tls, zRight, __ccgo_ts+20159) == 0 {
+ if _sqlite3StrICmp(tls, zRight, __ccgo_ts+20188) == 0 {
eMode2 = int32(SQLITE_CHECKPOINT_RESTART)
} else {
- if _sqlite3StrICmp(tls, zRight, __ccgo_ts+19512) == 0 {
+ if _sqlite3StrICmp(tls, zRight, __ccgo_ts+19541) == 0 {
eMode2 = int32(SQLITE_CHECKPOINT_TRUNCATE)
}
}
@@ -191659,7 +191684,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
} else {
_sqlite3VdbeAddOp2(tls, v, int32(OP_Rewind), iTabCur, int32(uint32(_sqlite3VdbeCurrentAddr(tls, v)+int32(2))+opMask&uint32(1)))
}
- zSubSql = _sqlite3MPrintf(tls, db, __ccgo_ts+20167, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(pTab12)).FzName))
+ zSubSql = _sqlite3MPrintf(tls, db, __ccgo_ts+20196, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(pTab12)).FzName))
if opMask&uint32(0x01) != 0 {
r11 = _sqlite3GetTempReg(tls, pParse)
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, r11, 0, zSubSql, -int32(6))
@@ -191932,34 +191957,34 @@ var _encnames1 = [9]struct {
Fenc Tu8
}{
0: {
- FzName: __ccgo_ts + 20076,
+ FzName: __ccgo_ts + 20105,
Fenc: uint8(SQLITE_UTF8),
},
1: {
- FzName: __ccgo_ts + 20081,
+ FzName: __ccgo_ts + 20110,
Fenc: uint8(SQLITE_UTF8),
},
2: {
- FzName: __ccgo_ts + 20087,
+ FzName: __ccgo_ts + 20116,
Fenc: uint8(SQLITE_UTF16LE),
},
3: {
- FzName: __ccgo_ts + 20096,
+ FzName: __ccgo_ts + 20125,
Fenc: uint8(SQLITE_UTF16BE),
},
4: {
- FzName: __ccgo_ts + 20105,
+ FzName: __ccgo_ts + 20134,
Fenc: uint8(SQLITE_UTF16LE),
},
5: {
- FzName: __ccgo_ts + 20113,
+ FzName: __ccgo_ts + 20142,
Fenc: uint8(SQLITE_UTF16BE),
},
6: {
- FzName: __ccgo_ts + 20121,
+ FzName: __ccgo_ts + 20150,
},
7: {
- FzName: __ccgo_ts + 20128,
+ FzName: __ccgo_ts + 20157,
},
8: {},
}
@@ -192055,14 +192080,14 @@ func _pragmaVtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, arg
_ = argc
_ = argv
_sqlite3StrAccumInit(tls, bp, uintptr(0), bp+32, int32(200), 0)
- Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20185)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20214)
i = 0
j = int32((*TPragmaName)(unsafe.Pointer(pPragma)).FiPragCName)
for {
if !(i < int32((*TPragmaName)(unsafe.Pointer(pPragma)).FnPragCName)) {
break
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20200, libc.VaList(bp+240, int32(cSep), _pragCName[j]))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20229, libc.VaList(bp+240, int32(cSep), _pragCName[j]))
cSep = int8(',')
goto _1
_1:
@@ -192071,16 +192096,16 @@ func _pragmaVtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, arg
j++
}
if i == 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20207, libc.VaList(bp+240, (*TPragmaName)(unsafe.Pointer(pPragma)).FzName))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20236, libc.VaList(bp+240, (*TPragmaName)(unsafe.Pointer(pPragma)).FzName))
i++
}
j = 0
if int32((*TPragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&int32(PragFlg_Result1) != 0 {
- Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20213)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20242)
j++
}
if int32((*TPragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(libc.Int32FromInt32(PragFlg_SchemaOpt)|libc.Int32FromInt32(PragFlg_SchemaReq)) != 0 {
- Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20225)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20254)
j++
}
Xsqlite3_str_append(tls, bp, __ccgo_ts+6568, int32(1))
@@ -192291,13 +192316,13 @@ func _pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr
j++
}
_sqlite3StrAccumInit(tls, bp, uintptr(0), uintptr(0), 0, *(*int32)(unsafe.Pointer((*TPragmaVtab)(unsafe.Pointer(pTab)).Fdb + 136 + 1*4)))
- Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20240)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+20269)
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20248, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8))))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20277, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8))))
}
Xsqlite3_str_appendall(tls, bp, (*TPragmaName)(unsafe.Pointer((*TPragmaVtab)(unsafe.Pointer(pTab)).FpName)).FzName)
if *(*uintptr)(unsafe.Pointer(pCsr + 24)) != 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20252, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+20281, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
}
zSql = _sqlite3StrAccumFinish(tls, bp)
if zSql == uintptr(0) {
@@ -192432,11 +192457,11 @@ func _corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr)
/* A error message has already been generated. Do not overwrite it */
} else {
if (*TInitData)(unsafe.Pointer(pData)).FmInitFlags&uint32(libc.Int32FromInt32(INITFLAG_AlterMask)) != 0 {
- *(*uintptr)(unsafe.Pointer((*TInitData)(unsafe.Pointer(pData)).FpzErrMsg)) = _sqlite3MPrintf(tls, db, __ccgo_ts+20286, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)), _azAlterType[(*TInitData)(unsafe.Pointer(pData)).FmInitFlags&uint32(INITFLAG_AlterMask)-uint32(1)], zExtra))
+ *(*uintptr)(unsafe.Pointer((*TInitData)(unsafe.Pointer(pData)).FpzErrMsg)) = _sqlite3MPrintf(tls, db, __ccgo_ts+20315, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)), _azAlterType[(*TInitData)(unsafe.Pointer(pData)).FmInitFlags&uint32(INITFLAG_AlterMask)-uint32(1)], zExtra))
(*TInitData)(unsafe.Pointer(pData)).Frc = int32(SQLITE_ERROR)
} else {
if (*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_WriteSchema) != 0 {
- (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(143745))
+ (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(143765))
} else {
if *(*uintptr)(unsafe.Pointer(azObj + 1*8)) != 0 {
v1 = *(*uintptr)(unsafe.Pointer(azObj + 1*8))
@@ -192444,12 +192469,12 @@ func _corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr)
v1 = __ccgo_ts + 6570
}
zObj = v1
- z = _sqlite3MPrintf(tls, db, __ccgo_ts+20314, libc.VaList(bp+8, zObj))
+ z = _sqlite3MPrintf(tls, db, __ccgo_ts+20343, libc.VaList(bp+8, zObj))
if zExtra != 0 && *(*int8)(unsafe.Pointer(zExtra)) != 0 {
- z = _sqlite3MPrintf(tls, db, __ccgo_ts+20345, libc.VaList(bp+8, z, zExtra))
+ z = _sqlite3MPrintf(tls, db, __ccgo_ts+20374, libc.VaList(bp+8, z, zExtra))
}
*(*uintptr)(unsafe.Pointer((*TInitData)(unsafe.Pointer(pData)).FpzErrMsg)) = z
- (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(143752))
+ (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(143772))
}
}
}
@@ -192457,9 +192482,9 @@ func _corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr)
}
var _azAlterType = [3]uintptr{
- 0: __ccgo_ts + 20256,
- 1: __ccgo_ts + 20263,
- 2: __ccgo_ts + 20275,
+ 0: __ccgo_ts + 20285,
+ 1: __ccgo_ts + 20292,
+ 2: __ccgo_ts + 20304,
}
// C documentation
@@ -192535,7 +192560,7 @@ func _sqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb = uint8(iDb)
if _sqlite3GetUInt32(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8)), db+192) == 0 || (*Tsqlite3)(unsafe.Pointer(db)).Finit1.FnewTnum > (*TInitData)(unsafe.Pointer(pData)).FmxPage && (*TInitData)(unsafe.Pointer(pData)).FmxPage > uint32(0) {
if _sqlite3Config.FbExtraSchemaChecks != 0 {
- _corruptSchema(tls, pData, argv, __ccgo_ts+16072)
+ _corruptSchema(tls, pData, argv, __ccgo_ts+16101)
}
}
libc.SetBitFieldPtr8Uint32(db+192+8, libc.Uint32FromInt32(0), 0, 0x1)
@@ -192568,11 +192593,11 @@ func _sqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr
} else {
pIndex = _sqlite3FindIndex(tls, db, *(*uintptr)(unsafe.Pointer(argv + 1*8)), (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName)
if pIndex == uintptr(0) {
- _corruptSchema(tls, pData, argv, __ccgo_ts+20353)
+ _corruptSchema(tls, pData, argv, __ccgo_ts+20382)
} else {
if _sqlite3GetUInt32(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8)), pIndex+88) == 0 || (*TIndex)(unsafe.Pointer(pIndex)).Ftnum < uint32(2) || (*TIndex)(unsafe.Pointer(pIndex)).Ftnum > (*TInitData)(unsafe.Pointer(pData)).FmxPage || _sqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0 {
if _sqlite3Config.FbExtraSchemaChecks != 0 {
- _corruptSchema(tls, pData, argv, __ccgo_ts+16072)
+ _corruptSchema(tls, pData, argv, __ccgo_ts+16101)
}
}
}
@@ -192611,7 +192636,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
** table name will be inserted automatically by the parser so we can just
** use the abbreviation "x" here. The parser will also automatically tag
** the schema table as read-only. */
- (*(*[6]uintptr)(unsafe.Pointer(bp)))[0] = __ccgo_ts + 10641
+ (*(*[6]uintptr)(unsafe.Pointer(bp)))[0] = __ccgo_ts + 10670
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
v2 = __ccgo_ts + 8055
} else {
@@ -192622,7 +192647,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
(*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(1)] = v1
(*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(2)] = (*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(1)]
(*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(3)] = __ccgo_ts + 9713
- (*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(4)] = __ccgo_ts + 20366
+ (*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(4)] = __ccgo_ts + 20395
(*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(5)] = uintptr(0)
(*(*TInitData)(unsafe.Pointer(bp + 72))).Fdb = db
(*(*TInitData)(unsafe.Pointer(bp + 72))).FiDb = iDb
@@ -192706,7 +192731,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
} else {
/* If opening an attached database, the encoding much match ENC(db) */
if (*(*[5]int32)(unsafe.Pointer(bp + 48)))[libc.Int32FromInt32(BTREE_TEXT_ENCODING)-libc.Int32FromInt32(1)]&int32(3) != int32((*Tsqlite3)(unsafe.Pointer(db)).Fenc) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+13678)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+13707)
rc = int32(SQLITE_ERROR)
goto initone_error_out
}
@@ -192732,7 +192757,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
(*TSchema)(unsafe.Pointer((*TDb)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format = uint8(1)
}
if int32((*TSchema)(unsafe.Pointer((*TDb)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format) > int32(SQLITE_MAX_FILE_FORMAT) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+20438)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+20467)
rc = int32(SQLITE_ERROR)
goto initone_error_out
}
@@ -192747,7 +192772,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
/* Read the schema information out of the schema tables
*/
(*(*TInitData)(unsafe.Pointer(bp + 72))).FmxPage = _sqlite3BtreeLastPage(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt)
- zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+20462, libc.VaList(bp+120, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zSchemaTabName))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+20491, libc.VaList(bp+120, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zSchemaTabName))
xAuth = (*Tsqlite3)(unsafe.Pointer(db)).FxAuth
(*Tsqlite3)(unsafe.Pointer(db)).FxAuth = uintptr(0)
rc = Xsqlite3_exec(tls, db, zSql, __ccgo_fp(_sqlite3InitCallback), bp+72, uintptr(0))
@@ -193165,7 +193190,7 @@ func _sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prep
rc = _sqlite3BtreeSchemaLocked(tls, pBt)
if rc != 0 {
zDb = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32))).FzDbSName
- _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+20496, libc.VaList(bp+432, zDb))
+ _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+20525, libc.VaList(bp+432, zDb))
goto end_prepare
}
}
@@ -193181,7 +193206,7 @@ func _sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prep
if nBytes >= 0 && (nBytes == 0 || int32(*(*int8)(unsafe.Pointer(zSql + uintptr(nBytes-int32(1))))) != 0) {
mxLen = *(*int32)(unsafe.Pointer(db + 136 + 1*4))
if nBytes > mxLen {
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_TOOBIG), __ccgo_ts+20526, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_TOOBIG), __ccgo_ts+20555, 0)
rc = _sqlite3ApiExit(tls, db, int32(SQLITE_TOOBIG))
goto end_prepare
}
@@ -193245,7 +193270,7 @@ func _sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int3
cnt = 0
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
if !(_sqlite3SafetyCheckOk(tls, db) != 0) || zSql == uintptr(0) {
- return _sqlite3MisuseError(tls, int32(144552))
+ return _sqlite3MisuseError(tls, int32(144572))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
_sqlite3BtreeEnterAll(tls, db)
@@ -193379,7 +193404,7 @@ func _sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, pr
rc = SQLITE_OK
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
if !(_sqlite3SafetyCheckOk(tls, db) != 0) || zSql == uintptr(0) {
- return _sqlite3MisuseError(tls, int32(144701))
+ return _sqlite3MisuseError(tls, int32(144721))
}
/* Make sure nBytes is non-negative and correct. It should be the
** number of bytes until the end of the input buffer or until the first
@@ -193803,15 +193828,15 @@ func _sqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC
i++
}
if jointype&(libc.Int32FromInt32(JT_INNER)|libc.Int32FromInt32(JT_OUTER)) == libc.Int32FromInt32(JT_INNER)|libc.Int32FromInt32(JT_OUTER) || jointype&int32(JT_ERROR) != 0 || jointype&(libc.Int32FromInt32(JT_OUTER)|libc.Int32FromInt32(JT_LEFT)|libc.Int32FromInt32(JT_RIGHT)) == int32(JT_OUTER) {
- zSp1 = __ccgo_ts + 12785
- zSp2 = __ccgo_ts + 12785
+ zSp1 = __ccgo_ts + 12814
+ zSp2 = __ccgo_ts + 12814
if pB == uintptr(0) {
zSp1++
}
if pC == uintptr(0) {
zSp2++
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20545, libc.VaList(bp+8, pA, zSp1, pB, zSp2, pC))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20574, libc.VaList(bp+8, pA, zSp1, pB, zSp2, pC))
jointype = int32(JT_INNER)
}
return jointype
@@ -194105,7 +194130,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
if int32((*TSrcItem)(unsafe.Pointer(pRight)).Ffg.Fjointype)&int32(JT_NATURAL) != 0 {
pUsing = uintptr(0)
if int32(*(*uint32)(unsafe.Pointer(pRight + 24 + 4))&0x800>>11) != 0 || *(*uintptr)(unsafe.Pointer(pRight + 64)) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20575, libc.VaList(bp+16, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20604, libc.VaList(bp+16, 0))
return int32(1)
}
j = 0
@@ -194155,7 +194180,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
zName1 = (*(*TIdList_item)(unsafe.Pointer(pList + 8 + uintptr(j)*8))).FzName
iRightCol = _sqlite3ColumnIndex(tls, pRightTab, zName1)
if iRightCol < 0 || _tableAndColumnIndex(tls, pSrc, 0, i, zName1, bp, bp+4, int32(*(*uint32)(unsafe.Pointer(pRight + 24 + 4))&0x2000>>13)) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20625, libc.VaList(bp+16, zName1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20654, libc.VaList(bp+16, zName1))
return int32(1)
}
pE1 = _sqlite3CreateColumnExpr(tls, db, pSrc, *(*int32)(unsafe.Pointer(bp)), *(*int32)(unsafe.Pointer(bp + 4)))
@@ -194178,7 +194203,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
*(*Tu32)(unsafe.Pointer(pE1 + 4)) |= uint32(libc.Int32FromInt32(EP_CanBeNull))
for _tableAndColumnIndex(tls, pSrc, *(*int32)(unsafe.Pointer(bp))+int32(1), i, zName1, bp, bp+4, int32(*(*uint32)(unsafe.Pointer(pRight + 24 + 4))&0x2000>>13)) != 0 {
if int32(*(*uint32)(unsafe.Pointer(pSrc + 8 + uintptr(*(*int32)(unsafe.Pointer(bp)))*80 + 24 + 4))&0x800>>11) == 0 || _sqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(*(*int32)(unsafe.Pointer(bp)))*80 + 64)), zName1) < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20689, libc.VaList(bp+16, zName1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20718, libc.VaList(bp+16, zName1))
break
}
pFuncArgs = _sqlite3ExprListAppend(tls, pParse, pFuncArgs, pE1)
@@ -194805,7 +194830,7 @@ func _selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pS
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IdxInsert), iParm, r13, regResult, nResultCol)
if (*TSelectDest)(unsafe.Pointer(pDest)).FiSDParm2 != 0 {
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_FilterAdd), (*TSelectDest)(unsafe.Pointer(pDest)).FiSDParm2, 0, regResult, nResultCol)
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20726, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20755, 0)
}
_sqlite3ReleaseTempReg(tls, pParse, r13)
}
@@ -195010,13 +195035,13 @@ func _sqlite3SelectOpName(tls *libc.TLS, id int32) (r uintptr) {
_ = z
switch id {
case int32(TK_ALL):
- z = __ccgo_ts + 20746
+ z = __ccgo_ts + 20775
case int32(TK_INTERSECT):
- z = __ccgo_ts + 20756
+ z = __ccgo_ts + 20785
case int32(TK_EXCEPT):
- z = __ccgo_ts + 20766
+ z = __ccgo_ts + 20795
default:
- z = __ccgo_ts + 20773
+ z = __ccgo_ts + 20802
break
}
return z
@@ -195037,7 +195062,7 @@ func _sqlite3SelectOpName(tls *libc.TLS, id int32) (r uintptr) {
func _explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) {
bp := tls.Alloc(16)
defer tls.Free(16)
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20779, libc.VaList(bp+8, zUsage))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20808, libc.VaList(bp+8, zUsage))
}
/*
@@ -195074,13 +195099,13 @@ func _generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr,
nKey = (*TExprList)(unsafe.Pointer(pOrderBy)).FnExpr - (*TSortCtx)(unsafe.Pointer(pSort)).FnOBSat
if (*TSortCtx)(unsafe.Pointer(pSort)).FnOBSat == 0 || nKey == int32(1) {
if (*TSortCtx)(unsafe.Pointer(pSort)).FnOBSat != 0 {
- v1 = __ccgo_ts + 20802
+ v1 = __ccgo_ts + 20831
} else {
v1 = __ccgo_ts + 1674
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20816, libc.VaList(bp+8, v1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20845, libc.VaList(bp+8, v1))
} else {
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20847, libc.VaList(bp+8, nKey))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20876, libc.VaList(bp+8, nKey))
}
if (*TSortCtx)(unsafe.Pointer(pSort)).FlabelBkOut != 0 {
_sqlite3VdbeAddOp2(tls, v, int32(OP_Gosub), (*TSortCtx)(unsafe.Pointer(pSort)).FregReturn, (*TSortCtx)(unsafe.Pointer(pSort)).FlabelBkOut)
@@ -195324,7 +195349,7 @@ func _columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr
}
if iCol < 0 {
zType = __ccgo_ts + 1148
- *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 18295
+ *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 18324
} else {
*(*uintptr)(unsafe.Pointer(bp + 16)) = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FzCnName
zType = _sqlite3ColumnType(tls, (*TTable)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*16, uintptr(0))
@@ -195470,13 +195495,13 @@ func _sqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
iCol = int32((*TTable)(unsafe.Pointer(pTab)).FiPKey)
}
if iCol < 0 {
- zCol = __ccgo_ts + 18295
+ zCol = __ccgo_ts + 18324
} else {
zCol = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FzCnName
}
if fullName != 0 {
zName1 = uintptr(0)
- zName1 = _sqlite3MPrintf(tls, db, __ccgo_ts+13964, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zCol))
+ zName1 = _sqlite3MPrintf(tls, db, __ccgo_ts+13993, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zCol))
_sqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zName1, __ccgo_fp(_sqlite3OomClear))
} else {
_sqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zCol, uintptr(-libc.Int32FromInt32(1)))
@@ -195484,7 +195509,7 @@ func _sqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
} else {
z = (*(*TExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32))).FzEName
if z == uintptr(0) {
- v2 = _sqlite3MPrintf(tls, db, __ccgo_ts+20893, libc.VaList(bp+8, i+int32(1)))
+ v2 = _sqlite3MPrintf(tls, db, __ccgo_ts+20922, libc.VaList(bp+8, i+int32(1)))
} else {
v2 = _sqlite3DbStrDup(tls, db, z)
}
@@ -195576,7 +195601,7 @@ func _sqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr,
if iCol >= 0 {
v3 = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FzCnName
} else {
- v3 = __ccgo_ts + 18295
+ v3 = __ccgo_ts + 18324
}
zName = v3
} else {
@@ -195591,7 +195616,7 @@ func _sqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr,
if zName != 0 && !(_sqlite3IsTrueOrFalse(tls, zName) != 0) {
zName = _sqlite3DbStrDup(tls, db, zName)
} else {
- zName = _sqlite3MPrintf(tls, db, __ccgo_ts+20893, libc.VaList(bp+40, i+int32(1)))
+ zName = _sqlite3MPrintf(tls, db, __ccgo_ts+20922, libc.VaList(bp+40, i+int32(1)))
}
/* Make sure the column name is unique. If the name is not unique,
** append an integer to the name so that it becomes unique.
@@ -195627,7 +195652,7 @@ func _sqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr,
}
*(*Tu32)(unsafe.Pointer(bp))++
v8 = *(*Tu32)(unsafe.Pointer(bp))
- zName = _sqlite3MPrintf(tls, db, __ccgo_ts+20902, libc.VaList(bp+40, nName, zName, v8))
+ zName = _sqlite3MPrintf(tls, db, __ccgo_ts+20931, libc.VaList(bp+40, nName, zName, v8))
_sqlite3ProgressCheck(tls, pParse)
if *(*Tu32)(unsafe.Pointer(bp)) > uint32(3) {
Xsqlite3_randomness(tls, int32(4), bp)
@@ -195746,7 +195771,7 @@ func _sqlite3SubqueryColumnTypes(tls *libc.TLS, pParse uintptr, pTab uintptr, pS
zType = _columnTypeImpl(tls, bp, p, uintptr(0), uintptr(0), uintptr(0))
if zType == uintptr(0) || int32((*TColumn)(unsafe.Pointer(pCol)).Faffinity) != int32(_sqlite3AffinityType(tls, zType, uintptr(0))) {
if int32((*TColumn)(unsafe.Pointer(pCol)).Faffinity) == int32(SQLITE_AFF_NUMERIC) || int32((*TColumn)(unsafe.Pointer(pCol)).Faffinity) == int32(SQLITE_AFF_FLEXNUM) {
- zType = __ccgo_ts + 20910
+ zType = __ccgo_ts + 20939
} else {
zType = uintptr(0)
j = int32(1)
@@ -196061,7 +196086,7 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
iDistinct = 0 /* To ensure unique results if UNION */
eDest = int32(SRT_Fifo) /* Registers used by LIMIT and OFFSET */
if (*TSelect)(unsafe.Pointer(p)).FpWin != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20914, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20943, 0)
return
}
/* Obtain authorization to do a recursive query */
@@ -196154,7 +196179,7 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
break
}
if (*TSelect)(unsafe.Pointer(pFirstRec)).FselFlags&uint32(SF_Aggregate) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20963, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20992, 0)
goto end_of_recursive_query
}
(*TSelect)(unsafe.Pointer(pFirstRec)).Fop = uint8(TK_ALL)
@@ -196169,7 +196194,7 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
/* Store the results of the setup-query in Queue. */
pSetup = (*TSelect)(unsafe.Pointer(pFirstRec)).FpPrior
(*TSelect)(unsafe.Pointer(pSetup)).FpNext = uintptr(0)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21005, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21034, 0)
rc = _sqlite3Select(tls, pParse, pSetup, bp)
(*TSelect)(unsafe.Pointer(pSetup)).FpNext = p
if rc != 0 {
@@ -196197,7 +196222,7 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
** the value for the recursive-table. Store the results in the Queue.
*/
(*TSelect)(unsafe.Pointer(pFirstRec)).FpPrior = uintptr(0)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21011, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21040, 0)
_sqlite3Select(tls, pParse, p, bp)
(*TSelect)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup
/* Keep running the loop until the Queue is empty */
@@ -196252,9 +196277,9 @@ func _multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
if nRow == int32(1) {
v1 = __ccgo_ts + 1674
} else {
- v1 = __ccgo_ts + 21026
+ v1 = __ccgo_ts + 21055
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21028, libc.VaList(bp+8, nRow, v1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21057, libc.VaList(bp+8, nRow, v1))
for p != 0 {
_selectInnerLoop(tls, pParse, p, -int32(1), uintptr(0), uintptr(0), pDest, int32(1), int32(1))
if !(bShowAll != 0) {
@@ -196362,8 +196387,8 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
return _multiSelectOrderBy(tls, pParse, p, pDest)
} else {
if (*TSelect)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0) {
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21051, 0)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21066, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21080, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21095, 0)
}
/* Generate code for the left and right SELECT statements.
*/
@@ -196388,7 +196413,7 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
_sqlite3VdbeAddOp3(tls, v, int32(OP_OffsetLimit), (*TSelect)(unsafe.Pointer(p)).FiLimit, (*TSelect)(unsafe.Pointer(p)).FiOffset+int32(1), (*TSelect)(unsafe.Pointer(p)).FiOffset)
}
}
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+20746, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+20775, 0)
rc = _sqlite3Select(tls, pParse, p, bp)
pDelete = (*TSelect)(unsafe.Pointer(p)).FpPrior
(*TSelect)(unsafe.Pointer(p)).FpPrior = pPrior
@@ -196440,7 +196465,7 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
pLimit = (*TSelect)(unsafe.Pointer(p)).FpLimit
(*TSelect)(unsafe.Pointer(p)).FpLimit = uintptr(0)
(*(*TSelectDest)(unsafe.Pointer(bp + 48))).FeDest = op
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21085, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21114, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
rc = _sqlite3Select(tls, pParse, p, bp+48)
pDelete = (*TSelect)(unsafe.Pointer(p)).FpPrior
(*TSelect)(unsafe.Pointer(p)).FpPrior = pPrior
@@ -196498,7 +196523,7 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
pLimit1 = (*TSelect)(unsafe.Pointer(p)).FpLimit
(*TSelect)(unsafe.Pointer(p)).FpLimit = uintptr(0)
(*(*TSelectDest)(unsafe.Pointer(bp + 88))).FiSDParm = tab2
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21085, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21114, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
rc = _sqlite3Select(tls, pParse, p, bp+88)
pDelete = (*TSelect)(unsafe.Pointer(p)).FpPrior
(*TSelect)(unsafe.Pointer(p)).FpPrior = pPrior
@@ -196622,9 +196647,9 @@ func _sqlite3SelectWrongNumTermsError(tls *libc.TLS, pParse uintptr, p uintptr)
bp := tls.Alloc(16)
defer tls.Free(16)
if (*TSelect)(unsafe.Pointer(p)).FselFlags&uint32(SF_Values) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21106, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21135, 0)
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21152, libc.VaList(bp+8, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21181, libc.VaList(bp+8, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
}
}
@@ -196695,7 +196720,7 @@ func _generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uin
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IdxInsert), (*TSelectDest)(unsafe.Pointer(pDest)).FiSDParm, r11, (*TSelectDest)(unsafe.Pointer(pIn)).FiSdst, (*TSelectDest)(unsafe.Pointer(pIn)).FnSdst)
if (*TSelectDest)(unsafe.Pointer(pDest)).FiSDParm2 > 0 {
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_FilterAdd), (*TSelectDest)(unsafe.Pointer(pDest)).FiSDParm2, 0, (*TSelectDest)(unsafe.Pointer(pIn)).FiSdst, (*TSelectDest)(unsafe.Pointer(pIn)).FnSdst)
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20726, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20755, 0)
}
_sqlite3ReleaseTempReg(tls, pParse, r11)
break
@@ -197042,14 +197067,14 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
regOutB = v21
_sqlite3SelectDestInit(tls, bp, int32(SRT_Coroutine), regAddrA)
_sqlite3SelectDestInit(tls, bp+40, int32(SRT_Coroutine), regAddrB)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21234, libc.VaList(bp+88, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21263, libc.VaList(bp+88, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
/* Generate a coroutine to evaluate the SELECT statement to the
** left of the compound operator - the "A" select.
*/
addrSelectA = _sqlite3VdbeCurrentAddr(tls, v) + int32(1)
addr1 = _sqlite3VdbeAddOp3(tls, v, int32(OP_InitCoroutine), regAddrA, 0, addrSelectA)
(*TSelect)(unsafe.Pointer(pPrior)).FiLimit = regLimitA
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21245, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21274, 0)
_sqlite3Select(tls, pParse, pPrior, bp)
_sqlite3VdbeEndCoroutine(tls, v, regAddrA)
_sqlite3VdbeJumpHere(tls, v, addr1)
@@ -197062,7 +197087,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
savedOffset = (*TSelect)(unsafe.Pointer(p)).FiOffset
(*TSelect)(unsafe.Pointer(p)).FiLimit = regLimitB
(*TSelect)(unsafe.Pointer(p)).FiOffset = 0
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21250, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21279, 0)
_sqlite3Select(tls, pParse, p, bp+40)
(*TSelect)(unsafe.Pointer(p)).FiLimit = savedLimit
(*TSelect)(unsafe.Pointer(p)).FiOffset = savedOffset
@@ -198898,13 +198923,13 @@ func _minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) (r
return uint8(eRet)
}
zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8))
- if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+17133) == 0 {
+ if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+17162) == 0 {
eRet = int32(WHERE_ORDERBY_MIN)
if _sqlite3ExprCanBeNull(tls, (*(*TExprList_item)(unsafe.Pointer(pEList + 8))).FpExpr) != 0 {
sortFlags = uint8(KEYINFO_ORDER_BIGNULL)
}
} else {
- if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+17137) == 0 {
+ if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+17166) == 0 {
eRet = int32(WHERE_ORDERBY_MAX)
sortFlags = uint8(KEYINFO_ORDER_DESC)
} else {
@@ -198992,7 +199017,7 @@ func _sqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) (r in
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
if !(pIdx != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21256, libc.VaList(bp+8, zIndexedBy, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21285, libc.VaList(bp+8, zIndexedBy, 0))
libc.SetBitFieldPtr8Uint32(pParse+44, libc.Uint32FromInt32(1), 3, 0x8)
return int32(SQLITE_ERROR)
}
@@ -199117,7 +199142,7 @@ func _cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
if int32(*(*uint32)(unsafe.Pointer(pFrom + 24 + 4))&0x8>>3) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21274, libc.VaList(bp+8, (*TSrcItem)(unsafe.Pointer(pFrom)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21303, libc.VaList(bp+8, (*TSrcItem)(unsafe.Pointer(pFrom)).FzName))
return int32(1)
}
return 0
@@ -199293,7 +199318,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
pSel = (*TSubquery)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pFrom + 72)))).FpSelect
*(*Tu32)(unsafe.Pointer(pSel + 4)) |= uint32(SF_CopyCte)
if int32(*(*uint32)(unsafe.Pointer(pFrom + 24 + 4))&0x2>>1) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21297, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pFrom + 48))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21326, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pFrom + 48))))
return int32(2)
}
libc.SetBitFieldPtr32Uint32(pFrom+24+4, libc.Uint32FromInt32(1), 9, 0x200)
@@ -199315,7 +199340,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
(*TTable)(unsafe.Pointer(pTab)).FnTabRef++
libc.SetBitFieldPtr32Uint32(pItem+24+4, libc.Uint32FromInt32(1), 7, 0x80)
if (*TSelect)(unsafe.Pointer(pRecTerm)).FselFlags&uint32(SF_Recursive) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21317, libc.VaList(bp+16, (*TCte)(unsafe.Pointer(pCte)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21346, libc.VaList(bp+16, (*TCte)(unsafe.Pointer(pCte)).FzName))
return int32(2)
}
*(*Tu32)(unsafe.Pointer(pRecTerm + 4)) |= uint32(SF_Recursive)
@@ -199337,7 +199362,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
}
pRecTerm = (*TSelect)(unsafe.Pointer(pRecTerm)).FpPrior
}
- (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 21360
+ (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 21389
pSavedWith = (*TParse)(unsafe.Pointer(pParse)).FpWith
(*TParse)(unsafe.Pointer(pParse)).FpWith = *(*uintptr)(unsafe.Pointer(bp))
if (*TSelect)(unsafe.Pointer(pSel)).FselFlags&uint32(SF_Recursive) != 0 {
@@ -199368,7 +199393,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
pEList = (*TSelect)(unsafe.Pointer(pLeft)).FpEList
if (*TCte)(unsafe.Pointer(pCte)).FpCols != 0 {
if pEList != 0 && (*TExprList)(unsafe.Pointer(pEList)).FnExpr != (*TExprList)(unsafe.Pointer((*TCte)(unsafe.Pointer(pCte)).FpCols)).FnExpr {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21383, libc.VaList(bp+16, (*TCte)(unsafe.Pointer(pCte)).FzName, (*TExprList)(unsafe.Pointer(pEList)).FnExpr, (*TExprList)(unsafe.Pointer((*TCte)(unsafe.Pointer(pCte)).FpCols)).FnExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21412, libc.VaList(bp+16, (*TCte)(unsafe.Pointer(pCte)).FzName, (*TExprList)(unsafe.Pointer(pEList)).FnExpr, (*TExprList)(unsafe.Pointer((*TCte)(unsafe.Pointer(pCte)).FpCols)).FnExpr))
(*TParse)(unsafe.Pointer(pParse)).FpWith = pSavedWith
return int32(2)
}
@@ -199377,9 +199402,9 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
_sqlite3ColumnsFromExprList(tls, pParse, pEList, pTab+54, pTab+8)
if bMayRecursive != 0 {
if (*TSelect)(unsafe.Pointer(pSel)).FselFlags&uint32(SF_Recursive) != 0 {
- (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 21421
+ (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 21450
} else {
- (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 21455
+ (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 21484
}
_sqlite3WalkSelect(tls, pWalker, pSel)
}
@@ -199438,7 +199463,7 @@ func _sqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) (r int
if (*TSrcItem)(unsafe.Pointer(pFrom)).FzAlias != 0 {
(*TTable)(unsafe.Pointer(pTab)).FzName = _sqlite3DbStrDup(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*TSrcItem)(unsafe.Pointer(pFrom)).FzAlias)
} else {
- (*TTable)(unsafe.Pointer(pTab)).FzName = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+21493, libc.VaList(bp+8, pFrom))
+ (*TTable)(unsafe.Pointer(pTab)).FzName = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+21522, libc.VaList(bp+8, pFrom))
}
for (*TSelect)(unsafe.Pointer(pSel)).FpPrior != 0 {
pSel = (*TSelect)(unsafe.Pointer(pSel)).FpPrior
@@ -199594,7 +199619,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
return int32(WRC_Abort)
}
if (*TTable)(unsafe.Pointer(pTab)).FnTabRef >= uint32(0xffff) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21497, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21526, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
(*TSrcItem)(unsafe.Pointer(pFrom)).FpSTab = uintptr(0)
return int32(WRC_Abort)
}
@@ -199609,7 +199634,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
if (*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_EnableView) == uint64(0) && (*TTable)(unsafe.Pointer(pTab)).FpSchema != (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpSchema {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21536, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21565, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
_sqlite3SrcItemAttachSubquery(tls, pParse, pFrom, (*(*struct {
FpSelect uintptr
@@ -199624,7 +199649,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
FazArg uintptr
Fp uintptr
})(unsafe.Pointer(pTab + 64))).Fp)).FeVtabRisk) > libc.BoolInt32((*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_TrustedSchema) != uint64(0)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16665, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16694, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
}
nCol = (*TTable)(unsafe.Pointer(pTab)).FnCol
@@ -199765,7 +199790,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
pNew = _sqlite3ExprListAppend(tls, pParse, pNew, pRight)
if pNew != 0 {
pX = pNew + 8 + uintptr((*TExprList)(unsafe.Pointer(pNew)).FnExpr-int32(1))*32
- (*TExprList_item)(unsafe.Pointer(pX)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+21567, libc.VaList(bp+8, zUName))
+ (*TExprList_item)(unsafe.Pointer(pX)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+21596, libc.VaList(bp+8, zUName))
libc.SetBitFieldPtr16Uint32(pX+16+4, libc.Uint32FromInt32(ENAME_TAB), 0, 0x3)
libc.SetBitFieldPtr16Uint32(pX+16+4, libc.Uint32FromInt32(1), 7, 0x80)
}
@@ -199844,7 +199869,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
if pNestedFrom != 0 && libc.Bool(libc.Bool(!(libc.Int32FromInt32(ViewCanHaveRowid) != 0)) || j < (*TExprList)(unsafe.Pointer(pNestedFrom)).FnExpr) {
(*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3DbStrDup(tls, db, (*(*TExprList_item)(unsafe.Pointer(pNestedFrom + 8 + uintptr(j)*32))).FzEName)
} else {
- (*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+21572, libc.VaList(bp+8, zSchemaName, zTabName, zName))
+ (*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+21601, libc.VaList(bp+8, zSchemaName, zTabName, zName))
}
if j == int32((*TTable)(unsafe.Pointer(pTab1)).FnCol) {
v13 = int32(ENAME_ROWID)
@@ -199857,7 +199882,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
} else {
if longNames != 0 {
- (*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+13964, libc.VaList(bp+8, zTabName, zName))
+ (*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+13993, libc.VaList(bp+8, zTabName, zName))
libc.SetBitFieldPtr16Uint32(pX1+16+4, libc.Uint32FromInt32(ENAME_NAME), 0, 0x3)
} else {
(*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3DbStrDup(tls, db, zName)
@@ -199877,9 +199902,9 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
if !(tableSeen != 0) {
if zTName != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21581, libc.VaList(bp+8, zTName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21610, libc.VaList(bp+8, zTName))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21599, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21628, 0)
}
}
}
@@ -199893,7 +199918,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
if (*TSelect)(unsafe.Pointer(p)).FpEList != 0 {
if (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(p)).FpEList)).FnExpr > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21619, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21648, 0)
return int32(WRC_Abort)
}
if elistFlags&uint32(libc.Int32FromInt32(EP_HasFunc)|libc.Int32FromInt32(EP_Subquery)) != uint32(0) {
@@ -200090,14 +200115,14 @@ func _optimizeAggregateUseOfIndexedExpr(tls *libc.TLS, pParse uintptr, pSelect u
var j, k, mx int32
_, _, _ = j, k, mx
(*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnAccumulator
- if int32((*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn) > 0 {
+ if (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn > uint32(0) {
mx = (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pSelect)).FpGroupBy)).FnExpr - int32(1)
j = 0
for {
if !(j < (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn) {
break
}
- k = int32((*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(j)*24))).FiSorterColumn)
+ k = (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(j)*32))).FiSorterColumn
if k > mx {
mx = k
}
@@ -200106,7 +200131,7 @@ func _optimizeAggregateUseOfIndexedExpr(tls *libc.TLS, pParse uintptr, pSelect u
;
j++
}
- (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn = uint16(mx + int32(1))
+ (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn = uint32(mx + int32(1))
}
_analyzeAggFuncArgs(tls, pAggInfo, pNC)
_ = pSelect
@@ -200138,10 +200163,10 @@ func _aggregateIdxEprRefToColCallback(tls *libc.TLS, pWalker uintptr, pExpr uint
if int32((*TExpr)(unsafe.Pointer(pExpr)).FiAgg) >= (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn {
return WRC_Continue
}
- pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)*24
+ pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)*32
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_AGG_COLUMN)
(*TExpr)(unsafe.Pointer(pExpr)).FiTable = (*TAggInfo_col)(unsafe.Pointer(pCol)).FiTable
- (*TExpr)(unsafe.Pointer(pExpr)).FiColumn = (*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn
+ (*TExpr)(unsafe.Pointer(pExpr)).FiColumn = int16((*TAggInfo_col)(unsafe.Pointer(pCol)).FiColumn)
*(*Tu32)(unsafe.Pointer(pExpr + 4)) &= ^uint32(libc.Int32FromInt32(EP_Skip) | libc.Int32FromInt32(EP_Collate) | libc.Int32FromInt32(EP_Unlikely))
return int32(WRC_Prune)
}
@@ -200232,12 +200257,12 @@ func _resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) {
if (*TAggInfo_func)(unsafe.Pointer(pFunc)).FiDistinct >= 0 {
pE = (*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFExpr
if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*TExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != int32(1) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21650, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21679, 0)
(*TAggInfo_func)(unsafe.Pointer(pFunc)).FiDistinct = -int32(1)
} else {
pKeyInfo = _sqlite3KeyInfoFromExprList(tls, pParse, *(*uintptr)(unsafe.Pointer(pE + 32)), 0, 0)
(*TAggInfo_func)(unsafe.Pointer(pFunc)).FiDistAddr = _sqlite3VdbeAddOp4(tls, v, int32(OP_OpenEphemeral), (*TAggInfo_func)(unsafe.Pointer(pFunc)).FiDistinct, 0, 0, pKeyInfo, -int32(8))
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21701, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21730, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
}
if (*TAggInfo_func)(unsafe.Pointer(pFunc)).FiOBTab >= 0 {
@@ -200258,7 +200283,7 @@ func _resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) {
(*TKeyInfo)(unsafe.Pointer(pKeyInfo1)).FnKeyField++
}
_sqlite3VdbeAddOp4(tls, v, int32(OP_OpenEphemeral), (*TAggInfo_func)(unsafe.Pointer(pFunc)).FiOBTab, (*TExprList)(unsafe.Pointer(pOBList)).FnExpr+nExtra, 0, pKeyInfo1, -int32(8))
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21734, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21763, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
goto _1
_1:
@@ -200549,7 +200574,7 @@ func _updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo ui
_9:
;
i++
- pC += 24
+ pC += 32
}
(*TAggInfo)(unsafe.Pointer(pAggInfo)).FdirectMode = uint8(0)
if addrHitTest != 0 {
@@ -200572,7 +200597,7 @@ func _explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintp
if int32((*TParse)(unsafe.Pointer(pParse)).Fexplain) == int32(2) {
bCover = libc.BoolInt32(pIdx != uintptr(0) && ((*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_WithoutRowid) == uint32(0) || !(int32(uint32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x3>>0)) == libc.Int32FromInt32(SQLITE_IDXTYPE_PRIMARYKEY))))
if bCover != 0 {
- v1 = __ccgo_ts + 21767
+ v1 = __ccgo_ts + 21796
} else {
v1 = __ccgo_ts + 1674
}
@@ -200581,7 +200606,7 @@ func _explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintp
} else {
v2 = __ccgo_ts + 1674
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21790, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, v1, v2))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+21819, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, v1, v2))
}
}
@@ -200771,7 +200796,7 @@ func _countOfViewOptimization(tls *libc.TLS, pParse uintptr, p uintptr) (r int32
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_AGG_FUNCTION) {
return 0
} /* Result is an aggregate */
- if Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(pExpr + 8)), __ccgo_ts+17447) != 0 {
+ if Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(pExpr + 8)), __ccgo_ts+17476) != 0 {
return 0
} /* Is count() */
if *(*uintptr)(unsafe.Pointer(pExpr + 32)) != uintptr(0) {
@@ -201069,7 +201094,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
} else {
v1 = (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(p0)).FpSTab)).FzName
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21802, libc.VaList(bp+176, v1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21831, libc.VaList(bp+176, v1))
goto select_end
}
/* Clear the SF_UFSrcCheck flag. The check has already been performed,
@@ -201177,7 +201202,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
/* Catch mismatch in the declared columns of a view and the number of
** columns in the SELECT on the RHS */
if int32((*TTable)(unsafe.Pointer(pTab)).FnCol) != (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pSub)).FpEList)).FnExpr {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21856, libc.VaList(bp+176, int32((*TTable)(unsafe.Pointer(pTab)).FnCol), (*TTable)(unsafe.Pointer(pTab)).FzName, (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pSub)).FpEList)).FnExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21885, libc.VaList(bp+176, int32((*TTable)(unsafe.Pointer(pTab)).FnCol), (*TTable)(unsafe.Pointer(pTab)).FzName, (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pSub)).FpEList)).FnExpr))
goto select_end
}
/* Do not attempt the usual optimizations (flattening and ORDER BY
@@ -201385,7 +201410,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
_sqlite3VdbeAddOp3(tls, v, int32(OP_InitCoroutine), (*TSubquery)(unsafe.Pointer(pSubq)).FregReturn, 0, addrTop)
(*TSubquery)(unsafe.Pointer(pSubq)).FaddrFillSub = addrTop
_sqlite3SelectDestInit(tls, bp+72, int32(SRT_Coroutine), (*TSubquery)(unsafe.Pointer(pSubq)).FregReturn)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21896, libc.VaList(bp+176, pItem1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21925, libc.VaList(bp+176, pItem1))
_sqlite3Select(tls, pParse, pSub1, bp+72)
(*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pItem1)).FpSTab)).FnRowLogEst = (*TSelect)(unsafe.Pointer(pSub1)).FnSelectRow
libc.SetBitFieldPtr32Uint32(pItem1+24+4, libc.Uint32FromInt32(1), 6, 0x40)
@@ -201432,7 +201457,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
} else {
}
_sqlite3SelectDestInit(tls, bp+72, int32(SRT_EphemTab), (*TSrcItem)(unsafe.Pointer(pItem1)).FiCursor)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21911, libc.VaList(bp+176, pItem1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+21940, libc.VaList(bp+176, pItem1))
_sqlite3Select(tls, pParse, pSub1, bp+72)
(*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pItem1)).FpSTab)).FnRowLogEst = (*TSelect)(unsafe.Pointer(pSub1)).FnSelectRow
if onceAddr != 0 {
@@ -201737,7 +201762,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
** sAggInfo for all TK_AGG_FUNCTION nodes in expressions of the
** SELECT statement.
*/
- pAggInfo = _sqlite3DbMallocZero(tls, db, uint64(56))
+ pAggInfo = _sqlite3DbMallocZero(tls, db, uint64(64))
if pAggInfo != 0 {
_sqlite3ParserAddCleanup(tls, pParse, __ccgo_fp(_agginfoFree), pAggInfo)
}
@@ -201754,7 +201779,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
} else {
v33 = 0
}
- (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn = uint16(v33)
+ (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn = uint32(v33)
(*TAggInfo)(unsafe.Pointer(pAggInfo)).FpGroupBy = pGroupBy
_sqlite3ExprAnalyzeAggList(tls, bp+112, pEList)
_sqlite3ExprAnalyzeAggList(tls, bp+112, (*(*TSortCtx)(unsafe.Pointer(bp + 16))).FpOrderBy)
@@ -201865,11 +201890,11 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
groupBySort = 0
} else {
if (*(*TDistinctCtx)(unsafe.Pointer(bp))).FisTnct != 0 && (*TSelect)(unsafe.Pointer(p)).FselFlags&uint32(SF_Distinct) == uint32(0) {
- v47 = __ccgo_ts + 21927
+ v47 = __ccgo_ts + 21956
} else {
- v47 = __ccgo_ts + 21936
+ v47 = __ccgo_ts + 21965
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20779, libc.VaList(bp+176, v47))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20808, libc.VaList(bp+176, v47))
groupBySort = int32(1)
nGroupBy = (*TExprList)(unsafe.Pointer(pGroupBy)).FnExpr
nCol = nGroupBy
@@ -201879,7 +201904,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
if !(i < (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn) {
break
}
- if int32((*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(i)*24))).FiSorterColumn) >= j {
+ if (*(*TAggInfo_col)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(i)*32))).FiSorterColumn >= j {
nCol++
j++
}
@@ -201897,8 +201922,8 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
if !(i < (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnColumn) {
break
}
- pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(i)*24
- if int32((*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn) >= j {
+ pCol = (*TAggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(i)*32
+ if (*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn >= j {
_sqlite3ExprCode(tls, pParse, (*TAggInfo_col)(unsafe.Pointer(pCol)).FpCExpr, j+regBase)
j++
}
@@ -202204,7 +202229,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
_sqlite3VdbeResolveLabel(tls, v, addrEnd)
} /* endif aggregate query */
if int32((*(*TDistinctCtx)(unsafe.Pointer(bp))).FeTnctType) == int32(WHERE_DISTINCT_UNORDERED) {
- _explainTempTable(tls, pParse, __ccgo_ts+21927)
+ _explainTempTable(tls, pParse, __ccgo_ts+21956)
}
/* If there is an ORDER BY clause, then we need to sort the results
** and send them to the callback one by one. tag-select-0900
@@ -202326,7 +202351,7 @@ func _sqlite3_get_table_cb(tls *libc.TLS, pArg uintptr, nCol int32, argv uintptr
} else {
if int32((*TTabResult)(unsafe.Pointer(p)).FnColumn) != nCol {
Xsqlite3_free(tls, (*TTabResult)(unsafe.Pointer(p)).FzErrMsg)
- (*TTabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+21945, 0)
+ (*TTabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+21974, 0)
(*TTabResult)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
return int32(1)
}
@@ -202578,7 +202603,7 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
if isTemp != 0 {
/* If TEMP was specified, then the trigger name may not be qualified. */
if (*TToken)(unsafe.Pointer(pName2)).Fn > uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22010, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22039, 0)
goto trigger_cleanup
}
iDb = int32(1)
@@ -202618,7 +202643,7 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
goto trigger_cleanup
}
- _sqlite3FixInit(tls, bp+8, pParse, iDb, __ccgo_ts+22056, *(*uintptr)(unsafe.Pointer(bp)))
+ _sqlite3FixInit(tls, bp+8, pParse, iDb, __ccgo_ts+22085, *(*uintptr)(unsafe.Pointer(bp)))
if _sqlite3FixSrcList(tls, bp+8, pTableName) != 0 {
goto trigger_cleanup
}
@@ -202628,11 +202653,11 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
goto trigger_orphan_error
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22064, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22093, 0)
goto trigger_orphan_error
}
if (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_Shadow) != uint32(0) && _sqlite3ReadOnlyShadowTables(tls, db) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22105, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22134, 0)
goto trigger_orphan_error
}
/* Check that the trigger name is not reserved and that no trigger of the
@@ -202641,13 +202666,13 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
if zName == uintptr(0) {
goto trigger_cleanup
}
- if _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+22056, (*TTable)(unsafe.Pointer(pTab)).FzName) != 0 {
+ if _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+22085, (*TTable)(unsafe.Pointer(pTab)).FzName) != 0 {
goto trigger_cleanup
}
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
if _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FpSchema+56, zName) != 0 {
if !(noErr != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22145, libc.VaList(bp+112, *(*uintptr)(unsafe.Pointer(bp))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22174, libc.VaList(bp+112, *(*uintptr)(unsafe.Pointer(bp))))
} else {
_sqlite3CodeVerifySchema(tls, pParse, iDb)
}
@@ -202656,7 +202681,7 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
}
/* Do not create a trigger on a system table */
if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+8047, int32(7)) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22171, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22200, 0)
goto trigger_cleanup
}
/* INSTEAD of triggers are only for views and views only support INSTEAD
@@ -202664,15 +202689,15 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
*/
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) && tr_tm != int32(TK_INSTEAD) {
if tr_tm == int32(TK_BEFORE) {
- v1 = __ccgo_ts + 22209
+ v1 = __ccgo_ts + 22238
} else {
- v1 = __ccgo_ts + 22216
+ v1 = __ccgo_ts + 22245
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22222, libc.VaList(bp+112, v1, pTableName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22251, libc.VaList(bp+112, v1, pTableName+8))
goto trigger_orphan_error
}
if !(int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == libc.Int32FromInt32(TABTYP_VIEW)) && tr_tm == int32(TK_INSTEAD) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22259, libc.VaList(bp+112, pTableName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22288, libc.VaList(bp+112, pTableName+8))
goto trigger_orphan_error
}
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
@@ -202794,7 +202819,7 @@ func _sqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAl
pStepList = (*TTriggerStep)(unsafe.Pointer(pStepList)).FpNext
}
_sqlite3TokenInit(tls, bp+96, (*TTrigger)(unsafe.Pointer(pTrig)).FzName)
- _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+22056, bp+96)
+ _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+22085, bp+96)
if _sqlite3FixTriggerStep(tls, bp, (*TTrigger)(unsafe.Pointer(pTrig)).Fstep_list) != 0 || _sqlite3FixExpr(tls, bp, (*TTrigger)(unsafe.Pointer(pTrig)).FpWhen) != 0 {
goto triggerfinish_cleanup
}
@@ -202816,7 +202841,7 @@ func _sqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAl
break
}
if (*TTriggerStep)(unsafe.Pointer(pStep)).FzTarget != uintptr(0) && _sqlite3ShadowTableName(tls, db, (*TTriggerStep)(unsafe.Pointer(pStep)).FzTarget) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22305, libc.VaList(bp+120, (*TTrigger)(unsafe.Pointer(pTrig)).FzName, (*TTriggerStep)(unsafe.Pointer(pStep)).FzTarget))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22334, libc.VaList(bp+120, (*TTrigger)(unsafe.Pointer(pTrig)).FzName, (*TTriggerStep)(unsafe.Pointer(pStep)).FzTarget))
goto triggerfinish_cleanup
}
goto _1
@@ -202832,10 +202857,10 @@ func _sqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAl
}
_sqlite3BeginWriteOperation(tls, pParse, 0, iDb)
z = _sqlite3DbStrNDup(tls, db, (*TToken)(unsafe.Pointer(pAll)).Fz, uint64((*TToken)(unsafe.Pointer(pAll)).Fn))
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+22353, libc.VaList(bp+120, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zName, (*TTrigger)(unsafe.Pointer(pTrig)).Ftable, z))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+22382, libc.VaList(bp+120, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zName, (*TTrigger)(unsafe.Pointer(pTrig)).Ftable, z))
_sqlite3DbFree(tls, db, z)
_sqlite3ChangeCookie(tls, pParse, iDb)
- _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+22428, libc.VaList(bp+120, zName)), uint16(0))
+ _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+22457, libc.VaList(bp+120, zName)), uint16(0))
}
}
if (*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy != 0 {
@@ -203103,7 +203128,7 @@ func _sqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int
}
if !(pTrigger != 0) {
if !(noErr != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22457, libc.VaList(bp+8, pName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22486, libc.VaList(bp+8, pName+8))
} else {
_sqlite3CodeVerifyNamedSchema(tls, pParse, zDb)
}
@@ -203162,7 +203187,7 @@ func _sqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) {
v2 = _sqlite3GetVdbe(tls, pParse)
v = v2
if v2 != uintptr(0) {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+22477, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTrigger)(unsafe.Pointer(pTrigger)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+22506, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTrigger)(unsafe.Pointer(pTrigger)).FzName))
_sqlite3ChangeCookie(tls, pParse, iDb)
_sqlite3VdbeAddOp4(tls, v, int32(OP_DropTrigger), iDb, 0, 0, (*TTrigger)(unsafe.Pointer(pTrigger)).FzName, 0)
}
@@ -203295,11 +203320,11 @@ func _triggersReallyExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32,
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
if op != int32(TK_INSERT) {
if op == int32(TK_DELETE) {
- v1 = __ccgo_ts + 22539
+ v1 = __ccgo_ts + 22568
} else {
- v1 = __ccgo_ts + 22546
+ v1 = __ccgo_ts + 22575
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22553, libc.VaList(bp+8, v1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22582, libc.VaList(bp+8, v1))
}
(*TTrigger)(unsafe.Pointer(p)).Ftr_tm = uint8(TRIGGER_BEFORE)
} else {
@@ -203401,7 +203426,7 @@ func _isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) (r int32) {
if int32((*TExpr)(unsafe.Pointer((*TExpr)(unsafe.Pointer(pTerm)).FpRight)).Fop) != int32(TK_ASTERISK) {
return 0
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22601, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22630, 0)
return int32(1)
}
@@ -203774,7 +203799,7 @@ func _codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintp
v = _sqlite3GetVdbe(tls, bp+56)
if v != 0 {
if (*TTrigger)(unsafe.Pointer(pTrigger)).FzName != 0 {
- _sqlite3VdbeChangeP4(tls, v, -int32(1), _sqlite3MPrintf(tls, db, __ccgo_ts+22643, libc.VaList(bp+488, (*TTrigger)(unsafe.Pointer(pTrigger)).FzName)), -int32(6))
+ _sqlite3VdbeChangeP4(tls, v, -int32(1), _sqlite3MPrintf(tls, db, __ccgo_ts+22672, libc.VaList(bp+488, (*TTrigger)(unsafe.Pointer(pTrigger)).FzName)), -int32(6))
}
/* If one was specified, code the WHEN clause. If it evaluates to false
** (or NULL) the sub-vdbe is immediately halted by jumping to the
@@ -204458,7 +204483,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
chngPk = uint8(1)
} else {
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FcolFlags)&int32(COLFLAG_GENERATED) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22657, libc.VaList(bp+112, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22686, libc.VaList(bp+112, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
goto update_cleanup
}
}
@@ -204471,7 +204496,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
pRowidExpr = (*(*TExprList_item)(unsafe.Pointer(pChanges + 8 + uintptr(i)*32))).FpExpr
iRowidExpr = i
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22693, libc.VaList(bp+112, (*(*TExprList_item)(unsafe.Pointer(pChanges + 8 + uintptr(i)*32))).FzEName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22722, libc.VaList(bp+112, (*(*TExprList_item)(unsafe.Pointer(pChanges + 8 + uintptr(i)*32))).FzEName))
libc.SetBitFieldPtr8Uint32(pParse+44, libc.Uint32FromInt32(1), 3, 0x8)
goto update_cleanup
}
@@ -205159,7 +205184,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
** that information.
*/
if regRowCount != 0 {
- _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+22712)
+ _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+22741)
}
goto update_cleanup
update_cleanup:
@@ -205593,9 +205618,9 @@ func _sqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr
if nClause == 0 && (*TUpsert)(unsafe.Pointer(pUpsert)).FpNextUpsert == uintptr(0) {
(*(*[16]int8)(unsafe.Pointer(bp + 200)))[0] = 0
} else {
- Xsqlite3_snprintf(tls, int32(16), bp+200, __ccgo_ts+22725, libc.VaList(bp+224, nClause+int32(1)))
+ Xsqlite3_snprintf(tls, int32(16), bp+200, __ccgo_ts+22754, libc.VaList(bp+224, nClause+int32(1)))
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22729, libc.VaList(bp+224, bp+200))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22758, libc.VaList(bp+224, bp+200))
return int32(SQLITE_ERROR)
}
goto _1
@@ -205698,7 +205723,7 @@ func _sqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab
i++
}
i = _sqlite3VdbeAddOp4Int(tls, v, int32(OP_Found), iDataCur, 0, iPk, nPk)
- _sqlite3VdbeAddOp4(tls, v, int32(OP_Halt), int32(SQLITE_CORRUPT), int32(OE_Abort), 0, __ccgo_ts+14053, -int32(1))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_Halt), int32(SQLITE_CORRUPT), int32(OE_Abort), 0, __ccgo_ts+14082, -int32(1))
_sqlite3MayAbort(tls, pParse)
_sqlite3VdbeJumpHere(tls, v, i)
}
@@ -205780,7 +205805,7 @@ func _execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) (r int3
** corrupt the sqlite_schema.sql field with other kinds of statements
** then run VACUUM to get those statements to execute at inappropriate
** times. */
- if zSubSql != 0 && (libc.Xstrncmp(tls, zSubSql, __ccgo_ts+22802, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, __ccgo_ts+22806, uint64(3)) == 0) {
+ if zSubSql != 0 && (libc.Xstrncmp(tls, zSubSql, __ccgo_ts+22831, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, __ccgo_ts+22835, uint64(3)) == 0) {
rc = _execSql(tls, db, pzErrMsg, zSubSql)
if rc != SQLITE_OK {
break
@@ -205910,17 +205935,17 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
pDb = uintptr(0) /* Name of output file */
pgflags = uint32(PAGER_SYNCHRONOUS_OFF) /* Name of the ATTACH-ed database used for vacuum */
if !((*Tsqlite3)(unsafe.Pointer(db)).FautoCommit != 0) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22810)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22839)
return int32(SQLITE_ERROR) /* IMP: R-12218-18073 */
}
if (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeActive > int32(1) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22850)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22879)
return int32(SQLITE_ERROR) /* IMP: R-15610-35227 */
}
saved_openFlags = (*Tsqlite3)(unsafe.Pointer(db)).FopenFlags
if pOut != 0 {
if Xsqlite3_value_type(tls, pOut) != int32(SQLITE_TEXT) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22893)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22922)
return int32(SQLITE_ERROR)
}
zOut = Xsqlite3_value_text(tls, pOut)
@@ -205959,9 +205984,9 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
** to write the journal header file.
*/
Xsqlite3_randomness(tls, int32(8), bp)
- Xsqlite3_snprintf(tls, int32(42), bp+8, __ccgo_ts+22911, libc.VaList(bp+80, *(*Tu64)(unsafe.Pointer(bp))))
+ Xsqlite3_snprintf(tls, int32(42), bp+8, __ccgo_ts+22940, libc.VaList(bp+80, *(*Tu64)(unsafe.Pointer(bp))))
nDb = (*Tsqlite3)(unsafe.Pointer(db)).FnDb
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+22926, libc.VaList(bp+80, zOut, bp+8))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+22955, libc.VaList(bp+80, zOut, bp+8))
(*Tsqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags
if rc != SQLITE_OK {
goto end_of_vacuum
@@ -205973,7 +205998,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
*(*Ti64)(unsafe.Pointer(bp + 56)) = 0
if (*Tsqlite3_file)(unsafe.Pointer(id)).FpMethods != uintptr(0) && (_sqlite3OsFileSize(tls, id, bp+56) != SQLITE_OK || *(*Ti64)(unsafe.Pointer(bp + 56)) > 0) {
rc = int32(SQLITE_ERROR)
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22942)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+22971)
goto end_of_vacuum
}
*(*Tu32)(unsafe.Pointer(db + 44)) |= uint32(DBFLAG_VacuumInto)
@@ -205990,7 +206015,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
** 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, __ccgo_ts+16435)
+ rc = _execSql(tls, db, pzErrMsg, __ccgo_ts+16464)
if rc != SQLITE_OK {
goto end_of_vacuum
}
@@ -206021,11 +206046,11 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
** in the temporary database.
*/
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb = uint8(nDb) /* force new CREATE statements into vacuum_db */
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+22969, libc.VaList(bp+80, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+22998, libc.VaList(bp+80, zDbMain))
if rc != SQLITE_OK {
goto end_of_vacuum
}
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+23077, libc.VaList(bp+80, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+23106, libc.VaList(bp+80, zDbMain))
if rc != SQLITE_OK {
goto end_of_vacuum
}
@@ -206034,7 +206059,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
** an "INSERT INTO vacuum_db.xxx SELECT * FROM main.xxx;" to copy
** the contents to the temporary database.
*/
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+23131, libc.VaList(bp+80, bp+8, zDbMain, bp+8))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+23160, libc.VaList(bp+80, bp+8, zDbMain, bp+8))
*(*Tu32)(unsafe.Pointer(db + 44)) &= uint32(^libc.Int32FromInt32(DBFLAG_Vacuum))
if rc != SQLITE_OK {
goto end_of_vacuum
@@ -206044,7 +206069,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
** associated storage, so all we have to do is copy their entries
** from the schema table.
*/
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+23268, libc.VaList(bp+80, bp+8, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+23297, libc.VaList(bp+80, bp+8, zDbMain))
if rc != 0 {
goto end_of_vacuum
}
@@ -206571,7 +206596,7 @@ func _addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uint
FazArg uintptr
Fp uintptr
})(unsafe.Pointer(pTable + 64))).FnArg+int32(3) >= *(*int32)(unsafe.Pointer(db + 136 + 2*4)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14283, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14312, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
}
azModuleArg = _sqlite3DbRealloc(tls, db, (*(*struct {
FnArg int32
@@ -206694,7 +206719,7 @@ func _sqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) {
if pEnd != 0 {
(*TParse)(unsafe.Pointer(pParse)).FsNameToken.Fn = uint32(int32(int64((*TToken)(unsafe.Pointer(pEnd)).Fz)-int64((*TParse)(unsafe.Pointer(pParse)).FsNameToken.Fz))) + (*TToken)(unsafe.Pointer(pEnd)).Fn
}
- zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+23391, libc.VaList(bp+8, pParse+232))
+ zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+23420, libc.VaList(bp+8, pParse+232))
/* A slot for the record has already been allocated in the
** schema table. We just need to update that slot with all
** the information we've collected.
@@ -206704,7 +206729,7 @@ func _sqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) {
** by sqlite3StartTable().
*/
iDb = _sqlite3SchemaToIndex(tls, db, (*TTable)(unsafe.Pointer(pTab)).FpSchema)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+23415, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName, (*TTable)(unsafe.Pointer(pTab)).FzName, zStmt, (*(*struct {
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+23444, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName, (*TTable)(unsafe.Pointer(pTab)).FzName, zStmt, (*(*struct {
FaddrCrTab int32
FregRowid int32
FregRoot int32
@@ -206713,7 +206738,7 @@ func _sqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) {
v = _sqlite3GetVdbe(tls, pParse)
_sqlite3ChangeCookie(tls, pParse, iDb)
_sqlite3VdbeAddOp0(tls, v, int32(OP_Expire))
- zWhere = _sqlite3MPrintf(tls, db, __ccgo_ts+23514, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zStmt))
+ zWhere = _sqlite3MPrintf(tls, db, __ccgo_ts+23543, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zStmt))
_sqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0))
_sqlite3DbFree(tls, db, zStmt)
v2 = pParse + 64
@@ -206800,7 +206825,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
break
}
if (*TVtabCtx)(unsafe.Pointer(pCtx)).FpTab == pTab {
- *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+23533, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+23562, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(SQLITE_LOCKED)
}
goto _1
@@ -206842,7 +206867,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
}
if SQLITE_OK != rc {
if *(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+23575, libc.VaList(bp+48, zModuleName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+23604, libc.VaList(bp+48, zModuleName))
} else {
*(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+4829, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 32))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 32)))
@@ -206857,7 +206882,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
(*TModule)(unsafe.Pointer(pMod)).FnRefModule++
(*TVTable)(unsafe.Pointer(pVTable)).FnRef = int32(1)
if (*(*TVtabCtx)(unsafe.Pointer(bp))).FbDeclared == 0 {
- zFormat = __ccgo_ts + 23605
+ zFormat = __ccgo_ts + 23634
*(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, zFormat, libc.VaList(bp+48, zModuleName))
_sqlite3VtabUnlock(tls, pVTable)
rc = int32(SQLITE_ERROR)
@@ -206891,7 +206916,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
if !(i < nType) {
break
}
- if 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+18186, zType+uintptr(i), int32(6)) && (i == 0 || int32(*(*int8)(unsafe.Pointer(zType + uintptr(i-int32(1))))) == int32(' ')) && (int32(*(*int8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32('\000') || int32(*(*int8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32(' ')) {
+ if 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+18215, zType+uintptr(i), int32(6)) && (i == 0 || int32(*(*int8)(unsafe.Pointer(zType + uintptr(i-int32(1))))) == int32(' ')) && (int32(*(*int8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32('\000') || int32(*(*int8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32(' ')) {
break
}
goto _3
@@ -206972,7 +206997,7 @@ func _sqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) (r int
FazArg uintptr
Fp uintptr
})(unsafe.Pointer(pTab + 64))).FazArg))
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23651, libc.VaList(bp+16, zModule))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23680, libc.VaList(bp+16, zModule))
rc = int32(SQLITE_ERROR)
} else {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
@@ -207059,7 +207084,7 @@ func _sqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr,
** error. Otherwise, do nothing.
*/
if pMod == uintptr(0) || (*Tsqlite3_module)(unsafe.Pointer((*TModule)(unsafe.Pointer(pMod)).FpModule)).FxCreate == uintptr(0) || (*Tsqlite3_module)(unsafe.Pointer((*TModule)(unsafe.Pointer(pMod)).FpModule)).FxDestroy == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+23651, libc.VaList(bp+8, zMod))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+23680, libc.VaList(bp+8, zMod))
rc = int32(SQLITE_ERROR)
} else {
rc = _vtabCallConstructor(tls, db, pTab, pMod, (*Tsqlite3_module)(unsafe.Pointer((*TModule)(unsafe.Pointer(pMod)).FpModule)).FxCreate, pzErr)
@@ -207107,7 +207132,7 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) (r i
z += uintptr(_sqlite3GetToken(tls, z, bp+424))
}
if *(*int32)(unsafe.Pointer(bp + 424)) != int32(_aKeyword1[i]) {
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+23670, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+23699, 0)
return int32(SQLITE_ERROR)
}
goto _1
@@ -207118,9 +207143,9 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) (r i
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
pCtx = (*Tsqlite3)(unsafe.Pointer(db)).FpVtabCtx
if !(pCtx != 0) || (*TVtabCtx)(unsafe.Pointer(pCtx)).FbDeclared != 0 {
- _sqlite3Error(tls, db, _sqlite3MisuseError(tls, int32(158352)))
+ _sqlite3Error(tls, db, _sqlite3MisuseError(tls, int32(158372)))
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
- return _sqlite3MisuseError(tls, int32(158354))
+ return _sqlite3MisuseError(tls, int32(158374))
}
pTab = (*TVtabCtx)(unsafe.Pointer(pCtx)).FpTab
_sqlite3ParseObjectInit(tls, bp, db)
@@ -207702,7 +207727,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) (r in
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
p = (*Tsqlite3)(unsafe.Pointer(db)).FpVtabCtx
if !(p != 0) {
- rc = _sqlite3MisuseError(tls, int32(158849))
+ rc = _sqlite3MisuseError(tls, int32(158869))
} else {
ap = va
switch op {
@@ -207715,7 +207740,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) (r in
case int32(SQLITE_VTAB_USES_ALL_SCHEMAS):
(*TVTable)(unsafe.Pointer((*TVtabCtx)(unsafe.Pointer(p)).FpVTable)).FbAllSchemas = uint8(1)
default:
- rc = _sqlite3MisuseError(tls, int32(158871))
+ rc = _sqlite3MisuseError(tls, int32(158891))
break
}
_ = ap
@@ -208435,10 +208460,10 @@ type WhereInfo1 = TWhereInfo1
func _explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) (r uintptr) {
i = int32(*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i)*2)))
if i == -int32(2) {
- return __ccgo_ts + 23683
+ return __ccgo_ts + 23712
}
if i == -int32(1) {
- return __ccgo_ts + 18295
+ return __ccgo_ts + 18324
}
return (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*16))).FzCnName
}
@@ -208457,10 +208482,10 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
var i int32
_ = i
if bAnd != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+23690, int32(5))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+23719, int32(5))
}
if nTerm > int32(1) {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+23696, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+23725, int32(1))
}
i = 0
for {
@@ -208468,7 +208493,7 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
break
}
if i != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+14673, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+14702, int32(1))
}
Xsqlite3_str_appendall(tls, pStr, _explainIndexColumnName(tls, pIdx, iTerm+i))
goto _1
@@ -208481,7 +208506,7 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
}
Xsqlite3_str_append(tls, pStr, zOp, int32(1))
if nTerm > int32(1) {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+23696, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+23725, int32(1))
}
i = 0
for {
@@ -208489,7 +208514,7 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
break
}
if i != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+14673, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+14702, int32(1))
}
Xsqlite3_str_append(tls, pStr, __ccgo_ts+6570, int32(1))
goto _2
@@ -208545,7 +208570,7 @@ func _explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) {
if int32(nEq) == 0 && (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(libc.Int32FromInt32(WHERE_BTM_LIMIT)|libc.Int32FromInt32(WHERE_TOP_LIMIT)) == uint32(0) {
return
}
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+23698, int32(2))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+23727, int32(2))
i = 0
for {
if !(i < int32(nEq)) {
@@ -208553,12 +208578,12 @@ func _explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) {
}
z = _explainIndexColumnName(tls, pIndex, i)
if i != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+23690, int32(5))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+23719, int32(5))
}
if i >= int32(nSkip) {
- v2 = __ccgo_ts + 23701
+ v2 = __ccgo_ts + 23730
} else {
- v2 = __ccgo_ts + 23706
+ v2 = __ccgo_ts + 23735
}
Xsqlite3_str_appendf(tls, pStr, v2, libc.VaList(bp+8, z))
goto _1
@@ -208575,7 +208600,7 @@ func _explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) {
FnDistinctCol Tu16
FpIndex uintptr
FpOrderBy uintptr
- })(unsafe.Pointer(pLoop + 24))).FnBtm), j, i, __ccgo_ts+23714)
+ })(unsafe.Pointer(pLoop + 24))).FnBtm), j, i, __ccgo_ts+23743)
i = int32(1)
}
if (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(WHERE_TOP_LIMIT) != 0 {
@@ -208586,7 +208611,7 @@ func _explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) {
FnDistinctCol Tu16
FpIndex uintptr
FpOrderBy uintptr
- })(unsafe.Pointer(pLoop + 24))).FnTop), j, i, __ccgo_ts+23716)
+ })(unsafe.Pointer(pLoop + 24))).FnTop), j, i, __ccgo_ts+23745)
}
Xsqlite3_str_append(tls, pStr, __ccgo_ts+6568, int32(1))
}
@@ -208633,11 +208658,11 @@ func _sqlite3WhereAddExplainText(tls *libc.TLS, pParse uintptr, addr int32, pTab
_sqlite3StrAccumInit(tls, bp, db, bp+32, int32(100), int32(SQLITE_MAX_LENGTH))
(*(*TStrAccum)(unsafe.Pointer(bp))).FprintfFlags = uint8(SQLITE_PRINTF_INTERNAL)
if isSearch != 0 {
- v2 = __ccgo_ts + 23718
+ v2 = __ccgo_ts + 23747
} else {
- v2 = __ccgo_ts + 23725
+ v2 = __ccgo_ts + 23754
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23730, libc.VaList(bp+144, v2, pItem))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23759, libc.VaList(bp+144, v2, pItem))
if flags&uint32(libc.Int32FromInt32(WHERE_IPK)|libc.Int32FromInt32(WHERE_VIRTUALTABLE)) == uint32(0) {
zFmt = uintptr(0)
pIdx = (*(*struct {
@@ -208650,37 +208675,37 @@ func _sqlite3WhereAddExplainText(tls *libc.TLS, pParse uintptr, addr int32, pTab
})(unsafe.Pointer(pLoop + 24))).FpIndex
if !((*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pItem)).FpSTab)).FtabFlags&libc.Uint32FromInt32(TF_WithoutRowid) == libc.Uint32FromInt32(0)) && int32(uint32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x3>>0)) == int32(SQLITE_IDXTYPE_PRIMARYKEY) {
if isSearch != 0 {
- zFmt = __ccgo_ts + 12836
+ zFmt = __ccgo_ts + 12865
}
} else {
if flags&uint32(WHERE_PARTIALIDX) != 0 {
- zFmt = __ccgo_ts + 23736
+ zFmt = __ccgo_ts + 23765
} else {
if flags&uint32(WHERE_AUTO_INDEX) != 0 {
- zFmt = __ccgo_ts + 23769
+ zFmt = __ccgo_ts + 23798
} else {
if flags&uint32(libc.Int32FromInt32(WHERE_IDX_ONLY)|libc.Int32FromInt32(WHERE_EXPRIDX)) != 0 {
- zFmt = __ccgo_ts + 23794
+ zFmt = __ccgo_ts + 23823
} else {
- zFmt = __ccgo_ts + 23812
+ zFmt = __ccgo_ts + 23841
}
}
}
}
if zFmt != 0 {
- Xsqlite3_str_append(tls, bp, __ccgo_ts+23821, int32(7))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+23850, int32(7))
Xsqlite3_str_appendf(tls, bp, zFmt, libc.VaList(bp+144, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
_explainIndexRange(tls, bp, pLoop)
}
} else {
if flags&uint32(WHERE_IPK) != uint32(0) && flags&uint32(WHERE_CONSTRAINT) != uint32(0) {
- zRowid = __ccgo_ts + 18295
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23829, libc.VaList(bp+144, zRowid))
+ zRowid = __ccgo_ts + 18324
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23858, libc.VaList(bp+144, zRowid))
if flags&uint32(libc.Int32FromInt32(WHERE_COLUMN_EQ)|libc.Int32FromInt32(WHERE_COLUMN_IN)) != 0 {
cRangeOp = int8('=')
} else {
if flags&uint32(WHERE_BOTH_LIMIT) == uint32(WHERE_BOTH_LIMIT) {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23860, libc.VaList(bp+144, zRowid))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23889, libc.VaList(bp+144, zRowid))
cRangeOp = int8('<')
} else {
if flags&uint32(WHERE_BTM_LIMIT) != 0 {
@@ -208690,14 +208715,14 @@ func _sqlite3WhereAddExplainText(tls *libc.TLS, pParse uintptr, addr int32, pTab
}
}
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23870, libc.VaList(bp+144, int32(cRangeOp)))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23899, libc.VaList(bp+144, int32(cRangeOp)))
} else {
if flags&uint32(WHERE_VIRTUALTABLE) != uint32(0) {
- Xsqlite3_str_appendall(tls, bp, __ccgo_ts+23875)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+23904)
if int32(Tu32(*(*uint8)(unsafe.Pointer(pLoop + 24 + 4))&0x4>>2)) != 0 {
- v3 = __ccgo_ts + 23897
+ v3 = __ccgo_ts + 23926
} else {
- v3 = __ccgo_ts + 23905
+ v3 = __ccgo_ts + 23934
}
Xsqlite3_str_appendf(tls, bp, v3, libc.VaList(bp+144, (*(*struct {
FidxNum int32
@@ -208718,7 +208743,7 @@ func _sqlite3WhereAddExplainText(tls *libc.TLS, pParse uintptr, addr int32, pTab
}
}
if int32((*TSrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&int32(JT_LEFT) != 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23911, 0)
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23940, 0)
}
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pOp + 16)))
(*TVdbeOp)(unsafe.Pointer(pOp)).Fp4type = int8(-libc.Int32FromInt32(6))
@@ -208784,14 +208809,14 @@ func _sqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp
db = (*TParse)(unsafe.Pointer(pParse)).Fdb /* Initial space for EQP output string */
_sqlite3StrAccumInit(tls, bp, db, bp+32, int32(100), int32(SQLITE_MAX_LENGTH))
(*(*TStrAccum)(unsafe.Pointer(bp))).FprintfFlags = uint8(SQLITE_PRINTF_INTERNAL)
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23922, libc.VaList(bp+144, pItem))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23951, libc.VaList(bp+144, pItem))
pLoop = (*TWhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
if (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(WHERE_IPK) != 0 {
pTab = (*TSrcItem)(unsafe.Pointer(pItem)).FpSTab
if int32((*TTable)(unsafe.Pointer(pTab)).FiPKey) >= 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23701, libc.VaList(bp+144, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr((*TTable)(unsafe.Pointer(pTab)).FiPKey)*16))).FzCnName))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23730, libc.VaList(bp+144, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr((*TTable)(unsafe.Pointer(pTab)).FiPKey)*16))).FzCnName))
} else {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23943, 0)
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23972, 0)
}
} else {
i = int32((*TWhereLoop)(unsafe.Pointer(pLoop)).FnSkip)
@@ -208815,9 +208840,9 @@ func _sqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp
FpOrderBy uintptr
})(unsafe.Pointer(pLoop + 24))).FpIndex, i)
if i > int32((*TWhereLoop)(unsafe.Pointer(pLoop)).FnSkip) {
- Xsqlite3_str_append(tls, bp, __ccgo_ts+23690, int32(5))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+23719, int32(5))
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23701, libc.VaList(bp+144, z))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+23730, libc.VaList(bp+144, z))
goto _1
_1:
;
@@ -209085,8 +209110,8 @@ func _removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, p
FiField int32
})(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(i)*8)) + 32))).FiField - int32(1)
if (*(*TExprList_item)(unsafe.Pointer(pOrigRhs + 8 + uintptr(iField)*32))).FpExpr == uintptr(0) {
- goto _2
- } /* Duplicate PK column */
+ goto _2 /* Duplicate PK column */
+ }
pRhs = _sqlite3ExprListAppend(tls, pParse, pRhs, (*(*TExprList_item)(unsafe.Pointer(pOrigRhs + 8 + uintptr(iField)*32))).FpExpr)
(*(*TExprList_item)(unsafe.Pointer(pOrigRhs + 8 + uintptr(iField)*32))).FpExpr = uintptr(0)
if pRhs != 0 {
@@ -209165,10 +209190,10 @@ func _removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, p
func _codeINTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, iEq int32, bRev int32, iTarget int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
- var aiMap, db, pExpr, pIn, pLoop, pX, v uintptr
- var eType, i, iCol, iMap, iOut, n, nEq, v3, v4, v6, v7, v8 int32
+ var aiMap, db, pIn, pLoop, pX, pXMod, v uintptr
+ var eType, i, iCol, iMap, iOut, nEq, v3, v5, v6, v7 int32
var _ /* iTab at bp+0 */ int32
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = aiMap, db, eType, i, iCol, iMap, iOut, n, nEq, pExpr, pIn, pLoop, pX, v, v3, v4, v6, v7, v8
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = aiMap, db, eType, i, iCol, iMap, iOut, nEq, pIn, pLoop, pX, pXMod, v, v3, v5, v6, v7
pX = (*TWhereTerm)(unsafe.Pointer(pTerm)).FpExpr
eType = int32(IN_INDEX_NOOP)
pLoop = (*TWhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
@@ -209223,37 +209248,23 @@ func _codeINTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, i
if !((*TExpr)(unsafe.Pointer(pX)).Fflags&libc.Uint32FromInt32(EP_xIsSelect) != libc.Uint32FromInt32(0)) || (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pX + 32)))).FpEList)).FnExpr == int32(1) {
eType = _sqlite3FindInIndex(tls, pParse, pX, uint32(IN_INDEX_LOOP), uintptr(0), uintptr(0), bp)
} else {
- pExpr = (*TWhereTerm)(unsafe.Pointer(pTerm)).FpExpr
- if (*TExpr)(unsafe.Pointer(pExpr)).FiTable == 0 || !((*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Subrtn)) != libc.Uint32FromInt32(0)) {
- db = (*TParse)(unsafe.Pointer(pParse)).Fdb
- pX = _removeUnindexableInClauseTerms(tls, pParse, iEq, pLoop, pX)
- if !((*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
- aiMap = _sqlite3DbMallocZero(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uint64(4)*uint64(nEq))
- eType = _sqlite3FindInIndex(tls, pParse, pX, uint32(IN_INDEX_LOOP), uintptr(0), aiMap, bp)
- (*TExpr)(unsafe.Pointer(pExpr)).FiTable = *(*int32)(unsafe.Pointer(bp))
- }
- _sqlite3ExprDelete(tls, db, pX)
- } else {
- n = _sqlite3ExprVectorSize(tls, (*TExpr)(unsafe.Pointer(pX)).FpLeft)
- if nEq > n {
- v3 = nEq
- } else {
- v3 = n
- }
- aiMap = _sqlite3DbMallocZero(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uint64(4)*uint64(v3))
- eType = _sqlite3FindInIndex(tls, pParse, pX, uint32(IN_INDEX_LOOP), uintptr(0), aiMap, bp)
+ db = (*TParse)(unsafe.Pointer(pParse)).Fdb
+ pXMod = _removeUnindexableInClauseTerms(tls, pParse, iEq, pLoop, pX)
+ if !((*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) {
+ aiMap = _sqlite3DbMallocZero(tls, db, uint64(4)*uint64(nEq))
+ eType = _sqlite3FindInIndex(tls, pParse, pXMod, uint32(IN_INDEX_LOOP), uintptr(0), aiMap, bp)
}
- pX = pExpr
+ _sqlite3ExprDelete(tls, db, pXMod)
}
if eType == int32(IN_INDEX_INDEX_DESC) {
bRev = libc.BoolInt32(!(bRev != 0))
}
if bRev != 0 {
- v4 = int32(OP_Last)
+ v3 = int32(OP_Last)
} else {
- v4 = int32(OP_Rewind)
+ v3 = int32(OP_Rewind)
}
- _sqlite3VdbeAddOp2(tls, v, v4, *(*int32)(unsafe.Pointer(bp)), 0)
+ _sqlite3VdbeAddOp2(tls, v, v3, *(*int32)(unsafe.Pointer(bp)), 0)
*(*Tu32)(unsafe.Pointer(pLoop + 48)) |= uint32(WHERE_IN_ABLE)
if (*(*struct {
FnIn int32
@@ -209300,24 +209311,24 @@ func _codeINTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, i
(*TInLoop)(unsafe.Pointer(pIn)).FaddrInTop = _sqlite3VdbeAddOp2(tls, v, int32(OP_Rowid), *(*int32)(unsafe.Pointer(bp)), iOut)
} else {
if aiMap != 0 {
- v7 = iMap
+ v6 = iMap
iMap++
- v6 = *(*int32)(unsafe.Pointer(aiMap + uintptr(v7)*4))
+ v5 = *(*int32)(unsafe.Pointer(aiMap + uintptr(v6)*4))
} else {
- v6 = 0
+ v5 = 0
}
- iCol = v6
+ iCol = v5
(*TInLoop)(unsafe.Pointer(pIn)).FaddrInTop = _sqlite3VdbeAddOp3(tls, v, int32(OP_Column), *(*int32)(unsafe.Pointer(bp)), iCol, iOut)
}
_sqlite3VdbeAddOp1(tls, v, int32(OP_IsNull), iOut)
if i == iEq {
(*TInLoop)(unsafe.Pointer(pIn)).FiCur = *(*int32)(unsafe.Pointer(bp))
if bRev != 0 {
- v8 = int32(OP_Prev)
+ v7 = int32(OP_Prev)
} else {
- v8 = int32(OP_Next)
+ v7 = int32(OP_Next)
}
- (*TInLoop)(unsafe.Pointer(pIn)).FeEndLoopOp = uint8(v8)
+ (*TInLoop)(unsafe.Pointer(pIn)).FeEndLoopOp = uint8(v7)
if iEq > 0 {
(*TInLoop)(unsafe.Pointer(pIn)).FiBase = iTarget - i
(*TInLoop)(unsafe.Pointer(pIn)).FnPrefix = i
@@ -209329,8 +209340,8 @@ func _codeINTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, i
}
pIn += 20
}
- goto _5
- _5:
+ goto _4
+ _4:
;
i++
}
@@ -210754,7 +210765,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
** eliminating duplicates from other WHERE clauses, the action for each
** sub-WHERE clause is to to invoke the main loop body as a subroutine.
*/
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+23951, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+23980, 0)
ii = 0
for {
if !(ii < (*TWhereClause)(unsafe.Pointer(pOrWc)).FnTerm) {
@@ -210777,7 +210788,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
pOrExpr = pAndExpr
}
/* Loop through table entries that match term pOrTerm. */
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+23966, libc.VaList(bp+96, ii+int32(1)))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+23995, libc.VaList(bp+96, ii+int32(1)))
pSubWInfo = _sqlite3WhereBegin(tls, pParse, pOrTab, pOrExpr, uintptr(0), uintptr(0), uintptr(0), uint16(WHERE_OR_SUBCLAUSE), iCovCur)
if pSubWInfo != 0 {
addrExplain = _sqlite3WhereExplainOneScan(tls, pParse, pOrTab, pSubWInfo+856, uint16(0))
@@ -211277,7 +211288,7 @@ func _sqlite3WhereRightJoinLoop(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLe
pLoop = (*TWhereLevel)(unsafe.Pointer(pLevel)).FpWLoop
pTabItem = (*TWhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*TWhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*80
mAll = uint64(0)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+23975, libc.VaList(bp+96, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pTabItem)).FpSTab)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+24004, libc.VaList(bp+96, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pTabItem)).FpSTab)).FzName))
k = 0
for {
if !(k < iLevel) {
@@ -211815,19 +211826,19 @@ var _aOp = [4]struct {
FeOp2 uint8
}{
0: {
- FzOp: __ccgo_ts + 18144,
+ FzOp: __ccgo_ts + 18173,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH),
},
1: {
- FzOp: __ccgo_ts + 17477,
+ FzOp: __ccgo_ts + 17506,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB),
},
2: {
- FzOp: __ccgo_ts + 16936,
+ FzOp: __ccgo_ts + 16965,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE),
},
3: {
- FzOp: __ccgo_ts + 23989,
+ FzOp: __ccgo_ts + 24018,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP),
},
}
@@ -212347,37 +212358,41 @@ func _exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32)
// ** 1. The SQLITE_Transitive optimization must be enabled
// ** 2. Must be either an == or an IS operator
// ** 3. Not originating in the ON clause of an OUTER JOIN
-// ** 4. The affinities of A and B must be compatible
-// ** 5a. Both operands use the same collating sequence OR
-// ** 5b. The overall collating sequence is BINARY
+// ** 4. The operator is not IS or else the query does not contain RIGHT JOIN
+// ** 5. The affinities of A and B must be compatible
+// ** 6a. Both operands use the same collating sequence OR
+// ** 6b. The overall collating sequence is BINARY
// ** If this routine returns TRUE, that means that the RHS can be substituted
// ** for the LHS anyplace else in the WHERE clause where the LHS column occurs.
// ** This is an optimization. No harm comes from returning 0. But if 1 is
// ** returned when it should not be, then incorrect answers might result.
// */
-func _termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) (r int32) {
+func _termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSrc uintptr) (r int32) {
var aff1, aff2 int8
var pColl uintptr
_, _, _ = aff1, aff2, pColl
if !((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).FdbOptFlags&uint32(libc.Int32FromInt32(SQLITE_Transitive)) == libc.Uint32FromInt32(0)) {
return 0
- }
+ } /* (1) */
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_EQ) && int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) != int32(TK_IS) {
return 0
- }
+ } /* (2) */
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_OuterON)) != uint32(0) {
return 0
+ } /* (3) */
+ if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_IS) && (*TSrcList)(unsafe.Pointer(pSrc)).FnSrc != 0 && int32((*(*TSrcItem)(unsafe.Pointer(pSrc + 8))).Ffg.Fjointype)&int32(JT_LTORJ) != 0 {
+ return 0 /* (4) */
}
aff1 = _sqlite3ExprAffinity(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft)
aff2 = _sqlite3ExprAffinity(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
if int32(aff1) != int32(aff2) && (!(int32(aff1) >= libc.Int32FromInt32(SQLITE_AFF_NUMERIC)) || !(int32(aff2) >= libc.Int32FromInt32(SQLITE_AFF_NUMERIC))) {
- return 0
+ return 0 /* (5) */
}
pColl = _sqlite3ExprCompareCollSeq(tls, pParse, pExpr)
- if _sqlite3IsBinary(tls, pColl) != 0 {
- return int32(1)
+ if !(_sqlite3IsBinary(tls, pColl) != 0) && !(_sqlite3ExprCollSeqMatch(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, (*TExpr)(unsafe.Pointer(pExpr)).FpRight) != 0) {
+ return 0 /* (6) */
}
- return _sqlite3ExprCollSeqMatch(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
+ return int32(1)
}
// C documentation
@@ -212615,7 +212630,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
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>>libc.Int32FromInt32(1) >= x {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23996, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24025, 0)
return
}
} else {
@@ -212627,7 +212642,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
** if there is a RIGHT or FULL JOIN in the query. This makes SQLite
** more like other systems, and also preserves legacy. */
if (*TSrcList)(unsafe.Pointer(pSrc)).FnSrc > 0 && int32((*(*TSrcItem)(unsafe.Pointer(pSrc + 8))).Ffg.Fjointype)&int32(JT_LTORJ) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23996, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24025, 0)
return
}
*(*Tu32)(unsafe.Pointer(pExpr + 4)) &= ^uint32(libc.Int32FromInt32(EP_InnerON))
@@ -212689,7 +212704,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
pTerm = (*TWhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxTerm)*56
p5 = pTerm + 18
*(*Tu16)(unsafe.Pointer(p5)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p5))) | libc.Int32FromInt32(TERM_COPIED))
- if _termIsEquivalence(tls, pParse, pDup) != 0 {
+ if _termIsEquivalence(tls, pParse, pDup, (*TWhereInfo)(unsafe.Pointer(pWInfo)).FpTabList) != 0 {
p6 = pTerm + 20
*(*Tu16)(unsafe.Pointer(p6)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p6))) | libc.Int32FromInt32(WO_EQUIV))
eExtraOp = uint16(WO_EQUIV)
@@ -212812,7 +212827,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
*(*Tu8)(unsafe.Pointer(pC))++
}
if *(*int32)(unsafe.Pointer(bp + 12)) != 0 {
- v13 = __ccgo_ts + 24037
+ v13 = __ccgo_ts + 24066
} else {
v13 = uintptr(unsafe.Pointer(&_sqlite3StrBINARY))
}
@@ -213343,7 +213358,7 @@ func _sqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC
k++
}
if k >= int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24044, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, j))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24073, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, j))
return
}
pColRef = _sqlite3ExprAlloc(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_COLUMN), uintptr(0), 0)
@@ -214457,7 +214472,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
}
cMask = v2
if !(sentWarning != 0) {
- Xsqlite3_log(tls, libc.Int32FromInt32(SQLITE_WARNING)|libc.Int32FromInt32(1)<<libc.Int32FromInt32(8), __ccgo_ts+24080, libc.VaList(bp+16, (*TTable)(unsafe.Pointer(pTable)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTable)).FaCol + uintptr(iCol)*16))).FzCnName))
+ Xsqlite3_log(tls, libc.Int32FromInt32(SQLITE_WARNING)|libc.Int32FromInt32(1)<<libc.Int32FromInt32(8), __ccgo_ts+24109, libc.VaList(bp+16, (*TTable)(unsafe.Pointer(pTable)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTable)).FaCol + uintptr(iCol)*16))).FzCnName))
sentWarning = uint8(1)
}
if idxCols&cMask == uint64(0) {
@@ -214560,7 +214575,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
FpIndex uintptr
FpOrderBy uintptr
})(unsafe.Pointer(pLoop + 24))).FpIndex = pIdx
- (*TIndex)(unsafe.Pointer(pIdx)).FzName = __ccgo_ts + 24106
+ (*TIndex)(unsafe.Pointer(pIdx)).FzName = __ccgo_ts + 24135
(*TIndex)(unsafe.Pointer(pIdx)).FpTable = pTable
n = 0
idxCols = uint64(0)
@@ -216685,15 +216700,15 @@ func _whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pPro
bp := tls.Alloc(128)
defer tls.Free(128)
var M, logK, nIter, nOutUnadjusted, rCostIdx, rLogSize, rSize, saved_nOut, x TLogEst
+ var bRedundant, i, iCol, nEq, nIn, nRecValid, nVecLen, opMask, rc, v21 int32
var db, pBtm, pExpr, pExpr1, pNew, pParse, pTerm, pTop, pWInfo, v11, v24, v5, v8, v9, p12, p13, p14, p15, p16, p17, p18, p19, p2, p20, p25, p3 uintptr
var eOp, saved_nBtm, saved_nEq, saved_nLTerm, saved_nSkip, saved_nTop, v10, v23, v4, v7 Tu16
- var i, iCol, nEq, nIn, nRecValid, nVecLen, opMask, rc, v21 int32
var saved_prereq TBitmask
var saved_wsFlags Tu32
var v22 bool
var _ /* nOut at bp+112 */ TtRowcnt
var _ /* scan at bp+0 */ TWhereScan
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = M, db, eOp, i, iCol, logK, nEq, nIn, nIter, nOutUnadjusted, nRecValid, nVecLen, opMask, pBtm, pExpr, pExpr1, pNew, pParse, pTerm, pTop, pWInfo, rCostIdx, rLogSize, rSize, rc, saved_nBtm, saved_nEq, saved_nLTerm, saved_nOut, saved_nSkip, saved_nTop, saved_prereq, saved_wsFlags, x, v10, v11, v21, v22, v23, v24, v4, v5, v7, v8, v9, p12, p13, p14, p15, p16, p17, p18, p19, p2, p20, p25, p3
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = M, bRedundant, db, eOp, i, iCol, logK, nEq, nIn, nIter, nOutUnadjusted, nRecValid, nVecLen, opMask, pBtm, pExpr, pExpr1, pNew, pParse, pTerm, pTop, pWInfo, rCostIdx, rLogSize, rSize, rc, saved_nBtm, saved_nEq, saved_nLTerm, saved_nOut, saved_nSkip, saved_nTop, saved_prereq, saved_wsFlags, x, v10, v11, v21, v22, v23, v24, v4, v5, v7, v8, v9, p12, p13, p14, p15, p16, p17, p18, p19, p2, p20, p25, p3
pWInfo = (*TWhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo /* WHERE analyze context */
pParse = (*TWhereInfo)(unsafe.Pointer(pWInfo)).FpParse /* Parsing context */
db = (*TParse)(unsafe.Pointer(pParse)).Fdb /* Original value of pNew->nOut */
@@ -216810,6 +216825,7 @@ func _whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pPro
if int32(eOp)&int32(WO_IN) != 0 {
pExpr = (*TWhereTerm)(unsafe.Pointer(pTerm)).FpExpr
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(EP_xIsSelect) != uint32(0) {
+ bRedundant = 0
nIn = int32(46)
/* The expression may actually be of the form (x, y) IN (SELECT...).
** In this case there is a separate term for each of (x) and (y).
@@ -216823,12 +216839,29 @@ func _whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pPro
}
if *(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)) != 0 && (*TWhereTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)))).FpExpr == pExpr {
nIn = 0
+ if (*(*struct {
+ FleftColumn int32
+ FiField int32
+ })(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)) + 32))).FiField == (*(*struct {
+ FleftColumn int32
+ FiField int32
+ })(unsafe.Pointer(pTerm + 32))).FiField {
+ /* Detect when two or more columns of an index match the same
+ ** column of a vector IN operater, and avoid adding the column
+ ** to the WhereLoop more than once. See tag-20250707-01
+ ** in test/rowvalue.test */
+ bRedundant = int32(1)
+ }
}
goto _6
_6:
;
i++
}
+ if bRedundant != 0 {
+ (*TWhereLoop)(unsafe.Pointer(pNew)).FnLTerm--
+ goto _1
+ }
} else {
if *(*uintptr)(unsafe.Pointer(pExpr + 32)) != 0 && (*TExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FnExpr != 0 {
/* "x IN (value, value, ...)" */
@@ -217070,7 +217103,7 @@ func _whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pPro
FnDistinctCol Tu16
FpIndex uintptr
FpOrderBy uintptr
- })(unsafe.Pointer(pNew + 24))).FnEq) < int32((*TIndex)(unsafe.Pointer(pProbe)).FnKeyCol) || int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x3>>0)) != int32(SQLITE_IDXTYPE_PRIMARYKEY) && !(int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x400>>10)) != 0)) {
+ })(unsafe.Pointer(pNew + 24))).FnEq) < int32((*TIndex)(unsafe.Pointer(pProbe)).FnKeyCol) || int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x3>>0)) != int32(SQLITE_IDXTYPE_PRIMARYKEY)) {
if int32((*(*struct {
FnEq Tu16
FnBtm Tu16
@@ -217384,7 +217417,7 @@ func _whereIsCoveringIndexWalkCallback(tls *libc.TLS, pWalk uintptr, pExpr uintp
(*TCoveringIndexCheck)(unsafe.Pointer(pCk)).FbUnidx = uint8(1)
return int32(WRC_Abort)
} else {
- if int32(uint32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x1000>>12)) != 0 && _exprIsCoveredByIndex(tls, pExpr, pIdx, (*TCoveringIndexCheck1)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pWalk + 40)))).FiTabCur) != 0 {
+ if int32(uint32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x800>>11)) != 0 && _exprIsCoveredByIndex(tls, pExpr, pIdx, (*TCoveringIndexCheck1)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pWalk + 40)))).FiTabCur) != 0 {
(*TCoveringIndexCheck)(unsafe.Pointer(pCk)).FbExpr = uint8(1)
return int32(WRC_Prune)
}
@@ -217429,7 +217462,7 @@ func _whereIsCoveringIndex(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iTabCur
** if pIdx is covering. Assume it is not. */
return uint32(0)
}
- if int32(uint32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x1000>>12)) == 0 {
+ if int32(uint32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x800>>11)) == 0 {
i = 0
for {
if !(i < int32((*TIndex)(unsafe.Pointer(pIdx)).FnColumn)) {
@@ -217840,7 +217873,7 @@ func _whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask) (r in
_wherePartIdxExpr(tls, (*TWhereInfo)(unsafe.Pointer(pWInfo)).FpParse, pProbe, (*TIndex)(unsafe.Pointer(pProbe)).FpPartIdxWhere, bp+168, 0, uintptr(0))
}
(*TWhereLoop)(unsafe.Pointer(pNew)).FwsFlags = uint32(WHERE_INDEXED)
- if *(*TBitmask)(unsafe.Pointer(bp + 168)) == libc.Uint64FromInt32(1)<<(int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))-libc.Int32FromInt32(1)) || int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x1000>>12)) != 0 && !(int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x800>>11)) != 0) && *(*TBitmask)(unsafe.Pointer(bp + 168)) != uint64(0) {
+ if *(*TBitmask)(unsafe.Pointer(bp + 168)) == libc.Uint64FromInt32(1)<<(int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))-libc.Int32FromInt32(1)) || int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x800>>11)) != 0 && !(int32(uint32(*(*uint16)(unsafe.Pointer(pProbe + 100))&0x400>>10)) != 0) && *(*TBitmask)(unsafe.Pointer(bp + 168)) != uint64(0) {
isCov = _whereIsCoveringIndex(tls, pWInfo, pProbe, (*TSrcItem)(unsafe.Pointer(pSrc)).FiCursor)
if isCov == uint32(0) {
} else {
@@ -218077,7 +218110,7 @@ func _whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask,
pTerm1 = v4
}
if v5 || v4 == uintptr(0) || *(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(iTerm)*8)) != uintptr(0) || int32((*Tsqlite3_index_constraint)(unsafe.Pointer(pIdxCons)).Fusable) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24117, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpSTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24146, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpSTab)).FzName))
_freeIdxStr(tls, pIdxInfo)
return int32(SQLITE_ERROR)
}
@@ -218152,7 +218185,7 @@ func _whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask,
if *(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)) == uintptr(0) {
/* The non-zero argvIdx values must be contiguous. Raise an
** error if they are not */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24117, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpSTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24146, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpSTab)).FzName))
_freeIdxStr(tls, pIdxInfo)
return int32(SQLITE_ERROR)
}
@@ -218306,7 +218339,7 @@ func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal
pVal = uintptr(0)
rc = SQLITE_OK
if iCons < 0 || iCons >= (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint {
- rc = _sqlite3MisuseError(tls, int32(168893)) /* EV: R-30545-25046 */
+ rc = _sqlite3MisuseError(tls, int32(168932)) /* EV: R-30545-25046 */
} else {
if *(*uintptr)(unsafe.Pointer(pH + 32 + uintptr(iCons)*8)) == uintptr(0) {
pTerm = _termFromWhereClause(tls, (*THiddenIndexInfo)(unsafe.Pointer(pH)).FpWC, (*(*Tsqlite3_index_constraint)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint + uintptr(iCons)*12))).FiTermOffset)
@@ -218742,7 +218775,7 @@ func _whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) (r int32) {
if rc != 0 || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
if rc == int32(SQLITE_DONE) {
/* We hit the query planner search limit set by iPlanLimit */
- Xsqlite3_log(tls, int32(SQLITE_WARNING), __ccgo_ts+24143, 0)
+ Xsqlite3_log(tls, int32(SQLITE_WARNING), __ccgo_ts+24172, 0)
rc = SQLITE_OK
} else {
break
@@ -219950,7 +219983,7 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
iLoop++
}
if nFrom == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24178, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24207, 0)
_sqlite3DbFreeNN(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pSpace)
return int32(SQLITE_ERROR)
}
@@ -220684,7 +220717,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
** bits in a Bitmask
*/
if (*TSrcList)(unsafe.Pointer(pTabList)).FnSrc > int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24196, libc.VaList(bp+64, int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24225, libc.VaList(bp+64, int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))))
return uintptr(0)
}
/* This function normally generates a nested loop for all tables in
@@ -220754,7 +220787,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
(*TWhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = uint8(WHERE_DISTINCT_UNIQUE)
}
if (*TWhereInfo)(unsafe.Pointer(pWInfo)).FpSelect != 0 && (*TSelect)(unsafe.Pointer((*TWhereInfo)(unsafe.Pointer(pWInfo)).FpSelect)).FselFlags&uint32(SF_MultiValue) == uint32(0) {
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+24224, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+24253, 0)
}
} else {
/* Assign a bit from the bitmask to every term in the FROM clause.
@@ -221064,7 +221097,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
v16 = *(*int32)(unsafe.Pointer(v17))
*(*int32)(unsafe.Pointer(v17))++
iIndexCur = v16
- if int32(uint32(*(*uint16)(unsafe.Pointer(pIx + 100))&0x1000>>12)) != 0 && (*Tsqlite3)(unsafe.Pointer(db)).FdbOptFlags&uint32(libc.Int32FromInt32(SQLITE_IndexedExpr)) == uint32(0) {
+ if int32(uint32(*(*uint16)(unsafe.Pointer(pIx + 100))&0x800>>11)) != 0 && (*Tsqlite3)(unsafe.Pointer(db)).FdbOptFlags&uint32(libc.Int32FromInt32(SQLITE_IndexedExpr)) == uint32(0) {
_whereAddIndexedExpr(tls, pParse, pIx, iIndexCur, pTabItem)
}
if (*TIndex)(unsafe.Pointer(pIx)).FpPartIdxWhere != 0 && int32((*TSrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&int32(JT_RIGHT) == 0 {
@@ -221457,7 +221490,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
} else {
last = (*TWhereInfo)(unsafe.Pointer(pWInfo)).FiEndWhere
}
- if int32(uint32(*(*uint16)(unsafe.Pointer(pIdx1 + 100))&0x1000>>12)) != 0 {
+ if int32(uint32(*(*uint16)(unsafe.Pointer(pIdx1 + 100))&0x800>>11)) != 0 {
p = (*TParse)(unsafe.Pointer(pParse)).FpIdxEpr
for p != 0 {
if (*TIndexedExpr)(unsafe.Pointer(p)).FiIdxCur == (*TWhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur {
@@ -221496,7 +221529,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
/* An error. pLoop is supposed to be a covering index loop,
** and yet the VM code refers to a column of the table that
** is not part of the index. */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24242, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24271, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_INTERNAL)
} else {
/* The WHERE_EXPRIDX flag is set by the planner when it is likely
@@ -221815,7 +221848,7 @@ func _nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
goto error_out
error_out:
;
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24271, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24300, -int32(1))
}
func _nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) {
@@ -221997,7 +222030,7 @@ func _ntileStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) {
if (*TNtileCtx)(unsafe.Pointer(p)).FnTotal == 0 {
(*TNtileCtx)(unsafe.Pointer(p)).FnParam = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if (*TNtileCtx)(unsafe.Pointer(p)).FnParam <= 0 {
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24327, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24356, -int32(1))
}
}
(*TNtileCtx)(unsafe.Pointer(p)).FnTotal++
@@ -222323,7 +222356,7 @@ func _windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) (r
p = (*TWindow)(unsafe.Pointer(p)).FpNextWin
}
if p == uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24372, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24401, libc.VaList(bp+8, zName))
}
return p
}
@@ -222374,12 +222407,12 @@ func _sqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uin
_sqlite3WindowChain(tls, pParse, pWin, pList)
}
if int32((*TWindow)(unsafe.Pointer(pWin)).FeFrmType) == int32(TK_RANGE) && ((*TWindow)(unsafe.Pointer(pWin)).FpStart != 0 || (*TWindow)(unsafe.Pointer(pWin)).FpEnd != 0) && ((*TWindow)(unsafe.Pointer(pWin)).FpOrderBy == uintptr(0) || (*TExprList)(unsafe.Pointer((*TWindow)(unsafe.Pointer(pWin)).FpOrderBy)).FnExpr != int32(1)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24391, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24420, 0)
} else {
if (*TFuncDef)(unsafe.Pointer(pFunc)).FfuncFlags&uint32(SQLITE_FUNC_WINDOW) != 0 {
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if (*TWindow)(unsafe.Pointer(pWin)).FpFilter != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24462, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24491, 0)
} else {
aUp = [8]struct {
FzFunc uintptr
@@ -222734,7 +222767,7 @@ func _disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintpt
bp := tls.Alloc(16)
defer tls.Free(16)
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_AGG_FUNCTION) && (*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo == uintptr(0) {
- _sqlite3ErrorMsg(tls, (*TWalker)(unsafe.Pointer(pWalker)).FpParse, __ccgo_ts+24525, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ _sqlite3ErrorMsg(tls, (*TWalker)(unsafe.Pointer(pWalker)).FpParse, __ccgo_ts+24554, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
}
return WRC_Continue
}
@@ -223021,7 +223054,7 @@ func _sqlite3WindowAlloc(tls *libc.TLS, pParse uintptr, eType int32, eStart int3
** frame boundary.
*/
if eStart == int32(TK_CURRENT) && eEnd == int32(TK_PRECEDING) || eStart == int32(TK_FOLLOWING) && (eEnd == int32(TK_PRECEDING) || eEnd == int32(TK_CURRENT)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24551, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24580, 0)
goto windowAllocErr
}
pWin = _sqlite3DbMallocZero(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uint64(144))
@@ -223089,18 +223122,18 @@ func _sqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uint
zErr = uintptr(0)
/* Check for errors */
if (*TWindow)(unsafe.Pointer(pWin)).FpPartition != 0 {
- zErr = __ccgo_ts + 24583
+ zErr = __ccgo_ts + 24612
} else {
if (*TWindow)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*TWindow)(unsafe.Pointer(pWin)).FpOrderBy != 0 {
- zErr = __ccgo_ts + 24600
+ zErr = __ccgo_ts + 24629
} else {
if int32((*TWindow)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 {
- zErr = __ccgo_ts + 24616
+ zErr = __ccgo_ts + 24645
}
}
}
if zErr != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24636, libc.VaList(bp+8, zErr, (*TWindow)(unsafe.Pointer(pWin)).FzBase))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24665, libc.VaList(bp+8, zErr, (*TWindow)(unsafe.Pointer(pWin)).FzBase))
} else {
(*TWindow)(unsafe.Pointer(pWin)).FpPartition = _sqlite3ExprListDup(tls, db, (*TWindow)(unsafe.Pointer(pExist)).FpPartition, 0)
if (*TWindow)(unsafe.Pointer(pExist)).FpOrderBy != 0 {
@@ -223124,7 +223157,7 @@ func _sqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr
*(*Tu32)(unsafe.Pointer(p + 4)) |= uint32(libc.Int32FromInt32(EP_WinFunc) | libc.Int32FromInt32(EP_FullSize))
(*TWindow)(unsafe.Pointer(pWin)).FpOwner = p
if (*TExpr)(unsafe.Pointer(p)).Fflags&uint32(EP_Distinct) != 0 && int32((*TWindow)(unsafe.Pointer(pWin)).FeFrmType) != int32(TK_FILTER) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24669, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24698, 0)
}
} else {
_sqlite3WindowDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pWin)
@@ -223342,11 +223375,11 @@ func _windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) {
}
var _azErr = [5]uintptr{
- 0: __ccgo_ts + 24716,
- 1: __ccgo_ts + 24769,
- 2: __ccgo_ts + 24271,
- 3: __ccgo_ts + 24820,
- 4: __ccgo_ts + 24872,
+ 0: __ccgo_ts + 24745,
+ 1: __ccgo_ts + 24798,
+ 2: __ccgo_ts + 24300,
+ 3: __ccgo_ts + 24849,
+ 4: __ccgo_ts + 24901,
}
var _aOp1 = [5]int32{
@@ -225094,7 +225127,7 @@ type FrameBound = TFrameBound
func _parserSyntaxError(tls *libc.TLS, pParse uintptr, p uintptr) {
bp := tls.Alloc(16)
defer tls.Free(16)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24922, libc.VaList(bp+8, p))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24951, libc.VaList(bp+8, p))
}
// C documentation
@@ -225142,11 +225175,11 @@ func _parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) {
cnt++
if (*TSelect)(unsafe.Pointer(pLoop)).FpOrderBy != 0 || (*TSelect)(unsafe.Pointer(pLoop)).FpLimit != 0 {
if (*TSelect)(unsafe.Pointer(pLoop)).FpOrderBy != uintptr(0) {
- v1 = __ccgo_ts + 24946
+ v1 = __ccgo_ts + 24975
} else {
- v1 = __ccgo_ts + 24955
+ v1 = __ccgo_ts + 24984
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24961, libc.VaList(bp+8, v1, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(pNext)).Fop))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+24990, libc.VaList(bp+8, v1, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(pNext)).Fop))))
break
}
}
@@ -225155,7 +225188,7 @@ func _parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) {
mxSelect = v2
}
if v3 && v2 > 0 && cnt > mxSelect {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25003, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25032, 0)
}
}
}
@@ -225261,7 +225294,7 @@ func _parserAddExprIdListTerm(tls *libc.TLS, pParse uintptr, pPrior uintptr, pId
_ = p
p = _sqlite3ExprListAppend(tls, pParse, pPrior, uintptr(0))
if (hasCollate != 0 || sortOrder != -int32(1)) && int32((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Finit1.Fbusy) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25037, libc.VaList(bp+8, (*TToken)(unsafe.Pointer(pIdToken)).Fn, (*TToken)(unsafe.Pointer(pIdToken)).Fz))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25066, libc.VaList(bp+8, (*TToken)(unsafe.Pointer(pIdToken)).Fn, (*TToken)(unsafe.Pointer(pIdToken)).Fz))
}
_sqlite3ExprListSetName(tls, pParse, p, pIdToken, int32(1))
return p
@@ -232903,19 +232936,19 @@ var _yyRuleInfoNRhs = [409]int8{
func _yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead int32, yyLookaheadToken TToken, pParse uintptr) (r uint16) {
bp := tls.Alloc(144)
defer tls.Free(144)
- var bNot, bNot1, nExpr, yygoto, yysize int32
+ var bNot, bNot1, nExpr, yygoto, yysize, v348 int32
var n Tu32
var op Tu8
- var p, p1, p2, p3, p4, p5, pDot, pFrom, pFromClause, pLeft, pLhs, pList, pList1, pList2, pList3, pList4, pNew, pOld, pRHS, pRhs, pRight, pSelect, pSelectRHS, pSrc, pSubquery, pSubquery1, temp1, temp11, temp2, temp21, temp3, temp4, yymsp, v347, v348, v349, v350 uintptr
+ var p, p1, p2, p3, p4, p5, pB, pDot, pFrom, pFromClause, pLeft, pLhs, pList, pList1, pList2, pList3, pList4, pNew, pOld, pRHS, pRhs, pRight, pSelect, pSelectRHS, pSrc, pSubquery, pSubquery1, temp1, temp11, temp2, temp21, temp3, temp4, yymsp, v347, v349, v350, v351 uintptr
var yyact uint16
- var v351 TToken
+ var v352 TToken
var _ /* all at bp+104 */ TToken
var _ /* as at bp+72 */ TToken
var _ /* dest at bp+16 */ TSelectDest
var _ /* t at bp+88 */ TToken
var _ /* x at bp+56 */ TToken
var _ /* yylhsminor at bp+0 */ TYYMINORTYPE
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bNot, bNot1, n, nExpr, op, p, p1, p2, p3, p4, p5, pDot, pFrom, pFromClause, pLeft, pLhs, pList, pList1, pList2, pList3, pList4, pNew, pOld, pRHS, pRhs, pRight, pSelect, pSelectRHS, pSrc, pSubquery, pSubquery1, temp1, temp11, temp2, temp21, temp3, temp4, yyact, yygoto, yymsp, yysize, v347, v348, v349, v350, v351 /* Amount to pop the stack */
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bNot, bNot1, n, nExpr, op, p, p1, p2, p3, p4, p5, pB, pDot, pFrom, pFromClause, pLeft, pLhs, pList, pList1, pList2, pList3, pList4, pNew, pOld, pRHS, pRhs, pRight, pSelect, pSelectRHS, pSrc, pSubquery, pSubquery1, temp1, temp11, temp2, temp21, temp3, temp4, yyact, yygoto, yymsp, yysize, v347, v348, v349, v350, v351, v352 /* Amount to pop the stack */
_ = yyLookahead
_ = yyLookaheadToken
yymsp = (*TyyParser)(unsafe.Pointer(yypParser)).Fyytos
@@ -233718,20 +233751,20 @@ _30:
goto _346
_31:
; /* table_option ::= WITHOUT nm */
- if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(5) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+18295, int32(5)) == 0 {
+ if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(5) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+18324, int32(5)) == 0 {
*(*Tu32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uint32(libc.Int32FromInt32(TF_WithoutRowid) | libc.Int32FromInt32(TF_NoVisibleRowid))
} else {
*(*Tu32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uint32(0)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25075, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25104, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
}
goto _346
_32:
; /* table_option ::= nm */
- if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(6) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+18231, int32(6)) == 0 {
+ if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(6) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+18260, int32(6)) == 0 {
*(*Tu32)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = uint32(TF_Strict)
} else {
*(*Tu32)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = uint32(0)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25075, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25104, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
}
*(*Tu32)(unsafe.Pointer(yymsp + 8)) = *(*Tu32)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _346
@@ -234374,7 +234407,7 @@ _176:
_177:
; /* cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */
_sqlite3SrcListIndexedBy(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8)
- _sqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), __ccgo_ts+25102)
+ _sqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), __ccgo_ts+25131)
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) != 0 {
pFromClause = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
if (*TSrcList)(unsafe.Pointer(pFromClause)).FnSrc > int32(1) {
@@ -234714,23 +234747,37 @@ _236:
_237:
; /* expr ::= expr in_op LP exprlist RP */
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) == uintptr(0) {
+ if *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) != 0 {
+ v347 = __ccgo_ts + 9469
+ } else {
+ v347 = __ccgo_ts + 9474
+ }
/* Expressions of the form
**
** expr1 IN ()
** expr1 NOT IN ()
**
- ** simplify to constants 0 (false) and 1 (true), respectively,
- ** regardless of the value of expr1.
+ ** simplify to constants 0 (false) and 1 (true), respectively.
+ **
+ ** Except, do not apply this optimization if expr1 contains a function
+ ** because that function might be an aggregate (we don't know yet whether
+ ** it is or not) and if it is an aggregate, that could change the meaning
+ ** of the whole query.
*/
- _sqlite3ExprUnmapAndDelete(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
- if *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) != 0 {
- v347 = __ccgo_ts + 9469
- } else {
- v347 = __ccgo_ts + 9474
+ pB = _sqlite3Expr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_STRING), v347)
+ if pB != 0 {
+ _sqlite3ExprIdToTrueFalse(tls, pB)
}
- *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3Expr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_STRING), v347)
- if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) != 0 {
- _sqlite3ExprIdToTrueFalse(tls, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
+ if !((*TExpr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))).Fflags&uint32(libc.Int32FromInt32(EP_HasFunc)) != libc.Uint32FromInt32(0)) {
+ _sqlite3ExprUnmapAndDelete(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
+ *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = pB
+ } else {
+ if *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) != 0 {
+ v348 = int32(TK_OR)
+ } else {
+ v348 = int32(TK_AND)
+ }
+ *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, v348, pB, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
}
} else {
pRHS = (*(*TExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) + 8))).FpExpr
@@ -234788,11 +234835,11 @@ _240:
pSelect = _sqlite3SelectNew(tls, pParse, uintptr(0), pSrc, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(0), uintptr(0))
if *(*uintptr)(unsafe.Pointer(yymsp + 8)) != 0 {
if pSelect != 0 {
- v348 = pSrc
+ v349 = pSrc
} else {
- v348 = uintptr(0)
+ v349 = uintptr(0)
}
- _sqlite3SrcListFuncArgs(tls, pParse, v348, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
+ _sqlite3SrcListFuncArgs(tls, pParse, v349, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
}
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_IN), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uintptr(0))
_sqlite3PExprAddSelect(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), pSelect)
@@ -234802,9 +234849,9 @@ _240:
goto _346
_241:
; /* expr ::= EXISTS LP select RP */
- v349 = _sqlite3PExpr(tls, pParse, int32(TK_EXISTS), uintptr(0), uintptr(0))
- *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = v349
- p5 = v349
+ v350 = _sqlite3PExpr(tls, pParse, int32(TK_EXISTS), uintptr(0), uintptr(0))
+ *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = v350
+ p5 = v350
_sqlite3PExprAddSelect(tls, pParse, p5, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _346
_242:
@@ -234812,11 +234859,11 @@ _242:
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_CASE), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), uintptr(0))
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) != 0 {
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) != 0 {
- v350 = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
+ v351 = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
} else {
- v350 = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
+ v351 = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
}
- *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) + 32)) = v350
+ *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) + 32)) = v351
_sqlite3ExprSetHeightAndFlags(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
} else {
_sqlite3ExprListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
@@ -234914,11 +234961,11 @@ _264:
; /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
_sqlite3BeginTrigger(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(7))*24+8, yymsp+uintptr(-libc.Int32FromInt32(6))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(10))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)))
if *(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8 + 8)) == uint32(0) {
- v351 = *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8))
+ v352 = *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8))
} else {
- v351 = *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8))
+ v352 = *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8))
}
- *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(10))*24 + 8)) = v351 /*A-overwrites-T*/
+ *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(10))*24 + 8)) = v352 /*A-overwrites-T*/
goto _346
_265:
; /* trigger_time ::= BEFORE|AFTER */
@@ -234968,15 +235015,15 @@ _276:
_277:
; /* trnm ::= nm DOT nm */
*(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*TToken)(unsafe.Pointer(yymsp + 8))
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25111, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25140, 0)
goto _346
_278:
; /* tridxby ::= INDEXED BY nm */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25206, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25235, 0)
goto _346
_279:
; /* tridxby ::= NOT INDEXED */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25290, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25319, 0)
goto _346
_280:
; /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
@@ -235312,7 +235359,7 @@ func _yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, _yyminor
if *(*int8)(unsafe.Pointer((*(*TToken)(unsafe.Pointer(bp))).Fz)) != 0 {
_parserSyntaxError(tls, pParse, bp)
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25375, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25404, 0)
}
/************ End %syntax_error code ******************************************/
/* Suppress warning about unused %extra_argument variable */
@@ -237438,7 +237485,7 @@ func _getToken(tls *libc.TLS, pz uintptr) (r int32) {
var _ /* t at bp+0 */ int32
_ = z
z = *(*uintptr)(unsafe.Pointer(pz)) /* Token type to return */
- for cond := true; cond; cond = *(*int32)(unsafe.Pointer(bp)) == int32(TK_SPACE) {
+ for cond := true; cond; cond = *(*int32)(unsafe.Pointer(bp)) == int32(TK_SPACE) || *(*int32)(unsafe.Pointer(bp)) == int32(TK_COMMENT) {
z += uintptr(_sqlite3GetToken(tls, z, bp))
}
if *(*int32)(unsafe.Pointer(bp)) == int32(TK_ID) || *(*int32)(unsafe.Pointer(bp)) == int32(TK_STRING) || *(*int32)(unsafe.Pointer(bp)) == int32(TK_JOIN_KW) || *(*int32)(unsafe.Pointer(bp)) == int32(TK_WINDOW) || *(*int32)(unsafe.Pointer(bp)) == int32(TK_OVER) || _sqlite3ParserFallback(tls, *(*int32)(unsafe.Pointer(bp))) == int32(TK_ID) {
@@ -238052,7 +238099,7 @@ func _sqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) (r int32) {
if *(*int32)(unsafe.Pointer(bp)) != int32(TK_QNUMBER) {
(*(*TToken)(unsafe.Pointer(bp + 2440))).Fz = zSql
(*(*TToken)(unsafe.Pointer(bp + 2440))).Fn = uint32(n)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25392, libc.VaList(bp+2464, bp+2440))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+25421, libc.VaList(bp+2464, bp+2440))
break
}
}
@@ -238079,7 +238126,7 @@ func _sqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) (r int32) {
(*TParse)(unsafe.Pointer(pParse)).FzErrMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+4829, libc.VaList(bp+2464, _sqlite3ErrStr(tls, (*TParse)(unsafe.Pointer(pParse)).Frc)))
}
if int32((*TParse)(unsafe.Pointer(pParse)).FprepFlags)&int32(SQLITE_PREPARE_DONT_LOG) == 0 {
- Xsqlite3_log(tls, (*TParse)(unsafe.Pointer(pParse)).Frc, __ccgo_ts+25417, libc.VaList(bp+2464, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg, (*TParse)(unsafe.Pointer(pParse)).FzTail))
+ Xsqlite3_log(tls, (*TParse)(unsafe.Pointer(pParse)).Frc, __ccgo_ts+25446, libc.VaList(bp+2464, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg, (*TParse)(unsafe.Pointer(pParse)).FzTail))
}
nErr++
}
@@ -238272,7 +238319,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
case int32('c'):
fallthrough
case int32('C'):
- if nId == int32(6) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25428, int32(6)) == 0 {
+ if nId == int32(6) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25457, int32(6)) == 0 {
token = uint8(tkCREATE)
} else {
token = uint8(tkOTHER)
@@ -238280,13 +238327,13 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
case int32('t'):
fallthrough
case int32('T'):
- if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+22056, int32(7)) == 0 {
+ if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+22085, int32(7)) == 0 {
token = uint8(tkTRIGGER)
} else {
- if nId == int32(4) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25435, int32(4)) == 0 {
+ if nId == int32(4) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25464, int32(4)) == 0 {
token = uint8(tkTEMP)
} else {
- if nId == int32(9) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25440, int32(9)) == 0 {
+ if nId == int32(9) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25469, int32(9)) == 0 {
token = uint8(tkTEMP)
} else {
token = uint8(tkOTHER)
@@ -238296,10 +238343,10 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
case int32('e'):
fallthrough
case int32('E'):
- if nId == int32(3) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25450, int32(3)) == 0 {
+ if nId == int32(3) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25479, int32(3)) == 0 {
token = uint8(tkEND)
} else {
- if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25454, int32(7)) == 0 {
+ if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+25483, int32(7)) == 0 {
token = uint8(tkEXPLAIN)
} else {
token = uint8(tkOTHER)
@@ -238715,7 +238762,7 @@ func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) (r int32) {
*/
if libc.AtomicLoadPInt32(uintptr(unsafe.Pointer(&_sqlite3Config))+340) != 0 {
if op < 0 || op > int32(63) || libc.Uint64FromInt32(1)<<op&_mAnytimeConfigOption == uint64(0) {
- return _sqlite3MisuseError(tls, int32(183007))
+ return _sqlite3MisuseError(tls, int32(183055))
}
}
ap = va
@@ -239533,7 +239580,7 @@ func _sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) (r int32) {
return SQLITE_OK
}
if !(_sqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return _sqlite3MisuseError(tls, int32(183820))
+ return _sqlite3MisuseError(tls, int32(183868))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if int32((*Tsqlite3)(unsafe.Pointer(db)).FmTrace)&int32(SQLITE_TRACE_CLOSE) != 0 {
@@ -239553,7 +239600,7 @@ func _sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) (r int32) {
** SQLITE_BUSY if the connection can not be closed immediately.
*/
if !(forceZombie != 0) && _connectionIsBusy(tls, db) != 0 {
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+25462, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+25491, 0)
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
return int32(SQLITE_BUSY)
}
@@ -239854,14 +239901,14 @@ func _sqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) {
func _sqlite3ErrStr(tls *libc.TLS, rc int32) (r uintptr) {
var zErr uintptr
_ = zErr
- zErr = __ccgo_ts + 26005
+ zErr = __ccgo_ts + 26034
switch rc {
case libc.Int32FromInt32(SQLITE_ABORT) | libc.Int32FromInt32(2)<<libc.Int32FromInt32(8):
- zErr = __ccgo_ts + 26019
+ zErr = __ccgo_ts + 26048
case int32(SQLITE_ROW):
- zErr = __ccgo_ts + 26041
+ zErr = __ccgo_ts + 26070
case int32(SQLITE_DONE):
- zErr = __ccgo_ts + 26063
+ zErr = __ccgo_ts + 26092
default:
rc &= int32(0xff)
if rc >= 0 && rc < int32(libc.Uint64FromInt64(232)/libc.Uint64FromInt64(8)) && _aMsg[rc] != uintptr(0) {
@@ -239873,31 +239920,31 @@ func _sqlite3ErrStr(tls *libc.TLS, rc int32) (r uintptr) {
}
var _aMsg = [29]uintptr{
- 0: __ccgo_ts + 25530,
- 1: __ccgo_ts + 25543,
- 3: __ccgo_ts + 25559,
- 4: __ccgo_ts + 25584,
- 5: __ccgo_ts + 25598,
- 6: __ccgo_ts + 25617,
+ 0: __ccgo_ts + 25559,
+ 1: __ccgo_ts + 25572,
+ 3: __ccgo_ts + 25588,
+ 4: __ccgo_ts + 25613,
+ 5: __ccgo_ts + 25627,
+ 6: __ccgo_ts + 25646,
7: __ccgo_ts + 1644,
- 8: __ccgo_ts + 25642,
- 9: __ccgo_ts + 25679,
- 10: __ccgo_ts + 25691,
- 11: __ccgo_ts + 25706,
- 12: __ccgo_ts + 25739,
- 13: __ccgo_ts + 25757,
- 14: __ccgo_ts + 25782,
- 15: __ccgo_ts + 25811,
+ 8: __ccgo_ts + 25671,
+ 9: __ccgo_ts + 25708,
+ 10: __ccgo_ts + 25720,
+ 11: __ccgo_ts + 25735,
+ 12: __ccgo_ts + 25768,
+ 13: __ccgo_ts + 25786,
+ 14: __ccgo_ts + 25811,
+ 15: __ccgo_ts + 25840,
17: __ccgo_ts + 7497,
18: __ccgo_ts + 6901,
- 19: __ccgo_ts + 25828,
- 20: __ccgo_ts + 25846,
- 21: __ccgo_ts + 25864,
- 23: __ccgo_ts + 25898,
- 25: __ccgo_ts + 25919,
- 26: __ccgo_ts + 25945,
- 27: __ccgo_ts + 25968,
- 28: __ccgo_ts + 25989,
+ 19: __ccgo_ts + 25857,
+ 20: __ccgo_ts + 25875,
+ 21: __ccgo_ts + 25893,
+ 23: __ccgo_ts + 25927,
+ 25: __ccgo_ts + 25948,
+ 26: __ccgo_ts + 25974,
+ 27: __ccgo_ts + 25997,
+ 28: __ccgo_ts + 26018,
}
// C documentation
@@ -240090,7 +240137,7 @@ func _sqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i
var p, v1 uintptr
_, _, _, _ = extraFlags, p, rc, v1
if zFunctionName == uintptr(0) || xSFunc != uintptr(0) && xFinal != uintptr(0) || libc.BoolInt32(xFinal == uintptr(0)) != libc.BoolInt32(xStep == uintptr(0)) || libc.BoolInt32(xValue == uintptr(0)) != libc.BoolInt32(xInverse == uintptr(0)) || (nArg < -int32(1) || nArg > int32(SQLITE_MAX_FUNCTION_ARG)) || int32(255) < _sqlite3Strlen30(tls, zFunctionName) {
- return _sqlite3MisuseError(tls, int32(184509))
+ return _sqlite3MisuseError(tls, int32(184559))
}
extraFlags = enc & (libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_DIRECTONLY) | libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(SQLITE_INNOCUOUS) | libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE) | libc.Int32FromInt32(SQLITE_SELFORDER1))
enc &= libc.Int32FromInt32(SQLITE_FUNC_ENCMASK) | libc.Int32FromInt32(SQLITE_ANY)
@@ -240133,7 +240180,7 @@ func _sqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i
p = _sqlite3FindFunction(tls, db, zFunctionName, nArg, uint8(enc), uint8(0))
if p != 0 && (*TFuncDef)(unsafe.Pointer(p)).FfuncFlags&uint32(SQLITE_FUNC_ENCMASK) == uint32(enc) && int32((*TFuncDef)(unsafe.Pointer(p)).FnArg) == nArg {
if (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeActive != 0 {
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+26086, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+26115, 0)
return int32(SQLITE_BUSY)
} else {
_sqlite3ExpirePreparedStatements(tls, db, 0)
@@ -240259,7 +240306,7 @@ func _sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotU
zName = Xsqlite3_user_data(tls, context)
_ = NotUsed
_ = NotUsed2
- zErr = Xsqlite3_mprintf(tls, __ccgo_ts+26149, libc.VaList(bp+8, zName))
+ zErr = Xsqlite3_mprintf(tls, __ccgo_ts+26178, libc.VaList(bp+8, zName))
Xsqlite3_result_error(tls, context, zErr, -int32(1))
Xsqlite3_free(tls, zErr)
}
@@ -240534,7 +240581,7 @@ func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode in
if eMode < SQLITE_CHECKPOINT_PASSIVE || eMode > int32(SQLITE_CHECKPOINT_TRUNCATE) {
/* EVIDENCE-OF: R-03996-12088 The M parameter must be a valid checkpoint
** mode: */
- return _sqlite3MisuseError(tls, int32(185125))
+ return _sqlite3MisuseError(tls, int32(185175))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if zDb != 0 && *(*int8)(unsafe.Pointer(zDb)) != 0 {
@@ -240544,7 +240591,7 @@ func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode in
}
if iDb < 0 {
rc = int32(SQLITE_ERROR)
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+26200, libc.VaList(bp+8, zDb))
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+26229, libc.VaList(bp+8, zDb))
} else {
(*Tsqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0
rc = _sqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt)
@@ -240666,7 +240713,7 @@ func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) (r uintptr) {
return _sqlite3ErrStr(tls, int32(SQLITE_NOMEM))
}
if !(_sqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return _sqlite3ErrStr(tls, _sqlite3MisuseError(tls, int32(185261)))
+ return _sqlite3ErrStr(tls, _sqlite3MisuseError(tls, int32(185311)))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -240798,7 +240845,7 @@ var _misuse = [34]Tu16{
// */
func Xsqlite3_errcode(tls *libc.TLS, db uintptr) (r int32) {
if db != 0 && !(_sqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return _sqlite3MisuseError(tls, int32(185340))
+ return _sqlite3MisuseError(tls, int32(185390))
}
if !(db != 0) || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return int32(SQLITE_NOMEM)
@@ -240808,7 +240855,7 @@ func Xsqlite3_errcode(tls *libc.TLS, db uintptr) (r int32) {
func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) (r int32) {
if db != 0 && !(_sqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return _sqlite3MisuseError(tls, int32(185349))
+ return _sqlite3MisuseError(tls, int32(185399))
}
if !(db != 0) || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return int32(SQLITE_NOMEM)
@@ -240857,7 +240904,7 @@ func _createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc Tu8, pCtx ui
enc2 = int32(SQLITE_UTF16LE)
}
if enc2 < int32(SQLITE_UTF8) || enc2 > int32(SQLITE_UTF16BE) {
- return _sqlite3MisuseError(tls, int32(185397))
+ return _sqlite3MisuseError(tls, int32(185447))
}
/* Check if this call is removing or replacing an existing collation
** sequence. If so, and there are active VMs, return busy. If there
@@ -240866,7 +240913,7 @@ func _createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc Tu8, pCtx ui
pColl = _sqlite3FindCollSeq(tls, db, uint8(enc2), zName, 0)
if pColl != 0 && (*TCollSeq)(unsafe.Pointer(pColl)).FxCmp != 0 {
if (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeActive != 0 {
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+26221, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+26250, 0)
return int32(SQLITE_BUSY)
}
_sqlite3ExpirePreparedStatements(tls, db, 0)
@@ -241013,7 +241060,7 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
flags = *(*uint32)(unsafe.Pointer(pFlags))
zVfs = zDefaultVfs
nUri = _sqlite3Strlen30(tls, zUri)
- if (flags&uint32(SQLITE_OPEN_URI) != 0 || libc.AtomicLoadNUint8(uintptr(unsafe.Pointer(&_sqlite3Config))+6, libc.Int32FromInt32(__ATOMIC_RELAXED)) != 0) && nUri >= int32(5) && libc.Xmemcmp(tls, zUri, __ccgo_ts+26289, uint64(5)) == 0 { /* Input character index */
+ if (flags&uint32(SQLITE_OPEN_URI) != 0 || libc.AtomicLoadNUint8(uintptr(unsafe.Pointer(&_sqlite3Config))+6, libc.Int32FromInt32(__ATOMIC_RELAXED)) != 0) && nUri >= int32(5) && libc.Xmemcmp(tls, zUri, __ccgo_ts+26318, uint64(5)) == 0 { /* Input character index */
iOut = 0 /* Output character index */
nByte = uint64(nUri + int32(8)) /* Bytes of space to allocate */
/* Make sure the SQLITE_OPEN_URI flag is set to indicate to the VFS xOpen
@@ -241043,8 +241090,8 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
for *(*int8)(unsafe.Pointer(zUri + uintptr(iIn))) != 0 && int32(*(*int8)(unsafe.Pointer(zUri + uintptr(iIn)))) != int32('/') {
iIn++
}
- if iIn != int32(7) && (iIn != int32(16) || libc.Xmemcmp(tls, __ccgo_ts+26295, zUri+7, uint64(9)) != 0) {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26305, libc.VaList(bp+8, iIn-int32(7), zUri+7))
+ if iIn != int32(7) && (iIn != int32(16) || libc.Xmemcmp(tls, __ccgo_ts+26324, zUri+7, uint64(9)) != 0) {
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26334, libc.VaList(bp+8, iIn-int32(7), zUri+7))
rc = int32(SQLITE_ERROR)
goto parse_uri_out
}
@@ -241133,24 +241180,24 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
nOpt = _sqlite3Strlen30(tls, zOpt)
zVal = zOpt + uintptr(nOpt+int32(1))
nVal = _sqlite3Strlen30(tls, zVal)
- if nOpt == int32(3) && libc.Xmemcmp(tls, __ccgo_ts+26333, zOpt, uint64(3)) == 0 {
+ if nOpt == int32(3) && libc.Xmemcmp(tls, __ccgo_ts+26362, zOpt, uint64(3)) == 0 {
zVfs = zVal
} else {
aMode = uintptr(0)
zModeType = uintptr(0)
mask = 0
limit = 0
- if nOpt == int32(5) && libc.Xmemcmp(tls, __ccgo_ts+26337, zOpt, uint64(5)) == 0 {
+ if nOpt == int32(5) && libc.Xmemcmp(tls, __ccgo_ts+26366, zOpt, uint64(5)) == 0 {
mask = libc.Int32FromInt32(SQLITE_OPEN_SHAREDCACHE) | libc.Int32FromInt32(SQLITE_OPEN_PRIVATECACHE)
aMode = uintptr(unsafe.Pointer(&_aCacheMode))
limit = mask
- zModeType = __ccgo_ts + 26337
+ zModeType = __ccgo_ts + 26366
}
- if nOpt == int32(4) && libc.Xmemcmp(tls, __ccgo_ts+26358, zOpt, uint64(4)) == 0 {
+ if nOpt == int32(4) && libc.Xmemcmp(tls, __ccgo_ts+26387, zOpt, uint64(4)) == 0 {
mask = libc.Int32FromInt32(SQLITE_OPEN_READONLY) | libc.Int32FromInt32(SQLITE_OPEN_READWRITE) | libc.Int32FromInt32(SQLITE_OPEN_CREATE) | libc.Int32FromInt32(SQLITE_OPEN_MEMORY)
aMode = uintptr(unsafe.Pointer(&_aOpenMode))
limit = int32(uint32(mask) & flags)
- zModeType = __ccgo_ts + 26373
+ zModeType = __ccgo_ts + 26402
}
if aMode != 0 {
mode = 0
@@ -241179,12 +241226,12 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
i++
}
if mode == 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26380, libc.VaList(bp+8, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26409, libc.VaList(bp+8, zModeType, zVal))
rc = int32(SQLITE_ERROR)
goto parse_uri_out
}
if mode & ^libc.Int32FromInt32(SQLITE_OPEN_MEMORY) > limit {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26400, libc.VaList(bp+8, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26429, libc.VaList(bp+8, zModeType, zVal))
rc = int32(SQLITE_PERM)
goto parse_uri_out
}
@@ -241208,7 +241255,7 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
}
*(*uintptr)(unsafe.Pointer(ppVfs)) = Xsqlite3_vfs_find(tls, zVfs)
if *(*uintptr)(unsafe.Pointer(ppVfs)) == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26424, libc.VaList(bp+8, zVfs))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+26453, libc.VaList(bp+8, zVfs))
rc = int32(SQLITE_ERROR)
}
goto parse_uri_out
@@ -241228,11 +241275,11 @@ var _aCacheMode = [3]struct {
Fmode int32
}{
0: {
- Fz: __ccgo_ts + 26343,
+ Fz: __ccgo_ts + 26372,
Fmode: int32(SQLITE_OPEN_SHAREDCACHE),
},
1: {
- Fz: __ccgo_ts + 26350,
+ Fz: __ccgo_ts + 26379,
Fmode: int32(SQLITE_OPEN_PRIVATECACHE),
},
2: {},
@@ -241243,19 +241290,19 @@ var _aOpenMode = [5]struct {
Fmode int32
}{
0: {
- Fz: __ccgo_ts + 26363,
+ Fz: __ccgo_ts + 26392,
Fmode: int32(SQLITE_OPEN_READONLY),
},
1: {
- Fz: __ccgo_ts + 26366,
+ Fz: __ccgo_ts + 26395,
Fmode: int32(SQLITE_OPEN_READWRITE),
},
2: {
- Fz: __ccgo_ts + 26369,
+ Fz: __ccgo_ts + 26398,
Fmode: libc.Int32FromInt32(SQLITE_OPEN_READWRITE) | libc.Int32FromInt32(SQLITE_OPEN_CREATE),
},
3: {
- Fz: __ccgo_ts + 19376,
+ Fz: __ccgo_ts + 19405,
Fmode: int32(SQLITE_OPEN_MEMORY),
},
4: {},
@@ -241383,8 +241430,8 @@ func _openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, _flags uint32
_createCollation(tls, db, uintptr(unsafe.Pointer(&_sqlite3StrBINARY)), uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_binCollFunc), uintptr(0))
_createCollation(tls, db, uintptr(unsafe.Pointer(&_sqlite3StrBINARY)), uint8(SQLITE_UTF16BE), uintptr(0), __ccgo_fp(_binCollFunc), uintptr(0))
_createCollation(tls, db, uintptr(unsafe.Pointer(&_sqlite3StrBINARY)), uint8(SQLITE_UTF16LE), uintptr(0), __ccgo_fp(_binCollFunc), uintptr(0))
- _createCollation(tls, db, __ccgo_ts+24037, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_nocaseCollatingFunc), uintptr(0))
- _createCollation(tls, db, __ccgo_ts+26440, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_rtrimCollFunc), uintptr(0))
+ _createCollation(tls, db, __ccgo_ts+24066, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_nocaseCollatingFunc), uintptr(0))
+ _createCollation(tls, db, __ccgo_ts+26469, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_rtrimCollFunc), uintptr(0))
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
goto opendb_out
}
@@ -241405,7 +241452,7 @@ func _openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, _flags uint32
/* READWRITE */
/* READWRITE | CREATE */
if int32(1)<<(*(*uint32)(unsafe.Pointer(bp))&uint32(7))&int32(0x46) == 0 {
- rc = _sqlite3MisuseError(tls, int32(186072)) /* IMP: R-18321-05872 */
+ rc = _sqlite3MisuseError(tls, int32(186122)) /* IMP: R-18321-05872 */
} else {
if zFilename == uintptr(0) {
zFilename = __ccgo_ts + 5652
@@ -241446,7 +241493,7 @@ func _openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, _flags uint32
*/
(*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FzDbSName = __ccgo_ts + 8107
(*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).Fsafety_level = uint8(libc.Int32FromInt32(SQLITE_DEFAULT_SYNCHRONOUS) + libc.Int32FromInt32(1))
- (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FzDbSName = __ccgo_ts + 25435
+ (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FzDbSName = __ccgo_ts + 25464
(*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).Fsafety_level = uint8(PAGER_SYNCHRONOUS_OFF)
(*Tsqlite3)(unsafe.Pointer(db)).FeOpenState = uint8(SQLITE_STATE_OPEN)
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -241540,7 +241587,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) (r int32) {
return rc
}
if zFilename == uintptr(0) {
- zFilename = __ccgo_ts + 26446
+ zFilename = __ccgo_ts + 26475
}
pVal = _sqlite3ValueNew(tls, uintptr(0))
_sqlite3ValueSetStr(tls, pVal, -int32(1), zFilename, uint8(SQLITE_UTF16LE), libc.UintptrFromInt32(0))
@@ -241757,20 +241804,20 @@ func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) (r int32) {
func _sqlite3ReportError(tls *libc.TLS, iErr int32, lineno int32, zType uintptr) (r int32) {
bp := tls.Alloc(32)
defer tls.Free(32)
- Xsqlite3_log(tls, iErr, __ccgo_ts+26449, libc.VaList(bp+8, zType, lineno, uintptr(20)+Xsqlite3_sourceid(tls)))
+ Xsqlite3_log(tls, iErr, __ccgo_ts+26478, libc.VaList(bp+8, zType, lineno, uintptr(20)+Xsqlite3_sourceid(tls)))
return iErr
}
func _sqlite3CorruptError(tls *libc.TLS, lineno int32) (r int32) {
- return _sqlite3ReportError(tls, int32(SQLITE_CORRUPT), lineno, __ccgo_ts+26474)
+ return _sqlite3ReportError(tls, int32(SQLITE_CORRUPT), lineno, __ccgo_ts+26503)
}
func _sqlite3MisuseError(tls *libc.TLS, lineno int32) (r int32) {
- return _sqlite3ReportError(tls, int32(SQLITE_MISUSE), lineno, __ccgo_ts+26494)
+ return _sqlite3ReportError(tls, int32(SQLITE_MISUSE), lineno, __ccgo_ts+26523)
}
func _sqlite3CantopenError(tls *libc.TLS, lineno int32) (r int32) {
- return _sqlite3ReportError(tls, int32(SQLITE_CANTOPEN), lineno, __ccgo_ts+26501)
+ return _sqlite3ReportError(tls, int32(SQLITE_CANTOPEN), lineno, __ccgo_ts+26530)
}
// C documentation
@@ -241890,7 +241937,7 @@ error_out:
}
if SQLITE_OK == rc && !(pTab != 0) {
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp)))
- *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+26518, libc.VaList(bp+16, zTableName, zColumnName))
+ *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+26547, libc.VaList(bp+16, zTableName, zColumnName))
rc = int32(SQLITE_ERROR)
}
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
@@ -242918,7 +242965,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) (r int32) {
var _ /* nOpt at bp+0 */ int32
_, _, _ = azCompileOpt, i, n
azCompileOpt = _sqlite3CompileOptions(tls, bp)
- if Xsqlite3_strnicmp(tls, zOptName, __ccgo_ts+26546, int32(7)) == 0 {
+ if Xsqlite3_strnicmp(tls, zOptName, __ccgo_ts+26575, int32(7)) == 0 {
zOptName += uintptr(7)
}
n = _sqlite3Strlen30(tls, zOptName)
@@ -243136,7 +243183,7 @@ func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, _pArg ui
}
_leaveMutex(tls)
if rc != 0 {
- v2 = __ccgo_ts + 26554
+ v2 = __ccgo_ts + 26583
} else {
v2 = uintptr(0)
}
@@ -244034,8 +244081,8 @@ var _jsonbType = [17]uintptr{
8: __ccgo_ts + 9780,
9: __ccgo_ts + 9780,
10: __ccgo_ts + 9780,
- 11: __ccgo_ts + 26577,
- 12: __ccgo_ts + 26583,
+ 11: __ccgo_ts + 26606,
+ 12: __ccgo_ts + 26612,
13: __ccgo_ts + 1674,
14: __ccgo_ts + 1674,
15: __ccgo_ts + 1674,
@@ -244957,7 +245004,7 @@ func _jsonAppendSqlValue(tls *libc.TLS, p uintptr, pValue uintptr) {
case int32(SQLITE_NULL):
_jsonAppendRawNZ(tls, p, __ccgo_ts+1660, uint32(4))
case int32(SQLITE_FLOAT):
- _jsonPrintf(tls, int32(100), p, __ccgo_ts+16879, libc.VaList(bp+80, Xsqlite3_value_double(tls, pValue)))
+ _jsonPrintf(tls, int32(100), p, __ccgo_ts+16908, libc.VaList(bp+80, Xsqlite3_value_double(tls, pValue)))
case int32(SQLITE_INTEGER):
z = Xsqlite3_value_text(tls, pValue)
n = uint32(Xsqlite3_value_bytes(tls, pValue))
@@ -244976,7 +245023,7 @@ func _jsonAppendSqlValue(tls *libc.TLS, p uintptr, pValue uintptr) {
_jsonTranslateBlobToText(tls, bp, uint32(0), p)
} else {
if int32((*TJsonString)(unsafe.Pointer(p)).FeErr) == 0 {
- Xsqlite3_result_error(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx, __ccgo_ts+26590, -int32(1))
+ Xsqlite3_result_error(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx, __ccgo_ts+26619, -int32(1))
(*TJsonString)(unsafe.Pointer(p)).FeErr = uint8(JSTRING_ERR)
_jsonStringReset(tls, p)
}
@@ -245030,7 +245077,7 @@ func _jsonReturnString(tls *libc.TLS, p uintptr, pParse uintptr, ctx uintptr) {
Xsqlite3_result_error_nomem(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx)
} else {
if int32((*TJsonString)(unsafe.Pointer(p)).FeErr)&int32(JSTRING_MALFORMED) != 0 {
- Xsqlite3_result_error(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx, __ccgo_ts+26648, -int32(1))
}
}
}
@@ -245313,8 +245360,8 @@ var _aNanInfName = [5]TNanInfName{
Fn: int8(3),
FeType: int8(JSONB_FLOAT),
FnRepl: int8(7),
- FzMatch: __ccgo_ts + 26634,
- FzRepl: __ccgo_ts + 26638,
+ FzMatch: __ccgo_ts + 26663,
+ FzRepl: __ccgo_ts + 26667,
},
1: {
Fc1: int8('i'),
@@ -245322,8 +245369,8 @@ var _aNanInfName = [5]TNanInfName{
Fn: int8(8),
FeType: int8(JSONB_FLOAT),
FnRepl: int8(7),
- FzMatch: __ccgo_ts + 26646,
- FzRepl: __ccgo_ts + 26638,
+ FzMatch: __ccgo_ts + 26675,
+ FzRepl: __ccgo_ts + 26667,
},
2: {
Fc1: int8('n'),
@@ -245338,7 +245385,7 @@ var _aNanInfName = [5]TNanInfName{
Fc2: int8('Q'),
Fn: int8(4),
FnRepl: int8(4),
- FzMatch: __ccgo_ts + 26655,
+ FzMatch: __ccgo_ts + 26684,
FzRepl: __ccgo_ts + 1660,
},
4: {
@@ -245346,7 +245393,7 @@ var _aNanInfName = [5]TNanInfName{
Fc2: int8('S'),
Fn: int8(4),
FnRepl: int8(4),
- FzMatch: __ccgo_ts + 26660,
+ FzMatch: __ccgo_ts + 26689,
FzRepl: __ccgo_ts + 1660,
},
}
@@ -245362,7 +245409,7 @@ func _jsonWrongNumArgs(tls *libc.TLS, pCtx uintptr, zFuncName uintptr) {
defer tls.Free(16)
var zMsg uintptr
_ = zMsg
- zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+26665, libc.VaList(bp+8, zFuncName))
+ zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+26694, libc.VaList(bp+8, zFuncName))
Xsqlite3_result_error(tls, pCtx, zMsg, -int32(1))
Xsqlite3_free(tls, zMsg)
}
@@ -245824,7 +245871,7 @@ func _jsonbValidityCheck(tls *libc.TLS, pParse uintptr, i Tu32, iEnd Tu32, iDept
if int32(*(*Tu8)(unsafe.Pointer(z + uintptr(j)))) != int32('\\') || j+uint32(1) >= k {
return j + uint32(1)
} else {
- if libc.Xstrchr(tls, __ccgo_ts+26708, int32(*(*Tu8)(unsafe.Pointer(z + uintptr(j+uint32(1)))))) != uintptr(0) {
+ if libc.Xstrchr(tls, __ccgo_ts+26737, int32(*(*Tu8)(unsafe.Pointer(z + uintptr(j+uint32(1)))))) != uintptr(0) {
j++
} else {
if int32(*(*Tu8)(unsafe.Pointer(z + uintptr(j+uint32(1))))) == int32('u') {
@@ -246378,14 +246425,14 @@ parse_number:
/* JSON5 allows for "+Infinity" and "-Infinity" using exactly
** that case. SQLite also allows these in any case and it allows
** "+inf" and "-inf". */
- if (int32(*(*int8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('I') || int32(*(*int8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('i')) && Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(1)), __ccgo_ts+26634, int32(3)) == 0 {
+ if (int32(*(*int8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('I') || int32(*(*int8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('i')) && Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(1)), __ccgo_ts+26663, int32(3)) == 0 {
(*TJsonParse)(unsafe.Pointer(pParse)).FhasNonstd = uint8(1)
if int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == int32('-') {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+26717)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+26746)
} else {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+26724)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+26753)
}
- if Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(4)), __ccgo_ts+26730, int32(5)) == 0 {
+ if Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(4)), __ccgo_ts+26759, int32(5)) == 0 {
v48 = int32(9)
} else {
v48 = int32(4)
@@ -246570,7 +246617,7 @@ _38:
goto _51
}
if int32(_aNanInfName[k1].FeType) == int32(JSONB_FLOAT) {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+26724)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+26753)
} else {
_jsonBlobAppendOneByte(tls, pParse, uint8(JSONB_NULL))
}
@@ -246615,7 +246662,7 @@ func _jsonConvertTextToBlob(tls *libc.TLS, pParse uintptr, pCtx uintptr) (r int3
i += _json5Whitespace(tls, zJson+uintptr(i))
if *(*int8)(unsafe.Pointer(zJson + uintptr(i))) != 0 {
if pCtx != 0 {
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26648, -int32(1))
}
_jsonParseReset(tls, pParse)
return int32(1)
@@ -246628,7 +246675,7 @@ func _jsonConvertTextToBlob(tls *libc.TLS, pParse uintptr, pCtx uintptr) (r int3
if (*TJsonParse)(unsafe.Pointer(pParse)).Foom != 0 {
Xsqlite3_result_error_nomem(tls, pCtx)
} else {
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26648, -int32(1))
}
}
_jsonParseReset(tls, pParse)
@@ -246844,9 +246891,9 @@ _7:
k++
}
if bOverflow != 0 {
- v19 = __ccgo_ts + 26638
+ v19 = __ccgo_ts + 26667
} else {
- v19 = __ccgo_ts + 13336
+ v19 = __ccgo_ts + 13365
}
_jsonPrintf(tls, int32(100), pOut, v19, libc.VaList(bp+16, u))
goto _16
@@ -246914,7 +246961,7 @@ _11:
sz2 -= k2
}
if int32(*(*int8)(unsafe.Pointer(zIn2))) == int32('"') {
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26736, uint32(2))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26765, uint32(2))
zIn2++
sz2--
continue
@@ -246937,7 +246984,7 @@ _11:
case int32('\''):
_jsonAppendChar(tls, pOut, int8('\''))
case int32('v'):
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26739, uint32(6))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26768, uint32(6))
case int32('x'):
if sz2 < uint32(4) {
p23 = pOut + 33
@@ -246945,12 +246992,12 @@ _11:
sz2 = uint32(2)
break
}
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26746, uint32(4))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26775, uint32(4))
_jsonAppendRawNZ(tls, pOut, zIn2+2, uint32(2))
zIn2 += uintptr(2)
sz2 -= uint32(2)
case int32('0'):
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26751, uint32(6))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26780, uint32(6))
case int32('\r'):
if sz2 > uint32(2) && int32(*(*int8)(unsafe.Pointer(zIn2 + 2))) == int32('\n') {
zIn2++
@@ -247130,7 +247177,7 @@ func _jsonTranslateBlobToPrettyText(tls *libc.TLS, pPretty uintptr, i Tu32) (r T
if j >= iEnd {
break
}
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26758, uint32(2))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26787, uint32(2))
}
_jsonAppendChar(tls, pOut, int8('\n'))
(*TJsonPretty)(unsafe.Pointer(pPretty)).FnIndent--
@@ -247153,12 +247200,12 @@ func _jsonTranslateBlobToPrettyText(tls *libc.TLS, pPretty uintptr, i Tu32) (r T
*(*Tu8)(unsafe.Pointer(p2)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p2))) | libc.Int32FromInt32(JSTRING_MALFORMED))
break
}
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26761, uint32(2))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26790, uint32(2))
j = _jsonTranslateBlobToPrettyText(tls, pPretty, j)
if j >= iEnd {
break
}
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26758, uint32(2))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+26787, uint32(2))
}
_jsonAppendChar(tls, pOut, int8('\n'))
(*TJsonPretty)(unsafe.Pointer(pPretty)).FnIndent--
@@ -247941,7 +247988,7 @@ func _jsonReturnFromBlob(tls *libc.TLS, pParse uintptr, i Tu32, pCtx uintptr, te
db = Xsqlite3_context_db_handle(tls, pCtx)
n = _jsonbPayloadSize(tls, pParse, i, bp)
if n == uint32(0) {
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26648, -int32(1))
return
}
switch int32(*(*Tu8)(unsafe.Pointer((*TJsonParse)(unsafe.Pointer(pParse)).FaBlob + uintptr(i)))) & libc.Int32FromInt32(0x0f) {
@@ -248177,7 +248224,7 @@ returnfromblob_oom:
goto returnfromblob_malformed
returnfromblob_malformed:
;
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+26648, -int32(1))
return
}
@@ -248215,7 +248262,7 @@ func _jsonFunctionArgToBlob(tls *libc.TLS, ctx uintptr, pArg uintptr, pParse uin
return 0
case int32(SQLITE_BLOB):
if !(_jsonArgIsJsonb(tls, pArg, pParse) != 0) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26590, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
return int32(1)
}
case int32(SQLITE_TEXT):
@@ -248228,7 +248275,7 @@ func _jsonFunctionArgToBlob(tls *libc.TLS, ctx uintptr, pArg uintptr, pParse uin
(*TJsonParse)(unsafe.Pointer(pParse)).FzJson = zJson
(*TJsonParse)(unsafe.Pointer(pParse)).FnJson = nJson
if _jsonConvertTextToBlob(tls, pParse, ctx) != 0 {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
_sqlite3DbFree(tls, (*TJsonParse)(unsafe.Pointer(pParse)).Fdb, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob)
libc.Xmemset(tls, pParse, 0, uint64(72))
return int32(1)
@@ -248247,10 +248294,10 @@ func _jsonFunctionArgToBlob(tls *libc.TLS, ctx uintptr, pArg uintptr, pParse uin
return int32(1)
}
if int32(*(*int8)(unsafe.Pointer(z))) == int32('I') {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+26724)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+26753)
} else {
if int32(*(*int8)(unsafe.Pointer(z))) == int32('-') && int32(*(*int8)(unsafe.Pointer(z + 1))) == int32('I') {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+26717)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+26746)
} else {
_jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(n), z)
}
@@ -248289,7 +248336,7 @@ func _jsonBadPathError(tls *libc.TLS, ctx uintptr, zPath uintptr) (r uintptr) {
defer tls.Free(16)
var zMsg uintptr
_ = zMsg
- zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+26764, libc.VaList(bp+8, zPath))
+ zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+26793, libc.VaList(bp+8, zPath))
if ctx == uintptr(0) {
return zMsg
}
@@ -248386,7 +248433,7 @@ jsonInsertIntoBlob_patherror:
;
_jsonParseFree(tls, p)
if rc == uint32(JSON_LOOKUP_ERROR) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
} else {
_jsonBadPathError(tls, ctx, zPath)
}
@@ -248588,7 +248635,7 @@ json_pfa_malformed:
return p
} else {
_jsonParseFree(tls, p)
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
return uintptr(0)
}
goto json_pfa_oom
@@ -248723,7 +248770,7 @@ func _jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr)
if int32(*(*int8)(unsafe.Pointer(zPath))) == int32('$') {
v1 = zPath + uintptr(1)
} else {
- v1 = __ccgo_ts + 26782
+ v1 = __ccgo_ts + 26811
}
i = _jsonLookupStep(tls, p, uint32(0), v1, uint32(0))
if i >= uint32(JSON_LOOKUP_PATHERROR) {
@@ -248733,7 +248780,7 @@ func _jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr)
if i == uint32(JSON_LOOKUP_PATHERROR) {
_jsonBadPathError(tls, ctx, zPath)
} else {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
}
}
eErr = uint8(1)
@@ -248843,9 +248890,9 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
*/
_jsonStringInit(tls, bp, ctx)
if Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) == int32(SQLITE_INTEGER) {
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+26784, uint32(1))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+26813, uint32(1))
if int32(*(*int8)(unsafe.Pointer(zPath))) == int32('-') {
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+26786, uint32(1))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+26815, uint32(1))
}
_jsonAppendRaw(tls, bp, zPath, uint32(nPath))
_jsonAppendRawNZ(tls, bp, __ccgo_ts+6623, uint32(2))
@@ -248857,9 +248904,9 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
if int32(*(*int8)(unsafe.Pointer(zPath))) == int32('[') && nPath >= int32(3) && int32(*(*int8)(unsafe.Pointer(zPath + uintptr(nPath-int32(1))))) == int32(']') {
_jsonAppendRaw(tls, bp, zPath, uint32(nPath))
} else {
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+26788, uint32(2))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+26817, uint32(2))
_jsonAppendRaw(tls, bp, zPath, uint32(nPath))
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+26791, uint32(1))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+26820, uint32(1))
}
}
}
@@ -248899,7 +248946,7 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
} else {
if j == uint32(JSON_LOOKUP_ERROR) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
goto json_extract_error
} else {
_jsonBadPathError(tls, ctx, zPath)
@@ -249167,7 +249214,7 @@ func _jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
if rc == int32(JSON_MERGE_OOM) {
Xsqlite3_result_error_nomem(tls, ctx)
} else {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
}
}
_jsonParseFree(tls, pPatch)
@@ -249191,7 +249238,7 @@ func _jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
var _ /* jx at bp+0 */ TJsonString
_, _, _ = i, n, z
if argc&int32(1) != 0 {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26793, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26822, -int32(1))
return
}
_jsonStringInit(tls, bp, ctx)
@@ -249202,7 +249249,7 @@ func _jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
break
}
if Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) != int32(SQLITE_TEXT) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26844, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26873, -int32(1))
_jsonStringReset(tls, bp)
return
}
@@ -249274,7 +249321,7 @@ func _jsonRemoveFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
if rc == uint32(JSON_LOOKUP_PATHERROR) {
_jsonBadPathError(tls, ctx, zPath)
} else {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
}
}
goto json_remove_done
@@ -249311,7 +249358,7 @@ func _jsonReplaceFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
return
}
if argc&int32(1) == 0 {
- _jsonWrongNumArgs(tls, ctx, __ccgo_ts+17399)
+ _jsonWrongNumArgs(tls, ctx, __ccgo_ts+17428)
return
}
_jsonInsertIntoBlob(tls, ctx, argc, argv, int32(JEDIT_REPL))
@@ -249342,9 +249389,9 @@ func _jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
if argc&int32(1) == 0 {
if bIsSet != 0 {
- v1 = __ccgo_ts + 26878
+ v1 = __ccgo_ts + 26907
} else {
- v1 = __ccgo_ts + 26882
+ v1 = __ccgo_ts + 26911
}
_jsonWrongNumArgs(tls, ctx, v1)
return
@@ -249392,7 +249439,7 @@ func _jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
if i == uint32(JSON_LOOKUP_PATHERROR) {
_jsonBadPathError(tls, ctx, zPath)
} else {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26619, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26648, -int32(1))
}
}
goto json_type_done
@@ -249439,7 +249486,7 @@ func _jsonPrettyFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
(*(*TJsonPretty)(unsafe.Pointer(bp + 136))).FzIndent = v1
}
if v2 || v1 == uintptr(0) {
- (*(*TJsonPretty)(unsafe.Pointer(bp + 136))).FzIndent = __ccgo_ts + 26889
+ (*(*TJsonPretty)(unsafe.Pointer(bp + 136))).FzIndent = __ccgo_ts + 26918
(*(*TJsonPretty)(unsafe.Pointer(bp + 136))).FszIndent = uint32(4)
} else {
(*(*TJsonPretty)(unsafe.Pointer(bp + 136))).FszIndent = uint32(libc.Xstrlen(tls, (*(*TJsonPretty)(unsafe.Pointer(bp + 136))).FzIndent))
@@ -249522,7 +249569,7 @@ func _jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
if argc == int32(2) {
f = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8)))
if f < int64(1) || f > int64(15) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+26894, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+26923, -int32(1))
return
}
flags = uint8(f & int64(0x0f))
@@ -249710,7 +249757,7 @@ func _jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) {
}
}
} else {
- Xsqlite3_result_text(tls, ctx, __ccgo_ts+26951, int32(2), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, ctx, __ccgo_ts+26980, int32(2), libc.UintptrFromInt32(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
@@ -249861,7 +249908,7 @@ func _jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) {
}
}
} else {
- Xsqlite3_result_text(tls, ctx, __ccgo_ts+26954, int32(2), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, ctx, __ccgo_ts+26983, int32(2), libc.UintptrFromInt32(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
@@ -249964,7 +250011,7 @@ func _jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv
_ = argv
_ = argc
_ = pAux
- rc = Xsqlite3_declare_vtab(tls, db, __ccgo_ts+26957)
+ rc = Xsqlite3_declare_vtab(tls, db, __ccgo_ts+26986)
if rc == SQLITE_OK {
pNew = _sqlite3DbMallocZero(tls, db, uint64(32))
*(*uintptr)(unsafe.Pointer(ppVtab)) = pNew
@@ -250098,7 +250145,7 @@ func _jsonAppendPathName(tls *libc.TLS, p uintptr) {
var _ /* sz at bp+0 */ Tu32
_, _, _, _, _ = i, k, n, needQuote, z
if int32((*TJsonEachCursor)(unsafe.Pointer(p)).FeType) == int32(JSONB_ARRAY) {
- _jsonPrintf(tls, int32(30), p+56, __ccgo_ts+27040, libc.VaList(bp+16, (*(*TJsonParent)(unsafe.Pointer((*TJsonEachCursor)(unsafe.Pointer(p)).FaParent + uintptr((*TJsonEachCursor)(unsafe.Pointer(p)).FnParent-uint32(1))*24))).FiKey))
+ _jsonPrintf(tls, int32(30), p+56, __ccgo_ts+27069, libc.VaList(bp+16, (*(*TJsonParent)(unsafe.Pointer((*TJsonEachCursor)(unsafe.Pointer(p)).FaParent + uintptr((*TJsonEachCursor)(unsafe.Pointer(p)).FnParent-uint32(1))*24))).FiKey))
} else {
*(*Tu32)(unsafe.Pointer(bp)) = uint32(0)
needQuote = 0
@@ -250124,9 +250171,9 @@ func _jsonAppendPathName(tls *libc.TLS, p uintptr) {
}
}
if needQuote != 0 {
- _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(4)), p+56, __ccgo_ts+27047, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
+ _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(4)), p+56, __ccgo_ts+27076, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
} else {
- _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(2)), p+56, __ccgo_ts+27055, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
+ _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(2)), p+56, __ccgo_ts+27084, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
}
}
}
@@ -250511,7 +250558,7 @@ func _jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, a
i = v5
(*TJsonEachCursor)(unsafe.Pointer(p)).FeType = uint8(0)
(*TJsonEachCursor)(unsafe.Pointer(p)).FnRoot = uint32(1)
- _jsonAppendRaw(tls, p+56, __ccgo_ts+27061, uint32(1))
+ _jsonAppendRaw(tls, p+56, __ccgo_ts+27090, uint32(1))
}
(*TJsonEachCursor)(unsafe.Pointer(p)).FnParent = uint32(0)
n = _jsonbPayloadSize(tls, p+192, i, bp)
@@ -250535,7 +250582,7 @@ func _jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, a
json_each_malformed_input:
;
Xsqlite3_free(tls, (*Tsqlite3_vtab)(unsafe.Pointer((*Tsqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg)
- (*Tsqlite3_vtab)(unsafe.Pointer((*Tsqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+26619, 0)
+ (*Tsqlite3_vtab)(unsafe.Pointer((*Tsqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+26648, 0)
_jsonEachCursorReset(tls, p)
if (*Tsqlite3_vtab)(unsafe.Pointer((*Tsqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 {
v6 = int32(SQLITE_ERROR)
@@ -250596,186 +250643,186 @@ var _aJsonFunc = [34]TFuncDef{
0: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27063,
+ FzName: __ccgo_ts + 27092,
},
1: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27068,
+ FzName: __ccgo_ts + 27097,
},
2: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27074,
+ FzName: __ccgo_ts + 27103,
},
3: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27085,
+ FzName: __ccgo_ts + 27114,
},
4: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27097,
+ FzName: __ccgo_ts + 27126,
},
5: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27097,
+ FzName: __ccgo_ts + 27126,
},
6: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27115,
+ FzName: __ccgo_ts + 27144,
},
7: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27135,
+ FzName: __ccgo_ts + 27164,
},
8: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27148,
+ FzName: __ccgo_ts + 27177,
},
9: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(JSON_JSON) | libc.Int32FromInt32(0)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27162,
+ FzName: __ccgo_ts + 27191,
},
10: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(JSON_SQL) | libc.Int32FromInt32(0)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27165,
+ FzName: __ccgo_ts + 27194,
},
11: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27169,
+ FzName: __ccgo_ts + 27198,
},
12: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27181,
+ FzName: __ccgo_ts + 27210,
},
13: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27194,
+ FzName: __ccgo_ts + 27223,
},
14: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27206,
+ FzName: __ccgo_ts + 27235,
},
15: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27219,
+ FzName: __ccgo_ts + 27248,
},
16: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27230,
+ FzName: __ccgo_ts + 27259,
},
17: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27242,
+ FzName: __ccgo_ts + 27271,
},
18: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27242,
+ FzName: __ccgo_ts + 27271,
},
19: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27254,
+ FzName: __ccgo_ts + 27283,
},
20: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27265,
+ FzName: __ccgo_ts + 27294,
},
21: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27277,
+ FzName: __ccgo_ts + 27306,
},
22: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27290,
+ FzName: __ccgo_ts + 27319,
},
23: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(0) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27303,
+ FzName: __ccgo_ts + 27332,
},
24: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(JSON_ISSET) | libc.Int32FromInt32(0)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27317,
+ FzName: __ccgo_ts + 27346,
},
25: {
FnArg: int16(-int32(1)),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
FpUserData: uintptr(int64(libc.Int32FromInt32(JSON_ISSET) | libc.Int32FromInt32(1)*libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27326,
+ FzName: __ccgo_ts + 27355,
},
26: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27336,
+ FzName: __ccgo_ts + 27365,
},
27: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27336,
+ FzName: __ccgo_ts + 27365,
},
28: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27346,
+ FzName: __ccgo_ts + 27375,
},
29: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_DETERMINISTIC) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(1)*libc.Int32FromInt32(SQLITE_FUNC_RUNONLY) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)),
- FzName: __ccgo_ts + 27346,
+ FzName: __ccgo_ts + 27375,
},
30: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DETERMINISTIC)),
- FzName: __ccgo_ts + 27357,
+ FzName: __ccgo_ts + 27386,
},
31: {
FnArg: int16(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DETERMINISTIC)),
FpUserData: uintptr(int64(libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27374,
+ FzName: __ccgo_ts + 27403,
},
32: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DETERMINISTIC)),
- FzName: __ccgo_ts + 27392,
+ FzName: __ccgo_ts + 27421,
},
33: {
FnArg: int16(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL) | libc.Int32FromInt32(SQLITE_SUBTYPE) | libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DETERMINISTIC)),
FpUserData: uintptr(int64(libc.Int32FromInt32(JSON_BLOB))),
- FzName: __ccgo_ts + 27410,
+ FzName: __ccgo_ts + 27439,
},
}
@@ -250858,11 +250905,11 @@ var _aMod = [2]struct {
FpModule uintptr
}{
0: {
- FzName: __ccgo_ts + 27429,
+ FzName: __ccgo_ts + 27458,
FpModule: uintptr(unsafe.Pointer(&_jsonEachModule)),
},
1: {
- FzName: __ccgo_ts + 27439,
+ FzName: __ccgo_ts + 27468,
FpModule: uintptr(unsafe.Pointer(&_jsonTreeModule)),
},
}
@@ -251510,7 +251557,7 @@ func _nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode Ti64, pParent uintptr, pp
}
}
if (*TRtree)(unsafe.Pointer(pRtree)).FpNodeBlob == uintptr(0) {
- rc = Xsqlite3_blob_open(tls, (*TRtree)(unsafe.Pointer(pRtree)).Fdb, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName, __ccgo_ts+27449, iNode, 0, pRtree+112)
+ rc = Xsqlite3_blob_open(tls, (*TRtree)(unsafe.Pointer(pRtree)).Fdb, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName, __ccgo_ts+27478, iNode, 0, pRtree+112)
}
if rc != 0 {
*(*uintptr)(unsafe.Pointer(ppNode)) = uintptr(0)
@@ -251815,7 +251862,7 @@ func _rtreeDestroy(tls *libc.TLS, pVtab uintptr) (r int32) {
var rc int32
_, _, _ = pRtree, rc, zCreate
pRtree = pVtab
- zCreate = Xsqlite3_mprintf(tls, __ccgo_ts+27454, libc.VaList(bp+8, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ zCreate = Xsqlite3_mprintf(tls, __ccgo_ts+27483, libc.VaList(bp+8, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
if !(zCreate != 0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -252732,7 +252779,7 @@ func _findLeafNode(tls *libc.TLS, pRtree uintptr, iRowid Ti64, ppLeaf uintptr, p
func _deserializeGeometry(tls *libc.TLS, pValue uintptr, pCons uintptr) (r int32) {
var pBlob, pInfo, pSrc uintptr
_, _, _ = pBlob, pInfo, pSrc /* Callback information */
- pSrc = Xsqlite3_value_pointer(tls, pValue, __ccgo_ts+27536)
+ pSrc = Xsqlite3_value_pointer(tls, pValue, __ccgo_ts+27565)
if pSrc == uintptr(0) {
return int32(SQLITE_ERROR)
}
@@ -254267,7 +254314,7 @@ func _rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) (r int32)
var _ /* pStmt at bp+0 */ uintptr
_, _, _, _, _, _ = rc, zCol, zCol1, zCol2, zSql, v1
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27550, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27579, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
if zSql != 0 {
rc = Xsqlite3_prepare_v2(tls, (*TRtree)(unsafe.Pointer(pRtree)).Fdb, zSql, -int32(1), bp, uintptr(0))
} else {
@@ -254277,11 +254324,11 @@ func _rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) (r int32)
if rc == SQLITE_OK {
if iCol == 0 {
zCol = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
- (*TRtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+27570, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol))
+ (*TRtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+27599, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol))
} else {
zCol1 = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp)), iCol)
zCol2 = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp)), iCol+int32(1))
- (*TRtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+27602, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
+ (*TRtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+27631, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
}
}
Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -254495,7 +254542,7 @@ func _rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) (r int32) {
_, _, _ = pRtree, rc, zSql
pRtree = pVtab
rc = int32(SQLITE_NOMEM)
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27639, libc.VaList(bp+8, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zNewName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27668, libc.VaList(bp+8, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zNewName))
if zSql != 0 {
_nodeBlobReset(tls, pRtree)
rc = Xsqlite3_exec(tls, (*TRtree)(unsafe.Pointer(pRtree)).Fdb, zSql, uintptr(0), uintptr(0), uintptr(0))
@@ -254549,9 +254596,9 @@ func _rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) (r int32) {
var v2 int64
var _ /* p at bp+0 */ uintptr
_, _, _, _, _, _ = nRow, rc, zFmt, zSql, v1, v2
- zFmt = __ccgo_ts + 27784
+ zFmt = __ccgo_ts + 27813
nRow = int64(RTREE_MIN_ROWEST)
- rc = Xsqlite3_table_column_metadata(tls, db, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, __ccgo_ts+13165, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_table_column_metadata(tls, db, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, __ccgo_ts+13194, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
if rc != SQLITE_OK {
(*TRtree)(unsafe.Pointer(pRtree)).FnRowEst = int64(RTREE_DEFAULT_ROWEST)
if rc == int32(SQLITE_ERROR) {
@@ -254609,9 +254656,9 @@ func _rtreeShadowName(tls *libc.TLS, zName uintptr) (r int32) {
}
var _azName1 = [3]uintptr{
- 0: __ccgo_ts + 27840,
+ 0: __ccgo_ts + 27869,
1: __ccgo_ts + 6962,
- 2: __ccgo_ts + 18295,
+ 2: __ccgo_ts + 18324,
}
var _rtreeModule = Tsqlite3_module{
@@ -254655,21 +254702,21 @@ func _rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPref
(*TRtree)(unsafe.Pointer(pRtree)).Fdb = db
if isCreate != 0 {
p = Xsqlite3_str_new(tls, db)
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+28254, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+28283, libc.VaList(bp+8, zDb, zPrefix))
ii = 0
for {
if !(ii < int32((*TRtree)(unsafe.Pointer(pRtree)).FnAux)) {
break
}
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+28316, libc.VaList(bp+8, ii))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+28345, libc.VaList(bp+8, ii))
goto _1
_1:
;
ii++
}
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+28321, libc.VaList(bp+8, zDb, zPrefix))
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+28385, libc.VaList(bp+8, zDb, zPrefix))
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+28455, libc.VaList(bp+8, zDb, zPrefix, (*TRtree)(unsafe.Pointer(pRtree)).FiNodeSize))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+28350, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+28414, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+28484, libc.VaList(bp+8, zDb, zPrefix, (*TRtree)(unsafe.Pointer(pRtree)).FiNodeSize))
zCreate = Xsqlite3_str_finish(tls, p)
if !(zCreate != 0) {
return int32(SQLITE_NOMEM)
@@ -254699,7 +254746,7 @@ func _rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPref
} else {
/* An UPSERT is very slightly slower than REPLACE, but it is needed
** if there are auxiliary columns */
- zFormat = __ccgo_ts + 28504
+ zFormat = __ccgo_ts + 28533
}
zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+8, zDb, zPrefix))
if zSql != 0 {
@@ -254714,31 +254761,31 @@ func _rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPref
i++
}
if (*TRtree)(unsafe.Pointer(pRtree)).FnAux != 0 && rc != int32(SQLITE_NOMEM) {
- (*TRtree)(unsafe.Pointer(pRtree)).FzReadAuxSql = Xsqlite3_mprintf(tls, __ccgo_ts+28612, libc.VaList(bp+8, zDb, zPrefix))
+ (*TRtree)(unsafe.Pointer(pRtree)).FzReadAuxSql = Xsqlite3_mprintf(tls, __ccgo_ts+28641, libc.VaList(bp+8, zDb, zPrefix))
if (*TRtree)(unsafe.Pointer(pRtree)).FzReadAuxSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
p1 = Xsqlite3_str_new(tls, db)
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28657, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28686, libc.VaList(bp+8, zDb, zPrefix))
ii1 = 0
for {
if !(ii1 < int32((*TRtree)(unsafe.Pointer(pRtree)).FnAux)) {
break
}
if ii1 != 0 {
- Xsqlite3_str_append(tls, p1, __ccgo_ts+14673, int32(1))
+ Xsqlite3_str_append(tls, p1, __ccgo_ts+14702, int32(1))
}
if ii1 < int32((*TRtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) {
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28684, libc.VaList(bp+8, ii1, ii1+int32(2), ii1))
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28713, libc.VaList(bp+8, ii1, ii1+int32(2), ii1))
} else {
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28706, libc.VaList(bp+8, ii1, ii1+int32(2)))
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28735, libc.VaList(bp+8, ii1, ii1+int32(2)))
}
goto _3
_3:
;
ii1++
}
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28714, 0)
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+28743, 0)
zSql1 = Xsqlite3_str_finish(tls, p1)
if zSql1 == uintptr(0) {
rc = int32(SQLITE_NOMEM)
@@ -254752,14 +254799,14 @@ func _rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPref
}
var _azSql = [8]uintptr{
- 0: __ccgo_ts + 27845,
- 1: __ccgo_ts + 27898,
- 2: __ccgo_ts + 27943,
- 3: __ccgo_ts + 27995,
- 4: __ccgo_ts + 28049,
- 5: __ccgo_ts + 28094,
- 6: __ccgo_ts + 28152,
- 7: __ccgo_ts + 28207,
+ 0: __ccgo_ts + 27874,
+ 1: __ccgo_ts + 27927,
+ 2: __ccgo_ts + 27972,
+ 3: __ccgo_ts + 28024,
+ 4: __ccgo_ts + 28078,
+ 5: __ccgo_ts + 28123,
+ 6: __ccgo_ts + 28181,
+ 7: __ccgo_ts + 28236,
}
// C documentation
@@ -254817,7 +254864,7 @@ func _getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzE
_, _ = rc, zSql
if isCreate != 0 {
*(*int32)(unsafe.Pointer(bp)) = 0
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+28730, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+28759, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb))
rc = _getIntFromStmt(tls, db, zSql, bp)
if rc == SQLITE_OK {
(*TRtree)(unsafe.Pointer(pRtree)).FiNodeSize = *(*int32)(unsafe.Pointer(bp)) - int32(64)
@@ -254828,14 +254875,14 @@ func _getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzE
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+4829, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
}
} else {
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+28750, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+28779, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
rc = _getIntFromStmt(tls, db, zSql, pRtree+32)
if rc != SQLITE_OK {
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+4829, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
} else {
if (*TRtree)(unsafe.Pointer(pRtree)).FiNodeSize < libc.Int32FromInt32(512)-libc.Int32FromInt32(64) {
rc = libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+28807, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+28836, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
}
}
}
@@ -254883,10 +254930,10 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
eCoordType = v1
ii = int32(4)
aErrMsg = [5]uintptr{
- 1: __ccgo_ts + 28842,
- 2: __ccgo_ts + 28885,
- 3: __ccgo_ts + 28920,
- 4: __ccgo_ts + 28956,
+ 1: __ccgo_ts + 28871,
+ 2: __ccgo_ts + 28914,
+ 3: __ccgo_ts + 28949,
+ 4: __ccgo_ts + 28985,
}
/* Aux columns counted by a u8 */
if argc < int32(6) || argc > libc.Int32FromInt32(RTREE_MAX_AUX_COLUMN)+libc.Int32FromInt32(3) {
@@ -254912,13 +254959,13 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(nDb))
libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzName, *(*uintptr)(unsafe.Pointer(argv + 2*8)), uint64(nName))
libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName, *(*uintptr)(unsafe.Pointer(argv + 2*8)), uint64(nName))
- libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName+uintptr(nName), __ccgo_ts+28993, uint64(6))
+ libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName+uintptr(nName), __ccgo_ts+29022, uint64(6))
/* Create/Connect to the underlying relational database schema. If
** 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, __ccgo_ts+28999, libc.VaList(bp+8, _rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8))))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29028, libc.VaList(bp+8, _rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8))))
ii = int32(4)
for {
if !(ii < argc) {
@@ -254927,7 +254974,7 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
zArg = *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))
if int32(*(*int8)(unsafe.Pointer(zArg))) == int32('+') {
(*TRtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29023, libc.VaList(bp+8, _rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29052, libc.VaList(bp+8, _rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
} else {
if int32((*TRtree)(unsafe.Pointer(pRtree)).FnAux) > 0 {
break
@@ -254941,7 +254988,7 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
;
ii++
}
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29050, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29079, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !(zSql != 0) {
rc = int32(SQLITE_NOMEM)
@@ -255003,8 +255050,8 @@ rtreeInit_fail:
}
var _azFormat = [2]uintptr{
- 0: __ccgo_ts + 29029,
- 1: __ccgo_ts + 29040,
+ 0: __ccgo_ts + 29058,
+ 1: __ccgo_ts + 29069,
}
// C documentation
@@ -255062,21 +255109,21 @@ func _rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) {
}
_nodeGetCell(tls, bp+40, bp, ii, bp+1008)
if ii > 0 {
- Xsqlite3_str_append(tls, pOut, __ccgo_ts+12785, int32(1))
+ Xsqlite3_str_append(tls, pOut, __ccgo_ts+12814, int32(1))
}
- Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+29053, libc.VaList(bp+1064, (*(*TRtreeCell)(unsafe.Pointer(bp + 1008))).FiRowid))
+ Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+29082, libc.VaList(bp+1064, (*(*TRtreeCell)(unsafe.Pointer(bp + 1008))).FiRowid))
jj = 0
for {
if !(jj < int32((*(*TRtree)(unsafe.Pointer(bp + 40))).FnDim2)) {
break
}
- Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+29059, libc.VaList(bp+1064, float64(*(*TRtreeValue)(unsafe.Pointer(bp + 1008 + 8 + uintptr(jj)*4)))))
+ Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+29088, libc.VaList(bp+1064, float64(*(*TRtreeValue)(unsafe.Pointer(bp + 1008 + 8 + uintptr(jj)*4)))))
goto _2
_2:
;
jj++
}
- Xsqlite3_str_append(tls, pOut, __ccgo_ts+29063, int32(1))
+ Xsqlite3_str_append(tls, pOut, __ccgo_ts+29092, int32(1))
goto _1
_1:
;
@@ -255103,7 +255150,7 @@ func _rtreedepth(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) {
_ = zBlob
_ = nArg
if Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apArg))) != int32(SQLITE_BLOB) || Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(apArg))) < int32(2) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+29065, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+29094, -int32(1))
} else {
zBlob = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if zBlob != 0 {
@@ -255225,7 +255272,7 @@ func _rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintpt
} else {
v1 = __ccgo_ts + 1674
}
- (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, __ccgo_ts+29098, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport, v1, z))
+ (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, __ccgo_ts+29127, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport, v1, z))
if (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport == uintptr(0) {
(*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc = int32(SQLITE_NOMEM)
}
@@ -255259,7 +255306,7 @@ func _rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode Ti64, pnNode uintpt
_, _, _ = nNode, pNode, pRet
pRet = uintptr(0) /* Return value */
if (*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK && (*TRtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode == uintptr(0) {
- (*TRtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode = _rtreeCheckPrepare(tls, pCheck, __ccgo_ts+29105, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
+ (*TRtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode = _rtreeCheckPrepare(tls, pCheck, __ccgo_ts+29134, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
}
if (*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK {
Xsqlite3_bind_int64(tls, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode, int32(1), iNode)
@@ -255276,7 +255323,7 @@ func _rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode Ti64, pnNode uintpt
}
_rtreeCheckReset(tls, pCheck, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode)
if (*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK && pRet == uintptr(0) {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29150, libc.VaList(bp+8, iNode))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29179, libc.VaList(bp+8, iNode))
}
}
return pRet
@@ -255305,8 +255352,8 @@ func _rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey Ti64, i
var rc int32
_, _, _, _, _, _ = azSql, ii, pStmt, rc, v1, v2
azSql = [2]uintptr{
- 0: __ccgo_ts + 29182,
- 1: __ccgo_ts + 29236,
+ 0: __ccgo_ts + 29211,
+ 1: __ccgo_ts + 29265,
}
if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) {
*(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) = _rtreeCheckPrepare(tls, pCheck, azSql[bLeaf], libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
@@ -255319,21 +255366,21 @@ func _rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey Ti64, i
rc = Xsqlite3_step(tls, pStmt)
if rc == int32(SQLITE_DONE) {
if bLeaf != 0 {
- v1 = __ccgo_ts + 29284
+ v1 = __ccgo_ts + 29313
} else {
- v1 = __ccgo_ts + 29292
+ v1 = __ccgo_ts + 29321
}
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29301, libc.VaList(bp+8, iKey, iVal, v1))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29330, libc.VaList(bp+8, iKey, iVal, v1))
} else {
if rc == int32(SQLITE_ROW) {
ii = Xsqlite3_column_int64(tls, pStmt, 0)
if ii != iVal {
if bLeaf != 0 {
- v2 = __ccgo_ts + 29284
+ v2 = __ccgo_ts + 29313
} else {
- v2 = __ccgo_ts + 29292
+ v2 = __ccgo_ts + 29321
}
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29346, libc.VaList(bp+8, iKey, ii, v2, iKey, iVal))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29375, libc.VaList(bp+8, iKey, ii, v2, iKey, iVal))
}
}
}
@@ -255378,7 +255425,7 @@ func _rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode Ti64, iCell int32
v2 = libc.BoolInt32(*(*TRtreeValue)(unsafe.Pointer(bp)) > *(*TRtreeValue)(unsafe.Pointer(bp + 4)))
}
if v2 != 0 {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29404, libc.VaList(bp+24, i, iCell, iNode))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29433, libc.VaList(bp+24, i, iCell, iNode))
}
if pParent != 0 {
_readCoord(tls, pParent+uintptr(libc.Int32FromInt32(4)*libc.Int32FromInt32(2)*i), bp+8)
@@ -255396,7 +255443,7 @@ func _rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode Ti64, iCell int32
}
}
if v5 || v4 != 0 {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29452, libc.VaList(bp+24, i, iCell, iNode))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29481, libc.VaList(bp+24, i, iCell, iNode))
}
}
goto _1
@@ -255429,19 +255476,19 @@ func _rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintpt
aNode = _rtreeCheckGetNode(tls, pCheck, iNode, bp)
if aNode != 0 {
if *(*int32)(unsafe.Pointer(bp)) < int32(4) {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29519, libc.VaList(bp+16, iNode, *(*int32)(unsafe.Pointer(bp))))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29548, libc.VaList(bp+16, iNode, *(*int32)(unsafe.Pointer(bp))))
} else { /* Used to iterate through cells */
if aParent == uintptr(0) {
iDepth = _readInt16(tls, aNode)
if iDepth > int32(RTREE_MAX_DEPTH) {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29553, libc.VaList(bp+16, iDepth))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29582, libc.VaList(bp+16, iDepth))
Xsqlite3_free(tls, aNode)
return
}
}
nCell = _readInt16(tls, aNode+2)
if int32(4)+nCell*(int32(8)+(*TRtreeCheck)(unsafe.Pointer(pCheck)).FnDim*int32(2)*int32(4)) > *(*int32)(unsafe.Pointer(bp)) {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29583, libc.VaList(bp+16, iNode, nCell, *(*int32)(unsafe.Pointer(bp))))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29612, libc.VaList(bp+16, iNode, nCell, *(*int32)(unsafe.Pointer(bp))))
} else {
i = 0
for {
@@ -255486,12 +255533,12 @@ func _rtreeCheckCount(tls *libc.TLS, pCheck uintptr, zTbl uintptr, nExpect Ti64)
var pCount uintptr
_, _ = nActual, pCount
if (*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK {
- pCount = _rtreeCheckPrepare(tls, pCheck, __ccgo_ts+29638, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab, zTbl))
+ pCount = _rtreeCheckPrepare(tls, pCheck, __ccgo_ts+29667, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab, zTbl))
if pCount != 0 {
if Xsqlite3_step(tls, pCount) == int32(SQLITE_ROW) {
nActual = Xsqlite3_column_int64(tls, pCount, 0)
if nActual != nExpect {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29669, libc.VaList(bp+8, zTbl, nExpect, nActual))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+29698, libc.VaList(bp+8, zTbl, nExpect, nActual))
}
}
(*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount)
@@ -255520,7 +255567,7 @@ func _rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRe
(*(*TRtreeCheck)(unsafe.Pointer(bp))).FzDb = zDb
(*(*TRtreeCheck)(unsafe.Pointer(bp))).FzTab = zTab
/* Find the number of auxiliary columns */
- pStmt = _rtreeCheckPrepare(tls, bp, __ccgo_ts+29736, libc.VaList(bp+96, zDb, zTab))
+ pStmt = _rtreeCheckPrepare(tls, bp, __ccgo_ts+29765, libc.VaList(bp+96, zDb, zTab))
if pStmt != 0 {
nAux = Xsqlite3_column_count(tls, pStmt) - int32(2)
Xsqlite3_finalize(tls, pStmt)
@@ -255530,11 +255577,11 @@ func _rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRe
}
}
/* Find number of dimensions in the rtree table. */
- pStmt = _rtreeCheckPrepare(tls, bp, __ccgo_ts+27550, libc.VaList(bp+96, zDb, zTab))
+ pStmt = _rtreeCheckPrepare(tls, bp, __ccgo_ts+27579, libc.VaList(bp+96, zDb, zTab))
if pStmt != 0 {
(*(*TRtreeCheck)(unsafe.Pointer(bp))).FnDim = (Xsqlite3_column_count(tls, pStmt) - int32(1) - nAux) / int32(2)
if (*(*TRtreeCheck)(unsafe.Pointer(bp))).FnDim < int32(1) {
- _rtreeCheckAppendMsg(tls, bp, __ccgo_ts+29764, 0)
+ _rtreeCheckAppendMsg(tls, bp, __ccgo_ts+29793, 0)
} else {
if int32(SQLITE_ROW) == Xsqlite3_step(tls, pStmt) {
(*(*TRtreeCheck)(unsafe.Pointer(bp))).FbInt = libc.BoolInt32(Xsqlite3_column_type(tls, pStmt, int32(1)) == int32(SQLITE_INTEGER))
@@ -255550,8 +255597,8 @@ func _rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRe
if (*(*TRtreeCheck)(unsafe.Pointer(bp))).Frc == SQLITE_OK {
_rtreeCheckNode(tls, bp, 0, uintptr(0), int64(1))
}
- _rtreeCheckCount(tls, bp, __ccgo_ts+29795, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnLeaf))
- _rtreeCheckCount(tls, bp, __ccgo_ts+29802, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnNonLeaf))
+ _rtreeCheckCount(tls, bp, __ccgo_ts+29824, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnLeaf))
+ _rtreeCheckCount(tls, bp, __ccgo_ts+29831, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnNonLeaf))
}
/* Finalize SQL statements used by the integrity-check */
Xsqlite3_finalize(tls, (*(*TRtreeCheck)(unsafe.Pointer(bp))).FpGetNode)
@@ -255578,7 +255625,7 @@ func _rtreeIntegrity(tls *libc.TLS, pVtab uintptr, zSchema uintptr, zName uintpt
_ = isQuick
rc = _rtreeCheckTable(tls, (*TRtree)(unsafe.Pointer(pRtree)).Fdb, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, pzErr)
if rc == SQLITE_OK && *(*uintptr)(unsafe.Pointer(pzErr)) != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+29810, libc.VaList(bp+8, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, *(*uintptr)(unsafe.Pointer(pzErr))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+29839, libc.VaList(bp+8, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName, *(*uintptr)(unsafe.Pointer(pzErr))))
if *(*uintptr)(unsafe.Pointer(pzErr)) == uintptr(0) {
rc = int32(SQLITE_NOMEM)
}
@@ -255629,7 +255676,7 @@ func _rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) {
var _ /* zReport at bp+0 */ uintptr
_, _, _, _ = rc, zDb, zTab, v1
if nArg != int32(1) && nArg != int32(2) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+29829, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+29858, -int32(1))
} else {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
zDb = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg)))
@@ -255644,7 +255691,7 @@ func _rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) {
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
v1 = *(*uintptr)(unsafe.Pointer(bp))
} else {
- v1 = __ccgo_ts + 20073
+ v1 = __ccgo_ts + 20102
}
Xsqlite3_result_text(tls, ctx, v1, -int32(1), uintptr(-libc.Int32FromInt32(1)))
} else {
@@ -256111,19 +256158,19 @@ func _geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr)
if p != 0 {
db = Xsqlite3_context_db_handle(tls, context)
x = Xsqlite3_str_new(tls, db)
- Xsqlite3_str_append(tls, x, __ccgo_ts+26784, int32(1))
+ Xsqlite3_str_append(tls, x, __ccgo_ts+26813, int32(1))
i = 0
for {
if !(i < (*TGeoPoly)(unsafe.Pointer(p)).FnVertex) {
break
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29880, libc.VaList(bp+8, float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2)+int32(1))*4)))))
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29909, libc.VaList(bp+8, float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2)+int32(1))*4)))))
goto _1
_1:
;
i++
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29891, libc.VaList(bp+8, float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))*4)))))
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29920, libc.VaList(bp+8, float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))*4)))))
Xsqlite3_result_text(tls, context, Xsqlite3_str_finish(tls, x), -int32(1), __ccgo_fp(Xsqlite3_free))
Xsqlite3_free(tls, p)
}
@@ -256152,20 +256199,20 @@ func _geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
db = Xsqlite3_context_db_handle(tls, context)
x = Xsqlite3_str_new(tls, db)
cSep = int8('\'')
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29902, 0)
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29931, 0)
i = 0
for {
if !(i < (*TGeoPoly)(unsafe.Pointer(p)).FnVertex) {
break
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29920, libc.VaList(bp+8, int32(cSep), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2)+int32(1))*4)))))
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29949, libc.VaList(bp+8, int32(cSep), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*int32(2)+int32(1))*4)))))
cSep = int8(' ')
goto _1
_1:
;
i++
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29928, libc.VaList(bp+8, float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))*4)))))
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29957, libc.VaList(bp+8, float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2))*4))), float64(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))*4)))))
i = int32(1)
for {
if !(i < argc) {
@@ -256173,14 +256220,14 @@ func _geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
z = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if z != 0 && *(*int8)(unsafe.Pointer(z)) != 0 {
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29936, libc.VaList(bp+8, z))
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29965, libc.VaList(bp+8, z))
}
goto _2
_2:
;
i++
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+29940, 0)
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+29969, 0)
Xsqlite3_result_text(tls, context, Xsqlite3_str_finish(tls, x), -int32(1), __ccgo_fp(Xsqlite3_free))
Xsqlite3_free(tls, p)
}
@@ -257309,13 +257356,13 @@ func _geopolyInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uint
libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(nDb))
libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzName, *(*uintptr)(unsafe.Pointer(argv + 2*8)), uint64(nName))
libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName, *(*uintptr)(unsafe.Pointer(argv + 2*8)), uint64(nName))
- libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName+uintptr(nName), __ccgo_ts+28993, uint64(6))
+ libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName+uintptr(nName), __ccgo_ts+29022, uint64(6))
/* Create/Connect to the underlying relational database schema. If
** 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, __ccgo_ts+29953, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29982, 0)
(*TRtree)(unsafe.Pointer(pRtree)).FnAux = uint8(1) /* Add one for _shape */
(*TRtree)(unsafe.Pointer(pRtree)).FnAuxNotNull = uint8(1) /* The _shape column is always not-null */
ii = int32(3)
@@ -257324,13 +257371,13 @@ func _geopolyInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uint
break
}
(*TRtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29975, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+30004, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
goto _1
_1:
;
ii++
}
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29050, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+29079, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !(zSql != 0) {
rc = int32(SQLITE_NOMEM)
@@ -257565,7 +257612,7 @@ func _geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
}
if iRowidTerm >= 0 {
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = int32(1)
- (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 18295
+ (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 18324
(*(*Tsqlite3_index_constraint_usage)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iRowidTerm)*8))).FargvIndex = int32(1)
(*(*Tsqlite3_index_constraint_usage)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iRowidTerm)*8))).Fomit = uint8(1)
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = float64(30)
@@ -257575,7 +257622,7 @@ func _geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
}
if iFuncTerm >= 0 {
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = idxNum
- (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 29979
+ (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 30008
(*(*Tsqlite3_index_constraint_usage)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iFuncTerm)*8))).FargvIndex = int32(1)
(*(*Tsqlite3_index_constraint_usage)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iFuncTerm)*8))).Fomit = uint8(0)
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = float64(300)
@@ -257583,7 +257630,7 @@ func _geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
return SQLITE_OK
}
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = int32(4)
- (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 29985
+ (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 30014
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = float64(3e+06)
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedRows = int64(100000)
return SQLITE_OK
@@ -257703,7 +257750,7 @@ func _geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pR
_geopolyBBox(tls, uintptr(0), *(*uintptr)(unsafe.Pointer(aData + 2*8)), bp+8+8, bp)
if *(*int32)(unsafe.Pointer(bp)) != 0 {
if *(*int32)(unsafe.Pointer(bp)) == int32(SQLITE_ERROR) {
- (*Tsqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+29994, 0)
+ (*Tsqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+30023, 0)
}
goto geopoly_update_end
}
@@ -257806,12 +257853,12 @@ geopoly_update_end:
func _geopolyFindFunction(tls *libc.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) (r int32) {
_ = pVtab
_ = nArg
- if Xsqlite3_stricmp(tls, zName, __ccgo_ts+30034) == 0 {
+ if Xsqlite3_stricmp(tls, zName, __ccgo_ts+30063) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = __ccgo_fp(_geopolyOverlapFunc)
*(*uintptr)(unsafe.Pointer(ppArg)) = uintptr(0)
return int32(SQLITE_INDEX_CONSTRAINT_FUNCTION)
}
- if Xsqlite3_stricmp(tls, zName, __ccgo_ts+30050) == 0 {
+ if Xsqlite3_stricmp(tls, zName, __ccgo_ts+30079) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = __ccgo_fp(_geopolyWithinFunc)
*(*uintptr)(unsafe.Pointer(ppArg)) = uintptr(0)
return libc.Int32FromInt32(SQLITE_INDEX_CONSTRAINT_FUNCTION) + libc.Int32FromInt32(1)
@@ -257882,7 +257929,7 @@ func _sqlite3_geopoly_init(tls *libc.TLS, db uintptr) (r int32) {
i++
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+30227, uintptr(unsafe.Pointer(&_geopolyModule)), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+30256, uintptr(unsafe.Pointer(&_geopolyModule)), uintptr(0), uintptr(0))
}
return rc
}
@@ -257896,61 +257943,61 @@ var _aFunc = [12]struct {
0: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30065,
+ FzName: __ccgo_ts + 30094,
},
1: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30078,
+ FzName: __ccgo_ts + 30107,
},
2: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30091,
+ FzName: __ccgo_ts + 30120,
},
3: {
FnArg: int8(-int32(1)),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30104,
+ FzName: __ccgo_ts + 30133,
},
4: {
FnArg: int8(2),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30050,
+ FzName: __ccgo_ts + 30079,
},
5: {
FnArg: int8(3),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30116,
+ FzName: __ccgo_ts + 30145,
},
6: {
FnArg: int8(2),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30034,
+ FzName: __ccgo_ts + 30063,
},
7: {
FnArg: int8(1),
- FzName: __ccgo_ts + 30139,
+ FzName: __ccgo_ts + 30168,
},
8: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30153,
+ FzName: __ccgo_ts + 30182,
},
9: {
FnArg: int8(7),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30166,
+ FzName: __ccgo_ts + 30195,
},
10: {
FnArg: int8(4),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30180,
+ FzName: __ccgo_ts + 30209,
},
11: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 30196,
+ FzName: __ccgo_ts + 30225,
},
}
@@ -257976,7 +258023,7 @@ var _aAgg = [1]struct {
FzName uintptr
}{
0: {
- FzName: __ccgo_ts + 30208,
+ FzName: __ccgo_ts + 30237,
},
}
@@ -258001,20 +258048,20 @@ func _sqlite3RtreeInit(tls *libc.TLS, db uintptr) (r int32) {
var rc, utf8 int32
_, _, _, _ = c, c1, rc, utf8
utf8 = int32(SQLITE_UTF8)
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+30235, int32(2), utf8, uintptr(0), __ccgo_fp(_rtreenode), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+30264, int32(2), utf8, uintptr(0), __ccgo_fp(_rtreenode), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+30245, int32(1), utf8, uintptr(0), __ccgo_fp(_rtreedepth), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+30274, int32(1), utf8, uintptr(0), __ccgo_fp(_rtreedepth), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+30256, -int32(1), utf8, uintptr(0), __ccgo_fp(_rtreecheck), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+30285, -int32(1), utf8, uintptr(0), __ccgo_fp(_rtreecheck), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
c = libc.UintptrFromInt32(RTREE_COORD_REAL32)
- rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+29979, uintptr(unsafe.Pointer(&_rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+30008, uintptr(unsafe.Pointer(&_rtreeModule)), c, uintptr(0))
}
if rc == SQLITE_OK {
c1 = libc.UintptrFromInt32(RTREE_COORD_INT32)
- rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+30267, uintptr(unsafe.Pointer(&_rtreeModule)), c1, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+30296, uintptr(unsafe.Pointer(&_rtreeModule)), c1, uintptr(0))
}
if rc == SQLITE_OK {
rc = _sqlite3_geopoly_init(tls, db)
@@ -258116,7 +258163,7 @@ func _geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) {
Xsqlite3_result_error_nomem(tls, ctx)
_rtreeMatchArgFree(tls, pBlob)
} else {
- Xsqlite3_result_pointer(tls, ctx, pBlob, __ccgo_ts+27536, __ccgo_fp(_rtreeMatchArgFree))
+ Xsqlite3_result_pointer(tls, ctx, pBlob, __ccgo_ts+27565, __ccgo_fp(_rtreeMatchArgFree))
}
}
}
@@ -259333,7 +259380,7 @@ func _rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintpt
/* Figure out the size of the output */
nOut = _rbuDeltaOutputSize(tls, aDelta, nDelta)
if nOut < 0 {
- Xsqlite3_result_error(tls, context, __ccgo_ts+30277, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+30306, -int32(1))
return
}
aOut = Xsqlite3_malloc(tls, nOut+int32(1))
@@ -259343,7 +259390,7 @@ func _rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintpt
nOut2 = _rbuDeltaApply(tls, aOrig, nOrig, aDelta, nDelta, aOut)
if nOut2 != nOut {
Xsqlite3_free(tls, aOut)
- Xsqlite3_result_error(tls, context, __ccgo_ts+30277, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+30306, -int32(1))
} else {
Xsqlite3_result_blob(tls, context, aOut, nOut, __ccgo_fp(Xsqlite3_free))
}
@@ -259524,7 +259571,7 @@ func _rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) (r int32) {
/* Free any SQLite statements used while processing the previous object */
_rbuObjIterClearStatements(tls, pIter)
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) {
- rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30298, uintptr(0), uintptr(0), p+64)
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30327, uintptr(0), uintptr(0), p+64)
}
if rc == SQLITE_OK {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FbCleanup != 0 {
@@ -259613,7 +259660,7 @@ func _rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) {
Xsqlite3_result_text(tls, pCtx, zIn, -int32(1), libc.UintptrFromInt32(0))
}
} else {
- if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, __ccgo_ts+27449, zIn, uint64(4)) == 0 {
+ if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, __ccgo_ts+27478, zIn, uint64(4)) == 0 {
i = int32(4)
for {
if !(int32(*(*int8)(unsafe.Pointer(zIn + uintptr(i)))) >= int32('0') && int32(*(*int8)(unsafe.Pointer(zIn + uintptr(i)))) <= int32('9')) {
@@ -259650,13 +259697,13 @@ func _rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) (r int32) {
_, _ = rc, v1
libc.Xmemset(tls, pIter, 0, uint64(192))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v1 = __ccgo_ts + 30469
+ v1 = __ccgo_ts + 30498
} else {
v1 = __ccgo_ts + 1674
}
- rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30510, libc.VaList(bp+8, v1)))
+ rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30539, libc.VaList(bp+8, v1)))
if rc == SQLITE_OK {
- rc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64, __ccgo_ts+30660)
+ rc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64, __ccgo_ts+30689)
}
(*TRbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = int32(1)
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc
@@ -259884,7 +259931,7 @@ func _rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnu
*(*[4]uintptr)(unsafe.Pointer(bp)) = [4]uintptr{}
*(*int32)(unsafe.Pointer(peType)) = RBU_PK_NOTABLE
*(*int32)(unsafe.Pointer(piPk)) = 0
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30785, libc.VaList(bp+40, zTab)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30814, libc.VaList(bp+40, zTab)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK || Xsqlite3_step(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[0]) != int32(SQLITE_ROW) {
/* Either an error, or no such table. */
goto rbuTableType_end
@@ -259894,7 +259941,7 @@ func _rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnu
goto rbuTableType_end
}
*(*int32)(unsafe.Pointer(piTnum)) = Xsqlite3_column_int(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[0], int32(1))
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+1*8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30904, libc.VaList(bp+40, zTab)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+1*8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30933, libc.VaList(bp+40, zTab)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
goto rbuTableType_end
}
@@ -259902,7 +259949,7 @@ func _rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnu
zOrig = Xsqlite3_column_text(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[int32(1)], int32(3))
zIdx = Xsqlite3_column_text(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[int32(1)], int32(1))
if zOrig != 0 && zIdx != 0 && int32(*(*Tu8)(unsafe.Pointer(zOrig))) == int32('p') {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+2*8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30925, libc.VaList(bp+40, zIdx)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+2*8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30954, libc.VaList(bp+40, zIdx)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if Xsqlite3_step(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[int32(2)]) == int32(SQLITE_ROW) {
*(*int32)(unsafe.Pointer(piPk)) = Xsqlite3_column_int(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[int32(2)], 0)
@@ -259914,7 +259961,7 @@ func _rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnu
goto rbuTableType_end
}
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+3*8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30976, libc.VaList(bp+40, zTab)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+3*8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31005, libc.VaList(bp+40, zTab)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
for Xsqlite3_step(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[int32(3)]) == int32(SQLITE_ROW) {
if Xsqlite3_column_int(tls, (*(*[4]uintptr)(unsafe.Pointer(bp)))[int32(3)], int32(5)) > 0 {
@@ -259958,7 +260005,7 @@ func _rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) {
bIndex = 0
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
libc.Xmemcpy(tls, (*TRbuObjIter)(unsafe.Pointer(pIter)).FabIndexed, (*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk, uint64(1)*uint64((*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol))
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30997, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31026, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
}
(*TRbuObjIter)(unsafe.Pointer(pIter)).FnIndex = 0
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -259971,7 +260018,7 @@ func _rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) {
if bPartial != 0 {
libc.Xmemset(tls, (*TRbuObjIter)(unsafe.Pointer(pIter)).FabIndexed, int32(0x01), uint64(1)*uint64((*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol))
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31025, libc.VaList(bp+24, zIdx)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31054, libc.VaList(bp+24, zIdx)))
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8))) {
iCid = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), int32(1))
if iCid >= 0 {
@@ -260024,7 +260071,7 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
_rbuTableType(tls, p, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, pIter+72, bp+8, pIter+108)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NOTABLE {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+21581, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+21610, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
return (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc
@@ -260035,7 +260082,7 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
/* Populate the azTblCol[] and nTblCol variables based on the columns
** of the input table. Ignore any input table columns that begin with
** "rbu_". */
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31054, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31083, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
nCol = Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp)))
_rbuAllocateIterArrays(tls, p, pIter, nCol)
@@ -260046,7 +260093,7 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
break
}
zName = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp)), i)
- if Xsqlite3_strnicmp(tls, __ccgo_ts+31073, zName, int32(4)) != 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+31102, zName, int32(4)) != 0 {
zCopy = _rbuStrndup(tls, zName, p+56)
*(*int32)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FaiSrcOrder + uintptr((*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol)*4)) = (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol
v3 = pIter + 16
@@ -260054,7 +260101,7 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
*(*int32)(unsafe.Pointer(v3))++
*(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(v2)*8)) = zCopy
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+31078, zName) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+31107, zName) {
bRbuRowid = int32(1)
}
}
@@ -260068,17 +260115,17 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && libc.BoolInt32((*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && bRbuRowid != libc.BoolInt32((*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_VTAB) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE)) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
if bRbuRowid != 0 {
- v4 = __ccgo_ts + 31088
+ v4 = __ccgo_ts + 31117
} else {
- v4 = __ccgo_ts + 31101
+ v4 = __ccgo_ts + 31130
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31110, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v4))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31139, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v4))
}
/* Check that all non-HIDDEN columns in the destination table are also
** present in the input table. Populate the abTblPk[], azTblType[] and
** aiTblOrder[] arrays at the same time. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31139, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31168, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
}
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
zName1 = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1))
@@ -260100,7 +260147,7 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
}
if i == (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31161, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zName1))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31190, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zName1))
} else {
iPk = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(5))
bNotNull = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(3))
@@ -260146,8 +260193,8 @@ func _rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr)
break
}
z = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31188, libc.VaList(bp+8, zList, zSep, z))
- zSep = __ccgo_ts + 16546
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31217, libc.VaList(bp+8, zList, zSep, z))
+ zSep = __ccgo_ts + 16575
goto _1
_1:
;
@@ -260181,7 +260228,7 @@ func _rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr,
}
if int32(*(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i)))) == iPk {
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zRet = _rbuMPrintf(tls, p, __ccgo_ts+31197, libc.VaList(bp+8, zRet, zSep, zPre, zCol, zPost))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+31226, libc.VaList(bp+8, zRet, zSep, zPre, zCol, zPost))
zSep = zSeparator
break
}
@@ -260229,21 +260276,21 @@ func _rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32,
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
zRet = uintptr(0)
if bRowid != 0 {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31210, libc.VaList(bp+16, zWrite, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31239, libc.VaList(bp+16, zWrite, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
iMax = Xsqlite3_column_int64(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
- zRet = _rbuMPrintf(tls, p, __ccgo_ts+31242, libc.VaList(bp+16, iMax))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+31271, libc.VaList(bp+16, iMax))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
} else {
- zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1674, __ccgo_ts+16546, __ccgo_ts+31265)
- zSelect = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+31271, __ccgo_ts+31278, __ccgo_ts+6568)
- zList = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1674, __ccgo_ts+16546, __ccgo_ts+1674)
+ zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1674, __ccgo_ts+16575, __ccgo_ts+31294)
+ zSelect = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+31300, __ccgo_ts+31307, __ccgo_ts+6568)
+ zList = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1674, __ccgo_ts+16575, __ccgo_ts+1674)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31286, libc.VaList(bp+16, zSelect, zWrite, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zOrder)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31315, libc.VaList(bp+16, zSelect, zWrite, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zOrder)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
zVal = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
- zRet = _rbuMPrintf(tls, p, __ccgo_ts+31328, libc.VaList(bp+16, zList, zVal))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+31357, libc.VaList(bp+16, zList, zVal))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
}
@@ -260295,7 +260342,7 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
zSep = __ccgo_ts + 1674
iCol = 0
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31025, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31054, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
iCid = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1))
zCollate = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(4))
@@ -260317,15 +260364,15 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
}
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
} else {
- zCol = __ccgo_ts + 31348
+ zCol = __ccgo_ts + 31377
}
} else {
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCid)*8))
}
- zLhs = _rbuMPrintf(tls, p, __ccgo_ts+31356, libc.VaList(bp+24, zLhs, zSep, zCol, zCollate))
- zOrder = _rbuMPrintf(tls, p, __ccgo_ts+31377, libc.VaList(bp+24, zOrder, zSep, iCol, zCol, zCollate))
- zSelect = _rbuMPrintf(tls, p, __ccgo_ts+31413, libc.VaList(bp+24, zSelect, zSep, iCol, zCol))
- zSep = __ccgo_ts + 16546
+ zLhs = _rbuMPrintf(tls, p, __ccgo_ts+31385, libc.VaList(bp+24, zLhs, zSep, zCol, zCollate))
+ zOrder = _rbuMPrintf(tls, p, __ccgo_ts+31406, libc.VaList(bp+24, zOrder, zSep, iCol, zCol, zCollate))
+ zSelect = _rbuMPrintf(tls, p, __ccgo_ts+31442, libc.VaList(bp+24, zSelect, zSep, iCol, zCol))
+ zSep = __ccgo_ts + 16575
iCol++
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
@@ -260334,7 +260381,7 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31440, libc.VaList(bp+24, zSelect, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zOrder)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31469, libc.VaList(bp+24, zSelect, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zOrder)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8))) {
zSep = __ccgo_ts + 1674
iCol = 0
@@ -260351,15 +260398,15 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
break
}
}
- zVector = _rbuMPrintf(tls, p, __ccgo_ts+31488, libc.VaList(bp+24, zVector, zSep, zQuoted))
- zSep = __ccgo_ts + 16546
+ zVector = _rbuMPrintf(tls, p, __ccgo_ts+31517, libc.VaList(bp+24, zVector, zSep, zQuoted))
+ zSep = __ccgo_ts + 16575
goto _2
_2:
;
iCol++
}
if !(bFailed != 0) {
- zRet = _rbuMPrintf(tls, p, __ccgo_ts+31495, libc.VaList(bp+24, zLhs, zVector))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+31524, libc.VaList(bp+24, zLhs, zVector))
}
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
@@ -260417,7 +260464,7 @@ func _rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposter
zAnd = __ccgo_ts + 1674 /* Set to " AND " later on */
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0) /* PRAGMA index_xinfo = ? */
if rc == SQLITE_OK {
- rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31025, libc.VaList(bp+16, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
+ rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31054, libc.VaList(bp+16, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx)))
}
for rc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
iCid = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1))
@@ -260426,7 +260473,7 @@ func _rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposter
zCol = uintptr(0)
if iCid == -int32(2) {
iSeq = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+31507, libc.VaList(bp+16, zRet, zCom, (*(*TRbuSpan)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol + uintptr(iSeq)*16))).FnSpan, (*(*TRbuSpan)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol + uintptr(iSeq)*16))).FzSpan, zCollate))
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+31536, libc.VaList(bp+16, zRet, zCom, (*(*TRbuSpan)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol + uintptr(iSeq)*16))).FnSpan, (*(*TRbuSpan)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol + uintptr(iSeq)*16))).FzSpan, zCollate))
zType = __ccgo_ts + 1674
} else {
if iCid < 0 {
@@ -260446,9 +260493,9 @@ func _rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposter
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
} else {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zCol = __ccgo_ts + 31348
+ zCol = __ccgo_ts + 31377
} else {
- zCol = __ccgo_ts + 31078
+ zCol = __ccgo_ts + 31107
}
}
zType = __ccgo_ts + 1148
@@ -260456,24 +260503,24 @@ func _rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposter
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCid)*8))
zType = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8))
}
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+31529, libc.VaList(bp+16, zRet, zCom, zCol, zCollate))
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+31558, libc.VaList(bp+16, zRet, zCom, zCol, zCollate))
}
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FbUnique == 0 || Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(5)) != 0 {
if bDesc != 0 {
- v2 = __ccgo_ts + 31265
+ v2 = __ccgo_ts + 31294
} else {
v2 = __ccgo_ts + 1674
}
zOrder = v2
- zImpPK = Xsqlite3_mprintf(tls, __ccgo_ts+31549, libc.VaList(bp+16, zImpPK, zCom, nBind, zCol, zOrder))
+ zImpPK = Xsqlite3_mprintf(tls, __ccgo_ts+31578, libc.VaList(bp+16, zImpPK, zCom, nBind, zCol, zOrder))
}
- zImpCols = Xsqlite3_mprintf(tls, __ccgo_ts+31570, libc.VaList(bp+16, zImpCols, zCom, nBind, zCol, zType, zCollate))
- zWhere = Xsqlite3_mprintf(tls, __ccgo_ts+31603, libc.VaList(bp+16, zWhere, zAnd, nBind, zCol))
+ zImpCols = Xsqlite3_mprintf(tls, __ccgo_ts+31599, libc.VaList(bp+16, zImpCols, zCom, nBind, zCol, zType, zCollate))
+ zWhere = Xsqlite3_mprintf(tls, __ccgo_ts+31632, libc.VaList(bp+16, zWhere, zAnd, nBind, zCol))
if zRet == uintptr(0) || zImpPK == uintptr(0) || zImpCols == uintptr(0) || zWhere == uintptr(0) {
rc = int32(SQLITE_NOMEM)
}
- zCom = __ccgo_ts + 16546
- zAnd = __ccgo_ts + 23690
+ zCom = __ccgo_ts + 16575
+ zAnd = __ccgo_ts + 23719
nBind++
}
rc2 = Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -260527,11 +260574,11 @@ func _rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr
}
if *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabIndexed + uintptr(i))) != 0 {
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
- zList = Xsqlite3_mprintf(tls, __ccgo_ts+31627, libc.VaList(bp+8, zList, zS, zObj, zCol))
+ zList = Xsqlite3_mprintf(tls, __ccgo_ts+31656, libc.VaList(bp+8, zList, zS, zObj, zCol))
} else {
- zList = Xsqlite3_mprintf(tls, __ccgo_ts+31639, libc.VaList(bp+8, zList, zS))
+ zList = Xsqlite3_mprintf(tls, __ccgo_ts+31668, libc.VaList(bp+8, zList, zS))
}
- zS = __ccgo_ts + 16546
+ zS = __ccgo_ts + 16575
if zList == uintptr(0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
break
@@ -260543,7 +260590,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 (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE) {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31648, libc.VaList(bp+8, zList, zObj))
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31677, libc.VaList(bp+8, zList, zObj))
}
}
return zList
@@ -260569,7 +260616,7 @@ func _rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
_, _, _, _, _, _ = i, i1, zCol, zList, zSep, zSep1
zList = uintptr(0)
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_VTAB) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE) {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31663, libc.VaList(bp+8, (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+int32(1)))
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31692, libc.VaList(bp+8, (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+int32(1)))
} else {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) {
zSep = __ccgo_ts + 1674
@@ -260579,15 +260626,15 @@ func _rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
break
}
if *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31677, libc.VaList(bp+8, zList, zSep, i, i+int32(1)))
- zSep = __ccgo_ts + 23690
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31706, libc.VaList(bp+8, zList, zSep, i, i+int32(1)))
+ zSep = __ccgo_ts + 23719
}
goto _1
_1:
;
i++
}
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31689, libc.VaList(bp+8, zList))
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31718, libc.VaList(bp+8, zList))
} else {
zSep1 = __ccgo_ts + 1674
i1 = 0
@@ -260597,8 +260644,8 @@ func _rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
}
if *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i1))) != 0 {
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i1)*8))
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31739, libc.VaList(bp+8, zList, zSep1, zCol, i1+int32(1)))
- zSep1 = __ccgo_ts + 23690
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31768, libc.VaList(bp+8, zList, zSep1, zCol, i1+int32(1)))
+ zSep1 = __ccgo_ts + 23719
}
goto _2
_2:
@@ -260621,7 +260668,7 @@ func _rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
// */
func _rbuBadControlError(tls *libc.TLS, p uintptr) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31752, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31781, 0)
}
// C documentation
@@ -260663,16 +260710,16 @@ func _rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintpt
}
c = *(*int8)(unsafe.Pointer(zMask + uintptr(*(*int32)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FaiSrcOrder + uintptr(i)*4)))))
if int32(c) == int32('x') {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31739, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
- zSep = __ccgo_ts + 16546
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31768, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
+ zSep = __ccgo_ts + 16575
} else {
if int32(c) == int32('d') {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31778, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
- zSep = __ccgo_ts + 16546
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31807, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
+ zSep = __ccgo_ts + 16575
} else {
if int32(c) == int32('f') {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+31808, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
- zSep = __ccgo_ts + 16546
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+31837, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
+ zSep = __ccgo_ts + 16575
}
}
}
@@ -260756,16 +260803,16 @@ func _rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
_, _, _, _, _, _, _ = z, zCol, zDesc, zIdx, zOrig, zSep, v1
z = uintptr(0)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- zSep = __ccgo_ts + 31845
+ zSep = __ccgo_ts + 31874
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0) /* PRAGMA index_list = (pIter->zTbl) */
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0) /* PRAGMA index_xinfo = <pk-index> */
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30997, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31026, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl)))
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
zOrig = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(3))
- if zOrig != 0 && libc.Xstrcmp(tls, zOrig, __ccgo_ts+18183) == 0 {
+ if zOrig != 0 && libc.Xstrcmp(tls, zOrig, __ccgo_ts+18212) == 0 {
zIdx = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1))
if zIdx != 0 {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31025, libc.VaList(bp+24, zIdx)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31054, libc.VaList(bp+24, zIdx)))
}
break
}
@@ -260776,16 +260823,16 @@ func _rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
/* int iCid = sqlite3_column_int(pXInfo, 0); */
zCol = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), int32(2))
if Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), int32(3)) != 0 {
- v1 = __ccgo_ts + 31265
+ v1 = __ccgo_ts + 31294
} else {
v1 = __ccgo_ts + 1674
}
zDesc = v1
- z = _rbuMPrintf(tls, p, __ccgo_ts+31858, libc.VaList(bp+24, z, zSep, zCol, zDesc))
- zSep = __ccgo_ts + 16546
+ z = _rbuMPrintf(tls, p, __ccgo_ts+31887, libc.VaList(bp+24, z, zSep, zCol, zDesc))
+ zSep = __ccgo_ts + 16575
}
}
- z = _rbuMPrintf(tls, p, __ccgo_ts+31869, libc.VaList(bp+24, z))
+ z = _rbuMPrintf(tls, p, __ccgo_ts+31898, libc.VaList(bp+24, z))
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
}
return z
@@ -260831,7 +260878,7 @@ func _rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) {
/* Figure out the name of the primary key index for the current table.
** This is needed for the argument to "PRAGMA index_xinfo". Set
** zIdx to point to a nul-terminated string containing this name. */
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, __ccgo_ts+31873)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, __ccgo_ts+31902)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
Xsqlite3_bind_int(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1), tnum)
if int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -260839,7 +260886,7 @@ func _rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) {
}
}
if zIdx != 0 {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31025, libc.VaList(bp+24, zIdx)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+31054, libc.VaList(bp+24, zIdx)))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8))) {
@@ -260848,20 +260895,20 @@ func _rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) {
iCid = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), int32(1))
bDesc = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), int32(3))
zCollate = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), int32(4))
- zCols = _rbuMPrintf(tls, p, __ccgo_ts+31923, libc.VaList(bp+24, zCols, zComma, iCid, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate))
+ zCols = _rbuMPrintf(tls, p, __ccgo_ts+31952, libc.VaList(bp+24, zCols, zComma, iCid, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate))
if bDesc != 0 {
- v1 = __ccgo_ts + 31265
+ v1 = __ccgo_ts + 31294
} else {
v1 = __ccgo_ts + 1674
}
- zPk = _rbuMPrintf(tls, p, __ccgo_ts+31945, libc.VaList(bp+24, zPk, zComma, iCid, v1))
- zComma = __ccgo_ts + 16546
+ zPk = _rbuMPrintf(tls, p, __ccgo_ts+31974, libc.VaList(bp+24, zPk, zComma, iCid, v1))
+ zComma = __ccgo_ts + 16575
}
}
- zCols = _rbuMPrintf(tls, p, __ccgo_ts+31955, libc.VaList(bp+24, zCols))
+ zCols = _rbuMPrintf(tls, p, __ccgo_ts+31984, libc.VaList(bp+24, zCols))
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+24, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, int32(1), tnum))
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31970, libc.VaList(bp+24, zCols, zPk))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31999, libc.VaList(bp+24, zCols, zPk))
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+24, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, 0, 0))
}
}
@@ -260912,15 +260959,15 @@ func _rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_IPK) && *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(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 = __ccgo_ts + 32032
+ zPk = __ccgo_ts + 32061
}
if *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabNotNull + uintptr(iCol))) != 0 {
- v2 = __ccgo_ts + 32045
+ v2 = __ccgo_ts + 32074
} else {
v2 = __ccgo_ts + 1674
}
- zSql = _rbuMPrintf(tls, p, __ccgo_ts+32055, libc.VaList(bp+16, zSql, zComma, zCol, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCol)*8)), zPk, *(*uintptr)(unsafe.Pointer(bp)), v2))
- zComma = __ccgo_ts + 16546
+ zSql = _rbuMPrintf(tls, p, __ccgo_ts+32084, libc.VaList(bp+16, zSql, zComma, zCol, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCol)*8)), zPk, *(*uintptr)(unsafe.Pointer(bp)), v2))
+ zComma = __ccgo_ts + 16575
goto _1
_1:
;
@@ -260929,16 +260976,16 @@ func _rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_WITHOUT_ROWID) {
zPk1 = _rbuWithoutRowidPK(tls, p, pIter)
if zPk1 != 0 {
- zSql = _rbuMPrintf(tls, p, __ccgo_ts+32082, libc.VaList(bp+16, zSql, zPk1))
+ zSql = _rbuMPrintf(tls, p, __ccgo_ts+32111, libc.VaList(bp+16, zSql, zPk1))
}
}
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, int32(1), tnum))
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_WITHOUT_ROWID) {
- v3 = __ccgo_ts + 32089
+ v3 = __ccgo_ts + 32118
} else {
v3 = __ccgo_ts + 1674
}
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32104, libc.VaList(bp+16, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql, v3))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32133, libc.VaList(bp+16, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql, v3))
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, 0, 0))
}
}
@@ -260965,7 +261012,7 @@ func _rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zColli
bRbuRowid = libc.BoolInt32((*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE))
zBind = _rbuObjIterGetBindlist(tls, p, (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+int32(1)+bRbuRowid)
if zBind != 0 {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+152, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32136, libc.VaList(bp+8, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zCollist, zRbuRowid, zBind)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+152, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32165, libc.VaList(bp+8, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zCollist, zRbuRowid, zBind)))
}
}
@@ -261011,7 +261058,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
*(*int32)(unsafe.Pointer(bp + 8)) = (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc
zRet = uintptr(0)
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp + 8)) = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, __ccgo_ts+32193)
+ *(*int32)(unsafe.Pointer(bp + 8)) = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, __ccgo_ts+32222)
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK {
*(*int32)(unsafe.Pointer(bp + 8)) = Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1), (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx, -int32(1), libc.UintptrFromInt32(0))
@@ -261180,7 +261227,7 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
zIdx = (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx
zLimit = uintptr(0)
if nOffset != 0 {
- zLimit = Xsqlite3_mprintf(tls, __ccgo_ts+32259, libc.VaList(bp+40, nOffset))
+ zLimit = Xsqlite3_mprintf(tls, __ccgo_ts+32288, libc.VaList(bp+40, nOffset))
if !(zLimit != 0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
}
@@ -261199,16 +261246,16 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
/* Create the imposter table used to write to this index. */
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+40, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, 0, int32(1)))
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+40, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, int32(1), tnum))
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32279, libc.VaList(bp+40, zTbl, *(*uintptr)(unsafe.Pointer(bp)), *(*uintptr)(unsafe.Pointer(bp + 8))))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32308, libc.VaList(bp+40, zTbl, *(*uintptr)(unsafe.Pointer(bp)), *(*uintptr)(unsafe.Pointer(bp + 8))))
Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+40, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, 0, 0))
/* Create the statement to insert index entries */
(*TRbuObjIter)(unsafe.Pointer(pIter)).FnCol = *(*int32)(unsafe.Pointer(bp + 24))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32344, libc.VaList(bp+40, zTbl, zBind)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32373, libc.VaList(bp+40, zTbl, zBind)))
}
/* And to delete index entries */
if libc.BoolInt32((*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+144, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32380, libc.VaList(bp+40, zTbl, *(*uintptr)(unsafe.Pointer(bp + 16)))))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+144, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32409, libc.VaList(bp+40, zTbl, *(*uintptr)(unsafe.Pointer(bp + 16)))))
}
/* Create the SELECT statement to read keys in sorted order */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -261223,26 +261270,26 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
}
if zStart != 0 {
if zPart != 0 {
- v2 = __ccgo_ts + 32414
+ v2 = __ccgo_ts + 32443
} else {
- v2 = __ccgo_ts + 32418
+ v2 = __ccgo_ts + 32447
}
v1 = v2
} else {
v1 = __ccgo_ts + 1674
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+32424, libc.VaList(bp+40, zCollist, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, v1, zStart, zCollist, zLimit))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+32453, libc.VaList(bp+40, zCollist, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, v1, zStart, zCollist, zLimit))
Xsqlite3_free(tls, zStart)
} else {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE) {
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+32485, libc.VaList(bp+40, zCollist, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, zLimit))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+32514, libc.VaList(bp+40, zCollist, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, zLimit))
} else {
if zPart != 0 {
- v3 = __ccgo_ts + 32414
+ v3 = __ccgo_ts + 32443
} else {
- v3 = __ccgo_ts + 32418
+ v3 = __ccgo_ts + 32447
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+32546, libc.VaList(bp+40, zCollist, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, v3, zCollist, zLimit))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+32575, libc.VaList(bp+40, zCollist, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, v3, zCollist, zLimit))
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -261271,39 +261318,39 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_VTAB) {
v4 = __ccgo_ts + 1674
} else {
- v4 = __ccgo_ts + 32705
+ v4 = __ccgo_ts + 32734
}
zWrite = v4
/* Create the INSERT statement to write to the target PK b-tree */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if bRbuRowid != 0 {
- v5 = __ccgo_ts + 32714
+ v5 = __ccgo_ts + 32743
} else {
v5 = __ccgo_ts + 1674
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, pz, Xsqlite3_mprintf(tls, __ccgo_ts+32724, libc.VaList(bp+40, zWrite, zTbl1, zCollist, v5, zBindings)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, pz, Xsqlite3_mprintf(tls, __ccgo_ts+32753, libc.VaList(bp+40, zWrite, zTbl1, zCollist, v5, zBindings)))
}
/* Create the DELETE statement to write to the target PK b-tree.
** Because it only performs INSERT operations, this is not required for
** an rbu vacuum handle. */
if libc.BoolInt32((*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+144, pz, Xsqlite3_mprintf(tls, __ccgo_ts+32760, libc.VaList(bp+40, zWrite, zTbl1, zWhere1)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+144, pz, Xsqlite3_mprintf(tls, __ccgo_ts+32789, libc.VaList(bp+40, zWrite, zTbl1, zWhere1)))
}
if libc.BoolInt32((*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*TRbuObjIter)(unsafe.Pointer(pIter)).FabIndexed != 0 {
zRbuRowid = __ccgo_ts + 1674
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE) {
- zRbuRowid = __ccgo_ts + 32788
+ zRbuRowid = __ccgo_ts + 32817
}
/* Create the rbu_tmp_xxx table and the triggers to populate it. */
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) {
- v6 = __ccgo_ts + 32800
+ v6 = __ccgo_ts + 32829
} else {
v6 = __ccgo_ts + 1674
}
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+32817, libc.VaList(bp+40, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v6, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32893, libc.VaList(bp+40, zWrite, zTbl1, zOldlist, zWrite, zTbl1, zOldlist, zWrite, zTbl1, zNewlist))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+32846, libc.VaList(bp+40, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v6, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32922, libc.VaList(bp+40, zWrite, zTbl1, zOldlist, zWrite, zTbl1, zOldlist, zWrite, zTbl1, zNewlist))
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE) {
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33192, libc.VaList(bp+40, zWrite, zTbl1, zNewlist))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33221, libc.VaList(bp+40, zWrite, zTbl1, zNewlist))
}
_rbuObjIterPrepareTmpInsert(tls, p, pIter, zCollist, zRbuRowid)
}
@@ -261314,9 +261361,9 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
zOrder = uintptr(0)
if bRbuRowid != 0 {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v7 = __ccgo_ts + 33291
+ v7 = __ccgo_ts + 33320
} else {
- v7 = __ccgo_ts + 33301
+ v7 = __ccgo_ts + 33330
}
zRbuRowid1 = v7
}
@@ -261329,14 +261376,14 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
}
}
if bRbuRowid != 0 {
- zOrder = _rbuMPrintf(tls, p, __ccgo_ts+31348, 0)
+ zOrder = _rbuMPrintf(tls, p, __ccgo_ts+31377, 0)
} else {
- zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1674, __ccgo_ts+16546, __ccgo_ts+1674)
+ zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1674, __ccgo_ts+16575, __ccgo_ts+1674)
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v8 = __ccgo_ts + 33312
+ v8 = __ccgo_ts + 33341
} else {
v8 = __ccgo_ts + 1674
}
@@ -261346,11 +261393,11 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
v9 = __ccgo_ts + 1674
}
if zOrder != 0 {
- v10 = __ccgo_ts + 24946
+ v10 = __ccgo_ts + 24975
} else {
v10 = __ccgo_ts + 1674
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+128, pz, Xsqlite3_mprintf(tls, __ccgo_ts+33318, libc.VaList(bp+40, zCollist, v8, zRbuRowid1, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v9, v10, zOrder, zLimit)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+128, pz, Xsqlite3_mprintf(tls, __ccgo_ts+33347, libc.VaList(bp+40, zCollist, v8, zRbuRowid1, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v9, v10, zOrder, zLimit)))
}
Xsqlite3_free(tls, zStart1)
Xsqlite3_free(tls, zOrder)
@@ -261438,9 +261485,9 @@ func _rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, p
if zSet != 0 {
zPrefix = __ccgo_ts + 1674
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType != int32(RBU_PK_VTAB) {
- zPrefix = __ccgo_ts + 32705
+ zPrefix = __ccgo_ts + 32734
}
- zUpdate = Xsqlite3_mprintf(tls, __ccgo_ts+33366, libc.VaList(bp+8, zPrefix, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSet, zWhere))
+ zUpdate = Xsqlite3_mprintf(tls, __ccgo_ts+33395, libc.VaList(bp+8, zPrefix, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSet, zWhere))
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pUp+8, p+64, zUpdate)
*(*uintptr)(unsafe.Pointer(ppStmt)) = (*TRbuUpdateStmt)(unsafe.Pointer(pUp)).FpUpdate
}
@@ -261514,7 +261561,7 @@ func _rbuLoadState(tls *libc.TLS, p uintptr) (r uintptr) {
if pRet == uintptr(0) {
return uintptr(0)
}
- *(*int32)(unsafe.Pointer(bp + 8)) = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+33396, libc.VaList(bp+24, p+48)))
+ *(*int32)(unsafe.Pointer(bp + 8)) = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+33425, libc.VaList(bp+24, p+48)))
for *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
switch Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), 0) {
case int32(RBU_STATE_STAGE):
@@ -261576,19 +261623,19 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+8107, int32(SQLITE_FCNTL_RBUCNT), p)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState == uintptr(0) {
zFile = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+8107)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState = _rbuMPrintf(tls, p, __ccgo_ts+33426, libc.VaList(bp+8, zFile, zFile))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState = _rbuMPrintf(tls, p, __ccgo_ts+33455, libc.VaList(bp+8, zFile, zFile))
}
}
/* If using separate RBU and state databases, attach the state database to
** the RBU db handle now. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState != 0 {
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+33454, libc.VaList(bp+8, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState))
- libc.Xmemcpy(tls, p+48, __ccgo_ts+15404, uint64(4))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+33483, libc.VaList(bp+8, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState))
+ libc.Xmemcpy(tls, p+48, __ccgo_ts+15433, uint64(4))
} else {
libc.Xmemcpy(tls, p+48, __ccgo_ts+8107, uint64(4))
}
/* If it has not already been created, create the rbu_state table */
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+33472, libc.VaList(bp+8, p+48))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+33501, libc.VaList(bp+8, p+48))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
bOpen = 0
(*Tsqlite3rbu)(unsafe.Pointer(p)).FnRbu = 0
@@ -261626,10 +261673,10 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
return
}
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+33538, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+33567, 0)
} else {
zExtra = uintptr(0)
- if libc.Xstrlen(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+26289, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
+ if libc.Xstrlen(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+26318, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
zExtra = (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu + 5
for *(*int8)(unsafe.Pointer(zExtra)) != 0 {
v1 = zExtra
@@ -261645,14 +261692,14 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
if zExtra == uintptr(0) {
v2 = __ccgo_ts + 1674
} else {
- v2 = __ccgo_ts + 33570
+ v2 = __ccgo_ts + 33599
}
if zExtra == uintptr(0) {
v3 = __ccgo_ts + 1674
} else {
v3 = zExtra
}
- zTarget = Xsqlite3_mprintf(tls, __ccgo_ts+33572, libc.VaList(bp+8, Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+8107), v2, v3))
+ zTarget = Xsqlite3_mprintf(tls, __ccgo_ts+33601, libc.VaList(bp+8, Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+8107), v2, v3))
if zTarget == uintptr(0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
return
@@ -261663,18 +261710,18 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33604, -int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_rbuTmpInsertFunc), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33633, -int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_rbuTmpInsertFunc), uintptr(0), uintptr(0))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33619, int32(2), int32(SQLITE_UTF8), uintptr(0), __ccgo_fp(_rbuFossilDeltaFunc), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33648, int32(2), int32(SQLITE_UTF8), uintptr(0), __ccgo_fp(_rbuFossilDeltaFunc), uintptr(0), uintptr(0))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+33636, -int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_rbuTargetNameFunc), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+33665, -int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_rbuTargetNameFunc), uintptr(0), uintptr(0))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, int32(SQLITE_FCNTL_RBU), p)
}
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33652, 0)
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33681, 0)
/* Mark the database file just opened as an RBU target database. If
** this call returns SQLITE_NOTFOUND, then the RBU vfs is not in use.
** This is an error. */
@@ -261683,7 +261730,7 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == int32(SQLITE_NOTFOUND) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+33680, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+33709, 0)
}
}
@@ -261769,7 +261816,7 @@ func _rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) {
if pState == uintptr(0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = 0
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33652, uintptr(0), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33681, uintptr(0), uintptr(0), uintptr(0))
}
}
/* Assuming no error has occurred, run a "restart" checkpoint with the
@@ -261802,7 +261849,7 @@ func _rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) {
*/
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = int32(RBU_STAGE_CAPTURE)
- rc2 = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33698, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33727, uintptr(0), uintptr(0), uintptr(0))
if rc2 != int32(SQLITE_NOTICE) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -261966,7 +262013,7 @@ func _rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) (r int32) {
var zUri uintptr
_ = zUri
zUri = Xsqlite3_db_filename(tls, db, uintptr(0))
- return Xsqlite3_uri_boolean(tls, zUri, __ccgo_ts+33733, 0)
+ return Xsqlite3_uri_boolean(tls, zUri, __ccgo_ts+33762, 0)
}
// C documentation
@@ -261988,8 +262035,8 @@ func _rbuMoveOalFile(tls *libc.TLS, p uintptr) {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
zMove = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+8107)
}
- zOal = Xsqlite3_mprintf(tls, __ccgo_ts+33758, libc.VaList(bp+8, zMove))
- zWal = Xsqlite3_mprintf(tls, __ccgo_ts+33765, libc.VaList(bp+8, zMove))
+ zOal = Xsqlite3_mprintf(tls, __ccgo_ts+33787, libc.VaList(bp+8, zMove))
+ zWal = Xsqlite3_mprintf(tls, __ccgo_ts+33794, libc.VaList(bp+8, zMove))
if zWal == uintptr(0) || zOal == uintptr(0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
} else {
@@ -262121,7 +262168,7 @@ func _rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) {
** to write a NULL into the IPK column. That is not permitted. */
if eType == int32(RBU_INSERT) && (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) && (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_IPK) && *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 && Xsqlite3_column_type(tls, (*TRbuObjIter)(unsafe.Pointer(pIter)).FpSelect, i) == int32(SQLITE_NULL) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_MISMATCH)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+25846, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+25875, 0)
return
}
if eType == int32(RBU_DELETE) && int32(*(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i)))) == 0 {
@@ -262257,7 +262304,7 @@ func _rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) {
}
dbread = v1
iCookie = int32(1000000)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, dbread, bp, p+64, __ccgo_ts+33772)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, dbread, bp, p+64, __ccgo_ts+33801)
if (*Tsqlite3rbu)(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
@@ -262270,7 +262317,7 @@ func _rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) {
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33794, libc.VaList(bp+16, iCookie+int32(1)))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33823, libc.VaList(bp+16, iCookie+int32(1)))
}
}
}
@@ -262297,7 +262344,7 @@ func _rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) {
v1 = (*Tsqlite3rbu)(unsafe.Pointer(p)).FpTargetFd
}
pFd = v1
- rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+33821, libc.VaList(bp+16, p+48, int32(RBU_STATE_STAGE), eStage, int32(RBU_STATE_TBL), (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl, int32(RBU_STATE_IDX), (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzIdx, int32(RBU_STATE_ROW), (*Tsqlite3rbu)(unsafe.Pointer(p)).FnStep, int32(RBU_STATE_PROGRESS), (*Tsqlite3rbu)(unsafe.Pointer(p)).FnProgress, int32(RBU_STATE_CKPT), (*Tsqlite3rbu)(unsafe.Pointer(p)).FiWalCksum, int32(RBU_STATE_COOKIE), int64((*Trbu_file)(unsafe.Pointer(pFd)).FiCookie), int32(RBU_STATE_OALSZ), (*Tsqlite3rbu)(unsafe.Pointer(p)).FiOalSz, int32(RBU_STATE_PHASEONESTEP), (*Tsqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep, int32(RBU_STATE_DATATBL), (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzDataTbl)))
+ rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+33850, libc.VaList(bp+16, p+48, int32(RBU_STATE_STAGE), eStage, int32(RBU_STATE_TBL), (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl, int32(RBU_STATE_IDX), (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzIdx, int32(RBU_STATE_ROW), (*Tsqlite3rbu)(unsafe.Pointer(p)).FnStep, int32(RBU_STATE_PROGRESS), (*Tsqlite3rbu)(unsafe.Pointer(p)).FnProgress, int32(RBU_STATE_CKPT), (*Tsqlite3rbu)(unsafe.Pointer(p)).FiWalCksum, int32(RBU_STATE_COOKIE), int64((*Trbu_file)(unsafe.Pointer(pFd)).FiCookie), int32(RBU_STATE_OALSZ), (*Tsqlite3rbu)(unsafe.Pointer(p)).FiOalSz, int32(RBU_STATE_PHASEONESTEP), (*Tsqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep, int32(RBU_STATE_DATATBL), (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzDataTbl)))
if rc == SQLITE_OK {
Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp)))
rc = Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -262333,9 +262380,9 @@ func _rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) {
var _ /* pPragma at bp+0 */ uintptr
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+33981, libc.VaList(bp+16, zPragma)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+34010, libc.VaList(bp+16, zPragma)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+33996, libc.VaList(bp+16, zPragma, Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34025, libc.VaList(bp+16, zPragma, Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
}
@@ -262358,9 +262405,9 @@ func _rbuCreateTargetSchema(tls *libc.TLS, p uintptr) {
_, _ = i, zSql
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34016, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34045, uintptr(0), uintptr(0), p+64)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34041)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34070)
}
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == int32(SQLITE_ROW) {
zSql = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
@@ -262371,10 +262418,10 @@ func _rbuCreateTargetSchema(tls *libc.TLS, p uintptr) {
return
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34149)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34178)
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, __ccgo_ts+34214)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, __ccgo_ts+34243)
}
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == int32(SQLITE_ROW) {
i = 0
@@ -262392,7 +262439,7 @@ func _rbuCreateTargetSchema(tls *libc.TLS, p uintptr) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_reset(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34258, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34287, uintptr(0), uintptr(0), p+64)
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
@@ -262419,8 +262466,8 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) (r int32) {
** when this handle was opened, create the target database schema. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) && (*Tsqlite3rbu)(unsafe.Pointer(p)).FnProgress == 0 && (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
_rbuCreateTargetSchema(tls, p)
- _rbuCopyPragma(tls, p, __ccgo_ts+19289)
- _rbuCopyPragma(tls, p, __ccgo_ts+18379)
+ _rbuCopyPragma(tls, p, __ccgo_ts+19318)
+ _rbuCopyPragma(tls, p, __ccgo_ts+18408)
}
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FbCleanup != 0 {
@@ -262428,7 +262475,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) (r int32) {
** cannot be dropped as there are currently active SQL statements.
** But the contents can be deleted. */
if libc.BoolInt32((*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*TRbuObjIter)(unsafe.Pointer(pIter)).FabIndexed != 0 {
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+34283, libc.VaList(bp+16, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+34312, libc.VaList(bp+16, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
}
} else {
_rbuObjIterPrepareAll(tls, p, pIter, 0)
@@ -262450,10 +262497,10 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) (r int32) {
_rbuSaveState(tls, p, int32(RBU_STAGE_MOVE))
_rbuIncrSchemaCookie(tls, p)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+16450, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+16479, uintptr(0), uintptr(0), p+64)
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16450, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16479, uintptr(0), uintptr(0), p+64)
}
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = int32(RBU_STAGE_MOVE)
}
@@ -262540,7 +262587,7 @@ func _rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) {
}
if rc == SQLITE_OK && !((*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0) {
rc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34311, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34340, 0)
}
if rc == SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FnStep = (*TRbuState)(unsafe.Pointer(pState)).FnRow
@@ -262563,7 +262610,7 @@ func _rbuDeleteOalFile(tls *libc.TLS, p uintptr) {
var zOal uintptr
var _ /* pVfs at bp+0 */ uintptr
_ = zOal
- zOal = _rbuMPrintf(tls, p, __ccgo_ts+33758, libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget))
+ zOal = _rbuMPrintf(tls, p, __ccgo_ts+33787, libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget))
if zOal != 0 {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+8107, int32(SQLITE_FCNTL_VFS_POINTER), bp)
@@ -262588,7 +262635,7 @@ func _rbuCreateVfs(tls *libc.TLS, p uintptr) {
var _ /* zRnd at bp+4 */ [64]int8
_ = pVfs
Xsqlite3_randomness(tls, int32(4), bp)
- Xsqlite3_snprintf(tls, int32(64), bp+4, __ccgo_ts+34336, libc.VaList(bp+80, *(*int32)(unsafe.Pointer(bp))))
+ Xsqlite3_snprintf(tls, int32(64), bp+4, __ccgo_ts+34365, libc.VaList(bp+80, *(*int32)(unsafe.Pointer(bp))))
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3rbu_create_vfs(tls, bp+4, uintptr(0))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
pVfs = Xsqlite3_vfs_find(tls, bp+4)
@@ -262635,7 +262682,7 @@ func _rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) {
}
db = v1
_ = nVal
- rc = _prepareFreeAndCollectError(tls, db, bp, bp+8, Xsqlite3_mprintf(tls, __ccgo_ts+34347, libc.VaList(bp+24, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal))))))
+ rc = _prepareFreeAndCollectError(tls, db, bp, bp+8, Xsqlite3_mprintf(tls, __ccgo_ts+34376, libc.VaList(bp+24, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal))))))
if rc != SQLITE_OK {
Xsqlite3_result_error(tls, pCtx, *(*uintptr)(unsafe.Pointer(bp + 8)), -int32(1))
} else {
@@ -262680,11 +262727,11 @@ func _rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
bExists = 0 /* True if rbu_count exists */
(*Tsqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep = int64(-int32(1))
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+34419, int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_rbuIndexCntFunc), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+34448, int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_rbuIndexCntFunc), uintptr(0), uintptr(0))
/* Check for the rbu_count table. If it does not exist, or if an error
** occurs, nPhaseOneStep will be left set to -1. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34433)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34462)
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -262693,7 +262740,7 @@ func _rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && bExists != 0 {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34490)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+34519)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep = Xsqlite3_column_int64(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
@@ -262773,7 +262820,7 @@ func _openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Trbu_file)(unsafe.Pointer((*Tsqlite3rbu)(unsafe.Pointer(p)).FpTargetFd)).FpWalFd != 0 {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34564, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34593, 0)
} else {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_MOVE) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = int32(RBU_STAGE_CKPT)
@@ -262795,17 +262842,17 @@ func _openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr
** page 1 of the database file. */
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_BUSY)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v3 = __ccgo_ts + 34596
+ v3 = __ccgo_ts + 34625
} else {
- v3 = __ccgo_ts + 34603
+ v3 = __ccgo_ts + 34632
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34610, libc.VaList(bp+16, v3))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34639, libc.VaList(bp+16, v3))
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
db = (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16435, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16464, uintptr(0), uintptr(0), p+64)
/* Point the object iterator at the first object */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _rbuObjIterFirst(tls, p, p+88)
@@ -262817,13 +262864,13 @@ func _openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = int32(RBU_STAGE_DONE)
} else {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*TRbuState)(unsafe.Pointer(pState)).FeStage == 0 && (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- _rbuCopyPragma(tls, p, __ccgo_ts+19003)
- _rbuCopyPragma(tls, p, __ccgo_ts+18394)
+ _rbuCopyPragma(tls, p, __ccgo_ts+19032)
+ _rbuCopyPragma(tls, p, __ccgo_ts+18423)
}
/* Open transactions both databases. The *-oal file is opened or
** created at this point. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+34642, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+34671, uintptr(0), uintptr(0), p+64)
}
/* Check if the main database is a zipvfs db. If it is, set the upper
** level pager to use "journal_mode=off". This prevents it from
@@ -262831,7 +262878,7 @@ func _openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
frc = Xsqlite3_file_control(tls, db, __ccgo_ts+8107, int32(SQLITE_FCNTL_ZIPVFS), uintptr(0))
if frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+34658, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+34687, uintptr(0), uintptr(0), p+64)
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -262909,7 +262956,7 @@ func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) (r uintp
}
if zState != 0 {
n = libc.Xstrlen(tls, zState)
- if n >= uint64(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+34682, zState+uintptr(n-uint64(7)), uint64(7)) {
+ if n >= uint64(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+34711, zState+uintptr(n-uint64(7)), uint64(7)) {
return _rbuMisuseError(tls)
}
}
@@ -262956,7 +263003,7 @@ func _rbuEditErrmsg(tls *libc.TLS, p uintptr) {
if !(uint64(i) < nErrmsg-uint64(8)) {
break
}
- if libc.Xmemcmp(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), __ccgo_ts+32705, uint64(8)) == 0 {
+ if libc.Xmemcmp(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), __ccgo_ts+32734, uint64(8)) == 0 {
nDel = int32(8)
for int32(*(*int8)(unsafe.Pointer((*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg + uintptr(i+uint32(nDel))))) >= int32('0') && int32(*(*int8)(unsafe.Pointer((*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg + uintptr(i+uint32(nDel))))) <= int32('9') {
nDel++
@@ -262984,7 +263031,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) (r int32) {
if p != 0 {
/* Commit the transaction to the *-oal file. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+16450, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+16479, uintptr(0), uintptr(0), p+64)
}
/* Sync the db file if currently doing an incremental checkpoint */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_CKPT) {
@@ -262993,7 +263040,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) (r int32) {
}
_rbuSaveState(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16450, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16479, uintptr(0), uintptr(0), p+64)
}
/* Close any open statement handles. */
_rbuObjIterFinalize(tls, p+88)
@@ -263003,7 +263050,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) (r int32) {
** specifying the current target and state databases to start a new
** vacuum from scratch. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) && (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK && (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu != 0 {
- rc2 = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+34690, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+34719, uintptr(0), uintptr(0), uintptr(0))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == int32(SQLITE_DONE) && rc2 != SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -263104,7 +263151,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) (r int32) {
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+16450, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+16479, uintptr(0), uintptr(0), uintptr(0))
}
}
/* Sync the db file */
@@ -263117,19 +263164,19 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) (r int32) {
rc = (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16450, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+16479, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v1 = __ccgo_ts + 16435
+ v1 = __ccgo_ts + 16464
} else {
- v1 = __ccgo_ts + 34642
+ v1 = __ccgo_ts + 34671
}
zBegin = v1
rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, zBegin, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34642, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+34671, uintptr(0), uintptr(0), uintptr(0))
}
}
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc
@@ -263696,7 +263743,7 @@ func _rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) (r
rc = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{xControl})))(tls, (*Trbu_file)(unsafe.Pointer(p)).FpReal, int32(SQLITE_FCNTL_ZIPVFS), bp)
if rc == SQLITE_OK {
rc = int32(SQLITE_ERROR)
- (*Tsqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34717, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+34746, 0)
} else {
if rc == int32(SQLITE_NOTFOUND) {
(*Tsqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p
@@ -263722,7 +263769,7 @@ func _rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) (r
if rc == SQLITE_OK && op == int32(SQLITE_FCNTL_VFSNAME) {
pRbuVfs = (*Trbu_file)(unsafe.Pointer(p)).FpRbuVfs
zIn = *(*uintptr)(unsafe.Pointer(pArg))
- zOut = Xsqlite3_mprintf(tls, __ccgo_ts+34740, libc.VaList(bp+16, (*Trbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
+ zOut = Xsqlite3_mprintf(tls, __ccgo_ts+34769, libc.VaList(bp+16, (*Trbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
*(*uintptr)(unsafe.Pointer(pArg)) = zOut
if zOut == uintptr(0) {
rc = int32(SQLITE_NOMEM)
@@ -263931,7 +263978,7 @@ func _rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flag
} else {
(*Trbu_file)(unsafe.Pointer(pFd)).FpRbu = (*Trbu_vfs)(unsafe.Pointer(pRbuVfs)).FpRbu
}
- if oflags&int32(SQLITE_OPEN_MAIN_DB) != 0 && Xsqlite3_uri_boolean(tls, zName, __ccgo_ts+34751, 0) != 0 {
+ if oflags&int32(SQLITE_OPEN_MAIN_DB) != 0 && Xsqlite3_uri_boolean(tls, zName, __ccgo_ts+34780, 0) != 0 {
oflags = libc.Int32FromInt32(SQLITE_OPEN_TEMP_DB) | libc.Int32FromInt32(SQLITE_OPEN_READWRITE) | libc.Int32FromInt32(SQLITE_OPEN_CREATE) | libc.Int32FromInt32(SQLITE_OPEN_EXCLUSIVE) | libc.Int32FromInt32(SQLITE_OPEN_DELETEONCLOSE)
zOpen = uintptr(0)
}
@@ -264487,7 +264534,7 @@ func _statConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uint
_sqlite3TokenInit(tls, bp, *(*uintptr)(unsafe.Pointer(argv + 3*8)))
iDb = _sqlite3FindDb(tls, db, bp)
if iDb < 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+13774, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(argv + 3*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+13803, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(argv + 3*8))))
return int32(SQLITE_ERROR)
}
} else {
@@ -264987,7 +265034,7 @@ statNextRestart:
(*(*TStatPage)(unsafe.Pointer(pCsr + 24))).FiPgno = iRoot
(*(*TStatPage)(unsafe.Pointer(pCsr + 24))).FiCell = 0
if !((*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0) {
- v1 = Xsqlite3_mprintf(tls, __ccgo_ts+34762, 0)
+ v1 = Xsqlite3_mprintf(tls, __ccgo_ts+34791, 0)
z = v1
(*(*TStatPage)(unsafe.Pointer(pCsr + 24))).FzPath = v1
if z == uintptr(0) {
@@ -265025,8 +265072,8 @@ statNextRestart:
if !((*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0) {
(*TStatCursor)(unsafe.Pointer(pCsr)).FzName = Xsqlite3_column_text(tls, (*TStatCursor)(unsafe.Pointer(pCsr)).FpStmt, 0)
(*TStatCursor)(unsafe.Pointer(pCsr)).FiPageno = *(*Tu32)(unsafe.Pointer((*TStatCell)(unsafe.Pointer(pCell)).FaOvfl + uintptr(iOvfl)*4))
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34764
- v2 = Xsqlite3_mprintf(tls, __ccgo_ts+34773, libc.VaList(bp+16, (*TStatPage)(unsafe.Pointer(p)).FzPath, (*TStatPage)(unsafe.Pointer(p)).FiCell, iOvfl))
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34793
+ v2 = Xsqlite3_mprintf(tls, __ccgo_ts+34802, libc.VaList(bp+16, (*TStatPage)(unsafe.Pointer(p)).FzPath, (*TStatPage)(unsafe.Pointer(p)).FiCell, iOvfl))
z = v2
(*TStatCursor)(unsafe.Pointer(pCsr)).FzPath = v2
if z == uintptr(0) {
@@ -265055,7 +265102,7 @@ statNextRestart:
(*TStatCursor)(unsafe.Pointer(pCsr)).FiPage++
if (*TStatCursor)(unsafe.Pointer(pCsr)).FiPage >= int32(libc.Uint64FromInt64(2048)/libc.Uint64FromInt64(64)) {
_statResetCsr(tls, pCsr)
- return _sqlite3CorruptError(tls, int32(227304))
+ return _sqlite3CorruptError(tls, int32(227354))
}
if (*TStatPage)(unsafe.Pointer(p)).FiCell == (*TStatPage)(unsafe.Pointer(p)).FnCell {
(*(*TStatPage)(unsafe.Pointer(p + 1*64))).FiPgno = (*TStatPage)(unsafe.Pointer(p)).FiRightChildPg
@@ -265066,7 +265113,7 @@ statNextRestart:
(*TStatCursor)(unsafe.Pointer(pCsr)).FnPage++
(*(*TStatPage)(unsafe.Pointer(p + 1*64))).FiCell = 0
if !((*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0) {
- v4 = Xsqlite3_mprintf(tls, __ccgo_ts+34785, libc.VaList(bp+16, (*TStatPage)(unsafe.Pointer(p)).FzPath, (*TStatPage)(unsafe.Pointer(p)).FiCell))
+ v4 = Xsqlite3_mprintf(tls, __ccgo_ts+34814, libc.VaList(bp+16, (*TStatPage)(unsafe.Pointer(p)).FzPath, (*TStatPage)(unsafe.Pointer(p)).FiCell))
z = v4
(*(*TStatPage)(unsafe.Pointer(p + 1*64))).FzPath = v4
if z == uintptr(0) {
@@ -265089,13 +265136,13 @@ statNextRestart:
case int32(0x05): /* table internal */
fallthrough
case int32(0x02): /* index internal */
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34793
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34822
case int32(0x0D): /* table leaf */
fallthrough
case int32(0x0A): /* index leaf */
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34802
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34831
default:
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34807
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 34836
break
}
*(*int32)(unsafe.Pointer(pCsr + 2108)) += (*TStatPage)(unsafe.Pointer(p1)).FnCell
@@ -265193,12 +265240,12 @@ func _statFilter(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, a
(*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg = uint8(0)
}
pSql = Xsqlite3_str_new(tls, (*TStatTable)(unsafe.Pointer(pTab)).Fdb)
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+34817, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer((*TStatTable)(unsafe.Pointer(pTab)).Fdb)).FaDb + uintptr((*TStatCursor)(unsafe.Pointer(pCsr)).FiDb)*32))).FzDbSName))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+34846, libc.VaList(bp+8, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer((*TStatTable)(unsafe.Pointer(pTab)).Fdb)).FaDb + uintptr((*TStatCursor)(unsafe.Pointer(pCsr)).FiDb)*32))).FzDbSName))
if zName != 0 {
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+34972, libc.VaList(bp+8, zName))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+35001, libc.VaList(bp+8, zName))
}
if idxNum&int32(0x08) != 0 {
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+34986, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+35015, 0)
}
zSql = Xsqlite3_str_finish(tls, pSql)
if zSql == uintptr(0) {
@@ -265275,7 +265322,7 @@ func _statRowid(tls *libc.TLS, pCursor uintptr, pRowid uintptr) (r int32) {
// ** Invoke this routine to register the "dbstat" virtual table module
// */
func _sqlite3DbstatRegister(tls *libc.TLS, db uintptr) (r int32) {
- return Xsqlite3_create_module(tls, db, __ccgo_ts+35001, uintptr(unsafe.Pointer(&_dbstat_module)), uintptr(0))
+ return Xsqlite3_create_module(tls, db, __ccgo_ts+35030, uintptr(unsafe.Pointer(&_dbstat_module)), uintptr(0))
}
var _dbstat_module = Tsqlite3_module{}
@@ -266569,11 +266616,11 @@ func _sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
*(*uintptr)(unsafe.Pointer(pazDflt)) = uintptr(0)
}
nThis = _sqlite3Strlen30(tls, zThis)
- if nThis == int32(12) && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+13165, zThis) {
+ if nThis == int32(12) && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+13194, 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, __ccgo_ts+35008, 0)
+ zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+35037, 0)
} else {
if rc == int32(SQLITE_ERROR) {
zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+1674, 0)
@@ -266582,7 +266629,7 @@ func _sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
}
}
} else {
- zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+35138, libc.VaList(bp+16, zDb, zThis))
+ zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+35167, libc.VaList(bp+16, zDb, zThis))
}
if !(zPragma != 0) {
return int32(SQLITE_NOMEM)
@@ -266608,7 +266655,7 @@ func _sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
bRowid = 0
}
nDbCol += bRowid
- nByte = Tsqlite3_int64(uint64(nByte) + libc.Xstrlen(tls, __ccgo_ts+31348))
+ nByte = Tsqlite3_int64(uint64(nByte) + libc.Xstrlen(tls, __ccgo_ts+31377))
rc = Xsqlite3_reset(tls, *(*uintptr)(unsafe.Pointer(bp)))
if rc == SQLITE_OK {
nByte = Tsqlite3_int64(uint64(nByte) + uint64(nDbCol)*(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(2)+libc.Uint64FromInt64(4)+libc.Uint64FromInt64(1)+libc.Uint64FromInt32(1)+libc.Uint64FromInt32(1)))
@@ -266632,8 +266679,8 @@ func _sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
}
i = 0
if bRowid != 0 {
- nName = libc.Xstrlen(tls, __ccgo_ts+31348)
- libc.Xmemcpy(tls, pAlloc, __ccgo_ts+31348, nName+uint64(1))
+ nName = libc.Xstrlen(tls, __ccgo_ts+31377)
+ libc.Xmemcpy(tls, pAlloc, __ccgo_ts+31377, nName+uint64(1))
*(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)) = pAlloc
pAlloc += uintptr(nName + uint64(1))
*(*Tu8)(unsafe.Pointer(abPK + uintptr(i))) = uint8(1)
@@ -266737,7 +266784,7 @@ func _sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr, db uintptr
;
i++
}
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+13165, (*TSessionTable)(unsafe.Pointer(pTab)).FzName) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+13194, (*TSessionTable)(unsafe.Pointer(pTab)).FzName) {
(*TSessionTable)(unsafe.Pointer(pTab)).FbStat1 = int32(1)
}
if pSession != 0 && (*Tsqlite3_session)(unsafe.Pointer(pSession)).FbEnableSize != 0 {
@@ -267032,10 +267079,10 @@ func _sessionPrepareDfltStmt(tls *libc.TLS, db uintptr, pTab uintptr, ppStmt uin
_, _, _, _ = ii, zDflt, zSep, v2
*(*TSessionBuffer)(unsafe.Pointer(bp)) = TSessionBuffer{}
*(*int32)(unsafe.Pointer(bp + 16)) = SQLITE_OK
- zSep = __ccgo_ts + 12785
+ zSep = __ccgo_ts + 12814
ii = 0
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
- _sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+35168, 0)
+ _sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+35197, 0)
ii = 0
for {
if !(ii < (*TSessionTable)(unsafe.Pointer(pTab)).FnCol) {
@@ -267048,7 +267095,7 @@ func _sessionPrepareDfltStmt(tls *libc.TLS, db uintptr, pTab uintptr, ppStmt uin
}
zDflt = v2
_sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+6538, libc.VaList(bp+32, zSep, zDflt))
- zSep = __ccgo_ts + 16546
+ zSep = __ccgo_ts + 16575
goto _1
_1:
;
@@ -267702,8 +267749,8 @@ func _sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr
break
}
if *(*Tu8)(unsafe.Pointer(abPK + uintptr(i))) != 0 {
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35175, libc.VaList(bp+8, zRet, zSep, zDb1, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zDb2, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
- zSep = __ccgo_ts + 23690
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35204, libc.VaList(bp+8, zRet, zSep, zDb1, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zDb2, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
+ zSep = __ccgo_ts + 23719
if zRet == uintptr(0) {
break
}
@@ -267732,8 +267779,8 @@ func _sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uint
}
if int32(*(*Tu8)(unsafe.Pointer(abPK + uintptr(i)))) == 0 {
bHave = int32(1)
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35209, libc.VaList(bp+8, zRet, zSep, zDb1, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zDb2, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
- zSep = __ccgo_ts + 35250
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35238, libc.VaList(bp+8, zRet, zSep, zDb1, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zDb2, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
+ zSep = __ccgo_ts + 35279
if zRet == uintptr(0) {
break
}
@@ -267755,12 +267802,12 @@ func _sessionSelectFindNew(tls *libc.TLS, zDb1 uintptr, zDb2 uintptr, bRowid int
var zRet, zSel, v1 uintptr
_, _, _ = zRet, zSel, v1
if bRowid != 0 {
- v1 = __ccgo_ts + 35255
+ v1 = __ccgo_ts + 35284
} else {
v1 = __ccgo_ts + 8112
}
zSel = v1
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35266, libc.VaList(bp+8, zSel, zDb1, zTbl, zDb2, zTbl, zExpr))
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35295, libc.VaList(bp+8, zSel, zDb1, zTbl, zDb2, zTbl, zExpr))
return zRet
}
@@ -267821,11 +267868,11 @@ func _sessionAllCols(tls *libc.TLS, zDb uintptr, pTab uintptr) (r uintptr) {
break
}
if zRet != 0 {
- v2 = __ccgo_ts + 16546
+ v2 = __ccgo_ts + 16575
} else {
v2 = __ccgo_ts + 1674
}
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35345, libc.VaList(bp+8, zRet, v2, zDb, (*TSessionTable)(unsafe.Pointer(pTab)).FzName, *(*uintptr)(unsafe.Pointer((*TSessionTable)(unsafe.Pointer(pTab)).FazCol + uintptr(ii)*8))))
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+35374, libc.VaList(bp+8, zRet, v2, zDb, (*TSessionTable)(unsafe.Pointer(pTab)).FzName, *(*uintptr)(unsafe.Pointer((*TSessionTable)(unsafe.Pointer(pTab)).FazCol + uintptr(ii)*8))))
if !(zRet != 0) {
break
}
@@ -267853,7 +267900,7 @@ func _sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFr
} else {
z1 = _sessionAllCols(tls, (*Tsqlite3_session)(unsafe.Pointer(pSession)).FzDb, pTab)
z2 = _sessionAllCols(tls, zFrom, pTab)
- zStmt = Xsqlite3_mprintf(tls, __ccgo_ts+35364, libc.VaList(bp+16, z1, z2, (*Tsqlite3_session)(unsafe.Pointer(pSession)).FzDb, (*TSessionTable)(unsafe.Pointer(pTab)).FzName, zFrom, (*TSessionTable)(unsafe.Pointer(pTab)).FzName, zExpr, zExpr2))
+ zStmt = Xsqlite3_mprintf(tls, __ccgo_ts+35393, libc.VaList(bp+16, z1, z2, (*Tsqlite3_session)(unsafe.Pointer(pSession)).FzDb, (*TSessionTable)(unsafe.Pointer(pTab)).FzName, zFrom, (*TSessionTable)(unsafe.Pointer(pTab)).FzName, zExpr, zExpr2))
if zStmt == uintptr(0) || z1 == uintptr(0) || z2 == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -267926,7 +267973,7 @@ func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl u
*(*uintptr)(unsafe.Pointer(bp + 40)) = uintptr(0)
zDbExists = uintptr(0)
/* Check that database zFrom is attached. */
- zDbExists = Xsqlite3_mprintf(tls, __ccgo_ts+35421, libc.VaList(bp+64, zFrom))
+ zDbExists = Xsqlite3_mprintf(tls, __ccgo_ts+35450, libc.VaList(bp+64, zFrom))
if zDbExists == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -267952,7 +267999,7 @@ func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl u
if *(*int32)(unsafe.Pointer(bp + 24)) <= 0 {
rc = int32(SQLITE_SCHEMA)
if pzErrMsg != 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+35452, libc.VaList(bp+64, zFrom, zTbl))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+35481, libc.VaList(bp+64, zFrom, zTbl))
}
} else {
bMismatch = int32(1)
@@ -267982,7 +268029,7 @@ func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl u
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 40)))
if bMismatch != 0 {
if pzErrMsg != 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+35473, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+35502, 0)
}
rc = int32(SQLITE_SCHEMA)
}
@@ -268614,12 +268661,12 @@ func _sessionSelectStmt(tls *libc.TLS, db uintptr, bIgnoreNoop int32, zDb uintpt
*(*TSessionBuffer)(unsafe.Pointer(bp + 24)) = TSessionBuffer{}
*(*TSessionBuffer)(unsafe.Pointer(bp + 40)) = TSessionBuffer{}
*(*TSessionBuffer)(unsafe.Pointer(bp + 56)) = TSessionBuffer{}
- _sessionAppendStr(tls, bp+24, __ccgo_ts+35500, bp)
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+13165, zTab) {
- _sessionAppendStr(tls, bp+24, __ccgo_ts+35504, bp)
- _sessionAppendStr(tls, bp+40, __ccgo_ts+35528, bp)
- _sessionAppendStr(tls, bp+56, __ccgo_ts+35537, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35582, bp)
+ _sessionAppendStr(tls, bp+24, __ccgo_ts+35529, bp)
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+13194, zTab) {
+ _sessionAppendStr(tls, bp+24, __ccgo_ts+35533, bp)
+ _sessionAppendStr(tls, bp+40, __ccgo_ts+35557, bp)
+ _sessionAppendStr(tls, bp+56, __ccgo_ts+35566, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35611, bp)
} else {
i = 0
for {
@@ -268627,17 +268674,17 @@ func _sessionSelectStmt(tls *libc.TLS, db uintptr, bIgnoreNoop int32, zDb uintpt
break
}
if (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FnBuf != 0 {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+16546, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+16575, bp)
}
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), bp)
if *(*Tu8)(unsafe.Pointer(abPK + uintptr(i))) != 0 {
_sessionAppendStr(tls, bp+40, zSep, bp)
_sessionAppendStr(tls, bp+56, zSep, bp)
- zSep = __ccgo_ts + 16546
+ zSep = __ccgo_ts + 16575
_sessionAppendIdent(tls, bp+40, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), bp)
- _sessionAppendPrintf(tls, bp+56, bp, __ccgo_ts+35596, libc.VaList(bp+80, i+int32(1)))
+ _sessionAppendPrintf(tls, bp+56, bp, __ccgo_ts+35625, libc.VaList(bp+80, i+int32(1)))
} else {
- _sessionAppendPrintf(tls, bp+24, bp, __ccgo_ts+35600, libc.VaList(bp+80, i+int32(1)+nCol, i+int32(1), zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
+ _sessionAppendPrintf(tls, bp+24, bp, __ccgo_ts+35629, libc.VaList(bp+80, i+int32(1)+nCol, i+int32(1), zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
}
goto _1
_1:
@@ -268651,7 +268698,7 @@ func _sessionSelectStmt(tls *libc.TLS, db uintptr, bIgnoreNoop int32, zDb uintpt
} else {
v2 = __ccgo_ts + 1674
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+35627, libc.VaList(bp+80, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FaBuf, v2, zDb, zTab, (*(*TSessionBuffer)(unsafe.Pointer(bp + 40))).FaBuf, (*(*TSessionBuffer)(unsafe.Pointer(bp + 56))).FaBuf))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+35656, libc.VaList(bp+80, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FaBuf, v2, zDb, zTab, (*(*TSessionBuffer)(unsafe.Pointer(bp + 40))).FaBuf, (*(*TSessionBuffer)(unsafe.Pointer(bp + 56))).FaBuf))
if zSql == uintptr(0) {
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_NOMEM)
}
@@ -268793,7 +268840,7 @@ func _sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32,
if (*Tsqlite3_session)(unsafe.Pointer(pSession)).Frc != 0 {
return (*Tsqlite3_session)(unsafe.Pointer(pSession)).Frc
}
- *(*int32)(unsafe.Pointer(bp + 16)) = Xsqlite3_exec(tls, (*Tsqlite3_session)(unsafe.Pointer(pSession)).Fdb, __ccgo_ts+35669, uintptr(0), uintptr(0), uintptr(0))
+ *(*int32)(unsafe.Pointer(bp + 16)) = Xsqlite3_exec(tls, (*Tsqlite3_session)(unsafe.Pointer(pSession)).Fdb, __ccgo_ts+35698, uintptr(0), uintptr(0), uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 16)) != SQLITE_OK {
return *(*int32)(unsafe.Pointer(bp + 16))
}
@@ -268899,7 +268946,7 @@ func _sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32,
}
}
Xsqlite3_free(tls, (*(*TSessionBuffer)(unsafe.Pointer(bp))).FaBuf)
- Xsqlite3_exec(tls, db, __ccgo_ts+35689, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+35718, uintptr(0), uintptr(0), uintptr(0))
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db))
return *(*int32)(unsafe.Pointer(bp + 16))
}
@@ -269317,7 +269364,7 @@ func _sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, ap
rc = _sessionInputBuffer(tls, pIn, int32(9))
if rc == SQLITE_OK {
if (*TSessionInput)(unsafe.Pointer(pIn)).FiNext >= (*TSessionInput)(unsafe.Pointer(pIn)).FnData {
- rc = _sqlite3CorruptError(tls, int32(231591))
+ rc = _sqlite3CorruptError(tls, int32(231641))
} else {
v3 = pIn + 8
v2 = *(*int32)(unsafe.Pointer(v3))
@@ -269341,7 +269388,7 @@ func _sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, ap
rc = _sessionInputBuffer(tls, pIn, *(*int32)(unsafe.Pointer(bp)))
if rc == SQLITE_OK {
if *(*int32)(unsafe.Pointer(bp)) < 0 || *(*int32)(unsafe.Pointer(bp)) > (*TSessionInput)(unsafe.Pointer(pIn)).FnData-(*TSessionInput)(unsafe.Pointer(pIn)).FiNext {
- rc = _sqlite3CorruptError(tls, int32(231611))
+ rc = _sqlite3CorruptError(tls, int32(231661))
} else {
if eType == int32(SQLITE_TEXT) {
v4 = int32(SQLITE_UTF8)
@@ -269356,7 +269403,7 @@ func _sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, ap
}
if eType == int32(SQLITE_INTEGER) || eType == int32(SQLITE_FLOAT) {
if (*TSessionInput)(unsafe.Pointer(pIn)).FnData-(*TSessionInput)(unsafe.Pointer(pIn)).FiNext < int32(8) {
- rc = _sqlite3CorruptError(tls, int32(231621))
+ rc = _sqlite3CorruptError(tls, int32(231671))
} else {
*(*Tsqlite3_int64)(unsafe.Pointer(bp + 8)) = _sessionGetI64(tls, aVal)
if eType == int32(SQLITE_INTEGER) {
@@ -269412,7 +269459,7 @@ func _sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) (
** 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)) > int32(65536) {
- rc = _sqlite3CorruptError(tls, int32(231669))
+ rc = _sqlite3CorruptError(tls, int32(231719))
} else {
rc = _sessionInputBuffer(tls, pIn, nRead+*(*int32)(unsafe.Pointer(bp))+int32(100))
nRead += *(*int32)(unsafe.Pointer(bp))
@@ -269517,7 +269564,7 @@ func _sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) (r int32) {
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Ftblhdr.FnBuf = 0
_sessionBufferGrow(tls, p+72, int64(nByte), bp)
} else {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(231757))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(231807))
}
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -269623,7 +269670,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
if (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FzTab == uintptr(0) || (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FbPatchset != 0 && (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FbInvert != 0 {
/* The first record in the changeset is not a table header. Must be a
** corrupt changeset. */
- v7 = _sqlite3CorruptError(tls, int32(231843))
+ v7 = _sqlite3CorruptError(tls, int32(231893))
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Frc = v7
return v7
}
@@ -269633,7 +269680,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
*(*int32)(unsafe.Pointer(v9))++
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FbIndirect = int32(*(*Tu8)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Fin.FaData + uintptr(v8))))
if (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Fop != int32(SQLITE_UPDATE) && (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Fop != int32(SQLITE_DELETE) && (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Fop != int32(SQLITE_INSERT) {
- v10 = _sqlite3CorruptError(tls, int32(231849))
+ v10 = _sqlite3CorruptError(tls, int32(231899))
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Frc = v10
return v10
}
@@ -269712,7 +269759,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
if *(*Tu8)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FabPK + uintptr(i))) != 0 {
*(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i)*8)) = *(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i+(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*8))
if *(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i)*8)) == uintptr(0) {
- v16 = _sqlite3CorruptError(tls, int32(231893))
+ v16 = _sqlite3CorruptError(tls, int32(231943))
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Frc = v16
return v16
}
@@ -270122,7 +270169,7 @@ func _sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOu
goto finished_invert
}
default:
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(232258))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(232308))
goto finished_invert
}
if xOutput != 0 && (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FnBuf >= _sessions_strm_chunk_size {
@@ -270325,7 +270372,7 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
}
if pUp == uintptr(0) {
nByte = int32(uint64(24) * uint64(nU32) * uint64(4))
- bStat1 = libc.BoolInt32(Xsqlite3_stricmp(tls, (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, __ccgo_ts+13165) == 0)
+ bStat1 = libc.BoolInt32(Xsqlite3_stricmp(tls, (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, __ccgo_ts+13194) == 0)
pUp = Xsqlite3_malloc(tls, nByte)
if pUp == uintptr(0) {
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_NOMEM)
@@ -270334,9 +270381,9 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
libc.Xmemset(tls, bp+8, 0, uint64(16))
(*TSessionUpdate)(unsafe.Pointer(pUp)).FaMask = pUp + 1*24
libc.Xmemcpy(tls, (*TSessionUpdate)(unsafe.Pointer(pUp)).FaMask, (*TSessionApplyCtx)(unsafe.Pointer(p)).FaUpdateMask, uint64(nU32)*uint64(4))
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35707, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35736, bp)
_sessionAppendIdent(tls, bp+8, (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35720, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35749, bp)
/* Create the assignments part of the UPDATE */
ii = 0
for {
@@ -270346,9 +270393,9 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
if int32(*(*Tu8)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(ii)))) == 0 && *(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue + uintptr((*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol+ii)*8)) != 0 {
_sessionAppendStr(tls, bp+8, zSep, bp)
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35726, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35755, bp)
_sessionAppendInteger(tls, bp+8, ii*int32(2)+int32(1), bp)
- zSep = __ccgo_ts + 16546
+ zSep = __ccgo_ts + 16575
}
goto _2
_2:
@@ -270357,7 +270404,7 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
}
/* Create the WHERE clause part of the UPDATE */
zSep = __ccgo_ts + 1674
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35731, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35760, bp)
ii = 0
for {
if !(ii < (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol) {
@@ -270366,13 +270413,13 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
if *(*Tu8)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(ii))) != 0 || bPatchset == 0 && *(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue + uintptr(ii)*8)) != 0 {
_sessionAppendStr(tls, bp+8, zSep, bp)
if bStat1 != 0 && ii == int32(1) {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35739, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35768, bp)
} else {
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35814, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35843, bp)
_sessionAppendInteger(tls, bp+8, ii*int32(2)+int32(2), bp)
}
- zSep = __ccgo_ts + 23690
+ zSep = __ccgo_ts + 23719
}
goto _3
_3:
@@ -270459,9 +270506,9 @@ func _sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
*(*TSessionBuffer)(unsafe.Pointer(bp + 8)) = TSessionBuffer{}
nPk = 0
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35820, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35849, bp)
_sessionAppendIdent(tls, bp+8, zTab, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35731, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35760, bp)
i = 0
for {
if !(i < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol) {
@@ -270471,9 +270518,9 @@ func _sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
nPk++
_sessionAppendStr(tls, bp+8, zSep, bp)
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35726, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35755, bp)
_sessionAppendInteger(tls, bp+8, i+int32(1), bp)
- zSep = __ccgo_ts + 23690
+ zSep = __ccgo_ts + 23719
}
goto _1
_1:
@@ -270481,9 +270528,9 @@ func _sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
i++
}
if nPk < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35838, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35867, bp)
_sessionAppendInteger(tls, bp+8, (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol+int32(1), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35250, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35279, bp)
zSep = __ccgo_ts + 1674
i = 0
for {
@@ -270493,9 +270540,9 @@ func _sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
if !(*(*Tu8)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(i))) != 0) {
_sessionAppendStr(tls, bp+8, zSep, bp)
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35814, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35843, bp)
_sessionAppendInteger(tls, bp+8, i+int32(1), bp)
- zSep = __ccgo_ts + 35846
+ zSep = __ccgo_ts + 35875
}
goto _2
_2:
@@ -270551,16 +270598,16 @@ func _sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
_ = i
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
*(*TSessionBuffer)(unsafe.Pointer(bp + 8)) = TSessionBuffer{}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35851, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35880, bp)
_sessionAppendIdent(tls, bp+8, zTab, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+23696, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+23725, bp)
i = 0
for {
if !(i < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol) {
break
}
if i != 0 {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+16546, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+16575, bp)
}
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp)
goto _1
@@ -270568,13 +270615,13 @@ func _sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
;
i++
}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35869, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35898, bp)
i = int32(1)
for {
if !(i < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol) {
break
}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+35880, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+35909, bp)
goto _2
_2:
;
@@ -270603,12 +270650,12 @@ func _sessionPrepare(tls *libc.TLS, db uintptr, pp uintptr, zSql uintptr) (r int
func _sessionStat1Sql(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
var rc int32
_ = rc
- rc = _sessionSelectRow(tls, db, __ccgo_ts+13165, p)
+ rc = _sessionSelectRow(tls, db, __ccgo_ts+13194, p)
if rc == SQLITE_OK {
- rc = _sessionPrepare(tls, db, p+16, __ccgo_ts+35884)
+ rc = _sessionPrepare(tls, db, p+16, __ccgo_ts+35913)
}
if rc == SQLITE_OK {
- rc = _sessionPrepare(tls, db, p+8, __ccgo_ts+35997)
+ rc = _sessionPrepare(tls, db, p+8, __ccgo_ts+36026)
}
return rc
}
@@ -270674,7 +270721,7 @@ func _sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, a
if *(*uintptr)(unsafe.Pointer(bp)) == uintptr(0) {
/* The value in the changeset was "undefined". This indicates a
** corrupt changeset blob. */
- rc = _sqlite3CorruptError(tls, int32(232740))
+ rc = _sqlite3CorruptError(tls, int32(232790))
} else {
rc = _sessionBindValue(tls, pStmt, i+int32(1), *(*uintptr)(unsafe.Pointer(bp)))
}
@@ -271090,7 +271137,7 @@ func _sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply
rc = _sessionApplyOneOp(tls, pIter, pApply, xConflict, pCtx, uintptr(0), uintptr(0))
} else {
if *(*int32)(unsafe.Pointer(bp)) != 0 {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+36141, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+36170, uintptr(0), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
rc = _sessionBindRow(tls, pIter, __ccgo_fp(Xsqlite3changeset_new), (*TSessionApplyCtx)(unsafe.Pointer(pApply)).FnCol, (*TSessionApplyCtx)(unsafe.Pointer(pApply)).FabPK, (*TSessionApplyCtx)(unsafe.Pointer(pApply)).FpDelete)
Xsqlite3_bind_int(tls, (*TSessionApplyCtx)(unsafe.Pointer(pApply)).FpDelete, (*TSessionApplyCtx)(unsafe.Pointer(pApply)).FnCol+int32(1), int32(1))
@@ -271103,7 +271150,7 @@ func _sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply
rc = _sessionApplyOneOp(tls, pIter, pApply, xConflict, pCtx, uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+36162, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+36191, uintptr(0), uintptr(0), uintptr(0))
}
}
}
@@ -271203,10 +271250,10 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
(*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FbInvertConstraints = libc.BoolInt32(!!(flags&libc.Int32FromInt32(SQLITE_CHANGESETAPPLY_INVERT) != 0))
(*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FbIgnoreNoop = libc.BoolUint8(!!(flags&libc.Int32FromInt32(SQLITE_CHANGESETAPPLY_IGNORENOOP) != 0))
if flags&int32(SQLITE_CHANGESETAPPLY_NOSAVEPOINT) == 0 {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+36181, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+36210, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+36207, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+36236, uintptr(0), uintptr(0), uintptr(0))
}
for rc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3changeset_next(tls, pIter) {
Xsqlite3changeset_op(tls, pIter, bp+144, bp+136, bp+140, uintptr(0))
@@ -271266,18 +271313,18 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
}
if (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FnCol == 0 {
schemaMismatch = int32(1)
- Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+36237, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp))))
+ Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+36266, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp))))
} else {
if (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FnCol < *(*int32)(unsafe.Pointer(bp + 136)) {
schemaMismatch = int32(1)
- Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+36281, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp)), (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FnCol, *(*int32)(unsafe.Pointer(bp + 136))))
+ Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+36310, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp)), (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FnCol, *(*int32)(unsafe.Pointer(bp + 136))))
} else {
if *(*int32)(unsafe.Pointer(bp + 136)) < nMinCol || libc.Xmemcmp(tls, (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FabPK, *(*uintptr)(unsafe.Pointer(bp + 152)), uint64(*(*int32)(unsafe.Pointer(bp + 136)))) != 0 {
schemaMismatch = int32(1)
- Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+36352, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp))))
+ Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+36381, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp))))
} else {
(*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FnCol = *(*int32)(unsafe.Pointer(bp + 136))
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+13165) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+13194) {
v2 = _sessionStat1Sql(tls, db, bp+8)
rc = v2
if v2 != 0 {
@@ -271334,17 +271381,17 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
}
}
}
- rc2 = Xsqlite3_exec(tls, db, __ccgo_ts+36412, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, db, __ccgo_ts+36441, uintptr(0), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
rc = rc2
}
if flags&int32(SQLITE_CHANGESETAPPLY_NOSAVEPOINT) == 0 {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+36442, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+36471, uintptr(0), uintptr(0), uintptr(0))
}
if rc != SQLITE_OK {
- Xsqlite3_exec(tls, db, __ccgo_ts+36466, uintptr(0), uintptr(0), uintptr(0))
- Xsqlite3_exec(tls, db, __ccgo_ts+36442, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+36495, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+36471, uintptr(0), uintptr(0), uintptr(0))
}
}
if rc == SQLITE_OK && bPatchset == 0 && (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FbRebase != 0 {
@@ -274072,7 +274119,7 @@ func _fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) {
/* Here code is inserted which will execute if the parser
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36494, 0)
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36523, 0)
/******** End %stack_overflow code ********************************************/
(*Tfts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse /* Suppress warning about unused %extra_argument var */
}
@@ -274428,7 +274475,7 @@ func _fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int3
pParse = (*Tfts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse
/************ Begin %syntax_error code ****************************************/
_ = fts5yymajor /* Silence a compiler warning */
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36522, libc.VaList(bp+8, fts5yyminor.Fn, fts5yyminor.Fp))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36551, libc.VaList(bp+8, fts5yyminor.Fn, fts5yyminor.Fp))
/************ End %syntax_error code ******************************************/
(*Tfts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse /* Suppress warning about unused %extra_argument variable */
}
@@ -274717,7 +274764,7 @@ func _fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n in
if n < 0 {
n = int32(libc.Xstrlen(tls, z))
}
- (*THighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, __ccgo_ts+36553, libc.VaList(bp+8, (*THighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
+ (*THighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, __ccgo_ts+36582, libc.VaList(bp+8, (*THighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
if (*THighlightContext)(unsafe.Pointer(p)).FzOut == uintptr(0) {
*(*int32)(unsafe.Pointer(pRc)) = int32(SQLITE_NOMEM)
}
@@ -274816,7 +274863,7 @@ func _fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uint
var _ /* rc at bp+104 */ int32
_, _ = iCol, zErr
if nVal != int32(3) {
- zErr = __ccgo_ts + 36560
+ zErr = __ccgo_ts + 36589
Xsqlite3_result_error(tls, pCtx, zErr, -int32(1))
return
}
@@ -275071,7 +275118,7 @@ func _fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintpt
nBestScore = 0 /* Score of best snippet */
*(*int32)(unsafe.Pointer(bp + 112)) = 0
if nVal != int32(5) {
- zErr = __ccgo_ts + 36610
+ zErr = __ccgo_ts + 36639
Xsqlite3_result_error(tls, pCtx, zErr, -int32(1))
return
}
@@ -275466,13 +275513,13 @@ func _fts5GetLocaleFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uint
*(*int32)(unsafe.Pointer(bp + 8)) = 0
/* xColumnLocale() must be available */
if nVal != int32(1) {
- z = __ccgo_ts + 36658
+ z = __ccgo_ts + 36687
Xsqlite3_result_error(tls, pCtx, z, -int32(1))
return
}
eType = Xsqlite3_value_numeric_type(tls, *(*uintptr)(unsafe.Pointer(apVal)))
if eType != int32(SQLITE_INTEGER) {
- z1 = __ccgo_ts + 36714
+ z1 = __ccgo_ts + 36743
Xsqlite3_result_error(tls, pCtx, z1, -int32(1))
return
}
@@ -275505,19 +275552,19 @@ func _sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) (r int32) {
FxDestroy uintptr
}{
0: {
- FzFunc: __ccgo_ts + 36772,
+ FzFunc: __ccgo_ts + 36801,
FxFunc: __ccgo_fp(_fts5SnippetFunction),
},
1: {
- FzFunc: __ccgo_ts + 36780,
+ FzFunc: __ccgo_ts + 36809,
FxFunc: __ccgo_fp(_fts5HighlightFunction),
},
2: {
- FzFunc: __ccgo_ts + 36790,
+ FzFunc: __ccgo_ts + 36819,
FxFunc: __ccgo_fp(_fts5Bm25Function),
},
3: {
- FzFunc: __ccgo_ts + 36795,
+ FzFunc: __ccgo_ts + 36824,
FxFunc: __ccgo_fp(_fts5GetLocaleFunction),
},
}
@@ -276381,7 +276428,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
_, _, _, _, _, _, _, _, _, _, _ = azArg, bFirst, nArg, nByte, nCmd, nPre, p, p1, p2, pSpace, v2
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
nCmd = int32(libc.Xstrlen(tls, zCmd))
- if Xsqlite3_strnicmp(tls, __ccgo_ts+36811, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+36840, zCmd, nCmd) == 0 {
nByte = int32(libc.Uint64FromInt64(4) * libc.Uint64FromInt32(FTS5_MAX_PREFIX_INDEXES))
bFirst = int32(1)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FaPrefix == uintptr(0) {
@@ -276407,12 +276454,12 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
}
}
if int32(*(*int8)(unsafe.Pointer(p))) < int32('0') || int32(*(*int8)(unsafe.Pointer(p))) > int32('9') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36818, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36847, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
break
}
if (*TFts5Config)(unsafe.Pointer(pConfig)).FnPrefix == int32(FTS5_MAX_PREFIX_INDEXES) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36849, libc.VaList(bp+80, int32(FTS5_MAX_PREFIX_INDEXES)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36878, libc.VaList(bp+80, int32(FTS5_MAX_PREFIX_INDEXES)))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
break
}
@@ -276421,7 +276468,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
p++
}
if nPre <= 0 || nPre >= int32(1000) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36882, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36911, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
break
}
@@ -276431,14 +276478,14 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+36919, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+36948, zCmd, nCmd) == 0 {
p1 = zArg
nArg = int64(libc.Xstrlen(tls, zArg) + uint64(1))
azArg = _sqlite3Fts5MallocZero(tls, bp, int64((libc.Uint64FromInt64(8)+libc.Uint64FromInt32(2))*uint64(nArg)))
if azArg != 0 {
pSpace = azArg + uintptr(nArg)*8
if (*TFts5Config)(unsafe.Pointer(pConfig)).Ft.FazArg != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36928, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36957, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
nArg = 0
@@ -276465,7 +276512,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
nArg++
}
if p1 == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36961, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+36990, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).Ft.FazArg = azArg
@@ -276477,59 +276524,59 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
Xsqlite3_free(tls, azArg)
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+36995, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37024, zCmd, nCmd) == 0 {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37003, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37032, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if *(*int8)(unsafe.Pointer(zArg)) != 0 {
(*TFts5Config)(unsafe.Pointer(pConfig)).FeContent = int32(FTS5_CONTENT_EXTERNAL)
- (*TFts5Config)(unsafe.Pointer(pConfig)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37035, libc.VaList(bp+80, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
+ (*TFts5Config)(unsafe.Pointer(pConfig)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37064, libc.VaList(bp+80, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FeContent = int32(FTS5_CONTENT_NONE)
}
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+37041, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37070, zCmd, nCmd) == 0 {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*int8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37060, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37089, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete = libc.BoolInt32(int32(*(*int8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+37103, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37132, zCmd, nCmd) == 0 {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*int8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37060, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37089, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessUnindexed = libc.BoolInt32(int32(*(*int8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+37125, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37154, zCmd, nCmd) == 0 {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37139, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37168, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FzContentRowid = _sqlite3Fts5Strndup(tls, bp, zArg, -int32(1))
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+37177, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37206, zCmd, nCmd) == 0 {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*int8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37188, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37217, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.BoolInt32(int32(*(*int8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+37223, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37252, zCmd, nCmd) == 0 {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*int8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37230, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37259, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbLocale = libc.BoolInt32(int32(*(*int8)(unsafe.Pointer(zArg))) == int32('1'))
@@ -276543,10 +276590,10 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
FeVal: int32(FTS5_DETAIL_NONE),
},
1: {
- FzName: __ccgo_ts + 19359,
+ FzName: __ccgo_ts + 19388,
},
2: {
- FzName: __ccgo_ts + 37261,
+ FzName: __ccgo_ts + 37290,
FeVal: int32(FTS5_DETAIL_COLUMNS),
},
3: {},
@@ -276554,20 +276601,20 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pConfig uintptr, zCmd uintptr, zArg
v2 = _fts5ConfigSetEnum(tls, bp+8, zArg, pConfig+116)
*(*int32)(unsafe.Pointer(bp)) = v2
if v2 != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37269, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37298, 0)
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+37300, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+37329, zCmd, nCmd) == 0 {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*int8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37310, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37339, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbTokendata = libc.BoolInt32(int32(*(*int8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37344, libc.VaList(bp+80, nCmd, zCmd))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37373, libc.VaList(bp+80, nCmd, zCmd))
return int32(SQLITE_ERROR)
}
@@ -276628,16 +276675,16 @@ func _fts5ConfigParseColumn(tls *libc.TLS, p uintptr, zCol uintptr, zArg uintptr
var v2 uintptr
_, _, _ = rc, v1, v2
rc = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+37372) || 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+18295) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37377, libc.VaList(bp+8, zCol))
+ if 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+37401) || 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+18324) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37406, libc.VaList(bp+8, zCol))
rc = int32(SQLITE_ERROR)
} else {
if zArg != 0 {
- if 0 == Xsqlite3_stricmp(tls, zArg, __ccgo_ts+37407) {
+ if 0 == Xsqlite3_stricmp(tls, zArg, __ccgo_ts+37436) {
*(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FabUnindexed + uintptr((*TFts5Config)(unsafe.Pointer(p)).FnCol))) = uint8(1)
*(*int32)(unsafe.Pointer(pbUnindexed)) = int32(1)
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37417, libc.VaList(bp+8, zArg))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37446, libc.VaList(bp+8, zArg))
rc = int32(SQLITE_ERROR)
}
}
@@ -276663,7 +276710,7 @@ func _fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) (r int32) {
_ = i
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
*(*TFts5Buffer)(unsafe.Pointer(bp + 8)) = TFts5Buffer{}
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37448, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(p)).FzContentRowid))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37477, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(p)).FzContentRowid))
if (*TFts5Config)(unsafe.Pointer(p)).FeContent != int32(FTS5_CONTENT_NONE) {
i = 0
for {
@@ -276671,12 +276718,12 @@ func _fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) (r int32) {
break
}
if (*TFts5Config)(unsafe.Pointer(p)).FeContent == int32(FTS5_CONTENT_EXTERNAL) {
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37453, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37482, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
} else {
if (*TFts5Config)(unsafe.Pointer(p)).FeContent == FTS5_CONTENT_NORMAL || *(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FabUnindexed + uintptr(i))) != 0 {
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37460, libc.VaList(bp+32, i))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37489, libc.VaList(bp+32, i))
} else {
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37468, 0)
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37497, 0)
}
}
goto _1
@@ -276692,9 +276739,9 @@ func _fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) (r int32) {
break
}
if int32(*(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FabUnindexed + uintptr(i)))) == 0 {
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37475, libc.VaList(bp+32, i))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37504, libc.VaList(bp+32, i))
} else {
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37468, 0)
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+37497, 0)
}
goto _2
_2:
@@ -276757,8 +276804,8 @@ func _sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg in
(*TFts5Config)(unsafe.Pointer(pRet)).FzName = _sqlite3Fts5Strndup(tls, bp, *(*uintptr)(unsafe.Pointer(azArg + 2*8)), -int32(1))
(*TFts5Config)(unsafe.Pointer(pRet)).FbColumnsize = int32(1)
(*TFts5Config)(unsafe.Pointer(pRet)).FeDetail = FTS5_DETAIL_FULL
- if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && Xsqlite3_stricmp(tls, (*TFts5Config)(unsafe.Pointer(pRet)).FzName, __ccgo_ts+37372) == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37483, libc.VaList(bp+40, (*TFts5Config)(unsafe.Pointer(pRet)).FzName))
+ if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && Xsqlite3_stricmp(tls, (*TFts5Config)(unsafe.Pointer(pRet)).FzName, __ccgo_ts+37401) == 0 {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37512, libc.VaList(bp+40, (*TFts5Config)(unsafe.Pointer(pRet)).FzName))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
i = int32(3)
@@ -276789,7 +276836,7 @@ func _sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg in
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
if z == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37512, libc.VaList(bp+40, zOrig))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37541, libc.VaList(bp+40, zOrig))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if bOption != 0 {
@@ -276819,7 +276866,7 @@ func _sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg in
}
/* We only allow contentless_delete=1 if the table is indeed contentless. */
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pRet)).FbContentlessDelete != 0 && (*TFts5Config)(unsafe.Pointer(pRet)).FeContent != int32(FTS5_CONTENT_NONE) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37532, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37561, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
/* We only allow contentless_delete=1 if columnsize=0 is not present.
@@ -276827,37 +276874,37 @@ func _sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg in
** This restriction may be removed at some point.
*/
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pRet)).FbContentlessDelete != 0 && (*TFts5Config)(unsafe.Pointer(pRet)).FbColumnsize == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37582, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37611, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
/* We only allow contentless_unindexed=1 if the table is actually a
** contentless one.
*/
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pRet)).FbContentlessUnindexed != 0 && (*TFts5Config)(unsafe.Pointer(pRet)).FeContent != int32(FTS5_CONTENT_NONE) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37637, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37666, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
/* If no zContent option was specified, fill in the default values. */
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pRet)).FzContent == uintptr(0) {
zTail = uintptr(0)
if (*TFts5Config)(unsafe.Pointer(pRet)).FeContent == FTS5_CONTENT_NORMAL {
- zTail = __ccgo_ts + 36995
+ zTail = __ccgo_ts + 37024
} else {
if *(*int32)(unsafe.Pointer(bp + 4)) != 0 && (*TFts5Config)(unsafe.Pointer(pRet)).FbContentlessUnindexed != 0 {
(*TFts5Config)(unsafe.Pointer(pRet)).FeContent = int32(FTS5_CONTENT_UNINDEXED)
- zTail = __ccgo_ts + 36995
+ zTail = __ccgo_ts + 37024
} else {
if (*TFts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 {
- zTail = __ccgo_ts + 37690
+ zTail = __ccgo_ts + 37719
}
}
}
if zTail != 0 {
- (*TFts5Config)(unsafe.Pointer(pRet)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37698, libc.VaList(bp+40, (*TFts5Config)(unsafe.Pointer(pRet)).FzDb, (*TFts5Config)(unsafe.Pointer(pRet)).FzName, zTail))
+ (*TFts5Config)(unsafe.Pointer(pRet)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37727, libc.VaList(bp+40, (*TFts5Config)(unsafe.Pointer(pRet)).FzDb, (*TFts5Config)(unsafe.Pointer(pRet)).FzName, zTail))
}
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pRet)).FzContentRowid == uintptr(0) {
- (*TFts5Config)(unsafe.Pointer(pRet)).FzContentRowid = _sqlite3Fts5Strndup(tls, bp, __ccgo_ts+18295, -int32(1))
+ (*TFts5Config)(unsafe.Pointer(pRet)).FzContentRowid = _sqlite3Fts5Strndup(tls, bp, __ccgo_ts+18324, -int32(1))
}
/* Formulate the zContentExprlist text */
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -276926,7 +276973,7 @@ func _sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) (r int32) {
var _ /* rc at bp+0 */ int32
_, _, _, _ = i, zSep, zSql, v2
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37709, 0)
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37738, 0)
i = 0
for {
if !(zSql != 0 && i < (*TFts5Config)(unsafe.Pointer(pConfig)).FnCol) {
@@ -276935,16 +276982,16 @@ func _sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) (r int32) {
if i == 0 {
v2 = __ccgo_ts + 1674
} else {
- v2 = __ccgo_ts + 16546
+ v2 = __ccgo_ts + 16575
}
zSep = v2
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37725, libc.VaList(bp+16, zSql, zSep, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37754, libc.VaList(bp+16, zSql, zSep, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
goto _1
_1:
;
i++
}
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37732, libc.VaList(bp+16, zSql, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, __ccgo_ts+37372))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+37761, libc.VaList(bp+16, zSql, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, __ccgo_ts+37401))
if zSql != 0 {
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_declare_vtab(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql)
Xsqlite3_free(tls, zSql)
@@ -277102,7 +277149,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
var _ /* zRankArgs at bp+8 */ uintptr
_, _, _, _, _, _, _, _, _, _, _, _ = bVal, bVal1, nAutomerge, nCrisisMerge, nHashSize, nUsermerge, nVal, pgsz, rc, zIn, v1, v2
rc = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37758) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37787) {
pgsz = 0
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
pgsz = Xsqlite3_value_int(tls, pVal)
@@ -277113,7 +277160,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
(*TFts5Config)(unsafe.Pointer(pConfig)).Fpgsz = pgsz
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37763) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37792) {
nHashSize = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nHashSize = Xsqlite3_value_int(tls, pVal)
@@ -277124,7 +277171,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
(*TFts5Config)(unsafe.Pointer(pConfig)).FnHashSize = nHashSize
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37772) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37801) {
nAutomerge = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nAutomerge = Xsqlite3_value_int(tls, pVal)
@@ -277138,7 +277185,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
(*TFts5Config)(unsafe.Pointer(pConfig)).FnAutomerge = nAutomerge
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37782) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37811) {
nUsermerge = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nUsermerge = Xsqlite3_value_int(tls, pVal)
@@ -277149,7 +277196,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
(*TFts5Config)(unsafe.Pointer(pConfig)).FnUsermerge = nUsermerge
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37792) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37821) {
nCrisisMerge = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nCrisisMerge = Xsqlite3_value_int(tls, pVal)
@@ -277166,7 +277213,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
(*TFts5Config)(unsafe.Pointer(pConfig)).FnCrisisMerge = nCrisisMerge
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37804) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37833) {
nVal = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nVal = Xsqlite3_value_int(tls, pVal)
@@ -277181,7 +277228,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
}
(*TFts5Config)(unsafe.Pointer(pConfig)).FnDeleteMerge = nVal
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37372) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37401) {
zIn = Xsqlite3_value_text(tls, pVal)
rc = _sqlite3Fts5ConfigParseRank(tls, zIn, bp, bp+8)
if rc == SQLITE_OK {
@@ -277196,7 +277243,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
}
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37816) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37845) {
bVal = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
bVal = Xsqlite3_value_int(tls, pVal)
@@ -277212,7 +277259,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
(*TFts5Config)(unsafe.Pointer(pConfig)).FbSecureDelete = v1
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37830) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+37859) {
bVal1 = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
bVal1 = Xsqlite3_value_int(tls, pVal)
@@ -277255,7 +277302,7 @@ func _sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) (r in
var _ /* p at bp+0 */ uintptr
var _ /* rc at bp+8 */ int32
_, _, _, _, _ = iVersion, pVal, zK, zSelect, zSql
- zSelect = __ccgo_ts + 37840
+ zSelect = __ccgo_ts + 37869
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 8)) = SQLITE_OK
iVersion = 0
@@ -277275,7 +277322,7 @@ func _sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) (r in
for int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
zK = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)
pVal = Xsqlite3_column_value(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1))
- if 0 == Xsqlite3_stricmp(tls, zK, __ccgo_ts+37872) {
+ if 0 == Xsqlite3_stricmp(tls, zK, __ccgo_ts+37901) {
iVersion = Xsqlite3_value_int(tls, pVal)
} else {
*(*int32)(unsafe.Pointer(bp + 12)) = 0
@@ -277286,7 +277333,7 @@ func _sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) (r in
}
if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK && iVersion != int32(FTS5_CURRENT_VERSION) && iVersion != int32(FTS5_CURRENT_VERSION_SECUREDELETE) {
*(*int32)(unsafe.Pointer(bp + 8)) = int32(SQLITE_ERROR)
- _sqlite3Fts5ConfigErrmsg(tls, pConfig, __ccgo_ts+37880, libc.VaList(bp+24, iVersion, int32(FTS5_CURRENT_VERSION), int32(FTS5_CURRENT_VERSION_SECUREDELETE)))
+ _sqlite3Fts5ConfigErrmsg(tls, pConfig, __ccgo_ts+37909, libc.VaList(bp+24, iVersion, int32(FTS5_CURRENT_VERSION), int32(FTS5_CURRENT_VERSION_SECUREDELETE)))
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FiVersion = iVersion
}
@@ -277535,7 +277582,7 @@ func _fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr
}
}
if int32(*(*int8)(unsafe.Pointer(z2))) == int32('\000') {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+37951, 0)
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+37980, 0)
return FTS5_EOF
}
goto _1
@@ -277546,7 +277593,7 @@ func _fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr
(*TFts5Token)(unsafe.Pointer(pToken)).Fn = int32(int64(z2) - int64(z))
default:
if _sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(z))) == 0 {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+37971, libc.VaList(bp+8, z))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38000, libc.VaList(bp+8, z))
return FTS5_EOF
}
tok = int32(FTS5_STRING)
@@ -277561,13 +277608,13 @@ func _fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr
z21++
}
(*TFts5Token)(unsafe.Pointer(pToken)).Fn = int32(int64(z21) - int64(z))
- if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(2) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+38002, uint64(2)) == 0 {
+ if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(2) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+38031, uint64(2)) == 0 {
tok = int32(FTS5_OR)
}
- if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(3) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+38005, uint64(3)) == 0 {
+ if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(3) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+38034, uint64(3)) == 0 {
tok = int32(FTS5_NOT)
}
- if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(3) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+32414, uint64(3)) == 0 {
+ if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(3) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+32443, uint64(3)) == 0 {
tok = int32(FTS5_AND)
}
break
@@ -279632,8 +279679,8 @@ func _sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, pp
func _sqlite3Fts5ParseNear(tls *libc.TLS, pParse uintptr, pTok uintptr) {
bp := tls.Alloc(32)
defer tls.Free(32)
- if (*TFts5Token)(unsafe.Pointer(pTok)).Fn != int32(4) || libc.Xmemcmp(tls, __ccgo_ts+38009, (*TFts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36522, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(pTok)).Fn, (*TFts5Token)(unsafe.Pointer(pTok)).Fp))
+ if (*TFts5Token)(unsafe.Pointer(pTok)).Fn != int32(4) || libc.Xmemcmp(tls, __ccgo_ts+38038, (*TFts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36551, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(pTok)).Fn, (*TFts5Token)(unsafe.Pointer(pTok)).Fp))
}
}
@@ -279653,7 +279700,7 @@ func _sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr,
}
c = *(*int8)(unsafe.Pointer((*TFts5Token)(unsafe.Pointer(p)).Fp + uintptr(i)))
if int32(c) < int32('0') || int32(c) > int32('9') {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38014, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(p)).Fn, (*TFts5Token)(unsafe.Pointer(p)).Fp))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38043, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(p)).Fn, (*TFts5Token)(unsafe.Pointer(p)).Fp))
return
}
if nNear < int32(214748363) {
@@ -279794,7 +279841,7 @@ func _sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p u
iCol++
}
if iCol == (*TFts5Config)(unsafe.Pointer(pConfig)).FnCol {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+22693, libc.VaList(bp+8, z))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+22722, libc.VaList(bp+8, z))
} else {
pRet = _fts5ParseColset(tls, pParse, pColset, iCol)
}
@@ -279918,7 +279965,7 @@ func _sqlite3Fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pExpr uintptr, pC
var _ /* pFree at bp+0 */ uintptr
*(*uintptr)(unsafe.Pointer(bp)) = pColset
if (*TFts5Config)(unsafe.Pointer((*TFts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FeDetail == int32(FTS5_DETAIL_NONE) {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38043, 0)
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38072, 0)
} else {
_fts5ParseSetColset(tls, pParse, pExpr, pColset, bp)
}
@@ -280116,11 +280163,11 @@ func _sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uin
pPhrase = *(*uintptr)(unsafe.Pointer(pNear + 24))
if (*TFts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase != int32(1) || (*TFts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm > int32(1) || (*TFts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm > 0 && (*(*TFts5ExprTerm)(unsafe.Pointer(pPhrase + 32))).FbFirst != 0 {
if (*TFts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase == int32(1) {
- v2 = __ccgo_ts + 38096
+ v2 = __ccgo_ts + 38125
} else {
- v2 = __ccgo_ts + 38009
+ v2 = __ccgo_ts + 38038
}
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38103, libc.VaList(bp+8, v2))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38132, libc.VaList(bp+8, v2))
_sqlite3Fts5ParseNodeFree(tls, pRet)
pRet = uintptr(0)
pNear = uintptr(0)
@@ -280133,7 +280180,7 @@ func _sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uin
pRight = v3
pLeft = v3
if (*TFts5ExprNode)(unsafe.Pointer(pRet)).FiHeight > int32(SQLITE_FTS5_MAX_EXPR_DEPTH) {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38153, libc.VaList(bp+8, int32(SQLITE_FTS5_MAX_EXPR_DEPTH)))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+38182, libc.VaList(bp+8, int32(SQLITE_FTS5_MAX_EXPR_DEPTH)))
_sqlite3Fts5ParseNodeFree(tls, pRet)
pRet = uintptr(0)
}
@@ -282290,7 +282337,7 @@ func _fts5DataRead(tls *libc.TLS, p uintptr, iRowid Ti64) (r uintptr) {
** to the requested entry. */
if (*TFts5Index)(unsafe.Pointer(p)).FpReader == uintptr(0) && rc == SQLITE_OK {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- rc = Xsqlite3_blob_open(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl, __ccgo_ts+38206, iRowid, 0, p+72)
+ rc = Xsqlite3_blob_open(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl, __ccgo_ts+38235, iRowid, 0, p+72)
}
/* If either of the sqlite3_blob_open() or sqlite3_blob_reopen() calls
** above returned SQLITE_ERROR, return SQLITE_CORRUPT_VTAB instead.
@@ -282395,7 +282442,7 @@ func _fts5DataWrite(tls *libc.TLS, p uintptr, iRowid Ti64, pData uintptr, nData
}
if (*TFts5Index)(unsafe.Pointer(p)).FpWriter == uintptr(0) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- _fts5IndexPrepareStmt(tls, p, p+80, Xsqlite3_mprintf(tls, __ccgo_ts+38212, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+80, Xsqlite3_mprintf(tls, __ccgo_ts+38241, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
if (*TFts5Index)(unsafe.Pointer(p)).Frc != 0 {
return
}
@@ -282424,7 +282471,7 @@ func _fts5DataDelete(tls *libc.TLS, p uintptr, iFirst Ti64, iLast Ti64) {
}
if (*TFts5Index)(unsafe.Pointer(p)).FpDeleter == uintptr(0) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+38263, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+38292, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
if _fts5IndexPrepareStmt(tls, p, p+88, zSql) != 0 {
return
}
@@ -282458,7 +282505,7 @@ func _fts5DataRemoveSegment(tls *libc.TLS, p uintptr, pSeg uintptr) {
}
if (*TFts5Index)(unsafe.Pointer(p)).FpIdxDeleter == uintptr(0) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- _fts5IndexPrepareStmt(tls, p, p+104, Xsqlite3_mprintf(tls, __ccgo_ts+38312, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+104, Xsqlite3_mprintf(tls, __ccgo_ts+38341, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
if (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
Xsqlite3_bind_int(tls, (*TFts5Index)(unsafe.Pointer(p)).FpIdxDeleter, int32(1), iSegid)
@@ -282627,7 +282674,7 @@ func _fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie ui
}
i = int32(4)
/* Check if this is a V2 structure record. Set bStructureV2 if it is. */
- if 0 == libc.Xmemcmp(tls, pData+uintptr(i), __ccgo_ts+38352, uint64(4)) {
+ if 0 == libc.Xmemcmp(tls, pData+uintptr(i), __ccgo_ts+38381, uint64(4)) {
i += int32(4)
bStructureV2 = int32(1)
}
@@ -282818,7 +282865,7 @@ func _fts5IndexDataVersion(tls *libc.TLS, p uintptr) (r Ti64) {
iVersion = 0
if (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if (*TFts5Index)(unsafe.Pointer(p)).FpDataVersion == uintptr(0) {
- (*TFts5Index)(unsafe.Pointer(p)).Frc = _fts5IndexPrepareStmt(tls, p, p+144, Xsqlite3_mprintf(tls, __ccgo_ts+38357, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
+ (*TFts5Index)(unsafe.Pointer(p)).Frc = _fts5IndexPrepareStmt(tls, p, p+144, Xsqlite3_mprintf(tls, __ccgo_ts+38386, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
if (*TFts5Index)(unsafe.Pointer(p)).Frc != 0 {
return 0
}
@@ -282902,7 +282949,7 @@ func _fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) {
_sqlite3Fts5Put32(tls, (*(*TFts5Buffer)(unsafe.Pointer(bp))).Fp, iCookie)
(*(*TFts5Buffer)(unsafe.Pointer(bp))).Fn = int32(4)
if (*TFts5Structure)(unsafe.Pointer(pStruct)).FnOriginCntr > uint64(0) {
- libc.Xmemcpy(tls, (*TFts5Buffer)(unsafe.Pointer(bp)).Fp+uintptr((*TFts5Buffer)(unsafe.Pointer(bp)).Fn), __ccgo_ts+38352, uint64(4))
+ libc.Xmemcpy(tls, (*TFts5Buffer)(unsafe.Pointer(bp)).Fp+uintptr((*TFts5Buffer)(unsafe.Pointer(bp)).Fn), __ccgo_ts+38381, uint64(4))
*(*int32)(unsafe.Pointer(bp + 8)) += int32(4)
}
*(*int32)(unsafe.Pointer(bp + 8)) += _sqlite3Fts5PutVarint(tls, (*TFts5Buffer)(unsafe.Pointer(bp)).Fp+uintptr((*TFts5Buffer)(unsafe.Pointer(bp)).Fn), uint64((*TFts5Structure)(unsafe.Pointer(pStruct)).FnLevel))
@@ -283564,15 +283611,15 @@ func _fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) {
// ** leave an error in the Fts5Index object.
// */
func _fts5SegIterAllocTombstone(tls *libc.TLS, p uintptr, pIter uintptr) {
- var nByte, nTomb int32
+ var nByte, nTomb Ti64
var pNew uintptr
_, _, _ = nByte, nTomb, pNew
- nTomb = (*TFts5StructureSegment)(unsafe.Pointer((*TFts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FnPgTombstone
+ nTomb = int64((*TFts5StructureSegment)(unsafe.Pointer((*TFts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FnPgTombstone)
if nTomb > 0 {
- nByte = int32(uint64(libc.UintptrFromInt32(0)+8) + uint64(nTomb+libc.Int32FromInt32(1))*libc.Uint64FromInt64(8))
- pNew = _sqlite3Fts5MallocZero(tls, p+60, int64(nByte))
+ nByte = int64(uint64(libc.UintptrFromInt32(0)+8) + uint64(nTomb+libc.Int64FromInt32(1))*libc.Uint64FromInt64(8))
+ pNew = _sqlite3Fts5MallocZero(tls, p+60, nByte)
if pNew != 0 {
- (*TFts5TombstoneArray)(unsafe.Pointer(pNew)).FnTombstone = nTomb
+ (*TFts5TombstoneArray)(unsafe.Pointer(pNew)).FnTombstone = int32(nTomb)
(*TFts5TombstoneArray)(unsafe.Pointer(pNew)).FnRef = int32(1)
(*TFts5SegIter)(unsafe.Pointer(pIter)).FpTombArray = pNew
}
@@ -284279,7 +284326,7 @@ func _fts5IdxSelectStmt(tls *libc.TLS, p uintptr) (r uintptr) {
_ = pConfig
if (*TFts5Index)(unsafe.Pointer(p)).FpIdxSelect == uintptr(0) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- _fts5IndexPrepareStmt(tls, p, p+112, Xsqlite3_mprintf(tls, __ccgo_ts+38380, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+112, Xsqlite3_mprintf(tls, __ccgo_ts+38409, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*TFts5Index)(unsafe.Pointer(p)).FpIdxSelect
}
@@ -284368,7 +284415,7 @@ func _fts5IdxNextStmt(tls *libc.TLS, p uintptr) (r uintptr) {
_ = pConfig
if (*TFts5Index)(unsafe.Pointer(p)).FpIdxNextSelect == uintptr(0) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- _fts5IndexPrepareStmt(tls, p, p+120, Xsqlite3_mprintf(tls, __ccgo_ts+38464, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+120, Xsqlite3_mprintf(tls, __ccgo_ts+38493, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*TFts5Index)(unsafe.Pointer(p)).FpIdxNextSelect
}
@@ -286339,7 +286386,7 @@ func _fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) {
_sqlite3Fts5BufferSize(tls, p+60, pWriter+8+8, uint32(nBuffer))
if (*TFts5Index)(unsafe.Pointer(p)).FpIdxWriter == uintptr(0) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
- _fts5IndexPrepareStmt(tls, p, p+96, Xsqlite3_mprintf(tls, __ccgo_ts+38546, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+96, Xsqlite3_mprintf(tls, __ccgo_ts+38575, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
if (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
/* Initialize the 4-byte leaf-page header to 0x00. */
@@ -286845,7 +286892,7 @@ func _fts5SecureDeleteIdxEntry(tls *libc.TLS, p uintptr, iSegid int32, iPgno int
defer tls.Free(32)
if iPgno != int32(1) {
if (*TFts5Index)(unsafe.Pointer(p)).FpDeleteFromIdx == uintptr(0) {
- _fts5IndexPrepareStmt(tls, p, p+136, Xsqlite3_mprintf(tls, __ccgo_ts+38603, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+136, Xsqlite3_mprintf(tls, __ccgo_ts+38632, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzName)))
}
if (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
Xsqlite3_bind_int(tls, (*TFts5Index)(unsafe.Pointer(p)).FpDeleteFromIdx, int32(1), iSegid)
@@ -287332,7 +287379,7 @@ func _fts5FlushSecureDelete(tls *libc.TLS, p uintptr, pStruct uintptr, zTerm uin
if (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FiVersion != int32(FTS5_CURRENT_VERSION_SECUREDELETE) {
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
- _fts5IndexPrepareStmt(tls, p, bp+8, Xsqlite3_mprintf(tls, __ccgo_ts+38664, libc.VaList(bp+24, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, int32(FTS5_CURRENT_VERSION_SECUREDELETE))))
+ _fts5IndexPrepareStmt(tls, p, bp+8, Xsqlite3_mprintf(tls, __ccgo_ts+38693, libc.VaList(bp+24, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, int32(FTS5_CURRENT_VERSION_SECUREDELETE))))
if (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
rc = Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
@@ -288742,11 +288789,11 @@ func _sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uin
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
(*TFts5Index)(unsafe.Pointer(p)).FpConfig = pConfig
(*TFts5Index)(unsafe.Pointer(p)).FnWorkUnit = int32(FTS5_WORK_UNIT)
- (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+38715, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+38744, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
if (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl != 0 && bCreate != 0 {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+27449, __ccgo_ts+38723, 0, pzErr)
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+27478, __ccgo_ts+38752, 0, pzErr)
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+13376, __ccgo_ts+38758, int32(1), pzErr)
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+13405, __ccgo_ts+38787, int32(1), pzErr)
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
*(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5IndexReinit(tls, p)
@@ -289199,7 +289246,7 @@ func _fts5SetupTokendataIter(tls *libc.TLS, p uintptr, pToken uintptr, nToken in
pNew = _fts5MultiIterAlloc(tls, p, (*TFts5Structure)(unsafe.Pointer(pStruct)).FnSegment)
if pSmall != 0 {
_sqlite3Fts5BufferSet(tls, p+60, bp, (*TFts5Buffer)(unsafe.Pointer(pSmall)).Fn, (*TFts5Buffer)(unsafe.Pointer(pSmall)).Fp)
- _sqlite3Fts5BufferAppendBlob(tls, p+60, bp, uint32(1), __ccgo_ts+38802)
+ _sqlite3Fts5BufferAppendBlob(tls, p+60, bp, uint32(1), __ccgo_ts+38831)
} else {
_sqlite3Fts5BufferSet(tls, p+60, bp, nToken, pToken)
}
@@ -289792,7 +289839,7 @@ func _sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) (r int32)
pConfig = (*TFts5Index)(unsafe.Pointer(p)).FpConfig /* Binary representation of iNew */
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
_sqlite3Fts5Put32(tls, bp, iNew)
- rc = Xsqlite3_blob_open(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl, __ccgo_ts+38206, int64(FTS5_STRUCTURE_ROWID), int32(1), bp+8)
+ rc = Xsqlite3_blob_open(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl, __ccgo_ts+38235, int64(FTS5_STRUCTURE_ROWID), int32(1), bp+8)
if rc == SQLITE_OK {
Xsqlite3_blob_write(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), bp, int32(4), 0)
rc = Xsqlite3_blob_close(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
@@ -290386,7 +290433,7 @@ func _fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) {
if (*TFts5StructureSegment)(unsafe.Pointer(pSeg)).FpgnoFirst == 0 {
return
}
- _fts5IndexPrepareStmt(tls, p, bp, Xsqlite3_mprintf(tls, __ccgo_ts+38804, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid)))
+ _fts5IndexPrepareStmt(tls, p, bp, Xsqlite3_mprintf(tls, __ccgo_ts+38833, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid)))
/* Iterate through the b-tree hierarchy. */
for (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK && int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) { /* Data for this leaf */
zIdxTerm = Xsqlite3_column_blob(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(1))
@@ -290617,7 +290664,7 @@ func _sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum Tu64, bUseC
} else {
(*(*TFts5Buffer)(unsafe.Pointer(bp))).Fn = 0
_fts5SegiterPoslist(tls, p, *(*uintptr)(unsafe.Pointer(bp + 16))+104+uintptr((*(*TFts5CResult)(unsafe.Pointer((*TFts5Iter)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))).FaFirst + 1*4))).FiFirst)*128, uintptr(0), bp)
- _sqlite3Fts5BufferAppendBlob(tls, p+60, bp, uint32(4), __ccgo_ts+38890)
+ _sqlite3Fts5BufferAppendBlob(tls, p+60, bp, uint32(4), __ccgo_ts+38919)
for 0 == _sqlite3Fts5PoslistNext64(tls, (*(*TFts5Buffer)(unsafe.Pointer(bp))).Fp, (*(*TFts5Buffer)(unsafe.Pointer(bp))).Fn, bp+40, bp+32) {
iCol = int32(*(*Ti64)(unsafe.Pointer(bp + 32)) >> libc.Int32FromInt32(32) & libc.Int64FromInt32(0x7FFFFFFF))
iTokOff = int32(*(*Ti64)(unsafe.Pointer(bp + 32)) & libc.Int64FromInt32(0x7FFFFFFF))
@@ -291239,7 +291286,7 @@ func _fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) (r int32)
nSeenMatch = 0
bSeenRank = 0
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbLock != 0 {
- (*TFts5Table)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+38895, 0)
+ (*TFts5Table)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+38924, 0)
return int32(SQLITE_ERROR)
}
idxStr = Xsqlite3_malloc(tls, (*Tsqlite3_index_info)(unsafe.Pointer(pInfo)).FnConstraint*int32(8)+int32(1))
@@ -291808,7 +291855,7 @@ func _fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int
**
** If SQLite a built-in statement cache, this wouldn't be a problem. */
if zRankArgs != 0 {
- v1 = __ccgo_ts + 16546
+ v1 = __ccgo_ts + 16575
} else {
v1 = __ccgo_ts + 1674
}
@@ -291818,11 +291865,11 @@ func _fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int
v2 = __ccgo_ts + 1674
}
if bDesc != 0 {
- v3 = __ccgo_ts + 38934
+ v3 = __ccgo_ts + 38963
} else {
- v3 = __ccgo_ts + 38939
+ v3 = __ccgo_ts + 38968
}
- rc = _fts5PrepareStatement(tls, pSorter, pConfig, __ccgo_ts+38943, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zRank, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, v1, v2, v3))
+ rc = _fts5PrepareStatement(tls, pSorter, pConfig, __ccgo_ts+38972, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zRank, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, v1, v2, v3))
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FpSorter = pSorter
if rc == SQLITE_OK {
(*TFts5FullTable)(unsafe.Pointer(pTab)).FpSortCsr = pCsr
@@ -291880,14 +291927,14 @@ func _fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr
n++
}
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FePlan = int32(FTS5_PLAN_SPECIAL)
- if n == int32(5) && 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+38998, z, n) {
+ if n == int32(5) && 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+39027, z, n) {
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FiSpecial = int64(_sqlite3Fts5IndexReads(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex))
} else {
if n == int32(2) && 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+6959, z, n) {
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FiSpecial = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FiCsrId
} else {
/* An unrecognized directive. Return an error message. */
- (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+39004, libc.VaList(bp+8, n, z))
+ (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+39033, libc.VaList(bp+8, n, z))
rc = int32(SQLITE_ERROR)
}
}
@@ -291937,7 +291984,7 @@ func _fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) (r int32) {
zRank = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRank
zRankArgs = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs
if zRankArgs != 0 {
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+39032, libc.VaList(bp+24, zRankArgs))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+39061, libc.VaList(bp+24, zRankArgs))
if zSql != 0 {
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_prepare_v3(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql, -int32(1), uint32(SQLITE_PREPARE_PERSISTENT), bp+8, uintptr(0))
@@ -291970,7 +292017,7 @@ func _fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) (r int32) {
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
pAux = _fts5FindAuxiliary(tls, pTab, zRank)
if pAux == uintptr(0) {
- (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+39042, libc.VaList(bp+24, zRank))
+ (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+39071, libc.VaList(bp+24, zRank))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
}
@@ -292004,7 +292051,7 @@ func _fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank ui
*(*int32)(unsafe.Pointer(pCsr + 80)) |= int32(FTS5CSR_FREE_ZRANK)
} else {
if rc == int32(SQLITE_ERROR) {
- (*Tsqlite3_vtab)(unsafe.Pointer((*TFts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+39063, libc.VaList(bp+24, z))
+ (*Tsqlite3_vtab)(unsafe.Pointer((*TFts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+39092, libc.VaList(bp+24, z))
}
}
} else {
@@ -292012,7 +292059,7 @@ func _fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank ui
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRank = (*TFts5Config)(unsafe.Pointer(pConfig)).FzRank
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = (*TFts5Config)(unsafe.Pointer(pConfig)).FzRankArgs
} else {
- (*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRank = __ccgo_ts + 36790
+ (*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRank = __ccgo_ts + 36819
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = uintptr(0)
}
}
@@ -292169,7 +292216,7 @@ func _fts5ExtractExprText(tls *libc.TLS, pConfig uintptr, pVal uintptr, pzText u
*(*uintptr)(unsafe.Pointer(bp + 24)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 32)) = 0
*(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5DecodeLocaleValue(tls, pVal, bp+8, bp+16, bp+24, bp+32)
- *(*uintptr)(unsafe.Pointer(pzText)) = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+39096, libc.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 16)), *(*uintptr)(unsafe.Pointer(bp + 8))))
+ *(*uintptr)(unsafe.Pointer(pzText)) = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+39125, libc.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 16)), *(*uintptr)(unsafe.Pointer(bp + 8))))
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
_sqlite3Fts5SetLocale(tls, pConfig, *(*uintptr)(unsafe.Pointer(bp + 24)), *(*int32)(unsafe.Pointer(bp + 32)))
}
@@ -292369,7 +292416,7 @@ func _fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uint
}
} else {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FzContent == uintptr(0) {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+39101, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+39130, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
rc = int32(SQLITE_ERROR)
} else {
/* This is either a full-table scan (ePlan==FTS5_PLAN_SCAN) or a lookup
@@ -292502,7 +292549,7 @@ func _fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) (r int32) {
rc = Xsqlite3_reset(tls, (*TFts5Cursor)(unsafe.Pointer(pCsr)).FpStmt)
if rc == SQLITE_OK {
rc = libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
- _fts5SetVtabError(tls, pTab1, __ccgo_ts+39137, libc.VaList(bp+8, _fts5CursorRowid(tls, pCsr), (*TFts5Config)(unsafe.Pointer((*TFts5Table)(unsafe.Pointer(pTab1)).FpConfig)).FzContent))
+ _fts5SetVtabError(tls, pTab1, __ccgo_ts+39166, libc.VaList(bp+8, _fts5CursorRowid(tls, pCsr), (*TFts5Config)(unsafe.Pointer((*TFts5Table)(unsafe.Pointer(pTab1)).FpConfig)).FzContent))
} else {
if (*TFts5Config)(unsafe.Pointer((*TFts5Table)(unsafe.Pointer(pTab1)).FpConfig)).FpzErrmsg != 0 {
_fts5SetVtabError(tls, pTab1, __ccgo_ts+4829, libc.VaList(bp+8, Xsqlite3_errmsg(tls, (*TFts5Config)(unsafe.Pointer((*TFts5Table)(unsafe.Pointer(pTab1)).FpConfig)).Fdb)))
@@ -292541,36 +292588,36 @@ func _fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr)
rc = SQLITE_OK
*(*int32)(unsafe.Pointer(bp)) = 0
bLoadConfig = 0
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39182, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39211, zCmd) {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+39193, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+39222, 0)
rc = int32(SQLITE_ERROR)
} else {
rc = _sqlite3Fts5StorageDeleteAll(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
bLoadConfig = int32(1)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39273, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39302, zCmd) {
if _fts5IsContentless(tls, pTab, int32(1)) != 0 {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+39281, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+39310, 0)
rc = int32(SQLITE_ERROR)
} else {
rc = _sqlite3Fts5StorageRebuild(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
}
bLoadConfig = int32(1)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+18983, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+19012, zCmd) {
rc = _sqlite3Fts5StorageOptimize(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39337, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39366, zCmd) {
nMerge = Xsqlite3_value_int(tls, pVal)
rc = _sqlite3Fts5StorageMerge(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, nMerge)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39343, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39372, zCmd) {
iArg = Xsqlite3_value_int(tls, pVal)
rc = _sqlite3Fts5StorageIntegrity(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39359, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+39388, zCmd) {
rc = _sqlite3Fts5FlushToDisk(tls, pTab)
} else {
rc = _sqlite3Fts5FlushToDisk(tls, pTab)
@@ -292683,11 +292730,11 @@ func _fts5ContentlessUpdate(tls *libc.TLS, pConfig uintptr, apVal uintptr, bRowi
if bSeenIndexNC != 0 || (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete == 0 {
rc = int32(SQLITE_ERROR)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete != 0 {
- v2 = __ccgo_ts + 39365
+ v2 = __ccgo_ts + 39394
} else {
- v2 = __ccgo_ts + 39425
+ v2 = __ccgo_ts + 39454
}
- _sqlite3Fts5ConfigErrmsg(tls, pConfig, v2, libc.VaList(bp+8, __ccgo_ts+39455, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ _sqlite3Fts5ConfigErrmsg(tls, pConfig, v2, libc.VaList(bp+8, __ccgo_ts+39484, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
}
}
return rc
@@ -292735,9 +292782,9 @@ func _fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr,
if eType0 == int32(SQLITE_NULL) && Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(int32(2)+(*TFts5Config)(unsafe.Pointer(pConfig)).FnCol)*8))) != int32(SQLITE_NULL) {
/* A "special" INSERT op. These are handled separately. */
z = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(int32(2)+(*TFts5Config)(unsafe.Pointer(pConfig)).FnCol)*8)))
- if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+19493, z) {
+ if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+19522, z) {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete != 0 {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+39469, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+39498, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
*(*int32)(unsafe.Pointer(bp)) = _fts5SpecialDelete(tls, pTab, apVal)
@@ -292766,7 +292813,7 @@ func _fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr,
/* It is only possible to DELETE from a contentless table if the
** contentless_delete=1 flag is set. */
if _fts5IsContentless(tls, pTab, int32(1)) != 0 && (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete == 0 {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+39528, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+39557, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
iDel = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apVal))) /* Rowid to delete */
@@ -292784,7 +292831,7 @@ func _fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr,
}
pVal = *(*uintptr)(unsafe.Pointer(apVal + uintptr(ii+int32(2))*8))
if _sqlite3Fts5IsLocaleValue(tls, pConfig, pVal) != 0 {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+39574, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+39603, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_MISMATCH)
goto update_out
}
@@ -292806,7 +292853,7 @@ func _fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr,
pStorage = (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage
iOld = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apVal))) /* Old rowid */
iNew1 = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apVal + 1*8))) /* New rowid */
- *(*int32)(unsafe.Pointer(bp + 4)) = 0 /* Content only update */
+ *(*int32)(unsafe.Pointer(bp + 4)) = 0 /* Content only update */
/* If this is a contentless table (including contentless_unindexed=1
** tables), check if the UPDATE may proceed. */
if _fts5IsContentless(tls, pTab, int32(1)) != 0 {
@@ -293810,7 +293857,7 @@ func _fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr)
iCsrId = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv)))
pCsr = _fts5CursorFromCsrid(tls, (*TFts5Auxiliary)(unsafe.Pointer(pAux)).FpGlobal, iCsrId)
if pCsr == uintptr(0) || ((*TFts5Cursor)(unsafe.Pointer(pCsr)).FePlan == 0 || (*TFts5Cursor)(unsafe.Pointer(pCsr)).FePlan == int32(FTS5_PLAN_SPECIAL)) {
- _fts5ResultError(tls, context, __ccgo_ts+39606, libc.VaList(bp+8, iCsrId))
+ _fts5ResultError(tls, context, __ccgo_ts+39635, libc.VaList(bp+8, iCsrId))
} else {
pTab = (*TFts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab
_fts5ApiInvoke(tls, pAux, pCsr, context, argc-int32(1), argv+1*8)
@@ -294469,7 +294516,7 @@ func _sqlite3Fts5LoadTokenizer(tls *libc.TLS, pConfig uintptr) (r int32) {
pMod = _fts5LocateTokenizer(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).FpGlobal, v1)
if pMod == uintptr(0) {
rc = int32(SQLITE_ERROR)
- _sqlite3Fts5ConfigErrmsg(tls, pConfig, __ccgo_ts+39627, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg))))
+ _sqlite3Fts5ConfigErrmsg(tls, pConfig, __ccgo_ts+39656, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg))))
} else {
xCreate = uintptr(0)
if (*TFts5TokenizerModule)(unsafe.Pointer(pMod)).FbV2Native != 0 {
@@ -294492,7 +294539,7 @@ func _sqlite3Fts5LoadTokenizer(tls *libc.TLS, pConfig uintptr) (r int32) {
rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{xCreate})))(tls, (*TFts5TokenizerModule)(unsafe.Pointer(pMod)).FpUserData, v2, v3, pConfig+128)
if rc != SQLITE_OK {
if rc != int32(SQLITE_NOMEM) {
- _sqlite3Fts5ConfigErrmsg(tls, pConfig, __ccgo_ts+39649, 0)
+ _sqlite3Fts5ConfigErrmsg(tls, pConfig, __ccgo_ts+39678, 0)
}
} else {
if (*TFts5TokenizerModule)(unsafe.Pointer(pMod)).FbV2Native == 0 {
@@ -294563,7 +294610,7 @@ func _fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) {
_, _ = pGlobal, ppApi
pGlobal = Xsqlite3_user_data(tls, pCtx)
_ = nArg
- ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), __ccgo_ts+39680)
+ ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), __ccgo_ts+39709)
if ppApi != 0 {
*(*uintptr)(unsafe.Pointer(ppApi)) = pGlobal
}
@@ -294577,7 +294624,7 @@ func _fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) {
func _fts5SourceIdFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apUnused uintptr) {
_ = nArg
_ = apUnused
- Xsqlite3_result_text(tls, pCtx, __ccgo_ts+39693, -int32(1), uintptr(-libc.Int32FromInt32(1)))
+ Xsqlite3_result_text(tls, pCtx, __ccgo_ts+39722, -int32(1), uintptr(-libc.Int32FromInt32(1)))
}
// C documentation
@@ -294674,11 +294721,11 @@ func _fts5ShadowName(tls *libc.TLS, zName uintptr) (r int32) {
}
var _azName2 = [5]uintptr{
- 0: __ccgo_ts + 39784,
- 1: __ccgo_ts + 36995,
- 2: __ccgo_ts + 27449,
- 3: __ccgo_ts + 37690,
- 4: __ccgo_ts + 13376,
+ 0: __ccgo_ts + 39813,
+ 1: __ccgo_ts + 37024,
+ 2: __ccgo_ts + 27478,
+ 3: __ccgo_ts + 37719,
+ 4: __ccgo_ts + 13405,
}
// C documentation
@@ -294700,7 +294747,7 @@ func _fts5IntegrityMethod(tls *libc.TLS, pVtab uintptr, zSchema uintptr, zTabnam
rc = _sqlite3Fts5StorageIntegrity(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, 0)
if *(*uintptr)(unsafe.Pointer(pzErr)) == uintptr(0) && rc != SQLITE_OK {
if rc&int32(0xff) == int32(SQLITE_CORRUPT) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39791, libc.VaList(bp+8, zSchema, zTabname))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39820, libc.VaList(bp+8, zSchema, zTabname))
if *(*uintptr)(unsafe.Pointer(pzErr)) != 0 {
v1 = SQLITE_OK
} else {
@@ -294708,7 +294755,7 @@ func _fts5IntegrityMethod(tls *libc.TLS, pVtab uintptr, zSchema uintptr, zTabnam
}
rc = v1
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39837, libc.VaList(bp+8, zSchema, zTabname, Xsqlite3_errstr(tls, rc)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39866, libc.VaList(bp+8, zSchema, zTabname, Xsqlite3_errstr(tls, rc)))
}
}
_sqlite3Fts5IndexCloseReader(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex)
@@ -294741,7 +294788,7 @@ func _fts5Init(tls *libc.TLS, db uintptr) (r int32) {
*(*Tu32)(unsafe.Pointer(pGlobal + 96 + 1*4)) ^= uint32(0x16596E13)
*(*Tu32)(unsafe.Pointer(pGlobal + 96 + 2*4)) ^= uint32(0x7C80BEAA)
*(*Tu32)(unsafe.Pointer(pGlobal + 96 + 3*4)) ^= uint32(0x9B03A67F)
- rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+39900, uintptr(unsafe.Pointer(&_fts5Mod)), p, __ccgo_fp(_fts5ModuleDestroy))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+39929, uintptr(unsafe.Pointer(&_fts5Mod)), p, __ccgo_fp(_fts5ModuleDestroy))
if rc == SQLITE_OK {
rc = _sqlite3Fts5IndexInit(tls, db)
}
@@ -294758,16 +294805,16 @@ func _fts5Init(tls *libc.TLS, db uintptr) (r int32) {
rc = _sqlite3Fts5VocabInit(tls, pGlobal, db)
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39900, int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_fts5Fts5Func), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39929, int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_fts5Fts5Func), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39905, 0, libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_DETERMINISTIC)|libc.Int32FromInt32(SQLITE_INNOCUOUS), p, __ccgo_fp(_fts5SourceIdFunc), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39934, 0, libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_DETERMINISTIC)|libc.Int32FromInt32(SQLITE_INNOCUOUS), p, __ccgo_fp(_fts5SourceIdFunc), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39920, int32(2), libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_INNOCUOUS)|libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)|libc.Int32FromInt32(SQLITE_SUBTYPE), p, __ccgo_fp(_fts5LocaleFunc), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39949, int32(2), libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_INNOCUOUS)|libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE)|libc.Int32FromInt32(SQLITE_SUBTYPE), p, __ccgo_fp(_fts5LocaleFunc), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39932, int32(1), libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_INNOCUOUS)|libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE), p, __ccgo_fp(_fts5InsttokenFunc), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+39961, int32(1), libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_INNOCUOUS)|libc.Int32FromInt32(SQLITE_RESULT_SUBTYPE), p, __ccgo_fp(_fts5InsttokenFunc), uintptr(0), uintptr(0))
}
}
/* If SQLITE_FTS5_ENABLE_TEST_MI is defined, assume that the file
@@ -294898,18 +294945,18 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
** statements to operate on it. */
if *(*uintptr)(unsafe.Pointer(p + 48 + uintptr(eStmt)*8)) == uintptr(0) {
azStmt = [12]uintptr{
- 0: __ccgo_ts + 39947,
- 1: __ccgo_ts + 40015,
- 2: __ccgo_ts + 40084,
- 3: __ccgo_ts + 40084,
- 4: __ccgo_ts + 40117,
- 5: __ccgo_ts + 40156,
- 6: __ccgo_ts + 40196,
- 7: __ccgo_ts + 40235,
- 8: __ccgo_ts + 40278,
- 9: __ccgo_ts + 40317,
- 10: __ccgo_ts + 40361,
- 11: __ccgo_ts + 40401,
+ 0: __ccgo_ts + 39976,
+ 1: __ccgo_ts + 40044,
+ 2: __ccgo_ts + 40113,
+ 3: __ccgo_ts + 40113,
+ 4: __ccgo_ts + 40146,
+ 5: __ccgo_ts + 40185,
+ 6: __ccgo_ts + 40225,
+ 7: __ccgo_ts + 40264,
+ 8: __ccgo_ts + 40307,
+ 9: __ccgo_ts + 40346,
+ 10: __ccgo_ts + 40390,
+ 11: __ccgo_ts + 40430,
}
pC = (*TFts5Storage)(unsafe.Pointer(p)).FpConfig
zSql = uintptr(0)
@@ -294939,11 +294986,11 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
}
if !(i != 0) || (*TFts5Config)(unsafe.Pointer(pC)).FeContent == FTS5_CONTENT_NORMAL || *(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pC)).FabUnindexed + uintptr(i-int32(1)))) != 0 {
if zBind != 0 {
- v2 = __ccgo_ts + 14673
+ v2 = __ccgo_ts + 14702
} else {
v2 = __ccgo_ts + 1674
}
- zBind = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+40424, libc.VaList(bp+16, zBind, v2, i+int32(1)))
+ zBind = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+40453, libc.VaList(bp+16, zBind, v2, i+int32(1)))
}
goto _1
_1:
@@ -294959,7 +295006,7 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
break
}
if int32(*(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pC)).FabUnindexed + uintptr(i)))) == 0 {
- zBind = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+40432, libc.VaList(bp+16, zBind, (*TFts5Config)(unsafe.Pointer(pC)).FnCol+i+int32(2)))
+ zBind = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+40461, libc.VaList(bp+16, zBind, (*TFts5Config)(unsafe.Pointer(pC)).FnCol+i+int32(2)))
}
goto _3
_3:
@@ -294971,14 +295018,14 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
Xsqlite3_free(tls, zBind)
case int32(FTS5_STMT_REPLACE_DOCSIZE):
if (*TFts5Config)(unsafe.Pointer(pC)).FbContentlessDelete != 0 {
- v4 = __ccgo_ts + 40439
+ v4 = __ccgo_ts + 40468
} else {
v4 = __ccgo_ts + 1674
}
zSql = Xsqlite3_mprintf(tls, azStmt[eStmt], libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pC)).FzDb, (*TFts5Config)(unsafe.Pointer(pC)).FzName, v4))
case int32(FTS5_STMT_LOOKUP_DOCSIZE):
if (*TFts5Config)(unsafe.Pointer(pC)).FbContentlessDelete != 0 {
- v5 = __ccgo_ts + 40442
+ v5 = __ccgo_ts + 40471
} else {
v5 = __ccgo_ts + 1674
}
@@ -295041,12 +295088,12 @@ func _sqlite3Fts5DropAll(tls *libc.TLS, pConfig uintptr) (r int32) {
defer tls.Free(64)
var rc int32
_ = rc
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40450, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40479, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40554, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40583, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
}
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40592, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40621, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
}
return rc
}
@@ -295055,7 +295102,7 @@ func _fts5StorageRenameOne(tls *libc.TLS, pConfig uintptr, pRc uintptr, zTail ui
bp := tls.Alloc(48)
defer tls.Free(48)
if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(pRc)) = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40630, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zTail, zName, zTail))
+ *(*int32)(unsafe.Pointer(pRc)) = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40659, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zTail, zName, zTail))
}
}
@@ -295067,14 +295114,14 @@ func _sqlite3Fts5StorageRename(tls *libc.TLS, pStorage uintptr, zName uintptr) (
_ = pConfig
pConfig = (*TFts5Storage)(unsafe.Pointer(pStorage)).FpConfig
*(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5StorageSync(tls, pStorage)
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+27449, zName)
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+13376, zName)
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+39784, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+27478, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+13405, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+39813, zName)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+37690, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+37719, zName)
}
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+36995, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+37024, zName)
}
return *(*int32)(unsafe.Pointer(bp))
}
@@ -295094,13 +295141,13 @@ func _sqlite3Fts5CreateTable(tls *libc.TLS, pConfig uintptr, zPost uintptr, zDef
_, _ = rc, v1
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
if bWithout != 0 {
- v1 = __ccgo_ts + 32089
+ v1 = __ccgo_ts + 32118
} else {
v1 = __ccgo_ts + 1674
}
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, bp, __ccgo_ts+40672, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn, v1))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, bp, __ccgo_ts+40701, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn, v1))
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+40702, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, *(*uintptr)(unsafe.Pointer(bp))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+40731, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, *(*uintptr)(unsafe.Pointer(bp))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
return rc
@@ -295141,7 +295188,7 @@ func _sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCr
if zDefn == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
- Xsqlite3_snprintf(tls, nDefn, zDefn, __ccgo_ts+40746, 0)
+ Xsqlite3_snprintf(tls, nDefn, zDefn, __ccgo_ts+40775, 0)
iOff = int32(libc.Xstrlen(tls, zDefn))
i = 0
for {
@@ -295149,7 +295196,7 @@ func _sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCr
break
}
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL || *(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FabUnindexed + uintptr(i))) != 0 {
- Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), __ccgo_ts+40769, libc.VaList(bp+8, i))
+ Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), __ccgo_ts+40798, libc.VaList(bp+8, i))
iOff += int32(libc.Xstrlen(tls, zDefn+uintptr(iOff)))
}
goto _2
@@ -295164,7 +295211,7 @@ func _sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCr
break
}
if int32(*(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FabUnindexed + uintptr(i)))) == 0 {
- Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), __ccgo_ts+40775, libc.VaList(bp+8, i))
+ Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), __ccgo_ts+40804, libc.VaList(bp+8, i))
iOff += int32(libc.Xstrlen(tls, zDefn+uintptr(iOff)))
}
goto _3
@@ -295173,22 +295220,22 @@ func _sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCr
i++
}
}
- rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+36995, zDefn, 0, pzErr)
+ rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+37024, zDefn, 0, pzErr)
}
Xsqlite3_free(tls, zDefn)
}
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- zCols = __ccgo_ts + 40781
+ zCols = __ccgo_ts + 40810
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete != 0 {
- zCols = __ccgo_ts + 40813
+ zCols = __ccgo_ts + 40842
}
- rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+37690, zCols, 0, pzErr)
+ rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+37719, zCols, 0, pzErr)
}
if rc == SQLITE_OK {
- rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+39784, __ccgo_ts+40861, int32(1), pzErr)
+ rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+39813, __ccgo_ts+40890, int32(1), pzErr)
}
if rc == SQLITE_OK {
- rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+37872, uintptr(0), int32(FTS5_CURRENT_VERSION))
+ rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+37901, uintptr(0), int32(FTS5_CURRENT_VERSION))
}
}
if rc != 0 {
@@ -295310,14 +295357,14 @@ func _fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel Ti64, apVal uint
bp := tls.Alloc(64)
defer tls.Free(64)
var iCol, rc, rc2 int32
- var pConfig, pVal uintptr
+ var pConfig, pFree, pVal, v2 uintptr
var _ /* ctx at bp+8 */ TFts5InsertCtx
var _ /* nLoc at bp+48 */ int32
var _ /* nText at bp+32 */ int32
var _ /* pLoc at bp+40 */ uintptr
var _ /* pSeek at bp+0 */ uintptr
var _ /* pText at bp+24 */ uintptr
- _, _, _, _, _ = iCol, pConfig, pVal, rc, rc2
+ _, _, _, _, _, _, _ = iCol, pConfig, pFree, pVal, rc, rc2, v2
pConfig = (*TFts5Storage)(unsafe.Pointer(p)).FpConfig
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0) /* SELECT to read row iDel from %_data */
rc = SQLITE_OK
@@ -295345,6 +295392,7 @@ func _fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel Ti64, apVal uint
}
if int32(*(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FabUnindexed + uintptr(iCol-int32(1))))) == 0 {
pVal = uintptr(0)
+ pFree = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 24)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 32)) = 0
*(*uintptr)(unsafe.Pointer(bp + 40)) = uintptr(0)
@@ -295357,11 +295405,24 @@ func _fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel Ti64, apVal uint
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbLocale != 0 && _sqlite3Fts5IsLocaleValue(tls, pConfig, pVal) != 0 {
rc = _sqlite3Fts5DecodeLocaleValue(tls, pVal, bp+24, bp+32, bp+40, bp+48)
} else {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = Xsqlite3_value_text(tls, pVal)
- *(*int32)(unsafe.Pointer(bp + 32)) = Xsqlite3_value_bytes(tls, pVal)
- if (*TFts5Config)(unsafe.Pointer(pConfig)).FbLocale != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
- *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), iCol+(*TFts5Config)(unsafe.Pointer(pConfig)).FnCol)
- *(*int32)(unsafe.Pointer(bp + 48)) = Xsqlite3_column_bytes(tls, *(*uintptr)(unsafe.Pointer(bp)), iCol+(*TFts5Config)(unsafe.Pointer(pConfig)).FnCol)
+ if Xsqlite3_value_type(tls, pVal) != int32(SQLITE_TEXT) {
+ /* Make a copy of the value to work with. This is because the call
+ ** to sqlite3_value_text() below forces the type of the value to
+ ** SQLITE_TEXT, and we may need to use it again later. */
+ v2 = Xsqlite3_value_dup(tls, pVal)
+ pVal = v2
+ pFree = v2
+ if pVal == uintptr(0) {
+ rc = int32(SQLITE_NOMEM)
+ }
+ }
+ if rc == SQLITE_OK {
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = Xsqlite3_value_text(tls, pVal)
+ *(*int32)(unsafe.Pointer(bp + 32)) = Xsqlite3_value_bytes(tls, pVal)
+ if (*TFts5Config)(unsafe.Pointer(pConfig)).FbLocale != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
+ *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp)), iCol+(*TFts5Config)(unsafe.Pointer(pConfig)).FnCol)
+ *(*int32)(unsafe.Pointer(bp + 48)) = Xsqlite3_column_bytes(tls, *(*uintptr)(unsafe.Pointer(bp)), iCol+(*TFts5Config)(unsafe.Pointer(pConfig)).FnCol)
+ }
}
}
if rc == SQLITE_OK {
@@ -295374,6 +295435,7 @@ func _fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel Ti64, apVal uint
}
_sqlite3Fts5ClearLocale(tls, pConfig)
}
+ Xsqlite3_value_free(tls, pFree)
}
goto _1
_1:
@@ -295608,12 +295670,12 @@ func _sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) (r int32) {
pConfig = (*TFts5Storage)(unsafe.Pointer(p)).FpConfig
(*TFts5Storage)(unsafe.Pointer(p)).FbTotalsValid = 0
/* Delete the contents of the %_data and %_docsize tables. */
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40878, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40907, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40928, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40957, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
}
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == int32(FTS5_CONTENT_UNINDEXED) {
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40957, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), __ccgo_ts+40986, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
}
/* Reinitialize the %_data table. This call creates the initial structure
** and averages records. */
@@ -295621,7 +295683,7 @@ func _sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) (r int32) {
rc = _sqlite3Fts5IndexReinit(tls, (*TFts5Storage)(unsafe.Pointer(p)).FpIndex)
}
if rc == SQLITE_OK {
- rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+37872, uintptr(0), int32(FTS5_CURRENT_VERSION))
+ rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+37901, uintptr(0), int32(FTS5_CURRENT_VERSION))
}
return rc
}
@@ -295923,7 +295985,7 @@ func _fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr)
var _ /* pCnt at bp+0 */ uintptr
_, _, _ = pConfig, rc, zSql
pConfig = (*TFts5Storage)(unsafe.Pointer(p)).FpConfig
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+40986, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+41015, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
if zSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -296155,14 +296217,14 @@ func _sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) (r int32
** number of rows. */
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
*(*Ti64)(unsafe.Pointer(bp + 80)) = 0
- rc = _fts5StorageCount(tls, p, __ccgo_ts+36995, bp+80)
+ rc = _fts5StorageCount(tls, p, __ccgo_ts+37024, bp+80)
if rc == SQLITE_OK && *(*Ti64)(unsafe.Pointer(bp + 80)) != (*TFts5Storage)(unsafe.Pointer(p)).FnTotalRow {
rc = libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
}
}
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
*(*Ti64)(unsafe.Pointer(bp + 88)) = 0
- rc = _fts5StorageCount(tls, p, __ccgo_ts+37690, bp+88)
+ rc = _fts5StorageCount(tls, p, __ccgo_ts+37719, bp+88)
if rc == SQLITE_OK && *(*Ti64)(unsafe.Pointer(bp + 88)) != (*TFts5Storage)(unsafe.Pointer(p)).FnTotalRow {
rc = libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
}
@@ -296531,10 +296593,10 @@ func _fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32,
break
}
zArg = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+int32(1))*8))
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41018) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41047) {
_fts5AsciiAddExceptions(tls, p, zArg, int32(1))
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41029) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41058) {
_fts5AsciiAddExceptions(tls, p, zArg, 0)
} else {
rc = int32(SQLITE_ERROR)
@@ -296814,7 +296876,7 @@ func _fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int3
} else {
p = Xsqlite3_malloc(tls, int32(192))
if p != 0 {
- zCat = __ccgo_ts + 41040
+ zCat = __ccgo_ts + 41069
libc.Xmemset(tls, p, 0, uint64(192))
(*TUnicode61Tokenizer)(unsafe.Pointer(p)).FeRemoveDiacritic = int32(FTS5_REMOVE_DIACRITICS_SIMPLE)
(*TUnicode61Tokenizer)(unsafe.Pointer(p)).FnFold = int32(64)
@@ -296828,7 +296890,7 @@ func _fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int3
if !(rc == SQLITE_OK && i < nArg) {
break
}
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41049) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41078) {
zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+int32(1))*8))
}
goto _1
@@ -296845,20 +296907,20 @@ func _fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int3
break
}
zArg = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+int32(1))*8))
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41060) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41089) {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('2') || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = int32(SQLITE_ERROR)
} else {
(*TUnicode61Tokenizer)(unsafe.Pointer(p)).FeRemoveDiacritic = int32(*(*int8)(unsafe.Pointer(zArg))) - int32('0')
}
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41018) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41047) {
rc = _fts5UnicodeAddExceptions(tls, p, zArg, int32(1))
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41029) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41058) {
rc = _fts5UnicodeAddExceptions(tls, p, zArg, 0)
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41049) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41078) {
/* no-op */
} else {
rc = int32(SQLITE_ERROR)
@@ -297150,7 +297212,7 @@ func _fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, p
pApi = pCtx
rc = SQLITE_OK
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- zBase = __ccgo_ts + 41078
+ zBase = __ccgo_ts + 41107
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
if nArg > 0 {
zBase = *(*uintptr)(unsafe.Pointer(azArg))
@@ -297367,64 +297429,64 @@ func _fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41088, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41117, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(2)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2)
}
}
case int32('c'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41091, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41120, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(4)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41096, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41125, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(4)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4)
}
}
}
case int32('e'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41101, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41130, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(2)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2)
}
}
case int32('i'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41104, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41133, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(2)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2)
}
}
case int32('l'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41107, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41136, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(4)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41112, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41141, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(4)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4)
}
}
}
case int32('n'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41117, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41146, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41121, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41150, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(5)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41127, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41156, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(4)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4)
}
} else {
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41132, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41161, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
@@ -297433,49 +297495,49 @@ func _fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
}
}
case int32('o'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41136, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41165, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1_and_S_or_T(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
} else {
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41140, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41169, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(2)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2)
}
}
}
case int32('s'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41143, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41172, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
}
case int32('t'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41147, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41176, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
} else {
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41151, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41180, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
}
}
case int32('u'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41155, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41184, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
}
case int32('v'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41159, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41188, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
}
case int32('z'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41163, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41192, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
@@ -297492,20 +297554,20 @@ func _fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41167, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+41147, uint64(3))
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41196, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+41176, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2) + int32(3)
ret = int32(1)
}
case int32('b'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41170, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+41173, uint64(3))
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41199, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+41202, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2) + int32(3)
ret = int32(1)
}
case int32('i'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41177, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+41163, uint64(3))
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41206, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+41192, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2) + int32(3)
ret = int32(1)
}
@@ -297521,75 +297583,75 @@ func _fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41180, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41209, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(7)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41147, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41176, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41188, aBuf+uintptr(nBuf-int32(6)), uint64(6)) {
+ if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41217, aBuf+uintptr(nBuf-int32(6)), uint64(6)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(6)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(6)), __ccgo_ts+41195, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(6)), __ccgo_ts+41224, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(6) + int32(4)
}
}
}
case int32('c'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41200, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41229, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41096, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41125, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(4)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41205, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41234, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41091, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41120, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(4)
}
}
}
case int32('e'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41210, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41239, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41163, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41192, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(3)
}
}
case int32('g'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41215, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41244, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+17496, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+17525, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(3)
}
}
case int32('l'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41220, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41249, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(3)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+41173, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+41202, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3) + int32(3)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41224, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41253, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41088, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41117, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(2)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41229, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41258, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41132, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41161, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
} else {
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41235, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41264, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(3)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+41239, uint64(1))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+41268, uint64(1))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3) + int32(1)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41241, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41270, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41155, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41184, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
}
@@ -297598,48 +297660,48 @@ func _fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
}
}
case int32('o'):
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41247, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41276, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(7)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41163, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41192, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41255, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41284, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41147, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41176, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41261, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41290, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41147, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41176, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(3)
}
}
}
}
case int32('s'):
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41266, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41295, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41088, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41117, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
} else {
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41272, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41301, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(7)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41159, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41188, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41280, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41309, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(7)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41288, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41317, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41292, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41321, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(7)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41155, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+41184, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
}
@@ -297647,21 +297709,21 @@ func _fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
}
}
case int32('t'):
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41300, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41329, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41088, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41117, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41306, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41335, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41159, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41188, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
} else {
- if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41312, aBuf+uintptr(nBuf-int32(6)), uint64(6)) {
+ if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41341, aBuf+uintptr(nBuf-int32(6)), uint64(6)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(6)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(6)), __ccgo_ts+41173, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(6)), __ccgo_ts+41202, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(6) + int32(3)
}
}
@@ -297679,48 +297741,48 @@ func _fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41319, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41348, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41104, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+41133, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(2)
}
}
case int32('s'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41324, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41353, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(4)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4)
}
}
case int32('t'):
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41329, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41358, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41104, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41133, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41335, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41364, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41104, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41133, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
}
}
case int32('u'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41288, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41317, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
}
case int32('v'):
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41341, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41370, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5)
}
}
case int32('z'):
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41347, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41376, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(5)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41088, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+41117, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
}
@@ -297736,13 +297798,13 @@ func _fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('e'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41353, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41382, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt0(tls, aBuf, nBuf-int32(3)) != 0 {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+41357, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+41386, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3) + int32(2)
}
} else {
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41360, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41389, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
if _fts5Porter_Vowel(tls, aBuf, nBuf-int32(2)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2)
ret = int32(1)
@@ -297750,7 +297812,7 @@ func _fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
}
}
case int32('n'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41363, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+41392, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_Vowel(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
ret = int32(1)
@@ -297915,14 +297977,14 @@ func _fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, p
break
}
zArg = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+int32(1))*8))
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41367) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41396) {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = int32(SQLITE_ERROR)
} else {
(*TTrigramTokenizer)(unsafe.Pointer(pNew)).FbFold = libc.BoolInt32(int32(*(*int8)(unsafe.Pointer(zArg))) == int32('0'))
}
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41060) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+41089) {
if int32(*(*int8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('1') && int32(*(*int8)(unsafe.Pointer(zArg))) != int32('2') || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = int32(SQLITE_ERROR)
} else {
@@ -298190,7 +298252,7 @@ func _sqlite3Fts5TokenizerPattern(tls *libc.TLS, xCreate uintptr, pTok uintptr)
// ** called for the first time in order to correctly handle LIKE/GLOB.
// */
func _sqlite3Fts5TokenizerPreload(tls *libc.TLS, p uintptr) (r int32) {
- return libc.BoolInt32((*TFts5TokenizerConfig)(unsafe.Pointer(p)).FnArg >= int32(1) && 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer((*TFts5TokenizerConfig)(unsafe.Pointer(p)).FazArg)), __ccgo_ts+41382))
+ return libc.BoolInt32((*TFts5TokenizerConfig)(unsafe.Pointer(p)).FnArg >= int32(1) && 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer((*TFts5TokenizerConfig)(unsafe.Pointer(p)).FazArg)), __ccgo_ts+41411))
}
// C documentation
@@ -298216,7 +298278,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
Fx Tfts5_tokenizer
}{
0: {
- FzName: __ccgo_ts + 41078,
+ FzName: __ccgo_ts + 41107,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5UnicodeCreate),
FxDelete: __ccgo_fp(_fts5UnicodeDelete),
@@ -298224,7 +298286,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
},
},
1: {
- FzName: __ccgo_ts + 41390,
+ FzName: __ccgo_ts + 41419,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5AsciiCreate),
FxDelete: __ccgo_fp(_fts5AsciiDelete),
@@ -298232,7 +298294,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
},
},
2: {
- FzName: __ccgo_ts + 41382,
+ FzName: __ccgo_ts + 41411,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5TriCreate),
FxDelete: __ccgo_fp(_fts5TriDelete),
@@ -298262,7 +298324,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
FxDelete: __ccgo_fp(_fts5PorterDelete),
FxTokenize: __ccgo_fp(_fts5PorterTokenize),
}
- rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfts5_api)(unsafe.Pointer(pApi)).FxCreateTokenizer_v2})))(tls, pApi, __ccgo_ts+41396, pApi, bp+96, uintptr(0))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfts5_api)(unsafe.Pointer(pApi)).FxCreateTokenizer_v2})))(tls, pApi, __ccgo_ts+41425, pApi, bp+96, uintptr(0))
}
return rc
}
@@ -303778,16 +303840,16 @@ func _fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uin
zCopy = _sqlite3Fts5Strndup(tls, bp, zType, -int32(1))
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
_sqlite3Fts5Dequote(tls, zCopy)
- if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+41403) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+41432) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL
} else {
- if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+41407) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+41436) == 0 {
*(*int32)(unsafe.Pointer(peType)) = int32(FTS5_VOCAB_ROW)
} else {
- if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+41411) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+41440) == 0 {
*(*int32)(unsafe.Pointer(peType)) = int32(FTS5_VOCAB_INSTANCE)
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+41420, libc.VaList(bp+16, zCopy))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+41449, libc.VaList(bp+16, zCopy))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
}
@@ -303857,15 +303919,15 @@ func _fts5VocabInitVtab(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, arg
var _ /* rc at bp+0 */ int32
_, _, _, _, _, _, _, _, _, _, _, _ = azSchema, bDb, nByte, nDb, nTab, pRet, zDb, zTab, zType, v1, v2, v3
azSchema = [3]uintptr{
- 0: __ccgo_ts + 41454,
- 1: __ccgo_ts + 41494,
- 2: __ccgo_ts + 41529,
+ 0: __ccgo_ts + 41483,
+ 1: __ccgo_ts + 41523,
+ 2: __ccgo_ts + 41558,
}
pRet = uintptr(0)
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
- bDb = libc.BoolInt32(argc == int32(6) && libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) == uint64(4) && libc.Xmemcmp(tls, __ccgo_ts+25435, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0)
+ bDb = libc.BoolInt32(argc == int32(6) && libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) == uint64(4) && libc.Xmemcmp(tls, __ccgo_ts+25464, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0)
if argc != int32(5) && bDb == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+41572, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+41601, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if bDb != 0 {
@@ -304035,10 +304097,10 @@ func _fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) (r int32)
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
zSql = uintptr(0)
if (*TFts5VocabTable)(unsafe.Pointer(pTab)).FbBusy != 0 {
- (*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+41605, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ (*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+41634, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
return int32(SQLITE_ERROR)
}
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+41636, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+41665, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
if zSql != 0 {
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_prepare_v2(tls, (*TFts5VocabTable)(unsafe.Pointer(pTab)).Fdb, zSql, -int32(1), bp+8, uintptr(0))
}
@@ -304057,7 +304119,7 @@ func _fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) (r int32)
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
- (*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+41687, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
+ (*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+41716, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
} else {
@@ -304507,7 +304569,7 @@ func _sqlite3Fts5VocabInit(tls *libc.TLS, pGlobal uintptr, db uintptr) (r int32)
var p uintptr
_ = p
p = pGlobal
- return Xsqlite3_create_module_v2(tls, db, __ccgo_ts+41713, uintptr(unsafe.Pointer(&_fts5Vocab)), p, uintptr(0))
+ return Xsqlite3_create_module_v2(tls, db, __ccgo_ts+41742, uintptr(unsafe.Pointer(&_fts5Vocab)), p, uintptr(0))
}
var _fts5Vocab = Tsqlite3_module{
@@ -304562,15 +304624,15 @@ func init() {
// /************** End of stmt.c ************************************************/
// /* Return the source-id for this library */
func Xsqlite3_sourceid(tls *libc.TLS) (r uintptr) {
- return __ccgo_ts + 41723
+ return __ccgo_ts + 41752
}
type TAggInfo_col = struct {
FpTab uintptr
FpCExpr uintptr
FiTable int32
- FiColumn Ti16
- FiSorterColumn Ti16
+ FiColumn int32
+ FiSorterColumn int32
}
type AggInfo_col = TAggInfo_col
@@ -304991,11 +305053,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// **
// ** See also: [sqlite_version()] and [sqlite_source_id()].
// */
-var Xsqlite3_version = [7]int8{'3', '.', '5', '0', '.', '1'}
+var Xsqlite3_version = [7]int8{'3', '.', '5', '0', '.', '3'}
var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
-var __ccgo_ts1 = "ATOMIC_INTRINSICS=1\x00COMPILER=gcc-12-win32\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MEMSTATUS=0\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\x00DIRECT_OVERFLOW_READ\x00ENABLE_COLUMN_METADATA\x00ENABLE_DBSTAT_VTAB\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=1000\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=0xfffffffe\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\x00OMIT_SEH\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00subsec\x00subsecond\x00local time unavailable\x00auto\x00ceiling\x00floor\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x0040f\x0050f\x0040f-20a-20d\x0050f-20a-20d\x00%02d\x00%2d\x00%06.3f\x00%04d-%02d-%02d\x00%04d\x00%03d\x00%.16g\x00PM\x00pm\x00AM\x00am\x00%02d:%02d\x00%.3f\x00%lld\x00%02d:%02d:%02d\x00%c%04d-%02d-%02d %02d:%02d:%06.3f\x00date\x00time\x00datetime\x00strftime\x00timediff\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x00%\x00null\x00NaN\x00-Inf\x00\x00NULL\x00(NULL)\x00unistr('\x000123456789abcdef\x00.\x00(join-%u)\x00%u-ROW VALUES CLAUSE\x00(subquery-%u)\x00unrecognized token: \"%s\"\x00922337203685477580\x00+- \n\t0123456789\x000\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Init\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00IfNot\x00IsType\x00Not\x00IfNullRow\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSizeBetween\x00SorterSort\x00Sort\x00Rewind\x00SorterNext\x00Prev\x00Next\x00IdxLE\x00IdxGT\x00IdxLT\x00Or\x00And\x00IdxGE\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00BeginSubrtn\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\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\x00VCheck\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00ClrSubtype\x00GetSubtype\x00SetSubtype\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\x00CreateEvent\x00CancelIo\x00GetModuleHandleW\x00getenv\x00getcwd\x00readlink\x00lstat\x00__errno\x00cygwin_conv_path\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\x00%s-shm\x00readonly_shm\x00winShmMap1\x00winShmMap2\x00winShmMap3\x00winUnmapfile1\x00winUnmapfile2\x00winMapfile1\x00winMapfile2\x00etilqs_\x00winGetTempname1\x00winGetTempname2\x00winGetTempname3\x00winGetTempname4\x00winGetTempname5\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\x00BEGIN IMMEDIATE; COMMIT;\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\x00:memory:\x00@ \x00\n\x00invalid page number %u\x002nd reference to page %u\x00Failed to read ptrmap key=%u\x00Bad ptr map entry key=%u expected=(%u,%u) got=(%u,%u)\x00failed to get page %u\x00freelist leaf count too big on page %u\x00size\x00overflow list length\x00%s is %u but should be %u\x00Tree %u page %u: \x00unable to get the page. error code=%d\x00btreeInitPage() returns error code %d\x00free space corruption\x00Tree %u page %u cell %u: \x00Tree %u page %u right child: \x00Offset %u out of range %u..%u\x00Extends off end of page\x00Rowid %lld out of order\x00Child page depth differs\x00Multiple uses for byte %u of page %u\x00Fragmentation of %u bytes reported as %u on page %u\x00Freelist: \x00max rootpage (%u) disagrees with header (%u)\x00incremental_vacuum enabled with a max rootpage of zero\x00Page %u: never used\x00Page %u: pointer map referenced\x00unknown database %s\x00destination database is in use\x00source and destination must be distinct\x00%!.15g\x00-\x00%s%s\x00k(%d\x00BINARY\x00B\x00N.\x00,%s%s%s\x00)\x00?\x008\x0016LE\x0016BE\x00%.18s-%s\x00%s(%d)\x00%d\x00(blob)\x00vtab:%p\x00%c%u\x00]\x00program\x00subrtnsig:%d,%s\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\x00addr\x00opcode\x00p1\x00p2\x00p3\x00p4\x00p5\x00comment\x00id\x00parent\x00notused\x00detail\x00bind on a busy prepared statement: [%s]\x00-- \x00'%.*q'\x00zeroblob(%d)\x00x'\x00%02x\x00'\x00NOT NULL\x00UNIQUE\x00CHECK\x00FOREIGN KEY\x00%s constraint failed\x00%z: %s\x00abort at %d: %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\x00into\x00out of\x00cannot change %s wal mode from within a transaction\x00database table is locked: %s\x00ValueList\x00-- %s\x00statement aborts at %d: %s; [%s]\x00real\x00integer\x00cannot open value of type %s\x00no such rowid: %lld\x00cannot open virtual table: %s\x00cannot open table without rowid: %s\x00cannot open table with generated columns: %s\x00cannot open view: %s\x00no such column: \"%s\"\x00foreign key\x00indexed\x00cannot open %s column for writing\x00sqlite_\x00sqlite_temp_master\x00sqlite_temp_schema\x00sqlite_schema\x00main\x00*\x00new\x00old\x00excluded\x00misuse of aliased aggregate %s\x00misuse of aliased window function %s\x00row value misused\x00double-quoted string literal: \"%w\"\x00coalesce\x00no such column\x00ambiguous column name\x00%s: %s.%s.%s\x00%s: %s.%s\x00%s: \"%s\" - should this be a string literal in single-quotes?\x00%s: %s\x00partial index WHERE clauses\x00index expressions\x00CHECK constraints\x00generated columns\x00%s prohibited in %s\x00the \".\" operator\x00second argument to %#T() must be a constant between 0.0 and 1.0\x00not authorized to use function: %#T\x00non-deterministic functions\x00%#T() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %#T()\x00no such function: %#T\x00wrong number of arguments to function %#T()\x00FILTER may not be used with non-aggregate %#T()\x00subqueries\x00parameters\x00%r %s BY term out of range - should be between 1 and %d\x00too many terms in ORDER BY clause\x00ORDER\x00%r ORDER BY term does not match any column in the result set\x00too many terms in %s BY clause\x00HAVING clause on a non-aggregate query\x00GROUP\x00aggregate functions are not allowed in the GROUP BY clause\x00Expression tree is too large (maximum depth %d)\x00s\x00IN(...) element has %d term%s - expected %d\x00too many arguments on function %T\x00ORDER BY may not be used with non-aggregate %#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\x00true\x00false\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\x00CORRELATED \x00%sLIST SUBQUERY %d\x00REUSE SUBQUERY %d\x00%sSCALAR SUBQUERY %d\x001\x000x\x00hex literal too big: %s%#T\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00flexnum\x00none\x00misuse of aggregate: %#T()\x00unknown function: %#T()\x00RAISE() may only be used within a trigger-program\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') WHEN quick_check GLOB 'non-* value in*' THEN raise(ABORT,'type mismatch on DEFAULT') ELSE raise(ABORT,'NOT NULL constraint failed') END FROM pragma_quick_check(%Q,%Q) WHERE quick_check GLOB 'CHECK*' OR quick_check GLOB 'NULL*' OR quick_check GLOB 'non-* value in*'\x00virtual tables may not be altered\x00Cannot add a column to a view\x00sqlite_altertab_%s\x00view\x00virtual table\x00drop column from\x00rename columns of\x00cannot %s %s \"%s\"\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')\x00 \x00error in %s %s%s%s: %s\x00CREATE \x00\"%w\" \x00%Q%s\x00%.*s%s\x00PRIMARY KEY\x00cannot drop %s column: \"%s\"\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\x00sqlite_stat1\x00tbl,idx,stat\x00sqlite_stat4\x00tbl,idx,neq,nlt,ndlt,sample\x00sqlite_stat3\x00CREATE TABLE %Q.%s(%s)\x00DELETE FROM %Q.%s WHERE %s=%Q\x00DELETE FROM %Q.%s\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 COLLATE nocase\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\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\x00cannot use RETURNING in a trigger\x00sqlite_returning_%p\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'\x00SELECT*FROM\"%w\".\"%w\"\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\x00FIRST\x00LAST\x00unsupported use of NULLS %s\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\x00 UNIQUE\x00CREATE%s INDEX %.*s\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\x00ON\x00USING\x00a JOIN clause is required before %s\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\x00unsafe use of virtual table \"%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%!0.15g\x00%!0.20e\x00%#Q\x00%Q\x00invalid Unicode escape\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\x00octet_length\x00instr\x00printf\x00format\x00unicode\x00char\x00abs\x00round\x00upper\x00lower\x00hex\x00unhex\x00concat\x00concat_ws\x00ifnull\x00random\x00randomblob\x00nullif\x00sqlite_version\x00sqlite_source_id\x00sqlite_log\x00unistr\x00quote\x00unistr_quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00string_agg\x00glob\x00ceil\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\x00if\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00SCAN %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\x00dll\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]\x00automatic extension loading failed: %s\x00seq\x00from\x00to\x00on_update\x00on_delete\x00match\x00cid\x00name\x00type\x00notnull\x00dflt_value\x00pk\x00hidden\x00builtin\x00enc\x00narg\x00flags\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00unique\x00origin\x00partial\x00wdth\x00hght\x00flgs\x00rowid\x00fkid\x00busy\x00checkpointed\x00file\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\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\x00utf8\x00utf16le\x00utf16be\x00w\x00a\x00sissii\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\x00wrong # of entries in index \x00row not in PRIMARY KEY order for %s\x00NULL value in %s.%s\x00non-%s value in %s.%s\x00NUMERIC value in %s.%s\x00C\x00TEXT value in %s.%s\x00CHECK constraint failed in %s\x00row \x00 missing from index \x00rowid not at end-of-record for row \x00 of index \x00 values differ from index \x00non-unique entry in index \x00ok\x00UTF8\x00UTF-8\x00UTF-16le\x00UTF-16be\x00UTF16le\x00UTF16be\x00UTF-16\x00UTF16\x00unsupported encoding: %s\x00restart\x00ANALYZE \"%w\".\"%w\"\x00CREATE TABLE x\x00%c\"%s\"\x00(\"%s\"\x00,arg HIDDEN\x00,schema HIDDEN\x00PRAGMA \x00%Q.\x00=%Q\x00rename\x00drop column\x00add column\x00error in %s %s after %s: %s\x00malformed database schema (%s)\x00%z - %s\x00orphan index\x00CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)\x00unsupported file format\x00SELECT*FROM\"%w\".%s ORDER BY rowid\x00database schema is locked: %s\x00statement too long\x00unknown join type: %T%s%T%s%T\x00a NATURAL join may not have an ON or USING clause\x00cannot join using column %s - column not present in both tables\x00ambiguous reference to %s in USING()\x00CREATE BLOOM FILTER\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00LAST TERM OF \x00USE TEMP B-TREE FOR %sORDER BY\x00USE TEMP B-TREE FOR LAST %d TERMS OF ORDER BY\x00column%d\x00%.*z:%u\x00NUM\x00cannot use window functions in recursive queries\x00recursive aggregate queries not supported\x00SETUP\x00RECURSIVE STEP\x00S\x00SCAN %d CONSTANT ROW%s\x00COMPOUND QUERY\x00LEFT-MOST SUBQUERY\x00%s USING TEMP B-TREE\x00all VALUES must have the same number of terms\x00SELECTs to the left and right of %s do not have the same number of result columns\x00MERGE (%s)\x00LEFT\x00RIGHT\x00no such index: %s\x00'%s' is not a function\x00no such index: \"%s\"\x00multiple references to recursive table: %s\x00circular reference: %s\x00table %s has %d values for %d columns\x00multiple recursive references: %s\x00recursive reference in a subquery: %s\x00%!S\x00too many references to \"%s\": max 65535\x00access to view \"%s\" prohibited\x00..%s\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00USE TEMP B-TREE FOR %s(ORDER BY)\x00 USING COVERING INDEX \x00SCAN %s%s%s\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\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00cannot create triggers on shadow tables\x00trigger %T already exists\x00cannot create trigger on system table\x00BEFORE\x00AFTER\x00cannot create %s trigger on view: %S\x00cannot create INSTEAD OF trigger on table: %S\x00trigger \"%s\" may not write to shadow 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'\x00DELETE\x00UPDATE\x00%s RETURNING is not available on virtual tables\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\x00vacuum_%016llx\x00ATTACH %Q AS %s\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 %s.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM %s.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO %s.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\x00syntax error\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00SEARCH\x00SCAN\x00%s %S\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 \x000x%x:%s\x00%d:%s\x00 LEFT-JOIN\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00RIGHT-JOIN %s\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00internal query planner error\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\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\x00near \"%T\": syntax error\x00ORDER BY\x00LIMIT\x00%s clause should come after %s not before\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00unknown table option: %.*s\x00set list\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\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\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\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\x00shared\x00private\x00mode\x00ro\x00rw\x00rwc\x00access\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\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\x00JSON cannot hold BLOB values\x00malformed JSON\x00inf\x009.0e999\x00infinity\x00QNaN\x00SNaN\x00json_%s() needs an odd number of arguments\x00\"\\/bfnrt\x00-9e999\x009e999\x00inity\x00\\\"\x00\\u0009\x00\\u00\x00\\u0000\x00,\n\x00: \x00bad JSON path: %Q\x00@\x00[\x00#\x00.\"\x00\"\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00 \x00FLAGS parameter to json_valid() must be between 1 and 15\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00[%lld]\x00.\"%.*s\"\x00.%.*s\x00$\x00json\x00jsonb\x00json_array\x00jsonb_array\x00json_array_length\x00json_error_position\x00json_extract\x00jsonb_extract\x00->\x00->>\x00json_insert\x00jsonb_insert\x00json_object\x00jsonb_object\x00json_patch\x00jsonb_patch\x00json_pretty\x00json_quote\x00json_remove\x00jsonb_remove\x00json_replace\x00jsonb_replace\x00json_set\x00jsonb_set\x00json_type\x00json_valid\x00json_group_array\x00jsonb_group_array\x00json_group_object\x00jsonb_group_object\x00json_each\x00json_tree\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\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\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\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\x00_node\x00CREATE TABLE x(%.*s INT\x00,%.*s\x00,%.*s REAL\x00,%.*s INT\x00);\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\x00%_rowid\x00%_parent\x00Mapping (%lld -> %lld) missing from %s table\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\x00In RTree %s.%s:\n%z\x00wrong number of arguments to function rtreecheck()\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_area\x00geopoly_blob\x00geopoly_json\x00geopoly_svg\x00geopoly_contains_point\x00geopoly_debug\x00geopoly_bbox\x00geopoly_xform\x00geopoly_regular\x00geopoly_ccw\x00geopoly_group_bbox\x00geopoly\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;\x00AND rootpage!=0 AND rootpage IS NOT NULL\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\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\x00may not have\x00requires\x00table %q %s rbu_rowid column\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 NOT NULL\x00%z%s\"%w\" %s %sCOLLATE %Q%s\x00%z, %z\x00 WITHOUT ROWID\x00CREATE TABLE \"rbu_imp_%w\"(%z)%s\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\x00AND\x00WHERE\x00SELECT %s, 0 AS rbu_control FROM '%q' %s %s %s ORDER BY %s%s\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_\x00, _rowid_\x00INSERT INTO \"%s%w\"(%s%s) VALUES(%s)\x00DELETE FROM \"%s%w\" WHERE %s\x00, rbu_rowid\x00, 0 AS rbu_rowid\x00CREATE TABLE IF NOT EXISTS %s.'rbu_tmp_%q' AS SELECT *%s FROM '%q' WHERE 0;\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\x000 AS \x00SELECT %s,%s rbu_control%s FROM '%q'%s %s %s %s\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\x00&\x00file:%s-vactmp?rbu_memory=1%s%s\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, %lld), (%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\x00vacuum\x00update\x00database modified during rbu %s\x00BEGIN IMMEDIATE\x00PRAGMA journal_mode=off\x00-vactmp\x00DELETE FROM stat.rbu_state\x00rbu/zipvfs setup error\x00rbu(%s)/%z\x00rbu_memory\x00/\x00overflow\x00%s%.3x+%.6x\x00%s%.3x/\x00internal\x00leaf\x00corrupted\x00SELECT * FROM (SELECT 'sqlite_schema' AS name,1 AS rootpage,'table' AS type UNION ALL SELECT name,rootpage,type FROM \"%w\".sqlite_schema WHERE rootpage!=0)\x00WHERE name=%Q\x00 ORDER BY name\x00dbstat\x00SELECT 0, 'tbl', '', 0, '', 1, 0 UNION ALL SELECT 1, 'idx', '', 0, '', 2, 0 UNION ALL SELECT 2, 'stat', '', 0, '', 0, 0\x00PRAGMA '%q'.table_xinfo('%q')\x00SELECT\x00%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"\x00%z%s\"%w\".\"%w\".\"%w\" IS NOT \"%w\".\"%w\".\"%w\"\x00 OR \x00_rowid_, *\x00SELECT %s FROM \"%w\".\"%w\" WHERE NOT EXISTS ( SELECT 1 FROM \"%w\".\"%w\" WHERE %s)\x00%z%s\"%w\".\"%w\".\"%w\"\x00SELECT %s,%s FROM \"%w\".\"%w\", \"%w\".\"%w\" WHERE %s AND (%z)\x00SELECT * FROM %Q.sqlite_schema\x00no such table: %s.%s\x00table schemas do not match\x00, 1\x00 AND (?6 OR ?3 IS stat)\x00tbl, idx\x00?1, (CASE WHEN ?2=X'' THEN NULL ELSE ?2 END)\x00tbl, ?2, stat\x00?%d\x00 AND (?%d OR ?%d IS %w.%w)\x00SELECT %s%s FROM %Q.%Q WHERE (%s) IS (%s)\x00SAVEPOINT changeset\x00RELEASE changeset\x00UPDATE main.\x00 SET \x00 = ?\x00 WHERE \x00idx IS CASE WHEN length(?4)=0 AND typeof(?4)='blob' THEN NULL ELSE ?4 END \x00 IS ?\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()\x00wrong number of arguments to function fts5_get_locale()\x00non-integer argument passed to function fts5_get_locale()\x00snippet\x00highlight\x00bm25\x00fts5_get_locale\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\x00contentless_delete\x00malformed contentless_delete=... directive\x00contentless_unindexed\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... directive\x00locale\x00malformed locale=... directive\x00columns\x00malformed detail=... directive\x00tokendata\x00malformed tokendata=... directive\x00unrecognized option: \"%.*s\"\x00rank\x00reserved fts5 column name: %s\x00unindexed\x00unrecognized column option: %s\x00T.%Q\x00, T.%Q\x00, T.c%d\x00, NULL\x00, T.l%d\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00contentless_delete=1 requires a contentless table\x00contentless_delete=1 is incompatible with columnsize=0\x00contentless_unindexed=1 requires a contentless table\x00docsize\x00%Q.'%q_%s'\x00CREATE TABLE x(\x00%z%s%Q\x00%z, %Q HIDDEN, %s HIDDEN)\x00pgsz\x00hashsize\x00automerge\x00usermerge\x00crisismerge\x00deletemerge\x00secure-delete\x00insttoken\x00SELECT k, v FROM %Q.'%q_config'\x00version\x00invalid fts5 file format (found %d, expected %d or %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)\x00phrase\x00fts5: %s queries are not supported (detail!=full)\x00fts5 expression tree is too large (maximum depth %d)\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=?\x00\xff\x00\x00\x01\x00PRAGMA %Q.data_version\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term<=? ORDER BY term DESC LIMIT 1\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term>? ORDER BY term ASC LIMIT 1\x00INSERT INTO '%q'.'%q_idx'(segid,term,pgno) VALUES(?,?,?)\x00DELETE FROM '%q'.'%q_idx' WHERE (segid, (pgno/2)) = (?1, ?2)\x00REPLACE INTO %Q.'%q_config' VALUES ('version', %d)\x00%s_data\x00id INTEGER PRIMARY KEY, block BLOB\x00segid, term, pgno, PRIMARY KEY(segid, term)\x00\x00\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\x00DESC\x00ASC\x00SELECT rowid, rank FROM %Q.%Q ORDER BY %s(\"%w\"%s%s) %s\x00reads\x00unknown special query: %.*s\x00SELECT %s\x00no such function: %s\x00parse error in rank function: %s\x00%.*s\x00%s: table does not support scanning\x00fts5: missing row %lld from content table %s\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\x00flush\x00%s a subset of columns on fts5 contentless-delete table: %s\x00%s contentless fts5 table: %s\x00cannot UPDATE\x00'delete' may not be used with a contentless_delete=1 table\x00cannot DELETE from contentless fts5 table: %s\x00fts5_locale() requires locale=1\x00no such cursor: %lld\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2025-06-06 14:52:32 b77dc5e0f596d2140d9ac682b2893ff65d3a4140aa86067a3efebe29dc914c95\x00config\x00malformed inverted index for FTS5 table %s.%s\x00unable to validate the inverted index for FTS5 table %s.%s: %s\x00fts5\x00fts5_source_id\x00fts5_locale\x00fts5_insttoken\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(?,?%s)\x00DELETE FROM %Q.'%q_docsize' WHERE id=?\x00SELECT sz%s FROM %Q.'%q_docsize' WHERE id=?\x00REPLACE INTO %Q.'%q_config' VALUES(?,?)\x00SELECT %s FROM %s AS T\x00%z%s?%d\x00%z,?%d\x00,?\x00,origin\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\x00, l%d\x00id INTEGER PRIMARY KEY, sz BLOB\x00id INTEGER PRIMARY KEY, sz BLOB, origin INTEGER\x00k PRIMARY KEY, v\x00DELETE FROM %Q.'%q_data';DELETE FROM %Q.'%q_idx';\x00DELETE FROM %Q.'%q_docsize';\x00DELETE FROM %Q.'%q_content';\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\x00trigram\x00ascii\x00porter\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\x002025-06-06 14:52:32 b77dc5e0f596d2140d9ac682b2893ff65d3a4140aa86067a3efebe29dc914c95\x00"
+var __ccgo_ts1 = "ATOMIC_INTRINSICS=1\x00COMPILER=gcc-12-win32\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MEMSTATUS=0\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\x00DIRECT_OVERFLOW_READ\x00ENABLE_COLUMN_METADATA\x00ENABLE_DBSTAT_VTAB\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=1000\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=0xfffffffe\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\x00OMIT_SEH\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00subsec\x00subsecond\x00local time unavailable\x00auto\x00ceiling\x00floor\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x0040f\x0050f\x0040f-20a-20d\x0050f-20a-20d\x00%02d\x00%2d\x00%06.3f\x00%04d-%02d-%02d\x00%04d\x00%03d\x00%.16g\x00PM\x00pm\x00AM\x00am\x00%02d:%02d\x00%.3f\x00%lld\x00%02d:%02d:%02d\x00%c%04d-%02d-%02d %02d:%02d:%06.3f\x00date\x00time\x00datetime\x00strftime\x00timediff\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x00%\x00null\x00NaN\x00-Inf\x00\x00NULL\x00(NULL)\x00unistr('\x000123456789abcdef\x00.\x00(join-%u)\x00%u-ROW VALUES CLAUSE\x00(subquery-%u)\x00unrecognized token: \"%s\"\x00922337203685477580\x00+- \n\t0123456789\x000\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Init\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00IfNot\x00IsType\x00Not\x00IfNullRow\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSizeBetween\x00SorterSort\x00Sort\x00Rewind\x00SorterNext\x00Prev\x00Next\x00IdxLE\x00IdxGT\x00IdxLT\x00Or\x00And\x00IdxGE\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00BeginSubrtn\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\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\x00VCheck\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00ClrSubtype\x00GetSubtype\x00SetSubtype\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\x00CreateEvent\x00CancelIo\x00GetModuleHandleW\x00getenv\x00getcwd\x00readlink\x00lstat\x00__errno\x00cygwin_conv_path\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\x00%s-shm\x00readonly_shm\x00winShmMap1\x00winShmMap2\x00winShmMap3\x00winUnmapfile1\x00winUnmapfile2\x00winMapfile1\x00winMapfile2\x00etilqs_\x00winGetTempname1\x00winGetTempname2\x00winGetTempname3\x00winGetTempname4\x00winGetTempname5\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\x00BEGIN IMMEDIATE; COMMIT;\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\x00:memory:\x00@ \x00\n\x00invalid page number %u\x002nd reference to page %u\x00Failed to read ptrmap key=%u\x00Bad ptr map entry key=%u expected=(%u,%u) got=(%u,%u)\x00failed to get page %u\x00freelist leaf count too big on page %u\x00size\x00overflow list length\x00%s is %u but should be %u\x00Tree %u page %u: \x00unable to get the page. error code=%d\x00btreeInitPage() returns error code %d\x00free space corruption\x00Tree %u page %u cell %u: \x00Tree %u page %u right child: \x00Offset %u out of range %u..%u\x00Extends off end of page\x00Rowid %lld out of order\x00Child page depth differs\x00Multiple uses for byte %u of page %u\x00Fragmentation of %u bytes reported as %u on page %u\x00Freelist: \x00max rootpage (%u) disagrees with header (%u)\x00incremental_vacuum enabled with a max rootpage of zero\x00Page %u: never used\x00Page %u: pointer map referenced\x00unknown database %s\x00destination database is in use\x00source and destination must be distinct\x00%!.15g\x00-\x00%s%s\x00k(%d\x00BINARY\x00B\x00N.\x00,%s%s%s\x00)\x00?\x008\x0016LE\x0016BE\x00%.18s-%s\x00%s(%d)\x00%d\x00(blob)\x00vtab:%p\x00%c%u\x00]\x00program\x00subrtnsig:%d,%s\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\x00addr\x00opcode\x00p1\x00p2\x00p3\x00p4\x00p5\x00comment\x00id\x00parent\x00notused\x00detail\x00bind on a busy prepared statement: [%s]\x00-- \x00'%.*q'\x00zeroblob(%d)\x00x'\x00%02x\x00'\x00NOT NULL\x00UNIQUE\x00CHECK\x00FOREIGN KEY\x00%s constraint failed\x00%z: %s\x00abort at %d: %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\x00into\x00out of\x00cannot change %s wal mode from within a transaction\x00database table is locked: %s\x00ValueList\x00-- %s\x00statement aborts at %d: %s; [%s]\x00real\x00integer\x00cannot open value of type %s\x00no such rowid: %lld\x00cannot open virtual table: %s\x00cannot open table without rowid: %s\x00cannot open table with generated columns: %s\x00cannot open view: %s\x00no such column: \"%s\"\x00foreign key\x00indexed\x00cannot open %s column for writing\x00sqlite_\x00sqlite_temp_master\x00sqlite_temp_schema\x00sqlite_schema\x00main\x00*\x00new\x00old\x00excluded\x00misuse of aliased aggregate %s\x00misuse of aliased window function %s\x00row value misused\x00double-quoted string literal: \"%w\"\x00coalesce\x00no such column\x00ambiguous column name\x00%s: %s.%s.%s\x00%s: %s.%s\x00%s: \"%s\" - should this be a string literal in single-quotes?\x00%s: %s\x00partial index WHERE clauses\x00index expressions\x00CHECK constraints\x00generated columns\x00%s prohibited in %s\x00the \".\" operator\x00second argument to %#T() must be a constant between 0.0 and 1.0\x00not authorized to use function: %#T\x00non-deterministic functions\x00%#T() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %#T()\x00no such function: %#T\x00wrong number of arguments to function %#T()\x00FILTER may not be used with non-aggregate %#T()\x00subqueries\x00parameters\x00%r %s BY term out of range - should be between 1 and %d\x00too many terms in ORDER BY clause\x00ORDER\x00%r ORDER BY term does not match any column in the result set\x00too many terms in %s BY clause\x00HAVING clause on a non-aggregate query\x00GROUP\x00aggregate functions are not allowed in the GROUP BY clause\x00Expression tree is too large (maximum depth %d)\x00s\x00IN(...) element has %d term%s - expected %d\x00too many arguments on function %T\x00ORDER BY may not be used with non-aggregate %#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\x00true\x00false\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\x00CORRELATED \x00%sLIST SUBQUERY %d\x00REUSE SUBQUERY %d\x00%sSCALAR SUBQUERY %d\x001\x000x\x00hex literal too big: %s%#T\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00flexnum\x00none\x00misuse of aggregate: %#T()\x00unknown function: %#T()\x00RAISE() may only be used within a trigger-program\x00more than %d aggregate terms\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') WHEN quick_check GLOB 'non-* value in*' THEN raise(ABORT,'type mismatch on DEFAULT') ELSE raise(ABORT,'NOT NULL constraint failed') END FROM pragma_quick_check(%Q,%Q) WHERE quick_check GLOB 'CHECK*' OR quick_check GLOB 'NULL*' OR quick_check GLOB 'non-* value in*'\x00virtual tables may not be altered\x00Cannot add a column to a view\x00sqlite_altertab_%s\x00view\x00virtual table\x00drop column from\x00rename columns of\x00cannot %s %s \"%s\"\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')\x00 \x00error in %s %s%s%s: %s\x00CREATE \x00\"%w\" \x00%Q%s\x00%.*s%s\x00PRIMARY KEY\x00cannot drop %s column: \"%s\"\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\x00sqlite_stat1\x00tbl,idx,stat\x00sqlite_stat4\x00tbl,idx,neq,nlt,ndlt,sample\x00sqlite_stat3\x00CREATE TABLE %Q.%s(%s)\x00DELETE FROM %Q.%s WHERE %s=%Q\x00DELETE FROM %Q.%s\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 COLLATE nocase\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\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\x00cannot use RETURNING in a trigger\x00sqlite_returning_%p\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'\x00SELECT*FROM\"%w\".\"%w\"\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\x00FIRST\x00LAST\x00unsupported use of NULLS %s\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\x00 UNIQUE\x00CREATE%s INDEX %.*s\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\x00ON\x00USING\x00a JOIN clause is required before %s\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\x00unsafe use of virtual table \"%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%!0.15g\x00%!0.20e\x00%#Q\x00%Q\x00invalid Unicode escape\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\x00octet_length\x00instr\x00printf\x00format\x00unicode\x00char\x00abs\x00round\x00upper\x00lower\x00hex\x00unhex\x00concat\x00concat_ws\x00ifnull\x00random\x00randomblob\x00nullif\x00sqlite_version\x00sqlite_source_id\x00sqlite_log\x00unistr\x00quote\x00unistr_quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00string_agg\x00glob\x00ceil\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\x00if\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00SCAN %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\x00dll\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]\x00automatic extension loading failed: %s\x00seq\x00from\x00to\x00on_update\x00on_delete\x00match\x00cid\x00name\x00type\x00notnull\x00dflt_value\x00pk\x00hidden\x00builtin\x00enc\x00narg\x00flags\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00unique\x00origin\x00partial\x00wdth\x00hght\x00flgs\x00rowid\x00fkid\x00busy\x00checkpointed\x00file\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\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\x00utf8\x00utf16le\x00utf16be\x00w\x00a\x00sissii\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\x00wrong # of entries in index \x00row not in PRIMARY KEY order for %s\x00NULL value in %s.%s\x00non-%s value in %s.%s\x00NUMERIC value in %s.%s\x00C\x00TEXT value in %s.%s\x00CHECK constraint failed in %s\x00row \x00 missing from index \x00rowid not at end-of-record for row \x00 of index \x00 values differ from index \x00non-unique entry in index \x00ok\x00UTF8\x00UTF-8\x00UTF-16le\x00UTF-16be\x00UTF16le\x00UTF16be\x00UTF-16\x00UTF16\x00unsupported encoding: %s\x00restart\x00ANALYZE \"%w\".\"%w\"\x00CREATE TABLE x\x00%c\"%s\"\x00(\"%s\"\x00,arg HIDDEN\x00,schema HIDDEN\x00PRAGMA \x00%Q.\x00=%Q\x00rename\x00drop column\x00add column\x00error in %s %s after %s: %s\x00malformed database schema (%s)\x00%z - %s\x00orphan index\x00CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)\x00unsupported file format\x00SELECT*FROM\"%w\".%s ORDER BY rowid\x00database schema is locked: %s\x00statement too long\x00unknown join type: %T%s%T%s%T\x00a NATURAL join may not have an ON or USING clause\x00cannot join using column %s - column not present in both tables\x00ambiguous reference to %s in USING()\x00CREATE BLOOM FILTER\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00LAST TERM OF \x00USE TEMP B-TREE FOR %sORDER BY\x00USE TEMP B-TREE FOR LAST %d TERMS OF ORDER BY\x00column%d\x00%.*z:%u\x00NUM\x00cannot use window functions in recursive queries\x00recursive aggregate queries not supported\x00SETUP\x00RECURSIVE STEP\x00S\x00SCAN %d CONSTANT ROW%s\x00COMPOUND QUERY\x00LEFT-MOST SUBQUERY\x00%s USING TEMP B-TREE\x00all VALUES must have the same number of terms\x00SELECTs to the left and right of %s do not have the same number of result columns\x00MERGE (%s)\x00LEFT\x00RIGHT\x00no such index: %s\x00'%s' is not a function\x00no such index: \"%s\"\x00multiple references to recursive table: %s\x00circular reference: %s\x00table %s has %d values for %d columns\x00multiple recursive references: %s\x00recursive reference in a subquery: %s\x00%!S\x00too many references to \"%s\": max 65535\x00access to view \"%s\" prohibited\x00..%s\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00USE TEMP B-TREE FOR %s(ORDER BY)\x00 USING COVERING INDEX \x00SCAN %s%s%s\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\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00cannot create triggers on shadow tables\x00trigger %T already exists\x00cannot create trigger on system table\x00BEFORE\x00AFTER\x00cannot create %s trigger on view: %S\x00cannot create INSTEAD OF trigger on table: %S\x00trigger \"%s\" may not write to shadow 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'\x00DELETE\x00UPDATE\x00%s RETURNING is not available on virtual tables\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\x00vacuum_%016llx\x00ATTACH %Q AS %s\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 %s.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM %s.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO %s.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\x00syntax error\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00SEARCH\x00SCAN\x00%s %S\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 \x000x%x:%s\x00%d:%s\x00 LEFT-JOIN\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00RIGHT-JOIN %s\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00internal query planner error\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\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\x00near \"%T\": syntax error\x00ORDER BY\x00LIMIT\x00%s clause should come after %s not before\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00unknown table option: %.*s\x00set list\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\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\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\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\x00shared\x00private\x00mode\x00ro\x00rw\x00rwc\x00access\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\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\x00JSON cannot hold BLOB values\x00malformed JSON\x00inf\x009.0e999\x00infinity\x00QNaN\x00SNaN\x00json_%s() needs an odd number of arguments\x00\"\\/bfnrt\x00-9e999\x009e999\x00inity\x00\\\"\x00\\u0009\x00\\u00\x00\\u0000\x00,\n\x00: \x00bad JSON path: %Q\x00@\x00[\x00#\x00.\"\x00\"\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00 \x00FLAGS parameter to json_valid() must be between 1 and 15\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00[%lld]\x00.\"%.*s\"\x00.%.*s\x00$\x00json\x00jsonb\x00json_array\x00jsonb_array\x00json_array_length\x00json_error_position\x00json_extract\x00jsonb_extract\x00->\x00->>\x00json_insert\x00jsonb_insert\x00json_object\x00jsonb_object\x00json_patch\x00jsonb_patch\x00json_pretty\x00json_quote\x00json_remove\x00jsonb_remove\x00json_replace\x00jsonb_replace\x00json_set\x00jsonb_set\x00json_type\x00json_valid\x00json_group_array\x00jsonb_group_array\x00json_group_object\x00jsonb_group_object\x00json_each\x00json_tree\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\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\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\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\x00_node\x00CREATE TABLE x(%.*s INT\x00,%.*s\x00,%.*s REAL\x00,%.*s INT\x00);\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\x00%_rowid\x00%_parent\x00Mapping (%lld -> %lld) missing from %s table\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\x00In RTree %s.%s:\n%z\x00wrong number of arguments to function rtreecheck()\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_area\x00geopoly_blob\x00geopoly_json\x00geopoly_svg\x00geopoly_contains_point\x00geopoly_debug\x00geopoly_bbox\x00geopoly_xform\x00geopoly_regular\x00geopoly_ccw\x00geopoly_group_bbox\x00geopoly\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;\x00AND rootpage!=0 AND rootpage IS NOT NULL\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\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\x00may not have\x00requires\x00table %q %s rbu_rowid column\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 NOT NULL\x00%z%s\"%w\" %s %sCOLLATE %Q%s\x00%z, %z\x00 WITHOUT ROWID\x00CREATE TABLE \"rbu_imp_%w\"(%z)%s\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\x00AND\x00WHERE\x00SELECT %s, 0 AS rbu_control FROM '%q' %s %s %s ORDER BY %s%s\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_\x00, _rowid_\x00INSERT INTO \"%s%w\"(%s%s) VALUES(%s)\x00DELETE FROM \"%s%w\" WHERE %s\x00, rbu_rowid\x00, 0 AS rbu_rowid\x00CREATE TABLE IF NOT EXISTS %s.'rbu_tmp_%q' AS SELECT *%s FROM '%q' WHERE 0;\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\x000 AS \x00SELECT %s,%s rbu_control%s FROM '%q'%s %s %s %s\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\x00&\x00file:%s-vactmp?rbu_memory=1%s%s\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, %lld), (%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\x00vacuum\x00update\x00database modified during rbu %s\x00BEGIN IMMEDIATE\x00PRAGMA journal_mode=off\x00-vactmp\x00DELETE FROM stat.rbu_state\x00rbu/zipvfs setup error\x00rbu(%s)/%z\x00rbu_memory\x00/\x00overflow\x00%s%.3x+%.6x\x00%s%.3x/\x00internal\x00leaf\x00corrupted\x00SELECT * FROM (SELECT 'sqlite_schema' AS name,1 AS rootpage,'table' AS type UNION ALL SELECT name,rootpage,type FROM \"%w\".sqlite_schema WHERE rootpage!=0)\x00WHERE name=%Q\x00 ORDER BY name\x00dbstat\x00SELECT 0, 'tbl', '', 0, '', 1, 0 UNION ALL SELECT 1, 'idx', '', 0, '', 2, 0 UNION ALL SELECT 2, 'stat', '', 0, '', 0, 0\x00PRAGMA '%q'.table_xinfo('%q')\x00SELECT\x00%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"\x00%z%s\"%w\".\"%w\".\"%w\" IS NOT \"%w\".\"%w\".\"%w\"\x00 OR \x00_rowid_, *\x00SELECT %s FROM \"%w\".\"%w\" WHERE NOT EXISTS ( SELECT 1 FROM \"%w\".\"%w\" WHERE %s)\x00%z%s\"%w\".\"%w\".\"%w\"\x00SELECT %s,%s FROM \"%w\".\"%w\", \"%w\".\"%w\" WHERE %s AND (%z)\x00SELECT * FROM %Q.sqlite_schema\x00no such table: %s.%s\x00table schemas do not match\x00, 1\x00 AND (?6 OR ?3 IS stat)\x00tbl, idx\x00?1, (CASE WHEN ?2=X'' THEN NULL ELSE ?2 END)\x00tbl, ?2, stat\x00?%d\x00 AND (?%d OR ?%d IS %w.%w)\x00SELECT %s%s FROM %Q.%Q WHERE (%s) IS (%s)\x00SAVEPOINT changeset\x00RELEASE changeset\x00UPDATE main.\x00 SET \x00 = ?\x00 WHERE \x00idx IS CASE WHEN length(?4)=0 AND typeof(?4)='blob' THEN NULL ELSE ?4 END \x00 IS ?\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()\x00wrong number of arguments to function fts5_get_locale()\x00non-integer argument passed to function fts5_get_locale()\x00snippet\x00highlight\x00bm25\x00fts5_get_locale\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\x00contentless_delete\x00malformed contentless_delete=... directive\x00contentless_unindexed\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... directive\x00locale\x00malformed locale=... directive\x00columns\x00malformed detail=... directive\x00tokendata\x00malformed tokendata=... directive\x00unrecognized option: \"%.*s\"\x00rank\x00reserved fts5 column name: %s\x00unindexed\x00unrecognized column option: %s\x00T.%Q\x00, T.%Q\x00, T.c%d\x00, NULL\x00, T.l%d\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00contentless_delete=1 requires a contentless table\x00contentless_delete=1 is incompatible with columnsize=0\x00contentless_unindexed=1 requires a contentless table\x00docsize\x00%Q.'%q_%s'\x00CREATE TABLE x(\x00%z%s%Q\x00%z, %Q HIDDEN, %s HIDDEN)\x00pgsz\x00hashsize\x00automerge\x00usermerge\x00crisismerge\x00deletemerge\x00secure-delete\x00insttoken\x00SELECT k, v FROM %Q.'%q_config'\x00version\x00invalid fts5 file format (found %d, expected %d or %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)\x00phrase\x00fts5: %s queries are not supported (detail!=full)\x00fts5 expression tree is too large (maximum depth %d)\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=?\x00\xff\x00\x00\x01\x00PRAGMA %Q.data_version\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term<=? ORDER BY term DESC LIMIT 1\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term>? ORDER BY term ASC LIMIT 1\x00INSERT INTO '%q'.'%q_idx'(segid,term,pgno) VALUES(?,?,?)\x00DELETE FROM '%q'.'%q_idx' WHERE (segid, (pgno/2)) = (?1, ?2)\x00REPLACE INTO %Q.'%q_config' VALUES ('version', %d)\x00%s_data\x00id INTEGER PRIMARY KEY, block BLOB\x00segid, term, pgno, PRIMARY KEY(segid, term)\x00\x00\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\x00DESC\x00ASC\x00SELECT rowid, rank FROM %Q.%Q ORDER BY %s(\"%w\"%s%s) %s\x00reads\x00unknown special query: %.*s\x00SELECT %s\x00no such function: %s\x00parse error in rank function: %s\x00%.*s\x00%s: table does not support scanning\x00fts5: missing row %lld from content table %s\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\x00flush\x00%s a subset of columns on fts5 contentless-delete table: %s\x00%s contentless fts5 table: %s\x00cannot UPDATE\x00'delete' may not be used with a contentless_delete=1 table\x00cannot DELETE from contentless fts5 table: %s\x00fts5_locale() requires locale=1\x00no such cursor: %lld\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2025-07-17 13:25:10 3ce993b8657d6d9deda380a93cdd6404a8c8ba1b185b2bc423703e41ae5f2543\x00config\x00malformed inverted index for FTS5 table %s.%s\x00unable to validate the inverted index for FTS5 table %s.%s: %s\x00fts5\x00fts5_source_id\x00fts5_locale\x00fts5_insttoken\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(?,?%s)\x00DELETE FROM %Q.'%q_docsize' WHERE id=?\x00SELECT sz%s FROM %Q.'%q_docsize' WHERE id=?\x00REPLACE INTO %Q.'%q_config' VALUES(?,?)\x00SELECT %s FROM %s AS T\x00%z%s?%d\x00%z,?%d\x00,?\x00,origin\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\x00, l%d\x00id INTEGER PRIMARY KEY, sz BLOB\x00id INTEGER PRIMARY KEY, sz BLOB, origin INTEGER\x00k PRIMARY KEY, v\x00DELETE FROM %Q.'%q_data';DELETE FROM %Q.'%q_idx';\x00DELETE FROM %Q.'%q_docsize';\x00DELETE FROM %Q.'%q_content';\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\x00trigram\x00ascii\x00porter\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\x002025-07-17 13:25:10 3ce993b8657d6d9deda380a93cdd6404a8c8ba1b185b2bc423703e41ae5f2543\x00"
type Sqlite3_int64 = sqlite3_int64
type Sqlite3_mutex_methods = sqlite3_mutex_methods