summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go')
-rw-r--r--vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go8917
1 files changed, 5733 insertions, 3184 deletions
diff --git a/vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go b/vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go
index 693d61a2b..3068aad7a 100644
--- a/vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go
+++ b/vendor/modernc.org/sqlite/lib/sqlite_linux_riscv64.go
@@ -1,4 +1,4 @@
-// Code generated for linux/riscv64 by 'generator --package-name libsqlite3 --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -ignore-unsupported-alignment -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DNDEBUG -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_NOOP -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_WITHOUT_ZONEMALLOC -Dpread64=pread -Dpwrite64=pwrite -extended-errors -o sqlite3.go sqlite3.c -I/tmp/libsqlite3/sqlite-amalgamation-3450100/ccgo -DSQLITE_OS_UNIX=1 -eval-all-macros', DO NOT EDIT.
+// Code generated for linux/riscv64 by 'generator --package-name libsqlite3 --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -ignore-unsupported-alignment -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DNDEBUG -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_WITHOUT_ZONEMALLOC -Dpread64=pread -Dpwrite64=pwrite -extended-errors -o sqlite3.go sqlite3.c -I/tmp/libsqlite3/sqlite-amalgamation-3450200/ccgo -DSQLITE_MUTEX_NOOP -DSQLITE_OS_UNIX=1 -eval-all-macros', DO NOT EDIT.
//go:build linux && riscv64
// +build linux,riscv64
@@ -10,6 +10,8 @@ import (
"unsafe"
"modernc.org/libc"
+
+ "runtime"
)
var (
@@ -442,7 +444,6 @@ const FLAG_SIGNED = 1
const FLAG_STRING = 4
const FNDELAY = 2048
const FNONBLOCK = 2048
-const FOPEN_MAX = 16
const FP_FAST_FMA = 1
const FP_FAST_FMAF = 1
const FP_ILOGB0 = -2147483647
@@ -981,6 +982,7 @@ const NC_UAggInfo = 256
const NC_UBaseReg = 1024
const NC_UEList = 128
const NC_UUpsert = 512
+const NC_Where = 1048576
const NDEBUG = 1
const NFDBITS = "__NFDBITS"
const NN = 1
@@ -2165,10 +2167,7 @@ const SQLITE_OPEN_TEMP_JOURNAL = 4096
const SQLITE_OPEN_TRANSIENT_DB = 1024
const SQLITE_OPEN_URI = 64
const SQLITE_OPEN_WAL = 524288
-const SQLITE_OS_KV = 0
-const SQLITE_OS_OTHER = 0
const SQLITE_OS_UNIX = 1
-const SQLITE_OS_WIN = 0
const SQLITE_OmitNoopJoin = 256
const SQLITE_OmitOrderBy = 262144
const SQLITE_OnePass = 134217728
@@ -2243,7 +2242,7 @@ const SQLITE_SHM_SHARED = 4
const SQLITE_SHM_UNLOCK = 1
const SQLITE_SORTER_PMASZ = 250
const SQLITE_SOUNDEX = 1
-const SQLITE_SOURCE_ID = "2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257cc467a"
+const SQLITE_SOURCE_ID = "2024-03-12 11:06:23 d8cd6d49b46a395b13955387d05e9e1a2a47e54fb99f3c9b59835bbefad6af77"
const SQLITE_SO_ASC = 0
const SQLITE_SO_DESC = 1
const SQLITE_SO_UNDEFINED = -1
@@ -2351,8 +2350,8 @@ const SQLITE_UTF16LE = 2
const SQLITE_UTF16NATIVE = 2
const SQLITE_UTF16_ALIGNED = 8
const SQLITE_UTF8 = 1
-const SQLITE_VERSION = "3.45.1"
-const SQLITE_VERSION_NUMBER = 3045001
+const SQLITE_VERSION = "3.45.2"
+const SQLITE_VERSION_NUMBER = 3045002
const SQLITE_VTABRISK_High = 2
const SQLITE_VTABRISK_Low = 0
const SQLITE_VTABRISK_Normal = 1
@@ -2947,7 +2946,6 @@ const YY_SHIFT_MAX = 2088
const YY_SHIFT_MIN = 0
const _ALLOCA_H = 1
const _ASSERT_H = 1
-const _ATFILE_SOURCE = 1
const _BITS_BYTESWAP_H = 1
const _BITS_ENDIANNESS_H = 1
const _BITS_ENDIAN_H = 1
@@ -2971,9 +2969,7 @@ const _BITS_UINTN_IDENTITY_H = 1
const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 0
const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 0
const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 0
-const _DEFAULT_SOURCE = 1
const _DLFCN_H = 1
-const _DYNAMIC_STACK_SIZE_SOURCE = 1
const _ENDIAN_H = 1
const _ERRNO_H = 1
const _FCNTL_H = 1
@@ -3002,12 +2998,6 @@ const _IONBF = 2
const _IO_EOF_SEEN = 16
const _IO_ERR_SEEN = 32
const _IO_USER_LOCK = 32768
-const _ISOC11_SOURCE = 1
-const _ISOC2X_SOURCE = 1
-const _ISOC95_SOURCE = 1
-const _ISOC99_SOURCE = 1
-const _LARGEFILE64_SOURCE = 1
-const _LARGEFILE_SOURCE = 1
const _LARGE_FILE = 1
const _LFS64_ASYNCHRONOUS_IO = 1
const _LFS64_LARGEFILE = 1
@@ -3030,7 +3020,6 @@ const _POSIX_BARRIERS = 200809
const _POSIX_CHOWN_RESTRICTED = 0
const _POSIX_CLOCK_SELECTION = 200809
const _POSIX_CPUTIME = 0
-const _POSIX_C_SOURCE = 200809
const _POSIX_FSYNC = 200809
const _POSIX_IPV6 = 200809
const _POSIX_JOB_CONTROL = 1
@@ -3052,7 +3041,6 @@ const _POSIX_SAVED_IDS = 1
const _POSIX_SEMAPHORES = 200809
const _POSIX_SHARED_MEMORY_OBJECTS = 200809
const _POSIX_SHELL = 1
-const _POSIX_SOURCE = 1
const _POSIX_SPAWN = 200809
const _POSIX_SPIN_LOCKS = 200809
const _POSIX_SPORADIC_SERVER = -1
@@ -3114,8 +3102,6 @@ const _XOPEN_LEGACY = 1
const _XOPEN_REALTIME = 1
const _XOPEN_REALTIME_THREADS = 1
const _XOPEN_SHM = 1
-const _XOPEN_SOURCE = 700
-const _XOPEN_SOURCE_EXTENDED = 1
const _XOPEN_UNIX = 1
const _XOPEN_VERSION = 700
const _XOPEN_XCU_VERSION = 4
@@ -3301,16 +3287,6 @@ const __GCC_IEC_559_COMPLEX = 2
const __GID_T_TYPE = "__U32_TYPE"
const __GLIBC_FLT_EVAL_METHOD = 0
const __GLIBC_MINOR__ = 34
-const __GLIBC_USE_DEPRECATED_GETS = 0
-const __GLIBC_USE_DEPRECATED_SCANF = 0
-const __GLIBC_USE_IEC_60559_BFP_EXT = 1
-const __GLIBC_USE_IEC_60559_BFP_EXT_C2X = 1
-const __GLIBC_USE_IEC_60559_EXT = 1
-const __GLIBC_USE_IEC_60559_FUNCS_EXT = 1
-const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X = 1
-const __GLIBC_USE_IEC_60559_TYPES_EXT = 1
-const __GLIBC_USE_ISOC2X = 1
-const __GLIBC_USE_LIB_EXT2 = 1
const __GLIBC__ = 2
const __GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
const __GNUC_MINOR__ = 2
@@ -3318,7 +3294,6 @@ const __GNUC_PATCHLEVEL__ = 0
const __GNUC_STDC_INLINE__ = 1
const __GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
const __GNUC__ = 11
-const __GNU_LIBRARY__ = 6
const __GXX_ABI_VERSION = 1016
const __HAVE_DISTINCT_FLOAT128 = 0
const __HAVE_DISTINCT_FLOAT128X = 0
@@ -3514,28 +3489,6 @@ const __UINT_LEAST32_MAX__ = 4294967295
const __UINT_LEAST64_MAX__ = 18446744073709551615
const __UINT_LEAST8_MAX__ = 255
const __USECONDS_T_TYPE = "__U32_TYPE"
-const __USE_ATFILE = 1
-const __USE_DYNAMIC_STACK_SIZE = 1
-const __USE_FILE_OFFSET64 = 1
-const __USE_FORTIFY_LEVEL = 0
-const __USE_GNU = 1
-const __USE_ISOC11 = 1
-const __USE_ISOC95 = 1
-const __USE_ISOC99 = 1
-const __USE_LARGEFILE = 1
-const __USE_LARGEFILE64 = 1
-const __USE_MISC = 1
-const __USE_POSIX = 1
-const __USE_POSIX199309 = 1
-const __USE_POSIX199506 = 1
-const __USE_POSIX2 = 1
-const __USE_UNIX98 = 1
-const __USE_XOPEN = 1
-const __USE_XOPEN2K = 1
-const __USE_XOPEN2K8 = 1
-const __USE_XOPEN2K8XSI = 1
-const __USE_XOPEN2KXSI = 1
-const __USE_XOPEN_EXTENDED = 1
const __VERSION__ = "11.2.0"
const __WALL = 1073741824
const __WCHAR_MAX__ = 2147483647
@@ -3677,7 +3630,6 @@ const sqlite3ParserCTX_PDECL = 0
const sqlite3ParserTOKENTYPE = 0
const sqlite3Parser_ENGINEALWAYSONSTACK = 1
const sqlite3StrNICmp = 0
-const static_assert = 0
const threadid = 0
const tkCREATE = 4
const tkEND = 7
@@ -8822,6 +8774,7 @@ type TUpsert = struct {
FpUpsertWhere uintptr
FpNextUpsert uintptr
FisDoUpdate Tu8
+ FisDup Tu8
FpToFree uintptr
FpUpsertIdx uintptr
FpUpsertSrc uintptr
@@ -11090,6 +11043,7 @@ type TUpsert1 = struct {
FpUpsertWhere uintptr
FpNextUpsert uintptr
FisDoUpdate Tu8
+ FisDup Tu8
FpToFree uintptr
FpUpsertIdx uintptr
FpUpsertSrc uintptr
@@ -13639,7 +13593,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(23845))
+ return _sqlite3MisuseError(tls, int32(23850))
}
if _statMutex[op] != 0 {
v1 = _sqlite3Pcache1Mutex(tls)
@@ -13788,6 +13742,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
}
goto _1
_1:
+ ;
i++
}
_sqlite3BtreeLeaveAll(tls, db)
@@ -13800,7 +13755,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
** databases. *pHighwater is set to zero.
*/
fallthrough
- case int32(SQLITE_DBSTATUS_SCHEMA_USED):
+ case int32(SQLITE_DBSTATUS_SCHEMA_USED): /* Used to iterate through schemas */
*(*int32)(unsafe.Pointer(bp)) = 0 /* Used to accumulate return value */
_sqlite3BtreeEnterAll(tls, db)
(*Tsqlite3)(unsafe.Pointer(db)).FpnBytesFreed = bp
@@ -13826,6 +13781,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
_sqlite3DeleteTrigger(tls, db, (*THashElem)(unsafe.Pointer(p1)).Fdata)
goto _3
_3:
+ ;
p1 = (*THashElem)(unsafe.Pointer(p1)).Fnext
}
p1 = (*THash)(unsafe.Pointer(pSchema + 8)).Ffirst
@@ -13836,11 +13792,13 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
_sqlite3DeleteTable(tls, db, (*THashElem)(unsafe.Pointer(p1)).Fdata)
goto _4
_4:
+ ;
p1 = (*THashElem)(unsafe.Pointer(p1)).Fnext
}
}
goto _2
_2:
+ ;
i1++
}
(*Tsqlite3)(unsafe.Pointer(db)).FpnBytesFreed = uintptr(0)
@@ -13855,7 +13813,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
** *pHighwater is set to zero.
*/
fallthrough
- case int32(SQLITE_DBSTATUS_STMT_USED):
+ case int32(SQLITE_DBSTATUS_STMT_USED): /* Used to iterate through VMs */
*(*int32)(unsafe.Pointer(bp + 4)) = 0 /* Used to accumulate return value */
(*Tsqlite3)(unsafe.Pointer(db)).FpnBytesFreed = bp + 4
_ = libc.Int32FromInt32(0)
@@ -13868,6 +13826,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
_sqlite3VdbeDelete(tls, pVdbe)
goto _5
_5:
+ ;
pVdbe = (*TVdbe1)(unsafe.Pointer(pVdbe)).FpVNext
}
(*Tsqlite3)(unsafe.Pointer(db)).Flookaside.FpEnd = (*Tsqlite3)(unsafe.Pointer(db)).Flookaside.FpTrueEnd
@@ -13903,6 +13862,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p
}
goto _6
_6:
+ ;
i2++
}
*(*int32)(unsafe.Pointer(pHighwater)) = 0 /* IMP: R-42420-56072 */
@@ -14103,6 +14063,7 @@ func _getDigits(tls *libc.TLS, zDate uintptr, zFormat uintptr, va uintptr) (r in
zFormat += uintptr(4)
}
end_getDigits:
+ ;
_ = ap
return cnt
}
@@ -14170,6 +14131,7 @@ func _parseTimezone(tls *libc.TLS, zDate uintptr, p uintptr) (r int32) {
zDate += uintptr(5)
(*TDateTime)(unsafe.Pointer(p)).Ftz = sgn * (*(*int32)(unsafe.Pointer(bp + 4)) + *(*int32)(unsafe.Pointer(bp))*int32(60))
zulu_time:
+ ;
for int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(zDate))])&int32(0x01) != 0 {
zDate++
}
@@ -14853,6 +14815,7 @@ func _parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr,
iErr = (*(*TDateTime)(unsafe.Pointer(bp + 8))).FiJD - iOrigJD
goto _4
_4:
+ ;
if v3 = iErr != 0; v3 {
v2 = cnt
cnt++
@@ -14870,6 +14833,13 @@ func _parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr,
}
}
case int32('w'):
+ /*
+ ** weekday N
+ **
+ ** Move the date to the same time on the next occurrence of
+ ** weekday N where 0==Sunday, 1==Monday, and so forth. If the
+ ** date is already on the appropriate weekday, this is a no-op.
+ */
if v6 = Xsqlite3_strnicmp(tls, z, __ccgo_ts+1269, int32(8)) == 0 && _sqlite3AtoF(tls, z+8, bp, _sqlite3Strlen30(tls, z+8), uint8(SQLITE_UTF8)) > 0 && *(*float64)(unsafe.Pointer(bp)) >= float64(0) && *(*float64)(unsafe.Pointer(bp)) < float64(7); v6 {
v5 = int32(*(*float64)(unsafe.Pointer(bp)))
n = v5
@@ -14980,6 +14950,7 @@ func _parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr,
}
goto _8
_8:
+ ;
n++
}
if _sqlite3AtoF(tls, z, bp, n, uint8(SQLITE_UTF8)) <= 0 {
@@ -15093,7 +15064,7 @@ func _parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr,
}
if int32(_aXformType[i].FnName) == n && Xsqlite3_strnicmp(tls, uintptr(unsafe.Pointer(&_aXformType))+uintptr(i)*16+1, z, n) == 0 && *(*float64)(unsafe.Pointer(bp)) > float64(-_aXformType[i].FrLimit) && *(*float64)(unsafe.Pointer(bp)) < float64(_aXformType[i].FrLimit) {
switch i {
- case int32(4):
+ case int32(4): /* Special processing to add months */
_ = libc.Int32FromInt32(0)
_computeYMD_HMS(tls, p)
*(*int32)(unsafe.Pointer(p + 12)) += int32(*(*float64)(unsafe.Pointer(bp)))
@@ -15107,7 +15078,7 @@ func _parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr,
*(*int32)(unsafe.Pointer(p + 12)) -= x * int32(12)
(*TDateTime)(unsafe.Pointer(p)).FvalidJD = uint8(0)
*(*float64)(unsafe.Pointer(bp)) -= float64(int32(*(*float64)(unsafe.Pointer(bp))))
- case int32(5):
+ case int32(5): /* Special processing to add years */
y = int32(*(*float64)(unsafe.Pointer(bp)))
_ = libc.Int32FromInt32(0)
_computeYMD_HMS(tls, p)
@@ -15123,6 +15094,7 @@ func _parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr,
}
goto _11
_11:
+ ;
i++
}
_clearYMD_HMS_TZ(tls, p)
@@ -15176,6 +15148,7 @@ func _isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr
}
goto _2
_2:
+ ;
i++
}
_computeJD(tls, p)
@@ -15443,7 +15416,7 @@ func _strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
j = i + uint64(1)
cf = *(*uint8)(unsafe.Pointer(zFmt + uintptr(i)))
switch int32(cf) {
- case int32('d'):
+ case int32('d'): /* Fall thru */
fallthrough
case int32('e'):
if int32(cf) == int32('d') {
@@ -15469,7 +15442,7 @@ func _strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
v4 = __ccgo_ts + 1340
}
Xsqlite3_str_appendf(tls, bp+48, v4, libc.VaList(bp+136, (*(*TDateTime)(unsafe.Pointer(bp))).Fh))
- case int32('I'):
+ case int32('I'): /* Fall thru */
fallthrough
case int32('l'):
h = (*(*TDateTime)(unsafe.Pointer(bp))).Fh
@@ -15485,9 +15458,9 @@ func _strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
v5 = __ccgo_ts + 1340
}
Xsqlite3_str_appendf(tls, bp+48, v5, libc.VaList(bp+136, h))
- case int32('W'):
+ case int32('W'): /* Fall thru */
fallthrough
- case int32('j'):
+ case int32('j'): /* Number of days since 1st day of year */
*(*TDateTime)(unsafe.Pointer(bp + 80)) = *(*TDateTime)(unsafe.Pointer(bp))
(*(*TDateTime)(unsafe.Pointer(bp + 80))).FvalidJD = uint8(0)
(*(*TDateTime)(unsafe.Pointer(bp + 80))).FM = int32(1)
@@ -15506,7 +15479,7 @@ func _strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
Xsqlite3_str_appendf(tls, bp+48, __ccgo_ts+1335, libc.VaList(bp+136, (*(*TDateTime)(unsafe.Pointer(bp))).FM))
case int32('M'):
Xsqlite3_str_appendf(tls, bp+48, __ccgo_ts+1335, libc.VaList(bp+136, (*(*TDateTime)(unsafe.Pointer(bp))).Fm))
- case int32('p'):
+ case int32('p'): /* Fall thru */
fallthrough
case int32('P'):
if (*(*TDateTime)(unsafe.Pointer(bp))).Fh >= int32(12) {
@@ -15537,7 +15510,7 @@ func _strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
Xsqlite3_str_appendf(tls, bp+48, __ccgo_ts+1335, libc.VaList(bp+136, int32((*(*TDateTime)(unsafe.Pointer(bp))).Fs)))
case int32('T'):
Xsqlite3_str_appendf(tls, bp+48, __ccgo_ts+1409, libc.VaList(bp+136, (*(*TDateTime)(unsafe.Pointer(bp))).Fh, (*(*TDateTime)(unsafe.Pointer(bp))).Fm, int32((*(*TDateTime)(unsafe.Pointer(bp))).Fs)))
- case int32('u'):
+ case int32('u'): /* Fall thru */
fallthrough
case int32('w'):
c = uint8(int32(uint8(((*(*TDateTime)(unsafe.Pointer(bp))).FiJD+libc.Int64FromInt32(129600000))/libc.Int64FromInt32(86400000)%libc.Int64FromInt32(7))) + int32('0'))
@@ -15555,6 +15528,7 @@ func _strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
if j < i {
@@ -16173,6 +16147,7 @@ func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
pVfs = (*Tsqlite3_vfs)(unsafe.Pointer(pVfs)).FpNext
}
Xsqlite3_mutex_leave(tls, mutex)
@@ -17957,6 +17932,7 @@ func _sqlite3OomFault(tls *libc.TLS, db uintptr) (r uintptr) {
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_NOMEM)
goto _1
_1:
+ ;
pParse = (*TParse)(unsafe.Pointer(pParse)).FpOuterParse
}
}
@@ -18518,6 +18494,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _13
_13:
+ ;
if v12 = !(done != 0); v12 {
fmt++
v11 = fmt
@@ -18543,6 +18520,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _25
_25:
+ ;
idx++
}
/*
@@ -18604,11 +18582,15 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _44
_26:
+ ;
flag_long = uint8(2)
_28:
+ ;
_27:
+ ;
cThousand = uint8(0)
_29:
+ ;
if int32((*Tet_info)(unsafe.Pointer(infop)).Fflags)&int32(FLAG_SIGNED) != 0 {
if bArgList != 0 {
v = _getIntArg(tls, pArgList)
@@ -18717,6 +18699,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _50
_50:
+ ;
idx++
}
}
@@ -18738,14 +18721,18 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
*(*uint8)(unsafe.Pointer(v55)) = x1
goto _53
_53:
+ ;
pre++
}
}
length = int32(t__predefined_ptrdiff_t(zOut+uintptr(nOut-int32(1))) - int64(bufpt))
goto _44
_32:
+ ;
_31:
+ ;
_30:
+ ;
if bArgList != 0 {
realvalue = _getDoubleArg(tls, pArgList)
} else {
@@ -18761,6 +18748,9 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
iRound = -precision
} else {
if int32(xtype) == int32(etGENERIC) {
+ if precision == 0 {
+ precision = int32(1)
+ }
iRound = precision
} else {
iRound = precision + int32(1)
@@ -18893,6 +18883,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _63
_63:
+ ;
e2--
}
}
@@ -18914,6 +18905,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
*(*uint8)(unsafe.Pointer(v70)) = uint8('0')
goto _69
_69:
+ ;
precision--
e2++
}
@@ -19002,6 +18994,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
*(*uint8)(unsafe.Pointer(bufpt + uintptr(i))) = *(*uint8)(unsafe.Pointer(bufpt + uintptr(i-nPad)))
goto _84
_84:
+ ;
i--
}
i = libc.BoolInt32(int32(prefix) != 0)
@@ -19019,6 +19012,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _44
_33:
+ ;
if !(bArgList != 0) {
*(*int32)(unsafe.Pointer(libc.VaUintptr(&ap))) = int32((*Tsqlite3_str)(unsafe.Pointer(pAccum)).FnChar)
}
@@ -19027,11 +19021,13 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
length = v87
goto _44
_34:
+ ;
(*(*[70]uint8)(unsafe.Pointer(bp)))[0] = uint8('%')
bufpt = bp
length = int32(1)
goto _44
_35:
+ ;
if bArgList != 0 {
bufpt = _getTextArg(tls, pArgList)
length = int32(1)
@@ -19108,7 +19104,9 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
flag_altform2 = uint8(1)
goto adjust_width_for_utf8
_37:
+ ;
_36:
+ ;
if bArgList != 0 {
bufpt = _getTextArg(tls, pArgList)
xtype = uint8(etSTRING)
@@ -19163,6 +19161,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _95
_95:
+ ;
length++
}
}
@@ -19170,6 +19169,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
length = int32(0x7fffffff) & int32(libc.Xstrlen(tls, bufpt))
}
adjust_width_for_utf8:
+ ;
if flag_altform2 != 0 && width > 0 {
/* Adjust width to account for extra bytes in UTF-8 characters */
ii = length - int32(1)
@@ -19182,9 +19182,12 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
}
goto _44
- _40: /* %q: Escape ' characters */
- _39: /* %Q: Escape ' and enclose in '...' */
+ _40:
+ ; /* %q: Escape ' characters */
+ _39:
+ ; /* %Q: Escape ' and enclose in '...' */
_38:
+ ;
if int32(xtype) == int32(etSQLESCAPE3) {
v97 = int32('"')
} else {
@@ -19232,6 +19235,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _99
_99:
+ ;
i1++
k--
}
@@ -19271,6 +19275,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _105
_105:
+ ;
i1++
}
if needQuote != 0 {
@@ -19282,6 +19287,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
length = int32(j1)
goto adjust_width_for_utf8
_41:
+ ;
if int32((*Tsqlite3_str)(unsafe.Pointer(pAccum)).FprintfFlags)&int32(SQLITE_PRINTF_INTERNAL) == 0 {
return
}
@@ -19306,6 +19312,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
length = v110
goto _44
_42:
+ ;
if int32((*Tsqlite3_str)(unsafe.Pointer(pAccum)).FprintfFlags)&int32(SQLITE_PRINTF_INTERNAL) == 0 {
return
}
@@ -19339,9 +19346,11 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
length = v111
goto _44
_43:
+ ;
_ = libc.Int32FromInt32(0)
return
- _44: /* End switch over the format type */
+ _44:
+ ; /* End switch over the format type */
/*
** The text of the conversion is pointed to by "bufpt" and is
** "length" characters long. The field width is "width". Do
@@ -19368,6 +19377,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Tva_li
}
goto _1
_1:
+ ;
fmt++
} /* End for loop over the format string */
}
@@ -20242,6 +20252,7 @@ func _chacha_block(tls *libc.TLS, out uintptr, in uintptr) {
(*(*[16]Tu32)(unsafe.Pointer(bp)))[int32(4)] = (*(*[16]Tu32)(unsafe.Pointer(bp)))[int32(4)]<<libc.Int32FromInt32(7) | (*(*[16]Tu32)(unsafe.Pointer(bp)))[int32(4)]>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
goto _1
_1:
+ ;
i++
}
i = 0
@@ -20252,6 +20263,7 @@ func _chacha_block(tls *libc.TLS, out uintptr, in uintptr) {
*(*Tu32)(unsafe.Pointer(out + uintptr(i)*4)) = (*(*[16]Tu32)(unsafe.Pointer(bp)))[i] + *(*Tu32)(unsafe.Pointer(in + uintptr(i)*4))
goto _2
_2:
+ ;
i++
}
}
@@ -20929,6 +20941,7 @@ func _sqlite3VdbeMemTranslate(tls *libc.TLS, pMem uintptr, desiredEnc Tu8) (r in
(*TMem)(unsafe.Pointer(pMem)).FzMalloc = (*TMem)(unsafe.Pointer(pMem)).Fz
(*TMem)(unsafe.Pointer(pMem)).FszMalloc = _sqlite3DbMallocSize(tls, (*TMem)(unsafe.Pointer(pMem)).Fdb, (*TMem)(unsafe.Pointer(pMem)).Fz)
translate_out:
+ ;
return SQLITE_OK
return r
}
@@ -21513,6 +21526,7 @@ func _sqlite3Dequote(tls *libc.TLS, z uintptr) {
}
goto _1
_1:
+ ;
i++
}
*(*uint8)(unsafe.Pointer(z + uintptr(j))) = uint8(0)
@@ -21564,6 +21578,7 @@ func _sqlite3DequoteToken(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
*(*uint32)(unsafe.Pointer(p + 8)) -= uint32(2)
@@ -21796,6 +21811,7 @@ func _sqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc T
}
goto _1
_1:
+ ;
i += int32(2)
}
if i < length {
@@ -21892,6 +21908,7 @@ func _sqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc T
z += uintptr(incr)
}
do_atof_calc:
+ ;
/* Zero is a special case */
if s == uint64(0) {
if sign < 0 {
@@ -21998,6 +22015,7 @@ do_atof_calc:
}
_ = libc.Int32FromInt32(0)
atof_return:
+ ;
/* return true if number and no extra non-whitespace characters after */
if z == zEnd && nDigit > 0 && eValid != 0 && eType > 0 {
return eType
@@ -22089,6 +22107,7 @@ func _compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) (r int32) {
c = (int32(*(*uint8)(unsafe.Pointer(zNum + uintptr(i*incr)))) - int32(*(*uint8)(unsafe.Pointer(pow63 + uintptr(i))))) * int32(10)
goto _1
_1:
+ ;
i++
}
if c == 0 {
@@ -22141,6 +22160,7 @@ func _sqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc
}
goto _1
_1:
+ ;
i += int32(2)
}
nonNum = libc.BoolInt32(i < length)
@@ -22176,6 +22196,7 @@ func _sqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc
u = u*uint64(10) + uint64(c) - uint64('0')
goto _2
_2:
+ ;
i += incr
}
if u > uint64(libc.Int64FromUint32(0xffffffff)|libc.Int64FromInt32(0x7fffffff)<<libc.Int32FromInt32(32)) {
@@ -22286,6 +22307,7 @@ func _sqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
k = i
@@ -22296,6 +22318,7 @@ func _sqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) (r int32) {
*(*Tu64)(unsafe.Pointer(bp)) = *(*Tu64)(unsafe.Pointer(bp))*uint64(16) + uint64(_sqlite3HexToInt(tls, int32(*(*uint8)(unsafe.Pointer(z + uintptr(k))))))
goto _2
_2:
+ ;
k++
}
libc.Xmemcpy(tls, pOut, bp, uint64(8))
@@ -22359,6 +22382,7 @@ func _sqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) (r int32) {
*(*Tu32)(unsafe.Pointer(bp)) = *(*Tu32)(unsafe.Pointer(bp))*uint32(16) + uint32(_sqlite3HexToInt(tls, int32(*(*uint8)(unsafe.Pointer(zNum + uintptr(i))))))
goto _1
_1:
+ ;
i++
}
if *(*Tu32)(unsafe.Pointer(bp))&uint32(0x80000000) == uint32(0) && int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(zNum + uintptr(i)))])&int32(0x08) == 0 {
@@ -22388,6 +22412,7 @@ func _sqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) (r int32) {
v = v*int64(10) + int64(c)
goto _2
_2:
+ ;
i++
}
/* The longest decimal representation of a 32 bit integer is 10 digits:
@@ -22561,7 +22586,7 @@ func _sqlite3FpDecode(tls *libc.TLS, p uintptr, _r float64, iRound int32, mxRoun
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
(*TFpDecode)(unsafe.Pointer(p)).FiDP = (*TFpDecode)(unsafe.Pointer(p)).Fn + exp
- if iRound < 0 {
+ if iRound <= 0 {
iRound = (*TFpDecode)(unsafe.Pointer(p)).FiDP - iRound
if iRound == 0 && int32(*(*uint8)(unsafe.Pointer(p + 24 + uintptr(i+int32(1))))) >= int32('5') {
iRound = int32(1)
@@ -22631,6 +22656,7 @@ func _sqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
if i == 0 || int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) != 0 {
@@ -22691,6 +22717,7 @@ func _putVarint64(tls *libc.TLS, p uintptr, v Tu64) (r int32) {
v >>= uint64(7)
goto _1
_1:
+ ;
i--
}
return int32(9)
@@ -22714,6 +22741,7 @@ func _putVarint64(tls *libc.TLS, p uintptr, v Tu64) (r int32) {
*(*uint8)(unsafe.Pointer(p + uintptr(i))) = (*(*[10]Tu8)(unsafe.Pointer(bp)))[j]
goto _4
_4:
+ ;
j--
i++
}
@@ -22940,6 +22968,7 @@ func _sqlite3VarintLen(tls *libc.TLS, v Tu64) (r int32) {
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
i++
}
return i
@@ -23002,6 +23031,7 @@ func _sqlite3HexToBlob(tls *libc.TLS, db uintptr, z uintptr, n int32) (r uintptr
*(*uint8)(unsafe.Pointer(zBlob + uintptr(i/int32(2)))) = uint8(int32(_sqlite3HexToInt(tls, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i))))))<<int32(4) | int32(_sqlite3HexToInt(tls, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i+int32(1))))))))
goto _1
_1:
+ ;
i += int32(2)
}
*(*uint8)(unsafe.Pointer(zBlob + uintptr(i/int32(2)))) = uint8(0)
@@ -23562,6 +23592,7 @@ func _rehash(tls *libc.TLS, pH uintptr, new_size uint32) (r int32) {
_insertElement(tls, pH, new_ht+uintptr(h)*16, elem)
goto _2
_2:
+ ;
elem = next_elem
}
return int32(1)
@@ -24819,6 +24850,7 @@ func _unixSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc
}
goto _1
_1:
+ ;
i++
}
} else {
@@ -24843,6 +24875,7 @@ func _unixSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc
}
goto _2
_2:
+ ;
i++
}
}
@@ -24870,6 +24903,7 @@ func _unixGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) (r Tsqli
}
goto _1
_1:
+ ;
i++
}
return uintptr(0)
@@ -24899,6 +24933,7 @@ func _unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -24912,6 +24947,7 @@ func _unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) (r uintptr) {
}
goto _2
_2:
+ ;
i++
}
return uintptr(0)
@@ -25353,10 +25389,11 @@ func _closePendingFds(tls *libc.TLS, pFile uintptr) {
break
}
pNext = (*TUnixUnusedFd)(unsafe.Pointer(p)).FpNext
- _robust_close(tls, pFile, (*TUnixUnusedFd)(unsafe.Pointer(p)).Ffd, int32(39326))
+ _robust_close(tls, pFile, (*TUnixUnusedFd)(unsafe.Pointer(p)).Ffd, int32(39335))
Xsqlite3_free(tls, p)
goto _1
_1:
+ ;
p = pNext
}
(*TunixInodeInfo)(unsafe.Pointer(pInode)).FpUnused = uintptr(0)
@@ -25843,6 +25880,7 @@ func _unixLock(tls *libc.TLS, id uintptr, eFileLock int32) (r int32) {
(*TunixInodeInfo)(unsafe.Pointer(pInode)).FeFileLock = uint8(eFileLock)
}
end_lock:
+ ;
Xsqlite3_mutex_leave(tls, (*TunixInodeInfo)(unsafe.Pointer(pInode)).FpLockMutex)
return rc
}
@@ -25973,6 +26011,7 @@ func _posixUnlock(tls *libc.TLS, id uintptr, eFileLock int32, handleNFSUnlock in
}
}
end_unlock:
+ ;
Xsqlite3_mutex_leave(tls, (*TunixInodeInfo)(unsafe.Pointer(pInode)).FpLockMutex)
if rc == SQLITE_OK {
(*TunixFile)(unsafe.Pointer(pFile)).FeFileLock = uint8(eFileLock)
@@ -26012,7 +26051,7 @@ func _closeUnixFile(tls *libc.TLS, id uintptr) (r int32) {
pFile = id
_unixUnmapfile(tls, pFile)
if (*TunixFile)(unsafe.Pointer(pFile)).Fh >= 0 {
- _robust_close(tls, pFile, (*TunixFile)(unsafe.Pointer(pFile)).Fh, int32(40110))
+ _robust_close(tls, pFile, (*TunixFile)(unsafe.Pointer(pFile)).Fh, int32(40119))
(*TunixFile)(unsafe.Pointer(pFile)).Fh = -int32(1)
}
Xsqlite3_free(tls, (*TunixFile)(unsafe.Pointer(pFile)).FpPreallocatedUnused)
@@ -26647,6 +26686,7 @@ func _openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) (r int32) {
}
goto _1
_1:
+ ;
ii--
}
if ii > 0 {
@@ -26664,7 +26704,7 @@ func _openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) (r int32) {
if fd >= 0 {
return SQLITE_OK
}
- return _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(41716)), __ccgo_ts+3510, bp, int32(41716))
+ return _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(41725)), __ccgo_ts+3510, bp, int32(41725))
}
// C documentation
@@ -26703,7 +26743,7 @@ func _unixSync(tls *libc.TLS, id uintptr, flags int32) (r int32) {
rc = _full_fsync(tls, (*TunixFile)(unsafe.Pointer(pFile)).Fh, isFullsync, isDataOnly)
if rc != 0 {
_storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))))
- return _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(4)<<libc.Int32FromInt32(8), __ccgo_ts+3798, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, int32(41757))
+ return _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(4)<<libc.Int32FromInt32(8), __ccgo_ts+3798, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, int32(41766))
}
/* Also fsync the directory containing the file if the DIRSYNC flag
** is set. This is a one-time occurrence. Many systems (examples: AIX)
@@ -26713,7 +26753,7 @@ func _unixSync(tls *libc.TLS, id uintptr, flags int32) (r int32) {
rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(17)].FpCurrent})))(tls, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, bp)
if rc == SQLITE_OK {
_full_fsync(tls, *(*int32)(unsafe.Pointer(bp)), 0, 0)
- _robust_close(tls, pFile, *(*int32)(unsafe.Pointer(bp)), int32(41771))
+ _robust_close(tls, pFile, *(*int32)(unsafe.Pointer(bp)), int32(41780))
} else {
_ = libc.Int32FromInt32(0)
rc = SQLITE_OK
@@ -26746,7 +26786,7 @@ func _unixTruncate(tls *libc.TLS, id uintptr, nByte Ti64) (r int32) {
rc = _robust_ftruncate(tls, (*TunixFile)(unsafe.Pointer(pFile)).Fh, nByte)
if rc != 0 {
_storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))))
- return _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), __ccgo_ts+3429, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, int32(41802))
+ return _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), __ccgo_ts+3429, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, int32(41811))
} else {
/* If the file was just truncated to a size smaller than the currently
** mapped region, reduce the effective mapping size as well. SQLite will
@@ -26836,6 +26876,7 @@ func _fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte Ti64) (r int32) {
}
goto _1
_1:
+ ;
iWrite += int64(nBlk)
}
}
@@ -26844,7 +26885,7 @@ func _fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte Ti64) (r int32) {
if (*TunixFile)(unsafe.Pointer(pFile)).FszChunk <= 0 {
if _robust_ftruncate(tls, (*TunixFile)(unsafe.Pointer(pFile)).Fh, nByte) != 0 {
_storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))))
- return _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), __ccgo_ts+3429, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, int32(41923))
+ return _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(6)<<libc.Int32FromInt32(8), __ccgo_ts+3429, (*TunixFile)(unsafe.Pointer(pFile)).FzPath, int32(41932))
}
}
rc = _unixMapfile(tls, pFile, nByte)
@@ -27023,7 +27064,7 @@ func _unixDeviceCharacteristics(tls *libc.TLS, id uintptr) (r int32) {
// ** Instead, it should be called via macro osGetpagesize().
// */
func _unixGetpagesize(tls *libc.TLS) (r int32) {
- return int32(libc.Xsysconf(tls, __SC_PAGESIZE))
+ return int32(libc.Xsysconf(tls, int32(__SC_PAGESIZE)))
}
/*
@@ -27257,11 +27298,12 @@ func _unixShmPurge(tls *libc.TLS, pFd uintptr) {
}
goto _1
_1:
+ ;
i += nShmPerMap
}
Xsqlite3_free(tls, (*TunixShmNode)(unsafe.Pointer(p)).FapRegion)
if (*TunixShmNode)(unsafe.Pointer(p)).FhShm >= 0 {
- _robust_close(tls, pFd, (*TunixShmNode)(unsafe.Pointer(p)).FhShm, int32(42521))
+ _robust_close(tls, pFd, (*TunixShmNode)(unsafe.Pointer(p)).FhShm, int32(42530))
(*TunixShmNode)(unsafe.Pointer(p)).FhShm = -int32(1)
}
(*TunixInodeInfo)(unsafe.Pointer((*TunixShmNode)(unsafe.Pointer(p)).FpInode)).FpShmNode = uintptr(0)
@@ -27324,7 +27366,7 @@ func _unixLockSharedMemory(tls *libc.TLS, pDbFd uintptr, pShmNode uintptr) (r in
** help detect if a -shm file truncation is legitimate or is the work
** or a rogue process. */
if rc == SQLITE_OK && _robust_ftruncate(tls, (*TunixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(3)) != 0 {
- rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(18)<<libc.Int32FromInt32(8), __ccgo_ts+3429, (*TunixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, int32(42591))
+ rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(18)<<libc.Int32FromInt32(8), __ccgo_ts+3429, (*TunixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, int32(42600))
}
}
} else {
@@ -27438,7 +27480,7 @@ func _unixOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) (r int32) {
if (*TunixShmNode1)(unsafe.Pointer(pShmNode)).FhShm < 0 {
(*TunixShmNode1)(unsafe.Pointer(pShmNode)).FhShm = _robust_open(tls, zShm, libc.Int32FromInt32(O_RDONLY)|libc.Int32FromInt32(__O_NOFOLLOW), (*(*Tstat)(unsafe.Pointer(bp))).Fst_mode&libc.Uint32FromInt32(0777))
if (*TunixShmNode1)(unsafe.Pointer(pShmNode)).FhShm < 0 {
- rc = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(42728)), __ccgo_ts+3393, zShm, int32(42728))
+ rc = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(42737)), __ccgo_ts+3393, zShm, int32(42737))
goto shm_open_err
}
(*TunixShmNode1)(unsafe.Pointer(pShmNode)).FisReadonly = uint8(1)
@@ -27473,6 +27515,7 @@ func _unixOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) (r int32) {
return rc
/* Jump here on any error */
shm_open_err:
+ ;
_unixShmPurge(tls, pDbFd) /* This call frees pShmNode if required */
Xsqlite3_free(tls, p)
_unixLeaveMutex(tls)
@@ -27563,11 +27606,12 @@ func _unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExte
*(*int32)(unsafe.Pointer(bp + 128)) = 0
if _seekAndWriteFd(tls, (*TunixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(iPg*_pgsz+_pgsz-int32(1)), __ccgo_ts+1648, int32(1), bp+128) != int32(1) {
zFile = (*TunixShmNode)(unsafe.Pointer(pShmNode)).FzFilename
- rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(19)<<libc.Int32FromInt32(8), __ccgo_ts+3464, zFile, int32(42872))
+ rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(19)<<libc.Int32FromInt32(8), __ccgo_ts+3464, zFile, int32(42881))
goto shmpage_out
}
goto _1
_1:
+ ;
iPg++
}
}
@@ -27590,7 +27634,7 @@ func _unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExte
}
pMem = (*(*func(*libc.TLS, uintptr, Tsize_t, int32, int32, int32, Toff_t) uintptr)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(22)].FpCurrent})))(tls, uintptr(0), uint64(nMap), v2, int32(MAP_SHARED), (*TunixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(szRegion)*int64((*TunixShmNode)(unsafe.Pointer(pShmNode)).FnRegion))
if pMem == uintptr(-libc.Int32FromInt32(1)) {
- rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(21)<<libc.Int32FromInt32(8), __ccgo_ts+3551, (*TunixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, int32(42899))
+ rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(21)<<libc.Int32FromInt32(8), __ccgo_ts+3551, (*TunixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, int32(42908))
goto shmpage_out
}
} else {
@@ -27609,6 +27653,7 @@ func _unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExte
*(*uintptr)(unsafe.Pointer((*TunixShmNode)(unsafe.Pointer(pShmNode)).FapRegion + uintptr(int32((*TunixShmNode)(unsafe.Pointer(pShmNode)).FnRegion)+i)*8)) = pMem + uintptr(szRegion*i)
goto _3
_3:
+ ;
i++
}
p4 = pShmNode + 32
@@ -27616,6 +27661,7 @@ func _unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExte
}
}
shmpage_out:
+ ;
if int32((*TunixShmNode)(unsafe.Pointer(pShmNode)).FnRegion) > iRegion {
*(*uintptr)(unsafe.Pointer(pp)) = *(*uintptr)(unsafe.Pointer((*TunixShmNode)(unsafe.Pointer(pShmNode)).FapRegion + uintptr(iRegion)*8))
} else {
@@ -27778,6 +27824,7 @@ func _unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) (
}
goto _5
_5:
+ ;
ii++
}
/* Get the exclusive locks at the system level. Then if successful
@@ -27795,6 +27842,7 @@ func _unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) (
*(*int32)(unsafe.Pointer(aLock + uintptr(ii)*4)) = -int32(1)
goto _7
_7:
+ ;
ii++
}
}
@@ -27855,6 +27903,7 @@ func _unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) (r int32) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 8
}
*(*uintptr)(unsafe.Pointer(pp)) = (*TunixShm)(unsafe.Pointer(p)).FpNext
@@ -27949,7 +27998,7 @@ func _unixRemapfile(tls *libc.TLS, pFd uintptr, nNew Ti64) {
if pNew == uintptr(-libc.Int32FromInt32(1)) {
pNew = uintptr(0)
nNew = 0
- _unixLogErrorAtLine(tls, SQLITE_OK, zErr, (*TunixFile)(unsafe.Pointer(pFd)).FzPath, int32(43339))
+ _unixLogErrorAtLine(tls, SQLITE_OK, zErr, (*TunixFile)(unsafe.Pointer(pFd)).FzPath, int32(43348))
/* If the mmap() above failed, assume that all subsequent mmap() calls
** will probably fail too. Fall back to using xRead/xWrite exclusively
** in this case. */
@@ -28328,7 +28377,7 @@ func _fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilenam
** implicit assumption here is that if fstat() fails, things are in
** such bad shape that dropping a lock or two doesn't matter much.
*/
- _robust_close(tls, pNew, h, int32(43847))
+ _robust_close(tls, pNew, h, int32(43856))
h = -int32(1)
}
_unixLeaveMutex(tls)
@@ -28348,7 +28397,7 @@ func _fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilenam
_storeLastErrno(tls, pNew, 0)
if rc != SQLITE_OK {
if h >= 0 {
- _robust_close(tls, pNew, h, int32(43932))
+ _robust_close(tls, pNew, h, int32(43941))
}
} else {
(*Tsqlite3_file)(unsafe.Pointer(pId)).FpMethods = pLockingStyle
@@ -28504,6 +28553,7 @@ func _findReusableFd(tls *libc.TLS, zPath uintptr, flags int32) (r uintptr) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 8
}
pUnused = *(*uintptr)(unsafe.Pointer(pp))
@@ -28774,7 +28824,7 @@ func _unixOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags
}
}
if fd < 0 {
- rc2 = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44373)), __ccgo_ts+3393, zName, int32(44373))
+ rc2 = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44382)), __ccgo_ts+3393, zName, int32(44382))
if rc == SQLITE_OK {
rc = rc2
}
@@ -28827,6 +28877,7 @@ func _unixOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags
_ = libc.Int32FromInt32(0)
rc = _fillInUnixFile(tls, pVfs, fd, pFile, zPath, ctrlFlags)
open_finished:
+ ;
if rc != SQLITE_OK {
Xsqlite3_free(tls, (*TunixFile)(unsafe.Pointer(p)).FpPreallocatedUnused)
}
@@ -28851,7 +28902,7 @@ func _unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) (
if *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(ENOENT) {
rc = libc.Int32FromInt32(SQLITE_IOERR) | libc.Int32FromInt32(23)<<libc.Int32FromInt32(8)
} else {
- rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(10)<<libc.Int32FromInt32(8), __ccgo_ts+3503, zPath, int32(44512))
+ rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(10)<<libc.Int32FromInt32(8), __ccgo_ts+3503, zPath, int32(44521))
}
return rc
}
@@ -28859,9 +28910,9 @@ func _unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) (
rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(17)].FpCurrent})))(tls, zPath, bp)
if rc == SQLITE_OK {
if _full_fsync(tls, *(*int32)(unsafe.Pointer(bp)), 0, 0) != 0 {
- rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(5)<<libc.Int32FromInt32(8), __ccgo_ts+3920, zPath, int32(44522))
+ rc = _unixLogErrorAtLine(tls, libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(5)<<libc.Int32FromInt32(8), __ccgo_ts+3920, zPath, int32(44531))
}
- _robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp)), int32(44524))
+ _robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp)), int32(44533))
} else {
_ = libc.Int32FromInt32(0)
rc = SQLITE_OK
@@ -28974,7 +29025,7 @@ func _appendOnePathElement(tls *libc.TLS, pPath uintptr, zName uintptr, nName in
zIn = (*TDbPath)(unsafe.Pointer(pPath)).FzOut
if (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(27)].FpCurrent})))(tls, zIn, bp) != 0 {
if *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(ENOENT) {
- (*TDbPath)(unsafe.Pointer(pPath)).Frc = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44618)), __ccgo_ts+3591, zIn, int32(44618))
+ (*TDbPath)(unsafe.Pointer(pPath)).Frc = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44627)), __ccgo_ts+3591, zIn, int32(44627))
}
} else {
if (*(*Tstat)(unsafe.Pointer(bp))).Fst_mode&uint32(__S_IFMT) == uint32(libc.Int32FromInt32(__S_IFLNK)) {
@@ -28982,12 +29033,12 @@ func _appendOnePathElement(tls *libc.TLS, pPath uintptr, zName uintptr, nName in
v5 = *(*int32)(unsafe.Pointer(v6))
*(*int32)(unsafe.Pointer(v6))++
if v5 > int32(SQLITE_MAX_SYMLINK) {
- (*TDbPath)(unsafe.Pointer(pPath)).Frc = _sqlite3CantopenError(tls, int32(44624))
+ (*TDbPath)(unsafe.Pointer(pPath)).Frc = _sqlite3CantopenError(tls, int32(44633))
return
}
got = (*(*func(*libc.TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(26)].FpCurrent})))(tls, zIn, bp+128, libc.Uint64FromInt64(4098)-libc.Uint64FromInt32(2))
if got <= 0 || got >= libc.Int64FromInt64(4098)-libc.Int64FromInt32(2) {
- (*TDbPath)(unsafe.Pointer(pPath)).Frc = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44629)), __ccgo_ts+3582, zIn, int32(44629))
+ (*TDbPath)(unsafe.Pointer(pPath)).Frc = _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44638)), __ccgo_ts+3582, zIn, int32(44638))
return
}
(*(*[4098]uint8)(unsafe.Pointer(bp + 128)))[got] = uint8(0)
@@ -29022,6 +29073,7 @@ func _appendAllPathElements(tls *libc.TLS, pPath uintptr, zPath uintptr) {
j = i + int32(1)
goto _2
_2:
+ ;
v1 = i
i++
if !(*(*uint8)(unsafe.Pointer(zPath + uintptr(v1))) != 0) {
@@ -29054,14 +29106,14 @@ func _unixFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, z
(*(*TDbPath)(unsafe.Pointer(bp))).FzOut = zOut
if int32(*(*uint8)(unsafe.Pointer(zPath))) != int32('/') {
if (*(*func(*libc.TLS, uintptr, Tsize_t) uintptr)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(3)].FpCurrent})))(tls, bp+24, libc.Uint64FromInt64(4098)-libc.Uint64FromInt32(2)) == uintptr(0) {
- return _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44687)), __ccgo_ts+3411, zPath, int32(44687))
+ return _unixLogErrorAtLine(tls, _sqlite3CantopenError(tls, int32(44696)), __ccgo_ts+3411, zPath, int32(44696))
}
_appendAllPathElements(tls, bp, bp+24)
}
_appendAllPathElements(tls, bp, zPath)
*(*uint8)(unsafe.Pointer(zOut + uintptr((*(*TDbPath)(unsafe.Pointer(bp))).FnUsed))) = uint8(0)
if (*(*TDbPath)(unsafe.Pointer(bp))).Frc != 0 || (*(*TDbPath)(unsafe.Pointer(bp))).FnUsed < int32(2) {
- return _sqlite3CantopenError(tls, int32(44693))
+ return _sqlite3CantopenError(tls, int32(44702))
}
if (*(*TDbPath)(unsafe.Pointer(bp))).FnSymlink != 0 {
return libc.Int32FromInt32(SQLITE_OK) | libc.Int32FromInt32(2)<<libc.Int32FromInt32(8)
@@ -29194,7 +29246,7 @@ func _unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) (
for cond := true; cond; cond = got < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(EINTR) {
got = int32((*(*func(*libc.TLS, int32, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{_aSyscall[int32(8)].FpCurrent})))(tls, fd, zBuf, uint64(nBuf)))
}
- _robust_close(tls, uintptr(0), fd, int32(44795))
+ _robust_close(tls, uintptr(0), fd, int32(44804))
}
return nBuf
}
@@ -29488,6 +29540,7 @@ func Xsqlite3_os_init(tls *libc.TLS) (r int32) {
Xsqlite3_vfs_register(tls, uintptr(unsafe.Pointer(&_aVfs))+uintptr(i)*168, libc.BoolInt32(i == uint32(0)))
goto _1
_1:
+ ;
i++
}
_unixBigLock = _sqlite3MutexAlloc(tls, int32(SQLITE_MUTEX_STATIC_VFS1))
@@ -29928,6 +29981,7 @@ func _memdbClose(tls *libc.TLS, pFile uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_mutex_leave(tls, pVfsMutex)
@@ -30285,6 +30339,7 @@ func _memdbOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFd uintptr, flags i
}
goto _1
_1:
+ ;
i++
}
if p == uintptr(0) {
@@ -30532,6 +30587,14 @@ func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintp
pOut = uintptr(0)
} else {
sz = Xsqlite3_column_int64(tls, *(*uintptr)(unsafe.Pointer(bp)), 0) * int64(szPage)
+ if sz == 0 {
+ Xsqlite3_reset(tls, *(*uintptr)(unsafe.Pointer(bp)))
+ Xsqlite3_exec(tls, db, __ccgo_ts+4011, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp)))
+ if rc == int32(SQLITE_ROW) {
+ sz = Xsqlite3_column_int64(tls, *(*uintptr)(unsafe.Pointer(bp)), 0) * int64(szPage)
+ }
+ }
if piSize != 0 {
*(*Tsqlite3_int64)(unsafe.Pointer(piSize)) = sz
}
@@ -30558,6 +30621,7 @@ func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintp
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
goto _2
_2:
+ ;
pgno++
}
}
@@ -30588,7 +30652,7 @@ func Xsqlite3_deserialize(tls *libc.TLS, db uintptr, zSchema uintptr, pData uint
rc = int32(SQLITE_ERROR)
goto end_deserialize
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+4011, libc.VaList(bp+16, zSchema))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+4036, libc.VaList(bp+16, zSchema))
if zSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -30623,6 +30687,7 @@ func Xsqlite3_deserialize(tls *libc.TLS, db uintptr, zSchema uintptr, pData uint
rc = SQLITE_OK
}
end_deserialize:
+ ;
Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
if pData != 0 && mFlags&uint32(SQLITE_DESERIALIZE_FREEONCLOSE) != uint32(0) {
Xsqlite3_free(tls, pData)
@@ -30894,6 +30959,7 @@ func _sqlite3BitvecSet(tls *libc.TLS, p uintptr, i Tu32) (r int32) {
/* available free spot. check to see if this is going to */
/* make our hash too "full". */
bitvec_set_rehash:
+ ;
if uint64((*TBitvec)(unsafe.Pointer(p)).FnSet) >= (libc.Uint64FromInt32(BITVEC_SZ)-libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))/libc.Uint64FromInt64(8)*libc.Uint64FromInt64(8)/libc.Uint64FromInt64(4)/libc.Uint64FromInt32(2) {
aiValues = _sqlite3DbMallocRaw(tls, uintptr(0), uint64(496))
if aiValues == uintptr(0) {
@@ -30913,6 +30979,7 @@ bitvec_set_rehash:
}
goto _3
_3:
+ ;
j++
}
_sqlite3DbFree(tls, uintptr(0), aiValues)
@@ -30920,6 +30987,7 @@ bitvec_set_rehash:
}
}
bitvec_set_end:
+ ;
(*TBitvec)(unsafe.Pointer(p)).FnSet++
*(*Tu32)(unsafe.Pointer(p + 16 + uintptr(h)*4)) = i
return SQLITE_OK
@@ -30977,6 +31045,7 @@ func _sqlite3BitvecClear(tls *libc.TLS, p uintptr, i Tu32, pBuf uintptr) {
}
goto _2
_2:
+ ;
j++
}
}
@@ -31002,6 +31071,7 @@ func _sqlite3BitvecDestroy(tls *libc.TLS, p uintptr) {
_sqlite3BitvecDestroy(tls, *(*uintptr)(unsafe.Pointer(p + 16 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
}
@@ -31145,10 +31215,12 @@ func _sqlite3BitvecBuiltinTest(tls *libc.TLS, sz int32, aOp uintptr) (r int32) {
}
goto _7
_7:
+ ;
*(*int32)(unsafe.Pointer(bp))++
}
/* Free allocated structure */
bitvec_end:
+ ;
Xsqlite3_free(tls, pTmpSpace)
Xsqlite3_free(tls, pV)
_sqlite3BitvecDestroy(tls, pBitvec)
@@ -31522,6 +31594,7 @@ func _sqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno TPgno, ppPage
}
goto _1
_1:
+ ;
pPg = (*TPgHdr)(unsafe.Pointer(pPg)).FpDirtyPrev
}
(*TPCache)(unsafe.Pointer(pCache)).FpSynced = pPg
@@ -31533,6 +31606,7 @@ func _sqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno TPgno, ppPage
}
goto _2
_2:
+ ;
pPg = (*TPgHdr)(unsafe.Pointer(pPg)).FpDirtyPrev
}
}
@@ -31739,6 +31813,7 @@ func _sqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) {
*(*Tu16)(unsafe.Pointer(p2)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p2))) & ^(libc.Int32FromInt32(PGHDR_NEED_SYNC) | libc.Int32FromInt32(PGHDR_WRITEABLE)))
goto _1
_1:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirtyNext
}
(*TPCache)(unsafe.Pointer(pCache)).FpSynced = (*TPCache)(unsafe.Pointer(pCache)).FpDirtyTail
@@ -31761,6 +31836,7 @@ func _sqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) {
*(*Tu16)(unsafe.Pointer(p2)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p2))) & ^libc.Int32FromInt32(PGHDR_NEED_SYNC))
goto _1
_1:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirtyNext
}
(*TPCache)(unsafe.Pointer(pCache)).FpSynced = (*TPCache)(unsafe.Pointer(pCache)).FpDirtyTail
@@ -31826,6 +31902,7 @@ func _sqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno TPgno) {
}
goto _1
_1:
+ ;
p = pNext
}
if pgno == uint32(0) && (*TPCache)(unsafe.Pointer(pCache)).FnRefSum != 0 {
@@ -31935,6 +32012,7 @@ func _pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
i++
}
if i == libc.Int32FromInt32(N_SORT_BUCKET)-libc.Int32FromInt32(1) {
@@ -31961,6 +32039,7 @@ func _pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) (r uintptr) {
p = v3
goto _2
_2:
+ ;
i++
}
return p
@@ -31982,6 +32061,7 @@ func _sqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) (r uintptr) {
(*TPgHdr)(unsafe.Pointer(p)).FpDirty = (*TPgHdr)(unsafe.Pointer(p)).FpDirtyNext
goto _1
_1:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirtyNext
}
return _pcacheSortDirtyList(tls, (*TPCache)(unsafe.Pointer(pCache)).FpDirty)
@@ -32093,6 +32173,7 @@ func _sqlite3PCachePercentDirty(tls *libc.TLS, pCache uintptr) (r int32) {
nDirty++
goto _1
_1:
+ ;
pDirty = (*TPgHdr)(unsafe.Pointer(pDirty)).FpDirtyNext
}
if nCache != 0 {
@@ -32509,6 +32590,7 @@ func _pcache1InitBulk(tls *libc.TLS, pCache uintptr) (r int32) {
zBulk += uintptr((*TPCache1)(unsafe.Pointer(pCache)).FszAlloc)
goto _3
_3:
+ ;
nBulk--
v2 = nBulk
if !(v2 != 0) {
@@ -32777,6 +32859,7 @@ func _pcache1ResizeHash(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TPCache1)(unsafe.Pointer(p)).FapHash)
@@ -32834,6 +32917,7 @@ func _pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 24
}
*(*uintptr)(unsafe.Pointer(pp)) = (*TPgHdr1)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pp)))).FpNext
@@ -33683,6 +33767,7 @@ func _sqlite3RowSetClear(tls *libc.TLS, pArg uintptr) {
_sqlite3DbFree(tls, (*TRowSet)(unsafe.Pointer(p)).Fdb, pChunk)
goto _1
_1:
+ ;
pChunk = pNextChunk
}
(*TRowSet)(unsafe.Pointer(p)).FpChunk = uintptr(0)
@@ -33842,6 +33927,7 @@ func _rowSetEntrySort(tls *libc.TLS, pIn uintptr) (r uintptr) {
(*(*[40]uintptr)(unsafe.Pointer(bp)))[i] = uintptr(0)
goto _1
_1:
+ ;
i++
}
(*(*[40]uintptr)(unsafe.Pointer(bp)))[i] = pIn
@@ -33864,6 +33950,7 @@ func _rowSetEntrySort(tls *libc.TLS, pIn uintptr) (r uintptr) {
pIn = v3
goto _2
_2:
+ ;
i++
}
return pIn
@@ -33972,6 +34059,7 @@ func _rowSetListToTree(tls *libc.TLS, _pList uintptr) (r uintptr) {
(*TRowSetEntry)(unsafe.Pointer(p)).FpRight = _rowSetNDeepTree(tls, bp, iDepth)
goto _2
_2:
+ ;
iDepth++
}
return p
@@ -34066,6 +34154,7 @@ func _sqlite3RowSetTest(tls *libc.TLS, pRowSet uintptr, iBatch int32, iRowid Tsq
}
goto _1
_1:
+ ;
pTree = (*TRowSetEntry)(unsafe.Pointer(pTree)).FpRight
}
if pTree == uintptr(0) {
@@ -34107,6 +34196,7 @@ func _sqlite3RowSetTest(tls *libc.TLS, pRowSet uintptr, iBatch int32, iRowid Tsq
}
goto _4
_4:
+ ;
pTree = (*TRowSetEntry)(unsafe.Pointer(pTree)).FpRight
}
return 0
@@ -35011,12 +35101,14 @@ func _subjRequiresPage(tls *libc.TLS, pPg uintptr) (r int32) {
(*(*TPagerSavepoint)(unsafe.Pointer((*TPager)(unsafe.Pointer(pPager)).FaSavepoint + uintptr(i)*56))).FbTruncateOnRelease = 0
goto _2
_2:
+ ;
i++
}
return int32(1)
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -35229,6 +35321,7 @@ func _readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper Tu32
*(*Tu32)(unsafe.Pointer(bp + 16)) -= uint32(*(*uint8)(unsafe.Pointer(zSuper + uintptr(u))))
goto _10
_10:
+ ;
u++
}
if *(*Tu32)(unsafe.Pointer(bp + 16)) != 0 {
@@ -35380,6 +35473,7 @@ func _writeJournalHdr(tls *libc.TLS, pPager uintptr) (r int32) {
}
goto _1
_1:
+ ;
ii++
}
v2 = _journalHdrOffset(tls, pPager)
@@ -35456,6 +35550,7 @@ func _writeJournalHdr(tls *libc.TLS, pPager uintptr) (r int32) {
*(*Ti64)(unsafe.Pointer(pPager + 96)) += int64(nHeader)
goto _3
_3:
+ ;
nWrite += nHeader
}
return rc
@@ -35626,6 +35721,7 @@ func _writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) (r int32)
cksum += uint32(*(*uint8)(unsafe.Pointer(zSuper + uintptr(nSuper))))
goto _1
_1:
+ ;
nSuper++
}
/* If in full-sync mode, advance to the next disk sector before writing
@@ -35717,6 +35813,7 @@ func _releaseAllSavepoints(tls *libc.TLS, pPager uintptr) {
_sqlite3BitvecDestroy(tls, (*(*TPagerSavepoint)(unsafe.Pointer((*TPager)(unsafe.Pointer(pPager)).FaSavepoint + uintptr(ii)*56))).FpInSavepoint)
goto _1
_1:
+ ;
ii++
}
if !((*TPager)(unsafe.Pointer(pPager)).FexclusiveMode != 0) || _sqlite3JournalIsInMemory(tls, (*TPager)(unsafe.Pointer(pPager)).Fsjfd) != 0 {
@@ -35752,6 +35849,7 @@ func _addToSavepointBitvecs(tls *libc.TLS, pPager uintptr, pgno TPgno) (r int32)
}
goto _1
_1:
+ ;
ii++
}
return rc
@@ -36543,6 +36641,7 @@ func _pager_delsuper(tls *libc.TLS, pPager uintptr, zSuper uintptr) (r int32) {
_sqlite3OsClose(tls, pSuper)
rc = _sqlite3OsDelete(tls, pVfs, zSuper, 0)
delsuper_out:
+ ;
Xsqlite3_free(tls, zFree)
if pSuper != 0 {
_sqlite3OsClose(tls, pSuper)
@@ -36871,12 +36970,14 @@ func _pager_playback(tls *libc.TLS, pPager uintptr, isHot int32) (r int32) {
}
goto _1
_1:
+ ;
u++
}
}
/*NOTREACHED*/
_ = libc.Int32FromInt32(0)
end_playback:
+ ;
if rc == SQLITE_OK {
rc = _sqlite3PagerSetPagesize(tls, pPager, bp+20, -int32(1))
}
@@ -36918,7 +37019,7 @@ end_playback:
rc = _pager_delsuper(tls, pPager, zSuper)
}
if isHot != 0 && nPlayback != 0 {
- Xsqlite3_log(tls, libc.Int32FromInt32(SQLITE_NOTICE)|libc.Int32FromInt32(2)<<libc.Int32FromInt32(8), __ccgo_ts+4026, libc.VaList(bp+32, nPlayback, (*TPager)(unsafe.Pointer(pPager)).FzJournal))
+ Xsqlite3_log(tls, libc.Int32FromInt32(SQLITE_NOTICE)|libc.Int32FromInt32(2)<<libc.Int32FromInt32(8), __ccgo_ts+4051, libc.VaList(bp+32, nPlayback, (*TPager)(unsafe.Pointer(pPager)).FzJournal))
}
/* The Pager.sectorSize variable may have been updated while rolling
** back a journal created by a process with a different sector size
@@ -37132,6 +37233,7 @@ func _pagerWalFrames(tls *libc.TLS, pPager uintptr, _pList uintptr, nTruncate TP
}
goto _1
_1:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirty
}
_ = libc.Int32FromInt32(0)
@@ -37152,6 +37254,7 @@ func _pagerWalFrames(tls *libc.TLS, pPager uintptr, _pList uintptr, nTruncate TP
_sqlite3BackupUpdate(tls, (*TPager)(unsafe.Pointer(pPager)).FpBackup, (*TPgHdr)(unsafe.Pointer(p)).Fpgno, (*TPgHdr)(unsafe.Pointer(p)).FpData)
goto _3
_3:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirty
}
}
@@ -37428,6 +37531,7 @@ func _pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr)
rc = _pager_playback_one_page(tls, pPager, pPager+96, pDone, int32(1), int32(1))
goto _3
_3:
+ ;
ii++
}
_ = libc.Int32FromInt32(0)
@@ -37451,6 +37555,7 @@ func _pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr)
rc = _pager_playback_one_page(tls, pPager, bp+8, pDone, 0, int32(1))
goto _4
_4:
+ ;
ii1++
}
_ = libc.Int32FromInt32(0)
@@ -38077,6 +38182,7 @@ func _pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) {
Xsqlite3_free(tls, p)
goto _1
_1:
+ ;
p = pNext
}
}
@@ -38711,7 +38817,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(61488))
+ rc = _sqlite3CantopenError(tls, int32(61505))
}
if rc != SQLITE_OK {
_sqlite3DbFree(tls, uintptr(0), zPathname)
@@ -38800,7 +38906,7 @@ func _sqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename u
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzJournal = pPtr
libc.Xmemcpy(tls, pPtr, zPathname, uint64(nPathname))
pPtr += uintptr(nPathname)
- libc.Xmemcpy(tls, pPtr, __ccgo_ts+4053, uint64(8))
+ libc.Xmemcpy(tls, pPtr, __ccgo_ts+4078, uint64(8))
pPtr += uintptr(libc.Int32FromInt32(8) + libc.Int32FromInt32(1))
} else {
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzJournal = uintptr(0)
@@ -38810,7 +38916,7 @@ func _sqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename u
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzWal = pPtr
libc.Xmemcpy(tls, pPtr, zPathname, uint64(nPathname))
pPtr += uintptr(nPathname)
- libc.Xmemcpy(tls, pPtr, __ccgo_ts+4062, uint64(4))
+ libc.Xmemcpy(tls, pPtr, __ccgo_ts+4087, uint64(4))
pPtr += uintptr(libc.Int32FromInt32(4) + libc.Int32FromInt32(1))
} else {
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzWal = uintptr(0)
@@ -38854,14 +38960,15 @@ func _sqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename u
}
}
}
- (*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FnoLock = uint8(Xsqlite3_uri_boolean(tls, (*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, __ccgo_ts+4067, 0))
- if iDc&int32(SQLITE_IOCAP_IMMUTABLE) != 0 || Xsqlite3_uri_boolean(tls, (*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, __ccgo_ts+4074, 0) != 0 {
+ (*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FnoLock = uint8(Xsqlite3_uri_boolean(tls, (*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, __ccgo_ts+4092, 0))
+ if iDc&int32(SQLITE_IOCAP_IMMUTABLE) != 0 || Xsqlite3_uri_boolean(tls, (*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, __ccgo_ts+4099, 0) != 0 {
vfsFlags |= int32(SQLITE_OPEN_READONLY)
goto act_like_temp_file
}
}
goto _3
_2:
+ ;
/* If a temporary file is requested, it is not opened immediately.
** In this case we accept the default page size and delay actually
** opening the file until the first call to OsWrite().
@@ -38873,12 +38980,14 @@ _2:
** This branch also runs for files marked as immutable.
*/
act_like_temp_file:
+ ;
tempFile = int32(1)
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FeState = uint8(PAGER_READER) /* Pretend we already have a lock */
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FeLock = uint8(EXCLUSIVE_LOCK) /* Pretend we are in EXCLUSIVE mode */
(*TPager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FnoLock = uint8(1) /* Do no locking */
readOnly = vfsFlags & int32(SQLITE_OPEN_READONLY)
_3:
+ ;
/* The following call to PagerSetPagesize() serves to set the value of
** Pager.pageSize and to allocate the Pager.pTmpSpace buffer.
*/
@@ -39211,7 +39320,7 @@ func _sqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) (r int32) {
rc = _sqlite3OsOpen(tls, pVfs, (*TPager)(unsafe.Pointer(pPager)).FzJournal, (*TPager)(unsafe.Pointer(pPager)).Fjfd, f, bp+8)
_ = libc.Int32FromInt32(0)
if rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8))&int32(SQLITE_OPEN_READONLY) != 0 {
- rc = _sqlite3CantopenError(tls, int32(62009))
+ rc = _sqlite3CantopenError(tls, int32(62026))
_sqlite3OsClose(tls, (*TPager)(unsafe.Pointer(pPager)).Fjfd)
}
}
@@ -39294,6 +39403,7 @@ func _sqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) (r int32) {
rc = _pagerPagecount(tls, pPager, pPager+32)
}
failed:
+ ;
if rc != SQLITE_OK {
_ = libc.Int32FromInt32(0)
_pager_unlock(tls, pPager)
@@ -39395,7 +39505,7 @@ func _getPageNormal(tls *libc.TLS, pPager uintptr, pgno TPgno, ppPage uintptr, f
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if pgno == uint32(0) {
- return _sqlite3CorruptError(tls, int32(62222))
+ return _sqlite3CorruptError(tls, int32(62239))
}
*(*uintptr)(unsafe.Pointer(bp)) = _sqlite3PcacheFetch(tls, (*TPager)(unsafe.Pointer(pPager)).FpPCache, pgno, int32(3))
if *(*uintptr)(unsafe.Pointer(bp)) == uintptr(0) {
@@ -39430,7 +39540,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(62254))
+ rc = _sqlite3CorruptError(tls, int32(62271))
goto pager_acquire_err
}
(*TPgHdr)(unsafe.Pointer(pPg)).FpPager = pPager
@@ -39470,6 +39580,7 @@ func _getPageNormal(tls *libc.TLS, pPager uintptr, pgno TPgno, ppPage uintptr, f
}
return SQLITE_OK
pager_acquire_err:
+ ;
_ = libc.Int32FromInt32(0)
if pPg != 0 {
_sqlite3PcacheDrop(tls, pPg)
@@ -39504,7 +39615,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(62337))
+ return _sqlite3CorruptError(tls, int32(62354))
}
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -40019,6 +40130,7 @@ func _pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) (r int32) {
}
goto _2
_2:
+ ;
ii++
}
/* If the PGHDR_NEED_SYNC flag is set for any of the nPage pages
@@ -40042,6 +40154,7 @@ func _pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) (r int32) {
}
goto _4
_4:
+ ;
ii++
}
}
@@ -40415,6 +40528,7 @@ func _sqlite3PagerCommitPhaseOne(tls *libc.TLS, pPager uintptr, zSuper uintptr,
}
}
commit_phase_one_exit:
+ ;
if rc == SQLITE_OK && !((*TPager)(unsafe.Pointer(pPager)).FpWal != libc.UintptrFromInt32(0)) {
(*TPager)(unsafe.Pointer(pPager)).FeState = uint8(PAGER_WRITER_FINISHED)
}
@@ -40667,6 +40781,7 @@ func _pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) (r int
(*TPager)(unsafe.Pointer(pPager)).FnSavepoint = ii + int32(1)
goto _1
_1:
+ ;
ii++
}
_ = libc.Int32FromInt32(0)
@@ -40743,6 +40858,7 @@ func _sqlite3PagerSavepoint(tls *libc.TLS, pPager uintptr, op int32, iSavepoint
_sqlite3BitvecDestroy(tls, (*(*TPagerSavepoint)(unsafe.Pointer((*TPager)(unsafe.Pointer(pPager)).FaSavepoint + uintptr(ii)*56))).FpInSavepoint)
goto _2
_2:
+ ;
ii++
}
(*TPager)(unsafe.Pointer(pPager)).FnSavepoint = nNew
@@ -40946,7 +41062,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(63903))
+ return _sqlite3CorruptError(tls, int32(63920))
}
p4 = pPg + 52
*(*Tu16)(unsafe.Pointer(p4)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p4))) | int32((*TPgHdr)(unsafe.Pointer(pPgOld)).Fflags)&libc.Int32FromInt32(PGHDR_NEED_SYNC))
@@ -41237,7 +41353,7 @@ func _sqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode in
** sqlite3_wal_checkpoint() call, but it happens very rarely.
** https://sqlite.org/forum/forumpost/fd0f19d229156939
*/
- Xsqlite3_exec(tls, db, __ccgo_ts+4084, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+4109, uintptr(0), uintptr(0), uintptr(0))
}
if (*TPager)(unsafe.Pointer(pPager)).FpWal != 0 {
if eMode == SQLITE_CHECKPOINT_PASSIVE {
@@ -42660,6 +42776,7 @@ func _walCleanupHash(tls *libc.TLS, pWal uintptr) {
}
goto _1
_1:
+ ;
i++
}
/* Zero the entries in the aPgno array that correspond to frames with
@@ -42717,10 +42834,11 @@ func _walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame Tu32, iPage Tu32) (r in
v2 = nCollide
nCollide--
if v2 == 0 {
- return _sqlite3CorruptError(tls, int32(65829))
+ return _sqlite3CorruptError(tls, int32(65846))
}
goto _1
_1:
+ ;
iKey = _walNextHash(tls, iKey)
}
*(*Tu32)(unsafe.Pointer((*(*TWalHashLoc)(unsafe.Pointer(bp))).FaPgno + uintptr(idx-int32(1))*4)) = iPage
@@ -42808,7 +42926,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(65961))
+ rc = _sqlite3CantopenError(tls, int32(65978))
goto finished
}
/* Malloc a buffer to read frames into. */
@@ -42874,6 +42992,7 @@ func _walIndexRecover(tls *libc.TLS, pWal uintptr) (r int32) {
}
goto _4
_4:
+ ;
iFrame++
}
*(*uintptr)(unsafe.Pointer((*TWal)(unsafe.Pointer(pWal)).FapWiData + uintptr(iPg)*8)) = *(*uintptr)(unsafe.Pointer(bp + 40))
@@ -42899,11 +43018,13 @@ func _walIndexRecover(tls *libc.TLS, pWal uintptr) (r int32) {
}
goto _1
_1:
+ ;
iPg++
}
Xsqlite3_free(tls, aFrame)
}
finished:
+ ;
if rc == SQLITE_OK {
*(*Tu32)(unsafe.Pointer(pWal + 72 + 24)) = aFrameCksum[0]
*(*Tu32)(unsafe.Pointer(pWal + 72 + 24 + 1*4)) = aFrameCksum[int32(1)]
@@ -42937,6 +43058,7 @@ finished:
}
goto _6
_6:
+ ;
i++
}
/* If more than one frame was recovered from the log file, report an
@@ -42945,10 +43067,11 @@ finished:
** checkpointing the log file.
*/
if (*TWal)(unsafe.Pointer(pWal)).Fhdr.FnPage != 0 {
- Xsqlite3_log(tls, libc.Int32FromInt32(SQLITE_NOTICE)|libc.Int32FromInt32(1)<<libc.Int32FromInt32(8), __ccgo_ts+4102, libc.VaList(bp+64, (*TWal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame, (*TWal)(unsafe.Pointer(pWal)).FzWalName))
+ Xsqlite3_log(tls, libc.Int32FromInt32(SQLITE_NOTICE)|libc.Int32FromInt32(1)<<libc.Int32FromInt32(8), __ccgo_ts+4127, libc.VaList(bp+64, (*TWal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame, (*TWal)(unsafe.Pointer(pWal)).FzWalName))
}
}
recovery_error:
+ ;
_walUnlockExclusive(tls, pWal, iLock, libc.Int32FromInt32(3)+libc.Int32FromInt32(0)-iLock)
return rc
}
@@ -42971,6 +43094,7 @@ func _walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) {
*(*uintptr)(unsafe.Pointer((*TWal)(unsafe.Pointer(pWal)).FapWiData + uintptr(i)*8)) = uintptr(0)
goto _1
_1:
+ ;
i++
}
}
@@ -43135,6 +43259,7 @@ func _walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr)
}
goto _1
_1:
+ ;
i--
}
v2 = iRet
@@ -43269,6 +43394,7 @@ func _walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintp
})(unsafe.Pointer(p)).FnList, bp+8, bp, aBuffer)
goto _2
_2:
+ ;
iSub++
}
(*(*[13]struct {
@@ -43281,6 +43407,7 @@ func _walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintp
})(unsafe.Pointer(bp + 16)))[iSub].FnList = *(*int32)(unsafe.Pointer(bp))
goto _1
_1:
+ ;
iList++
}
iSub++
@@ -43303,6 +43430,7 @@ func _walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintp
}
goto _3
_3:
+ ;
iSub++
}
_ = libc.Int32FromInt32(0)
@@ -43387,6 +43515,7 @@ func _walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill Tu32, pp uintptr) (
*(*Tht_slot)(unsafe.Pointer(aIndex + uintptr(j)*2)) = uint16(j)
goto _3
_3:
+ ;
j++
}
_walMergesort(tls, (*(*TWalHashLoc)(unsafe.Pointer(bp))).FaPgno, aTmp, aIndex, bp+24)
@@ -43397,6 +43526,7 @@ func _walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill Tu32, pp uintptr) (
}
goto _2
_2:
+ ;
i++
}
if rc != SQLITE_OK {
@@ -43478,6 +43608,7 @@ func _walRestartHdr(tls *libc.TLS, pWal uintptr, _salt1 Tu32) {
*(*Tu32)(unsafe.Pointer(pInfo + 4 + uintptr(i)*4)) = uint32(READMARK_NOT_USED)
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -43580,6 +43711,7 @@ func _walCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy
}
goto _1
_1:
+ ;
i++
}
/* Allocate the iterator */
@@ -43610,7 +43742,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(66771))
+ rc = _sqlite3CorruptError(tls, int32(66788))
} else {
_sqlite3OsFileControlHint(tls, (*TWal)(unsafe.Pointer(pWal)).FpDbFd, int32(SQLITE_FCNTL_SIZE_HINT), bp+16)
}
@@ -43707,6 +43839,7 @@ func _walCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy
}
}
walcheckpoint_out:
+ ;
_walIteratorFree(tls, *(*uintptr)(unsafe.Pointer(bp)))
return rc
}
@@ -43730,7 +43863,7 @@ func _walLimitSize(tls *libc.TLS, pWal uintptr, nMax Ti64) {
}
_sqlite3EndBenignMalloc(tls)
if rx != 0 {
- Xsqlite3_log(tls, rx, __ccgo_ts+4139, libc.VaList(bp+16, (*TWal)(unsafe.Pointer(pWal)).FzWalName))
+ Xsqlite3_log(tls, rx, __ccgo_ts+4164, libc.VaList(bp+16, (*TWal)(unsafe.Pointer(pWal)).FzWalName))
}
}
@@ -43978,7 +44111,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(67215))
+ rc = _sqlite3CantopenError(tls, int32(67232))
}
if (*TWal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 {
if rc != SQLITE_OK {
@@ -44165,11 +44298,13 @@ func _walBeginShmUnreliable(tls *libc.TLS, pWal uintptr, pChanged uintptr) (r in
}
goto _3
_3:
+ ;
iOffset += int64(szFrame)
}
*(*Tu32)(unsafe.Pointer(pWal + 72 + 24)) = aSaveCksum[0]
*(*Tu32)(unsafe.Pointer(pWal + 72 + 24 + 1*4)) = aSaveCksum[int32(1)]
begin_unreliable_shm_out:
+ ;
Xsqlite3_free(tls, aFrame)
if rc != SQLITE_OK {
i = 0
@@ -44181,6 +44316,7 @@ begin_unreliable_shm_out:
*(*uintptr)(unsafe.Pointer((*TWal)(unsafe.Pointer(pWal)).FapWiData + uintptr(i)*8)) = uintptr(0)
goto _4
_4:
+ ;
i++
}
(*TWal)(unsafe.Pointer(pWal)).FbShmUnreliable = uint8(0)
@@ -44411,6 +44547,7 @@ func _walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int3
}
goto _2
_2:
+ ;
i++
}
if int32((*TWal)(unsafe.Pointer(pWal)).FreadOnly)&int32(WAL_SHM_RDONLY) == 0 && (mxReadMark < mxFrame || mxI == 0) {
@@ -44433,6 +44570,7 @@ func _walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int3
}
goto _3
_3:
+ ;
i++
}
}
@@ -44548,6 +44686,7 @@ func _walSnapshotRecover(tls *libc.TLS, pWal uintptr, pBuf1 uintptr, pBuf2 uintp
(*TWalCkptInfo)(unsafe.Pointer(pInfo)).FnBackfillAttempted = i - uint32(1)
goto _1
_1:
+ ;
i--
}
}
@@ -44812,7 +44951,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(68059))
+ return _sqlite3CorruptError(tls, int32(68076))
}
iKey = _walNextHash(tls, iKey)
}
@@ -44821,6 +44960,7 @@ func _walFindFrame(tls *libc.TLS, pWal uintptr, pgno TPgno, piRead uintptr) (r i
}
goto _1
_1:
+ ;
iHash--
}
*(*Tu32)(unsafe.Pointer(piRead)) = iRead
@@ -44992,6 +45132,7 @@ func _sqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintpt
rc = (*(*func(*libc.TLS, uintptr, TPgno) int32)(unsafe.Pointer(&struct{ uintptr }{xUndo})))(tls, pUndoCtx, _walFramePgno(tls, pWal, iFrame))
goto _1
_1:
+ ;
iFrame++
}
if iMax != (*TWal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame {
@@ -45236,6 +45377,7 @@ func _walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast Tu32) (r int32) {
}
goto _1
_1:
+ ;
iRead++
}
Xsqlite3_free(tls, aBuf)
@@ -45322,7 +45464,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(68582)) /* TH3 test case: cov1/corrupt155.test */
+ return _sqlite3CorruptError(tls, int32(68599)) /* TH3 test case: cov1/corrupt155.test */
}
/* Setup information needed to write frames into the WAL */
(*(*TWalWriter)(unsafe.Pointer(bp))).FpWal = pWal
@@ -45379,6 +45521,7 @@ func _walFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, nTrunc
*(*Tu16)(unsafe.Pointer(p5)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p5))) | libc.Int32FromInt32(PGHDR_WAL_APPEND))
goto _2
_2:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirty
}
/* Recalculate checksums within the wal file if required. */
@@ -45453,6 +45596,7 @@ func _walFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, nTrunc
rc = _walIndexAppend(tls, pWal, iFrame, (*TPgHdr)(unsafe.Pointer(p)).Fpgno)
goto _6
_6:
+ ;
p = (*TPgHdr)(unsafe.Pointer(p)).FpDirty
}
_ = libc.Int32FromInt32(0)
@@ -45578,7 +45722,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(68842))
+ rc = _sqlite3CorruptError(tls, int32(68859))
} else {
rc = _walCheckpoint(tls, pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf)
}
@@ -46681,6 +46825,7 @@ func _btreeLockCarefully(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
pLater = (*TBtree)(unsafe.Pointer(pLater)).FpNext
}
_lockBtreeMutex(tls, p)
@@ -46694,6 +46839,7 @@ func _btreeLockCarefully(tls *libc.TLS, p uintptr) {
}
goto _2
_2:
+ ;
pLater = (*TBtree)(unsafe.Pointer(pLater)).FpNext
}
}
@@ -46748,6 +46894,7 @@ func _btreeEnterAll(tls *libc.TLS, db uintptr) {
}
goto _1
_1:
+ ;
i++
}
(*Tsqlite3)(unsafe.Pointer(db)).FnoSharedCache = uint8(skipOk)
@@ -46775,6 +46922,7 @@ func _btreeLeaveAll(tls *libc.TLS, db uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -46951,6 +47099,7 @@ func _querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab TPgno, eLock Tu8)
}
goto _1
_1:
+ ;
pIter = (*TBtLock)(unsafe.Pointer(pIter)).FpNext
}
return SQLITE_OK
@@ -47004,6 +47153,7 @@ func _setSharedCacheTableLock(tls *libc.TLS, p uintptr, iTable TPgno, eLock Tu8)
}
goto _1
_1:
+ ;
pIter = (*TBtLock)(unsafe.Pointer(pIter)).FpNext
}
/* If the above search did not find a BtLock struct associating Btree p
@@ -47106,6 +47256,7 @@ func _downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) {
(*TBtLock)(unsafe.Pointer(pLock)).FeLock = uint8(READ_LOCK)
goto _2
_2:
+ ;
pLock = (*TBtLock)(unsafe.Pointer(pLock)).FpNext
}
}
@@ -47143,6 +47294,7 @@ func _invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) {
*(*Tu8)(unsafe.Pointer(p2)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p2))) & ^libc.Int32FromInt32(BTCF_ValidOvfl))
goto _1
_1:
+ ;
p = (*TBtCursor)(unsafe.Pointer(p)).FpNext
}
}
@@ -47181,6 +47333,7 @@ func _invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot TPgno, i
}
goto _1
_1:
+ ;
p = (*TBtCursor)(unsafe.Pointer(p)).FpNext
}
}
@@ -47283,6 +47436,7 @@ func _btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) {
_releasePageNotNull(tls, *(*uintptr)(unsafe.Pointer(pCur + 144 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
_releasePageNotNull(tls, (*TBtCursor)(unsafe.Pointer(pCur)).FpPage)
@@ -47407,6 +47561,7 @@ func _saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot TPgno, pExcept uintptr) (
}
goto _1
_1:
+ ;
p = (*TBtCursor)(unsafe.Pointer(p)).FpNext
}
if p != 0 {
@@ -47477,7 +47632,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(70962))
+ rc = _sqlite3CorruptError(tls, int32(70979))
} else {
rc = _sqlite3BtreeIndexMoveto(tls, pCur, pIdxKey, pRes)
}
@@ -47669,7 +47824,7 @@ func _ptrmapPut(tls *libc.TLS, pBt uintptr, key TPgno, eType Tu8, parent TPgno,
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if key == uint32(0) {
- *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(71160))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(71177))
return
}
iPtrmap = _ptrmapPageno(tls, pBt, key)
@@ -47682,12 +47837,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(71173))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(71190))
goto ptrmap_exit
}
offset = int32(libc.Uint32FromInt32(5) * (key - iPtrmap - libc.Uint32FromInt32(1)))
if offset < 0 {
- *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(71178))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(71195))
goto ptrmap_exit
}
_ = libc.Int32FromInt32(0)
@@ -47702,6 +47857,7 @@ func _ptrmapPut(tls *libc.TLS, pBt uintptr, key TPgno, eType Tu8, parent TPgno,
}
}
ptrmap_exit:
+ ;
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
@@ -47731,7 +47887,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(71223))
+ return _sqlite3CorruptError(tls, int32(71240))
}
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -47741,7 +47897,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(71231))
+ return _sqlite3CorruptError(tls, int32(71248))
}
return SQLITE_OK
}
@@ -48180,7 +48336,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(71671))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(71688))
return
}
ovfl = _sqlite3Get4byte(tls, pCell+uintptr(int32((*(*TCellInfo)(unsafe.Pointer(bp))).FnSize)-int32(4)))
@@ -48226,12 +48382,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(71729))
+ return _sqlite3CorruptError(tls, int32(71746))
}
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(71732))
+ return _sqlite3CorruptError(tls, int32(71749))
}
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))
@@ -48239,21 +48395,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(71740))
+ return _sqlite3CorruptError(tls, int32(71757))
}
if iFree2 != 0 {
if iFree+sz > iFree2 {
- return _sqlite3CorruptError(tls, int32(71743))
+ return _sqlite3CorruptError(tls, int32(71760))
}
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(71745))
+ return _sqlite3CorruptError(tls, int32(71762))
}
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(71749))
+ return _sqlite3CorruptError(tls, int32(71766))
}
}
cbrk = top + sz
@@ -48276,6 +48432,7 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
}
goto _1
_1:
+ ;
pAddr += uintptr(2)
}
goto defragment_out
@@ -48300,13 +48457,13 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
** if PRAGMA cell_size_check=ON.
*/
if pc > iCellLast {
- return _sqlite3CorruptError(tls, int32(71782))
+ return _sqlite3CorruptError(tls, int32(71799))
}
_ = libc.Int32FromInt32(0)
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(71788))
+ return _sqlite3CorruptError(tls, int32(71805))
}
_ = libc.Int32FromInt32(0)
*(*Tu8)(unsafe.Pointer(pAddr1)) = uint8(cbrk >> libc.Int32FromInt32(8))
@@ -48314,14 +48471,16 @@ func _defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) (r int32) {
libc.Xmemcpy(tls, data+uintptr(cbrk), src+uintptr(pc), uint64(size))
goto _2
_2:
+ ;
i++
}
}
*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(7)))) = uint8(0)
defragment_out:
+ ;
_ = libc.Int32FromInt32(0)
if int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(7)))))+cbrk-iCellFirst != (*TMemPage)(unsafe.Pointer(pPage)).FnFree {
- return _sqlite3CorruptError(tls, int32(71802))
+ return _sqlite3CorruptError(tls, int32(71819))
}
_ = libc.Int32FromInt32(0)
*(*uint8)(unsafe.Pointer(data + uintptr(hdr+int32(5)))) = uint8(cbrk >> libc.Int32FromInt32(8))
@@ -48384,7 +48543,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(71859))
+ *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(71876))
return uintptr(0)
} else {
/* The slot remains on the free-list. Reduce its size to account
@@ -48401,14 +48560,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(71874))
+ *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(71891))
}
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(71881))
+ *(*int32)(unsafe.Pointer(pRc)) = _sqlite3CorruptError(tls, int32(71898))
}
return uintptr(0)
}
@@ -48459,11 +48618,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(71929))
+ return _sqlite3CorruptError(tls, int32(71946))
}
} else {
if top > int32((*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize) {
- return _sqlite3CorruptError(tls, int32(71932))
+ return _sqlite3CorruptError(tls, int32(71949))
}
}
/* If there is enough space between gap and top for one more cell pointer,
@@ -48478,7 +48637,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(71949))
+ return _sqlite3CorruptError(tls, int32(71966))
} else {
return SQLITE_OK
}
@@ -48571,12 +48730,12 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart Tu16, iSize Tu16) (r int32)
if int32(iFreeBlk) == 0 {
break
} /* TH3: corrupt082.100 */
- return _sqlite3CorruptError(tls, int32(72028))
+ return _sqlite3CorruptError(tls, int32(72045))
}
iPtr = iFreeBlk
}
if uint32(iFreeBlk) > (*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize-uint32(4) { /* TH3: corrupt081.100 */
- return _sqlite3CorruptError(tls, int32(72033))
+ return _sqlite3CorruptError(tls, int32(72050))
}
_ = libc.Int32FromInt32(0)
/* At this point:
@@ -48588,11 +48747,11 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart Tu16, iSize Tu16) (r int32)
if iFreeBlk != 0 && iEnd+uint32(3) >= uint32(iFreeBlk) {
nFrag = uint8(uint32(iFreeBlk) - iEnd)
if iEnd > uint32(iFreeBlk) {
- return _sqlite3CorruptError(tls, int32(72045))
+ return _sqlite3CorruptError(tls, int32(72062))
}
iEnd = uint32(int32(iFreeBlk) + (int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iFreeBlk)+int32(2)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iFreeBlk)+int32(2)) + 1)))))
if iEnd > (*TBtShared)(unsafe.Pointer((*TMemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize {
- return _sqlite3CorruptError(tls, int32(72048))
+ return _sqlite3CorruptError(tls, int32(72065))
}
iSize = uint16(iEnd - uint32(iStart))
iFreeBlk = uint16(int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk))))<<libc.Int32FromInt32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk) + 1))))
@@ -48605,7 +48764,7 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart Tu16, iSize Tu16) (r int32)
iPtrEnd = int32(iPtr) + (int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iPtr)+int32(2)))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iPtr)+int32(2)) + 1))))
if iPtrEnd+int32(3) >= int32(iStart) {
if iPtrEnd > int32(iStart) {
- return _sqlite3CorruptError(tls, int32(72061))
+ return _sqlite3CorruptError(tls, int32(72078))
}
nFrag = Tu8(int32(nFrag) + (int32(iStart) - iPtrEnd))
iSize = uint16(iEnd - uint32(iPtr))
@@ -48613,7 +48772,7 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart Tu16, iSize Tu16) (r int32)
}
}
if int32(nFrag) > int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+int32(7))))) {
- return _sqlite3CorruptError(tls, int32(72067))
+ return _sqlite3CorruptError(tls, int32(72084))
}
p2 = data + uintptr(int32(hdr)+int32(7))
*(*uint8)(unsafe.Pointer(p2)) = uint8(int32(*(*uint8)(unsafe.Pointer(p2))) - int32(nFrag))
@@ -48630,10 +48789,10 @@ func _freeSpace(tls *libc.TLS, pPage uintptr, iStart Tu16, iSize Tu16) (r int32)
** so just extend the cell content area rather than create another
** freelist entry */
if int32(iStart) < int32(x) {
- return _sqlite3CorruptError(tls, int32(72081))
+ return _sqlite3CorruptError(tls, int32(72098))
}
if int32(iPtr) != int32(hdr)+int32(1) {
- return _sqlite3CorruptError(tls, int32(72082))
+ return _sqlite3CorruptError(tls, int32(72099))
}
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+int32(1)))) = uint8(int32(iFreeBlk) >> libc.Int32FromInt32(8))
*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+int32(1)) + 1)) = uint8(iFreeBlk)
@@ -48696,7 +48855,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(72136))
+ return _sqlite3CorruptError(tls, int32(72153))
}
}
} else {
@@ -48722,7 +48881,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(72160))
+ return _sqlite3CorruptError(tls, int32(72177))
}
}
}
@@ -48769,12 +48928,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(72211))
+ return _sqlite3CorruptError(tls, int32(72228))
}
for int32(1) != 0 {
if pc > iCellLast {
/* Freeblock off the end of the page */
- return _sqlite3CorruptError(tls, int32(72216))
+ return _sqlite3CorruptError(tls, int32(72233))
}
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))))
@@ -48786,11 +48945,11 @@ func _btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) (r int32) {
}
if next > uint32(0) {
/* Freeblock not in ascending order */
- return _sqlite3CorruptError(tls, int32(72226))
+ return _sqlite3CorruptError(tls, int32(72243))
}
if uint32(pc)+size > uint32(usableSize) {
/* Last freeblock extends past page end */
- return _sqlite3CorruptError(tls, int32(72230))
+ return _sqlite3CorruptError(tls, int32(72247))
}
}
/* At this point, nFree contains the sum of the offset to the start
@@ -48801,7 +48960,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(72242))
+ return _sqlite3CorruptError(tls, int32(72259))
}
(*TMemPage)(unsafe.Pointer(pPage)).FnFree = int32(uint16(nFree - iCellFirst))
return SQLITE_OK
@@ -48832,14 +48991,15 @@ 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(72273))
+ return _sqlite3CorruptError(tls, int32(72290))
}
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(72278))
+ return _sqlite3CorruptError(tls, int32(72295))
}
goto _1
_1:
+ ;
i++
}
return SQLITE_OK
@@ -48871,7 +49031,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(72310))
+ return _sqlite3CorruptError(tls, int32(72327))
}
_ = libc.Int32FromInt32(0)
(*TMemPage)(unsafe.Pointer(pPage)).FmaskPage = uint16((*TBtShared)(unsafe.Pointer(pBt)).FpageSize - libc.Uint32FromInt32(1))
@@ -48885,7 +49045,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(72324))
+ return _sqlite3CorruptError(tls, int32(72341))
}
/* 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
@@ -49051,7 +49211,7 @@ func _getAndInitPage(tls *libc.TLS, pBt uintptr, pgno TPgno, ppPage uintptr, bRe
_ = libc.Int32FromInt32(0)
if pgno > _btreePagecount(tls, pBt) {
*(*uintptr)(unsafe.Pointer(ppPage)) = uintptr(0)
- return _sqlite3CorruptError(tls, int32(72467))
+ return _sqlite3CorruptError(tls, int32(72484))
}
rc = _sqlite3PagerGet(tls, (*TBtShared)(unsafe.Pointer(pBt)).FpPager, pgno, bp, bReadOnly)
if rc != 0 {
@@ -49128,7 +49288,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(72539))
+ return _sqlite3CorruptError(tls, int32(72556))
}
(*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FisInit = uint8(0)
} else {
@@ -49220,7 +49380,7 @@ func _sqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintpt
/* Set the variable isMemdb to true for an in-memory database, or
** false for a file-based database.
*/
- isMemdb = libc.BoolInt32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, __ccgo_ts+4165) == 0 || isTempDb != 0 && _sqlite3TempInMemory(tls, db) != 0 || vfsFlags&int32(SQLITE_OPEN_MEMORY) != 0)
+ isMemdb = libc.BoolInt32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, __ccgo_ts+4190) == 0 || isTempDb != 0 && _sqlite3TempInMemory(tls, db) != 0 || vfsFlags&int32(SQLITE_OPEN_MEMORY) != 0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -49302,6 +49462,7 @@ func _sqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintpt
}
goto _3
_3:
+ ;
iDb--
}
(*TBtree)(unsafe.Pointer(p)).FpBt = pBt
@@ -49310,6 +49471,7 @@ func _sqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintpt
}
goto _2
_2:
+ ;
pBt = (*TBtShared)(unsafe.Pointer(pBt)).FpNext
}
Xsqlite3_mutex_leave(tls, mutexShared)
@@ -49448,11 +49610,13 @@ func _sqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintpt
}
goto _8
_8:
+ ;
i++
}
}
*(*uintptr)(unsafe.Pointer(ppBtree)) = p
btree_open_out:
+ ;
if rc != SQLITE_OK {
if pBt != 0 && (*TBtShared)(unsafe.Pointer(pBt)).FpPager != 0 {
_sqlite3PagerClose(tls, (*TBtShared)(unsafe.Pointer(pBt)).FpPager, uintptr(0))
@@ -50036,7 +50200,7 @@ func _lockBtree(tls *libc.TLS, pBt uintptr) (r int32) {
** The original design allowed these amounts to vary, but as of
** version 3.6.0, we require them to be fixed.
*/
- if libc.Xmemcmp(tls, page1+21, __ccgo_ts+4174, uint64(3)) != 0 {
+ if libc.Xmemcmp(tls, page1+21, __ccgo_ts+4199, uint64(3)) != 0 {
goto page1_init_failed
}
/* EVIDENCE-OF: R-51873-39618 The page size for a database file is
@@ -50075,7 +50239,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(73477))
+ rc = _sqlite3CorruptError(tls, int32(73494))
goto page1_init_failed
} else {
nPage = *(*Tu32)(unsafe.Pointer(bp + 8))
@@ -50131,6 +50295,7 @@ func _lockBtree(tls *libc.TLS, pBt uintptr) (r int32) {
(*TBtShared)(unsafe.Pointer(pBt)).FnPage = nPage
return SQLITE_OK
page1_init_failed:
+ ;
_releasePageOne(tls, *(*uintptr)(unsafe.Pointer(bp)))
(*TBtShared)(unsafe.Pointer(pBt)).FpPage1 = uintptr(0)
return rc
@@ -50308,6 +50473,7 @@ func _btreeBeginTrans(tls *libc.TLS, p uintptr, wrflag int32, pSchemaVersion uin
}
goto _2
_2:
+ ;
pIter = (*TBtLock)(unsafe.Pointer(pIter)).FpNext
}
}
@@ -50413,6 +50579,7 @@ func _btreeBeginTrans(tls *libc.TLS, p uintptr, wrflag int32, pSchemaVersion uin
}
}
trans_begun:
+ ;
if rc == SQLITE_OK {
if pSchemaVersion != 0 {
*(*int32)(unsafe.Pointer(pSchemaVersion)) = int32(_sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+40))
@@ -50494,6 +50661,7 @@ func _setChildPtrmaps(tls *libc.TLS, pPage uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
if !((*TMemPage)(unsafe.Pointer(pPage)).Fleaf != 0) {
@@ -50531,7 +50699,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(73925))
+ return _sqlite3CorruptError(tls, int32(73942))
}
_sqlite3Put4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData, iTo)
} else {
@@ -50555,7 +50723,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(73944))
+ return _sqlite3CorruptError(tls, int32(73961))
}
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)
@@ -50564,7 +50732,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(73953))
+ return _sqlite3CorruptError(tls, int32(73970))
}
if _sqlite3Get4byte(tls, pCell) == iFrom {
_sqlite3Put4byte(tls, pCell, iTo)
@@ -50573,11 +50741,12 @@ func _modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom TPgno, iTo TPgno, eT
}
goto _2
_2:
+ ;
i++
}
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(73965))
+ return _sqlite3CorruptError(tls, int32(73982))
}
_sqlite3Put4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*TMemPage)(unsafe.Pointer(pPage)).FhdrOffset)+int32(8)), iTo)
}
@@ -50610,7 +50779,7 @@ func _relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType Tu8, iPtrP
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if iDbPage < uint32(3) {
- return _sqlite3CorruptError(tls, int32(74000))
+ return _sqlite3CorruptError(tls, int32(74017))
}
/* 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)
@@ -50708,7 +50877,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(74098))
+ return _sqlite3CorruptError(tls, int32(74115))
}
if int32(*(*Tu8)(unsafe.Pointer(bp))) == int32(PTRMAP_FREEPAGE) {
if bCommit == 0 {
@@ -50747,7 +50916,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(74150))
+ return _sqlite3CorruptError(tls, int32(74167))
}
}
_ = libc.Int32FromInt32(0)
@@ -50816,7 +50985,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(74218))
+ rc = _sqlite3CorruptError(tls, int32(74235))
} else {
if nFree > uint32(0) {
rc = _saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -50862,7 +51031,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(74269))
+ return _sqlite3CorruptError(tls, int32(74286))
}
nFree = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)
db = (*TBtree)(unsafe.Pointer(p)).Fdb
@@ -50877,6 +51046,7 @@ func _autoVacuumCommit(tls *libc.TLS, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
iDb++
}
nVac = (*(*func(*libc.TLS, uintptr, uintptr, Tu32, Tu32, Tu32) uint32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).FxAutovacPages})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpAutovacPagesArg, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, nOrig, nFree, (*TBtShared)(unsafe.Pointer(pBt)).FpageSize)
@@ -50891,7 +51061,7 @@ func _autoVacuumCommit(tls *libc.TLS, p uintptr) (r int32) {
}
nFin = _finalDbSize(tls, pBt, nOrig, nVac)
if nFin > nOrig {
- return _sqlite3CorruptError(tls, int32(74296))
+ return _sqlite3CorruptError(tls, int32(74313))
}
if nFin < nOrig {
rc = _saveAllCursors(tls, pBt, uint32(0), uintptr(0))
@@ -50904,6 +51074,7 @@ func _autoVacuumCommit(tls *libc.TLS, p uintptr) (r int32) {
rc = _incrVacuumStep(tls, pBt, nFin, iFree, libc.BoolInt32(nVac == nFree))
goto _2
_2:
+ ;
iFree--
}
if (rc == int32(SQLITE_DONE) || rc == SQLITE_OK) && nFree > uint32(0) {
@@ -51149,6 +51320,7 @@ func _sqlite3BtreeTripAllCursors(tls *libc.TLS, pBtree uintptr, errCode int32, w
_btreeReleaseAllCursorPages(tls, p)
goto _1
_1:
+ ;
p = (*TBtCursor)(unsafe.Pointer(p)).FpNext
}
_sqlite3BtreeLeave(tls, pBtree)
@@ -51387,7 +51559,7 @@ func _btreeCursor(tls *libc.TLS, p uintptr, iTable TPgno, wrFlag int32, pKeyInfo
_ = libc.Int32FromInt32(0)
if iTable <= uint32(1) {
if iTable < uint32(1) {
- return _sqlite3CorruptError(tls, int32(74760))
+ return _sqlite3CorruptError(tls, int32(74777))
} else {
if _btreePagecount(tls, pBt) == uint32(0) {
_ = libc.Int32FromInt32(0)
@@ -51417,6 +51589,7 @@ func _btreeCursor(tls *libc.TLS, p uintptr, iTable TPgno, wrFlag int32, pKeyInfo
}
goto _1
_1:
+ ;
pX = (*TBtCursor)(unsafe.Pointer(pX)).FpNext
}
(*TBtCursor)(unsafe.Pointer(pCur)).FeState = uint8(CURSOR_INVALID)
@@ -51800,7 +51973,7 @@ func _accessPayload(tls *libc.TLS, pCur uintptr, offset Tu32, amt Tu32, pBuf uin
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TBtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
- return _sqlite3CorruptError(tls, int32(75165))
+ return _sqlite3CorruptError(tls, int32(75182))
}
_ = libc.Int32FromInt32(0)
_getCellInfo(tls, pCur)
@@ -51813,7 +51986,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(75180))
+ return _sqlite3CorruptError(tls, int32(75197))
}
/* Check if data must be read/written to/from the btree page itself. */
if offset < uint32((*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) {
@@ -51866,7 +52039,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(75242))
+ return _sqlite3CorruptError(tls, int32(75259))
}
_ = libc.Int32FromInt32(0)
*(*TPgno)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FaOverflow + uintptr(iIdx)*4)) = *(*TPgno)(unsafe.Pointer(bp))
@@ -51943,7 +52116,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(75326))
+ return _sqlite3CorruptError(tls, int32(75343))
}
return rc
}
@@ -52096,7 +52269,7 @@ func _moveToChild(tls *libc.TLS, pCur uintptr, newPgno Tu32) (r int32) {
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TBtCursor)(unsafe.Pointer(pCur)).FiPage) >= libc.Int32FromInt32(BTCURSOR_MAX_DEPTH)-libc.Int32FromInt32(1) {
- return _sqlite3CorruptError(tls, int32(75464))
+ return _sqlite3CorruptError(tls, int32(75481))
}
(*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = uint16(0)
p1 = pCur + 1
@@ -52109,7 +52282,7 @@ func _moveToChild(tls *libc.TLS, pCur uintptr, newPgno Tu32) (r int32) {
_ = libc.Int32FromInt32(0)
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(75478))
+ rc = _sqlite3CorruptError(tls, int32(75495))
}
if rc != 0 {
v3 = pCur + 84
@@ -52239,9 +52412,10 @@ func _moveToRoot(tls *libc.TLS, pCur uintptr) (r int32) {
** (or the freelist). */
_ = libc.Int32FromInt32(0)
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(75613))
+ return _sqlite3CorruptError(tls, int32(75630))
}
skip_init:
+ ;
(*TBtCursor)(unsafe.Pointer(pCur)).Fix = uint16(0)
(*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = uint16(0)
p4 = pCur + 1
@@ -52251,7 +52425,7 @@ skip_init:
} else {
if !((*TMemPage)(unsafe.Pointer(pRoot)).Fleaf != 0) {
if (*TMemPage)(unsafe.Pointer(pRoot)).Fpgno != uint32(1) {
- return _sqlite3CorruptError(tls, int32(75625))
+ return _sqlite3CorruptError(tls, int32(75642))
}
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)
@@ -52515,7 +52689,7 @@ func _sqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey Ti64, biasRigh
break
}
if pCell >= (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd {
- return _sqlite3CorruptError(tls, int32(75867))
+ return _sqlite3CorruptError(tls, int32(75884))
}
}
}
@@ -52564,6 +52738,7 @@ func _sqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey Ti64, biasRigh
goto moveto_table_finish
}
moveto_table_next_layer:
+ ;
if lwr >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
chldPg = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*TMemPage)(unsafe.Pointer(pPage)).FhdrOffset)+int32(8)))
} else {
@@ -52578,6 +52753,7 @@ func _sqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey Ti64, biasRigh
_1:
}
moveto_table_finish:
+ ;
(*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = uint16(0)
_ = libc.Int32FromInt32(0)
return rc
@@ -52654,6 +52830,7 @@ func _cursorOnLastPage(tls *libc.TLS, pCur uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return int32(1)
@@ -52726,7 +52903,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))
if !((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pCur)).FpPage)).FisInit != 0) {
- return _sqlite3CorruptError(tls, int32(76063))
+ return _sqlite3CorruptError(tls, int32(76080))
}
goto bypass_moveto_root /* Start search on the current page */
}
@@ -52742,6 +52919,7 @@ func _sqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes
return rc
}
bypass_moveto_root:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -52796,7 +52974,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(76150))
+ rc = _sqlite3CorruptError(tls, int32(76167))
goto moveto_index_finish
}
pCellKey = _sqlite3Malloc(tls, uint64(nCell+nOverrun))
@@ -52829,7 +53007,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(76182))
+ rc = _sqlite3CorruptError(tls, int32(76199))
}
goto moveto_index_finish
}
@@ -52866,7 +53044,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(76213))
+ return _sqlite3CorruptError(tls, int32(76230))
}
*(*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
@@ -52875,7 +53053,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(76224))
+ rc = _sqlite3CorruptError(tls, int32(76241))
}
if rc != 0 {
v11 = pCur + 84
@@ -52890,6 +53068,7 @@ bypass_moveto_root:
_4:
}
moveto_index_finish:
+ ;
(*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = uint16(0)
_ = libc.Int32FromInt32(0)
return rc
@@ -52943,6 +53122,7 @@ func _sqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) (r Ti64) {
n *= int64((*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur + 144 + uintptr(i)*8)))).FnCell)
goto _1
_1:
+ ;
i++
}
return n
@@ -53006,7 +53186,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(76325))
+ return _sqlite3CorruptError(tls, int32(76342))
}
if idx >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
if !((*TMemPage)(unsafe.Pointer(pPage)).Fleaf != 0) {
@@ -53121,7 +53301,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(76418))
+ return _sqlite3CorruptError(tls, int32(76435))
}
if !((*TMemPage)(unsafe.Pointer(pPage)).Fleaf != 0) {
idx = int32((*TBtCursor)(unsafe.Pointer(pCur)).Fix)
@@ -53215,7 +53395,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(76508))
+ return _sqlite3CorruptError(tls, int32(76525))
}
if n > uint32(0) {
searchList = uint8(0) /* If the free-list must be searched for 'nearby' */
@@ -53272,7 +53452,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
nSearch++
}
if v2 || v1 > n {
- rc = _sqlite3CorruptError(tls, int32(76564))
+ rc = _sqlite3CorruptError(tls, int32(76581))
} else {
rc = _btreeGetUnusedPage(tls, pBt, iTrunk, bp, 0)
}
@@ -53301,7 +53481,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(76593))
+ rc = _sqlite3CorruptError(tls, int32(76610))
goto end_allocate_page
} else {
if searchList != 0 && (nearby == iTrunk || iTrunk < nearby && int32(eMode) == int32(BTALLOC_LE)) {
@@ -53328,7 +53508,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(76627))
+ rc = _sqlite3CorruptError(tls, int32(76644))
goto end_allocate_page
}
rc = _btreeGetUnusedPage(tls, pBt, iNewTrunk, bp+16, 0)
@@ -53374,6 +53554,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
}
goto _3
_3:
+ ;
i++
}
} else {
@@ -53390,6 +53571,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
}
goto _4
_4:
+ ;
i++
}
}
@@ -53398,7 +53580,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(76692))
+ rc = _sqlite3CorruptError(tls, int32(76709))
goto end_allocate_page
}
if !(searchList != 0) || (iPage == nearby || iPage < nearby && int32(eMode) == int32(BTALLOC_LE)) {
@@ -53502,6 +53684,7 @@ func _allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintpt
}
_ = libc.Int32FromInt32(0)
end_allocate_page:
+ ;
_releasePage(tls, *(*uintptr)(unsafe.Pointer(bp)))
_releasePage(tls, pPrevTrunk)
_ = libc.Int32FromInt32(0)
@@ -53542,7 +53725,7 @@ func _freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage TPgno) (r in
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if iPage < uint32(2) || iPage > (*TBtShared)(unsafe.Pointer(pBt)).FnPage {
- return _sqlite3CorruptError(tls, int32(76819))
+ return _sqlite3CorruptError(tls, int32(76836))
}
if pMemPage != 0 {
*(*uintptr)(unsafe.Pointer(bp + 8)) = pMemPage
@@ -53593,7 +53776,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(76866))
+ *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(76883))
goto freepage_out
}
*(*int32)(unsafe.Pointer(bp + 16)) = _btreeGetPage(tls, pBt, iTrunk, bp, 0)
@@ -53603,7 +53786,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)
_ = libc.Int32FromInt32(0)
if nLeaf > (*TBtShared)(unsafe.Pointer(pBt)).FusableSize/uint32(4)-uint32(2) {
- *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(76877))
+ *(*int32)(unsafe.Pointer(bp + 16)) = _sqlite3CorruptError(tls, int32(76894))
goto freepage_out
}
if nLeaf < (*TBtShared)(unsafe.Pointer(pBt)).FusableSize/uint32(4)-uint32(8) {
@@ -53659,6 +53842,7 @@ func _freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage TPgno) (r in
_sqlite3Put4byte(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))).FaData+4, uint32(0))
_sqlite3Put4byte(tls, (*TMemPage)(unsafe.Pointer(pPage1)).FaData+32, iPage)
freepage_out:
+ ;
if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 {
(*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))).FisInit = uint8(0)
}
@@ -53693,7 +53877,7 @@ func _clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintp
_ = libc.Int32FromInt32(0)
if pCell+uintptr((*TCellInfo)(unsafe.Pointer(pInfo)).FnSize) > (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd {
/* Cell extends past end of page */
- return _sqlite3CorruptError(tls, int32(76966))
+ return _sqlite3CorruptError(tls, int32(76983))
}
ovflPgno = _sqlite3Get4byte(tls, pCell+uintptr((*TCellInfo)(unsafe.Pointer(pInfo)).FnSize)-uintptr(4))
pBt = (*TMemPage)(unsafe.Pointer(pPage)).FpBt
@@ -53713,7 +53897,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(76983))
+ return _sqlite3CorruptError(tls, int32(77000))
}
if nOvfl != 0 {
rc = _getOverflowPage(tls, pBt, ovflPgno, bp+8, bp)
@@ -53736,7 +53920,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(77003))
+ rc = _sqlite3CorruptError(tls, int32(77020))
} else {
rc = _freePage2(tls, pBt, *(*uintptr)(unsafe.Pointer(bp + 8)), ovflPgno)
}
@@ -53824,6 +54008,7 @@ func _fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize
n = nHeader + nPayload
if n < int32(4) {
n = int32(4)
+ *(*uint8)(unsafe.Pointer(pPayload + uintptr(nPayload))) = uint8(0)
}
*(*int32)(unsafe.Pointer(pnSize)) = n
_ = libc.Int32FromInt32(0)
@@ -53971,7 +54156,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(77256))
+ *(*int32)(unsafe.Pointer(pRC)) = _sqlite3CorruptError(tls, int32(77276))
return
}
rc = _freeSpace(tls, pPage, uint16(pc), uint16(sz))
@@ -54395,6 +54580,7 @@ func _rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg
}
goto _1
_1:
+ ;
k++
}
pSrcEnd = *(*uintptr)(unsafe.Pointer(pCArray + 32 + uintptr(k)*8))
@@ -54405,12 +54591,12 @@ func _rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg
_ = libc.Int32FromInt32(0)
if uint64(pCell) >= uint64(aData+uintptr(j)) && uint64(pCell) < uint64(pEnd) {
if uint64(pCell+uintptr(sz)) > uint64(pEnd) {
- return _sqlite3CorruptError(tls, int32(77645))
+ return _sqlite3CorruptError(tls, int32(77665))
}
pCell = pTmp + uintptr(int64(pCell)-int64(aData))
} else {
if uint64(pCell+uintptr(sz)) > uint64(pSrcEnd) && uint64(pCell) < uint64(pSrcEnd) {
- return _sqlite3CorruptError(tls, int32(77650))
+ return _sqlite3CorruptError(tls, int32(77670))
}
}
pData -= uintptr(sz)
@@ -54418,7 +54604,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(77656))
+ return _sqlite3CorruptError(tls, int32(77676))
}
libc.Xmemmove(tls, pData, pCell, uint64(sz))
_ = libc.Int32FromInt32(0)
@@ -54493,6 +54679,7 @@ func _pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr
}
goto _1
_1:
+ ;
k++
}
pEnd = *(*uintptr)(unsafe.Pointer(pCArray + 32 + uintptr(k)*8))
@@ -54516,7 +54703,7 @@ func _pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr
_ = libc.Int32FromInt32(0)
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) {
_ = libc.Int32FromInt32(0)
- _sqlite3CorruptError(tls, int32(77741))
+ _sqlite3CorruptError(tls, int32(77761))
return int32(1)
}
libc.Xmemmove(tls, pSlot, *(*uintptr)(unsafe.Pointer((*TCellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8)), uint64(sz))
@@ -54588,6 +54775,7 @@ func _pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArr
}
goto _2
_2:
+ ;
j++
}
if j >= nFree {
@@ -54600,6 +54788,7 @@ func _pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArr
_freeSpace(tls, pPg, uint16(aOfst[j]), uint16(aAfter[j]-aOfst[j]))
goto _3
_3:
+ ;
j++
}
nFree = 0
@@ -54615,6 +54804,7 @@ func _pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArr
}
goto _1
_1:
+ ;
i++
}
j = 0
@@ -54625,6 +54815,7 @@ func _pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArr
_freeSpace(tls, pPg, uint16(aOfst[j]), uint16(aAfter[j]-aOfst[j]))
goto _4
_4:
+ ;
j++
}
return nRet
@@ -54662,7 +54853,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(77863))
+ return _sqlite3CorruptError(tls, int32(77883))
}
libc.Xmemmove(tls, (*TMemPage)(unsafe.Pointer(pPg)).FaCellIdx, (*TMemPage)(unsafe.Pointer(pPg)).FaCellIdx+uintptr(nShift*int32(2)), uint64(nCell*int32(2)))
nCell -= nShift
@@ -54716,6 +54907,7 @@ func _editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, p
}
goto _2
_2:
+ ;
i++
}
/* Append cells to the end of the page */
@@ -54732,9 +54924,10 @@ func _editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, p
*(*Tu8)(unsafe.Pointer(aData + uintptr(hdr+int32(5)) + 1)) = uint8(int64(*(*uintptr)(unsafe.Pointer(bp))) - int64(aData))
return SQLITE_OK
editpage_fail:
+ ;
/* Unable to edit this page. Rebuild it from scratch instead. */
if nNew < int32(1) {
- return _sqlite3CorruptError(tls, int32(77937))
+ return _sqlite3CorruptError(tls, int32(77957))
}
_populateCellCache(tls, pCArray, iNew, nNew)
return _rebuildPage(tls, pCArray, iNew, nNew, pPg)
@@ -54782,7 +54975,7 @@ func _balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintpt
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) == 0 {
- return _sqlite3CorruptError(tls, int32(77977))
+ return _sqlite3CorruptError(tls, int32(77997))
} /* dbfuzz001.test */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -55158,7 +55351,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(78398))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78418))
goto balance_cleanup
}
/* Load b.apCell[] with pointers to all cells in pOld. If pOld
@@ -55181,7 +55374,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(78422))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78442))
goto balance_cleanup
}
limit = int32(*(*Tu16)(unsafe.Pointer(pOld + 28)))
@@ -55195,6 +55388,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
(*(*TCellArray)(unsafe.Pointer(bp + 112))).FnCell++
goto _3
_3:
+ ;
j++
}
k = 0
@@ -55207,6 +55401,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
(*(*TCellArray)(unsafe.Pointer(bp + 112))).FnCell++
goto _4
_4:
+ ;
k++
}
}
@@ -55254,6 +55449,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _2
_2:
+ ;
i++
}
/*
@@ -55301,11 +55497,13 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
*(*int32)(unsafe.Pointer(bp + 72 + uintptr(i)*4)) += int32(2) + int32((*(*func(*libc.TLS, uintptr, uintptr) Tu16)(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(p)).FxCellSize})))(tls, p, *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(j)*8))))
goto _8
_8:
+ ;
j++
}
cntNew[i] = cntOld[i]
goto _6
_6:
+ ;
i++
k++
}
@@ -55319,7 +55517,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(78523))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78543))
goto balance_cleanup
}
(*(*[5]int32)(unsafe.Pointer(bp + 72)))[k-int32(1)] = 0
@@ -55362,12 +55560,13 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
v10 = 0
}
if cntNew[i] <= v10 {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78556))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78576))
goto balance_cleanup
}
}
goto _9
_9:
+ ;
i++
}
/*
@@ -55422,11 +55621,12 @@ 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(78600))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78620))
goto balance_cleanup
}
goto _11
_11:
+ ;
i--
}
/* Sanity check: For a non-corrupt database file one of the following
@@ -55454,7 +55654,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(78633))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78653))
}
if *(*int32)(unsafe.Pointer(bp)) != 0 {
goto balance_cleanup
@@ -55484,6 +55684,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _16
_16:
+ ;
i++
}
/*
@@ -55508,6 +55709,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
_ = libc.Int32FromInt32(0)
goto _19
_19:
+ ;
i++
}
i = 0
@@ -55526,6 +55728,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _21
_21:
+ ;
j++
}
/* If apNew[i] has a page number that is bigger than any of the
@@ -55547,6 +55750,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _20
_20:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -55633,6 +55837,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _24
_24:
+ ;
i++
}
}
@@ -55687,11 +55892,12 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _28
_28:
+ ;
k++
}
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(78833))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(78853))
goto balance_cleanup
}
*(*int32)(unsafe.Pointer(bp)) = _insertCell(tls, pParent, nxDiv+i, pCell1, sz2, pTemp1, (*TMemPage)(unsafe.Pointer(pNew2)).Fpgno)
@@ -55701,6 +55907,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
_ = libc.Int32FromInt32(0)
goto _27
_27:
+ ;
i++
}
/* Now update the actual sibling pages. The order in which they are updated
@@ -55775,6 +55982,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
}
goto _29
_29:
+ ;
i++
}
/* All pages have been processed exactly once */
@@ -55816,6 +56024,7 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
_ptrmapPut(tls, pBt, key, uint8(PTRMAP_BTREE), (*TMemPage)(unsafe.Pointer((*(*[5]uintptr)(unsafe.Pointer(bp + 32)))[i])).Fpgno, bp)
goto _33
_33:
+ ;
i++
}
}
@@ -55831,12 +56040,14 @@ func _balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpa
_freePage(tls, (*(*[3]uintptr)(unsafe.Pointer(bp + 8)))[i], bp)
goto _34
_34:
+ ;
i++
}
/*
** Cleanup before returning.
*/
balance_cleanup:
+ ;
_sqlite3DbFree(tls, uintptr(0), (*(*TCellArray)(unsafe.Pointer(bp + 112))).FapCell)
i = 0
for {
@@ -55846,6 +56057,7 @@ balance_cleanup:
_releasePage(tls, (*(*[3]uintptr)(unsafe.Pointer(bp + 8)))[i])
goto _35
_35:
+ ;
i++
}
i = 0
@@ -55856,6 +56068,7 @@ balance_cleanup:
_releasePage(tls, (*(*[5]uintptr)(unsafe.Pointer(bp + 32)))[i])
goto _36
_36:
+ ;
i++
}
return *(*int32)(unsafe.Pointer(bp))
@@ -55948,10 +56161,11 @@ 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(79065))
+ return _sqlite3CorruptError(tls, int32(79085))
}
goto _1
_1:
+ ;
pOther = (*TBtCursor)(unsafe.Pointer(pOther)).FpNext
}
return SQLITE_OK
@@ -56022,7 +56236,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(79125))
+ rc = _sqlite3CorruptError(tls, int32(79145))
} else {
pParent = *(*uintptr)(unsafe.Pointer(pCur + 144 + uintptr(iPage-int32(1))*8))
iIdx = int32(*(*Tu16)(unsafe.Pointer(pCur + 88 + uintptr(iPage-int32(1))*2)))
@@ -56113,6 +56327,7 @@ func _btreeOverwriteContent(tls *libc.TLS, pPage uintptr, pDest uintptr, pX uint
}
goto _1
_1:
+ ;
i++
}
if i < iAmt {
@@ -56184,7 +56399,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(79289))
+ rc = _sqlite3CorruptError(tls, int32(79309))
} else {
if uint32(iOffset)+ovflPageSize < uint32(nTotal) {
ovflPgno = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaData)
@@ -56215,7 +56430,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(79317))
+ return _sqlite3CorruptError(tls, int32(79337))
}
if int32((*TBtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) == nTotal {
/* The entire cell is local */
@@ -56302,7 +56517,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(79398))
+ return _sqlite3CorruptError(tls, int32(79418))
}
}
/* Ensure that the cursor is not in the CURSOR_FAULT state and that it
@@ -56405,7 +56620,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(79521))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(79541))
} else {
*(*int32)(unsafe.Pointer(bp)) = _btreeComputeFreeSpace(tls, pPage)
}
@@ -56422,6 +56637,7 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
*(*int32)(unsafe.Pointer(bp + 8)) = (*TBtShared)(unsafe.Pointer((*TBtree)(unsafe.Pointer(p)).FpBt)).FnPreformatSize
if *(*int32)(unsafe.Pointer(bp + 8)) < int32(4) {
*(*int32)(unsafe.Pointer(bp + 8)) = int32(4)
+ *(*uint8)(unsafe.Pointer(newCell + 3)) = uint8(0)
}
if (*TBtShared)(unsafe.Pointer((*TBtree)(unsafe.Pointer(p)).FpBt)).FautoVacuum != 0 && *(*int32)(unsafe.Pointer(bp + 8)) > int32((*TMemPage)(unsafe.Pointer(pPage)).FmaxLocal) {
(*(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pPage)).FxParseCell})))(tls, pPage, newCell, bp+104)
@@ -56446,7 +56662,7 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
if *(*int32)(unsafe.Pointer(bp + 4)) == 0 {
_ = libc.Int32FromInt32(0)
if idx >= int32((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
- return _sqlite3CorruptError(tls, int32(79560))
+ return _sqlite3CorruptError(tls, int32(79583))
}
*(*int32)(unsafe.Pointer(bp)) = _sqlite3PagerWrite(tls, (*TMemPage)(unsafe.Pointer(pPage)).FpDbPage)
if *(*int32)(unsafe.Pointer(bp)) != 0 {
@@ -56476,10 +56692,10 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
** necessary to add the PTRMAP_OVERFLOW1 pointer-map entry. */
_ = libc.Int32FromInt32(0) /* 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(79587))
+ return _sqlite3CorruptError(tls, int32(79610))
}
if oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 8))) > (*TMemPage)(unsafe.Pointer(pPage)).FaDataEnd {
- return _sqlite3CorruptError(tls, int32(79590))
+ return _sqlite3CorruptError(tls, int32(79613))
}
libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 8))))
return SQLITE_OK
@@ -56552,6 +56768,7 @@ func _sqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s
}
_ = libc.Int32FromInt32(0)
end_insert:
+ ;
return *(*int32)(unsafe.Pointer(bp))
return r
}
@@ -56602,7 +56819,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(79692))
+ return _sqlite3CorruptError(tls, int32(79715))
}
nRem = (*TBtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload
if nIn == nRem && nIn < uint32((*TMemPage)(unsafe.Pointer((*TBtCursor)(unsafe.Pointer(pDest)).FpPage)).FmaxLocal) {
@@ -56624,7 +56841,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(79717))
+ return _sqlite3CorruptError(tls, int32(79740))
}
ovflIn = _sqlite3Get4byte(tls, (*TBtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload+uintptr(nIn))
}
@@ -56733,7 +56950,7 @@ func _sqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags Tu8) (r int32) {
return *(*int32)(unsafe.Pointer(bp))
}
} else {
- return _sqlite3CorruptError(tls, int32(79813))
+ return _sqlite3CorruptError(tls, int32(79836))
}
}
_ = libc.Int32FromInt32(0)
@@ -56741,14 +56958,14 @@ func _sqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags Tu8) (r int32) {
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(79822))
+ return _sqlite3CorruptError(tls, int32(79845))
}
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(79826))
+ return _sqlite3CorruptError(tls, int32(79849))
}
if pCell < (*TMemPage)(unsafe.Pointer(pPage)).FaCellIdx+uintptr((*TMemPage)(unsafe.Pointer(pPage)).FnCell) {
- return _sqlite3CorruptError(tls, int32(79829))
+ return _sqlite3CorruptError(tls, int32(79852))
}
/* If the BTREE_SAVEPOSITION bit is on, then the cursor position must
** be preserved following this delete operation. If the current delete
@@ -56843,7 +57060,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(79920))
+ return _sqlite3CorruptError(tls, int32(79943))
}
nCell = int32((*(*func(*libc.TLS, uintptr, uintptr) Tu16)(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(pLeaf)).FxCellSize})))(tls, pLeaf, pCell))
_ = libc.Int32FromInt32(0)
@@ -56963,7 +57180,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(80036))
+ return _sqlite3CorruptError(tls, int32(80059))
}
*(*TPgno)(unsafe.Pointer(bp + 8))++
/* The new root-page may not be allocated on a pointer-map page, or the
@@ -57005,7 +57222,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(80084))
+ *(*int32)(unsafe.Pointer(bp + 12)) = _sqlite3CorruptError(tls, int32(80107))
}
if *(*int32)(unsafe.Pointer(bp + 12)) != SQLITE_OK {
_releasePage(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -57092,14 +57309,14 @@ func _clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno TPgno, freePageFlag int
_, _, _, _ = hdr, i, pCell, v2
_ = libc.Int32FromInt32(0)
if pgno > _btreePagecount(tls, pBt) {
- return _sqlite3CorruptError(tls, int32(80174))
+ return _sqlite3CorruptError(tls, int32(80197))
}
*(*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(80181))
+ *(*int32)(unsafe.Pointer(bp + 8)) = _sqlite3CorruptError(tls, int32(80204))
goto cleardatabasepage_out
}
hdr = int32((*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FhdrOffset)
@@ -57126,6 +57343,7 @@ func _clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno TPgno, freePageFlag int
}
goto _1
_1:
+ ;
i++
}
if !((*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).Fleaf != 0) {
@@ -57150,6 +57368,7 @@ func _clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno TPgno, freePageFlag int
}
}
cleardatabasepage_out:
+ ;
_releasePage(tls, *(*uintptr)(unsafe.Pointer(bp)))
return *(*int32)(unsafe.Pointer(bp + 8))
}
@@ -57237,7 +57456,7 @@ func _btreeDropTable(tls *libc.TLS, p uintptr, iTable TPgno, piMoved uintptr) (r
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if iTable > _btreePagecount(tls, pBt) {
- return _sqlite3CorruptError(tls, int32(80285))
+ return _sqlite3CorruptError(tls, int32(80308))
}
*(*int32)(unsafe.Pointer(bp)) = _sqlite3BtreeClearTable(tls, p, int32(iTable), uintptr(0))
if *(*int32)(unsafe.Pointer(bp)) != 0 {
@@ -57513,7 +57732,7 @@ func _checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr)
(*TIntegrityCk)(unsafe.Pointer(pCheck)).FnErr++
ap = va
if (*TIntegrityCk)(unsafe.Pointer(pCheck)).FerrMsg.FnChar != 0 {
- Xsqlite3_str_append(tls, pCheck+72, __ccgo_ts+4178, int32(1))
+ Xsqlite3_str_append(tls, pCheck+72, __ccgo_ts+4203, int32(1))
}
if (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx != 0 {
Xsqlite3_str_appendf(tls, pCheck+72, (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx, libc.VaList(bp+8, (*TIntegrityCk)(unsafe.Pointer(pCheck)).Fv0, (*TIntegrityCk)(unsafe.Pointer(pCheck)).Fv1, (*TIntegrityCk)(unsafe.Pointer(pCheck)).Fv2))
@@ -57565,11 +57784,11 @@ func _checkRef(tls *libc.TLS, pCheck uintptr, iPage TPgno) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
if iPage > (*TIntegrityCk)(unsafe.Pointer(pCheck)).FnCkPage || iPage == uint32(0) {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4180, libc.VaList(bp+8, iPage))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4205, libc.VaList(bp+8, iPage))
return int32(1)
}
if _getPageReferenced(tls, pCheck, iPage) != 0 {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4203, libc.VaList(bp+8, iPage))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4228, libc.VaList(bp+8, iPage))
return int32(1)
}
_setPageReferenced(tls, pCheck, iPage)
@@ -57595,11 +57814,11 @@ func _checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild TPgno, eType Tu8, iParen
if rc == int32(SQLITE_NOMEM) || rc == libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(12)<<libc.Int32FromInt32(8) {
_checkOom(tls, pCheck)
}
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4228, libc.VaList(bp+16, iChild))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4253, libc.VaList(bp+16, iChild))
return
}
if int32(*(*Tu8)(unsafe.Pointer(bp))) != int32(eType) || *(*TPgno)(unsafe.Pointer(bp + 4)) != iParent {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4257, libc.VaList(bp+16, iChild, int32(eType), iParent, int32(*(*Tu8)(unsafe.Pointer(bp))), *(*TPgno)(unsafe.Pointer(bp + 4))))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4282, libc.VaList(bp+16, iChild, int32(eType), iParent, int32(*(*Tu8)(unsafe.Pointer(bp))), *(*TPgno)(unsafe.Pointer(bp + 4))))
}
}
@@ -57626,7 +57845,7 @@ func _checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage TPgno, N
}
N--
if _sqlite3PagerGet(tls, (*TIntegrityCk)(unsafe.Pointer(pCheck)).FpPager, iPage, bp, 0) != 0 {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4311, libc.VaList(bp+16, iPage))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4336, libc.VaList(bp+16, iPage))
break
}
pOvflData = _sqlite3PagerGetData(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -57636,7 +57855,7 @@ func _checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage TPgno, N
_checkPtrmap(tls, pCheck, iPage, uint8(PTRMAP_FREEPAGE), uint32(0))
}
if n > (*TBtShared)(unsafe.Pointer((*TIntegrityCk)(unsafe.Pointer(pCheck)).FpBt)).FusableSize/uint32(4)-uint32(2) {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4333, libc.VaList(bp+16, iPage))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4358, libc.VaList(bp+16, iPage))
N--
} else {
i = 0
@@ -57651,6 +57870,7 @@ func _checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage TPgno, N
_checkRef(tls, pCheck, iFreePage)
goto _1
_1:
+ ;
i++
}
N -= n
@@ -57670,11 +57890,11 @@ func _checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage TPgno, N
}
if N != 0 && nErrAtStart == (*TIntegrityCk)(unsafe.Pointer(pCheck)).FnErr {
if isFreeList != 0 {
- v2 = __ccgo_ts + 4372
+ v2 = __ccgo_ts + 4397
} else {
- v2 = __ccgo_ts + 4377
+ v2 = __ccgo_ts + 4402
}
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4398, libc.VaList(bp+16, v2, expected-N, expected))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4423, libc.VaList(bp+16, v2, expected-N, expected))
}
}
@@ -57811,12 +58031,12 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
if _checkRef(tls, pCheck, iPage) != 0 {
return 0
}
- (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = __ccgo_ts + 4424
+ (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = __ccgo_ts + 4449
(*TIntegrityCk)(unsafe.Pointer(pCheck)).Fv1 = iPage
v1 = _btreeGetPage(tls, pBt, iPage, bp+8, 0)
rc = v1
if v1 != 0 {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4442, libc.VaList(bp+56, rc))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4467, libc.VaList(bp+56, rc))
if rc == libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(12)<<libc.Int32FromInt32(8) {
(*TIntegrityCk)(unsafe.Pointer(pCheck)).Frc = int32(SQLITE_NOMEM)
}
@@ -57830,20 +58050,20 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
rc = v2
if v2 != 0 {
_ = libc.Int32FromInt32(0) /* The only possible error from InitPage */
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4480, libc.VaList(bp+56, rc))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4505, libc.VaList(bp+56, rc))
goto end_of_check
}
v3 = _btreeComputeFreeSpace(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
rc = v3
if v3 != 0 {
_ = libc.Int32FromInt32(0)
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4518, libc.VaList(bp+56, rc))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4543, libc.VaList(bp+56, rc))
goto end_of_check
}
data = (*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))).FaData
hdr = int32((*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))).FhdrOffset)
/* Set up for cell analysis */
- (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = __ccgo_ts + 4540
+ (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = __ccgo_ts + 4565
contentOffset = uint32((int32(*(*Tu8)(unsafe.Pointer(data + uintptr(hdr+int32(5)))))<<libc.Int32FromInt32(8)|int32(*(*Tu8)(unsafe.Pointer(data + uintptr(hdr+int32(5)) + 1)))-libc.Int32FromInt32(1))&libc.Int32FromInt32(0xffff) + libc.Int32FromInt32(1))
_ = libc.Int32FromInt32(0) /* Enforced by btreeInitPage() */
/* EVIDENCE-OF: R-37002-32774 The two-byte integer at offset 3 gives the
@@ -57859,7 +58079,7 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
/* Analyze the right-child page of internal pages */
pgno = int32(_sqlite3Get4byte(tls, data+uintptr(hdr+int32(8))))
if (*TBtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0 {
- (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = __ccgo_ts + 4566
+ (*TIntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = __ccgo_ts + 4591
_checkPtrmap(tls, pCheck, uint32(pgno), uint8(PTRMAP_BTREE), iPage)
}
depth = _checkTreePage(tls, pCheck, uint32(pgno), bp, *(*Ti64)(unsafe.Pointer(bp)))
@@ -57883,14 +58103,14 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
pc = uint32(libc.X__builtin_bswap16(tls, *(*Tu16)(unsafe.Pointer(pCellIdx))))
pCellIdx -= uintptr(2)
if pc < contentOffset || pc > usableSize-uint32(4) {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4596, libc.VaList(bp+56, pc, contentOffset, usableSize-uint32(4)))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4621, libc.VaList(bp+56, pc, contentOffset, usableSize-uint32(4)))
doCoverageCheck = 0
goto _4
}
pCell = data + uintptr(pc)
(*(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))).FxParseCell})))(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), pCell, bp+24)
if pc+uint32((*(*TCellInfo)(unsafe.Pointer(bp + 24))).FnSize) > usableSize {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4626, 0)
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4651, 0)
doCoverageCheck = 0
goto _4
}
@@ -57902,7 +58122,7 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
v5 = libc.BoolInt32((*(*TCellInfo)(unsafe.Pointer(bp + 24))).FnKey >= *(*Ti64)(unsafe.Pointer(bp)))
}
if v5 != 0 {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4650, libc.VaList(bp+56, (*(*TCellInfo)(unsafe.Pointer(bp + 24))).FnKey))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4675, libc.VaList(bp+56, (*(*TCellInfo)(unsafe.Pointer(bp + 24))).FnKey))
}
*(*Ti64)(unsafe.Pointer(bp)) = (*(*TCellInfo)(unsafe.Pointer(bp + 24))).FnKey
keyCanBeEqual = 0 /* Only the first key on the page may ==maxKey */
@@ -57926,7 +58146,7 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
d2 = _checkTreePage(tls, pCheck, uint32(pgno), bp, *(*Ti64)(unsafe.Pointer(bp)))
keyCanBeEqual = 0
if d2 != depth {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4674, 0)
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4699, 0)
depth = d2
}
} else {
@@ -57935,6 +58155,7 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
}
goto _4
_4:
+ ;
i--
}
*(*Ti64)(unsafe.Pointer(piMinKey)) = *(*Ti64)(unsafe.Pointer(bp))
@@ -57958,6 +58179,7 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
_btreeHeapInsert(tls, heap, pc<<libc.Int32FromInt32(16)|(pc+size-uint32(1)))
goto _6
_6:
+ ;
i--
}
}
@@ -58001,7 +58223,7 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
prev = contentOffset - uint32(1) /* Implied first min-heap entry */
for _btreeHeapPull(tls, heap, bp+16) != 0 {
if prev&uint32(0xffff) >= *(*Tu32)(unsafe.Pointer(bp + 16))>>libc.Int32FromInt32(16) {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4699, libc.VaList(bp+56, *(*Tu32)(unsafe.Pointer(bp + 16))>>int32(16), iPage))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4724, libc.VaList(bp+56, *(*Tu32)(unsafe.Pointer(bp + 16))>>int32(16), iPage))
break
} else {
nFrag = int32(uint32(nFrag) + (*(*Tu32)(unsafe.Pointer(bp + 16))>>libc.Int32FromInt32(16) - prev&libc.Uint32FromInt32(0xffff) - libc.Uint32FromInt32(1)))
@@ -58015,10 +58237,11 @@ func _checkTreePage(tls *libc.TLS, pCheck uintptr, iPage TPgno, piMinKey uintptr
** number of fragmented free bytes within the cell content area.
*/
if *(*Tu32)(unsafe.Pointer(heap)) == uint32(0) && nFrag != int32(*(*Tu8)(unsafe.Pointer(data + uintptr(hdr+int32(7))))) {
- _checkAppendMsg(tls, pCheck, __ccgo_ts+4736, libc.VaList(bp+56, nFrag, int32(*(*Tu8)(unsafe.Pointer(data + uintptr(hdr+int32(7))))), iPage))
+ _checkAppendMsg(tls, pCheck, __ccgo_ts+4761, libc.VaList(bp+56, nFrag, int32(*(*Tu8)(unsafe.Pointer(data + uintptr(hdr+int32(7))))), iPage))
}
}
end_of_check:
+ ;
if !(doCoverageCheck != 0) {
(*TMemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))).FisInit = savedIsInit
}
@@ -58108,7 +58331,7 @@ func _sqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uin
/* Check the integrity of the freelist
*/
if bCkFreelist != 0 {
- (*(*TIntegrityCk)(unsafe.Pointer(bp))).FzPfx = __ccgo_ts + 4788
+ (*(*TIntegrityCk)(unsafe.Pointer(bp))).FzPfx = __ccgo_ts + 4813
_checkList(tls, bp, int32(1), _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+32), _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36))
(*(*TIntegrityCk)(unsafe.Pointer(bp))).FzPfx = uintptr(0)
}
@@ -58127,15 +58350,16 @@ func _sqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uin
}
goto _1
_1:
+ ;
i++
}
mxInHdr = _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+52)
if mx != mxInHdr {
- _checkAppendMsg(tls, bp, __ccgo_ts+4799, libc.VaList(bp+240, mx, mxInHdr))
+ _checkAppendMsg(tls, bp, __ccgo_ts+4824, libc.VaList(bp+240, mx, mxInHdr))
}
} else {
if _sqlite3Get4byte(tls, (*TMemPage)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+64) != uint32(0) {
- _checkAppendMsg(tls, bp, __ccgo_ts+4844, 0)
+ _checkAppendMsg(tls, bp, __ccgo_ts+4869, 0)
}
}
}
@@ -58155,6 +58379,7 @@ func _sqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uin
_checkTreePage(tls, bp, *(*TPgno)(unsafe.Pointer(aRoot + uintptr(i)*4)), bp+224, libc.Int64FromUint32(0xffffffff)|libc.Int64FromInt32(0x7fffffff)<<libc.Int32FromInt32(32))
goto _2
_2:
+ ;
i++
}
(*Tsqlite3)(unsafe.Pointer((*TBtShared)(unsafe.Pointer(pBt)).Fdb)).Fflags = savedDbFlags
@@ -58170,19 +58395,21 @@ func _sqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uin
** references to pointer-map pages.
*/
if _getPageReferenced(tls, bp, i) == 0 && (_ptrmapPageno(tls, pBt, i) != i || !((*TBtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0)) {
- _checkAppendMsg(tls, bp, __ccgo_ts+4899, libc.VaList(bp+240, i))
+ _checkAppendMsg(tls, bp, __ccgo_ts+4924, libc.VaList(bp+240, i))
}
if _getPageReferenced(tls, bp, i) != 0 && (_ptrmapPageno(tls, pBt, i) == i && (*TBtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0) {
- _checkAppendMsg(tls, bp, __ccgo_ts+4919, libc.VaList(bp+240, i))
+ _checkAppendMsg(tls, bp, __ccgo_ts+4944, libc.VaList(bp+240, i))
}
goto _3
_3:
+ ;
i++
}
}
/* Clean up and report errors.
*/
integrity_ck_cleanup:
+ ;
_sqlite3PageFree(tls, (*(*TIntegrityCk)(unsafe.Pointer(bp))).Fheap)
Xsqlite3_free(tls, (*(*TIntegrityCk)(unsafe.Pointer(bp))).FaPgRef)
*(*int32)(unsafe.Pointer(pnErr)) = (*(*TIntegrityCk)(unsafe.Pointer(bp))).FnErr
@@ -58640,7 +58867,7 @@ func _findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) (r ui
}
}
if i < 0 {
- _sqlite3ErrorWithMsg(tls, pErrorDb, int32(SQLITE_ERROR), __ccgo_ts+4951, libc.VaList(bp+432, zDb))
+ _sqlite3ErrorWithMsg(tls, pErrorDb, int32(SQLITE_ERROR), __ccgo_ts+4976, libc.VaList(bp+432, zDb))
return uintptr(0)
}
return (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(pDb)).FaDb + uintptr(i)*32))).FpBt
@@ -58669,7 +58896,7 @@ func _setDestPgsz(tls *libc.TLS, p uintptr) (r int32) {
// */
func _checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
if _sqlite3BtreeTxnState(tls, p) != SQLITE_TXN_NONE {
- _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+4971, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+4996, 0)
return int32(SQLITE_ERROR)
}
return SQLITE_OK
@@ -58699,7 +58926,7 @@ func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcD
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(pSrcDb)).Fmutex)
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(pDestDb)).Fmutex)
if pSrcDb == pDestDb {
- _sqlite3ErrorWithMsg(tls, pDestDb, int32(SQLITE_ERROR), __ccgo_ts+5002, 0)
+ _sqlite3ErrorWithMsg(tls, pDestDb, int32(SQLITE_ERROR), __ccgo_ts+5027, 0)
p = uintptr(0)
} else {
/* Allocate space for a new sqlite3_backup object...
@@ -58822,6 +59049,7 @@ func _backupOnePage(tls *libc.TLS, p uintptr, iSrcPg TPgno, zSrcData uintptr, bU
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp)))
goto _2
_2:
+ ;
iOff += int64(nDestPgsz)
}
return rc
@@ -58960,6 +59188,7 @@ func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) (r int32) {
(*Tsqlite3_backup)(unsafe.Pointer(p)).FiNext++
goto _3
_3:
+ ;
ii++
}
if rc == SQLITE_OK {
@@ -59054,6 +59283,7 @@ func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) (r int32) {
}
goto _4
_4:
+ ;
iPg++
}
if rc == SQLITE_OK {
@@ -59081,6 +59311,7 @@ func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) (r int32) {
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp + 24)))
goto _6
_6:
+ ;
iOff += int64(pgszSrc)
}
if rc == SQLITE_OK {
@@ -59237,6 +59468,7 @@ func _backupUpdate(tls *libc.TLS, p uintptr, iPage TPgno, aData uintptr) {
}
goto _2
_2:
+ ;
v1 = (*Tsqlite3_backup)(unsafe.Pointer(p)).FpNext
p = v1
if !(v1 != uintptr(0)) {
@@ -59276,6 +59508,7 @@ func _sqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) {
(*Tsqlite3_backup)(unsafe.Pointer(p)).FiNext = uint32(1)
goto _1
_1:
+ ;
p = (*Tsqlite3_backup)(unsafe.Pointer(p)).FpNext
}
}
@@ -59339,6 +59572,7 @@ func _sqlite3BtreeCopyFile(tls *libc.TLS, pTo uintptr, pFrom uintptr) (r int32)
}
_ = libc.Int32FromInt32(0)
copy_finished:
+ ;
_sqlite3BtreeLeave(tls, pFrom)
_sqlite3BtreeLeave(tls, pTo)
return rc
@@ -59396,7 +59630,7 @@ func _vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) {
} else {
v1 = *(*float64)(unsafe.Pointer(p))
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5042, libc.VaList(bp+48, v1))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5067, libc.VaList(bp+48, v1))
_ = libc.Int32FromInt32(0)
*(*uint8)(unsafe.Pointer(zBuf + uintptr((*(*TStrAccum)(unsafe.Pointer(bp))).FnChar))) = uint8(0) /* Fast version of sqlite3StrAccumFinish(&acc) */
(*TMem)(unsafe.Pointer(p)).Fn = int32((*(*TStrAccum)(unsafe.Pointer(bp))).FnChar)
@@ -60138,7 +60372,7 @@ func _sqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff Tu8, encoding Tu8) (r
return SQLITE_OK
}
switch int32(aff) {
- case int32(SQLITE_AFF_BLOB):
+ case int32(SQLITE_AFF_BLOB): /* Really a cast to BLOB */
if int32((*TMem)(unsafe.Pointer(pMem)).Fflags)&int32(MEM_Blob) == 0 {
_sqlite3ValueApplyAffinity(tls, pMem, uint8(SQLITE_AFF_TEXT), encoding)
_ = libc.Int32FromInt32(0)
@@ -60493,6 +60727,7 @@ func _sqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n Ti64, enc T
}
goto _1
_1:
+ ;
nByte += int64(2)
}
}
@@ -60586,7 +60821,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(83562))
+ return _sqlite3CorruptError(tls, int32(83585))
}
v1 = _sqlite3VdbeMemClearAndResize(tls, pMem, int32(amt+uint32(1)))
rc = v1
@@ -60792,6 +61027,7 @@ func _valueNew(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
(*(*TMem)(unsafe.Pointer((*TUnpackedRecord)(unsafe.Pointer(pRec)).FaMem + uintptr(i)*56))).Fdb = db
goto _1
_1:
+ ;
i++
}
} else {
@@ -60876,6 +61112,7 @@ func _valueFromFunction(tls *libc.TLS, db uintptr, p uintptr, enc Tu8, aff Tu8,
}
goto _1
_1:
+ ;
i++
}
}
@@ -60902,6 +61139,7 @@ func _valueFromFunction(tls *libc.TLS, db uintptr, p uintptr, enc Tu8, aff Tu8,
}
}
value_from_function_out:
+ ;
if rc != SQLITE_OK {
pVal = uintptr(0)
(*TParse)(unsafe.Pointer((*TValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse)).Frc = rc
@@ -60915,6 +61153,7 @@ value_from_function_out:
_sqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8)))
goto _2
_2:
+ ;
i++
}
_sqlite3DbFreeNN(tls, db, apVal)
@@ -60988,7 +61227,7 @@ func _valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc Tu8, affinity
pExpr = (*TExpr)(unsafe.Pointer(pExpr)).FpLeft
op = int32((*TExpr)(unsafe.Pointer(pExpr)).Fop)
negInt = -int32(1)
- zNeg = __ccgo_ts + 5049
+ zNeg = __ccgo_ts + 5074
}
if op == int32(TK_STRING) || op == int32(TK_FLOAT) || op == int32(TK_INTEGER) {
*(*uintptr)(unsafe.Pointer(bp)) = _valueNew(tls, db, pCtx)
@@ -60998,7 +61237,7 @@ func _valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc Tu8, affinity
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_IntValue)) != uint32(0) {
_sqlite3VdbeMemSetInt64(tls, *(*uintptr)(unsafe.Pointer(bp)), int64(*(*int32)(unsafe.Pointer(&(*TExpr)(unsafe.Pointer(pExpr)).Fu)))*int64(negInt))
} else {
- zVal = _sqlite3MPrintf(tls, db, __ccgo_ts+5051, libc.VaList(bp+16, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ zVal = _sqlite3MPrintf(tls, db, __ccgo_ts+5076, libc.VaList(bp+16, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
if zVal == uintptr(0) {
goto no_mem
}
@@ -61075,6 +61314,7 @@ func _valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc Tu8, affinity
*(*uintptr)(unsafe.Pointer(ppVal)) = *(*uintptr)(unsafe.Pointer(bp))
return rc
no_mem:
+ ;
if pCtx == uintptr(0) || (*TParse)(unsafe.Pointer((*TValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse)).FnErr == 0 {
_sqlite3OomFault(tls, db)
}
@@ -61242,6 +61482,7 @@ func _sqlite3Stat4ProbeSetValue(tls *libc.TLS, pParse uintptr, pIdx uintptr, ppR
nExtract++
goto _1
_1:
+ ;
i++
}
}
@@ -61296,7 +61537,7 @@ func _sqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
}
iHdr = int32(uint8(v1))
if *(*int32)(unsafe.Pointer(bp + 4)) > nRec || iHdr >= *(*int32)(unsafe.Pointer(bp + 4)) {
- return _sqlite3CorruptError(tls, int32(84227))
+ return _sqlite3CorruptError(tls, int32(84250))
}
iField = *(*int32)(unsafe.Pointer(bp + 4))
i = 0
@@ -61312,16 +61553,17 @@ func _sqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC
}
iHdr += int32(uint8(v3))
if iHdr > *(*int32)(unsafe.Pointer(bp + 4)) {
- return _sqlite3CorruptError(tls, int32(84233))
+ return _sqlite3CorruptError(tls, int32(84256))
}
szField = int32(_sqlite3VdbeSerialTypeLen(tls, *(*Tu32)(unsafe.Pointer(bp))))
iField += szField
goto _2
_2:
+ ;
i++
}
if iField > nRec {
- return _sqlite3CorruptError(tls, int32(84239))
+ return _sqlite3CorruptError(tls, int32(84262))
}
if pMem == uintptr(0) {
v4 = _sqlite3ValueNew(tls, db)
@@ -61359,6 +61601,7 @@ func _sqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) {
_sqlite3VdbeMemRelease(tls, aMem+uintptr(i)*56)
goto _1
_1:
+ ;
i++
}
_sqlite3KeyInfoUnref(tls, (*TUnpackedRecord)(unsafe.Pointer(pRec)).FpKeyInfo)
@@ -61762,10 +62005,12 @@ func _sqlite3VdbeMultiLoad(tls *libc.TLS, p uintptr, iDest int32, zTypes uintptr
}
goto _1
_1:
+ ;
i++
}
_sqlite3VdbeAddOp2(tls, p, int32(OP_ResultRow), iDest, i)
skip_op_resultrow:
+ ;
_ = ap
}
@@ -61923,6 +62168,7 @@ func _sqlite3VdbeAddParseSchemaOp(tls *libc.TLS, p uintptr, iDb int32, zWhere ui
_sqlite3VdbeUsesBtree(tls, p, j)
goto _1
_1:
+ ;
j++
}
_sqlite3MayAbort(tls, (*TVdbe)(unsafe.Pointer(p)).FpParse)
@@ -62049,6 +62295,7 @@ func _sqlite3VdbeReusable(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -62151,6 +62398,7 @@ func _resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) {
pOp -= 24
}
resolve_p2_values_loop_exit:
+ ;
if aLabel != 0 {
_sqlite3DbNNFreeNN(tls, (*TVdbe)(unsafe.Pointer(p)).Fdb, (*TParse)(unsafe.Pointer(pParse)).FaLabel)
(*TParse)(unsafe.Pointer(pParse)).FaLabel = uintptr(0)
@@ -62259,6 +62507,7 @@ func _sqlite3VdbeAddOpList(tls *libc.TLS, p uintptr, nOp int32, aOp uintptr, iLi
_ = iLineno
goto _2
_2:
+ ;
i++
aOp += 4
pOut += 24
@@ -62688,7 +62937,7 @@ func _sqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) (r uintptr) {
case -int32(8):
pKeyInfo = *(*uintptr)(unsafe.Pointer(pOp + 16))
_ = libc.Int32FromInt32(0)
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5056, libc.VaList(bp+40, int32((*TKeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5081, libc.VaList(bp+40, int32((*TKeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)))
j = 0
for {
if !(j < int32((*TKeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)) {
@@ -62701,39 +62950,40 @@ func _sqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) (r uintptr) {
v2 = __ccgo_ts + 1648
}
zColl = v2
- if libc.Xstrcmp(tls, zColl, __ccgo_ts+5061) == 0 {
- zColl = __ccgo_ts + 5068
+ if libc.Xstrcmp(tls, zColl, __ccgo_ts+5086) == 0 {
+ zColl = __ccgo_ts + 5093
}
if int32(*(*Tu8)(unsafe.Pointer((*TKeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&int32(KEYINFO_ORDER_DESC) != 0 {
- v3 = __ccgo_ts + 5049
+ v3 = __ccgo_ts + 5074
} else {
v3 = __ccgo_ts + 1648
}
if int32(*(*Tu8)(unsafe.Pointer((*TKeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&int32(KEYINFO_ORDER_BIGNULL) != 0 {
- v4 = __ccgo_ts + 5070
+ v4 = __ccgo_ts + 5095
} else {
v4 = __ccgo_ts + 1648
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5073, libc.VaList(bp+40, v3, v4, zColl))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5098, libc.VaList(bp+40, v3, v4, zColl))
goto _1
_1:
+ ;
j++
}
- Xsqlite3_str_append(tls, bp, __ccgo_ts+5081, int32(1))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+5106, int32(1))
case -int32(2):
pColl1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
_ = libc.Int32FromInt32(0)
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5097, libc.VaList(bp+40, (*TCollSeq)(unsafe.Pointer(pColl1)).FzName, _encnames[(*TCollSeq)(unsafe.Pointer(pColl1)).Fenc]))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5122, libc.VaList(bp+40, (*TCollSeq)(unsafe.Pointer(pColl1)).FzName, _encnames[(*TCollSeq)(unsafe.Pointer(pColl1)).Fenc]))
case -int32(7):
pDef = *(*uintptr)(unsafe.Pointer(pOp + 16))
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5106, libc.VaList(bp+40, (*TFuncDef)(unsafe.Pointer(pDef)).FzName, int32((*TFuncDef)(unsafe.Pointer(pDef)).FnArg)))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5131, libc.VaList(bp+40, (*TFuncDef)(unsafe.Pointer(pDef)).FzName, int32((*TFuncDef)(unsafe.Pointer(pDef)).FnArg)))
case -int32(15):
pDef1 = (*Tsqlite3_context)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpFunc
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5106, libc.VaList(bp+40, (*TFuncDef)(unsafe.Pointer(pDef1)).FzName, int32((*TFuncDef)(unsafe.Pointer(pDef1)).FnArg)))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5131, libc.VaList(bp+40, (*TFuncDef)(unsafe.Pointer(pDef1)).FzName, int32((*TFuncDef)(unsafe.Pointer(pDef1)).FnArg)))
case -int32(13):
Xsqlite3_str_appendf(tls, bp, __ccgo_ts+1404, libc.VaList(bp+40, *(*Ti64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
case -int32(3):
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5113, libc.VaList(bp+40, (*TOp)(unsafe.Pointer(pOp)).Fp4.Fi))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5138, libc.VaList(bp+40, (*TOp)(unsafe.Pointer(pOp)).Fp4.Fi))
case -int32(12):
Xsqlite3_str_appendf(tls, bp, __ccgo_ts+1371, libc.VaList(bp+40, *(*float64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))))
case -int32(10):
@@ -62751,14 +63001,14 @@ func _sqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) (r uintptr) {
zP4 = __ccgo_ts + 1649
} else {
_ = libc.Int32FromInt32(0)
- zP4 = __ccgo_ts + 5116
+ zP4 = __ccgo_ts + 5141
}
}
}
}
case -int32(11):
pVtab = (*TVTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5123, libc.VaList(bp+40, pVtab))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5148, libc.VaList(bp+40, pVtab))
case -int32(14):
ai = *(*uintptr)(unsafe.Pointer(pOp + 16))
n = *(*Tu32)(unsafe.Pointer(ai)) /* The first element of an INTARRAY is always the
@@ -62773,14 +63023,15 @@ func _sqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) (r uintptr) {
} else {
v6 = int32(',')
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5131, libc.VaList(bp+40, v6, *(*Tu32)(unsafe.Pointer(ai + uintptr(i)*4))))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+5156, libc.VaList(bp+40, v6, *(*Tu32)(unsafe.Pointer(ai + uintptr(i)*4))))
goto _5
_5:
+ ;
i++
}
- Xsqlite3_str_append(tls, bp, __ccgo_ts+5136, int32(1))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+5161, int32(1))
case -int32(4):
- zP4 = __ccgo_ts + 5138
+ zP4 = __ccgo_ts + 5163
case -int32(5):
zP4 = (*TTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FzName
default:
@@ -62796,10 +63047,10 @@ func _sqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) (r uintptr) {
}
var _encnames = [4]uintptr{
- 0: __ccgo_ts + 5083,
- 1: __ccgo_ts + 5085,
- 2: __ccgo_ts + 5087,
- 3: __ccgo_ts + 5092,
+ 0: __ccgo_ts + 5108,
+ 1: __ccgo_ts + 5110,
+ 2: __ccgo_ts + 5112,
+ 3: __ccgo_ts + 5117,
}
// C documentation
@@ -62864,6 +63115,7 @@ func _sqlite3VdbeEnter(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -62890,6 +63142,7 @@ func _vdbeLeave(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -62929,6 +63182,7 @@ func _initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags Tu16) {
p += 56
goto _2
_2:
+ ;
N--
v1 = N
if !(v1 > 0) {
@@ -62961,6 +63215,7 @@ func _releaseMemArray(tls *libc.TLS, p uintptr, N int32) {
}
goto _2
_2:
+ ;
p += 56
v1 = p
if !(v1 < pEnd) {
@@ -62996,6 +63251,7 @@ func _releaseMemArray(tls *libc.TLS, p uintptr, N int32) {
}
goto _4
_4:
+ ;
p += 56
v3 = p
if !(v3 < pEnd) {
@@ -63063,6 +63319,7 @@ func _sqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32,
nRow += (*TSubProgram)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(apSub + uintptr(i)*8)))).FnOp
goto _1
_1:
+ ;
i++
}
}
@@ -63093,6 +63350,7 @@ func _sqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32,
_ = libc.Int32FromInt32(0)
goto _3
_3:
+ ;
j++
}
aOp = (*TSubProgram)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(apSub + uintptr(j)*8)))).FaOp
@@ -63114,6 +63372,7 @@ func _sqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32,
}
goto _4
_4:
+ ;
j1++
}
if j1 == nSub {
@@ -63171,6 +63430,7 @@ func _sqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
_releaseMemArray(tls, aMem, (*TVdbeFrame)(unsafe.Pointer(p)).FnChildMem)
@@ -63525,6 +63785,7 @@ func _closeCursorsInFrame(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -63577,6 +63838,7 @@ func _closeAllCursors(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
pFrame = (*TVdbeFrame)(unsafe.Pointer(pFrame)).FpParent
}
_sqlite3VdbeFrameRestore(tls, pFrame)
@@ -63712,6 +63974,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
if rc != SQLITE_OK {
@@ -63745,6 +64008,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
/* Do the commit only if all databases successfully complete phase 1.
@@ -63763,6 +64027,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _3
_3:
+ ;
i++
}
if rc == SQLITE_OK {
@@ -63777,7 +64042,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
retryCount = 0
/* Select a super-journal file name */
nMainFile = _sqlite3Strlen30(tls, zMainFile)
- zSuper = _sqlite3MPrintf(tls, db, __ccgo_ts+5146, libc.VaList(bp+24, 0, zMainFile, 0))
+ zSuper = _sqlite3MPrintf(tls, db, __ccgo_ts+5171, libc.VaList(bp+24, 0, zMainFile, 0))
if zSuper == uintptr(0) {
return int32(SQLITE_NOMEM)
}
@@ -63785,18 +64050,18 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
for cond := true; cond; cond = rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
if retryCount != 0 {
if retryCount > int32(100) {
- Xsqlite3_log(tls, int32(SQLITE_FULL), __ccgo_ts+5158, libc.VaList(bp+24, zSuper))
+ Xsqlite3_log(tls, int32(SQLITE_FULL), __ccgo_ts+5183, libc.VaList(bp+24, zSuper))
_sqlite3OsDelete(tls, pVfs, zSuper, 0)
break
} else {
if retryCount == int32(1) {
- Xsqlite3_log(tls, int32(SQLITE_FULL), __ccgo_ts+5172, libc.VaList(bp+24, zSuper))
+ Xsqlite3_log(tls, int32(SQLITE_FULL), __ccgo_ts+5197, libc.VaList(bp+24, zSuper))
}
}
}
retryCount++
Xsqlite3_randomness(tls, int32(4), bp+12)
- Xsqlite3_snprintf(tls, int32(13), zSuper+uintptr(nMainFile), __ccgo_ts+5187, libc.VaList(bp+24, *(*Tu32)(unsafe.Pointer(bp + 12))>>libc.Int32FromInt32(8)&uint32(0xffffff), *(*Tu32)(unsafe.Pointer(bp + 12))&uint32(0xff)))
+ Xsqlite3_snprintf(tls, int32(13), zSuper+uintptr(nMainFile), __ccgo_ts+5212, libc.VaList(bp+24, *(*Tu32)(unsafe.Pointer(bp + 12))>>libc.Int32FromInt32(8)&uint32(0xffffff), *(*Tu32)(unsafe.Pointer(bp + 12))&uint32(0xff)))
/* The antipenultimate character of the super-journal name must
** be "9" to avoid name collisions when using 8+3 filenames. */
_ = libc.Int32FromInt32(0)
@@ -63839,6 +64104,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _4
_4:
+ ;
i++
}
/* Sync the super-journal file. If the IOCAP_SEQUENTIAL device
@@ -63875,6 +64141,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _7
_7:
+ ;
i++
}
_sqlite3OsCloseFree(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -63912,6 +64179,7 @@ func _vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _8
_8:
+ ;
i++
}
_sqlite3EndBenignMalloc(tls)
@@ -63981,6 +64249,7 @@ func _vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) (r int32) {
}
goto _1
_1:
+ ;
i++
}
(*Tsqlite3)(unsafe.Pointer(db)).FnStatement--
@@ -64029,7 +64298,7 @@ func _sqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) (r int32) {
if deferred != 0 && (*Tsqlite3)(unsafe.Pointer(db)).FnDeferredCons+(*Tsqlite3)(unsafe.Pointer(db)).FnDeferredImmCons > 0 || !(deferred != 0) && (*TVdbe)(unsafe.Pointer(p)).FnFkConstraint > 0 {
(*TVdbe)(unsafe.Pointer(p)).Frc = libc.Int32FromInt32(SQLITE_CONSTRAINT) | libc.Int32FromInt32(3)<<libc.Int32FromInt32(8)
(*TVdbe)(unsafe.Pointer(p)).FerrorAction = uint8(OE_Abort)
- _sqlite3VdbeError(tls, p, __ccgo_ts+5200, 0)
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5225, 0)
if int32((*TVdbe)(unsafe.Pointer(p)).FprepFlags)&int32(SQLITE_PREPARE_SAVESQL) == 0 {
return int32(SQLITE_ERROR)
}
@@ -64435,6 +64704,7 @@ func _sqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) {
_sqlite3DbFree(tls, db, pSub)
goto _1
_1:
+ ;
pSub = pNext
}
if int32((*TVdbe)(unsafe.Pointer(p)).FeVdbeState) != VDBE_INIT_STATE {
@@ -64496,7 +64766,7 @@ func _sqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) (r int32) {
return rc
}
if *(*int32)(unsafe.Pointer(bp)) != 0 {
- return _sqlite3CorruptError(tls, int32(88088))
+ return _sqlite3CorruptError(tls, int32(88111))
}
(*TVdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto = uint8(0)
(*TVdbeCursor)(unsafe.Pointer(p)).FcacheStatus = uint32(CACHE_STALE)
@@ -64813,16 +65083,36 @@ func _serialGet(tls *libc.TLS, buf uintptr, serial_type Tu32, pMem uintptr) {
}
}
+func _serialGet7(tls *libc.TLS, buf uintptr, pMem uintptr) (r int32) {
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+ var y Tu32
+ var _ /* x at bp+0 */ Tu64
+ _ = y
+ *(*Tu64)(unsafe.Pointer(bp)) = uint64(uint32(*(*uint8)(unsafe.Pointer(buf)))<<libc.Int32FromInt32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(buf + 1)))<<libc.Int32FromInt32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(buf + 2)))<<libc.Int32FromInt32(8)) | uint32(*(*uint8)(unsafe.Pointer(buf + 3))))
+ y = uint32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(4))))<<libc.Int32FromInt32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(4) + 1)))<<libc.Int32FromInt32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(4) + 2)))<<libc.Int32FromInt32(8)) | uint32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(4) + 3)))
+ *(*Tu64)(unsafe.Pointer(bp)) = *(*Tu64)(unsafe.Pointer(bp))<<libc.Int32FromInt32(32) + uint64(y)
+ _ = libc.Int32FromInt32(0)
+ libc.Xmemcpy(tls, pMem, bp, uint64(8))
+ if *(*Tu64)(unsafe.Pointer(bp))&(libc.Uint64FromInt32(0x7ff)<<libc.Int32FromInt32(52)) == libc.Uint64FromInt32(0x7ff)<<libc.Int32FromInt32(52) && *(*Tu64)(unsafe.Pointer(bp))&(libc.Uint64FromInt32(1)<<libc.Int32FromInt32(52)-libc.Uint64FromInt32(1)) != uint64(0) {
+ (*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Null)
+ return int32(1)
+ }
+ (*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Real)
+ return 0
+}
+
func _sqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type Tu32, pMem uintptr) {
switch serial_type {
- case uint32(10):
+ case uint32(10): /* Internal use only: NULL with virtual table
+ ** UPDATE no-change flag set */
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(libc.Int32FromInt32(MEM_Null) | libc.Int32FromInt32(MEM_Zero))
(*TMem)(unsafe.Pointer(pMem)).Fn = 0
*(*int32)(unsafe.Pointer(&(*TMem)(unsafe.Pointer(pMem)).Fu)) = 0
return
- case uint32(11):
+ case uint32(11): /* Reserved for future use */
fallthrough
- case uint32(0):
+ case uint32(0): /* Null */
/* EVIDENCE-OF: R-24078-09375 Value is a NULL. */
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Null)
return
@@ -64832,40 +65122,40 @@ func _sqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type Tu32, pMem ui
*(*Ti64)(unsafe.Pointer(pMem)) = int64(int8(*(*uint8)(unsafe.Pointer(buf))))
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Int)
return
- case uint32(2):
+ case uint32(2): /* 2-byte signed integer */
/* EVIDENCE-OF: R-49794-35026 Value is a big-endian 16-bit
** twos-complement integer. */
*(*Ti64)(unsafe.Pointer(pMem)) = int64(libc.Int32FromInt32(256)*int32(int8(*(*uint8)(unsafe.Pointer(buf)))) | int32(*(*uint8)(unsafe.Pointer(buf + 1))))
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Int)
return
- case uint32(3):
+ case uint32(3): /* 3-byte signed integer */
/* EVIDENCE-OF: R-37839-54301 Value is a big-endian 24-bit
** twos-complement integer. */
*(*Ti64)(unsafe.Pointer(pMem)) = int64(libc.Int32FromInt32(65536)*int32(int8(*(*uint8)(unsafe.Pointer(buf)))) | int32(*(*uint8)(unsafe.Pointer(buf + 1)))<<libc.Int32FromInt32(8) | int32(*(*uint8)(unsafe.Pointer(buf + 2))))
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Int)
return
- case uint32(4):
+ case uint32(4): /* 4-byte signed integer */
/* EVIDENCE-OF: R-01849-26079 Value is a big-endian 32-bit
** twos-complement integer. */
*(*Ti64)(unsafe.Pointer(pMem)) = int64(libc.Int32FromInt32(16777216)*int32(int8(*(*uint8)(unsafe.Pointer(buf)))) | int32(*(*uint8)(unsafe.Pointer(buf + 1)))<<libc.Int32FromInt32(16) | int32(*(*uint8)(unsafe.Pointer(buf + 2)))<<libc.Int32FromInt32(8) | int32(*(*uint8)(unsafe.Pointer(buf + 3))))
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Int)
return
- case uint32(5):
+ case uint32(5): /* 6-byte signed integer */
/* EVIDENCE-OF: R-50385-09674 Value is a big-endian 48-bit
** twos-complement integer. */
*(*Ti64)(unsafe.Pointer(pMem)) = int64(uint32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(2))))<<libc.Int32FromInt32(24)|uint32(int32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(2) + 1)))<<libc.Int32FromInt32(16))|uint32(int32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(2) + 2)))<<libc.Int32FromInt32(8))|uint32(*(*uint8)(unsafe.Pointer(buf + libc.UintptrFromInt32(2) + 3)))) + libc.Int64FromInt32(1)<<libc.Int32FromInt32(32)*int64(libc.Int32FromInt32(256)*int32(int8(*(*uint8)(unsafe.Pointer(buf))))|int32(*(*uint8)(unsafe.Pointer(buf + 1))))
(*TMem)(unsafe.Pointer(pMem)).Fflags = uint16(MEM_Int)
return
- case uint32(6):
+ case uint32(6): /* 8-byte signed integer */
fallthrough
- case uint32(7):
+ case uint32(7): /* IEEE floating point */
/* These use local variables, so do them in a separate routine
** to avoid having to move the frame pointer in the common case */
_serialGet(tls, buf, serial_type, pMem)
return
- case uint32(8):
+ case uint32(8): /* Integer 0 */
fallthrough
- case uint32(9):
+ case uint32(9): /* Integer 1 */
/* EVIDENCE-OF: R-12976-22893 Value is the integer 0. */
/* EVIDENCE-OF: R-18143-12121 Value is the integer 1. */
*(*Ti64)(unsafe.Pointer(pMem)) = int64(serial_type - uint32(8))
@@ -65045,6 +65335,7 @@ func _isAllZero(tls *libc.TLS, z uintptr, n int32) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return int32(1)
@@ -65353,7 +65644,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(89038)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(89078)))
return 0 /* Corruption */
}
/* Only needed by assert() statements */
@@ -65377,7 +65668,7 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
rc = -int32(1)
} else {
if *(*Tu32)(unsafe.Pointer(bp + 68)) == uint32(7) {
- _sqlite3VdbeSerialGet(tls, aKey1+uintptr(d1), *(*Tu32)(unsafe.Pointer(bp + 68)), bp+8)
+ _serialGet7(tls, aKey1+uintptr(d1), bp+8)
rc = -_sqlite3IntFloatCompare(tls, *(*Ti64)(unsafe.Pointer(pRhs)), *(*float64)(unsafe.Pointer(bp + 8)))
} else {
lhs = _vdbeRecordDecodeInt(tls, *(*Tu32)(unsafe.Pointer(bp + 68)), aKey1+uintptr(d1))
@@ -65410,16 +65701,22 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
if *(*Tu32)(unsafe.Pointer(bp + 68)) == uint32(0) {
rc = -int32(1)
} else {
- _sqlite3VdbeSerialGet(tls, aKey1+uintptr(d1), *(*Tu32)(unsafe.Pointer(bp + 68)), bp+8)
if *(*Tu32)(unsafe.Pointer(bp + 68)) == uint32(7) {
- if *(*float64)(unsafe.Pointer(bp + 8)) < *(*float64)(unsafe.Pointer(pRhs)) {
- rc = -int32(1)
+ if _serialGet7(tls, aKey1+uintptr(d1), bp+8) != 0 {
+ rc = -int32(1) /* mem1 is a NaN */
} else {
- if *(*float64)(unsafe.Pointer(bp + 8)) > *(*float64)(unsafe.Pointer(pRhs)) {
- rc = +libc.Int32FromInt32(1)
+ if *(*float64)(unsafe.Pointer(bp + 8)) < *(*float64)(unsafe.Pointer(pRhs)) {
+ rc = -int32(1)
+ } else {
+ if *(*float64)(unsafe.Pointer(bp + 8)) > *(*float64)(unsafe.Pointer(pRhs)) {
+ rc = +libc.Int32FromInt32(1)
+ } else {
+ _ = libc.Int32FromInt32(0)
+ }
}
}
} else {
+ _sqlite3VdbeSerialGet(tls, aKey1+uintptr(d1), *(*Tu32)(unsafe.Pointer(bp + 68)), bp+8)
rc = _sqlite3IntFloatCompare(tls, *(*Ti64)(unsafe.Pointer(bp + 8)), *(*float64)(unsafe.Pointer(pRhs)))
}
}
@@ -65442,7 +65739,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(89115)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(89159)))
return 0 /* Corruption */
} else {
if *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)) != 0 {
@@ -65478,7 +65775,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(89145)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(89189)))
return 0 /* Corruption */
} else {
if int32((*TMem)(unsafe.Pointer(pRhs)).Fflags)&int32(MEM_Zero) != 0 {
@@ -65503,7 +65800,11 @@ func _sqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr
}
} else {
*(*Tu32)(unsafe.Pointer(bp + 68)) = uint32(*(*uint8)(unsafe.Pointer(aKey1 + uintptr(idx1))))
- rc = libc.BoolInt32(*(*Tu32)(unsafe.Pointer(bp + 68)) != uint32(0) && *(*Tu32)(unsafe.Pointer(bp + 68)) != uint32(10))
+ if *(*Tu32)(unsafe.Pointer(bp + 68)) == uint32(0) || *(*Tu32)(unsafe.Pointer(bp + 68)) == uint32(10) || *(*Tu32)(unsafe.Pointer(bp + 68)) == uint32(7) && _serialGet7(tls, aKey1+uintptr(d1), bp+8) != 0 {
+ _ = libc.Int32FromInt32(0)
+ } else {
+ rc = int32(1)
+ }
}
}
}
@@ -65530,7 +65831,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(89189)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(89240)))
return 0 /* Corrupt index */
}
}
@@ -65574,18 +65875,18 @@ func _vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uin
serial_type = int32(*(*Tu8)(unsafe.Pointer(pKey1 + 1)))
_ = libc.Int32FromInt32(0)
switch serial_type {
- case int32(1):
+ case int32(1): /* 1-byte signed integer */
lhs = int64(int8(*(*Tu8)(unsafe.Pointer(aKey))))
- case int32(2):
+ case int32(2): /* 2-byte signed integer */
lhs = int64(libc.Int32FromInt32(256)*int32(int8(*(*Tu8)(unsafe.Pointer(aKey)))) | int32(*(*Tu8)(unsafe.Pointer(aKey + 1))))
- case int32(3):
+ case int32(3): /* 3-byte signed integer */
lhs = int64(libc.Int32FromInt32(65536)*int32(int8(*(*Tu8)(unsafe.Pointer(aKey)))) | int32(*(*Tu8)(unsafe.Pointer(aKey + 1)))<<libc.Int32FromInt32(8) | int32(*(*Tu8)(unsafe.Pointer(aKey + 2))))
- case int32(4):
+ case int32(4): /* 4-byte signed integer */
*(*Tu32)(unsafe.Pointer(bp)) = uint32(*(*Tu8)(unsafe.Pointer(aKey)))<<libc.Int32FromInt32(24) | uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + 1)))<<libc.Int32FromInt32(16)) | uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + 2)))<<libc.Int32FromInt32(8)) | uint32(*(*Tu8)(unsafe.Pointer(aKey + 3)))
lhs = int64(*(*int32)(unsafe.Pointer(bp)))
- case int32(5):
+ case int32(5): /* 6-byte signed integer */
lhs = int64(uint32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(2))))<<libc.Int32FromInt32(24)|uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(2) + 1)))<<libc.Int32FromInt32(16))|uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(2) + 2)))<<libc.Int32FromInt32(8))|uint32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(2) + 3)))) + libc.Int64FromInt32(1)<<libc.Int32FromInt32(32)*int64(libc.Int32FromInt32(256)*int32(int8(*(*Tu8)(unsafe.Pointer(aKey))))|int32(*(*Tu8)(unsafe.Pointer(aKey + 1))))
- case int32(6):
+ case int32(6): /* 8-byte signed integer */
*(*Tu64)(unsafe.Pointer(bp + 8)) = uint64(uint32(*(*Tu8)(unsafe.Pointer(aKey)))<<libc.Int32FromInt32(24) | uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + 1)))<<libc.Int32FromInt32(16)) | uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + 2)))<<libc.Int32FromInt32(8)) | uint32(*(*Tu8)(unsafe.Pointer(aKey + 3))))
*(*Tu64)(unsafe.Pointer(bp + 8)) = *(*Tu64)(unsafe.Pointer(bp + 8))<<libc.Int32FromInt32(32) | uint64(uint32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(4))))<<libc.Int32FromInt32(24)|uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(4) + 1)))<<libc.Int32FromInt32(16))|uint32(int32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(4) + 2)))<<libc.Int32FromInt32(8))|uint32(*(*Tu8)(unsafe.Pointer(aKey + libc.UintptrFromInt32(4) + 3))))
lhs = *(*Ti64)(unsafe.Pointer(bp + 8))
@@ -65653,6 +65954,7 @@ func _vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2
_ = libc.Int32FromInt32(0)
*(*int32)(unsafe.Pointer(bp)) = int32(int8(*(*Tu8)(unsafe.Pointer(aKey1 + 1))))
vrcs_restart:
+ ;
if *(*int32)(unsafe.Pointer(bp)) < int32(12) {
if *(*int32)(unsafe.Pointer(bp)) < 0 {
_sqlite3GetVarint32(tls, aKey1+1, bp)
@@ -65669,7 +65971,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(89352)))
+ (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = uint8(_sqlite3CorruptError(tls, int32(89403)))
return 0 /* Corruption */
}
if (*TUnpackedRecord)(unsafe.Pointer(pPKey2)).Fn < nStr {
@@ -65823,8 +66125,9 @@ func _sqlite3VdbeIdxRowid(tls *libc.TLS, db uintptr, pCur uintptr, rowid uintptr
/* Jump here if database corruption is detected after m has been
** allocated. Free the m object and return SQLITE_CORRUPT. */
idx_rowid_corruption:
+ ;
_sqlite3VdbeMemReleaseMalloc(tls, bp+8)
- return _sqlite3CorruptError(tls, int32(89510))
+ return _sqlite3CorruptError(tls, int32(89561))
}
// C documentation
@@ -65857,7 +66160,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(89543))
+ return _sqlite3CorruptError(tls, int32(89594))
}
_sqlite3VdbeMemInit(tls, bp, db, uint16(0))
rc = _sqlite3VdbeMemFromBtreeZeroOffset(tls, pCur, uint32(nCellKey), bp)
@@ -65922,6 +66225,7 @@ func _sqlite3ExpirePreparedStatements(tls *libc.TLS, db uintptr, iCode int32) {
libc.SetBitFieldPtr16Uint32(p+200, uint32(iCode+libc.Int32FromInt32(1)), 0, 0x3)
goto _1
_1:
+ ;
p = (*TVdbe)(unsafe.Pointer(p)).FpVNext
}
}
@@ -66012,15 +66316,15 @@ func _sqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) (r int32) {
pOp = (*TVdbe)(unsafe.Pointer((*Tsqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe)).FaOp + uintptr((*Tsqlite3_context)(unsafe.Pointer(pCtx)).FiOp)*24
if int32((*TVdbeOp)(unsafe.Pointer(pOp)).Fopcode) == int32(OP_PureFunc) {
if int32((*TVdbeOp)(unsafe.Pointer(pOp)).Fp5)&int32(NC_IsCheck) != 0 {
- zContext = __ccgo_ts + 5230
+ zContext = __ccgo_ts + 5255
} else {
if int32((*TVdbeOp)(unsafe.Pointer(pOp)).Fp5)&int32(NC_GenCol) != 0 {
- zContext = __ccgo_ts + 5249
+ zContext = __ccgo_ts + 5274
} else {
- zContext = __ccgo_ts + 5268
+ zContext = __ccgo_ts + 5293
}
}
- zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+5277, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*Tsqlite3_context)(unsafe.Pointer(pCtx)).FpFunc)).FzName, zContext))
+ zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+5302, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*Tsqlite3_context)(unsafe.Pointer(pCtx)).FpFunc)).FzName, zContext))
Xsqlite3_result_error(tls, pCtx, zMsg, -int32(1))
Xsqlite3_free(tls, zMsg)
return 0
@@ -66074,6 +66378,7 @@ func _vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
_sqlite3DbNNFreeNN(tls, db, p)
@@ -66142,6 +66447,7 @@ func _sqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32,
_sqlite3VdbeMemRelease(tls, (*(*TPreUpdate)(unsafe.Pointer(bp))).FaNew+uintptr(i)*56)
goto _2
_2:
+ ;
i++
}
_sqlite3DbNNFreeNN(tls, db, (*(*TPreUpdate)(unsafe.Pointer(bp))).FaNew)
@@ -66197,7 +66503,7 @@ func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) (r int32) {
// */
func _vdbeSafety(tls *libc.TLS, p uintptr) (r int32) {
if (*TVdbe)(unsafe.Pointer(p)).Fdb == uintptr(0) {
- Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+5313, 0)
+ Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+5338, 0)
return int32(1)
} else {
return 0
@@ -66207,7 +66513,7 @@ func _vdbeSafety(tls *libc.TLS, p uintptr) (r int32) {
func _vdbeSafetyNotNull(tls *libc.TLS, p uintptr) (r int32) {
if p == uintptr(0) {
- Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+5358, 0)
+ Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+5383, 0)
return int32(1)
} else {
return _vdbeSafety(tls, p)
@@ -66269,7 +66575,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(89931))
+ return _sqlite3MisuseError(tls, int32(89982))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if (*TVdbe)(unsafe.Pointer(v)).FstartTime > 0 {
@@ -66338,6 +66644,7 @@ func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) (r int32) {
(*(*TMem)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FaVar + uintptr(i)*56))).Fflags = uint16(MEM_Null)
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -66799,7 +67106,7 @@ func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) {
func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) {
_ = libc.Int32FromInt32(0)
(*Tsqlite3_context)(unsafe.Pointer(pCtx)).FisError = int32(SQLITE_TOOBIG)
- _sqlite3VdbeMemSetStr(tls, (*Tsqlite3_context)(unsafe.Pointer(pCtx)).FpOut, __ccgo_ts+5398, int64(-int32(1)), uint8(SQLITE_UTF8), libc.UintptrFromInt32(0))
+ _sqlite3VdbeMemSetStr(tls, (*Tsqlite3_context)(unsafe.Pointer(pCtx)).FpOut, __ccgo_ts+5423, int64(-int32(1)), uint8(SQLITE_UTF8), libc.UintptrFromInt32(0))
}
// C documentation
@@ -66857,6 +67164,7 @@ func _doWalCallbacks(tls *libc.TLS, db uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return rc
@@ -66881,6 +67189,7 @@ func _sqlite3Step(tls *libc.TLS, p uintptr) (r int32) {
db = (*TVdbe)(unsafe.Pointer(p)).Fdb
if int32((*TVdbe)(unsafe.Pointer(p)).FeVdbeState) != int32(VDBE_RUN_STATE) {
restart_step:
+ ;
if int32((*TVdbe)(unsafe.Pointer(p)).FeVdbeState) == int32(VDBE_READY_STATE) {
if int32(Tbft(*(*uint16)(unsafe.Pointer(p + 200))&0x3>>0)) != 0 {
(*TVdbe)(unsafe.Pointer(p)).Frc = int32(SQLITE_SCHEMA)
@@ -66983,6 +67292,7 @@ func _sqlite3Step(tls *libc.TLS, p uintptr) (r int32) {
}
}
end_of_step:
+ ;
/* There are only a limited number of result codes allowed from the
** statements prepared using the legacy sqlite3_prepare() interface */
_ = libc.Int32FromInt32(0)
@@ -67005,7 +67315,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(90725))
+ return _sqlite3MisuseError(tls, int32(90776))
}
db = (*TVdbe)(unsafe.Pointer(v)).Fdb
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -67139,7 +67449,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(90846))
+ return _sqlite3MisuseError(tls, int32(90897))
}
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)
@@ -67310,6 +67620,7 @@ func Xsqlite3_get_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32) (r uintptr) {
}
goto _1
_1:
+ ;
pAuxData = (*TAuxData)(unsafe.Pointer(pAuxData)).FpNextAux
}
return uintptr(0)
@@ -67346,6 +67657,7 @@ func Xsqlite3_set_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32, pAux uintptr,
}
goto _1
_1:
+ ;
pAuxData = (*TAuxData)(unsafe.Pointer(pAuxData)).FpNextAux
}
if pAuxData == uintptr(0) {
@@ -67369,6 +67681,7 @@ func Xsqlite3_set_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32, pAux uintptr,
(*TAuxData)(unsafe.Pointer(pAuxData)).FxDeleteAux = xDelete
return
failed:
+ ;
if xDelete != 0 {
(*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{xDelete})))(tls, pAux)
}
@@ -67608,18 +67921,18 @@ func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) (r int32) {
// ** Column names appropriate for EXPLAIN or EXPLAIN QUERY PLAN.
// */
var _azExplainColNames8 = [12]uintptr{
- 0: __ccgo_ts + 5421,
- 1: __ccgo_ts + 5426,
- 2: __ccgo_ts + 5433,
- 3: __ccgo_ts + 5436,
- 4: __ccgo_ts + 5439,
- 5: __ccgo_ts + 5442,
- 6: __ccgo_ts + 5445,
- 7: __ccgo_ts + 5448,
- 8: __ccgo_ts + 5456,
- 9: __ccgo_ts + 5459,
- 10: __ccgo_ts + 5466,
- 11: __ccgo_ts + 5474,
+ 0: __ccgo_ts + 5446,
+ 1: __ccgo_ts + 5451,
+ 2: __ccgo_ts + 5458,
+ 3: __ccgo_ts + 5461,
+ 4: __ccgo_ts + 5464,
+ 5: __ccgo_ts + 5467,
+ 6: __ccgo_ts + 5470,
+ 7: __ccgo_ts + 5473,
+ 8: __ccgo_ts + 5481,
+ 9: __ccgo_ts + 5484,
+ 10: __ccgo_ts + 5491,
+ 11: __ccgo_ts + 5499,
}
var _azExplainColNames16data = [60]Tu16{
0: uint16('a'),
@@ -67756,6 +68069,7 @@ func _columnName(tls *libc.TLS, pStmt uintptr, N int32, useUtf16 int32, useType
}
}
columnName_end:
+ ;
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
return ret
}
@@ -67863,14 +68177,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(91450))
+ return _sqlite3MisuseError(tls, int32(91501))
}
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(91454)))
+ _sqlite3Error(tls, (*TVdbe)(unsafe.Pointer(p)).Fdb, _sqlite3MisuseError(tls, int32(91505)))
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).Fdb)).Fmutex)
- Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+5481, libc.VaList(bp+8, (*TVdbe)(unsafe.Pointer(p)).FzSql))
- return _sqlite3MisuseError(tls, int32(91458))
+ Xsqlite3_log(tls, int32(SQLITE_MISUSE), __ccgo_ts+5506, libc.VaList(bp+8, (*TVdbe)(unsafe.Pointer(p)).FzSql))
+ return _sqlite3MisuseError(tls, int32(91509))
}
if i >= uint32((*TVdbe)(unsafe.Pointer(p)).FnVar) {
_sqlite3Error(tls, (*TVdbe)(unsafe.Pointer(p)).Fdb, int32(SQLITE_RANGE))
@@ -68165,6 +68479,7 @@ func _sqlite3TransferBindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr)
_sqlite3VdbeMemMove(tls, (*TVdbe)(unsafe.Pointer(pTo)).FaVar+uintptr(i)*56, (*TVdbe)(unsafe.Pointer(pFrom)).FaVar+uintptr(i)*56)
goto _1
_1:
+ ;
i++
}
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(pTo)).Fdb)).Fmutex)
@@ -68443,7 +68758,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(91994))
+ rc = _sqlite3MisuseError(tls, int32(92045))
goto preupdate_old_out
}
if (*TPreUpdate)(unsafe.Pointer(p)).FpPk != 0 {
@@ -68491,6 +68806,7 @@ func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp
}
}
preupdate_old_out:
+ ;
_sqlite3Error(tls, db, rc)
return _sqlite3ApiExit(tls, db, rc)
}
@@ -68572,7 +68888,7 @@ func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp
rc = SQLITE_OK
p = (*Tsqlite3)(unsafe.Pointer(db)).FpPreUpdate
if !(p != 0) || (*TPreUpdate)(unsafe.Pointer(p)).Fop == int32(SQLITE_DELETE) {
- rc = _sqlite3MisuseError(tls, int32(92117))
+ rc = _sqlite3MisuseError(tls, int32(92168))
goto preupdate_new_out
}
if (*TPreUpdate)(unsafe.Pointer(p)).FpPk != 0 && (*TPreUpdate)(unsafe.Pointer(p)).Fop != int32(SQLITE_UPDATE) {
@@ -68641,6 +68957,7 @@ func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp
}
*(*uintptr)(unsafe.Pointer(ppValue)) = pMem
preupdate_new_out:
+ ;
_sqlite3Error(tls, db, rc)
return _sqlite3ApiExit(tls, db, rc)
}
@@ -68747,7 +69064,7 @@ func _sqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) (r uintptr
break
}
}
- Xsqlite3_str_append(tls, bp+8, __ccgo_ts+5521, int32(3))
+ Xsqlite3_str_append(tls, bp+8, __ccgo_ts+5546, int32(3))
_ = libc.Int32FromInt32(0)
Xsqlite3_str_append(tls, bp+8, zStart, int32(int64(zRawSql)-int64(zStart)))
}
@@ -68792,7 +69109,7 @@ func _sqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) (r uintptr
Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+1404, libc.VaList(bp+104, *(*Ti64)(unsafe.Pointer(pVar))))
} else {
if int32((*TMem)(unsafe.Pointer(pVar)).Fflags)&int32(MEM_Real) != 0 {
- Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5042, libc.VaList(bp+104, *(*float64)(unsafe.Pointer(pVar))))
+ Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5067, libc.VaList(bp+104, *(*float64)(unsafe.Pointer(pVar))))
} else {
if int32((*TMem)(unsafe.Pointer(pVar)).Fflags)&int32(MEM_Str) != 0 { /* Number of bytes of the string text to include in output */
enc = (*Tsqlite3)(unsafe.Pointer(db)).Fenc
@@ -68807,28 +69124,29 @@ func _sqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) (r uintptr
pVar = bp + 40
}
nOut = (*TMem)(unsafe.Pointer(pVar)).Fn
- Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5525, libc.VaList(bp+104, nOut, (*TMem)(unsafe.Pointer(pVar)).Fz))
+ Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5550, libc.VaList(bp+104, nOut, (*TMem)(unsafe.Pointer(pVar)).Fz))
if int32(enc) != int32(SQLITE_UTF8) {
_sqlite3VdbeMemRelease(tls, bp+40)
}
} else {
if int32((*TMem)(unsafe.Pointer(pVar)).Fflags)&int32(MEM_Zero) != 0 {
- Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5532, libc.VaList(bp+104, *(*int32)(unsafe.Pointer(&(*TMem)(unsafe.Pointer(pVar)).Fu))))
+ Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5557, libc.VaList(bp+104, *(*int32)(unsafe.Pointer(&(*TMem)(unsafe.Pointer(pVar)).Fu))))
} else { /* Number of bytes of the blob to include in output */
_ = libc.Int32FromInt32(0)
- Xsqlite3_str_append(tls, bp+8, __ccgo_ts+5545, int32(2))
+ Xsqlite3_str_append(tls, bp+8, __ccgo_ts+5570, int32(2))
nOut1 = (*TMem)(unsafe.Pointer(pVar)).Fn
i = 0
for {
if !(i < nOut1) {
break
}
- Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5548, libc.VaList(bp+104, int32(*(*uint8)(unsafe.Pointer((*TMem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&int32(0xff)))
+ Xsqlite3_str_appendf(tls, bp+8, __ccgo_ts+5573, libc.VaList(bp+104, int32(*(*uint8)(unsafe.Pointer((*TMem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&int32(0xff)))
goto _3
_3:
+ ;
i++
}
- Xsqlite3_str_append(tls, bp+8, __ccgo_ts+5553, int32(1))
+ Xsqlite3_str_append(tls, bp+8, __ccgo_ts+5578, int32(1))
}
}
}
@@ -69344,6 +69662,7 @@ func _filterHash(tls *libc.TLS, aMem uintptr, pOp uintptr) (r Tu64) {
}
goto _1
_1:
+ ;
i++
}
return h
@@ -69454,19 +69773,19 @@ var _azTypes = [5]uintptr{
func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
bp := tls.Alloc(976)
defer tls.Free(976)
- var aCol, aMem, aOffset, aOp, aPermute, aRoot, apArg, apArg1, db, pArgc, pBt, pBt1, pBt2, pBt3, pC, pC1, pC10, pC11, pC12, pC13, pC14, pC15, pC16, pC17, pC18, pC19, pC2, pC20, pC21, pC22, pC23, pC24, pC25, pC26, pC27, pC28, pC29, pC3, pC30, pC31, pC32, pC4, pC5, pC6, pC7, pC8, pC9, pCaller, pColl, pCrsr, pCrsr1, pCrsr2, pCrsr3, pCrsr4, pCrsr5, pCrsr6, pCrsr7, pCtx, pCtx1, pCtx2, pCur, pCur1, pCur2, pCur3, pCur4, pCur5, pCur6, pCx, pCx1, pCx2, pCx3, pData, pData0, pDb, pDb1, pDb2, pDb3, pDest, pDest1, pDest2, pEnd, pFrame, pFrame1, pFrame2, pFrame3, pFrame4, pIdxKey, pIn, pIn1, pIn2, pIn3, pKey, pKeyInfo, pKeyInfo1, pKeyInfo2, pLast, pMem, pMem1, pMem2, pMem3, pMem4, pModule, pModule1, pModule2, pModule3, pModule4, pModule5, pModule6, pName, pNew, pOp, pOrig, pOut, pPager, pProgram, pQuery, pRec, pReg, pRhs, pRt, pSavepoint, pSrc, pTab, pTab1, pTab2, pTab3, pTabCur, pTmp, pVCur1, pVTab, pVar, pVtab, pVtab1, pVtab2, pVtab3, pVtab4, pVtab5, pVtab6, pVtab7, pX, pX1, pnErr, t1, z1, z2, z3, zAffinity, zAffinity1, zData, zDb, zDb1, zEndHdr, zFilename, zHdr, zHdr1, zName, zPayload, zSchema, zSql, zTab, zTrace, v238, v239, v240, v248, v249, v250, v251, v253, v261, v276, v277, v284, v286, v295, v296, p189, p192, p193, p196, p199, p210, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p291, p292, p293, p294 uintptr
+ var aCol, aMem, aOffset, aOp, aPermute, aRoot, apArg, apArg1, db, pArgc, pBt, pBt1, pBt2, pBt3, pC, pC1, pC10, pC11, pC12, pC13, pC14, pC15, pC16, pC17, pC18, pC19, pC2, pC20, pC21, pC22, pC23, pC24, pC25, pC26, pC27, pC28, pC29, pC3, pC30, pC31, pC32, pC4, pC5, pC6, pC7, pC8, pC9, pCaller, pColl, pCrsr, pCrsr1, pCrsr2, pCrsr3, pCrsr4, pCrsr5, pCrsr6, pCrsr7, pCtx, pCtx1, pCtx2, pCur, pCur1, pCur2, pCur3, pCur4, pCur5, pCur6, pCx, pCx1, pCx2, pCx3, pData, pData0, pDb, pDb1, pDb2, pDb3, pDest, pDest1, pDest2, pEnd, pFrame, pFrame1, pFrame2, pFrame3, pFrame4, pIdxKey, pIn, pIn1, pIn2, pIn3, pKey, pKeyInfo, pKeyInfo1, pKeyInfo2, pLast, pMem, pMem1, pMem2, pMem3, pMem4, pModule, pModule1, pModule2, pModule3, pModule4, pModule5, pModule6, pName, pNew, pOp, pOrig, pOut, pPager, pProgram, pQuery, pRec, pReg, pRhs, pRt, pSavepoint, pSrc, pTab, pTab1, pTab2, pTab3, pTabCur, pTmp, pVCur1, pVTab, pVar, pVtab, pVtab1, pVtab2, pVtab3, pVtab4, pVtab5, pVtab6, pVtab7, pX, pX1, pnErr, t1, z1, z2, z3, zAffinity, zAffinity1, zData, zDb, zDb1, zEndHdr, zFilename, zHdr, zHdr1, zName, zPayload, zSchema, zSql, zTab, zTrace, v240, v241, v242, v250, v251, v252, v253, v255, v263, v278, v279, v286, v288, v297, v298, p189, p192, p193, p196, p199, p208, p209, p212, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239, p293, p294, p295, p296 uintptr
var affinity uint8
- var alreadyExists, bRev, c, c1, c2, cnt, cnt1, desiredAutoCommit, eNew, eOld, eqOnly, exists, i, i1, i2, i4, i5, i6, i7, i8, i9, iCompare, iCookie, iDb, iDb1, iDb2, iDb3, iQuery, iRollback, iSavepoint, iSet, ii, ii1, isLegacy, isSchemaChange, isTransaction, len1, n, n1, n2, n4, nArg, nArg1, nByte2, nField, nField1, nField2, nHdr, nKeyCol, nMem, nName, nRoot, nStep, nVarint, oc, opflags, p1, p11, p12, p13, p2, p21, pcDest, pcx, rc, res, res10, res11, res12, res21, seekResult, v11, v21, wrFlag, v188, v191, v194, v197, v198, v205, v206, v207, v221, v222, v242, v243, v246, v247, v254, v258, v263, v264, v267, v268, v270, v271, v272, v273, v282, v285, v289 int32
- var colCacheCtr, iAddr, iMap, iPrior, idx, len11, n3, p22, p23, serialType, serial_type, v211, v212, v214, v219, v220 Tu32
- var encoding, isWriteLock, mTrace, op, p5, resetSchemaOnFault, vtabOnConflict, v223 Tu8
+ var alreadyExists, bRev, c, c1, c2, cnt, cnt1, desiredAutoCommit, eNew, eOld, eqOnly, exists, i, i1, i2, i4, i5, i6, i7, i8, i9, iCompare, iCookie, iDb, iDb1, iDb2, iDb3, iQuery, iRollback, iSavepoint, iSet, ii, ii1, isLegacy, isSchemaChange, isTransaction, len1, n, n1, n2, n4, nArg, nArg1, nByte2, nField, nField1, nField2, nHdr, nKeyCol, nMem, nName, nRoot, nStep, nVarint, oc, opflags, p1, p11, p12, p13, p2, p21, pcDest, pcx, rc, res, res10, res11, res12, res21, seekResult, v11, v21, wrFlag, v188, v191, v194, v197, v198, v205, v206, v207, v223, v224, v244, v245, v248, v249, v256, v260, v265, v266, v269, v270, v272, v273, v274, v275, v284, v287, v291 int32
+ var colCacheCtr, iAddr, iMap, iPrior, idx, len11, n3, p22, p23, serialType, serial_type, v213, v214, v216, v221, v222 Tu32
+ var encoding, isWriteLock, mTrace, op, p5, resetSchemaOnFault, vtabOnConflict, v225 Tu8
var flags1, flags11, flags2, flags3, flags31, newType, nullFlag, type1, type2, typeMask, v190 Tu16
var h, h1, iKey1, nData, nProgressLimit, nVmStep, offset64, uu Tu64
- var i3, iA, iB1, iKey, iKey2, nByte, nByte1, nCellKey, nZero, sz, v252, v260 Ti64
- var newMax, v209 uint32
+ var i3, iA, iB1, iKey, iKey2, nByte, nByte1, nCellKey, nZero, sz, v254, v262 Ti64
+ var newMax, v211 uint32
var rA, rB float64
var xAuth Tsqlite3_xauth
- var v204, v269, v279 int64
- var v213, v265, v280, v297 bool
+ var v204, v271, v281 int64
+ var v215, v267, v282, v299 bool
var _ /* aRes at bp+712 */ [3]int32
var _ /* iA at bp+8 */ Ti64
var _ /* iB at bp+0 */ Ti64
@@ -69513,7 +69832,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
var _ /* z at bp+688 */ uintptr
var _ /* zErr at bp+632 */ uintptr
var _ /* zErr at bp+792 */ uintptr
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = aCol, aMem, aOffset, aOp, aPermute, aRoot, affinity, alreadyExists, apArg, apArg1, bRev, c, c1, c2, cnt, cnt1, colCacheCtr, db, desiredAutoCommit, eNew, eOld, encoding, eqOnly, exists, flags1, flags11, flags2, flags3, flags31, h, h1, i, i1, i2, i3, i4, i5, i6, i7, i8, i9, iA, iAddr, iB1, iCompare, iCookie, iDb, iDb1, iDb2, iDb3, iKey, iKey1, iKey2, iMap, iPrior, iQuery, iRollback, iSavepoint, iSet, idx, ii, ii1, isLegacy, isSchemaChange, isTransaction, isWriteLock, len1, len11, mTrace, n, n1, n2, n3, n4, nArg, nArg1, nByte, nByte1, nByte2, nCellKey, nData, nField, nField1, nField2, nHdr, nKeyCol, nMem, nName, nProgressLimit, nRoot, nStep, nVarint, nVmStep, nZero, newMax, newType, nullFlag, oc, offset64, op, opflags, p1, p11, p12, p13, p2, p21, p22, p23, p5, pArgc, pBt, pBt1, pBt2, pBt3, pC, pC1, pC10, pC11, pC12, pC13, pC14, pC15, pC16, pC17, pC18, pC19, pC2, pC20, pC21, pC22, pC23, pC24, pC25, pC26, pC27, pC28, pC29, pC3, pC30, pC31, pC32, pC4, pC5, pC6, pC7, pC8, pC9, pCaller, pColl, pCrsr, pCrsr1, pCrsr2, pCrsr3, pCrsr4, pCrsr5, pCrsr6, pCrsr7, pCtx, pCtx1, pCtx2, pCur, pCur1, pCur2, pCur3, pCur4, pCur5, pCur6, pCx, pCx1, pCx2, pCx3, pData, pData0, pDb, pDb1, pDb2, pDb3, pDest, pDest1, pDest2, pEnd, pFrame, pFrame1, pFrame2, pFrame3, pFrame4, pIdxKey, pIn, pIn1, pIn2, pIn3, pKey, pKeyInfo, pKeyInfo1, pKeyInfo2, pLast, pMem, pMem1, pMem2, pMem3, pMem4, pModule, pModule1, pModule2, pModule3, pModule4, pModule5, pModule6, pName, pNew, pOp, pOrig, pOut, pPager, pProgram, pQuery, pRec, pReg, pRhs, pRt, pSavepoint, pSrc, pTab, pTab1, pTab2, pTab3, pTabCur, pTmp, pVCur1, pVTab, pVar, pVtab, pVtab1, pVtab2, pVtab3, pVtab4, pVtab5, pVtab6, pVtab7, pX, pX1, pcDest, pcx, pnErr, rA, rB, rc, res, res10, res11, res12, res21, resetSchemaOnFault, seekResult, serialType, serial_type, sz, t1, type1, type2, typeMask, uu, v11, v21, vtabOnConflict, wrFlag, xAuth, z1, z2, z3, zAffinity, zAffinity1, zData, zDb, zDb1, zEndHdr, zFilename, zHdr, zHdr1, zName, zPayload, zSchema, zSql, zTab, zTrace, v188, v190, v191, v194, v197, v198, v204, v205, v206, v207, v209, v211, v212, v213, v214, v219, v220, v221, v222, v223, v238, v239, v240, v242, v243, v246, v247, v248, v249, v250, v251, v252, v253, v254, v258, v260, v261, v263, v264, v265, v267, v268, v269, v270, v271, v272, v273, v276, v277, v279, v280, v282, v284, v285, v286, v289, v295, v296, v297, p189, p192, p193, p196, p199, p210, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p291, p292, p293, p294
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = aCol, aMem, aOffset, aOp, aPermute, aRoot, affinity, alreadyExists, apArg, apArg1, bRev, c, c1, c2, cnt, cnt1, colCacheCtr, db, desiredAutoCommit, eNew, eOld, encoding, eqOnly, exists, flags1, flags11, flags2, flags3, flags31, h, h1, i, i1, i2, i3, i4, i5, i6, i7, i8, i9, iA, iAddr, iB1, iCompare, iCookie, iDb, iDb1, iDb2, iDb3, iKey, iKey1, iKey2, iMap, iPrior, iQuery, iRollback, iSavepoint, iSet, idx, ii, ii1, isLegacy, isSchemaChange, isTransaction, isWriteLock, len1, len11, mTrace, n, n1, n2, n3, n4, nArg, nArg1, nByte, nByte1, nByte2, nCellKey, nData, nField, nField1, nField2, nHdr, nKeyCol, nMem, nName, nProgressLimit, nRoot, nStep, nVarint, nVmStep, nZero, newMax, newType, nullFlag, oc, offset64, op, opflags, p1, p11, p12, p13, p2, p21, p22, p23, p5, pArgc, pBt, pBt1, pBt2, pBt3, pC, pC1, pC10, pC11, pC12, pC13, pC14, pC15, pC16, pC17, pC18, pC19, pC2, pC20, pC21, pC22, pC23, pC24, pC25, pC26, pC27, pC28, pC29, pC3, pC30, pC31, pC32, pC4, pC5, pC6, pC7, pC8, pC9, pCaller, pColl, pCrsr, pCrsr1, pCrsr2, pCrsr3, pCrsr4, pCrsr5, pCrsr6, pCrsr7, pCtx, pCtx1, pCtx2, pCur, pCur1, pCur2, pCur3, pCur4, pCur5, pCur6, pCx, pCx1, pCx2, pCx3, pData, pData0, pDb, pDb1, pDb2, pDb3, pDest, pDest1, pDest2, pEnd, pFrame, pFrame1, pFrame2, pFrame3, pFrame4, pIdxKey, pIn, pIn1, pIn2, pIn3, pKey, pKeyInfo, pKeyInfo1, pKeyInfo2, pLast, pMem, pMem1, pMem2, pMem3, pMem4, pModule, pModule1, pModule2, pModule3, pModule4, pModule5, pModule6, pName, pNew, pOp, pOrig, pOut, pPager, pProgram, pQuery, pRec, pReg, pRhs, pRt, pSavepoint, pSrc, pTab, pTab1, pTab2, pTab3, pTabCur, pTmp, pVCur1, pVTab, pVar, pVtab, pVtab1, pVtab2, pVtab3, pVtab4, pVtab5, pVtab6, pVtab7, pX, pX1, pcDest, pcx, pnErr, rA, rB, rc, res, res10, res11, res12, res21, resetSchemaOnFault, seekResult, serialType, serial_type, sz, t1, type1, type2, typeMask, uu, v11, v21, vtabOnConflict, wrFlag, xAuth, z1, z2, z3, zAffinity, zAffinity1, zData, zDb, zDb1, zEndHdr, zFilename, zHdr, zHdr1, zName, zPayload, zSchema, zSql, zTab, zTrace, v188, v190, v191, v194, v197, v198, v204, v205, v206, v207, v211, v213, v214, v215, v216, v221, v222, v223, v224, v225, v240, v241, v242, v244, v245, v248, v249, v250, v251, v252, v253, v254, v255, v256, v260, v262, v263, v265, v266, v267, v269, v270, v271, v272, v273, v274, v275, v278, v279, v281, v282, v284, v286, v287, v288, v291, v297, v298, v299, p189, p192, p193, p196, p199, p208, p209, p212, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239, p293, p294, p295, p296
aOp = (*TVdbe)(unsafe.Pointer(p)).FaOp /* Copy of p->aOp */
pOp = aOp /* Current operation */
rc = SQLITE_OK /* Value to return */
@@ -69989,8 +70308,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** that this Goto is the bottom of a loop and that the lines from P2 down
** to the current line should be indented for EXPLAIN output.
*/
- _2: /* jump */
+ _2:
+ ; /* jump */
jump_to_p2_and_check_for_interrupt:
+ ;
pOp = aOp + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2-int32(1))*24
/* Opcodes that are used as the bottom of a loop (OP_Next, OP_Prev,
** OP_VNext, or OP_SorterNext) all jump here upon
@@ -70003,6 +70324,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** checks on every opcode. This helps sqlite3_step() to run about 1.5%
** faster according to "valgrind --tool=cachegrind" */
check_for_interrupt:
+ ;
if libc.AtomicLoadNInt32(db+432, libc.Int32FromInt32(__ATOMIC_RELAXED)) != 0 {
goto abort_due_to_interrupt
}
@@ -70027,7 +70349,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Write the current address onto register P1
** and then jump to address P2.
*/
- _3: /* jump */
+ _3:
+ ; /* jump */
_ = libc.Int32FromInt32(0)
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
@@ -70056,7 +70379,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** value is a byte-code indentation hint. See tag-20220407a in
** wherecode.c and shell.c.
*/
- _4: /* in1 */
+ _4:
+ ; /* in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Int) != 0 {
if (*TOp)(unsafe.Pointer(pOp)).Fp3 != 0 {
@@ -70078,7 +70402,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** See also: EndCoroutine
*/
- _5: /* jump */
+ _5:
+ ; /* jump */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -70092,6 +70417,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
/* Most jump operations do a goto to this spot in order to update
** the pOp pointer. */
jump_to_p2:
+ ;
_ = libc.Int32FromInt32(0) /* There are never any jumps to instruction 0 */
_ = libc.Int32FromInt32(0) /* Jumps must be in range */
pOp = aOp + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2-int32(1))*24
@@ -70105,6 +70431,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: InitCoroutine
*/
_6:
+ ;
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -70128,6 +70455,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: InitCoroutine
*/
_7:
+ ;
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
(*TMem)(unsafe.Pointer(pIn1)).Fflags = uint16(MEM_Int)
@@ -70143,7 +70471,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** value in register P3 is not NULL, then this routine is a no-op.
** The P5 parameter should be 1.
*/
- _8: /* in3 */
+ _8:
+ ; /* in3 */
pIn3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
if int32((*TMem)(unsafe.Pointer(pIn3)).Fflags)&int32(MEM_Null) == 0 {
goto _187
@@ -70179,6 +70508,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** is the same as executing Halt.
*/
_9:
+ ;
/* A deliberately coded "OP_Halt SQLITE_INTERNAL * * * *" opcode indicates
** something is wrong with the code generator. Raise an assertion in order
** to bring this to the attention of fuzzers and other testing tools. */
@@ -70208,15 +70538,15 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
if (*TVdbe)(unsafe.Pointer(p)).Frc != 0 {
if (*TOp)(unsafe.Pointer(pOp)).Fp5 != 0 {
- _sqlite3VdbeError(tls, p, __ccgo_ts+5589, libc.VaList(bp+944, _azType[int32((*TOp)(unsafe.Pointer(pOp)).Fp5)-int32(1)]))
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5614, libc.VaList(bp+944, _azType[int32((*TOp)(unsafe.Pointer(pOp)).Fp5)-int32(1)]))
if *(*uintptr)(unsafe.Pointer(pOp + 16)) != 0 {
- (*TVdbe)(unsafe.Pointer(p)).FzErrMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+5610, libc.VaList(bp+944, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16))))
+ (*TVdbe)(unsafe.Pointer(p)).FzErrMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+5635, libc.VaList(bp+944, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16))))
}
} else {
_sqlite3VdbeError(tls, p, __ccgo_ts+3795, libc.VaList(bp+944, *(*uintptr)(unsafe.Pointer(pOp + 16))))
}
pcx = int32((int64(pOp) - int64(aOp)) / 24)
- Xsqlite3_log(tls, (*TOp)(unsafe.Pointer(pOp)).Fp1, __ccgo_ts+5617, libc.VaList(bp+944, pcx, (*TVdbe)(unsafe.Pointer(p)).FzSql, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg))
+ Xsqlite3_log(tls, (*TOp)(unsafe.Pointer(pOp)).Fp1, __ccgo_ts+5642, libc.VaList(bp+944, pcx, (*TVdbe)(unsafe.Pointer(p)).FzSql, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg))
}
rc = _sqlite3VdbeHalt(tls, p)
_ = libc.Int32FromInt32(0)
@@ -70238,7 +70568,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** The 32-bit integer value P1 is written into register P2.
*/
- _10: /* out2 */
+ _10:
+ ; /* out2 */
pOut = _out2Prerelease(tls, p, pOp)
*(*Ti64)(unsafe.Pointer(pOut)) = int64((*TOp)(unsafe.Pointer(pOp)).Fp1)
goto _187
@@ -70248,7 +70579,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P4 is a pointer to a 64-bit integer value.
** Write that value into register P2.
*/
- _11: /* out2 */
+ _11:
+ ; /* out2 */
pOut = _out2Prerelease(tls, p, pOp)
_ = libc.Int32FromInt32(0)
*(*Ti64)(unsafe.Pointer(pOut)) = *(*Ti64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16))))
@@ -70259,7 +70591,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P4 is a pointer to a 64-bit floating point value.
** Write that value into register P2.
*/
- _12: /* same as TK_FLOAT, out2 */
+ _12:
+ ; /* same as TK_FLOAT, out2 */
pOut = _out2Prerelease(tls, p, pOp)
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(MEM_Real)
_ = libc.Int32FromInt32(0)
@@ -70273,7 +70606,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** this transformation, the length of string P4 is computed and stored
** as the P1 parameter.
*/
- _13: /* same as TK_STRING, out2 */
+ _13:
+ ; /* same as TK_STRING, out2 */
_ = libc.Int32FromInt32(0)
pOut = _out2Prerelease(tls, p, pOp)
(*TOp)(unsafe.Pointer(pOp)).Fp1 = _sqlite3Strlen30(tls, *(*uintptr)(unsafe.Pointer(pOp + 16)))
@@ -70315,7 +70649,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** if( P3!=0 and reg[P3]==P5 ) reg[P2] := CAST(reg[P2] as BLOB)
*/
- _14: /* out2 */
+ _14:
+ ; /* out2 */
_ = libc.Int32FromInt32(0)
pOut = _out2Prerelease(tls, p, pOp)
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(libc.Int32FromInt32(MEM_Str) | libc.Int32FromInt32(MEM_Static) | libc.Int32FromInt32(MEM_Term))
@@ -70358,7 +70693,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** OP_Ne or OP_Eq.
*/
_16:
+ ;
_15:
+ ;
pOut = _out2Prerelease(tls, p, pOp)
cnt = (*TOp)(unsafe.Pointer(pOp)).Fp3 - (*TOp)(unsafe.Pointer(pOp)).Fp2
_ = libc.Int32FromInt32(0)
@@ -70388,6 +70725,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** previously copied using OP_SCopy, the copies will continue to be valid.
*/
_17:
+ ;
_ = libc.Int32FromInt32(0)
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(int32((*TMem)(unsafe.Pointer(pOut)).Fflags) & ^(libc.Int32FromInt32(MEM_Undefined)|libc.Int32FromInt32(MEM_AffMask)) | int32(MEM_Null))
@@ -70399,7 +70737,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** blob in register P2. If P4 is a NULL pointer, then construct
** a zero-filled blob that is P1 bytes long in P2.
*/
- _18: /* out2 */
+ _18:
+ ; /* out2 */
_ = libc.Int32FromInt32(0)
pOut = _out2Prerelease(tls, p, pOp)
if *(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0) {
@@ -70420,7 +70759,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If the parameter is named, then its name appears in P4.
** The P4 value is used by sqlite3_bind_parameter_name().
*/
- _19: /* Value being transferred */
+ _19:
+ ; /* Value being transferred */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pVar = (*TVdbe)(unsafe.Pointer(p)).FaVar + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1-int32(1))*56
@@ -70446,7 +70786,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P1..P1+P3-1 and P2..P2+P3-1 to overlap. It is an error
** for P3 to be less than 1.
*/
- _20: /* Register to copy to */
+ _20:
+ ; /* Register to copy to */
n = (*TOp)(unsafe.Pointer(pOp)).Fp3
p1 = (*TOp)(unsafe.Pointer(pOp)).Fp1
p2 = (*TOp)(unsafe.Pointer(pOp)).Fp2
@@ -70466,6 +70807,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
pOut += 56
goto _195
_195:
+ ;
n--
v194 = n
if !(v194 != 0) {
@@ -70487,6 +70829,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** is made of any string or blob constant. See also OP_SCopy.
*/
_21:
+ ;
n1 = (*TOp)(unsafe.Pointer(pOp)).Fp3
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
@@ -70522,7 +70865,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** during the lifetime of the copy. Use OP_Copy to make a complete
** copy.
*/
- _22: /* out2 */
+ _22:
+ ; /* out2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
_ = libc.Int32FromInt32(0)
@@ -70536,7 +70880,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This is an optimized version of SCopy that works only for integer
** values.
*/
- _23: /* out2 */
+ _23:
+ ; /* out2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
@@ -70554,6 +70899,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** RETURNING clause.
*/
_24:
+ ;
v198 = _sqlite3VdbeCheckFk(tls, p, 0)
rc = v198
if v198 != SQLITE_OK {
@@ -70570,6 +70916,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the result row.
*/
_25:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -70597,7 +70944,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** if P3 is the same register as P2, the implementation is able
** to avoid a memcpy().
*/
- _26: /* Initial flags for P2 */
+ _26:
+ ; /* Initial flags for P2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pIn2 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
@@ -70698,11 +71046,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If the value in register P1 is zero the result is NULL.
** If either operand is NULL, the result is NULL.
*/
- _31: /* same as TK_PLUS, in1, in2, out3 */
- _30: /* same as TK_MINUS, in1, in2, out3 */
- _29: /* same as TK_STAR, in1, in2, out3 */
- _28: /* same as TK_SLASH, in1, in2, out3 */
- _27: /* Real value of right operand */
+ _31:
+ ; /* same as TK_PLUS, in1, in2, out3 */
+ _30:
+ ; /* same as TK_MINUS, in1, in2, out3 */
+ _29:
+ ; /* same as TK_STAR, in1, in2, out3 */
+ _28:
+ ; /* same as TK_SLASH, in1, in2, out3 */
+ _27:
+ ; /* Real value of right operand */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
type1 = (*TMem)(unsafe.Pointer(pIn1)).Fflags
pIn2 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
@@ -70712,6 +71065,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
goto _200
}
int_math:
+ ;
iA = *(*Ti64)(unsafe.Pointer(pIn1))
*(*Ti64)(unsafe.Pointer(bp)) = *(*Ti64)(unsafe.Pointer(pIn2))
switch int32((*TOp)(unsafe.Pointer(pOp)).Fopcode) {
@@ -70749,18 +71103,21 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(int32((*TMem)(unsafe.Pointer(pOut)).Fflags) & ^(libc.Int32FromInt32(MEM_TypeMask)|libc.Int32FromInt32(MEM_Zero)) | int32(MEM_Int))
goto _201
_200:
+ ;
if !((int32(type1)|int32(type2))&int32(MEM_Null) != 0) {
goto _202
}
goto arithmetic_result_is_null
goto _203
_202:
+ ;
type1 = _numericType(tls, pIn1)
type2 = _numericType(tls, pIn2)
if int32(type1)&int32(type2)&int32(MEM_Int) != 0 {
goto int_math
}
fp_math:
+ ;
rA = _sqlite3VdbeRealValue(tls, pIn1)
rB = _sqlite3VdbeRealValue(tls, pIn2)
switch int32((*TOp)(unsafe.Pointer(pOp)).Fopcode) {
@@ -70794,9 +71151,12 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
*(*float64)(unsafe.Pointer(pOut)) = rB
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(int32((*TMem)(unsafe.Pointer(pOut)).Fflags) & ^(libc.Int32FromInt32(MEM_TypeMask)|libc.Int32FromInt32(MEM_Zero)) | int32(MEM_Real))
_203:
+ ;
_201:
+ ;
goto _187
arithmetic_result_is_null:
+ ;
_sqlite3VdbeMemSetNull(tls, pOut)
goto _187
/* Opcode: CollSeq P1 * * P4
@@ -70815,6 +71175,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** publicly. Only built-in functions have access to this feature.
*/
_32:
+ ;
_ = libc.Int32FromInt32(0)
if (*TOp)(unsafe.Pointer(pOp)).Fp1 != 0 {
_sqlite3VdbeMemSetInt64(tls, aMem+uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56, 0)
@@ -70850,10 +71211,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Store the result in register P3.
** If either input is NULL, the result is NULL.
*/
- _36: /* same as TK_BITAND, in1, in2, out3 */
- _35: /* same as TK_BITOR, in1, in2, out3 */
- _34: /* same as TK_LSHIFT, in1, in2, out3 */
+ _36:
+ ; /* same as TK_BITAND, in1, in2, out3 */
+ _35:
+ ; /* same as TK_BITOR, in1, in2, out3 */
+ _34:
+ ; /* same as TK_LSHIFT, in1, in2, out3 */
_33:
+ ;
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pIn2 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
@@ -70917,7 +71282,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** To force any register to be an integer, just add 0.
*/
- _37: /* in1 */
+ _37:
+ ; /* in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_sqlite3VdbeMemIntegerify(tls, pIn1)
*(*Tu64)(unsafe.Pointer(pIn1)) += uint64((*TOp)(unsafe.Pointer(pOp)).Fp2)
@@ -70929,7 +71295,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** without data loss, then jump immediately to P2, or if P2==0
** raise an SQLITE_MISMATCH exception.
*/
- _38: /* jump, in1 */
+ _38:
+ ; /* jump, in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Int) == 0 {
_applyAffinity(tls, pIn1, uint8(SQLITE_AFF_NUMERIC), encoding)
@@ -70953,7 +71320,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** integers, for space efficiency, but after extraction we want them
** to have only a real value.
*/
- _39: /* in1 */
+ _39:
+ ; /* in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&(libc.Int32FromInt32(MEM_Int)|libc.Int32FromInt32(MEM_IntReal)) != 0 {
_sqlite3VdbeMemRealify(tls, pIn1)
@@ -70974,7 +71342,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** A NULL value is not changed by this routine. It remains NULL.
*/
- _40: /* in1 */
+ _40:
+ ; /* in1 */
_ = libc.Int32FromInt32(0)
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Zero) != 0 {
@@ -71083,12 +71452,18 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the content of register P3 is greater than or equal to the content of
** register P1. See the Lt opcode for additional information.
*/
- _46: /* same as TK_EQ, jump, in1, in3 */
- _45: /* same as TK_NE, jump, in1, in3 */
- _44: /* same as TK_LT, jump, in1, in3 */
- _43: /* same as TK_LE, jump, in1, in3 */
- _42: /* same as TK_GT, jump, in1, in3 */
- _41: /* Copy of initial value of pIn3->flags */
+ _46:
+ ; /* same as TK_EQ, jump, in1, in3 */
+ _45:
+ ; /* same as TK_NE, jump, in1, in3 */
+ _44:
+ ; /* same as TK_LT, jump, in1, in3 */
+ _43:
+ ; /* same as TK_LE, jump, in1, in3 */
+ _42:
+ ; /* same as TK_GT, jump, in1, in3 */
+ _41:
+ ; /* Copy of initial value of pIn3->flags */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pIn3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
flags11 = (*TMem)(unsafe.Pointer(pIn1)).Fflags
@@ -71162,16 +71537,26 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
} else {
if int32(affinity) == int32(SQLITE_AFF_TEXT) && (int32(flags11)|int32(flags3))&int32(MEM_Str) != 0 {
- if int32(flags11)&int32(MEM_Str) == 0 && int32(flags11)&(libc.Int32FromInt32(MEM_Int)|libc.Int32FromInt32(MEM_Real)|libc.Int32FromInt32(MEM_IntReal)) != 0 {
- _sqlite3VdbeMemStringify(tls, pIn1, encoding, uint8(1))
- flags11 = uint16(int32((*TMem)(unsafe.Pointer(pIn1)).Fflags) & ^libc.Int32FromInt32(MEM_TypeMask) | int32(flags11)&int32(MEM_TypeMask))
- if pIn1 == pIn3 {
- flags3 = uint16(int32(flags11) | int32(MEM_Str))
+ if int32(flags11)&int32(MEM_Str) != 0 {
+ p208 = pIn1 + 20
+ *(*Tu16)(unsafe.Pointer(p208)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p208))) & ^(libc.Int32FromInt32(MEM_Int) | libc.Int32FromInt32(MEM_Real) | libc.Int32FromInt32(MEM_IntReal)))
+ } else {
+ if int32(flags11)&(libc.Int32FromInt32(MEM_Int)|libc.Int32FromInt32(MEM_Real)|libc.Int32FromInt32(MEM_IntReal)) != 0 {
+ _sqlite3VdbeMemStringify(tls, pIn1, encoding, uint8(1))
+ flags11 = uint16(int32((*TMem)(unsafe.Pointer(pIn1)).Fflags) & ^libc.Int32FromInt32(MEM_TypeMask) | int32(flags11)&int32(MEM_TypeMask))
+ if pIn1 == pIn3 {
+ flags3 = uint16(int32(flags11) | int32(MEM_Str))
+ }
}
}
- if int32(flags3)&int32(MEM_Str) == 0 && int32(flags3)&(libc.Int32FromInt32(MEM_Int)|libc.Int32FromInt32(MEM_Real)|libc.Int32FromInt32(MEM_IntReal)) != 0 {
- _sqlite3VdbeMemStringify(tls, pIn3, encoding, uint8(1))
- flags3 = uint16(int32((*TMem)(unsafe.Pointer(pIn3)).Fflags) & ^libc.Int32FromInt32(MEM_TypeMask) | int32(flags3)&int32(MEM_TypeMask))
+ if int32(flags3)&int32(MEM_Str) != 0 {
+ p209 = pIn3 + 20
+ *(*Tu16)(unsafe.Pointer(p209)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p209))) & ^(libc.Int32FromInt32(MEM_Int) | libc.Int32FromInt32(MEM_Real) | libc.Int32FromInt32(MEM_IntReal)))
+ } else {
+ if int32(flags3)&(libc.Int32FromInt32(MEM_Int)|libc.Int32FromInt32(MEM_Real)|libc.Int32FromInt32(MEM_IntReal)) != 0 {
+ _sqlite3VdbeMemStringify(tls, pIn3, encoding, uint8(1))
+ flags3 = uint16(int32((*TMem)(unsafe.Pointer(pIn3)).Fflags) & ^libc.Int32FromInt32(MEM_TypeMask) | int32(flags3)&int32(MEM_TypeMask))
+ }
}
}
}
@@ -71220,7 +71605,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the result of an OP_Eq comparison on the two previous operands
** would have been false or NULL, then fall through.
*/
- _47: /* same as TK_ESCAPE, jump */
+ _47:
+ ; /* same as TK_ESCAPE, jump */
_ = libc.Int32FromInt32(0)
if iCompare == 0 {
goto jump_to_p2
@@ -71238,6 +71624,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** and does not become part of the permutation.
*/
_48:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -71265,7 +71652,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** This opcode must be immediately followed by an OP_Jump opcode.
*/
- _49: /* The permutation */
+ _49:
+ ; /* The permutation */
if int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&int32(OPFLAG_PERMUTE) == 0 {
aPermute = uintptr(0)
} else {
@@ -71287,11 +71675,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
break
}
if aPermute != 0 {
- v209 = *(*Tu32)(unsafe.Pointer(aPermute + uintptr(i)*4))
+ v211 = *(*Tu32)(unsafe.Pointer(aPermute + uintptr(i)*4))
} else {
- v209 = uint32(i)
+ v211 = uint32(i)
}
- idx = v209
+ idx = v211
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -71307,8 +71695,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
break
}
- goto _208
- _208:
+ goto _210
+ _210:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -71321,7 +71710,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** This opcode must immediately follow an OP_Compare opcode.
*/
- _50: /* jump */
+ _50:
+ ; /* jump */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if iCompare < 0 {
@@ -71354,8 +71744,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** even if the other input is NULL. A NULL and false or two NULLs
** give a NULL output.
*/
- _52: /* same as TK_AND, in1, in2, out3 */
- _51: /* Right operand: 0==FALSE, 1==TRUE, 2==UNKNOWN or NULL */
+ _52:
+ ; /* same as TK_AND, in1, in2, out3 */
+ _51:
+ ; /* Right operand: 0==FALSE, 1==TRUE, 2==UNKNOWN or NULL */
v11 = _sqlite3VdbeBooleanValue(tls, aMem+uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56, int32(2))
v21 = _sqlite3VdbeBooleanValue(tls, aMem+uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56, int32(2))
if int32((*TOp)(unsafe.Pointer(pOp)).Fopcode) == int32(OP_And) {
@@ -71391,7 +71783,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** <li> If P3==1 and P4==0 then r[P2] := r[P1] IS NOT FALSE
** </ul>
*/
- _53: /* in1, out2 */
+ _53:
+ ; /* in1, out2 */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -71404,7 +71797,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** boolean complement in register P2. If the value in register P1 is
** NULL, then a NULL is stored in P2.
*/
- _54: /* same as TK_NOT, in1, out2 */
+ _54:
+ ; /* same as TK_NOT, in1, out2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Null) == 0 {
@@ -71420,7 +71814,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** ones-complement of the P1 value into register P2. If P1 holds
** a NULL then store a NULL in P2.
*/
- _55: /* same as TK_BITNOT, in1, out2 */
+ _55:
+ ; /* same as TK_BITNOT, in1, out2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
_sqlite3VdbeMemSetNull(tls, pOut)
@@ -71446,15 +71841,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** because the self-altering code trick does not work for recursive
** triggers.
*/
- _56: /* Address of this instruction */
+ _56:
+ ; /* Address of this instruction */
_ = libc.Int32FromInt32(0)
if (*TVdbe)(unsafe.Pointer(p)).FpFrame != 0 {
iAddr = uint32(int32((int64(pOp) - int64((*TVdbe)(unsafe.Pointer(p)).FaOp)) / 24))
if int32(*(*Tu8)(unsafe.Pointer((*TVdbeFrame)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FpFrame)).FaOnce + uintptr(iAddr/uint32(8)))))&(int32(1)<<(iAddr&uint32(7))) != 0 {
goto jump_to_p2
}
- p210 = (*TVdbeFrame)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FpFrame)).FaOnce + uintptr(iAddr/uint32(8))
- *(*Tu8)(unsafe.Pointer(p210)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p210))) | libc.Int32FromInt32(1)<<(iAddr&libc.Uint32FromInt32(7)))
+ p212 = (*TVdbeFrame)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FpFrame)).FaOnce + uintptr(iAddr/uint32(8))
+ *(*Tu8)(unsafe.Pointer(p212)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p212))) | libc.Int32FromInt32(1)<<(iAddr&libc.Uint32FromInt32(7)))
} else {
if (*(*TOp)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FaOp))).Fp1 == (*TOp)(unsafe.Pointer(pOp)).Fp1 {
goto jump_to_p2
@@ -71469,6 +71865,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** in P1 is NULL then take the jump if and only if P3 is non-zero.
*/
_57:
+ ;
c = _sqlite3VdbeBooleanValue(tls, aMem+uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56, (*TOp)(unsafe.Pointer(pOp)).Fp3)
if c != 0 {
goto jump_to_p2
@@ -71481,6 +71878,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** in P1 is NULL then take the jump if and only if P3 is non-zero.
*/
_58:
+ ;
c1 = libc.BoolInt32(!(_sqlite3VdbeBooleanValue(tls, aMem+uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56, libc.BoolInt32(!((*TOp)(unsafe.Pointer(pOp)).Fp3 != 0))) != 0))
if c1 != 0 {
goto jump_to_p2
@@ -71491,7 +71889,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** Jump to P2 if the value in register P1 is NULL.
*/
- _59: /* same as TK_ISNULL, jump, in1 */
+ _59:
+ ; /* same as TK_ISNULL, jump, in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Null) != 0 {
goto jump_to_p2
@@ -71529,6 +71928,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
*/
_60:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if (*TOp)(unsafe.Pointer(pOp)).Fp1 >= 0 {
@@ -71564,7 +71964,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** register P2. If either registers P1 or P3 are NULL then put
** a NULL in register P2.
*/
- _61: /* in1, in2, out2, in3 */
+ _61:
+ ; /* in1, in2, out2, in3 */
if int32((*(*TMem)(unsafe.Pointer(aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56))).Fflags)&int32(MEM_Null) != 0 || int32((*(*TMem)(unsafe.Pointer(aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56))).Fflags)&int32(MEM_Null) != 0 {
_sqlite3VdbeMemSetNull(tls, aMem+uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56)
} else {
@@ -71576,7 +71977,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** Jump to P2 if the value in register P1 is not NULL.
*/
- _62: /* same as TK_NOTNULL, jump, in1 */
+ _62:
+ ; /* same as TK_NOTNULL, jump, in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Null) == 0 {
goto jump_to_p2
@@ -71593,6 +71995,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If P1 is not an open cursor, then this opcode is a no-op.
*/
_63:
+ ;
_ = libc.Int32FromInt32(0)
pC1 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
if pC1 != 0 && (*TVdbeCursor)(unsafe.Pointer(pC1)).FnullRow != 0 {
@@ -71615,7 +72018,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This opcode is only available if SQLite is compiled with the
** -DSQLITE_ENABLE_OFFSET_SQL_FUNC option.
*/
- _64: /* The VDBE cursor */
+ _64:
+ ; /* The VDBE cursor */
_ = libc.Int32FromInt32(0)
pC2 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
pOut = (*TVdbe)(unsafe.Pointer(p)).FaMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
@@ -71657,12 +72061,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** typeof() function or the IS NULL or IS NOT NULL operators or the
** equivalent. In this case, all content loading can be omitted.
*/
- _65: /* PseudoTable input register */
+ _65:
+ ; /* PseudoTable input register */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pC3 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
p22 = uint32((*TOp)(unsafe.Pointer(pOp)).Fp2)
op_column_restart:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
aOffset = (*TVdbeCursor)(unsafe.Pointer(pC3)).FaOffset
@@ -71678,9 +72084,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
pReg = aMem + uintptr((*TVdbeCursor)(unsafe.Pointer(pC3)).FseekResult)*56
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
- v211 = uint32((*TMem)(unsafe.Pointer(pReg)).Fn)
- (*TVdbeCursor)(unsafe.Pointer(pC3)).FszRow = v211
- (*TVdbeCursor)(unsafe.Pointer(pC3)).FpayloadSize = v211
+ v213 = uint32((*TMem)(unsafe.Pointer(pReg)).Fn)
+ (*TVdbeCursor)(unsafe.Pointer(pC3)).FszRow = v213
+ (*TVdbeCursor)(unsafe.Pointer(pC3)).FpayloadSize = v213
(*TVdbeCursor)(unsafe.Pointer(pC3)).FaRow = (*TMem)(unsafe.Pointer(pReg)).Fz
} else {
pDest = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
@@ -71691,11 +72097,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
pCrsr = *(*uintptr)(unsafe.Pointer(pC3 + 48))
if (*TVdbeCursor)(unsafe.Pointer(pC3)).FdeferredMoveto != 0 {
_ = libc.Int32FromInt32(0)
- if v213 = *(*uintptr)(unsafe.Pointer(pC3 + 16)) != 0; v213 {
- v212 = *(*Tu32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC3 + 16)) + uintptr(uint32(1)+p22)*4))
- iMap = v212
+ if v215 = *(*uintptr)(unsafe.Pointer(pC3 + 16)) != 0; v215 {
+ v214 = *(*Tu32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC3 + 16)) + uintptr(uint32(1)+p22)*4))
+ iMap = v214
}
- if v213 && v212 > uint32(0) {
+ if v215 && v214 > uint32(0) {
pC3 = (*TVdbeCursor)(unsafe.Pointer(pC3)).FpAltCursor
p22 = iMap - uint32(1)
goto op_column_restart
@@ -71722,9 +72128,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0) /* Maximum page size is 64KiB */
}
(*TVdbeCursor)(unsafe.Pointer(pC3)).FcacheStatus = (*TVdbe)(unsafe.Pointer(p)).FcacheCtr
- v214 = uint32(*(*Tu8)(unsafe.Pointer((*TVdbeCursor)(unsafe.Pointer(pC3)).FaRow)))
- *(*Tu32)(unsafe.Pointer(aOffset)) = v214
- if v214 < uint32(0x80) {
+ v216 = uint32(*(*Tu8)(unsafe.Pointer((*TVdbeCursor)(unsafe.Pointer(pC3)).FaRow)))
+ *(*Tu32)(unsafe.Pointer(aOffset)) = v216
+ if v216 < uint32(0x80) {
(*TVdbeCursor)(unsafe.Pointer(pC3)).FiHdrOffset = uint32(1)
} else {
(*TVdbeCursor)(unsafe.Pointer(pC3)).FiHdrOffset = uint32(_sqlite3GetVarint32(tls, (*TVdbeCursor)(unsafe.Pointer(pC3)).FaRow, aOffset))
@@ -71780,13 +72186,13 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** parsed and valid information is in aOffset[] and pC->aType[].
*/
if !(uint32((*TVdbeCursor)(unsafe.Pointer(pC3)).FnHdrParsed) <= p22) {
- goto _215
+ goto _217
}
/* If there is more header available for parsing in the record, try
** to extract additional fields up through the p2+1-th field
*/
if !((*TVdbeCursor)(unsafe.Pointer(pC3)).FiHdrOffset < *(*Tu32)(unsafe.Pointer(aOffset))) {
- goto _217
+ goto _219
}
/* Make sure zData points to enough of the record to cover the header. */
if (*TVdbeCursor)(unsafe.Pointer(pC3)).FaRow == uintptr(0) {
@@ -71801,16 +72207,17 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
/* Fill in pC->aType[i] and aOffset[i] values through the p2-th field. */
op_column_read_header:
+ ;
i1 = int32((*TVdbeCursor)(unsafe.Pointer(pC3)).FnHdrParsed)
offset64 = uint64(*(*Tu32)(unsafe.Pointer(aOffset + uintptr(i1)*4)))
zHdr = zData + uintptr((*TVdbeCursor)(unsafe.Pointer(pC3)).FiHdrOffset)
zEndHdr = zData + uintptr(*(*Tu32)(unsafe.Pointer(aOffset)))
for cond := true; cond; cond = uint32(i1) <= p22 && zHdr < zEndHdr {
- v220 = uint32(*(*Tu8)(unsafe.Pointer(zHdr)))
- *(*Tu32)(unsafe.Pointer(bp + 80)) = v220
- v219 = v220
- *(*Tu32)(unsafe.Pointer(pC3 + 120 + uintptr(i1)*4)) = v219
- if v219 < uint32(0x80) {
+ v222 = uint32(*(*Tu8)(unsafe.Pointer(zHdr)))
+ *(*Tu32)(unsafe.Pointer(bp + 80)) = v222
+ v221 = v222
+ *(*Tu32)(unsafe.Pointer(pC3 + 120 + uintptr(i1)*4)) = v221
+ if v221 < uint32(0x80) {
zHdr++
offset64 += uint64(_sqlite3VdbeOneByteSerialTypeLen(tls, uint8(*(*Tu32)(unsafe.Pointer(bp + 80)))))
} else {
@@ -71819,8 +72226,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
offset64 += uint64(_sqlite3VdbeSerialTypeLen(tls, *(*Tu32)(unsafe.Pointer(bp + 80))))
}
i1++
- v221 = i1
- *(*Tu32)(unsafe.Pointer(aOffset + uintptr(v221)*4)) = uint32(offset64 & libc.Uint64FromUint32(0xffffffff))
+ v223 = i1
+ *(*Tu32)(unsafe.Pointer(aOffset + uintptr(v223)*4)) = uint32(offset64 & libc.Uint64FromUint32(0xffffffff))
}
/* The record is corrupt if any of the following are true:
** (1) the bytes of the header extend past the declared header size
@@ -71843,10 +72250,12 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if (*TVdbeCursor)(unsafe.Pointer(pC3)).FaRow == uintptr(0) {
_sqlite3VdbeMemRelease(tls, bp+24)
}
- goto _218
- _217:
+ goto _220
+ _219:
+ ;
*(*Tu32)(unsafe.Pointer(bp + 80)) = uint32(0)
- _218:
+ _220:
+ ;
/* If after trying to extract new entries from the header, nHdrParsed is
** still not up to p2, that means that the record has fewer than p2
** columns. So the result will be either the default value or a NULL.
@@ -71860,10 +72269,12 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
goto op_column_out
}
- goto _216
- _215:
+ goto _218
+ _217:
+ ;
*(*Tu32)(unsafe.Pointer(bp + 80)) = *(*Tu32)(unsafe.Pointer(pC3 + 120 + uintptr(p22)*4))
- _216:
+ _218:
+ ;
/* Extract the content for the p2+1-th column. Control can only
** reach this point if aOffset[p2], aOffset[p2+1], and pC->aType[p2] are
** all valid.
@@ -71883,9 +72294,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if *(*Tu32)(unsafe.Pointer(bp + 80)) < uint32(12) {
_sqlite3VdbeSerialGet(tls, zData, *(*Tu32)(unsafe.Pointer(bp + 80)), pDest)
} else {
- v222 = int32((*(*Tu32)(unsafe.Pointer(bp + 80)) - libc.Uint32FromInt32(12)) / libc.Uint32FromInt32(2))
- len1 = v222
- (*TMem)(unsafe.Pointer(pDest)).Fn = v222
+ v224 = int32((*(*Tu32)(unsafe.Pointer(bp + 80)) - libc.Uint32FromInt32(12)) / libc.Uint32FromInt32(2))
+ len1 = v224
+ (*TMem)(unsafe.Pointer(pDest)).Fn = v224
(*TMem)(unsafe.Pointer(pDest)).Fenc = encoding
if (*TMem)(unsafe.Pointer(pDest)).FszMalloc < len1+int32(2) {
if len1 > *(*int32)(unsafe.Pointer(db + 136)) {
@@ -71907,9 +72318,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*TMem)(unsafe.Pointer(pDest)).Fenc = encoding
_ = libc.Int32FromInt32(0)
/* This branch happens only when content is on overflow pages */
- v223 = uint8(int32((*TOp)(unsafe.Pointer(pOp)).Fp5) & libc.Int32FromInt32(OPFLAG_BYTELENARG))
- p5 = v223
- if int32(v223) != 0 && (int32(p5) == int32(OPFLAG_TYPEOFARG) || *(*Tu32)(unsafe.Pointer(bp + 80)) >= uint32(12) && (*(*Tu32)(unsafe.Pointer(bp + 80))&uint32(1) == uint32(0) || int32(p5) == int32(OPFLAG_BYTELENARG))) || _sqlite3VdbeSerialTypeLen(tls, *(*Tu32)(unsafe.Pointer(bp + 80))) == uint32(0) {
+ v225 = uint8(int32((*TOp)(unsafe.Pointer(pOp)).Fp5) & libc.Int32FromInt32(OPFLAG_BYTELENARG))
+ p5 = v225
+ if int32(v225) != 0 && (int32(p5) == int32(OPFLAG_TYPEOFARG) || *(*Tu32)(unsafe.Pointer(bp + 80)) >= uint32(12) && (*(*Tu32)(unsafe.Pointer(bp + 80))&uint32(1) == uint32(0) || int32(p5) == int32(OPFLAG_BYTELENARG))) || _sqlite3VdbeSerialTypeLen(tls, *(*Tu32)(unsafe.Pointer(bp + 80))) == uint32(0) {
/* Content is irrelevant for
** 1. the typeof() function,
** 2. the length(X) function if X is a blob, and
@@ -71938,13 +72349,15 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
}
op_column_out:
+ ;
goto _187
op_column_corrupt:
+ ;
if (*(*TOp)(unsafe.Pointer(aOp))).Fp3 > 0 {
pOp = aOp + uintptr((*(*TOp)(unsafe.Pointer(aOp))).Fp3-int32(1))*24
goto _187
} else {
- rc = _sqlite3CorruptError(tls, int32(95755))
+ rc = _sqlite3CorruptError(tls, int32(95810))
goto abort_due_to_error
}
/* Opcode: TypeCheck P1 P2 P3 P4 *
@@ -71974,6 +72387,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If any precondition is false, an assertion fault occurs.
*/
_66:
+ ;
_ = libc.Int32FromInt32(0)
pTab = *(*uintptr)(unsafe.Pointer(pOp + 16))
_ = libc.Int32FromInt32(0)
@@ -71987,11 +72401,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
if int32((*(*TColumn)(unsafe.Pointer(aCol + uintptr(i2)*16))).FcolFlags)&int32(COLFLAG_GENERATED) != 0 {
if int32((*(*TColumn)(unsafe.Pointer(aCol + uintptr(i2)*16))).FcolFlags)&int32(COLFLAG_VIRTUAL) != 0 {
- goto _224
+ goto _226
}
if (*TOp)(unsafe.Pointer(pOp)).Fp3 != 0 {
pIn1 += 56
- goto _224
+ goto _226
}
}
_ = libc.Int32FromInt32(0)
@@ -72020,16 +72434,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** so that we keep the high-resolution integer value but know that
** the type really wants to be REAL. */
if *(*Ti64)(unsafe.Pointer(pIn1)) <= int64(140737488355327) && *(*Ti64)(unsafe.Pointer(pIn1)) >= -int64(140737488355328) {
- p225 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p225)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p225))) | libc.Int32FromInt32(MEM_IntReal))
- p226 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p226)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p226))) & ^libc.Int32FromInt32(MEM_Int))
- } else {
- *(*float64)(unsafe.Pointer(pIn1)) = float64(*(*Ti64)(unsafe.Pointer(pIn1)))
p227 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p227)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p227))) | libc.Int32FromInt32(MEM_Real))
+ *(*Tu16)(unsafe.Pointer(p227)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p227))) | libc.Int32FromInt32(MEM_IntReal))
p228 = pIn1 + 20
*(*Tu16)(unsafe.Pointer(p228)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p228))) & ^libc.Int32FromInt32(MEM_Int))
+ } else {
+ *(*float64)(unsafe.Pointer(pIn1)) = float64(*(*Ti64)(unsafe.Pointer(pIn1)))
+ p229 = pIn1 + 20
+ *(*Tu16)(unsafe.Pointer(p229)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p229))) | libc.Int32FromInt32(MEM_Real))
+ p230 = pIn1 + 20
+ *(*Tu16)(unsafe.Pointer(p230)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p230))) & ^libc.Int32FromInt32(MEM_Int))
}
} else {
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&(libc.Int32FromInt32(MEM_Real)|libc.Int32FromInt32(MEM_IntReal)) == 0 {
@@ -72042,14 +72456,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
}
pIn1 += 56
- goto _224
- _224:
+ goto _226
+ _226:
+ ;
i2++
}
_ = libc.Int32FromInt32(0)
goto _187
vdbe_type_error:
- _sqlite3VdbeError(tls, p, __ccgo_ts+5641, libc.VaList(bp+944, _vdbeMemTypeName(tls, pIn1), _sqlite3StdType[int32(uint32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i2)*16 + 8))&0xf0>>4))-int32(1)], (*TTable)(unsafe.Pointer(pTab)).FzName, (*(*TColumn)(unsafe.Pointer(aCol + uintptr(i2)*16))).FzCnName))
+ ;
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5666, libc.VaList(bp+944, _vdbeMemTypeName(tls, pIn1), _sqlite3StdType[int32(uint32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i2)*16 + 8))&0xf0>>4))-int32(1)], (*TTable)(unsafe.Pointer(pTab)).FzName, (*(*TColumn)(unsafe.Pointer(aCol + uintptr(i2)*16))).FzCnName))
rc = libc.Int32FromInt32(SQLITE_CONSTRAINT) | libc.Int32FromInt32(12)<<libc.Int32FromInt32(8)
goto abort_due_to_error
/* Opcode: Affinity P1 P2 * P4 *
@@ -72061,7 +72477,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** string indicates the column affinity that should be used for the N-th
** memory cell in the range.
*/
- _67: /* The affinity to be applied */
+ _67:
+ ; /* The affinity to be applied */
zAffinity = *(*uintptr)(unsafe.Pointer(pOp + 16))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -72077,16 +72494,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** so that we keep the high-resolution integer value but know that
** the type really wants to be REAL. */
if *(*Ti64)(unsafe.Pointer(pIn1)) <= int64(140737488355327) && *(*Ti64)(unsafe.Pointer(pIn1)) >= -int64(140737488355328) {
- p229 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p229)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p229))) | libc.Int32FromInt32(MEM_IntReal))
- p230 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p230)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p230))) & ^libc.Int32FromInt32(MEM_Int))
- } else {
- *(*float64)(unsafe.Pointer(pIn1)) = float64(*(*Ti64)(unsafe.Pointer(pIn1)))
p231 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p231)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p231))) | libc.Int32FromInt32(MEM_Real))
+ *(*Tu16)(unsafe.Pointer(p231)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p231))) | libc.Int32FromInt32(MEM_IntReal))
p232 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p232)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p232))) & ^(libc.Int32FromInt32(MEM_Int) | libc.Int32FromInt32(MEM_Str)))
+ *(*Tu16)(unsafe.Pointer(p232)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p232))) & ^libc.Int32FromInt32(MEM_Int))
+ } else {
+ *(*float64)(unsafe.Pointer(pIn1)) = float64(*(*Ti64)(unsafe.Pointer(pIn1)))
+ p233 = pIn1 + 20
+ *(*Tu16)(unsafe.Pointer(p233)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p233))) | libc.Int32FromInt32(MEM_Real))
+ p234 = pIn1 + 20
+ *(*Tu16)(unsafe.Pointer(p234)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p234))) & ^(libc.Int32FromInt32(MEM_Int) | libc.Int32FromInt32(MEM_Str)))
}
}
zAffinity++
@@ -72123,7 +72540,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** accept no-change records with serial_type 10. This value is
** only used inside an assert() and does not affect the end result.
*/
- _68: /* Where to write next byte of the payload */
+ _68:
+ ; /* Where to write next byte of the payload */
/* Assuming the record contains N fields, the record format looks
** like this:
**
@@ -72140,8 +72558,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** of the record to data0.
*/
nData = uint64(0) /* Number of bytes of data space */
- nHdr = 0 /* Number of bytes of header space */
- nZero = 0 /* Number of zero bytes at the end of the record */
+ nHdr = 0 /* Number of bytes of header space */
+ nZero = 0 /* Number of zero bytes at the end of the record */
nField = (*TOp)(unsafe.Pointer(pOp)).Fp1
zAffinity1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
_ = libc.Int32FromInt32(0)
@@ -72159,10 +72577,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
for cond := true; cond; cond = *(*uint8)(unsafe.Pointer(zAffinity1)) != 0 {
_applyAffinity(tls, pRec, *(*uint8)(unsafe.Pointer(zAffinity1)), encoding)
if int32(*(*uint8)(unsafe.Pointer(zAffinity1))) == int32(SQLITE_AFF_REAL) && int32((*TMem)(unsafe.Pointer(pRec)).Fflags)&int32(MEM_Int) != 0 {
- p233 = pRec + 20
- *(*Tu16)(unsafe.Pointer(p233)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p233))) | libc.Int32FromInt32(MEM_IntReal))
- p234 = pRec + 20
- *(*Tu16)(unsafe.Pointer(p234)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p234))) & ^libc.Int32FromInt32(MEM_Int))
+ p235 = pRec + 20
+ *(*Tu16)(unsafe.Pointer(p235)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p235))) | libc.Int32FromInt32(MEM_IntReal))
+ p236 = pRec + 20
+ *(*Tu16)(unsafe.Pointer(p236)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p236))) & ^libc.Int32FromInt32(MEM_Int))
}
zAffinity1++
pRec += 56
@@ -72252,10 +72670,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** as an integer, then we might as well make it an 8-byte floating
** point value */
*(*float64)(unsafe.Pointer(pRec)) = float64(*(*Ti64)(unsafe.Pointer(pRec)))
- p235 = pRec + 20
- *(*Tu16)(unsafe.Pointer(p235)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p235))) & ^libc.Int32FromInt32(MEM_IntReal))
- p236 = pRec + 20
- *(*Tu16)(unsafe.Pointer(p236)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p236))) | libc.Int32FromInt32(MEM_Real))
+ p237 = pRec + 20
+ *(*Tu16)(unsafe.Pointer(p237)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p237))) & ^libc.Int32FromInt32(MEM_IntReal))
+ p238 = pRec + 20
+ *(*Tu16)(unsafe.Pointer(p238)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p238))) | libc.Int32FromInt32(MEM_Real))
(*TMem)(unsafe.Pointer(pRec)).FuTemp = uint32(7)
} else {
(*TMem)(unsafe.Pointer(pRec)).FuTemp = uint32(6)
@@ -72336,16 +72754,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(MEM_Blob)
if nZero != 0 {
*(*int32)(unsafe.Pointer(&(*TMem)(unsafe.Pointer(pOut)).Fu)) = int32(nZero)
- p237 = pOut + 20
- *(*Tu16)(unsafe.Pointer(p237)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p237))) | libc.Int32FromInt32(MEM_Zero))
+ p239 = pOut + 20
+ *(*Tu16)(unsafe.Pointer(p239)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p239))) | libc.Int32FromInt32(MEM_Zero))
}
zHdr1 = (*TMem)(unsafe.Pointer(pOut)).Fz
zPayload = zHdr1 + uintptr(nHdr)
/* Write the record */
if nHdr < int32(0x80) {
- v238 = zHdr1
+ v240 = zHdr1
zHdr1++
- *(*Tu8)(unsafe.Pointer(v238)) = uint8(nHdr)
+ *(*Tu8)(unsafe.Pointer(v240)) = uint8(nHdr)
} else {
zHdr1 += uintptr(_sqlite3PutVarint(tls, zHdr1, uint64(nHdr)))
}
@@ -72358,9 +72776,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** EVIDENCE-OF: R-64536-51728 The values for each column in the record
** immediately follow the header. */
if serial_type <= uint32(7) {
- v239 = zHdr1
+ v241 = zHdr1
zHdr1++
- *(*Tu8)(unsafe.Pointer(v239)) = uint8(serial_type)
+ *(*Tu8)(unsafe.Pointer(v241)) = uint8(serial_type)
if serial_type == uint32(0) {
/* NULL value. No change in zPayload */
} else {
@@ -72404,9 +72822,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
} else {
if serial_type < uint32(0x80) {
- v240 = zHdr1
+ v242 = zHdr1
zHdr1++
- *(*Tu8)(unsafe.Pointer(v240)) = uint8(serial_type)
+ *(*Tu8)(unsafe.Pointer(v242)) = uint8(serial_type)
if serial_type >= uint32(14) && (*TMem)(unsafe.Pointer(pRec)).Fn > 0 {
_ = libc.Int32FromInt32(0)
libc.Xmemcpy(tls, zPayload, (*TMem)(unsafe.Pointer(pRec)).Fz, uint64((*TMem)(unsafe.Pointer(pRec)).Fn))
@@ -72441,6 +72859,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** is returned based on the current cursor position.
*/
_69:
+ ;
_ = libc.Int32FromInt32(0)
pCrsr1 = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8)) + 48))
_ = libc.Int32FromInt32(0)
@@ -72464,6 +72883,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** To rollback an existing savepoint set P1==2 (SAVEPOINT_ROLLBACK).
*/
_70:
+ ;
p12 = (*TOp)(unsafe.Pointer(pOp)).Fp1
zName = *(*uintptr)(unsafe.Pointer(pOp + 16))
/* Assert that the p1 parameter is valid. Also that if there is no open
@@ -72479,7 +72899,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
/* A new savepoint cannot be created if there are active write
** statements (i.e. open read/write incremental blob handles).
*/
- _sqlite3VdbeError(tls, p, __ccgo_ts+5682, 0)
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5707, 0)
rc = int32(SQLITE_BUSY)
} else {
nName = _sqlite3Strlen30(tls, zName)
@@ -72523,19 +72943,20 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
break
}
iSavepoint++
- goto _241
- _241:
+ goto _243
+ _243:
+ ;
pSavepoint = (*TSavepoint)(unsafe.Pointer(pSavepoint)).FpNext
}
if !(pSavepoint != 0) {
- _sqlite3VdbeError(tls, p, __ccgo_ts+5733, libc.VaList(bp+944, zName))
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5758, libc.VaList(bp+944, zName))
rc = int32(SQLITE_ERROR)
} else {
if (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0 && p12 == int32(SAVEPOINT_RELEASE) {
/* It is not possible to release (commit) a savepoint if there are
** active write statements.
*/
- _sqlite3VdbeError(tls, p, __ccgo_ts+5755, 0)
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5780, 0)
rc = int32(SQLITE_BUSY)
} else {
/* Determine whether or not this is a transaction savepoint. If so,
@@ -72544,18 +72965,18 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
*/
isTransaction = libc.BoolInt32((*TSavepoint)(unsafe.Pointer(pSavepoint)).FpNext == uintptr(0) && (*Tsqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint != 0)
if isTransaction != 0 && p12 == int32(SAVEPOINT_RELEASE) {
- v242 = _sqlite3VdbeCheckFk(tls, p, int32(1))
- rc = v242
- if v242 != SQLITE_OK {
+ v244 = _sqlite3VdbeCheckFk(tls, p, int32(1))
+ rc = v244
+ if v244 != SQLITE_OK {
goto vdbe_return
}
(*Tsqlite3)(unsafe.Pointer(db)).FautoCommit = uint8(1)
if _sqlite3VdbeHalt(tls, p) == int32(SQLITE_BUSY) {
(*TVdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Tsqlite3)(unsafe.Pointer(db)).FautoCommit = uint8(0)
- v243 = libc.Int32FromInt32(SQLITE_BUSY)
- rc = v243
- (*TVdbe)(unsafe.Pointer(p)).Frc = v243
+ v245 = libc.Int32FromInt32(SQLITE_BUSY)
+ rc = v245
+ (*TVdbe)(unsafe.Pointer(p)).Frc = v245
goto vdbe_return
}
rc = (*TVdbe)(unsafe.Pointer(p)).Frc
@@ -72577,8 +72998,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if rc != SQLITE_OK {
goto abort_due_to_error
}
- goto _244
- _244:
+ goto _246
+ _246:
+ ;
ii++
}
} else {
@@ -72594,8 +73016,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if rc != SQLITE_OK {
goto abort_due_to_error
}
- goto _245
- _245:
+ goto _247
+ _247:
+ ;
ii++
}
if isSchemaChange != 0 {
@@ -72658,6 +73081,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This instruction causes the VM to halt.
*/
_71:
+ ;
desiredAutoCommit = (*TOp)(unsafe.Pointer(pOp)).Fp1
iRollback = (*TOp)(unsafe.Pointer(pOp)).Fp2
_ = libc.Int32FromInt32(0)
@@ -72674,13 +73098,13 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
/* If this instruction implements a COMMIT and other VMs are writing
** return an error indicating that the other VMs must complete first.
*/
- _sqlite3VdbeError(tls, p, __ccgo_ts+5809, 0)
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5834, 0)
rc = int32(SQLITE_BUSY)
goto abort_due_to_error
} else {
- v246 = _sqlite3VdbeCheckFk(tls, p, int32(1))
- rc = v246
- if v246 != SQLITE_OK {
+ v248 = _sqlite3VdbeCheckFk(tls, p, int32(1))
+ rc = v248
+ if v248 != SQLITE_OK {
goto vdbe_return
} else {
(*Tsqlite3)(unsafe.Pointer(db)).FautoCommit = uint8(desiredAutoCommit)
@@ -72690,9 +73114,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if _sqlite3VdbeHalt(tls, p) == int32(SQLITE_BUSY) {
(*TVdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24)
(*Tsqlite3)(unsafe.Pointer(db)).FautoCommit = uint8(libc.Int32FromInt32(1) - desiredAutoCommit)
- v247 = libc.Int32FromInt32(SQLITE_BUSY)
- rc = v247
- (*TVdbe)(unsafe.Pointer(p)).Frc = v247
+ v249 = libc.Int32FromInt32(SQLITE_BUSY)
+ rc = v249
+ (*TVdbe)(unsafe.Pointer(p)).Frc = v249
goto vdbe_return
}
_sqlite3CloseSavepoints(tls, db)
@@ -72704,16 +73128,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
goto vdbe_return
} else {
if !(desiredAutoCommit != 0) {
- v248 = __ccgo_ts + 5864
+ v250 = __ccgo_ts + 5889
} else {
if iRollback != 0 {
- v249 = __ccgo_ts + 5912
+ v251 = __ccgo_ts + 5937
} else {
- v249 = __ccgo_ts + 5955
+ v251 = __ccgo_ts + 5980
}
- v248 = v249
+ v250 = v251
}
- _sqlite3VdbeError(tls, p, v248, 0)
+ _sqlite3VdbeError(tls, p, v250, 0)
rc = int32(SQLITE_ERROR)
goto abort_due_to_error
}
@@ -72754,6 +73178,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** statement and rerun it from the beginning.
*/
_72:
+ ;
*(*int32)(unsafe.Pointer(bp + 104)) = 0
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -72810,7 +73235,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** SQL statement was prepared.
*/
_sqlite3DbFree(tls, db, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg)
- (*TVdbe)(unsafe.Pointer(p)).FzErrMsg = _sqlite3DbStrDup(tls, db, __ccgo_ts+5996)
+ (*TVdbe)(unsafe.Pointer(p)).FzErrMsg = _sqlite3DbStrDup(tls, db, __ccgo_ts+6021)
/* If the schema-cookie from the database file matches the cookie
** stored with the in-memory representation of the schema, do
** not reload the schema from the database file.
@@ -72851,6 +73276,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** executing this instruction.
*/
_73:
+ ;
_ = libc.Int32FromInt32(0)
iDb = (*TOp)(unsafe.Pointer(pOp)).Fp1
iCookie = (*TOp)(unsafe.Pointer(pOp)).Fp3
@@ -72878,6 +73304,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** from the database schema version, resulting in a schema reset.
*/
_74:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -72993,6 +73420,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: OP_OpenRead, OP_ReopenIdx
*/
_77:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pCur = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -73004,8 +73432,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
/* If the cursor is not currently open or is open on a different
** index, then fall through into OP_OpenRead to force a reopen */
- _76: /* ncycle */
+ _76:
+ ; /* ncycle */
_75:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -73076,6 +73506,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** since moved into the btree layer. */
(*TVdbeCursor)(unsafe.Pointer(pCur)).FisTable = libc.BoolUint8(int32((*TOp)(unsafe.Pointer(pOp)).Fp4type) != -int32(8))
open_cursor_set_hints:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_sqlite3BtreeCursorHintFlags(tls, *(*uintptr)(unsafe.Pointer(pCur + 48)), uint32(int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&(libc.Int32FromInt32(OPFLAG_BULKCSR)|libc.Int32FromInt32(OPFLAG_SEEKEQ))))
@@ -73091,7 +73522,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** Duplicate ephemeral cursors are used for self-joins of materialized views.
*/
- _78: /* The new cursor */
+ _78:
+ ; /* The new cursor */
pOrig = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*8))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0) /* Only ephemeral cursors can be duplicated */
@@ -73147,8 +73579,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** by this opcode will be used for automatically created transient
** indices in joins.
*/
- _80: /* ncycle */
+ _80:
+ ; /* ncycle */
_79:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if (*TOp)(unsafe.Pointer(pOp)).Fp3 > 0 {
@@ -73184,11 +73618,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** opening it. If a transient table is required, just use the
** automatically created table with root-page 1 (an BLOB_INTKEY table).
*/
- v251 = *(*uintptr)(unsafe.Pointer(pOp + 16))
- pKeyInfo2 = v251
- v250 = v251
- (*TVdbeCursor)(unsafe.Pointer(pCx1)).FpKeyInfo = v250
- if v250 != uintptr(0) {
+ v253 = *(*uintptr)(unsafe.Pointer(pOp + 16))
+ pKeyInfo2 = v253
+ v252 = v253
+ (*TVdbeCursor)(unsafe.Pointer(pCx1)).FpKeyInfo = v252
+ if v252 != uintptr(0) {
_ = libc.Int32FromInt32(0)
rc = _sqlite3BtreeCreateTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), pCx1+68, int32(BTREE_BLOBKEY)|int32((*TOp)(unsafe.Pointer(pOp)).Fp5))
if rc == SQLITE_OK {
@@ -73226,6 +73660,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** key is sufficient to produce the required results.
*/
_81:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pCx2 = _allocateCursor(tls, p, (*TOp)(unsafe.Pointer(pOp)).Fp1, (*TOp)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_SORTER))
@@ -73248,13 +73683,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the sequence value.
*/
_82:
+ ;
_ = libc.Int32FromInt32(0)
pC4 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
- v253 = pC4 + 24
- v252 = *(*Ti64)(unsafe.Pointer(v253))
- *(*Ti64)(unsafe.Pointer(v253))++
- if v252 == 0 {
+ v255 = pC4 + 24
+ v254 = *(*Ti64)(unsafe.Pointer(v255))
+ *(*Ti64)(unsafe.Pointer(v255))++
+ if v254 == 0 {
goto jump_to_p2
}
goto _187
@@ -73275,6 +73711,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the pseudo-table.
*/
_83:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pCx3 = _allocateCursor(tls, p, (*TOp)(unsafe.Pointer(pOp)).Fp1, (*TOp)(unsafe.Pointer(pOp)).Fp3, uint8(CURTYPE_PSEUDO))
@@ -73296,7 +73733,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Close a cursor previously opened as P1. If P1 is not
** currently open, this instruction is a no-op.
*/
- _84: /* ncycle */
+ _84:
+ ; /* ncycle */
_ = libc.Int32FromInt32(0)
_sqlite3VdbeFreeCursor(tls, p, *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8)))
*(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8)) = uintptr(0)
@@ -73391,10 +73829,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** See also: Found, NotFound, SeekGt, SeekGe, SeekLt
*/
- _88: /* jump, in3, group, ncycle */
- _87: /* jump, in3, group, ncycle */
- _86: /* jump, in3, group, ncycle */
- _85: /* Only interested in == results */
+ _88:
+ ; /* jump, in3, group, ncycle */
+ _87:
+ ; /* jump, in3, group, ncycle */
+ _86:
+ ; /* jump, in3, group, ncycle */
+ _85:
+ ; /* Only interested in == results */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pC5 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -73499,11 +73941,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** }
*/
if int32(1)&(oc-int32(OP_SeekLT)) != 0 {
- v254 = -int32(1)
+ v256 = -int32(1)
} else {
- v254 = +libc.Int32FromInt32(1)
+ v256 = +libc.Int32FromInt32(1)
}
- (*(*TUnpackedRecord)(unsafe.Pointer(bp + 120))).Fdefault_rc = int8(v254)
+ (*(*TUnpackedRecord)(unsafe.Pointer(bp + 120))).Fdefault_rc = int8(v256)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -73556,6 +73998,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
}
seek_not_found:
+ ;
_ = libc.Int32FromInt32(0)
if *(*int32)(unsafe.Pointer(bp + 112)) != 0 {
goto jump_to_p2
@@ -73635,6 +74078,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** </ol>
*/
_89:
+ ;
_ = libc.Int32FromInt32(0)
/* If pOp->p5 is clear, then pOp->p2 points to the first instruction past the
** OP_IdxGT that follows the OP_SeekGE. Otherwise, it points to the first
@@ -73655,29 +74099,32 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*(*TUnpackedRecord)(unsafe.Pointer(bp + 168))).Fdefault_rc = 0
(*(*TUnpackedRecord)(unsafe.Pointer(bp + 168))).FaMem = aMem + uintptr((*(*TOp)(unsafe.Pointer(pOp + 1*24))).Fp3)*56
*(*int32)(unsafe.Pointer(bp + 160)) = 0 /* Not needed. Only used to silence a warning. */
- _256:
+ _258:
+ ;
if !(int32(1) != 0) {
- goto _255
+ goto _257
}
rc = _sqlite3VdbeIdxKeyCompare(tls, db, pC6, bp+168, bp+160)
if rc != 0 {
goto abort_due_to_error
}
if !(*(*int32)(unsafe.Pointer(bp + 160)) > 0 && int32((*TOp)(unsafe.Pointer(pOp)).Fp5) == 0) {
- goto _257
+ goto _259
}
seekscan_search_fail:
+ ;
/* Jump to SeekGE.P2, ending the loop */
pOp += 24
goto jump_to_p2
- _257:
+ _259:
+ ;
if *(*int32)(unsafe.Pointer(bp + 160)) >= 0 {
/* Jump to This.P2, bypassing the OP_SeekGE opcode */
goto jump_to_p2
- goto _255
+ goto _257
}
if nStep <= 0 {
- goto _255
+ goto _257
}
nStep--
(*TVdbeCursor)(unsafe.Pointer(pC6)).FcacheStatus = uint32(CACHE_STALE)
@@ -73690,8 +74137,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
goto abort_due_to_error
}
}
- goto _256
- _255:
+ goto _258
+ _257:
+ ;
goto _187
/* Opcode: SeekHit P1 P2 P3 * *
** Synopsis: set P2<=seekHit<=P3
@@ -73708,6 +74156,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P1 must be a valid b-tree cursor.
*/
_90:
+ ;
_ = libc.Int32FromInt32(0)
pC7 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -73727,6 +74176,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** OP_NullRow opcode, then jump to instruction P2. Otherwise, fall through.
*/
_91:
+ ;
_ = libc.Int32FromInt32(0)
pCur1 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
if pCur1 == uintptr(0) || (*TVdbeCursor)(unsafe.Pointer(pCur1)).FnullRow != 0 {
@@ -73824,15 +74274,19 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: NotFound, Found, NotExists
*/
_92:
+ ;
_ = libc.Int32FromInt32(0)
pC8 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
if int32((*TVdbeCursor)(unsafe.Pointer(pC8)).FseekHit) >= (*TOp)(unsafe.Pointer(pOp)).Fp4.Fi {
goto _187
}
- _95: /* jump, in3, ncycle */
- _94: /* jump, in3, ncycle */
+ _95:
+ ; /* jump, in3, ncycle */
+ _94:
+ ; /* jump, in3, ncycle */
_93:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pC9 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -73852,11 +74306,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TMem)(unsafe.Pointer((*(*TUnpackedRecord)(unsafe.Pointer(bp + 208))).FaMem)).Fflags)&int32(MEM_Zero) != 0 {
- v258 = _sqlite3VdbeMemExpandBlob(tls, (*(*TUnpackedRecord)(unsafe.Pointer(bp + 208))).FaMem)
+ v260 = _sqlite3VdbeMemExpandBlob(tls, (*(*TUnpackedRecord)(unsafe.Pointer(bp + 208))).FaMem)
} else {
- v258 = 0
+ v260 = 0
}
- rc = v258
+ rc = v260
_ = libc.Int32FromInt32(0)
if rc != 0 {
goto no_mem
@@ -73897,8 +74351,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if int32((*(*TMem)(unsafe.Pointer((*(*TUnpackedRecord)(unsafe.Pointer(bp + 208))).FaMem + uintptr(ii1)*56))).Fflags)&int32(MEM_Null) != 0 {
goto jump_to_p2
}
- goto _259
- _259:
+ goto _261
+ _261:
+ ;
ii1++
}
}
@@ -73955,6 +74410,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: Found, NotFound, NoConflict, SeekRowid
*/
_97:
+ ;
pIn3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
if int32((*TMem)(unsafe.Pointer(pIn3)).Fflags)&(libc.Int32FromInt32(MEM_Int)|libc.Int32FromInt32(MEM_IntReal)) == 0 {
/* If pIn3->u.i does not contain an integer, compute iKey as the
@@ -73976,12 +74432,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
iKey1 = uint64(*(*Ti64)(unsafe.Pointer(bp + 256)))
goto notExistsWithKey
}
- _96: /* jump, in3, ncycle */
+ _96:
+ ; /* jump, in3, ncycle */
pIn3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
iKey1 = uint64(*(*Ti64)(unsafe.Pointer(pIn3)))
notExistsWithKey:
+ ;
pC10 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -73999,7 +74457,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if *(*int32)(unsafe.Pointer(bp + 248)) != 0 {
_ = libc.Int32FromInt32(0)
if (*TOp)(unsafe.Pointer(pOp)).Fp2 == 0 {
- rc = _sqlite3CorruptError(tls, int32(98003))
+ rc = _sqlite3CorruptError(tls, int32(98058))
} else {
goto jump_to_p2
}
@@ -74016,15 +74474,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** The sequence number on the cursor is incremented after this
** instruction.
*/
- _98: /* out2 */
+ _98:
+ ; /* out2 */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pOut = _out2Prerelease(tls, p, pOp)
- v261 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8)) + 24
- v260 = *(*Ti64)(unsafe.Pointer(v261))
- *(*Ti64)(unsafe.Pointer(v261))++
- *(*Ti64)(unsafe.Pointer(pOut)) = v260
+ v263 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8)) + 24
+ v262 = *(*Ti64)(unsafe.Pointer(v263))
+ *(*Ti64)(unsafe.Pointer(v263))++
+ *(*Ti64)(unsafe.Pointer(pOut)) = v262
goto _187
/* Opcode: NewRowid P1 P2 P3 * *
** Synopsis: r[P2]=rowid
@@ -74041,7 +74500,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** generated record number. This P3 mechanism is used to help implement the
** AUTOINCREMENT feature.
*/
- _99: /* Root frame of VDBE */
+ _99:
+ ; /* Root frame of VDBE */
*(*Ti64)(unsafe.Pointer(bp + 312)) = 0
*(*int32)(unsafe.Pointer(bp + 320)) = 0
pOut = _out2Prerelease(tls, p, pOp)
@@ -74095,8 +74555,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if !((*TVdbeFrame)(unsafe.Pointer(pFrame1)).FpParent != 0) {
break
}
- goto _262
- _262:
+ goto _264
+ _264:
+ ;
pFrame1 = (*TVdbeFrame)(unsafe.Pointer(pFrame1)).FpParent
}
/* Assert that P3 is a valid memory cell. */
@@ -74131,15 +74592,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
Xsqlite3_randomness(tls, int32(8), bp+312)
*(*Ti64)(unsafe.Pointer(bp + 312)) &= int64(libc.Uint64FromInt32(0x7fffffff)<<libc.Int32FromInt32(32)|libc.Uint64FromUint32(0xffffffff)) >> libc.Int32FromInt32(1)
*(*Ti64)(unsafe.Pointer(bp + 312))++ /* Ensure that v is greater than zero */
- goto _266
- _266:
- v263 = _sqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC11 + 48)), int64(uint64(*(*Ti64)(unsafe.Pointer(bp + 312)))), 0, bp+320)
- rc = v263
- if v265 = v263 == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 320)) == 0; v265 {
+ goto _268
+ _268:
+ ;
+ v265 = _sqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC11 + 48)), int64(uint64(*(*Ti64)(unsafe.Pointer(bp + 312)))), 0, bp+320)
+ rc = v265
+ if v267 = v265 == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 320)) == 0; v267 {
cnt1++
- v264 = cnt1
+ v266 = cnt1
}
- if !(v265 && v264 < int32(100)) {
+ if !(v267 && v266 < int32(100)) {
break
}
}
@@ -74193,7 +74655,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This instruction only works on tables. The equivalent instruction
** for indices is OP_IdxInsert.
*/
- _100: /* Payload to be inserted */
+ _100:
+ ; /* Payload to be inserted */
pData = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -74241,11 +74704,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*(*TBtreePayload)(unsafe.Pointer(bp + 328))).FpData = (*TMem)(unsafe.Pointer(pData)).Fz
(*(*TBtreePayload)(unsafe.Pointer(bp + 328))).FnData = (*TMem)(unsafe.Pointer(pData)).Fn
if int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&int32(OPFLAG_USESEEKRESULT) != 0 {
- v267 = (*TVdbeCursor)(unsafe.Pointer(pC12)).FseekResult
+ v269 = (*TVdbeCursor)(unsafe.Pointer(pC12)).FseekResult
} else {
- v267 = 0
+ v269 = 0
}
- seekResult = v267
+ seekResult = v269
if int32((*TMem)(unsafe.Pointer(pData)).Fflags)&int32(MEM_Zero) != 0 {
(*(*TBtreePayload)(unsafe.Pointer(bp + 328))).FnZero = *(*int32)(unsafe.Pointer(&(*TMem)(unsafe.Pointer(pData)).Fu))
} else {
@@ -74265,11 +74728,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&int32(OPFLAG_ISUPDATE) != 0 {
- v268 = int32(SQLITE_UPDATE)
+ v270 = int32(SQLITE_UPDATE)
} else {
- v268 = int32(SQLITE_INSERT)
+ v270 = int32(SQLITE_INSERT)
}
- (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, Tsqlite_int64))(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).FxUpdateCallback})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpUpdateArg, v268, zDb, (*TTable)(unsafe.Pointer(pTab1)).FzName, (*(*TBtreePayload)(unsafe.Pointer(bp + 328))).FnKey)
+ (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, Tsqlite_int64))(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).FxUpdateCallback})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpUpdateArg, v270, zDb, (*TTable)(unsafe.Pointer(pTab1)).FzName, (*(*TBtreePayload)(unsafe.Pointer(bp + 328))).FnKey)
}
goto _187
/* Opcode: RowCell P1 P2 P3 * *
@@ -74283,7 +74746,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This opcode must be followed by either an Insert or InsertIdx opcode
** with the OPFLAG_PREFORMAT flag set to complete the insert operation.
*/
- _101: /* Rowid value to insert with */
+ _101:
+ ; /* Rowid value to insert with */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -74291,11 +74755,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
pDest1 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
pSrc = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*8))
if (*TOp)(unsafe.Pointer(pOp)).Fp3 != 0 {
- v269 = *(*Ti64)(unsafe.Pointer(aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56))
+ v271 = *(*Ti64)(unsafe.Pointer(aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56))
} else {
- v269 = 0
+ v271 = 0
}
- iKey2 = v269
+ iKey2 = v271
rc = _sqlite3BtreeTransferRow(tls, *(*uintptr)(unsafe.Pointer(pDest1 + 48)), *(*uintptr)(unsafe.Pointer(pSrc + 48)), iKey2)
if rc != SQLITE_OK {
goto abort_due_to_error
@@ -74342,6 +74806,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** be set to by the update.
*/
_102:
+ ;
opflags = (*TOp)(unsafe.Pointer(pOp)).Fp2
_ = libc.Int32FromInt32(0)
pC13 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -74371,11 +74836,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if (*Tsqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && pTab2 != 0 {
_ = libc.Int32FromInt32(0)
if opflags&int32(OPFLAG_ISUPDATE) != 0 {
- v270 = int32(SQLITE_UPDATE)
+ v272 = int32(SQLITE_UPDATE)
} else {
- v270 = int32(SQLITE_DELETE)
+ v272 = int32(SQLITE_DELETE)
}
- _sqlite3VdbePreUpdateHook(tls, p, pC13, v270, zDb1, pTab2, (*TVdbeCursor)(unsafe.Pointer(pC13)).FmovetoTarget, (*TOp)(unsafe.Pointer(pOp)).Fp3, -int32(1))
+ _sqlite3VdbePreUpdateHook(tls, p, pC13, v272, zDb1, pTab2, (*TVdbeCursor)(unsafe.Pointer(pC13)).FmovetoTarget, (*TOp)(unsafe.Pointer(pOp)).Fp3, -int32(1))
}
if opflags&int32(OPFLAG_ISNOOP) != 0 {
goto _187
@@ -74408,6 +74873,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This is used by trigger programs.
*/
_103:
+ ;
_sqlite3VdbeSetChanges(tls, db, (*TVdbe)(unsafe.Pointer(p)).FnChange)
(*TVdbe)(unsafe.Pointer(p)).FnChange = 0
goto _187
@@ -74427,6 +74893,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** each other. Jump to P2 if they are different.
*/
_104:
+ ;
pC14 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -74454,6 +74921,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** us from having to issue a separate NullRow instruction to clear that cache.
*/
_105:
+ ;
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
pC15 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -74494,6 +74962,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** by any use of another cursor pointing to the same table.
*/
_106:
+ ;
pOut = _out2Prerelease(tls, p, pOp)
_ = libc.Int32FromInt32(0)
pC16 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -74538,6 +75007,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** one opcode now works for both table types.
*/
_107:
+ ;
pOut = _out2Prerelease(tls, p, pOp)
_ = libc.Int32FromInt32(0)
pC17 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -74587,6 +75057,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** pseudo-cursor that always returns NULL for every column.
*/
_108:
+ ;
_ = libc.Int32FromInt32(0)
pC18 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
if pC18 == uintptr(0) {
@@ -74630,8 +75101,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** from the end toward the beginning. In other words, the cursor is
** configured to use Prev, not Next.
*/
- _110: /* ncycle */
+ _110:
+ ; /* ncycle */
_109:
+ ;
_ = libc.Int32FromInt32(0)
pC19 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -74665,6 +75138,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** estimate is less than approximately 2**(0.1*P3).
*/
_111:
+ ;
_ = libc.Int32FromInt32(0)
pC20 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -74705,8 +75179,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** regression tests can determine whether or not the optimizer is
** correctly optimizing out sorts.
*/
- _113: /* jump ncycle */
- _112: /* jump ncycle */
+ _113:
+ ; /* jump ncycle */
+ _112:
+ ; /* jump ncycle */
*(*Tu32)(unsafe.Pointer(p + 212 + 2*4))++
/* Opcode: Rewind P1 P2 * * *
**
@@ -74724,6 +75200,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** configured to use Next, not Prev.
*/
_114:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -74806,11 +75283,13 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** record, or jumps to P2 if there are no more sorted records.
*/
_117:
+ ;
pC22 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
rc = _sqlite3VdbeSorterNext(tls, db, pC22)
goto next_tail
- _115: /* jump, ncycle */
+ _115:
+ ; /* jump, ncycle */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pC22 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -74820,7 +75299,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
rc = _sqlite3BtreePrevious(tls, *(*uintptr)(unsafe.Pointer(pC22 + 48)), (*TOp)(unsafe.Pointer(pOp)).Fp3)
goto next_tail
- _116: /* jump, ncycle */
+ _116:
+ ; /* jump, ncycle */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pC22 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -74830,6 +75310,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
rc = _sqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC22 + 48)), (*TOp)(unsafe.Pointer(pOp)).Fp3)
next_tail:
+ ;
(*TVdbeCursor)(unsafe.Pointer(pC22)).FcacheStatus = uint32(CACHE_STALE)
if rc == SQLITE_OK {
(*TVdbeCursor)(unsafe.Pointer(pC22)).FnullRow = uint8(0)
@@ -74871,6 +75352,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** for tables is OP_Insert.
*/
_118:
+ ;
_ = libc.Int32FromInt32(0)
pC23 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -74883,11 +75365,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TMem)(unsafe.Pointer(pIn2)).Fflags)&int32(MEM_Zero) != 0 {
- v271 = _sqlite3VdbeMemExpandBlob(tls, pIn2)
+ v273 = _sqlite3VdbeMemExpandBlob(tls, pIn2)
} else {
- v271 = 0
+ v273 = 0
}
- rc = v271
+ rc = v273
if rc != 0 {
goto abort_due_to_error
}
@@ -74896,11 +75378,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*(*TBtreePayload)(unsafe.Pointer(bp + 408))).FaMem = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
(*(*TBtreePayload)(unsafe.Pointer(bp + 408))).FnMem = uint16((*TOp)(unsafe.Pointer(pOp)).Fp4.Fi)
if int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&int32(OPFLAG_USESEEKRESULT) != 0 {
- v272 = (*TVdbeCursor)(unsafe.Pointer(pC23)).FseekResult
+ v274 = (*TVdbeCursor)(unsafe.Pointer(pC23)).FseekResult
} else {
- v272 = 0
+ v274 = 0
}
- rc = _sqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC23 + 48)), bp+408, int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&(libc.Int32FromInt32(OPFLAG_APPEND)|libc.Int32FromInt32(OPFLAG_SAVEPOSITION)|libc.Int32FromInt32(OPFLAG_PREFORMAT)), v272)
+ rc = _sqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC23 + 48)), bp+408, int32((*TOp)(unsafe.Pointer(pOp)).Fp5)&(libc.Int32FromInt32(OPFLAG_APPEND)|libc.Int32FromInt32(OPFLAG_SAVEPOSITION)|libc.Int32FromInt32(OPFLAG_PREFORMAT)), v274)
_ = libc.Int32FromInt32(0)
(*TVdbeCursor)(unsafe.Pointer(pC23)).FcacheStatus = uint32(CACHE_STALE)
if rc != 0 {
@@ -74915,6 +75397,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** into the sorter P1. Data for the entry is nil.
*/
_119:
+ ;
_ = libc.Int32FromInt32(0)
pC24 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -74923,11 +75406,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TMem)(unsafe.Pointer(pIn2)).Fflags)&int32(MEM_Zero) != 0 {
- v273 = _sqlite3VdbeMemExpandBlob(tls, pIn2)
+ v275 = _sqlite3VdbeMemExpandBlob(tls, pIn2)
} else {
- v273 = 0
+ v275 = 0
}
- rc = v273
+ rc = v275
if rc != 0 {
goto abort_due_to_error
}
@@ -74952,6 +75435,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** this (self-correcting and non-critical) error if in writable_schema mode.
*/
_120:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -74975,7 +75459,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(99085), __ccgo_ts+6024)
+ rc = _sqlite3ReportError(tls, libc.Int32FromInt32(SQLITE_CORRUPT)|libc.Int32FromInt32(3)<<libc.Int32FromInt32(8), int32(99140), __ccgo_ts+6049)
goto abort_due_to_error
}
}
@@ -75011,8 +75495,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** See also: Rowid, MakeRecord.
*/
- _122: /* ncycle */
- _121: /* Rowid that P1 current points to */
+ _122:
+ ; /* ncycle */
+ _121:
+ ; /* Rowid that P1 current points to */
_ = libc.Int32FromInt32(0)
pC26 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -75067,7 +75553,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** seek operation now, without further delay. If the cursor seek has
** already occurred, this instruction is a no-op.
*/
- _123: /* The P1 index cursor */
+ _123:
+ ; /* The P1 index cursor */
_ = libc.Int32FromInt32(0)
pC27 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
if (*TVdbeCursor)(unsafe.Pointer(pC27)).FdeferredMoveto != 0 {
@@ -75121,10 +75608,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If the P1 index entry is less than or equal to the key value then jump
** to P2. Otherwise fall through to the next instruction.
*/
- _127: /* jump, ncycle */
- _126: /* jump, ncycle */
- _125: /* jump, ncycle */
+ _127:
+ ; /* jump, ncycle */
+ _126:
+ ; /* jump, ncycle */
+ _125:
+ ; /* jump, ncycle */
_124:
+ ;
_ = libc.Int32FromInt32(0)
pC28 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -75152,7 +75643,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(99290))
+ rc = _sqlite3CorruptError(tls, int32(99345))
goto abort_due_to_error
}
_sqlite3VdbeMemInit(tls, bp+552, db, uint16(0))
@@ -75204,6 +75695,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: Clear
*/
_128:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pOut = _out2Prerelease(tls, p, pOp)
@@ -75248,6 +75740,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** See also: Destroy
*/
_129:
+ ;
*(*Ti64)(unsafe.Pointer(bp + 616)) = 0
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -75272,6 +75765,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** opened with OP_OpenEphemeral or OP_SorterOpen.
*/
_130:
+ ;
_ = libc.Int32FromInt32(0)
pC29 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -75296,6 +75790,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** The root page number of the new b-tree is stored in register P2.
*/
_131:
+ ;
pOut = _out2Prerelease(tls, p, pOp)
*(*TPgno)(unsafe.Pointer(bp + 624)) = uint32(0)
_ = libc.Int32FromInt32(0)
@@ -75317,6 +75812,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P1 is true.
*/
_132:
+ ;
(*Tsqlite3)(unsafe.Pointer(db)).FnSqlExec++
*(*uintptr)(unsafe.Pointer(bp + 632)) = uintptr(0)
xAuth = (*Tsqlite3)(unsafe.Pointer(db)).FxAuth
@@ -75348,6 +75844,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** then runs the new virtual machine. It is thus a re-entrant opcode.
*/
_133:
+ ;
/* Any prepared statement that invokes this opcode will hold mutexes
** on every btree. This is a prerequisite for invoking
** sqlite3InitCallback().
@@ -75362,13 +75859,13 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
*(*Tu32)(unsafe.Pointer(db + 44)) |= uint32(DBFLAG_SchemaChange)
libc.SetBitFieldPtr16Uint32(p+200, libc.Uint32FromInt32(0), 0, 0x3)
} else {
- zSchema = __ccgo_ts + 6041
+ zSchema = __ccgo_ts + 6066
(*(*TInitData)(unsafe.Pointer(bp + 640))).Fdb = db
(*(*TInitData)(unsafe.Pointer(bp + 640))).FiDb = iDb3
(*(*TInitData)(unsafe.Pointer(bp + 640))).FpzErrMsg = p + 168
(*(*TInitData)(unsafe.Pointer(bp + 640))).FmInitFlags = uint32(0)
(*(*TInitData)(unsafe.Pointer(bp + 640))).FmxPage = _sqlite3BtreeLastPage(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb3)*32))).FpBt)
- zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+6055, libc.VaList(bp+944, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb3)*32))).FzDbSName, zSchema, *(*uintptr)(unsafe.Pointer(pOp + 16))))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+6080, libc.VaList(bp+944, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb3)*32))).FzDbSName, zSchema, *(*uintptr)(unsafe.Pointer(pOp + 16))))
if zSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -75385,7 +75882,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(99570))
+ rc = _sqlite3CorruptError(tls, int32(99625))
}
_sqlite3DbFreeNN(tls, db, zSql)
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy = uint8(0)
@@ -75406,6 +75903,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the analysis to be used when preparing all subsequent queries.
*/
_134:
+ ;
_ = libc.Int32FromInt32(0)
rc = _sqlite3AnalysisLoad(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp1)
if rc != 0 {
@@ -75421,6 +75919,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** schema consistent with what is on disk.
*/
_135:
+ ;
_sqlite3UnlinkAndDeleteTable(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16)))
goto _187
/* Opcode: DropIndex P1 * * P4 *
@@ -75432,6 +75931,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** schema consistent with what is on disk.
*/
_136:
+ ;
_sqlite3UnlinkAndDeleteIndex(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16)))
goto _187
/* Opcode: DropTrigger P1 * * P4 *
@@ -75443,6 +75943,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** schema consistent with what is on disk.
*/
_137:
+ ;
_sqlite3UnlinkAndDeleteTrigger(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16)))
goto _187
/* Opcode: IntegrityCk P1 P2 P3 P4 P5
@@ -75464,7 +75965,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** This opcode is used to implement the integrity_check pragma.
*/
- _138: /* Register keeping track of errors remaining */
+ _138:
+ ; /* Register keeping track of errors remaining */
_ = libc.Int32FromInt32(0)
nRoot = (*TOp)(unsafe.Pointer(pOp)).Fp2
aRoot = *(*uintptr)(unsafe.Pointer(pOp + 16))
@@ -75500,7 +76002,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** An assertion fails if P2 is not an integer.
*/
- _139: /* in1, in2 */
+ _139:
+ ; /* in1, in2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pIn2 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
_ = libc.Int32FromInt32(0)
@@ -75521,6 +76024,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** unchanged and jump to instruction P2.
*/
_140:
+ ;
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Blob) == 0 || _sqlite3RowSetNext(tls, (*TMem)(unsafe.Pointer(pIn1)).Fz, bp+696) == 0 {
@@ -75556,6 +76060,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** inserted as part of some other set).
*/
_141:
+ ;
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pIn3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
iSet = (*TOp)(unsafe.Pointer(pOp)).Fp4.Fi
@@ -75596,7 +76101,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** If P5 is non-zero, then recursive program invocation is enabled.
*/
- _142: /* Token identifying trigger */
+ _142:
+ ; /* Token identifying trigger */
pProgram = *(*uintptr)(unsafe.Pointer(pOp + 16))
pRt = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
_ = libc.Int32FromInt32(0)
@@ -75618,8 +76124,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if !(pFrame2 != 0 && (*TVdbeFrame)(unsafe.Pointer(pFrame2)).Ftoken != t1) {
break
}
- goto _274
- _274:
+ goto _276
+ _276:
+ ;
pFrame2 = (*TVdbeFrame)(unsafe.Pointer(pFrame2)).FpParent
}
if pFrame2 != 0 {
@@ -75628,7 +76135,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
if (*TVdbe)(unsafe.Pointer(p)).FnFrame >= *(*int32)(unsafe.Pointer(db + 136 + 10*4)) {
rc = int32(SQLITE_ERROR)
- _sqlite3VdbeError(tls, p, __ccgo_ts+6098, 0)
+ _sqlite3VdbeError(tls, p, __ccgo_ts+6123, 0)
goto abort_due_to_error
}
/* Register pRt is used to store the memory required to save the state
@@ -75675,8 +76182,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
}
(*TMem)(unsafe.Pointer(pMem1)).Fflags = uint16(MEM_Undefined)
(*TMem)(unsafe.Pointer(pMem1)).Fdb = db
- goto _275
- _275:
+ goto _277
+ _277:
+ ;
pMem1 += 56
}
} else {
@@ -75696,17 +76204,17 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*TVdbe)(unsafe.Pointer(p)).FpAuxData = uintptr(0)
(*TVdbe)(unsafe.Pointer(p)).FnChange = 0
(*TVdbe)(unsafe.Pointer(p)).FpFrame = pFrame2
- v276 = pFrame2 + uintptr((libc.Uint64FromInt64(112)+libc.Uint64FromInt32(7))&uint64(^libc.Int32FromInt32(7)))
- aMem = v276
- (*TVdbe)(unsafe.Pointer(p)).FaMem = v276
+ v278 = pFrame2 + uintptr((libc.Uint64FromInt64(112)+libc.Uint64FromInt32(7))&uint64(^libc.Int32FromInt32(7)))
+ aMem = v278
+ (*TVdbe)(unsafe.Pointer(p)).FaMem = v278
(*TVdbe)(unsafe.Pointer(p)).FnMem = (*TVdbeFrame)(unsafe.Pointer(pFrame2)).FnChildMem
(*TVdbe)(unsafe.Pointer(p)).FnCursor = int32(uint16((*TVdbeFrame)(unsafe.Pointer(pFrame2)).FnChildCsr))
(*TVdbe)(unsafe.Pointer(p)).FapCsr = aMem + uintptr((*TVdbe)(unsafe.Pointer(p)).FnMem)*56
(*TVdbeFrame)(unsafe.Pointer(pFrame2)).FaOnce = (*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TSubProgram)(unsafe.Pointer(pProgram)).FnCsr)*8
libc.Xmemset(tls, (*TVdbeFrame)(unsafe.Pointer(pFrame2)).FaOnce, 0, uint64(((*TSubProgram)(unsafe.Pointer(pProgram)).FnOp+int32(7))/int32(8)))
- v277 = (*TSubProgram)(unsafe.Pointer(pProgram)).FaOp
- aOp = v277
- (*TVdbe)(unsafe.Pointer(p)).FaOp = v277
+ v279 = (*TSubProgram)(unsafe.Pointer(pProgram)).FaOp
+ aOp = v279
+ (*TVdbe)(unsafe.Pointer(p)).FaOp = v279
(*TVdbe)(unsafe.Pointer(p)).FnOp = (*TSubProgram)(unsafe.Pointer(pProgram)).FnOp
pOp = aOp + uintptr(-libc.Int32FromInt32(1))*24
goto check_for_interrupt
@@ -75723,6 +76231,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** calling OP_Program instruction.
*/
_143:
+ ;
pOut = _out2Prerelease(tls, p, pOp)
pFrame3 = (*TVdbe)(unsafe.Pointer(p)).FpFrame
pIn = (*TVdbeFrame)(unsafe.Pointer(pFrame3)).FaMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1+(*(*TOp)(unsafe.Pointer((*TVdbeFrame)(unsafe.Pointer(pFrame3)).FaOp + uintptr((*TVdbeFrame)(unsafe.Pointer(pFrame3)).Fpc)*24))).Fp1)*56
@@ -75737,6 +76246,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** statement counter is incremented (immediate foreign key constraints).
*/
_144:
+ ;
if (*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_DeferFKs) != 0 {
*(*Ti64)(unsafe.Pointer(db + 792)) += int64((*TOp)(unsafe.Pointer(pOp)).Fp2)
} else {
@@ -75759,7 +76269,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** zero, the jump is taken if the statement constraint-counter is zero
** (immediate foreign key constraint violations).
*/
- _145: /* jump */
+ _145:
+ ; /* jump */
if (*TOp)(unsafe.Pointer(pOp)).Fp1 != 0 {
if (*Tsqlite3)(unsafe.Pointer(db)).FnDeferredCons == 0 && (*Tsqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == 0 {
goto jump_to_p2
@@ -75782,14 +76293,16 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** an integer.
*/
_146:
+ ;
if (*TVdbe)(unsafe.Pointer(p)).FpFrame != 0 {
pFrame4 = (*TVdbe)(unsafe.Pointer(p)).FpFrame
for {
if !((*TVdbeFrame)(unsafe.Pointer(pFrame4)).FpParent != 0) {
break
}
- goto _278
- _278:
+ goto _280
+ _280:
+ ;
pFrame4 = (*TVdbeFrame)(unsafe.Pointer(pFrame4)).FpParent
}
pIn1 = (*TVdbeFrame)(unsafe.Pointer(pFrame4)).FaMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
@@ -75814,7 +76327,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If the initial value of register P1 is less than 1, then the
** value is unchanged and control passes through to the next instruction.
*/
- _147: /* jump, in1 */
+ _147:
+ ; /* jump, in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
if *(*Ti64)(unsafe.Pointer(pIn1)) > 0 {
@@ -75841,20 +76355,21 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Otherwise, r[P2] is set to the sum of r[P1] and r[P3].
*/
_148:
+ ;
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pIn3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
pOut = _out2Prerelease(tls, p, pOp)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
*(*Ti64)(unsafe.Pointer(bp + 704)) = *(*Ti64)(unsafe.Pointer(pIn1))
- if v280 = *(*Ti64)(unsafe.Pointer(bp + 704)) <= 0; !v280 {
+ if v282 = *(*Ti64)(unsafe.Pointer(bp + 704)) <= 0; !v282 {
if *(*Ti64)(unsafe.Pointer(pIn3)) > 0 {
- v279 = *(*Ti64)(unsafe.Pointer(pIn3))
+ v281 = *(*Ti64)(unsafe.Pointer(pIn3))
} else {
- v279 = 0
+ v281 = 0
}
}
- if v280 || _sqlite3AddInt64(tls, bp+704, v279) != 0 {
+ if v282 || _sqlite3AddInt64(tls, bp+704, v281) != 0 {
/* If the LIMIT is less than or equal to zero, loop forever. This
** is documented. But also, if the LIMIT+OFFSET exceeds 2^63 then
** also loop forever. This is undocumented. In fact, one could argue
@@ -75875,7 +76390,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** If it is non-zero (negative or positive) and then also jump to P2.
** If register P1 is initially zero, leave it unchanged and fall through.
*/
- _149: /* jump, in1 */
+ _149:
+ ; /* jump, in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
if *(*Ti64)(unsafe.Pointer(pIn1)) != 0 {
@@ -75891,7 +76407,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Register P1 must hold an integer. Decrement the value in P1
** and jump to P2 if the new value is exactly zero.
*/
- _150: /* jump, in1 */
+ _150:
+ ; /* jump, in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
if *(*Ti64)(unsafe.Pointer(pIn1)) > int64(-libc.Int32FromInt32(1))-(libc.Int64FromUint32(0xffffffff)|libc.Int64FromInt32(0x7fffffff)<<libc.Int32FromInt32(32)) {
@@ -75941,7 +76458,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** step function.
*/
_152:
+ ;
_151:
+ ;
_ = libc.Int32FromInt32(0)
n4 = int32((*TOp)(unsafe.Pointer(pOp)).Fp5)
_ = libc.Int32FromInt32(0)
@@ -75967,6 +76486,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
(*TOp)(unsafe.Pointer(pOp)).Fopcode = uint8(OP_AggStep1)
_153:
+ ;
_ = libc.Int32FromInt32(0)
pCtx1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
pMem2 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
@@ -75982,8 +76502,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
break
}
*(*uintptr)(unsafe.Pointer(pCtx1 + 48 + uintptr(i4)*8)) = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2+i4)*56
- goto _281
- _281:
+ goto _283
+ _283:
+ ;
i4--
}
}
@@ -76046,7 +76567,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the step function was not previously called.
*/
_155:
+ ;
_154:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
pMem3 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
@@ -76074,12 +76597,13 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** completes into mem[P3+2]. However on an error, mem[P3+1] and
** mem[P3+2] are initialized to -1.
*/
- _156: /* Write results here */
+ _156:
+ ; /* Write results here */
_ = libc.Int32FromInt32(0)
(*(*[3]int32)(unsafe.Pointer(bp + 712)))[0] = 0
- v282 = -libc.Int32FromInt32(1)
- (*(*[3]int32)(unsafe.Pointer(bp + 712)))[int32(2)] = v282
- (*(*[3]int32)(unsafe.Pointer(bp + 712)))[int32(1)] = v282
+ v284 = -libc.Int32FromInt32(1)
+ (*(*[3]int32)(unsafe.Pointer(bp + 712)))[int32(2)] = v284
+ (*(*[3]int32)(unsafe.Pointer(bp + 712)))[int32(1)] = v284
_ = libc.Int32FromInt32(0)
rc = _sqlite3Checkpoint(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, (*TOp)(unsafe.Pointer(pOp)).Fp2, bp+712+1*4, bp+712+2*4)
if rc != 0 {
@@ -76096,8 +76620,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
break
}
_sqlite3VdbeMemSetInt64(tls, pMem4, int64((*(*[3]int32)(unsafe.Pointer(bp + 712)))[i5]))
- goto _283
- _283:
+ goto _285
+ _285:
+ ;
i5++
pMem4 += 56
}
@@ -76113,7 +76638,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** Write a string containing the final journal-mode to register P2.
*/
- _157: /* Name of database file for pPager */
+ _157:
+ ; /* Name of database file for pPager */
pOut = _out2Prerelease(tls, p, pOp)
eNew = (*TOp)(unsafe.Pointer(pOp)).Fp3
_ = libc.Int32FromInt32(0)
@@ -76140,11 +76666,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if !((*Tsqlite3)(unsafe.Pointer(db)).FautoCommit != 0) || (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeRead > int32(1) {
rc = int32(SQLITE_ERROR)
if eNew == int32(PAGER_JOURNALMODE_WAL) {
- v284 = __ccgo_ts + 6135
+ v286 = __ccgo_ts + 6160
} else {
- v284 = __ccgo_ts + 6140
+ v286 = __ccgo_ts + 6165
}
- _sqlite3VdbeError(tls, p, __ccgo_ts+6147, libc.VaList(bp+944, v284))
+ _sqlite3VdbeError(tls, p, __ccgo_ts+6172, libc.VaList(bp+944, v286))
goto abort_due_to_error
} else {
if eOld == int32(PAGER_JOURNALMODE_WAL) {
@@ -76170,11 +76696,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
if rc == SQLITE_OK {
if eNew == int32(PAGER_JOURNALMODE_WAL) {
- v285 = int32(2)
+ v287 = int32(2)
} else {
- v285 = int32(1)
+ v287 = int32(1)
}
- rc = _sqlite3BtreeSetVersion(tls, pBt1, v285)
+ rc = _sqlite3BtreeSetVersion(tls, pBt1, v287)
}
}
}
@@ -76201,13 +76727,14 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P2 is zero, the vacuum overwrites the original database.
*/
_158:
+ ;
_ = libc.Int32FromInt32(0)
if (*TOp)(unsafe.Pointer(pOp)).Fp2 != 0 {
- v286 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
+ v288 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
} else {
- v286 = uintptr(0)
+ v288 = uintptr(0)
}
- rc = _sqlite3RunVacuum(tls, p+168, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, v286)
+ rc = _sqlite3RunVacuum(tls, p+168, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, v288)
if rc != 0 {
goto abort_due_to_error
}
@@ -76219,6 +76746,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P2. Otherwise, fall through to the next instruction.
*/
_159:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -76249,6 +76777,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** correctness of operation.
*/
_160:
+ ;
_ = libc.Int32FromInt32(0)
if !((*TOp)(unsafe.Pointer(pOp)).Fp1 != 0) {
_sqlite3ExpirePreparedStatements(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp2)
@@ -76262,6 +76791,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** written by an other cursor.
*/
_161:
+ ;
_ = libc.Int32FromInt32(0)
pC30 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -76274,6 +76804,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** written by other cursors.
*/
_162:
+ ;
_ = libc.Int32FromInt32(0)
pC31 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
@@ -76296,6 +76827,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** used to generate an error message if the lock cannot be obtained.
*/
_163:
+ ;
isWriteLock = uint8((*TOp)(unsafe.Pointer(pOp)).Fp3)
if isWriteLock != 0 || uint64(0) == (*Tsqlite3)(unsafe.Pointer(db)).Fflags&(uint64(libc.Int32FromInt32(0x00004))<<libc.Int32FromInt32(32)) {
p13 = (*TOp)(unsafe.Pointer(pOp)).Fp1
@@ -76306,7 +76838,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if rc != 0 {
if rc&int32(0xFF) == int32(SQLITE_LOCKED) {
z1 = *(*uintptr)(unsafe.Pointer(pOp + 16))
- _sqlite3VdbeError(tls, p, __ccgo_ts+6199, libc.VaList(bp+944, z1))
+ _sqlite3VdbeError(tls, p, __ccgo_ts+6224, libc.VaList(bp+944, z1))
}
goto abort_due_to_error
}
@@ -76322,6 +76854,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** code will be set to SQLITE_LOCKED.
*/
_164:
+ ;
pVTab = *(*uintptr)(unsafe.Pointer(pOp + 16))
rc = _sqlite3VtabBegin(tls, db, pVTab)
if pVTab != 0 {
@@ -76336,7 +76869,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** P2 is a register that holds the name of a virtual table in database
** P1. Call the xCreate method for that table.
*/
- _165: /* Name of the virtual table */
+ _165:
+ ; /* Name of the virtual table */
libc.Xmemset(tls, bp+728, 0, uint64(56))
(*(*TMem)(unsafe.Pointer(bp + 728))).Fdb = db
/* Because P2 is always a static string, it is impossible for the
@@ -76361,6 +76895,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** of that table.
*/
_166:
+ ;
(*Tsqlite3)(unsafe.Pointer(db)).FnVDestroy++
rc = _sqlite3VtabCallDestroy(tls, db, (*TOp)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16)))
(*Tsqlite3)(unsafe.Pointer(db)).FnVDestroy--
@@ -76376,6 +76911,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** table and stores that cursor in P1.
*/
_167:
+ ;
_ = libc.Int32FromInt32(0)
pCur3 = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 784)) = uintptr(0)
@@ -76413,6 +76949,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** register P2 is set to NULL.
*/
_168:
+ ;
*(*uintptr)(unsafe.Pointer(bp + 792)) = uintptr(0)
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
_sqlite3VdbeMemSetNull(tls, pOut) /* Innocent until proven guilty */
@@ -76468,7 +77005,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** cursor. Register P3 is used to hold the values returned by
** sqlite3_vtab_in_first() and sqlite3_vtab_in_next().
*/
- _169: /* New ValueList object to put in reg[P2] */
+ _169:
+ ; /* New ValueList object to put in reg[P2] */
pC32 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
pRhs = Xsqlite3_malloc64(tls, uint64(16))
if pRhs == uintptr(0) {
@@ -76478,7 +77016,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
(*TValueList)(unsafe.Pointer(pRhs)).FpOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
pOut = _out2Prerelease(tls, p, pOp)
(*TMem)(unsafe.Pointer(pOut)).Fflags = uint16(MEM_Null)
- _sqlite3VdbeMemSetPointer(tls, pOut, pRhs, __ccgo_ts+6228, __ccgo_fp(_sqlite3VdbeValueListFree))
+ _sqlite3VdbeMemSetPointer(tls, pOut, pRhs, __ccgo_ts+6253, __ccgo_fp(_sqlite3VdbeValueListFree))
goto _187
/* Opcode: VFilter P1 P2 P3 P4 *
** Synopsis: iplan=r[P3] zplan='P4'
@@ -76500,6 +77038,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** A jump is made to P2 if the result set after filtering would be empty.
*/
_170:
+ ;
pQuery = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp3)*56
pArgc = pQuery + 1*56
pCur4 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
@@ -76521,8 +77060,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
break
}
*(*uintptr)(unsafe.Pointer(apArg + uintptr(i6)*8)) = pArgc + uintptr(i6+int32(1))*56
- goto _287
- _287:
+ goto _289
+ _289:
+ ;
i6++
}
rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3_module)(unsafe.Pointer(pModule3)).FxFilter})))(tls, pVCur1, iQuery, *(*uintptr)(unsafe.Pointer(pOp + 16)), nArg, apArg)
@@ -76551,6 +77091,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** unused by OP_VColumn.
*/
_171:
+ ;
pCur5 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -76595,6 +77136,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** the end of its result set, then fall through to the next instruction.
*/
_172:
+ ;
pCur6 = *(*uintptr)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*8))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -76628,6 +77170,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** in register P1 is passed as the zName argument to the xRename method.
*/
_173:
+ ;
isLegacy = int32((*Tsqlite3)(unsafe.Pointer(db)).Fflags & libc.Uint64FromInt32(SQLITE_LegacyAlter))
*(*Tu64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LegacyAlter)
pVtab6 = (*TVTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab
@@ -76678,6 +77221,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** apply in the case of a constraint failure on an insert or update.
*/
_174:
+ ;
*(*Tsqlite_int64)(unsafe.Pointer(bp + 928)) = 0
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -76704,8 +77248,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
*(*uintptr)(unsafe.Pointer(apArg1 + uintptr(i7)*8)) = pX1
pX1 += 56
- goto _288
- _288:
+ goto _290
+ _290:
+ ;
i7++
}
(*Tsqlite3)(unsafe.Pointer(db)).FvtabOnConflict = uint8((*TOp)(unsafe.Pointer(pOp)).Fp5)
@@ -76721,11 +77266,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
rc = SQLITE_OK
} else {
if int32((*TOp)(unsafe.Pointer(pOp)).Fp5) == int32(OE_Replace) {
- v289 = int32(OE_Abort)
+ v291 = int32(OE_Abort)
} else {
- v289 = int32((*TOp)(unsafe.Pointer(pOp)).Fp5)
+ v291 = int32((*TOp)(unsafe.Pointer(pOp)).Fp5)
}
- (*TVdbe)(unsafe.Pointer(p)).FerrorAction = uint8(v289)
+ (*TVdbe)(unsafe.Pointer(p)).FerrorAction = uint8(v291)
}
} else {
(*TVdbe)(unsafe.Pointer(p)).FnChange++
@@ -76739,7 +77284,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** Write the current number of pages in database P1 to memory cell P2.
*/
- _175: /* out2 */
+ _175:
+ ; /* out2 */
pOut = _out2Prerelease(tls, p, pOp)
*(*Ti64)(unsafe.Pointer(pOut)) = int64(_sqlite3BtreeLastPage(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*32))).FpBt))
goto _187
@@ -76752,6 +77298,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Store the maximum page count after the change in register P2.
*/
_176:
+ ;
pOut = _out2Prerelease(tls, p, pOp)
pBt3 = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*32))).FpBt
newMax = uint32(0)
@@ -76809,8 +77356,10 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** See also: AggStep, AggFinal, Function
*/
- _178: /* group */
+ _178:
+ ; /* group */
_177:
+ ;
_ = libc.Int32FromInt32(0)
pCtx2 = *(*uintptr)(unsafe.Pointer(pOp + 16))
/* If this function is inside of a trigger, the register array in aMem[]
@@ -76828,8 +77377,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
break
}
*(*uintptr)(unsafe.Pointer(pCtx2 + 48 + uintptr(i8)*8)) = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2+i8)*56
- goto _290
- _290:
+ goto _292
+ _292:
+ ;
i8--
}
}
@@ -76857,10 +77407,11 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
**
** Clear the subtype from register P1.
*/
- _179: /* in1 */
+ _179:
+ ; /* in1 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
- p291 = pIn1 + 20
- *(*Tu16)(unsafe.Pointer(p291)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p291))) & ^libc.Int32FromInt32(MEM_Subtype))
+ p293 = pIn1 + 20
+ *(*Tu16)(unsafe.Pointer(p293)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p293))) & ^libc.Int32FromInt32(MEM_Subtype))
goto _187
/* Opcode: GetSubtype P1 P2 * * *
** Synopsis: r[P2] = r[P1].subtype
@@ -76868,7 +77419,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Extract the subtype value from register P1 and write that subtype
** into register P2. If P1 has no subtype, then P1 gets a NULL.
*/
- _180: /* in1 out2 */
+ _180:
+ ; /* in1 out2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Subtype) != 0 {
@@ -76883,16 +77435,17 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** Set the subtype value of register P2 to the integer from register P1.
** If P1 is NULL, clear the subtype from p2.
*/
- _181: /* in1 out2 */
+ _181:
+ ; /* in1 out2 */
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
pOut = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp2)*56
if int32((*TMem)(unsafe.Pointer(pIn1)).Fflags)&int32(MEM_Null) != 0 {
- p292 = pOut + 20
- *(*Tu16)(unsafe.Pointer(p292)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p292))) & ^libc.Int32FromInt32(MEM_Subtype))
+ p294 = pOut + 20
+ *(*Tu16)(unsafe.Pointer(p294)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p294))) & ^libc.Int32FromInt32(MEM_Subtype))
} else {
_ = libc.Int32FromInt32(0)
- p293 = pOut + 20
- *(*Tu16)(unsafe.Pointer(p293)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p293))) | libc.Int32FromInt32(MEM_Subtype))
+ p295 = pOut + 20
+ *(*Tu16)(unsafe.Pointer(p295)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p295))) | libc.Int32FromInt32(MEM_Subtype))
(*TMem)(unsafe.Pointer(pOut)).FeSubtype = uint8(*(*Ti64)(unsafe.Pointer(pIn1)) & libc.Int64FromInt32(0xff))
}
goto _187
@@ -76903,14 +77456,15 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** add that hash to the bloom filter contained in r[P1].
*/
_182:
+ ;
_ = libc.Int32FromInt32(0)
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
h = _filterHash(tls, aMem, pOp)
h %= uint64((*TMem)(unsafe.Pointer(pIn1)).Fn * libc.Int32FromInt32(8))
- p294 = (*TMem)(unsafe.Pointer(pIn1)).Fz + uintptr(h/uint64(8))
- *(*uint8)(unsafe.Pointer(p294)) = uint8(int32(*(*uint8)(unsafe.Pointer(p294))) | libc.Int32FromInt32(1)<<(h&libc.Uint64FromInt32(7)))
+ p296 = (*TMem)(unsafe.Pointer(pIn1)).Fz + uintptr(h/uint64(8))
+ *(*uint8)(unsafe.Pointer(p296)) = uint8(int32(*(*uint8)(unsafe.Pointer(p296))) | libc.Int32FromInt32(1)<<(h&libc.Uint64FromInt32(7)))
goto _187
/* Opcode: Filter P1 P2 P3 P4 *
** Synopsis: if key(P3@P4) not in filter(P1) goto P2
@@ -76927,6 +77481,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** false positive - if the jump is taken when it should fall through.
*/
_183:
+ ;
_ = libc.Int32FromInt32(0)
pIn1 = aMem + uintptr((*TOp)(unsafe.Pointer(pOp)).Fp1)*56
_ = libc.Int32FromInt32(0)
@@ -76966,7 +77521,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** error is encountered.
*/
_185:
+ ;
_184:
+ ;
/* If the P4 argument is not NULL, then it must be an SQL comment string.
** The "--" string is broken up to prevent false-positives with srcck1.c.
**
@@ -76979,23 +77536,23 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
/* OP_Init is always instruction 0 */
_ = libc.Int32FromInt32(0)
- if v297 = int32((*Tsqlite3)(unsafe.Pointer(db)).FmTrace)&(libc.Int32FromInt32(SQLITE_TRACE_STMT)|libc.Int32FromInt32(SQLITE_TRACE_LEGACY)) != 0 && int32((*TVdbe)(unsafe.Pointer(p)).FminWriteFileFormat) != int32(254); v297 {
+ if v299 = int32((*Tsqlite3)(unsafe.Pointer(db)).FmTrace)&(libc.Int32FromInt32(SQLITE_TRACE_STMT)|libc.Int32FromInt32(SQLITE_TRACE_LEGACY)) != 0 && int32((*TVdbe)(unsafe.Pointer(p)).FminWriteFileFormat) != int32(254); v299 {
if *(*uintptr)(unsafe.Pointer(pOp + 16)) != 0 {
- v296 = *(*uintptr)(unsafe.Pointer(pOp + 16))
+ v298 = *(*uintptr)(unsafe.Pointer(pOp + 16))
} else {
- v296 = (*TVdbe)(unsafe.Pointer(p)).FzSql
+ v298 = (*TVdbe)(unsafe.Pointer(p)).FzSql
}
- v295 = v296
- zTrace = v295
+ v297 = v298
+ zTrace = v297
}
- if v297 && v295 != uintptr(0) {
+ if v299 && v297 != uintptr(0) {
if int32((*Tsqlite3)(unsafe.Pointer(db)).FmTrace)&int32(SQLITE_TRACE_LEGACY) != 0 {
z2 = _sqlite3VdbeExpandSql(tls, p, zTrace)
(*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).Ftrace.FxLegacy})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpTraceArg, z2)
Xsqlite3_free(tls, z2)
} else {
if (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeExec > int32(1) {
- z3 = _sqlite3MPrintf(tls, db, __ccgo_ts+6238, libc.VaList(bp+944, zTrace))
+ z3 = _sqlite3MPrintf(tls, db, __ccgo_ts+6263, libc.VaList(bp+944, zTrace))
(*(*func(*libc.TLS, Tu32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(&(*Tsqlite3)(unsafe.Pointer(db)).Ftrace))})))(tls, uint32(SQLITE_TRACE_STMT), (*Tsqlite3)(unsafe.Pointer(db)).FpTraceArg, p, z3)
_sqlite3DbFree(tls, db, z3)
} else {
@@ -77016,8 +77573,9 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
if int32((*(*TOp)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FaOp + uintptr(i9)*24))).Fopcode) == int32(OP_Once) {
(*(*TOp)(unsafe.Pointer((*TVdbe)(unsafe.Pointer(p)).FaOp + uintptr(i9)*24))).Fp1 = 0
}
- goto _298
- _298:
+ goto _300
+ _300:
+ ;
i9++
}
(*TOp)(unsafe.Pointer(pOp)).Fp1 = 0
@@ -77036,7 +77594,8 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** This opcode records information from the optimizer. It is the
** the same as a no-op. This opcodesnever appears in a real VM program.
*/
- _186: /* This is really OP_Noop, OP_Explain */
+ _186:
+ ; /* This is really OP_Noop, OP_Explain */
_ = libc.Int32FromInt32(0)
goto _187
/*****************************************************************************
@@ -77046,6 +77605,7 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
** restored.
*****************************************************************************/
_187:
+ ;
/* The following code adds nothing to the actual functionality
** of the program. It is only here for testing and debugging.
** On the other hand, it does burn CPU cycles every time through
@@ -77053,17 +77613,19 @@ func _sqlite3VdbeExec(tls *libc.TLS, p uintptr) (r int32) {
*/
goto _1
_1:
+ ;
pOp += 24
} /* The end of the for(;;) loop the loops through opcodes */
/* If we reach this point, it means that execution is finished with
** an error of some kind.
*/
abort_due_to_error:
+ ;
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
rc = int32(SQLITE_NOMEM)
} else {
if rc == libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(33)<<libc.Int32FromInt32(8) {
- rc = _sqlite3CorruptError(tls, int32(101598))
+ rc = _sqlite3CorruptError(tls, int32(101653))
}
}
_ = libc.Int32FromInt32(0)
@@ -77072,7 +77634,7 @@ abort_due_to_error:
}
(*TVdbe)(unsafe.Pointer(p)).Frc = rc
_sqlite3SystemError(tls, db, rc)
- Xsqlite3_log(tls, rc, __ccgo_ts+6244, libc.VaList(bp+944, int32((int64(pOp)-int64(aOp))/24), (*TVdbe)(unsafe.Pointer(p)).FzSql, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg))
+ Xsqlite3_log(tls, rc, __ccgo_ts+6269, libc.VaList(bp+944, int32((int64(pOp)-int64(aOp))/24), (*TVdbe)(unsafe.Pointer(p)).FzSql, (*TVdbe)(unsafe.Pointer(p)).FzErrMsg))
if int32((*TVdbe)(unsafe.Pointer(p)).FeVdbeState) == int32(VDBE_RUN_STATE) {
_sqlite3VdbeHalt(tls, p)
}
@@ -77090,6 +77652,7 @@ abort_due_to_error:
** release the mutexes on btrees that were acquired at the
** top. */
vdbe_return:
+ ;
for nVmStep >= nProgressLimit && (*Tsqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0) {
nProgressLimit += uint64((*Tsqlite3)(unsafe.Pointer(db)).FnProgressOps)
if (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3)(unsafe.Pointer(db)).FxProgress})))(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpProgressArg) != 0 {
@@ -77108,12 +77671,14 @@ vdbe_return:
** is encountered.
*/
too_big:
- _sqlite3VdbeError(tls, p, __ccgo_ts+5398, 0)
+ ;
+ _sqlite3VdbeError(tls, p, __ccgo_ts+5423, 0)
rc = int32(SQLITE_TOOBIG)
goto abort_due_to_error
/* Jump to here if a malloc() fails.
*/
no_mem:
+ ;
_sqlite3OomFault(tls, db)
_sqlite3VdbeError(tls, p, __ccgo_ts+1618, 0)
rc = int32(SQLITE_NOMEM)
@@ -77122,6 +77687,7 @@ no_mem:
** flag.
*/
abort_due_to_interrupt:
+ ;
_ = libc.Int32FromInt32(0)
rc = int32(SQLITE_INTERRUPT)
goto abort_due_to_error
@@ -77129,10 +77695,10 @@ abort_due_to_interrupt:
}
var _azType = [4]uintptr{
- 0: __ccgo_ts + 5555,
- 1: __ccgo_ts + 5564,
- 2: __ccgo_ts + 5571,
- 3: __ccgo_ts + 5577,
+ 0: __ccgo_ts + 5580,
+ 1: __ccgo_ts + 5589,
+ 2: __ccgo_ts + 5596,
+ 3: __ccgo_ts + 5602,
}
var _and_logic = [9]uint8{
@@ -77289,13 +77855,13 @@ func _blobSeekToRow(tls *libc.TLS, p uintptr, iRow Tsqlite3_int64, pzErr uintptr
v2 = __ccgo_ts + 1634
} else {
if type1 == uint32(7) {
- v3 = __ccgo_ts + 6276
+ v3 = __ccgo_ts + 6301
} else {
- v3 = __ccgo_ts + 6281
+ v3 = __ccgo_ts + 6306
}
v2 = v3
}
- zErr = _sqlite3MPrintf(tls, (*TIncrblob)(unsafe.Pointer(p)).Fdb, __ccgo_ts+6289, libc.VaList(bp+8, v2))
+ zErr = _sqlite3MPrintf(tls, (*TIncrblob)(unsafe.Pointer(p)).Fdb, __ccgo_ts+6314, libc.VaList(bp+8, v2))
rc = int32(SQLITE_ERROR)
Xsqlite3_finalize(tls, (*TIncrblob)(unsafe.Pointer(p)).FpStmt)
(*TIncrblob)(unsafe.Pointer(p)).FpStmt = uintptr(0)
@@ -77313,7 +77879,7 @@ func _blobSeekToRow(tls *libc.TLS, p uintptr, iRow Tsqlite3_int64, pzErr uintptr
rc = Xsqlite3_finalize(tls, (*TIncrblob)(unsafe.Pointer(p)).FpStmt)
(*TIncrblob)(unsafe.Pointer(p)).FpStmt = uintptr(0)
if rc == SQLITE_OK {
- zErr = _sqlite3MPrintf(tls, (*TIncrblob)(unsafe.Pointer(p)).Fdb, __ccgo_ts+6318, libc.VaList(bp+8, iRow))
+ zErr = _sqlite3MPrintf(tls, (*TIncrblob)(unsafe.Pointer(p)).Fdb, __ccgo_ts+6343, libc.VaList(bp+8, iRow))
rc = int32(SQLITE_ERROR)
} else {
zErr = _sqlite3MPrintf(tls, (*TIncrblob)(unsafe.Pointer(p)).Fdb, __ccgo_ts+3795, libc.VaList(bp+8, Xsqlite3_errmsg(tls, (*TIncrblob)(unsafe.Pointer(p)).Fdb)))
@@ -77358,15 +77924,15 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
pTab = _sqlite3LocateTable(tls, bp+8, uint32(0), zTable, zDb)
if pTab != 0 && int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
pTab = uintptr(0)
- _sqlite3ErrorMsg(tls, bp+8, __ccgo_ts+6338, libc.VaList(bp+440, zTable))
+ _sqlite3ErrorMsg(tls, bp+8, __ccgo_ts+6363, libc.VaList(bp+440, zTable))
}
if pTab != 0 && !((*TTable)(unsafe.Pointer(pTab)).FtabFlags&libc.Uint32FromInt32(TF_WithoutRowid) == libc.Uint32FromInt32(0)) {
pTab = uintptr(0)
- _sqlite3ErrorMsg(tls, bp+8, __ccgo_ts+6368, libc.VaList(bp+440, zTable))
+ _sqlite3ErrorMsg(tls, bp+8, __ccgo_ts+6393, libc.VaList(bp+440, zTable))
}
if pTab != 0 && int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
pTab = uintptr(0)
- _sqlite3ErrorMsg(tls, bp+8, __ccgo_ts+6404, libc.VaList(bp+440, zTable))
+ _sqlite3ErrorMsg(tls, bp+8, __ccgo_ts+6429, libc.VaList(bp+440, zTable))
}
if !(pTab != 0) {
if (*(*TParse)(unsafe.Pointer(bp + 8))).FzErrMsg != 0 {
@@ -77391,11 +77957,12 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
}
goto _1
_1:
+ ;
iCol++
}
if iCol == int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp)))
- *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+6425, libc.VaList(bp+440, zColumn))
+ *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+6450, libc.VaList(bp+440, zColumn))
rc = int32(SQLITE_ERROR)
_sqlite3BtreeLeaveAll(tls, db)
goto blob_open_out
@@ -77422,14 +77989,16 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
break
}
if (*(*TsColMap)(unsafe.Pointer(pFKey + 64 + uintptr(j)*16))).FiFrom == iCol {
- zFault = __ccgo_ts + 6446
+ zFault = __ccgo_ts + 6471
}
goto _3
_3:
+ ;
j++
}
goto _2
_2:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextFrom
}
}
@@ -77445,19 +78014,21 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
}
/* FIXME: Be smarter about indexes that use expressions */
if int32(*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j1)*2))) == iCol || int32(*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j1)*2))) == -int32(2) {
- zFault = __ccgo_ts + 6458
+ zFault = __ccgo_ts + 6483
}
goto _5
_5:
+ ;
j1++
}
goto _4
_4:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
if zFault != 0 {
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp)))
- *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+6466, libc.VaList(bp+440, zFault))
+ *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+6491, libc.VaList(bp+440, zFault))
rc = int32(SQLITE_ERROR)
_sqlite3BtreeLeaveAll(tls, db)
goto blob_open_out
@@ -77521,6 +78092,7 @@ func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr,
_sqlite3ParseObjectReset(tls, bp+8)
}
blob_open_out:
+ ;
if rc == SQLITE_OK && int32((*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 {
*(*uintptr)(unsafe.Pointer(ppBlob)) = pBlob
} else {
@@ -77620,7 +78192,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(102082))
+ return _sqlite3MisuseError(tls, int32(102137))
}
db = (*TIncrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -77722,7 +78294,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(102182))
+ return _sqlite3MisuseError(tls, int32(102237))
}
db = (*TIncrblob)(unsafe.Pointer(p)).Fdb
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -78736,6 +79308,7 @@ func _vdbeSorterCompareInt(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, p
}
goto _1
_1:
+ ;
i++
}
} else {
@@ -78860,6 +79433,7 @@ func _sqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintpt
(*TSortSubtask)(unsafe.Pointer(pTask)).FpSorter = pSorter
goto _3
_3:
+ ;
i++
}
if !(_sqlite3TempInMemory(tls, db) != 0) { /* Cache size in bytes*/
@@ -78920,6 +79494,7 @@ func _vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) {
_sqlite3DbFree(tls, db, p)
goto _1
_1:
+ ;
p = pNext
}
}
@@ -79012,6 +79587,7 @@ func _vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) (r int32) {
}
goto _1
_1:
+ ;
i--
}
return rc
@@ -79068,6 +79644,7 @@ func _vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) {
_vdbePmaReaderClear(tls, (*TMergeEngine)(unsafe.Pointer(pMerger)).FaReadr+uintptr(i)*80)
goto _1
_1:
+ ;
i++
}
}
@@ -79124,6 +79701,7 @@ func _sqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) {
(*TSortSubtask)(unsafe.Pointer(pTask)).FpSorter = pSorter
goto _1
_1:
+ ;
i++
}
if (*TVdbeSorter)(unsafe.Pointer(pSorter)).Flist.FaMemory == uintptr(0) {
@@ -79332,6 +79910,7 @@ func _vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) (r int32) {
(*(*[64]uintptr)(unsafe.Pointer(bp)))[i] = uintptr(0)
goto _1
_1:
+ ;
i++
}
(*(*[64]uintptr)(unsafe.Pointer(bp)))[i] = p
@@ -79354,6 +79933,7 @@ func _vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) (r int32) {
p = v3
goto _2
_2:
+ ;
i++
}
(*TSorterList)(unsafe.Pointer(pList)).FpList = p
@@ -79512,6 +80092,7 @@ func _vdbeSorterListToPMA(tls *libc.TLS, pTask uintptr, pList uintptr) (r int32)
}
goto _1
_1:
+ ;
p = pNext
}
(*TSorterList)(unsafe.Pointer(pList)).FpList = p
@@ -79591,6 +80172,7 @@ func _vdbeMergeEngineStep(tls *libc.TLS, pMerger uintptr, pbEof uintptr) (r int3
}
goto _1
_1:
+ ;
i = i / int32(2)
}
*(*int32)(unsafe.Pointer(pbEof)) = libc.BoolInt32((*(*TPmaReader)(unsafe.Pointer((*TMergeEngine)(unsafe.Pointer(pMerger)).FaReadr + uintptr(*(*int32)(unsafe.Pointer((*TMergeEngine)(unsafe.Pointer(pMerger)).FaTree + 1*4)))*80))).FpFd == uintptr(0))
@@ -79658,6 +80240,7 @@ func _vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
if rc == SQLITE_OK {
@@ -80078,6 +80661,7 @@ func _vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode i
}
goto _1
_1:
+ ;
i++
}
i = (*TMergeEngine)(unsafe.Pointer(pMerger)).FnTree - int32(1)
@@ -80088,6 +80672,7 @@ func _vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode i
_vdbeMergeEngineCompare(tls, pMerger, i)
goto _2
_2:
+ ;
i--
}
return int32((*TUnpackedRecord)(unsafe.Pointer((*TSortSubtask)(unsafe.Pointer(pTask)).FpUnpacked)).FerrCode)
@@ -80270,6 +80855,7 @@ func _vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset u
iOff = (*TPmaReader)(unsafe.Pointer(pReadr)).FiEof
goto _2
_2:
+ ;
i++
}
if rc != SQLITE_OK {
@@ -80334,6 +80920,7 @@ func _vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32
nDiv = nDiv * int32(SORTER_MAX_MERGE_COUNT)
goto _1
_1:
+ ;
i++
}
i = int32(1)
@@ -80357,6 +80944,7 @@ func _vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32
}
goto _2
_2:
+ ;
i++
}
if rc == SQLITE_OK {
@@ -80440,6 +81028,7 @@ func _vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) (r
}
goto _2
_2:
+ ;
i += int32(SORTER_MAX_MERGE_COUNT)
}
}
@@ -80456,6 +81045,7 @@ func _vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) (r
}
goto _1
_1:
+ ;
iTask++
}
if rc != SQLITE_OK {
@@ -80497,6 +81087,7 @@ func _vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) (r int32) {
(*(*TSortSubtask)(unsafe.Pointer(pSorter + 96 + uintptr(i)*96))).FxCompare = xCompare
goto _1
_1:
+ ;
i++
}
rc = _vdbeSorterMergeTreeBuild(tls, pSorter, bp)
@@ -80530,6 +81121,7 @@ func _vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) (r int32) {
}
goto _2
_2:
+ ;
iTask++
}
iTask = 0
@@ -80551,6 +81143,7 @@ func _vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) (r int32) {
rc = _vdbePmaReaderIncrInit(tls, p, int32(INCRINIT_TASK))
goto _4
_4:
+ ;
iTask++
}
}
@@ -80771,6 +81364,7 @@ func _sqlite3VdbeSorterCompare(tls *libc.TLS, pCsr uintptr, pVal uintptr, nKeyCo
}
goto _2
_2:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pRes)) = _sqlite3VdbeRecordCompare(tls, (*TMem)(unsafe.Pointer(pVal)).Fn, (*TMem)(unsafe.Pointer(pVal)).Fz, r2)
@@ -80937,6 +81531,7 @@ func _memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst T
iOff += int64((*TMemJournal)(unsafe.Pointer(p)).FnChunkSize)
goto _1
_1:
+ ;
pChunk = (*TFileChunk)(unsafe.Pointer(pChunk)).FpNext
}
} else {
@@ -80958,6 +81553,7 @@ func _memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst T
iChunkOffset = 0
goto _4
_4:
+ ;
if v3 = nRead >= 0; v3 {
v2 = (*TFileChunk)(unsafe.Pointer(pChunk)).FpNext
pChunk = v2
@@ -80993,6 +81589,7 @@ func _memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) {
Xsqlite3_free(tls, pIter)
goto _1
_1:
+ ;
pIter = pNext
}
}
@@ -81030,6 +81627,7 @@ func _memjrnlCreateFile(tls *libc.TLS, p uintptr) (r int32) {
iOff += int64(nChunk)
goto _1
_1:
+ ;
pIter = (*TFileChunk)(unsafe.Pointer(pIter)).FpNext
}
if rc == SQLITE_OK {
@@ -81147,6 +81745,7 @@ func _memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Tsqlite_int64) (r int32)
iOff += int64((*TMemJournal)(unsafe.Pointer(p)).FnChunkSize)
goto _1
_1:
+ ;
pIter = (*TFileChunk)(unsafe.Pointer(pIter)).FpNext
}
if pIter != 0 {
@@ -81359,6 +81958,7 @@ func _walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int
}
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
return WRC_Continue
@@ -81460,6 +82060,7 @@ func _sqlite3WalkExprList(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
i--
pItem += 32
}
@@ -81554,6 +82155,7 @@ func _sqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32)
}
goto _1
_1:
+ ;
i--
pItem += 104
}
@@ -81739,6 +82341,10 @@ func _resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pE
_ = libc.Int32FromInt32(0)
pOrig = (*(*TExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(iCol)*32))).FpExpr
_ = libc.Int32FromInt32(0)
+ _ = libc.Int32FromInt32(0)
+ if (*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo != 0 {
+ return
+ }
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
pDup = _sqlite3ExprDup(tls, db, pOrig, 0)
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -81798,6 +82404,7 @@ func _sqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr
}
goto _1
_1:
+ ;
n++
}
if zDb != 0 && (Xsqlite3_strnicmp(tls, zSpan, zDb, n) != 0 || int32(*(*uint8)(unsafe.Pointer(zDb + uintptr(n)))) != 0) {
@@ -81811,6 +82418,7 @@ func _sqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr
}
goto _2
_2:
+ ;
n++
}
if zTab != 0 && (Xsqlite3_strnicmp(tls, zSpan, zTab, n) != 0 || int32(*(*uint8)(unsafe.Pointer(zTab + uintptr(n)))) != 0) {
@@ -81917,25 +82525,25 @@ func _isValidSchemaTableName(tls *libc.TLS, zTab uintptr, pTab uintptr, pSchema
_ = zLegacy
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
- if Xsqlite3_strnicmp(tls, zTab, __ccgo_ts+6500, int32(7)) != 0 {
+ if Xsqlite3_strnicmp(tls, zTab, __ccgo_ts+6525, int32(7)) != 0 {
return 0
}
zLegacy = (*TTable)(unsafe.Pointer(pTab)).FzName
- if libc.Xstrcmp(tls, zLegacy+uintptr(7), __ccgo_ts+6508+7) == 0 {
- if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6527+7) == 0 {
+ if libc.Xstrcmp(tls, zLegacy+uintptr(7), __ccgo_ts+6533+7) == 0 {
+ if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6552+7) == 0 {
return int32(1)
}
if pSchema == uintptr(0) {
return 0
}
- if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6041+7) == 0 {
+ if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6066+7) == 0 {
return int32(1)
}
- if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6546+7) == 0 {
+ if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6571+7) == 0 {
return int32(1)
}
} else {
- if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6546+7) == 0 {
+ if _sqlite3StrICmp(tls, zTab+uintptr(7), __ccgo_ts+6571+7) == 0 {
return int32(1)
}
}
@@ -82021,9 +82629,10 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
goto _1
_1:
+ ;
i++
}
- if i == (*Tsqlite3)(unsafe.Pointer(db)).FnDb && _sqlite3StrICmp(tls, __ccgo_ts+6560, zDb) == 0 {
+ if i == (*Tsqlite3)(unsafe.Pointer(db)).FnDb && _sqlite3StrICmp(tls, __ccgo_ts+6585, zDb) == 0 {
/* This branch is taken when the main database has been renamed
** using SQLITE_DBCONFIG_MAINDBNAME. */
pSchema = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FpSchema
@@ -82112,6 +82721,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
goto _3
_3:
+ ;
j++
}
if hit != 0 || zTab == uintptr(0) {
@@ -82124,7 +82734,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
if (*TTable)(unsafe.Pointer(pTab)).FpSchema != pSchema {
goto _2
}
- if pSchema == uintptr(0) && libc.Xstrcmp(tls, zDb, __ccgo_ts+6565) != 0 {
+ if pSchema == uintptr(0) && libc.Xstrcmp(tls, zDb, __ccgo_ts+6590) != 0 {
goto _2
}
}
@@ -82195,6 +82805,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
goto _4
_4:
+ ;
j++
pCol += 16
}
@@ -82204,6 +82815,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
goto _2
_2:
+ ;
i++
pItem += 104
}
@@ -82233,11 +82845,11 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
pTab = (*TParse)(unsafe.Pointer(pParse)).FpTriggerTab
}
} else {
- if op != int32(TK_DELETE) && zTab != 0 && _sqlite3StrICmp(tls, __ccgo_ts+6567, zTab) == 0 {
+ if op != int32(TK_DELETE) && zTab != 0 && _sqlite3StrICmp(tls, __ccgo_ts+6592, zTab) == 0 {
(*TExpr)(unsafe.Pointer(pExpr)).FiTable = int32(1)
pTab = (*TParse)(unsafe.Pointer(pParse)).FpTriggerTab
} else {
- if op != int32(TK_INSERT) && zTab != 0 && _sqlite3StrICmp(tls, __ccgo_ts+6571, zTab) == 0 {
+ if op != int32(TK_INSERT) && zTab != 0 && _sqlite3StrICmp(tls, __ccgo_ts+6596, zTab) == 0 {
(*TExpr)(unsafe.Pointer(pExpr)).FiTable = 0
pTab = (*TParse)(unsafe.Pointer(pParse)).FpTriggerTab
}
@@ -82246,7 +82858,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_UUpsert) != 0 && zTab != uintptr(0) {
pUpsert = *(*uintptr)(unsafe.Pointer(pNC + 16))
- if pUpsert != 0 && _sqlite3StrICmp(tls, __ccgo_ts+6575, zTab) == 0 {
+ if pUpsert != 0 && _sqlite3StrICmp(tls, __ccgo_ts+6600, zTab) == 0 {
pTab = (*(*TSrcItem)(unsafe.Pointer((*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertSrc + 8))).FpTab
(*TExpr)(unsafe.Pointer(pExpr)).FiTable = int32(EXCLUDED_TABLE_NUMBER)
}
@@ -82269,6 +82881,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
goto _6
_6:
+ ;
iCol++
pCol += 16
}
@@ -82367,15 +82980,15 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
_ = libc.Int32FromInt32(0)
pOrig = (*(*TExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(j)*32))).FpExpr
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_AllowAgg) == 0 && (*TExpr)(unsafe.Pointer(pOrig)).Fflags&uint32(libc.Int32FromInt32(EP_Agg)) != uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6584, libc.VaList(bp+24, zAs))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6609, libc.VaList(bp+24, zAs))
return int32(WRC_Abort)
}
if (*TExpr)(unsafe.Pointer(pOrig)).Fflags&uint32(libc.Int32FromInt32(EP_Win)) != uint32(0) && ((*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_AllowWin) == 0 || pNC != pTopNC) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6615, libc.VaList(bp+24, zAs))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6640, libc.VaList(bp+24, zAs))
return int32(WRC_Abort)
}
if _sqlite3ExprVectorSize(tls, pOrig) != int32(1) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6652, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6677, 0)
return int32(WRC_Abort)
}
_resolveAlias(tls, pParse, pEList, j, pExpr, nSubquery)
@@ -82389,6 +83002,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
goto _9
_9:
+ ;
j++
}
}
@@ -82428,7 +83042,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
** a huge amount of legacy SQL that uses it. So for now, we just
** issue a warning.
*/
- Xsqlite3_log(tls, int32(SQLITE_WARNING), __ccgo_ts+6670, libc.VaList(bp+24, zCol))
+ Xsqlite3_log(tls, int32(SQLITE_WARNING), __ccgo_ts+6695, libc.VaList(bp+24, zCol))
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_STRING)
libc.Xmemset(tls, pExpr+64, 0, uint64(8))
return int32(WRC_Prune)
@@ -82459,7 +83073,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
_extendFJMatch(tls, pParse, bp, pMatch, (*TExpr)(unsafe.Pointer(pExpr)).FiColumn)
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_FUNCTION)
- *(*uintptr)(unsafe.Pointer(pExpr + 8)) = __ccgo_ts + 6705
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = __ccgo_ts + 6730
*(*uintptr)(unsafe.Pointer(pExpr + 32)) = *(*uintptr)(unsafe.Pointer(bp))
cnt = int32(1)
goto lookupname_end
@@ -82469,18 +83083,18 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
}
if cnt == 0 {
- v10 = __ccgo_ts + 6714
+ v10 = __ccgo_ts + 6739
} else {
- v10 = __ccgo_ts + 6729
+ v10 = __ccgo_ts + 6754
}
zErr = v10
if zDb != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6751, libc.VaList(bp+24, zErr, zDb, zTab, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6776, libc.VaList(bp+24, zErr, zDb, zTab, zCol))
} else {
if zTab != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6764, libc.VaList(bp+24, zErr, zTab, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6789, libc.VaList(bp+24, zErr, zTab, zCol))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6774, libc.VaList(bp+24, zErr, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6799, libc.VaList(bp+24, zErr, zCol))
}
}
_sqlite3RecordErrorOffsetOfExpr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pExpr)
@@ -82516,6 +83130,7 @@ func _lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol
}
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(eNewExprOp)
lookupname_end:
+ ;
if cnt == int32(1) {
_ = libc.Int32FromInt32(0)
if (*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).FxAuth != 0 && (int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_COLUMN) || int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_TRIGGER)) {
@@ -82606,19 +83221,19 @@ func _notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pEx
defer tls.Free(32)
var zIn uintptr
_ = zIn
- zIn = __ccgo_ts + 6781
+ zIn = __ccgo_ts + 6806
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_IdxExpr) != 0 {
- zIn = __ccgo_ts + 6809
+ zIn = __ccgo_ts + 6834
} else {
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_IsCheck) != 0 {
- zIn = __ccgo_ts + 6827
+ zIn = __ccgo_ts + 6852
} else {
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_GenCol) != 0 {
- zIn = __ccgo_ts + 6845
+ zIn = __ccgo_ts + 6870
}
}
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6863, libc.VaList(bp+8, zMsg, zIn))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6888, libc.VaList(bp+8, zMsg, zIn))
if pExpr != 0 {
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_NULL)
}
@@ -82666,10 +83281,10 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
bp := tls.Alloc(32)
defer tls.Free(32)
var anRef [8]int32
- var auth, i, is_agg, n, nLeft, nRef, nRight, no_such_func, rc, savedAllowFlags, wrong_num_args, v11, v3, v5, v6 int32
+ var auth, i, is_agg, n, nLeft, nRef, nRight, no_such_func, rc, savedAllowFlags, wrong_num_args, v12, v4, v6, v7 int32
var enc Tu8
- var p, pDef, pItem, pLeft, pList, pNC, pNC2, pParse, pRight, pRight1, pSel, pSrcList, pWin, zColumn, zDb, zId, zTable, zType, v4, v7, p10, p8, p9 uintptr
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = anRef, auth, enc, i, is_agg, n, nLeft, nRef, nRight, no_such_func, p, pDef, pItem, pLeft, pList, pNC, pNC2, pParse, pRight, pRight1, pSel, pSrcList, pWin, rc, savedAllowFlags, wrong_num_args, zColumn, zDb, zId, zTable, zType, v11, v3, v4, v5, v6, v7, p10, p8, p9
+ var p, pDef, pItem, pLeft, pList, pNC, pNC2, pParse, pRight, pRight1, pSel, pSrcList, pWin, zColumn, zDb, zId, zTable, zType, v5, v8, p10, p11, p9 uintptr
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = anRef, auth, enc, i, is_agg, n, nLeft, nRef, nRight, no_such_func, p, pDef, pItem, pLeft, pList, pNC, pNC2, pParse, pRight, pRight1, pSel, pSrcList, pWin, rc, savedAllowFlags, wrong_num_args, zColumn, zDb, zId, zTable, zType, v12, v4, v5, v6, v7, v8, p10, p11, p9
pNC = *(*uintptr)(unsafe.Pointer(pWalker + 40))
_ = libc.Int32FromInt32(0)
pParse = (*TNameContext)(unsafe.Pointer(pNC)).FpParse
@@ -82704,6 +83319,19 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
** resolved. This prevents "column" from being counted as having been
** referenced, which might prevent a SELECT from being erroneously
** marked as correlated.
+ **
+ ** 2024-03-28: Beware of aggregates. A bare column of aggregated table
+ ** can still evaluate to NULL even though it is marked as NOT NULL.
+ ** Example:
+ **
+ ** CREATE TABLE t1(a INT NOT NULL);
+ ** SELECT a, a IS NULL, a IS NOT NULL, count(*) FROM t1;
+ **
+ ** The "a IS NULL" and "a IS NOT NULL" expressions cannot be optimized
+ ** here because at the time this case is hit, we do not yet know whether
+ ** or not t1 is being aggregated. We have to assume the worst and omit
+ ** the optimization. The only time it is safe to apply this optimization
+ ** is within the WHERE clause.
*/
fallthrough
case int32(TK_NOTNULL):
@@ -82718,30 +83346,52 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
anRef[i] = (*TNameContext)(unsafe.Pointer(p)).FnRef
goto _1
_1:
+ ;
p = (*TNameContext)(unsafe.Pointer(p)).FpNext
i++
}
_sqlite3WalkExpr(tls, pWalker, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft)
- if 0 == _sqlite3ExprCanBeNull(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft) && !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
- _ = libc.Int32FromInt32(0)
- *(*int32)(unsafe.Pointer(&(*TExpr)(unsafe.Pointer(pExpr)).Fu)) = libc.BoolInt32(int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_NOTNULL))
- *(*Tu32)(unsafe.Pointer(pExpr + 4)) |= uint32(EP_IntValue)
- (*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_INTEGER)
- i = 0
- p = pNC
- for {
- if !(p != 0 && i < int32(libc.Uint64FromInt64(32)/libc.Uint64FromInt64(4))) {
- break
- }
- (*TNameContext)(unsafe.Pointer(p)).FnRef = anRef[i]
- goto _2
- _2:
- p = (*TNameContext)(unsafe.Pointer(p)).FpNext
- i++
+ if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) {
+ return int32(WRC_Prune)
+ }
+ if _sqlite3ExprCanBeNull(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft) != 0 {
+ /* The expression can be NULL. So the optimization does not apply */
+ return int32(WRC_Prune)
+ }
+ i = 0
+ p = pNC
+ for {
+ if !(p != 0) {
+ break
+ }
+ if (*TNameContext)(unsafe.Pointer(p)).FncFlags&int32(NC_Where) == 0 {
+ return int32(WRC_Prune) /* Not in a WHERE clause. Unsafe to optimize. */
+ }
+ goto _2
+ _2:
+ ;
+ p = (*TNameContext)(unsafe.Pointer(p)).FpNext
+ i++
+ }
+ _ = libc.Int32FromInt32(0)
+ *(*int32)(unsafe.Pointer(&(*TExpr)(unsafe.Pointer(pExpr)).Fu)) = libc.BoolInt32(int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_NOTNULL))
+ *(*Tu32)(unsafe.Pointer(pExpr + 4)) |= uint32(EP_IntValue)
+ (*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_INTEGER)
+ i = 0
+ p = pNC
+ for {
+ if !(p != 0 && i < int32(libc.Uint64FromInt64(32)/libc.Uint64FromInt64(4))) {
+ break
}
- _sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft)
- (*TExpr)(unsafe.Pointer(pExpr)).FpLeft = uintptr(0)
+ (*TNameContext)(unsafe.Pointer(p)).FnRef = anRef[i]
+ goto _3
+ _3:
+ ;
+ p = (*TNameContext)(unsafe.Pointer(p)).FpNext
+ i++
}
+ _sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft)
+ (*TExpr)(unsafe.Pointer(pExpr)).FpLeft = uintptr(0)
return int32(WRC_Prune)
/* A column name: ID
** Or table name and column name: ID.ID
@@ -82764,7 +83414,7 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
pLeft = (*TExpr)(unsafe.Pointer(pExpr)).FpLeft
_ = libc.Int32FromInt32(0)
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&(libc.Int32FromInt32(NC_IdxExpr)|libc.Int32FromInt32(NC_GenCol)) != 0 {
- _notValidImpl(tls, pParse, pNC, __ccgo_ts+6883, uintptr(0), pExpr)
+ _notValidImpl(tls, pParse, pNC, __ccgo_ts+6908, uintptr(0), pExpr)
}
pRight = (*TExpr)(unsafe.Pointer(pExpr)).FpRight
if int32((*TExpr)(unsafe.Pointer(pRight)).Fop) == int32(TK_ID) {
@@ -82792,22 +83442,22 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
case int32(TK_FUNCTION):
pList = *(*uintptr)(unsafe.Pointer(pExpr + 32))
if pList != 0 {
- v3 = (*TExprList)(unsafe.Pointer(pList)).FnExpr
+ v4 = (*TExprList)(unsafe.Pointer(pList)).FnExpr
} else {
- v3 = 0
+ v4 = 0
} /* The argument list */
- n = v3 /* Number of arguments */
+ n = v4 /* Number of arguments */
no_such_func = 0 /* True if no such function exists */
wrong_num_args = 0 /* True if wrong number of arguments */
is_agg = 0 /* Information about the function */
enc = (*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Fenc /* The database encoding */
savedAllowFlags = (*TNameContext)(unsafe.Pointer(pNC)).FncFlags & (libc.Int32FromInt32(NC_AllowAgg) | libc.Int32FromInt32(NC_AllowWin))
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_WinFunc)) != uint32(0) && int32((*TWindow)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 64)))).FeFrmType) != int32(TK_FILTER) {
- v4 = *(*uintptr)(unsafe.Pointer(pExpr + 64))
+ v5 = *(*uintptr)(unsafe.Pointer(pExpr + 64))
} else {
- v4 = uintptr(0)
+ v5 = uintptr(0)
}
- pWin = v4
+ pWin = v5
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
zId = *(*uintptr)(unsafe.Pointer(pExpr + 8))
@@ -82826,7 +83476,7 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
if n == int32(2) {
(*TExpr)(unsafe.Pointer(pExpr)).FiTable = _exprProbability(tls, (*(*TExprList_item)(unsafe.Pointer(pList + 8 + 1*32))).FpExpr)
if (*TExpr)(unsafe.Pointer(pExpr)).FiTable < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6900, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6925, libc.VaList(bp+8, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
} else {
@@ -82840,17 +83490,17 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
** to likelihood(X,0.9375). */
/* TUNING: unlikely() probability is 0.0625. likely() is 0.9375 */
if int32(*(*uint8)(unsafe.Pointer((*TFuncDef)(unsafe.Pointer(pDef)).FzName))) == int32('u') {
- v5 = int32(8388608)
+ v6 = int32(8388608)
} else {
- v5 = int32(125829120)
+ v6 = int32(125829120)
}
- (*TExpr)(unsafe.Pointer(pExpr)).FiTable = v5
+ (*TExpr)(unsafe.Pointer(pExpr)).FiTable = v6
}
}
auth = _sqlite3AuthCheck(tls, pParse, int32(SQLITE_FUNCTION), uintptr(0), (*TFuncDef)(unsafe.Pointer(pDef)).FzName, uintptr(0))
if auth != SQLITE_OK {
if auth == int32(SQLITE_DENY) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6964, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6989, libc.VaList(bp+8, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
}
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_NULL)
@@ -82872,7 +83522,7 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
** all this. */
_ = libc.Int32FromInt32(0)
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&(libc.Int32FromInt32(NC_IdxExpr)|libc.Int32FromInt32(NC_PartIdx)|libc.Int32FromInt32(NC_GenCol)) != 0 {
- _notValidImpl(tls, pParse, pNC, __ccgo_ts+7000, uintptr(0), pExpr)
+ _notValidImpl(tls, pParse, pNC, __ccgo_ts+7025, uintptr(0), pExpr)
}
} else {
_ = libc.Int32FromInt32(0) /* Must fit in 8 bits */
@@ -82897,29 +83547,29 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
if 0 == libc.BoolInt32(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME)) {
_ = libc.Int32FromInt32(0)
if pDef != 0 && (*TFuncDef)(unsafe.Pointer(pDef)).FxValue == uintptr(0) && pWin != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7028, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7053, libc.VaList(bp+8, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
} else {
if is_agg != 0 && (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_AllowAgg) == 0 || is_agg != 0 && (*TFuncDef)(unsafe.Pointer(pDef)).FfuncFlags&uint32(SQLITE_FUNC_WINDOW) != 0 && !(pWin != 0) || is_agg != 0 && pWin != 0 && (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_AllowWin) == 0 {
if (*TFuncDef)(unsafe.Pointer(pDef)).FfuncFlags&uint32(SQLITE_FUNC_WINDOW) != 0 || pWin != 0 {
- zType = __ccgo_ts + 7071
+ zType = __ccgo_ts + 7096
} else {
- zType = __ccgo_ts + 7078
+ zType = __ccgo_ts + 7103
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7088, libc.VaList(bp+8, zType, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7113, libc.VaList(bp+8, zType, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
is_agg = 0
} else {
if no_such_func != 0 && int32((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Finit1.Fbusy) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7116, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7141, libc.VaList(bp+8, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
} else {
if wrong_num_args != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7138, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7163, libc.VaList(bp+8, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
} else {
if is_agg == 0 && (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_WinFunc)) != uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7182, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7207, libc.VaList(bp+8, pExpr))
(*TNameContext)(unsafe.Pointer(pNC)).FnNcErr++
} else {
if is_agg == 0 && (*TExpr)(unsafe.Pointer(pExpr)).FpLeft != 0 {
@@ -82936,11 +83586,11 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
** Or arguments of other window functions. But aggregate functions
** may be arguments for window functions. */
if !(pWin != 0) {
- v6 = int32(NC_AllowAgg)
+ v7 = int32(NC_AllowAgg)
} else {
- v6 = 0
+ v7 = 0
}
- *(*int32)(unsafe.Pointer(pNC + 40)) &= ^(libc.Int32FromInt32(NC_AllowWin) | v6)
+ *(*int32)(unsafe.Pointer(pNC + 40)) &= ^(libc.Int32FromInt32(NC_AllowWin) | v7)
}
} else {
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_WinFunc)) != uint32(0) {
@@ -82959,11 +83609,11 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
if libc.BoolInt32(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME)) == 0 {
if pSel != 0 {
- v7 = (*TSelect)(unsafe.Pointer(pSel)).FpWinDefn
+ v8 = (*TSelect)(unsafe.Pointer(pSel)).FpWinDefn
} else {
- v7 = uintptr(0)
+ v8 = uintptr(0)
}
- _sqlite3WindowUpdate(tls, pParse, v7, pWin, pDef)
+ _sqlite3WindowUpdate(tls, pParse, v8, pWin, pDef)
if (*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 {
break
}
@@ -82982,18 +83632,18 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
}
pNC2 = pNC
for pNC2 != 0 && _sqlite3ReferencesSrcList(tls, pParse, pExpr, (*TNameContext)(unsafe.Pointer(pNC2)).FpSrcList) == 0 {
- p8 = pExpr + 2
- *(*Tu8)(unsafe.Pointer(p8)) = Tu8(uint32(*(*Tu8)(unsafe.Pointer(p8))) + (libc.Uint32FromInt32(1) + (*TNameContext)(unsafe.Pointer(pNC2)).FnNestedSelect))
+ p9 = pExpr + 2
+ *(*Tu8)(unsafe.Pointer(p9)) = Tu8(uint32(*(*Tu8)(unsafe.Pointer(p9))) + (libc.Uint32FromInt32(1) + (*TNameContext)(unsafe.Pointer(pNC2)).FnNestedSelect))
pNC2 = (*TNameContext)(unsafe.Pointer(pNC2)).FpNext
}
_ = libc.Int32FromInt32(0)
if pNC2 != 0 && pDef != 0 {
- p9 = pExpr + 2
- *(*Tu8)(unsafe.Pointer(p9)) = Tu8(uint32(*(*Tu8)(unsafe.Pointer(p9))) + (*TNameContext)(unsafe.Pointer(pNC2)).FnNestedSelect)
+ p10 = pExpr + 2
+ *(*Tu8)(unsafe.Pointer(p10)) = Tu8(uint32(*(*Tu8)(unsafe.Pointer(p10))) + (*TNameContext)(unsafe.Pointer(pNC2)).FnNestedSelect)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
- p10 = pNC2 + 40
- *(*int32)(unsafe.Pointer(p10)) = int32(uint32(*(*int32)(unsafe.Pointer(p10))) | (libc.Uint32FromInt32(NC_HasAgg) | ((*TFuncDef)(unsafe.Pointer(pDef)).FfuncFlags^libc.Uint32FromInt32(SQLITE_FUNC_ANYORDER))&uint32(libc.Int32FromInt32(SQLITE_FUNC_MINMAX)|libc.Int32FromInt32(SQLITE_FUNC_ANYORDER))))
+ p11 = pNC2 + 40
+ *(*int32)(unsafe.Pointer(p11)) = int32(uint32(*(*int32)(unsafe.Pointer(p11))) | (libc.Uint32FromInt32(NC_HasAgg) | ((*TFuncDef)(unsafe.Pointer(pDef)).FfuncFlags^libc.Uint32FromInt32(SQLITE_FUNC_ANYORDER))&uint32(libc.Int32FromInt32(SQLITE_FUNC_MINMAX)|libc.Int32FromInt32(SQLITE_FUNC_ANYORDER))))
}
}
*(*int32)(unsafe.Pointer(pNC + 40)) |= savedAllowFlags
@@ -83010,7 +83660,7 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(EP_xIsSelect) != uint32(0) {
nRef = (*TNameContext)(unsafe.Pointer(pNC)).FnRef
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&int32(NC_SelfRef) != 0 {
- _notValidImpl(tls, pParse, pNC, __ccgo_ts+7230, pExpr, pExpr)
+ _notValidImpl(tls, pParse, pNC, __ccgo_ts+7255, pExpr, pExpr)
} else {
_sqlite3WalkSelect(tls, pWalker, *(*uintptr)(unsafe.Pointer(pExpr + 32)))
}
@@ -83023,7 +83673,7 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
case int32(TK_VARIABLE):
_ = libc.Int32FromInt32(0)
if (*TNameContext)(unsafe.Pointer(pNC)).FncFlags&(libc.Int32FromInt32(NC_IsCheck)|libc.Int32FromInt32(NC_PartIdx)|libc.Int32FromInt32(NC_IdxExpr)|libc.Int32FromInt32(NC_GenCol)) != 0 {
- _notValidImpl(tls, pParse, pNC, __ccgo_ts+7241, pExpr, pExpr)
+ _notValidImpl(tls, pParse, pNC, __ccgo_ts+7266, pExpr, pExpr)
}
case int32(TK_IS):
fallthrough
@@ -83073,18 +83723,18 @@ func _resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32) {
nRight = _sqlite3ExprVectorSize(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
}
if nLeft != nRight {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6652, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6677, 0)
_sqlite3RecordErrorOffsetOfExpr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pExpr)
}
break
}
_ = libc.Int32FromInt32(0)
if (*TParse)(unsafe.Pointer(pParse)).FnErr != 0 {
- v11 = int32(WRC_Abort)
+ v12 = int32(WRC_Abort)
} else {
- v11 = WRC_Continue
+ v12 = WRC_Continue
}
- return v11
+ return v12
}
// C documentation
@@ -83119,6 +83769,7 @@ func _resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) (
}
goto _1
_1:
+ ;
i++
}
}
@@ -83185,6 +83836,7 @@ func _resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintpt
}
goto _1
_1:
+ ;
i++
}
/* If no match, return 0. */
@@ -83199,7 +83851,7 @@ func _resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintpt
func _resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int32, mx int32, pError uintptr) {
bp := tls.Alloc(32)
defer tls.Free(32)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7252, libc.VaList(bp+8, i, zType, mx))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7277, libc.VaList(bp+8, i, zType, mx))
_sqlite3RecordErrorOffsetOfExpr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pError)
}
@@ -83234,7 +83886,7 @@ func _resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) (r
}
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
if (*TExprList)(unsafe.Pointer(pOrderBy)).FnExpr > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7308, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7333, 0)
return int32(1)
}
i = 0
@@ -83245,6 +83897,7 @@ func _resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) (r
libc.SetBitFieldPtr16Uint32(pOrderBy+8+uintptr(i)*32+16+4, libc.Uint32FromInt32(0), 2, 0x4)
goto _1
_1:
+ ;
i++
}
(*TSelect)(unsafe.Pointer(pSelect)).FpNext = uintptr(0)
@@ -83272,7 +83925,7 @@ func _resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) (r
}
if _sqlite3ExprIsInteger(tls, pE, bp) != 0 {
if *(*int32)(unsafe.Pointer(bp)) <= 0 || *(*int32)(unsafe.Pointer(bp)) > (*TExprList)(unsafe.Pointer(pEList)).FnExpr {
- _resolveOutOfRangeError(tls, pParse, __ccgo_ts+7342, i+int32(1), (*TExprList)(unsafe.Pointer(pEList)).FnExpr, pE)
+ _resolveOutOfRangeError(tls, pParse, __ccgo_ts+7367, i+int32(1), (*TExprList)(unsafe.Pointer(pEList)).FnExpr, pE)
return int32(1)
}
} else {
@@ -83333,6 +83986,7 @@ func _resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) (r
}
goto _2
_2:
+ ;
i++
pItem += 32
}
@@ -83344,11 +83998,12 @@ func _resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) (r
break
}
if int32(uint32(*(*uint16)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32 + 16 + 4))&0x4>>2)) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7348, libc.VaList(bp+16, i+int32(1)))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7373, libc.VaList(bp+16, i+int32(1)))
return int32(1)
}
goto _3
_3:
+ ;
i++
}
return 0
@@ -83377,7 +84032,7 @@ func _sqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr,
return 0
}
if (*TExprList)(unsafe.Pointer(pOrderBy)).FnExpr > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7409, libc.VaList(bp+8, zType))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7434, libc.VaList(bp+8, zType))
return int32(1)
}
pEList = (*TSelect)(unsafe.Pointer(pSelect)).FpEList
@@ -83406,6 +84061,7 @@ func _sqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr,
}
goto _1
_1:
+ ;
i++
pItem += 32
}
@@ -83540,10 +84196,12 @@ func _resolveOrderGroupBy(tls *libc.TLS, pNC uintptr, pSelect uintptr, pOrderBy
}
goto _2
_2:
+ ;
j++
}
goto _1
_1:
+ ;
i++
pItem += 32
}
@@ -83656,6 +84314,7 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
if pOuterNC != 0 && (*TNameContext)(unsafe.Pointer(pOuterNC)).FnNestedSelect > uint32(0) {
@@ -83697,16 +84356,18 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
(*(*TNameContext)(unsafe.Pointer(bp))).FncFlags |= int32(NC_UEList)
if (*TSelect)(unsafe.Pointer(p)).FpHaving != 0 {
if (*TSelect)(unsafe.Pointer(p)).FselFlags&uint32(SF_Aggregate) == uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7440, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7465, 0)
return int32(WRC_Abort)
}
if _sqlite3ResolveExprNames(tls, bp, (*TSelect)(unsafe.Pointer(p)).FpHaving) != 0 {
return int32(WRC_Abort)
}
}
+ (*(*TNameContext)(unsafe.Pointer(bp))).FncFlags |= int32(NC_Where)
if _sqlite3ResolveExprNames(tls, bp, (*TSelect)(unsafe.Pointer(p)).FpWhere) != 0 {
return int32(WRC_Abort)
}
+ (*(*TNameContext)(unsafe.Pointer(bp))).FncFlags &= ^libc.Int32FromInt32(NC_Where)
/* Resolve names in table-valued-function arguments */
i = 0
for {
@@ -83719,6 +84380,7 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _4
_4:
+ ;
i++
}
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) {
@@ -83732,6 +84394,7 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _5
_5:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
}
@@ -83760,7 +84423,7 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
** is not detected until much later, and so we need to go ahead and
** resolve those symbols on the incorrect ORDER BY for consistency.
*/
- if (*TSelect)(unsafe.Pointer(p)).FpOrderBy != uintptr(0) && isCompound <= nCompound && _resolveOrderGroupBy(tls, bp, p, (*TSelect)(unsafe.Pointer(p)).FpOrderBy, __ccgo_ts+7342) != 0 {
+ if (*TSelect)(unsafe.Pointer(p)).FpOrderBy != uintptr(0) && isCompound <= nCompound && _resolveOrderGroupBy(tls, bp, p, (*TSelect)(unsafe.Pointer(p)).FpOrderBy, __ccgo_ts+7367) != 0 {
return int32(WRC_Abort)
}
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -83771,7 +84434,7 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
** the GROUP BY clause does not contain aggregate functions.
*/
if pGroupBy != 0 {
- if _resolveOrderGroupBy(tls, bp, p, pGroupBy, __ccgo_ts+7479) != 0 || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ if _resolveOrderGroupBy(tls, bp, p, pGroupBy, __ccgo_ts+7504) != 0 || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return int32(WRC_Abort)
}
i = 0
@@ -83781,11 +84444,12 @@ func _resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
break
}
if (*TExpr)(unsafe.Pointer((*TExprList_item)(unsafe.Pointer(pItem2)).FpExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Agg)) != uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7485, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7510, 0)
return int32(WRC_Abort)
}
goto _6
_6:
+ ;
i++
pItem2 += 32
}
@@ -83948,6 +84612,7 @@ func _sqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) (r
}
goto _1
_1:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pNC + 40)) |= savedHasAgg
@@ -84187,6 +84852,7 @@ func _sqlite3ExprDataType(tls *libc.TLS, pExpr uintptr) (r int32) {
res |= _sqlite3ExprDataType(tls, (*(*TExprList_item)(unsafe.Pointer(pList + 8 + uintptr(ii)*32))).FpExpr)
goto _1
_1:
+ ;
ii += int32(2)
}
if (*TExprList)(unsafe.Pointer(pList)).FnExpr%int32(2) != 0 {
@@ -84340,6 +85006,7 @@ func _sqlite3ExprCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) (r uintpt
}
goto _2
_2:
+ ;
i++
}
}
@@ -84805,7 +85472,7 @@ func _codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32
return
}
if nLeft != _sqlite3ExprVectorSize(tls, pRight) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6652, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6677, 0)
return
}
_ = libc.Int32FromInt32(0)
@@ -84865,6 +85532,7 @@ func _codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32
}
goto _1
_1:
+ ;
i++
}
_sqlite3VdbeJumpHere(tls, v, addrCmp)
@@ -84889,7 +85557,7 @@ func _sqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) (r in
rc = SQLITE_OK
mxHeight = *(*int32)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb + 136 + 3*4))
if nHeight > mxHeight {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7544, libc.VaList(bp+8, mxHeight))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7569, libc.VaList(bp+8, mxHeight))
rc = int32(SQLITE_ERROR)
}
return rc
@@ -84926,6 +85594,7 @@ func _heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) {
_heightOfExpr(tls, (*(*TExprList_item)(unsafe.Pointer(p + 8 + uintptr(i)*32))).FpExpr, pnHeight)
goto _1
_1:
+ ;
i++
}
}
@@ -84947,6 +85616,7 @@ func _heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) {
_heightOfExprList(tls, (*TSelect)(unsafe.Pointer(p)).FpOrderBy, pnHeight)
goto _1
_1:
+ ;
p = (*TSelect)(unsafe.Pointer(p)).FpPrior
}
}
@@ -85240,11 +85910,11 @@ func _sqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList
}
if nExprElem != nElem {
if nExprElem > int32(1) {
- v2 = __ccgo_ts + 7592
+ v2 = __ccgo_ts + 7617
} else {
v2 = __ccgo_ts + 1648
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7594, libc.VaList(bp+8, nExprElem, v2, nElem))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7619, libc.VaList(bp+8, nExprElem, v2, nElem))
break
}
_ = libc.Int32FromInt32(0)
@@ -85259,6 +85929,7 @@ func _sqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList
}
goto _1
_1:
+ ;
ii++
}
if pRet != 0 && (*TSelect)(unsafe.Pointer(pRet)).FpPrior != 0 {
@@ -85323,7 +85994,7 @@ func _sqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken u
_ = libc.Int32FromInt32(0)
*(*int32)(unsafe.Pointer(pNew + 52)) = int32(int64((*TToken)(unsafe.Pointer(pToken)).Fz) - int64((*TParse)(unsafe.Pointer(pParse)).FzTail))
if pList != 0 && (*TExprList)(unsafe.Pointer(pList)).FnExpr > *(*int32)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb + 136 + 6*4)) && !((*TParse)(unsafe.Pointer(pParse)).Fnested != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7638, libc.VaList(bp+8, pToken))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7663, libc.VaList(bp+8, pToken))
}
*(*uintptr)(unsafe.Pointer(pNew + 32)) = pList
*(*Tu32)(unsafe.Pointer(pNew + 4)) |= uint32(libc.Int32FromInt32(EP_HasFunc))
@@ -85344,7 +86015,7 @@ func _sqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken u
func _sqlite3ExprOrderByAggregateError(tls *libc.TLS, pParse uintptr, p uintptr) {
bp := tls.Alloc(16)
defer tls.Free(16)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7672, libc.VaList(bp+8, p))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7697, libc.VaList(bp+8, p))
}
// C documentation
@@ -85423,7 +86094,7 @@ func _sqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pD
** SQLITE_DBCONFIG_TRUSTED_SCHEMA is off (meaning
** that the schema is possibly tainted).
*/
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7722, libc.VaList(bp+8, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7747, libc.VaList(bp+8, pExpr))
}
}
}
@@ -85480,7 +86151,7 @@ func _sqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n
bOk = libc.BoolInt32(0 == _sqlite3Atoi64(tls, z+1, bp, int32(n-uint32(1)), uint8(SQLITE_UTF8)))
}
if bOk == 0 || *(*Ti64)(unsafe.Pointer(bp)) < int64(1) || *(*Ti64)(unsafe.Pointer(bp)) > int64(*(*int32)(unsafe.Pointer(db + 136 + 9*4))) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7742, libc.VaList(bp+16, *(*int32)(unsafe.Pointer(db + 136 + 9*4))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7767, libc.VaList(bp+16, *(*int32)(unsafe.Pointer(db + 136 + 9*4))))
_sqlite3RecordErrorOffsetOfExpr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pExpr)
return
}
@@ -85513,7 +86184,7 @@ func _sqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n
}
(*TExpr)(unsafe.Pointer(pExpr)).FiColumn = x
if int32(x) > *(*int32)(unsafe.Pointer(db + 136 + 9*4)) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7785, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7810, 0)
_sqlite3RecordErrorOffsetOfExpr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pExpr)
}
}
@@ -85931,6 +86602,7 @@ func _sqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
(*(*TCte)(unsafe.Pointer(pRet + 16 + uintptr(i)*48))).FeM10d = (*(*TCte)(unsafe.Pointer(p + 16 + uintptr(i)*48))).FeM10d
goto _1
_1:
+ ;
i++
}
}
@@ -86064,6 +86736,7 @@ func _sqlite3ExprListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) (r u
(*TExprList_item)(unsafe.Pointer(pItem)).Fu = (*TExprList_item)(unsafe.Pointer(pOldItem)).Fu
goto _1
_1:
+ ;
i++
pItem += 32
pOldItem += 32
@@ -86143,6 +86816,7 @@ func _sqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) (r ui
(*TSrcItem)(unsafe.Pointer(pNewItem)).FcolUsed = (*TSrcItem)(unsafe.Pointer(pOldItem)).FcolUsed
goto _3
_3:
+ ;
i++
}
return pNew
@@ -86174,6 +86848,7 @@ func _sqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
(*TIdList_item)(unsafe.Pointer(pNewItem)).Fu4 = (*TIdList_item)(unsafe.Pointer(pOldItem)).Fu4
goto _1
_1:
+ ;
i++
}
return pNew
@@ -86234,6 +86909,7 @@ func _sqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) (r
pNext = pNew
goto _1
_1:
+ ;
p = (*TSelect)(unsafe.Pointer(p)).FpPrior
}
return *(*uintptr)(unsafe.Pointer(bp))
@@ -86389,7 +87065,7 @@ func _sqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr,
n = v2
}
if v3 && (*TIdList)(unsafe.Pointer(pColumns)).FnId != v2 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7808, libc.VaList(bp+8, (*TIdList)(unsafe.Pointer(pColumns)).FnId, n))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7833, libc.VaList(bp+8, (*TIdList)(unsafe.Pointer(pColumns)).FnId, n))
goto vector_append_error
}
i = 0
@@ -86410,6 +87086,7 @@ func _sqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr,
}
goto _4
_4:
+ ;
i++
}
if !((*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) && int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_SELECT) && pList != uintptr(0) {
@@ -86425,6 +87102,7 @@ func _sqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr,
(*TExpr)(unsafe.Pointer(pFirst)).FiTable = (*TIdList)(unsafe.Pointer(pColumns)).FnId
}
vector_append_error:
+ ;
_sqlite3ExprUnmapAndDelete(tls, pParse, pExpr)
_sqlite3IdListDelete(tls, db, pColumns)
return pList
@@ -86531,7 +87209,7 @@ func _sqlite3ExprListCheckLength(tls *libc.TLS, pParse uintptr, pEList uintptr,
_ = mx
mx = *(*int32)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb + 136 + 2*4))
if pEList != 0 && (*TExprList)(unsafe.Pointer(pEList)).FnExpr > mx {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7838, libc.VaList(bp+8, zObject))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7863, libc.VaList(bp+8, zObject))
}
}
@@ -86556,6 +87234,7 @@ func _exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) {
pItem += 32
goto _2
_2:
+ ;
i--
v1 = i
if !(v1 > 0) {
@@ -86600,6 +87279,7 @@ func _sqlite3ExprListFlags(tls *libc.TLS, pList uintptr) (r Tu32) {
m |= (*TExpr)(unsafe.Pointer(pExpr)).Fflags
goto _1
_1:
+ ;
i++
}
return m
@@ -86631,10 +87311,10 @@ func _sqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) (r
// ** anything else 0
// */
func _sqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) (r Tu32) {
- if _sqlite3StrICmp(tls, zIn, __ccgo_ts+7861) == 0 {
+ if _sqlite3StrICmp(tls, zIn, __ccgo_ts+7886) == 0 {
return uint32(EP_IsTrue)
}
- if _sqlite3StrICmp(tls, zIn, __ccgo_ts+7866) == 0 {
+ if _sqlite3StrICmp(tls, zIn, __ccgo_ts+7891) == 0 {
return uint32(EP_IsFalse)
}
return uint32(0)
@@ -86955,6 +87635,7 @@ func _sqlite3ExprIsSingleTableConstraint(tls *libc.TLS, pExpr uintptr, pSrcList
}
goto _1
_1:
+ ;
jj++
}
}
@@ -86987,6 +87668,7 @@ func _exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr)
}
goto _1
_1:
+ ;
i++
}
/* Check if pExpr is a sub-select. If so, consider it variable. */
@@ -87200,13 +87882,13 @@ func _sqlite3ExprNeedsNoAffinityChange(tls *libc.TLS, p uintptr, aff uint8) (r i
// ** Return TRUE if the given string is a row-id column name.
// */
func _sqlite3IsRowid(tls *libc.TLS, z uintptr) (r int32) {
- if _sqlite3StrICmp(tls, z, __ccgo_ts+7872) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+7897) == 0 {
return int32(1)
}
- if _sqlite3StrICmp(tls, z, __ccgo_ts+7880) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+7905) == 0 {
return int32(1)
}
- if _sqlite3StrICmp(tls, z, __ccgo_ts+7886) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+7911) == 0 {
return int32(1)
}
return 0
@@ -87224,9 +87906,9 @@ func _sqlite3RowidAlias(tls *libc.TLS, pTab uintptr) (r uintptr) {
var iCol, ii int32
_, _, _ = azOpt, iCol, ii
azOpt = [3]uintptr{
- 0: __ccgo_ts + 7872,
- 1: __ccgo_ts + 7880,
- 2: __ccgo_ts + 7886,
+ 0: __ccgo_ts + 7897,
+ 1: __ccgo_ts + 7905,
+ 2: __ccgo_ts + 7911,
}
_ = libc.Int32FromInt32(0)
ii = 0
@@ -87244,6 +87926,7 @@ func _sqlite3RowidAlias(tls *libc.TLS, pTab uintptr) (r uintptr) {
}
goto _2
_2:
+ ;
iCol++
}
if iCol == int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
@@ -87251,6 +87934,7 @@ func _sqlite3RowidAlias(tls *libc.TLS, pTab uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
ii++
}
return uintptr(0)
@@ -87318,6 +88002,7 @@ func _isCandidateForInOpt(tls *libc.TLS, pX uintptr) (r uintptr) {
_ = libc.Int32FromInt32(0) /* Not a correlated subquery */
goto _1
_1:
+ ;
i++
}
return p
@@ -87479,6 +88164,7 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
}
goto _3
_3:
+ ;
i++
}
if i == (*TExprList)(unsafe.Pointer(pEList)).FnExpr {
@@ -87511,7 +88197,7 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
iAddr = _sqlite3VdbeAddOp0(tls, v, int32(OP_Once))
_sqlite3OpenTable(tls, pParse, iTab, iDb, pTab, int32(OP_OpenRead))
eType = int32(IN_INDEX_ROWID)
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+7890, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+7915, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
_sqlite3VdbeJumpHere(tls, v, iAddr)
} else { /* Iterator variable */
affinity_ok = int32(1)
@@ -87541,6 +88227,7 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
}
goto _6
_6:
+ ;
i1++
}
if affinity_ok != 0 {
@@ -87590,6 +88277,7 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
break
goto _9
_9:
+ ;
j++
}
if j == nExpr {
@@ -87605,13 +88293,14 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
}
goto _8
_8:
+ ;
i1++
}
_ = libc.Int32FromInt32(0)
if colUsed == libc.Uint64FromInt32(1)<<nExpr-uint64(1) {
/* If we reach this point, that means the index pIdx is usable */
iAddr1 = _sqlite3VdbeAddOp0(tls, v, int32(OP_Once))
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+7937, libc.VaList(bp+8, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+7962, libc.VaList(bp+8, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
_sqlite3VdbeAddOp3(tls, v, int32(OP_OpenRead), iTab, int32((*TIndex)(unsafe.Pointer(pIdx)).Ftnum), iDb)
_sqlite3VdbeSetP4KeyInfo(tls, pParse, pIdx)
_ = libc.Int32FromInt32(0)
@@ -87629,6 +88318,7 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
}
goto _7
_7:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
} /* End loop over indexes */
} /* End if( affinity_ok ) */
@@ -87682,6 +88372,7 @@ func _sqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags Tu32
*(*int32)(unsafe.Pointer(aiMap + uintptr(i2)*4)) = i2
goto _15
_15:
+ ;
i2++
}
}
@@ -87729,6 +88420,7 @@ func _exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) (r uintptr) {
}
goto _2
_2:
+ ;
i++
}
*(*uint8)(unsafe.Pointer(zRet + uintptr(nVal))) = uint8('\000')
@@ -87750,7 +88442,7 @@ func _sqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpec
var zFmt uintptr
_ = zFmt
if (*TParse)(unsafe.Pointer(pParse)).FnErr == 0 {
- zFmt = __ccgo_ts + 7968
+ zFmt = __ccgo_ts + 7993
_sqlite3ErrorMsg(tls, pParse, zFmt, libc.VaList(bp+8, nActual, nExpect))
}
}
@@ -87772,7 +88464,7 @@ func _sqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) {
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(EP_xIsSelect) != uint32(0) {
_sqlite3SubselectError(tls, pParse, (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FpEList)).FnExpr, int32(1))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6652, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6677, 0)
}
}
@@ -87830,7 +88522,7 @@ func _sqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Subrtn)) != uint32(0) {
addrOnce = _sqlite3VdbeAddOp0(tls, v, int32(OP_Once))
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(EP_xIsSelect) != uint32(0) {
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+8012, libc.VaList(bp+56, (*TSelect)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+8037, libc.VaList(bp+56, (*TSelect)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId))
}
_ = libc.Int32FromInt32(0)
_sqlite3VdbeAddOp2(tls, v, int32(OP_Gosub), (*(*struct {
@@ -87885,9 +88577,9 @@ func _sqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
if addrOnce != 0 {
v3 = __ccgo_ts + 1648
} else {
- v3 = __ccgo_ts + 8035
+ v3 = __ccgo_ts + 8060
}
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+8047, libc.VaList(bp+56, v3, (*TSelect)(unsafe.Pointer(pSelect)).FselId))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+8072, libc.VaList(bp+56, v3, (*TSelect)(unsafe.Pointer(pSelect)).FselId))
/* If the LHS and RHS of the IN operator do not match, that
** error will have been caught long before we reach this point. */
if (*TExprList)(unsafe.Pointer(pEList)).FnExpr == nVal {
@@ -87921,6 +88613,7 @@ func _sqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
*(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)) = _sqlite3BinaryCompareCollSeq(tls, pParse, p, (*(*TExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32))).FpExpr)
goto _5
_5:
+ ;
i++
}
}
@@ -87966,6 +88659,7 @@ func _sqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IdxInsert), iTab, r2, r1, int32(1))
goto _6
_6:
+ ;
i1--
pItem += 32
}
@@ -88029,7 +88723,7 @@ func _sqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) (r int3
/* If this routine has already been coded, then invoke it as a
** subroutine. */
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_Subrtn)) != uint32(0) {
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+8066, libc.VaList(bp+48, (*TSelect)(unsafe.Pointer(pSel)).FselId))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+8091, libc.VaList(bp+48, (*TSelect)(unsafe.Pointer(pSel)).FselId))
_ = libc.Int32FromInt32(0)
_sqlite3VdbeAddOp2(tls, v, int32(OP_Gosub), (*(*struct {
FiAddr int32
@@ -88084,9 +88778,9 @@ func _sqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) (r int3
if addrOnce != 0 {
v3 = __ccgo_ts + 1648
} else {
- v3 = __ccgo_ts + 8035
+ v3 = __ccgo_ts + 8060
}
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+8084, libc.VaList(bp+48, v3, (*TSelect)(unsafe.Pointer(pSel)).FselId))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+8109, libc.VaList(bp+48, v3, (*TSelect)(unsafe.Pointer(pSel)).FselId))
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_SELECT) {
v4 = (*TExprList)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pSel)).FpEList)).FnExpr
} else {
@@ -88117,7 +88811,7 @@ func _sqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) (r int3
(*TExpr)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pSel)).FpLimit)).FpLeft = pLimit
} else {
/* If there is no pre-existing limit add a limit of 1 */
- pLimit = _sqlite3Expr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_INTEGER), __ccgo_ts+8105)
+ pLimit = _sqlite3Expr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_INTEGER), __ccgo_ts+8130)
(*TSelect)(unsafe.Pointer(pSel)).FpLimit = _sqlite3PExpr(tls, pParse, int32(TK_LIMIT), pLimit, uintptr(0))
}
(*TSelect)(unsafe.Pointer(pSel)).FiLimit = 0
@@ -88263,6 +88957,7 @@ func _sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFals
}
goto _2
_2:
+ ;
i++
} /* Are LHS fields reordered? */
if i == nVector {
@@ -88279,6 +88974,7 @@ func _sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFals
_sqlite3VdbeAddOp3(tls, v, int32(OP_Copy), rLhsOrig+i, rLhs+*(*int32)(unsafe.Pointer(aiMap + uintptr(i)*4)), 0)
goto _3
_3:
+ ;
i++
}
}
@@ -88330,6 +89026,7 @@ func _sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFals
}
goto _4
_4:
+ ;
ii++
}
if regCkNull != 0 {
@@ -88365,6 +89062,7 @@ func _sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFals
}
goto _8
_8:
+ ;
i++
}
/* Step 3. The LHS is now known to be non-NULL. Do the binary search
@@ -88430,6 +89128,7 @@ func _sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFals
_sqlite3ReleaseTempReg(tls, pParse, r3)
goto _9
_9:
+ ;
i++
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_Goto), 0, destIfNull)
@@ -88443,10 +89142,12 @@ func _sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFals
/* Jumps here in order to return true. */
_sqlite3VdbeJumpHere(tls, v, addrTruthOp)
sqlite3ExprCodeIN_finished:
+ ;
if rLhs != rLhsOrig {
_sqlite3ReleaseTempReg(tls, pParse, rLhs)
}
sqlite3ExprCodeIN_oom_error:
+ ;
_sqlite3DbFree(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, aiMap)
_sqlite3DbFree(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, zAff)
}
@@ -88504,13 +89205,13 @@ func _codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, i
_ = libc.Int32FromInt32(0)
c = _sqlite3DecOrHexToI64(tls, z, bp)
if c == int32(3) && !(negFlag != 0) || c == int32(2) || negFlag != 0 && *(*Ti64)(unsafe.Pointer(bp)) == int64(-libc.Int32FromInt32(1))-(libc.Int64FromUint32(0xffffffff)|libc.Int64FromInt32(0x7fffffff)<<libc.Int32FromInt32(32)) {
- if Xsqlite3_strnicmp(tls, z, __ccgo_ts+8107, int32(2)) == 0 {
+ if Xsqlite3_strnicmp(tls, z, __ccgo_ts+8132, int32(2)) == 0 {
if negFlag != 0 {
- v1 = __ccgo_ts + 5049
+ v1 = __ccgo_ts + 5074
} else {
v1 = __ccgo_ts + 1648
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8110, libc.VaList(bp+16, v1, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8135, libc.VaList(bp+16, v1, pExpr))
} else {
_codeReal(tls, v, z, negFlag, iMem)
}
@@ -88605,7 +89306,7 @@ func _sqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iT
if int32((*TColumn)(unsafe.Pointer(v1)).FcolFlags)&int32(COLFLAG_VIRTUAL) != 0 {
pParse = _sqlite3VdbeParser(tls, v)
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_BUSY) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8137, libc.VaList(bp+8, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8162, libc.VaList(bp+8, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
} else {
savedSelfTab = (*TParse)(unsafe.Pointer(pParse)).FiSelfTab
p2 = pCol + 14
@@ -88724,6 +89425,7 @@ func _exprCodeVector(tls *libc.TLS, pParse uintptr, p uintptr, piFreeable uintpt
_sqlite3ExprCodeFactorable(tls, pParse, (*(*TExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32)) + 8 + uintptr(i)*32))).FpExpr, i+iResult)
goto _1
_1:
+ ;
i++
}
}
@@ -88781,6 +89483,7 @@ func _exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFunc
_sqlite3ExprCode(tls, pParse, (*(*TExprList_item)(unsafe.Pointer(pFarg + 8 + uintptr(i)*32))).FpExpr, target)
goto _1
_1:
+ ;
i++
}
_setDoNotMergeFlagOnCopy(tls, v)
@@ -88831,18 +89534,18 @@ func _exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFunc
** the SQLite type logic.
*/
azAff = [6]uintptr{
- 0: __ccgo_ts + 8167,
- 1: __ccgo_ts + 8172,
- 2: __ccgo_ts + 8177,
- 3: __ccgo_ts + 6281,
- 4: __ccgo_ts + 6276,
- 5: __ccgo_ts + 8185,
+ 0: __ccgo_ts + 8192,
+ 1: __ccgo_ts + 8197,
+ 2: __ccgo_ts + 8202,
+ 3: __ccgo_ts + 6306,
+ 4: __ccgo_ts + 6301,
+ 5: __ccgo_ts + 8210,
}
_ = libc.Int32FromInt32(0)
aff = _sqlite3ExprAffinity(tls, (*(*TExprList_item)(unsafe.Pointer(pFarg + 8))).FpExpr)
_ = libc.Int32FromInt32(0)
if int32(aff) <= int32(SQLITE_AFF_NONE) {
- v2 = __ccgo_ts + 8193
+ v2 = __ccgo_ts + 8218
} else {
v2 = azAff[int32(aff)-int32(SQLITE_AFF_BLOB)]
}
@@ -88910,6 +89613,7 @@ func _sqlite3IndexedExprLookup(tls *libc.TLS, pParse uintptr, pExpr uintptr, tar
return target
goto _1
_1:
+ ;
p = (*TIndexedExpr)(unsafe.Pointer(p)).FpIENext
}
return -int32(1) /* Not found */
@@ -88952,6 +89656,7 @@ func _exprPartidxExprLookup(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTarge
}
goto _1
_1:
+ ;
p = (*TIndexedExpr)(unsafe.Pointer(p)).FpIENext
}
return 0
@@ -88991,6 +89696,7 @@ func _sqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
expr_code_doover:
+ ;
if pExpr == uintptr(0) {
op = int32(TK_NULL)
} else {
@@ -89075,7 +89781,7 @@ expr_code_doover:
iSrc = int32(_sqlite3TableColumnToStorage(tls, pTab1, int16(iCol))) - (*TParse)(unsafe.Pointer(pParse)).FiSelfTab
if int32((*TColumn)(unsafe.Pointer(pCol1)).FcolFlags)&int32(COLFLAG_GENERATED) != 0 {
if int32((*TColumn)(unsafe.Pointer(pCol1)).FcolFlags)&int32(COLFLAG_BUSY) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8137, libc.VaList(bp+160, (*TColumn)(unsafe.Pointer(pCol1)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8162, libc.VaList(bp+160, (*TColumn)(unsafe.Pointer(pCol1)).FzCnName))
return 0
}
p3 = pCol1 + 14
@@ -89273,7 +89979,7 @@ expr_code_doover:
_ = libc.Int32FromInt32(0)
r1 = _sqlite3ExprCodeTemp(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, bp)
_sqlite3VdbeAddOp2(tls, v, op, r1, inReg)
- case int32(TK_TRUTH):
+ case int32(TK_TRUTH): /* IS TRUE or IS FALSE */
r1 = _sqlite3ExprCodeTemp(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, bp)
isTrue = _sqlite3ExprTruthValue(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
bNormal = libc.BoolInt32(int32((*TExpr)(unsafe.Pointer(pExpr)).Fop2) == int32(TK_IS))
@@ -89292,12 +89998,12 @@ expr_code_doover:
pInfo = (*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo
if pInfo == uintptr(0) || int32((*TExpr)(unsafe.Pointer(pExpr)).FiAgg) < 0 || int32((*TExpr)(unsafe.Pointer(pExpr)).FiAgg) >= (*TAggInfo)(unsafe.Pointer(pInfo)).FnFunc {
_ = libc.Int32FromInt32(0)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8198, libc.VaList(bp+160, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8223, libc.VaList(bp+160, pExpr))
} else {
_ = libc.Int32FromInt32(0)
return (*TAggInfo)(unsafe.Pointer(pInfo)).FiFirstReg + (*TAggInfo)(unsafe.Pointer(pInfo)).FnColumn + int32((*TExpr)(unsafe.Pointer(pExpr)).FiAgg)
}
- case int32(TK_FUNCTION):
+ case int32(TK_FUNCTION): /* The function name */
constMask = uint32(0) /* Loop counter */
db = (*TParse)(unsafe.Pointer(pParse)).Fdb /* The database connection */
enc = (*Tsqlite3)(unsafe.Pointer(db)).Fenc /* The text encoding used by this database */
@@ -89323,7 +90029,7 @@ expr_code_doover:
zId = *(*uintptr)(unsafe.Pointer(pExpr + 8))
pDef = _sqlite3FindFunction(tls, db, zId, nFarg, enc, uint8(0))
if pDef == uintptr(0) || (*TFuncDef)(unsafe.Pointer(pDef)).FxFinalize != uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8225, libc.VaList(bp+160, pExpr))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8250, libc.VaList(bp+160, pExpr))
break
}
if (*TFuncDef)(unsafe.Pointer(pDef)).FfuncFlags&uint32(SQLITE_FUNC_INLINE) != uint32(0) && pFarg != uintptr(0) {
@@ -89348,6 +90054,7 @@ expr_code_doover:
}
goto _9
_9:
+ ;
i++
}
if pFarg != 0 {
@@ -89436,7 +90143,7 @@ expr_code_doover:
_ = libc.Int32FromInt32(0)
n1 = _sqlite3ExprVectorSize(tls, pLeft2)
if (*TExpr)(unsafe.Pointer(pExpr)).FiTable != n1 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7808, libc.VaList(bp+160, (*TExpr)(unsafe.Pointer(pExpr)).FiTable, n1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+7833, libc.VaList(bp+160, (*TExpr)(unsafe.Pointer(pExpr)).FiTable, n1))
}
return (*TExpr)(unsafe.Pointer(pLeft2)).FiTable + int32((*TExpr)(unsafe.Pointer(pExpr)).FiColumn)
case int32(TK_IN):
@@ -89504,7 +90211,7 @@ expr_code_doover:
_sqlite3VdbeAddOp1(tls, v, int32(OP_RealAffinity), target)
}
case int32(TK_VECTOR):
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6652, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6677, 0)
break
/* TK_IF_NULL_ROW Expr nodes are inserted ahead of expressions
** that derive from the right-hand table of a LEFT JOIN. The
@@ -89565,7 +90272,7 @@ expr_code_doover:
** no ELSE term, NULL.
*/
fallthrough
- case int32(TK_CASE):
+ case int32(TK_CASE): /* The X expression */
pTest = uintptr(0) /* X==Ei (form A) or just Ei (form B) */
pDel = uintptr(0)
db1 = (*TParse)(unsafe.Pointer(pParse)).Fdb
@@ -89612,6 +90319,7 @@ expr_code_doover:
_sqlite3VdbeResolveLabel(tls, v, nextCase)
goto _13
_13:
+ ;
i1 = i1 + int32(2)
}
if nExpr&int32(1) != 0 {
@@ -89625,7 +90333,7 @@ expr_code_doover:
case int32(TK_RAISE):
_ = libc.Int32FromInt32(0)
if !((*TParse)(unsafe.Pointer(pParse)).FpTriggerTab != 0) && !((*TParse)(unsafe.Pointer(pParse)).Fnested != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8249, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8274, 0)
return 0
}
if int32((*TExpr)(unsafe.Pointer(pExpr)).FaffExpr) == int32(OE_Abort) {
@@ -89689,6 +90397,7 @@ func _sqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, r
}
goto _1
_1:
+ ;
pItem += 32
i--
}
@@ -89911,6 +90620,7 @@ func _sqlite3ExprCodeExprList(tls *libc.TLS, pParse uintptr, pList uintptr, targ
}
goto _2
_2:
+ ;
i++
pItem += 32
}
@@ -90059,7 +90769,9 @@ func _sqlite3ExprIfTrue(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32
}
goto _18
_2:
+ ;
_1:
+ ;
pAlt = _sqlite3ExprSimplifiedAndOr(tls, pExpr)
if pAlt != pExpr {
_sqlite3ExprIfTrue(tls, pParse, pAlt, dest, jumpIfNull)
@@ -90076,9 +90788,11 @@ _1:
}
goto _18
_3:
+ ;
_sqlite3ExprIfFalse(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, dest, jumpIfNull)
goto _18
-_4: /* IS TRUE or IS NOT TRUE */
+_4:
+ ; /* IS TRUE or IS NOT TRUE */
isNot = libc.BoolInt32(int32((*TExpr)(unsafe.Pointer(pExpr)).Fop2) == int32(TK_ISNOT))
isTrue = _sqlite3ExprTruthValue(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
if isTrue^isNot != 0 {
@@ -90098,7 +90812,9 @@ _4: /* IS TRUE or IS NOT TRUE */
}
goto _18
_6:
+ ;
_5:
+ ;
if op == int32(TK_IS) {
v21 = int32(TK_EQ)
} else {
@@ -90107,11 +90823,17 @@ _5:
op = v21
jumpIfNull = int32(SQLITE_NULLEQ)
_12:
+ ;
_11:
+ ;
_10:
+ ;
_9:
+ ;
_8:
+ ;
_7:
+ ;
if _sqlite3ExprIsVector(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft) != 0 {
goto default_expr
}
@@ -90126,7 +90848,9 @@ _7:
_ = libc.Int32FromInt32(0)
goto _18
_14:
+ ;
_13:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
r1 = _sqlite3ExprCodeTemp(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, bp)
@@ -90134,9 +90858,11 @@ _13:
_sqlite3VdbeAddOp2(tls, v, op, r1, dest)
goto _18
_15:
+ ;
_exprCodeBetween(tls, pParse, pExpr, dest, __ccgo_fp(_sqlite3ExprIfTrue), jumpIfNull)
goto _18
_16:
+ ;
destIfFalse = _sqlite3VdbeMakeLabel(tls, pParse)
if jumpIfNull != 0 {
v22 = dest
@@ -90149,7 +90875,9 @@ _16:
_sqlite3VdbeResolveLabel(tls, v, destIfFalse)
goto _18
_17:
+ ;
default_expr:
+ ;
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_OuterON)|libc.Int32FromInt32(EP_IsTrue)) == uint32(EP_IsTrue) {
_sqlite3VdbeGoto(tls, v, dest)
} else {
@@ -90162,6 +90890,7 @@ default_expr:
}
goto _18
_18:
+ ;
_sqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp)))
_sqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp + 4)))
}
@@ -90264,7 +90993,9 @@ func _sqlite3ExprIfFalse(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int3
}
goto _18
_2:
+ ;
_1:
+ ;
pAlt = _sqlite3ExprSimplifiedAndOr(tls, pExpr)
if pAlt != pExpr {
_sqlite3ExprIfFalse(tls, pParse, pAlt, dest, jumpIfNull)
@@ -90281,9 +91012,11 @@ _1:
}
goto _18
_3:
+ ;
_sqlite3ExprIfTrue(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, dest, jumpIfNull)
goto _18
-_4: /* IS TRUE or IS NOT TRUE */
+_4:
+ ; /* IS TRUE or IS NOT TRUE */
isNot = libc.BoolInt32(int32((*TExpr)(unsafe.Pointer(pExpr)).Fop2) == int32(TK_ISNOT))
isTrue = _sqlite3ExprTruthValue(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
if isTrue^isNot != 0 {
@@ -90305,7 +91038,9 @@ _4: /* IS TRUE or IS NOT TRUE */
}
goto _18
_6:
+ ;
_5:
+ ;
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_IS) {
v21 = int32(TK_NE)
} else {
@@ -90314,11 +91049,17 @@ _5:
op = v21
jumpIfNull = int32(SQLITE_NULLEQ)
_12:
+ ;
_11:
+ ;
_10:
+ ;
_9:
+ ;
_8:
+ ;
_7:
+ ;
if _sqlite3ExprIsVector(tls, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft) != 0 {
goto default_expr
}
@@ -90333,15 +91074,19 @@ _7:
_ = libc.Int32FromInt32(0)
goto _18
_14:
+ ;
_13:
+ ;
r1 = _sqlite3ExprCodeTemp(tls, pParse, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, bp)
_sqlite3VdbeTypeofColumn(tls, v, r1)
_sqlite3VdbeAddOp2(tls, v, op, r1, dest)
goto _18
_15:
+ ;
_exprCodeBetween(tls, pParse, pExpr, dest, __ccgo_fp(_sqlite3ExprIfFalse), jumpIfNull)
goto _18
_16:
+ ;
if jumpIfNull != 0 {
_sqlite3ExprCodeIN(tls, pParse, pExpr, dest, dest)
} else {
@@ -90351,7 +91096,9 @@ _16:
}
goto _18
_17:
+ ;
default_expr:
+ ;
if (*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_OuterON)|libc.Int32FromInt32(EP_IsFalse)) == uint32(EP_IsFalse) {
_sqlite3VdbeGoto(tls, v, dest)
} else {
@@ -90364,6 +91111,7 @@ default_expr:
}
goto _18
_18:
+ ;
_sqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp)))
_sqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp + 4)))
}
@@ -90604,6 +91352,7 @@ func _sqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32)
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -90825,6 +91574,13 @@ func _impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
case int32(TK_OR):
fallthrough
case int32(TK_AND):
+ /* Both sides of an AND or OR must separately imply non-null-row.
+ ** Consider these cases:
+ ** 1. NOT (x AND y)
+ ** 2. x OR y
+ ** If only one of x or y is non-null-row, then the overall expression
+ ** can be true if the other arm is false (case 1) or true (case 2).
+ */
_bothImplyNotNullRow(tls, pWalker, (*TExpr)(unsafe.Pointer(pExpr)).FpLeft, (*TExpr)(unsafe.Pointer(pExpr)).FpRight)
return int32(WRC_Prune)
case int32(TK_IN):
@@ -91030,6 +91786,7 @@ func _selectRefEnter(tls *libc.TLS, pWalker uintptr, pSelect uintptr) (r int32)
*(*int32)(unsafe.Pointer((*TRefSrcList)(unsafe.Pointer(p)).FaiExclude + uintptr(j)*4)) = (*(*TSrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104))).FiCursor
goto _1
_1:
+ ;
i++
j++
}
@@ -91082,6 +91839,7 @@ func _exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
}
goto _2
_2:
+ ;
i++
}
i = 0
@@ -91091,6 +91849,7 @@ func _exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
}
goto _4
_4:
+ ;
i++
}
if int64(i) >= (*TRefSrcList)(unsafe.Pointer(p)).FnExclude {
@@ -91274,6 +92033,7 @@ func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr,
}
goto _1
_1:
+ ;
k++
pCol += 24
}
@@ -91306,6 +92066,7 @@ func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr,
}
goto _2
_2:
+ ;
j++
pTerm += 32
}
@@ -91317,6 +92078,7 @@ func _findOrCreateAggInfoColumn(tls *libc.TLS, pParse uintptr, pAggInfo uintptr,
(*TAggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn = int16(v3)
}
fix_up_expr:
+ ;
_ = libc.Int32FromInt32(0)
(*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo = pAggInfo
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_COLUMN) {
@@ -91369,6 +92131,7 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
}
goto _1
_1:
+ ;
pIEpr = (*TIndexedExpr)(unsafe.Pointer(pIEpr)).FpIENext
}
if pIEpr == uintptr(0) {
@@ -91387,6 +92150,7 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
}
goto _2
_2:
+ ;
i++
}
if i >= (*TSrcList)(unsafe.Pointer(pSrcList)).FnSrc {
@@ -91437,6 +92201,7 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
} /* endif pExpr->iTable==pItem->iCursor */
goto _3
_3:
+ ;
i++
pItem += 104
} /* end loop over pSrcList */
@@ -91461,6 +92226,7 @@ func _analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int32)
}
goto _4
_4:
+ ;
i++
pItem1 += 32
}
@@ -91573,6 +92339,7 @@ func _sqlite3ExprAnalyzeAggList(tls *libc.TLS, pNC uintptr, pList uintptr) {
_sqlite3ExprAnalyzeAggregates(tls, pNC, (*TExprList_item)(unsafe.Pointer(pItem)).FpExpr)
goto _1
_1:
+ ;
i++
pItem += 32
}
@@ -91706,6 +92473,7 @@ func _sqlite3FirstAvailableRegister(tls *libc.TLS, pParse uintptr, iMin int32) (
}
goto _1
_1:
+ ;
i++
}
}
@@ -91756,8 +92524,8 @@ func _sqlite3FirstAvailableRegister(tls *libc.TLS, pParse uintptr, iMin int32) (
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+6500, 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+8299, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ if 0 == Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+6525, 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+8324, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
return 0
@@ -91776,9 +92544,9 @@ func _renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32,
bp := tls.Alloc(48)
defer tls.Free(48)
(*TParse)(unsafe.Pointer(pParse)).FcolNamesSet = uint8(1)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+8327, libc.VaList(bp+8, zDb, zDb, bTemp, zWhen, bNoDQS))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+8352, libc.VaList(bp+8, zDb, zDb, bTemp, zWhen, bNoDQS))
if bTemp == 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+8502, libc.VaList(bp+8, zDb, zWhen, bNoDQS))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+8527, libc.VaList(bp+8, zDb, zWhen, bNoDQS))
}
}
@@ -91794,9 +92562,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+8676, libc.VaList(bp+8, zDb, zDb))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+8701, libc.VaList(bp+8, zDb, zDb))
if bTemp == 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+8823, 0)
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+8848, 0)
}
}
@@ -91854,7 +92622,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+8974, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8999, libc.VaList(bp+8, zName))
goto exit_rename_table
}
/* Make sure it is not a system table being altered, or a reserved name
@@ -91863,11 +92631,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+9033, zName) {
+ if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+9058, zName) {
goto exit_rename_table
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VIEW) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9039, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9064, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_rename_table
}
/* Invoke the authorization callback. */
@@ -91897,21 +92665,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+9066, libc.VaList(bp+8, zDb, zDb, zTabName, zName, libc.BoolInt32(iDb == int32(1)), zTabName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+9091, 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+9250, libc.VaList(bp+8, zDb, zName, zName, zName, nTabName, zTabName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+9275, 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+9555, zDb) != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+9571, libc.VaList(bp+8, zDb, zName, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ if _sqlite3FindTable(tls, db, __ccgo_ts+9580, zDb) != 0 {
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+9596, 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+9629, libc.VaList(bp+8, zDb, zTabName, zName, zTabName, zDb, zName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+9654, 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
@@ -91927,8 +92695,9 @@ 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+9894, 0)
+ _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+9919, 0)
exit_rename_table:
+ ;
_sqlite3SrcListDelete(tls, db, pSrc)
_sqlite3DbFree(tls, db, zName)
}
@@ -91942,7 +92711,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+9907, libc.VaList(bp+8, zErr, zDb, zTab))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+9932, libc.VaList(bp+8, zErr, zDb, zTab))
}
// C documentation
@@ -91987,11 +92756,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+9945, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9970, 0)
return
}
if (*TTable)(unsafe.Pointer(pNew)).FpIndex != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+9977, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10002, 0)
return
}
if int32((*TColumn)(unsafe.Pointer(pCol)).FcolFlags)&int32(COLFLAG_GENERATED) == 0 {
@@ -92009,10 +92778,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+10004)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+10029)
}
if int32(uint32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 && !(pDflt != 0) {
- _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+10063)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+10088)
}
/* Ensure the default expression is something that sqlite3ValueFromExpr()
** can handle (i.e. not CURRENT_TIME etc.)
@@ -92026,13 +92795,13 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
return
}
if !(*(*uintptr)(unsafe.Pointer(bp)) != 0) {
- _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+10116)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+10141)
}
_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+10162)
+ _sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, __ccgo_ts+10187)
}
}
/* Modify the CREATE TABLE statement. */
@@ -92048,7 +92817,7 @@ func _sqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr
** have to use printf() to translate between these units: */
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10189, libc.VaList(bp+16, zDb, (*(*struct {
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10214, libc.VaList(bp+16, zDb, (*(*struct {
FaddColOffset int32
FpFKey uintptr
FpDfltList uintptr
@@ -92076,7 +92845,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+10335, libc.VaList(bp+16, zTab, zDb))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10360, libc.VaList(bp+16, zTab, zDb))
}
}
}
@@ -92116,12 +92885,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+10688, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10713, 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+10722, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10747, 0)
goto exit_begin_add_column
}
if SQLITE_OK != _isAlterableTable(tls, pParse, pTab) {
@@ -92149,7 +92918,7 @@ func _sqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) {
nAlloc = (int32((*TTable)(unsafe.Pointer(pNew)).FnCol)-int32(1))/int32(8)*int32(8) + int32(8)
_ = libc.Int32FromInt32(0)
(*TTable)(unsafe.Pointer(pNew)).FaCol = _sqlite3DbMallocZero(tls, db, uint64(16)*uint64(nAlloc))
- (*TTable)(unsafe.Pointer(pNew)).FzName = _sqlite3MPrintf(tls, db, __ccgo_ts+10752, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ (*TTable)(unsafe.Pointer(pNew)).FzName = _sqlite3MPrintf(tls, db, __ccgo_ts+10777, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
if !((*TTable)(unsafe.Pointer(pNew)).FaCol != 0) || !((*TTable)(unsafe.Pointer(pNew)).FzName != 0) {
_ = libc.Int32FromInt32(0)
goto exit_begin_add_column
@@ -92165,6 +92934,7 @@ func _sqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) {
(*TColumn)(unsafe.Pointer(pCol)).FhName = _sqlite3StrIHash(tls, (*TColumn)(unsafe.Pointer(pCol)).FzCnName)
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -92189,6 +92959,7 @@ func _sqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) {
})(unsafe.Pointer(pTab + 64))).FaddColOffset
_ = libc.Int32FromInt32(0)
exit_begin_add_column:
+ ;
_sqlite3SrcListDelete(tls, db, pSrc)
return
}
@@ -92210,18 +92981,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 + 10771
+ zType = __ccgo_ts + 10796
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- zType = __ccgo_ts + 10776
+ zType = __ccgo_ts + 10801
}
if zType != 0 {
if bDrop != 0 {
- v1 = __ccgo_ts + 10790
+ v1 = __ccgo_ts + 10815
} else {
- v1 = __ccgo_ts + 10807
+ v1 = __ccgo_ts + 10832
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10825, libc.VaList(bp+8, v1, zType, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10850, libc.VaList(bp+8, v1, zType, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
return 0
@@ -92279,10 +93050,11 @@ func _sqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld
}
goto _1
_1:
+ ;
iCol++
}
if iCol == int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10843, libc.VaList(bp+8, pOld))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10868, libc.VaList(bp+8, pOld))
goto exit_rename_column
}
/* Ensure the schema contains no double-quoted strings */
@@ -92299,12 +93071,13 @@ func _sqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld
}
_ = libc.Int32FromInt32(0)
bQuote = int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer((*TToken)(unsafe.Pointer(pNew)).Fz))]) & int32(0x80)
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+10864, 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+11046, libc.VaList(bp+8, zDb, (*TTable)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+10889, 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+11071, 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+9894, int32(1))
+ _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iSchema == int32(1)), __ccgo_ts+9919, int32(1))
exit_rename_column:
+ ;
_sqlite3SrcListDelete(tls, db, pSrc)
_sqlite3DbFree(tls, db, zOld)
_sqlite3DbFree(tls, db, zNew)
@@ -92413,6 +93186,7 @@ func _sqlite3RenameTokenRemap(tls *libc.TLS, pParse uintptr, pTo uintptr, pFrom
}
goto _1
_1:
+ ;
p = (*TRenameToken)(unsafe.Pointer(p)).FpNext
}
}
@@ -92478,6 +93252,7 @@ func _renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) {
_sqlite3RenameExprlistUnmap(tls, pParse, (*(*TCte)(unsafe.Pointer(pWith + 16 + uintptr(i)*48))).FpCols)
goto _1
_1:
+ ;
i++
}
if pCopy != 0 && (*TParse)(unsafe.Pointer(pParse)).FpWith == pCopy {
@@ -92503,6 +93278,7 @@ func _unmapColumnIdlistNames(tls *libc.TLS, pParse uintptr, pIdList uintptr) {
_sqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*(*TIdList_item)(unsafe.Pointer(pIdList + 8 + uintptr(ii)*16))).FzName)
goto _1
_1:
+ ;
ii++
}
}
@@ -92535,6 +93311,7 @@ func _renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -92553,6 +93330,7 @@ func _renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
}
@@ -92608,6 +93386,7 @@ func _sqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr)
}
goto _1
_1:
+ ;
i++
}
}
@@ -92630,6 +93409,7 @@ func _renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) {
_sqlite3DbFree(tls, db, p)
goto _1
_1:
+ ;
p = pNext
}
}
@@ -92668,6 +93448,7 @@ func _renameTokenFind(tls *libc.TLS, pParse uintptr, pCtx uintptr, pPtr uintptr)
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 24
}
return uintptr(0)
@@ -92738,6 +93519,7 @@ func _renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
pToken = (*TRenameToken)(unsafe.Pointer(pToken)).FpNext
}
pp = pCtx
@@ -92747,6 +93529,7 @@ func _renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) (r uintptr) {
}
goto _2
_2:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 24
}
*(*uintptr)(unsafe.Pointer(pp)) = (*TRenameToken)(unsafe.Pointer(pBest)).FpNext
@@ -92770,11 +93553,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 *(*uint8)(unsafe.Pointer(zWhen)) != 0 {
- v1 = __ccgo_ts + 11177
+ v1 = __ccgo_ts + 11202
} else {
v1 = __ccgo_ts + 1648
}
- zErr = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+11179, libc.VaList(bp+8, zT, zN, v1, zWhen, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg))
+ zErr = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+11204, 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)
}
@@ -92803,6 +93586,7 @@ func _renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList
}
goto _1
_1:
+ ;
i++
}
}
@@ -92831,6 +93615,7 @@ func _renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdLi
}
goto _1
_1:
+ ;
i++
}
}
@@ -92849,8 +93634,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+11202, int32(7)) != 0 {
- return _sqlite3CorruptError(tls, int32(116507))
+ if Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+11227, int32(7)) != 0 {
+ return _sqlite3CorruptError(tls, int32(116596))
}
if bTemp != 0 {
v1 = int32(1)
@@ -92866,7 +93651,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(116518))
+ rc = _sqlite3CorruptError(tls, int32(116607))
}
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb = uint8(0)
return rc
@@ -92905,7 +93690,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+11210, libc.VaList(bp+8, zNew))
+ zQuot = _sqlite3MPrintf(tls, db, __ccgo_ts+11235, libc.VaList(bp+8, zNew))
if zQuot == uintptr(0) {
return int32(SQLITE_NOMEM)
} else {
@@ -92951,11 +93736,11 @@ func _renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr,
*(*uint8)(unsafe.Pointer(zBuf1 + uintptr((*TRenameToken)(unsafe.Pointer(pBest)).Ft.Fn))) = uint8(0)
_sqlite3Dequote(tls, zBuf1)
if int32(*(*uint8)(unsafe.Pointer((*TRenameToken)(unsafe.Pointer(pBest)).Ft.Fz + uintptr((*TRenameToken)(unsafe.Pointer(pBest)).Ft.Fn)))) == int32('\'') {
- v1 = __ccgo_ts + 11177
+ v1 = __ccgo_ts + 11202
} else {
v1 = __ccgo_ts + 1648
}
- Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, __ccgo_ts+11216, libc.VaList(bp+8, zBuf1, v1))
+ Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, __ccgo_ts+11241, libc.VaList(bp+8, zBuf1, v1))
zReplace = zBuf2
nReplace = uint32(_sqlite3Strlen30(tls, zReplace))
}
@@ -92995,6 +93780,7 @@ func _renameSetENames(tls *libc.TLS, pEList uintptr, val int32) {
libc.SetBitFieldPtr16Uint32(pEList+8+uintptr(i)*32+16+4, uint32(val), 0, 0x3)
goto _1
_1:
+ ;
i++
}
}
@@ -93089,6 +93875,7 @@ func _renameResolveTrigger(tls *libc.TLS, pParse uintptr) (r int32) {
}
goto _3
_3:
+ ;
i++
}
}
@@ -93129,6 +93916,7 @@ func _renameResolveTrigger(tls *libc.TLS, pParse uintptr) (r int32) {
}
goto _1
_1:
+ ;
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
}
return rc
@@ -93171,11 +93959,13 @@ func _renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) {
_sqlite3WalkSelect(tls, pWalker, (*(*TSrcItem)(unsafe.Pointer((*TTriggerStep)(unsafe.Pointer(pStep)).FpFrom + 8 + uintptr(i)*104))).FpSelect)
goto _2
_2:
+ ;
i++
}
}
goto _1
_1:
+ ;
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
}
}
@@ -93334,6 +94124,7 @@ func _renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintp
_sqlite3WalkExprList(tls, bp+456, (*TIndex)(unsafe.Pointer(pIdx)).FaColExpr)
goto _3
_3:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
pIdx = (*(*TParse)(unsafe.Pointer(bp + 32))).FpNewIndex
@@ -93344,6 +94135,7 @@ func _renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintp
_sqlite3WalkExprList(tls, bp+456, (*TIndex)(unsafe.Pointer(pIdx)).FaColExpr)
goto _4
_4:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
i = 0
@@ -93355,6 +94147,7 @@ func _renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintp
_sqlite3WalkExpr(tls, bp+456, pExpr)
goto _5
_5:
+ ;
i++
}
}
@@ -93381,10 +94174,12 @@ func _renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintp
}
goto _7
_7:
+ ;
i++
}
goto _6
_6:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextFrom
}
}
@@ -93416,6 +94211,7 @@ func _renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintp
}
goto _8
_8:
+ ;
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
}
/* Find tokens to edit in UPDATE OF clause */
@@ -93429,6 +94225,7 @@ func _renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintp
_ = libc.Int32FromInt32(0)
rc = _renameEditSql(tls, context, bp, zSql, zNew, bQuote)
renameColumnFunc_done:
+ ;
if rc != SQLITE_OK {
if rc == int32(SQLITE_ERROR) && _sqlite3WritableSchema(tls, db) != 0 {
Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv)))
@@ -93490,6 +94287,7 @@ func _renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) (r in
}
goto _1
_1:
+ ;
i++
}
_renameWalkWith(tls, pWalker, pSelect)
@@ -93590,6 +94388,7 @@ func _renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintpt
}
goto _1
_1:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextFrom
}
}
@@ -93639,11 +94438,13 @@ func _renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintpt
}
goto _3
_3:
+ ;
i++
}
}
goto _2
_2:
+ ;
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
}
}
@@ -93763,6 +94564,7 @@ func _renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uin
_sqlite3WalkExpr(tls, bp+456, _sqlite3ColumnExpr(tls, (*(*TParse)(unsafe.Pointer(bp))).FpNewTable, (*TTable)(unsafe.Pointer((*(*TParse)(unsafe.Pointer(bp))).FpNewTable)).FaCol+uintptr(i)*16))
goto _2
_2:
+ ;
i++
}
}
@@ -93920,7 +94722,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(117477))
+ rc = _sqlite3CorruptError(tls, int32(117566))
goto drop_column_done
}
pCol = _renameTokenFind(tls, bp, uintptr(0), (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*16))).FzCnName)
@@ -93938,10 +94740,11 @@ func _dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr
(*TRenameToken)(unsafe.Pointer(pCol)).Ft.Fz--
}
}
- zNew = _sqlite3MPrintf(tls, db, __ccgo_ts+11221, libc.VaList(bp+432, int64((*TRenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql), zSql, zEnd))
+ zNew = _sqlite3MPrintf(tls, db, __ccgo_ts+11246, 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)
drop_column_done:
+ ;
_renameParseCleanup(tls, bp)
(*Tsqlite3)(unsafe.Pointer(db)).FxAuth = xAuth
if rc != SQLITE_OK {
@@ -93993,23 +94796,23 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
}
iCol = _sqlite3ColumnIndex(tls, pTab, zCol)
if iCol < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10843, libc.VaList(bp+8, pName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+10868, 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 + 11228
+ v1 = __ccgo_ts + 11253
} else {
- v1 = __ccgo_ts + 5564
+ v1 = __ccgo_ts + 5589
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11240, libc.VaList(bp+8, v1, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11265, 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+11268, libc.VaList(bp+8, zCol))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+11293, libc.VaList(bp+8, zCol))
goto exit_drop_column
}
/* Edit the sqlite_schema table */
@@ -94022,10 +94825,10 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
}
_renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+1648, 0)
_renameFixQuotes(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)))
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11316, libc.VaList(bp+8, zDb, iDb, iCol, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11341, 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+11437, int32(1))
+ _renameTestSchema(tls, pParse, zDb, libc.BoolInt32(iDb == int32(1)), __ccgo_ts+11462, 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)
@@ -94055,6 +94858,7 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iCur, i, reg+i+int32(1))
goto _6
_6:
+ ;
i++
}
nField = int32((*TIndex)(unsafe.Pointer(pPk)).FnKeyCol)
@@ -94088,6 +94892,7 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
}
goto _9
_9:
+ ;
i++
}
if nField == 0 {
@@ -94107,6 +94912,7 @@ func _sqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName
_sqlite3VdbeJumpHere(tls, v, addr)
}
exit_drop_column:
+ ;
_sqlite3DbFree(tls, db, zCol)
_sqlite3SrcListDelete(tls, db, pSrc)
}
@@ -94124,27 +94930,27 @@ var _aAlterTableFuncs = [5]TFuncDef{
0: {
FnArg: int8(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 + 11455,
+ FzName: __ccgo_ts + 11480,
},
1: {
FnArg: int8(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 + 11476,
+ FzName: __ccgo_ts + 11501,
},
2: {
FnArg: int8(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 + 11496,
+ FzName: __ccgo_ts + 11521,
},
3: {
FnArg: int8(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 + 11515,
+ FzName: __ccgo_ts + 11540,
},
4: {
FnArg: int8(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 + 11534,
+ FzName: __ccgo_ts + 11559,
},
}
@@ -94357,7 +95163,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+11637, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, _aTable[i].FzCols))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11662, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, _aTable[i].FzCols))
aRoot[i] = uint32((*TParse)(unsafe.Pointer(pParse)).FregRoot)
aCreateTbl[i] = uint8(OPFLAG_P2ISREG)
}
@@ -94368,10 +95174,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+11660, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11685, 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+11690, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, zTab))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11715, 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)
@@ -94380,6 +95186,7 @@ func _openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zW
}
goto _2
_2:
+ ;
i++
}
/* Open the sqlite_stat[134] tables for writing. */
@@ -94393,6 +95200,7 @@ func _openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zW
_sqlite3VdbeChangeP5(tls, v, uint16(aCreateTbl[i]))
goto _4
_4:
+ ;
i++
}
}
@@ -94402,15 +95210,15 @@ var _aTable = [3]struct {
FzCols uintptr
}{
0: {
- FzName: __ccgo_ts + 11557,
- FzCols: __ccgo_ts + 11570,
+ FzName: __ccgo_ts + 11582,
+ FzCols: __ccgo_ts + 11595,
},
1: {
- FzName: __ccgo_ts + 11583,
- FzCols: __ccgo_ts + 11596,
+ FzName: __ccgo_ts + 11608,
+ FzCols: __ccgo_ts + 11621,
},
2: {
- FzName: __ccgo_ts + 11624,
+ FzName: __ccgo_ts + 11649,
},
}
@@ -94582,6 +95390,7 @@ func _statAccumDestructor(tls *libc.TLS, pOld uintptr) {
_sampleClear(tls, (*TStatAccum)(unsafe.Pointer(p)).Fdb, (*TStatAccum)(unsafe.Pointer(p)).FaBest+uintptr(i)*48)
goto _1
_1:
+ ;
i++
}
i = 0
@@ -94592,6 +95401,7 @@ func _statAccumDestructor(tls *libc.TLS, pOld uintptr) {
_sampleClear(tls, (*TStatAccum)(unsafe.Pointer(p)).Fdb, (*TStatAccum)(unsafe.Pointer(p)).Fa+uintptr(i)*48)
goto _2
_2:
+ ;
i++
}
_sampleClear(tls, (*TStatAccum)(unsafe.Pointer(p)).Fdb, p+40)
@@ -94691,6 +95501,7 @@ func _statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
pSpace += uintptr(libc.Uint64FromInt64(8) * uint64(nColUp))
goto _3
_3:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -94702,6 +95513,7 @@ func _statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
(*(*TStatSample)(unsafe.Pointer((*TStatAccum)(unsafe.Pointer(p)).FaBest + uintptr(i)*48))).FiCol = i
goto _4
_4:
+ ;
i++
}
}
@@ -94715,7 +95527,7 @@ func _statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
var _statInitFuncdef = TFuncDef{
FnArg: int8(4),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 11708,
+ FzName: __ccgo_ts + 11733,
}
func init() {
@@ -94754,6 +95566,7 @@ func _sampleIsBetterPost(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintp
}
goto _1
_1:
+ ;
i++
}
if (*TStatSample)(unsafe.Pointer(pNew)).FiHash > (*TStatSample)(unsafe.Pointer(pOld)).FiHash {
@@ -94834,6 +95647,7 @@ func _sampleInsert(tls *libc.TLS, p uintptr, pNew uintptr, nEqZero int32) {
}
goto _1
_1:
+ ;
i--
}
if pUpgrade != 0 {
@@ -94868,6 +95682,7 @@ func _sampleInsert(tls *libc.TLS, p uintptr, pNew uintptr, nEqZero int32) {
/* Zero the first nEqZero entries in the anEq[] array. */
libc.Xmemset(tls, (*TStatSample)(unsafe.Pointer(pSample)).FanEq, 0, uint64(8)*uint64(nEqZero))
find_new_min:
+ ;
if (*TStatAccum)(unsafe.Pointer(p)).FnSample >= (*TStatAccum)(unsafe.Pointer(p)).FmxSample {
iMin = -int32(1)
i = 0
@@ -94883,6 +95698,7 @@ find_new_min:
}
goto _2
_2:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -94916,6 +95732,7 @@ func _samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) {
}
goto _1
_1:
+ ;
i--
}
/* Check that no sample contains an anEq[] entry with an index of
@@ -94933,10 +95750,12 @@ func _samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) {
_ = libc.Int32FromInt32(0)
goto _3
_3:
+ ;
j++
}
goto _2
_2:
+ ;
i--
}
/* Update the anEq[] fields of any samples already collected. */
@@ -94956,10 +95775,12 @@ func _samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) {
}
goto _5
_5:
+ ;
j1++
}
goto _4
_4:
+ ;
i--
}
(*TStatAccum)(unsafe.Pointer(p)).FnMaxEqZero = iChng
@@ -95010,6 +95831,7 @@ func _statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*TtRowcnt)(unsafe.Pointer((*TStatAccum)(unsafe.Pointer(p)).Fcurrent.FanEq + uintptr(i)*8)) = uint64(1)
goto _1
_1:
+ ;
i++
}
} else {
@@ -95027,6 +95849,7 @@ func _statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*TtRowcnt)(unsafe.Pointer((*TStatAccum)(unsafe.Pointer(p)).Fcurrent.FanEq + uintptr(i)*8))++
goto _2
_2:
+ ;
i++
}
i = iChng
@@ -95041,6 +95864,7 @@ func _statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*TtRowcnt)(unsafe.Pointer((*TStatAccum)(unsafe.Pointer(p)).Fcurrent.FanEq + uintptr(i)*8)) = uint64(1)
goto _3
_3:
+ ;
i++
}
}
@@ -95074,6 +95898,7 @@ func _statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _5
_5:
+ ;
i++
}
} else {
@@ -95087,7 +95912,7 @@ func _statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
var _statPushFuncdef = TFuncDef{
FnArg: int8(libc.Int32FromInt32(2) + libc.Int32FromInt32(IsStat4)),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 11718,
+ FzName: __ccgo_ts + 11743,
}
func init() {
@@ -95140,7 +95965,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+11728, libc.VaList(bp+72, v1))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+11753, libc.VaList(bp+72, v1))
i = 0
for {
if !(i < (*TStatAccum)(unsafe.Pointer(p)).FnKeyCol) {
@@ -95151,10 +95976,11 @@ 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+11733, libc.VaList(bp+72, iVal))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+11758, libc.VaList(bp+72, iVal))
_ = libc.Int32FromInt32(0)
goto _2
_2:
+ ;
i++
}
_sqlite3ResultStrAccum(tls, context, bp)
@@ -95191,9 +96017,10 @@ 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+11739, libc.VaList(bp+72, *(*TtRowcnt)(unsafe.Pointer(aCnt + uintptr(i1)*8))))
+ Xsqlite3_str_appendf(tls, bp+32, __ccgo_ts+11764, libc.VaList(bp+72, *(*TtRowcnt)(unsafe.Pointer(aCnt + uintptr(i1)*8))))
goto _3
_3:
+ ;
i1++
}
if (*(*Tsqlite3_str)(unsafe.Pointer(bp + 32))).FnChar != 0 {
@@ -95208,7 +96035,7 @@ func _statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
var _statGetFuncdef = TFuncDef{
FnArg: int8(libc.Int32FromInt32(1) + libc.Int32FromInt32(IsStat4)),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 11745,
+ FzName: __ccgo_ts + 11770,
}
func init() {
@@ -95276,7 +96103,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+11754, (*TTable)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
+ if Xsqlite3_strlike(tls, __ccgo_ts+11779, (*TTable)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 {
/* Do not gather statistics on system tables */
return
}
@@ -95293,7 +96120,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
return
}
(*TTable)(unsafe.Pointer(pStat1)).FzName = pStat1 + 1*104
- libc.Xmemcpy(tls, (*TTable)(unsafe.Pointer(pStat1)).FzName, __ccgo_ts+11557, uint64(13))
+ libc.Xmemcpy(tls, (*TTable)(unsafe.Pointer(pStat1)).FzName, __ccgo_ts+11582, 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))
@@ -95450,6 +96277,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
_sqlite3VdbeChangeP5(tls, v, uint16(SQLITE_NULLEQ))
goto _15
_15:
+ ;
i++
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_Integer), nColTest, regChng)
@@ -95471,6 +96299,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iIdxCur, i, regPrev+i)
goto _16
_16:
+ ;
i++
}
_sqlite3VdbeResolveLabel(tls, v, endDistinctTest)
@@ -95500,6 +96329,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iIdxCur, k, regKey+j)
goto _17
_17:
+ ;
j++
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_MakeRecord), regKey, int32((*TIndex)(unsafe.Pointer(pPk)).FnKeyCol), regRowid)
@@ -95522,7 +96352,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
/* Add the entry to the stat1 table. */
_callStatGet(tls, pParse, regStat, STAT_GET_STAT1, regStat1)
_ = libc.Int32FromInt32(0)
- _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+11764, 0)
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+11789, 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))
@@ -95559,6 +96389,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
}
goto _19
_19:
+ ;
pX = (*TIndex)(unsafe.Pointer(pX)).FpNext
}
/* Allocate space to compute results for the largest index */
@@ -95583,6 +96414,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
_sqlite3ExprCodeLoadIndexColumn(tls, pParse, pIdx, iTabCur, i, regCol+i)
goto _20
_20:
+ ;
i++
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_MakeRecord), regCol, nCol, regSample)
@@ -95596,6 +96428,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
_sqlite3VdbeJumpHere(tls, v, addrRewind)
goto _13
_13:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
/* Create a single sqlite_stat1 entry containing NULL as the index
@@ -95606,7 +96439,7 @@ func _analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uint
jZeroRows = _sqlite3VdbeAddOp1(tls, v, int32(OP_IfNot), regStat1)
_sqlite3VdbeAddOp2(tls, v, int32(OP_Null), 0, regIdxname)
_ = libc.Int32FromInt32(0)
- _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+11764, 0)
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_MakeRecord), regTabname, int32(3), regTemp, __ccgo_ts+11789, 0)
_sqlite3VdbeAddOp2(tls, v, int32(OP_NewRowid), iStatCur, regNewRowid)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Insert), iStatCur, regTemp, regNewRowid)
_sqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND))
@@ -95658,6 +96491,7 @@ func _analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) {
iMem = _sqlite3FirstAvailableRegister(tls, pParse, iMem)
goto _1
_1:
+ ;
k = (*THashElem)(unsafe.Pointer(k)).Fnext
}
_loadAnalysis(tls, pParse, iDb)
@@ -95680,9 +96514,9 @@ func _analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr
iStatCur = (*TParse)(unsafe.Pointer(pParse)).FnTab
*(*int32)(unsafe.Pointer(pParse + 52)) += int32(3)
if pOnlyIdx != 0 {
- _openStatTable(tls, pParse, iDb, iStatCur, (*TIndex)(unsafe.Pointer(pOnlyIdx)).FzName, __ccgo_ts+11768)
+ _openStatTable(tls, pParse, iDb, iStatCur, (*TIndex)(unsafe.Pointer(pOnlyIdx)).FzName, __ccgo_ts+11793)
} else {
- _openStatTable(tls, pParse, iDb, iStatCur, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+11772)
+ _openStatTable(tls, pParse, iDb, iStatCur, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+11797)
}
_analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*TParse)(unsafe.Pointer(pParse)).FnMem+int32(1), (*TParse)(unsafe.Pointer(pParse)).FnTab)
_loadAnalysis(tls, pParse, iDb)
@@ -95731,6 +96565,7 @@ func _sqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
_analyzeDatabase(tls, pParse, i)
goto _1
_1:
+ ;
i++
}
} else {
@@ -95840,23 +96675,24 @@ func _decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr,
}
goto _1
_1:
+ ;
i++
}
if pIndex != 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(0), 2, 0x4)
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(0), 6, 0x40)
for *(*uint8)(unsafe.Pointer(z)) != 0 {
- if Xsqlite3_strglob(tls, __ccgo_ts+11776, z) == 0 {
+ if Xsqlite3_strglob(tls, __ccgo_ts+11801, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 2, 0x4)
} else {
- if Xsqlite3_strglob(tls, __ccgo_ts+11787, z) == 0 {
+ if Xsqlite3_strglob(tls, __ccgo_ts+11812, 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+11797, z) == 0 {
+ if Xsqlite3_strglob(tls, __ccgo_ts+11822, z) == 0 {
libc.SetBitFieldPtr16Uint32(pIndex+100, libc.Uint32FromInt32(1), 6, 0x40)
}
}
@@ -95970,6 +96806,7 @@ func _sqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) {
_sqlite3DbFree(tls, db, (*TIndexSample)(unsafe.Pointer(p)).Fp)
goto _1
_1:
+ ;
j++
}
_sqlite3DbFree(tls, db, (*TIndex)(unsafe.Pointer(pIdx)).FaSample)
@@ -96037,6 +96874,7 @@ func _initAvgEq(tls *libc.TLS, pIdx uintptr) {
}
goto _2
_2:
+ ;
i++
}
if nDist100 > nSum100 && sumEq < nRow {
@@ -96048,6 +96886,7 @@ func _initAvgEq(tls *libc.TLS, pIdx uintptr) {
*(*TtRowcnt)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FaAvgEq + uintptr(iCol)*8)) = avgEq
goto _1
_1:
+ ;
iCol++
}
}
@@ -96154,6 +96993,7 @@ func _loadStatTbl(tls *libc.TLS, db uintptr, zSql1 uintptr, zSql2 uintptr, zDb u
pSpace += uintptr(nIdxCol) * 8
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -96236,11 +97076,11 @@ func _loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) (r int32) {
rc = SQLITE_OK
_ = libc.Int32FromInt32(0)
if v2 = (*Tsqlite3)(unsafe.Pointer(db)).FdbOptFlags&uint32(libc.Int32FromInt32(SQLITE_Stat4)) == uint32(0); v2 {
- v1 = _sqlite3FindTable(tls, db, __ccgo_ts+11583, zDb)
+ v1 = _sqlite3FindTable(tls, db, __ccgo_ts+11608, zDb)
pStat4 = v1
}
if v2 && v1 != uintptr(0) && int32((*TTable)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM {
- rc = _loadStatTbl(tls, db, __ccgo_ts+11809, __ccgo_ts+11878, zDb)
+ rc = _loadStatTbl(tls, db, __ccgo_ts+11834, __ccgo_ts+11903, zDb)
}
return rc
}
@@ -96289,6 +97129,7 @@ func _sqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) (r int32) {
*(*Tu32)(unsafe.Pointer(pTab + 48)) &= uint32(^libc.Int32FromInt32(TF_HasStat1))
goto _1
_1:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
i = (*THash)(unsafe.Pointer(pSchema + 32)).Ffirst
@@ -96302,15 +97143,16 @@ func _sqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) (r int32) {
(*TIndex)(unsafe.Pointer(pIdx)).FaSample = uintptr(0)
goto _2
_2:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
/* 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+11557, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase)
+ v3 = _sqlite3FindTable(tls, db, __ccgo_ts+11582, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase)
pStat1 = v3
if v3 != 0 && int32((*TTable)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM {
- zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+11930, libc.VaList(bp+24, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+11955, libc.VaList(bp+24, (*(*TanalysisInfo)(unsafe.Pointer(bp))).FzDatabase))
if zSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -96331,6 +97173,7 @@ func _sqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) (r int32) {
}
goto _4
_4:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
/* Load the statistics from the sqlite_stat4 table. */
@@ -96356,6 +97199,7 @@ func _sqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) (r int32) {
(*TIndex)(unsafe.Pointer(pIdx2)).FaiRowEst = uintptr(0)
goto _6
_6:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
if rc == int32(SQLITE_NOMEM) {
@@ -96422,7 +97266,7 @@ func _resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) (r int32) {
// ** database iDb attached to handle db.
// */
func _sqlite3DbIsNamed(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) (r int32) {
- return libc.BoolInt32(_sqlite3StrICmp(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zName) == 0 || iDb == 0 && _sqlite3StrICmp(tls, __ccgo_ts+6560, zName) == 0)
+ return libc.BoolInt32(_sqlite3StrICmp(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zName) == 0 || iDb == 0 && _sqlite3StrICmp(tls, __ccgo_ts+6585, zName) == 0)
}
// C documentation
@@ -96478,7 +97322,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+11971, db, bp+40, 0, int32(SQLITE_OPEN_MAIN_DB))
+ rc = _sqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32)), __ccgo_ts+11996, 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 {
@@ -96509,7 +97353,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+11974, libc.VaList(bp+56, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+11999, libc.VaList(bp+56, *(*int32)(unsafe.Pointer(db + 136 + 7*4))))
goto attach_error
}
i = 0
@@ -96519,11 +97363,12 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
}
_ = libc.Int32FromInt32(0)
if _sqlite3DbIsNamed(tls, db, i, zName) != 0 {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+12011, libc.VaList(bp+56, zName))
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+12036, libc.VaList(bp+56, zName))
goto attach_error
}
goto _1
_1:
+ ;
i++
}
/* Allocate the new entry in the db->aDb[] array and initialize the schema
@@ -96567,7 +97412,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+12041, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+12066, 0)
} else {
if rc == SQLITE_OK {
(*TDb)(unsafe.Pointer(pNew)).FpSchema = _sqlite3SchemaGet(tls, db, (*TDb)(unsafe.Pointer(pNew)).FpBt)
@@ -96575,7 +97420,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+12070, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+12095, 0)
rc = int32(SQLITE_ERROR)
}
}
@@ -96624,7 +97469,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
*(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+1618, 0)
} else {
if *(*uintptr)(unsafe.Pointer(bp + 24)) == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+12138, libc.VaList(bp+56, zFile))
+ *(*uintptr)(unsafe.Pointer(bp + 24)) = _sqlite3MPrintf(tls, db, __ccgo_ts+12163, libc.VaList(bp+56, zFile))
}
}
}
@@ -96632,6 +97477,7 @@ func _attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
}
return
attach_error:
+ ;
/* Return an error if we get here */
if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 {
Xsqlite3_result_error(tls, context, *(*uintptr)(unsafe.Pointer(bp + 24)), -int32(1))
@@ -96680,18 +97526,19 @@ func _detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
if i >= (*Tsqlite3)(unsafe.Pointer(db)).FnDb {
- Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+12166, libc.VaList(bp+136, zName))
+ Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+12191, libc.VaList(bp+136, zName))
goto detach_error
}
if i < int32(2) {
- Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+12187, libc.VaList(bp+136, zName))
+ Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+12212, 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+12213, libc.VaList(bp+136, zName))
+ Xsqlite3_snprintf(tls, int32(128), bp, __ccgo_ts+12238, libc.VaList(bp+136, zName))
goto detach_error
}
/* If any TEMP triggers reference the schema being detached, move those
@@ -96711,6 +97558,7 @@ func _detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
_sqlite3CollapseDatabaseArray(tls, db)
return
detach_error:
+ ;
Xsqlite3_result_error(tls, context, bp, -int32(1))
}
@@ -96766,6 +97614,7 @@ func _codeAttach(tls *libc.TLS, pParse uintptr, type1 int32, pFunc uintptr, pAut
_sqlite3VdbeAddOp1(tls, v, int32(OP_Expire), libc.BoolInt32(type1 == int32(SQLITE_ATTACH)))
}
attach_end:
+ ;
_sqlite3ExprDelete(tls, db, pFilename)
_sqlite3ExprDelete(tls, db, pDbname)
_sqlite3ExprDelete(tls, db, pKey)
@@ -96785,7 +97634,7 @@ func _sqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) {
var _detach_func = TFuncDef{
FnArg: int8(1),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 12235,
+ FzName: __ccgo_ts + 12260,
}
func init() {
@@ -96807,7 +97656,7 @@ func _sqlite3Attach(tls *libc.TLS, pParse uintptr, p uintptr, pDbname uintptr, p
var _attach_func = TFuncDef{
FnArg: int8(3),
FfuncFlags: uint32(SQLITE_UTF8),
- FzName: __ccgo_ts + 12249,
+ FzName: __ccgo_ts + 12274,
}
func init() {
@@ -96833,7 +97682,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+12263, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType))
+ _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+12288, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType))
return int32(WRC_Abort)
}
}
@@ -96867,7 +97716,7 @@ func _fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) (r int32) {
if int32((*TDbFixer)(unsafe.Pointer(pFix)).FbTemp) == 0 {
if (*TSrcItem)(unsafe.Pointer(pItem)).FzDatabase != 0 {
if iDb != _sqlite3FindDbName(tls, db, (*TSrcItem)(unsafe.Pointer(pItem)).FzDatabase) {
- _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+12287, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType, (*TDbFixer)(unsafe.Pointer(pFix)).FpName, (*TSrcItem)(unsafe.Pointer(pItem)).FzDatabase))
+ _sqlite3ErrorMsg(tls, (*TDbFixer)(unsafe.Pointer(pFix)).FpParse, __ccgo_ts+12312, libc.VaList(bp+8, (*TDbFixer)(unsafe.Pointer(pFix)).FzType, (*TDbFixer)(unsafe.Pointer(pFix)).FpName, (*TSrcItem)(unsafe.Pointer(pItem)).FzDatabase))
return int32(WRC_Abort)
}
_sqlite3DbFree(tls, db, (*TSrcItem)(unsafe.Pointer(pItem)).FzDatabase)
@@ -96882,6 +97731,7 @@ func _fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
pItem += 104
}
@@ -96896,6 +97746,7 @@ func _fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
}
@@ -96984,6 +97835,7 @@ func _sqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) (r int32
}
goto _1
_1:
+ ;
pUp = (*TUpsert)(unsafe.Pointer(pUp)).FpNextUpsert
}
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
@@ -97081,7 +97933,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+12333, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12358, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_ERROR)
}
@@ -97109,11 +97961,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+12356, libc.VaList(bp+8, zTab, zCol))
+ z = Xsqlite3_mprintf(tls, __ccgo_ts+12381, libc.VaList(bp+8, zTab, zCol))
if (*Tsqlite3)(unsafe.Pointer(db)).FnDb > int32(2) || iDb != 0 {
- z = Xsqlite3_mprintf(tls, __ccgo_ts+12362, libc.VaList(bp+8, zDb, z))
+ z = Xsqlite3_mprintf(tls, __ccgo_ts+12387, libc.VaList(bp+8, zDb, z))
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12368, libc.VaList(bp+8, z))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12393, libc.VaList(bp+8, z))
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_AUTH)
} else {
if rc != int32(SQLITE_IGNORE) && rc != SQLITE_OK {
@@ -97163,6 +98015,7 @@ func _sqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uint
}
goto _1
_1:
+ ;
iSrc++
}
}
@@ -97178,7 +98031,7 @@ func _sqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uint
_ = libc.Int32FromInt32(0)
zCol = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr((*TTable)(unsafe.Pointer(pTab)).FiPKey)*16))).FzCnName
} else {
- zCol = __ccgo_ts + 7880
+ zCol = __ccgo_ts + 7905
}
}
_ = libc.Int32FromInt32(0)
@@ -97215,7 +98068,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+12395, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12420, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = int32(SQLITE_AUTH)
} else {
if rc != SQLITE_OK && rc != int32(SQLITE_IGNORE) {
@@ -97329,6 +98182,7 @@ func _lockTable(tls *libc.TLS, pParse uintptr, iDb int32, iTab TPgno, isWriteLoc
}
goto _2
_2:
+ ;
i++
}
nBytes = int32(uint64(24) * uint64((*TParse)(unsafe.Pointer(pToplevel)).FnTableLock+libc.Int32FromInt32(1)))
@@ -97380,6 +98234,7 @@ func _codeTableLocks(tls *libc.TLS, pParse uintptr) {
_sqlite3VdbeAddOp4(tls, pVdbe, int32(OP_TableLock), p1, int32((*TTableLock)(unsafe.Pointer(p)).FiTab), int32((*TTableLock)(unsafe.Pointer(p)).FisWriteLock), (*TTableLock)(unsafe.Pointer(p)).FzLockName, -int32(1))
goto _1
_1:
+ ;
i++
}
}
@@ -97449,6 +98304,7 @@ func _sqlite3FinishCoding(tls *libc.TLS, pParse uintptr) {
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TReturning)(unsafe.Pointer(pReturning)).FiRetCur, i, reg+i)
goto _1
_1:
+ ;
i++
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_ResultRow), reg, i)
@@ -97479,6 +98335,7 @@ func _sqlite3FinishCoding(tls *libc.TLS, pParse uintptr) {
}
goto _3
_3:
+ ;
iDb++
v2 = iDb
if !(v2 < (*Tsqlite3)(unsafe.Pointer(db)).FnDb) {
@@ -97494,6 +98351,7 @@ func _sqlite3FinishCoding(tls *libc.TLS, pParse uintptr) {
_sqlite3VdbeAddOp4(tls, v, int32(OP_VBegin), 0, 0, 0, vtab, -int32(11))
goto _4
_4:
+ ;
i++
}
(*TParse)(unsafe.Pointer(pParse)).FnVtabLock = 0
@@ -97523,6 +98381,7 @@ func _sqlite3FinishCoding(tls *libc.TLS, pParse uintptr) {
_sqlite3ExprCode(tls, pParse, (*(*TExprList_item)(unsafe.Pointer(pEL + 8 + uintptr(i)*32))).FpExpr, *(*int32)(unsafe.Pointer(pEL + 8 + uintptr(i)*32 + 24)))
goto _5
_5:
+ ;
i++
}
}
@@ -97638,26 +98497,27 @@ func _sqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
}
goto _1
_1:
+ ;
i++
}
if i >= (*Tsqlite3)(unsafe.Pointer(db)).FnDb {
/* No match against the official names. But always match "main"
** to schema 0 as a legacy fallback. */
- if _sqlite3StrICmp(tls, zDatabase, __ccgo_ts+6560) == 0 {
+ if _sqlite3StrICmp(tls, zDatabase, __ccgo_ts+6585) == 0 {
i = 0
} else {
return uintptr(0)
}
}
p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32))).FpSchema+8, zName)
- if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6500, int32(7)) == 0 {
+ if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6525, int32(7)) == 0 {
if i == int32(1) {
- if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6527+7) == 0 || _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6546+7) == 0 || _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6041+7) == 0 {
- p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpSchema+8, __ccgo_ts+6508)
+ if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6552+7) == 0 || _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6571+7) == 0 || _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6066+7) == 0 {
+ p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpSchema+8, __ccgo_ts+6533)
}
} else {
- if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6546+7) == 0 {
- p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32))).FpSchema+8, __ccgo_ts+6041)
+ if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6571+7) == 0 {
+ p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32))).FpSchema+8, __ccgo_ts+6066)
}
}
}
@@ -97685,14 +98545,15 @@ func _sqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp
}
goto _2
_2:
+ ;
i++
}
- if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6500, int32(7)) == 0 {
- if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6546+7) == 0 {
- p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FpSchema+8, __ccgo_ts+6041)
+ if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6525, int32(7)) == 0 {
+ if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6571+7) == 0 {
+ p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FpSchema+8, __ccgo_ts+6066)
} else {
- if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6527+7) == 0 {
- p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpSchema+8, __ccgo_ts+6508)
+ if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6552+7) == 0 {
+ p = _sqlite3HashFind(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpSchema+8, __ccgo_ts+6533)
}
}
}
@@ -97730,7 +98591,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+12410, int32(7)) == 0 {
+ if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, __ccgo_ts+12435, int32(7)) == 0 {
pMod = _sqlite3PragmaVtabRegister(tls, db, zName)
}
if pMod != 0 && _sqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 {
@@ -97748,15 +98609,15 @@ func _sqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags Tu32, zName uintpt
}
if p == uintptr(0) {
if flags&uint32(LOCATE_VIEW) != 0 {
- v1 = __ccgo_ts + 12418
+ v1 = __ccgo_ts + 12443
} else {
- v1 = __ccgo_ts + 12431
+ v1 = __ccgo_ts + 12456
}
zMsg = v1
if zDbase != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6764, libc.VaList(bp+8, zMsg, zDbase, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6789, libc.VaList(bp+8, zMsg, zDbase, zName))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6774, libc.VaList(bp+8, zMsg, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+6799, libc.VaList(bp+8, zMsg, zName))
}
} else {
_ = libc.Int32FromInt32(0)
@@ -97796,12 +98657,12 @@ func _sqlite3LocateTableItem(tls *libc.TLS, pParse uintptr, flags Tu32, p uintpt
// ** names into the new preferred names, as appropriate.
// */
func _sqlite3PreferredTableName(tls *libc.TLS, zName uintptr) (r uintptr) {
- if Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6500, int32(7)) == 0 {
- if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6041+7) == 0 {
- return __ccgo_ts + 6546
+ if Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6525, int32(7)) == 0 {
+ if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6066+7) == 0 {
+ return __ccgo_ts + 6571
}
- if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6508+7) == 0 {
- return __ccgo_ts + 6527
+ if _sqlite3StrICmp(tls, zName+uintptr(7), __ccgo_ts+6533+7) == 0 {
+ return __ccgo_ts + 6552
}
}
return zName
@@ -97851,6 +98712,7 @@ func _sqlite3FindIndex(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) (r
}
goto _1
_1:
+ ;
i++
}
return p
@@ -97939,6 +98801,7 @@ func _sqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) {
j++
goto _1
_1:
+ ;
i++
}
(*Tsqlite3)(unsafe.Pointer(db)).FnDb = j
@@ -97980,6 +98843,7 @@ func _sqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) {
}
goto _3
_3:
+ ;
i++
}
}
@@ -98012,6 +98876,7 @@ func _sqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) {
}
goto _1
_1:
+ ;
i++
}
*(*Tu32)(unsafe.Pointer(db + 44)) &= uint32(^(libc.Int32FromInt32(DBFLAG_SchemaChange) | libc.Int32FromInt32(DBFLAG_SchemaKnownOk)))
@@ -98172,6 +99037,7 @@ func _sqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) {
_sqlite3DbFree(tls, db, (*TColumn)(unsafe.Pointer(pCol)).FzCnName)
goto _2
_2:
+ ;
i++
pCol += 16
}
@@ -98234,6 +99100,7 @@ func _deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) {
_sqlite3FreeIndex(tls, db, pIndex)
goto _1
_1:
+ ;
pIndex = pNext
}
if int32((*TTable)(unsafe.Pointer(pTable)).FeTabType) == TABTYP_NORM {
@@ -98341,7 +99208,7 @@ func _sqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) {
var v uintptr
_ = v
v = _sqlite3GetVdbe(tls, p)
- _sqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), __ccgo_ts+6041)
+ _sqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), __ccgo_ts+6066)
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_OpenWrite), 0, int32(SCHEMA_ROOT), iDb, int32(5))
if (*TParse)(unsafe.Pointer(p)).FnTab == 0 {
(*TParse)(unsafe.Pointer(p)).FnTab = int32(1)
@@ -98373,11 +99240,12 @@ func _sqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) (r int32) {
}
/* "main" is always an acceptable alias for the primary database
** even if it has been renamed using SQLITE_DBCONFIG_MAINDBNAME. */
- if i == 0 && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+6560, zName) {
+ if i == 0 && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+6585, zName) {
break
}
goto _1
_1:
+ ;
i--
pDb -= 32
}
@@ -98431,13 +99299,13 @@ func _sqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
_ = libc.Int32FromInt32(0)
if (*TToken)(unsafe.Pointer(pName2)).Fn > uint32(0) {
if (*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12445, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12470, 0)
return -int32(1)
}
*(*uintptr)(unsafe.Pointer(pUnqual)) = pName2
iDb = _sqlite3FindDb(tls, db, pName1)
if iDb < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12462, libc.VaList(bp+8, pName1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12487, libc.VaList(bp+8, pName1))
return -int32(1)
}
} else {
@@ -98486,8 +99354,8 @@ func _sqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType
return int32(SQLITE_ERROR)
}
} else {
- if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6500, int32(7)) || _sqlite3ReadOnlyShadowTables(tls, db) != 0 && _sqlite3ShadowTableName(tls, db, zName) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12482, libc.VaList(bp+8, zName))
+ if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, __ccgo_ts+6525, int32(7)) || _sqlite3ReadOnlyShadowTables(tls, db) != 0 && _sqlite3ShadowTableName(tls, db, zName) != 0 {
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12507, libc.VaList(bp+8, zName))
return int32(SQLITE_ERROR)
}
}
@@ -98509,6 +99377,7 @@ func _sqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
p = (*TIndex)(unsafe.Pointer(p)).FpNext
}
return p
@@ -98535,6 +99404,7 @@ func _sqlite3TableColumnToIndex(tls *libc.TLS, pIdx uintptr, iCol Ti16) (r Ti16)
}
goto _1
_1:
+ ;
i++
}
return int16(-int32(1))
@@ -98567,6 +99437,7 @@ func _sqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol Ti16) (r Ti1
}
goto _1
_1:
+ ;
i++
}
}
@@ -98630,6 +99501,7 @@ func _sqlite3TableColumnToStorage(tls *libc.TLS, pTab uintptr, iCol Ti16) (r Ti1
}
goto _1
_1:
+ ;
i++
}
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(i)*16))).FcolFlags)&int32(COLFLAG_VIRTUAL) != 0 {
@@ -98699,9 +99571,9 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
/* Special case: Parsing the sqlite_schema or sqlite_temp_schema schema */
iDb = int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb)
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
- v1 = __ccgo_ts + 6508
+ v1 = __ccgo_ts + 6533
} else {
- v1 = __ccgo_ts + 6041
+ v1 = __ccgo_ts + 6066
}
zName = _sqlite3DbStrDup(tls, db, v1)
*(*uintptr)(unsafe.Pointer(bp)) = pName1
@@ -98714,7 +99586,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+12524, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12549, 0)
return
}
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && isTemp != 0 {
@@ -98730,9 +99602,9 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
return
}
if isView != 0 {
- v2 = __ccgo_ts + 10771
+ v2 = __ccgo_ts + 10796
} else {
- v2 = __ccgo_ts + 9033
+ v2 = __ccgo_ts + 9058
}
if _sqlite3CheckObjectName(tls, pParse, zName, v2, zName) != 0 {
goto begin_table_error
@@ -98744,9 +99616,9 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
_ = libc.Int32FromInt32(0)
zDb = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && isTemp == int32(1) {
- v3 = __ccgo_ts + 6508
+ v3 = __ccgo_ts + 6533
} else {
- v3 = __ccgo_ts + 6041
+ v3 = __ccgo_ts + 6066
}
if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_INSERT), v3, uintptr(0), zDb) != 0 {
goto begin_table_error
@@ -98770,11 +99642,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 + 10771
+ v4 = __ccgo_ts + 10796
} else {
- v4 = __ccgo_ts + 9033
+ v4 = __ccgo_ts + 9058
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12565, libc.VaList(bp+16, v4, *(*uintptr)(unsafe.Pointer(bp))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12590, libc.VaList(bp+16, v4, *(*uintptr)(unsafe.Pointer(bp))))
} else {
_ = libc.Int32FromInt32(0)
_sqlite3CodeVerifySchema(tls, pParse, iDb)
@@ -98783,7 +99655,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+12586, libc.VaList(bp+16, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12611, libc.VaList(bp+16, zName))
goto begin_table_error
}
}
@@ -98876,6 +99748,7 @@ func _sqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui
return
/* If an error occurs, we jump here */
begin_table_error:
+ ;
(*TParse)(unsafe.Pointer(pParse)).FcheckSchema = uint8(1)
_sqlite3DbFree(tls, db, zName)
return
@@ -98937,7 +99810,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+12621, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12646, 0)
} else {
_ = libc.Int32FromInt32(0)
}
@@ -98954,7 +99827,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+12655, libc.VaList(bp+8, pParse))
+ Xsqlite3_snprintf(tls, int32(40), pRet+196, __ccgo_ts+12680, 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)
@@ -99002,7 +99875,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+12675, libc.VaList(bp+40, (*TTable)(unsafe.Pointer(p)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12700, libc.VaList(bp+40, (*TTable)(unsafe.Pointer(p)).FzName))
return
}
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
@@ -99012,12 +99885,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+12698, 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+12723, int32(6)) == 0 {
(*(*TToken)(unsafe.Pointer(bp + 16))).Fn -= uint32(6)
for (*(*TToken)(unsafe.Pointer(bp + 16))).Fn > uint32(0) && int32(_sqlite3CtypeMap[*(*uint8)(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+12705, 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+12730, int32(9)) == 0 {
(*(*TToken)(unsafe.Pointer(bp + 16))).Fn -= uint32(9)
for (*(*TToken)(unsafe.Pointer(bp + 16))).Fn > uint32(0) && int32(_sqlite3CtypeMap[*(*uint8)(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--
@@ -99045,6 +99918,7 @@ func _sqlite3AddColumn(tls *libc.TLS, pParse uintptr, _sName TToken, _sType TTok
}
goto _2
_2:
+ ;
i++
}
}
@@ -99065,12 +99939,13 @@ func _sqlite3AddColumn(tls *libc.TLS, pParse uintptr, _sName TToken, _sType TTok
break
}
if int32((*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FaCol + uintptr(i)*16))).FhName) == int32(hName) && _sqlite3StrICmp(tls, z, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FaCol + uintptr(i)*16))).FzCnName) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12715, libc.VaList(bp+40, z))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12740, libc.VaList(bp+40, z))
_sqlite3DbFree(tls, db, z)
return
}
goto _3
_3:
+ ;
i++
}
aNew = _sqlite3DbRealloc(tls, db, (*TTable)(unsafe.Pointer(p)).FaCol, uint64(int64((*TTable)(unsafe.Pointer(p)).FnCol)+libc.Int64FromInt32(1))*uint64(16))
@@ -99135,6 +100010,7 @@ func _sqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) {
}
goto _1
_1:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
}
@@ -99273,10 +100149,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+12741, libc.VaList(bp+80, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12766, 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+12786, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12811, 0)
} else {
libc.Xmemset(tls, bp, 0, uint64(72))
(*(*TExpr)(unsafe.Pointer(bp))).Fop = uint8(TK_SPAN)
@@ -99334,7 +100210,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+12827, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12852, 0)
}
}
@@ -99371,7 +100247,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+12879, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12904, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto primary_key_exit
}
*(*Tu32)(unsafe.Pointer(pTab + 48)) |= uint32(TF_HasPrimaryKey)
@@ -99405,11 +100281,13 @@ func _sqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError
}
goto _2
_2:
+ ;
iCol++
}
}
goto _1
_1:
+ ;
i++
}
}
@@ -99428,13 +100306,14 @@ func _sqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError
_sqlite3HasExplicitNulls(tls, pParse, pList)
} else {
if autoInc != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12920, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12945, 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)
}
}
primary_key_exit:
+ ;
_sqlite3ExprListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pList)
return
}
@@ -99464,6 +100343,7 @@ func _sqlite3AddCheckConstraint(tls *libc.TLS, pParse uintptr, pCheckExpr uintpt
}
goto _1
_1:
+ ;
zStart++
}
for int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(zEnd + uintptr(-libc.Int32FromInt32(1))))])&int32(0x01) != 0 {
@@ -99516,6 +100396,7 @@ func _sqlite3AddCollateType(tls *libc.TLS, pParse uintptr, pToken uintptr) {
}
goto _2
_2:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
}
@@ -99541,17 +100422,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+12976, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13001, 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+13019, (*TToken)(unsafe.Pointer(pType)).Fz, int32(7)) == 0 {
+ if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, __ccgo_ts+13044, (*TToken)(unsafe.Pointer(pType)).Fz, int32(7)) == 0 {
/* no-op */
} else {
- if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, __ccgo_ts+13027, (*TToken)(unsafe.Pointer(pType)).Fz, int32(6)) == 0 {
+ if (*TToken)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, __ccgo_ts+13052, (*TToken)(unsafe.Pointer(pType)).Fz, int32(6)) == 0 {
eType = uint8(COLFLAG_STORED)
} else {
goto generated_error
@@ -99583,8 +100464,10 @@ func _sqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType ui
pExpr = uintptr(0)
goto generated_done
generated_error:
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13034, libc.VaList(bp+8, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ ;
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13059, libc.VaList(bp+8, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
generated_done:
+ ;
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pExpr)
}
@@ -99641,6 +100524,7 @@ func _identLength(tls *libc.TLS, z uintptr) (r int32) {
}
goto _1
_1:
+ ;
n++
z++
}
@@ -99678,6 +100562,7 @@ func _identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) {
}
goto _1
_1:
+ ;
j++
}
needQuote = libc.BoolInt32(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(zIdent))])&int32(0x04) != 0 || _sqlite3KeywordCode(tls, zIdent, j) != int32(TK_ID) || int32(*(*uint8)(unsafe.Pointer(zIdent + uintptr(j)))) != 0 || j == 0)
@@ -99701,6 +100586,7 @@ func _identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) {
}
goto _3
_3:
+ ;
j++
}
if needQuote != 0 {
@@ -99736,18 +100622,19 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
n += _identLength(tls, (*TColumn)(unsafe.Pointer(pCol)).FzCnName) + int32(5)
goto _1
_1:
+ ;
i++
pCol += 16
}
n += _identLength(tls, (*TTable)(unsafe.Pointer(p)).FzName)
if n < int32(50) {
zSep = __ccgo_ts + 1648
- zSep2 = __ccgo_ts + 13065
- zEnd = __ccgo_ts + 5081
+ zSep2 = __ccgo_ts + 13090
+ zEnd = __ccgo_ts + 5106
} else {
- zSep = __ccgo_ts + 13067
- zSep2 = __ccgo_ts + 13071
- zEnd = __ccgo_ts + 13076
+ zSep = __ccgo_ts + 13092
+ zSep2 = __ccgo_ts + 13096
+ zEnd = __ccgo_ts + 13101
}
n += int32(35) + int32(6)*int32((*TTable)(unsafe.Pointer(p)).FnCol)
zStmt = _sqlite3DbMallocRaw(tls, uintptr(0), uint64(n))
@@ -99755,7 +100642,7 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
_sqlite3OomFault(tls, db)
return uintptr(0)
}
- Xsqlite3_snprintf(tls, n, zStmt, __ccgo_ts+13079, 0)
+ Xsqlite3_snprintf(tls, n, zStmt, __ccgo_ts+13104, 0)
*(*int32)(unsafe.Pointer(bp)) = _sqlite3Strlen30(tls, zStmt)
_identPut(tls, zStmt, bp, (*TTable)(unsafe.Pointer(p)).FzName)
v2 = *(*int32)(unsafe.Pointer(bp))
@@ -99781,6 +100668,7 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
_ = libc.Int32FromInt32(0)
goto _3
_3:
+ ;
i++
pCol += 16
}
@@ -99790,11 +100678,11 @@ func _createTableStmt(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
var _azType1 = [6]uintptr{
0: __ccgo_ts + 1648,
- 1: __ccgo_ts + 13093,
- 2: __ccgo_ts + 13099,
- 3: __ccgo_ts + 13104,
- 4: __ccgo_ts + 13109,
- 5: __ccgo_ts + 13099,
+ 1: __ccgo_ts + 13118,
+ 2: __ccgo_ts + 13124,
+ 3: __ccgo_ts + 13129,
+ 4: __ccgo_ts + 13134,
+ 5: __ccgo_ts + 13124,
}
// C documentation
@@ -99852,6 +100740,7 @@ func _estimateTableWidth(tls *libc.TLS, pTab uintptr) {
wTable += uint32((*TColumn)(unsafe.Pointer(pTabCol)).FszEst)
goto _1
_1:
+ ;
i--
pTabCol += 16
}
@@ -99889,6 +100778,7 @@ func _estimateIndexWidth(tls *libc.TLS, pIdx uintptr) {
wIndex += uint32(v2)
goto _1
_1:
+ ;
i++
}
(*TIndex)(unsafe.Pointer(pIdx)).FszIdxRow = _sqlite3LogEst(tls, uint64(wIndex*uint32(4)))
@@ -99955,6 +100845,7 @@ func _isDupColumn(tls *libc.TLS, pIdx uintptr, nKey int32, pPk uintptr, iCol int
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -100001,6 +100892,7 @@ func _recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) {
}
goto _1
_1:
+ ;
j--
}
(*TIndex)(unsafe.Pointer(pIdx)).FcolNotIdxed = ^m
@@ -100056,6 +100948,7 @@ func _convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _1
_1:
+ ;
i++
}
*(*Tu32)(unsafe.Pointer(pTab + 48)) |= uint32(TF_HasNotNull)
@@ -100118,6 +101011,7 @@ func _convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _2
_2:
+ ;
i++
}
(*TIndex)(unsafe.Pointer(pPk)).FnKeyCol = uint16(j)
@@ -100163,6 +101057,7 @@ func _convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _7
_7:
+ ;
i++
}
if n == 0 {
@@ -100190,12 +101085,14 @@ func _convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _9
_9:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
goto _6
_6:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
/* Add all table columns to the PRIMARY KEY index
@@ -100211,6 +101108,7 @@ func _convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _10
_10:
+ ;
i++
}
if _resizeIndexObject(tls, db, pPk, nPk+nExtra) != 0 {
@@ -100230,6 +101128,7 @@ func _convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _11
_11:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -100324,6 +101223,7 @@ func _sqlite3MarkAllShadowTablesOf(tls *libc.TLS, db uintptr, pTab uintptr) {
}
goto _1
_1:
+ ;
k = (*THashElem)(unsafe.Pointer(k)).Fnext
}
}
@@ -100436,9 +101336,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+13115, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName, _sqlite3ColumnType(tls, pCol, __ccgo_ts+1648)))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13140, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName, _sqlite3ColumnType(tls, pCol, __ccgo_ts+1648)))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13148, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13173, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
}
return
} else {
@@ -100452,6 +101352,7 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
}
goto _1
_1:
+ ;
ii++
}
}
@@ -100460,11 +101361,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+13175, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13200, 0)
return
}
if (*TTable)(unsafe.Pointer(p)).FtabFlags&uint32(TF_HasPrimaryKey) == uint32(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13225, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13250, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName))
return
}
*(*Tu32)(unsafe.Pointer(p + 48)) |= uint32(libc.Int32FromInt32(TF_WithoutRowid) | libc.Int32FromInt32(TF_NoVisibleRowid))
@@ -100507,10 +101408,11 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
}
goto _2
_2:
+ ;
ii1++
}
if nNG == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13257, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13282, 0)
return
}
}
@@ -100524,6 +101426,7 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
_estimateIndexWidth(tls, pIdx)
goto _3
_3:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
/* If not initializing, then create a record for the new table
@@ -100543,12 +101446,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 + 9033
- zType2 = __ccgo_ts + 13301
+ zType = __ccgo_ts + 9058
+ zType2 = __ccgo_ts + 13326
} else {
/* A view */
- zType = __ccgo_ts + 10771
- zType2 = __ccgo_ts + 13307
+ zType = __ccgo_ts + 10796
+ zType2 = __ccgo_ts + 13332
}
/* If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT
** statement to populate the new table. The root-page number for the
@@ -100633,13 +101536,13 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
if int32(*(*uint8)(unsafe.Pointer((*TToken)(unsafe.Pointer(pEnd2)).Fz))) != int32(';') {
n = int32(uint32(n) + (*TToken)(unsafe.Pointer(pEnd2)).Fn)
}
- zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+13312, libc.VaList(bp+48, zType2, n, (*TParse)(unsafe.Pointer(pParse)).FsNameToken.Fz))
+ zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+13337, 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+13327, 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, (*TParse)(unsafe.Pointer(pParse)).FregRoot, zStmt, (*TParse)(unsafe.Pointer(pParse)).FregRowid))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13352, 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, (*TParse)(unsafe.Pointer(pParse)).FregRoot, zStmt, (*TParse)(unsafe.Pointer(pParse)).FregRowid))
_sqlite3DbFree(tls, db, zStmt)
_sqlite3ChangeCookie(tls, pParse, iDb)
/* Check to see if we need to create an sqlite_sequence table for
@@ -100649,17 +101552,17 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
pDb = (*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32
_ = libc.Int32FromInt32(0)
if (*TSchema)(unsafe.Pointer((*TDb)(unsafe.Pointer(pDb)).FpSchema)).FpSeqTab == uintptr(0) {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+13425, libc.VaList(bp+48, (*TDb)(unsafe.Pointer(pDb)).FzDbSName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13450, 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+13467, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(p)).FzName)), uint16(0))
+ _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+13492, 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(1), 0, 0, _sqlite3MPrintf(tls, db, __ccgo_ts+13501, 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(1), 0, 0, _sqlite3MPrintf(tls, db, __ccgo_ts+13526, 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(1), 0, 0, _sqlite3MPrintf(tls, db, __ccgo_ts+13522, 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(1), 0, 0, _sqlite3MPrintf(tls, db, __ccgo_ts+13547, 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.
*/
@@ -100679,7 +101582,7 @@ func _sqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr
** then record a pointer to this table in the main database structure
** so that INSERT can find the table easily. */
_ = libc.Int32FromInt32(0)
- if libc.Xstrcmp(tls, (*TTable)(unsafe.Pointer(p)).FzName, __ccgo_ts+9555) == 0 {
+ if libc.Xstrcmp(tls, (*TTable)(unsafe.Pointer(p)).FzName, __ccgo_ts+9580) == 0 {
_ = libc.Int32FromInt32(0)
(*TSchema)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FpSchema)).FpSeqTab = p
}
@@ -100714,7 +101617,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+13554, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13579, 0)
goto create_view_fail
}
_sqlite3StartTable(tls, pParse, pName1, pName2, isTemp, int32(1), 0, noErr)
@@ -100730,7 +101633,7 @@ func _sqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 ui
*(*Tu32)(unsafe.Pointer(p + 48)) |= uint32(TF_NoVisibleRowid)
_sqlite3TwoPartName(tls, pParse, pName1, pName2, bp+112)
iDb = _sqlite3SchemaToIndex(tls, db, (*TTable)(unsafe.Pointer(p)).FpSchema)
- _sqlite3FixInit(tls, bp+16, pParse, iDb, __ccgo_ts+10771, *(*uintptr)(unsafe.Pointer(bp + 112)))
+ _sqlite3FixInit(tls, bp+16, pParse, iDb, __ccgo_ts+10796, *(*uintptr)(unsafe.Pointer(bp + 112)))
if _sqlite3FixSelect(tls, bp+16, pSelect) != 0 {
goto create_view_fail
}
@@ -100775,6 +101678,7 @@ func _sqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 ui
/* Use sqlite3EndTable() to add the view to the schema table */
_sqlite3EndTable(tls, pParse, uintptr(0), bp, uint32(0), uintptr(0))
create_view_fail:
+ ;
_sqlite3SelectDelete(tls, db, pSelect)
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) {
_sqlite3RenameExprlistUnmap(tls, pParse, pCNames)
@@ -100828,7 +101732,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+13590, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13615, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
return int32(1)
}
_ = libc.Int32FromInt32(0)
@@ -100940,6 +101844,7 @@ func _sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) {
}
goto _1
_1:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
p2 = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(idx)*32))).FpSchema + 114
@@ -100982,6 +101887,7 @@ func _sqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom TPgno, iT
}
goto _1
_1:
+ ;
pElem = (*THashElem)(unsafe.Pointer(pElem)).Fnext
}
pHash = (*TDb)(unsafe.Pointer(pDb)).FpSchema + 32
@@ -100996,6 +101902,7 @@ func _sqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom TPgno, iT
}
goto _2
_2:
+ ;
pElem = (*THashElem)(unsafe.Pointer(pElem)).Fnext
}
}
@@ -101017,7 +101924,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+13620, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13645, 0)
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_Destroy), iTable, r1, iDb)
_sqlite3MayAbort(tls, pParse)
@@ -101030,7 +101937,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+13635, 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+13660, 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)
}
@@ -101082,6 +101989,7 @@ func _destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _1
_1:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
if iLargest == uint32(0) {
@@ -101114,12 +102022,13 @@ func _sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uin
if !(i <= int32(4)) {
break
}
- Xsqlite3_snprintf(tls, int32(24), bp, __ccgo_ts+13702, libc.VaList(bp+32, i))
+ Xsqlite3_snprintf(tls, int32(24), bp, __ccgo_ts+13727, libc.VaList(bp+32, i))
if _sqlite3FindTable(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, bp, zDbName) != 0 {
- _sqlite3NestedParse(tls, pParse, __ccgo_ts+11660, libc.VaList(bp+32, zDbName, bp, zType, zName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+11685, libc.VaList(bp+32, zDbName, bp, zType, zName))
}
goto _1
_1:
+ ;
i++
}
}
@@ -101158,7 +102067,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+13716, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13741, 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
@@ -101167,7 +102076,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+13761, libc.VaList(bp+8, (*TDb)(unsafe.Pointer(pDb)).FzDbSName, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+13786, 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)
}
@@ -101202,11 +102111,11 @@ func _sqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) (r int32) {
// ** Return true if it is not allowed to drop the given table
// */
func _tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) (r int32) {
- if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+6500, int32(7)) == 0 {
+ if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+6525, int32(7)) == 0 {
if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName+uintptr(7), __ccgo_ts+3418, int32(4)) == 0 {
return 0
}
- if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName+uintptr(7), __ccgo_ts+7241, int32(10)) == 0 {
+ if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName+uintptr(7), __ccgo_ts+7266, int32(10)) == 0 {
return 0
}
return int32(1)
@@ -101265,9 +102174,9 @@ func _sqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int3
goto exit_drop_table
}
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
- v1 = __ccgo_ts + 6508
+ v1 = __ccgo_ts + 6533
} else {
- v1 = __ccgo_ts + 6041
+ v1 = __ccgo_ts + 6066
}
zTab = v1
zDb = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName
@@ -101300,18 +102209,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+13828, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13853, 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+13856, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13881, 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+13890, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13915, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
goto exit_drop_table
}
/* Generate code to remove the table from the schema table
@@ -101321,12 +102230,13 @@ 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+11772, (*TTable)(unsafe.Pointer(pTab)).FzName)
+ _sqlite3ClearStatTables(tls, pParse, iDb, __ccgo_ts+11797, (*TTable)(unsafe.Pointer(pTab)).FzName)
_sqlite3FkDropTable(tls, pParse, pName, pTab)
}
_sqlite3CodeDropTable(tls, pParse, pTab, iDb, isView)
}
exit_drop_table:
+ ;
_sqlite3SrcListDelete(tls, db, pName)
}
@@ -101368,13 +102278,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+13922, libc.VaList(bp+8, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(p)).FaCol + uintptr(iCol)*16))).FzCnName, pTo))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+13947, 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+13985, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14010, 0)
goto fk_end
} else {
nCol = (*TExprList)(unsafe.Pointer(pFromCol)).FnExpr
@@ -101390,6 +102300,7 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
nByte += int64(_sqlite3Strlen30(tls, (*(*TExprList_item)(unsafe.Pointer(pToCol + 8 + uintptr(i)*32))).FzEName) + int32(1))
goto _1
_1:
+ ;
i++
}
}
@@ -101433,10 +102344,11 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
}
goto _3
_3:
+ ;
j++
}
if j >= int32((*TTable)(unsafe.Pointer(p)).FnCol) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14079, libc.VaList(bp+8, (*(*TExprList_item)(unsafe.Pointer(pFromCol + 8 + uintptr(i)*32))).FzEName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14104, 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) {
@@ -101444,6 +102356,7 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
}
goto _2
_2:
+ ;
i++
}
}
@@ -101463,6 +102376,7 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
z += uintptr(n + int32(1))
goto _4
_4:
+ ;
i++
}
}
@@ -101490,6 +102404,7 @@ func _sqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, p
})(unsafe.Pointer(p + 64))).FpFKey = pFKey
pFKey = uintptr(0)
fk_end:
+ ;
_sqlite3DbFree(tls, db, pFKey)
_sqlite3ExprListDelete(tls, db, pFromCol)
_sqlite3ExprListDelete(tls, db, pToCol)
@@ -101696,15 +102611,16 @@ 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 + 14125
+ v2 = __ccgo_ts + 14150
} else {
- v2 = __ccgo_ts + 14131
+ v2 = __ccgo_ts + 14156
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14136, libc.VaList(bp+8, v2))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14161, libc.VaList(bp+8, v2))
return int32(1)
}
goto _1
_1:
+ ;
i++
}
}
@@ -101781,7 +102697,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
iDb = int32(1)
}
}
- _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+14164, *(*uintptr)(unsafe.Pointer(bp + 96)))
+ _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+14189, *(*uintptr)(unsafe.Pointer(bp + 96)))
if _sqlite3FixSrcList(tls, bp, pTblName) != 0 {
/* Because the parser constructs pTblName from a single identifier,
** sqlite3FixSrcList can never fail. */
@@ -101793,7 +102709,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+14170, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14195, 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)) {
@@ -101810,16 +102726,16 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
pDb = (*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32
_ = libc.Int32FromInt32(0)
- if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+6500, int32(7)) == 0 && int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy) == 0 && pTblName != uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14220, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+6525, int32(7)) == 0 && int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy) == 0 && pTblName != uintptr(0) {
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14245, 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+14248, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14273, 0)
goto exit_create_index
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14273, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14298, 0)
goto exit_create_index
}
/*
@@ -101841,19 +102757,19 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
goto exit_create_index
}
_ = libc.Int32FromInt32(0)
- if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+14164, (*TTable)(unsafe.Pointer(pTab)).FzName) {
+ if SQLITE_OK != _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+14189, (*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+14307, libc.VaList(bp+136, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14332, 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+14341, libc.VaList(bp+136, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14366, libc.VaList(bp+136, zName))
} else {
_ = libc.Int32FromInt32(0)
_sqlite3CodeVerifySchema(tls, pParse, iDb)
@@ -101871,10 +102787,11 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
goto _1
_1:
+ ;
pLoop = (*TIndex)(unsafe.Pointer(pLoop)).FpNext
n++
}
- zName = _sqlite3MPrintf(tls, db, __ccgo_ts+14365, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName, n))
+ zName = _sqlite3MPrintf(tls, db, __ccgo_ts+14390, libc.VaList(bp+136, (*TTable)(unsafe.Pointer(pTab)).FzName, n))
if zName == uintptr(0) {
goto exit_create_index
}
@@ -101892,9 +102809,9 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
zDb = (*TDb)(unsafe.Pointer(pDb)).FzDbSName
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
- v2 = __ccgo_ts + 6508
+ v2 = __ccgo_ts + 6533
} else {
- v2 = __ccgo_ts + 6041
+ v2 = __ccgo_ts + 6066
}
if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_INSERT), v2, uintptr(0), zDb) != 0 {
goto exit_create_index
@@ -101923,7 +102840,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
_ = libc.Int32FromInt32(0)
_sqlite3ExprListSetSortOrder(tls, pList, sortOrder, -int32(1))
} else {
- _sqlite3ExprListCheckLength(tls, pParse, pList, __ccgo_ts+14164)
+ _sqlite3ExprListCheckLength(tls, pParse, pList, __ccgo_ts+14189)
if (*TParse)(unsafe.Pointer(pParse)).FnErr != 0 {
goto exit_create_index
}
@@ -101944,6 +102861,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
goto _4
_4:
+ ;
i++
}
/*
@@ -102012,7 +102930,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+14388, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14413, 0)
goto exit_create_index
}
if (*TIndex)(unsafe.Pointer(pIndex)).FaColExpr == uintptr(0) {
@@ -102065,6 +102983,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
*(*Tu8)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIndex)).FaSortOrder + uintptr(i))) = uint8(requestedSortOrder)
goto _6
_6:
+ ;
i++
pListItem += 32
}
@@ -102090,6 +103009,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
goto _7
_7:
+ ;
j++
}
_ = libc.Int32FromInt32(0)
@@ -102122,6 +103042,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
break
goto _8
_8:
+ ;
j++
}
}
@@ -102153,6 +103074,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
goto _10
_10:
+ ;
k++
}
if k == int32((*TIndex)(unsafe.Pointer(pIdx)).FnKeyCol) {
@@ -102165,7 +103087,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+14449, libc.VaList(bp+136, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14474, 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
@@ -102183,6 +103105,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
goto _9
_9:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
}
@@ -102197,8 +103120,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+14491, 0)
- (*TParse)(unsafe.Pointer(pParse)).Frc = _sqlite3CorruptError(tls, int32(124945))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14516, 0)
+ (*TParse)(unsafe.Pointer(pParse)).Frc = _sqlite3CorruptError(tls, int32(125034))
goto exit_create_index
}
}
@@ -102241,9 +103164,9 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
if onError == OE_None {
v13 = __ccgo_ts + 1648
} else {
- v13 = __ccgo_ts + 14508
+ v13 = __ccgo_ts + 14533
}
- zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+14516, libc.VaList(bp+136, v13, n1, (*TToken)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 96)))).Fz))
+ zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+14541, 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(""); */
@@ -102251,7 +103174,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+14536, 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+14561, 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.
@@ -102259,7 +103182,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+14595, libc.VaList(bp+136, (*TIndex)(unsafe.Pointer(pIndex)).FzName)), uint16(0))
+ _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+14620, 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))
@@ -102279,6 +103202,7 @@ func _sqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u
}
/* Clean up before exiting */
exit_create_index:
+ ;
if pIndex != 0 {
_sqlite3FreeIndex(tls, db, pIndex)
}
@@ -102307,6 +103231,7 @@ exit_create_index:
break
goto _14
_14:
+ ;
ppFrom = pThis + 40
}
}
@@ -102384,6 +103309,7 @@ func _sqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) {
_ = libc.Int32FromInt32(0)
goto _3
_3:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -102425,7 +103351,7 @@ func _sqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists in
pIndex = _sqlite3FindIndex(tls, db, (*(*TSrcItem)(unsafe.Pointer(pName + 8))).FzName, (*(*TSrcItem)(unsafe.Pointer(pName + 8))).FzDatabase)
if pIndex == uintptr(0) {
if !(ifExists != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14622, libc.VaList(bp+8, pName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14647, libc.VaList(bp+8, pName+8))
} else {
_sqlite3CodeVerifyNamedSchema(tls, pParse, (*(*TSrcItem)(unsafe.Pointer(pName + 8))).FzDatabase)
_sqlite3ForceNotReadOnly(tls, pParse)
@@ -102434,7 +103360,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+14640, libc.VaList(bp+8, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14665, libc.VaList(bp+8, 0))
goto exit_drop_index
}
iDb = _sqlite3SchemaToIndex(tls, db, (*TIndex)(unsafe.Pointer(pIndex)).FpSchema)
@@ -102442,9 +103368,9 @@ func _sqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists in
pTab = (*TIndex)(unsafe.Pointer(pIndex)).FpTable
zDb = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
- v1 = __ccgo_ts + 6508
+ v1 = __ccgo_ts + 6533
} else {
- v1 = __ccgo_ts + 6041
+ v1 = __ccgo_ts + 6066
}
zTab = v1
if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_DELETE), zTab, uintptr(0), zDb) != 0 {
@@ -102460,13 +103386,14 @@ 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+14713, 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+11768, (*TIndex)(unsafe.Pointer(pIndex)).FzName)
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+14738, 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+11793, (*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)
}
exit_drop_index:
+ ;
_sqlite3SrcListDelete(tls, db, pName)
}
@@ -102576,6 +103503,7 @@ func _sqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) {
_sqlite3DbFree(tls, db, (*(*TIdList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*16))).FzName)
goto _1
_1:
+ ;
i++
}
_sqlite3DbNNFreeNN(tls, db, pList)
@@ -102601,6 +103529,7 @@ func _sqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) (r int32)
}
goto _1
_1:
+ ;
i++
}
return -int32(1)
@@ -102654,7 +103583,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+14773, libc.VaList(bp+8, int32(SQLITE_MAX_SRCLIST)))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14798, libc.VaList(bp+8, int32(SQLITE_MAX_SRCLIST)))
return uintptr(0)
}
if nAlloc > int64(SQLITE_MAX_SRCLIST) {
@@ -102678,6 +103607,7 @@ func _sqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra
*(*TSrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i+nExtra)*104)) = *(*TSrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104))
goto _1
_1:
+ ;
i--
}
*(*int32)(unsafe.Pointer(pSrc)) += nExtra
@@ -102691,6 +103621,7 @@ func _sqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra
(*(*TSrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104))).FiCursor = -int32(1)
goto _2
_2:
+ ;
i++
}
/* Return a pointer to the enlarged SrcList */
@@ -102802,6 +103733,7 @@ func _sqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr)
}
goto _1
_1:
+ ;
i++
pItem += 104
}
@@ -102855,6 +103787,7 @@ func _sqlite3SrcListDelete(tls *libc.TLS, db uintptr, pList uintptr) {
}
goto _1
_1:
+ ;
i++
pItem += 104
}
@@ -102887,11 +103820,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 + 14809
+ v1 = __ccgo_ts + 14834
} else {
- v1 = __ccgo_ts + 14812
+ v1 = __ccgo_ts + 14837
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14818, libc.VaList(bp+8, v1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14843, libc.VaList(bp+8, v1))
goto append_from_error
}
p = _sqlite3SrcListAppend(tls, pParse, p, pTable, pDatabase)
@@ -102935,6 +103868,7 @@ func _sqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTa
}
return p
append_from_error:
+ ;
_ = libc.Int32FromInt32(0)
_sqlite3ClearOnOrUsing(tls, db, pOnUsing)
_sqlite3SelectDelete(tls, db, pSubquery)
@@ -103055,6 +103989,7 @@ func _sqlite3SrcListShiftJoinType(tls *libc.TLS, pParse uintptr, p uintptr) {
allFlags = Tu8(int32(allFlags) | int32(v3))
goto _2
_2:
+ ;
i--
v1 = i
if !(v1 > 0) {
@@ -103072,6 +104007,7 @@ func _sqlite3SrcListShiftJoinType(tls *libc.TLS, pParse uintptr, p uintptr) {
}
goto _4
_4:
+ ;
i--
}
i--
@@ -103081,6 +104017,7 @@ func _sqlite3SrcListShiftJoinType(tls *libc.TLS, pParse uintptr, p uintptr) {
*(*Tu8)(unsafe.Pointer(p7)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p7))) | libc.Int32FromInt32(JT_LTORJ))
goto _6
_6:
+ ;
i--
v5 = i
if !(v5 >= 0) {
@@ -103103,7 +104040,7 @@ func _sqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) {
_ = libc.Int32FromInt32(0)
db = (*TParse)(unsafe.Pointer(pParse)).Fdb
_ = libc.Int32FromInt32(0)
- if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_TRANSACTION), __ccgo_ts+14854, uintptr(0), uintptr(0)) != 0 {
+ if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_TRANSACTION), __ccgo_ts+14879, uintptr(0), uintptr(0)) != 0 {
return
}
v = _sqlite3GetVdbe(tls, pParse)
@@ -103130,6 +104067,7 @@ func _sqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) {
_sqlite3VdbeUsesBtree(tls, v, i)
goto _1
_1:
+ ;
i++
}
}
@@ -103152,9 +104090,9 @@ func _sqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) {
_ = libc.Int32FromInt32(0)
isRollback = libc.BoolInt32(eType == int32(TK_ROLLBACK))
if isRollback != 0 {
- v1 = __ccgo_ts + 14860
+ v1 = __ccgo_ts + 14885
} else {
- v1 = __ccgo_ts + 14869
+ v1 = __ccgo_ts + 14894
}
if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_TRANSACTION), v1, uintptr(0), uintptr(0)) != 0 {
return
@@ -103187,9 +104125,9 @@ func _sqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) {
}
var _az = [3]uintptr{
- 0: __ccgo_ts + 14854,
- 1: __ccgo_ts + 14876,
- 2: __ccgo_ts + 14860,
+ 0: __ccgo_ts + 14879,
+ 1: __ccgo_ts + 14901,
+ 2: __ccgo_ts + 14885,
}
// C documentation
@@ -103209,7 +104147,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+14884, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14909, 0)
(*TParse)(unsafe.Pointer(pParse)).Frc = rc
return int32(1)
}
@@ -103279,6 +104217,7 @@ func _sqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -103399,7 +104338,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+14954, libc.VaList(bp+40, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+14979, libc.VaList(bp+40, (*TIndex)(unsafe.Pointer(pIdx)).FzName))
} else {
j = 0
for {
@@ -103409,13 +104348,14 @@ func _sqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx
_ = libc.Int32FromInt32(0)
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+14965, int32(2))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+14990, int32(2))
}
Xsqlite3_str_appendall(tls, bp, (*TTable)(unsafe.Pointer(pTab)).FzName)
Xsqlite3_str_append(tls, bp, __ccgo_ts+1661, int32(1))
Xsqlite3_str_appendall(tls, bp, zCol)
goto _1
_1:
+ ;
j++
}
}
@@ -103440,10 +104380,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+12356, 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+12381, 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+14968, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ zMsg = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+14993, 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))
@@ -103472,6 +104412,7 @@ func _collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -103500,6 +104441,7 @@ func _reindexTable(tls *libc.TLS, pParse uintptr, pTab uintptr, zColl uintptr) {
}
goto _1
_1:
+ ;
pIndex = (*TIndex)(unsafe.Pointer(pIndex)).FpNext
}
}
@@ -103534,10 +104476,12 @@ func _reindexDatabases(tls *libc.TLS, pParse uintptr, zColl uintptr) {
_reindexTable(tls, pParse, pTab, zColl)
goto _2
_2:
+ ;
k = (*THashElem)(unsafe.Pointer(k)).Fnext
}
goto _1
_1:
+ ;
iDb++
pDb += 32
}
@@ -103618,7 +104562,7 @@ func _sqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp
_sqlite3RefillIndex(tls, pParse, pIndex, -int32(1))
return
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+14977, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15002, 0)
}
// C documentation
@@ -103661,6 +104605,7 @@ func _sqlite3KeyInfoOfIndex(tls *libc.TLS, pParse uintptr, pIdx uintptr) (r uint
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
i++
}
if (*TParse)(unsafe.Pointer(pParse)).FnErr != 0 {
@@ -103759,10 +104704,11 @@ 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+15023, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15048, libc.VaList(bp+8, zName))
}
goto _1
_1:
+ ;
i++
}
}
@@ -103803,6 +104749,7 @@ func _sqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) {
_cteClear(tls, db, pWith+16+uintptr(i)*48)
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, db, pWith)
@@ -103889,6 +104836,7 @@ func _synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return int32(SQLITE_ERROR)
@@ -104063,7 +105011,7 @@ func _sqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc Tu8, pColl uintptr, z
}
_ = libc.Int32FromInt32(0)
if p == uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15053, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15078, libc.VaList(bp+8, zName))
(*TParse)(unsafe.Pointer(pParse)).Frc = libc.Int32FromInt32(SQLITE_ERROR) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
}
return p
@@ -104191,6 +105139,7 @@ func _sqlite3FunctionSearch(tls *libc.TLS, h int32, zFunc uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
p = *(*uintptr)(unsafe.Pointer(p + 64))
}
return uintptr(0)
@@ -104226,6 +105175,7 @@ func _sqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -104318,6 +105268,7 @@ func _sqlite3FindFunction(tls *libc.TLS, db uintptr, zName uintptr, nArg int32,
*(*Tu8)(unsafe.Pointer(z)) = _sqlite3UpperToLower[*(*Tu8)(unsafe.Pointer(z))]
goto _3
_3:
+ ;
z++
}
pOther = _sqlite3HashInsert(tls, db+624, (*TFuncDef)(unsafe.Pointer(pBest)).FzName, pBest)
@@ -104367,6 +105318,7 @@ func _sqlite3SchemaClear(tls *libc.TLS, p uintptr) {
_sqlite3DeleteTrigger(tls, bp+48, (*THashElem)(unsafe.Pointer(pElem)).Fdata)
goto _1
_1:
+ ;
pElem = (*THashElem)(unsafe.Pointer(pElem)).Fnext
}
_sqlite3HashClear(tls, bp+24)
@@ -104380,6 +105332,7 @@ func _sqlite3SchemaClear(tls *libc.TLS, p uintptr) {
_sqlite3DeleteTable(tls, bp+48, pTab)
goto _2
_2:
+ ;
pElem = (*THashElem)(unsafe.Pointer(pElem)).Fnext
}
_sqlite3HashClear(tls, bp)
@@ -104524,7 +105477,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+15084, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15109, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
return 0
}
@@ -104559,11 +105512,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+15117, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15142, 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+15146, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15171, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(1)
}
return 0
@@ -104692,6 +105645,7 @@ func _sqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
(*TParse)(unsafe.Pointer(pParse)).FnTab++
goto _4
_4:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
nIdx++
}
@@ -104779,6 +105733,7 @@ func _sqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
}
goto _9
_9:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
} else {
@@ -104852,6 +105807,7 @@ func _sqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iTabCur, int32(*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pPk)).FaiColumn + uintptr(i)*2))), iPk+i)
goto _16
_16:
+ ;
i++
}
iKey = iPk
@@ -104985,9 +105941,10 @@ func _sqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
** invoke the callback function.
*/
if memCnt != 0 {
- _sqlite3CodeChangeCount(tls, v, memCnt, __ccgo_ts+15184)
+ _sqlite3CodeChangeCount(tls, v, memCnt, __ccgo_ts+15209)
}
delete_from_cleanup:
+ ;
_sqlite3AuthContextPop(tls, bp+8)
_sqlite3SrcListDelete(tls, db, pTabList)
_sqlite3ExprDelete(tls, db, pWhere)
@@ -105090,6 +106047,7 @@ func _sqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTri
}
goto _2
_2:
+ ;
iCol++
}
/* Invoke BEFORE DELETE trigger programs. */
@@ -105131,7 +106089,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+11557) {
+ if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+11582) {
_sqlite3VdbeAppendP4(tls, v, pTab, -int32(5))
}
if int32(eMode) != ONEPASS_OFF {
@@ -105223,6 +106181,7 @@ func _sqlite3GenerateRowIndexDelete(tls *libc.TLS, pParse uintptr, pTab uintptr,
pPrior = pIdx
goto _2
_2:
+ ;
i++
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
@@ -105309,6 +106268,7 @@ func _sqlite3GenerateIndexKey(tls *libc.TLS, pParse uintptr, pIdx uintptr, iData
}
goto _2
_2:
+ ;
j++
}
if regOut != 0 {
@@ -105417,6 +106377,7 @@ func _minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _2
_2:
+ ;
i++
}
Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(iBest)*8)))
@@ -105446,10 +106407,10 @@ func _typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) {
}
var _azType2 = [5]uintptr{
- 0: __ccgo_ts + 6281,
- 1: __ccgo_ts + 6276,
- 2: __ccgo_ts + 8172,
- 3: __ccgo_ts + 8167,
+ 0: __ccgo_ts + 6306,
+ 1: __ccgo_ts + 6301,
+ 2: __ccgo_ts + 8197,
+ 3: __ccgo_ts + 8192,
4: __ccgo_ts + 1634,
}
@@ -105567,7 +106528,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+15197, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+15222, -int32(1))
return
}
iVal = -iVal
@@ -105663,10 +106624,12 @@ func _instrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
Xsqlite3_result_int(tls, context, N)
endInstr:
+ ;
Xsqlite3_value_free(tls, pC1)
Xsqlite3_value_free(tls, pC2)
return
endInstrOOM:
+ ;
Xsqlite3_result_error_nomem(tls, context)
goto endInstr
}
@@ -105756,6 +106719,7 @@ func _substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
len1++
}
}
@@ -105820,6 +106784,7 @@ func _substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _4
_4:
+ ;
p2--
}
Xsqlite3_result_text64(tls, context, z, uint64(int64(z2)-int64(z)), uintptr(-libc.Int32FromInt32(1)), uint8(SQLITE_UTF8))
@@ -105880,7 +106845,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+15214, libc.VaList(bp+16, n, *(*float64)(unsafe.Pointer(bp))))
+ zBuf = Xsqlite3_mprintf(tls, __ccgo_ts+15239, libc.VaList(bp+16, n, *(*float64)(unsafe.Pointer(bp))))
if zBuf == uintptr(0) {
Xsqlite3_result_error_nomem(tls, context)
return
@@ -105943,6 +106908,7 @@ func _upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*uint8)(unsafe.Pointer(z1 + uintptr(i))) = uint8(int32(*(*uint8)(unsafe.Pointer(z2 + uintptr(i)))) & ^(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z2 + uintptr(i)))]) & libc.Int32FromInt32(0x20)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_result_text(tls, context, z1, n, __ccgo_fp(Xsqlite3_free))
@@ -105970,6 +106936,7 @@ func _lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*uint8)(unsafe.Pointer(z1 + uintptr(i))) = _sqlite3UpperToLower[*(*uint8)(unsafe.Pointer(z2 + uintptr(i)))]
goto _1
_1:
+ ;
i++
}
Xsqlite3_result_text(tls, context, z1, n, __ccgo_fp(Xsqlite3_free))
@@ -106462,7 +107429,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+15220, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+15245, -int32(1))
return
}
if argc == int32(3) {
@@ -106474,7 +107441,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+15253, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+15278, -int32(1))
return
}
escape = _sqlite3Utf8Read(tls, bp+8)
@@ -106646,13 +107613,13 @@ func _sqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) {
switch Xsqlite3_value_type(tls, pValue) {
case int32(SQLITE_FLOAT):
r1 = Xsqlite3_value_double(tls, pValue)
- Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+5042, libc.VaList(bp+16, r1))
+ Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+15323, 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+15298, libc.VaList(bp+16, r1))
+ Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+15331, libc.VaList(bp+16, r1))
}
}
case int32(SQLITE_INTEGER):
@@ -106673,6 +107640,7 @@ func _sqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) {
*(*uint8)(unsafe.Pointer(zText + uintptr(i*int32(2)+int32(3)))) = _hexdigits[int32(*(*uint8)(unsafe.Pointer(zBlob + uintptr(i))))&int32(0x0F)]
goto _1
_1:
+ ;
i++
}
*(*uint8)(unsafe.Pointer(zText + uintptr(nBlob*int64(2)+int64(2)))) = uint8('\'')
@@ -106683,7 +107651,7 @@ func _sqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) {
}
case int32(SQLITE_TEXT):
zArg = Xsqlite3_value_text(tls, pValue)
- Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+15305, libc.VaList(bp+16, zArg))
+ Xsqlite3_str_appendf(tls, pStr, __ccgo_ts+15339, libc.VaList(bp+16, zArg))
default:
_ = libc.Int32FromInt32(0)
Xsqlite3_str_append(tls, pStr, __ccgo_ts+1649, int32(4))
@@ -106809,6 +107777,7 @@ func _charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _2
_2:
+ ;
i++
}
*(*uint8)(unsafe.Pointer(zOut)) = uint8(0)
@@ -106849,6 +107818,7 @@ func _hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*uint8)(unsafe.Pointer(v4)) = _hexdigits[int32(c)&int32(0xf)]
goto _2
_2:
+ ;
i++
pBlob++
}
@@ -106980,9 +107950,11 @@ func _unhexFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) {
}
}
unhex_done:
+ ;
Xsqlite3_result_blob(tls, pCtx, pBlob, int32(int64(p)-int64(pBlob)), __ccgo_fp(Xsqlite3_free))
return
unhex_null:
+ ;
Xsqlite3_free(tls, pBlob)
return
}
@@ -107038,7 +108010,7 @@ func _replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
if int32(*(*uint8)(unsafe.Pointer(zPattern))) == 0 {
_ = libc.Int32FromInt32(0)
- Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv)))
+ Xsqlite3_result_text(tls, context, zStr, nStr, uintptr(-libc.Int32FromInt32(1)))
return
}
nPattern = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8)))
@@ -107093,6 +108065,7 @@ func _replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -107151,6 +108124,7 @@ func _trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _2
_2:
+ ;
nChar++
}
if nChar > 0 {
@@ -107176,6 +108150,7 @@ func _trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*uint32)(unsafe.Pointer(aLen + uintptr(nChar)*4)) = uint32(int64(z) - int64(*(*uintptr)(unsafe.Pointer(azChar + uintptr(nChar)*8))))
goto _4
_4:
+ ;
nChar++
}
}
@@ -107197,6 +108172,7 @@ func _trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _6
_6:
+ ;
i++
}
if i >= nChar {
@@ -107220,6 +108196,7 @@ func _trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _7
_7:
+ ;
i++
}
if i >= nChar {
@@ -107240,7 +108217,7 @@ var _lenOne = [1]uint32{
}
var _azOne = [1]uintptr{
- 0: __ccgo_ts + 11177,
+ 0: __ccgo_ts + 11202,
}
// C documentation
@@ -107265,6 +108242,7 @@ func _concatFuncCore(tls *libc.TLS, context uintptr, argc int32, argv uintptr, n
n += int64(Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
goto _1
_1:
+ ;
i++
}
n += int64((argc - int32(1)) * nSep)
@@ -107293,6 +108271,7 @@ func _concatFuncCore(tls *libc.TLS, context uintptr, argc int32, argv uintptr, n
}
goto _2
_2:
+ ;
i++
}
*(*uint8)(unsafe.Pointer(z + uintptr(j))) = uint8(0)
@@ -107363,6 +108342,7 @@ func _soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
if *(*Tu8)(unsafe.Pointer(zIn + uintptr(i))) != 0 {
@@ -107386,6 +108366,7 @@ func _soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
}
goto _2
_2:
+ ;
i++
}
for j < int32(4) {
@@ -107398,7 +108379,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+15308, int32(4), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, context, __ccgo_ts+15342, int32(4), libc.UintptrFromInt32(0))
}
}
@@ -107459,7 +108440,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+12395, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+12420, -int32(1))
return
}
if argc == int32(2) {
@@ -107651,7 +108632,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+15197, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+15222, -int32(1))
} else {
if !(_sqlite3IsNaN(tls, (*TSumCtx)(unsafe.Pointer(p)).FrErr) != 0) {
Xsqlite3_result_double(tls, context, (*TSumCtx)(unsafe.Pointer(p)).FrSum+(*TSumCtx)(unsafe.Pointer(p)).FrErr)
@@ -107997,7 +108978,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+15313, int32(2))
+ rc = Xsqlite3_overload_function(tls, db, __ccgo_ts+15347, int32(2))
_ = libc.Int32FromInt32(0)
if rc == int32(SQLITE_NOMEM) {
_sqlite3OomFault(tls, db)
@@ -108027,12 +109008,13 @@ func _sqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3
if !(nArg <= int32(3)) {
break
}
- _sqlite3CreateFunc(tls, db, __ccgo_ts+15319, nArg, int32(SQLITE_UTF8), pInfo, __ccgo_fp(_likeFunc), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
- pDef = _sqlite3FindFunction(tls, db, __ccgo_ts+15319, nArg, uint8(SQLITE_UTF8), uint8(0))
+ _sqlite3CreateFunc(tls, db, __ccgo_ts+15353, nArg, int32(SQLITE_UTF8), pInfo, __ccgo_fp(_likeFunc), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
+ pDef = _sqlite3FindFunction(tls, db, __ccgo_ts+15353, 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
_1:
+ ;
nArg++
}
}
@@ -108347,562 +109329,562 @@ var _aBuiltinFunc = [110]TFuncDef{
FnArg: int8(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 + 15324,
+ FzName: __ccgo_ts + 15358,
},
1: {
FnArg: int8(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 + 15344,
+ FzName: __ccgo_ts + 15378,
},
2: {
FnArg: int8(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 + 15357,
+ FzName: __ccgo_ts + 15391,
},
3: {
FnArg: int8(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 + 15375,
+ FzName: __ccgo_ts + 15409,
},
4: {
FnArg: int8(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 + 15384,
+ FzName: __ccgo_ts + 15418,
},
5: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DIRECTONLY) | libc.Int32FromInt32(SQLITE_FUNC_UNSAFE)),
- FzName: __ccgo_ts + 15392,
+ FzName: __ccgo_ts + 15426,
},
6: {
FnArg: int8(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(SQLITE_DIRECTONLY) | libc.Int32FromInt32(SQLITE_FUNC_UNSAFE)),
- FzName: __ccgo_ts + 15392,
+ FzName: __ccgo_ts + 15426,
},
7: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15407,
+ FzName: __ccgo_ts + 15441,
},
8: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15433,
+ FzName: __ccgo_ts + 15467,
},
9: {
FnArg: int8(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 + 15458,
+ FzName: __ccgo_ts + 15492,
},
10: {
FnArg: int8(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 + 15467,
+ FzName: __ccgo_ts + 15501,
},
11: {
FnArg: int8(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 + 15478,
+ FzName: __ccgo_ts + 15512,
},
12: {
FnArg: int8(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 + 15485,
+ FzName: __ccgo_ts + 15519,
},
13: {
FnArg: int8(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 + 15499,
+ FzName: __ccgo_ts + 15533,
},
14: {
FnArg: int8(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 + 15499,
+ FzName: __ccgo_ts + 15533,
},
15: {
FnArg: int8(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 + 15505,
+ FzName: __ccgo_ts + 15539,
},
16: {
FnArg: int8(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 + 15505,
+ FzName: __ccgo_ts + 15539,
},
17: {
FnArg: int8(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 + 15511,
+ FzName: __ccgo_ts + 15545,
},
18: {
FnArg: int8(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 + 15511,
+ FzName: __ccgo_ts + 15545,
},
19: {
FnArg: int8(-int32(1)),
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 + 15516,
+ FzName: __ccgo_ts + 15550,
},
20: {
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 + 15516,
+ FzName: __ccgo_ts + 15550,
},
21: {
FnArg: int8(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 + 15516,
+ FzName: __ccgo_ts + 15550,
},
22: {
FnArg: int8(-int32(1)),
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 + 15520,
+ FzName: __ccgo_ts + 15554,
},
23: {
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 + 15520,
+ FzName: __ccgo_ts + 15554,
},
24: {
FnArg: int8(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 + 15520,
+ FzName: __ccgo_ts + 15554,
},
25: {
FnArg: int8(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 + 15524,
+ FzName: __ccgo_ts + 15558,
},
26: {
FnArg: int8(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 + 15531,
+ FzName: __ccgo_ts + 15565,
},
27: {
FnArg: int8(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 + 15539,
+ FzName: __ccgo_ts + 15573,
},
28: {
FnArg: int8(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 + 15546,
+ FzName: __ccgo_ts + 15580,
},
29: {
FnArg: int8(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 + 15559,
+ FzName: __ccgo_ts + 15593,
},
30: {
FnArg: int8(-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 + 15565,
+ FzName: __ccgo_ts + 15599,
},
31: {
FnArg: int8(-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 + 15572,
+ FzName: __ccgo_ts + 15606,
},
32: {
FnArg: int8(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 + 15579,
+ FzName: __ccgo_ts + 15613,
},
33: {
FnArg: int8(-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 + 15587,
+ FzName: __ccgo_ts + 15621,
},
34: {
FnArg: int8(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 + 15592,
+ FzName: __ccgo_ts + 15626,
},
35: {
FnArg: int8(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 + 15596,
+ FzName: __ccgo_ts + 15630,
},
36: {
FnArg: int8(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 + 15596,
+ FzName: __ccgo_ts + 15630,
},
37: {
FnArg: int8(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 + 15602,
+ FzName: __ccgo_ts + 15636,
},
38: {
FnArg: int8(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 + 15608,
+ FzName: __ccgo_ts + 15642,
},
39: {
FnArg: int8(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 + 15614,
+ FzName: __ccgo_ts + 15648,
},
40: {
FnArg: int8(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 + 15618,
+ FzName: __ccgo_ts + 15652,
},
41: {
FnArg: int8(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 + 15618,
+ FzName: __ccgo_ts + 15652,
},
42: {
FnArg: int8(-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 + 15624,
+ FzName: __ccgo_ts + 15658,
},
43: {
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 + 15624,
+ FzName: __ccgo_ts + 15658,
},
44: {
FnArg: int8(-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 + 15631,
+ FzName: __ccgo_ts + 15665,
},
45: {
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 + 15631,
+ FzName: __ccgo_ts + 15665,
},
46: {
FnArg: int8(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 + 15631,
+ FzName: __ccgo_ts + 15665,
},
47: {
FnArg: int8(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 + 15641,
+ FzName: __ccgo_ts + 15675,
},
48: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 15648,
+ FzName: __ccgo_ts + 15682,
},
49: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 15655,
+ FzName: __ccgo_ts + 15689,
},
50: {
FnArg: int8(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 + 15666,
+ FzName: __ccgo_ts + 15700,
},
51: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15673,
+ FzName: __ccgo_ts + 15707,
},
52: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_SLOCHNG) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15688,
+ FzName: __ccgo_ts + 15722,
},
53: {
FnArg: int8(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 + 15705,
+ FzName: __ccgo_ts + 15739,
},
54: {
FnArg: int8(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 + 15716,
+ FzName: __ccgo_ts + 15750,
},
55: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 15722,
+ FzName: __ccgo_ts + 15756,
},
56: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 15740,
+ FzName: __ccgo_ts + 15774,
},
57: {
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_UTF8) | libc.Int32FromInt32(0)*libc.Int32FromInt32(SQLITE_FUNC_NEEDCOLL)),
- FzName: __ccgo_ts + 15748,
+ FzName: __ccgo_ts + 15782,
},
58: {
FnArg: int8(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 + 15762,
+ FzName: __ccgo_ts + 15796,
},
59: {
FnArg: int8(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 + 15770,
+ FzName: __ccgo_ts + 15804,
},
60: {
FnArg: int8(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 + 15779,
+ FzName: __ccgo_ts + 15813,
},
61: {
FnArg: int8(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 + 15779,
+ FzName: __ccgo_ts + 15813,
},
62: {
FnArg: int8(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 + 15786,
+ FzName: __ccgo_ts + 15820,
},
63: {
FnArg: int8(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 + 15786,
+ FzName: __ccgo_ts + 15820,
},
64: {
FnArg: int8(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 + 15796,
+ FzName: __ccgo_ts + 15830,
},
65: {
FnArg: int8(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 + 15800,
+ FzName: __ccgo_ts + 15834,
},
66: {
FnArg: int8(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 + 15806,
+ FzName: __ccgo_ts + 15840,
},
67: {
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 + 15810,
+ FzName: __ccgo_ts + 15844,
},
68: {
FnArg: int8(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 + 15810,
+ FzName: __ccgo_ts + 15844,
},
69: {
FnArg: int8(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 + 15816,
+ FzName: __ccgo_ts + 15850,
},
70: {
FnArg: int8(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 + 15816,
+ FzName: __ccgo_ts + 15850,
},
71: {
FnArg: int8(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 + 15829,
+ FzName: __ccgo_ts + 15863,
},
72: {
FnArg: int8(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 + 15840,
+ FzName: __ccgo_ts + 15874,
},
73: {
FnArg: int8(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 + 15319,
+ FzName: __ccgo_ts + 15353,
},
74: {
FnArg: int8(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 + 15319,
+ FzName: __ccgo_ts + 15353,
},
75: {
FnArg: int8(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 + 6705,
+ FzName: __ccgo_ts + 6730,
},
76: {
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 + 6705,
+ FzName: __ccgo_ts + 6730,
},
77: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15845,
+ FzName: __ccgo_ts + 15879,
},
78: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15850,
+ FzName: __ccgo_ts + 15884,
},
79: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15858,
+ FzName: __ccgo_ts + 15892,
},
80: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15864,
+ FzName: __ccgo_ts + 15898,
},
81: {
FnArg: int8(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 + 15870,
+ FzName: __ccgo_ts + 15904,
},
82: {
FnArg: int8(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 + 15873,
+ FzName: __ccgo_ts + 15907,
},
83: {
FnArg: int8(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 + 15877,
+ FzName: __ccgo_ts + 15911,
},
84: {
FnArg: int8(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 + 15883,
+ FzName: __ccgo_ts + 15917,
},
85: {
FnArg: int8(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 + 15873,
+ FzName: __ccgo_ts + 15907,
},
86: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15888,
+ FzName: __ccgo_ts + 15922,
},
87: {
FnArg: int8(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15892,
+ FzName: __ccgo_ts + 15926,
},
88: {
FnArg: int8(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15896,
+ FzName: __ccgo_ts + 15930,
},
89: {
FnArg: int8(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15902,
+ FzName: __ccgo_ts + 15936,
},
90: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15906,
+ FzName: __ccgo_ts + 15940,
},
91: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15911,
+ FzName: __ccgo_ts + 15945,
},
92: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15916,
+ FzName: __ccgo_ts + 15950,
},
93: {
FnArg: int8(2),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15921,
+ FzName: __ccgo_ts + 15955,
},
94: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15927,
+ FzName: __ccgo_ts + 15961,
},
95: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15931,
+ FzName: __ccgo_ts + 15965,
},
96: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15935,
+ FzName: __ccgo_ts + 15969,
},
97: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15939,
+ FzName: __ccgo_ts + 15973,
},
98: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15944,
+ FzName: __ccgo_ts + 15978,
},
99: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15949,
+ FzName: __ccgo_ts + 15983,
},
100: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15954,
+ FzName: __ccgo_ts + 15988,
},
101: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15960,
+ FzName: __ccgo_ts + 15994,
},
102: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15966,
+ FzName: __ccgo_ts + 16000,
},
103: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15972,
+ FzName: __ccgo_ts + 16006,
},
104: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15977,
+ FzName: __ccgo_ts + 16011,
},
105: {
FnArg: int8(1),
FfuncFlags: uint32(libc.Int32FromInt32(SQLITE_FUNC_BUILTIN) | libc.Int32FromInt32(SQLITE_FUNC_CONSTANT) | libc.Int32FromInt32(SQLITE_UTF8)),
- FzName: __ccgo_ts + 15985,
+ FzName: __ccgo_ts + 16019,
},
106: {
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 + 15993,
+ FzName: __ccgo_ts + 16027,
},
107: {
FnArg: int8(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 + 15996,
+ FzName: __ccgo_ts + 16030,
},
108: {
FnArg: int8(-int32(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)),
- FzName: __ccgo_ts + 6705,
+ FzName: __ccgo_ts + 6730,
},
109: {
FnArg: int8(3),
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 + 16001,
+ FzName: __ccgo_ts + 16035,
},
}
@@ -109320,6 +110302,7 @@ func _sqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey
*(*int32)(unsafe.Pointer(aiCol + uintptr(i)*4)) = (*(*TsColMap)(unsafe.Pointer(pFKey + 64 + uintptr(i)*16))).FiFrom
goto _2
_2:
+ ;
i++
}
}
@@ -109359,6 +110342,7 @@ func _sqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey
}
goto _4
_4:
+ ;
j++
}
if j == nCol {
@@ -109366,6 +110350,7 @@ func _sqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey
}
goto _3
_3:
+ ;
i1++
}
if i1 == nCol {
@@ -109375,11 +110360,12 @@ func _sqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey
}
goto _1
_1:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
if !(pIdx != 0) {
if !((*TParse)(unsafe.Pointer(pParse)).FdisableTriggers != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16005, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TFKey)(unsafe.Pointer(pFKey)).FpFrom)).FzName, (*TFKey)(unsafe.Pointer(pFKey)).FzTo))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16039, 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)
@@ -109442,6 +110428,7 @@ func _fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pId
_sqlite3VdbeAddOp2(tls, v, int32(OP_IsNull), iReg, iOk)
goto _1
_1:
+ ;
i++
}
if isIgnore == 0 {
@@ -109481,6 +110468,7 @@ func _fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pId
_sqlite3VdbeAddOp2(tls, v, int32(OP_Copy), int32(_sqlite3TableColumnToStorage(tls, (*TFKey)(unsafe.Pointer(pFKey)).FpFrom, int16(*(*int32)(unsafe.Pointer(aiCol + uintptr(i)*4)))))+int32(1)+regData, regTemp1+i)
goto _2
_2:
+ ;
i++
}
/* If the parent table is the same as the child table, and we are about
@@ -109513,6 +110501,7 @@ func _fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pId
_sqlite3VdbeChangeP5(tls, v, uint16(SQLITE_JUMPIFNULL))
goto _3
_3:
+ ;
i++
}
_sqlite3VdbeGoto(tls, v, iOk)
@@ -109673,6 +110662,7 @@ func _fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr,
pWhere = _sqlite3ExprAnd(tls, pParse, pWhere, pEq)
goto _1
_1:
+ ;
i++
}
/* If the child table is the same as the parent table, then add terms
@@ -109710,6 +110700,7 @@ func _fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr,
pAll = _sqlite3ExprAnd(tls, pParse, pAll, pEq1)
goto _4
_4:
+ ;
i++
}
pNe = _sqlite3PExpr(tls, pParse, int32(TK_NOT), pAll, uintptr(0))
@@ -109816,10 +110807,12 @@ func _sqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) {
*(*uintptr)(unsafe.Pointer(pFKey + 48 + 1*8)) = uintptr(0)
goto _2
_2:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextFrom
}
goto _1
_1:
+ ;
k = (*THashElem)(unsafe.Pointer(k)).Fnext
}
}
@@ -109868,6 +110861,7 @@ func _sqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uint
}
goto _1
_1:
+ ;
p = (*TFKey)(unsafe.Pointer(p)).FpNextFrom
}
if !(p != 0) {
@@ -109929,6 +110923,7 @@ func _fkChildIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr,
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -109977,10 +110972,12 @@ func _fkParentIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr
}
goto _2
_2:
+ ;
iKey++
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -110109,6 +111106,7 @@ func _sqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32,
_sqlite3VdbeAddOp2(tls, v, int32(OP_IsNull), iReg, iJump)
goto _2
_2:
+ ;
i++
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_FkCounter), int32((*TFKey)(unsafe.Pointer(pFKey)).FisDeferred), -int32(1))
@@ -110146,6 +111144,7 @@ func _sqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32,
}
goto _3
_3:
+ ;
i++
}
/* Take a shared-cache advisory read-lock on the parent table. Allocate
@@ -110173,6 +111172,7 @@ func _sqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32,
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 8)))
goto _1
_1:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextFrom
}
/* Loop through all the foreign key constraints that refer to this table.
@@ -110248,6 +111248,7 @@ func _sqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32,
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 32)))
goto _5
_5:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextTo
}
}
@@ -110291,10 +111292,12 @@ func _sqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) (r Tu32) {
mask |= v3
goto _2
_2:
+ ;
i++
}
goto _1
_1:
+ ;
p = (*TFKey)(unsafe.Pointer(p)).FpNextFrom
}
p = _sqlite3FkReferences(tls, pTab)
@@ -110319,11 +111322,13 @@ func _sqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) (r Tu32) {
mask |= v6
goto _5
_5:
+ ;
i++
}
}
goto _4
_4:
+ ;
p = (*TFKey)(unsafe.Pointer(p)).FpNextTo
}
}
@@ -110391,6 +111396,7 @@ func _sqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uin
}
goto _1
_1:
+ ;
p = (*TFKey)(unsafe.Pointer(p)).FpNextFrom
}
/* Check if any parent key columns are being modified. */
@@ -110407,6 +111413,7 @@ func _sqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uin
}
goto _2
_2:
+ ;
p = (*TFKey)(unsafe.Pointer(p)).FpNextTo
}
}
@@ -110490,11 +111497,11 @@ func _fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr
break
}
*(*TToken)(unsafe.Pointer(bp + 16)) = TToken{
- Fz: __ccgo_ts + 6571,
+ Fz: __ccgo_ts + 6596,
Fn: uint32(3),
} /* Literal "old" token */
*(*TToken)(unsafe.Pointer(bp + 32)) = TToken{
- Fz: __ccgo_ts + 6567,
+ Fz: __ccgo_ts + 6592,
Fn: uint32(3),
} /* tFromCol = OLD.tToCol */
if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 {
@@ -110553,6 +111560,7 @@ func _fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr
}
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 8)))
@@ -110560,7 +111568,7 @@ func _fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr
nFrom = _sqlite3Strlen30(tls, zFrom)
if action == int32(OE_Restrict) {
iDb = _sqlite3SchemaToIndex(tls, db, (*TTable)(unsafe.Pointer(pTab)).FpSchema)
- pRaise = _sqlite3Expr(tls, db, int32(TK_RAISE), __ccgo_ts+5200)
+ pRaise = _sqlite3Expr(tls, db, int32(TK_RAISE), __ccgo_ts+5225)
if pRaise != 0 {
(*TExpr)(unsafe.Pointer(pRaise)).FaffExpr = uint8(OE_Abort)
}
@@ -110662,6 +111670,7 @@ func _sqlite3FkActions(tls *libc.TLS, pParse uintptr, pTab uintptr, pChanges uin
}
goto _1
_1:
+ ;
pFKey = (*TFKey)(unsafe.Pointer(pFKey)).FpNextTo
}
}
@@ -110717,6 +111726,7 @@ func _sqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) {
_sqlite3DbFree(tls, db, pFKey)
goto _1
_1:
+ ;
pFKey = pNext
}
}
@@ -110838,6 +111848,7 @@ func _computeIndexAffStr(tls *libc.TLS, db uintptr, pIdx uintptr) (r uintptr) {
*(*uint8)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FzColAff + uintptr(n))) = aff
goto _1
_1:
+ ;
n++
}
*(*uint8)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FzColAff + uintptr(n))) = uint8(0)
@@ -110878,6 +111889,7 @@ func _sqlite3TableAffinityStr(tls *libc.TLS, db uintptr, pTab uintptr) (r uintpt
}
goto _1
_1:
+ ;
i++
}
for cond := true; cond; cond = j >= 0 && int32(*(*uint8)(unsafe.Pointer(zColAff + uintptr(j)))) <= int32(SQLITE_AFF_BLOB) {
@@ -111014,6 +112026,7 @@ func _readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) (r int32) {
}
goto _3
_3:
+ ;
pIndex = (*TIndex)(unsafe.Pointer(pIndex)).FpNext
}
}
@@ -111024,6 +112037,7 @@ func _readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
return 0
@@ -111088,6 +112102,7 @@ func _sqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in
jj++
goto _1
_1:
+ ;
ii++
}
} else {
@@ -111114,6 +112129,7 @@ func _sqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in
}
goto _3
_3:
+ ;
i++
}
*(*uintptr)(unsafe.Pointer(bp + 40)) = pTab
@@ -111155,11 +112171,12 @@ func _sqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in
}
goto _5
_5:
+ ;
i++
}
}
if pRedo != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8137, libc.VaList(bp+56, (*TColumn)(unsafe.Pointer(pRedo)).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+8162, libc.VaList(bp+56, (*TColumn)(unsafe.Pointer(pRedo)).FzCnName))
}
(*TParse)(unsafe.Pointer(pParse)).FiSelfTab = 0
}
@@ -111285,6 +112302,7 @@ func _sqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) {
}
goto _1
_1:
+ ;
p = (*TAutoincInfo)(unsafe.Pointer(p)).FpNext
}
}
@@ -111392,6 +112410,7 @@ func _autoIncrementEnd(tls *libc.TLS, pParse uintptr) {
_sqlite3ReleaseTempReg(tls, pParse, iRec)
goto _1
_1:
+ ;
p = (*TAutoincInfo)(unsafe.Pointer(p)).FpNext
}
}
@@ -111670,6 +112689,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
*(*int32)(unsafe.Pointer(pColumn + 8 + uintptr(i)*16 + 8)) = -int32(1)
goto _2
_2:
+ ;
i++
}
i = 0
@@ -111692,13 +112712,14 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
_ = libc.Int32FromInt32(0)
}
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+16050, libc.VaList(bp+128, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16084, libc.VaList(bp+128, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
goto insert_cleanup
}
break
}
goto _4
_4:
+ ;
j++
}
if j >= int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
@@ -111706,13 +112727,14 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
ipkColumn = i
bIdListInOrder = uint8(0)
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16091, libc.VaList(bp+128, pTabList+8, (*(*TIdList_item)(unsafe.Pointer(pColumn + 8 + uintptr(i)*16))).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16125, libc.VaList(bp+128, pTabList+8, (*(*TIdList_item)(unsafe.Pointer(pColumn + 8 + uintptr(i)*16))).FzName))
(*TParse)(unsafe.Pointer(pParse)).FcheckSchema = uint8(1)
goto insert_cleanup
}
}
goto _3
_3:
+ ;
i++
}
}
@@ -111807,6 +112829,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
goto _10
_10:
+ ;
i--
}
}
@@ -111827,16 +112850,17 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
goto _11
_11:
+ ;
i++
}
}
if nColumn != int32((*TTable)(unsafe.Pointer(pTab)).FnCol)-nHidden {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16123, libc.VaList(bp+128, pTabList+8, int32((*TTable)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16157, 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+16175, libc.VaList(bp+128, nColumn, (*TIdList)(unsafe.Pointer(pColumn)).FnId))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16209, libc.VaList(bp+128, nColumn, (*TIdList)(unsafe.Pointer(pColumn)).FnId))
goto insert_cleanup
}
/* Initialize the count of rows to be inserted
@@ -111869,6 +112893,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
*(*int32)(unsafe.Pointer(pParse + 56)) += int32((*TIndex)(unsafe.Pointer(pIdx)).FnColumn)
goto _14
_14:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
i++
}
@@ -111879,11 +112904,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+16200, libc.VaList(bp+128, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16234, 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+16246, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+16280, 0)
goto insert_cleanup
}
if _sqlite3HasExplicitNulls(tls, pParse, (*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertTarget) != 0 {
@@ -111897,7 +112922,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
(*TUpsert)(unsafe.Pointer(pNx)).FiDataCur = *(*int32)(unsafe.Pointer(bp))
(*TUpsert)(unsafe.Pointer(pNx)).FiIdxCur = *(*int32)(unsafe.Pointer(bp + 4))
if (*TUpsert)(unsafe.Pointer(pNx)).FpUpsertTarget != 0 {
- if _sqlite3UpsertAnalyzeTarget(tls, pParse, pTabList, pNx) != 0 {
+ if _sqlite3UpsertAnalyzeTarget(tls, pParse, pTabList, pNx, pUpsert) != 0 {
goto insert_cleanup
}
}
@@ -112001,6 +113026,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
goto _22
_22:
+ ;
j++
}
if j >= (*TIdList)(unsafe.Pointer(pColumn)).FnId {
@@ -112041,6 +113067,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
goto _20
_20:
+ ;
i++
iRegStore++
}
@@ -112200,6 +113227,7 @@ func _sqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uin
}
}
insert_end:
+ ;
/* Update the sqlite_sequence table by storing the content of the
** maximum rowid counter values recorded while inserting into
** autoincrement tables.
@@ -112213,9 +113241,10 @@ insert_end:
** invoke the callback function.
*/
if regRowCount != 0 {
- _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+16267)
+ _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+16301)
}
insert_cleanup:
+ ;
_sqlite3SrcListDelete(tls, db, pTabList)
_sqlite3ExprListDelete(tls, db, pList)
_sqlite3UpsertDelete(tls, db, pUpsert)
@@ -112610,7 +113639,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+12356, libc.VaList(bp+64, (*TTable)(unsafe.Pointer(pTab)).FzName, (*TColumn)(unsafe.Pointer(pCol)).FzCnName))
+ zMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+12381, 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))
@@ -112621,6 +113650,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
} /* end switch(onError) */
goto _1
_1:
+ ;
i++
} /* end loop i over columns */
if nGenerated == 0 && nSeenReplace == 0 {
@@ -112687,6 +113717,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
_sqlite3VdbeResolveLabel(tls, v, allOk)
goto _3
_3:
+ ;
i++
}
(*TParse)(unsafe.Pointer(pParse)).FiSelfTab = 0
@@ -112747,6 +113778,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
_ = libc.Int32FromInt32(0)
goto _4
_4:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
nIdx++
}
@@ -112786,6 +113818,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
i++
goto _5
_5:
+ ;
pTerm = (*TUpsert)(unsafe.Pointer(pTerm)).FpNextUpsert
}
jj = 0
@@ -112802,6 +113835,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
i++
goto _6
_6:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
jj++
}
@@ -113031,6 +114065,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
}
goto _10
_10:
+ ;
i++
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_MakeRecord), regIdx, int32((*TIndex)(unsafe.Pointer(pIdx)).FnColumn), *(*int32)(unsafe.Pointer(aRegIdx + uintptr(*(*int32)(unsafe.Pointer(bp)))*4)))
@@ -113106,6 +114141,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iThisCur, x1, regR+i)
goto _12
_12:
+ ;
i++
}
}
@@ -113142,6 +114178,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
_sqlite3VdbeChangeP5(tls, v, uint16(SQLITE_NOTNULL))
goto _14
_14:
+ ;
i++
}
}
@@ -113238,6 +114275,7 @@ func _sqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
}
goto _9
_9:
+ ;
pIdx = _indexIteratorNext(tls, bp+8, bp)
}
/* If the IPK constraint is a REPLACE, run it last */
@@ -113351,6 +114389,7 @@ func _sqlite3CompleteInsertion(tls *libc.TLS, pParse uintptr, pTab uintptr, iDat
_sqlite3VdbeChangeP5(tls, v, uint16(pik_flags))
goto _1
_1:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
i++
}
@@ -113460,6 +114499,7 @@ func _sqlite3OpenTableAndIndices(tls *libc.TLS, pParse uintptr, pTab uintptr, op
}
goto _3
_3:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
i++
}
@@ -113515,6 +114555,7 @@ func _xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) (r int32)
}
goto _1
_1:
+ ;
i++
}
if _sqlite3ExprCompare(tls, uintptr(0), (*TIndex)(unsafe.Pointer(pSrc)).FpPartIdxWhere, (*TIndex)(unsafe.Pointer(pDest)).FpPartIdxWhere, -int32(1)) != 0 {
@@ -113700,6 +114741,7 @@ func _xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uin
}
goto _1
_1:
+ ;
i++
}
pDestIdx = (*TTable)(unsafe.Pointer(pDest)).FpIndex
@@ -113720,6 +114762,7 @@ func _xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uin
}
goto _3
_3:
+ ;
pSrcIdx = (*TIndex)(unsafe.Pointer(pSrcIdx)).FpNext
}
if pSrcIdx == uintptr(0) {
@@ -113733,6 +114776,7 @@ func _xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uin
}
goto _2
_2:
+ ;
pDestIdx = (*TIndex)(unsafe.Pointer(pDestIdx)).FpNext
}
if (*TTable)(unsafe.Pointer(pDest)).FpCheck != 0 && _sqlite3ExprListCompare(tls, (*TTable)(unsafe.Pointer(pSrc)).FpCheck, (*TTable)(unsafe.Pointer(pDest)).FpCheck, -int32(1)) != 0 {
@@ -113858,6 +114902,7 @@ func _xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uin
}
goto _9
_9:
+ ;
pSrcIdx = (*TIndex)(unsafe.Pointer(pSrcIdx)).FpNext
}
_ = libc.Int32FromInt32(0)
@@ -113893,6 +114938,7 @@ func _xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uin
}
goto _10
_10:
+ ;
i++
}
if i == int32((*TIndex)(unsafe.Pointer(pSrcIdx)).FnColumn) {
@@ -113919,6 +114965,7 @@ func _xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uin
_sqlite3VdbeAddOp2(tls, v, int32(OP_Close), iDest, 0)
goto _8
_8:
+ ;
pDestIdx = (*TIndex)(unsafe.Pointer(pDestIdx)).FpNext
}
if emptySrcTest != 0 {
@@ -113983,7 +115030,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(135301))
+ return _sqlite3MisuseError(tls, int32(135390))
}
if zSql == uintptr(0) {
zSql = __ccgo_ts + 1648
@@ -114026,6 +115073,7 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Tsqlite3_c
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
i++
}
callbackIsInit = int32(1)
@@ -114044,6 +115092,7 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Tsqlite3_c
}
goto _2
_2:
+ ;
i++
}
*(*uintptr)(unsafe.Pointer(azVals + uintptr(i)*8)) = uintptr(0)
@@ -114073,6 +115122,7 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Tsqlite3_c
azCols = uintptr(0)
}
exec_out:
+ ;
if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 {
_sqlite3VdbeFinalize(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
}
@@ -114785,14 +115835,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+12395, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+12420, 0)
}
return int32(SQLITE_ERROR)
}
if zProc != 0 {
v1 = zProc
} else {
- v1 = __ccgo_ts + 16284
+ v1 = __ccgo_ts + 16318
}
zEntry = v1
/* tag-20210611-1. Some dlopen() implementations will segfault if given
@@ -114817,7 +115867,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+12356, libc.VaList(bp+16, zFile, _azEndings[ii]))
+ zAltFile = Xsqlite3_mprintf(tls, __ccgo_ts+12381, libc.VaList(bp+16, zFile, _azEndings[ii]))
if zAltFile == uintptr(0) {
return int32(SQLITE_NOMEM)
}
@@ -114827,6 +115877,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
Xsqlite3_free(tls, zAltFile)
goto _2
_2:
+ ;
ii++
}
if handle == uintptr(0) {
@@ -114851,7 +115902,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+16307, uint64(8))
+ libc.Xmemcpy(tls, zAltEntry, __ccgo_ts+16341, uint64(8))
iFile = ncFile - int32(1)
for {
if !(iFile >= 0 && !(int32(*(*uint8)(unsafe.Pointer(zFile + uintptr(iFile)))) == libc.Int32FromUint8('/'))) {
@@ -114859,10 +115910,11 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
}
goto _3
_3:
+ ;
iFile--
}
iFile++
- if Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), __ccgo_ts+16316, int32(3)) == 0 {
+ if Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), __ccgo_ts+16350, int32(3)) == 0 {
iFile += int32(3)
}
iEntry = int32(8)
@@ -114879,9 +115931,10 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
}
goto _4
_4:
+ ;
iFile++
}
- libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), __ccgo_ts+16320, uint64(6))
+ libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), __ccgo_ts+16354, uint64(6))
zEntry = zAltEntry
xInit = _sqlite3OsDlSym(tls, pVfs, handle, zEntry)
}
@@ -114893,7 +115946,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
*(*uintptr)(unsafe.Pointer(pzErrMsg)) = v7
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
_ = libc.Int32FromInt32(0) /* zErrmsg would be NULL if not so */
- Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+16326, libc.VaList(bp+16, zEntry, zFile))
+ Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+16360, libc.VaList(bp+16, zEntry, zFile))
_sqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp)))
}
}
@@ -114908,7 +115961,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+16369, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+16403, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
_sqlite3OsDlClose(tls, pVfs, handle)
@@ -114930,6 +115983,7 @@ func _sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintp
*(*uintptr)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaExtension + uintptr(v8)*8)) = handle
return SQLITE_OK
extension_not_found:
+ ;
if pzErrMsg != 0 {
nMsg += uint64(300)
v10 = Xsqlite3_malloc64(tls, nMsg)
@@ -114937,7 +115991,7 @@ extension_not_found:
*(*uintptr)(unsafe.Pointer(pzErrMsg)) = v10
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
_ = libc.Int32FromInt32(0) /* zErrmsg would be NULL if not so */
- Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+16401, libc.VaList(bp+16, int32(FILENAME_MAX), zFile))
+ Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+16435, libc.VaList(bp+16, int32(FILENAME_MAX), zFile))
_sqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp)))
}
}
@@ -114946,7 +116000,7 @@ extension_not_found:
/* Shared library endings to try if zFile cannot be loaded as written */
var _azEndings = [1]uintptr{
- 0: __ccgo_ts + 16281,
+ 0: __ccgo_ts + 16315,
}
func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) (r int32) {
@@ -114977,6 +116031,7 @@ func _sqlite3CloseExtensions(tls *libc.TLS, db uintptr) {
_sqlite3OsDlClose(tls, (*Tsqlite3)(unsafe.Pointer(db)).FpVfs, *(*uintptr)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaExtension + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, db, (*Tsqlite3)(unsafe.Pointer(db)).FaExtension)
@@ -115060,6 +116115,7 @@ func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
if i == _sqlite3Autoext.FnExt {
@@ -115111,6 +116167,7 @@ func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) (r int32) {
}
goto _1
_1:
+ ;
i--
}
Xsqlite3_mutex_leave(tls, mutex)
@@ -115178,12 +116235,13 @@ func _sqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) {
rc = v2
}
if v3 && v2 != 0 {
- _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+16438, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
+ _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+16472, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp))))
go1 = 0
}
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
goto _1
_1:
+ ;
i++
}
}
@@ -115231,63 +116289,63 @@ func _sqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) {
// ** result column is different from the name of the pragma
// */
var _pragCName = [57]uintptr{
- 0: __ccgo_ts + 5456,
- 1: __ccgo_ts + 16477,
- 2: __ccgo_ts + 9033,
- 3: __ccgo_ts + 16481,
- 4: __ccgo_ts + 16486,
- 5: __ccgo_ts + 16489,
- 6: __ccgo_ts + 16499,
- 7: __ccgo_ts + 16509,
- 8: __ccgo_ts + 16515,
- 9: __ccgo_ts + 16519,
- 10: __ccgo_ts + 16524,
- 11: __ccgo_ts + 16529,
- 12: __ccgo_ts + 16537,
- 13: __ccgo_ts + 16548,
- 14: __ccgo_ts + 16551,
- 15: __ccgo_ts + 16558,
- 16: __ccgo_ts + 16519,
- 17: __ccgo_ts + 16524,
- 18: __ccgo_ts + 16565,
- 19: __ccgo_ts + 16570,
- 20: __ccgo_ts + 16573,
- 21: __ccgo_ts + 16580,
- 22: __ccgo_ts + 16515,
- 23: __ccgo_ts + 16519,
- 24: __ccgo_ts + 16586,
- 25: __ccgo_ts + 16591,
- 26: __ccgo_ts + 16596,
- 27: __ccgo_ts + 16519,
- 28: __ccgo_ts + 16600,
- 29: __ccgo_ts + 16524,
- 30: __ccgo_ts + 16608,
- 31: __ccgo_ts + 16612,
- 32: __ccgo_ts + 16617,
- 33: __ccgo_ts + 11772,
- 34: __ccgo_ts + 11768,
- 35: __ccgo_ts + 16623,
- 36: __ccgo_ts + 16628,
- 37: __ccgo_ts + 16633,
- 38: __ccgo_ts + 16477,
- 39: __ccgo_ts + 16519,
- 40: __ccgo_ts + 16638,
- 41: __ccgo_ts + 16645,
- 42: __ccgo_ts + 16652,
- 43: __ccgo_ts + 9033,
- 44: __ccgo_ts + 16660,
- 45: __ccgo_ts + 5459,
- 46: __ccgo_ts + 16666,
- 47: __ccgo_ts + 16477,
- 48: __ccgo_ts + 16519,
- 49: __ccgo_ts + 16671,
- 50: __ccgo_ts + 16676,
- 51: __ccgo_ts + 15873,
- 52: __ccgo_ts + 16681,
- 53: __ccgo_ts + 16694,
- 54: __ccgo_ts + 16703,
- 55: __ccgo_ts + 16710,
- 56: __ccgo_ts + 16721,
+ 0: __ccgo_ts + 5481,
+ 1: __ccgo_ts + 16511,
+ 2: __ccgo_ts + 9058,
+ 3: __ccgo_ts + 16515,
+ 4: __ccgo_ts + 16520,
+ 5: __ccgo_ts + 16523,
+ 6: __ccgo_ts + 16533,
+ 7: __ccgo_ts + 16543,
+ 8: __ccgo_ts + 16549,
+ 9: __ccgo_ts + 16553,
+ 10: __ccgo_ts + 16558,
+ 11: __ccgo_ts + 16563,
+ 12: __ccgo_ts + 16571,
+ 13: __ccgo_ts + 16582,
+ 14: __ccgo_ts + 16585,
+ 15: __ccgo_ts + 16592,
+ 16: __ccgo_ts + 16553,
+ 17: __ccgo_ts + 16558,
+ 18: __ccgo_ts + 16599,
+ 19: __ccgo_ts + 16604,
+ 20: __ccgo_ts + 16607,
+ 21: __ccgo_ts + 16614,
+ 22: __ccgo_ts + 16549,
+ 23: __ccgo_ts + 16553,
+ 24: __ccgo_ts + 16620,
+ 25: __ccgo_ts + 16625,
+ 26: __ccgo_ts + 16630,
+ 27: __ccgo_ts + 16553,
+ 28: __ccgo_ts + 16634,
+ 29: __ccgo_ts + 16558,
+ 30: __ccgo_ts + 16642,
+ 31: __ccgo_ts + 16646,
+ 32: __ccgo_ts + 16651,
+ 33: __ccgo_ts + 11797,
+ 34: __ccgo_ts + 11793,
+ 35: __ccgo_ts + 16657,
+ 36: __ccgo_ts + 16662,
+ 37: __ccgo_ts + 16667,
+ 38: __ccgo_ts + 16511,
+ 39: __ccgo_ts + 16553,
+ 40: __ccgo_ts + 16672,
+ 41: __ccgo_ts + 16679,
+ 42: __ccgo_ts + 16686,
+ 43: __ccgo_ts + 9058,
+ 44: __ccgo_ts + 16694,
+ 45: __ccgo_ts + 5484,
+ 46: __ccgo_ts + 16700,
+ 47: __ccgo_ts + 16511,
+ 48: __ccgo_ts + 16553,
+ 49: __ccgo_ts + 16705,
+ 50: __ccgo_ts + 16710,
+ 51: __ccgo_ts + 15907,
+ 52: __ccgo_ts + 16715,
+ 53: __ccgo_ts + 16728,
+ 54: __ccgo_ts + 16737,
+ 55: __ccgo_ts + 16744,
+ 56: __ccgo_ts + 16755,
}
// C documentation
@@ -115306,191 +116364,191 @@ type PragmaName = TPragmaName
var _aPragmaName = [66]TPragmaName{
0: {
- FzName: __ccgo_ts + 16729,
+ FzName: __ccgo_ts + 16763,
FePragTyp: uint8(PragTyp_ANALYSIS_LIMIT),
FmPragFlg: uint8(PragFlg_Result0),
},
1: {
- FzName: __ccgo_ts + 16744,
+ FzName: __ccgo_ts + 16778,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NoColumns1) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_APPLICATION_ID),
},
2: {
- FzName: __ccgo_ts + 16759,
+ FzName: __ccgo_ts + 16793,
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 + 16771,
+ FzName: __ccgo_ts + 16805,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_AutoIndex),
},
4: {
- FzName: __ccgo_ts + 16787,
+ FzName: __ccgo_ts + 16821,
FePragTyp: uint8(PragTyp_BUSY_TIMEOUT),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(56),
FnPragCName: uint8(1),
},
5: {
- FzName: __ccgo_ts + 16710,
+ FzName: __ccgo_ts + 16744,
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 + 16800,
+ FzName: __ccgo_ts + 16834,
FePragTyp: uint8(PragTyp_CACHE_SPILL),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
7: {
- FzName: __ccgo_ts + 16812,
+ FzName: __ccgo_ts + 16846,
FePragTyp: uint8(PragTyp_CASE_SENSITIVE_LIKE),
FmPragFlg: uint8(PragFlg_NoColumns),
},
8: {
- FzName: __ccgo_ts + 16832,
+ FzName: __ccgo_ts + 16866,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_CellSizeCk),
},
9: {
- FzName: __ccgo_ts + 16848,
+ FzName: __ccgo_ts + 16882,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_CkptFullFSync),
},
10: {
- FzName: __ccgo_ts + 16869,
+ FzName: __ccgo_ts + 16903,
FePragTyp: uint8(PragTyp_COLLATION_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(38),
FnPragCName: uint8(2),
},
11: {
- FzName: __ccgo_ts + 16884,
+ FzName: __ccgo_ts + 16918,
FePragTyp: uint8(PragTyp_COMPILE_OPTIONS),
FmPragFlg: uint8(PragFlg_Result0),
},
12: {
- FzName: __ccgo_ts + 16900,
+ FzName: __ccgo_ts + 16934,
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 + 16914,
+ FzName: __ccgo_ts + 16948,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_ReadOnly) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_DATA_VERSION),
},
14: {
- FzName: __ccgo_ts + 16927,
+ FzName: __ccgo_ts + 16961,
FePragTyp: uint8(PragTyp_DATABASE_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(47),
FnPragCName: uint8(3),
},
15: {
- FzName: __ccgo_ts + 16941,
+ FzName: __ccgo_ts + 16975,
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),
},
16: {
- FzName: __ccgo_ts + 16960,
+ FzName: __ccgo_ts + 16994,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_DeferFKs),
},
17: {
- FzName: __ccgo_ts + 16979,
+ FzName: __ccgo_ts + 17013,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_NullCallback),
},
18: {
- FzName: __ccgo_ts + 17002,
+ FzName: __ccgo_ts + 17036,
FePragTyp: uint8(PragTyp_ENCODING),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
19: {
- FzName: __ccgo_ts + 17011,
+ FzName: __ccgo_ts + 17045,
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),
},
20: {
- FzName: __ccgo_ts + 17029,
+ FzName: __ccgo_ts + 17063,
FePragTyp: uint8(PragTyp_FOREIGN_KEY_LIST),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FnPragCName: uint8(8),
},
21: {
- FzName: __ccgo_ts + 17046,
+ FzName: __ccgo_ts + 17080,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_ForeignKeys),
},
22: {
- FzName: __ccgo_ts + 17059,
+ FzName: __ccgo_ts + 17093,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_ReadOnly) | libc.Int32FromInt32(PragFlg_Result0)),
},
23: {
- FzName: __ccgo_ts + 17074,
+ FzName: __ccgo_ts + 17108,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_FullColNames),
},
24: {
- FzName: __ccgo_ts + 17092,
+ FzName: __ccgo_ts + 17126,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_FullFSync),
},
25: {
- FzName: __ccgo_ts + 17102,
+ FzName: __ccgo_ts + 17136,
FePragTyp: uint8(PragTyp_FUNCTION_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(27),
FnPragCName: uint8(6),
},
26: {
- FzName: __ccgo_ts + 17116,
+ FzName: __ccgo_ts + 17150,
FePragTyp: uint8(PragTyp_HARD_HEAP_LIMIT),
FmPragFlg: uint8(PragFlg_Result0),
},
27: {
- FzName: __ccgo_ts + 17132,
+ FzName: __ccgo_ts + 17166,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_IgnoreChecks),
},
28: {
- FzName: __ccgo_ts + 17157,
+ FzName: __ccgo_ts + 17191,
FePragTyp: uint8(PragTyp_INCREMENTAL_VACUUM),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_NoColumns)),
},
29: {
- FzName: __ccgo_ts + 17176,
+ FzName: __ccgo_ts + 17210,
FePragTyp: uint8(PragTyp_INDEX_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(21),
FnPragCName: uint8(3),
},
30: {
- FzName: __ccgo_ts + 17187,
+ FzName: __ccgo_ts + 17221,
FePragTyp: uint8(PragTyp_INDEX_LIST),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(38),
FnPragCName: uint8(5),
},
31: {
- FzName: __ccgo_ts + 17198,
+ FzName: __ccgo_ts + 17232,
FePragTyp: uint8(PragTyp_INDEX_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(21),
@@ -115498,146 +116556,146 @@ var _aPragmaName = [66]TPragmaName{
FiArg: uint64(1),
},
32: {
- FzName: __ccgo_ts + 17210,
+ FzName: __ccgo_ts + 17244,
FePragTyp: uint8(PragTyp_INTEGRITY_CHECK),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
},
33: {
- FzName: __ccgo_ts + 17226,
+ FzName: __ccgo_ts + 17260,
FePragTyp: uint8(PragTyp_JOURNAL_MODE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
34: {
- FzName: __ccgo_ts + 17239,
+ FzName: __ccgo_ts + 17273,
FePragTyp: uint8(PragTyp_JOURNAL_SIZE_LIMIT),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
35: {
- FzName: __ccgo_ts + 17258,
+ FzName: __ccgo_ts + 17292,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_LegacyAlter),
},
36: {
- FzName: __ccgo_ts + 17277,
+ FzName: __ccgo_ts + 17311,
FePragTyp: uint8(PragTyp_LOCKING_MODE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
37: {
- FzName: __ccgo_ts + 17290,
+ FzName: __ccgo_ts + 17324,
FePragTyp: uint8(PragTyp_PAGE_COUNT),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
38: {
- FzName: __ccgo_ts + 17305,
+ FzName: __ccgo_ts + 17339,
FePragTyp: uint8(PragTyp_MMAP_SIZE),
},
39: {
- FzName: __ccgo_ts + 17315,
+ FzName: __ccgo_ts + 17349,
FePragTyp: uint8(PragTyp_MODULE_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(9),
FnPragCName: uint8(1),
},
40: {
- FzName: __ccgo_ts + 17327,
+ FzName: __ccgo_ts + 17361,
FePragTyp: uint8(PragTyp_OPTIMIZE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_NeedSchema)),
},
41: {
- FzName: __ccgo_ts + 17336,
+ FzName: __ccgo_ts + 17370,
FePragTyp: uint8(PragTyp_PAGE_COUNT),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq)),
},
42: {
- FzName: __ccgo_ts + 17347,
+ FzName: __ccgo_ts + 17381,
FePragTyp: uint8(PragTyp_PAGE_SIZE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
43: {
- FzName: __ccgo_ts + 17357,
+ FzName: __ccgo_ts + 17391,
FePragTyp: uint8(PragTyp_PRAGMA_LIST),
FmPragFlg: uint8(PragFlg_Result0),
FiPragCName: uint8(9),
FnPragCName: uint8(1),
},
44: {
- FzName: __ccgo_ts + 17369,
+ FzName: __ccgo_ts + 17403,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_QueryOnly),
},
45: {
- FzName: __ccgo_ts + 17380,
+ FzName: __ccgo_ts + 17414,
FePragTyp: uint8(PragTyp_INTEGRITY_CHECK),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
},
46: {
- FzName: __ccgo_ts + 17392,
+ FzName: __ccgo_ts + 17426,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(libc.Int32FromInt32(0x00004)) << libc.Int32FromInt32(32),
},
47: {
- FzName: __ccgo_ts + 17409,
+ FzName: __ccgo_ts + 17443,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_RecTriggers),
},
48: {
- FzName: __ccgo_ts + 17428,
+ FzName: __ccgo_ts + 17462,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_ReverseOrder),
},
49: {
- FzName: __ccgo_ts + 17454,
+ FzName: __ccgo_ts + 17488,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NoColumns1) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_SCHEMA_VERSION),
},
50: {
- FzName: __ccgo_ts + 17469,
+ FzName: __ccgo_ts + 17503,
FePragTyp: uint8(PragTyp_SECURE_DELETE),
FmPragFlg: uint8(PragFlg_Result0),
},
51: {
- FzName: __ccgo_ts + 17483,
+ FzName: __ccgo_ts + 17517,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_ShortColNames),
},
52: {
- FzName: __ccgo_ts + 17502,
+ FzName: __ccgo_ts + 17536,
FePragTyp: uint8(PragTyp_SHRINK_MEMORY),
FmPragFlg: uint8(PragFlg_NoColumns),
},
53: {
- FzName: __ccgo_ts + 17516,
+ FzName: __ccgo_ts + 17550,
FePragTyp: uint8(PragTyp_SOFT_HEAP_LIMIT),
FmPragFlg: uint8(PragFlg_Result0),
},
54: {
- FzName: __ccgo_ts + 17532,
+ FzName: __ccgo_ts + 17566,
FePragTyp: uint8(PragTyp_SYNCHRONOUS),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_SchemaReq) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
55: {
- FzName: __ccgo_ts + 17544,
+ FzName: __ccgo_ts + 17578,
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),
},
56: {
- FzName: __ccgo_ts + 17555,
+ FzName: __ccgo_ts + 17589,
FePragTyp: uint8(PragTyp_TABLE_LIST),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1)),
FiPragCName: uint8(15),
FnPragCName: uint8(6),
},
57: {
- FzName: __ccgo_ts + 17566,
+ FzName: __ccgo_ts + 17600,
FePragTyp: uint8(PragTyp_TABLE_INFO),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NeedSchema) | libc.Int32FromInt32(PragFlg_Result1) | libc.Int32FromInt32(PragFlg_SchemaOpt)),
FiPragCName: uint8(8),
@@ -115645,45 +116703,45 @@ var _aPragmaName = [66]TPragmaName{
FiArg: uint64(1),
},
58: {
- FzName: __ccgo_ts + 17578,
+ FzName: __ccgo_ts + 17612,
FePragTyp: uint8(PragTyp_TEMP_STORE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
},
59: {
- FzName: __ccgo_ts + 17589,
+ FzName: __ccgo_ts + 17623,
FePragTyp: uint8(PragTyp_TEMP_STORE_DIRECTORY),
FmPragFlg: uint8(PragFlg_NoColumns1),
},
60: {
- FzName: __ccgo_ts + 17610,
+ FzName: __ccgo_ts + 17644,
FePragTyp: uint8(PragTyp_THREADS),
FmPragFlg: uint8(PragFlg_Result0),
},
61: {
- FzName: __ccgo_ts + 17618,
+ FzName: __ccgo_ts + 17652,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(SQLITE_TrustedSchema),
},
62: {
- FzName: __ccgo_ts + 17633,
+ FzName: __ccgo_ts + 17667,
FePragTyp: uint8(PragTyp_HEADER_VALUE),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_NoColumns1) | libc.Int32FromInt32(PragFlg_Result0)),
FiArg: uint64(BTREE_USER_VERSION),
},
63: {
- FzName: __ccgo_ts + 17646,
+ FzName: __ccgo_ts + 17680,
FePragTyp: uint8(PragTyp_WAL_AUTOCHECKPOINT),
},
64: {
- FzName: __ccgo_ts + 17665,
+ FzName: __ccgo_ts + 17699,
FePragTyp: uint8(PragTyp_WAL_CHECKPOINT),
FmPragFlg: uint8(PragFlg_NeedSchema),
FiPragCName: uint8(50),
FnPragCName: uint8(3),
},
65: {
- FzName: __ccgo_ts + 17680,
+ FzName: __ccgo_ts + 17714,
FePragTyp: uint8(PragTyp_FLAG),
FmPragFlg: uint8(libc.Int32FromInt32(PragFlg_Result0) | libc.Int32FromInt32(PragFlg_NoColumns1)),
FiArg: uint64(libc.Int32FromInt32(SQLITE_WriteSchema) | libc.Int32FromInt32(SQLITE_NoSchemaError)),
@@ -115725,6 +116783,7 @@ func _getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt Tu8) (r Tu8)
}
goto _1
_1:
+ ;
i++
}
return dflt
@@ -115783,10 +116842,10 @@ func _sqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt Tu8) (r Tu8) {
// */
func _getLockingMode(tls *libc.TLS, z uintptr) (r int32) {
if z != 0 {
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17696) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17730) {
return int32(PAGER_LOCKINGMODE_EXCLUSIVE)
}
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17706) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17740) {
return PAGER_LOCKINGMODE_NORMAL
}
}
@@ -115804,13 +116863,13 @@ func _getLockingMode(tls *libc.TLS, z uintptr) (r int32) {
func _getAutoVacuum(tls *libc.TLS, z uintptr) (r int32) {
var i, v1 int32
_, _ = i, v1
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+8193) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+8218) {
return BTREE_AUTOVACUUM_NONE
}
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17713) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17747) {
return int32(BTREE_AUTOVACUUM_FULL)
}
- if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17718) {
+ if 0 == _sqlite3StrICmp(tls, z, __ccgo_ts+17752) {
return int32(BTREE_AUTOVACUUM_INCR)
}
i = _sqlite3Atoi(tls, z)
@@ -115833,10 +116892,10 @@ func _getTempStore(tls *libc.TLS, z uintptr) (r int32) {
if int32(*(*uint8)(unsafe.Pointer(z))) >= int32('0') && int32(*(*uint8)(unsafe.Pointer(z))) <= int32('2') {
return int32(*(*uint8)(unsafe.Pointer(z))) - int32('0')
} else {
- if _sqlite3StrICmp(tls, z, __ccgo_ts+16671) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+16705) == 0 {
return int32(1)
} else {
- if _sqlite3StrICmp(tls, z, __ccgo_ts+17730) == 0 {
+ if _sqlite3StrICmp(tls, z, __ccgo_ts+17764) == 0 {
return int32(2)
} else {
return 0
@@ -115858,7 +116917,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+17737, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17771, 0)
return int32(SQLITE_ERROR)
}
_sqlite3BtreeClose(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FpBt)
@@ -115919,6 +116978,7 @@ func _setPragmaResultColumnNames(tls *libc.TLS, v uintptr, pPragma uintptr) {
_sqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, _pragCName[j], libc.UintptrFromInt32(0))
goto _2
_2:
+ ;
i++
j++
}
@@ -115992,15 +117052,15 @@ func _actionName(tls *libc.TLS, action Tu8) (r uintptr) {
_ = zName
switch int32(action) {
case int32(OE_SetNull):
- zName = __ccgo_ts + 17799
+ zName = __ccgo_ts + 17833
case int32(OE_SetDflt):
- zName = __ccgo_ts + 17808
+ zName = __ccgo_ts + 17842
case int32(OE_Cascade):
- zName = __ccgo_ts + 17820
+ zName = __ccgo_ts + 17854
case int32(OE_Restrict):
- zName = __ccgo_ts + 17828
+ zName = __ccgo_ts + 17862
default:
- zName = __ccgo_ts + 17837
+ zName = __ccgo_ts + 17871
_ = libc.Int32FromInt32(0)
break
}
@@ -116029,12 +117089,12 @@ func _sqlite3JournalModename(tls *libc.TLS, eMode int32) (r uintptr) {
}
var _azModeName = [6]uintptr{
- 0: __ccgo_ts + 17847,
- 1: __ccgo_ts + 17854,
- 2: __ccgo_ts + 17862,
- 3: __ccgo_ts + 17866,
- 4: __ccgo_ts + 17730,
- 5: __ccgo_ts + 17875,
+ 0: __ccgo_ts + 17881,
+ 1: __ccgo_ts + 17888,
+ 2: __ccgo_ts + 17896,
+ 3: __ccgo_ts + 17900,
+ 4: __ccgo_ts + 17764,
+ 5: __ccgo_ts + 17909,
}
// C documentation
@@ -116100,25 +117160,26 @@ 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 + 17900
+ zType = __ccgo_ts + 17934
} else {
if (*TFuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) {
- zType = __ccgo_ts + 17902
+ zType = __ccgo_ts + 17936
} else {
- zType = __ccgo_ts + 7592
+ zType = __ccgo_ts + 7617
}
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+17904, 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+17938, 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:
+ ;
p = (*TFuncDef)(unsafe.Pointer(p)).FpNext
}
}
var _azEnc = [4]uintptr{
- 1: __ccgo_ts + 17879,
- 2: __ccgo_ts + 17884,
- 3: __ccgo_ts + 17892,
+ 1: __ccgo_ts + 17913,
+ 2: __ccgo_ts + 17918,
+ 3: __ccgo_ts + 17926,
}
// C documentation
@@ -116159,8 +117220,8 @@ func _integrityCheckResultRow(tls *libc.TLS, v uintptr) (r int32) {
func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, pValue uintptr, minusFlag int32) {
bp := tls.Alloc(240)
defer tls.Free(240)
- var a1, a11, addr, addr1, addrCkFault, addrCkOk, addrOk, addrTop, b, bStrict, ckUniq, cnt, doTypeCheck, eAuto, eMode, eMode1, eMode2, i, i1, i10, i2, i3, i4, i5, i6, i7, i8, i9, iAddr, iBt, iCol, iCol1, iCookie, iDb, iDbLast, iIdxDb, iLevel, iReg, iTabCur, iTabDb, iTabDb1, ii, ii1, ii2, ii3, ii4, initNCol, isHidden, isQuick, j2, j3, j4, jmp, jmp2, jmp21, jmp3, jmp4, jmp5, jmp6, jmp61, jmp7, k, k3, kk, label6, labelError, labelOk, loopTop, mx, mxCol, mxIdx, n, nHidden, nIdx, p11, p3, p4, r1, r11, r2, rc, regResult, regRow, showInternFunc, size, size1, size2, uniqOk, x1, v10, v15, v18, v2, v26, v33, v38, v4, v43, v45, v47, v59, v61, v62, v63, v64, v67 int32
- var aOp, aOp1, aOp2, aOp3, aOp4, aRoot, db, j, j1, k1, k2, k4, p, p1, pBt, pBt1, pBt2, pCheck, pCol, pCol1, pColExpr, pColl, pDb, pEnc, pFK, pFK1, pHash, pIdx, pIdx1, pIdx3, pIdx4, pIdx5, pIdx6, pMod, pObjTab, pPager, pPager1, pParent, pPk, pPk1, pPragma, pPrior, pSchema, pTab, pTab1, pTab10, pTab2, pTab3, pTab4, pTab5, pTab6, pTab7, pTab8, pTab9, pTbls, pVTab, v, x2, zDb, zErr, zErr1, zErr2, zLeft, zMod, zMode, zOpt, zRet, zRight, zSql, zSubSql, zType, v1, v14, v16, v22, v34, v39, v5, v60, v65, v8 uintptr
+ var a1, a11, addr, addr1, addrCkFault, addrCkOk, addrOk, addrTop, b, bStrict, ckUniq, cnt, doTypeCheck, eAuto, eMode, eMode1, eMode2, i, i1, i10, i2, i3, i4, i5, i6, i7, i8, i9, iAddr, iBt, iCol, iCol1, iCookie, iDb, iDbLast, iIdxDb, iLevel, iReg, iTabCur, iTabDb, iTabDb1, ii, ii1, ii2, ii3, ii4, initNCol, isHidden, isQuick, j2, j3, j4, jmp, jmp2, jmp21, jmp3, jmp4, jmp5, jmp6, jmp61, jmp7, k, k3, kk, label6, labelError, labelOk, loopTop, mx, mxCol, mxIdx, n, nHidden, nIdx, p11, p3, p4, r1, r11, r2, rc, regResult, regRow, showInternFunc, size, size1, size2, uniqOk, x1, v10, v15, v18, v2, v26, v33, v38, v4, v43, v45, v47, v60, v62, v63, v64, v65, v68 int32
+ var aOp, aOp1, aOp2, aOp3, aOp4, aRoot, db, j, j1, k1, k2, k4, p, p1, pBt, pBt1, pBt2, pCheck, pCol, pCol1, pColExpr, pColl, pDb, pEnc, pFK, pFK1, pHash, pIdx, pIdx1, pIdx3, pIdx4, pIdx5, pIdx6, pMod, pObjTab, pPager, pPager1, pParent, pPk, pPk1, pPragma, pPrior, pSchema, pTab, pTab1, pTab10, pTab11, pTab2, pTab3, pTab4, pTab5, pTab6, pTab7, pTab8, pTab9, pTbls, pVTab, v, x2, zDb, zErr, zErr1, zErr2, zLeft, zMod, zMode, zOpt, zRet, zRight, zSql, zSubSql, zType, v1, v14, v16, v22, v34, v39, v5, v61, v66, v8 uintptr
var azOrigin [3]uintptr
var cnum Ti16
var enc Tu8
@@ -116188,7 +117249,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
var _ /* size at bp+60 */ int32
var _ /* sz at bp+64 */ Tsqlite3_int64
var _ /* x at bp+40 */ Ti64
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a1, a11, aOp, aOp1, aOp2, aOp3, aOp4, aRoot, addr, addr1, addrCkFault, addrCkOk, addrOk, addrTop, azOrigin, b, bStrict, ckUniq, cnt, cnum, db, doTypeCheck, eAuto, eMode, eMode1, eMode2, enc, i, i1, i10, i2, i3, i4, i5, i6, i7, i8, i9, iAddr, iBt, iCol, iCol1, iCookie, iDb, iDbLast, iIdxDb, iLevel, iPrior, iReg, iTabCur, iTabDb, iTabDb1, ii, ii1, ii2, ii3, ii4, initNCol, isHidden, isQuick, j, j1, j2, j3, j4, jmp, jmp2, jmp21, jmp3, jmp4, jmp5, jmp6, jmp61, jmp7, k, k1, k2, k3, k4, kk, label6, labelError, labelOk, loopTop, mask, mx, mxCol, mxIdx, n, nHidden, nIdx, opMask, p, p1, p11, p3, p4, pBt, pBt1, pBt2, pCheck, pCol, pCol1, pColExpr, pColl, pDb, pEnc, pFK, pFK1, pHash, pIdx, pIdx1, pIdx3, pIdx4, pIdx5, pIdx6, pMod, pObjTab, pPager, pPager1, pParent, pPk, pPk1, pPragma, pPrior, pSchema, pTab, pTab1, pTab10, pTab2, pTab3, pTab4, pTab5, pTab6, pTab7, pTab8, pTab9, pTbls, pVTab, r1, r11, r2, rc, regResult, regRow, showInternFunc, size, size1, size2, szThreshold, uniqOk, v, x1, x2, zDb, zErr, zErr1, zErr2, zLeft, zMod, zMode, zOpt, zRet, zRight, zSql, zSubSql, zType, v1, v10, v14, v15, v16, v18, v2, v22, v26, v33, v34, v38, v39, v4, v43, v45, v47, v5, v59, v60, v61, v62, v63, v64, v65, v67, v8
+ _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a1, a11, aOp, aOp1, aOp2, aOp3, aOp4, aRoot, addr, addr1, addrCkFault, addrCkOk, addrOk, addrTop, azOrigin, b, bStrict, ckUniq, cnt, cnum, db, doTypeCheck, eAuto, eMode, eMode1, eMode2, enc, i, i1, i10, i2, i3, i4, i5, i6, i7, i8, i9, iAddr, iBt, iCol, iCol1, iCookie, iDb, iDbLast, iIdxDb, iLevel, iPrior, iReg, iTabCur, iTabDb, iTabDb1, ii, ii1, ii2, ii3, ii4, initNCol, isHidden, isQuick, j, j1, j2, j3, j4, jmp, jmp2, jmp21, jmp3, jmp4, jmp5, jmp6, jmp61, jmp7, k, k1, k2, k3, k4, kk, label6, labelError, labelOk, loopTop, mask, mx, mxCol, mxIdx, n, nHidden, nIdx, opMask, p, p1, p11, p3, p4, pBt, pBt1, pBt2, pCheck, pCol, pCol1, pColExpr, pColl, pDb, pEnc, pFK, pFK1, pHash, pIdx, pIdx1, pIdx3, pIdx4, pIdx5, pIdx6, pMod, pObjTab, pPager, pPager1, pParent, pPk, pPk1, pPragma, pPrior, pSchema, pTab, pTab1, pTab10, pTab11, pTab2, pTab3, pTab4, pTab5, pTab6, pTab7, pTab8, pTab9, pTbls, pVTab, r1, r11, r2, rc, regResult, regRow, showInternFunc, size, size1, size2, szThreshold, uniqOk, v, x1, x2, zDb, zErr, zErr1, zErr2, zLeft, zMod, zMode, zOpt, zRet, zRight, zSql, zSubSql, zType, v1, v10, v14, v15, v16, v18, v2, v22, v26, v33, v34, v38, v39, v4, v43, v45, v47, v5, v60, v61, v62, v63, v64, v65, v66, v68, v8
zLeft = uintptr(0) /* Nul-terminated UTF-8 string <id> */
zRight = uintptr(0) /* Nul-terminated UTF-8 string <value>, or NULL */
zDb = uintptr(0) /* return value form SQLITE_FCNTL_PRAGMA */
@@ -116217,7 +117278,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
return
}
if minusFlag != 0 {
- zRight = _sqlite3MPrintf(tls, db, __ccgo_ts+17911, libc.VaList(bp+176, pValue))
+ zRight = _sqlite3MPrintf(tls, db, __ccgo_ts+17945, libc.VaList(bp+176, pValue))
} else {
zRight = _sqlite3NameFromToken(tls, db, pValue)
}
@@ -116368,7 +117429,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
b = -int32(1)
_ = libc.Int32FromInt32(0)
if zRight != 0 {
- if Xsqlite3_stricmp(tls, zRight, __ccgo_ts+17915) == 0 {
+ if Xsqlite3_stricmp(tls, zRight, __ccgo_ts+17949) == 0 {
b = int32(2)
} else {
b = int32(_sqlite3GetBoolean(tls, zRight, uint8(0)))
@@ -116383,6 +117444,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3BtreeSecureDelete(tls, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(ii)*32))).FpBt, b)
goto _3
_3:
+ ;
ii++
}
}
@@ -116438,7 +117500,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
*/
fallthrough
case int32(PragTyp_LOCKING_MODE):
- zRet = __ccgo_ts + 17706
+ zRet = __ccgo_ts + 17740
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
@@ -116458,6 +117520,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3PagerLockingMode(tls, pPager, eMode)
goto _6
_6:
+ ;
ii1++
}
(*Tsqlite3)(unsafe.Pointer(db)).FdfltLockMode = uint8(eMode)
@@ -116467,7 +117530,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
_ = libc.Int32FromInt32(0)
if eMode == int32(PAGER_LOCKINGMODE_EXCLUSIVE) {
- zRet = __ccgo_ts + 17696
+ zRet = __ccgo_ts + 17730
}
_returnSingleText(tls, v, zRet)
break
@@ -116477,7 +117540,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
** (delete|persist|off|truncate|memory|wal|off)
*/
fallthrough
- case int32(PragTyp_JOURNAL_MODE):
+ case int32(PragTyp_JOURNAL_MODE): /* Loop counter */
if zRight == uintptr(0) {
/* If there is no "=MODE" part of the pragma, do a query for the
** current mode */
@@ -116496,6 +117559,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _7
_7:
+ ;
eMode1++
}
if !(zMode != 0) {
@@ -116525,6 +117589,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _9
_9:
+ ;
ii2--
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_ResultRow), int32(1), int32(1))
@@ -116707,6 +117772,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _11
_11:
+ ;
ii3--
}
}
@@ -116759,7 +117825,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if *(*uint8)(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+17920, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17954, 0)
Xsqlite3_mutex_leave(tls, _sqlite3MutexAlloc(tls, int32(SQLITE_MUTEX_STATIC_VFS1)))
goto pragma_out
}
@@ -116791,7 +117857,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+17945, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+17979, 0)
} else {
if iDb != int32(1) {
iLevel = (int32(_getSafetyLevel(tls, zRight, 0, uint8(1))) + int32(1)) & int32(PAGER_SYNCHRONOUS_MASK)
@@ -116824,7 +117890,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if mask == uint64(SQLITE_DeferFKs) {
(*Tsqlite3)(unsafe.Pointer(db)).FnDeferredImmCons = 0
}
- if mask&uint64(SQLITE_WriteSchema) != uint64(0) && Xsqlite3_stricmp(tls, zRight, __ccgo_ts+17998) == 0 {
+ if mask&uint64(SQLITE_WriteSchema) != uint64(0) && Xsqlite3_stricmp(tls, zRight, __ccgo_ts+18032) == 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. */
@@ -116898,6 +117964,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _13
_13:
+ ;
k++
}
}
@@ -116906,9 +117973,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if (*TPragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- v14 = __ccgo_ts + 18004
+ v14 = __ccgo_ts + 18038
} else {
- v14 = __ccgo_ts + 18012
+ v14 = __ccgo_ts + 18046
}
if int32(uint32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 {
v15 = int32(1)
@@ -116923,6 +117990,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeMultiLoad(tls, v, int32(1), v14, libc.VaList(bp+176, i-nHidden, (*TColumn)(unsafe.Pointer(pCol)).FzCnName, _sqlite3ColumnType(tls, pCol, __ccgo_ts+1648), v15, v16, k, isHidden))
goto _12
_12:
+ ;
i++
pCol += 16
}
@@ -116978,7 +118046,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+18019, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab1)).FzName))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+18053, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab1)).FzName))
if zSql != 0 {
*(*uintptr)(unsafe.Pointer(bp + 80)) = uintptr(0)
Xsqlite3_prepare(tls, db, zSql, -int32(1), bp+80, uintptr(0))
@@ -116994,6 +118062,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _19
_19:
+ ;
k1 = (*THashElem)(unsafe.Pointer(k1)).Fnext
}
}
@@ -117007,25 +118076,27 @@ 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 + 10771
+ zType = __ccgo_ts + 10796
} else {
if int32((*TTable)(unsafe.Pointer(pTab2)).FeTabType) == int32(TABTYP_VTAB) {
- zType = __ccgo_ts + 13019
+ zType = __ccgo_ts + 13044
} else {
if (*TTable)(unsafe.Pointer(pTab2)).FtabFlags&uint32(TF_Shadow) != 0 {
- zType = __ccgo_ts + 18035
+ zType = __ccgo_ts + 18069
} else {
- zType = __ccgo_ts + 9033
+ zType = __ccgo_ts + 9058
}
}
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+18042, 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+18076, 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:
+ ;
k1 = (*THashElem)(unsafe.Pointer(k1)).Fnext
}
goto _17
_17:
+ ;
ii4++
}
case int32(PragTyp_INDEX_INFO):
@@ -117065,13 +118136,14 @@ 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+18049, libc.VaList(bp+176, i1, int32(cnum), v22))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+18083, libc.VaList(bp+176, i1, int32(cnum), v22))
if (*TPragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 {
- _sqlite3VdbeMultiLoad(tls, v, int32(4), __ccgo_ts+18054, 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+18088, 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
_21:
+ ;
i1++
}
}
@@ -117090,13 +118162,14 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
break
}
azOrigin = [3]uintptr{
- 0: __ccgo_ts + 18059,
- 1: __ccgo_ts + 18061,
- 2: __ccgo_ts + 16548,
+ 0: __ccgo_ts + 18093,
+ 1: __ccgo_ts + 18095,
+ 2: __ccgo_ts + 16582,
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+18063, 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+18097, 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:
+ ;
pIdx1 = (*TIndex)(unsafe.Pointer(pIdx1)).FpNext
i2++
}
@@ -117113,9 +118186,10 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
goto _24
}
_ = libc.Int32FromInt32(0)
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+18069, 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+18103, 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:
+ ;
i3++
}
case int32(PragTyp_COLLATION_LIST):
@@ -117129,9 +118203,10 @@ 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+18073, libc.VaList(bp+176, v26, (*TCollSeq)(unsafe.Pointer(pColl)).FzName))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+18107, libc.VaList(bp+176, v26, (*TCollSeq)(unsafe.Pointer(pColl)).FzName))
goto _25
_25:
+ ;
p = (*THashElem)(unsafe.Pointer(p)).Fnext
}
case int32(PragTyp_FUNCTION_LIST):
@@ -117151,10 +118226,12 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_pragmaFunclistLine(tls, v, p1, int32(1), showInternFunc)
goto _28
_28:
+ ;
p1 = *(*uintptr)(unsafe.Pointer(p1 + 64))
}
goto _27
_27:
+ ;
i5++
}
j = (*THash)(unsafe.Pointer(db + 624)).Ffirst
@@ -117167,6 +118244,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_pragmaFunclistLine(tls, v, p1, 0, showInternFunc)
goto _29
_29:
+ ;
j = (*THashElem)(unsafe.Pointer(j)).Fnext
}
case int32(PragTyp_MODULE_LIST):
@@ -117177,9 +118255,10 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
break
}
pMod = (*THashElem)(unsafe.Pointer(j1)).Fdata
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+7592, libc.VaList(bp+176, (*TModule)(unsafe.Pointer(pMod)).FzName))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+7617, libc.VaList(bp+176, (*TModule)(unsafe.Pointer(pMod)).FzName))
goto _30
_30:
+ ;
j1 = (*THashElem)(unsafe.Pointer(j1)).Fnext
}
case int32(PragTyp_PRAGMA_LIST):
@@ -117188,9 +118267,10 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if !(i6 < int32(libc.Uint64FromInt64(1584)/libc.Uint64FromInt64(24))) {
break
}
- _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+7592, libc.VaList(bp+176, _aPragmaName[i6].FzName))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+7617, libc.VaList(bp+176, _aPragmaName[i6].FzName))
goto _31
_31:
+ ;
i6++
}
case int32(PragTyp_FOREIGN_KEY_LIST):
@@ -117213,9 +118293,10 @@ 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+18076, 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+18085))
+ _sqlite3VdbeMultiLoad(tls, v, int32(1), __ccgo_ts+18110, 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+18119))
goto _32
_32:
+ ;
j2++
}
i7++
@@ -117224,7 +118305,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
}
}
- case int32(PragTyp_FOREIGN_KEY_CHECK):
+ case int32(PragTyp_FOREIGN_KEY_CHECK): /* child to parent column mapping */
regResult = (*TParse)(unsafe.Pointer(pParse)).FnMem + int32(1)
*(*int32)(unsafe.Pointer(pParse + 56)) += int32(4)
v34 = pParse + 56
@@ -117285,6 +118366,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _35
_35:
+ ;
i8++
pFK1 = (*TFKey)(unsafe.Pointer(pFK1)).FpNextFrom
}
@@ -117335,6 +118417,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp2(tls, v, int32(OP_IsNull), regRow+j3, addrOk)
goto _37
_37:
+ ;
j3++
}
/* Generate code to query the parent index for a matching parent
@@ -117356,12 +118439,13 @@ 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+18090, libc.VaList(bp+176, (*TFKey)(unsafe.Pointer(pFK1)).FzTo, i8-int32(1)))
+ _sqlite3VdbeMultiLoad(tls, v, regResult+int32(2), __ccgo_ts+18124, 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)))
goto _36
_36:
+ ;
i8++
pFK1 = (*TFKey)(unsafe.Pointer(pFK1)).FpNextFrom
}
@@ -117484,6 +118568,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
cnt++
goto _42
_42:
+ ;
pIdx3 = (*TIndex)(unsafe.Pointer(pIdx3)).FpNext
nIdx++
}
@@ -117492,6 +118577,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _41
_41:
+ ;
x2 = (*THashElem)(unsafe.Pointer(x2)).Fnext
}
if cnt == 0 {
@@ -117534,10 +118620,12 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
*(*int32)(unsafe.Pointer(aRoot + uintptr(v47)*4)) = int32((*TIndex)(unsafe.Pointer(pIdx4)).Ftnum)
goto _46
_46:
+ ;
pIdx4 = (*TIndex)(unsafe.Pointer(pIdx4)).FpNext
}
goto _44
_44:
+ ;
x2 = (*THashElem)(unsafe.Pointer(x2)).Fnext
}
*(*int32)(unsafe.Pointer(aRoot)) = cnt
@@ -117548,7 +118636,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp4(tls, v, int32(OP_IntegrityCk), int32(2), cnt, int32(1), aRoot, -int32(14))
_sqlite3VdbeChangeP5(tls, v, uint16(uint8(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+18094, 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+18128, 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)
@@ -117566,50 +118654,6 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
goto _48
}
if !(int32((*TTable)(unsafe.Pointer(pTab9)).FeTabType) == libc.Int32FromInt32(TABTYP_NORM)) {
- if !(int32((*TTable)(unsafe.Pointer(pTab9)).FeTabType) == libc.Int32FromInt32(TABTYP_VTAB)) {
- goto _48
- }
- if int32((*TTable)(unsafe.Pointer(pTab9)).FnCol) <= 0 {
- zMod = *(*uintptr)(unsafe.Pointer((*(*struct {
- FnArg int32
- FazArg uintptr
- Fp uintptr
- })(unsafe.Pointer(pTab9 + 64))).FazArg))
- if _sqlite3HashFind(tls, db+576, zMod) == uintptr(0) {
- goto _48
- }
- }
- _sqlite3ViewGetColumnNames(tls, pParse, pTab9)
- if (*(*struct {
- FnArg int32
- FazArg uintptr
- Fp uintptr
- })(unsafe.Pointer(pTab9 + 64))).Fp == uintptr(0) {
- goto _48
- }
- pVTab = (*TVTable)(unsafe.Pointer((*(*struct {
- FnArg int32
- FazArg uintptr
- Fp uintptr
- })(unsafe.Pointer(pTab9 + 64))).Fp)).FpVtab
- if pVTab == uintptr(0) {
- goto _48
- }
- if (*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FpModule == uintptr(0) {
- goto _48
- }
- if (*Tsqlite3_module)(unsafe.Pointer((*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FpModule)).FiVersion < int32(4) {
- goto _48
- }
- if (*Tsqlite3_module)(unsafe.Pointer((*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FpModule)).FxIntegrity == uintptr(0) {
- goto _48
- }
- _sqlite3VdbeAddOp3(tls, v, int32(OP_VCheck), i9, int32(3), isQuick)
- (*TTable)(unsafe.Pointer(pTab9)).FnTabRef++
- _sqlite3VdbeAppendP4(tls, v, pTab9, -int32(16))
- a1 = _sqlite3VdbeAddOp1(tls, v, int32(OP_IsNull), int32(3))
- _integrityCheckResultRow(tls, v)
- _sqlite3VdbeJumpHere(tls, v, a1)
goto _48
}
if isQuick != 0 || (*TTable)(unsafe.Pointer(pTab9)).FtabFlags&uint32(TF_WithoutRowid) == uint32(0) {
@@ -117634,6 +118678,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp2(tls, v, int32(OP_Integer), 0, int32(8)+j4) /* index entries counter */
goto _49
_49:
+ ;
pIdx5 = (*TIndex)(unsafe.Pointer(pIdx5)).FpNext
j4++
}
@@ -117659,6 +118704,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _50
_50:
+ ;
j4++
}
if mxCol == int32((*TTable)(unsafe.Pointer(pTab9)).FiPKey) {
@@ -117676,13 +118722,13 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
if !(isQuick != 0) {
if pPk1 != 0 {
- a11 = _sqlite3VdbeAddOp4Int(tls, v, int32(OP_IdxGT), *(*int32)(unsafe.Pointer(bp + 108)), 0, r2, int32((*TIndex)(unsafe.Pointer(pPk1)).FnKeyCol))
+ 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+18118, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName))
+ zErr = _sqlite3MPrintf(tls, db, __ccgo_ts+18152, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr, -int32(6))
_integrityCheckResultRow(tls, v)
- _sqlite3VdbeJumpHere(tls, v, a11)
- _sqlite3VdbeJumpHere(tls, v, a11+int32(1))
+ _sqlite3VdbeJumpHere(tls, v, a1)
+ _sqlite3VdbeJumpHere(tls, v, a1+int32(1))
j4 = 0
for {
if !(j4 < int32((*TIndex)(unsafe.Pointer(pPk1)).FnKeyCol)) {
@@ -117691,6 +118737,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3ExprCodeLoadIndexColumn(tls, pParse, pPk1, *(*int32)(unsafe.Pointer(bp + 108)), j4, r2+j4)
goto _51
_51:
+ ;
j4++
}
}
@@ -117758,9 +118805,10 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
** is REAL, we have to load the actual data using OP_Column
** to reliably determine if the value is a NULL. */
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), p11, p3, int32(3))
+ _sqlite3ColumnDefault(tls, v, pTab9, j4, int32(3))
jmp3 = _sqlite3VdbeAddOp2(tls, v, int32(OP_NotNull), int32(3), labelOk)
}
- zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+18154, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName, (*TColumn)(unsafe.Pointer(pCol1)).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+18188, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).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)
@@ -117774,7 +118822,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_IsType), p11, labelOk, p3, p4)
_ = libc.Int32FromInt32(0)
_sqlite3VdbeChangeP5(tls, v, uint16(_aStdTypeMask[int32(uint32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4))-int32(1)]))
- zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+18174, libc.VaList(bp+176, _sqlite3StdType[int32(uint32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4))-int32(1)], (*TTable)(unsafe.Pointer(pTab9)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab9)).FaCol + uintptr(j4)*16))).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+18208, libc.VaList(bp+176, _sqlite3StdType[int32(uint32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4))-int32(1)], (*TTable)(unsafe.Pointer(pTab9)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab9)).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) {
@@ -117782,7 +118830,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+18196, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab9)).FaCol + uintptr(j4)*16))).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+18230, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab9)).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) {
@@ -117793,10 +118841,10 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if p11 >= 0 {
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab9, *(*int32)(unsafe.Pointer(bp + 108)), j4, int32(3))
}
- _sqlite3VdbeAddOp4(tls, v, int32(OP_Affinity), int32(3), int32(1), 0, __ccgo_ts+18219, -int32(1))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_Affinity), int32(3), int32(1), 0, __ccgo_ts+18253, -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+18221, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab9)).FaCol + uintptr(j4)*16))).FzCnName))
+ zErr1 = _sqlite3MPrintf(tls, db, __ccgo_ts+18255, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab9)).FaCol + uintptr(j4)*16))).FzCnName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr1, -int32(6))
}
}
@@ -117806,6 +118854,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeResolveLabel(tls, v, labelOk)
goto _52
_52:
+ ;
j4++
}
/* Verify CHECK constraints */
@@ -117823,12 +118872,13 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3ExprIfFalse(tls, pParse, (*(*TExprList_item)(unsafe.Pointer(pCheck + 8 + uintptr(k3)*32))).FpExpr, addrCkFault, 0)
goto _53
_53:
+ ;
k3--
}
_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+18241, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName))
+ zErr2 = _sqlite3MPrintf(tls, db, __ccgo_ts+18275, libc.VaList(bp+176, (*TTable)(unsafe.Pointer(pTab9)).FzName))
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, int32(3), 0, zErr2, -int32(6))
_integrityCheckResultRow(tls, v)
_sqlite3VdbeResolveLabel(tls, v, addrCkOk)
@@ -117852,9 +118902,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(pIdx5)).FnColumn))
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18271)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18305)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(7), int32(3), int32(3))
- _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+18276)
+ _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+18310)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(4), int32(3), int32(3))
jmp5 = _sqlite3VdbeLoadString(tls, v, int32(4), (*TIndex)(unsafe.Pointer(pIdx5)).FzName)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(4), int32(3), int32(3))
@@ -117867,9 +118917,9 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if (*TTable)(unsafe.Pointer(pTab9)).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(pIdx5)).FnColumn)-int32(1))
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18297)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18331)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(7), int32(3), int32(3))
- _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+18333)
+ _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+18367)
_sqlite3VdbeGoto(tls, v, jmp5-int32(1))
_sqlite3VdbeJumpHere(tls, v, jmp7)
}
@@ -117891,14 +118941,15 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp3(tls, v, int32(OP_Ne), int32(3), label6, r1+kk)
goto _55
_55:
+ ;
kk++
}
if label6 != 0 {
jmp6 = _sqlite3VdbeAddOp0(tls, v, int32(OP_Goto))
_sqlite3VdbeResolveLabel(tls, v, label6)
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18271)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18305)
_sqlite3VdbeAddOp3(tls, v, int32(OP_Concat), int32(7), int32(3), int32(3))
- _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+18344)
+ _sqlite3VdbeLoadString(tls, v, int32(4), __ccgo_ts+18378)
_sqlite3VdbeGoto(tls, v, jmp5-int32(1))
_sqlite3VdbeJumpHere(tls, v, jmp6)
}
@@ -117920,13 +118971,14 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp2(tls, v, int32(OP_IsNull), r1+kk, uniqOk)
goto _56
_56:
+ ;
kk++
}
jmp61 = _sqlite3VdbeAddOp1(tls, v, int32(OP_Next), *(*int32)(unsafe.Pointer(bp + 112))+j4)
_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(pIdx5)).FnKeyCol))
- _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18371)
+ _sqlite3VdbeLoadString(tls, v, int32(3), __ccgo_ts+18405)
_sqlite3VdbeGoto(tls, v, jmp5)
_sqlite3VdbeResolveLabel(tls, v, uniqOk)
}
@@ -117934,6 +118986,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3ResolvePartIdxLabel(tls, pParse, *(*int32)(unsafe.Pointer(bp + 128)))
goto _54
_54:
+ ;
pIdx5 = (*TIndex)(unsafe.Pointer(pIdx5)).FpNext
j4++
}
@@ -117941,7 +118994,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeAddOp2(tls, v, int32(OP_Next), *(*int32)(unsafe.Pointer(bp + 108)), loopTop)
_sqlite3VdbeJumpHere(tls, v, loopTop-int32(1))
if !(isQuick != 0) {
- _sqlite3VdbeLoadString(tls, v, int32(2), __ccgo_ts+18398)
+ _sqlite3VdbeLoadString(tls, v, int32(2), __ccgo_ts+18432)
j4 = 0
pIdx5 = (*TTable)(unsafe.Pointer(pTab9)).FpIndex
for {
@@ -117960,6 +119013,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
_sqlite3VdbeJumpHere(tls, v, addr1)
goto _57
_57:
+ ;
pIdx5 = (*TIndex)(unsafe.Pointer(pIdx5)).FpNext
j4++
}
@@ -117969,17 +119023,84 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
}
goto _48
_48:
+ ;
+ x2 = (*THashElem)(unsafe.Pointer(x2)).Fnext
+ }
+ /* Second pass to invoke the xIntegrity method on all virtual
+ ** tables.
+ */
+ x2 = (*THash)(unsafe.Pointer(pTbls)).Ffirst
+ for {
+ if !(x2 != 0) {
+ break
+ }
+ pTab10 = (*THashElem)(unsafe.Pointer(x2)).Fdata
+ if pObjTab != 0 && pObjTab != pTab10 {
+ goto _58
+ }
+ if int32((*TTable)(unsafe.Pointer(pTab10)).FeTabType) == TABTYP_NORM {
+ goto _58
+ }
+ if !(int32((*TTable)(unsafe.Pointer(pTab10)).FeTabType) == libc.Int32FromInt32(TABTYP_VTAB)) {
+ goto _58
+ }
+ if int32((*TTable)(unsafe.Pointer(pTab10)).FnCol) <= 0 {
+ zMod = *(*uintptr)(unsafe.Pointer((*(*struct {
+ FnArg int32
+ FazArg uintptr
+ Fp uintptr
+ })(unsafe.Pointer(pTab10 + 64))).FazArg))
+ if _sqlite3HashFind(tls, db+576, zMod) == uintptr(0) {
+ goto _58
+ }
+ }
+ _sqlite3ViewGetColumnNames(tls, pParse, pTab10)
+ if (*(*struct {
+ FnArg int32
+ FazArg uintptr
+ Fp uintptr
+ })(unsafe.Pointer(pTab10 + 64))).Fp == uintptr(0) {
+ goto _58
+ }
+ pVTab = (*TVTable)(unsafe.Pointer((*(*struct {
+ FnArg int32
+ FazArg uintptr
+ Fp uintptr
+ })(unsafe.Pointer(pTab10 + 64))).Fp)).FpVtab
+ if pVTab == uintptr(0) {
+ goto _58
+ }
+ if (*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FpModule == uintptr(0) {
+ goto _58
+ }
+ if (*Tsqlite3_module)(unsafe.Pointer((*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FpModule)).FiVersion < int32(4) {
+ goto _58
+ }
+ if (*Tsqlite3_module)(unsafe.Pointer((*Tsqlite3_vtab)(unsafe.Pointer(pVTab)).FpModule)).FxIntegrity == uintptr(0) {
+ goto _58
+ }
+ _sqlite3VdbeAddOp3(tls, v, int32(OP_VCheck), i9, int32(3), isQuick)
+ (*TTable)(unsafe.Pointer(pTab10)).FnTabRef++
+ _sqlite3VdbeAppendP4(tls, v, pTab10, -int32(16))
+ a11 = _sqlite3VdbeAddOp1(tls, v, int32(OP_IsNull), int32(3))
+ _integrityCheckResultRow(tls, v)
+ _sqlite3VdbeJumpHere(tls, v, a11)
+ goto _58
+ goto _58
+ _58:
+ ;
x2 = (*THashElem)(unsafe.Pointer(x2)).Fnext
}
goto _40
_40:
+ ;
i9++
}
aOp2 = _sqlite3VdbeAddOpList(tls, v, int32(libc.Uint64FromInt64(28)/libc.Uint64FromInt64(4)), uintptr(unsafe.Pointer(&_endCode)), _iLn21)
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 + 18427
+ *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = __ccgo_ts + 18461
(*(*TVdbeOp)(unsafe.Pointer(aOp2 + 5*24))).Fp4type = int8(-libc.Int32FromInt32(1))
*(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = _sqlite3ErrStr(tls, int32(SQLITE_CORRUPT))
}
@@ -118040,27 +119161,28 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
FzName uintptr
Fenc Tu8
})(unsafe.Pointer(pEnc)).Fenc != 0 {
- v59 = int32((*struct {
+ v60 = int32((*struct {
FzName uintptr
Fenc Tu8
})(unsafe.Pointer(pEnc)).Fenc)
} else {
- v59 = int32(SQLITE_UTF16LE)
+ v60 = int32(SQLITE_UTF16LE)
}
- enc = uint8(v59)
+ enc = uint8(v60)
(*TSchema)(unsafe.Pointer((*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FpSchema)).Fenc = enc
_sqlite3SetTextEncoding(tls, db, enc)
break
}
- goto _58
- _58:
+ goto _59
+ _59:
+ ;
pEnc += 16
}
if !((*struct {
FzName uintptr
Fenc Tu8
})(unsafe.Pointer(pEnc)).FzName != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18488, libc.VaList(bp+176, zRight))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18522, libc.VaList(bp+176, zRight))
}
}
}
@@ -118138,11 +119260,11 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
i10 = 0
(*TParse)(unsafe.Pointer(pParse)).FnMem = int32(1)
for {
- v61 = i10
+ v62 = i10
i10++
- v60 = Xsqlite3_compileoption_get(tls, v61)
- zOpt = v60
- if !(v60 != uintptr(0)) {
+ v61 = Xsqlite3_compileoption_get(tls, v62)
+ zOpt = v61
+ if !(v61 != uintptr(0)) {
break
}
_sqlite3VdbeLoadString(tls, v, int32(1), zOpt)
@@ -118158,20 +119280,20 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
fallthrough
case int32(PragTyp_WAL_CHECKPOINT):
if (*TToken)(unsafe.Pointer(pId2)).Fz != 0 {
- v62 = iDb
+ v63 = iDb
} else {
- v62 = libc.Int32FromInt32(SQLITE_MAX_ATTACHED) + libc.Int32FromInt32(2)
+ v63 = libc.Int32FromInt32(SQLITE_MAX_ATTACHED) + libc.Int32FromInt32(2)
}
- iBt = v62
+ iBt = v63
eMode2 = SQLITE_CHECKPOINT_PASSIVE
if zRight != 0 {
- if _sqlite3StrICmp(tls, zRight, __ccgo_ts+17713) == 0 {
+ if _sqlite3StrICmp(tls, zRight, __ccgo_ts+17747) == 0 {
eMode2 = int32(SQLITE_CHECKPOINT_FULL)
} else {
- if _sqlite3StrICmp(tls, zRight, __ccgo_ts+18513) == 0 {
+ if _sqlite3StrICmp(tls, zRight, __ccgo_ts+18547) == 0 {
eMode2 = int32(SQLITE_CHECKPOINT_RESTART)
} else {
- if _sqlite3StrICmp(tls, zRight, __ccgo_ts+17866) == 0 {
+ if _sqlite3StrICmp(tls, zRight, __ccgo_ts+17900) == 0 {
eMode2 = int32(SQLITE_CHECKPOINT_TRUNCATE)
}
}
@@ -118195,11 +119317,11 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
Xsqlite3_wal_autocheckpoint(tls, db, _sqlite3Atoi(tls, zRight))
}
if (*Tsqlite3)(unsafe.Pointer(db)).FxWalCallback == __ccgo_fp(_sqlite3WalDefaultHook) {
- v63 = int32(int64((*Tsqlite3)(unsafe.Pointer(db)).FpWalArg))
+ v64 = int32(int64((*Tsqlite3)(unsafe.Pointer(db)).FpWalArg))
} else {
- v63 = 0
+ v64 = 0
}
- _returnSingleInt(tls, v, int64(v63))
+ _returnSingleInt(tls, v, int64(v64))
break
/*
** PRAGMA shrink_memory
@@ -118267,7 +119389,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
** future releases.
*/
fallthrough
- case int32(PragTyp_OPTIMIZE):
+ case int32(PragTyp_OPTIMIZE): /* Mask of operations to perform */
if zRight != 0 {
opMask = uint32(_sqlite3Atoi(tls, zRight))
if opMask&uint32(0x02) == uint32(0) {
@@ -118276,22 +119398,22 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
} else {
opMask = uint32(0xfffe)
}
- v65 = pParse + 52
- v64 = *(*int32)(unsafe.Pointer(v65))
- *(*int32)(unsafe.Pointer(v65))++
- iTabCur = v64
+ v66 = pParse + 52
+ v65 = *(*int32)(unsafe.Pointer(v66))
+ *(*int32)(unsafe.Pointer(v66))++
+ iTabCur = v65
if zDb != 0 {
- v67 = iDb
+ v68 = iDb
} else {
- v67 = (*Tsqlite3)(unsafe.Pointer(db)).FnDb - int32(1)
+ v68 = (*Tsqlite3)(unsafe.Pointer(db)).FnDb - int32(1)
}
- iDbLast = v67
+ iDbLast = v68
for {
if !(iDb <= iDbLast) {
break
}
if iDb == int32(1) {
- goto _66
+ goto _67
}
_sqlite3CodeVerifySchema(tls, pParse, iDb)
pSchema = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FpSchema
@@ -118300,17 +119422,17 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if !(k4 != 0) {
break
}
- pTab10 = (*THashElem)(unsafe.Pointer(k4)).Fdata
+ pTab11 = (*THashElem)(unsafe.Pointer(k4)).Fdata
/* If table pTab has not been used in a way that would benefit from
** having analysis statistics during the current session, then skip it.
** This also has the effect of skipping virtual tables and views */
- if (*TTable)(unsafe.Pointer(pTab10)).FtabFlags&uint32(TF_StatsUsed) == uint32(0) {
- goto _68
+ if (*TTable)(unsafe.Pointer(pTab11)).FtabFlags&uint32(TF_StatsUsed) == uint32(0) {
+ goto _69
}
/* Reanalyze if the table is 25 times larger than the last analysis */
- szThreshold = int16(int32((*TTable)(unsafe.Pointer(pTab10)).FnRowLogEst) + int32(46))
+ szThreshold = int16(int32((*TTable)(unsafe.Pointer(pTab11)).FnRowLogEst) + int32(46))
_ = libc.Int32FromInt32(0)
- pIdx6 = (*TTable)(unsafe.Pointer(pTab10)).FpIndex
+ pIdx6 = (*TTable)(unsafe.Pointer(pTab11)).FpIndex
for {
if !(pIdx6 != 0) {
break
@@ -118319,15 +119441,16 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
szThreshold = 0 /* Always analyze if any index lacks statistics */
break
}
- goto _69
- _69:
+ goto _70
+ _70:
+ ;
pIdx6 = (*TIndex)(unsafe.Pointer(pIdx6)).FpNext
}
if szThreshold != 0 {
- _sqlite3OpenTable(tls, pParse, iTabCur, iDb, pTab10, int32(OP_OpenRead))
+ _sqlite3OpenTable(tls, pParse, iTabCur, iDb, pTab11, int32(OP_OpenRead))
_sqlite3VdbeAddOp3(tls, v, int32(OP_IfSmaller), iTabCur, int32(uint32(_sqlite3VdbeCurrentAddr(tls, v)+int32(2))+opMask&uint32(1)), int32(szThreshold))
}
- zSubSql = _sqlite3MPrintf(tls, db, __ccgo_ts+18521, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(pTab10)).FzName))
+ zSubSql = _sqlite3MPrintf(tls, db, __ccgo_ts+18555, libc.VaList(bp+176, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, (*TTable)(unsafe.Pointer(pTab11)).FzName))
if opMask&uint32(0x01) != 0 {
r11 = _sqlite3GetTempReg(tls, pParse)
_sqlite3VdbeAddOp4(tls, v, int32(OP_String8), 0, r11, 0, zSubSql, -int32(6))
@@ -118335,12 +119458,14 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
} else {
_sqlite3VdbeAddOp4(tls, v, int32(OP_SqlExec), 0, 0, 0, zSubSql, -int32(6))
}
- goto _68
- _68:
+ goto _69
+ _69:
+ ;
k4 = (*THashElem)(unsafe.Pointer(k4)).Fnext
}
- goto _66
- _66:
+ goto _67
+ _67:
+ ;
iDb++
}
_sqlite3VdbeAddOp0(tls, v, int32(OP_Expire))
@@ -118439,6 +119564,7 @@ func _sqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p
if int32((*TPragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&int32(PragFlg_NoColumns1) != 0 && zRight != 0 {
}
pragma_out:
+ ;
_sqlite3DbFree(tls, db, zLeft)
_sqlite3DbFree(tls, db, zRight)
}
@@ -118568,34 +119694,34 @@ var _encnames1 = [9]struct {
Fenc Tu8
}{
0: {
- FzName: __ccgo_ts + 18430,
+ FzName: __ccgo_ts + 18464,
Fenc: uint8(SQLITE_UTF8),
},
1: {
- FzName: __ccgo_ts + 18435,
+ FzName: __ccgo_ts + 18469,
Fenc: uint8(SQLITE_UTF8),
},
2: {
- FzName: __ccgo_ts + 18441,
+ FzName: __ccgo_ts + 18475,
Fenc: uint8(SQLITE_UTF16LE),
},
3: {
- FzName: __ccgo_ts + 18450,
+ FzName: __ccgo_ts + 18484,
Fenc: uint8(SQLITE_UTF16BE),
},
4: {
- FzName: __ccgo_ts + 18459,
+ FzName: __ccgo_ts + 18493,
Fenc: uint8(SQLITE_UTF16LE),
},
5: {
- FzName: __ccgo_ts + 18467,
+ FzName: __ccgo_ts + 18501,
Fenc: uint8(SQLITE_UTF16BE),
},
6: {
- FzName: __ccgo_ts + 18475,
+ FzName: __ccgo_ts + 18509,
},
7: {
- FzName: __ccgo_ts + 18482,
+ FzName: __ccgo_ts + 18516,
},
8: {},
}
@@ -118691,34 +119817,35 @@ 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+18539)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+18573)
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+18554, libc.VaList(bp+240, int32(cSep), _pragCName[j]))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+18588, libc.VaList(bp+240, int32(cSep), _pragCName[j]))
cSep = uint8(',')
goto _1
_1:
+ ;
i++
j++
}
if i == 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+18561, libc.VaList(bp+240, (*TPragmaName)(unsafe.Pointer(pPragma)).FzName))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+18595, 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+18567)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+18601)
j++
}
if int32((*TPragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(libc.Int32FromInt32(PragFlg_SchemaOpt)|libc.Int32FromInt32(PragFlg_SchemaReq)) != 0 {
- Xsqlite3_str_appendall(tls, bp, __ccgo_ts+18579)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+18613)
j++
}
- Xsqlite3_str_append(tls, bp, __ccgo_ts+5081, int32(1))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+5106, int32(1))
_sqlite3StrAccumFinish(tls, bp)
_ = libc.Int32FromInt32(0)
rc = Xsqlite3_declare_vtab(tls, db, bp+32)
@@ -118794,6 +119921,7 @@ func _pragmaVtabBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32
seen[j] = i + int32(1)
goto _1
_1:
+ ;
i++
pConstraint += 12
}
@@ -118849,6 +119977,7 @@ func _pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) {
*(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(i)*8)) = uintptr(0)
goto _1
_1:
+ ;
i++
}
}
@@ -118924,17 +120053,18 @@ func _pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr
}
goto _2
_2:
+ ;
i++
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+18594)
+ Xsqlite3_str_appendall(tls, bp, __ccgo_ts+18628)
if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+18602, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8))))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+18636, 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+18606, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+18640, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(pCsr + 24))))
}
zSql = _sqlite3StrAccumFinish(tls, bp)
if zSql == uintptr(0) {
@@ -119071,24 +120201,24 @@ 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+18640, 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+18674, 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(140697))
+ (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(140795))
} else {
if *(*uintptr)(unsafe.Pointer(azObj + 1*8)) != 0 {
v1 = *(*uintptr)(unsafe.Pointer(azObj + 1*8))
} else {
- v1 = __ccgo_ts + 5083
+ v1 = __ccgo_ts + 5108
}
zObj = v1
- z = _sqlite3MPrintf(tls, db, __ccgo_ts+18668, libc.VaList(bp+8, zObj))
+ z = _sqlite3MPrintf(tls, db, __ccgo_ts+18702, libc.VaList(bp+8, zObj))
if zExtra != 0 && *(*uint8)(unsafe.Pointer(zExtra)) != 0 {
- z = _sqlite3MPrintf(tls, db, __ccgo_ts+18699, libc.VaList(bp+8, z, zExtra))
+ z = _sqlite3MPrintf(tls, db, __ccgo_ts+18733, libc.VaList(bp+8, z, zExtra))
}
*(*uintptr)(unsafe.Pointer((*TInitData)(unsafe.Pointer(pData)).FpzErrMsg)) = z
- (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(140704))
+ (*TInitData)(unsafe.Pointer(pData)).Frc = _sqlite3CorruptError(tls, int32(140802))
}
}
}
@@ -119096,9 +120226,9 @@ func _corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr)
}
var _azAlterType = [3]uintptr{
- 0: __ccgo_ts + 18610,
- 1: __ccgo_ts + 18617,
- 2: __ccgo_ts + 18629,
+ 0: __ccgo_ts + 18644,
+ 1: __ccgo_ts + 18651,
+ 2: __ccgo_ts + 18663,
}
// C documentation
@@ -119121,6 +120251,7 @@ func _sqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) (r int32)
}
goto _1
_1:
+ ;
p = (*TIndex)(unsafe.Pointer(p)).FpNext
}
return 0
@@ -119177,7 +120308,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+14491)
+ _corruptSchema(tls, pData, argv, __ccgo_ts+14516)
}
}
libc.SetBitFieldPtr8Uint32(db+192+8, libc.Uint32FromInt32(0), 0, 0x1)
@@ -119212,11 +120343,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+18707)
+ _corruptSchema(tls, pData, argv, __ccgo_ts+18741)
} 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+14491)
+ _corruptSchema(tls, pData, argv, __ccgo_ts+14516)
}
}
}
@@ -119260,18 +120391,18 @@ 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 + 9033
+ (*(*[6]uintptr)(unsafe.Pointer(bp)))[0] = __ccgo_ts + 9058
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
- v2 = __ccgo_ts + 6508
+ v2 = __ccgo_ts + 6533
} else {
- v2 = __ccgo_ts + 6041
+ v2 = __ccgo_ts + 6066
}
v1 = v2
zSchemaTabName = v1
(*(*[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 + 8105
- (*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(4)] = __ccgo_ts + 18720
+ (*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(3)] = __ccgo_ts + 8130
+ (*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(4)] = __ccgo_ts + 18754
(*(*[6]uintptr)(unsafe.Pointer(bp)))[int32(5)] = uintptr(0)
(*(*TInitData)(unsafe.Pointer(bp + 72))).Fdb = db
(*(*TInitData)(unsafe.Pointer(bp + 72))).FiDb = iDb
@@ -119333,6 +120464,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
_sqlite3BtreeGetMeta(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt, i+int32(1), bp+48+uintptr(i)*4)
goto _4
_4:
+ ;
i++
}
if (*Tsqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ResetDatabase) != uint64(0) {
@@ -119360,7 +120492,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+12070)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+12095)
rc = int32(SQLITE_ERROR)
goto initone_error_out
}
@@ -119386,7 +120518,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+18792)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+18826)
rc = int32(SQLITE_ERROR)
goto initone_error_out
}
@@ -119402,7 +120534,7 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
*/
_ = libc.Int32FromInt32(0)
(*(*TInitData)(unsafe.Pointer(bp + 72))).FmxPage = _sqlite3BtreeLastPage(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt)
- zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+18816, libc.VaList(bp+120, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, zSchemaTabName))
+ zSql = _sqlite3MPrintf(tls, db, __ccgo_ts+18850, 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))
@@ -119441,11 +120573,13 @@ func _sqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl
** before that point, jump to error_out.
*/
initone_error_out:
+ ;
if openedTransaction != 0 {
_sqlite3BtreeCommit(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt)
}
_sqlite3BtreeLeave(tls, (*TDb)(unsafe.Pointer(pDb)).FpBt)
error_out:
+ ;
if rc != 0 {
if rc == int32(SQLITE_NOMEM) || rc == libc.Int32FromInt32(SQLITE_IOERR)|libc.Int32FromInt32(12)<<libc.Int32FromInt32(8) {
_sqlite3OomFault(tls, db)
@@ -119498,6 +120632,7 @@ func _sqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) (r int32) {
}
goto _1
_1:
+ ;
i--
}
if commit_internal != 0 {
@@ -119591,6 +120726,7 @@ func _schemaIsValid(tls *libc.TLS, pParse uintptr) {
}
goto _1
_1:
+ ;
iDb++
}
}
@@ -119632,6 +120768,7 @@ func _sqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) (r int32)
}
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -119831,12 +120968,13 @@ 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+18850, libc.VaList(bp+432, zDb))
+ _sqlite3ErrorWithMsg(tls, db, rc, __ccgo_ts+18884, libc.VaList(bp+432, zDb))
goto end_prepare
}
}
goto _2
_2:
+ ;
i++
}
}
@@ -119846,7 +120984,7 @@ func _sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prep
if nBytes >= 0 && (nBytes == 0 || int32(*(*uint8)(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+18880, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_TOOBIG), __ccgo_ts+18914, 0)
rc = _sqlite3ApiExit(tls, db, int32(SQLITE_TOOBIG))
goto end_prepare
}
@@ -119900,6 +121038,7 @@ func _sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prep
_sqlite3DbFree(tls, db, pT)
}
end_prepare:
+ ;
_sqlite3ParseObjectReset(tls, bp)
return rc
}
@@ -119911,7 +121050,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(141505))
+ return _sqlite3MisuseError(tls, int32(141603))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
_sqlite3BtreeEnterAll(tls, db)
@@ -119926,6 +121065,7 @@ func _sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int3
}
goto _6
_6:
+ ;
if v2 = rc == libc.Int32FromInt32(SQLITE_ERROR)|libc.Int32FromInt32(2)<<libc.Int32FromInt32(8); v2 {
v1 = cnt
cnt++
@@ -120053,7 +121193,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(141654))
+ return _sqlite3MisuseError(tls, int32(141752))
}
if nBytes >= 0 {
z = zSql
@@ -120064,6 +121204,7 @@ func _sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, pr
}
goto _1
_1:
+ ;
sz += int32(2)
}
nBytes = sz
@@ -120449,6 +121590,7 @@ func _sqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC
}
goto _2
_2:
+ ;
j++
}
if j >= int32(libc.Uint64FromInt64(21)/libc.Uint64FromInt64(3)) {
@@ -120457,18 +121599,19 @@ func _sqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC
}
goto _1
_1:
+ ;
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 + 11177
- zSp2 = __ccgo_ts + 11177
+ zSp1 = __ccgo_ts + 11202
+ zSp2 = __ccgo_ts + 11202
if pB == uintptr(0) {
zSp1++
}
if pC == uintptr(0) {
zSp2++
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18899, libc.VaList(bp+8, pA, zSp1, pB, zSp2, pC))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18933, libc.VaList(bp+8, pA, zSp1, pB, zSp2, pC))
jointype = int32(JT_INNER)
}
return jointype
@@ -120541,6 +121684,7 @@ func _sqlite3ColumnIndex(tls *libc.TLS, pTab uintptr, zCol uintptr) (r int32) {
}
goto _1
_1:
+ ;
pCol += 16
i++
}
@@ -120600,6 +121744,7 @@ func _tableAndColumnIndex(tls *libc.TLS, pSrc uintptr, iStart int32, iEnd int32,
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -120652,6 +121797,7 @@ func _sqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32, joinFlag Tu32)
_sqlite3SetJoinExpr(tls, (*(*TExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32)) + 8 + uintptr(i)*32))).FpExpr, iTable, joinFlag)
goto _1
_1:
+ ;
i++
}
}
@@ -120702,6 +121848,7 @@ func _unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32, nullable int32) {
_unsetJoinExpr(tls, (*(*TExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32)) + 8 + uintptr(i)*32))).FpExpr, iTable, nullable)
goto _1
_1:
+ ;
i++
}
}
@@ -120767,7 +121914,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(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x400>>10)) != 0 || *(*uintptr)(unsafe.Pointer(pRight + 72)) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18929, libc.VaList(bp+16, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18963, libc.VaList(bp+16, 0))
return int32(1)
}
j = 0
@@ -120789,6 +121936,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
}
goto _3
_3:
+ ;
j++
}
if pUsing != 0 {
@@ -120819,7 +121967,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
zName1 = (*(*TIdList_item)(unsafe.Pointer(pList + 8 + uintptr(j)*16))).FzName
iRightCol = _sqlite3ColumnIndex(tls, pRightTab, zName1)
if iRightCol < 0 || _tableAndColumnIndex(tls, pSrc, 0, i, zName1, bp, bp+4, int32(uint32(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x1000>>12))) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+18979, libc.VaList(bp+16, zName1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19013, libc.VaList(bp+16, zName1))
return int32(1)
}
pE1 = _sqlite3CreateColumnExpr(tls, db, pSrc, *(*int32)(unsafe.Pointer(bp)), *(*int32)(unsafe.Pointer(bp + 4)))
@@ -120841,7 +121989,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
pFuncArgs = uintptr(0) /* Arguments to the coalesce() */
for _tableAndColumnIndex(tls, pSrc, *(*int32)(unsafe.Pointer(bp))+int32(1), i, zName1, bp, bp+4, int32(uint32(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x1000>>12))) != 0 {
if int32(uint32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(*(*int32)(unsafe.Pointer(bp)))*104 + 60 + 4))&0x400>>10)) == 0 || _sqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(*(*int32)(unsafe.Pointer(bp)))*104 + 72)), zName1) < 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19043, libc.VaList(bp+16, zName1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19077, libc.VaList(bp+16, zName1))
break
}
pFuncArgs = _sqlite3ExprListAppend(tls, pParse, pFuncArgs, pE1)
@@ -120865,6 +122013,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
(*TSelect)(unsafe.Pointer(p)).FpWhere = _sqlite3ExprAnd(tls, pParse, (*TSelect)(unsafe.Pointer(p)).FpWhere, pEq)
goto _4
_4:
+ ;
j++
}
} else {
@@ -120877,6 +122026,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
pRight += 104
pLeft += 104
@@ -120885,7 +122035,7 @@ func _sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
}
var _tkCoalesce = TToken{
- Fz: __ccgo_ts + 6705,
+ Fz: __ccgo_ts + 6730,
Fn: uint32(8),
}
@@ -121145,7 +122295,7 @@ func _codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, a
nResultCol = (*TExprList)(unsafe.Pointer(pEList)).FnExpr
v = (*TParse)(unsafe.Pointer(pParse)).FpVdbe
switch eTnctType {
- case int32(WHERE_DISTINCT_ORDERED):
+ case int32(WHERE_DISTINCT_ORDERED): /* Previous row content */
/* Allocate space for the previous row */
v1 = (*TParse)(unsafe.Pointer(pParse)).FnMem + libc.Int32FromInt32(1)
regPrev = v1
@@ -121167,6 +122317,7 @@ func _codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, a
_sqlite3VdbeChangeP5(tls, v, uint16(SQLITE_NULLEQ))
goto _2
_2:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -121307,6 +122458,7 @@ func _selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pS
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), srcTab, i, regResult+i)
goto _3
_3:
+ ;
i++
}
} else {
@@ -121336,6 +122488,7 @@ func _selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pS
}
goto _4
_4:
+ ;
i++
}
/* Adjust nResultCol to account for columns that are omitted
@@ -121352,6 +122505,7 @@ func _selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pS
}
goto _6
_6:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -121493,9 +122647,9 @@ func _selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pS
_ = libc.Int32FromInt32(0)
/* The LIMIT clause will jump out of the loop for us */
}
- case int32(SRT_Coroutine):
+ case int32(SRT_Coroutine): /* Send data to a co-routine */
fallthrough
- case int32(SRT_Output):
+ case int32(SRT_Output): /* Return the results */
if pSort != 0 {
_pushOntoSorter(tls, pParse, pSort, p, regResult, regOrig, nResultCol, nPrefixReg)
} else {
@@ -121542,6 +122696,7 @@ func _selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pS
_sqlite3VdbeAddOp2(tls, v, int32(OP_SCopy), regResult+int32(*(*Tu16)(unsafe.Pointer(pSO + 8 + uintptr(i)*32 + 24)))-int32(1), r21+i)
goto _7
_7:
+ ;
i++
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_Sequence), iParm, r21+nKey)
@@ -121662,6 +122817,7 @@ func _sqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, i
*(*Tu8)(unsafe.Pointer((*TKeyInfo)(unsafe.Pointer(pInfo)).FaSortFlags + uintptr(i-iStart))) = (*TExprList_item)(unsafe.Pointer(pItem)).Ffg.FsortFlags
goto _1
_1:
+ ;
i++
pItem += 32
}
@@ -121679,13 +122835,13 @@ func _sqlite3SelectOpName(tls *libc.TLS, id int32) (r uintptr) {
_ = z
switch id {
case int32(TK_ALL):
- z = __ccgo_ts + 19080
+ z = __ccgo_ts + 19114
case int32(TK_INTERSECT):
- z = __ccgo_ts + 19090
+ z = __ccgo_ts + 19124
case int32(TK_EXCEPT):
- z = __ccgo_ts + 19100
+ z = __ccgo_ts + 19134
default:
- z = __ccgo_ts + 19107
+ z = __ccgo_ts + 19141
break
}
return z
@@ -121706,7 +122862,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+19113, libc.VaList(bp+8, zUsage))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19147, libc.VaList(bp+8, zUsage))
}
/*
@@ -121741,11 +122897,11 @@ func _generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr,
nRefKey = 0
aOutEx = (*TSelect)(unsafe.Pointer(p)).FpEList + 8
if (*TSortCtx)(unsafe.Pointer(pSort)).FnOBSat > 0 {
- v1 = __ccgo_ts + 19136
+ v1 = __ccgo_ts + 19170
} else {
v1 = __ccgo_ts + 1648
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19151, libc.VaList(bp+8, v1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19185, libc.VaList(bp+8, v1))
_ = libc.Int32FromInt32(0)
if (*TSortCtx)(unsafe.Pointer(pSort)).FlabelBkOut != 0 {
_sqlite3VdbeAddOp2(tls, v, int32(OP_Gosub), (*TSortCtx)(unsafe.Pointer(pSort)).FregReturn, (*TSortCtx)(unsafe.Pointer(pSort)).FlabelBkOut)
@@ -121809,6 +122965,7 @@ func _generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr,
}
goto _6
_6:
+ ;
i++
}
i = nColumn - int32(1)
@@ -121826,6 +122983,7 @@ func _generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr,
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iSortTab, iRead, regRow+i)
goto _7
_7:
+ ;
i--
}
switch eDest {
@@ -121940,6 +123098,7 @@ func _columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr
}
goto _1
_1:
+ ;
j++
}
if j < (*TSrcList)(unsafe.Pointer(pTabList)).FnSrc {
@@ -121991,7 +123150,7 @@ func _columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr
_ = libc.Int32FromInt32(0)
if iCol < 0 {
zType = __ccgo_ts + 1136
- *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 16660
+ *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 16694
} 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))
@@ -122061,6 +123220,7 @@ func _generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pELis
_sqlite3VdbeSetColName(tls, v, i, int32(COLNAME_DECLTYPE), zType, uintptr(-libc.Int32FromInt32(1)))
goto _1
_1:
+ ;
i++
}
}
@@ -122143,13 +123303,13 @@ func _sqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
}
_ = libc.Int32FromInt32(0)
if iCol < 0 {
- zCol = __ccgo_ts + 16660
+ zCol = __ccgo_ts + 16694
} 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+12356, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zCol))
+ zName1 = _sqlite3MPrintf(tls, db, __ccgo_ts+12381, 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)))
@@ -122157,7 +123317,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+19182, libc.VaList(bp+8, i+int32(1)))
+ v2 = _sqlite3MPrintf(tls, db, __ccgo_ts+19216, libc.VaList(bp+8, i+int32(1)))
} else {
v2 = _sqlite3DbStrDup(tls, db, z)
}
@@ -122167,6 +123327,7 @@ func _sqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr)
}
goto _1
_1:
+ ;
i++
}
_generateColumnTypes(tls, pParse, pTabList, pEList)
@@ -122250,7 +123411,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 + 16660
+ v3 = __ccgo_ts + 16694
}
zName = v3
} else {
@@ -122266,7 +123427,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+19182, libc.VaList(bp+40, i+int32(1)))
+ zName = _sqlite3MPrintf(tls, db, __ccgo_ts+19216, 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.
@@ -122293,6 +123454,7 @@ func _sqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr,
}
goto _7
_7:
+ ;
j--
}
if int32(*(*uint8)(unsafe.Pointer(zName + uintptr(j)))) == int32(':') {
@@ -122301,7 +123463,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+19191, libc.VaList(bp+40, nName, zName, v8))
+ zName = _sqlite3MPrintf(tls, db, __ccgo_ts+19225, libc.VaList(bp+40, nName, zName, v8))
_sqlite3ProgressCheck(tls, pParse)
if *(*Tu32)(unsafe.Pointer(bp)) > uint32(3) {
Xsqlite3_randomness(tls, int32(4), bp)
@@ -122318,6 +123480,7 @@ func _sqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr,
}
goto _1
_1:
+ ;
i++
pCol += 16
}
@@ -122331,6 +123494,7 @@ func _sqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr,
_sqlite3DbFree(tls, db, (*(*TColumn)(unsafe.Pointer(aCol + uintptr(j)*16))).FzCnName)
goto _10
_10:
+ ;
j++
}
_sqlite3DbFree(tls, db, aCol)
@@ -122400,6 +123564,7 @@ func _sqlite3SubqueryColumnTypes(tls *libc.TLS, pParse uintptr, pTab uintptr, pS
m |= _sqlite3ExprDataType(tls, (*(*TExprList_item)(unsafe.Pointer((*TSelect)(unsafe.Pointer(pS2)).FpEList + 8 + uintptr(i)*32))).FpExpr)
goto _2
_2:
+ ;
pS2 = (*TSelect)(unsafe.Pointer(pS2)).FpNext
}
if int32((*TColumn)(unsafe.Pointer(pCol)).Faffinity) == int32(SQLITE_AFF_TEXT) && m&int32(0x01) != 0 {
@@ -122416,7 +123581,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 + 19199
+ zType = __ccgo_ts + 19233
} else {
zType = uintptr(0)
j = int32(1)
@@ -122430,6 +123595,7 @@ func _sqlite3SubqueryColumnTypes(tls *libc.TLS, pParse uintptr, pTab uintptr, pS
}
goto _3
_3:
+ ;
j++
}
}
@@ -122453,6 +123619,7 @@ func _sqlite3SubqueryColumnTypes(tls *libc.TLS, pParse uintptr, pTab uintptr, pS
}
goto _1
_1:
+ ;
i++
pCol += 16
}
@@ -122677,6 +123844,7 @@ func _multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra
*(*Tu8)(unsafe.Pointer((*TKeyInfo)(unsafe.Pointer(pRet)).FaSortFlags + uintptr(i))) = (*(*TExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32))).Ffg.FsortFlags
goto _2
_2:
+ ;
i++
}
}
@@ -122735,7 +123903,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+19203, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19237, 0)
return
}
/* Obtain authorization to do a recursive query */
@@ -122766,6 +123934,7 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
}
goto _2
_2:
+ ;
i++
}
/* Allocate cursors numbers for Queue and Distinct. The cursor number for
@@ -122827,7 +123996,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+19252, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19286, 0)
goto end_of_recursive_query
}
(*TSelect)(unsafe.Pointer(pFirstRec)).Fop = uint8(TK_ALL)
@@ -122836,12 +124005,13 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
}
goto _11
_11:
+ ;
pFirstRec = (*TSelect)(unsafe.Pointer(pFirstRec)).FpPrior
}
/* 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+19294, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19328, 0)
rc = _sqlite3Select(tls, pParse, pSetup, bp)
(*TSelect)(unsafe.Pointer(pSetup)).FpNext = p
if rc != 0 {
@@ -122869,7 +124039,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+19300, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19334, 0)
_sqlite3Select(tls, pParse, p, bp)
_ = libc.Int32FromInt32(0)
(*TSelect)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup
@@ -122877,6 +124047,7 @@ func _generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest
_sqlite3VdbeGoto(tls, v, addrTop)
_sqlite3VdbeResolveLabel(tls, v, addrBreak)
end_of_recursive_query:
+ ;
_sqlite3ExprListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*TSelect)(unsafe.Pointer(p)).FpOrderBy)
(*TSelect)(unsafe.Pointer(p)).FpOrderBy = pOrderBy
(*TSelect)(unsafe.Pointer(p)).FpLimit = pLimit
@@ -122928,9 +124099,9 @@ func _multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr)
if nRow == int32(1) {
v1 = __ccgo_ts + 1648
} else {
- v1 = __ccgo_ts + 19315
+ v1 = __ccgo_ts + 19349
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19317, libc.VaList(bp+8, nRow, v1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19351, 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) {
@@ -123045,8 +124216,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+19340, 0)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19355, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19374, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19389, 0)
}
/* Generate code for the left and right SELECT statements.
*/
@@ -123072,7 +124243,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+19080, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19114, 0)
rc = _sqlite3Select(tls, pParse, p, bp)
pDelete = (*TSelect)(unsafe.Pointer(p)).FpPrior
(*TSelect)(unsafe.Pointer(p)).FpPrior = pPrior
@@ -123085,7 +124256,7 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
}
case int32(TK_EXCEPT):
fallthrough
- case int32(TK_UNION):
+ case int32(TK_UNION): /* Cursor number of the temp table holding result */
op = uint8(0)
priorOp = int32(SRT_Union)
if int32((*(*TSelectDest)(unsafe.Pointer(bp))).FeDest) == priorOp {
@@ -123129,7 +124300,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+19374, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19408, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
rc = _sqlite3Select(tls, pParse, p, bp+48)
_ = libc.Int32FromInt32(0)
pDelete = (*TSelect)(unsafe.Pointer(p)).FpPrior
@@ -123195,7 +124366,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+19374, libc.VaList(bp+136, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19408, 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
@@ -123265,6 +124436,7 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
}
goto _7
_7:
+ ;
i++
apColl += 8
}
@@ -123290,15 +124462,18 @@ func _multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r in
*(*int32)(unsafe.Pointer(pLoop + 20 + uintptr(i)*4)) = -int32(1)
goto _9
_9:
+ ;
i++
}
goto _8
_8:
+ ;
pLoop = (*TSelect)(unsafe.Pointer(pLoop)).FpPrior
}
_sqlite3KeyInfoUnref(tls, pKeyInfo)
}
multi_select_end:
+ ;
(*TSelectDest)(unsafe.Pointer(pDest)).FiSdst = (*(*TSelectDest)(unsafe.Pointer(bp))).FiSdst
(*TSelectDest)(unsafe.Pointer(pDest)).FnSdst = (*(*TSelectDest)(unsafe.Pointer(bp))).FnSdst
if pDelete != 0 {
@@ -123317,9 +124492,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+19395, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19429, 0)
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19441, libc.VaList(bp+8, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19475, libc.VaList(bp+8, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
}
}
@@ -123577,6 +124752,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
}
goto _2
_2:
+ ;
j++
pItem += 32
}
@@ -123598,6 +124774,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
}
goto _1
_1:
+ ;
i++
}
}
@@ -123626,6 +124803,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
})(unsafe.Pointer(pItem1 + 24))).FiOrderByCol) - int32(1))
goto _5
_5:
+ ;
i++
pItem1 += 32
}
@@ -123657,6 +124835,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
*(*Tu8)(unsafe.Pointer((*TKeyInfo)(unsafe.Pointer(pKeyDup)).FaSortFlags + uintptr(i))) = uint8(0)
goto _6
_6:
+ ;
i++
}
}
@@ -123674,6 +124853,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
_ = libc.Int32FromInt32(0)
goto _7
_7:
+ ;
pSplit = (*TSelect)(unsafe.Pointer(pSplit)).FpPrior
}
}
@@ -123689,6 +124869,7 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
pSplit = (*TSelect)(unsafe.Pointer(pSplit)).FpPrior
goto _8
_8:
+ ;
i += int32(2)
}
}
@@ -123699,8 +124880,8 @@ func _multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
(*TSelect)(unsafe.Pointer(pPrior)).FpOrderBy = _sqlite3ExprListDup(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pOrderBy, 0)
- _sqlite3ResolveOrderGroupBy(tls, pParse, p, (*TSelect)(unsafe.Pointer(p)).FpOrderBy, __ccgo_ts+7342)
- _sqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*TSelect)(unsafe.Pointer(pPrior)).FpOrderBy, __ccgo_ts+7342)
+ _sqlite3ResolveOrderGroupBy(tls, pParse, p, (*TSelect)(unsafe.Pointer(p)).FpOrderBy, __ccgo_ts+7367)
+ _sqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*TSelect)(unsafe.Pointer(pPrior)).FpOrderBy, __ccgo_ts+7367)
/* Compute the limit registers */
_computeLimitRegisters(tls, pParse, p, labelEnd)
if (*TSelect)(unsafe.Pointer(p)).FiLimit != 0 && op == int32(TK_ALL) {
@@ -123744,14 +124925,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+19523, libc.VaList(bp+88, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(p)).Fop))))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19557, 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+19534, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19568, 0)
_sqlite3Select(tls, pParse, pPrior, bp)
_sqlite3VdbeEndCoroutine(tls, v, regAddrA)
_sqlite3VdbeJumpHere(tls, v, addr1)
@@ -123764,7 +124945,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+19539, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+19573, 0)
_sqlite3Select(tls, pParse, p, bp+40)
(*TSelect)(unsafe.Pointer(p)).FiLimit = savedLimit
(*TSelect)(unsafe.Pointer(p)).FiOffset = savedOffset
@@ -123982,7 +125163,7 @@ func _substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) (r uintptr) {
if pColl != 0 {
v1 = (*TCollSeq)(unsafe.Pointer(pColl)).FzName
} else {
- v1 = __ccgo_ts + 5061
+ v1 = __ccgo_ts + 5086
}
pExpr = _sqlite3ExprAddCollateString(tls, (*TSubstContext)(unsafe.Pointer(pSubst)).FpParse, pExpr, v1)
}
@@ -124023,6 +125204,7 @@ func _substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) {
(*(*TExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32))).FpExpr = _substExpr(tls, pSubst, (*(*TExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32))).FpExpr)
goto _1
_1:
+ ;
i++
}
}
@@ -124055,11 +125237,13 @@ func _substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) {
}
goto _4
_4:
+ ;
i--
pItem += 104
}
goto _3
_3:
+ ;
if v2 = doPrior != 0; v2 {
v1 = (*TSelect)(unsafe.Pointer(p)).FpPrior
p = v1
@@ -124153,11 +125337,13 @@ func _srclistRenumberCursors(tls *libc.TLS, pParse uintptr, aCsrMap uintptr, pSr
_srclistRenumberCursors(tls, pParse, aCsrMap, (*TSelect)(unsafe.Pointer(p)).FpSrc, -int32(1))
goto _4
_4:
+ ;
p = (*TSelect)(unsafe.Pointer(p)).FpPrior
}
}
goto _1
_1:
+ ;
i++
pItem += 104
}
@@ -124279,10 +125465,12 @@ func _compoundHasDifferentAffinities(tls *libc.TLS, p uintptr) (r int32) {
}
goto _2
_2:
+ ;
pSub1 = (*TSelect)(unsafe.Pointer(pSub1)).FpPrior
}
goto _1
_1:
+ ;
ii++
}
return 0
@@ -124591,6 +125779,7 @@ func _flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isA
}
goto _1
_1:
+ ;
pSub1 = (*TSelect)(unsafe.Pointer(pSub1)).FpPrior
}
/* Restriction (18). */
@@ -124605,6 +125794,7 @@ func _flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isA
}
goto _2
_2:
+ ;
ii++
}
}
@@ -124715,6 +125905,7 @@ func _flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isA
_ = libc.Int32FromInt32(0)
goto _3
_3:
+ ;
pSub = (*TSelect)(unsafe.Pointer(pSub)).FpPrior
}
_sqlite3DbFree(tls, db, aCsrMap)
@@ -124814,6 +126005,7 @@ func _flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isA
libc.Xmemset(tls, pSubSrc+8+uintptr(i)*104, 0, uint64(104))
goto _8
_8:
+ ;
i++
}
p10 = pSrc + 8 + uintptr(iFrom)*104 + 60
@@ -124852,6 +126044,7 @@ func _flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isA
*(*Tu16)(unsafe.Pointer(pOrderBy1 + 8 + uintptr(i)*32 + 24)) = uint16(0)
goto _12
_12:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -124903,10 +126096,12 @@ func _flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isA
_recomputeColumnsUsed(tls, pParent, pSrc+8+uintptr(i+iFrom)*104)
goto _13
_13:
+ ;
i++
}
goto _7
_7:
+ ;
pParent = (*TSelect)(unsafe.Pointer(pParent)).FpPrior
pSub = (*TSelect)(unsafe.Pointer(pSub)).FpPrior
}
@@ -124987,6 +126182,7 @@ func _constInsert(tls *libc.TLS, pConst uintptr, pColumn uintptr, pValue uintptr
}
goto _1
_1:
+ ;
i++
}
if int32(_sqlite3ExprAffinity(tls, pColumn)) == int32(SQLITE_AFF_BLOB) {
@@ -125093,6 +126289,7 @@ func _propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintp
break
goto _1
_1:
+ ;
i++
}
return int32(WRC_Prune)
@@ -125387,6 +126584,7 @@ func _pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere ui
} /* restriction (6b) */
goto _1
_1:
+ ;
pSel = (*TSelect)(unsafe.Pointer(pSel)).FpPrior
}
if notUnionAll != 0 {
@@ -125411,10 +126609,12 @@ func _pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere ui
}
goto _3
_3:
+ ;
ii++
}
goto _2
_2:
+ ;
pSel = (*TSelect)(unsafe.Pointer(pSel)).FpPrior
}
}
@@ -125506,6 +126706,7 @@ func _disableUnusedSubqueryResultColumns(tls *libc.TLS, pItem uintptr) (r int32)
}
goto _1
_1:
+ ;
pX = (*TSelect)(unsafe.Pointer(pX)).FpPrior
}
colUsed = (*TSrcItem)(unsafe.Pointer(pItem)).FcolUsed
@@ -125528,6 +126729,7 @@ func _disableUnusedSubqueryResultColumns(tls *libc.TLS, pItem uintptr) (r int32)
}
goto _2
_2:
+ ;
j++
}
}
@@ -125561,10 +126763,12 @@ func _disableUnusedSubqueryResultColumns(tls *libc.TLS, pItem uintptr) (r int32)
nChng++
goto _6
_6:
+ ;
pX = (*TSelect)(unsafe.Pointer(pX)).FpPrior
}
goto _4
_4:
+ ;
j++
}
return nChng
@@ -125605,13 +126809,13 @@ func _minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) (r
}
_ = libc.Int32FromInt32(0)
zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8))
- if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+15516) == 0 {
+ if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+15550) == 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+15520) == 0 {
+ if _sqlite3StrICmp(tls, zFunc, __ccgo_ts+15554) == 0 {
eRet = int32(WHERE_ORDERBY_MAX)
sortFlags = uint8(KEYINFO_ORDER_DESC)
} else {
@@ -125703,10 +126907,11 @@ func _sqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) (r in
}
goto _1
_1:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
if !(pIdx != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19545, libc.VaList(bp+8, zIndexedBy, 0))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19579, libc.VaList(bp+8, zIndexedBy, 0))
(*TParse)(unsafe.Pointer(pParse)).FcheckSchema = uint8(1)
return int32(SQLITE_ERROR)
}
@@ -125758,6 +126963,7 @@ func _convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr)
}
goto _1
_1:
+ ;
pX = (*TSelect)(unsafe.Pointer(pX)).FpPrior
}
if pX == uintptr(0) {
@@ -125782,6 +126988,7 @@ func _convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr)
}
goto _2
_2:
+ ;
i--
}
if i < 0 {
@@ -125831,7 +127038,7 @@ func _cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
if int32(uint32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x4>>2)) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19563, libc.VaList(bp+8, (*TSrcItem)(unsafe.Pointer(pFrom)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19597, libc.VaList(bp+8, (*TSrcItem)(unsafe.Pointer(pFrom)).FzName))
return int32(1)
}
return 0
@@ -125872,6 +127079,7 @@ func _searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr)
}
goto _2
_2:
+ ;
i++
}
if (*TWith)(unsafe.Pointer(p)).FbView != 0 {
@@ -125879,6 +127087,7 @@ func _searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr)
}
goto _1
_1:
+ ;
p = (*TWith)(unsafe.Pointer(p)).FpOuter
}
return uintptr(0)
@@ -126011,7 +127220,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
*(*Tu32)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pFrom)).FpSelect + 4)) |= uint32(SF_CopyCte)
_ = libc.Int32FromInt32(0)
if int32(uint32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x2>>1)) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19586, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pFrom + 88))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19620, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pFrom + 88))))
return int32(2)
}
libc.SetBitFieldPtr16Uint32(pFrom+60+4, libc.Uint32FromInt32(1), 8, 0x100)
@@ -126036,7 +127245,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
(*TTable)(unsafe.Pointer(pTab)).FnTabRef++
libc.SetBitFieldPtr16Uint32(pItem+60+4, libc.Uint32FromInt32(1), 6, 0x40)
if (*TSelect)(unsafe.Pointer(pRecTerm)).FselFlags&uint32(SF_Recursive) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19606, libc.VaList(bp+16, (*TCte)(unsafe.Pointer(pCte)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19640, libc.VaList(bp+16, (*TCte)(unsafe.Pointer(pCte)).FzName))
return int32(2)
}
*(*Tu32)(unsafe.Pointer(pRecTerm + 4)) |= uint32(SF_Recursive)
@@ -126050,6 +127259,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
}
goto _3
_3:
+ ;
i++
}
if (*TSelect)(unsafe.Pointer(pRecTerm)).FselFlags&uint32(SF_Recursive) == uint32(0) {
@@ -126057,7 +127267,7 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
}
pRecTerm = (*TSelect)(unsafe.Pointer(pRecTerm)).FpPrior
}
- (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 19649
+ (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 19683
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 {
@@ -126087,12 +127297,13 @@ func _resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom
}
goto _6
_6:
+ ;
pLeft = (*TSelect)(unsafe.Pointer(pLeft)).FpPrior
}
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+19672, 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+19706, 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)
}
@@ -126101,9 +127312,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 + 19710
- } else {
(*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 19744
+ } else {
+ (*TCte)(unsafe.Pointer(pCte)).FzCteErr = __ccgo_ts + 19778
}
_sqlite3WalkSelect(tls, pWalker, pSel)
}
@@ -126164,7 +127375,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+19782, libc.VaList(bp+8, pFrom))
+ (*TTable)(unsafe.Pointer(pTab)).FzName = _sqlite3MPrintf(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, __ccgo_ts+19816, libc.VaList(bp+8, pFrom))
}
for (*TSelect)(unsafe.Pointer(pSel)).FpPrior != 0 {
pSel = (*TSelect)(unsafe.Pointer(pSel)).FpPrior
@@ -126327,7 +127538,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+19786, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19820, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
(*TSrcItem)(unsafe.Pointer(pFrom)).FpTab = uintptr(0)
return int32(WRC_Abort)
}
@@ -126343,7 +127554,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
_ = libc.Int32FromInt32(0)
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+19825, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19859, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
(*TSrcItem)(unsafe.Pointer(pFrom)).FpSelect = _sqlite3SelectDup(tls, db, (*(*struct {
FpSelect uintptr
@@ -126358,7 +127569,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+15084, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+15109, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName))
}
}
_ = libc.Int32FromInt32(0)
@@ -126377,6 +127588,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _3
_3:
+ ;
i++
pFrom += 104
}
@@ -126414,6 +127626,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
elistFlags |= (*TExpr)(unsafe.Pointer(pE)).Fflags
goto _6
_6:
+ ;
k++
}
if k < (*TExprList)(unsafe.Pointer(pEList)).FnExpr {
@@ -126493,7 +127706,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
if iDb >= 0 {
v10 = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName
} else {
- v10 = __ccgo_ts + 6565
+ v10 = __ccgo_ts + 6590
}
zSchemaName = v10
}
@@ -126511,12 +127724,13 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
if pNew != 0 {
pX = pNew + 8 + uintptr((*TExprList)(unsafe.Pointer(pNew)).FnExpr-int32(1))*32
_ = libc.Int32FromInt32(0)
- (*TExprList_item)(unsafe.Pointer(pX)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+19856, libc.VaList(bp+8, zUName))
+ (*TExprList_item)(unsafe.Pointer(pX)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+19890, 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)
}
goto _11
_11:
+ ;
ii++
}
} else {
@@ -126588,7 +127802,7 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
if pNestedFrom != 0 {
(*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+19861, libc.VaList(bp+8, zSchemaName, zTabName, zName))
+ (*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+19895, libc.VaList(bp+8, zSchemaName, zTabName, zName))
}
if j == int32((*TTable)(unsafe.Pointer(pTab1)).FnCol) {
v13 = int32(ENAME_ROWID)
@@ -126601,7 +127815,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+12356, libc.VaList(bp+8, zTabName, zName))
+ (*TExprList_item)(unsafe.Pointer(pX1)).FzEName = _sqlite3MPrintf(tls, db, __ccgo_ts+12381, 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)
@@ -126610,23 +127824,26 @@ func _selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) (r int32) {
}
goto _12
_12:
+ ;
j++
}
goto _8
_8:
+ ;
i++
pFrom += 104
}
if !(tableSeen != 0) {
if zTName != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19870, libc.VaList(bp+8, zTName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19904, libc.VaList(bp+8, zTName))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19888, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19922, 0)
}
}
}
goto _7
_7:
+ ;
k++
}
_sqlite3ExprListDelete(tls, db, pEList)
@@ -126634,7 +127851,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+19908, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19942, 0)
return int32(WRC_Abort)
}
if elistFlags&uint32(libc.Int32FromInt32(EP_HasFunc)|libc.Int32FromInt32(EP_Subquery)) != uint32(0) {
@@ -126719,6 +127936,7 @@ func _selectAddSubqueryTypeInfo(tls *libc.TLS, pWalker uintptr, p uintptr) {
}
goto _1
_1:
+ ;
i++
pFrom += 104
}
@@ -126824,6 +128042,7 @@ func _analyzeAggFuncArgs(tls *libc.TLS, pAggInfo uintptr, pNC uintptr) {
}
goto _1
_1:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pNC + 40)) &= ^libc.Int32FromInt32(NC_InAggFunc)
@@ -126858,6 +128077,7 @@ func _optimizeAggregateUseOfIndexedExpr(tls *libc.TLS, pParse uintptr, pSelect u
}
goto _1
_1:
+ ;
j++
}
(*TAggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn = uint16(mx + int32(1))
@@ -126924,6 +128144,7 @@ func _aggregateConvertIndexedExprRefToColumn(tls *libc.TLS, pAggInfo uintptr) {
_sqlite3WalkExpr(tls, bp, (*(*TAggInfo_func)(unsafe.Pointer((*TAggInfo)(unsafe.Pointer(pAggInfo)).FaFunc + uintptr(i)*32))).FpFExpr)
goto _1
_1:
+ ;
i++
}
}
@@ -126992,12 +128213,12 @@ func _resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) {
pE = (*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFExpr
_ = libc.Int32FromInt32(0)
if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*TExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != int32(1) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19939, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+19973, 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+19990, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20024, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
}
if (*TAggInfo_func)(unsafe.Pointer(pFunc)).FiOBTab >= 0 {
@@ -127023,10 +128244,11 @@ 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+20023, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20057, libc.VaList(bp+8, (*TFuncDef)(unsafe.Pointer((*TAggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName))
}
goto _1
_1:
+ ;
i++
pFunc += 32
}
@@ -127075,6 +128297,7 @@ func _finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) {
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TAggInfo_func)(unsafe.Pointer(pF)).FiOBTab, nKey+j, regAgg+j)
goto _2
_2:
+ ;
j--
}
if (*TAggInfo_func)(unsafe.Pointer(pF)).FbUseSubtype != 0 {
@@ -127089,6 +128312,7 @@ func _finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) {
_sqlite3VdbeAddOp2(tls, v, int32(OP_SetSubtype), regSubtype, regAgg+j)
goto _3
_3:
+ ;
j--
}
_sqlite3ReleaseTempReg(tls, pParse, regSubtype)
@@ -127111,6 +128335,7 @@ func _finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) {
_sqlite3VdbeAppendP4(tls, v, (*TAggInfo_func)(unsafe.Pointer(pF)).FpFunc, -int32(7))
goto _1
_1:
+ ;
i++
pF += 32
}
@@ -127232,6 +128457,7 @@ func _updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo ui
_sqlite3VdbeAddOp2(tls, v, int32(OP_GetSubtype), regBase+kk, regAgg+jj)
goto _5
_5:
+ ;
kk++
jj++
}
@@ -127272,6 +128498,7 @@ func _updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo ui
pColl = _sqlite3ExprCollSeq(tls, pParse, (*TExprList_item)(unsafe.Pointer(pItem)).FpExpr)
goto _6
_6:
+ ;
j++
pItem += 32
}
@@ -127297,6 +128524,7 @@ func _updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo ui
}
goto _1
_1:
+ ;
i++
pF += 32
}
@@ -127316,6 +128544,7 @@ func _updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo ui
_sqlite3ExprCode(tls, pParse, (*TAggInfo_col)(unsafe.Pointer(pC)).FpCExpr, (*TAggInfo)(unsafe.Pointer(pAggInfo)).FiFirstReg+i)
goto _9
_9:
+ ;
i++
pC += 24
}
@@ -127340,7 +128569,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 + 20056
+ v1 = __ccgo_ts + 20090
} else {
v1 = __ccgo_ts + 1648
}
@@ -127349,7 +128578,7 @@ func _explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintp
} else {
v2 = __ccgo_ts + 1648
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20079, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, v1, v2))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+20113, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, v1, v2))
}
}
@@ -127381,7 +128610,7 @@ func _havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (r int3
** statements AggInfo structure. */
if _sqlite3ExprIsConstantOrGroupBy(tls, (*TWalker)(unsafe.Pointer(pWalker)).FpParse, pExpr, (*TSelect)(unsafe.Pointer(pS)).FpGroupBy) != 0 && libc.BoolInt32((*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_OuterON)|libc.Int32FromInt32(EP_IsFalse)) == uint32(EP_IsFalse)) == 0 && (*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo == uintptr(0) {
db = (*TParse)(unsafe.Pointer((*TWalker)(unsafe.Pointer(pWalker)).FpParse)).Fdb
- pNew = _sqlite3Expr(tls, db, int32(TK_INTEGER), __ccgo_ts+8105)
+ pNew = _sqlite3Expr(tls, db, int32(TK_INTEGER), __ccgo_ts+8130)
if pNew != 0 {
pWhere = (*TSelect)(unsafe.Pointer(pS)).FpWhere
t = *(*TExpr)(unsafe.Pointer(pNew))
@@ -127541,7 +128770,7 @@ func _countOfViewOptimization(tls *libc.TLS, pParse uintptr, p uintptr) (r int32
return 0
} /* Result is an aggregate */
_ = libc.Int32FromInt32(0)
- if Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(pExpr + 8)), __ccgo_ts+15810) != 0 {
+ if Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(pExpr + 8)), __ccgo_ts+15844) != 0 {
return 0
} /* Is count() */
_ = libc.Int32FromInt32(0)
@@ -127645,6 +128874,7 @@ func _sameSrcAlias(tls *libc.TLS, p0 uintptr, pSrc uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -127813,7 +129043,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
} else {
v1 = (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(p0)).FpTab)).FzName
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20091, libc.VaList(bp+176, v1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20125, libc.VaList(bp+176, v1))
goto select_end
}
/* Clear the SF_UFSrcCheck flag. The check has already been performed,
@@ -127889,6 +129119,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _5
_5:
+ ;
j++
}
j = (*TSrcList)(unsafe.Pointer(pTabList)).FnSrc - int32(1)
@@ -127903,6 +129134,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _8
_8:
+ ;
j--
}
}
@@ -127914,7 +129146,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+20145, 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+20179, 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
@@ -127998,6 +129230,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _2
_2:
+ ;
i++
}
/* Handle compound SELECT statements using the separate multiSelect()
@@ -128097,7 +129330,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
_sqlite3VdbeAddOp3(tls, v, int32(OP_InitCoroutine), (*TSrcItem)(unsafe.Pointer(pItem1)).FregReturn, 0, addrTop)
(*TSrcItem)(unsafe.Pointer(pItem1)).FaddrFillSub = addrTop
_sqlite3SelectDestInit(tls, bp+72, int32(SRT_Coroutine), (*TSrcItem)(unsafe.Pointer(pItem1)).FregReturn)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+20185, libc.VaList(bp+176, pItem1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+20219, libc.VaList(bp+176, pItem1))
_sqlite3Select(tls, pParse, pSub1, bp+72)
(*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pItem1)).FpTab)).FnRowLogEst = (*TSelect)(unsafe.Pointer(pSub1)).FnSelectRow
libc.SetBitFieldPtr16Uint32(pItem1+60+4, libc.Uint32FromInt32(1), 5, 0x20)
@@ -128145,7 +129378,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+20200, libc.VaList(bp+176, pItem1))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+20234, libc.VaList(bp+176, pItem1))
_sqlite3Select(tls, pParse, pSub1, bp+72)
(*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pItem1)).FpTab)).FnRowLogEst = (*TSelect)(unsafe.Pointer(pSub1)).FnSelectRow
if onceAddr != 0 {
@@ -128171,6 +129404,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
(*TParse)(unsafe.Pointer(pParse)).FzAuthContext = zSavedAuthContext
goto _10
_10:
+ ;
i++
}
/* Various elements of the SELECT copied into local variables for
@@ -128240,6 +129474,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
(*TExprList)(unsafe.Pointer(pEList)).FnExpr--
goto _19
_19:
+ ;
ii--
}
ii = 0
@@ -128252,6 +129487,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _20
_20:
+ ;
ii++
}
}
@@ -128365,6 +129601,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
})(unsafe.Pointer(pItem2 + 24))).FiAlias = uint16(0)
goto _27
_27:
+ ;
k--
pItem2 += 32
}
@@ -128380,6 +129617,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
})(unsafe.Pointer(pItem2 + 24))).FiAlias = uint16(0)
goto _28
_28:
+ ;
k--
pItem2 += 32
}
@@ -128410,6 +129648,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
(*(*TExprList_item)(unsafe.Pointer(pGroupBy + 8 + uintptr(ii1)*32))).Ffg.FsortFlags = sortFlags
goto _29
_29:
+ ;
ii1++
}
if _sqlite3ExprListCompare(tls, pGroupBy, (*(*TSortCtx)(unsafe.Pointer(bp + 16))).FpOrderBy, -int32(1)) == 0 {
@@ -128557,11 +129796,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) {
- v44 = __ccgo_ts + 20216
+ v44 = __ccgo_ts + 20250
} else {
- v44 = __ccgo_ts + 20225
+ v44 = __ccgo_ts + 20259
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19113, libc.VaList(bp+176, v44))
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+19147, libc.VaList(bp+176, v44))
groupBySort = int32(1)
nGroupBy = (*TExprList)(unsafe.Pointer(pGroupBy)).FnExpr
nCol = nGroupBy
@@ -128577,6 +129816,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _45
_45:
+ ;
i++
}
regBase = _sqlite3GetTempRange(tls, pParse, nCol)
@@ -128595,6 +129835,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _46
_46:
+ ;
i++
}
(*TAggInfo)(unsafe.Pointer(pAggInfo)).FdirectMode = uint8(0)
@@ -128656,6 +129897,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _50
_50:
+ ;
j++
}
_sqlite3VdbeAddOp4(tls, v, int32(OP_Compare), iAMem, iBMem, (*TExprList)(unsafe.Pointer(pGroupBy)).FnExpr, _sqlite3KeyInfoRef(tls, pKeyInfo1), -int32(8))
@@ -128773,6 +130015,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _54
_54:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
}
@@ -128817,6 +130060,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
}
goto _55
_55:
+ ;
i++
}
if i == (*TAggInfo)(unsafe.Pointer(pAggInfo)).FnFunc {
@@ -128880,7 +130124,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+20216)
+ _explainTempTable(tls, pParse, __ccgo_ts+20250)
}
/* If there is an ORDER BY clause, then we need to sort the results
** and send them to the callback one by one.
@@ -128899,6 +130143,7 @@ func _sqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (r
** successful coding of the SELECT.
*/
select_end:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_sqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 64)))
@@ -128997,12 +130242,13 @@ func _sqlite3_get_table_cb(tls *libc.TLS, pArg uintptr, nCol int32, argv uintptr
*(*uintptr)(unsafe.Pointer((*TTabResult)(unsafe.Pointer(p)).FazResult + uintptr(v2)*8)) = z
goto _1
_1:
+ ;
i++
}
} 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+20234, 0)
+ (*TTabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+20268, 0)
(*TTabResult)(unsafe.Pointer(p)).Frc = int32(SQLITE_ERROR)
return int32(1)
}
@@ -129031,12 +130277,14 @@ func _sqlite3_get_table_cb(tls *libc.TLS, pArg uintptr, nCol int32, argv uintptr
*(*uintptr)(unsafe.Pointer((*TTabResult)(unsafe.Pointer(p)).FazResult + uintptr(v5)*8)) = z
goto _4
_4:
+ ;
i++
}
(*TTabResult)(unsafe.Pointer(p)).FnRow++
}
return 0
malloc_failed:
+ ;
(*TTabResult)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
return int32(1)
}
@@ -129143,6 +130391,7 @@ func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) {
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, azResult)
@@ -129259,7 +130508,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+20299, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20333, 0)
goto trigger_cleanup
}
iDb = int32(1)
@@ -129300,7 +130549,7 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
goto trigger_cleanup
}
_ = libc.Int32FromInt32(0)
- _sqlite3FixInit(tls, bp+8, pParse, iDb, __ccgo_ts+20345, *(*uintptr)(unsafe.Pointer(bp)))
+ _sqlite3FixInit(tls, bp+8, pParse, iDb, __ccgo_ts+20379, *(*uintptr)(unsafe.Pointer(bp)))
if _sqlite3FixSrcList(tls, bp+8, pTableName) != 0 {
goto trigger_cleanup
}
@@ -129310,11 +130559,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+20353, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20387, 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+20394, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20428, 0)
goto trigger_orphan_error
}
/* Check that the trigger name is not reserved and that no trigger of the
@@ -129324,14 +130573,14 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
_ = libc.Int32FromInt32(0)
goto trigger_cleanup
}
- if _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+20345, (*TTable)(unsafe.Pointer(pTab)).FzName) != 0 {
+ if _sqlite3CheckObjectName(tls, pParse, zName, __ccgo_ts+20379, (*TTable)(unsafe.Pointer(pTab)).FzName) != 0 {
goto trigger_cleanup
}
_ = libc.Int32FromInt32(0)
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+20434, libc.VaList(bp+112, *(*uintptr)(unsafe.Pointer(bp))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20468, libc.VaList(bp+112, *(*uintptr)(unsafe.Pointer(bp))))
} else {
_ = libc.Int32FromInt32(0)
_sqlite3CodeVerifySchema(tls, pParse, iDb)
@@ -129340,8 +130589,8 @@ 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+6500, int32(7)) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20460, 0)
+ if Xsqlite3_strnicmp(tls, (*TTable)(unsafe.Pointer(pTab)).FzName, __ccgo_ts+6525, int32(7)) == 0 {
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20494, 0)
goto trigger_cleanup
}
/* INSTEAD of triggers are only for views and views only support INSTEAD
@@ -129349,15 +130598,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 + 20498
+ v1 = __ccgo_ts + 20532
} else {
- v1 = __ccgo_ts + 20505
+ v1 = __ccgo_ts + 20539
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20511, libc.VaList(bp+112, v1, pTableName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20545, 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+20548, libc.VaList(bp+112, pTableName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20582, libc.VaList(bp+112, pTableName+8))
goto trigger_orphan_error
}
if !(int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= libc.Int32FromInt32(PARSE_MODE_RENAME)) {
@@ -129377,9 +130626,9 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
goto trigger_cleanup
}
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iTabDb == int32(1) {
- v3 = __ccgo_ts + 6508
+ v3 = __ccgo_ts + 6533
} else {
- v3 = __ccgo_ts + 6041
+ v3 = __ccgo_ts + 6066
}
if _sqlite3AuthCheck(tls, pParse, int32(SQLITE_INSERT), v3, uintptr(0), zDb) != 0 {
goto trigger_cleanup
@@ -129422,6 +130671,7 @@ func _sqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2
_ = libc.Int32FromInt32(0)
(*TParse)(unsafe.Pointer(pParse)).FpNewTrigger = pTrigger
trigger_cleanup:
+ ;
_sqlite3DbFree(tls, db, zName)
_sqlite3SrcListDelete(tls, db, pTableName)
_sqlite3IdListDelete(tls, db, pColumns)
@@ -129433,6 +130683,7 @@ trigger_cleanup:
}
return
trigger_orphan_error:
+ ;
if int32((*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb) == int32(1) {
/* Ticket #3810.
** Normally, whenever a table is dropped, all associated triggers are
@@ -129477,7 +130728,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+20345, bp+96)
+ _sqlite3FixInit(tls, bp, pParse, iDb, __ccgo_ts+20379, 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
}
@@ -129500,11 +130751,12 @@ 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+20594, libc.VaList(bp+120, (*TTrigger)(unsafe.Pointer(pTrig)).FzName, (*TTriggerStep)(unsafe.Pointer(pStep)).FzTarget))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20628, libc.VaList(bp+120, (*TTrigger)(unsafe.Pointer(pTrig)).FzName, (*TTriggerStep)(unsafe.Pointer(pStep)).FzTarget))
goto triggerfinish_cleanup
}
goto _1
_1:
+ ;
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
}
}
@@ -129515,10 +130767,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+20642, 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+20676, 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+20717, libc.VaList(bp+120, zName)), uint16(0))
+ _sqlite3VdbeAddParseSchemaOp(tls, v, iDb, _sqlite3MPrintf(tls, db, __ccgo_ts+20751, libc.VaList(bp+120, zName)), uint16(0))
}
}
if (*Tsqlite3)(unsafe.Pointer(db)).Finit1.Fbusy != 0 {
@@ -129539,6 +130791,7 @@ func _sqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAl
}
}
triggerfinish_cleanup:
+ ;
_sqlite3DeleteTrigger(tls, db, pTrig)
_ = libc.Int32FromInt32(0)
_sqlite3DeleteTriggerStep(tls, db, pStepList)
@@ -129566,6 +130819,7 @@ func _triggerSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) (r
}
goto _1
_1:
+ ;
i++
}
}
@@ -129786,11 +131040,12 @@ func _sqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int
}
goto _1
_1:
+ ;
i++
}
if !(pTrigger != 0) {
if !(noErr != 0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20746, libc.VaList(bp+8, pName+8))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20780, libc.VaList(bp+8, pName+8))
} else {
_sqlite3CodeVerifyNamedSchema(tls, pParse, zDb)
}
@@ -129799,6 +131054,7 @@ func _sqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int
}
_sqlite3DropTriggerPtr(tls, pParse, pTrigger)
drop_trigger_cleanup:
+ ;
_sqlite3SrcListDelete(tls, db, pName)
}
@@ -129832,9 +131088,9 @@ func _sqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) {
code = int32(SQLITE_DROP_TRIGGER)
zDb = (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName
if libc.Bool(!(libc.Int32FromInt32(OMIT_TEMPDB) != 0)) && iDb == int32(1) {
- v1 = __ccgo_ts + 6508
+ v1 = __ccgo_ts + 6533
} else {
- v1 = __ccgo_ts + 6041
+ v1 = __ccgo_ts + 6066
}
zTab = v1
if iDb == int32(1) {
@@ -129849,7 +131105,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+20766, 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+20800, 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)
}
@@ -129881,6 +131137,7 @@ func _sqlite3UnlinkAndDeleteTrigger(tls *libc.TLS, db uintptr, iDb int32, zName
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 64
}
}
@@ -129917,6 +131174,7 @@ func _checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) (r int3
}
goto _1
_1:
+ ;
e++
}
return 0
@@ -129983,11 +131241,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 + 20828
+ v1 = __ccgo_ts + 20862
} else {
- v1 = __ccgo_ts + 20835
+ v1 = __ccgo_ts + 20869
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20842, libc.VaList(bp+8, v1))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20876, libc.VaList(bp+8, v1))
}
(*TTrigger)(unsafe.Pointer(p)).Ftr_tm = uint8(TRIGGER_BEFORE)
} else {
@@ -130005,6 +131263,7 @@ func _triggersReallyExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32,
}
}
exit_triggers_exist:
+ ;
if pMask != 0 {
*(*int32)(unsafe.Pointer(pMask)) = mask
}
@@ -130092,7 +131351,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+20890, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20924, 0)
return int32(1)
}
@@ -130137,6 +131396,7 @@ func _sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab
}
goto _2
_2:
+ ;
jj++
}
} else {
@@ -130150,6 +131410,7 @@ func _sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab
}
goto _1
_1:
+ ;
i++
}
return pNew
@@ -130231,6 +131492,7 @@ func _codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab
}
goto _3
_3:
+ ;
i++
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_MakeRecord), reg, i, reg+i)
@@ -130287,7 +131549,7 @@ func _codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orcon
(*TParse)(unsafe.Pointer(pParse)).FeOrconf = uint8(v2)
_ = libc.Int32FromInt32(0)
if (*TTriggerStep)(unsafe.Pointer(pStep)).FzSpan != 0 {
- _sqlite3VdbeAddOp4(tls, v, int32(OP_Trace), int32(0x7fffffff), int32(1), 0, _sqlite3MPrintf(tls, db, __ccgo_ts+6238, libc.VaList(bp+48, (*TTriggerStep)(unsafe.Pointer(pStep)).FzSpan)), -int32(6))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_Trace), int32(0x7fffffff), int32(1), 0, _sqlite3MPrintf(tls, db, __ccgo_ts+6263, libc.VaList(bp+48, (*TTriggerStep)(unsafe.Pointer(pStep)).FzSpan)), -int32(6))
}
switch int32((*TTriggerStep)(unsafe.Pointer(pStep)).Fop) {
case int32(TK_UPDATE):
@@ -130309,6 +131571,7 @@ func _codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orcon
}
goto _1
_1:
+ ;
pStep = (*TTriggerStep)(unsafe.Pointer(pStep)).FpNext
}
return 0
@@ -130393,7 +131656,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+20932, libc.VaList(bp+488, (*TTrigger)(unsafe.Pointer(pTrigger)).FzName)), -int32(6))
+ _sqlite3VdbeChangeP4(tls, v, -int32(1), _sqlite3MPrintf(tls, db, __ccgo_ts+20966, 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
@@ -130461,6 +131724,7 @@ func _getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt
}
goto _2
_2:
+ ;
pPrg = (*TTriggerPrg)(unsafe.Pointer(pPrg)).FpNext
}
/* If an existing TriggerPrg could not be located, create a new one. */
@@ -130578,6 +131842,7 @@ func _sqlite3CodeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, op
}
goto _1
_1:
+ ;
p = (*TTrigger)(unsafe.Pointer(p)).FpNext
}
}
@@ -130642,6 +131907,7 @@ func _sqlite3TriggerColmask(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pCh
}
goto _2
_2:
+ ;
p = (*TTrigger)(unsafe.Pointer(p)).FpNext
}
return mask
@@ -130845,6 +132111,7 @@ func _updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, p
pList = _sqlite3ExprListAppend(tls, pParse, pList, pNew)
goto _1
_1:
+ ;
i++
}
if int32((*TTable)(unsafe.Pointer(pTab)).FeTabType) == int32(TABTYP_VTAB) {
@@ -130863,6 +132130,7 @@ func _updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, p
pList = _sqlite3ExprListAppend(tls, pParse, pList, _exprRowColumn(tls, pParse, i))
goto _3
_3:
+ ;
i++
}
eDest = int32(SRT_Table)
@@ -130886,6 +132154,7 @@ func _updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, p
pList = _sqlite3ExprListAppend(tls, pParse, pList, _sqlite3ExprDup(tls, db, (*(*TExprList_item)(unsafe.Pointer(pChanges + 8 + uintptr(i)*32))).FpExpr, 0))
goto _5
_5:
+ ;
i++
}
}
@@ -131022,6 +132291,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
(*TParse)(unsafe.Pointer(pParse)).FnTab++
goto _6
_6:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
nIdx++
}
@@ -131051,6 +132321,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
*(*int32)(unsafe.Pointer(aXRef + uintptr(i)*4)) = -int32(1)
goto _7
_7:
+ ;
i++
}
/* Initialize the name-context */
@@ -131099,7 +132370,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+20946, libc.VaList(bp+112, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+20980, libc.VaList(bp+112, (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName))
goto update_cleanup
}
}
@@ -131109,6 +132380,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _10
_10:
+ ;
j++
}
if j >= int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
@@ -131118,13 +132390,13 @@ 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+20982, libc.VaList(bp+112, (*(*TExprList_item)(unsafe.Pointer(pChanges + 8 + uintptr(i)*32))).FzEName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21016, libc.VaList(bp+112, (*(*TExprList_item)(unsafe.Pointer(pChanges + 8 + uintptr(i)*32))).FzEName))
(*TParse)(unsafe.Pointer(pParse)).FcheckSchema = uint8(1)
goto update_cleanup
}
}
if j < 0 {
- v11 = __ccgo_ts + 7880
+ v11 = __ccgo_ts + 7905
} else {
v11 = (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*16))).FzCnName
}
@@ -131138,6 +132410,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _9
_9:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -131171,6 +132444,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _12
_12:
+ ;
i++
}
}
@@ -131226,6 +132500,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _17
_17:
+ ;
i++
}
}
@@ -131235,6 +132510,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
*(*int32)(unsafe.Pointer(aRegIdx + uintptr(nAllIdx)*4)) = reg
goto _14
_14:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
nAllIdx++
}
@@ -131457,6 +132733,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iDataCur, int32(*(*Ti16)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pPk)).FaiColumn + uintptr(i)*2))), iPk+i)
goto _40
_40:
+ ;
i++
}
if eOnePass != 0 {
@@ -131527,6 +132804,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iEph, i, iPk+i)
goto _42
_42:
+ ;
i++
}
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_NotFound), iDataCur, labelContinue, iPk, int32(nPk))
@@ -131585,6 +132863,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _44
_44:
+ ;
i++
}
if int32(chngRowid) == 0 && pPk == uintptr(0) {
@@ -131650,6 +132929,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _45
_45:
+ ;
i++
k++
}
@@ -131700,6 +132980,7 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
}
goto _47
_47:
+ ;
i++
k++
}
@@ -131811,9 +133092,10 @@ func _sqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges ui
** that information.
*/
if regRowCount != 0 {
- _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+21001)
+ _sqlite3CodeChangeCount(tls, v, regRowCount, __ccgo_ts+21035)
}
update_cleanup:
+ ;
_sqlite3AuthContextPop(tls, bp)
_sqlite3DbFree(tls, db, aXRef) /* Also frees aRegIdx[] and aToOpen[] */
_sqlite3SrcListDelete(tls, db, pTabList)
@@ -131910,6 +133192,7 @@ func _updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintp
}
goto _3
_3:
+ ;
i++
}
_updateFromSelect(tls, pParse, ephemTab, pPk, pList, pSrc, pWhere, uintptr(0), uintptr(0))
@@ -131944,6 +133227,7 @@ func _updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintp
}
goto _8
_8:
+ ;
i++
}
if (*TTable)(unsafe.Pointer(pTab)).FtabFlags&uint32(TF_WithoutRowid) == uint32(0) {
@@ -131995,6 +133279,7 @@ func _updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintp
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), ephemTab, i, regArg+i)
goto _9
_9:
+ ;
i++
}
}
@@ -132110,7 +133395,7 @@ func _sqlite3UpsertNew(tls *libc.TLS, db uintptr, pTarget uintptr, pTargetWhere
// ** Return SQLITE_OK if everything works, or an error code is something
// ** is wrong.
// */
-func _sqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr, pUpsert uintptr) (r int32) {
+func _sqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr, pUpsert uintptr, pAll uintptr) (r int32) {
bp := tls.Alloc(240)
defer tls.Free(240)
var iCursor, ii, jj, nClause, nn, rc int32
@@ -132219,6 +133504,7 @@ func _sqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr
}
goto _6
_6:
+ ;
jj++
}
if jj >= nn {
@@ -132227,6 +133513,7 @@ func _sqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr
}
goto _5
_5:
+ ;
ii++
}
if ii < nn {
@@ -132235,22 +133522,32 @@ func _sqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr
goto _4
}
(*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertIdx = pIdx
+ if _sqlite3UpsertOfIndex(tls, pAll, pIdx) != pUpsert {
+ /* Really this should be an error. The isDup ON CONFLICT clause will
+ ** never fire. But this problem was not discovered until three years
+ ** after multi-CONFLICT upsert was added, and so we silently ignore
+ ** the problem to prevent breaking applications that might actually
+ ** have redundant ON CONFLICT clauses. */
+ (*TUpsert)(unsafe.Pointer(pUpsert)).FisDup = uint8(1)
+ }
break
goto _4
_4:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
if (*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertIdx == uintptr(0) {
if nClause == 0 && (*TUpsert)(unsafe.Pointer(pUpsert)).FpNextUpsert == uintptr(0) {
(*(*[16]uint8)(unsafe.Pointer(bp + 200)))[0] = uint8(0)
} else {
- Xsqlite3_snprintf(tls, int32(16), bp+200, __ccgo_ts+21014, libc.VaList(bp+224, nClause+int32(1)))
+ Xsqlite3_snprintf(tls, int32(16), bp+200, __ccgo_ts+21048, libc.VaList(bp+224, nClause+int32(1)))
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21018, libc.VaList(bp+224, bp+200))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21052, libc.VaList(bp+224, bp+200))
return int32(SQLITE_ERROR)
}
goto _1
_1:
+ ;
pUpsert = (*TUpsert)(unsafe.Pointer(pUpsert)).FpNextUpsert
nClause++
}
@@ -132271,14 +133568,20 @@ func _sqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) (r int32) {
return 0
}
pNext = (*TUpsert)(unsafe.Pointer(pUpsert)).FpNextUpsert
- if pNext == uintptr(0) {
- return int32(1)
- }
- if (*TUpsert)(unsafe.Pointer(pNext)).FpUpsertTarget == uintptr(0) {
- return int32(1)
- }
- if (*TUpsert)(unsafe.Pointer(pNext)).FpUpsertIdx == uintptr(0) {
- return int32(1)
+ for int32(1) != 0 {
+ if pNext == uintptr(0) {
+ return int32(1)
+ }
+ if (*TUpsert)(unsafe.Pointer(pNext)).FpUpsertTarget == uintptr(0) {
+ return int32(1)
+ }
+ if (*TUpsert)(unsafe.Pointer(pNext)).FpUpsertIdx == uintptr(0) {
+ return int32(1)
+ }
+ if !((*TUpsert)(unsafe.Pointer(pNext)).FisDup != 0) {
+ return 0
+ }
+ pNext = (*TUpsert)(unsafe.Pointer(pNext)).FpNextUpsert
}
return 0
}
@@ -132341,10 +133644,11 @@ func _sqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iCur, k, iPk+i)
goto _1
_1:
+ ;
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+12445, -int32(1))
+ _sqlite3VdbeAddOp4(tls, v, int32(OP_Halt), int32(SQLITE_CORRUPT), int32(OE_Abort), 0, __ccgo_ts+12470, -int32(1))
_sqlite3MayAbort(tls, pParse)
_sqlite3VdbeJumpHere(tls, v, i)
}
@@ -132363,6 +133667,7 @@ func _sqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab
}
goto _2
_2:
+ ;
i++
}
_sqlite3Update(tls, pParse, pSrc, _sqlite3ExprListDup(tls, db, (*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertSet, 0), _sqlite3ExprDup(tls, db, (*TUpsert)(unsafe.Pointer(pUpsert)).FpUpsertWhere, 0), int32(OE_Abort), uintptr(0), uintptr(0), pUpsert)
@@ -132426,7 +133731,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+21091, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, __ccgo_ts+21095, uint64(3)) == 0) {
+ if zSubSql != 0 && (libc.Xstrncmp(tls, zSubSql, __ccgo_ts+21125, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, __ccgo_ts+21129, uint64(3)) == 0) {
rc = _execSql(tls, db, pzErrMsg, zSubSql)
if rc != SQLITE_OK {
break
@@ -132528,6 +133833,7 @@ func _sqlite3Vacuum(tls *libc.TLS, pParse uintptr, _pNm uintptr, pInto uintptr)
_sqlite3VdbeUsesBtree(tls, v, iDb)
}
build_vacuum_end:
+ ;
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pInto)
return
}
@@ -132553,17 +133859,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) /* sync flags for output db */
if !((*Tsqlite3)(unsafe.Pointer(db)).FautoCommit != 0) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21099)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21133)
return int32(SQLITE_ERROR) /* IMP: R-12218-18073 */
}
if (*Tsqlite3)(unsafe.Pointer(db)).FnVdbeActive > int32(1) {
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21139)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21173)
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+21182)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21216)
return int32(SQLITE_ERROR)
}
zOut = Xsqlite3_value_text(tls, pOut)
@@ -132602,7 +133908,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
** to write the journal header file.
*/
nDb = (*Tsqlite3)(unsafe.Pointer(db)).FnDb
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21200, libc.VaList(bp+24, zOut))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21234, libc.VaList(bp+24, zOut))
(*Tsqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags
if rc != SQLITE_OK {
goto end_of_vacuum
@@ -132616,7 +133922,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
*(*Ti64)(unsafe.Pointer(bp)) = 0
if (*Tsqlite3_file)(unsafe.Pointer(id)).FpMethods != uintptr(0) && (_sqlite3OsFileSize(tls, id, bp) != SQLITE_OK || *(*Ti64)(unsafe.Pointer(bp)) > 0) {
rc = int32(SQLITE_ERROR)
- _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21223)
+ _sqlite3SetString(tls, pzErrMsg, db, __ccgo_ts+21257)
goto end_of_vacuum
}
*(*Tu32)(unsafe.Pointer(db + 44)) |= uint32(DBFLAG_VacuumInto)
@@ -132633,7 +133939,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+14854)
+ rc = _execSql(tls, db, pzErrMsg, __ccgo_ts+14879)
if rc != SQLITE_OK {
goto end_of_vacuum
}
@@ -132664,11 +133970,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+21250, libc.VaList(bp+24, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21284, libc.VaList(bp+24, zDbMain))
if rc != SQLITE_OK {
goto end_of_vacuum
}
- rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21358, libc.VaList(bp+24, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21392, libc.VaList(bp+24, zDbMain))
if rc != SQLITE_OK {
goto end_of_vacuum
}
@@ -132677,7 +133983,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+21412, libc.VaList(bp+24, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21446, libc.VaList(bp+24, zDbMain))
_ = libc.Int32FromInt32(0)
*(*Tu32)(unsafe.Pointer(db + 44)) &= uint32(^libc.Int32FromInt32(DBFLAG_Vacuum))
if rc != SQLITE_OK {
@@ -132688,7 +133994,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+21563, libc.VaList(bp+24, zDbMain))
+ rc = _execSqlF(tls, db, pzErrMsg, __ccgo_ts+21597, libc.VaList(bp+24, zDbMain))
if rc != 0 {
goto end_of_vacuum
}
@@ -132709,6 +134015,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
}
goto _3
_3:
+ ;
i += int32(2)
}
if pOut == uintptr(0) {
@@ -132730,6 +134037,7 @@ func _sqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p
rc = _sqlite3BtreeSetPageSize(tls, pMain, _sqlite3BtreeGetPageSize(tls, pTemp), nRes, int32(1))
}
end_of_vacuum:
+ ;
/* Restore the original value of db->flags */
(*Tsqlite3)(unsafe.Pointer(db)).Finit1.FiDb = uint8(0)
(*Tsqlite3)(unsafe.Pointer(db)).FmDbFlags = saved_mDbFlags
@@ -132923,6 +134231,7 @@ func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) (r int32)
}
goto _2
_2:
+ ;
ii++
}
if *(*uintptr)(unsafe.Pointer(azNames + uintptr(ii)*8)) != uintptr(0) {
@@ -132932,6 +134241,7 @@ func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) (r int32)
_createModule(tls, db, (*TModule)(unsafe.Pointer(pMod)).FzName, uintptr(0), uintptr(0), uintptr(0))
goto _1
_1:
+ ;
pThis = pNext
}
return SQLITE_OK
@@ -132991,6 +134301,7 @@ func _sqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
pVtab = (*TVTable)(unsafe.Pointer(pVtab)).FpNext
}
return pVtab
@@ -133102,6 +134413,7 @@ func _sqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) {
}
goto _1
_1:
+ ;
ppVTab = *(*uintptr)(unsafe.Pointer(ppVTab)) + 40
}
}
@@ -133191,6 +134503,7 @@ func _sqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, db, (*(*struct {
@@ -133228,7 +134541,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+12675, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+12700, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTable)).FzName))
}
azModuleArg = _sqlite3DbRealloc(tls, db, (*(*struct {
FnArg int32
@@ -133355,7 +134668,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+21693, libc.VaList(bp+8, pParse+272))
+ zStmt = _sqlite3MPrintf(tls, db, __ccgo_ts+21727, libc.VaList(bp+8, pParse+272))
/* 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.
@@ -133365,11 +134678,11 @@ 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+21717, 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, (*TParse)(unsafe.Pointer(pParse)).FregRowid))
+ _sqlite3NestedParse(tls, pParse, __ccgo_ts+21751, 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, (*TParse)(unsafe.Pointer(pParse)).FregRowid))
v = _sqlite3GetVdbe(tls, pParse)
_sqlite3ChangeCookie(tls, pParse, iDb)
_sqlite3VdbeAddOp0(tls, v, int32(OP_Expire))
- zWhere = _sqlite3MPrintf(tls, db, __ccgo_ts+21816, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zStmt))
+ zWhere = _sqlite3MPrintf(tls, db, __ccgo_ts+21850, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, zStmt))
_sqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0))
_sqlite3DbFree(tls, db, zStmt)
v2 = pParse + 56
@@ -133459,11 +134772,12 @@ 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+21835, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(pTab)).FzName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+21869, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(pTab)).FzName))
return int32(SQLITE_LOCKED)
}
goto _1
_1:
+ ;
pCtx = (*TVtabCtx)(unsafe.Pointer(pCtx)).FpPrior
}
zModuleName = _sqlite3DbStrDup(tls, db, (*TTable)(unsafe.Pointer(pTab)).FzName)
@@ -133503,7 +134817,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
_ = libc.Int32FromInt32(0)
if SQLITE_OK != rc {
if *(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+21877, libc.VaList(bp+48, zModuleName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+21911, libc.VaList(bp+48, zModuleName))
} else {
*(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+3795, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 32))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 32)))
@@ -133518,7 +134832,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 + 21907
+ zFormat = __ccgo_ts + 21941
*(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, zFormat, libc.VaList(bp+48, (*TTable)(unsafe.Pointer(pTab)).FzName))
_sqlite3VtabUnlock(tls, pVTable)
rc = int32(SQLITE_ERROR)
@@ -133552,11 +134866,12 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
if !(i < nType) {
break
}
- if 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+16551, zType+uintptr(i), int32(6)) && (i == 0 || int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i-int32(1))))) == int32(' ')) && (int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32('\000') || int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32(' ')) {
+ if 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+16585, zType+uintptr(i), int32(6)) && (i == 0 || int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i-int32(1))))) == int32(' ')) && (int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32('\000') || int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i+int32(6))))) == int32(' ')) {
break
}
goto _3
_3:
+ ;
i++
}
if i < nType {
@@ -133574,6 +134889,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
*(*uint8)(unsafe.Pointer(zType + uintptr(j))) = *(*uint8)(unsafe.Pointer(zType + uintptr(j+nDel)))
goto _5
_5:
+ ;
j++
}
if int32(*(*uint8)(unsafe.Pointer(zType + uintptr(i)))) == int32('\000') && i > 0 {
@@ -133589,6 +134905,7 @@ func _vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr,
}
goto _2
_2:
+ ;
iCol++
}
}
@@ -133633,7 +134950,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+21953, libc.VaList(bp+16, zModule))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+21987, libc.VaList(bp+16, zModule))
rc = int32(SQLITE_ERROR)
} else {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
@@ -133721,7 +135038,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+21953, libc.VaList(bp+8, zMod))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = _sqlite3MPrintf(tls, db, __ccgo_ts+21987, 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)
@@ -133756,9 +135073,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(154929)))
+ _sqlite3Error(tls, db, _sqlite3MisuseError(tls, int32(155040)))
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
- return _sqlite3MisuseError(tls, int32(154931))
+ return _sqlite3MisuseError(tls, int32(155042))
}
pTab = (*TVtabCtx)(unsafe.Pointer(pCtx)).FpTab
_ = libc.Int32FromInt32(0)
@@ -133862,6 +135179,7 @@ func _sqlite3VtabCallDestroy(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr)
}
goto _1
_1:
+ ;
p = (*TVTable)(unsafe.Pointer(p)).FpNext
}
p = _vtabDisconnectAll(tls, db, pTab)
@@ -133922,6 +135240,7 @@ func _callFinaliser(tls *libc.TLS, db uintptr, offset int32) {
_sqlite3VtabUnlock(tls, pVTab)
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, db, aVTrans)
@@ -133962,6 +135281,7 @@ func _sqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
(*Tsqlite3)(unsafe.Pointer(db)).FaVTrans = aVTrans
@@ -134029,6 +135349,7 @@ func _sqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
/* Invoke the xBegin method. If successful, add the vtab to the
@@ -134104,6 +135425,7 @@ func _sqlite3VtabSavepoint(tls *libc.TLS, db uintptr, op int32, iSavepoint int32
}
goto _1
_1:
+ ;
i++
}
}
@@ -134213,6 +135535,7 @@ func _sqlite3VtabMakeWritable(tls *libc.TLS, pParse uintptr, pTab uintptr) {
}
goto _2
_2:
+ ;
i++
}
n = int32(uint64((*TParse)(unsafe.Pointer(pToplevel)).FnVtabLock+libc.Int32FromInt32(1)) * uint64(8))
@@ -134349,7 +135672,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(155425))
+ rc = _sqlite3MisuseError(tls, int32(155536))
} else {
_ = libc.Int32FromInt32(0)
ap = va
@@ -134363,7 +135686,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(155447))
+ rc = _sqlite3MisuseError(tls, int32(155558))
break
}
_ = ap
@@ -135085,10 +136408,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 + 21972
+ return __ccgo_ts + 22006
}
if i == -int32(1) {
- return __ccgo_ts + 16660
+ return __ccgo_ts + 16694
}
return (*(*TColumn)(unsafe.Pointer((*TTable)(unsafe.Pointer((*TIndex)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*16))).FzCnName
}
@@ -135108,10 +136431,10 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
_ = i
_ = libc.Int32FromInt32(0)
if bAnd != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+21979, int32(5))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+22013, int32(5))
}
if nTerm > int32(1) {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+21985, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+22019, int32(1))
}
i = 0
for {
@@ -135119,19 +136442,20 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
break
}
if i != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+13065, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+13090, int32(1))
}
Xsqlite3_str_appendall(tls, pStr, _explainIndexColumnName(tls, pIdx, iTerm+i))
goto _1
_1:
+ ;
i++
}
if nTerm > int32(1) {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+5081, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+5106, int32(1))
}
Xsqlite3_str_append(tls, pStr, zOp, int32(1))
if nTerm > int32(1) {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+21985, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+22019, int32(1))
}
i = 0
for {
@@ -135139,15 +136463,16 @@ func _explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32,
break
}
if i != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+13065, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+13090, int32(1))
}
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+5083, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+5108, int32(1))
goto _2
_2:
+ ;
i++
}
if nTerm > int32(1) {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+5081, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+5106, int32(1))
}
}
@@ -135180,7 +136505,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+21987, int32(2))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+22021, int32(2))
i = 0
for {
if !(i < int32(nEq)) {
@@ -135188,27 +136513,28 @@ func _explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) {
}
z = _explainIndexColumnName(tls, pIndex, i)
if i != 0 {
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+21979, int32(5))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+22013, int32(5))
}
if i >= int32(nSkip) {
- v2 = __ccgo_ts + 21990
+ v2 = __ccgo_ts + 22024
} else {
- v2 = __ccgo_ts + 21995
+ v2 = __ccgo_ts + 22029
}
Xsqlite3_str_appendf(tls, pStr, v2, libc.VaList(bp+8, z))
goto _1
_1:
+ ;
i++
}
j = i
if (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(WHERE_BTM_LIMIT) != 0 {
- _explainAppendTerm(tls, pStr, pIndex, int32((*TWhereLoop)(unsafe.Pointer(pLoop)).Fu.Fbtree.FnBtm), j, i, __ccgo_ts+22003)
+ _explainAppendTerm(tls, pStr, pIndex, int32((*TWhereLoop)(unsafe.Pointer(pLoop)).Fu.Fbtree.FnBtm), j, i, __ccgo_ts+22037)
i = int32(1)
}
if (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(WHERE_TOP_LIMIT) != 0 {
- _explainAppendTerm(tls, pStr, pIndex, int32((*TWhereLoop)(unsafe.Pointer(pLoop)).Fu.Fbtree.FnTop), j, i, __ccgo_ts+22005)
+ _explainAppendTerm(tls, pStr, pIndex, int32((*TWhereLoop)(unsafe.Pointer(pLoop)).Fu.Fbtree.FnTop), j, i, __ccgo_ts+22039)
}
- Xsqlite3_str_append(tls, pStr, __ccgo_ts+5081, int32(1))
+ Xsqlite3_str_append(tls, pStr, __ccgo_ts+5106, int32(1))
}
// C documentation
@@ -135251,11 +136577,11 @@ func _sqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
_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 + 22007
+ v2 = __ccgo_ts + 22041
} else {
- v2 = __ccgo_ts + 22014
+ v2 = __ccgo_ts + 22048
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22019, libc.VaList(bp+144, v2, pItem))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22053, libc.VaList(bp+144, v2, pItem))
if flags&uint32(libc.Int32FromInt32(WHERE_IPK)|libc.Int32FromInt32(WHERE_VIRTUALTABLE)) == uint32(0) {
zFmt = uintptr(0)
_ = libc.Int32FromInt32(0)
@@ -135263,37 +136589,37 @@ func _sqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
_ = libc.Int32FromInt32(0)
if !((*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pItem)).FpTab)).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 + 11228
+ zFmt = __ccgo_ts + 11253
}
} else {
if flags&uint32(WHERE_PARTIALIDX) != 0 {
- zFmt = __ccgo_ts + 22025
+ zFmt = __ccgo_ts + 22059
} else {
if flags&uint32(WHERE_AUTO_INDEX) != 0 {
- zFmt = __ccgo_ts + 22058
+ zFmt = __ccgo_ts + 22092
} else {
if flags&uint32(WHERE_IDX_ONLY) != 0 {
- zFmt = __ccgo_ts + 22083
+ zFmt = __ccgo_ts + 22117
} else {
- zFmt = __ccgo_ts + 22101
+ zFmt = __ccgo_ts + 22135
}
}
}
}
if zFmt != 0 {
- Xsqlite3_str_append(tls, bp, __ccgo_ts+22110, int32(7))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+22144, 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 + 16660
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22118, libc.VaList(bp+144, zRowid))
+ zRowid = __ccgo_ts + 16694
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22152, libc.VaList(bp+144, zRowid))
if flags&uint32(libc.Int32FromInt32(WHERE_COLUMN_EQ)|libc.Int32FromInt32(WHERE_COLUMN_IN)) != 0 {
cRangeOp = uint8('=')
} else {
if flags&uint32(WHERE_BOTH_LIMIT) == uint32(WHERE_BOTH_LIMIT) {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22149, libc.VaList(bp+144, zRowid))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22183, libc.VaList(bp+144, zRowid))
cRangeOp = uint8('<')
} else {
if flags&uint32(WHERE_BTM_LIMIT) != 0 {
@@ -135304,10 +136630,10 @@ func _sqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
}
}
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22159, libc.VaList(bp+144, int32(cRangeOp)))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22193, libc.VaList(bp+144, int32(cRangeOp)))
} else {
if flags&uint32(WHERE_VIRTUALTABLE) != uint32(0) {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22164, libc.VaList(bp+144, (*(*struct {
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22198, libc.VaList(bp+144, (*(*struct {
FidxNum int32
F__ccgo4 uint8
FisOrdered Ti8
@@ -135326,7 +136652,7 @@ func _sqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr
}
}
if int32((*TSrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&int32(JT_LEFT) != 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22191, 0)
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22225, 0)
}
zMsg = _sqlite3StrAccumFinish(tls, bp)
ret = _sqlite3VdbeAddOp4(tls, v, int32(OP_Explain), _sqlite3VdbeCurrentAddr(tls, v), (*TParse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -int32(6))
@@ -135360,14 +136686,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+22202, libc.VaList(bp+144, pItem))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22236, 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)).FpTab
if int32((*TTable)(unsafe.Pointer(pTab)).FiPKey) >= 0 {
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+21990, 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+22024, 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+22223, 0)
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22257, 0)
}
} else {
i = int32((*TWhereLoop)(unsafe.Pointer(pLoop)).FnSkip)
@@ -135377,15 +136703,16 @@ func _sqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp
}
z = _explainIndexColumnName(tls, (*TWhereLoop)(unsafe.Pointer(pLoop)).Fu.Fbtree.FpIndex, i)
if i > int32((*TWhereLoop)(unsafe.Pointer(pLoop)).FnSkip) {
- Xsqlite3_str_append(tls, bp, __ccgo_ts+21979, int32(5))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+22013, int32(5))
}
- Xsqlite3_str_appendf(tls, bp, __ccgo_ts+21990, libc.VaList(bp+144, z))
+ Xsqlite3_str_appendf(tls, bp, __ccgo_ts+22024, libc.VaList(bp+144, z))
goto _1
_1:
+ ;
i++
}
}
- Xsqlite3_str_append(tls, bp, __ccgo_ts+5081, int32(1))
+ Xsqlite3_str_append(tls, bp, __ccgo_ts+5106, int32(1))
zMsg = _sqlite3StrAccumFinish(tls, bp)
ret = _sqlite3VdbeAddOp4(tls, v, int32(OP_Explain), _sqlite3VdbeCurrentAddr(tls, v), (*TParse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -int32(6))
return ret
@@ -135529,6 +136856,7 @@ func _updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintpt
}
goto _1
_1:
+ ;
i++
}
}
@@ -135610,6 +136938,7 @@ func _removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, p
}
goto _2
_2:
+ ;
i++
}
_sqlite3ExprListDelete(tls, db, pOrigRhs)
@@ -135644,11 +136973,13 @@ func _removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, p
*(*Tu16)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32 + 24)) = uint16(0)
goto _3
_3:
+ ;
i++
}
}
goto _1
_1:
+ ;
pSelect = (*TSelect)(unsafe.Pointer(pSelect)).FpPrior
}
}
@@ -135710,6 +137041,7 @@ func _codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uint
}
goto _1
_1:
+ ;
i++
}
i = iEq
@@ -135723,6 +137055,7 @@ func _codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uint
}
goto _2
_2:
+ ;
i++
}
*(*int32)(unsafe.Pointer(bp)) = 0
@@ -135838,6 +137171,7 @@ func _codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uint
}
goto _5
_5:
+ ;
i++
}
if iEq > 0 && (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(libc.Int32FromInt32(WHERE_IN_SEEKSCAN)|libc.Int32FromInt32(WHERE_VIRTUALTABLE)) == uint32(0) {
@@ -135960,6 +137294,7 @@ func _codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev i
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iIdxCur, j, regBase+j)
goto _3
_3:
+ ;
j++
}
}
@@ -136013,6 +137348,7 @@ func _codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev i
}
goto _4
_4:
+ ;
j++
}
*(*uintptr)(unsafe.Pointer(pzAff)) = zAff
@@ -136083,6 +137419,7 @@ func _codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32,
}
goto _3
_3:
+ ;
i++
}
_sqlite3VdbeChangeP4(tls, v, -int32(1), ai, -int32(14))
@@ -136124,6 +137461,7 @@ func _codeExprOrVector(tls *libc.TLS, pParse uintptr, p uintptr, iReg int32, nRe
_sqlite3ExprCode(tls, pParse, (*(*TExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32))).FpExpr, iReg+i)
goto _1
_1:
+ ;
i++
}
}
@@ -136166,6 +137504,7 @@ func _whereApplyPartialIndexConstraints(tls *libc.TLS, pTruth uintptr, iTabCur i
}
goto _1
_1:
+ ;
i++
pTerm += 56
}
@@ -136315,6 +137654,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
goto _6
_6:
+ ;
j--
}
addrHalt = (*(*TWhereLevel)(unsafe.Pointer(pWInfo + 856 + uintptr(j)*104))).FaddrBrk
@@ -136379,6 +137719,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
goto _7
_7:
+ ;
j++
}
_sqlite3VdbeAddOp2(tls, v, int32(OP_Integer), (*(*struct {
@@ -136480,6 +137821,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
goto _18
_18:
+ ;
iIn++
}
/* Generate code that will continue to the next row if
@@ -136514,6 +137856,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
goto _15
_15:
+ ;
j++
}
/* These registers need to be preserved in case there is an IN operator
@@ -136940,6 +138283,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), iIdxCur, k, iRowidReg+j)
goto _42
_42:
+ ;
j++
}
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_NotFound), iCur, addrCont, iRowidReg, int32((*TIndex)(unsafe.Pointer(pPk)).FnKeyCol))
@@ -137034,6 +138378,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
libc.Xmemcpy(tls, pOrTab+8+uintptr(k)*104, origSrc+uintptr((*(*TWhereLevel)(unsafe.Pointer(pLevel + uintptr(k)*104))).FiFrom)*104, uint64(104))
goto _48
_48:
+ ;
k++
}
} else {
@@ -137124,6 +138469,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
pAndExpr = _sqlite3ExprAnd(tls, pParse, pAndExpr, pExpr)
goto _55
_55:
+ ;
iTerm++
}
if pAndExpr != 0 {
@@ -137139,7 +138485,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+22231, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+22265, 0)
ii = 0
for {
if !(ii < (*TWhereClause)(unsafe.Pointer(pOrWc)).FnTerm) {
@@ -137162,7 +138508,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+22246, libc.VaList(bp+96, ii+int32(1)))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+22280, libc.VaList(bp+96, ii+int32(1)))
pSubWInfo = _sqlite3WhereBegin(tls, pParse, pOrTab, pOrExpr, uintptr(0), uintptr(0), uintptr(0), uint16(WHERE_OR_SUBCLAUSE), iCovCur)
_ = libc.Int32FromInt32(0)
if pSubWInfo != 0 {
@@ -137197,6 +138543,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, iCol, r+iPk)
goto _59
_59:
+ ;
iPk++
}
/* Check if the temp table already contains this key. If so,
@@ -137270,6 +138617,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
}
goto _56
_56:
+ ;
ii++
}
_sqlite3VdbeExplainPop(tls, pParse)
@@ -137399,6 +138747,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
*(*Tu16)(unsafe.Pointer(p62)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p62))) | libc.Int32FromInt32(TERM_CODED))
goto _61
_61:
+ ;
j--
pTerm += 56
}
@@ -137457,6 +138806,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
*(*Tu16)(unsafe.Pointer(p64)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p64))) | libc.Int32FromInt32(TERM_CODED))
goto _63
_63:
+ ;
j--
pTerm += 56
}
@@ -137489,6 +138839,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab1, iCur, iCol1, r1+int32(1)+iPk1)
goto _65
_65:
+ ;
iPk1++
}
}
@@ -137530,6 +138881,7 @@ func _sqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI
** appropriate WHERE clause constraint checks. tag-20220513a.
*/
code_outer_join_constraints:
+ ;
pTerm = (*TWhereClause)(unsafe.Pointer(pWC)).Fa
j = libc.Int32FromInt32(0)
for {
@@ -137552,10 +138904,12 @@ code_outer_join_constraints:
*(*Tu16)(unsafe.Pointer(p68)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p68))) | libc.Int32FromInt32(TERM_CODED))
goto _67
_67:
+ ;
j++
pTerm += 56
}
_66:
+ ;
return (*TWhereLevel)(unsafe.Pointer(pLevel)).FnotReady
}
@@ -137641,7 +138995,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)*104
mAll = uint64(0)
- _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+22255, libc.VaList(bp+120, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pTabItem)).FpTab)).FzName))
+ _sqlite3VdbeExplain(tls, pParse, uint8(1), __ccgo_ts+22289, libc.VaList(bp+120, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pTabItem)).FpTab)).FzName))
k = 0
for {
if !(k < iLevel) {
@@ -137655,6 +139009,7 @@ func _sqlite3WhereRightJoinLoop(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLe
}
goto _1
_1:
+ ;
k++
}
if int32((*TSrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&int32(JT_LTORJ) == 0 {
@@ -137677,6 +139032,7 @@ func _sqlite3WhereRightJoinLoop(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLe
pSubWhere = _sqlite3ExprAnd(tls, pParse, pSubWhere, _sqlite3ExprDup(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*TWhereTerm)(unsafe.Pointer(pTerm)).FpExpr, 0))
goto _2
_2:
+ ;
k++
}
}
@@ -137711,6 +139067,7 @@ func _sqlite3WhereRightJoinLoop(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLe
_sqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, iCol, r+iPk)
goto _5
_5:
+ ;
iPk++
}
}
@@ -137977,6 +139334,7 @@ func _isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintpt
*(*uint8)(unsafe.Pointer(zNew + uintptr(v4))) = *(*uint8)(unsafe.Pointer(zNew + uintptr(iFrom)))
goto _2
_2:
+ ;
iFrom++
}
*(*uint8)(unsafe.Pointer(zNew + uintptr(iTo))) = uint8(0)
@@ -138107,6 +139465,7 @@ func _isAuxiliaryVtabOperator(tls *libc.TLS, db uintptr, pExpr uintptr, peOp2 ui
}
goto _1
_1:
+ ;
i++
}
}
@@ -138177,19 +139536,19 @@ var _aOp = [4]struct {
FeOp2 uint8
}{
0: {
- FzOp: __ccgo_ts + 16509,
+ FzOp: __ccgo_ts + 16543,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH),
},
1: {
- FzOp: __ccgo_ts + 15840,
+ FzOp: __ccgo_ts + 15874,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB),
},
2: {
- FzOp: __ccgo_ts + 15319,
+ FzOp: __ccgo_ts + 15353,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE),
},
3: {
- FzOp: __ccgo_ts + 22269,
+ FzOp: __ccgo_ts + 22303,
FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP),
},
}
@@ -138312,6 +139671,7 @@ func _whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintp
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
op++
}
(*TExpr)(unsafe.Pointer(pNew)).Fop = uint8(op)
@@ -138483,6 +139843,7 @@ func _exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32)
}
goto _5
_5:
+ ;
j++
pAndTerm += 56
}
@@ -138509,6 +139870,7 @@ func _exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32)
}
goto _3
_3:
+ ;
i--
pOrTerm += 56
}
@@ -138618,6 +139980,7 @@ func _exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32)
break
goto _11
_11:
+ ;
i--
pOrTerm += 56
}
@@ -138664,11 +140027,13 @@ func _exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32)
}
goto _13
_13:
+ ;
i--
pOrTerm += 56
}
goto _10
_10:
+ ;
j1++
}
/* At this point, okToChngToIN is true if original pTerm satisfies
@@ -138696,6 +140061,7 @@ func _exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32)
pLeft1 = (*TExpr)(unsafe.Pointer((*TWhereTerm)(unsafe.Pointer(pOrTerm)).FpExpr)).FpLeft
goto _16
_16:
+ ;
i--
pOrTerm += 56
}
@@ -138794,6 +140160,7 @@ func _exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) (r TBitmask)
}
goto _1
_1:
+ ;
i++
}
}
@@ -138847,14 +140214,17 @@ func _exprMightBeIndexed2(tls *libc.TLS, pFrom uintptr, aiCurCol uintptr, pExpr
}
goto _4
_4:
+ ;
i++
}
goto _3
_3:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
goto _2
_2:
+ ;
j++
v1 = j
if !(v1 < (*TSrcList)(unsafe.Pointer(pFrom)).FnSrc) {
@@ -138898,10 +140268,12 @@ func _exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, aiCurCol uintptr, pExpr u
}
goto _2
_2:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -138995,7 +140367,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+22276, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22310, 0)
return
}
} else {
@@ -139007,7 +140379,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+22276, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22310, 0)
return
}
*(*Tu32)(unsafe.Pointer(pExpr + 4)) &= uint32(^libc.Int32FromInt32(EP_InnerON))
@@ -139098,7 +140470,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
if op == int32(TK_ISNULL) && !((*TExpr)(unsafe.Pointer(pExpr)).Fflags&uint32(libc.Int32FromInt32(EP_OuterON)) != libc.Uint32FromInt32(0)) && 0 == _sqlite3ExprCanBeNull(tls, pLeft) {
_ = libc.Int32FromInt32(0)
(*TExpr)(unsafe.Pointer(pExpr)).Fop = uint8(TK_TRUEFALSE) /* See tag-20230504-1 */
- *(*uintptr)(unsafe.Pointer(pExpr + 8)) = __ccgo_ts + 7866
+ *(*uintptr)(unsafe.Pointer(pExpr + 8)) = __ccgo_ts + 7891
*(*Tu32)(unsafe.Pointer(pExpr + 4)) |= uint32(libc.Int32FromInt32(EP_IsFalse))
(*TWhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = uint64(0)
(*TWhereTerm)(unsafe.Pointer(pTerm)).FeOperator = uint16(0)
@@ -139123,6 +140495,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
_markTermAsChild(tls, pWC, idxNew1, idxTerm)
goto _8
_8:
+ ;
i++
}
} else {
@@ -139178,6 +140551,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pStr2 + 8)) + uintptr(i1))) = _sqlite3UpperToLower[c]
goto _11
_11:
+ ;
i1++
}
}
@@ -139199,7 +140573,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
*(*Tu8)(unsafe.Pointer(pC)) = uint8(int32(c1) + int32(1))
}
if *(*int32)(unsafe.Pointer(bp + 12)) != 0 {
- v13 = __ccgo_ts + 22317
+ v13 = __ccgo_ts + 22351
} else {
v13 = uintptr(unsafe.Pointer(&_sqlite3StrBINARY))
}
@@ -139252,6 +140626,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
_exprAnalyze(tls, pSrc, pWC, idxNew3)
goto _16
_16:
+ ;
i2++
}
pTerm = (*TWhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxTerm)*56
@@ -139274,6 +140649,7 @@ func _exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) {
_markTermAsChild(tls, pWC, idxNew4, idxTerm)
goto _18
_18:
+ ;
i3++
}
} else {
@@ -139472,6 +140848,7 @@ func _sqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) {
}
goto _1
_1:
+ ;
ii++
}
/* Check condition (5). Return early if it is not met. */
@@ -139493,6 +140870,7 @@ func _sqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) {
}
goto _2
_2:
+ ;
ii++
}
}
@@ -139664,6 +141042,7 @@ func _sqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr)
mask |= _sqlite3WhereExprUsage(tls, pMaskSet, (*(*TExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32))).FpExpr)
goto _1
_1:
+ ;
i++
}
}
@@ -139691,6 +141070,7 @@ func _sqlite3WhereExprAnalyze(tls *libc.TLS, pTabList uintptr, pWC uintptr) {
_exprAnalyze(tls, pTabList, pWC, i)
goto _1
_1:
+ ;
i--
}
}
@@ -139731,7 +141111,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+22324, libc.VaList(bp+8, (*TTable)(unsafe.Pointer(pTab)).FzName, j))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22358, 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)
@@ -139759,6 +141139,7 @@ func _sqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC
_whereClauseInsert(tls, pWC, pTerm, uint16(TERM_DYNAMIC))
goto _1
_1:
+ ;
j++
}
}
@@ -139938,6 +141319,7 @@ func _sqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) {
}
goto _1
_1:
+ ;
i--
}
_sqlite3VdbeGoto(tls, v, (*TWhereInfo)(unsafe.Pointer(pWInfo)).FiBreak)
@@ -140035,6 +141417,7 @@ func _whereOrInsert(tls *libc.TLS, pSet uintptr, prereq TBitmask, rRun TLogEst,
}
goto _1
_1:
+ ;
i--
p += 16
}
@@ -140056,6 +141439,7 @@ func _whereOrInsert(tls *libc.TLS, pSet uintptr, prereq TBitmask, rRun TLogEst,
}
goto _4
_4:
+ ;
i++
}
if int32((*TWhereOrCost)(unsafe.Pointer(p)).FrRun) <= int32(rRun) {
@@ -140063,6 +141447,7 @@ func _whereOrInsert(tls *libc.TLS, pSet uintptr, prereq TBitmask, rRun TLogEst,
}
}
whereOrInsert_done:
+ ;
(*TWhereOrCost)(unsafe.Pointer(p)).Fprereq = prereq
(*TWhereOrCost)(unsafe.Pointer(p)).FrRun = rRun
if int32((*TWhereOrCost)(unsafe.Pointer(p)).FnOut) > int32(nOut) {
@@ -140096,6 +141481,7 @@ func _sqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) (r TBi
}
goto _1
_1:
+ ;
i++
}
return uint64(0)
@@ -140213,6 +141599,7 @@ func _whereScanNext(tls *libc.TLS, pScan uintptr) (r uintptr) {
}
goto _4
_4:
+ ;
j++
}
if j == int32((*TWhereScan)(unsafe.Pointer(pScan)).FnEquiv) {
@@ -140251,6 +141638,7 @@ func _whereScanNext(tls *libc.TLS, pScan uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
k++
pTerm += 56
}
@@ -140419,6 +141807,7 @@ func _findIndexCol(tls *libc.TLS, pParse uintptr, pList uintptr, iBase int32, pI
}
goto _1
_1:
+ ;
i++
}
return -int32(1)
@@ -140490,6 +141879,7 @@ func _isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC u
}
goto _1
_1:
+ ;
i++
}
/* Loop through all indices on the table, checking each to see if it makes
@@ -140531,6 +141921,7 @@ func _isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC u
}
goto _3
_3:
+ ;
i++
}
if i == int32((*TIndex)(unsafe.Pointer(pIdx)).FnKeyCol) {
@@ -140539,6 +141930,7 @@ func _isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC u
}
goto _2
_2:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
return 0
@@ -140605,6 +141997,7 @@ func _translateColumnToCopy(tls *libc.TLS, pParse uintptr, iStart int32, iTabCur
}
goto _1
_1:
+ ;
iStart++
pOp += 24
}
@@ -140745,7 +142138,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+22360, 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+22394, 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) {
@@ -140760,6 +142153,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
}
goto _1
_1:
+ ;
pTerm += 56
}
_ = libc.Int32FromInt32(0)
@@ -140796,6 +142190,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
}
goto _6
_6:
+ ;
i++
}
if (*TSrcItem)(unsafe.Pointer(pSrc)).FcolUsed&(libc.Uint64FromInt32(1)<<(int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))-libc.Int32FromInt32(1))) != 0 {
@@ -140807,7 +142202,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
goto end_auto_index_create
}
(*TWhereLoop)(unsafe.Pointer(pLoop)).Fu.Fbtree.FpIndex = pIdx
- (*TIndex)(unsafe.Pointer(pIdx)).FzName = __ccgo_ts + 22386
+ (*TIndex)(unsafe.Pointer(pIdx)).FzName = __ccgo_ts + 22420
(*TIndex)(unsafe.Pointer(pIdx)).FpTable = pTable
n = 0
idxCols = uint64(0)
@@ -140856,6 +142251,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
}
goto _7
_7:
+ ;
pTerm += 56
}
_ = libc.Int32FromInt32(0)
@@ -140873,6 +142269,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
}
goto _10
_10:
+ ;
i++
}
if (*TSrcItem)(unsafe.Pointer(pSrc)).FcolUsed&(libc.Uint64FromInt32(1)<<(int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))-libc.Int32FromInt32(1))) != 0 {
@@ -140886,6 +142283,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
n++
goto _11
_11:
+ ;
i++
}
}
@@ -140948,6 +142346,7 @@ func _constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, notRea
/* Jump here when skipping the initialization */
_sqlite3VdbeJumpHere(tls, v, addrInit)
end_auto_index_create:
+ ;
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pPartial)
}
@@ -141034,6 +142433,7 @@ func _sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, p
}
goto _3
_3:
+ ;
pTerm += 56
}
if (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(WHERE_IPK) != 0 {
@@ -141054,6 +142454,7 @@ func _sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, p
_sqlite3ExprCodeLoadIndexColumn(tls, pParse, pIdx, iCur, jj, r11+jj)
goto _4
_4:
+ ;
jj++
}
_sqlite3VdbeAddOp4Int(tls, v, int32(OP_FilterAdd), (*TWhereLevel)(unsafe.Pointer(pLevel)).FregFilter, 0, r11, n)
@@ -141158,6 +142559,7 @@ func _allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable TB
*(*Tu16)(unsafe.Pointer(p4)) = Tu16(int32(*(*Tu16)(unsafe.Pointer(p4))) | libc.Int32FromInt32(TERM_OK))
goto _1
_1:
+ ;
i++
pTerm += 56
}
@@ -141213,6 +142615,7 @@ func _allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable TB
break
goto _5
_5:
+ ;
i++
}
if i == n {
@@ -141308,6 +142711,7 @@ func _allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable TB
j++
goto _8
_8:
+ ;
i++
pTerm += 56
}
@@ -141330,6 +142734,7 @@ func _allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable TB
j++
goto _11
_11:
+ ;
i++
}
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnOrderBy = j
@@ -141360,6 +142765,7 @@ func _freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) {
*(*uintptr)(unsafe.Pointer(pHidden + 32 + uintptr(i)*8)) = uintptr(0)
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, db, pIdxInfo)
@@ -141517,6 +142923,7 @@ func _whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, r
}
goto _2
_2:
+ ;
n++
}
} else {
@@ -141706,6 +143113,7 @@ func _whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUppe
}
goto _2
_2:
+ ;
i++
}
nDiff = nUpper - nLower
@@ -142028,6 +143436,7 @@ func _whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uint
(*TWhereLoopBuilder)(unsafe.Pointer(pBuilder)).FnRecValid = nRecValid
goto _1
_1:
+ ;
i++
}
if rc == SQLITE_OK {
@@ -142250,6 +143659,7 @@ func _whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) (r int
}
goto _2
_2:
+ ;
j--
}
if j < 0 {
@@ -142257,6 +143667,7 @@ func _whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) (r int
} /* (2c) */
goto _1
_1:
+ ;
i--
}
if (*TWhereLoop)(unsafe.Pointer(pX)).FwsFlags&uint32(WHERE_IDX_ONLY) != uint32(0) && (*TWhereLoop)(unsafe.Pointer(pY)).FwsFlags&uint32(WHERE_IDX_ONLY) == uint32(0) {
@@ -142332,6 +143743,7 @@ func _whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) {
}
goto _1
_1:
+ ;
p = (*TWhereLoop)(unsafe.Pointer(p)).FpNextLoop
}
}
@@ -142399,6 +143811,7 @@ func _whereLoopFindLesser(tls *libc.TLS, ppPrev uintptr, pTemplate uintptr) (r u
}
goto _1
_1:
+ ;
ppPrev = p + 72
p = *(*uintptr)(unsafe.Pointer(ppPrev))
}
@@ -142583,6 +143996,7 @@ func _whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow TLog
}
goto _2
_2:
+ ;
j--
}
if j < 0 {
@@ -142628,6 +144042,7 @@ func _whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow TLog
}
goto _1
_1:
+ ;
i--
pTerm += 56
}
@@ -142702,6 +144117,7 @@ func _whereRangeVectorLen(tls *libc.TLS, pParse uintptr, iCur int32, pIdx uintpt
}
goto _2
_2:
+ ;
i++
}
return i
@@ -142842,6 +144258,7 @@ func _whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pPro
}
goto _6
_6:
+ ;
i++
}
} else {
@@ -143053,6 +144470,7 @@ func _whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pPro
(*TWhereLoopBuilder)(unsafe.Pointer(pBuilder)).FnRecValid = nRecValid
goto _1
_1:
+ ;
pTerm = _whereScanNext(tls, bp)
}
(*TWhereLoop)(unsafe.Pointer(pNew)).Fprereq = saved_prereq
@@ -143146,6 +144564,7 @@ func _indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr,
}
goto _3
_3:
+ ;
jj++
}
} else {
@@ -143165,12 +144584,14 @@ func _indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr,
}
goto _5
_5:
+ ;
jj++
}
}
}
goto _2
_2:
+ ;
ii++
}
return 0
@@ -143210,6 +144631,7 @@ func _whereUsablePartialIndex(tls *libc.TLS, iTab int32, jointype Tu8, pWC uintp
}
goto _1
_1:
+ ;
i++
pTerm += 56
}
@@ -143235,6 +144657,7 @@ func _exprIsCoveredByIndex(tls *libc.TLS, pExpr uintptr, pIdx uintptr, iTabCur i
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -143307,6 +144730,7 @@ func _whereIsCoveringIndexWalkCallback(tls *libc.TLS, pWalk uintptr, pExpr uintp
}
goto _1
_1:
+ ;
i++
}
(*TCoveringIndexCheck)(unsafe.Pointer(pCk)).FbUnidx = uint8(1)
@@ -143368,6 +144792,7 @@ func _whereIsCoveringIndex(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iTabCur
}
goto _1
_1:
+ ;
i++
}
if i >= int32((*TIndex)(unsafe.Pointer(pIdx)).FnColumn) {
@@ -143640,6 +145065,7 @@ func _whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask) (r in
}
goto _1
_1:
+ ;
pTerm += 56
}
}
@@ -143769,6 +145195,7 @@ func _whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask) (r in
}
goto _7
_7:
+ ;
ii++
}
(*TWhereLoop)(unsafe.Pointer(pNew)).FrRun = _sqlite3LogEstAdd(tls, (*TWhereLoop)(unsafe.Pointer(pNew)).FrRun, nLookup)
@@ -143802,6 +145229,7 @@ func _whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask) (r in
(*TWhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpRec = uintptr(0)
goto _4
_4:
+ ;
if int32(uint32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x2>>1)) != 0 {
v8 = uintptr(0)
} else {
@@ -143878,6 +145306,7 @@ func _whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask,
}
goto _1
_1:
+ ;
i++
pIdxCons += 12
}
@@ -143919,7 +145348,7 @@ func _whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask,
if v3 >= 0 {
j = (*Tsqlite3_index_constraint)(unsafe.Pointer(pIdxCons)).FiTermOffset
if iTerm >= nConstraint || j < 0 || j >= (*TWhereClause)(unsafe.Pointer(pWC)).FnTerm || *(*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+22397, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22431, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return int32(SQLITE_ERROR)
}
pTerm1 = (*TWhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(j)*56
@@ -143984,6 +145413,7 @@ func _whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask,
}
goto _2
_2:
+ ;
i++
pIdxCons += 12
}
@@ -143996,11 +145426,12 @@ 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+22397, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22431, libc.VaList(bp+8, (*TTable)(unsafe.Pointer((*TSrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName))
return int32(SQLITE_ERROR)
}
goto _6
_6:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -144148,7 +145579,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(165025)) /* EV: R-30545-25046 */
+ rc = _sqlite3MisuseError(tls, int32(165136)) /* EV: R-30545-25046 */
} else {
if *(*uintptr)(unsafe.Pointer(pH + 32 + uintptr(iCons)*8)) == uintptr(0) {
pTerm = (*TWhereClause)(unsafe.Pointer((*THiddenIndexInfo)(unsafe.Pointer(pH)).FpWC)).Fa + uintptr((*(*Tsqlite3_index_constraint)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint + uintptr(iCons)*12))).FiTermOffset)*56
@@ -144199,6 +145630,7 @@ func _sqlite3VtabUsesAllSchemas(tls *libc.TLS, pParse uintptr) {
_sqlite3CodeVerifySchema(tls, pParse, i)
goto _1
_1:
+ ;
i++
}
if (*TParse)(unsafe.Pointer(pParse)).FwriteMask != uint32(0) {
@@ -144210,6 +145642,7 @@ func _sqlite3VtabUsesAllSchemas(tls *libc.TLS, pParse uintptr) {
_sqlite3BeginWriteOperation(tls, pParse, 0, i)
goto _2
_2:
+ ;
i++
}
}
@@ -144322,6 +145755,7 @@ func _whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask, mUn
}
goto _3
_3:
+ ;
i++
}
mPrev = mNext
@@ -144454,16 +145888,19 @@ func _whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask, mUnusabl
_whereOrInsert(tls, bp+544, (*(*TWhereOrCost)(unsafe.Pointer(bp + 656 + 8 + uintptr(i)*16))).Fprereq|(*(*TWhereOrCost)(unsafe.Pointer(bp + 600 + 8 + uintptr(j)*16))).Fprereq, _sqlite3LogEstAdd(tls, (*(*TWhereOrCost)(unsafe.Pointer(bp + 656 + 8 + uintptr(i)*16))).FrRun, (*(*TWhereOrCost)(unsafe.Pointer(bp + 600 + 8 + uintptr(j)*16))).FrRun), _sqlite3LogEstAdd(tls, (*(*TWhereOrCost)(unsafe.Pointer(bp + 656 + 8 + uintptr(i)*16))).FnOut, (*(*TWhereOrCost)(unsafe.Pointer(bp + 600 + 8 + uintptr(j)*16))).FnOut))
goto _4
_4:
+ ;
j++
}
goto _3
_3:
+ ;
i++
}
}
}
goto _2
_2:
+ ;
pOrTerm += 56
}
(*TWhereLoop)(unsafe.Pointer(pNew)).FnLTerm = uint16(1)
@@ -144495,11 +145932,13 @@ func _whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq TBitmask, mUnusabl
rc = _whereLoopInsert(tls, pBuilder, pNew)
goto _5
_5:
+ ;
i++
}
}
goto _1
_1:
+ ;
pTerm += 56
}
return rc
@@ -144574,6 +146013,7 @@ func _whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) (r int32) {
}
goto _2
_2:
+ ;
p += 104
}
rc = _whereLoopAddVirtual(tls, pBuilder, mPrereq, mUnusable)
@@ -144587,7 +146027,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+22423, 0)
+ Xsqlite3_log(tls, int32(SQLITE_WARNING), __ccgo_ts+22457, 0)
rc = SQLITE_OK
} else {
break
@@ -144595,6 +146035,7 @@ func _whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) (r int32) {
}
goto _1
_1:
+ ;
iTab++
pItem += 104
}
@@ -144742,6 +146183,7 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
}
goto _3
_3:
+ ;
j++
}
if j >= int32((*TWhereLoop)(unsafe.Pointer(pLoop)).FnLTerm) {
@@ -144760,6 +146202,7 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
obSat |= libc.Uint64FromInt32(1) << i
goto _2
_2:
+ ;
i++
}
if (*TWhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&uint32(WHERE_ONEROW) == uint32(0) {
@@ -144836,6 +146279,7 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
}
goto _7
_7:
+ ;
i++
}
}
@@ -144913,6 +146357,7 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
break
goto _8
_8:
+ ;
i++
}
if isMatch != 0 && int32(wctrlFlags)&int32(WHERE_GROUPBY) == 0 {
@@ -144951,6 +146396,7 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
}
goto _6
_6:
+ ;
j++
} /* end Loop over all index columns */
if distinctColumns != 0 {
@@ -144978,11 +146424,13 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
}
goto _9
_9:
+ ;
i++
}
}
goto _1
_1:
+ ;
iLoop++
} /* End the loop over all WhereLoops from outer-most down to inner-most */
if obSat == obDone {
@@ -145005,6 +146453,7 @@ func _wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr,
}
goto _10
_10:
+ ;
i--
}
return 0
@@ -145168,6 +146617,7 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
(*TWherePath)(unsafe.Pointer(pFrom)).FaLoop = pX
goto _3
_3:
+ ;
ii--
pFrom += 32
pX += uintptr(nLoop) * 8
@@ -145294,6 +146744,7 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
}
goto _9
_9:
+ ;
jj++
pTo += 32
}
@@ -145359,16 +146810,19 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
}
goto _11
_11:
+ ;
jj++
pTo += 32
}
}
goto _8
_8:
+ ;
pWLoop = (*TWhereLoop)(unsafe.Pointer(pWLoop)).FpNextLoop
}
goto _7
_7:
+ ;
ii++
pFrom += 32
}
@@ -145379,10 +146833,11 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
nFrom = nTo
goto _6
_6:
+ ;
iLoop++
}
if nFrom == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22458, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22492, 0)
_sqlite3DbFreeNN(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pSpace)
return int32(SQLITE_ERROR)
}
@@ -145398,6 +146853,7 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
}
goto _12
_12:
+ ;
ii++
}
_ = libc.Int32FromInt32(0)
@@ -145415,6 +146871,7 @@ func _wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst TLogEst) (r int32)
(*TWhereLevel)(unsafe.Pointer(pLevel)).FiTabCur = (*(*TSrcItem)(unsafe.Pointer((*TWhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*TWhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104))).FiCursor
goto _13
_13:
+ ;
iLoop++
}
if int32((*TWhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&int32(WHERE_WANT_DISTINCT) != 0 && int32((*TWhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&int32(WHERE_DISTINCTBY) == 0 && int32((*TWhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct) == WHERE_DISTINCT_NOOP && nRowEst != 0 {
@@ -145550,6 +147007,7 @@ func _whereShortCut(tls *libc.TLS, pBuilder uintptr) (r int32) {
*(*uintptr)(unsafe.Pointer((*TWhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8)) = pTerm
goto _3
_3:
+ ;
j++
}
if j != int32((*TIndex)(unsafe.Pointer(pIdx)).FnKeyCol) {
@@ -145567,6 +147025,7 @@ func _whereShortCut(tls *libc.TLS, pBuilder uintptr) (r int32) {
break
goto _1
_1:
+ ;
pIdx = (*TIndex)(unsafe.Pointer(pIdx)).FpNext
}
}
@@ -145710,6 +147169,7 @@ func _whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady TBitmask) (r TBi
}
goto _2
_2:
+ ;
pTerm += 56
}
if pTerm < pEnd {
@@ -145727,6 +147187,7 @@ func _whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady TBitmask) (r TBi
}
goto _3
_3:
+ ;
pTerm += 56
}
if i != int32((*TWhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-int32(1) {
@@ -145737,6 +147198,7 @@ func _whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady TBitmask) (r TBi
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
i--
}
return notReady
@@ -145793,6 +147255,7 @@ func _whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) {
nSearch = TLogEst(int32(nSearch) + int32((*TWhereLoop)(unsafe.Pointer(pLoop)).FnOut))
goto _1
_1:
+ ;
i++
}
}
@@ -145870,6 +147333,7 @@ func _whereAddIndexedExpr(tls *libc.TLS, pParse uintptr, pIdx uintptr, iIdxCur i
}
goto _1
_1:
+ ;
i++
}
}
@@ -145899,6 +147363,7 @@ func _whereReverseScanOrder(tls *libc.TLS, pWInfo uintptr) {
}
goto _1
_1:
+ ;
ii++
}
}
@@ -146020,7 +147485,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+22476, libc.VaList(bp+64, int32(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(8))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22510, 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
@@ -146093,7 +147558,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
if int32(wctrlFlags)&int32(WHERE_WANT_DISTINCT) != 0 && (*Tsqlite3)(unsafe.Pointer(db)).FdbOptFlags&uint32(libc.Int32FromInt32(SQLITE_DistinctOpt)) == uint32(0) {
(*TWhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = uint8(WHERE_DISTINCT_UNIQUE)
}
- _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+22504, 0)
+ _sqlite3VdbeExplain(tls, pParse, uint8(0), __ccgo_ts+22538, 0)
} else {
/* Assign a bit from the bitmask to every term in the FROM clause.
**
@@ -146115,6 +147580,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
_sqlite3WhereTabFuncArgs(tls, pParse, pTabList+8+uintptr(ii)*104, pWInfo+104)
goto _5
_5:
+ ;
ii++
v4 = ii
if !(v4 < (*TSrcList)(unsafe.Pointer(pTabList)).FnSrc) {
@@ -146175,6 +147641,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
}
goto _6
_6:
+ ;
ii++
}
if int32(wctrlFlags)&int32(WHERE_WANT_DISTINCT) != 0 {
@@ -146353,6 +147820,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
}
goto _14
_14:
+ ;
b = b >> int32(1)
n++
}
@@ -146463,6 +147931,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
}
goto _13
_13:
+ ;
ii++
pLevel += 104
}
@@ -146514,6 +147983,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
}
goto _25
_25:
+ ;
ii++
}
/* Done. */
@@ -146521,6 +147991,7 @@ func _sqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere
return pWInfo
/* Jump here if malloc fails */
whereBeginError:
+ ;
if pWInfo != 0 {
(*TParse)(unsafe.Pointer(pParse)).FnQueryLoop = int16((*TWhereInfo)(unsafe.Pointer(pWInfo)).FsavedNQueryLoop)
_whereInfoFree(tls, db, pWInfo)
@@ -146591,6 +148062,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), (*TWhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur, j, r1+j)
goto _6
_6:
+ ;
j++
}
*(*int32)(unsafe.Pointer(pParse + 56)) += n + int32(1)
@@ -146668,6 +148140,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
_sqlite3VdbeJumpHere(tls, v, (*TInLoop)(unsafe.Pointer(pIn)).FaddrInTop-int32(1))
goto _8
_8:
+ ;
j1--
pIn -= 20
}
@@ -146707,6 +148180,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
}
goto _1
_1:
+ ;
i--
}
_ = libc.Int32FromInt32(0)
@@ -146817,6 +148291,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
}
goto _11
_11:
+ ;
pOp += 24
v10 = pOp
if !(v10 < pLastOp) {
@@ -146826,6 +148301,7 @@ func _sqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) {
}
goto _9
_9:
+ ;
i++
pLevel += 104
}
@@ -147104,7 +148580,8 @@ func _nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr)
_ = apArg
return
error_out:
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+22522, -int32(1))
+ ;
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+22556, -int32(1))
}
func _nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) {
@@ -147291,7 +148768,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+22578, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+22612, -int32(1))
}
}
(*TNtileCtx)(unsafe.Pointer(p)).FnTotal++
@@ -147615,10 +149092,11 @@ func _windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) (r
}
goto _1
_1:
+ ;
p = (*TWindow)(unsafe.Pointer(p)).FpNextWin
}
if p == uintptr(0) {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22623, libc.VaList(bp+8, zName))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22657, libc.VaList(bp+8, zName))
}
return p
}
@@ -147669,12 +149147,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+22642, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22676, 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+22713, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22747, 0)
} else {
aUp = [8]struct {
FzFunc uintptr
@@ -147747,12 +149225,13 @@ func _sqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uin
(*TWindow)(unsafe.Pointer(pWin)).FeEnd = uint8(aUp[i].FeEnd)
(*TWindow)(unsafe.Pointer(pWin)).FeExclude = uint8(0)
if int32((*TWindow)(unsafe.Pointer(pWin)).FeStart) == int32(TK_FOLLOWING) {
- (*TWindow)(unsafe.Pointer(pWin)).FpStart = _sqlite3Expr(tls, db, int32(TK_INTEGER), __ccgo_ts+8105)
+ (*TWindow)(unsafe.Pointer(pWin)).FpStart = _sqlite3Expr(tls, db, int32(TK_INTEGER), __ccgo_ts+8130)
}
break
}
goto _1
_1:
+ ;
i++
}
}
@@ -147822,6 +149301,7 @@ func _selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (
}
goto _1
_1:
+ ;
i++
}
if i == nSrc {
@@ -147845,6 +149325,7 @@ func _selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (
}
goto _2
_2:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
}
@@ -147870,6 +149351,7 @@ func _selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) (
}
goto _3
_3:
+ ;
i1++
}
}
@@ -148002,6 +149484,7 @@ func _exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend u
}
goto _2
_2:
+ ;
i++
}
}
@@ -148030,7 +149513,7 @@ func _disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintpt
defer tls.Free(16)
if int32((*TExpr)(unsafe.Pointer(pExpr)).Fop) == int32(TK_AGG_FUNCTION) && (*TExpr)(unsafe.Pointer(pExpr)).FpAggInfo == uintptr(0) {
_ = libc.Int32FromInt32(0)
- _sqlite3ErrorMsg(tls, (*TWalker)(unsafe.Pointer(pWalker)).FpParse, __ccgo_ts+22776, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
+ _sqlite3ErrorMsg(tls, (*TWalker)(unsafe.Pointer(pWalker)).FpParse, __ccgo_ts+22810, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pExpr + 8))))
}
return WRC_Continue
}
@@ -148163,6 +149646,7 @@ func _sqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) (r int32) {
_sqlite3VdbeAddOp2(tls, v, int32(OP_Null), 0, (*TWindow)(unsafe.Pointer(pWin)).FregAccum)
goto _4
_4:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
/* If there is no ORDER BY or PARTITION BY clause, and the window
@@ -148323,7 +149807,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+22802, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22836, 0)
goto windowAllocErr
}
pWin = _sqlite3DbMallocZero(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uint64(144))
@@ -148342,6 +149826,7 @@ func _sqlite3WindowAlloc(tls *libc.TLS, pParse uintptr, eType int32, eStart int3
(*TWindow)(unsafe.Pointer(pWin)).FpStart = _sqlite3WindowOffsetExpr(tls, pParse, pStart)
return pWin
windowAllocErr:
+ ;
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pEnd)
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pStart)
return uintptr(0)
@@ -148389,18 +149874,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 + 22834
+ zErr = __ccgo_ts + 22868
} else {
if (*TWindow)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*TWindow)(unsafe.Pointer(pWin)).FpOrderBy != 0 {
- zErr = __ccgo_ts + 22851
+ zErr = __ccgo_ts + 22885
} else {
if int32((*TWindow)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 {
- zErr = __ccgo_ts + 22867
+ zErr = __ccgo_ts + 22901
}
}
}
if zErr != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22887, libc.VaList(bp+8, zErr, (*TWindow)(unsafe.Pointer(pWin)).FzBase))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22921, 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 {
@@ -148428,7 +149913,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+22920, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+22954, 0)
}
} else {
_sqlite3WindowDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pWin)
@@ -148606,6 +150091,7 @@ func _sqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) {
}
goto _9
_9:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
}
@@ -148650,11 +150136,11 @@ func _windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) {
}
var _azErr = [5]uintptr{
- 0: __ccgo_ts + 22967,
- 1: __ccgo_ts + 23020,
- 2: __ccgo_ts + 22522,
- 3: __ccgo_ts + 23071,
- 4: __ccgo_ts + 23123,
+ 0: __ccgo_ts + 23001,
+ 1: __ccgo_ts + 23054,
+ 2: __ccgo_ts + 22556,
+ 3: __ccgo_ts + 23105,
+ 4: __ccgo_ts + 23157,
}
var _aOp1 = [5]int32{
@@ -148818,6 +150304,7 @@ func _windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) {
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), csr, iColOff+i, reg+i)
goto _2
_2:
+ ;
i++
}
}
@@ -148878,6 +150365,7 @@ func _windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse
}
goto _3
_3:
+ ;
i++
}
regArg = reg
@@ -148928,6 +150416,7 @@ func _windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse
}
goto _4
_4:
+ ;
iOp++
}
}
@@ -148956,6 +150445,7 @@ func _windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse
}
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
}
@@ -149007,6 +150497,7 @@ func _windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) {
}
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
}
@@ -149056,6 +150547,7 @@ func _windowFullScan(tls *libc.TLS, p uintptr) {
_sqlite3VdbeAddOp2(tls, v, int32(OP_Null), 0, (*TWindow)(unsafe.Pointer(pWin)).FregAccum)
goto _2
_2:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_SeekGE), csr, lblBrk, (*TWindow)(unsafe.Pointer(pMWin)).FregStartRowid)
@@ -149192,6 +150684,7 @@ func _windowReturnOneRow(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
}
@@ -149239,6 +150732,7 @@ func _windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) (r int32) {
}
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
regArg = (*TParse)(unsafe.Pointer(pParse)).FnMem + int32(1)
@@ -149269,6 +150763,7 @@ func _windowCacheFrame(tls *libc.TLS, pMWin uintptr) (r int32) {
}
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
return 0
@@ -149634,6 +151129,7 @@ func _sqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) (r uintptr) {
pp = *(*uintptr)(unsafe.Pointer(pp)) + 64
goto _1
_1:
+ ;
pWin = (*TWindow)(unsafe.Pointer(pWin)).FpNextWin
}
return *(*uintptr)(unsafe.Pointer(bp))
@@ -150125,6 +151621,7 @@ func _sqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uin
_sqlite3VdbeAddOp3(tls, v, int32(OP_Column), csrInput, iInput, regNew+iInput)
goto _10
_10:
+ ;
iInput++
}
_sqlite3VdbeAddOp3(tls, v, int32(OP_MakeRecord), regNew, nInput, regRecord)
@@ -150456,11 +151953,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 + 23173
+ v1 = __ccgo_ts + 23207
} else {
- v1 = __ccgo_ts + 23182
+ v1 = __ccgo_ts + 23216
}
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23188, libc.VaList(bp+8, v1, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(pNext)).Fop))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23222, libc.VaList(bp+8, v1, _sqlite3SelectOpName(tls, int32((*TSelect)(unsafe.Pointer(pNext)).Fop))))
break
}
}
@@ -150469,7 +151966,7 @@ func _parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) {
mxSelect = v2
}
if v3 && v2 > 0 && cnt > mxSelect {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23230, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23264, 0)
}
}
}
@@ -150558,7 +152055,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+23264, libc.VaList(bp+8, (*TToken)(unsafe.Pointer(pIdToken)).Fn, (*TToken)(unsafe.Pointer(pIdToken)).Fz))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23298, libc.VaList(bp+8, (*TToken)(unsafe.Pointer(pIdToken)).Fn, (*TToken)(unsafe.Pointer(pIdToken)).Fz))
}
_sqlite3ExprListSetName(tls, pParse, p, pIdToken, int32(1))
return p
@@ -156871,103 +158368,103 @@ func _yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor u
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
- case int32(204):
+ case int32(204): /* select */
fallthrough
- case int32(239):
+ case int32(239): /* selectnowith */
fallthrough
- case int32(240):
+ case int32(240): /* oneselect */
fallthrough
- case int32(252):
+ case int32(252): /* values */
_sqlite3SelectDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(216):
+ case int32(216): /* term */
fallthrough
- case int32(217):
+ case int32(217): /* expr */
fallthrough
- case int32(246):
+ case int32(246): /* where_opt */
fallthrough
- case int32(248):
+ case int32(248): /* having_opt */
fallthrough
- case int32(267):
+ case int32(267): /* where_opt_ret */
fallthrough
- case int32(278):
+ case int32(278): /* case_operand */
fallthrough
- case int32(280):
+ case int32(280): /* case_else */
fallthrough
- case int32(283):
+ case int32(283): /* vinto */
fallthrough
- case int32(290):
+ case int32(290): /* when_clause */
fallthrough
- case int32(295):
+ case int32(295): /* key_opt */
fallthrough
- case int32(311):
+ case int32(311): /* filter_clause */
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(221):
+ case int32(221): /* eidlist_opt */
fallthrough
- case int32(231):
+ case int32(231): /* sortlist */
fallthrough
- case int32(232):
+ case int32(232): /* eidlist */
fallthrough
- case int32(244):
+ case int32(244): /* selcollist */
fallthrough
- case int32(247):
+ case int32(247): /* groupby_opt */
fallthrough
- case int32(249):
+ case int32(249): /* orderby_opt */
fallthrough
- case int32(253):
+ case int32(253): /* nexprlist */
fallthrough
- case int32(254):
+ case int32(254): /* sclp */
fallthrough
- case int32(261):
+ case int32(261): /* exprlist */
fallthrough
- case int32(268):
+ case int32(268): /* setlist */
fallthrough
- case int32(277):
+ case int32(277): /* paren_exprlist */
fallthrough
- case int32(279):
+ case int32(279): /* case_exprlist */
fallthrough
- case int32(310):
+ case int32(310): /* part_opt */
_sqlite3ExprListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(238):
+ case int32(238): /* fullname */
fallthrough
- case int32(245):
+ case int32(245): /* from */
fallthrough
- case int32(256):
+ case int32(256): /* seltablist */
fallthrough
- case int32(257):
+ case int32(257): /* stl_prefix */
fallthrough
- case int32(262):
+ case int32(262): /* xfullname */
_sqlite3SrcListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(241):
+ case int32(241): /* wqlist */
_sqlite3WithDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(251):
+ case int32(251): /* window_clause */
fallthrough
- case int32(306):
+ case int32(306): /* windowdefn_list */
_sqlite3WindowListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(263):
+ case int32(263): /* idlist */
fallthrough
- case int32(270):
+ case int32(270): /* idlist_opt */
_sqlite3IdListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(273):
+ case int32(273): /* filter_over */
fallthrough
- case int32(307):
+ case int32(307): /* windowdefn */
fallthrough
- case int32(308):
+ case int32(308): /* window */
fallthrough
- case int32(309):
+ case int32(309): /* frame_opt */
fallthrough
- case int32(312):
+ case int32(312): /* over_clause */
_sqlite3WindowDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(286):
+ case int32(286): /* trigger_cmd_list */
fallthrough
- case int32(291):
+ case int32(291): /* trigger_cmd */
_sqlite3DeleteTriggerStep(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor)))
- case int32(288):
+ case int32(288): /* trigger_event */
_sqlite3IdListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*(*TTrigEvent)(unsafe.Pointer(yypminor))).Fb)
- case int32(314):
+ case int32(314): /* frame_bound */
fallthrough
- case int32(315):
+ case int32(315): /* frame_bound_s */
fallthrough
- case int32(316):
+ case int32(316): /* frame_bound_e */
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, (*(*TFrameBound)(unsafe.Pointer(yypminor))).FpExpr)
break
/********* End destructor definitions *****************************************/
@@ -157108,7 +158605,7 @@ func _yyStackOverflow(tls *libc.TLS, yypParser uintptr) {
/* Here code is inserted which will execute if the parser
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23302, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23336, 0)
/******** End %stack_overflow code ********************************************/
/* Suppress warning about unused %extra_argument var */
(*TyyParser)(unsafe.Pointer(yypParser)).FpParse = pParse
@@ -158622,291 +160119,389 @@ func _yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead i
goto _341
}
goto _342
-_1: /* explain ::= EXPLAIN */
+_1:
+ ; /* explain ::= EXPLAIN */
if (*TParse)(unsafe.Pointer(pParse)).FpReprepare == uintptr(0) {
(*TParse)(unsafe.Pointer(pParse)).Fexplain = uint8(1)
}
goto _342
-_2: /* explain ::= EXPLAIN QUERY PLAN */
+_2:
+ ; /* explain ::= EXPLAIN QUERY PLAN */
if (*TParse)(unsafe.Pointer(pParse)).FpReprepare == uintptr(0) {
(*TParse)(unsafe.Pointer(pParse)).Fexplain = uint8(2)
}
goto _342
-_3: /* cmdx ::= cmd */
+_3:
+ ; /* cmdx ::= cmd */
_sqlite3FinishCoding(tls, pParse)
goto _342
-_4: /* cmd ::= BEGIN transtype trans_opt */
+_4:
+ ; /* cmd ::= BEGIN transtype trans_opt */
_sqlite3BeginTransaction(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_5: /* transtype ::= */
+_5:
+ ; /* transtype ::= */
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = int32(TK_DEFERRED)
goto _342
-_7: /* transtype ::= DEFERRED */
+_7:
+ ; /* transtype ::= DEFERRED */
_6:
+ ;
_8:
+ ;
_9:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor) /*A-overwrites-X*/
goto _342
-_11: /* cmd ::= COMMIT|END trans_opt */
+_11:
+ ; /* cmd ::= COMMIT|END trans_opt */
_10:
+ ;
_sqlite3EndTransaction(tls, pParse, int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24))).Fmajor))
goto _342
-_12: /* cmd ::= SAVEPOINT nm */
+_12:
+ ; /* cmd ::= SAVEPOINT nm */
_sqlite3Savepoint(tls, pParse, SAVEPOINT_BEGIN, yymsp+8)
goto _342
-_13: /* cmd ::= RELEASE savepoint_opt nm */
+_13:
+ ; /* cmd ::= RELEASE savepoint_opt nm */
_sqlite3Savepoint(tls, pParse, int32(SAVEPOINT_RELEASE), yymsp+8)
goto _342
-_14: /* cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */
+_14:
+ ; /* cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */
_sqlite3Savepoint(tls, pParse, int32(SAVEPOINT_ROLLBACK), yymsp+8)
goto _342
-_15: /* create_table ::= createkw temp TABLE ifnotexists nm dbnm */
+_15:
+ ; /* create_table ::= createkw temp TABLE ifnotexists nm dbnm */
_sqlite3StartTable(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, yymsp+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), 0, 0, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
goto _342
-_16: /* createkw ::= CREATE */
+_16:
+ ; /* createkw ::= CREATE */
_disableLookaside(tls, pParse)
goto _342
-_18: /* ifnotexists ::= */
+_18:
+ ; /* ifnotexists ::= */
_17:
+ ;
_19:
+ ;
_20:
+ ;
_21:
+ ;
_22:
+ ;
_23:
+ ;
_24:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = 0
goto _342
-_25: /* ifnotexists ::= IF NOT EXISTS */
+_25:
+ ; /* ifnotexists ::= IF NOT EXISTS */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = int32(1)
goto _342
-_26: /* temp ::= TEMP */
+_26:
+ ; /* temp ::= TEMP */
*(*int32)(unsafe.Pointer(yymsp + 8)) = libc.BoolInt32(int32((*Tsqlite3)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).Fdb)).Finit1.Fbusy) == 0)
goto _342
-_27: /* create_table_args ::= LP columnlist conslist_opt RP table_option_set */
+_27:
+ ; /* create_table_args ::= LP columnlist conslist_opt RP table_option_set */
_sqlite3EndTable(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, *(*Tu32)(unsafe.Pointer(yymsp + 8)), uintptr(0))
goto _342
-_28: /* create_table_args ::= AS select */
+_28:
+ ; /* create_table_args ::= AS select */
_sqlite3EndTable(tls, pParse, uintptr(0), uintptr(0), uint32(0), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_sqlite3SelectDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_29: /* table_option_set ::= */
+_29:
+ ; /* table_option_set ::= */
*(*Tu32)(unsafe.Pointer(yymsp + 1*24 + 8)) = uint32(0)
goto _342
-_30: /* table_option_set ::= table_option_set COMMA table_option */
+_30:
+ ; /* table_option_set ::= table_option_set COMMA table_option */
*(*Tu32)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = *(*Tu32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) | *(*Tu32)(unsafe.Pointer(yymsp + 8))
*(*Tu32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*Tu32)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_31: /* table_option ::= WITHOUT nm */
- if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(5) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+16660, int32(5)) == 0 {
+_31:
+ ; /* table_option ::= WITHOUT nm */
+ if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(5) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+16694, 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+23324, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23358, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
}
goto _342
-_32: /* table_option ::= nm */
- if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(6) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+16573, int32(6)) == 0 {
+_32:
+ ; /* table_option ::= nm */
+ if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) == uint32(6) && Xsqlite3_strnicmp(tls, *(*uintptr)(unsafe.Pointer(yymsp + 8)), __ccgo_ts+16607, 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+23324, libc.VaList(bp+128, *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23358, 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 _342
-_33: /* columnname ::= nm typetoken */
+_33:
+ ; /* columnname ::= nm typetoken */
_sqlite3AddColumn(tls, pParse, *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*TToken)(unsafe.Pointer(yymsp + 8)))
goto _342
-_35: /* typetoken ::= */
+_35:
+ ; /* typetoken ::= */
_34:
+ ;
_36:
+ ;
*(*uint32)(unsafe.Pointer(yymsp + 1*24 + 8 + 8)) = uint32(0)
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_37: /* typetoken ::= typename LP signed RP */
+_37:
+ ; /* typetoken ::= typename LP signed RP */
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8 + 8)) = uint32(int32(t__predefined_ptrdiff_t(*(*uintptr)(unsafe.Pointer(yymsp + 8))+uintptr(*(*uint32)(unsafe.Pointer(yymsp + 8 + 8)))) - int64(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)))))
goto _342
-_38: /* typetoken ::= typename LP signed COMMA signed RP */
+_38:
+ ; /* typetoken ::= typename LP signed COMMA signed RP */
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8 + 8)) = uint32(int32(t__predefined_ptrdiff_t(*(*uintptr)(unsafe.Pointer(yymsp + 8))+uintptr(*(*uint32)(unsafe.Pointer(yymsp + 8 + 8)))) - int64(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)))))
goto _342
-_39: /* typename ::= typename ID|STRING */
+_39:
+ ; /* typename ::= typename ID|STRING */
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) = *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) + uint32(int32(int64(*(*uintptr)(unsafe.Pointer(yymsp + 8)))-int64(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))))
goto _342
-_40: /* scanpt ::= */
+_40:
+ ; /* scanpt ::= */
_ = libc.Int32FromInt32(0)
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = yyLookaheadToken.Fz
goto _342
-_41: /* scantok ::= */
+_41:
+ ; /* scantok ::= */
_ = libc.Int32FromInt32(0)
*(*TToken)(unsafe.Pointer(yymsp + 1*24 + 8)) = yyLookaheadToken
goto _342
-_43: /* ccons ::= CONSTRAINT nm */
+_43:
+ ; /* ccons ::= CONSTRAINT nm */
_42:
+ ;
(*TParse)(unsafe.Pointer(pParse)).FconstraintName = *(*TToken)(unsafe.Pointer(yymsp + 8))
goto _342
-_44: /* ccons ::= DEFAULT scantok term */
+_44:
+ ; /* ccons ::= DEFAULT scantok term */
_sqlite3AddDefaultValue(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))+uintptr(*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8))))
goto _342
-_45: /* ccons ::= DEFAULT LP expr RP */
+_45:
+ ; /* ccons ::= DEFAULT LP expr RP */
_sqlite3AddDefaultValue(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))+uintptr(1), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_46: /* ccons ::= DEFAULT PLUS scantok term */
+_46:
+ ; /* ccons ::= DEFAULT PLUS scantok term */
_sqlite3AddDefaultValue(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))+uintptr(*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8))))
goto _342
-_47: /* ccons ::= DEFAULT MINUS scantok term */
+_47:
+ ; /* ccons ::= DEFAULT MINUS scantok term */
p = _sqlite3PExpr(tls, pParse, int32(TK_UMINUS), *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0))
_sqlite3AddDefaultValue(tls, pParse, p, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))+uintptr(*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8))))
goto _342
-_48: /* ccons ::= DEFAULT scantok ID|INDEXED */
+_48:
+ ; /* ccons ::= DEFAULT scantok ID|INDEXED */
p1 = _tokenExpr(tls, pParse, int32(TK_STRING), *(*TToken)(unsafe.Pointer(yymsp + 8)))
if p1 != 0 {
_sqlite3ExprIdToTrueFalse(tls, p1)
}
_sqlite3AddDefaultValue(tls, pParse, p1, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))+uintptr(*(*uint32)(unsafe.Pointer(yymsp + 8 + 8))))
goto _342
-_49: /* ccons ::= NOT NULL onconf */
+_49:
+ ; /* ccons ::= NOT NULL onconf */
_sqlite3AddNotNull(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_50: /* ccons ::= PRIMARY KEY sortorder onconf autoinc */
+_50:
+ ; /* ccons ::= PRIMARY KEY sortorder onconf autoinc */
_sqlite3AddPrimaryKey(tls, pParse, uintptr(0), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
goto _342
-_51: /* ccons ::= UNIQUE onconf */
+_51:
+ ; /* ccons ::= UNIQUE onconf */
_sqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), uintptr(0), *(*int32)(unsafe.Pointer(yymsp + 8)), uintptr(0), uintptr(0), 0, 0, uint8(SQLITE_IDXTYPE_UNIQUE))
goto _342
-_52: /* ccons ::= CHECK LP expr RP */
+_52:
+ ; /* ccons ::= CHECK LP expr RP */
_sqlite3AddCheckConstraint(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_53: /* ccons ::= REFERENCES nm eidlist_opt refargs */
+_53:
+ ; /* ccons ::= REFERENCES nm eidlist_opt refargs */
_sqlite3CreateForeignKey(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_54: /* ccons ::= defer_subclause */
+_54:
+ ; /* ccons ::= defer_subclause */
_sqlite3DeferForeignKey(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_55: /* ccons ::= COLLATE ID|STRING */
+_55:
+ ; /* ccons ::= COLLATE ID|STRING */
_sqlite3AddCollateType(tls, pParse, yymsp+8)
goto _342
-_56: /* generated ::= LP expr RP */
+_56:
+ ; /* generated ::= LP expr RP */
_sqlite3AddGenerated(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0))
goto _342
-_57: /* generated ::= LP expr RP ID */
+_57:
+ ; /* generated ::= LP expr RP ID */
_sqlite3AddGenerated(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), yymsp+8)
goto _342
-_58: /* autoinc ::= AUTOINCR */
+_58:
+ ; /* autoinc ::= AUTOINCR */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(1)
goto _342
-_59: /* refargs ::= */
+_59:
+ ; /* refargs ::= */
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = libc.Int32FromInt32(OE_None) * libc.Int32FromInt32(0x0101) /* EV: R-19803-45884 */
goto _342
-_60: /* refargs ::= refargs refarg */
+_60:
+ ; /* refargs ::= refargs refarg */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) & ^*(*int32)(unsafe.Pointer(yymsp + 8 + 4)) | *(*int32)(unsafe.Pointer(yymsp + 8))
goto _342
-_61: /* refarg ::= MATCH nm */
+_61:
+ ; /* refarg ::= MATCH nm */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = 0
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 4)) = 0x000000
goto _342
-_62: /* refarg ::= ON INSERT refact */
+_62:
+ ; /* refarg ::= ON INSERT refact */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = 0
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8 + 4)) = 0x000000
goto _342
-_63: /* refarg ::= ON DELETE refact */
+_63:
+ ; /* refarg ::= ON DELETE refact */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*int32)(unsafe.Pointer(yymsp + 8))
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8 + 4)) = int32(0x0000ff)
goto _342
-_64: /* refarg ::= ON UPDATE refact */
+_64:
+ ; /* refarg ::= ON UPDATE refact */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*int32)(unsafe.Pointer(yymsp + 8)) << int32(8)
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8 + 4)) = int32(0x00ff00)
goto _342
-_65: /* refact ::= SET NULL */
+_65:
+ ; /* refact ::= SET NULL */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = int32(OE_SetNull) /* EV: R-33326-45252 */
goto _342
-_66: /* refact ::= SET DEFAULT */
+_66:
+ ; /* refact ::= SET DEFAULT */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = int32(OE_SetDflt) /* EV: R-33326-45252 */
goto _342
-_67: /* refact ::= CASCADE */
+_67:
+ ; /* refact ::= CASCADE */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Cascade) /* EV: R-33326-45252 */
goto _342
-_68: /* refact ::= RESTRICT */
+_68:
+ ; /* refact ::= RESTRICT */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Restrict) /* EV: R-33326-45252 */
goto _342
-_69: /* refact ::= NO ACTION */
+_69:
+ ; /* refact ::= NO ACTION */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = OE_None /* EV: R-33326-45252 */
goto _342
-_70: /* defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
+_70:
+ ; /* defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = 0
goto _342
-_72: /* defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
+_72:
+ ; /* defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
_71:
+ ;
_73:
+ ;
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*int32)(unsafe.Pointer(yymsp + 8))
goto _342
-_75: /* init_deferred_pred_opt ::= INITIALLY DEFERRED */
+_75:
+ ; /* init_deferred_pred_opt ::= INITIALLY DEFERRED */
_74:
+ ;
_76:
+ ;
_77:
+ ;
_78:
+ ;
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = int32(1)
goto _342
-_79: /* init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
+_79:
+ ; /* init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = 0
goto _342
-_80: /* tconscomma ::= COMMA */
+_80:
+ ; /* tconscomma ::= COMMA */
(*TParse)(unsafe.Pointer(pParse)).FconstraintName.Fn = uint32(0)
goto _342
-_81: /* tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */
+_81:
+ ; /* tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */
_sqlite3AddPrimaryKey(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), 0)
goto _342
-_82: /* tcons ::= UNIQUE LP sortlist RP onconf */
+_82:
+ ; /* tcons ::= UNIQUE LP sortlist RP onconf */
_sqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)), uintptr(0), uintptr(0), 0, 0, uint8(SQLITE_IDXTYPE_UNIQUE))
goto _342
-_83: /* tcons ::= CHECK LP expr RP onconf */
+_83:
+ ; /* tcons ::= CHECK LP expr RP onconf */
_sqlite3AddCheckConstraint(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_84: /* tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */
+_84:
+ ; /* tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */
_sqlite3CreateForeignKey(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
_sqlite3DeferForeignKey(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_86: /* onconf ::= */
+_86:
+ ; /* onconf ::= */
_85:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = int32(OE_Default)
goto _342
-_87: /* onconf ::= ON CONFLICT resolvetype */
+_87:
+ ; /* onconf ::= ON CONFLICT resolvetype */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*int32)(unsafe.Pointer(yymsp + 8))
goto _342
-_88: /* resolvetype ::= IGNORE */
+_88:
+ ; /* resolvetype ::= IGNORE */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Ignore)
goto _342
-_90: /* resolvetype ::= REPLACE */
+_90:
+ ; /* resolvetype ::= REPLACE */
_89:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Replace)
goto _342
-_91: /* cmd ::= DROP TABLE ifexists fullname */
+_91:
+ ; /* cmd ::= DROP TABLE ifexists fullname */
_sqlite3DropTable(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), 0, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_92: /* cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */
+_92:
+ ; /* cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */
_sqlite3CreateView(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(8))*24+8, yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)))
goto _342
-_93: /* cmd ::= DROP VIEW ifexists fullname */
+_93:
+ ; /* cmd ::= DROP VIEW ifexists fullname */
_sqlite3DropTable(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), int32(1), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_94: /* cmd ::= select */
+_94:
+ ; /* cmd ::= select */
*(*TSelectDest)(unsafe.Pointer(bp + 16)) = TSelectDest{
FeDest: uint8(SRT_Output),
}
_sqlite3Select(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), bp+16)
_sqlite3SelectDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_95: /* select ::= WITH wqlist selectnowith */
+_95:
+ ; /* select ::= WITH wqlist selectnowith */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _attachWithToSelect(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_96: /* select ::= WITH RECURSIVE wqlist selectnowith */
+_96:
+ ; /* select ::= WITH RECURSIVE wqlist selectnowith */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _attachWithToSelect(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_97: /* select ::= selectnowith */
+_97:
+ ; /* select ::= selectnowith */
p2 = *(*uintptr)(unsafe.Pointer(yymsp + 8))
if p2 != 0 {
_parserDoubleLinkSelect(tls, pParse, p2)
}
goto _342
-_98: /* selectnowith ::= selectnowith multiselect_op oneselect */
+_98:
+ ; /* selectnowith ::= selectnowith multiselect_op oneselect */
pRhs = *(*uintptr)(unsafe.Pointer(yymsp + 8))
pLhs = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
if pRhs != 0 && (*TSelect)(unsafe.Pointer(pRhs)).FpPrior != 0 {
@@ -158930,17 +160525,22 @@ _98: /* selectnowith ::= selectnowith multiselect_op oneselect */
}
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = pRhs
goto _342
-_100: /* multiselect_op ::= UNION */
+_100:
+ ; /* multiselect_op ::= UNION */
_99:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor) /*A-overwrites-OP*/
goto _342
-_101: /* multiselect_op ::= UNION ALL */
+_101:
+ ; /* multiselect_op ::= UNION ALL */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = int32(TK_ALL)
goto _342
-_102: /* oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
+_102:
+ ; /* oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)) = _sqlite3SelectNew(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uint32(*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8))), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_103: /* oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */
+_103:
+ ; /* oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(9))*24 + 8)) = _sqlite3SelectNew(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uint32(*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8))), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(9))*24 + 8)) != 0 {
(*TSelect)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(9))*24 + 8)))).FpWinDefn = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
@@ -158948,10 +160548,12 @@ _103: /* oneselect ::= SELECT distinct selcollist from where_opt groupby_opt hav
_sqlite3WindowListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
}
goto _342
-_104: /* values ::= VALUES LP nexprlist RP */
+_104:
+ ; /* values ::= VALUES LP nexprlist RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3SelectNew(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(SF_Values), uintptr(0))
goto _342
-_105: /* values ::= values COMMA LP nexprlist RP */
+_105:
+ ; /* values ::= values COMMA LP nexprlist RP */
pLeft = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8))
pRight = _sqlite3SelectNew(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(libc.Int32FromInt32(SF_Values)|libc.Int32FromInt32(SF_MultiValue)), uintptr(0))
if pLeft != 0 {
@@ -158965,73 +160567,97 @@ _105: /* values ::= values COMMA LP nexprlist RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = pLeft
}
goto _342
-_106: /* distinct ::= DISTINCT */
+_106:
+ ; /* distinct ::= DISTINCT */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(SF_Distinct)
goto _342
-_107: /* distinct ::= ALL */
+_107:
+ ; /* distinct ::= ALL */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(SF_All)
goto _342
-_109: /* sclp ::= */
+_109:
+ ; /* sclp ::= */
_108:
+ ;
_110:
+ ;
_111:
+ ;
_112:
+ ;
_113:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_114: /* selcollist ::= sclp scanpt expr scanpt as */
+_114:
+ ; /* selcollist ::= sclp scanpt expr scanpt as */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
if *(*uint32)(unsafe.Pointer(yymsp + 8 + 8)) > uint32(0) {
_sqlite3ExprListSetName(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), yymsp+8, int32(1))
}
_sqlite3ExprListSetSpan(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_115: /* selcollist ::= sclp scanpt STAR */
+_115:
+ ; /* selcollist ::= sclp scanpt STAR */
p3 = _sqlite3Expr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_ASTERISK), uintptr(0))
_sqlite3ExprSetErrorOffset(tls, p3, int32(int64(*(*uintptr)(unsafe.Pointer(yymsp + 8)))-int64((*TParse)(unsafe.Pointer(pParse)).FzTail)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), p3)
goto _342
-_116: /* selcollist ::= sclp scanpt nm DOT STAR */
+_116:
+ ; /* selcollist ::= sclp scanpt nm DOT STAR */
pRight1 = _sqlite3PExpr(tls, pParse, int32(TK_ASTERISK), uintptr(0), uintptr(0))
_sqlite3ExprSetErrorOffset(tls, pRight1, int32(int64(*(*uintptr)(unsafe.Pointer(yymsp + 8)))-int64((*TParse)(unsafe.Pointer(pParse)).FzTail)))
pLeft1 = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
pDot = _sqlite3PExpr(tls, pParse, int32(TK_DOT), pLeft1, pRight1)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), pDot)
goto _342
-_118: /* as ::= AS nm */
+_118:
+ ; /* as ::= AS nm */
_117:
+ ;
_119:
+ ;
_120:
+ ;
*(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*TToken)(unsafe.Pointer(yymsp + 8))
goto _342
-_122: /* from ::= */
+_122:
+ ; /* from ::= */
_121:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_123: /* from ::= FROM seltablist */
+_123:
+ ; /* from ::= FROM seltablist */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
_sqlite3SrcListShiftJoinType(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_124: /* stl_prefix ::= seltablist joinop */
+_124:
+ ; /* stl_prefix ::= seltablist joinop */
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) != 0 && (*TSrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))).FnSrc > 0 {
(*(*TSrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) + 8 + uintptr((*TSrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))).FnSrc-int32(1))*104))).Ffg.Fjointype = uint8(*(*int32)(unsafe.Pointer(yymsp + 8)))
}
goto _342
-_125: /* seltablist ::= stl_prefix nm dbnm as on_using */
+_125:
+ ; /* seltablist ::= stl_prefix nm dbnm as on_using */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, uintptr(0), yymsp+8)
goto _342
-_126: /* seltablist ::= stl_prefix nm dbnm as indexed_by on_using */
+_126:
+ ; /* seltablist ::= stl_prefix nm dbnm as indexed_by on_using */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = _sqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, uintptr(0), yymsp+8)
_sqlite3SrcListIndexedBy(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(1))*24+8)
goto _342
-_127: /* seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */
+_127:
+ ; /* seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)) = _sqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(6))*24+8, yymsp+uintptr(-libc.Int32FromInt32(5))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, uintptr(0), yymsp+8)
_sqlite3SrcListFuncArgs(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)))
goto _342
-_128: /* seltablist ::= stl_prefix LP select RP as on_using */
+_128:
+ ; /* seltablist ::= stl_prefix LP select RP as on_using */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = _sqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), uintptr(0), uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), yymsp+8)
goto _342
-_129: /* seltablist ::= stl_prefix LP seltablist RP as on_using */
+_129:
+ ; /* seltablist ::= stl_prefix LP seltablist RP as on_using */
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) == uintptr(0) && *(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) == uint32(0) && *(*uintptr)(unsafe.Pointer(yymsp + 8)) == uintptr(0) && *(*uintptr)(unsafe.Pointer(yymsp + 8 + 8)) == uintptr(0) {
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8))
} else {
@@ -159065,142 +160691,188 @@ _129: /* seltablist ::= stl_prefix LP seltablist RP as on_using */
}
}
goto _342
-_131: /* dbnm ::= */
+_131:
+ ; /* dbnm ::= */
_130:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
*(*uint32)(unsafe.Pointer(yymsp + 1*24 + 8 + 8)) = uint32(0)
goto _342
-_132: /* fullname ::= nm */
+_132:
+ ; /* fullname ::= nm */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+8, uintptr(0))
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) && *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) != 0 {
_sqlite3RenameTokenMap(tls, pParse, (*(*TSrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) + 8))).FzName, yymsp+8)
}
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_133: /* fullname ::= nm DOT nm */
+_133:
+ ; /* fullname ::= nm DOT nm */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+8)
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) && *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) != 0 {
_sqlite3RenameTokenMap(tls, pParse, (*(*TSrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) + 8))).FzName, yymsp+8)
}
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_134: /* xfullname ::= nm */
+_134:
+ ; /* xfullname ::= nm */
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+8, uintptr(0)) /*A-overwrites-X*/
goto _342
-_135: /* xfullname ::= nm DOT nm */
+_135:
+ ; /* xfullname ::= nm DOT nm */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+8) /*A-overwrites-X*/
goto _342
-_136: /* xfullname ::= nm DOT nm AS nm */
+_136:
+ ; /* xfullname ::= nm DOT nm AS nm */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8) /*A-overwrites-X*/
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) != 0 {
(*(*TSrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) + 8))).FzAlias = _sqlite3NameFromToken(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, yymsp+8)
}
goto _342
-_137: /* xfullname ::= nm AS nm */
+_137:
+ ; /* xfullname ::= nm AS nm */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, uintptr(0)) /*A-overwrites-X*/
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) != 0 {
(*(*TSrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) + 8))).FzAlias = _sqlite3NameFromToken(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, yymsp+8)
}
goto _342
-_138: /* joinop ::= COMMA|JOIN */
+_138:
+ ; /* joinop ::= COMMA|JOIN */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(JT_INNER)
goto _342
-_139: /* joinop ::= JOIN_KW JOIN */
+_139:
+ ; /* joinop ::= JOIN_KW JOIN */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3JoinType(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, uintptr(0), uintptr(0)) /*X-overwrites-A*/
goto _342
-_140: /* joinop ::= JOIN_KW nm JOIN */
+_140:
+ ; /* joinop ::= JOIN_KW nm JOIN */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3JoinType(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, uintptr(0)) /*X-overwrites-A*/
goto _342
-_141: /* joinop ::= JOIN_KW nm nm JOIN */
+_141:
+ ; /* joinop ::= JOIN_KW nm nm JOIN */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3JoinType(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8) /*X-overwrites-A*/
goto _342
-_142: /* on_using ::= ON expr */
+_142:
+ ; /* on_using ::= ON expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) = uintptr(0)
goto _342
-_143: /* on_using ::= USING LP idlist RP */
+_143:
+ ; /* on_using ::= USING LP idlist RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
-_144: /* on_using ::= */
+_144:
+ ; /* on_using ::= */
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8 + 8)) = uintptr(0)
goto _342
-_145: /* indexed_by ::= INDEXED BY nm */
+_145:
+ ; /* indexed_by ::= INDEXED BY nm */
*(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*TToken)(unsafe.Pointer(yymsp + 8))
goto _342
-_146: /* indexed_by ::= NOT INDEXED */
+_146:
+ ; /* indexed_by ::= NOT INDEXED */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uintptr(0)
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) = uint32(1)
goto _342
-_148: /* orderby_opt ::= ORDER BY sortlist */
+_148:
+ ; /* orderby_opt ::= ORDER BY sortlist */
_147:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
goto _342
-_149: /* sortlist ::= sortlist COMMA expr sortorder nulls */
+_149:
+ ; /* sortlist ::= sortlist COMMA expr sortorder nulls */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
_sqlite3ExprListSetSortOrder(tls, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_150: /* sortlist ::= expr sortorder nulls */
+_150:
+ ; /* sortlist ::= expr sortorder nulls */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))) /*A-overwrites-Y*/
_sqlite3ExprListSetSortOrder(tls, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_151: /* sortorder ::= ASC */
+_151:
+ ; /* sortorder ::= ASC */
*(*int32)(unsafe.Pointer(yymsp + 8)) = SQLITE_SO_ASC
goto _342
-_152: /* sortorder ::= DESC */
+_152:
+ ; /* sortorder ::= DESC */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(SQLITE_SO_DESC)
goto _342
-_154: /* sortorder ::= */
+_154:
+ ; /* sortorder ::= */
_153:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = -int32(1)
goto _342
-_155: /* nulls ::= NULLS FIRST */
+_155:
+ ; /* nulls ::= NULLS FIRST */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = SQLITE_SO_ASC
goto _342
-_156: /* nulls ::= NULLS LAST */
+_156:
+ ; /* nulls ::= NULLS LAST */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = int32(SQLITE_SO_DESC)
goto _342
-_158: /* having_opt ::= */
+_158:
+ ; /* having_opt ::= */
_157:
+ ;
_159:
+ ;
_160:
+ ;
_161:
+ ;
_162:
+ ;
_163:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_165: /* having_opt ::= HAVING expr */
+_165:
+ ; /* having_opt ::= HAVING expr */
_164:
+ ;
_166:
+ ;
_167:
+ ;
_168:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
goto _342
-_169: /* limit_opt ::= LIMIT expr */
+_169:
+ ; /* limit_opt ::= LIMIT expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_LIMIT), *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0))
goto _342
-_170: /* limit_opt ::= LIMIT expr OFFSET expr */
+_170:
+ ; /* limit_opt ::= LIMIT expr OFFSET expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_LIMIT), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_171: /* limit_opt ::= LIMIT expr COMMA expr */
+_171:
+ ; /* limit_opt ::= LIMIT expr COMMA expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_LIMIT), *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
goto _342
-_172: /* cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */
+_172:
+ ; /* cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */
_sqlite3SrcListIndexedBy(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(1))*24+8)
_sqlite3DeleteFrom(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), uintptr(0))
goto _342
-_173: /* where_opt_ret ::= RETURNING selcollist */
+_173:
+ ; /* where_opt_ret ::= RETURNING selcollist */
_sqlite3AddReturning(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uintptr(0)
goto _342
-_174: /* where_opt_ret ::= WHERE expr RETURNING selcollist */
+_174:
+ ; /* where_opt_ret ::= WHERE expr RETURNING selcollist */
_sqlite3AddReturning(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
goto _342
-_175: /* cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */
+_175:
+ ; /* 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+23351)
+ _sqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), __ccgo_ts+23385)
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) {
@@ -159213,74 +160885,95 @@ _175: /* cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where
}
_sqlite3Update(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), uintptr(0), uintptr(0), uintptr(0))
goto _342
-_176: /* setlist ::= setlist COMMA nm EQ expr */
+_176:
+ ; /* setlist ::= setlist COMMA nm EQ expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_sqlite3ExprListSetName(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, int32(1))
goto _342
-_177: /* setlist ::= setlist COMMA LP idlist RP EQ expr */
+_177:
+ ; /* setlist ::= setlist COMMA LP idlist RP EQ expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)) = _sqlite3ExprListAppendVector(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_178: /* setlist ::= nm EQ expr */
+_178:
+ ; /* setlist ::= nm EQ expr */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_sqlite3ExprListSetName(tls, pParse, *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, int32(1))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_179: /* setlist ::= LP idlist RP EQ expr */
+_179:
+ ; /* setlist ::= LP idlist RP EQ expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppendVector(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_180: /* cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */
+_180:
+ ; /* cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */
_sqlite3Insert(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_181: /* cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */
+_181:
+ ; /* cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */
_sqlite3Insert(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), uintptr(0))
goto _342
-_182: /* upsert ::= */
+_182:
+ ; /* upsert ::= */
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_183: /* upsert ::= RETURNING selcollist */
+_183:
+ ; /* upsert ::= RETURNING selcollist */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uintptr(0)
_sqlite3AddReturning(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_184: /* upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */
+_184:
+ ; /* upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(11))*24 + 8)) = _sqlite3UpsertNew(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_185: /* upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */
+_185:
+ ; /* upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)) = _sqlite3UpsertNew(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_186: /* upsert ::= ON CONFLICT DO NOTHING returning */
+_186:
+ ; /* upsert ::= ON CONFLICT DO NOTHING returning */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3UpsertNew(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0))
goto _342
-_187: /* upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */
+_187:
+ ; /* upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)) = _sqlite3UpsertNew(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0))
goto _342
-_188: /* returning ::= RETURNING selcollist */
+_188:
+ ; /* returning ::= RETURNING selcollist */
_sqlite3AddReturning(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_189: /* idlist_opt ::= */
+_189:
+ ; /* idlist_opt ::= */
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_190: /* idlist_opt ::= LP idlist RP */
+_190:
+ ; /* idlist_opt ::= LP idlist RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
-_191: /* idlist ::= idlist COMMA nm */
+_191:
+ ; /* idlist ::= idlist COMMA nm */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3IdListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), yymsp+8)
goto _342
-_192: /* idlist ::= nm */
+_192:
+ ; /* idlist ::= nm */
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _sqlite3IdListAppend(tls, pParse, uintptr(0), yymsp+8) /*A-overwrites-Y*/
goto _342
-_193: /* expr ::= LP expr RP */
+_193:
+ ; /* expr ::= LP expr RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
-_194: /* expr ::= ID|INDEXED|JOIN_KW */
+_194:
+ ; /* expr ::= ID|INDEXED|JOIN_KW */
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-X*/
goto _342
-_195: /* expr ::= nm DOT nm */
+_195:
+ ; /* expr ::= nm DOT nm */
temp1 = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
temp2 = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3PExpr(tls, pParse, int32(TK_DOT), temp1, temp2)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_196: /* expr ::= nm DOT nm DOT nm */
+_196:
+ ; /* expr ::= nm DOT nm DOT nm */
temp11 = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
temp21 = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
temp3 = _tokenExpr(tls, pParse, int32(TK_ID), *(*TToken)(unsafe.Pointer(yymsp + 8)))
@@ -159291,18 +160984,22 @@ _196: /* expr ::= nm DOT nm DOT nm */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3PExpr(tls, pParse, int32(TK_DOT), temp11, temp4)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_198: /* term ::= NULL|FLOAT|BLOB */
+_198:
+ ; /* term ::= NULL|FLOAT|BLOB */
_197:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _tokenExpr(tls, pParse, int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor), *(*TToken)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-X*/
goto _342
-_199: /* term ::= INTEGER */
+_199:
+ ; /* term ::= INTEGER */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprAlloc(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_INTEGER), yymsp+8, int32(1))
if *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) != 0 {
*(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) + 52)) = int32(int64(*(*uintptr)(unsafe.Pointer(yymsp + 8))) - int64((*TParse)(unsafe.Pointer(pParse)).FzTail))
}
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_200: /* expr ::= VARIABLE */
+_200:
+ ; /* expr ::= VARIABLE */
if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + 8))))) == int32('#') && int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + 8)) + 1))])&int32(0x04) != 0) {
n = *(*uint32)(unsafe.Pointer(yymsp + 8 + 8))
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _tokenExpr(tls, pParse, int32(TK_VARIABLE), *(*TToken)(unsafe.Pointer(yymsp + 8)))
@@ -159314,7 +161011,7 @@ _200: /* expr ::= VARIABLE */
*(*TToken)(unsafe.Pointer(bp + 88)) = *(*TToken)(unsafe.Pointer(yymsp + 8)) /*A-overwrites-X*/
_ = libc.Int32FromInt32(0)
if int32((*TParse)(unsafe.Pointer(pParse)).Fnested) == 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23360, libc.VaList(bp+128, bp+88))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23394, libc.VaList(bp+128, bp+88))
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = uintptr(0)
} else {
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_REGISTER), uintptr(0), uintptr(0))
@@ -159324,47 +161021,57 @@ _200: /* expr ::= VARIABLE */
}
}
goto _342
-_201: /* expr ::= expr COLLATE ID|STRING */
+_201:
+ ; /* expr ::= expr COLLATE ID|STRING */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3ExprAddCollateToken(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), yymsp+8, int32(1))
goto _342
-_202: /* expr ::= CAST LP expr AS typetoken RP */
+_202:
+ ; /* expr ::= CAST LP expr AS typetoken RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = _sqlite3ExprAlloc(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_CAST), yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, int32(1))
_sqlite3ExprAttachSubtrees(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), uintptr(0))
goto _342
-_203: /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */
+_203:
+ ; /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_204: /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */
+_204:
+ ; /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(7))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)))
_sqlite3ExprAddFunctionOrderBy(tls, pParse, *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_205: /* expr ::= ID|INDEXED|JOIN_KW LP STAR RP */
+_205:
+ ; /* expr ::= ID|INDEXED|JOIN_KW LP STAR RP */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, 0)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_206: /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */
+_206:
+ ; /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(5))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)))
_sqlite3WindowAttach(tls, pParse, *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_207: /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */
+_207:
+ ; /* expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(8))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8)))
_sqlite3WindowAttach(tls, pParse, *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_sqlite3ExprAddFunctionOrderBy(tls, pParse, *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_208: /* expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */
+_208:
+ ; /* expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, 0)
_sqlite3WindowAttach(tls, pParse, *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_209: /* term ::= CTIME_KW */
+_209:
+ ; /* term ::= CTIME_KW */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, uintptr(0), yymsp+8, 0)
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_210: /* expr ::= LP nexprlist COMMA expr RP */
+_210:
+ ; /* expr ::= LP nexprlist COMMA expr RP */
pList = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_VECTOR), uintptr(0), uintptr(0))
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) != 0 {
@@ -159376,23 +161083,33 @@ _210: /* expr ::= LP nexprlist COMMA expr RP */
_sqlite3ExprListDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, pList)
}
goto _342
-_211: /* expr ::= expr AND expr */
+_211:
+ ; /* expr ::= expr AND expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3ExprAnd(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_213: /* expr ::= expr OR expr */
+_213:
+ ; /* expr ::= expr OR expr */
_212:
+ ;
_214:
+ ;
_215:
+ ;
_216:
+ ;
_217:
+ ;
_218:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24))).Fmajor), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_219: /* likeop ::= NOT LIKE_KW|MATCH */
+_219:
+ ; /* likeop ::= NOT LIKE_KW|MATCH */
*(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*TToken)(unsafe.Pointer(yymsp + 8))
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) |= uint32(0x80000000) /*yymsp[-1].minor.yy0-overwrite-yymsp[0].minor.yy0*/
goto _342
-_220: /* expr ::= expr likeop expr */
+_220:
+ ; /* expr ::= expr likeop expr */
bNot = int32(*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) & uint32(0x80000000))
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) &= uint32(0x7fffffff)
pList1 = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
@@ -159405,7 +161122,8 @@ _220: /* expr ::= expr likeop expr */
*(*Tu32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) + 4)) |= uint32(EP_InfixFunc)
}
goto _342
-_221: /* expr ::= expr likeop expr ESCAPE expr */
+_221:
+ ; /* expr ::= expr likeop expr ESCAPE expr */
bNot1 = int32(*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8 + 8)) & uint32(0x80000000))
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8 + 8)) &= uint32(0x7fffffff)
pList2 = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
@@ -159419,33 +161137,42 @@ _221: /* expr ::= expr likeop expr ESCAPE expr */
*(*Tu32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) + 4)) |= uint32(EP_InfixFunc)
}
goto _342
-_222: /* expr ::= expr ISNULL|NOTNULL */
+_222:
+ ; /* expr ::= expr ISNULL|NOTNULL */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0))
goto _342
-_223: /* expr ::= expr NOT NULL */
+_223:
+ ; /* expr ::= expr NOT NULL */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_NOTNULL), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), uintptr(0))
goto _342
-_224: /* expr ::= expr IS expr */
+_224:
+ ; /* expr ::= expr IS expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_IS), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), int32(TK_ISNULL))
goto _342
-_225: /* expr ::= expr IS NOT expr */
+_225:
+ ; /* expr ::= expr IS NOT expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_ISNOT), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), int32(TK_NOTNULL))
goto _342
-_226: /* expr ::= expr IS NOT DISTINCT FROM expr */
+_226:
+ ; /* expr ::= expr IS NOT DISTINCT FROM expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_IS), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), int32(TK_ISNULL))
goto _342
-_227: /* expr ::= expr IS DISTINCT FROM expr */
+_227:
+ ; /* expr ::= expr IS DISTINCT FROM expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_ISNOT), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
_binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), int32(TK_NOTNULL))
goto _342
-_229: /* expr ::= NOT expr */
+_229:
+ ; /* expr ::= NOT expr */
_228:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24))).Fmajor), *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0)) /*A-overwrites-B*/
goto _342
-_230: /* expr ::= PLUS|MINUS expr */
+_230:
+ ; /* expr ::= PLUS|MINUS expr */
if int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24))).Fmajor) == int32(TK_PLUS) {
v344 = int32(TK_UPLUS)
} else {
@@ -159454,17 +161181,21 @@ _230: /* expr ::= PLUS|MINUS expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3PExpr(tls, pParse, v344, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0))
/*A-overwrites-B*/
goto _342
-_231: /* expr ::= expr PTR expr */
+_231:
+ ; /* expr ::= expr PTR expr */
pList3 = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
pList3 = _sqlite3ExprListAppend(tls, pParse, pList3, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3ExprFunction(tls, pParse, pList3, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, 0)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_233: /* between_op ::= BETWEEN */
+_233:
+ ; /* between_op ::= BETWEEN */
_232:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 8)) = 0
goto _342
-_234: /* expr ::= expr between_op expr AND expr */
+_234:
+ ; /* expr ::= expr between_op expr AND expr */
pList4 = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
pList4 = _sqlite3ExprListAppend(tls, pParse, pList4, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_BETWEEN), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uintptr(0))
@@ -159477,7 +161208,8 @@ _234: /* expr ::= expr between_op expr AND expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_NOT), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uintptr(0))
}
goto _342
-_235: /* expr ::= expr in_op LP exprlist RP */
+_235:
+ ; /* expr ::= expr in_op LP exprlist RP */
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) == uintptr(0) {
/* Expressions of the form
**
@@ -159489,9 +161221,9 @@ _235: /* expr ::= expr in_op LP exprlist RP */
*/
_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 {
- v345 = __ccgo_ts + 7861
+ v345 = __ccgo_ts + 7886
} else {
- v345 = __ccgo_ts + 7866
+ v345 = __ccgo_ts + 7891
}
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3Expr(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_STRING), v345)
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) != 0 {
@@ -159534,18 +161266,21 @@ _235: /* expr ::= expr in_op LP exprlist RP */
}
}
goto _342
-_236: /* expr ::= LP select RP */
+_236:
+ ; /* expr ::= LP select RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_SELECT), uintptr(0), uintptr(0))
_sqlite3PExprAddSelect(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_237: /* expr ::= expr in_op LP select RP */
+_237:
+ ; /* expr ::= expr in_op LP select RP */
*(*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)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
if *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) != 0 {
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_NOT), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uintptr(0))
}
goto _342
-_238: /* expr ::= expr in_op nm dbnm paren_exprlist */
+_238:
+ ; /* expr ::= expr in_op nm dbnm paren_exprlist */
pSrc = _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8)
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 {
@@ -159562,13 +161297,15 @@ _238: /* expr ::= expr in_op nm dbnm paren_exprlist */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_NOT), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uintptr(0))
}
goto _342
-_239: /* expr ::= EXISTS LP select RP */
+_239:
+ ; /* expr ::= EXISTS LP select RP */
v347 = _sqlite3PExpr(tls, pParse, int32(TK_EXISTS), uintptr(0), uintptr(0))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = v347
p4 = v347
_sqlite3PExprAddSelect(tls, pParse, p4, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_240: /* expr ::= CASE case_operand case_exprlist case_else END */
+_240:
+ ; /* expr ::= CASE case_operand case_exprlist case_else END */
*(*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 {
@@ -159583,73 +161320,95 @@ _240: /* expr ::= CASE case_operand case_exprlist case_else END */
_sqlite3ExprDelete(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
}
goto _342
-_241: /* case_exprlist ::= case_exprlist WHEN expr THEN expr */
+_241:
+ ; /* case_exprlist ::= case_exprlist WHEN expr THEN expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_242: /* case_exprlist ::= WHEN expr THEN expr */
+_242:
+ ; /* case_exprlist ::= WHEN expr THEN expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_243: /* nexprlist ::= nexprlist COMMA expr */
+_243:
+ ; /* nexprlist ::= nexprlist COMMA expr */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_244: /* nexprlist ::= expr */
+_244:
+ ; /* nexprlist ::= expr */
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _sqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-Y*/
goto _342
-_246: /* paren_exprlist ::= LP exprlist RP */
+_246:
+ ; /* paren_exprlist ::= LP exprlist RP */
_245:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
-_247: /* cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
+_247:
+ ; /* cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
_sqlite3CreateIndex(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(7))*24+8, yymsp+uintptr(-libc.Int32FromInt32(6))*24+8, _sqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, uintptr(0)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(10))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(11))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + 8)), SQLITE_SO_ASC, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)), uint8(SQLITE_IDXTYPE_APPDEF))
if int32((*TParse)(unsafe.Pointer(pParse)).FeParseMode) >= int32(PARSE_MODE_RENAME) && (*TParse)(unsafe.Pointer(pParse)).FpNewIndex != 0 {
_sqlite3RenameTokenMap(tls, pParse, (*TIndex)(unsafe.Pointer((*TParse)(unsafe.Pointer(pParse)).FpNewIndex)).FzName, yymsp+uintptr(-libc.Int32FromInt32(4))*24+8)
}
goto _342
-_249: /* uniqueflag ::= UNIQUE */
+_249:
+ ; /* uniqueflag ::= UNIQUE */
_248:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Abort)
goto _342
-_250: /* uniqueflag ::= */
+_250:
+ ; /* uniqueflag ::= */
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = OE_None
goto _342
-_251: /* eidlist ::= eidlist COMMA nm collate sortorder */
+_251:
+ ; /* eidlist ::= eidlist COMMA nm collate sortorder */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _parserAddExprIdListTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8)))
goto _342
-_252: /* eidlist ::= nm collate sortorder */
+_252:
+ ; /* eidlist ::= nm collate sortorder */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _parserAddExprIdListTerm(tls, pParse, uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-Y*/
goto _342
-_253: /* cmd ::= DROP INDEX ifexists fullname */
+_253:
+ ; /* cmd ::= DROP INDEX ifexists fullname */
_sqlite3DropIndex(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_254: /* cmd ::= VACUUM vinto */
+_254:
+ ; /* cmd ::= VACUUM vinto */
_sqlite3Vacuum(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_255: /* cmd ::= VACUUM nm vinto */
+_255:
+ ; /* cmd ::= VACUUM nm vinto */
_sqlite3Vacuum(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_256: /* cmd ::= PRAGMA nm dbnm */
+_256:
+ ; /* cmd ::= PRAGMA nm dbnm */
_sqlite3Pragma(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, yymsp+8, uintptr(0), 0)
goto _342
-_257: /* cmd ::= PRAGMA nm dbnm EQ nmnum */
+_257:
+ ; /* cmd ::= PRAGMA nm dbnm EQ nmnum */
_sqlite3Pragma(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+8, 0)
goto _342
-_258: /* cmd ::= PRAGMA nm dbnm LP nmnum RP */
+_258:
+ ; /* cmd ::= PRAGMA nm dbnm LP nmnum RP */
_sqlite3Pragma(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, 0)
goto _342
-_259: /* cmd ::= PRAGMA nm dbnm EQ minus_num */
+_259:
+ ; /* cmd ::= PRAGMA nm dbnm EQ minus_num */
_sqlite3Pragma(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+8, int32(1))
goto _342
-_260: /* cmd ::= PRAGMA nm dbnm LP minus_num RP */
+_260:
+ ; /* cmd ::= PRAGMA nm dbnm LP minus_num RP */
_sqlite3Pragma(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, int32(1))
goto _342
-_261: /* cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
+_261:
+ ; /* cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
(*(*TToken)(unsafe.Pointer(bp + 104))).Fz = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8))
(*(*TToken)(unsafe.Pointer(bp + 104))).Fn = uint32(int32(int64(*(*uintptr)(unsafe.Pointer(yymsp + 8)))-int64(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8))))) + *(*uint32)(unsafe.Pointer(yymsp + 8 + 8))
_sqlite3FinishTrigger(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), bp+104)
goto _342
-_262: /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
+_262:
+ ; /* 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) {
v349 = *(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8))
@@ -159658,239 +161417,312 @@ _262: /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_
}
*(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(10))*24 + 8)) = v349 /*A-overwrites-T*/
goto _342
-_263: /* trigger_time ::= BEFORE|AFTER */
+_263:
+ ; /* trigger_time ::= BEFORE|AFTER */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor) /*A-overwrites-X*/
goto _342
-_264: /* trigger_time ::= INSTEAD OF */
+_264:
+ ; /* trigger_time ::= INSTEAD OF */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = int32(TK_INSTEAD)
goto _342
-_265: /* trigger_time ::= */
+_265:
+ ; /* trigger_time ::= */
*(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = int32(TK_BEFORE)
goto _342
-_267: /* trigger_event ::= DELETE|INSERT */
+_267:
+ ; /* trigger_event ::= DELETE|INSERT */
_266:
+ ;
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor) /*A-overwrites-X*/
*(*uintptr)(unsafe.Pointer(yymsp + 8 + 8)) = uintptr(0)
goto _342
-_268: /* trigger_event ::= UPDATE OF idlist */
+_268:
+ ; /* trigger_event ::= UPDATE OF idlist */
*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = int32(TK_UPDATE)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
goto _342
-_270: /* when_clause ::= */
+_270:
+ ; /* when_clause ::= */
_269:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0)
goto _342
-_272: /* when_clause ::= WHEN expr */
+_272:
+ ; /* when_clause ::= WHEN expr */
_271:
+ ;
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
goto _342
-_273: /* trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
+_273:
+ ; /* trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
_ = libc.Int32FromInt32(0)
(*TTriggerStep)(unsafe.Pointer((*TTriggerStep)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))).FpLast)).FpNext = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
(*TTriggerStep)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))).FpLast = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
-_274: /* trigger_cmd_list ::= trigger_cmd SEMI */
+_274:
+ ; /* trigger_cmd_list ::= trigger_cmd SEMI */
_ = libc.Int32FromInt32(0)
(*TTriggerStep)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))).FpLast = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
-_275: /* trnm ::= nm DOT nm */
+_275:
+ ; /* trnm ::= nm DOT nm */
*(*TToken)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*TToken)(unsafe.Pointer(yymsp + 8))
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23384, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23418, 0)
goto _342
-_276: /* tridxby ::= INDEXED BY nm */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23479, 0)
+_276:
+ ; /* tridxby ::= INDEXED BY nm */
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23513, 0)
goto _342
-_277: /* tridxby ::= NOT INDEXED */
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23563, 0)
+_277:
+ ; /* tridxby ::= NOT INDEXED */
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23597, 0)
goto _342
-_278: /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
+_278:
+ ; /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3TriggerUpdateStep(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(6))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uint8(*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8))), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(8))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_279: /* trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
+_279:
+ ; /* trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3TriggerInsertStep(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(4))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), uint8(*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(6))*24 + 8))), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*yylhsminor.yy33-overwrites-yymsp[-6].minor.yy394*/
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(7))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_280: /* trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
+_280:
+ ; /* trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3TriggerDeleteStep(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_281: /* trigger_cmd ::= scanpt select scanpt */
+_281:
+ ; /* trigger_cmd ::= scanpt select scanpt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3TriggerSelectStep(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*yylhsminor.yy33-overwrites-yymsp[-1].minor.yy47*/
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_282: /* expr ::= RAISE LP IGNORE RP */
+_282:
+ ; /* expr ::= RAISE LP IGNORE RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3PExpr(tls, pParse, int32(TK_RAISE), uintptr(0), uintptr(0))
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) != 0 {
(*TExpr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)))).FaffExpr = uint8(OE_Ignore)
}
goto _342
-_283: /* expr ::= RAISE LP raisetype COMMA nm RP */
+_283:
+ ; /* expr ::= RAISE LP raisetype COMMA nm RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = _sqlite3ExprAlloc(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, int32(TK_RAISE), yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, int32(1))
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) != 0 {
(*TExpr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)))).FaffExpr = uint8(*(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)))
}
goto _342
-_284: /* raisetype ::= ROLLBACK */
+_284:
+ ; /* raisetype ::= ROLLBACK */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Rollback)
goto _342
-_285: /* raisetype ::= FAIL */
+_285:
+ ; /* raisetype ::= FAIL */
*(*int32)(unsafe.Pointer(yymsp + 8)) = int32(OE_Fail)
goto _342
-_286: /* cmd ::= DROP TRIGGER ifexists fullname */
+_286:
+ ; /* cmd ::= DROP TRIGGER ifexists fullname */
_sqlite3DropTrigger(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _342
-_287: /* cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
+_287:
+ ; /* cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
_sqlite3Attach(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_288: /* cmd ::= DETACH database_kw_opt expr */
+_288:
+ ; /* cmd ::= DETACH database_kw_opt expr */
_sqlite3Detach(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_289: /* cmd ::= REINDEX */
+_289:
+ ; /* cmd ::= REINDEX */
_sqlite3Reindex(tls, pParse, uintptr(0), uintptr(0))
goto _342
-_290: /* cmd ::= REINDEX nm dbnm */
+_290:
+ ; /* cmd ::= REINDEX nm dbnm */
_sqlite3Reindex(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, yymsp+8)
goto _342
-_291: /* cmd ::= ANALYZE */
+_291:
+ ; /* cmd ::= ANALYZE */
_sqlite3Analyze(tls, pParse, uintptr(0), uintptr(0))
goto _342
-_292: /* cmd ::= ANALYZE nm dbnm */
+_292:
+ ; /* cmd ::= ANALYZE nm dbnm */
_sqlite3Analyze(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, yymsp+8)
goto _342
-_293: /* cmd ::= ALTER TABLE fullname RENAME TO nm */
+_293:
+ ; /* cmd ::= ALTER TABLE fullname RENAME TO nm */
_sqlite3AlterRenameTable(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), yymsp+8)
goto _342
-_294: /* cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
+_294:
+ ; /* cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)) = uint32(int32(int64((*TParse)(unsafe.Pointer(pParse)).FsLastToken.Fz)-int64(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))))) + (*TParse)(unsafe.Pointer(pParse)).FsLastToken.Fn
_sqlite3AlterFinishAddColumn(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(1))*24+8)
goto _342
-_295: /* cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
+_295:
+ ; /* cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
_sqlite3AlterDropColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), yymsp+8)
goto _342
-_296: /* add_column_fullname ::= fullname */
+_296:
+ ; /* add_column_fullname ::= fullname */
_disableLookaside(tls, pParse)
_sqlite3AlterBeginAddColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_297: /* cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
+_297:
+ ; /* cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
_sqlite3AlterRenameColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+8)
goto _342
-_298: /* cmd ::= create_vtab */
+_298:
+ ; /* cmd ::= create_vtab */
_sqlite3VtabFinishParse(tls, pParse, uintptr(0))
goto _342
-_299: /* cmd ::= create_vtab LP vtabarglist RP */
+_299:
+ ; /* cmd ::= create_vtab LP vtabarglist RP */
_sqlite3VtabFinishParse(tls, pParse, yymsp+8)
goto _342
-_300: /* create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
+_300:
+ ; /* create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
_sqlite3VtabBeginParse(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(3))*24+8, yymsp+uintptr(-libc.Int32FromInt32(2))*24+8, yymsp+8, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
goto _342
-_301: /* vtabarg ::= */
+_301:
+ ; /* vtabarg ::= */
_sqlite3VtabArgInit(tls, pParse)
goto _342
-_303: /* vtabargtoken ::= ANY */
+_303:
+ ; /* vtabargtoken ::= ANY */
_302:
+ ;
_304:
+ ;
_sqlite3VtabArgExtend(tls, pParse, yymsp+8)
goto _342
-_306: /* with ::= WITH wqlist */
+_306:
+ ; /* with ::= WITH wqlist */
_305:
+ ;
_sqlite3WithPush(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uint8(1))
goto _342
-_307: /* wqas ::= AS */
+_307:
+ ; /* wqas ::= AS */
*(*Tu8)(unsafe.Pointer(yymsp + 8)) = uint8(M10d_Any)
goto _342
-_308: /* wqas ::= AS MATERIALIZED */
+_308:
+ ; /* wqas ::= AS MATERIALIZED */
*(*Tu8)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uint8(M10d_Yes)
goto _342
-_309: /* wqas ::= AS NOT MATERIALIZED */
+_309:
+ ; /* wqas ::= AS NOT MATERIALIZED */
*(*Tu8)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = uint8(M10d_No)
goto _342
-_310: /* wqitem ::= nm eidlist_opt wqas LP select RP */
+_310:
+ ; /* wqitem ::= nm eidlist_opt wqas LP select RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = _sqlite3CteNew(tls, pParse, yymsp+uintptr(-libc.Int32FromInt32(5))*24+8, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*Tu8)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8))) /*A-overwrites-X*/
goto _342
-_311: /* wqlist ::= wqitem */
+_311:
+ ; /* wqlist ::= wqitem */
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = _sqlite3WithAdd(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-X*/
goto _342
-_312: /* wqlist ::= wqlist COMMA wqitem */
+_312:
+ ; /* wqlist ::= wqlist COMMA wqitem */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = _sqlite3WithAdd(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)))
goto _342
-_313: /* windowdefn_list ::= windowdefn_list COMMA windowdefn */
+_313:
+ ; /* windowdefn_list ::= windowdefn_list COMMA windowdefn */
_ = libc.Int32FromInt32(0)
_sqlite3WindowChain(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
(*TWindow)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + 8)))).FpNextWin = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_314: /* windowdefn ::= nm AS LP window RP */
+_314:
+ ; /* windowdefn ::= nm AS LP window RP */
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) != 0 {
(*TWindow)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))).FzName = _sqlite3DbStrNDup(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)), uint64(*(*uint32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8 + 8))))
}
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_315: /* window ::= PARTITION BY nexprlist orderby_opt frame_opt */
+_315:
+ ; /* window ::= PARTITION BY nexprlist orderby_opt frame_opt */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = _sqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0))
goto _342
-_316: /* window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
+_316:
+ ; /* window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(5))*24+8)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_317: /* window ::= ORDER BY sortlist frame_opt */
+_317:
+ ; /* window ::= ORDER BY sortlist frame_opt */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), uintptr(0))
goto _342
-_318: /* window ::= nm ORDER BY sortlist frame_opt */
+_318:
+ ; /* window ::= nm ORDER BY sortlist frame_opt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), yymsp+uintptr(-libc.Int32FromInt32(4))*24+8)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_319: /* window ::= nm frame_opt */
+_319:
+ ; /* window ::= nm frame_opt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), uintptr(0), yymsp+uintptr(-libc.Int32FromInt32(1))*24+8)
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_320: /* frame_opt ::= */
+_320:
+ ; /* frame_opt ::= */
*(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = _sqlite3WindowAlloc(tls, pParse, 0, int32(TK_UNBOUNDED), uintptr(0), int32(TK_CURRENT), uintptr(0), uint8(0))
goto _342
-_321: /* frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
+_321:
+ ; /* frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3WindowAlloc(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)), int32(TK_CURRENT), uintptr(0), *(*Tu8)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_322: /* frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
+_322:
+ ; /* frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3WindowAlloc(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8 + 8)), *(*int32)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8 + 8)), *(*Tu8)(unsafe.Pointer(yymsp + 8)))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(5))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_324: /* frame_bound_s ::= frame_bound */
+_324:
+ ; /* frame_bound_s ::= frame_bound */
_323:
+ ;
*(*TFrameBound)(unsafe.Pointer(bp)) = *(*TFrameBound)(unsafe.Pointer(yymsp + 8))
*(*TFrameBound)(unsafe.Pointer(yymsp + 8)) = *(*TFrameBound)(unsafe.Pointer(bp))
goto _342
-_326: /* frame_bound_s ::= UNBOUNDED PRECEDING */
+_326:
+ ; /* frame_bound_s ::= UNBOUNDED PRECEDING */
_325:
+ ;
_327:
+ ;
(*(*TFrameBound)(unsafe.Pointer(bp))).FeType = int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24))).Fmajor)
(*(*TFrameBound)(unsafe.Pointer(bp))).FpExpr = uintptr(0)
*(*TFrameBound)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*TFrameBound)(unsafe.Pointer(bp))
goto _342
-_328: /* frame_bound ::= expr PRECEDING|FOLLOWING */
+_328:
+ ; /* frame_bound ::= expr PRECEDING|FOLLOWING */
(*(*TFrameBound)(unsafe.Pointer(bp))).FeType = int32((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor)
(*(*TFrameBound)(unsafe.Pointer(bp))).FpExpr = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
*(*TFrameBound)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*TFrameBound)(unsafe.Pointer(bp))
goto _342
-_329: /* frame_exclude_opt ::= */
+_329:
+ ; /* frame_exclude_opt ::= */
*(*Tu8)(unsafe.Pointer(yymsp + 1*24 + 8)) = uint8(0)
goto _342
-_330: /* frame_exclude_opt ::= EXCLUDE frame_exclude */
+_330:
+ ; /* frame_exclude_opt ::= EXCLUDE frame_exclude */
*(*Tu8)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*Tu8)(unsafe.Pointer(yymsp + 8))
goto _342
-_332: /* frame_exclude ::= NO OTHERS */
+_332:
+ ; /* frame_exclude ::= NO OTHERS */
_331:
+ ;
*(*Tu8)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = uint8((*(*TyyStackEntry)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24))).Fmajor) /*A-overwrites-X*/
goto _342
-_333: /* frame_exclude ::= GROUP|TIES */
+_333:
+ ; /* frame_exclude ::= GROUP|TIES */
*(*Tu8)(unsafe.Pointer(yymsp + 8)) = uint8((*(*TyyStackEntry)(unsafe.Pointer(yymsp))).Fmajor) /*A-overwrites-X*/
goto _342
-_334: /* window_clause ::= WINDOW windowdefn_list */
+_334:
+ ; /* window_clause ::= WINDOW windowdefn_list */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
goto _342
-_335: /* filter_over ::= filter_clause over_clause */
+_335:
+ ; /* filter_over ::= filter_clause over_clause */
if *(*uintptr)(unsafe.Pointer(yymsp + 8)) != 0 {
(*TWindow)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + 8)))).FpFilter = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
} else {
@@ -159899,11 +161731,13 @@ _335: /* filter_over ::= filter_clause over_clause */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_336: /* filter_over ::= over_clause */
+_336:
+ ; /* filter_over ::= over_clause */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = *(*uintptr)(unsafe.Pointer(yymsp + 8))
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_337: /* filter_over ::= filter_clause */
+_337:
+ ; /* filter_over ::= filter_clause */
*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) = _sqlite3DbMallocZero(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uint64(144))
if *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))) != 0 {
(*TWindow)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp)))))).FeFrmType = uint8(TK_FILTER)
@@ -159913,20 +161747,24 @@ _337: /* filter_over ::= filter_clause */
}
*(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&*(*TYYMINORTYPE)(unsafe.Pointer(bp))))
goto _342
-_338: /* over_clause ::= OVER LP window RP */
+_338:
+ ; /* over_clause ::= OVER LP window RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
_ = libc.Int32FromInt32(0)
goto _342
-_339: /* over_clause ::= OVER nm */
+_339:
+ ; /* over_clause ::= OVER nm */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3DbMallocZero(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, uint64(144))
if *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) != 0 {
(*TWindow)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))).FzName = _sqlite3DbStrNDup(tls, (*TParse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uint64(*(*uint32)(unsafe.Pointer(yymsp + 8 + 8))))
}
goto _342
-_340: /* filter_clause ::= FILTER LP WHERE expr RP */
+_340:
+ ; /* filter_clause ::= FILTER LP WHERE expr RP */
*(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _342
_341:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -159945,6 +161783,7 @@ _341:
goto _342
/********** End reduce actions ************************************************/
_342:
+ ;
_ = libc.Int32FromInt32(0)
yygoto = int32(_yyRuleInfoLhs[yyruleno])
yysize = int32(_yyRuleInfoNRhs[yyruleno])
@@ -159980,9 +161819,9 @@ func _yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, _yyminor
/************ Begin %syntax_error code ****************************************/
_ = yymajor /* Silence some compiler warnings */
if *(*uint8)(unsafe.Pointer((*(*TToken)(unsafe.Pointer(bp))).Fz)) != 0 {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23360, libc.VaList(bp+24, bp))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23394, libc.VaList(bp+24, bp))
} else {
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23648, 0)
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23682, 0)
}
/************ End %syntax_error code ******************************************/
/* Suppress warning about unused %extra_argument variable */
@@ -162038,6 +163877,7 @@ func _keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) (r int32) {
break
goto _1
_1:
+ ;
i = int32(_aKWNext[i])
}
return n
@@ -162217,6 +164057,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
*(*int32)(unsafe.Pointer(tokenType)) = int32(TK_SPACE)
@@ -162232,6 +164073,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
*(*int32)(unsafe.Pointer(tokenType)) = int32(TK_SPACE) /* IMP: R-22934-25134 */
@@ -162276,6 +164118,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _4
_4:
+ ;
i++
}
if c != 0 {
@@ -162371,6 +164214,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _9
_9:
+ ;
i++
}
if c == int32('\'') {
@@ -162402,6 +164246,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _11
_11:
+ ;
i++
}
return i
@@ -162413,6 +164258,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _12
_12:
+ ;
i++
}
if int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) == int32('.') {
@@ -162447,6 +164293,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _13
_13:
+ ;
i++
}
if c == int32(']') {
@@ -162465,6 +164312,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _17
_17:
+ ;
i++
}
return i
@@ -162488,6 +164336,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
i++
goto _21
_21:
+ ;
v20 = int32(*(*uint8)(unsafe.Pointer(z + uintptr(i))))
c = v20
if !(v20 != 0 && !(int32(_sqlite3CtypeMap[uint8(c)])&libc.Int32FromInt32(0x01) != 0) && c != int32(')')) {
@@ -162510,6 +164359,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _18
_18:
+ ;
i++
}
if n == 0 {
@@ -162528,6 +164378,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _22
_22:
+ ;
i++
}
if int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i)))])&int32(0x46) != 0 {
@@ -162549,6 +164400,7 @@ func _sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) (r int32) {
}
goto _23
_23:
+ ;
i++
}
if int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) != int32('\'') || i%int32(2) != 0 {
@@ -162668,7 +164520,7 @@ func _sqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) (r int32) {
} else {
(*(*TToken)(unsafe.Pointer(bp + 2432))).Fz = zSql
(*(*TToken)(unsafe.Pointer(bp + 2432))).Fn = uint32(n)
- _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23665, libc.VaList(bp+2456, bp+2432))
+ _sqlite3ErrorMsg(tls, pParse, __ccgo_ts+23699, libc.VaList(bp+2456, bp+2432))
break
}
}
@@ -162694,7 +164546,7 @@ func _sqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) (r int32) {
if (*TParse)(unsafe.Pointer(pParse)).FzErrMsg == uintptr(0) {
(*TParse)(unsafe.Pointer(pParse)).FzErrMsg = _sqlite3MPrintf(tls, db, __ccgo_ts+3795, libc.VaList(bp+2456, _sqlite3ErrStr(tls, (*TParse)(unsafe.Pointer(pParse)).Frc)))
}
- Xsqlite3_log(tls, (*TParse)(unsafe.Pointer(pParse)).Frc, __ccgo_ts+23690, libc.VaList(bp+2456, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg, (*TParse)(unsafe.Pointer(pParse)).FzTail))
+ Xsqlite3_log(tls, (*TParse)(unsafe.Pointer(pParse)).Frc, __ccgo_ts+23724, libc.VaList(bp+2456, (*TParse)(unsafe.Pointer(pParse)).FzErrMsg, (*TParse)(unsafe.Pointer(pParse)).FzTail))
nErr++
}
(*TParse)(unsafe.Pointer(pParse)).FzTail = zSql
@@ -162810,7 +164662,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
state = uint8(0) /* Value of the next token */
for *(*uint8)(unsafe.Pointer(zSql)) != 0 {
switch int32(*(*uint8)(unsafe.Pointer(zSql))) {
- case int32(';'):
+ case int32(';'): /* A semicolon */
token = uint8(tkSEMI)
case int32(' '):
fallthrough
@@ -162820,9 +164672,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
fallthrough
case int32('\n'):
fallthrough
- case int32('\f'):
+ case int32('\f'): /* White space is ignored */
token = uint8(tkWS)
- case int32('/'):
+ case int32('/'): /* C-style comments */
if int32(*(*uint8)(unsafe.Pointer(zSql + 1))) != int32('*') {
token = uint8(tkOTHER)
break
@@ -162836,7 +164688,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
}
zSql++
token = uint8(tkWS)
- case int32('-'):
+ case int32('-'): /* SQL-style comments from "--" to end of line */
if int32(*(*uint8)(unsafe.Pointer(zSql + 1))) != int32('-') {
token = uint8(tkOTHER)
break
@@ -162848,7 +164700,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
return libc.BoolInt32(int32(state) == int32(1))
}
token = uint8(tkWS)
- case int32('['):
+ case int32('['): /* Microsoft-style identifiers in [...] */
zSql++
for *(*uint8)(unsafe.Pointer(zSql)) != 0 && int32(*(*uint8)(unsafe.Pointer(zSql))) != int32(']') {
zSql++
@@ -162857,9 +164709,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
return 0
}
token = uint8(tkOTHER)
- case int32('`'):
+ case int32('`'): /* Grave-accent quoted symbols used by MySQL */
fallthrough
- case int32('"'):
+ case int32('"'): /* single- and double-quoted strings */
fallthrough
case int32('\''):
c = int32(*(*uint8)(unsafe.Pointer(zSql)))
@@ -162880,13 +164732,14 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) (r int32) {
}
goto _1
_1:
+ ;
nId++
}
switch int32(*(*uint8)(unsafe.Pointer(zSql))) {
case int32('c'):
fallthrough
case int32('C'):
- if nId == int32(6) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23701, int32(6)) == 0 {
+ if nId == int32(6) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23735, int32(6)) == 0 {
token = uint8(tkCREATE)
} else {
token = uint8(tkOTHER)
@@ -162894,13 +164747,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+20345, int32(7)) == 0 {
+ if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+20379, int32(7)) == 0 {
token = uint8(tkTRIGGER)
} else {
- if nId == int32(4) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23708, int32(4)) == 0 {
+ if nId == int32(4) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23742, int32(4)) == 0 {
token = uint8(tkTEMP)
} else {
- if nId == int32(9) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23713, int32(9)) == 0 {
+ if nId == int32(9) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23747, int32(9)) == 0 {
token = uint8(tkTEMP)
} else {
token = uint8(tkOTHER)
@@ -162910,10 +164763,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+23723, int32(3)) == 0 {
+ if nId == int32(3) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23757, int32(3)) == 0 {
token = uint8(tkEND)
} else {
- if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23727, int32(7)) == 0 {
+ if nId == int32(7) && Xsqlite3_strnicmp(tls, zSql, __ccgo_ts+23761, int32(7)) == 0 {
token = uint8(tkEXPLAIN)
} else {
token = uint8(tkOTHER)
@@ -163173,6 +165026,8 @@ func _hasHighPrecisionDouble(tls *libc.TLS, rc int32) (r int32) {
// ** without blocking.
// */
func Xsqlite3_initialize(tls *libc.TLS) (r int32) {
+ ng := runtime.GOMAXPROCS(1)
+ defer func() { runtime.GOMAXPROCS(ng) }()
var pMainMtx uintptr
var rc int32
_, _ = pMainMtx, rc /* Result code */
@@ -163355,7 +165210,7 @@ func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) (r int32) {
*/
if _sqlite3Config.FisInit != 0 {
if op < 0 || op > int32(63) || libc.Uint64FromInt32(1)<<op&_mAnytimeConfigOption == uint64(0) {
- return _sqlite3MisuseError(tls, int32(178569))
+ return _sqlite3MisuseError(tls, int32(178680))
}
}
ap = va
@@ -163613,6 +165468,7 @@ func _setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int3
p = p + uintptr(sz)
goto _2
_2:
+ ;
i++
}
(*Tsqlite3)(unsafe.Pointer(db)).Flookaside.FpSmallInit = uintptr(0)
@@ -163628,6 +165484,7 @@ func _setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int3
p = p + 128
goto _3
_3:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -163689,6 +165546,7 @@ func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
_sqlite3BtreeLeaveAll(tls, db)
@@ -163726,6 +165584,7 @@ func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
_sqlite3BtreeLeaveAll(tls, db)
@@ -163792,6 +165651,7 @@ func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) (r int3
}
goto _1
_1:
+ ;
i++
}
break
@@ -164080,11 +165940,13 @@ func _disconnectAllVtab(tls *libc.TLS, db uintptr) {
}
goto _2
_2:
+ ;
p = (*THashElem)(unsafe.Pointer(p)).Fnext
}
}
goto _1
_1:
+ ;
i++
}
p = (*THash)(unsafe.Pointer(db + 576)).Ffirst
@@ -164098,6 +165960,7 @@ func _disconnectAllVtab(tls *libc.TLS, db uintptr) {
}
goto _3
_3:
+ ;
p = (*THashElem)(unsafe.Pointer(p)).Fnext
}
_sqlite3VtabUnlockList(tls, db)
@@ -164129,6 +165992,7 @@ func _connectionIsBusy(tls *libc.TLS, db uintptr) (r int32) {
}
goto _1
_1:
+ ;
j++
}
return 0
@@ -164148,7 +166012,7 @@ func _sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) (r int32) {
return SQLITE_OK
}
if !(_sqlite3SafetyCheckSickOrOk(tls, db) != 0) {
- return _sqlite3MisuseError(tls, int32(179357))
+ return _sqlite3MisuseError(tls, int32(179468))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if int32((*Tsqlite3)(unsafe.Pointer(db)).FmTrace)&int32(SQLITE_TRACE_CLOSE) != 0 {
@@ -164168,7 +166032,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+23735, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+23769, 0)
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
return int32(SQLITE_BUSY)
}
@@ -164227,6 +166091,7 @@ func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) (r int32) {
}
goto _2
_2:
+ ;
iDb++
}
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -164302,6 +166167,7 @@ func _sqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) {
}
goto _1
_1:
+ ;
j++
}
/* Clear the TEMP schema separately and last */
@@ -164331,6 +166197,7 @@ func _sqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) {
}
goto _2
_2:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
_sqlite3HashClear(tls, db+624)
@@ -164351,11 +166218,13 @@ func _sqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) {
}
goto _4
_4:
+ ;
j++
}
_sqlite3DbFree(tls, db, pColl)
goto _3
_3:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
_sqlite3HashClear(tls, db+648)
@@ -164369,6 +166238,7 @@ func _sqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) {
_sqlite3VtabModuleUnref(tls, db, pMod)
goto _5
_5:
+ ;
i = (*THashElem)(unsafe.Pointer(i)).Fnext
}
_sqlite3HashClear(tls, db+576)
@@ -164434,6 +166304,7 @@ func _sqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) {
}
goto _1
_1:
+ ;
i++
}
_sqlite3VtabRollback(tls, db)
@@ -164467,14 +166338,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 + 24278
+ zErr = __ccgo_ts + 24312
switch rc {
case libc.Int32FromInt32(SQLITE_ABORT) | libc.Int32FromInt32(2)<<libc.Int32FromInt32(8):
- zErr = __ccgo_ts + 24292
+ zErr = __ccgo_ts + 24326
case int32(SQLITE_ROW):
- zErr = __ccgo_ts + 24314
+ zErr = __ccgo_ts + 24348
case int32(SQLITE_DONE):
- zErr = __ccgo_ts + 24336
+ zErr = __ccgo_ts + 24370
default:
rc &= int32(0xff)
if rc >= 0 && rc < int32(libc.Uint64FromInt64(232)/libc.Uint64FromInt64(8)) && _aMsg[rc] != uintptr(0) {
@@ -164486,31 +166357,31 @@ func _sqlite3ErrStr(tls *libc.TLS, rc int32) (r uintptr) {
}
var _aMsg = [29]uintptr{
- 0: __ccgo_ts + 23803,
- 1: __ccgo_ts + 23816,
- 3: __ccgo_ts + 23832,
- 4: __ccgo_ts + 23857,
- 5: __ccgo_ts + 23871,
- 6: __ccgo_ts + 23890,
+ 0: __ccgo_ts + 23837,
+ 1: __ccgo_ts + 23850,
+ 3: __ccgo_ts + 23866,
+ 4: __ccgo_ts + 23891,
+ 5: __ccgo_ts + 23905,
+ 6: __ccgo_ts + 23924,
7: __ccgo_ts + 1618,
- 8: __ccgo_ts + 23915,
- 9: __ccgo_ts + 23952,
- 10: __ccgo_ts + 23964,
- 11: __ccgo_ts + 23979,
- 12: __ccgo_ts + 24012,
- 13: __ccgo_ts + 24030,
- 14: __ccgo_ts + 24055,
- 15: __ccgo_ts + 24084,
- 17: __ccgo_ts + 5996,
- 18: __ccgo_ts + 5398,
- 19: __ccgo_ts + 24101,
- 20: __ccgo_ts + 24119,
- 21: __ccgo_ts + 24137,
- 23: __ccgo_ts + 24171,
- 25: __ccgo_ts + 24192,
- 26: __ccgo_ts + 24218,
- 27: __ccgo_ts + 24241,
- 28: __ccgo_ts + 24262,
+ 8: __ccgo_ts + 23949,
+ 9: __ccgo_ts + 23986,
+ 10: __ccgo_ts + 23998,
+ 11: __ccgo_ts + 24013,
+ 12: __ccgo_ts + 24046,
+ 13: __ccgo_ts + 24064,
+ 14: __ccgo_ts + 24089,
+ 15: __ccgo_ts + 24118,
+ 17: __ccgo_ts + 6021,
+ 18: __ccgo_ts + 5423,
+ 19: __ccgo_ts + 24135,
+ 20: __ccgo_ts + 24153,
+ 21: __ccgo_ts + 24171,
+ 23: __ccgo_ts + 24205,
+ 25: __ccgo_ts + 24226,
+ 26: __ccgo_ts + 24252,
+ 27: __ccgo_ts + 24275,
+ 28: __ccgo_ts + 24296,
}
// C documentation
@@ -164692,7 +166563,7 @@ func _sqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
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(180012))
+ return _sqlite3MisuseError(tls, int32(180123))
}
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -164738,7 +166609,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+24359, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+24393, 0)
_ = libc.Int32FromInt32(0)
return int32(SQLITE_BUSY)
} else {
@@ -164812,6 +166683,7 @@ func _createFunctionApi(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, en
Xsqlite3_free(tls, pArg)
}
out:
+ ;
rc = _sqlite3ApiExit(tls, db, rc)
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
return rc
@@ -164866,7 +166738,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+24422, libc.VaList(bp+8, zName))
+ zErr = Xsqlite3_mprintf(tls, __ccgo_ts+24456, libc.VaList(bp+8, zName))
Xsqlite3_result_error(tls, context, zErr, -int32(1))
Xsqlite3_free(tls, zErr)
}
@@ -165145,7 +167017,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(180627))
+ return _sqlite3MisuseError(tls, int32(180738))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if zDb != 0 && *(*uint8)(unsafe.Pointer(zDb)) != 0 {
@@ -165155,7 +167027,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+24473, libc.VaList(bp+8, zDb))
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_ERROR), __ccgo_ts+24507, libc.VaList(bp+8, zDb))
} else {
(*Tsqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0
rc = _sqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt)
@@ -165231,6 +167103,7 @@ func _sqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog
}
goto _1
_1:
+ ;
i++
}
if rc == SQLITE_OK && bBusy != 0 {
@@ -165279,7 +167152,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(180763)))
+ return _sqlite3ErrStr(tls, _sqlite3MisuseError(tls, int32(180874)))
}
Xsqlite3_mutex_enter(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
@@ -165412,7 +167285,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(180842))
+ return _sqlite3MisuseError(tls, int32(180953))
}
if !(db != 0) || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return int32(SQLITE_NOMEM)
@@ -165422,7 +167295,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(180851))
+ return _sqlite3MisuseError(tls, int32(180962))
}
if !(db != 0) || (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
return int32(SQLITE_NOMEM)
@@ -165472,7 +167345,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(180899))
+ return _sqlite3MisuseError(tls, int32(181010))
}
/* Check if this call is removing or replacing an existing collation
** sequence. If so, and there are active VMs, return busy. If there
@@ -165481,7 +167354,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+24494, 0)
+ _sqlite3ErrorWithMsg(tls, db, int32(SQLITE_BUSY), __ccgo_ts+24528, 0)
return int32(SQLITE_BUSY)
}
_sqlite3ExpirePreparedStatements(tls, db, 0)
@@ -165507,6 +167380,7 @@ func _createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc Tu8, pCtx ui
}
goto _1
_1:
+ ;
j++
}
}
@@ -165641,7 +167515,7 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
zVfs = zDefaultVfs
nUri = _sqlite3Strlen30(tls, zUri)
_ = libc.Int32FromInt32(0)
- 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+24562, 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+24596, 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
@@ -165655,6 +167529,7 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
nByte += libc.BoolUint64(int32(*(*uint8)(unsafe.Pointer(zUri + uintptr(iIn)))) == libc.Int32FromUint8('&'))
goto _1
_1:
+ ;
iIn++
}
zFile = Xsqlite3_malloc64(tls, nByte)
@@ -165670,8 +167545,8 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
for *(*uint8)(unsafe.Pointer(zUri + uintptr(iIn))) != 0 && int32(*(*uint8)(unsafe.Pointer(zUri + uintptr(iIn)))) != int32('/') {
iIn++
}
- if iIn != int32(7) && (iIn != int32(16) || libc.Xmemcmp(tls, __ccgo_ts+24568, zUri+7, uint64(9)) != 0) {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+24578, libc.VaList(bp+8, iIn-int32(7), zUri+7))
+ if iIn != int32(7) && (iIn != int32(16) || libc.Xmemcmp(tls, __ccgo_ts+24602, zUri+7, uint64(9)) != 0) {
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+24612, libc.VaList(bp+8, iIn-int32(7), zUri+7))
rc = int32(SQLITE_ERROR)
goto parse_uri_out
}
@@ -165761,20 +167636,20 @@ 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+24606, zOpt, uint64(3)) == 0 {
+ if nOpt == int32(3) && libc.Xmemcmp(tls, __ccgo_ts+24640, 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+24610, zOpt, uint64(5)) == 0 {
+ if nOpt == int32(5) && libc.Xmemcmp(tls, __ccgo_ts+24644, 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 + 24610
+ zModeType = __ccgo_ts + 24644
}
- if nOpt == int32(4) && libc.Xmemcmp(tls, __ccgo_ts+24631, zOpt, uint64(4)) == 0 {
+ if nOpt == int32(4) && libc.Xmemcmp(tls, __ccgo_ts+24665, 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)
@@ -165803,15 +167678,16 @@ func _sqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u
}
goto _9
_9:
+ ;
i++
}
if mode == 0 {
- *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+24646, libc.VaList(bp+8, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+24680, 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+24666, libc.VaList(bp+8, zModeType, zVal))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+24700, libc.VaList(bp+8, zModeType, zVal))
rc = int32(SQLITE_PERM)
goto parse_uri_out
}
@@ -165835,10 +167711,11 @@ 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+24690, libc.VaList(bp+8, zVfs))
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+24724, libc.VaList(bp+8, zVfs))
rc = int32(SQLITE_ERROR)
}
parse_uri_out:
+ ;
if rc != SQLITE_OK {
Xsqlite3_free_filename(tls, zFile)
zFile = uintptr(0)
@@ -165853,11 +167730,11 @@ var _aCacheMode = [3]struct {
Fmode int32
}{
0: {
- Fz: __ccgo_ts + 24616,
+ Fz: __ccgo_ts + 24650,
Fmode: int32(SQLITE_OPEN_SHAREDCACHE),
},
1: {
- Fz: __ccgo_ts + 24623,
+ Fz: __ccgo_ts + 24657,
Fmode: int32(SQLITE_OPEN_PRIVATECACHE),
},
2: {},
@@ -165868,19 +167745,19 @@ var _aOpenMode = [5]struct {
Fmode int32
}{
0: {
- Fz: __ccgo_ts + 24636,
+ Fz: __ccgo_ts + 24670,
Fmode: int32(SQLITE_OPEN_READONLY),
},
1: {
- Fz: __ccgo_ts + 24639,
+ Fz: __ccgo_ts + 24673,
Fmode: int32(SQLITE_OPEN_READWRITE),
},
2: {
- Fz: __ccgo_ts + 24642,
+ Fz: __ccgo_ts + 24676,
Fmode: libc.Int32FromInt32(SQLITE_OPEN_READWRITE) | libc.Int32FromInt32(SQLITE_OPEN_CREATE),
},
3: {
- Fz: __ccgo_ts + 17730,
+ Fz: __ccgo_ts + 17764,
Fmode: int32(SQLITE_OPEN_MEMORY),
},
4: {},
@@ -166009,8 +167886,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+22317, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_nocaseCollatingFunc), uintptr(0))
- _createCollation(tls, db, __ccgo_ts+24706, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_rtrimCollFunc), uintptr(0))
+ _createCollation(tls, db, __ccgo_ts+22351, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_nocaseCollatingFunc), uintptr(0))
+ _createCollation(tls, db, __ccgo_ts+24740, uint8(SQLITE_UTF8), uintptr(0), __ccgo_fp(_rtrimCollFunc), uintptr(0))
if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
goto opendb_out
}
@@ -166034,7 +167911,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(181571)) /* IMP: R-18321-05872 */
+ rc = _sqlite3MisuseError(tls, int32(181682)) /* IMP: R-18321-05872 */
} else {
rc = _sqlite3ParseUri(tls, zVfs, zFilename, bp, db, bp+8, bp+16)
}
@@ -166071,9 +167948,9 @@ func _openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, _flags uint32
/* The default safety_level for the main database is FULL; for the temp
** database it is OFF. This matches the pager layer defaults.
*/
- (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FzDbSName = __ccgo_ts + 6560
+ (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb))).FzDbSName = __ccgo_ts + 6585
(*(*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 + 23708
+ (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + 1*32))).FzDbSName = __ccgo_ts + 23742
(*(*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 {
@@ -166095,6 +167972,7 @@ func _openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, _flags uint32
rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{_sqlite3BuiltinExtensions[i]})))(tls, db)
goto _3
_3:
+ ;
i++
}
/* Load automatic extensions - extensions that have been registered
@@ -166118,6 +167996,7 @@ func _openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, _flags uint32
_setupLookaside(tls, db, uintptr(0), _sqlite3Config.FszLookaside, _sqlite3Config.FnLookaside)
Xsqlite3_wal_autocheckpoint(tls, db, int32(SQLITE_DEFAULT_WAL_AUTOCHECKPOINT))
opendb_out:
+ ;
if db != 0 {
_ = libc.Int32FromInt32(0)
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -166166,7 +168045,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) (r int32) {
return rc
}
if zFilename == uintptr(0) {
- zFilename = __ccgo_ts + 24712
+ zFilename = __ccgo_ts + 24746
}
pVal = _sqlite3ValueNew(tls, uintptr(0))
_sqlite3ValueSetStr(tls, pVal, -int32(1), zFilename, uint8(SQLITE_UTF16LE), libc.UintptrFromInt32(0))
@@ -166284,6 +168163,7 @@ func Xsqlite3_get_clientdata(tls *libc.TLS, db uintptr, zName uintptr) (r uintpt
}
goto _1
_1:
+ ;
p = (*TDbClientData)(unsafe.Pointer(p)).FpNext
}
Xsqlite3_mutex_leave(tls, (*Tsqlite3)(unsafe.Pointer(db)).Fmutex)
@@ -166309,6 +168189,7 @@ func Xsqlite3_set_clientdata(tls *libc.TLS, db uintptr, zName uintptr, pData uin
pp = p
goto _1
_1:
+ ;
p = (*TDbClientData)(unsafe.Pointer(p)).FpNext
}
if p != 0 {
@@ -166385,20 +168266,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+24715, libc.VaList(bp+8, zType, lineno, uintptr(20)+Xsqlite3_sourceid(tls)))
+ Xsqlite3_log(tls, iErr, __ccgo_ts+24749, 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+24740)
+ return _sqlite3ReportError(tls, int32(SQLITE_CORRUPT), lineno, __ccgo_ts+24774)
}
func _sqlite3MisuseError(tls *libc.TLS, lineno int32) (r int32) {
- return _sqlite3ReportError(tls, int32(SQLITE_MISUSE), lineno, __ccgo_ts+24760)
+ return _sqlite3ReportError(tls, int32(SQLITE_MISUSE), lineno, __ccgo_ts+24794)
}
func _sqlite3CantopenError(tls *libc.TLS, lineno int32) (r int32) {
- return _sqlite3ReportError(tls, int32(SQLITE_CANTOPEN), lineno, __ccgo_ts+24767)
+ return _sqlite3ReportError(tls, int32(SQLITE_CANTOPEN), lineno, __ccgo_ts+24801)
}
// C documentation
@@ -166463,6 +168344,7 @@ func Xsqlite3_table_column_metadata(tls *libc.TLS, db uintptr, zDbName uintptr,
}
goto _1
_1:
+ ;
iCol++
}
if iCol == int32((*TTable)(unsafe.Pointer(pTab)).FnCol) {
@@ -166504,6 +168386,7 @@ func Xsqlite3_table_column_metadata(tls *libc.TLS, db uintptr, zDbName uintptr,
zCollSeq = uintptr(unsafe.Pointer(&_sqlite3StrBINARY))
}
error_out:
+ ;
_sqlite3BtreeLeaveAll(tls, db)
/* Whether the function call succeeded or failed, set the output parameters
** to whatever their local counterparts contain. If an error did occur,
@@ -166526,7 +168409,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+24784, libc.VaList(bp+16, zTableName, zColumnName))
+ *(*uintptr)(unsafe.Pointer(bp)) = _sqlite3MPrintf(tls, db, __ccgo_ts+24818, libc.VaList(bp+16, zTableName, zColumnName))
rc = int32(SQLITE_ERROR)
}
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
@@ -167172,6 +169055,7 @@ func Xsqlite3_create_filename(tls *libc.TLS, zDatabase uintptr, zJournal uintptr
nByte = Tsqlite3_int64(uint64(nByte) + (libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(azParam + uintptr(i)*8))) + libc.Uint64FromInt32(1)))
goto _1
_1:
+ ;
i++
}
v2 = Xsqlite3_malloc64(tls, uint64(nByte))
@@ -167191,6 +169075,7 @@ func Xsqlite3_create_filename(tls *libc.TLS, zDatabase uintptr, zJournal uintptr
p = _appendText(tls, p, *(*uintptr)(unsafe.Pointer(azParam + uintptr(i)*8)))
goto _3
_3:
+ ;
i++
}
v4 = p
@@ -167557,7 +169442,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+24812, int32(7)) == 0 {
+ if Xsqlite3_strnicmp(tls, zOptName, __ccgo_ts+24846, int32(7)) == 0 {
zOptName += uintptr(7)
}
n = _sqlite3Strlen30(tls, zOptName)
@@ -167573,6 +169458,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -167659,6 +169545,7 @@ func _removeFromBlockedList(tls *libc.TLS, db uintptr) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 848
}
}
@@ -167680,6 +169567,7 @@ func _addToBlockedList(tls *libc.TLS, db uintptr) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 848
}
(*Tsqlite3)(unsafe.Pointer(db)).FpNextBlocked = *(*uintptr)(unsafe.Pointer(pp))
@@ -167759,6 +169647,7 @@ func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, _pArg ui
}
goto _1
_1:
+ ;
p = (*Tsqlite3)(unsafe.Pointer(p)).FpUnlockConnection
}
if p != 0 {
@@ -167775,7 +169664,7 @@ func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, _pArg ui
_leaveMutex(tls)
_ = libc.Int32FromInt32(0)
if rc != 0 {
- v2 = __ccgo_ts + 24820
+ v2 = __ccgo_ts + 24854
} else {
v2 = uintptr(0)
}
@@ -168659,18 +170548,18 @@ func _sqlite3ConnectionClosed(tls *libc.TLS, db uintptr) {
// */
var _jsonbType = [17]uintptr{
0: __ccgo_ts + 1634,
- 1: __ccgo_ts + 7861,
- 2: __ccgo_ts + 7866,
- 3: __ccgo_ts + 6281,
- 4: __ccgo_ts + 6281,
- 5: __ccgo_ts + 6276,
- 6: __ccgo_ts + 6276,
- 7: __ccgo_ts + 8172,
- 8: __ccgo_ts + 8172,
- 9: __ccgo_ts + 8172,
- 10: __ccgo_ts + 8172,
- 11: __ccgo_ts + 24843,
- 12: __ccgo_ts + 24849,
+ 1: __ccgo_ts + 7886,
+ 2: __ccgo_ts + 7891,
+ 3: __ccgo_ts + 6306,
+ 4: __ccgo_ts + 6306,
+ 5: __ccgo_ts + 6301,
+ 6: __ccgo_ts + 6301,
+ 7: __ccgo_ts + 8197,
+ 8: __ccgo_ts + 8197,
+ 9: __ccgo_ts + 8197,
+ 10: __ccgo_ts + 8197,
+ 11: __ccgo_ts + 24877,
+ 12: __ccgo_ts + 24883,
13: __ccgo_ts + 1648,
14: __ccgo_ts + 1648,
15: __ccgo_ts + 1648,
@@ -169098,6 +170987,7 @@ func _jsonCacheDelete(tls *libc.TLS, p uintptr) {
_jsonParseFree(tls, *(*uintptr)(unsafe.Pointer(p + 16 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
_sqlite3DbFree(tls, (*TJsonCache)(unsafe.Pointer(p)).Fdb, p)
@@ -169189,6 +171079,7 @@ func _jsonCacheSearch(tls *libc.TLS, ctx uintptr, pArg uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
i++
}
if i >= (*TJsonCache)(unsafe.Pointer(p)).FnUsed {
@@ -169205,6 +171096,7 @@ func _jsonCacheSearch(tls *libc.TLS, ctx uintptr, pArg uintptr) (r uintptr) {
}
goto _2
_2:
+ ;
i++
}
}
@@ -169518,6 +171410,7 @@ func _jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N Tu32) {
goto _3
}
json_simple_escape:
+ ;
if (*TJsonString)(unsafe.Pointer(p)).FnUsed+uint64(N)+uint64(3) > (*TJsonString)(unsafe.Pointer(p)).FnAlloc && _jsonStringGrow(tls, p, N+uint32(3)) != 0 {
return
}
@@ -169531,6 +171424,7 @@ func _jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N Tu32) {
*(*uint8)(unsafe.Pointer((*TJsonString)(unsafe.Pointer(p)).FzBuf + uintptr(v7))) = c
goto _4
_3:
+ ;
if int32(c) == int32('\'') {
v10 = p + 24
v9 = *(*Tu64)(unsafe.Pointer(v10))
@@ -169570,13 +171464,14 @@ func _jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N Tu32) {
v20 = p + 24
v19 = *(*Tu64)(unsafe.Pointer(v20))
*(*Tu64)(unsafe.Pointer(v20))++
- *(*uint8)(unsafe.Pointer((*TJsonString)(unsafe.Pointer(p)).FzBuf + uintptr(v19))) = *(*uint8)(unsafe.Pointer(__ccgo_ts + 24856 + uintptr(int32(c)>>int32(4))))
+ *(*uint8)(unsafe.Pointer((*TJsonString)(unsafe.Pointer(p)).FzBuf + uintptr(v19))) = *(*uint8)(unsafe.Pointer(__ccgo_ts + 24890 + uintptr(int32(c)>>int32(4))))
v22 = p + 24
v21 = *(*Tu64)(unsafe.Pointer(v22))
*(*Tu64)(unsafe.Pointer(v22))++
- *(*uint8)(unsafe.Pointer((*TJsonString)(unsafe.Pointer(p)).FzBuf + uintptr(v21))) = *(*uint8)(unsafe.Pointer(__ccgo_ts + 24856 + uintptr(int32(c)&int32(0xf))))
+ *(*uint8)(unsafe.Pointer((*TJsonString)(unsafe.Pointer(p)).FzBuf + uintptr(v21))) = *(*uint8)(unsafe.Pointer(__ccgo_ts + 24890 + uintptr(int32(c)&int32(0xf))))
}
_4:
+ ;
z++
N--
}
@@ -169612,7 +171507,7 @@ func _jsonAppendSqlValue(tls *libc.TLS, p uintptr, pValue uintptr) {
case int32(SQLITE_NULL):
_jsonAppendRawNZ(tls, p, __ccgo_ts+1634, uint32(4))
case int32(SQLITE_FLOAT):
- _jsonPrintf(tls, int32(100), p, __ccgo_ts+24873, libc.VaList(bp+80, Xsqlite3_value_double(tls, pValue)))
+ _jsonPrintf(tls, int32(100), p, __ccgo_ts+15323, 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))
@@ -169633,7 +171528,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+24881, -int32(1))
+ Xsqlite3_result_error(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx, __ccgo_ts+24907, -int32(1))
(*TJsonString)(unsafe.Pointer(p)).FeErr = uint8(JSTRING_ERR)
_jsonStringReset(tls, p)
}
@@ -169689,7 +171584,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, (*TJsonString)(unsafe.Pointer(p)).FpCtx, __ccgo_ts+24936, -int32(1))
}
}
}
@@ -169858,6 +171753,7 @@ func _json5Whitespace(tls *libc.TLS, zIn uintptr) (r int32) {
}
goto _1
_1:
+ ;
j++
}
n = j + int32(1)
@@ -169880,6 +171776,7 @@ func _json5Whitespace(tls *libc.TLS, zIn uintptr) (r int32) {
}
goto _2
_2:
+ ;
j1++
}
n = j1
@@ -169936,6 +171833,7 @@ func _json5Whitespace(tls *libc.TLS, zIn uintptr) (r int32) {
}
}
whitespace_done:
+ ;
return n
return r
}
@@ -169969,8 +171867,8 @@ var _aNanInfName = [5]TNanInfName{
Fn: uint8(3),
FeType: uint8(JSONB_FLOAT),
FnRepl: uint8(7),
- FzMatch: __ccgo_ts + 24925,
- FzRepl: __ccgo_ts + 24929,
+ FzMatch: __ccgo_ts + 24951,
+ FzRepl: __ccgo_ts + 24955,
},
1: {
Fc1: uint8('i'),
@@ -169978,8 +171876,8 @@ var _aNanInfName = [5]TNanInfName{
Fn: uint8(8),
FeType: uint8(JSONB_FLOAT),
FnRepl: uint8(7),
- FzMatch: __ccgo_ts + 24937,
- FzRepl: __ccgo_ts + 24929,
+ FzMatch: __ccgo_ts + 24963,
+ FzRepl: __ccgo_ts + 24955,
},
2: {
Fc1: uint8('n'),
@@ -169994,7 +171892,7 @@ var _aNanInfName = [5]TNanInfName{
Fc2: uint8('Q'),
Fn: uint8(4),
FnRepl: uint8(4),
- FzMatch: __ccgo_ts + 24946,
+ FzMatch: __ccgo_ts + 24972,
FzRepl: __ccgo_ts + 1634,
},
4: {
@@ -170002,7 +171900,7 @@ var _aNanInfName = [5]TNanInfName{
Fc2: uint8('S'),
Fn: uint8(4),
FnRepl: uint8(4),
- FzMatch: __ccgo_ts + 24951,
+ FzMatch: __ccgo_ts + 24977,
FzRepl: __ccgo_ts + 1634,
},
}
@@ -170018,7 +171916,7 @@ func _jsonWrongNumArgs(tls *libc.TLS, pCtx uintptr, zFuncName uintptr) {
defer tls.Free(16)
var zMsg uintptr
_ = zMsg
- zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+24956, libc.VaList(bp+8, zFuncName))
+ zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+24982, libc.VaList(bp+8, zFuncName))
Xsqlite3_result_error(tls, pCtx, zMsg, -int32(1))
Xsqlite3_free(tls, zMsg)
}
@@ -170443,6 +172341,7 @@ func _jsonbValidityCheck(tls *libc.TLS, pParse uintptr, i Tu32, iEnd Tu32, iDept
return j + uint32(1)
goto _2
_2:
+ ;
j++
}
if int32(seen) == 0 {
@@ -170474,7 +172373,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+24999, int32(*(*Tu8)(unsafe.Pointer(z + uintptr(j+uint32(1)))))) != uintptr(0) {
+ if libc.Xstrchr(tls, __ccgo_ts+25025, 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') {
@@ -170593,6 +172492,7 @@ func _jsonTranslateTextToBlob(tls *libc.TLS, pParse uintptr, i Tu32) (r int32) {
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, cDelim, iBlob, iStart, iThis, j, k, k1, nn, opcode, seenE, t, x, z, v40, v41, v43, v44, v46, v48
z = (*TJsonParse)(unsafe.Pointer(pParse)).FzJson
json_parse_restart:
+ ;
switch int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) {
case int32('{'):
goto _1
@@ -170673,6 +172573,7 @@ json_parse_restart:
}
goto _39
_1:
+ ;
/* Parse object */
iThis = (*TJsonParse)(unsafe.Pointer(pParse)).FnBlob
_jsonBlobAppendNode(tls, pParse, uint8(JSONB_OBJECT), uint32((*TJsonParse)(unsafe.Pointer(pParse)).FnJson)-i, uintptr(0))
@@ -170746,6 +172647,7 @@ _1:
j = (*TJsonParse)(unsafe.Pointer(pParse)).FiErr + uint32(1)
}
parse_object_value:
+ ;
x = _jsonTranslateTextToBlob(tls, pParse, j)
if x <= 0 {
if x != -int32(1) {
@@ -170785,14 +172687,17 @@ _1:
return -int32(1)
goto _42
_42:
+ ;
j++
}
_jsonBlobChangePayloadSize(tls, pParse, iThis, (*TJsonParse)(unsafe.Pointer(pParse)).FnBlob-iStart)
(*TJsonParse)(unsafe.Pointer(pParse)).FiDepth--
return int32(j + uint32(1))
_2:
+ ;
/* Parse array */
iThis = (*TJsonParse)(unsafe.Pointer(pParse)).FnBlob
+ _ = libc.Int32FromInt32(0)
_jsonBlobAppendNode(tls, pParse, uint8(JSONB_ARRAY), uint32((*TJsonParse)(unsafe.Pointer(pParse)).FnJson)-i, uintptr(0))
iStart = (*TJsonParse)(unsafe.Pointer(pParse)).FnBlob
if (*TJsonParse)(unsafe.Pointer(pParse)).Foom != 0 {
@@ -170853,19 +172758,23 @@ _2:
return -int32(1)
goto _45
_45:
+ ;
j++
}
_jsonBlobChangePayloadSize(tls, pParse, iThis, (*TJsonParse)(unsafe.Pointer(pParse)).FnBlob-iStart)
(*TJsonParse)(unsafe.Pointer(pParse)).FiDepth--
return int32(j + uint32(1))
_4:
+ ;
(*TJsonParse)(unsafe.Pointer(pParse)).FhasNonstd = uint8(1)
opcode = uint8(JSONB_TEXT)
goto parse_string
_3:
+ ;
/* Parse string */
opcode = uint8(JSONB_TEXT)
parse_string:
+ ;
cDelim = *(*uint8)(unsafe.Pointer(z + uintptr(i)))
j = i + uint32(1)
for int32(1) != 0 {
@@ -170927,24 +172836,28 @@ parse_string:
_jsonBlobAppendNode(tls, pParse, opcode, j-uint32(1)-i, z+uintptr(i+uint32(1)))
return int32(j + uint32(1))
_5:
- if libc.Xstrncmp(tls, z+uintptr(i), __ccgo_ts+7861, uint64(4)) == 0 && !(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(4))))])&libc.Int32FromInt32(0x06) != 0) {
+ ;
+ if libc.Xstrncmp(tls, z+uintptr(i), __ccgo_ts+7886, uint64(4)) == 0 && !(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(4))))])&libc.Int32FromInt32(0x06) != 0) {
_jsonBlobAppendOneByte(tls, pParse, uint8(JSONB_TRUE))
return int32(i + uint32(4))
}
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(1)
_6:
- if libc.Xstrncmp(tls, z+uintptr(i), __ccgo_ts+7866, uint64(5)) == 0 && !(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(5))))])&libc.Int32FromInt32(0x06) != 0) {
+ ;
+ if libc.Xstrncmp(tls, z+uintptr(i), __ccgo_ts+7891, uint64(5)) == 0 && !(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(5))))])&libc.Int32FromInt32(0x06) != 0) {
_jsonBlobAppendOneByte(tls, pParse, uint8(JSONB_FALSE))
return int32(i + uint32(5))
}
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(1)
_19:
+ ;
(*TJsonParse)(unsafe.Pointer(pParse)).FhasNonstd = uint8(1)
t = uint8(0x00) /* Bit 0x01: JSON5. Bit 0x02: FLOAT */
goto parse_number
_7:
+ ;
if int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(1))))])&int32(0x04) != 0 {
(*TJsonParse)(unsafe.Pointer(pParse)).FhasNonstd = uint8(1)
t = uint8(0x03) /* Bit 0x01: JSON5. Bit 0x02: FLOAT */
@@ -170954,19 +172867,31 @@ _7:
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(1)
_18:
+ ;
_17:
+ ;
_16:
+ ;
_15:
+ ;
_14:
+ ;
_13:
+ ;
_12:
+ ;
_11:
+ ;
_10:
+ ;
_9:
+ ;
_8:
+ ;
/* Parse number */
t = uint8(0x00) /* Bit 0x01: JSON5. Bit 0x02: FLOAT */
parse_number:
+ ;
seenE = uint8(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -170985,6 +172910,7 @@ parse_number:
}
goto _47
_47:
+ ;
j++
}
goto parse_number_finish
@@ -170999,14 +172925,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(*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('I') || int32(*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('i')) && Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(1)), __ccgo_ts+24925, int32(3)) == 0 {
+ if (int32(*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('I') || int32(*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(1))))) == int32('i')) && Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(1)), __ccgo_ts+24951, int32(3)) == 0 {
(*TJsonParse)(unsafe.Pointer(pParse)).FhasNonstd = uint8(1)
if int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) == int32('-') {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+25008)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+25034)
} else {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+25015)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+25041)
}
- if Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(4)), __ccgo_ts+25021, int32(5)) == 0 {
+ if Xsqlite3_strnicmp(tls, z+uintptr(i+uint32(4)), __ccgo_ts+25047, int32(5)) == 0 {
v48 = int32(9)
} else {
v48 = int32(4)
@@ -171036,6 +172962,7 @@ parse_number:
}
goto _49
_49:
+ ;
j++
}
goto parse_number_finish
@@ -171045,6 +172972,7 @@ parse_number:
}
}
parse_number_2:
+ ;
j = i + uint32(1)
for {
c = *(*uint8)(unsafe.Pointer(z + uintptr(j)))
@@ -171089,6 +173017,7 @@ parse_number_2:
break
goto _50
_50:
+ ;
j++
}
if int32(*(*uint8)(unsafe.Pointer(z + uintptr(j-uint32(1))))) < int32('0') {
@@ -171101,6 +173030,7 @@ parse_number_2:
}
}
parse_number_finish:
+ ;
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
@@ -171110,33 +173040,50 @@ parse_number_finish:
_jsonBlobAppendNode(tls, pParse, uint8(int32(JSONB_INT)+int32(t)), j-i, z+uintptr(i))
return int32(j)
_20:
+ ;
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(2) /* End of {...} */
_21:
+ ;
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(3) /* End of [...] */
_22:
+ ;
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(4) /* List separator */
_23:
+ ;
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(5) /* Object label/value separator */
_24:
+ ;
return 0 /* End of file */
_28:
+ ;
_27:
+ ;
_26:
+ ;
_25:
+ ;
i += uint32(1) + uint32(libc.Xstrspn(tls, z+uintptr(i+uint32(1)), uintptr(unsafe.Pointer(&_jsonSpaces))))
goto json_parse_restart
_36:
+ ;
_35:
+ ;
_34:
+ ;
_33:
+ ;
_32:
+ ;
_31:
+ ;
_30:
+ ;
_29:
+ ;
j = uint32(_json5Whitespace(tls, z+uintptr(i)))
if j > uint32(0) {
i += j
@@ -171146,12 +173093,14 @@ _29:
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(1)
_37:
+ ;
if libc.Xstrncmp(tls, z+uintptr(i), __ccgo_ts+1634, uint64(4)) == 0 && !(int32(_sqlite3CtypeMap[*(*uint8)(unsafe.Pointer(z + uintptr(i+uint32(4))))])&libc.Int32FromInt32(0x06) != 0) {
_jsonBlobAppendOneByte(tls, pParse, uint8(JSONB_NULL))
return int32(i + uint32(4))
}
/* fall-through into the default case that checks for NaN */
_38:
+ ;
c = *(*uint8)(unsafe.Pointer(z + uintptr(i)))
k1 = uint32(0)
for {
@@ -171169,7 +173118,7 @@ _38:
goto _51
}
if int32(_aNanInfName[k1].FeType) == int32(JSONB_FLOAT) {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+25015)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+25041)
} else {
_jsonBlobAppendOneByte(tls, pParse, uint8(JSONB_NULL))
}
@@ -171177,11 +173126,13 @@ _38:
return int32(i + uint32(nn))
goto _51
_51:
+ ;
k1++
}
(*TJsonParse)(unsafe.Pointer(pParse)).FiErr = i
return -int32(1) /* Syntax error */
-_39: /* End switch(z[i]) */
+_39:
+ ; /* End switch(z[i]) */
return r
}
@@ -171212,7 +173163,7 @@ func _jsonConvertTextToBlob(tls *libc.TLS, pParse uintptr, pCtx uintptr) (r int3
i += _json5Whitespace(tls, zJson+uintptr(i))
if *(*uint8)(unsafe.Pointer(zJson + uintptr(i))) != 0 {
if pCtx != 0 {
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24910, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24936, -int32(1))
}
_jsonParseReset(tls, pParse)
return int32(1)
@@ -171225,7 +173176,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24936, -int32(1))
}
}
_jsonParseReset(tls, pParse)
@@ -171247,6 +173198,10 @@ func _jsonReturnStringAsBlob(tls *libc.TLS, pStr uintptr) {
var _ /* px at bp+0 */ TJsonParse
libc.Xmemset(tls, bp, 0, uint64(72))
_jsonStringTerminate(tls, pStr)
+ if (*TJsonString)(unsafe.Pointer(pStr)).FeErr != 0 {
+ Xsqlite3_result_error_nomem(tls, (*TJsonString)(unsafe.Pointer(pStr)).FpCtx)
+ return
+ }
(*(*TJsonParse)(unsafe.Pointer(bp))).FzJson = (*TJsonString)(unsafe.Pointer(pStr)).FzBuf
(*(*TJsonParse)(unsafe.Pointer(bp))).FnJson = int32((*TJsonString)(unsafe.Pointer(pStr)).FnUsed)
(*(*TJsonParse)(unsafe.Pointer(bp))).Fdb = Xsqlite3_context_db_handle(tls, (*TJsonString)(unsafe.Pointer(pStr)).FpCtx)
@@ -171385,22 +173340,28 @@ func _jsonTranslateBlobToText(tls *libc.TLS, pParse uintptr, i Tu32, pOut uintpt
}
goto _16
_2:
+ ;
_jsonAppendRawNZ(tls, pOut, __ccgo_ts+1634, uint32(4))
return i + uint32(1)
_3:
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+7861, uint32(4))
+ ;
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+7886, uint32(4))
return i + uint32(1)
_4:
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+7866, uint32(5))
+ ;
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+7891, uint32(5))
return i + uint32(1)
_6:
+ ;
_5:
+ ;
if *(*Tu32)(unsafe.Pointer(bp)) == uint32(0) {
goto malformed_jsonb
}
_jsonAppendRaw(tls, pOut, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob+uintptr(i+n), *(*Tu32)(unsafe.Pointer(bp)))
goto _16
-_7: /* Integer literal in hexadecimal notation */
+_7:
+ ; /* Integer literal in hexadecimal notation */
k = uint32(2)
u = uint64(0)
zIn = (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob + uintptr(i+n)
@@ -171433,16 +173394,18 @@ _7: /* Integer literal in hexadecimal notation */
}
goto _17
_17:
+ ;
k++
}
if bOverflow != 0 {
- v19 = __ccgo_ts + 24929
+ v19 = __ccgo_ts + 24955
} else {
- v19 = __ccgo_ts + 11728
+ v19 = __ccgo_ts + 11753
}
_jsonPrintf(tls, int32(100), pOut, v19, libc.VaList(bp+16, u))
goto _16
-_8: /* Float literal missing digits beside "." */
+_8:
+ ; /* Float literal missing digits beside "." */
k1 = uint32(0)
zIn1 = (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob + uintptr(i+n)
if *(*Tu32)(unsafe.Pointer(bp)) == uint32(0) {
@@ -171465,16 +173428,20 @@ _8: /* Float literal missing digits beside "." */
}
goto _20
_20:
+ ;
k1++
}
goto _16
_10:
+ ;
_9:
+ ;
_jsonAppendChar(tls, pOut, uint8('"'))
_jsonAppendRaw(tls, pOut, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob+uintptr(i+n), *(*Tu32)(unsafe.Pointer(bp)))
_jsonAppendChar(tls, pOut, uint8('"'))
goto _16
_11:
+ ;
sz2 = *(*Tu32)(unsafe.Pointer(bp))
zIn2 = (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob + uintptr(i+n)
_jsonAppendChar(tls, pOut, uint8('"'))
@@ -171486,6 +173453,7 @@ _11:
}
goto _21
_21:
+ ;
k2++
}
if k2 > uint32(0) {
@@ -171497,7 +173465,7 @@ _11:
sz2 -= k2
}
if int32(*(*uint8)(unsafe.Pointer(zIn2))) == int32('"') {
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25027, uint32(2))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25053, uint32(2))
zIn2++
sz2--
continue
@@ -171513,7 +173481,7 @@ _11:
case int32('\''):
_jsonAppendChar(tls, pOut, uint8('\''))
case int32('v'):
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25030, uint32(6))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25056, uint32(6))
case int32('x'):
if sz2 < uint32(4) {
p23 = pOut + 33
@@ -171521,12 +173489,12 @@ _11:
sz2 = uint32(2)
break
}
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25037, uint32(4))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25063, uint32(4))
_jsonAppendRawNZ(tls, pOut, zIn2+2, uint32(2))
zIn2 += uintptr(2)
sz2 -= uint32(2)
case int32('0'):
- _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25042, uint32(6))
+ _jsonAppendRawNZ(tls, pOut, __ccgo_ts+25068, uint32(6))
case int32('\r'):
if sz2 > uint32(2) && int32(*(*uint8)(unsafe.Pointer(zIn2 + 2))) == int32('\n') {
zIn2++
@@ -171556,9 +173524,11 @@ _11:
_jsonAppendChar(tls, pOut, uint8('"'))
goto _16
_12:
+ ;
_jsonAppendString(tls, pOut, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob+uintptr(i+n), *(*Tu32)(unsafe.Pointer(bp)))
goto _16
_13:
+ ;
_jsonAppendChar(tls, pOut, uint8('['))
j = i + n
iEnd = j + *(*Tu32)(unsafe.Pointer(bp))
@@ -171576,6 +173546,7 @@ _13:
_jsonAppendChar(tls, pOut, uint8(']'))
goto _16
_14:
+ ;
x = 0
_jsonAppendChar(tls, pOut, uint8('{'))
j = i + n
@@ -171601,11 +173572,14 @@ _14:
_jsonAppendChar(tls, pOut, uint8('}'))
goto _16
_15:
+ ;
malformed_jsonb:
+ ;
p29 = pOut + 33
*(*Tu8)(unsafe.Pointer(p29)) = Tu8(int32(*(*Tu8)(unsafe.Pointer(p29))) | libc.Int32FromInt32(JSTRING_MALFORMED))
goto _16
_16:
+ ;
return i + n + *(*Tu32)(unsafe.Pointer(bp))
}
@@ -171676,6 +173650,7 @@ func _jsonbArrayCount(tls *libc.TLS, pParse uintptr, iRoot Tu32) (r Tu32) {
n = _jsonbPayloadSize(tls, pParse, i, bp)
goto _1
_1:
+ ;
i += *(*Tu32)(unsafe.Pointer(bp)) + n
k++
}
@@ -172099,6 +174074,7 @@ func _jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot Tu32, zPath uintptr, i
}
goto _1
_1:
+ ;
i++
}
nKey = i - uint32(1)
@@ -172117,6 +174093,7 @@ func _jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot Tu32, zPath uintptr, i
}
goto _2
_2:
+ ;
i++
}
nKey = i
@@ -172333,7 +174310,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24936, -int32(1))
return
}
switch int32(*(*Tu8)(unsafe.Pointer((*TJsonParse)(unsafe.Pointer(pParse)).FaBlob + uintptr(i)))) & libc.Int32FromInt32(0x0f) {
@@ -172368,25 +174345,30 @@ func _jsonReturnFromBlob(tls *libc.TLS, pParse uintptr, i Tu32, pCtx uintptr, te
}
goto _15
_1:
+ ;
if *(*Tu32)(unsafe.Pointer(bp)) != 0 {
goto returnfromblob_malformed
}
Xsqlite3_result_null(tls, pCtx)
goto _15
_2:
+ ;
if *(*Tu32)(unsafe.Pointer(bp)) != 0 {
goto returnfromblob_malformed
}
Xsqlite3_result_int(tls, pCtx, int32(1))
goto _15
_3:
+ ;
if *(*Tu32)(unsafe.Pointer(bp)) != 0 {
goto returnfromblob_malformed
}
Xsqlite3_result_int(tls, pCtx, 0)
goto _15
_5:
+ ;
_4:
+ ;
*(*Tsqlite3_int64)(unsafe.Pointer(bp + 8)) = 0
bNeg = 0
if *(*Tu32)(unsafe.Pointer(bp)) == uint32(0) {
@@ -172431,11 +174413,14 @@ _4:
}
goto _15
_7:
+ ;
_6:
+ ;
if *(*Tu32)(unsafe.Pointer(bp)) == uint32(0) {
goto returnfromblob_malformed
}
to_double:
+ ;
z1 = _sqlite3DbStrNDup(tls, db, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob+uintptr(i+n), uint64(int32(*(*Tu32)(unsafe.Pointer(bp)))))
if z1 == uintptr(0) {
goto returnfromblob_oom
@@ -172448,11 +174433,15 @@ to_double:
Xsqlite3_result_double(tls, pCtx, *(*float64)(unsafe.Pointer(bp + 16)))
goto _15
_9:
+ ;
_8:
+ ;
Xsqlite3_result_text(tls, pCtx, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob+uintptr(i+n), int32(*(*Tu32)(unsafe.Pointer(bp))), uintptr(-libc.Int32FromInt32(1)))
goto _15
_11:
+ ;
_10:
+ ;
nOut = *(*Tu32)(unsafe.Pointer(bp))
z2 = (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob + uintptr(i+n)
zOut = _sqlite3DbMallocRaw(tls, db, uint64(nOut+uint32(1)))
@@ -172523,6 +174512,7 @@ _10:
}
goto _17
_17:
+ ;
iIn++
} /* end for() */
_ = libc.Int32FromInt32(0)
@@ -172530,7 +174520,9 @@ _10:
Xsqlite3_result_text(tls, pCtx, zOut, int32(iOut), __ccgo_fp(_sqlite3OomClear))
goto _15
_13:
+ ;
_12:
+ ;
if textOnly != 0 {
v30 = 0
} else {
@@ -172544,14 +174536,18 @@ _12:
}
goto _15
_14:
+ ;
goto returnfromblob_malformed
_15:
+ ;
return
returnfromblob_oom:
+ ;
Xsqlite3_result_error_nomem(tls, pCtx)
return
returnfromblob_malformed:
- Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24910, -int32(1))
+ ;
+ Xsqlite3_result_error(tls, pCtx, __ccgo_ts+24936, -int32(1))
return
}
@@ -172592,7 +174588,7 @@ func _jsonFunctionArgToBlob(tls *libc.TLS, ctx uintptr, pArg uintptr, pParse uin
(*TJsonParse)(unsafe.Pointer(pParse)).FaBlob = Xsqlite3_value_blob(tls, pArg)
(*TJsonParse)(unsafe.Pointer(pParse)).FnBlob = uint32(Xsqlite3_value_bytes(tls, pArg))
} else {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+24881, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24907, -int32(1))
return int32(1)
}
case int32(SQLITE_TEXT):
@@ -172605,7 +174601,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
_sqlite3DbFree(tls, (*TJsonParse)(unsafe.Pointer(pParse)).Fdb, (*TJsonParse)(unsafe.Pointer(pParse)).FaBlob)
libc.Xmemset(tls, pParse, 0, uint64(72))
return int32(1)
@@ -172624,10 +174620,10 @@ func _jsonFunctionArgToBlob(tls *libc.TLS, ctx uintptr, pArg uintptr, pParse uin
return int32(1)
}
if int32(*(*uint8)(unsafe.Pointer(z))) == int32('I') {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+25015)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(5), __ccgo_ts+25041)
} else {
if int32(*(*uint8)(unsafe.Pointer(z))) == int32('-') && int32(*(*uint8)(unsafe.Pointer(z + 1))) == int32('I') {
- _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+25008)
+ _jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(6), __ccgo_ts+25034)
} else {
_jsonBlobAppendNode(tls, pParse, uint8(JSONB_FLOAT), uint32(n), z)
}
@@ -172666,7 +174662,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+25049, libc.VaList(bp+8, zPath))
+ zMsg = Xsqlite3_mprintf(tls, __ccgo_ts+25075, libc.VaList(bp+8, zPath))
if ctx == uintptr(0) {
return zMsg
}
@@ -172753,15 +174749,17 @@ func _jsonInsertIntoBlob(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr, e
}
goto _2
_2:
+ ;
i += int32(2)
}
_jsonReturnParse(tls, ctx, p)
_jsonParseFree(tls, p)
return
jsonInsertIntoBlob_patherror:
+ ;
_jsonParseFree(tls, p)
if rc == uint32(JSON_LOOKUP_ERROR) {
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
} else {
_jsonBadPathError(tls, ctx, zPath)
}
@@ -172847,6 +174845,7 @@ func _jsonParseFuncArg(tls *libc.TLS, ctx uintptr, pArg uintptr, flgs Tu32) (r u
}
db = Xsqlite3_context_db_handle(tls, ctx)
rebuild_from_cache:
+ ;
p = _sqlite3DbMallocZero(tls, db, uint64(72))
if p == uintptr(0) {
goto json_pfa_oom
@@ -172890,12 +174889,13 @@ rebuild_from_cache:
}
(*TJsonParse)(unsafe.Pointer(p)).FzJson = Xsqlite3_value_text(tls, pArg)
(*TJsonParse)(unsafe.Pointer(p)).FnJson = Xsqlite3_value_bytes(tls, pArg)
+ if (*Tsqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 {
+ goto json_pfa_oom
+ }
if (*TJsonParse)(unsafe.Pointer(p)).FnJson == 0 {
goto json_pfa_malformed
}
- if (*TJsonParse)(unsafe.Pointer(p)).FzJson == uintptr(0) {
- goto json_pfa_oom
- }
+ _ = libc.Int32FromInt32(0)
if flgs&uint32(JSON_KEEPERROR) != 0 {
v2 = uintptr(0)
} else {
@@ -172935,15 +174935,17 @@ rebuild_from_cache:
}
return p
json_pfa_malformed:
+ ;
if flgs&uint32(JSON_KEEPERROR) != 0 {
(*TJsonParse)(unsafe.Pointer(p)).FnErr = uint8(1)
return p
} else {
_jsonParseFree(tls, p)
- Xsqlite3_result_error(tls, ctx, __ccgo_ts+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
return uintptr(0)
}
json_pfa_oom:
+ ;
_jsonParseFree(tls, pFromCache)
_jsonParseFree(tls, p)
Xsqlite3_result_error_nomem(tls, ctx)
@@ -173035,6 +175037,7 @@ func _jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
_jsonAppendSqlValue(tls, bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
_jsonAppendChar(tls, bp, uint8(']'))
@@ -173072,7 +175075,7 @@ func _jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr)
if int32(*(*uint8)(unsafe.Pointer(zPath))) == int32('$') {
v1 = zPath + uintptr(1)
} else {
- v1 = __ccgo_ts + 25067
+ v1 = __ccgo_ts + 25093
}
i = _jsonLookupStep(tls, p, uint32(0), v1, uint32(0))
if i >= uint32(JSON_LOOKUP_PATHERROR) {
@@ -173082,7 +175085,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
}
}
eErr = uint8(1)
@@ -173113,6 +175116,7 @@ func _jsonAllDigits(tls *libc.TLS, z uintptr, n int32) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return libc.BoolInt32(i == n)
@@ -173131,6 +175135,7 @@ func _jsonAllAlphanum(tls *libc.TLS, z uintptr, n int32) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return libc.BoolInt32(i == n)
@@ -173204,9 +175209,9 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
*/
_jsonStringInit(tls, bp, ctx)
if _jsonAllDigits(tls, zPath, nPath) != 0 {
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+25069, uint32(1))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+25095, uint32(1))
_jsonAppendRaw(tls, bp, zPath, uint32(nPath))
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+5136, uint32(2))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+5161, uint32(2))
} else {
if _jsonAllAlphanum(tls, zPath, nPath) != 0 {
_jsonAppendRawNZ(tls, bp, __ccgo_ts+1661, uint32(1))
@@ -173215,9 +175220,9 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
if int32(*(*uint8)(unsafe.Pointer(zPath))) == int32('[') && nPath >= int32(3) && int32(*(*uint8)(unsafe.Pointer(zPath + uintptr(nPath-int32(1))))) == int32(']') {
_jsonAppendRaw(tls, bp, zPath, uint32(nPath))
} else {
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+25071, uint32(2))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+25097, uint32(2))
_jsonAppendRaw(tls, bp, zPath, uint32(nPath))
- _jsonAppendRawNZ(tls, bp, __ccgo_ts+25074, uint32(1))
+ _jsonAppendRawNZ(tls, bp, __ccgo_ts+25100, uint32(1))
}
}
}
@@ -173258,7 +175263,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
goto json_extract_error
} else {
_jsonBadPathError(tls, ctx, zPath)
@@ -173268,6 +175273,7 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
if argc > int32(2) {
@@ -173278,6 +175284,7 @@ func _jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
}
json_extract_error:
+ ;
_jsonStringReset(tls, bp)
_jsonParseFree(tls, p)
return
@@ -173526,7 +175533,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
}
}
_jsonParseFree(tls, pPatch)
@@ -173550,7 +175557,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+25076, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+25102, -int32(1))
return
}
_jsonStringInit(tls, bp, ctx)
@@ -173561,7 +175568,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+25127, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+25153, -int32(1))
_jsonStringReset(tls, bp)
return
}
@@ -173573,6 +175580,7 @@ func _jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
_jsonAppendSqlValue(tls, bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(i+int32(1))*8)))
goto _1
_1:
+ ;
i += int32(2)
}
_jsonAppendChar(tls, bp, uint8('}'))
@@ -173632,21 +175640,24 @@ 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+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
}
}
goto json_remove_done
}
goto _2
_2:
+ ;
i++
}
_jsonReturnParse(tls, ctx, p)
_jsonParseFree(tls, p)
return
json_remove_patherror:
+ ;
_jsonBadPathError(tls, ctx, zPath)
json_remove_done:
+ ;
_jsonParseFree(tls, p)
return
}
@@ -173664,7 +175675,7 @@ func _jsonReplaceFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
return
}
if argc&int32(1) == 0 {
- _jsonWrongNumArgs(tls, ctx, __ccgo_ts+15762)
+ _jsonWrongNumArgs(tls, ctx, __ccgo_ts+15796)
return
}
_jsonInsertIntoBlob(tls, ctx, argc, argv, int32(JEDIT_REPL))
@@ -173695,9 +175706,9 @@ func _jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
if argc&int32(1) == 0 {
if bIsSet != 0 {
- v1 = __ccgo_ts + 25161
+ v1 = __ccgo_ts + 25187
} else {
- v1 = __ccgo_ts + 25165
+ v1 = __ccgo_ts + 25191
}
_jsonWrongNumArgs(tls, ctx, v1)
return
@@ -173745,7 +175756,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+24910, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+24936, -int32(1))
}
}
goto json_type_done
@@ -173755,6 +175766,7 @@ func _jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
Xsqlite3_result_text(tls, ctx, _jsonbType[int32(*(*Tu8)(unsafe.Pointer((*TJsonParse)(unsafe.Pointer(p)).FaBlob + uintptr(i))))&int32(0x0f)], -int32(1), libc.UintptrFromInt32(0))
json_type_done:
+ ;
_jsonParseFree(tls, p)
}
@@ -173832,7 +175844,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+25172, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+25198, -int32(1))
return
}
flags = uint8(f & int64(0x0f))
@@ -173938,6 +175950,7 @@ func _jsonErrorFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
k++
}
iErrPos++
@@ -174021,7 +176034,7 @@ func _jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) {
}
}
} else {
- Xsqlite3_result_text(tls, ctx, __ccgo_ts+25229, int32(2), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, ctx, __ccgo_ts+25255, int32(2), libc.UintptrFromInt32(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
@@ -174087,6 +176100,7 @@ func _jsonGroupInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
if uint64(i) < (*TJsonString)(unsafe.Pointer(pStr)).FnUsed {
@@ -174169,7 +176183,7 @@ func _jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) {
}
}
} else {
- Xsqlite3_result_text(tls, ctx, __ccgo_ts+25232, int32(2), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, ctx, __ccgo_ts+25258, int32(2), libc.UintptrFromInt32(0))
}
Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
}
@@ -174272,7 +176286,7 @@ func _jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv
_ = argv
_ = argc
_ = pAux
- rc = Xsqlite3_declare_vtab(tls, db, __ccgo_ts+25235)
+ rc = Xsqlite3_declare_vtab(tls, db, __ccgo_ts+25261)
if rc == SQLITE_OK {
pNew = _sqlite3DbMallocZero(tls, db, uint64(32))
*(*uintptr)(unsafe.Pointer(ppVtab)) = pNew
@@ -174408,7 +176422,7 @@ func _jsonAppendPathName(tls *libc.TLS, p uintptr) {
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if int32((*TJsonEachCursor)(unsafe.Pointer(p)).FeType) == int32(JSONB_ARRAY) {
- _jsonPrintf(tls, int32(30), p+56, __ccgo_ts+25318, 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+25344, 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
@@ -174429,13 +176443,14 @@ func _jsonAppendPathName(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
if needQuote != 0 {
- _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(4)), p+56, __ccgo_ts+25325, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
+ _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(4)), p+56, __ccgo_ts+25351, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
} else {
- _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(2)), p+56, __ccgo_ts+25333, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
+ _jsonPrintf(tls, int32(*(*Tu32)(unsafe.Pointer(bp))+uint32(2)), p+56, __ccgo_ts+25359, libc.VaList(bp+16, *(*Tu32)(unsafe.Pointer(bp)), z))
}
}
}
@@ -174599,6 +176614,9 @@ func _jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, iColumn int32) (r
case int32(JEACH_VALUE):
i = uint32(_jsonSkipLabel(tls, p))
_jsonReturnFromBlob(tls, p+192, i, ctx, int32(1))
+ if int32(*(*Tu8)(unsafe.Pointer((*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FaBlob + uintptr(i))))&int32(0x0f) >= int32(JSONB_ARRAY) {
+ Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE))
+ }
case int32(JEACH_TYPE):
i1 = uint32(_jsonSkipLabel(tls, p))
eType = uint8(int32(*(*Tu8)(unsafe.Pointer((*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FaBlob + uintptr(i1)))) & int32(0x0f))
@@ -174628,9 +176646,9 @@ func _jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, iColumn int32) (r
Xsqlite3_result_text(tls, ctx, (*TJsonEachCursor)(unsafe.Pointer(p)).Fpath.FzBuf, int32((*TJsonEachCursor)(unsafe.Pointer(p)).FnRoot), libc.UintptrFromInt32(0))
case int32(JEACH_JSON):
if (*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FzJson == uintptr(0) {
- Xsqlite3_result_blob(tls, ctx, (*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FaBlob, int32((*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FnBlob), libc.UintptrFromInt32(0))
+ Xsqlite3_result_blob(tls, ctx, (*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FaBlob, int32((*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FnBlob), uintptr(-libc.Int32FromInt32(1)))
} else {
- Xsqlite3_result_text(tls, ctx, (*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FzJson, -int32(1), libc.UintptrFromInt32(0))
+ Xsqlite3_result_text(tls, ctx, (*TJsonEachCursor)(unsafe.Pointer(p)).FsParse.FzJson, -int32(1), uintptr(-libc.Int32FromInt32(1)))
}
break
}
@@ -174691,6 +176709,7 @@ func _jsonEachBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32)
}
goto _2
_2:
+ ;
i++
pConstraint += 12
}
@@ -174821,7 +176840,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+25339, uint32(1))
+ _jsonAppendRaw(tls, p+56, __ccgo_ts+25365, uint32(1))
}
(*TJsonEachCursor)(unsafe.Pointer(p)).FnParent = uint32(0)
n = _jsonbPayloadSize(tls, p+192, i, bp)
@@ -174842,8 +176861,9 @@ func _jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, a
}
return SQLITE_OK
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+24910, 0)
+ (*Tsqlite3_vtab)(unsafe.Pointer((*Tsqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+24936, 0)
_jsonEachCursorReset(tls, p)
if (*Tsqlite3_vtab)(unsafe.Pointer((*Tsqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 {
v6 = int32(SQLITE_ERROR)
@@ -174904,176 +176924,176 @@ var _aJsonFunc = [32]TFuncDef{
0: {
FnArg: int8(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 + 25341,
+ FzName: __ccgo_ts + 25367,
},
1: {
FnArg: int8(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 + 25346,
+ FzName: __ccgo_ts + 25372,
},
2: {
FnArg: int8(-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 + 25352,
+ FzName: __ccgo_ts + 25378,
},
3: {
FnArg: int8(-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 + 25363,
+ FzName: __ccgo_ts + 25389,
},
4: {
FnArg: int8(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 + 25375,
+ FzName: __ccgo_ts + 25401,
},
5: {
FnArg: int8(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 + 25375,
+ FzName: __ccgo_ts + 25401,
},
6: {
FnArg: int8(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 + 25393,
+ FzName: __ccgo_ts + 25419,
},
7: {
FnArg: int8(-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 + 25413,
+ FzName: __ccgo_ts + 25439,
},
8: {
FnArg: int8(-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 + 25426,
+ FzName: __ccgo_ts + 25452,
},
9: {
FnArg: int8(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 + 25440,
+ FzName: __ccgo_ts + 25466,
},
10: {
FnArg: int8(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 + 25443,
+ FzName: __ccgo_ts + 25469,
},
11: {
FnArg: int8(-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 + 25447,
+ FzName: __ccgo_ts + 25473,
},
12: {
FnArg: int8(-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 + 25459,
+ FzName: __ccgo_ts + 25485,
},
13: {
FnArg: int8(-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 + 25472,
+ FzName: __ccgo_ts + 25498,
},
14: {
FnArg: int8(-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 + 25484,
+ FzName: __ccgo_ts + 25510,
},
15: {
FnArg: int8(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 + 25497,
+ FzName: __ccgo_ts + 25523,
},
16: {
FnArg: int8(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 + 25508,
+ FzName: __ccgo_ts + 25534,
},
17: {
FnArg: int8(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 + 25520,
+ FzName: __ccgo_ts + 25546,
},
18: {
FnArg: int8(-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 + 25531,
+ FzName: __ccgo_ts + 25557,
},
19: {
FnArg: int8(-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 + 25543,
+ FzName: __ccgo_ts + 25569,
},
20: {
FnArg: int8(-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 + 25556,
+ FzName: __ccgo_ts + 25582,
},
21: {
FnArg: int8(-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 + 25569,
+ FzName: __ccgo_ts + 25595,
},
22: {
FnArg: int8(-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 + 25583,
+ FzName: __ccgo_ts + 25609,
},
23: {
FnArg: int8(-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 + 25592,
+ FzName: __ccgo_ts + 25618,
},
24: {
FnArg: int8(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 + 25602,
+ FzName: __ccgo_ts + 25628,
},
25: {
FnArg: int8(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 + 25602,
+ FzName: __ccgo_ts + 25628,
},
26: {
FnArg: int8(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 + 25612,
+ FzName: __ccgo_ts + 25638,
},
27: {
FnArg: int8(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 + 25612,
+ FzName: __ccgo_ts + 25638,
},
28: {
FnArg: int8(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 + 25623,
+ FzName: __ccgo_ts + 25649,
},
29: {
FnArg: int8(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 + 25640,
+ FzName: __ccgo_ts + 25666,
},
30: {
FnArg: int8(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 + 25658,
+ FzName: __ccgo_ts + 25684,
},
31: {
FnArg: int8(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 + 25676,
+ FzName: __ccgo_ts + 25702,
},
}
@@ -175143,6 +177163,7 @@ func _sqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) (r int32) {
rc = Xsqlite3_create_module(tls, db, _aMod[i].FzName, _aMod[i].FpModule, uintptr(0))
goto _1
_1:
+ ;
i++
}
return rc
@@ -175153,11 +177174,11 @@ var _aMod = [2]struct {
FpModule uintptr
}{
0: {
- FzName: __ccgo_ts + 25695,
+ FzName: __ccgo_ts + 25721,
FpModule: uintptr(unsafe.Pointer(&_jsonEachModule)),
},
1: {
- FzName: __ccgo_ts + 25705,
+ FzName: __ccgo_ts + 25731,
FpModule: uintptr(unsafe.Pointer(&_jsonTreeModule)),
},
}
@@ -175691,6 +177712,7 @@ func _nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode Ti64) (r uintptr) {
}
goto _1
_1:
+ ;
p = (*TRtreeNode)(unsafe.Pointer(p)).FpNext
}
return p
@@ -175727,6 +177749,7 @@ func _nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) {
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 32
}
*(*uintptr)(unsafe.Pointer(pp)) = (*TRtreeNode)(unsafe.Pointer(pNode)).FpNext
@@ -175766,11 +177789,9 @@ func _nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) (r uintptr) {
func _nodeBlobReset(tls *libc.TLS, pRtree uintptr) {
var pBlob uintptr
_ = pBlob
- if (*TRtree)(unsafe.Pointer(pRtree)).FpNodeBlob != 0 && int32((*TRtree)(unsafe.Pointer(pRtree)).FinWrTrans) == 0 && (*TRtree)(unsafe.Pointer(pRtree)).FnCursor == uint32(0) {
- pBlob = (*TRtree)(unsafe.Pointer(pRtree)).FpNodeBlob
- (*TRtree)(unsafe.Pointer(pRtree)).FpNodeBlob = uintptr(0)
- Xsqlite3_blob_close(tls, pBlob)
- }
+ pBlob = (*TRtree)(unsafe.Pointer(pRtree)).FpNodeBlob
+ (*TRtree)(unsafe.Pointer(pRtree)).FpNodeBlob = uintptr(0)
+ Xsqlite3_blob_close(tls, pBlob)
}
// C documentation
@@ -175810,10 +177831,9 @@ 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+25715, 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+25741, iNode, 0, pRtree+112)
}
if rc != 0 {
- _nodeBlobReset(tls, pRtree)
*(*uintptr)(unsafe.Pointer(ppNode)) = uintptr(0)
/* If unable to open an sqlite3_blob on the desired row, that can only
** be because the shadow tables hold erroneous data. */
@@ -175867,6 +177887,7 @@ func _nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode Ti64, pParent uintptr, pp
}
*(*uintptr)(unsafe.Pointer(ppNode)) = pNode
} else {
+ _nodeBlobReset(tls, pRtree)
if pNode != 0 {
(*TRtree)(unsafe.Pointer(pRtree)).FnNodeRef--
Xsqlite3_free(tls, pNode)
@@ -175895,6 +177916,7 @@ func _nodeOverwriteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uint
p += uintptr(_writeCoord(tls, p, pCell+8+uintptr(ii)*4))
goto _1
_1:
+ ;
ii++
}
(*TRtreeNode)(unsafe.Pointer(pNode)).FisDirty = int32(1)
@@ -176019,6 +178041,7 @@ func _nodeGetRowid(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) (r
// ** Return coordinate iCoord from cell iCell in node pNode.
// */
func _nodeGetCoord(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iCoord int32, pCoord uintptr) {
+ _ = libc.Int32FromInt32(0)
_readCoord(tls, (*TRtreeNode)(unsafe.Pointer(pNode)).FzData+uintptr(int32(12)+int32((*TRtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*iCell+int32(4)*iCoord), pCoord)
}
@@ -176120,7 +178143,7 @@ func _rtreeDestroy(tls *libc.TLS, pVtab uintptr) (r int32) {
var rc int32
_, _, _ = pRtree, rc, zCreate
pRtree = pVtab
- zCreate = Xsqlite3_mprintf(tls, __ccgo_ts+25720, 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+25746, 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 {
@@ -176181,6 +178204,7 @@ func _resetCursor(tls *libc.TLS, pCsr uintptr) {
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TRtreeCursor)(unsafe.Pointer(pCsr)).FaConstraint)
@@ -176194,6 +178218,7 @@ func _resetCursor(tls *libc.TLS, pCsr uintptr) {
_nodeRelease(tls, pRtree, *(*uintptr)(unsafe.Pointer(pCsr + 88 + uintptr(ii)*8)))
goto _2
_2:
+ ;
ii++
}
Xsqlite3_free(tls, (*TRtreeCursor)(unsafe.Pointer(pCsr)).FaPoint)
@@ -176218,7 +178243,9 @@ func _rtreeClose(tls *libc.TLS, cur uintptr) (r int32) {
Xsqlite3_finalize(tls, (*TRtreeCursor)(unsafe.Pointer(pCsr)).FpReadAux)
Xsqlite3_free(tls, pCsr)
(*TRtree)(unsafe.Pointer(pRtree)).FnCursor--
- _nodeBlobReset(tls, pRtree)
+ if (*TRtree)(unsafe.Pointer(pRtree)).FnCursor == uint32(0) && int32((*TRtree)(unsafe.Pointer(pRtree)).FinWrTrans) == 0 {
+ _nodeBlobReset(tls, pRtree)
+ }
return SQLITE_OK
}
@@ -176526,6 +178553,7 @@ func _nodeRowidIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, iRowid Ti64,
}
goto _1
_1:
+ ;
ii++
}
return libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
@@ -176850,6 +178878,7 @@ func _rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) (r int32) {
}
goto _2
_2:
+ ;
ii++
}
if *(*int32)(unsafe.Pointer(bp)) == NOT_WITHIN {
@@ -176869,6 +178898,7 @@ func _rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) (r int32) {
}
goto _3
_3:
+ ;
ii++
}
x.FiCell = uint8(0)
@@ -176936,7 +178966,11 @@ func _rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) (r int32) {
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
pNode = _rtreeNodeOfFirstSearchPoint(tls, pCsr, bp)
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && p != 0 {
- *(*Tsqlite_int64)(unsafe.Pointer(pRowid)) = _nodeGetRowid(tls, (*TRtreeCursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab, pNode, int32((*TRtreeSearchPoint)(unsafe.Pointer(p)).FiCell))
+ if int32((*TRtreeSearchPoint)(unsafe.Pointer(p)).FiCell) >= _readInt16(tls, (*TRtreeNode)(unsafe.Pointer(pNode)).FzData+2) {
+ *(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ABORT)
+ } else {
+ *(*Tsqlite_int64)(unsafe.Pointer(pRowid)) = _nodeGetRowid(tls, (*TRtreeCursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab, pNode, int32((*TRtreeSearchPoint)(unsafe.Pointer(p)).FiCell))
+ }
}
return *(*int32)(unsafe.Pointer(bp))
}
@@ -176964,6 +178998,9 @@ func _rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) (r int32) {
if p == uintptr(0) {
return SQLITE_OK
}
+ if int32((*TRtreeSearchPoint)(unsafe.Pointer(p)).FiCell) >= _readInt16(tls, (*TRtreeNode)(unsafe.Pointer(pNode)).FzData+2) {
+ return int32(SQLITE_ABORT)
+ }
if i == 0 {
Xsqlite3_result_int64(tls, ctx, _nodeGetRowid(tls, pRtree, pNode, int32((*TRtreeSearchPoint)(unsafe.Pointer(p)).FiCell)))
} else {
@@ -177040,7 +179077,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+25802)
+ pSrc = Xsqlite3_value_pointer(tls, pValue, __ccgo_ts+25828)
if pSrc == uintptr(0) {
return int32(SQLITE_ERROR)
}
@@ -177178,6 +179215,7 @@ func _rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
}
goto _1
_1:
+ ;
ii++
}
}
@@ -177266,6 +179304,7 @@ func _rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
}
goto _1
_1:
+ ;
ii++
}
_ = libc.Int32FromInt32(0)
@@ -177285,6 +179324,7 @@ func _rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
(*(*Tsqlite3_index_constraint_usage)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(jj)*8))).Fomit = uint8(0)
goto _3
_3:
+ ;
jj++
}
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = int32(1)
@@ -177336,6 +179376,7 @@ func _rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
}
goto _2
_2:
+ ;
ii++
}
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = int32(2)
@@ -177499,6 +179540,7 @@ func _cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) (r int
}
goto _1
_1:
+ ;
ii += int32(2)
}
} else {
@@ -177514,6 +179556,7 @@ func _cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) (r int
}
goto _2
_2:
+ ;
ii += int32(2)
}
}
@@ -177597,11 +179640,13 @@ func _cellOverlap(tls *libc.TLS, pRtree uintptr, p uintptr, aCell uintptr, nCell
}
goto _2
_2:
+ ;
jj += int32(2)
}
overlap += o
goto _1
_1:
+ ;
ii++
}
return overlap
@@ -177657,6 +179702,7 @@ func _ChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, pp
}
goto _2
_2:
+ ;
iCell++
}
if !(bFound != 0) {
@@ -177680,6 +179726,7 @@ func _ChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, pp
}
goto _3
_3:
+ ;
iCell++
}
}
@@ -177688,6 +179735,7 @@ func _ChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, pp
*(*uintptr)(unsafe.Pointer(bp)) = *(*uintptr)(unsafe.Pointer(bp + 8))
goto _1
_1:
+ ;
ii++
}
*(*uintptr)(unsafe.Pointer(ppLeaf)) = *(*uintptr)(unsafe.Pointer(bp))
@@ -177860,11 +179908,13 @@ func _splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int3
*(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(aaSorted + uintptr(ii)*8)) + uintptr(jj)*4)) = jj
goto _2
_2:
+ ;
jj++
}
_SortByDimension(tls, pRtree, *(*uintptr)(unsafe.Pointer(aaSorted + uintptr(ii)*8)), nCell, ii, aCell, aSpare)
goto _1
_1:
+ ;
ii++
}
ii = 0
@@ -177895,6 +179945,7 @@ func _splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int3
}
goto _5
_5:
+ ;
kk++
}
margin += _cellMargin(tls, pRtree, bp)
@@ -177908,6 +179959,7 @@ func _splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int3
}
goto _4
_4:
+ ;
nLeft++
}
if ii == 0 || margin < fBestMargin {
@@ -177917,6 +179969,7 @@ func _splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int3
}
goto _3
_3:
+ ;
ii++
}
libc.Xmemcpy(tls, pBboxLeft, aCell+uintptr(*(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(aaSorted + uintptr(iBestDim)*8)))))*48, uint64(48))
@@ -177943,6 +179996,7 @@ func _splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int3
_cellUnion(tls, pRtree, pBbox, pCell)
goto _6
_6:
+ ;
ii++
}
Xsqlite3_free(tls, aaSorted)
@@ -177970,6 +180024,7 @@ func _updateMapping(tls *libc.TLS, pRtree uintptr, iRowid Ti64, pNode uintptr, i
}
goto _2
_2:
+ ;
p = (*TRtreeNode)(unsafe.Pointer(p)).FpParent
}
if pChild != 0 {
@@ -178018,6 +180073,7 @@ func _SplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHe
_nodeGetCell(tls, pRtree, pNode, i, aCell+uintptr(i)*48)
goto _1
_1:
+ ;
i++
}
_nodeZero(tls, pRtree, pNode)
@@ -178099,6 +180155,7 @@ func _SplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHe
}
goto _7
_7:
+ ;
i++
}
if (*TRtreeNode)(unsafe.Pointer(pNode)).FiNode == int64(1) {
@@ -178114,6 +180171,7 @@ func _SplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHe
}
goto _8
_8:
+ ;
i++
}
} else {
@@ -178130,6 +180188,7 @@ func _SplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHe
pLeft = uintptr(0)
}
splitnode_out:
+ ;
_nodeRelease(tls, pRtree, pRight)
_nodeRelease(tls, pRtree, pLeft)
Xsqlite3_free(tls, aCell)
@@ -178174,6 +180233,7 @@ func _fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) (r int32) {
}
goto _1
_1:
+ ;
pTest = (*TRtreeNode)(unsafe.Pointer(pTest)).FpParent
}
if pTest == uintptr(0) {
@@ -178265,6 +180325,7 @@ func _fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) (r int32) {
_cellUnion(tls, pRtree, bp+8, bp+56)
goto _1
_1:
+ ;
*(*int32)(unsafe.Pointer(bp))++
}
(*(*TRtreeCell)(unsafe.Pointer(bp + 8))).FiRowid = (*TRtreeNode)(unsafe.Pointer(pNode)).FiNode
@@ -178375,6 +180436,7 @@ func _reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) (r int32
}
goto _1
_1:
+ ;
ii++
}
return rc
@@ -178478,6 +180540,7 @@ func _rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Tsqlite3_int64) (r
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
goto _1
_1:
+ ;
*(*uintptr)(unsafe.Pointer(bp)) = (*TRtree)(unsafe.Pointer(pRtree)).FpDeleted
}
/* Release the reference to the root node. */
@@ -178557,7 +180620,7 @@ func _rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) (r int32)
_, _, _, _, _, _ = rc, zCol, zCol1, zCol2, zSql, v1
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
_ = libc.Int32FromInt32(0)
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+25816, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+25842, 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 {
@@ -178567,11 +180630,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+25836, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol))
+ (*TRtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+25862, 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+25868, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
+ (*TRtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+25894, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2))
}
}
Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -178646,6 +180709,7 @@ func _rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRow
}
goto _1
_1:
+ ;
ii += int32(2)
}
} else {
@@ -178662,6 +180726,7 @@ func _rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRow
}
goto _2
_2:
+ ;
ii += int32(2)
}
}
@@ -178725,6 +180790,7 @@ func _rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRow
Xsqlite3_bind_value(tls, pUp, jj+int32(2), *(*uintptr)(unsafe.Pointer(aData + uintptr(int32((*TRtree)(unsafe.Pointer(pRtree)).FnDim2)+int32(3)+jj)*8)))
goto _3
_3:
+ ;
jj++
}
Xsqlite3_step(tls, pUp)
@@ -178732,6 +180798,7 @@ func _rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRow
}
}
constraint:
+ ;
_rtreeRelease(tls, pRtree)
return rc
}
@@ -178745,8 +180812,7 @@ func _rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) (r int32) {
var pRtree uintptr
_ = pRtree
pRtree = pVtab
- _ = libc.Int32FromInt32(0)
- (*TRtree)(unsafe.Pointer(pRtree)).FinWrTrans++
+ (*TRtree)(unsafe.Pointer(pRtree)).FinWrTrans = uint8(1)
return SQLITE_OK
}
@@ -178765,6 +180831,10 @@ func _rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) (r int32) {
return SQLITE_OK
}
+func _rtreeRollback(tls *libc.TLS, pVtab uintptr) (r int32) {
+ return _rtreeEndTransaction(tls, pVtab)
+}
+
// C documentation
//
// /*
@@ -178778,7 +180848,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+25905, 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+25931, 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))
@@ -178832,9 +180902,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 + 26050
+ zFmt = __ccgo_ts + 26076
nRow = int64(RTREE_MIN_ROWEST)
- rc = Xsqlite3_table_column_metadata(tls, db, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, __ccgo_ts+11557, 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+11582, 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) {
@@ -178885,15 +180955,16 @@ func _rtreeShadowName(tls *libc.TLS, zName uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
}
var _azName1 = [3]uintptr{
- 0: __ccgo_ts + 26106,
- 1: __ccgo_ts + 5459,
- 2: __ccgo_ts + 16660,
+ 0: __ccgo_ts + 26132,
+ 1: __ccgo_ts + 5484,
+ 2: __ccgo_ts + 16694,
}
var _rtreeModule = Tsqlite3_module{
@@ -178918,7 +180989,7 @@ func init() {
*(*uintptr)(unsafe.Add(p, 112)) = __ccgo_fp(_rtreeBeginTransaction)
*(*uintptr)(unsafe.Add(p, 120)) = __ccgo_fp(_rtreeEndTransaction)
*(*uintptr)(unsafe.Add(p, 128)) = __ccgo_fp(_rtreeEndTransaction)
- *(*uintptr)(unsafe.Add(p, 136)) = __ccgo_fp(_rtreeEndTransaction)
+ *(*uintptr)(unsafe.Add(p, 136)) = __ccgo_fp(_rtreeRollback)
*(*uintptr)(unsafe.Add(p, 152)) = __ccgo_fp(_rtreeRename)
*(*uintptr)(unsafe.Add(p, 160)) = __ccgo_fp(_rtreeSavepoint)
*(*uintptr)(unsafe.Add(p, 184)) = __ccgo_fp(_rtreeShadowName)
@@ -178937,20 +181008,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+26520, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+26546, 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+26582, libc.VaList(bp+8, ii))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+26608, libc.VaList(bp+8, ii))
goto _1
_1:
+ ;
ii++
}
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+26587, libc.VaList(bp+8, zDb, zPrefix))
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+26651, libc.VaList(bp+8, zDb, zPrefix))
- Xsqlite3_str_appendf(tls, p, __ccgo_ts+26721, libc.VaList(bp+8, zDb, zPrefix, (*TRtree)(unsafe.Pointer(pRtree)).FiNodeSize))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+26613, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+26677, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p, __ccgo_ts+26747, libc.VaList(bp+8, zDb, zPrefix, (*TRtree)(unsafe.Pointer(pRtree)).FiNodeSize))
zCreate = Xsqlite3_str_finish(tls, p)
if !(zCreate != 0) {
return int32(SQLITE_NOMEM)
@@ -178980,7 +181052,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 + 26770
+ zFormat = __ccgo_ts + 26796
}
zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+8, zDb, zPrefix))
if zSql != 0 {
@@ -178991,33 +181063,35 @@ func _rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPref
Xsqlite3_free(tls, zSql)
goto _2
_2:
+ ;
i++
}
if (*TRtree)(unsafe.Pointer(pRtree)).FnAux != 0 && rc != int32(SQLITE_NOMEM) {
- (*TRtree)(unsafe.Pointer(pRtree)).FzReadAuxSql = Xsqlite3_mprintf(tls, __ccgo_ts+26878, libc.VaList(bp+8, zDb, zPrefix))
+ (*TRtree)(unsafe.Pointer(pRtree)).FzReadAuxSql = Xsqlite3_mprintf(tls, __ccgo_ts+26904, 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+26923, libc.VaList(bp+8, zDb, zPrefix))
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+26949, 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+13065, int32(1))
+ Xsqlite3_str_append(tls, p1, __ccgo_ts+13090, int32(1))
}
if ii1 < int32((*TRtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) {
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+26950, libc.VaList(bp+8, ii1, ii1+int32(2), ii1))
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+26976, libc.VaList(bp+8, ii1, ii1+int32(2), ii1))
} else {
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+26972, libc.VaList(bp+8, ii1, ii1+int32(2)))
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+26998, libc.VaList(bp+8, ii1, ii1+int32(2)))
}
goto _3
_3:
+ ;
ii1++
}
- Xsqlite3_str_appendf(tls, p1, __ccgo_ts+26980, 0)
+ Xsqlite3_str_appendf(tls, p1, __ccgo_ts+27006, 0)
zSql1 = Xsqlite3_str_finish(tls, p1)
if zSql1 == uintptr(0) {
rc = int32(SQLITE_NOMEM)
@@ -179031,14 +181105,14 @@ func _rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPref
}
var _azSql = [8]uintptr{
- 0: __ccgo_ts + 26111,
- 1: __ccgo_ts + 26164,
- 2: __ccgo_ts + 26209,
- 3: __ccgo_ts + 26261,
- 4: __ccgo_ts + 26315,
- 5: __ccgo_ts + 26360,
- 6: __ccgo_ts + 26418,
- 7: __ccgo_ts + 26473,
+ 0: __ccgo_ts + 26137,
+ 1: __ccgo_ts + 26190,
+ 2: __ccgo_ts + 26235,
+ 3: __ccgo_ts + 26287,
+ 4: __ccgo_ts + 26341,
+ 5: __ccgo_ts + 26386,
+ 6: __ccgo_ts + 26444,
+ 7: __ccgo_ts + 26499,
}
// C documentation
@@ -179096,7 +181170,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+26996, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27022, 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)
@@ -179107,14 +181181,14 @@ func _getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzE
*(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+3795, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db)))
}
} else {
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27016, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzDb, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+27042, 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+3795, 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+27073, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+27099, libc.VaList(bp+16, (*TRtree)(unsafe.Pointer(pRtree)).FzName))
}
}
}
@@ -179162,10 +181236,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 + 27108,
- 2: __ccgo_ts + 27151,
- 3: __ccgo_ts + 27186,
- 4: __ccgo_ts + 27222,
+ 1: __ccgo_ts + 27134,
+ 2: __ccgo_ts + 27177,
+ 3: __ccgo_ts + 27212,
+ 4: __ccgo_ts + 27248,
}
_ = libc.Int32FromInt32(0) /* Aux columns counted by a u8 */
if argc < int32(6) || argc > libc.Int32FromInt32(RTREE_MAX_AUX_COLUMN)+libc.Int32FromInt32(3) {
@@ -179191,13 +181265,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+27259, uint64(6))
+ libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName+uintptr(nName), __ccgo_ts+27285, 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+27265, 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+27291, 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) {
@@ -179206,7 +181280,7 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
zArg = *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))
if int32(*(*uint8)(unsafe.Pointer(zArg))) == int32('+') {
(*TRtree)(unsafe.Pointer(pRtree)).FnAux++
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+27289, libc.VaList(bp+8, _rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+27315, libc.VaList(bp+8, _rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1)))
} else {
if int32((*TRtree)(unsafe.Pointer(pRtree)).FnAux) > 0 {
break
@@ -179217,9 +181291,10 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
}
goto _2
_2:
+ ;
ii++
}
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+27316, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+27342, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !(zSql != 0) {
rc = int32(SQLITE_NOMEM)
@@ -179271,6 +181346,7 @@ func _rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
*(*uintptr)(unsafe.Pointer(ppVtab)) = pRtree
return SQLITE_OK
rtreeInit_fail:
+ ;
if rc == SQLITE_OK {
rc = int32(SQLITE_ERROR)
}
@@ -179281,8 +181357,8 @@ rtreeInit_fail:
}
var _azFormat = [2]uintptr{
- 0: __ccgo_ts + 27295,
- 1: __ccgo_ts + 27306,
+ 0: __ccgo_ts + 27321,
+ 1: __ccgo_ts + 27332,
}
// C documentation
@@ -179340,22 +181416,24 @@ 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+11177, int32(1))
+ Xsqlite3_str_append(tls, pOut, __ccgo_ts+11202, int32(1))
}
- Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+27319, libc.VaList(bp+1064, (*(*TRtreeCell)(unsafe.Pointer(bp + 1008))).FiRowid))
+ Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+27345, 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+27325, libc.VaList(bp+1064, float64(*(*TRtreeValue)(unsafe.Pointer(bp + 1008 + 8 + uintptr(jj)*4)))))
+ Xsqlite3_str_appendf(tls, pOut, __ccgo_ts+27351, 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+27329, int32(1))
+ Xsqlite3_str_append(tls, pOut, __ccgo_ts+27355, int32(1))
goto _1
_1:
+ ;
ii++
}
errCode = Xsqlite3_str_errcode(tls, pOut)
@@ -179379,7 +181457,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+27331, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+27357, -int32(1))
} else {
zBlob = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if zBlob != 0 {
@@ -179497,11 +181575,11 @@ func _rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintpt
(*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc = int32(SQLITE_NOMEM)
} else {
if (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport != 0 {
- v1 = __ccgo_ts + 4178
+ v1 = __ccgo_ts + 4203
} else {
v1 = __ccgo_ts + 1648
}
- (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, __ccgo_ts+27364, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport, v1, z))
+ (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, __ccgo_ts+27390, 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)
}
@@ -179535,7 +181613,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+27371, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab))
+ (*TRtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode = _rtreeCheckPrepare(tls, pCheck, __ccgo_ts+27397, 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)
@@ -179552,7 +181630,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+27416, libc.VaList(bp+8, iNode))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27442, libc.VaList(bp+8, iNode))
}
}
return pRet
@@ -179581,8 +181659,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 + 27448,
- 1: __ccgo_ts + 27502,
+ 0: __ccgo_ts + 27474,
+ 1: __ccgo_ts + 27528,
}
_ = libc.Int32FromInt32(0)
if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) {
@@ -179596,21 +181674,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 + 27550
+ v1 = __ccgo_ts + 27576
} else {
- v1 = __ccgo_ts + 27558
+ v1 = __ccgo_ts + 27584
}
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27567, libc.VaList(bp+8, iKey, iVal, v1))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27593, 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 + 27550
+ v2 = __ccgo_ts + 27576
} else {
- v2 = __ccgo_ts + 27558
+ v2 = __ccgo_ts + 27584
}
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27612, libc.VaList(bp+8, iKey, ii, v2, iKey, iVal))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27638, libc.VaList(bp+8, iKey, ii, v2, iKey, iVal))
}
}
}
@@ -179655,7 +181733,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+27670, libc.VaList(bp+24, i, iCell, iNode))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27696, libc.VaList(bp+24, i, iCell, iNode))
}
if pParent != 0 {
_readCoord(tls, pParent+uintptr(libc.Int32FromInt32(4)*libc.Int32FromInt32(2)*i), bp+8)
@@ -179673,11 +181751,12 @@ func _rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode Ti64, iCell int32
}
}
if v5 || v4 != 0 {
- _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27718, libc.VaList(bp+24, i, iCell, iNode))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27744, libc.VaList(bp+24, i, iCell, iNode))
}
}
goto _1
_1:
+ ;
i++
}
}
@@ -179707,19 +181786,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+27785, libc.VaList(bp+16, iNode, *(*int32)(unsafe.Pointer(bp))))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27811, 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+27819, libc.VaList(bp+16, iDepth))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27845, 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+27849, libc.VaList(bp+16, iNode, nCell, *(*int32)(unsafe.Pointer(bp))))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27875, libc.VaList(bp+16, iNode, nCell, *(*int32)(unsafe.Pointer(bp))))
} else {
i = 0
for {
@@ -179739,6 +181818,7 @@ func _rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintpt
}
goto _1
_1:
+ ;
i++
}
}
@@ -179763,12 +181843,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+27904, libc.VaList(bp+8, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*TRtreeCheck)(unsafe.Pointer(pCheck)).FzTab, zTbl))
+ pCount = _rtreeCheckPrepare(tls, pCheck, __ccgo_ts+27930, 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+27935, libc.VaList(bp+8, zTbl, nExpect, nActual))
+ _rtreeCheckAppendMsg(tls, pCheck, __ccgo_ts+27961, libc.VaList(bp+8, zTbl, nExpect, nActual))
}
}
(*TRtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount)
@@ -179797,7 +181877,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+28002, libc.VaList(bp+96, zDb, zTab))
+ pStmt = _rtreeCheckPrepare(tls, bp, __ccgo_ts+28028, libc.VaList(bp+96, zDb, zTab))
if pStmt != 0 {
nAux = Xsqlite3_column_count(tls, pStmt) - int32(2)
Xsqlite3_finalize(tls, pStmt)
@@ -179807,11 +181887,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+25816, libc.VaList(bp+96, zDb, zTab))
+ pStmt = _rtreeCheckPrepare(tls, bp, __ccgo_ts+25842, 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+28030, 0)
+ _rtreeCheckAppendMsg(tls, bp, __ccgo_ts+28056, 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))
@@ -179827,8 +181907,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+28061, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnLeaf))
- _rtreeCheckCount(tls, bp, __ccgo_ts+28068, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnNonLeaf))
+ _rtreeCheckCount(tls, bp, __ccgo_ts+28087, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnLeaf))
+ _rtreeCheckCount(tls, bp, __ccgo_ts+28094, int64((*(*TRtreeCheck)(unsafe.Pointer(bp))).FnNonLeaf))
}
/* Finalize SQL statements used by the integrity-check */
Xsqlite3_finalize(tls, (*(*TRtreeCheck)(unsafe.Pointer(bp))).FpGetNode)
@@ -179856,7 +181936,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+28076, 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+28102, 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)
}
@@ -179907,13 +181987,13 @@ 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+28095, -int32(1))
+ Xsqlite3_result_error(tls, ctx, __ccgo_ts+28121, -int32(1))
} else {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
zDb = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg)))
if nArg == int32(1) {
zTab = zDb
- zDb = __ccgo_ts + 6560
+ zDb = __ccgo_ts + 6585
} else {
zTab = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg + 1*8)))
}
@@ -179922,7 +182002,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 + 18427
+ v1 = __ccgo_ts + 18461
}
Xsqlite3_result_text(tls, ctx, v1, -int32(1), uintptr(-libc.Int32FromInt32(1)))
} else {
@@ -180145,6 +182225,7 @@ func _geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) (r int32) {
break
goto _1
_1:
+ ;
j++
}
if int32(*(*uint8)(unsafe.Pointer(z + uintptr(j-int32(1))))) < int32('0') {
@@ -180255,6 +182336,7 @@ func _geopolyParseJson(tls *libc.TLS, z uintptr, pRc uintptr) (r uintptr) {
}
}
parse_json_err:
+ ;
if pRc != 0 {
*(*int32)(unsafe.Pointer(pRc)) = rc
}
@@ -180315,6 +182397,7 @@ func _geopolyFuncParam(tls *libc.TLS, pCtx uintptr, pVal uintptr, pRc uintptr) (
_geopolySwab32(tls, p+8+uintptr(ii*int32(2)+int32(1))*4)
goto _3
_3:
+ ;
ii++
}
p4 = p + 4
@@ -180385,18 +182468,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+25069, int32(1))
+ Xsqlite3_str_append(tls, x, __ccgo_ts+25095, int32(1))
i = 0
for {
if !(i < (*TGeoPoly)(unsafe.Pointer(p)).FnVertex) {
break
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+28146, 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+28172, 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+28157, 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+28183, 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)
}
@@ -180425,19 +182509,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 = uint8('\'')
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+28168, 0)
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+28194, 0)
i = 0
for {
if !(i < (*TGeoPoly)(unsafe.Pointer(p)).FnVertex) {
break
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+28186, 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+28212, 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 = uint8(' ')
goto _1
_1:
+ ;
i++
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+28194, 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+28220, 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) {
@@ -180445,13 +182530,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 && *(*uint8)(unsafe.Pointer(z)) != 0 {
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+28202, libc.VaList(bp+8, z))
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+28228, libc.VaList(bp+8, z))
}
goto _2
_2:
+ ;
i++
}
- Xsqlite3_str_appendf(tls, x, __ccgo_ts+28206, 0)
+ Xsqlite3_str_appendf(tls, x, __ccgo_ts+28232, 0)
Xsqlite3_result_text(tls, context, Xsqlite3_str_finish(tls, x), -int32(1), __ccgo_fp(Xsqlite3_free))
Xsqlite3_free(tls, p)
}
@@ -180503,6 +182589,7 @@ func _geopolyXformFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr)
*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(ii*int32(2)+int32(1))*4)) = y1
goto _1
_1:
+ ;
ii++
}
Xsqlite3_result_blob(tls, context, p+4, int32(4)+int32(8)*(*TGeoPoly)(unsafe.Pointer(p)).FnVertex, uintptr(-libc.Int32FromInt32(1)))
@@ -180532,6 +182619,7 @@ func _geopolyArea(tls *libc.TLS, p uintptr) (r float64) {
rArea += float64((*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(ii*int32(2))*4))-*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr((ii+int32(1))*int32(2))*4)))*(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(ii*int32(2)+int32(1))*4))+*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr((ii+int32(1))*int32(2)+int32(1))*4)))) * float64(0.5)
goto _1
_1:
+ ;
ii++
}
rArea += float64((*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(ii*int32(2))*4))-*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2))*4)))*(*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(ii*int32(2)+int32(1))*4))+*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(libc.Int32FromInt32(0)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))*4)))) * float64(0.5)
@@ -180597,6 +182685,7 @@ func _geopolyCcwFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) {
*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(jj*int32(2)+int32(1))*4)) = t
goto _1
_1:
+ ;
ii++
jj--
}
@@ -180675,6 +182764,7 @@ func _geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintpt
*(*TGeoCoord)(unsafe.Pointer(p + 8 + uintptr(*(*int32)(unsafe.Pointer(bp))*int32(2)+int32(1))*4)) = float32(y + r*_geopolySine(tls, rAngle))
goto _1
_1:
+ ;
*(*int32)(unsafe.Pointer(bp))++
}
Xsqlite3_result_blob(tls, context, p+4, int32(4)+int32(8)*n, uintptr(-libc.Int32FromInt32(1)))
@@ -180744,6 +182834,7 @@ func _geopolyBBox(tls *libc.TLS, context uintptr, pPoly uintptr, aCoord uintptr,
}
goto _5
_5:
+ ;
*(*int32)(unsafe.Pointer(bp))++
}
if pRc != 0 {
@@ -180753,6 +182844,7 @@ func _geopolyBBox(tls *libc.TLS, context uintptr, pPoly uintptr, aCoord uintptr,
goto _6
}
geopolyBboxFill:
+ ;
pOut = Xsqlite3_realloc64(tls, p, libc.Uint64FromInt64(40)+libc.Uint64FromInt64(4)*libc.Uint64FromInt32(2)*uint64(libc.Int32FromInt32(4)-libc.Int32FromInt32(4)))
if pOut == uintptr(0) {
Xsqlite3_free(tls, p)
@@ -180780,18 +182872,22 @@ geopolyBboxFill:
*(*TGeoCoord)(unsafe.Pointer(pOut + 8 + uintptr(libc.Int32FromInt32(3)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))*4)) = mxY
goto _7
_6:
+ ;
Xsqlite3_free(tls, p)
*(*TRtreeValue)(unsafe.Pointer(aCoord)) = mnX
*(*TRtreeValue)(unsafe.Pointer(aCoord + 1*4)) = mxX
*(*TRtreeValue)(unsafe.Pointer(aCoord + 2*4)) = mnY
*(*TRtreeValue)(unsafe.Pointer(aCoord + 3*4)) = mxY
_7:
+ ;
goto _2
_1:
+ ;
if aCoord != 0 {
libc.Xmemset(tls, aCoord, 0, libc.Uint64FromInt64(4)*libc.Uint64FromInt32(4))
}
_2:
+ ;
return pOut
}
@@ -180974,6 +183070,7 @@ func _geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv
cnt += v
goto _1
_1:
+ ;
ii++
}
if v != int32(2) {
@@ -181150,6 +183247,7 @@ func _geopolyAddSegments(tls *libc.TLS, p uintptr, pPoly uintptr, side uint8) {
_geopolyAddOneSegment(tls, p, *(*TGeoCoord)(unsafe.Pointer(x)), *(*TGeoCoord)(unsafe.Pointer(x + 1*4)), *(*TGeoCoord)(unsafe.Pointer(x + 2*4)), *(*TGeoCoord)(unsafe.Pointer(x + 3*4)), side, i)
goto _1
_1:
+ ;
i++
}
x = pPoly + 8 + uintptr(i*uint32(2))*4
@@ -181216,6 +183314,7 @@ func _geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) (r uintp
a[j] = uintptr(0)
goto _2
_2:
+ ;
j++
}
a[j] = p
@@ -181224,6 +183323,7 @@ func _geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) (r uintp
}
goto _1
_1:
+ ;
i++
}
p = uintptr(0)
@@ -181235,6 +183335,7 @@ func _geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) (r uintp
p = _geopolyEventMerge(tls, a[i], p)
goto _3
_3:
+ ;
i++
}
return p
@@ -181303,6 +183404,7 @@ func _geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) (r uintptr) {
a[i] = uintptr(0)
goto _1
_1:
+ ;
i++
}
a[i] = p
@@ -181319,6 +183421,7 @@ func _geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) (r uintptr) {
p = _geopolySegmentMerge(tls, a[i], p)
goto _2
_2:
+ ;
i++
}
return p
@@ -181385,6 +183488,7 @@ func _geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) (r int32) {
pPrev = pSeg
goto _3
_3:
+ ;
pSeg = (*TGeoSegment)(unsafe.Pointer(pSeg)).FpNext
}
pPrev = uintptr(0)
@@ -181409,6 +183513,7 @@ func _geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) (r int32) {
pPrev = pSeg
goto _4
_4:
+ ;
pSeg = (*TGeoSegment)(unsafe.Pointer(pSeg)).FpNext
}
}
@@ -181445,6 +183550,7 @@ func _geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) (r int32) {
}
goto _6
_6:
+ ;
pSeg = (*TGeoSegment)(unsafe.Pointer(pSeg)).FpNext
}
}
@@ -181469,6 +183575,7 @@ func _geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) (r int32) {
}
}
geopolyOverlapDone:
+ ;
Xsqlite3_free(tls, p)
return rc
}
@@ -181558,13 +183665,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+27259, uint64(6))
+ libc.Xmemcpy(tls, (*TRtree)(unsafe.Pointer(pRtree)).FzNodeName+uintptr(nName), __ccgo_ts+27285, 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+28219, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+28245, 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)
@@ -181573,12 +183680,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+28241, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+28267, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8))))
goto _1
_1:
+ ;
ii++
}
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+27316, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+27342, 0)
zSql = Xsqlite3_str_finish(tls, pSql)
if !(zSql != 0) {
rc = int32(SQLITE_NOMEM)
@@ -181607,6 +183715,7 @@ func _geopolyInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uint
*(*uintptr)(unsafe.Pointer(ppVtab)) = pRtree
return SQLITE_OK
geopolyInit_fail:
+ ;
if rc == SQLITE_OK {
rc = int32(SQLITE_ERROR)
}
@@ -181759,6 +183868,7 @@ func _geopolyFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uin
}
}
geopoly_filter_end:
+ ;
_nodeRelease(tls, pRtree, *(*uintptr)(unsafe.Pointer(bp)))
_rtreeRelease(tls, pRtree)
return *(*int32)(unsafe.Pointer(bp + 8))
@@ -181809,11 +183919,12 @@ func _geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
}
goto _1
_1:
+ ;
ii++
}
if iRowidTerm >= 0 {
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = int32(1)
- (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 16660
+ (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 16694
(*(*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)
@@ -181823,7 +183934,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 + 28245
+ (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 28271
(*(*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)
@@ -181831,7 +183942,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 + 28251
+ (*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = __ccgo_ts + 28277
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = float64(3e+06)
(*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedRows = int64(100000)
return SQLITE_OK
@@ -181953,7 +184064,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+28260, 0)
+ (*Tsqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+28286, 0)
}
goto geopoly_update_end
}
@@ -182033,6 +184144,7 @@ func _geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pR
Xsqlite3_bind_value(tls, pUp, jj+int32(2), *(*uintptr)(unsafe.Pointer(aData + uintptr(jj+int32(2))*8)))
goto _5
_5:
+ ;
jj++
}
if nChange != 0 {
@@ -182041,6 +184153,7 @@ func _geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pR
}
}
geopoly_update_end:
+ ;
_rtreeRelease(tls, pRtree)
return *(*int32)(unsafe.Pointer(bp))
}
@@ -182054,12 +184167,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+28300) == 0 {
+ if Xsqlite3_stricmp(tls, zName, __ccgo_ts+28326) == 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+28316) == 0 {
+ if Xsqlite3_stricmp(tls, zName, __ccgo_ts+28342) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = __ccgo_fp(_geopolyWithinFunc)
*(*uintptr)(unsafe.Pointer(ppArg)) = uintptr(0)
return libc.Int32FromInt32(SQLITE_INDEX_CONSTRAINT_FUNCTION) + libc.Int32FromInt32(1)
@@ -182115,6 +184228,7 @@ func _sqlite3_geopoly_init(tls *libc.TLS, db uintptr) (r int32) {
rc = Xsqlite3_create_function(tls, db, _aFunc[i].FzName, int32(_aFunc[i].FnArg), enc, uintptr(0), _aFunc[i].FxFunc, uintptr(0), uintptr(0))
goto _1
_1:
+ ;
i++
}
i = uint32(0)
@@ -182125,10 +184239,11 @@ func _sqlite3_geopoly_init(tls *libc.TLS, db uintptr) (r int32) {
rc = Xsqlite3_create_function(tls, db, _aAgg[i].FzName, int32(1), libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_DETERMINISTIC)|libc.Int32FromInt32(SQLITE_INNOCUOUS), uintptr(0), uintptr(0), _aAgg[i].FxStep, _aAgg[i].FxFinal)
goto _2
_2:
+ ;
i++
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+28493, uintptr(unsafe.Pointer(&_geopolyModule)), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+28519, uintptr(unsafe.Pointer(&_geopolyModule)), uintptr(0), uintptr(0))
}
return rc
}
@@ -182142,61 +184257,61 @@ var _aFunc = [12]struct {
0: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28331,
+ FzName: __ccgo_ts + 28357,
},
1: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28344,
+ FzName: __ccgo_ts + 28370,
},
2: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28357,
+ FzName: __ccgo_ts + 28383,
},
3: {
FnArg: int8(-int32(1)),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28370,
+ FzName: __ccgo_ts + 28396,
},
4: {
FnArg: int8(2),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28316,
+ FzName: __ccgo_ts + 28342,
},
5: {
FnArg: int8(3),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28382,
+ FzName: __ccgo_ts + 28408,
},
6: {
FnArg: int8(2),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28300,
+ FzName: __ccgo_ts + 28326,
},
7: {
FnArg: int8(1),
- FzName: __ccgo_ts + 28405,
+ FzName: __ccgo_ts + 28431,
},
8: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28419,
+ FzName: __ccgo_ts + 28445,
},
9: {
FnArg: int8(7),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28432,
+ FzName: __ccgo_ts + 28458,
},
10: {
FnArg: int8(4),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28446,
+ FzName: __ccgo_ts + 28472,
},
11: {
FnArg: int8(1),
FbPure: uint8(1),
- FzName: __ccgo_ts + 28462,
+ FzName: __ccgo_ts + 28488,
},
}
@@ -182222,7 +184337,7 @@ var _aAgg = [1]struct {
FzName uintptr
}{
0: {
- FzName: __ccgo_ts + 28474,
+ FzName: __ccgo_ts + 28500,
},
}
@@ -182247,20 +184362,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+28501, int32(2), utf8, uintptr(0), __ccgo_fp(_rtreenode), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+28527, int32(2), utf8, uintptr(0), __ccgo_fp(_rtreenode), uintptr(0), uintptr(0))
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+28511, int32(1), utf8, uintptr(0), __ccgo_fp(_rtreedepth), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+28537, int32(1), utf8, uintptr(0), __ccgo_fp(_rtreedepth), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_create_function(tls, db, __ccgo_ts+28522, -int32(1), utf8, uintptr(0), __ccgo_fp(_rtreecheck), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+28548, -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+28245, uintptr(unsafe.Pointer(&_rtreeModule)), c, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+28271, 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+28533, uintptr(unsafe.Pointer(&_rtreeModule)), c1, uintptr(0))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+28559, uintptr(unsafe.Pointer(&_rtreeModule)), c1, uintptr(0))
}
if rc == SQLITE_OK {
rc = _sqlite3_geopoly_init(tls, db)
@@ -182305,6 +184420,7 @@ func _rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) {
Xsqlite3_value_free(tls, *(*uintptr)(unsafe.Pointer((*TRtreeMatchArg)(unsafe.Pointer(p)).FapSqlParam + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, p)
@@ -182354,13 +184470,14 @@ func _geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) {
*(*TRtreeDValue)(unsafe.Pointer(pBlob + 56 + uintptr(i)*8)) = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(aArg + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
if memErr != 0 {
Xsqlite3_result_error_nomem(tls, ctx)
_rtreeMatchArgFree(tls, pBlob)
} else {
- Xsqlite3_result_pointer(tls, ctx, pBlob, __ccgo_ts+25802, __ccgo_fp(_rtreeMatchArgFree))
+ Xsqlite3_result_pointer(tls, ctx, pBlob, __ccgo_ts+25828, __ccgo_fp(_rtreeMatchArgFree))
}
}
}
@@ -183578,7 +185695,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+28543, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+28569, -int32(1))
return
}
aOut = Xsqlite3_malloc(tls, nOut+int32(1))
@@ -183588,7 +185705,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+28543, -int32(1))
+ Xsqlite3_result_error(tls, context, __ccgo_ts+28569, -int32(1))
} else {
Xsqlite3_result_blob(tls, context, aOut, nOut, __ccgo_fp(Xsqlite3_free))
}
@@ -183691,6 +185808,7 @@ func _rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) {
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol)
@@ -183769,7 +185887,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+28564, uintptr(0), uintptr(0), p+64)
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+28590, uintptr(0), uintptr(0), p+64)
}
if rc == SQLITE_OK {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FbCleanup != 0 {
@@ -183859,7 +185977,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+25715, zIn, uint64(4)) == 0 {
+ if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, __ccgo_ts+25741, zIn, uint64(4)) == 0 {
i = int32(4)
for {
if !(int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))) >= int32('0') && int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))) <= int32('9')) {
@@ -183867,6 +185985,7 @@ func _rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) {
}
goto _1
_1:
+ ;
i++
}
if int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))) == int32('_') && *(*uint8)(unsafe.Pointer(zIn + uintptr(i+int32(1)))) != 0 {
@@ -183895,13 +186014,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 + 28735
+ v1 = __ccgo_ts + 28761
} else {
v1 = __ccgo_ts + 1648
}
- rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+28776, libc.VaList(bp+8, v1)))
+ rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+28802, libc.VaList(bp+8, v1)))
if rc == SQLITE_OK {
- rc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64, __ccgo_ts+28926)
+ rc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64, __ccgo_ts+28952)
}
(*TRbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = int32(1)
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc
@@ -184131,7 +186250,7 @@ func _rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnu
*(*int32)(unsafe.Pointer(peType)) = RBU_PK_NOTABLE
*(*int32)(unsafe.Pointer(piPk)) = 0
_ = libc.Int32FromInt32(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+29051, 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+29077, 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
@@ -184141,7 +186260,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+29170, 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+29196, libc.VaList(bp+40, zTab)))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
goto rbuTableType_end
}
@@ -184149,7 +186268,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+29191, 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+29217, 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)
@@ -184161,7 +186280,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+29242, 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+29268, 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 {
@@ -184172,6 +186291,7 @@ func _rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnu
*(*int32)(unsafe.Pointer(peType)) = int32(RBU_PK_NONE)
}
rbuTableType_end:
+ ;
i = uint32(0)
for {
if !(uint64(i) < libc.Uint64FromInt64(32)/libc.Uint64FromInt64(8)) {
@@ -184180,6 +186300,7 @@ rbuTableType_end:
_rbuFinalize(tls, p, (*(*[4]uintptr)(unsafe.Pointer(bp)))[i])
goto _1
_1:
+ ;
i++
}
}
@@ -184202,7 +186323,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+29263, 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+29289, 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))) {
@@ -184215,7 +186336,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+29291, 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+29317, 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 {
@@ -184269,7 +186390,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+19870, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+19904, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl))
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc != 0 {
return (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc
@@ -184281,7 +186402,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+29320, 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+29346, 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)
@@ -184292,7 +186413,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+29339, zName, int32(4)) != 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+29365, 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
@@ -184300,12 +186421,13 @@ 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+29344, zName) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+29370, zName) {
bRbuRowid = int32(1)
}
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -184313,17 +186435,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 + 29354
+ v4 = __ccgo_ts + 29380
} else {
- v4 = __ccgo_ts + 29367
+ v4 = __ccgo_ts + 29393
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+29376, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v4))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+29402, 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+29405, 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+29431, 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))
@@ -184340,11 +186462,12 @@ func _rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) (r int32
}
goto _5
_5:
+ ;
i++
}
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+29427, libc.VaList(bp+24, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zName1))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+29453, 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))
@@ -184393,10 +186516,11 @@ 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+29454, libc.VaList(bp+8, zList, zSep, z))
- zSep = __ccgo_ts + 14965
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+29480, libc.VaList(bp+8, zList, zSep, z))
+ zSep = __ccgo_ts + 14990
goto _1
_1:
+ ;
i++
}
return zList
@@ -184427,12 +186551,13 @@ 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+29463, libc.VaList(bp+8, zRet, zSep, zPre, zCol, zPost))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+29489, libc.VaList(bp+8, zRet, zSep, zPre, zCol, zPost))
zSep = zSeparator
break
}
goto _1
_1:
+ ;
i++
}
if i == (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol {
@@ -184474,21 +186599,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+29476, 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+29502, 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+29508, libc.VaList(bp+16, iMax))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+29534, libc.VaList(bp+16, iMax))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
} else {
- zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1648, __ccgo_ts+14965, __ccgo_ts+29531)
- zSelect = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+29537, __ccgo_ts+29544, __ccgo_ts+5081)
- zList = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1648, __ccgo_ts+14965, __ccgo_ts+1648)
+ zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1648, __ccgo_ts+14990, __ccgo_ts+29557)
+ zSelect = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+29563, __ccgo_ts+29570, __ccgo_ts+5106)
+ zList = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1648, __ccgo_ts+14990, __ccgo_ts+1648)
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+29552, 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+29578, 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+29594, libc.VaList(bp+16, zList, zVal))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+29620, libc.VaList(bp+16, zList, zVal))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
}
@@ -184540,7 +186665,7 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
zSep = __ccgo_ts + 1648
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+29291, 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+29317, 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))
@@ -184557,20 +186682,21 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
}
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
} else {
- zCol = __ccgo_ts + 29614
+ zCol = __ccgo_ts + 29640
}
} else {
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCid)*8))
}
- zLhs = _rbuMPrintf(tls, p, __ccgo_ts+29622, libc.VaList(bp+24, zLhs, zSep, zCol, zCollate))
- zOrder = _rbuMPrintf(tls, p, __ccgo_ts+29643, libc.VaList(bp+24, zOrder, zSep, iCol, zCol, zCollate))
- zSelect = _rbuMPrintf(tls, p, __ccgo_ts+29679, libc.VaList(bp+24, zSelect, zSep, iCol, zCol))
- zSep = __ccgo_ts + 14965
+ zLhs = _rbuMPrintf(tls, p, __ccgo_ts+29648, libc.VaList(bp+24, zLhs, zSep, zCol, zCollate))
+ zOrder = _rbuMPrintf(tls, p, __ccgo_ts+29669, libc.VaList(bp+24, zOrder, zSep, iCol, zCol, zCollate))
+ zSelect = _rbuMPrintf(tls, p, __ccgo_ts+29705, libc.VaList(bp+24, zSelect, zSep, iCol, zCol))
+ zSep = __ccgo_ts + 14990
iCol++
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
@@ -184579,7 +186705,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+29706, 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+29732, 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 + 1648
iCol = 0
@@ -184596,19 +186722,21 @@ func _rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
break
}
}
- zVector = _rbuMPrintf(tls, p, __ccgo_ts+29754, libc.VaList(bp+24, zVector, zSep, zQuoted))
- zSep = __ccgo_ts + 14965
+ zVector = _rbuMPrintf(tls, p, __ccgo_ts+29780, libc.VaList(bp+24, zVector, zSep, zQuoted))
+ zSep = __ccgo_ts + 14990
goto _2
_2:
+ ;
iCol++
}
if !(bFailed != 0) {
- zRet = _rbuMPrintf(tls, p, __ccgo_ts+29761, libc.VaList(bp+24, zLhs, zVector))
+ zRet = _rbuMPrintf(tls, p, __ccgo_ts+29787, libc.VaList(bp+24, zLhs, zVector))
}
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
}
index_start_out:
+ ;
Xsqlite3_free(tls, zOrder)
Xsqlite3_free(tls, zSelect)
Xsqlite3_free(tls, zVector)
@@ -184660,7 +186788,7 @@ func _rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposter
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0) /* PRAGMA index_xinfo = ? */
if rc == SQLITE_OK {
_ = libc.Int32FromInt32(0)
- rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+29291, 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+29317, 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))
@@ -184669,7 +186797,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+29773, 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+29799, 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 + 1648
} else {
if iCid < 0 {
@@ -184683,15 +186811,16 @@ func _rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposter
}
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))
} else {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zCol = __ccgo_ts + 29614
+ zCol = __ccgo_ts + 29640
} else {
- zCol = __ccgo_ts + 29344
+ zCol = __ccgo_ts + 29370
}
}
zType = __ccgo_ts + 1136
@@ -184699,24 +186828,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+29795, libc.VaList(bp+16, zRet, zCom, zCol, zCollate))
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+29821, 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 + 29531
+ v2 = __ccgo_ts + 29557
} else {
v2 = __ccgo_ts + 1648
}
zOrder = v2
- zImpPK = Xsqlite3_mprintf(tls, __ccgo_ts+29815, libc.VaList(bp+16, zImpPK, zCom, nBind, zCol, zOrder))
+ zImpPK = Xsqlite3_mprintf(tls, __ccgo_ts+29841, libc.VaList(bp+16, zImpPK, zCom, nBind, zCol, zOrder))
}
- zImpCols = Xsqlite3_mprintf(tls, __ccgo_ts+29836, libc.VaList(bp+16, zImpCols, zCom, nBind, zCol, zType, zCollate))
- zWhere = Xsqlite3_mprintf(tls, __ccgo_ts+29869, libc.VaList(bp+16, zWhere, zAnd, nBind, zCol))
+ zImpCols = Xsqlite3_mprintf(tls, __ccgo_ts+29862, libc.VaList(bp+16, zImpCols, zCom, nBind, zCol, zType, zCollate))
+ zWhere = Xsqlite3_mprintf(tls, __ccgo_ts+29895, 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 + 14965
- zAnd = __ccgo_ts + 21979
+ zCom = __ccgo_ts + 14990
+ zAnd = __ccgo_ts + 22013
nBind++
}
rc2 = Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -184770,22 +186899,23 @@ 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+29893, libc.VaList(bp+8, zList, zS, zObj, zCol))
+ zList = Xsqlite3_mprintf(tls, __ccgo_ts+29919, libc.VaList(bp+8, zList, zS, zObj, zCol))
} else {
- zList = Xsqlite3_mprintf(tls, __ccgo_ts+29905, libc.VaList(bp+8, zList, zS))
+ zList = Xsqlite3_mprintf(tls, __ccgo_ts+29931, libc.VaList(bp+8, zList, zS))
}
- zS = __ccgo_ts + 14965
+ zS = __ccgo_ts + 14990
if zList == uintptr(0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
break
}
goto _1
_1:
+ ;
i++
}
/* 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+29914, libc.VaList(bp+8, zList, zObj))
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+29940, libc.VaList(bp+8, zList, zObj))
}
}
return zList
@@ -184811,7 +186941,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+29929, libc.VaList(bp+8, (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+int32(1)))
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+29955, 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 + 1648
@@ -184821,14 +186951,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+29943, libc.VaList(bp+8, zList, zSep, i, i+int32(1)))
- zSep = __ccgo_ts + 21979
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+29969, libc.VaList(bp+8, zList, zSep, i, i+int32(1)))
+ zSep = __ccgo_ts + 22013
}
goto _1
_1:
+ ;
i++
}
- zList = _rbuMPrintf(tls, p, __ccgo_ts+29955, libc.VaList(bp+8, zList))
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+29981, libc.VaList(bp+8, zList))
} else {
zSep1 = __ccgo_ts + 1648
i1 = 0
@@ -184838,11 +186969,12 @@ 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+30005, libc.VaList(bp+8, zList, zSep1, zCol, i1+int32(1)))
- zSep1 = __ccgo_ts + 21979
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+30031, libc.VaList(bp+8, zList, zSep1, zCol, i1+int32(1)))
+ zSep1 = __ccgo_ts + 22013
}
goto _2
_2:
+ ;
i1++
}
}
@@ -184861,7 +186993,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+30018, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+30044, 0)
}
// C documentation
@@ -184903,21 +187035,22 @@ func _rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintpt
}
c = *(*uint8)(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+30005, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
- zSep = __ccgo_ts + 14965
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+30031, libc.VaList(bp+8, zList, zSep, *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+int32(1)))
+ zSep = __ccgo_ts + 14990
} else {
if int32(c) == int32('d') {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+30044, 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 + 14965
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+30070, 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 + 14990
} else {
if int32(c) == int32('f') {
- zList = _rbuMPrintf(tls, p, __ccgo_ts+30074, 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 + 14965
+ zList = _rbuMPrintf(tls, p, __ccgo_ts+30100, 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 + 14990
}
}
}
goto _1
_1:
+ ;
i++
}
}
@@ -184965,6 +187098,7 @@ func _rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) (r uintptr) {
*(*uint8)(unsafe.Pointer(zRet + uintptr(i*int32(2)+int32(1)))) = uint8(v2)
goto _1
_1:
+ ;
i++
}
}
@@ -184995,16 +187129,16 @@ func _rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) (r uintptr) {
z = uintptr(0)
_ = libc.Int32FromInt32(0)
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- zSep = __ccgo_ts + 30111
+ zSep = __ccgo_ts + 30137
*(*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+29263, 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+29289, 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+16548) == 0 {
+ if zOrig != 0 && libc.Xstrcmp(tls, zOrig, __ccgo_ts+16582) == 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+29291, 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+29317, libc.VaList(bp+24, zIdx)))
}
break
}
@@ -185015,16 +187149,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 + 29531
+ v1 = __ccgo_ts + 29557
} else {
v1 = __ccgo_ts + 1648
}
zDesc = v1
- z = _rbuMPrintf(tls, p, __ccgo_ts+30124, libc.VaList(bp+24, z, zSep, zCol, zDesc))
- zSep = __ccgo_ts + 14965
+ z = _rbuMPrintf(tls, p, __ccgo_ts+30150, libc.VaList(bp+24, z, zSep, zCol, zDesc))
+ zSep = __ccgo_ts + 14990
}
}
- z = _rbuMPrintf(tls, p, __ccgo_ts+30135, libc.VaList(bp+24, z))
+ z = _rbuMPrintf(tls, p, __ccgo_ts+30161, libc.VaList(bp+24, z))
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
}
return z
@@ -185070,7 +187204,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+30139)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, __ccgo_ts+30165)
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))) {
@@ -185078,7 +187212,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+29291, 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+29317, 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))) {
@@ -185087,21 +187221,21 @@ 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+30189, 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+30215, 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 + 29531
+ v1 = __ccgo_ts + 29557
} else {
v1 = __ccgo_ts + 1648
}
- zPk = _rbuMPrintf(tls, p, __ccgo_ts+30211, libc.VaList(bp+24, zPk, zComma, iCid, v1))
- zComma = __ccgo_ts + 14965
+ zPk = _rbuMPrintf(tls, p, __ccgo_ts+30237, libc.VaList(bp+24, zPk, zComma, iCid, v1))
+ zComma = __ccgo_ts + 14990
}
}
- zCols = _rbuMPrintf(tls, p, __ccgo_ts+30221, libc.VaList(bp+24, zCols))
+ zCols = _rbuMPrintf(tls, p, __ccgo_ts+30247, 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+6560, int32(1), tnum))
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30236, 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+6560, 0, 0))
+ Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+24, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, int32(1), tnum))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30262, 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+6585, 0, 0))
}
}
@@ -185138,7 +187272,7 @@ func _rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) {
tnum = (*TRbuObjIter)(unsafe.Pointer(pIter)).FiTnum
zComma = __ccgo_ts + 1648
zSql = uintptr(0)
- Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6560, 0, int32(1)))
+ Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, 0, int32(1)))
iCol = 0
for {
if !((*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && iCol < (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol) {
@@ -185147,37 +187281,38 @@ func _rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) {
zPk = __ccgo_ts + 1648
zCol = *(*uintptr)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCol)*8))
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_table_column_metadata(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6560, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp, uintptr(0), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_table_column_metadata(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp, uintptr(0), uintptr(0), uintptr(0))
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 + 30298
+ zPk = __ccgo_ts + 30324
}
if *(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabNotNull + uintptr(iCol))) != 0 {
- v2 = __ccgo_ts + 30311
+ v2 = __ccgo_ts + 30337
} else {
v2 = __ccgo_ts + 1648
}
- zSql = _rbuMPrintf(tls, p, __ccgo_ts+30321, 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 + 14965
+ zSql = _rbuMPrintf(tls, p, __ccgo_ts+30347, 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 + 14990
goto _1
_1:
+ ;
iCol++
}
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+30348, libc.VaList(bp+16, zSql, zPk1))
+ zSql = _rbuMPrintf(tls, p, __ccgo_ts+30374, 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+6560, int32(1), tnum))
+ Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, int32(1), tnum))
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_WITHOUT_ROWID) {
- v3 = __ccgo_ts + 30355
+ v3 = __ccgo_ts + 30381
} else {
v3 = __ccgo_ts + 1648
}
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30370, 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+6560, 0, 0))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30396, 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+6585, 0, 0))
}
}
@@ -185204,7 +187339,7 @@ func _rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zColli
zBind = _rbuObjIterGetBindlist(tls, p, (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+int32(1)+bRbuRowid)
if zBind != 0 {
_ = libc.Int32FromInt32(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+152, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+30402, 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+30428, libc.VaList(bp+8, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zCollist, zRbuRowid, zBind)))
}
}
@@ -185226,6 +187361,7 @@ func _rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) {
rc = Xsqlite3_bind_value(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FpTmpInsert, i+int32(1), *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
if rc == SQLITE_OK {
@@ -185251,7 +187387,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
zRet = uintptr(0)
_ = libc.Int32FromInt32(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+30459)
+ *(*int32)(unsafe.Pointer(bp + 8)) = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, __ccgo_ts+30485)
}
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))
@@ -185321,6 +187457,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
}
goto _5
_5:
+ ;
i++
}
} else {
@@ -185335,6 +187472,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
}
goto _6
_6:
+ ;
i++
}
} else {
@@ -185346,6 +187484,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
}
goto _7
_7:
+ ;
i++
}
if int32(*(*uint8)(unsafe.Pointer(zSql + uintptr(i)))) == int32('\000') {
@@ -185360,6 +187499,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
}
goto _8
_8:
+ ;
i++
}
if int32(*(*uint8)(unsafe.Pointer(zSql + uintptr(i)))) == int32('\000') {
@@ -185375,6 +187515,7 @@ func _rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) (r uintpt
}
goto _2
_2:
+ ;
i++
}
if *(*uint8)(unsafe.Pointer(zSql + uintptr(i))) != 0 {
@@ -185417,7 +187558,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+30525, libc.VaList(bp+40, nOffset))
+ zLimit = Xsqlite3_mprintf(tls, __ccgo_ts+30551, libc.VaList(bp+40, nOffset))
if !(zLimit != 0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
}
@@ -185435,18 +187576,18 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
zCollist = _rbuObjIterGetIndexCols(tls, p, pIter, bp, bp+8, bp+16, bp+24)
zBind = _rbuObjIterGetBindlist(tls, p, *(*int32)(unsafe.Pointer(bp + 24)))
/* 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+6560, 0, int32(1)))
- Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+40, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6560, int32(1), tnum))
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30545, 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+6560, 0, 0))
+ Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+40, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, 0, int32(1)))
+ Xsqlite3_test_control(tls, int32(SQLITE_TESTCTRL_IMPOSTER), libc.VaList(bp+40, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, int32(1), tnum))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+30571, 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+6585, 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+30610, 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+30636, 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+30646, 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+30672, 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 {
@@ -185461,26 +187602,26 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
}
if zStart != 0 {
if zPart != 0 {
- v2 = __ccgo_ts + 30680
+ v2 = __ccgo_ts + 30706
} else {
- v2 = __ccgo_ts + 30684
+ v2 = __ccgo_ts + 30710
}
v1 = v2
} else {
v1 = __ccgo_ts + 1648
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+30690, libc.VaList(bp+40, zCollist, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, v1, zStart, zCollist, zLimit))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+30716, 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+30751, libc.VaList(bp+40, zCollist, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, zLimit))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+30777, libc.VaList(bp+40, zCollist, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, zLimit))
} else {
if zPart != 0 {
- v3 = __ccgo_ts + 30680
+ v3 = __ccgo_ts + 30706
} else {
- v3 = __ccgo_ts + 30684
+ v3 = __ccgo_ts + 30710
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+30812, 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+30838, 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 {
@@ -185499,8 +187640,8 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
zTbl1 = (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl /* Imposter table name */
zBindings = _rbuObjIterGetBindlist(tls, p, (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+bRbuRowid)
zWhere1 = _rbuObjIterGetWhere(tls, p, pIter)
- zOldlist = _rbuObjIterGetOldlist(tls, p, pIter, __ccgo_ts+6571)
- zNewlist = _rbuObjIterGetOldlist(tls, p, pIter, __ccgo_ts+6567)
+ zOldlist = _rbuObjIterGetOldlist(tls, p, pIter, __ccgo_ts+6596)
+ zNewlist = _rbuObjIterGetOldlist(tls, p, pIter, __ccgo_ts+6592)
zCollist = _rbuObjIterGetCollist(tls, p, pIter)
(*TRbuObjIter)(unsafe.Pointer(pIter)).FnCol = (*TRbuObjIter)(unsafe.Pointer(pIter)).FnTblCol
/* Create the imposter table or tables (if required). */
@@ -185509,39 +187650,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 + 1648
} else {
- v4 = __ccgo_ts + 30971
+ v4 = __ccgo_ts + 30997
}
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 + 30980
+ v5 = __ccgo_ts + 31006
} else {
v5 = __ccgo_ts + 1648
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, pz, Xsqlite3_mprintf(tls, __ccgo_ts+30990, 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+31016, 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+31026, 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+31052, 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 + 1648
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_EXTERNAL) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE) {
- zRbuRowid = __ccgo_ts + 31054
+ zRbuRowid = __ccgo_ts + 31080
}
/* 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 + 31066
+ v6 = __ccgo_ts + 31092
} else {
v6 = __ccgo_ts + 1648
}
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+31083, 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+31159, libc.VaList(bp+40, zWrite, zTbl1, zOldlist, zWrite, zTbl1, zOldlist, zWrite, zTbl1, zNewlist))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+31109, 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+31185, 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+31458, libc.VaList(bp+40, zWrite, zTbl1, zNewlist))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31484, libc.VaList(bp+40, zWrite, zTbl1, zNewlist))
}
_rbuObjIterPrepareTmpInsert(tls, p, pIter, zCollist, zRbuRowid)
}
@@ -185552,9 +187693,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 + 31557
+ v7 = __ccgo_ts + 31583
} else {
- v7 = __ccgo_ts + 31567
+ v7 = __ccgo_ts + 31593
}
zRbuRowid1 = v7
}
@@ -185567,14 +187708,14 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
}
}
if bRbuRowid != 0 {
- zOrder = _rbuMPrintf(tls, p, __ccgo_ts+29614, 0)
+ zOrder = _rbuMPrintf(tls, p, __ccgo_ts+29640, 0)
} else {
- zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1648, __ccgo_ts+14965, __ccgo_ts+1648)
+ zOrder = _rbuObjIterGetPkList(tls, p, pIter, __ccgo_ts+1648, __ccgo_ts+14990, __ccgo_ts+1648)
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v8 = __ccgo_ts + 31578
+ v8 = __ccgo_ts + 31604
} else {
v8 = __ccgo_ts + 1648
}
@@ -185584,11 +187725,11 @@ func _rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int3
v9 = __ccgo_ts + 1648
}
if zOrder != 0 {
- v10 = __ccgo_ts + 23173
+ v10 = __ccgo_ts + 23207
} else {
v10 = __ccgo_ts + 1648
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+128, pz, Xsqlite3_mprintf(tls, __ccgo_ts+31584, 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+31610, libc.VaList(bp+40, zCollist, v8, zRbuRowid1, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, v9, v10, zOrder, zLimit)))
}
Xsqlite3_free(tls, zStart1)
Xsqlite3_free(tls, zOrder)
@@ -185645,6 +187786,7 @@ func _rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, p
nUp++
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 16
}
_ = libc.Int32FromInt32(0)
@@ -185656,6 +187798,7 @@ func _rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, p
}
goto _2
_2:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 16
}
*(*uintptr)(unsafe.Pointer(pp)) = uintptr(0)
@@ -185675,9 +187818,9 @@ func _rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, p
if zSet != 0 {
zPrefix = __ccgo_ts + 1648
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType != int32(RBU_PK_VTAB) {
- zPrefix = __ccgo_ts + 30971
+ zPrefix = __ccgo_ts + 30997
}
- zUpdate = Xsqlite3_mprintf(tls, __ccgo_ts+31632, libc.VaList(bp+8, zPrefix, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSet, zWhere))
+ zUpdate = Xsqlite3_mprintf(tls, __ccgo_ts+31658, 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
}
@@ -185751,7 +187894,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+31662, 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+31688, 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):
@@ -185813,27 +187956,27 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
(*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu = _rbuOpenDbhandle(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu, int32(1))
(*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain = dbMain
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6560, int32(SQLITE_FCNTL_RBUCNT), p)
+ Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6585, 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+6560)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState = _rbuMPrintf(tls, p, __ccgo_ts+31692, libc.VaList(bp+8, zFile, zFile))
+ zFile = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6585)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState = _rbuMPrintf(tls, p, __ccgo_ts+31718, 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+31720, libc.VaList(bp+8, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+31746, libc.VaList(bp+8, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzState))
libc.Xmemcpy(tls, p+48, __ccgo_ts+3418, uint64(4))
} else {
- libc.Xmemcpy(tls, p+48, __ccgo_ts+6560, uint64(4))
+ libc.Xmemcpy(tls, p+48, __ccgo_ts+6585, uint64(4))
}
/* If it has not already been created, create the rbu_state table */
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+31738, libc.VaList(bp+8, p+48))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+31764, 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
(*Tsqlite3rbu)(unsafe.Pointer(p)).FpRbuFd = uintptr(0)
- rc = Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6560, int32(SQLITE_FCNTL_RBUCNT), p)
+ rc = Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6585, int32(SQLITE_FCNTL_RBUCNT), p)
if rc != int32(SQLITE_NOTFOUND) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc
}
@@ -185866,10 +188009,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+31804, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31830, 0)
} else {
zExtra = uintptr(0)
- if libc.Xstrlen(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+24562, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
+ if libc.Xstrlen(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+24596, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) {
zExtra = (*Tsqlite3rbu)(unsafe.Pointer(p)).FzRbu + 5
for *(*uint8)(unsafe.Pointer(zExtra)) != 0 {
v1 = zExtra
@@ -185885,14 +188028,14 @@ func _rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr)
if zExtra == uintptr(0) {
v2 = __ccgo_ts + 1648
} else {
- v2 = __ccgo_ts + 31836
+ v2 = __ccgo_ts + 31862
}
if zExtra == uintptr(0) {
v3 = __ccgo_ts + 1648
} else {
v3 = zExtra
}
- zTarget = Xsqlite3_mprintf(tls, __ccgo_ts+31838, libc.VaList(bp+8, Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6560), v2, v3))
+ zTarget = Xsqlite3_mprintf(tls, __ccgo_ts+31864, libc.VaList(bp+8, Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6585), v2, v3))
if zTarget == uintptr(0) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = int32(SQLITE_NOMEM)
return
@@ -185903,27 +188046,27 @@ 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+31870, -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+31896, -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+31885, 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+31911, 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+31902, -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+31928, -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+6560, int32(SQLITE_FCNTL_RBU), p)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, int32(SQLITE_FCNTL_RBU), p)
}
- _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31918, 0)
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31944, 0)
/* Mark the database file just opened as an RBU target database. If
** this call returns SQLITE_NOTFOUND, then the RBU vfs is not in use.
** This is an error. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6560, int32(SQLITE_FCNTL_RBU), p)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, int32(SQLITE_FCNTL_RBU), p)
}
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+31946, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+31972, 0)
}
}
@@ -186007,7 +188150,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+31918, uintptr(0), uintptr(0), uintptr(0))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31944, uintptr(0), uintptr(0), uintptr(0))
}
}
/* Assuming no error has occurred, run a "restart" checkpoint with the
@@ -186040,7 +188183,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+31964, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+31990, uintptr(0), uintptr(0), uintptr(0))
if rc2 != int32(SQLITE_NOTICE) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -186175,16 +188318,16 @@ func _rbuLockDatabase(tls *libc.TLS, db uintptr) (r int32) {
_ = rc
rc = SQLITE_OK
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- Xsqlite3_file_control(tls, db, __ccgo_ts+6560, int32(RBU_ZIPVFS_CTRL_FILE_POINTER), bp)
+ Xsqlite3_file_control(tls, db, __ccgo_ts+6585, int32(RBU_ZIPVFS_CTRL_FILE_POINTER), bp)
if *(*uintptr)(unsafe.Pointer(bp)) != 0 {
- Xsqlite3_file_control(tls, db, __ccgo_ts+6560, int32(SQLITE_FCNTL_FILE_POINTER), bp)
+ Xsqlite3_file_control(tls, db, __ccgo_ts+6585, int32(SQLITE_FCNTL_FILE_POINTER), bp)
rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3_io_methods1)(unsafe.Pointer((*Tsqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods)).FxLock})))(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(SQLITE_LOCK_SHARED))
if rc == SQLITE_OK {
rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3_io_methods1)(unsafe.Pointer((*Tsqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods)).FxUnlock})))(tls, *(*uintptr)(unsafe.Pointer(bp)), SQLITE_LOCK_NONE)
}
- Xsqlite3_file_control(tls, db, __ccgo_ts+6560, int32(RBU_ZIPVFS_CTRL_FILE_POINTER), bp)
+ Xsqlite3_file_control(tls, db, __ccgo_ts+6585, int32(RBU_ZIPVFS_CTRL_FILE_POINTER), bp)
} else {
- Xsqlite3_file_control(tls, db, __ccgo_ts+6560, int32(SQLITE_FCNTL_FILE_POINTER), bp)
+ Xsqlite3_file_control(tls, db, __ccgo_ts+6585, int32(SQLITE_FCNTL_FILE_POINTER), bp)
}
if rc == SQLITE_OK && (*Tsqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods != 0 {
rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3_io_methods1)(unsafe.Pointer((*Tsqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods)).FxLock})))(tls, *(*uintptr)(unsafe.Pointer(bp)), int32(SQLITE_LOCK_SHARED))
@@ -186206,7 +188349,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+31999, 0)
+ return Xsqlite3_uri_boolean(tls, zUri, __ccgo_ts+32025, 0)
}
// C documentation
@@ -186223,13 +188366,13 @@ func _rbuMoveOalFile(tls *libc.TLS, p uintptr) {
defer tls.Free(16)
var dbMain, zBase, zMove, zOal, zWal uintptr
_, _, _, _, _ = dbMain, zBase, zMove, zOal, zWal
- zBase = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6560)
+ zBase = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585)
zMove = zBase
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- zMove = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6560)
+ zMove = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+6585)
}
- zOal = Xsqlite3_mprintf(tls, __ccgo_ts+32024, libc.VaList(bp+8, zMove))
- zWal = Xsqlite3_mprintf(tls, __ccgo_ts+32031, libc.VaList(bp+8, zMove))
+ zOal = Xsqlite3_mprintf(tls, __ccgo_ts+32050, libc.VaList(bp+8, zMove))
+ zWal = Xsqlite3_mprintf(tls, __ccgo_ts+32057, libc.VaList(bp+8, zMove))
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if zWal == uintptr(0) || zOal == uintptr(0) {
@@ -186367,7 +188510,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+24119, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+24153, 0)
return
}
if eType == int32(RBU_DELETE) && int32(*(*Tu8)(unsafe.Pointer((*TRbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i)))) == 0 {
@@ -186380,6 +188523,7 @@ func _rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) {
}
goto _1
_1:
+ ;
i++
}
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) {
@@ -186461,6 +188605,7 @@ func _rbuStep(tls *libc.TLS, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && ((*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_VTAB) || (*TRbuObjIter)(unsafe.Pointer(pIter)).FeType == int32(RBU_PK_NONE)) {
@@ -186504,7 +188649,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+32038)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, dbread, bp, p+64, __ccgo_ts+32064)
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
@@ -186517,7 +188662,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+32060, libc.VaList(bp+16, iCookie+int32(1)))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32086, libc.VaList(bp+16, iCookie+int32(1)))
}
}
}
@@ -186545,7 +188690,7 @@ func _rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) {
}
pFd = v1
_ = libc.Int32FromInt32(0)
- rc = _prepareFreeAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, Xsqlite3_mprintf(tls, __ccgo_ts+32087, 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+32113, 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)))
_ = libc.Int32FromInt32(0)
if rc == SQLITE_OK {
Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -186582,9 +188727,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+32245, 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+32271, 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+32260, 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+32286, libc.VaList(bp+16, zPragma, Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp)), 0)))
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
}
@@ -186608,9 +188753,9 @@ func _rbuCreateTargetSchema(tls *libc.TLS, p uintptr) {
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
_ = libc.Int32FromInt32(0)
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32280, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32306, 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+32305)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+32331)
}
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)
@@ -186621,10 +188766,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+32413)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+32439)
}
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+32478)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, __ccgo_ts+32504)
}
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == int32(SQLITE_ROW) {
i = 0
@@ -186635,13 +188780,14 @@ func _rbuCreateTargetSchema(tls *libc.TLS, p uintptr) {
Xsqlite3_bind_value(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), i+int32(1), Xsqlite3_column_value(tls, *(*uintptr)(unsafe.Pointer(bp)), i))
goto _1
_1:
+ ;
i++
}
Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
(*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+32522, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32548, uintptr(0), uintptr(0), p+64)
}
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp)))
_rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8)))
@@ -186668,8 +188814,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+17633)
- _rbuCopyPragma(tls, p, __ccgo_ts+16744)
+ _rbuCopyPragma(tls, p, __ccgo_ts+17667)
+ _rbuCopyPragma(tls, p, __ccgo_ts+16778)
}
for (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*TRbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 {
if (*TRbuObjIter)(unsafe.Pointer(pIter)).FbCleanup != 0 {
@@ -186677,7 +188823,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+32547, libc.VaList(bp+16, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
+ _rbuMPrintfExec(tls, p, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+32573, libc.VaList(bp+16, p+48, (*TRbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))
}
} else {
_rbuObjIterPrepareAll(tls, p, pIter, 0)
@@ -186700,10 +188846,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+14869, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+14894, 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+14869, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+14894, uintptr(0), uintptr(0), p+64)
}
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = int32(RBU_STAGE_MOVE)
}
@@ -186791,7 +188937,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+32575, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+32601, 0)
}
if rc == SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FnStep = (*TRbuState)(unsafe.Pointer(pState)).FnRow
@@ -186814,10 +188960,10 @@ func _rbuDeleteOalFile(tls *libc.TLS, p uintptr) {
var zOal uintptr
var _ /* pVfs at bp+0 */ uintptr
_ = zOal
- zOal = _rbuMPrintf(tls, p, __ccgo_ts+32024, libc.VaList(bp+16, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget))
+ zOal = _rbuMPrintf(tls, p, __ccgo_ts+32050, 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+6560, int32(SQLITE_FCNTL_VFS_POINTER), bp)
+ Xsqlite3_file_control(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+6585, int32(SQLITE_FCNTL_VFS_POINTER), bp)
_ = libc.Int32FromInt32(0)
(*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tsqlite3_vfs)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FxDelete})))(tls, *(*uintptr)(unsafe.Pointer(bp)), zOal, 0)
Xsqlite3_free(tls, zOal)
@@ -186841,7 +188987,7 @@ func _rbuCreateVfs(tls *libc.TLS, p uintptr) {
_ = pVfs
_ = libc.Int32FromInt32(0)
Xsqlite3_randomness(tls, int32(4), bp)
- Xsqlite3_snprintf(tls, int32(64), bp+4, __ccgo_ts+32600, libc.VaList(bp+80, *(*int32)(unsafe.Pointer(bp))))
+ Xsqlite3_snprintf(tls, int32(64), bp+4, __ccgo_ts+32626, 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)
@@ -186889,7 +189035,7 @@ func _rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) {
}
db = v1
_ = libc.Int32FromInt32(0)
- rc = _prepareFreeAndCollectError(tls, db, bp, bp+8, Xsqlite3_mprintf(tls, __ccgo_ts+32611, libc.VaList(bp+24, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal))))))
+ rc = _prepareFreeAndCollectError(tls, db, bp, bp+8, Xsqlite3_mprintf(tls, __ccgo_ts+32637, 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 {
@@ -186934,11 +189080,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+32683, 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+32709, 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+32697)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+32723)
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
if int32(SQLITE_ROW) == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) {
@@ -186947,7 +189093,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+32754)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = _prepareAndCollectError(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, __ccgo_ts+32780)
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)
@@ -187029,7 +189175,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+32828, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+32854, 0)
} else {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_MOVE) {
(*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage = int32(RBU_STAGE_CKPT)
@@ -187051,17 +189197,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 + 32860
+ v3 = __ccgo_ts + 32886
} else {
- v3 = __ccgo_ts + 32867
+ v3 = __ccgo_ts + 32893
}
- (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+32874, libc.VaList(bp+16, v3))
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+32900, 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+14854, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+14879, 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+80)
@@ -187073,21 +189219,21 @@ 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+17347)
- _rbuCopyPragma(tls, p, __ccgo_ts+16759)
+ _rbuCopyPragma(tls, p, __ccgo_ts+17381)
+ _rbuCopyPragma(tls, p, __ccgo_ts+16793)
}
/* 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+32906, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+32932, uintptr(0), uintptr(0), p+64)
}
/* Check if the main database is a zipvfs db. If it is, set the upper
** level pager to use "journal_mode=off". This prevents it from
** generating a large journal using a temp file. */
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
- frc = Xsqlite3_file_control(tls, db, __ccgo_ts+6560, int32(SQLITE_FCNTL_ZIPVFS), uintptr(0))
+ frc = Xsqlite3_file_control(tls, db, __ccgo_ts+6585, int32(SQLITE_FCNTL_ZIPVFS), uintptr(0))
if frc == SQLITE_OK {
- (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+32922, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, __ccgo_ts+32948, uintptr(0), uintptr(0), p+64)
}
}
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -187165,7 +189311,7 @@ func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) (r uintp
}
if zState != 0 {
n = int32(libc.Xstrlen(tls, zState))
- if n >= int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+32946, zState+uintptr(n-int32(7)), uint64(7)) {
+ if n >= int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+32972, zState+uintptr(n-int32(7)), uint64(7)) {
return _rbuMisuseError(tls)
}
}
@@ -187212,7 +189358,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+30971, uint64(8)) == 0 {
+ if libc.Xmemcmp(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), __ccgo_ts+30997, uint64(8)) == 0 {
nDel = int32(8)
for int32(*(*uint8)(unsafe.Pointer((*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg + uintptr(i+uint32(nDel))))) >= int32('0') && int32(*(*uint8)(unsafe.Pointer((*Tsqlite3rbu)(unsafe.Pointer(p)).FzErrmsg + uintptr(i+uint32(nDel))))) <= int32('9') {
nDel++
@@ -187222,6 +189368,7 @@ func _rbuEditErrmsg(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
}
@@ -187239,7 +189386,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+14869, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+14894, 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) {
@@ -187248,7 +189395,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+14869, uintptr(0), uintptr(0), p+64)
+ (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+14894, uintptr(0), uintptr(0), p+64)
}
/* Close any open statement handles. */
_rbuObjIterFinalize(tls, p+80)
@@ -187258,7 +189405,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+32954, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+32980, uintptr(0), uintptr(0), uintptr(0))
if (*Tsqlite3rbu)(unsafe.Pointer(p)).Frc == int32(SQLITE_DONE) && rc2 != SQLITE_OK {
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc2
}
@@ -187373,7 +189520,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) (r int32) {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
_ = libc.Int32FromInt32(0)
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+14869, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+14894, uintptr(0), uintptr(0), uintptr(0))
}
}
/* Sync the db file */
@@ -187387,19 +189534,19 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) (r int32) {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FeStage == int32(RBU_STAGE_OAL) {
_ = libc.Int32FromInt32(0)
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+14869, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbRbu, __ccgo_ts+14894, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
if (*Tsqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) {
- v1 = __ccgo_ts + 14854
+ v1 = __ccgo_ts + 14879
} else {
- v1 = __ccgo_ts + 32906
+ v1 = __ccgo_ts + 32932
}
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+32906, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, (*Tsqlite3rbu)(unsafe.Pointer(p)).FdbMain, __ccgo_ts+32932, uintptr(0), uintptr(0), uintptr(0))
}
}
(*Tsqlite3rbu)(unsafe.Pointer(p)).Frc = rc
@@ -187510,6 +189657,7 @@ func _rbuUnlockShm(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
(*Tsqlite3rbu)(unsafe.Pointer((*Trbu_file)(unsafe.Pointer(p)).FpRbu)).FmLock = uint32(0)
@@ -187559,6 +189707,7 @@ func _rbuMainlistAdd(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
pIter = (*Trbu_file)(unsafe.Pointer(pIter)).FpMainNext
}
(*Trbu_file)(unsafe.Pointer(p)).FpMainNext = (*Trbu_vfs)(unsafe.Pointer(pRbuVfs)).FpMain
@@ -187571,6 +189720,7 @@ func _rbuMainlistAdd(tls *libc.TLS, p uintptr) {
}
goto _2
_2:
+ ;
pIter = (*Trbu_file)(unsafe.Pointer(pIter)).FpMainRbuNext
}
if pIter == uintptr(0) {
@@ -187597,6 +189747,7 @@ func _rbuMainlistRemove(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 88
}
if *(*uintptr)(unsafe.Pointer(pp)) != 0 {
@@ -187610,6 +189761,7 @@ func _rbuMainlistRemove(tls *libc.TLS, p uintptr) {
}
goto _2
_2:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 96
}
if *(*uintptr)(unsafe.Pointer(pp)) != 0 {
@@ -187642,6 +189794,7 @@ func _rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) (r
}
goto _1
_1:
+ ;
pDb = (*Trbu_file)(unsafe.Pointer(pDb)).FpMainRbuNext
}
} else {
@@ -187652,6 +189805,7 @@ func _rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) (r
}
goto _2
_2:
+ ;
pDb = (*Trbu_file)(unsafe.Pointer(pDb)).FpMainNext
}
}
@@ -187678,6 +189832,7 @@ func _rbuVfsClose(tls *libc.TLS, pFile uintptr) (r int32) {
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer((*Trbu_file)(unsafe.Pointer(p)).FapShm + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*Trbu_file)(unsafe.Pointer(p)).FapShm)
@@ -187965,7 +190120,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+32981, 0)
+ (*Tsqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, __ccgo_ts+33007, 0)
} else {
if rc == int32(SQLITE_NOTFOUND) {
(*Tsqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p
@@ -187991,7 +190146,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+33004, libc.VaList(bp+16, (*Trbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn))
+ zOut = Xsqlite3_mprintf(tls, __ccgo_ts+33030, 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)
@@ -188192,7 +190347,7 @@ func _rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flag
if pDb != 0 {
if (*Trbu_file)(unsafe.Pointer(pDb)).FpRbu != 0 && (*Tsqlite3rbu)(unsafe.Pointer((*Trbu_file)(unsafe.Pointer(pDb)).FpRbu)).FeStage == int32(RBU_STAGE_OAL) {
if (*Tsqlite3rbu)(unsafe.Pointer((*Trbu_file)(unsafe.Pointer(pDb)).FpRbu)).FzTarget == uintptr(0) {
- zOpen = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer((*Trbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, __ccgo_ts+6560)
+ zOpen = Xsqlite3_db_filename(tls, (*Tsqlite3rbu)(unsafe.Pointer((*Trbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, __ccgo_ts+6585)
zOpen = Xsqlite3_filename_wal(tls, zOpen)
}
nOpen = libc.Xstrlen(tls, zOpen)
@@ -188206,7 +190361,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+33015, 0) != 0 {
+ if oflags&int32(SQLITE_OPEN_MAIN_DB) != 0 && Xsqlite3_uri_boolean(tls, zName, __ccgo_ts+33041, 0) != 0 {
_ = libc.Int32FromInt32(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)
@@ -188761,7 +190916,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+12166, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(argv + 3*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+12191, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(argv + 3*8))))
return int32(SQLITE_ERROR)
}
} else {
@@ -188832,16 +190987,17 @@ func _statBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) (r int32) {
return int32(SQLITE_CONSTRAINT)
}
switch (*(*Tsqlite3_index_constraint)(unsafe.Pointer((*Tsqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint + uintptr(i)*12))).FiColumn {
- case 0:
+ case 0: /* name */
iName = i
- case int32(10):
+ case int32(10): /* schema */
iSchema = i
- case int32(11):
+ case int32(11): /* aggregate */
iAgg = i
break
}
goto _1
_1:
+ ;
i++
}
i = 0
@@ -188909,6 +191065,7 @@ func _statClearCells(tls *libc.TLS, p uintptr) {
Xsqlite3_free(tls, (*(*TStatCell)(unsafe.Pointer((*TStatPage)(unsafe.Pointer(p)).FaCell + uintptr(i)*32))).FaOvfl)
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TStatPage)(unsafe.Pointer(p)).FaCell)
@@ -188944,6 +191101,7 @@ func _statResetCsr(tls *libc.TLS, pCsr uintptr) {
(*(*TStatPage)(unsafe.Pointer(pCsr + 24 + uintptr(i)*64))).FaPg = uintptr(0)
goto _1
_1:
+ ;
i++
}
Xsqlite3_reset(tls, (*TStatCursor)(unsafe.Pointer(pCsr)).FpStmt)
@@ -189140,17 +191298,20 @@ func _statDecodePage(tls *libc.TLS, pBt uintptr, p uintptr) (r int32) {
_sqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
goto _5
_5:
+ ;
j++
}
}
}
goto _3
_3:
+ ;
i++
}
}
return SQLITE_OK
statPageIsCorrupt:
+ ;
(*TStatPage)(unsafe.Pointer(p)).Fflags = uint8(0)
_statClearCells(tls, p)
return SQLITE_OK
@@ -189240,6 +191401,7 @@ func _statNext(tls *libc.TLS, pCursor uintptr) (r int32) {
Xsqlite3_free(tls, (*TStatCursor)(unsafe.Pointer(pCsr)).FzPath)
(*TStatCursor)(unsafe.Pointer(pCsr)).FzPath = uintptr(0)
statNextRestart:
+ ;
if (*TStatCursor)(unsafe.Pointer(pCsr)).FiPage < 0 {
/* Start measuring space on the next btree */
_statResetCounts(tls, pCsr)
@@ -189255,7 +191417,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+33026, 0)
+ v1 = Xsqlite3_mprintf(tls, __ccgo_ts+33052, 0)
z = v1
(*(*TStatPage)(unsafe.Pointer(pCsr + 24))).FzPath = v1
if z == uintptr(0) {
@@ -189293,8 +191455,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 + 33028
- v2 = Xsqlite3_mprintf(tls, __ccgo_ts+33037, libc.VaList(bp+16, (*TStatPage)(unsafe.Pointer(p)).FzPath, (*TStatPage)(unsafe.Pointer(p)).FiCell, iOvfl))
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33054
+ v2 = Xsqlite3_mprintf(tls, __ccgo_ts+33063, 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) {
@@ -189323,7 +191485,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(222302))
+ return _sqlite3CorruptError(tls, int32(222430))
}
_ = libc.Int32FromInt32(0)
if (*TStatPage)(unsafe.Pointer(p)).FiCell == (*TStatPage)(unsafe.Pointer(p)).FnCell {
@@ -189335,7 +191497,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+33049, libc.VaList(bp+16, (*TStatPage)(unsafe.Pointer(p)).FzPath, (*TStatPage)(unsafe.Pointer(p)).FiCell))
+ v4 = Xsqlite3_mprintf(tls, __ccgo_ts+33075, 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) {
@@ -189355,16 +191517,16 @@ statNextRestart:
if rc == SQLITE_OK {
_statSizeAndOffset(tls, pCsr)
switch int32((*TStatPage)(unsafe.Pointer(p1)).Fflags) {
- case int32(0x05):
+ case int32(0x05): /* table internal */
fallthrough
- case int32(0x02):
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33057
- case int32(0x0D):
+ case int32(0x02): /* index internal */
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33083
+ case int32(0x0D): /* table leaf */
fallthrough
- case int32(0x0A):
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33066
+ case int32(0x0A): /* index leaf */
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33092
default:
- (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33071
+ (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype = __ccgo_ts + 33097
break
}
*(*int32)(unsafe.Pointer(pCsr + 2108)) += (*TStatPage)(unsafe.Pointer(p1)).FnCell
@@ -189389,6 +191551,7 @@ statNextRestart:
nPayload += (*(*TStatCell)(unsafe.Pointer((*TStatPage)(unsafe.Pointer(p1)).FaCell + uintptr(i)*32))).FnLocal
goto _6
_6:
+ ;
i++
}
*(*Ti64)(unsafe.Pointer(pCsr + 2128)) += int64(nPayload)
@@ -189461,12 +191624,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+33081, 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+33107, 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+33236, libc.VaList(bp+8, zName))
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+33262, libc.VaList(bp+8, zName))
}
if idxNum&int32(0x08) != 0 {
- Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+33250, 0)
+ Xsqlite3_str_appendf(tls, pSql, __ccgo_ts+33276, 0)
}
zSql = Xsqlite3_str_finish(tls, pSql)
if zSql == uintptr(0) {
@@ -189488,37 +191651,37 @@ func _statColumn(tls *libc.TLS, pCursor uintptr, ctx uintptr, i int32) (r int32)
_, _, _ = db, iDb, pCsr
pCsr = pCursor
switch i {
- case 0:
+ case 0: /* name */
Xsqlite3_result_text(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FzName, -int32(1), uintptr(-libc.Int32FromInt32(1)))
- case int32(1):
+ case int32(1): /* path */
if !((*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0) {
Xsqlite3_result_text(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FzPath, -int32(1), uintptr(-libc.Int32FromInt32(1)))
}
- case int32(2):
+ case int32(2): /* pageno */
if (*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0 {
Xsqlite3_result_int64(tls, ctx, int64((*TStatCursor)(unsafe.Pointer(pCsr)).FnPage))
} else {
Xsqlite3_result_int64(tls, ctx, int64((*TStatCursor)(unsafe.Pointer(pCsr)).FiPageno))
}
- case int32(3):
+ case int32(3): /* pagetype */
if !((*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0) {
Xsqlite3_result_text(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FzPagetype, -int32(1), libc.UintptrFromInt32(0))
}
- case int32(4):
+ case int32(4): /* ncell */
Xsqlite3_result_int64(tls, ctx, int64((*TStatCursor)(unsafe.Pointer(pCsr)).FnCell))
- case int32(5):
+ case int32(5): /* payload */
Xsqlite3_result_int64(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FnPayload)
- case int32(6):
+ case int32(6): /* unused */
Xsqlite3_result_int64(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FnUnused)
- case int32(7):
+ case int32(7): /* mx_payload */
Xsqlite3_result_int64(tls, ctx, int64((*TStatCursor)(unsafe.Pointer(pCsr)).FnMxPayload))
- case int32(8):
+ case int32(8): /* pgoffset */
if !((*TStatCursor)(unsafe.Pointer(pCsr)).FisAgg != 0) {
Xsqlite3_result_int64(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FiOffset)
}
- case int32(9):
+ case int32(9): /* pgsize */
Xsqlite3_result_int64(tls, ctx, (*TStatCursor)(unsafe.Pointer(pCsr)).FszPage)
- case int32(10):
+ case int32(10): /* schema */
db = Xsqlite3_context_db_handle(tls, ctx)
iDb = (*TStatCursor)(unsafe.Pointer(pCsr)).FiDb
Xsqlite3_result_text(tls, ctx, (*(*TDb)(unsafe.Pointer((*Tsqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32))).FzDbSName, -int32(1), libc.UintptrFromInt32(0))
@@ -189543,7 +191706,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+33265, uintptr(unsafe.Pointer(&_dbstat_module)), uintptr(0))
+ return Xsqlite3_create_module(tls, db, __ccgo_ts+33291, uintptr(unsafe.Pointer(&_dbstat_module)), uintptr(0))
}
var _dbstat_module = Tsqlite3_module{}
@@ -190214,6 +192377,7 @@ func _sessionHashAppendBlob(tls *libc.TLS, h uint32, n int32, z uintptr) (r uint
h = h<<int32(3) ^ h ^ uint32(*(*Tu8)(unsafe.Pointer(z + uintptr(i))))
goto _1
_1:
+ ;
i++
}
return h
@@ -190305,6 +192469,7 @@ func _sessionPreupdateHash(tls *libc.TLS, pSession uintptr, iRowid Ti64, pTab ui
}
goto _1
_1:
+ ;
i++
}
}
@@ -190391,6 +192556,7 @@ func _sessionChangeHash(tls *libc.TLS, pTab uintptr, bPkOnly int32, aRecord uint
}
goto _1
_1:
+ ;
i++
}
return h % uint32(nBucket)
@@ -190433,6 +192599,7 @@ func _sessionChangeEqual(tls *libc.TLS, pTab uintptr, bLeftPkOnly int32, aLeft u
}
goto _1
_1:
+ ;
iCol++
}
return int32(1)
@@ -190478,6 +192645,7 @@ func _sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr
a2 += uintptr(n2)
goto _1
_1:
+ ;
iCol++
}
*(*uintptr)(unsafe.Pointer(paOut)) = aOut
@@ -190577,6 +192745,7 @@ func _sessionMergeUpdate(tls *libc.TLS, paOut uintptr, pTab uintptr, bPatchset i
}
goto _1
_1:
+ ;
i++
}
if !(bRequired != 0) {
@@ -190605,6 +192774,7 @@ func _sessionMergeUpdate(tls *libc.TLS, paOut uintptr, pTab uintptr, bPatchset i
}
goto _3
_3:
+ ;
i++
}
*(*uintptr)(unsafe.Pointer(paOut)) = aOut
@@ -190700,6 +192870,7 @@ func _sessionPreupdateEqual(tls *libc.TLS, pSession uintptr, iRowid Ti64, pTab u
}
goto _1
_1:
+ ;
iCol++
}
return int32(1)
@@ -190755,10 +192926,12 @@ func _sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uin
*(*uintptr)(unsafe.Pointer(apNew + uintptr(iHash)*8)) = p
goto _3
_3:
+ ;
p = pNext
}
goto _2
_2:
+ ;
i++
}
_sessionFree(tls, pSession, (*TSessionTable)(unsafe.Pointer(pTab)).FapChange)
@@ -190822,11 +192995,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+11557, zThis) {
+ if nThis == int32(12) && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+11582, 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+33272, 0)
+ zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+33298, 0)
} else {
if rc == int32(SQLITE_ERROR) {
zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+1648, 0)
@@ -190835,7 +193008,7 @@ func _sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
}
}
} else {
- zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+33393, libc.VaList(bp+16, zDb, zThis))
+ zPragma = Xsqlite3_mprintf(tls, __ccgo_ts+33419, libc.VaList(bp+16, zDb, zThis))
}
if !(zPragma != 0) {
return int32(SQLITE_NOMEM)
@@ -190859,7 +193032,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+29614))
+ nByte = Tsqlite3_int64(uint64(nByte) + libc.Xstrlen(tls, __ccgo_ts+29640))
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(1)+libc.Uint64FromInt32(1)+libc.Uint64FromInt32(1)))
@@ -190883,8 +193056,8 @@ func _sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr,
}
i = 0
if bRowid != 0 {
- nName = libc.Xstrlen(tls, __ccgo_ts+29614)
- libc.Xmemcpy(tls, pAlloc, __ccgo_ts+29614, nName+uint64(1))
+ nName = libc.Xstrlen(tls, __ccgo_ts+29640)
+ libc.Xmemcpy(tls, pAlloc, __ccgo_ts+29640, nName+uint64(1))
*(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)) = pAlloc
pAlloc += uintptr(nName + uint64(1))
*(*Tu8)(unsafe.Pointer(abPK + uintptr(i))) = uint8(1)
@@ -190974,9 +193147,10 @@ func _sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr, db uintptr
}
goto _2
_2:
+ ;
i++
}
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+11557, (*TSessionTable)(unsafe.Pointer(pTab)).FzName) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+11582, (*TSessionTable)(unsafe.Pointer(pTab)).FzName) {
(*TSessionTable)(unsafe.Pointer(pTab)).FbStat1 = int32(1)
}
if pSession != 0 && (*Tsqlite3_session)(unsafe.Pointer(pSession)).FbEnableSize != 0 {
@@ -191041,6 +193215,7 @@ func _sessionReinitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) (r int32
}
goto _2
_2:
+ ;
ii++
}
if (*Tsqlite3_session)(unsafe.Pointer(pSession)).Frc == SQLITE_OK {
@@ -191267,10 +193442,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 + 11177
+ zSep = __ccgo_ts + 11202
ii = 0
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
- _sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+33422, 0)
+ _sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+33448, 0)
ii = 0
for {
if !(ii < (*TSessionTable)(unsafe.Pointer(pTab)).FnCol) {
@@ -191282,10 +193457,11 @@ func _sessionPrepareDfltStmt(tls *libc.TLS, db uintptr, pTab uintptr, ppStmt uin
v2 = __ccgo_ts + 1649
}
zDflt = v2
- _sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+5051, libc.VaList(bp+32, zSep, zDflt))
- zSep = __ccgo_ts + 14965
+ _sessionAppendPrintf(tls, bp, bp+16, __ccgo_ts+5076, libc.VaList(bp+32, zSep, zDflt))
+ zSep = __ccgo_ts + 14990
goto _1
_1:
+ ;
ii++
}
if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK {
@@ -191331,10 +193507,12 @@ func _sessionUpdateChanges(tls *libc.TLS, pSession uintptr, pTab uintptr) (r int
}
goto _2
_2:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 24
}
goto _1
_1:
+ ;
ii++
}
}
@@ -191444,6 +193622,7 @@ func _sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintp
_sessionSerializeValue(tls, uintptr(0), *(*uintptr)(unsafe.Pointer(bp + 8)), bp)
goto _1
_1:
+ ;
ii++
}
}
@@ -191518,6 +193697,7 @@ func _sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintp
}
goto _2
_2:
+ ;
ii1++
}
}
@@ -191619,6 +193799,7 @@ func _sessionPreupdateOneChange(tls *libc.TLS, op int32, iRowid Ti64, pSession u
}
goto _1
_1:
+ ;
pC = (*TSessionChange)(unsafe.Pointer(pC)).FpNext
}
if pC == uintptr(0) { /* Used to iterate through columns */
@@ -191649,6 +193830,7 @@ func _sessionPreupdateOneChange(tls *libc.TLS, op int32, iRowid Ti64, pSession u
}
goto _2
_2:
+ ;
i++
}
if (*TSessionTable)(unsafe.Pointer(pTab)).FbRowid != 0 {
@@ -191689,6 +193871,7 @@ func _sessionPreupdateOneChange(tls *libc.TLS, op int32, iRowid Ti64, pSession u
_sessionSerializeValue(tls, (*TSessionChange)(unsafe.Pointer(pC)).FaRecord+uintptr(*(*Tsqlite3_int64)(unsafe.Pointer(bp + 56))), *(*uintptr)(unsafe.Pointer(bp + 72)), bp+56)
goto _3
_3:
+ ;
i++
}
/* Add the change to the hash-table */
@@ -191716,6 +193899,7 @@ func _sessionPreupdateOneChange(tls *libc.TLS, op int32, iRowid Ti64, pSession u
}
/* If an error has occurred, mark the session object as failed. */
error_out:
+ ;
if (*TSessionTable)(unsafe.Pointer(pTab)).FbStat1 != 0 {
(*Tsqlite3_session)(unsafe.Pointer(pSession)).Fhook = (*(*TSessionStat1Ctx)(unsafe.Pointer(bp + 8))).Fhook
}
@@ -191741,6 +193925,7 @@ func _sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uin
}
goto _1
_1:
+ ;
pRet = (*TSessionTable)(unsafe.Pointer(pRet)).FpNext
}
if pRet == uintptr(0) && (*Tsqlite3_session)(unsafe.Pointer(pSession)).FbAutoAttach != 0 {
@@ -191807,6 +193992,7 @@ func _xPreUpdate(tls *libc.TLS, pCtx uintptr, db uintptr, op int32, zDb uintptr,
}
goto _1
_1:
+ ;
pSession = (*Tsqlite3_session)(unsafe.Pointer(pSession)).FpNext
}
}
@@ -191929,14 +194115,15 @@ 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+33429, 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 + 21979
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+33455, 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 + 22013
if zRet == uintptr(0) {
break
}
}
goto _1
_1:
+ ;
i++
}
return zRet
@@ -191958,14 +194145,15 @@ 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+33463, 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 + 33504
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+33489, 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 + 33530
if zRet == uintptr(0) {
break
}
}
goto _1
_1:
+ ;
i++
}
if bHave == 0 {
@@ -191981,12 +194169,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 + 33509
+ v1 = __ccgo_ts + 33535
} else {
- v1 = __ccgo_ts + 6565
+ v1 = __ccgo_ts + 6590
}
zSel = v1
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+33520, libc.VaList(bp+8, zSel, zDb1, zTbl, zDb2, zTbl, zExpr))
+ zRet = Xsqlite3_mprintf(tls, __ccgo_ts+33546, libc.VaList(bp+8, zSel, zDb1, zTbl, zDb2, zTbl, zExpr))
return zRet
}
@@ -192047,16 +194235,17 @@ func _sessionAllCols(tls *libc.TLS, zDb uintptr, pTab uintptr) (r uintptr) {
break
}
if zRet != 0 {
- v2 = __ccgo_ts + 14965
+ v2 = __ccgo_ts + 14990
} else {
v2 = __ccgo_ts + 1648
}
- zRet = Xsqlite3_mprintf(tls, __ccgo_ts+33599, 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+33625, 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
}
goto _1
_1:
+ ;
ii++
}
return zRet
@@ -192078,7 +194267,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+33618, 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+33644, 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 {
@@ -192170,6 +194359,7 @@ func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl u
}
goto _2
_2:
+ ;
i++
}
}
@@ -192177,7 +194367,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+33675, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+33701, 0)
}
rc = int32(SQLITE_SCHEMA)
}
@@ -192204,6 +194394,7 @@ func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl u
Xsqlite3_free(tls, zExpr)
}
diff_out:
+ ;
_sessionPreupdateHooks(tls, pSession)
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, (*Tsqlite3_session)(unsafe.Pointer(pSession)).Fdb))
return rc
@@ -192274,10 +194465,12 @@ func _sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) {
_sessionFree(tls, pSession, p)
goto _3
_3:
+ ;
p = pNextChange
}
goto _2
_2:
+ ;
i++
}
Xsqlite3_finalize(tls, (*TSessionTable)(unsafe.Pointer(pTab)).FpDfltStmt)
@@ -192286,6 +194479,7 @@ func _sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) {
_sessionFree(tls, pSession, pTab)
goto _1
_1:
+ ;
pTab = pNext
}
}
@@ -192320,6 +194514,7 @@ func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 80
}
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db))
@@ -192374,6 +194569,7 @@ func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) (r i
}
goto _1
_1:
+ ;
pTab = (*TSessionTable)(unsafe.Pointer(pTab)).FpNext
}
if !(pTab != 0) {
@@ -192393,6 +194589,7 @@ func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) (r i
}
goto _2
_2:
+ ;
ppTab = *(*uintptr)(unsafe.Pointer(ppTab))
}
*(*uintptr)(unsafe.Pointer(ppTab)) = pTab
@@ -192501,7 +194698,7 @@ func _sessionAppendInteger(tls *libc.TLS, p uintptr, iVal int32, pRc uintptr) {
bp := tls.Alloc(48)
defer tls.Free(48)
var _ /* aBuf at bp+0 */ [24]uint8
- Xsqlite3_snprintf(tls, int32(libc.Uint64FromInt64(24)-libc.Uint64FromInt32(1)), bp, __ccgo_ts+5113, libc.VaList(bp+32, iVal))
+ Xsqlite3_snprintf(tls, int32(libc.Uint64FromInt64(24)-libc.Uint64FromInt32(1)), bp, __ccgo_ts+5138, libc.VaList(bp+32, iVal))
_sessionAppendStr(tls, p, bp, pRc)
}
@@ -192700,6 +194897,7 @@ func _sessionAppendUpdate(tls *libc.TLS, pBuf uintptr, bPatchset int32, pStmt ui
pCsr += uintptr(nAdvance)
goto _1
_1:
+ ;
i++
}
if bNoop != 0 {
@@ -192761,6 +194959,7 @@ func _sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintpt
}
goto _1
_1:
+ ;
i++
}
_ = libc.Int32FromInt32(0)
@@ -192796,21 +194995,21 @@ func _sessionSelectStmt(tls *libc.TLS, db uintptr, bIgnoreNoop int32, zDb uintpt
zSql = uintptr(0)
zSep = __ccgo_ts + 1648
if bRowid != 0 {
- v1 = __ccgo_ts + 33509
+ v1 = __ccgo_ts + 33535
} else {
- v1 = __ccgo_ts + 6565
+ v1 = __ccgo_ts + 6590
}
zCols = v1
nSql = -int32(1)
*(*TSessionBuffer)(unsafe.Pointer(bp + 8)) = TSessionBuffer{}
*(*TSessionBuffer)(unsafe.Pointer(bp + 24)) = TSessionBuffer{}
*(*TSessionBuffer)(unsafe.Pointer(bp + 40)) = TSessionBuffer{}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33702, bp)
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+11557, zTab) {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33706, bp)
- _sessionAppendStr(tls, bp+24, __ccgo_ts+33730, bp)
- _sessionAppendStr(tls, bp+40, __ccgo_ts+33739, bp)
- zCols = __ccgo_ts + 33784
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33728, bp)
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+11582, zTab) {
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33732, bp)
+ _sessionAppendStr(tls, bp+24, __ccgo_ts+33756, bp)
+ _sessionAppendStr(tls, bp+40, __ccgo_ts+33765, bp)
+ zCols = __ccgo_ts + 33810
} else {
i = 0
for {
@@ -192820,14 +195019,15 @@ func _sessionSelectStmt(tls *libc.TLS, db uintptr, bIgnoreNoop int32, zDb uintpt
if *(*Tu8)(unsafe.Pointer(abPK + uintptr(i))) != 0 {
_sessionAppendStr(tls, bp+24, zSep, bp)
_sessionAppendStr(tls, bp+40, zSep, bp)
- zSep = __ccgo_ts + 14965
+ zSep = __ccgo_ts + 14990
_sessionAppendIdent(tls, bp+24, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), bp)
- _sessionAppendPrintf(tls, bp+40, bp, __ccgo_ts+33798, libc.VaList(bp+64, i+int32(1)))
+ _sessionAppendPrintf(tls, bp+40, bp, __ccgo_ts+33824, libc.VaList(bp+64, i+int32(1)))
} else {
- _sessionAppendPrintf(tls, bp+8, bp, __ccgo_ts+33802, libc.VaList(bp+64, i+int32(1)+nCol, i+int32(1), zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
+ _sessionAppendPrintf(tls, bp+8, bp, __ccgo_ts+33828, libc.VaList(bp+64, i+int32(1)+nCol, i+int32(1), zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))))
}
goto _2
_2:
+ ;
i++
}
}
@@ -192837,7 +195037,7 @@ func _sessionSelectStmt(tls *libc.TLS, db uintptr, bIgnoreNoop int32, zDb uintpt
} else {
v3 = __ccgo_ts + 1648
}
- zSql = Xsqlite3_mprintf(tls, __ccgo_ts+33829, libc.VaList(bp+64, zCols, v3, zDb, zTab, (*(*TSessionBuffer)(unsafe.Pointer(bp + 24))).FaBuf, (*(*TSessionBuffer)(unsafe.Pointer(bp + 40))).FaBuf))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+33855, libc.VaList(bp+64, zCols, v3, zDb, zTab, (*(*TSessionBuffer)(unsafe.Pointer(bp + 24))).FaBuf, (*(*TSessionBuffer)(unsafe.Pointer(bp + 40))).FaBuf))
if zSql == uintptr(0) {
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_NOMEM)
}
@@ -192918,6 +195118,7 @@ func _sessionSelectBind(tls *libc.TLS, pSelect uintptr, nCol int32, abPK uintptr
}
goto _1
_1:
+ ;
i++
}
return rc
@@ -192982,7 +195183,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+33871, uintptr(0), uintptr(0), uintptr(0))
+ *(*int32)(unsafe.Pointer(bp + 16)) = Xsqlite3_exec(tls, (*Tsqlite3_session)(unsafe.Pointer(pSession)).Fdb, __ccgo_ts+33897, uintptr(0), uintptr(0), uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 16)) != SQLITE_OK {
return *(*int32)(unsafe.Pointer(bp + 16))
}
@@ -193035,6 +195236,7 @@ func _sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32,
_sessionAppendCol(tls, bp, *(*uintptr)(unsafe.Pointer(bp + 24)), iCol, bp+16)
goto _4
_4:
+ ;
iCol++
}
} else {
@@ -193058,10 +195260,12 @@ func _sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32,
}
goto _3
_3:
+ ;
p = (*TSessionChange)(unsafe.Pointer(p)).FpNext
}
goto _2
_2:
+ ;
i++
}
Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 24)))
@@ -193071,6 +195275,7 @@ func _sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32,
}
goto _1
_1:
+ ;
pTab = (*TSessionTable)(unsafe.Pointer(pTab)).FpNext
}
if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK {
@@ -193085,7 +195290,7 @@ func _sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32,
}
}
Xsqlite3_free(tls, (*(*TSessionBuffer)(unsafe.Pointer(bp))).FaBuf)
- Xsqlite3_exec(tls, db, __ccgo_ts+33891, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+33917, uintptr(0), uintptr(0), uintptr(0))
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db))
return *(*int32)(unsafe.Pointer(bp + 16))
}
@@ -193204,6 +195409,7 @@ func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) (r int32) {
ret = libc.BoolInt32((*TSessionTable)(unsafe.Pointer(pTab)).FnEntry > 0)
goto _1
_1:
+ ;
pTab = (*TSessionTable)(unsafe.Pointer(pTab)).FpNext
}
Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, (*Tsqlite3_session)(unsafe.Pointer(pSession)).Fdb))
@@ -193422,6 +195628,7 @@ func _sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) {
}
goto _1
_1:
+ ;
i++
}
*(*uintptr)(unsafe.Pointer(ppRec)) = aRec
@@ -193504,7 +195711,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(226451))
+ rc = _sqlite3CorruptError(tls, int32(226579))
} else {
v3 = pIn + 8
v2 = *(*int32)(unsafe.Pointer(v3))
@@ -193529,7 +195736,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(226471))
+ rc = _sqlite3CorruptError(tls, int32(226599))
} else {
if eType == int32(SQLITE_TEXT) {
v4 = int32(SQLITE_UTF8)
@@ -193544,7 +195751,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(226481))
+ rc = _sqlite3CorruptError(tls, int32(226609))
} else {
*(*Tsqlite3_int64)(unsafe.Pointer(bp + 8)) = _sessionGetI64(tls, aVal)
if eType == int32(SQLITE_INTEGER) {
@@ -193559,6 +195766,7 @@ func _sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, ap
}
goto _1
_1:
+ ;
i++
}
return rc
@@ -193599,7 +195807,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(226529))
+ rc = _sqlite3CorruptError(tls, int32(226657))
} else {
rc = _sessionInputBuffer(tls, pIn, nRead+*(*int32)(unsafe.Pointer(bp))+int32(100))
nRead += *(*int32)(unsafe.Pointer(bp))
@@ -193659,6 +195867,7 @@ func _sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByt
}
goto _1
_1:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pnByte)) = nByte
@@ -193704,7 +195913,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(226617))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(226745))
}
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -193764,6 +195973,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
_sqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
libc.Xmemset(tls, (*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue, 0, uint64(8)*uint64((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*uint64(2))
@@ -193812,7 +196022,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
/* The first record in the changeset is not a table header. Must be a
** corrupt changeset. */
_ = libc.Int32FromInt32(0)
- v7 = _sqlite3CorruptError(tls, int32(226703))
+ v7 = _sqlite3CorruptError(tls, int32(226831))
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Frc = v7
return v7
}
@@ -193822,7 +196032,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(226709))
+ v10 = _sqlite3CorruptError(tls, int32(226837))
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Frc = v10
return v10
}
@@ -193842,6 +196052,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
}
goto _11
_11:
+ ;
i++
}
} else {
@@ -193902,7 +196113,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
_ = libc.Int32FromInt32(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(226753))
+ v16 = _sqlite3CorruptError(tls, int32(226881))
(*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).Frc = v16
return v16
}
@@ -193910,6 +196121,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
}
goto _15
_15:
+ ;
i++
}
} else {
@@ -193942,6 +196154,7 @@ func _sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uin
}
goto _17
_17:
+ ;
i++
}
}
@@ -194150,6 +196363,7 @@ func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) (r int32) {
_sqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer((*Tsqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
}
@@ -194271,6 +196485,7 @@ func _sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOu
_sessionAppendValue(tls, bp+8, pVal, bp)
goto _4
_4:
+ ;
iCol++
}
/* Write the new new.* record. Consists of a copy of all values
@@ -194290,6 +196505,7 @@ func _sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOu
_sessionAppendValue(tls, bp+8, pVal1, bp)
goto _6
_6:
+ ;
iCol++
}
iCol = 0
@@ -194300,6 +196516,7 @@ func _sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOu
_sqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(iCol)*8)))
goto _8
_8:
+ ;
iCol++
}
libc.Xmemset(tls, apVal, 0, uint64(8)*uint64(*(*int32)(unsafe.Pointer(bp + 24)))*uint64(2))
@@ -194307,7 +196524,7 @@ func _sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOu
goto finished_invert
}
default:
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(227118))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3CorruptError(tls, int32(227246))
goto finished_invert
}
_ = libc.Int32FromInt32(0)
@@ -194330,6 +196547,7 @@ func _sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOu
}
}
finished_invert:
+ ;
Xsqlite3_free(tls, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FaBuf)
Xsqlite3_free(tls, apVal)
Xsqlite3_free(tls, (*(*TSessionBuffer)(unsafe.Pointer(bp + 32))).FaBuf)
@@ -194476,6 +196694,7 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
}
goto _1
_1:
+ ;
ii++
}
}
@@ -194509,7 +196728,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+11557) == 0)
+ bStat1 = libc.BoolInt32(Xsqlite3_stricmp(tls, (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, __ccgo_ts+11582) == 0)
pUp = Xsqlite3_malloc(tls, nByte)
if pUp == uintptr(0) {
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_NOMEM)
@@ -194518,9 +196737,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+33909, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33935, bp)
_sessionAppendIdent(tls, bp+8, (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33922, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33948, bp)
/* Create the assignments part of the UPDATE */
ii = 0
for {
@@ -194530,17 +196749,18 @@ 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+33928, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33954, bp)
_sessionAppendInteger(tls, bp+8, ii*int32(2)+int32(1), bp)
- zSep = __ccgo_ts + 14965
+ zSep = __ccgo_ts + 14990
}
goto _2
_2:
+ ;
ii++
}
/* Create the WHERE clause part of the UPDATE */
zSep = __ccgo_ts + 1648
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33933, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33959, bp)
ii = 0
for {
if !(ii < (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol) {
@@ -194550,16 +196770,17 @@ func _sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32
_sessionAppendStr(tls, bp+8, zSep, bp)
if bStat1 != 0 && ii == int32(1) {
_ = libc.Int32FromInt32(0)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33941, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33967, bp)
} else {
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+34016, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34042, bp)
_sessionAppendInteger(tls, bp+8, ii*int32(2)+int32(2), bp)
}
- zSep = __ccgo_ts + 21979
+ zSep = __ccgo_ts + 22013
}
goto _3
_3:
+ ;
ii++
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -194604,6 +196825,7 @@ func _sessionUpdateFree(tls *libc.TLS, p uintptr) {
Xsqlite3_free(tls, pUp)
goto _1
_1:
+ ;
pUp = pNext
}
(*TSessionApplyCtx)(unsafe.Pointer(p)).FpUp = uintptr(0)
@@ -194642,9 +196864,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+34022, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34048, bp)
_sessionAppendIdent(tls, bp+8, zTab, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33933, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33959, bp)
i = 0
for {
if !(i < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol) {
@@ -194654,18 +196876,19 @@ 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+33928, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33954, bp)
_sessionAppendInteger(tls, bp+8, i+int32(1), bp)
- zSep = __ccgo_ts + 21979
+ zSep = __ccgo_ts + 22013
}
goto _1
_1:
+ ;
i++
}
if nPk < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+34040, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34066, bp)
_sessionAppendInteger(tls, bp+8, (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol+int32(1), bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+33504, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+33530, bp)
zSep = __ccgo_ts + 1648
i = 0
for {
@@ -194675,15 +196898,16 @@ 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+34016, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34042, bp)
_sessionAppendInteger(tls, bp+8, i+int32(1), bp)
- zSep = __ccgo_ts + 34048
+ zSep = __ccgo_ts + 34074
}
goto _2
_2:
+ ;
i++
}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+5081, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+5106, bp)
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_prepare_v2(tls, db, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FaBuf, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FnBuf, p+8, uintptr(0))
@@ -194709,7 +196933,7 @@ func _sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r in
// */
func _sessionSelectRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) (r int32) {
/* TODO */
- return _sessionSelectStmt(tls, db, int32((*TSessionApplyCtx)(unsafe.Pointer(p)).FbIgnoreNoop), __ccgo_ts+6560, zTab, (*TSessionApplyCtx)(unsafe.Pointer(p)).FbRowid, (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*TSessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24)
+ return _sessionSelectStmt(tls, db, int32((*TSessionApplyCtx)(unsafe.Pointer(p)).FbIgnoreNoop), __ccgo_ts+6585, zTab, (*TSessionApplyCtx)(unsafe.Pointer(p)).FbRowid, (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*TSessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24)
}
// C documentation
@@ -194732,34 +196956,36 @@ 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+34053, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34079, bp)
_sessionAppendIdent(tls, bp+8, zTab, bp)
- _sessionAppendStr(tls, bp+8, __ccgo_ts+21985, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+22019, bp)
i = 0
for {
if !(i < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol) {
break
}
if i != 0 {
- _sessionAppendStr(tls, bp+8, __ccgo_ts+14965, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+14990, bp)
}
_sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer((*TSessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp)
goto _1
_1:
+ ;
i++
}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+34071, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34097, bp)
i = int32(1)
for {
if !(i < (*TSessionApplyCtx)(unsafe.Pointer(p)).FnCol) {
break
}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+34082, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+34108, bp)
goto _2
_2:
+ ;
i++
}
- _sessionAppendStr(tls, bp+8, __ccgo_ts+5081, bp)
+ _sessionAppendStr(tls, bp+8, __ccgo_ts+5106, bp)
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_prepare_v2(tls, db, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FaBuf, (*(*TSessionBuffer)(unsafe.Pointer(bp + 8))).FnBuf, p+16, uintptr(0))
}
@@ -194782,12 +197008,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+11557, p)
+ rc = _sessionSelectRow(tls, db, __ccgo_ts+11582, p)
if rc == SQLITE_OK {
- rc = _sessionPrepare(tls, db, p+16, __ccgo_ts+34086)
+ rc = _sessionPrepare(tls, db, p+16, __ccgo_ts+34112)
}
if rc == SQLITE_OK {
- rc = _sessionPrepare(tls, db, p+8, __ccgo_ts+34199)
+ rc = _sessionPrepare(tls, db, p+8, __ccgo_ts+34225)
}
return rc
}
@@ -194854,13 +197080,14 @@ 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(227600))
+ rc = _sqlite3CorruptError(tls, int32(227728))
} else {
rc = _sessionBindValue(tls, pStmt, i+int32(1), *(*uintptr)(unsafe.Pointer(bp)))
}
}
goto _1
_1:
+ ;
i++
}
return rc
@@ -194920,6 +197147,7 @@ func _sessionSeekToRow(tls *libc.TLS, pIter uintptr, p uintptr) (r int32) {
}
goto _2
_2:
+ ;
ii++
}
}
@@ -194987,6 +197215,7 @@ func _sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) (r
_sessionAppendValue(tls, p+104, *(*uintptr)(unsafe.Pointer(bp + 8)), bp)
goto _2
_2:
+ ;
i++
}
}
@@ -195194,6 +197423,7 @@ func _sessionApplyOneOp(tls *libc.TLS, pIter uintptr, p uintptr, xConflict uintp
}
goto _2
_2:
+ ;
i++
}
if rc != SQLITE_OK {
@@ -195278,7 +197508,7 @@ func _sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply
} else {
if *(*int32)(unsafe.Pointer(bp)) != 0 {
_ = libc.Int32FromInt32(0)
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+34343, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+34369, 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))
@@ -195291,7 +197521,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+34364, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+34390, uintptr(0), uintptr(0), uintptr(0))
}
}
}
@@ -195387,10 +197617,10 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
(*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FbIgnoreNoop = libc.BoolUint8(!!(flags&libc.Int32FromInt32(SQLITE_CHANGESETAPPLY_IGNORENOOP) != 0))
Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, db))
if flags&int32(SQLITE_CHANGESETAPPLY_NOSAVEPOINT) == 0 {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+34383, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+34409, uintptr(0), uintptr(0), uintptr(0))
}
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+34409, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+34435, 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))
@@ -195431,7 +197661,7 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
} else {
nMinCol = 0
Xsqlite3changeset_pk(tls, pIter, bp+152, uintptr(0))
- rc = _sessionTableInfo(tls, uintptr(0), db, __ccgo_ts+6560, *(*uintptr)(unsafe.Pointer(bp + 144)), bp+8+32, bp, bp+8+40, uintptr(0), bp+8+48, bp+8+124)
+ rc = _sessionTableInfo(tls, uintptr(0), db, __ccgo_ts+6585, *(*uintptr)(unsafe.Pointer(bp + 144)), bp+8+32, bp, bp+8+40, uintptr(0), bp+8+48, bp+8+124)
if rc != SQLITE_OK {
break
}
@@ -195445,22 +197675,23 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
}
goto _1
_1:
+ ;
i++
}
if (*(*TSessionApplyCtx)(unsafe.Pointer(bp + 8))).FnCol == 0 {
schemaMismatch = int32(1)
- Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+34439, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp))))
+ Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+34465, 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+34483, 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+34509, 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+34554, libc.VaList(bp+328, *(*uintptr)(unsafe.Pointer(bp))))
+ Xsqlite3_log(tls, int32(SQLITE_SCHEMA), __ccgo_ts+34580, 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+11557) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp)), __ccgo_ts+11582) {
v2 = _sessionStat1Sql(tls, db, bp+8)
rc = v2
if v2 != 0 {
@@ -195517,13 +197748,13 @@ func _sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter ui
}
}
}
- Xsqlite3_exec(tls, db, __ccgo_ts+34614, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+34640, uintptr(0), uintptr(0), uintptr(0))
if flags&int32(SQLITE_CHANGESETAPPLY_NOSAVEPOINT) == 0 {
if rc == SQLITE_OK {
- rc = Xsqlite3_exec(tls, db, __ccgo_ts+34644, uintptr(0), uintptr(0), uintptr(0))
+ rc = Xsqlite3_exec(tls, db, __ccgo_ts+34670, uintptr(0), uintptr(0), uintptr(0))
} else {
- Xsqlite3_exec(tls, db, __ccgo_ts+34668, uintptr(0), uintptr(0), uintptr(0))
- Xsqlite3_exec(tls, db, __ccgo_ts+34644, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+34694, uintptr(0), uintptr(0), uintptr(0))
+ Xsqlite3_exec(tls, db, __ccgo_ts+34670, uintptr(0), uintptr(0), uintptr(0))
}
}
_ = libc.Int32FromInt32(0)
@@ -195682,6 +197913,7 @@ func _sessionChangeMerge(tls *libc.TLS, pTab uintptr, bRebase int32, bPatchset i
pIn += uintptr(nIn)
goto _1
_1:
+ ;
i++
}
(*TSessionChange)(unsafe.Pointer(pNew)).FnRecord = int32(int64(pOut) - int64((*TSessionChange)(unsafe.Pointer(pNew)).FaRecord))
@@ -195728,6 +197960,7 @@ func _sessionChangeMerge(tls *libc.TLS, pTab uintptr, bRebase int32, bPatchset i
a2 += uintptr(n2)
goto _5
_5:
+ ;
i1++
}
(*TSessionChange)(unsafe.Pointer(pNew)).FnRecord = int32(int64(pOut1) - int64((*TSessionChange)(unsafe.Pointer(pNew)).FaRecord))
@@ -195859,6 +198092,7 @@ func _sessionChangesetCheckCompat(tls *libc.TLS, pTab uintptr, nCol int32, abPK
}
goto _1
_1:
+ ;
ii++
}
return int32(1)
@@ -195924,6 +198158,7 @@ func _sessionChangesetExtendRecord(tls *libc.TLS, pGrp uintptr, pTab uintptr, nC
}
goto _1
_1:
+ ;
ii++
}
} else {
@@ -195940,6 +198175,7 @@ func _sessionChangesetExtendRecord(tls *libc.TLS, pGrp uintptr, pTab uintptr, nC
iOff += _sessionSerialLen(tls, aRec+uintptr(iOff))
goto _2
_2:
+ ;
ii++
}
_sessionAppendBlob(tls, pOut, aRec, iOff, bp)
@@ -195951,6 +198187,7 @@ func _sessionChangesetExtendRecord(tls *libc.TLS, pGrp uintptr, pTab uintptr, nC
_sessionAppendByte(tls, pOut, uint8(0x00), bp)
goto _3
_3:
+ ;
ii++
}
}
@@ -195963,6 +198200,7 @@ func _sessionChangesetExtendRecord(tls *libc.TLS, pGrp uintptr, pTab uintptr, nC
_sessionAppendByte(tls, pOut, uint8(0x00), bp)
goto _4
_4:
+ ;
ii++
}
} else {
@@ -196025,6 +198263,7 @@ func _sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase
}
goto _1
_1:
+ ;
pTab = (*TSessionTable)(unsafe.Pointer(pTab)).FpNext
}
if !(pTab != 0) {
@@ -196059,6 +198298,7 @@ func _sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase
}
goto _2
_2:
+ ;
ppTab = *(*uintptr)(unsafe.Pointer(ppTab))
}
*(*uintptr)(unsafe.Pointer(ppTab)) = pTab
@@ -196104,6 +198344,7 @@ func _sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase
}
goto _3
_3:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 24
}
rc = _sessionChangeMerge(tls, pTab, bRebase, (*Tsqlite3_changeset_iter)(unsafe.Pointer(pIter)).FbPatchset, pExist, *(*int32)(unsafe.Pointer(bp + 44)), *(*int32)(unsafe.Pointer(bp + 48)), *(*uintptr)(unsafe.Pointer(bp)), *(*int32)(unsafe.Pointer(bp + 8)), bp+56)
@@ -196185,14 +198426,17 @@ func _sessionChangegroupOutput(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOu
}
goto _3
_3:
+ ;
p = (*TSessionChange)(unsafe.Pointer(p)).FpNext
}
goto _2
_2:
+ ;
i++
}
goto _1
_1:
+ ;
pTab = (*TSessionTable)(unsafe.Pointer(pTab)).FpNext
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -196423,6 +198667,7 @@ func _sessionAppendRecordMerge(tls *libc.TLS, pBuf uintptr, nCol int32, a1 uintp
a2 += uintptr(nn2)
goto _1
_1:
+ ;
i++
}
(*TSessionBuffer)(unsafe.Pointer(pBuf)).FnBuf = int32(int64(pOut) - int64((*TSessionBuffer)(unsafe.Pointer(pBuf)).FaBuf))
@@ -196495,6 +198740,7 @@ func _sessionAppendPartialUpdate(tls *libc.TLS, pBuf uintptr, pIter uintptr, aRe
a2 += uintptr(n2)
goto _3
_3:
+ ;
i++
}
if bData != 0 {
@@ -196518,6 +198764,7 @@ func _sessionAppendPartialUpdate(tls *libc.TLS, pBuf uintptr, pIter uintptr, aRe
a2 += uintptr(n21)
goto _5
_5:
+ ;
i++
}
(*TSessionBuffer)(unsafe.Pointer(pBuf)).FnBuf = int32(int64(pOut) - int64((*TSessionBuffer)(unsafe.Pointer(pBuf)).FaBuf))
@@ -196575,6 +198822,7 @@ func _sessionRebase(tls *libc.TLS, p uintptr, pIter uintptr, xOutput uintptr, pO
}
goto _1
_1:
+ ;
pTab = (*TSessionTable)(unsafe.Pointer(pTab)).FpNext
}
*(*int32)(unsafe.Pointer(bp + 20)) = 0
@@ -196605,6 +198853,7 @@ func _sessionRebase(tls *libc.TLS, p uintptr, pIter uintptr, xOutput uintptr, pO
}
goto _3
_3:
+ ;
pChange = (*TSessionChange)(unsafe.Pointer(pChange)).FpNext
}
}
@@ -197952,23 +200201,23 @@ func _fts5yy_destructor(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor uint8,
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
- case int32(16):
+ case int32(16): /* input */
_ = pParse
- case int32(17):
+ case int32(17): /* expr */
fallthrough
- case int32(18):
+ case int32(18): /* cnearset */
fallthrough
- case int32(19):
+ case int32(19): /* exprlist */
_sqlite3Fts5ParseNodeFree(tls, *(*uintptr)(unsafe.Pointer(fts5yypminor)))
- case int32(20):
+ case int32(20): /* colset */
fallthrough
- case int32(21):
+ case int32(21): /* colsetlist */
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(fts5yypminor)))
- case int32(22):
+ case int32(22): /* nearset */
fallthrough
- case int32(23):
+ case int32(23): /* nearphrases */
_sqlite3Fts5ParseNearsetFree(tls, *(*uintptr)(unsafe.Pointer(fts5yypminor)))
- case int32(24):
+ case int32(24): /* phrase */
_sqlite3Fts5ParsePhraseFree(tls, *(*uintptr)(unsafe.Pointer(fts5yypminor)))
break
/********* End destructor definitions *****************************************/
@@ -198114,7 +200363,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+34696, 0)
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+34722, 0)
/******** End %stack_overflow code ********************************************/
(*Tfts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse /* Suppress warning about unused %extra_argument var */
}
@@ -198297,116 +200546,146 @@ func _fts5yy_reduce(tls *libc.TLS, fts5yypParser uintptr, fts5yyruleno uint32, f
goto _29
}
goto _30
-_1: /* input ::= expr */
+_1:
+ ; /* input ::= expr */
_sqlite3Fts5ParseFinished(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
goto _30
-_2: /* colset ::= MINUS LCP colsetlist RCP */
+_2:
+ ; /* colset ::= MINUS LCP colsetlist RCP */
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = _sqlite3Fts5ParseColsetInvert(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _30
-_3: /* colset ::= LCP colsetlist RCP */
+_3:
+ ; /* colset ::= LCP colsetlist RCP */
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _30
-_4: /* colset ::= STRING */
+_4:
+ ; /* colset ::= STRING */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseColset(tls, pParse, uintptr(0), fts5yymsp+8)
*(*uintptr)(unsafe.Pointer(fts5yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_5: /* colset ::= MINUS STRING */
+_5:
+ ; /* colset ::= MINUS STRING */
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3Fts5ParseColset(tls, pParse, uintptr(0), fts5yymsp+8)
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3Fts5ParseColsetInvert(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)))
goto _30
-_6: /* colsetlist ::= colsetlist STRING */
+_6:
+ ; /* colsetlist ::= colsetlist STRING */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseColset(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), fts5yymsp+8)
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_7: /* colsetlist ::= STRING */
+_7:
+ ; /* colsetlist ::= STRING */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseColset(tls, pParse, uintptr(0), fts5yymsp+8)
*(*uintptr)(unsafe.Pointer(fts5yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_8: /* expr ::= expr AND expr */
+_8:
+ ; /* expr ::= expr AND expr */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNode(tls, pParse, int32(FTS5_AND), *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)), uintptr(0))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_9: /* expr ::= expr OR expr */
+_9:
+ ; /* expr ::= expr OR expr */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNode(tls, pParse, int32(FTS5_OR), *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)), uintptr(0))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_10: /* expr ::= expr NOT expr */
+_10:
+ ; /* expr ::= expr NOT expr */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNode(tls, pParse, int32(FTS5_NOT), *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)), uintptr(0))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_11: /* expr ::= colset COLON LP expr RP */
+_11:
+ ; /* expr ::= colset COLON LP expr RP */
_sqlite3Fts5ParseSetColset(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)))
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_12: /* expr ::= LP expr RP */
+_12:
+ ; /* expr ::= LP expr RP */
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8))
goto _30
-_14: /* expr ::= exprlist */
+_14:
+ ; /* expr ::= exprlist */
_13:
+ ;
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = *(*uintptr)(unsafe.Pointer(fts5yymsp + 8))
*(*uintptr)(unsafe.Pointer(fts5yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_15: /* exprlist ::= exprlist cnearset */
+_15:
+ ; /* exprlist ::= exprlist cnearset */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseImplicitAnd(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_16: /* cnearset ::= nearset */
+_16:
+ ; /* cnearset ::= nearset */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNode(tls, pParse, int32(FTS5_STRING), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_17: /* cnearset ::= colset COLON nearset */
+_17:
+ ; /* cnearset ::= colset COLON nearset */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNode(tls, pParse, int32(FTS5_STRING), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
_sqlite3Fts5ParseSetColset(tls, pParse, *(*uintptr)(unsafe.Pointer(&fts5yylhsminor)), *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_18: /* nearset ::= phrase */
+_18:
+ ; /* nearset ::= phrase */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNearset(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_19: /* nearset ::= CARET phrase */
+_19:
+ ; /* nearset ::= CARET phrase */
_sqlite3Fts5ParseSetCaret(tls, *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = _sqlite3Fts5ParseNearset(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
goto _30
-_20: /* nearset ::= STRING LP nearphrases neardist_opt RP */
+_20:
+ ; /* nearset ::= STRING LP nearphrases neardist_opt RP */
_sqlite3Fts5ParseNear(tls, pParse, fts5yymsp+uintptr(-libc.Int32FromInt32(4))*24+8)
_sqlite3Fts5ParseSetDistance(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8)), fts5yymsp+uintptr(-libc.Int32FromInt32(1))*24+8)
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(2))*24 + 8))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(4))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_21: /* nearphrases ::= phrase */
+_21:
+ ; /* nearphrases ::= phrase */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNearset(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_22: /* nearphrases ::= nearphrases phrase */
+_22:
+ ; /* nearphrases ::= nearphrases phrase */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseNearset(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)), *(*uintptr)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_23: /* neardist_opt ::= */
+_23:
+ ; /* neardist_opt ::= */
*(*uintptr)(unsafe.Pointer(fts5yymsp + 1*24 + 8)) = uintptr(0)
*(*int32)(unsafe.Pointer(fts5yymsp + 1*24 + 8 + 8)) = 0
goto _30
-_24: /* neardist_opt ::= COMMA STRING */
+_24:
+ ; /* neardist_opt ::= COMMA STRING */
*(*TFts5Token)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*TFts5Token)(unsafe.Pointer(fts5yymsp + 8))
goto _30
-_25: /* phrase ::= phrase PLUS STRING star_opt */
+_25:
+ ; /* phrase ::= phrase PLUS STRING star_opt */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)), fts5yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, *(*int32)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(3))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_26: /* phrase ::= STRING star_opt */
+_26:
+ ; /* phrase ::= STRING star_opt */
*(*uintptr)(unsafe.Pointer(&fts5yylhsminor)) = _sqlite3Fts5ParseTerm(tls, pParse, uintptr(0), fts5yymsp+uintptr(-libc.Int32FromInt32(1))*24+8, *(*int32)(unsafe.Pointer(fts5yymsp + 8)))
*(*uintptr)(unsafe.Pointer(fts5yymsp + uintptr(-libc.Int32FromInt32(1))*24 + 8)) = *(*uintptr)(unsafe.Pointer(&fts5yylhsminor))
goto _30
-_27: /* star_opt ::= STAR */
+_27:
+ ; /* star_opt ::= STAR */
*(*int32)(unsafe.Pointer(fts5yymsp + 8)) = int32(1)
goto _30
-_28: /* star_opt ::= */
+_28:
+ ; /* star_opt ::= */
*(*int32)(unsafe.Pointer(fts5yymsp + 1*24 + 8)) = 0
goto _30
_29:
+ ;
goto _30
/********** End reduce actions ************************************************/
_30:
+ ;
_ = libc.Int32FromInt32(0)
fts5yygoto = int32(_fts5yyRuleInfoLhs[fts5yyruleno])
fts5yysize = int32(_fts5yyRuleInfoNRhs[fts5yyruleno])
@@ -198440,7 +200719,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+34724, libc.VaList(bp+8, fts5yyminor.Fn, fts5yyminor.Fp))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+34750, 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 */
}
@@ -198748,7 +201027,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+34755, libc.VaList(bp+8, (*THighlightContext)(unsafe.Pointer(p)).FzOut, n, z))
+ (*THighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, __ccgo_ts+34781, 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)
}
@@ -198846,7 +201125,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 + 34762
+ zErr = __ccgo_ts + 34788
Xsqlite3_result_error(tls, pCtx, zErr, -int32(1))
return
}
@@ -198974,6 +201253,7 @@ func _fts5SentenceFinderCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken
}
goto _1
_1:
+ ;
i--
}
if i != iStartOff-int32(1) && (int32(c) == int32('.') || int32(c) == int32(':')) {
@@ -199026,6 +201306,7 @@ func _fts5SnippetScore(tls *libc.TLS, pApi uintptr, pFts uintptr, nDocsize int32
}
goto _1
_1:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pnScore)) = nScore
@@ -199090,7 +201371,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 + 34812
+ zErr = __ccgo_ts + 34838
Xsqlite3_result_error(tls, pCtx, zErr, -int32(1))
return
}
@@ -199171,6 +201452,7 @@ func _fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintpt
}
goto _4
_4:
+ ;
jj++
}
if *(*int32)(unsafe.Pointer((*(*TFts5SFinder)(unsafe.Pointer(bp + 120))).FaFirst + uintptr(jj)*4)) < *(*int32)(unsafe.Pointer(bp + 168)) {
@@ -199192,11 +201474,13 @@ func _fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintpt
}
goto _3
_3:
+ ;
ii++
}
}
goto _2
_2:
+ ;
i++
}
if *(*int32)(unsafe.Pointer(bp + 104)) == SQLITE_OK {
@@ -199359,6 +201643,7 @@ func _fts5Bm25GetData(tls *libc.TLS, pApi uintptr, pFts uintptr, ppData uintptr)
}
goto _1
_1:
+ ;
i++
}
if rc != SQLITE_OK {
@@ -199423,6 +201708,7 @@ func _fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr,
}
goto _1
_1:
+ ;
i++
}
/* Figure out the total size of the current row in tokens. */
@@ -199441,6 +201727,7 @@ func _fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr,
score += *(*float64)(unsafe.Pointer((*TFts5Bm25Data)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaIDF + uintptr(i)*8)) * (*(*float64)(unsafe.Pointer(aFreq + uintptr(i)*8)) * (k1 + libc.Float64FromFloat64(1)) / (*(*float64)(unsafe.Pointer(aFreq + uintptr(i)*8)) + k1*(libc.Float64FromInt32(1)-b+b*D/(*TFts5Bm25Data)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).Favgdl)))
goto _3
_3:
+ ;
i++
}
Xsqlite3_result_double(tls, pCtx, -libc.Float64FromFloat64(1)*score)
@@ -199465,15 +201752,15 @@ func _sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) (r int32) {
FxDestroy uintptr
}{
0: {
- FzFunc: __ccgo_ts + 34860,
+ FzFunc: __ccgo_ts + 34886,
FxFunc: __ccgo_fp(_fts5SnippetFunction),
},
1: {
- FzFunc: __ccgo_ts + 34868,
+ FzFunc: __ccgo_ts + 34894,
FxFunc: __ccgo_fp(_fts5HighlightFunction),
},
2: {
- FzFunc: __ccgo_ts + 34878,
+ FzFunc: __ccgo_ts + 34904,
FxFunc: __ccgo_fp(_fts5Bm25Function),
},
}
@@ -199486,6 +201773,7 @@ func _sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) (r int32) {
rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, Tfts5_extension_function, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfts5_api)(unsafe.Pointer(pApi)).FxCreateFunction})))(tls, pApi, aBuiltin[i].FzFunc, aBuiltin[i].FpUserData, aBuiltin[i].FxFunc, aBuiltin[i].FxDestroy)
goto _1
_1:
+ ;
i++
}
return rc
@@ -200000,6 +202288,7 @@ func _sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr,
hash = hash<<libc.Int32FromInt32(3) ^ hash ^ uint32(*(*uint8)(unsafe.Pointer(pTerm + uintptr(i))))
goto _1
_1:
+ ;
i--
}
hash = hash<<libc.Int32FromInt32(3) ^ hash ^ uint32(iIdx)
@@ -200015,6 +202304,7 @@ func _sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr,
}
goto _2
_2:
+ ;
pEntry = (*TFts5TermsetEntry)(unsafe.Pointer(pEntry)).FpNext
}
if pEntry == uintptr(0) {
@@ -200050,6 +202340,7 @@ func _sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) {
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, p)
@@ -200306,6 +202597,7 @@ func _fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintp
}
goto _1
_1:
+ ;
i++
}
*(*int32)(unsafe.Pointer(peVal)) = iVal
@@ -200339,7 +202631,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
_, _, _, _, _, _, _, _, _, _, _, _ = azArg, bFirst, nArg, nByte, nCmd, nPre, p, p1, p2, pDel, pSpace, v2
*(*int32)(unsafe.Pointer(bp)) = SQLITE_OK
nCmd = int32(libc.Xstrlen(tls, zCmd))
- if Xsqlite3_strnicmp(tls, __ccgo_ts+34883, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+34909, 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) {
@@ -200365,12 +202657,12 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
}
}
if int32(*(*uint8)(unsafe.Pointer(p))) < int32('0') || int32(*(*uint8)(unsafe.Pointer(p))) > int32('9') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+34890, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+34916, 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+34921, libc.VaList(bp+80, int32(FTS5_MAX_PREFIX_INDEXES)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+34947, libc.VaList(bp+80, int32(FTS5_MAX_PREFIX_INDEXES)))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
break
}
@@ -200379,7 +202671,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
p++
}
if nPre <= 0 || nPre >= int32(1000) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+34954, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+34980, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
break
}
@@ -200390,7 +202682,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
_ = libc.Int32FromInt32(0)
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+34991, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+35017, zCmd, nCmd) == 0 {
p1 = zArg
nArg = int64(libc.Xstrlen(tls, zArg) + uint64(1))
azArg = _sqlite3Fts5MallocZero(tls, bp, int64(uint64(8)*uint64(nArg)))
@@ -200398,7 +202690,7 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
pSpace = pDel
if azArg != 0 && pSpace != 0 {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FpTok != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35000, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35026, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
nArg = 0
@@ -200421,10 +202713,11 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
}
goto _1
_1:
+ ;
nArg++
}
if p1 == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35033, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35059, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
*(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5GetTokenizer(tls, pGlobal, azArg, int32(nArg), pConfig, pzErr)
@@ -200435,58 +202728,58 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
Xsqlite3_free(tls, pDel)
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+35067, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+35093, zCmd, nCmd) == 0 {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35075, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35101, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if *(*uint8)(unsafe.Pointer(zArg)) != 0 {
(*TFts5Config)(unsafe.Pointer(pConfig)).FeContent = int32(FTS5_CONTENT_EXTERNAL)
- (*TFts5Config)(unsafe.Pointer(pConfig)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35107, libc.VaList(bp+80, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg))
+ (*TFts5Config)(unsafe.Pointer(pConfig)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35133, 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+35113, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+35139, zCmd, nCmd) == 0 {
if int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*uint8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35132, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35158, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete = libc.BoolInt32(int32(*(*uint8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+35175, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+35201, zCmd, nCmd) == 0 {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35189, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35215, 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+35227, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+35253, zCmd, nCmd) == 0 {
if int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*uint8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35238, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35264, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.BoolInt32(int32(*(*uint8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+5474, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+5499, zCmd, nCmd) == 0 {
*(*[4]TFts5Enum)(unsafe.Pointer(bp + 8)) = [4]TFts5Enum{
0: {
- FzName: __ccgo_ts + 8193,
+ FzName: __ccgo_ts + 8218,
FeVal: int32(FTS5_DETAIL_NONE),
},
1: {
- FzName: __ccgo_ts + 17713,
+ FzName: __ccgo_ts + 17747,
},
2: {
- FzName: __ccgo_ts + 35273,
+ FzName: __ccgo_ts + 35299,
FeVal: int32(FTS5_DETAIL_COLUMNS),
},
3: {},
@@ -200494,20 +202787,20 @@ func _fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zC
v2 = _fts5ConfigSetEnum(tls, bp+8, zArg, pConfig+96)
*(*int32)(unsafe.Pointer(bp)) = v2
if v2 != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35281, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35307, 0)
}
return *(*int32)(unsafe.Pointer(bp))
}
- if Xsqlite3_strnicmp(tls, __ccgo_ts+35312, zCmd, nCmd) == 0 {
+ if Xsqlite3_strnicmp(tls, __ccgo_ts+35338, zCmd, nCmd) == 0 {
if int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('1') || int32(*(*uint8)(unsafe.Pointer(zArg + 1))) != int32('\000') {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35322, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35348, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FbTokendata = libc.BoolInt32(int32(*(*uint8)(unsafe.Pointer(zArg))) == int32('1'))
}
return *(*int32)(unsafe.Pointer(bp))
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35356, libc.VaList(bp+80, nCmd, zCmd))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35382, libc.VaList(bp+80, nCmd, zCmd))
return int32(SQLITE_ERROR)
}
@@ -200581,15 +202874,15 @@ 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+35384) || 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+16660) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35389, libc.VaList(bp+8, zCol))
+ if 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+35410) || 0 == Xsqlite3_stricmp(tls, zCol, __ccgo_ts+16694) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35415, libc.VaList(bp+8, zCol))
rc = int32(SQLITE_ERROR)
} else {
if zArg != 0 {
- if 0 == Xsqlite3_stricmp(tls, zArg, __ccgo_ts+35419) {
+ if 0 == Xsqlite3_stricmp(tls, zArg, __ccgo_ts+35445) {
*(*Tu8)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FabUnindexed + uintptr((*TFts5Config)(unsafe.Pointer(p)).FnCol))) = uint8(1)
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35429, libc.VaList(bp+8, zArg))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35455, libc.VaList(bp+8, zArg))
rc = int32(SQLITE_ERROR)
}
}
@@ -200615,7 +202908,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+35460, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(p)).FzContentRowid))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+35486, libc.VaList(bp+32, (*TFts5Config)(unsafe.Pointer(p)).FzContentRowid))
if (*TFts5Config)(unsafe.Pointer(p)).FeContent != int32(FTS5_CONTENT_NONE) {
i = 0
for {
@@ -200623,12 +202916,13 @@ 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+35465, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+35491, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8))))
} else {
- _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+35472, libc.VaList(bp+32, i))
+ _sqlite3Fts5BufferAppendPrintf(tls, bp, bp+8, __ccgo_ts+35498, libc.VaList(bp+32, i))
}
goto _1
_1:
+ ;
i++
}
}
@@ -200685,8 +202979,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+35384) == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35480, 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+35410) == 0 {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35506, libc.VaList(bp+40, (*TFts5Config)(unsafe.Pointer(pRet)).FzName))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
_ = libc.Int32FromInt32(0)
@@ -200719,7 +203013,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+35509, libc.VaList(bp+40, zOrig))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35535, libc.VaList(bp+40, zOrig))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if bOption != 0 {
@@ -200744,11 +203038,12 @@ func _sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg in
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
goto _3
_3:
+ ;
i++
}
/* 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+35529, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35555, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
/* We only allow contentless_delete=1 if columnsize=0 is not present.
@@ -200756,7 +203051,7 @@ 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+35579, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+35605, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
/* If a tokenizer= option was successfully parsed, the tokenizer has
@@ -200770,18 +203065,18 @@ func _sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg in
zTail = uintptr(0)
_ = libc.Int32FromInt32(0)
if (*TFts5Config)(unsafe.Pointer(pRet)).FeContent == FTS5_CONTENT_NORMAL {
- zTail = __ccgo_ts + 35067
+ zTail = __ccgo_ts + 35093
} else {
if (*TFts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 {
- zTail = __ccgo_ts + 35634
+ zTail = __ccgo_ts + 35660
}
}
if zTail != 0 {
- (*TFts5Config)(unsafe.Pointer(pRet)).FzContent = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35642, 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+35668, 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+16660, -int32(1))
+ (*TFts5Config)(unsafe.Pointer(pRet)).FzContentRowid = _sqlite3Fts5Strndup(tls, bp, __ccgo_ts+16694, -int32(1))
}
/* Formulate the zContentExprlist text */
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -200816,6 +203111,7 @@ func _sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) {
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).FazCol)
@@ -200844,7 +203140,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+35653, 0)
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35679, 0)
i = 0
for {
if !(zSql != 0 && i < (*TFts5Config)(unsafe.Pointer(pConfig)).FnCol) {
@@ -200853,15 +203149,16 @@ func _sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) (r int32) {
if i == 0 {
v2 = __ccgo_ts + 1648
} else {
- v2 = __ccgo_ts + 14965
+ v2 = __ccgo_ts + 14990
}
zSep = v2
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35669, libc.VaList(bp+16, zSql, zSep, *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8))))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35695, 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+35676, libc.VaList(bp+16, zSql, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, __ccgo_ts+35384))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+35702, libc.VaList(bp+16, zSql, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, __ccgo_ts+35410))
_ = libc.Int32FromInt32(0)
if zSql != 0 {
*(*int32)(unsafe.Pointer(bp)) = Xsqlite3_declare_vtab(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql)
@@ -201009,7 +203306,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
var _ /* zRankArgs at bp+8 */ uintptr
_, _, _, _, _, _, _, _, _, _ = bVal, nAutomerge, nCrisisMerge, nHashSize, nUsermerge, nVal, pgsz, rc, zIn, v1
rc = SQLITE_OK
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35702) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35728) {
pgsz = 0
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
pgsz = Xsqlite3_value_int(tls, pVal)
@@ -201020,7 +203317,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+35707) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35733) {
nHashSize = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nHashSize = Xsqlite3_value_int(tls, pVal)
@@ -201031,7 +203328,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+35716) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35742) {
nAutomerge = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nAutomerge = Xsqlite3_value_int(tls, pVal)
@@ -201045,7 +203342,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+35726) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35752) {
nUsermerge = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nUsermerge = Xsqlite3_value_int(tls, pVal)
@@ -201056,7 +203353,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+35736) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35762) {
nCrisisMerge = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nCrisisMerge = Xsqlite3_value_int(tls, pVal)
@@ -201073,7 +203370,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+35748) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35774) {
nVal = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
nVal = Xsqlite3_value_int(tls, pVal)
@@ -201088,7 +203385,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+35384) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35410) {
zIn = Xsqlite3_value_text(tls, pVal)
rc = _sqlite3Fts5ConfigParseRank(tls, zIn, bp, bp+8)
if rc == SQLITE_OK {
@@ -201103,7 +203400,7 @@ func _sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pV
}
}
} else {
- if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35760) {
+ if 0 == Xsqlite3_stricmp(tls, zKey, __ccgo_ts+35786) {
bVal = -int32(1)
if int32(SQLITE_INTEGER) == Xsqlite3_value_numeric_type(tls, pVal) {
bVal = Xsqlite3_value_int(tls, pVal)
@@ -201145,7 +203442,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 + 35774
+ zSelect = __ccgo_ts + 35800
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
*(*int32)(unsafe.Pointer(bp + 8)) = SQLITE_OK
iVersion = 0
@@ -201166,7 +203463,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+35806) {
+ if 0 == Xsqlite3_stricmp(tls, zK, __ccgo_ts+35832) {
iVersion = Xsqlite3_value_int(tls, pVal)
} else {
*(*int32)(unsafe.Pointer(bp + 12)) = 0
@@ -201179,7 +203476,7 @@ func _sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) (r in
*(*int32)(unsafe.Pointer(bp + 8)) = int32(SQLITE_ERROR)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg != 0 {
_ = libc.Int32FromInt32(0)
- *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+35814, libc.VaList(bp+24, iVersion, int32(FTS5_CURRENT_VERSION), int32(FTS5_CURRENT_VERSION_SECUREDELETE)))
+ *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+35840, libc.VaList(bp+24, iVersion, int32(FTS5_CURRENT_VERSION), int32(FTS5_CURRENT_VERSION_SECUREDELETE)))
}
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FiVersion = iVersion
@@ -201401,17 +203698,18 @@ func _fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr
}
}
if int32(*(*uint8)(unsafe.Pointer(z2))) == int32('\000') {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+35885, 0)
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+35911, 0)
return FTS5_EOF
}
goto _1
_1:
+ ;
z2++
}
(*TFts5Token)(unsafe.Pointer(pToken)).Fn = int32(int64(z2) - int64(z))
default:
if _sqlite3Fts5IsBareword(tls, *(*uint8)(unsafe.Pointer(z))) == 0 {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+35905, libc.VaList(bp+8, z))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+35931, libc.VaList(bp+8, z))
return FTS5_EOF
}
tok = int32(FTS5_STRING)
@@ -201422,16 +203720,17 @@ func _fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr
}
goto _2
_2:
+ ;
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+35936, uint64(2)) == 0 {
+ if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(2) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+35962, 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+35939, uint64(3)) == 0 {
+ if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(3) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+35965, 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+30680, uint64(3)) == 0 {
+ if (*TFts5Token)(unsafe.Pointer(pToken)).Fn == int32(3) && libc.Xmemcmp(tls, (*TFts5Token)(unsafe.Pointer(pToken)).Fp, __ccgo_ts+30706, uint64(3)) == 0 {
tok = int32(FTS5_AND)
}
break
@@ -201536,6 +203835,7 @@ func _fts5ExprCountChar(tls *libc.TLS, z uintptr, nByte int32) (r int32) {
}
goto _1
_1:
+ ;
ii++
}
return nRet
@@ -201596,6 +203896,7 @@ func _sqlite3Fts5ExprPattern(tls *libc.TLS, pConfig uintptr, bGlob int32, iCol i
}
goto _2
_2:
+ ;
jj++
}
v5 = iOut
@@ -201653,6 +203954,7 @@ func _sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) {
_sqlite3Fts5ParseNodeFree(tls, *(*uintptr)(unsafe.Pointer(p + 48 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
_sqlite3Fts5ParseNearsetFree(tls, (*TFts5ExprNode)(unsafe.Pointer(p)).FpNear)
@@ -201700,6 +204002,7 @@ func _sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) (r int32) {
*(*uintptr)(unsafe.Pointer(ap + uintptr(i)*8)) = *(*uintptr)(unsafe.Pointer((*TFts5Expr)(unsafe.Pointer(p2)).FapExprPhrase + uintptr(i)*8))
goto _1
_1:
+ ;
i++
}
(*TFts5Expr)(unsafe.Pointer(p1)).FnPhrase = nPhrase
@@ -201746,6 +204049,7 @@ func _fts5ExprSynonymRowid(tls *libc.TLS, pTerm uintptr, bDesc int32, pbEof uint
}
goto _1
_1:
+ ;
p = (*TFts5ExprTerm)(unsafe.Pointer(p)).FpSynonym
}
if pbEof != 0 && bRetValid == 0 {
@@ -201804,6 +204108,7 @@ func _fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid Ti64, pBuf uintpt
}
goto _1
_1:
+ ;
p = (*TFts5ExprTerm)(unsafe.Pointer(p)).FpSynonym
}
if nIter == int32(1) {
@@ -201832,6 +204137,7 @@ func _fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid Ti64, pBuf uintpt
}
goto _2
_2:
+ ;
i++
}
if iMin == libc.Int64FromUint32(0xffffffff)|libc.Int64FromInt32(0x7fffffff)<<libc.Int32FromInt32(32) || rc != SQLITE_OK {
@@ -201846,6 +204152,7 @@ func _fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid Ti64, pBuf uintpt
}
}
synonym_poslist_out:
+ ;
if aIter != bp {
Xsqlite3_free(tls, aIter)
}
@@ -201924,6 +204231,7 @@ func _fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMat
}
goto _1
_1:
+ ;
i++
}
for int32(1) != 0 {
@@ -201950,6 +204258,7 @@ func _fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMat
}
goto _2
_2:
+ ;
i++
}
}
@@ -201970,10 +204279,12 @@ func _fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMat
}
goto _3
_3:
+ ;
i++
}
}
ismatch_out:
+ ;
*(*int32)(unsafe.Pointer(pbMatch)) = libc.BoolInt32((*TFts5ExprPhrase)(unsafe.Pointer(pPhrase)).Fposlist.Fn > 0)
i = 0
for {
@@ -201985,6 +204296,7 @@ ismatch_out:
}
goto _4
_4:
+ ;
i++
}
if aIter != bp+8 {
@@ -202109,6 +204421,7 @@ func _fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) (r int32) {
(*(*TFts5NearTrimmer)(unsafe.Pointer(a + uintptr(i)*48))).FpOut = pPoslist
goto _1
_1:
+ ;
i++
}
for int32(1) != 0 {
@@ -202137,6 +204450,7 @@ func _fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
}
@@ -202153,6 +204467,7 @@ func _fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) (r int32) {
}
goto _3
_3:
+ ;
i++
}
iAdv = 0
@@ -202168,6 +204483,7 @@ func _fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) (r int32) {
}
goto _4
_4:
+ ;
i++
}
if _fts5LookaheadReaderNext(tls, a+uintptr(iAdv)*48) != 0 {
@@ -202175,6 +204491,7 @@ func _fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) (r int32) {
}
}
ismatch_out:
+ ;
bRet = libc.BoolInt32((*TFts5Buffer)(unsafe.Pointer((*(*TFts5NearTrimmer)(unsafe.Pointer(a))).FpOut)).Fn > 0)
*(*int32)(unsafe.Pointer(pRc)) = *(*int32)(unsafe.Pointer(bp + 192))
if a != bp {
@@ -202239,6 +204556,7 @@ func _fts5ExprSynonymAdvanceto(tls *libc.TLS, pTerm uintptr, bDesc int32, piLast
}
goto _1
_1:
+ ;
p = (*TFts5ExprTerm)(unsafe.Pointer(p)).FpSynonym
}
if rc != SQLITE_OK {
@@ -202276,6 +204594,7 @@ func _fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr)
}
goto _1
_1:
+ ;
pTerm = (*TFts5ExprTerm)(unsafe.Pointer(pTerm)).FpSynonym
}
return (*TFts5ExprPhrase)(unsafe.Pointer(pPhrase)).Fposlist.Fn
@@ -202301,6 +204620,7 @@ func _fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr)
}
goto _2
_2:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pRc)) = *(*int32)(unsafe.Pointer(bp))
@@ -202375,6 +204695,7 @@ func _fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) (r int32)
}
goto _3
_3:
+ ;
p = (*TFts5ExprTerm)(unsafe.Pointer(p)).FpSynonym
}
if bHit == 0 {
@@ -202383,11 +204704,13 @@ func _fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) (r int32)
}
goto _2
_2:
+ ;
j++
}
}
goto _1
_1:
+ ;
i++
}
(*TFts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0
@@ -202435,6 +204758,7 @@ func _fts5ExprSetEof(tls *libc.TLS, pNode uintptr) {
_fts5ExprSetEof(tls, *(*uintptr)(unsafe.Pointer(pNode + 48 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
}
@@ -202454,6 +204778,7 @@ func _fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) {
(*TFts5ExprPhrase)(unsafe.Pointer(pPhrase)).Fposlist.Fn = 0
goto _1
_1:
+ ;
i++
}
} else {
@@ -202465,6 +204790,7 @@ func _fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) {
_fts5ExprNodeZeroPoslist(tls, *(*uintptr)(unsafe.Pointer(pNode + 48 + uintptr(i1)*8)))
goto _2
_2:
+ ;
i1++
}
}
@@ -202568,10 +204894,12 @@ func _fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) (r in
}
goto _2
_2:
+ ;
j++
}
goto _1
_1:
+ ;
i++
}
}
@@ -202629,6 +204957,7 @@ func _fts5ExprNodeNext_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFrom
}
goto _1
_1:
+ ;
p = (*TFts5ExprTerm)(unsafe.Pointer(p)).FpSynonym
}
/* Set the EOF flag if either all synonym iterators are at EOF or an
@@ -202715,6 +205044,7 @@ func _fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) {
}
goto _1
_1:
+ ;
i++
}
(*TFts5ExprNode)(unsafe.Pointer(pNode)).FiRowid = (*TFts5ExprNode)(unsafe.Pointer(pNext)).FiRowid
@@ -202746,6 +205076,7 @@ func _fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromVali
}
goto _1
_1:
+ ;
i++
}
_fts5ExprNodeTest_OR(tls, pExpr, pNode)
@@ -202803,6 +205134,7 @@ func _fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) (r int32)
}
goto _1
_1:
+ ;
iChild++
}
}
@@ -202932,6 +205264,7 @@ func _fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) (r int32) {
nEof += (*TFts5ExprNode)(unsafe.Pointer(pChild)).FbEof
goto _1
_1:
+ ;
i++
}
(*TFts5ExprNode)(unsafe.Pointer(pNode)).FiRowid = (*TFts5ExprNode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNode + 48)))).FiRowid
@@ -203065,10 +205398,12 @@ func _fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) {
Xsqlite3_free(tls, pSyn)
goto _2
_2:
+ ;
pSyn = pNext
}
goto _1
_1:
+ ;
i++
}
if (*TFts5ExprPhrase)(unsafe.Pointer(pPhrase)).Fposlist.FnSpace > 0 {
@@ -203291,6 +205626,7 @@ func _sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) {
_fts5ExprPhraseFree(tls, *(*uintptr)(unsafe.Pointer(pNear + 24 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TFts5ExprNearset)(unsafe.Pointer(pNear)).FpColset)
@@ -203446,6 +205782,7 @@ func _sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, pp
tflags = int32(FTS5_TOKEN_COLOCATED)
goto _2
_2:
+ ;
p = (*TFts5ExprTerm)(unsafe.Pointer(p)).FpSynonym
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -203454,6 +205791,7 @@ func _sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, pp
}
goto _1
_1:
+ ;
i++
}
} else {
@@ -203497,8 +205835,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+35943, (*TFts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+34724, 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+35969, (*TFts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 {
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+34750, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(pTok)).Fn, (*TFts5Token)(unsafe.Pointer(pTok)).Fp))
}
}
@@ -203518,12 +205856,13 @@ func _sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr,
}
c = *(*uint8)(unsafe.Pointer((*TFts5Token)(unsafe.Pointer(p)).Fp + uintptr(i)))
if int32(c) < int32('0') || int32(c) > int32('9') {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+35948, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(p)).Fn, (*TFts5Token)(unsafe.Pointer(p)).Fp))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+35974, libc.VaList(bp+8, (*TFts5Token)(unsafe.Pointer(p)).Fn, (*TFts5Token)(unsafe.Pointer(p)).Fp))
return
}
nNear = nNear*int32(10) + (int32(*(*uint8)(unsafe.Pointer((*TFts5Token)(unsafe.Pointer(p)).Fp + uintptr(i)))) - int32('0'))
goto _1
_1:
+ ;
i++
}
} else {
@@ -203574,6 +205913,7 @@ func _fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) (r u
}
goto _2
_2:
+ ;
i++
}
j = nCol
@@ -203584,6 +205924,7 @@ func _fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) (r u
*(*int32)(unsafe.Pointer(aiCol + uintptr(j)*4)) = *(*int32)(unsafe.Pointer(aiCol + uintptr(j-int32(1))*4))
goto _3
_3:
+ ;
j--
}
*(*int32)(unsafe.Pointer(aiCol + uintptr(i)*4)) = iCol
@@ -203622,6 +205963,7 @@ func _sqlite3Fts5ParseColsetInvert(tls *libc.TLS, pParse uintptr, p uintptr) (r
}
goto _1
_1:
+ ;
i++
}
}
@@ -203650,10 +205992,11 @@ func _sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p u
}
goto _1
_1:
+ ;
iCol++
}
if iCol == (*TFts5Config)(unsafe.Pointer(pConfig)).FnCol {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+20982, libc.VaList(bp+8, z))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+21016, libc.VaList(bp+8, z))
} else {
pRet = _fts5ParseColset(tls, pParse, pColset, iCol)
}
@@ -203762,6 +206105,7 @@ func _fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pNode uintptr, pColset u
_fts5ParseSetColset(tls, pParse, *(*uintptr)(unsafe.Pointer(pNode + 48 + uintptr(i)*8)), pColset, ppFree)
goto _1
_1:
+ ;
i++
}
}
@@ -203779,7 +206123,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+35977, 0)
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36003, 0)
} else {
_fts5ParseSetColset(tls, pParse, pExpr, pColset, bp)
}
@@ -203837,6 +206181,7 @@ func _fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) {
(*TFts5ExprNode)(unsafe.Pointer(p)).FiHeight = v4
goto _3
_3:
+ ;
ii++
}
}
@@ -203894,6 +206239,7 @@ func _fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) (r uint
}
goto _1
_1:
+ ;
ii++
}
if (*TFts5Parse)(unsafe.Pointer(pParse)).Frc != 0 {
@@ -203967,17 +206313,18 @@ func _sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uin
}
goto _1
_1:
+ ;
iPhrase++
}
if (*TFts5Config)(unsafe.Pointer((*TFts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FeDetail != FTS5_DETAIL_FULL {
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 + 36030
+ v2 = __ccgo_ts + 36056
} else {
- v2 = __ccgo_ts + 35943
+ v2 = __ccgo_ts + 35969
}
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36037, libc.VaList(bp+8, v2))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36063, libc.VaList(bp+8, v2))
Xsqlite3_free(tls, pRet)
pRet = uintptr(0)
}
@@ -203986,7 +206333,7 @@ func _sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uin
_fts5ExprAddChildren(tls, pRet, pLeft)
_fts5ExprAddChildren(tls, pRet, pRight)
if (*TFts5ExprNode)(unsafe.Pointer(pRet)).FiHeight > int32(SQLITE_FTS5_MAX_EXPR_DEPTH) {
- _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36087, libc.VaList(bp+8, int32(SQLITE_FTS5_MAX_EXPR_DEPTH)))
+ _sqlite3Fts5ParseError(tls, pParse, __ccgo_ts+36113, libc.VaList(bp+8, int32(SQLITE_FTS5_MAX_EXPR_DEPTH)))
Xsqlite3_free(tls, pRet)
pRet = uintptr(0)
}
@@ -204154,6 +206501,7 @@ func _sqlite3Fts5ExprClearPoslists(tls *libc.TLS, pExpr uintptr, bLive int32) (r
}
goto _1
_1:
+ ;
i++
}
}
@@ -204194,6 +206542,7 @@ func _fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -204216,6 +206565,7 @@ func _fts5QueryTerm(tls *libc.TLS, pToken uintptr, nToken int32) (r int32) {
}
goto _1
_1:
+ ;
ii++
}
return ii
@@ -204268,10 +206618,12 @@ func _fts5ExprPopulatePoslistsCb(tls *libc.TLS, pCtx uintptr, tflags int32, pTok
}
goto _2
_2:
+ ;
pT = (*TFts5ExprTerm)(unsafe.Pointer(pT)).FpSynonym
}
goto _1
_1:
+ ;
i++
}
return SQLITE_OK
@@ -204301,6 +206653,7 @@ func _sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uint
}
goto _1
_1:
+ ;
i++
}
return _sqlite3Fts5Tokenize(tls, pConfig, int32(FTS5_TOKENIZE_DOCUMENT), z, n, bp, __ccgo_fp(_fts5ExprPopulatePoslistsCb))
@@ -204320,6 +206673,7 @@ func _fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) {
_fts5ExprClearPoslists(tls, *(*uintptr)(unsafe.Pointer(pNode + 48 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
}
@@ -204347,6 +206701,7 @@ func _fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid Ti64) (r int32)
}
goto _1
_1:
+ ;
i++
}
case int32(FTS5_OR):
@@ -204361,6 +206716,7 @@ func _fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid Ti64) (r int32)
}
goto _2
_2:
+ ;
i1++
}
return bRet
@@ -204484,10 +206840,12 @@ func _sqlite3Fts5ExprClearTokens(tls *libc.TLS, pExpr uintptr) {
_sqlite3Fts5IndexIterClearTokendata(tls, (*TFts5ExprTerm)(unsafe.Pointer(pT)).FpIter)
goto _2
_2:
+ ;
pT = (*TFts5ExprTerm)(unsafe.Pointer(pT)).FpSynonym
}
goto _1
_1:
+ ;
ii++
}
}
@@ -204660,10 +207018,12 @@ func _sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) {
Xsqlite3_free(tls, pSlot)
goto _2
_2:
+ ;
pSlot = pNext
}
goto _1
_1:
+ ;
i++
}
libc.Xmemset(tls, (*TFts5Hash)(unsafe.Pointer(pHash)).FaSlot, 0, uint64((*TFts5Hash)(unsafe.Pointer(pHash)).FnSlot)*uint64(8))
@@ -204683,6 +207043,7 @@ func _fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) (r uint32) {
h = h<<int32(3) ^ h ^ uint32(*(*Tu8)(unsafe.Pointer(p + uintptr(i))))
goto _1
_1:
+ ;
i--
}
return h % uint32(nSlot)
@@ -204701,6 +207062,7 @@ func _fts5HashKey2(tls *libc.TLS, nSlot int32, b Tu8, p uintptr, n int32) (r uin
h = h<<int32(3) ^ h ^ uint32(*(*Tu8)(unsafe.Pointer(p + uintptr(i))))
goto _1
_1:
+ ;
i--
}
h = h<<int32(3) ^ h ^ uint32(b)
@@ -204738,6 +207100,7 @@ func _fts5HashResize(tls *libc.TLS, pHash uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, apOld)
@@ -204827,6 +207190,7 @@ func _sqlite3Fts5HashWrite(tls *libc.TLS, pHash uintptr, iRowid Ti64, iCol int32
}
goto _1
_1:
+ ;
p = (*TFts5HashEntry)(unsafe.Pointer(p)).FpHashNext
}
/* If an existing hash entry cannot be found, create a new one. */
@@ -204898,6 +207262,7 @@ func _sqlite3Fts5HashWrite(tls *libc.TLS, pHash uintptr, iRowid Ti64, iCol int32
}
goto _3
_3:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp))
}
*(*uintptr)(unsafe.Pointer(pp)) = pNew
@@ -205061,16 +207426,19 @@ func _fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32
*(*uintptr)(unsafe.Pointer(ap + uintptr(i)*8)) = uintptr(0)
goto _3
_3:
+ ;
i++
}
*(*uintptr)(unsafe.Pointer(ap + uintptr(i)*8)) = pEntry
}
goto _2
_2:
+ ;
pIter = (*TFts5HashEntry)(unsafe.Pointer(pIter)).FpHashNext
}
goto _1
_1:
+ ;
iSlot++
}
pList = uintptr(0)
@@ -205082,6 +207450,7 @@ func _fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32
pList = _fts5HashEntryMerge(tls, pList, *(*uintptr)(unsafe.Pointer(ap + uintptr(i)*8)))
goto _4
_4:
+ ;
i++
}
Xsqlite3_free(tls, ap)
@@ -205112,6 +207481,7 @@ func _sqlite3Fts5HashQuery(tls *libc.TLS, pHash uintptr, nPre int32, pTerm uintp
}
goto _1
_1:
+ ;
p = (*TFts5HashEntry)(unsafe.Pointer(p)).FpHashNext
}
if p != 0 {
@@ -206132,7 +208502,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+36140, 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+36166, 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.
@@ -206226,7 +208596,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+36146, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+80, Xsqlite3_mprintf(tls, __ccgo_ts+36172, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
if (*TFts5Index)(unsafe.Pointer(p)).Frc != 0 {
return
}
@@ -206255,7 +208625,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+36197, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+36223, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
if _fts5IndexPrepareStmt(tls, p, p+88, zSql) != 0 {
return
}
@@ -206289,7 +208659,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+36246, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+104, Xsqlite3_mprintf(tls, __ccgo_ts+36272, 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)
@@ -206324,6 +208694,7 @@ func _fts5StructureRelease(tls *libc.TLS, pStruct uintptr) {
Xsqlite3_free(tls, (*(*TFts5StructureLevel)(unsafe.Pointer(pStruct + 32 + uintptr(i)*16))).FaSeg)
goto _4
_4:
+ ;
i++
}
Xsqlite3_free(tls, pStruct)
@@ -206379,6 +208750,7 @@ func _fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) {
(*(*TFts5StructureLevel)(unsafe.Pointer(pNew + 32 + uintptr(i)*16))).FaSeg = uintptr(0)
goto _1
_1:
+ ;
i++
}
i = 0
@@ -206398,6 +208770,7 @@ func _fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) {
Xsqlite3_free(tls, (*(*TFts5StructureLevel)(unsafe.Pointer(pNew + 32 + uintptr(i)*16))).FaSeg)
goto _3
_3:
+ ;
i++
}
Xsqlite3_free(tls, pNew)
@@ -206406,6 +208779,7 @@ func _fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) {
libc.Xmemcpy(tls, (*TFts5StructureLevel)(unsafe.Pointer(pLvl)).FaSeg, (*(*TFts5StructureLevel)(unsafe.Pointer(p + 32 + uintptr(i)*16))).FaSeg, uint64(nByte))
goto _2
_2:
+ ;
i++
}
(*TFts5Structure)(unsafe.Pointer(p)).FnRef--
@@ -206455,7 +208829,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+36286, uint64(4)) {
+ if 0 == libc.Xmemcmp(tls, pData+uintptr(i), __ccgo_ts+36312, uint64(4)) {
i += int32(4)
bStructureV2 = int32(1)
}
@@ -206526,6 +208900,7 @@ func _fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie ui
}
goto _2
_2:
+ ;
iSeg++
}
if iLvl > 0 && (*(*TFts5StructureLevel)(unsafe.Pointer(pLvl + uintptr(-libc.Int32FromInt32(1))*16))).FnMerge != 0 && *(*int32)(unsafe.Pointer(bp + 12)) == 0 {
@@ -206537,6 +208912,7 @@ func _fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie ui
}
goto _1
_1:
+ ;
iLvl++
}
if *(*int32)(unsafe.Pointer(bp + 8)) != 0 && *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -206646,7 +209022,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+36291, 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+36317, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer((*TFts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb)))
if (*TFts5Index)(unsafe.Pointer(p)).Frc != 0 {
return 0
}
@@ -206734,7 +209110,7 @@ func _fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) {
(*(*TFts5Buffer)(unsafe.Pointer(bp))).Fn = int32(4)
if (*TFts5Structure)(unsafe.Pointer(pStruct)).FnOriginCntr > uint64(0) {
_ = libc.Int32FromInt32(0)
- libc.Xmemcpy(tls, (*TFts5Buffer)(unsafe.Pointer(bp)).Fp+uintptr((*TFts5Buffer)(unsafe.Pointer(bp)).Fn), __ccgo_ts+36286, uint64(4))
+ libc.Xmemcpy(tls, (*TFts5Buffer)(unsafe.Pointer(bp)).Fp+uintptr((*TFts5Buffer)(unsafe.Pointer(bp)).Fn), __ccgo_ts+36312, 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))
@@ -206771,10 +209147,12 @@ func _fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) {
}
goto _3
_3:
+ ;
iSeg++
}
goto _2
_2:
+ ;
iLvl++
}
_fts5DataWrite(tls, p, int64(FTS5_STRUCTURE_ROWID), (*(*TFts5Buffer)(unsafe.Pointer(bp))).Fp, (*(*TFts5Buffer)(unsafe.Pointer(bp))).Fn)
@@ -206826,10 +209204,12 @@ func _fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote
(*TFts5StructureLevel)(unsafe.Pointer(pLvl)).FnSeg--
goto _2
_2:
+ ;
is--
}
goto _1
_1:
+ ;
il++
}
}
@@ -206875,6 +209255,7 @@ func _fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr
}
goto _1
_1:
+ ;
iTst--
}
if iTst >= 0 {
@@ -206892,6 +209273,7 @@ func _fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr
}
goto _2
_2:
+ ;
i++
}
if szMax >= szSeg {
@@ -206942,6 +209324,7 @@ func _fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) (r int32) {
}
goto _1
_1:
+ ;
iOff++
}
if iOff < (*TFts5Data)(unsafe.Pointer(pData)).Fnn {
@@ -207011,6 +209394,7 @@ func _fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) (r int32) {
_fts5DlidxLvlNext(tls, pIter+8+uintptr(i)*32)
goto _1
_1:
+ ;
i++
}
return (*(*TFts5DlidxLvl)(unsafe.Pointer(pIter + 8))).FbEof
@@ -207042,6 +209426,7 @@ func _fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) {
}
goto _1
_1:
+ ;
i--
}
}
@@ -207131,6 +209516,7 @@ func _fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) {
_fts5DataRelease(tls, (*(*TFts5DlidxLvl)(unsafe.Pointer(pIter + 8 + uintptr(i)*32))).FpData)
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, pIter)
@@ -207167,6 +209553,7 @@ func _fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLea
}
goto _1
_1:
+ ;
i++
}
if (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK {
@@ -207702,6 +210089,7 @@ func _fts5SegIterNext_None(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm ui
_fts5SegIterLoadNPos(tls, p, pIter)
return
next_none_eof:
+ ;
_fts5DataRelease(tls, (*TFts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
(*TFts5SegIter)(unsafe.Pointer(pIter)).FpLeaf = uintptr(0)
}
@@ -207907,6 +210295,7 @@ func _fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) {
}
goto _2
_2:
+ ;
pgno++
}
}
@@ -208039,6 +210428,7 @@ func _fts5LeafSeek(tls *libc.TLS, p uintptr, bGe int32, pIter uintptr, pTerm uin
}
goto _3
_3:
+ ;
i++
}
nMatch += i
@@ -208075,6 +210465,7 @@ func _fts5LeafSeek(tls *libc.TLS, p uintptr, bGe int32, pIter uintptr, pTerm uin
}
}
search_failed:
+ ;
if bGe == 0 {
_fts5DataRelease(tls, (*TFts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)
(*TFts5SegIter)(unsafe.Pointer(pIter)).FpLeaf = uintptr(0)
@@ -208105,6 +210496,7 @@ search_failed:
}
}
search_success:
+ ;
if int64(*(*Tu32)(unsafe.Pointer(bp)))+int64(*(*Tu32)(unsafe.Pointer(bp + 8))) > int64(n) || *(*Tu32)(unsafe.Pointer(bp + 8)) < uint32(1) {
(*TFts5Index)(unsafe.Pointer(p)).Frc = libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
return
@@ -208132,7 +210524,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+36314, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+112, Xsqlite3_mprintf(tls, __ccgo_ts+36340, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*TFts5Index)(unsafe.Pointer(p)).FpIdxSelect
}
@@ -208224,7 +210616,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+36398, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+120, Xsqlite3_mprintf(tls, __ccgo_ts+36424, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
}
return (*TFts5Index)(unsafe.Pointer(p)).FpIdxNextSelect
}
@@ -208374,6 +210766,7 @@ func _fts5IndexFreeArray(tls *libc.TLS, ap uintptr, n int32) {
_fts5DataRelease(tls, *(*uintptr)(unsafe.Pointer(ap + uintptr(ii)*8)))
goto _1
_1:
+ ;
ii++
}
Xsqlite3_free(tls, ap)
@@ -208400,6 +210793,7 @@ func _fts5TombstoneArrayDelete(tls *libc.TLS, p uintptr) {
_fts5DataRelease(tls, *(*uintptr)(unsafe.Pointer(p + 8 + uintptr(ii)*8)))
goto _1
_1:
+ ;
ii++
}
Xsqlite3_free(tls, p)
@@ -208598,6 +210992,7 @@ func _fts5MultiIterFree(tls *libc.TLS, pIter uintptr) {
_fts5SegIterClear(tls, pIter+104+uintptr(i)*128)
goto _1
_1:
+ ;
i++
}
_sqlite3Fts5BufferFree(tls, pIter+40)
@@ -208624,6 +211019,7 @@ func _fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged in
}
goto _1
_1:
+ ;
i = i / int32(2)
}
}
@@ -208683,6 +211079,7 @@ func _fts5MultiIterAdvanceRowid(tls *libc.TLS, pIter uintptr, iChanged int32, pp
pOther = pIter + 104 + uintptr((*(*TFts5CResult)(unsafe.Pointer((*TFts5Iter)(unsafe.Pointer(pIter)).FaFirst + uintptr(i^int32(0x0001))*4))).FiFirst)*128
goto _2
_2:
+ ;
i = i / int32(2)
}
}
@@ -208889,6 +211286,7 @@ func _fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) (r uintptr) {
}
goto _1
_1:
+ ;
nSlot = nSlot * int64(2)
}
pNew = _fts5IdxMalloc(tls, p, int64(uint64(232)+uint64(128)*uint64(nSlot-libc.Int64FromInt32(1))+uint64(4)*uint64(nSlot)))
@@ -208963,6 +211361,7 @@ func _fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) (r int32)
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -209351,6 +211750,7 @@ func _fts5IterSetOutputs_Col100(tls *libc.TLS, pIter uintptr, pSeg uintptr) {
}
}
setoutputs_col_out:
+ ;
(*TFts5Iter)(unsafe.Pointer(pIter)).Fbase.FpData = (*TFts5Iter)(unsafe.Pointer(pIter)).Fposlist.Fp
(*TFts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = int32(int64(aOut) - int64((*TFts5Iter)(unsafe.Pointer(pIter)).Fposlist.Fp))
}
@@ -209444,6 +211844,7 @@ func _fts5MultiIterFinishSetup(tls *libc.TLS, p uintptr, pIter uintptr) {
}
goto _1
_1:
+ ;
iIter--
}
_fts5MultiIterSetEof(tls, pIter)
@@ -209537,10 +211938,12 @@ func _fts5MultiIterNew(tls *libc.TLS, p uintptr, pStruct uintptr, flags int32, p
}
goto _5
_5:
+ ;
iSeg--
}
goto _4
_4:
+ ;
pLvl += 16
}
} else {
@@ -209555,6 +211958,7 @@ func _fts5MultiIterNew(tls *libc.TLS, p uintptr, pStruct uintptr, flags int32, p
_fts5SegIterInit(tls, p, (*TFts5StructureLevel)(unsafe.Pointer(pLvl)).FaSeg+uintptr(iSeg)*56, pNew+104+uintptr(v8)*128)
goto _7
_7:
+ ;
iSeg--
}
}
@@ -209571,6 +211975,7 @@ func _fts5MultiIterNew(tls *libc.TLS, p uintptr, pStruct uintptr, flags int32, p
*(*uintptr)(unsafe.Pointer(ppOut)) = uintptr(0)
}
fts5MultiIterNew_post_check:
+ ;
_ = libc.Int32FromInt32(0)
return
}
@@ -209711,10 +212116,12 @@ func _fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) (r int32) {
}
goto _2
_2:
+ ;
iSeg++
}
goto _1
_1:
+ ;
iLvl++
}
i = 0
@@ -209724,6 +212131,7 @@ func _fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) (r int32) {
}
goto _3
_3:
+ ;
i++
}
mask = (*(*[63]Tu32)(unsafe.Pointer(bp)))[i]
@@ -209734,6 +212142,7 @@ func _fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) (r int32) {
}
goto _4
_4:
+ ;
iSegid++
}
iSegid += int32(1) + i*int32(32)
@@ -209780,6 +212189,7 @@ func _fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr)
}
goto _1
_1:
+ ;
i++
}
return i
@@ -209807,6 +212217,7 @@ func _fts5WriteDlidxClear(tls *libc.TLS, p uintptr, pWriter uintptr, bFlush int3
(*TFts5DlidxWriter)(unsafe.Pointer(pDlidx)).FbPrevValid = 0
goto _1
_1:
+ ;
i++
}
}
@@ -210010,6 +212421,7 @@ func _fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid Ti6
(*TFts5DlidxWriter)(unsafe.Pointer(pDlidx)).FiPrev = iRowid
goto _1
_1:
+ ;
i++
}
}
@@ -210224,6 +212636,7 @@ func _fts5WriteFinish(tls *libc.TLS, p uintptr, pWriter uintptr, pnLeaf uintptr)
_sqlite3Fts5BufferFree(tls, (*TFts5SegWriter)(unsafe.Pointer(pWriter)).FaDlidx+uintptr(i)*32+16)
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, (*TFts5SegWriter)(unsafe.Pointer(pWriter)).FaDlidx)
@@ -210249,7 +212662,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+36480, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName)))
+ _fts5IndexPrepareStmt(tls, p, p+96, Xsqlite3_mprintf(tls, __ccgo_ts+36506, 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. */
@@ -210337,6 +212750,7 @@ func _fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) {
}
goto _1
_1:
+ ;
i++
}
_sqlite3Fts5BufferFree(tls, bp)
@@ -210468,6 +212882,7 @@ func _fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32
}
goto _2
_2:
+ ;
_fts5MultiIterNext(tls, p, *(*uintptr)(unsafe.Pointer(bp)), 0, 0)
}
/* Flush the last leaf page to disk. Set the output segment b-tree height
@@ -210487,6 +212902,7 @@ func _fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32
_fts5DataRemoveSegment(tls, p, pOld)
goto _5
_5:
+ ;
i++
}
/* Remove the redundant segments from the input level */
@@ -210549,6 +212965,7 @@ func _fts5IndexFindDeleteMerge(tls *libc.TLS, p uintptr, pStruct uintptr) (r int
nTomb = Ti64(uint64(nTomb) + (*(*TFts5StructureSegment)(unsafe.Pointer((*TFts5StructureLevel)(unsafe.Pointer(pLvl)).FaSeg + uintptr(iSeg)*56))).FnEntryTombstone)
goto _2
_2:
+ ;
iSeg++
}
_ = libc.Int32FromInt32(0)
@@ -210561,6 +212978,7 @@ func _fts5IndexFindDeleteMerge(tls *libc.TLS, p uintptr, pStruct uintptr) (r int
}
goto _1
_1:
+ ;
ii++
}
}
@@ -210610,6 +213028,7 @@ func _fts5IndexMerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nPg int32, nMin
}
goto _1
_1:
+ ;
iLvl++
}
if nBest < nMin {
@@ -210744,7 +213163,7 @@ func _fts5SecureDeleteIdxEntry(tls *libc.TLS, p uintptr, iSegid int32, iPgno int
if iPgno != int32(1) {
_ = libc.Int32FromInt32(0)
if (*TFts5Index)(unsafe.Pointer(p)).FpDeleteFromIdx == uintptr(0) {
- _fts5IndexPrepareStmt(tls, p, p+136, Xsqlite3_mprintf(tls, __ccgo_ts+36537, 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+36563, 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)
@@ -210870,6 +213289,7 @@ func _fts5SecureDeleteOverflow(tls *libc.TLS, p uintptr, pSeg uintptr, iPgno int
}
goto _1
_1:
+ ;
pgno++
}
_fts5DataRelease(tls, pLeaf)
@@ -211061,6 +213481,7 @@ func _fts5DoSecureDelete(tls *libc.TLS, p uintptr, pSeg uintptr) {
iKeyOff1 = int32(uint32(iKeyOff1) + *(*Tu32)(unsafe.Pointer(bp + 32)))
goto _3
_3:
+ ;
iKey++
}
_ = libc.Int32FromInt32(0)
@@ -211130,6 +213551,7 @@ func _fts5DoSecureDelete(tls *libc.TLS, p uintptr, pSeg uintptr) {
}
goto _6
_6:
+ ;
iPgno--
}
if iPgno == (*TFts5SegIter)(unsafe.Pointer(pSeg)).FiTermLeafPgno {
@@ -211538,6 +213960,7 @@ func _fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) (r uint
_ = libc.Int32FromInt32(0)
goto _1
_1:
+ ;
i++
}
nByte = Tsqlite3_int64(uint64(nByte) + uint64((*TFts5Structure)(unsafe.Pointer(pStruct)).FnLevel+libc.Int32FromInt32(1))*libc.Uint64FromInt64(16))
@@ -211574,10 +213997,12 @@ func _fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) (r uint
iSegOut++
goto _4
_4:
+ ;
iSeg++
}
goto _3
_3:
+ ;
iLvl--
}
v5 = nSeg
@@ -211619,6 +214044,7 @@ func _sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) (r int32) {
}
goto _1
_1:
+ ;
iLvl++
}
for (*TFts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*(*TFts5StructureLevel)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 32 + uintptr(iLvl)*16))).FnSeg > 0 {
@@ -211906,6 +214332,7 @@ func _fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBu
nOut += (*(*TFts5Buffer)(unsafe.Pointer(aBuf + uintptr(i)*16))).Fn
goto _1
_1:
+ ;
i++
}
if nOut == 0 {
@@ -212013,6 +214440,7 @@ func _fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBu
}
goto _2
_2:
+ ;
i++
}
} else {
@@ -212087,6 +214515,7 @@ func _fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pTo
}
goto _1
_1:
+ ;
_fts5MultiIterNext2(tls, p, *(*uintptr)(unsafe.Pointer(bp)), bp+28)
}
_fts5MultiIterFree(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -212131,6 +214560,7 @@ func _fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pTo
}
goto _4
_4:
+ ;
iStore++
}
if iStore == i1+nMerge {
@@ -212143,11 +214573,13 @@ func _fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pTo
_sqlite3Fts5BufferZero(tls, aBuf+uintptr(iStore)*16)
goto _5
_5:
+ ;
iStore++
}
}
goto _3
_3:
+ ;
i++
}
iLastRowid = 0
@@ -212156,6 +214588,7 @@ func _fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pTo
iLastRowid = (*TFts5Iter)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).Fbase.FiRowid
goto _2
_2:
+ ;
_fts5MultiIterNext2(tls, p, *(*uintptr)(unsafe.Pointer(bp)), bp+24)
}
_ = libc.Int32FromInt32(0)
@@ -212175,10 +214608,12 @@ func _fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pTo
_sqlite3Fts5BufferFree(tls, aBuf+uintptr(iFree)*16)
goto _7
_7:
+ ;
iFree++
}
goto _6
_6:
+ ;
i += nMerge
}
_fts5MultiIterFree(tls, *(*uintptr)(unsafe.Pointer(bp)))
@@ -212295,11 +214730,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+36598, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ (*TFts5Index)(unsafe.Pointer(p)).FzDataTbl = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+36624, 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+25715, __ccgo_ts+36606, 0, pzErr)
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+25741, __ccgo_ts+36632, 0, pzErr)
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+11768, __ccgo_ts+36641, int32(1), pzErr)
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+11793, __ccgo_ts+36667, int32(1), pzErr)
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
*(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5IndexReinit(tls, p)
@@ -212378,6 +214813,7 @@ func _sqlite3Fts5IndexCharlenToBytelen(tls *libc.TLS, p uintptr, nByte int32, nC
}
goto _1
_1:
+ ;
i++
}
return n
@@ -212441,6 +214877,7 @@ func _sqlite3Fts5IndexWrite(tls *libc.TLS, p uintptr, iCol int32, iPos int32, pT
}
goto _1
_1:
+ ;
i++
}
return rc
@@ -212563,6 +215000,7 @@ func _fts5TokendataIterDelete(tls *libc.TLS, pSet uintptr) {
_fts5MultiIterFree(tls, *(*uintptr)(unsafe.Pointer(pSet + 40 + uintptr(ii)*8)))
goto _1
_1:
+ ;
ii++
}
Xsqlite3_free(tls, (*TFts5TokenDataIter)(unsafe.Pointer(pSet)).FaPoslistReader)
@@ -212647,6 +215085,7 @@ func _fts5IterSetOutputsTokendata(tls *libc.TLS, pIter uintptr) {
}
goto _1
_1:
+ ;
ii++
}
if nHit == 0 {
@@ -212686,6 +215125,7 @@ func _fts5IterSetOutputsTokendata(tls *libc.TLS, pIter uintptr) {
}
goto _2
_2:
+ ;
ii++
}
/* Ensure the output buffer is large enough */
@@ -212727,6 +215167,7 @@ func _fts5IterSetOutputsTokendata(tls *libc.TLS, pIter uintptr) {
}
goto _5
_5:
+ ;
ii++
}
/* If all readers were at EOF, break out of the loop. */
@@ -212760,9 +215201,10 @@ func _fts5IterSetOutputsTokendata(tls *libc.TLS, pIter uintptr) {
// */
func _fts5TokendataIterNext(tls *libc.TLS, pIter uintptr, bFrom int32, iFrom Ti64) {
var ii int32
- var p, pT uintptr
- _, _, _ = ii, p, pT
+ var p, pIndex, pT uintptr
+ _, _, _, _ = ii, p, pIndex, pT
pT = (*TFts5Iter)(unsafe.Pointer(pIter)).FpTokenDataIter
+ pIndex = (*TFts5Iter)(unsafe.Pointer(pIter)).FpIndex
ii = 0
for {
if !(ii < (*TFts5TokenDataIter)(unsafe.Pointer(pT)).FnIter) {
@@ -212770,16 +215212,19 @@ func _fts5TokendataIterNext(tls *libc.TLS, pIter uintptr, bFrom int32, iFrom Ti6
}
p = *(*uintptr)(unsafe.Pointer(pT + 40 + uintptr(ii)*8))
if int32((*TFts5Iter)(unsafe.Pointer(p)).Fbase.FbEof) == 0 && ((*TFts5Iter)(unsafe.Pointer(p)).Fbase.FiRowid == (*TFts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid || bFrom != 0 && (*TFts5Iter)(unsafe.Pointer(p)).Fbase.FiRowid < iFrom) {
- _fts5MultiIterNext(tls, (*TFts5Iter)(unsafe.Pointer(p)).FpIndex, p, bFrom, iFrom)
- for bFrom != 0 && int32((*TFts5Iter)(unsafe.Pointer(p)).Fbase.FbEof) == 0 && (*TFts5Iter)(unsafe.Pointer(p)).Fbase.FiRowid < iFrom && (*TFts5Index)(unsafe.Pointer((*TFts5Iter)(unsafe.Pointer(p)).FpIndex)).Frc == SQLITE_OK {
- _fts5MultiIterNext(tls, (*TFts5Iter)(unsafe.Pointer(p)).FpIndex, p, 0, 0)
+ _fts5MultiIterNext(tls, pIndex, p, bFrom, iFrom)
+ for bFrom != 0 && int32((*TFts5Iter)(unsafe.Pointer(p)).Fbase.FbEof) == 0 && (*TFts5Iter)(unsafe.Pointer(p)).Fbase.FiRowid < iFrom && (*TFts5Index)(unsafe.Pointer(pIndex)).Frc == SQLITE_OK {
+ _fts5MultiIterNext(tls, pIndex, p, 0, 0)
}
}
goto _1
_1:
+ ;
ii++
}
- _fts5IterSetOutputsTokendata(tls, pIter)
+ if (*TFts5Index)(unsafe.Pointer(pIndex)).Frc == SQLITE_OK {
+ _fts5IterSetOutputsTokendata(tls, pIter)
+ }
}
// C documentation
@@ -212828,7 +215273,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+36685)
+ _sqlite3Fts5BufferAppendBlob(tls, p+60, bp, uint32(1), __ccgo_ts+36711)
} else {
_sqlite3Fts5BufferSet(tls, p+60, bp, nToken, pToken)
}
@@ -212887,10 +215332,12 @@ func _fts5SetupTokendataIter(tls *libc.TLS, p uintptr, pToken uintptr, nToken in
}
goto _4
_4:
+ ;
iSeg--
}
goto _3
_3:
+ ;
iLvl++
}
_fts5TokendataSetTermIfEof(tls, pPrev, pSmall)
@@ -212916,6 +215363,7 @@ func _fts5SetupTokendataIter(tls *libc.TLS, p uintptr, pToken uintptr, nToken in
}
goto _5
_5:
+ ;
ii++
}
/* If pSmall is still NULL at this point, then the new iterator does
@@ -212943,11 +215391,13 @@ func _fts5SetupTokendataIter(tls *libc.TLS, p uintptr, pToken uintptr, nToken in
(*(*TFts5SegIter)(unsafe.Pointer(pIter + 104 + uintptr(iSeg1)*128))).Fflags |= int32(FTS5_SEGITER_ONETERM)
goto _7
_7:
+ ;
iSeg1++
}
_fts5MultiIterFinishSetup(tls, p, pIter)
goto _6
_6:
+ ;
ii1++
}
}
@@ -213024,6 +215474,7 @@ func _sqlite3Fts5IndexQuery(tls *libc.TLS, p uintptr, pToken uintptr, nToken int
}
goto _1
_1:
+ ;
iIdx++
}
}
@@ -213248,6 +215699,7 @@ func _sqlite3Fts5IndexIterWriteTokendata(tls *libc.TLS, pIndexIter uintptr, pTok
}
goto _1
_1:
+ ;
ii++
}
if ii < (*TFts5TokenDataIter)(unsafe.Pointer(pT)).FnIter {
@@ -213300,6 +215752,7 @@ func _sqlite3Fts5IndexGetAverages(tls *libc.TLS, p uintptr, pnRow uintptr, anSiz
i += int32(_sqlite3Fts5GetVarint(tls, (*TFts5Data)(unsafe.Pointer(pData)).Fp+uintptr(i), anSize+uintptr(iCol)*8))
goto _1
_1:
+ ;
iCol++
}
}
@@ -213350,7 +215803,7 @@ func _sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) (r int32)
*(*uintptr)(unsafe.Pointer(bp + 8)) = uintptr(0)
_ = libc.Int32FromInt32(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+36140, 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+36166, 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)))
@@ -213490,6 +215943,7 @@ func _fts5IndexTombstoneRehash(tls *libc.TLS, p uintptr, pSeg uintptr, pData1 ui
_fts5PutU32(tls, (*TFts5Data)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(apOut + uintptr(ii)*8)))).Fp+4, uint32(0))
goto _1
_1:
+ ;
ii++
}
/* Loop through the current pages of the hash table. */
@@ -213543,6 +215997,7 @@ func _fts5IndexTombstoneRehash(tls *libc.TLS, p uintptr, pSeg uintptr, pData1 ui
}
goto _5
_5:
+ ;
iIn++
}
/* If this is page 0 of the old hash, copy the rowid-0-flag from the
@@ -213554,6 +216009,7 @@ func _fts5IndexTombstoneRehash(tls *libc.TLS, p uintptr, pSeg uintptr, pData1 ui
_fts5DataRelease(tls, pFree)
goto _2
_2:
+ ;
ii++
}
return res
@@ -213654,6 +216110,7 @@ func _fts5IndexTombstoneRebuild(tls *libc.TLS, p uintptr, pSeg uintptr, pData1 u
}
goto _3
_3:
+ ;
ii++
}
/* Rebuild the hash table. */
@@ -213744,6 +216201,7 @@ func _fts5IndexTombstoneAdd(tls *libc.TLS, p uintptr, pSeg uintptr, iRowid Tu64)
_fts5DataWrite(tls, p, iTombstoneRowid, (*TFts5Data)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + uintptr(ii)*8)))).Fp, (*TFts5Data)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + uintptr(ii)*8)))).Fnn)
goto _3
_3:
+ ;
ii++
}
(*TFts5StructureSegment)(unsafe.Pointer(pSeg)).FnPgTombstone = *(*int32)(unsafe.Pointer(bp))
@@ -213787,10 +216245,12 @@ func _sqlite3Fts5IndexContentlessDelete(tls *libc.TLS, p uintptr, iOrigin Ti64,
}
goto _2
_2:
+ ;
iSeg--
}
goto _1
_1:
+ ;
iLvl--
}
_fts5StructureRelease(tls, pStruct)
@@ -213827,6 +216287,7 @@ func _sqlite3Fts5IndexEntryCksum(tls *libc.TLS, iRowid Ti64, iCol int32, iPos in
ret += ret<<libc.Int32FromInt32(3) + uint64(*(*uint8)(unsafe.Pointer(pTerm + uintptr(i))))
goto _1
_1:
+ ;
i++
}
return ret
@@ -213865,6 +216326,7 @@ func _fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirs
_fts5DataRelease(tls, pLeaf)
goto _1
_1:
+ ;
i++
}
}
@@ -213940,7 +216402,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+36687, 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+36713, 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))
@@ -214038,6 +216500,7 @@ func _fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) {
}
goto _5
_5:
+ ;
iPg++
}
iPrevLeaf = _fts5DlidxIterPgno(tls, pDlidx)
@@ -214063,6 +216526,7 @@ func _fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) {
}
goto _4
_4:
+ ;
_fts5DlidxIterNext(tls, p, pDlidx)
}
iDlidxPrevLeaf = iPg
@@ -214130,10 +216594,12 @@ func _sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum Tu64, bUseC
_fts5IndexIntegrityCheckSegment(tls, p, pSeg)
goto _2
_2:
+ ;
iSeg++
}
goto _1
_1:
+ ;
iLvl++
}
/* The cksum argument passed to this function is a checksum calculated
@@ -214169,7 +216635,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+36773)
+ _sqlite3Fts5BufferAppendBlob(tls, p+60, bp, uint32(4), __ccgo_ts+36799)
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))
iTokOff = int32(*(*Ti64)(unsafe.Pointer(bp + 32)) & libc.Int64FromInt32(0x7FFFFFFF))
@@ -214178,6 +216644,7 @@ func _sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum Tu64, bUseC
}
goto _3
_3:
+ ;
_fts5MultiIterNext(tls, p, *(*uintptr)(unsafe.Pointer(bp + 16)), 0, 0)
}
_fts5MultiIterFree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
@@ -214766,7 +217233,7 @@ func _fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) (r int32)
_ = libc.Int32FromInt32(0)
_ = libc.Int32FromInt32(0)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbLock != 0 {
- (*TFts5Table)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36778, 0)
+ (*TFts5Table)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36804, 0)
return int32(SQLITE_ERROR)
}
idxStr = Xsqlite3_malloc(tls, (*Tsqlite3_index_info)(unsafe.Pointer(pInfo)).FnConstraint*int32(8)+int32(1))
@@ -214806,7 +217273,7 @@ func _fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) (r int32)
v3 = iIdxStr
iIdxStr++
*(*uint8)(unsafe.Pointer(idxStr + uintptr(v3))) = uint8('M')
- Xsqlite3_snprintf(tls, int32(6), idxStr+uintptr(iIdxStr), __ccgo_ts+5113, libc.VaList(bp+8, iCol))
+ Xsqlite3_snprintf(tls, int32(6), idxStr+uintptr(iIdxStr), __ccgo_ts+5138, libc.VaList(bp+8, iCol))
idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr)))
_ = libc.Int32FromInt32(0)
}
@@ -214828,7 +217295,7 @@ func _fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) (r int32)
v6 = int32('G')
}
*(*uint8)(unsafe.Pointer(idxStr + uintptr(v5))) = uint8(v6)
- Xsqlite3_snprintf(tls, int32(6), idxStr+uintptr(iIdxStr), __ccgo_ts+5113, libc.VaList(bp+8, iCol))
+ Xsqlite3_snprintf(tls, int32(6), idxStr+uintptr(iIdxStr), __ccgo_ts+5138, libc.VaList(bp+8, iCol))
idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr)))
iCons++
v7 = iCons
@@ -214849,6 +217316,7 @@ func _fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) (r int32)
}
goto _1
_1:
+ ;
i++
}
if bSeenEq == 0 {
@@ -214888,6 +217356,7 @@ func _fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) (r int32)
}
goto _10
_10:
+ ;
i++
}
}
@@ -214966,6 +217435,7 @@ func _fts5NewTransaction(tls *libc.TLS, pTab uintptr) (r int32) {
}
goto _1
_1:
+ ;
pCsr = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FpNext
}
return _sqlite3Fts5StorageReset(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
@@ -215063,6 +217533,7 @@ func _fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) {
Xsqlite3_free(tls, pData)
goto _1
_1:
+ ;
pData = pNext
}
Xsqlite3_finalize(tls, (*TFts5Cursor)(unsafe.Pointer(pCsr)).FpRankArgStmt)
@@ -215096,6 +217567,7 @@ func _fts5CloseMethod(tls *libc.TLS, pCursor uintptr) (r int32) {
}
goto _1
_1:
+ ;
pp = *(*uintptr)(unsafe.Pointer(pp)) + 8
}
*(*uintptr)(unsafe.Pointer(pp)) = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FpNext
@@ -215137,6 +217609,7 @@ func _fts5SorterNext(tls *libc.TLS, pCsr uintptr) (r int32) {
*(*int32)(unsafe.Pointer(pSorter + 28 + uintptr(i)*4)) = iOff
goto _2
_2:
+ ;
i++
}
*(*int32)(unsafe.Pointer(pSorter + 28 + uintptr(i)*4)) = int32(t__predefined_ptrdiff_t(aBlob+uintptr(nBlob)) - int64(a))
@@ -215167,6 +217640,7 @@ func _fts5TripCursors(tls *libc.TLS, pTab uintptr) {
}
goto _1
_1:
+ ;
pCsr = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FpNext
}
}
@@ -215325,7 +217799,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 + 14965
+ v1 = __ccgo_ts + 14990
} else {
v1 = __ccgo_ts + 1648
}
@@ -215335,11 +217809,11 @@ func _fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int
v2 = __ccgo_ts + 1648
}
if bDesc != 0 {
- v3 = __ccgo_ts + 36817
+ v3 = __ccgo_ts + 36843
} else {
- v3 = __ccgo_ts + 36822
+ v3 = __ccgo_ts + 36848
}
- rc = _fts5PrepareStatement(tls, pSorter, pConfig, __ccgo_ts+36826, 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+36852, 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 {
_ = libc.Int32FromInt32(0)
@@ -215394,18 +217868,19 @@ func _fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr
}
goto _1
_1:
+ ;
n++
}
_ = libc.Int32FromInt32(0)
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FePlan = int32(FTS5_PLAN_SPECIAL)
- if n == int32(5) && 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+36881, z, n) {
+ if n == int32(5) && 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+36907, 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+5456, z, n) {
+ if n == int32(2) && 0 == Xsqlite3_strnicmp(tls, __ccgo_ts+5481, 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+36887, libc.VaList(bp+8, n, z))
+ (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36913, libc.VaList(bp+8, n, z))
rc = int32(SQLITE_ERROR)
}
}
@@ -215432,6 +217907,7 @@ func _fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) (r uintptr)
}
goto _1
_1:
+ ;
pAux = (*TFts5Auxiliary)(unsafe.Pointer(pAux)).FpNext
}
/* No function of the specified name was found. Return 0. */
@@ -215454,7 +217930,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+36915, libc.VaList(bp+24, zRankArgs))
+ zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+36941, 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))
@@ -215474,6 +217950,7 @@ func _fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) (r int32) {
*(*uintptr)(unsafe.Pointer((*TFts5Cursor)(unsafe.Pointer(pCsr)).FapRankArg + uintptr(i)*8)) = Xsqlite3_column_value(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), i)
goto _1
_1:
+ ;
i++
}
}
@@ -215489,7 +217966,7 @@ func _fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) (r int32) {
pAux = _fts5FindAuxiliary(tls, pTab, zRank)
if pAux == uintptr(0) {
_ = libc.Int32FromInt32(0)
- (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36925, libc.VaList(bp+24, zRank))
+ (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36951, libc.VaList(bp+24, zRank))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
}
@@ -215523,7 +218000,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+36946, libc.VaList(bp+24, z))
+ (*Tsqlite3_vtab)(unsafe.Pointer((*TFts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36972, libc.VaList(bp+24, z))
}
}
} else {
@@ -215531,7 +218008,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 + 34878
+ (*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRank = __ccgo_ts + 34904
(*TFts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = uintptr(0)
}
}
@@ -215582,7 +218059,7 @@ func _fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uint
iIdxStr = 0
*(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbLock != 0 {
- (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36778, 0)
+ (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+36804, 0)
return int32(SQLITE_ERROR)
}
if (*TFts5Cursor)(unsafe.Pointer(pCsr)).FePlan != 0 {
@@ -215667,6 +218144,7 @@ func _fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uint
}
goto _1
_1:
+ ;
i++
}
if idxNum&int32(FTS5_BI_ORDER_RANK) != 0 {
@@ -215739,7 +218217,7 @@ func _fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uint
}
} else {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FzContent == uintptr(0) {
- *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+36979, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ *(*uintptr)(unsafe.Pointer((*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, __ccgo_ts+37005, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
rc = int32(SQLITE_ERROR)
} else {
/* This is either a full-table scan (ePlan==FTS5_PLAN_SCAN) or a lookup
@@ -215765,6 +218243,7 @@ func _fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uint
}
}
filter_out:
+ ;
_sqlite3Fts5ExprFree(tls, *(*uintptr)(unsafe.Pointer(bp)))
(*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg = pzErrmsg
return rc
@@ -215926,36 +218405,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+37015, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37041, zCmd) {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+37026, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+37052, 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+37106, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37132, zCmd) {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == int32(FTS5_CONTENT_NONE) {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+37114, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+37140, 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+17327, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+17361, zCmd) {
rc = _sqlite3Fts5StorageOptimize(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37170, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37196, zCmd) {
nMerge = Xsqlite3_value_int(tls, pVal)
rc = _sqlite3Fts5StorageMerge(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, nMerge)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37176, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37202, zCmd) {
iArg = Xsqlite3_value_int(tls, pVal)
rc = _sqlite3Fts5StorageIntegrity(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg)
} else {
- if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37192, zCmd) {
+ if 0 == Xsqlite3_stricmp(tls, __ccgo_ts+37218, zCmd) {
rc = _sqlite3Fts5FlushToDisk(tls, pTab)
} else {
rc = _sqlite3Fts5FlushToDisk(tls, pTab)
@@ -216058,9 +218537,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+17847, z) {
+ if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL && 0 == Xsqlite3_stricmp(tls, __ccgo_ts+17881, z) {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete != 0 {
- _fts5SetVtabError(tls, pTab, __ccgo_ts+37198, 0)
+ _fts5SetVtabError(tls, pTab, __ccgo_ts+37224, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
*(*int32)(unsafe.Pointer(bp)) = _fts5SpecialDelete(tls, pTab, apVal)
@@ -216091,11 +218570,11 @@ func _fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr,
** VIRTUAL TABLE statement contained "contentless_delete=1". */
if eType0 == int32(SQLITE_INTEGER) && (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == int32(FTS5_CONTENT_NONE) && (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete == 0 {
if nArg > int32(1) {
- v1 = __ccgo_ts + 20835
+ v1 = __ccgo_ts + 20869
} else {
- v1 = __ccgo_ts + 37257
+ v1 = __ccgo_ts + 37283
}
- (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+37269, libc.VaList(bp+16, v1, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, __ccgo_ts+37295, libc.VaList(bp+16, v1, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if nArg == int32(1) {
@@ -216146,7 +218625,7 @@ func _fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr,
}
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK && bUpdateOrDelete != 0 && (*TFts5Config)(unsafe.Pointer(pConfig)).FbSecureDelete != 0 && (*TFts5Config)(unsafe.Pointer(pConfig)).FiVersion == int32(FTS5_CURRENT_VERSION) {
- *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5StorageConfigValue(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, __ccgo_ts+35806, uintptr(0), int32(FTS5_CURRENT_VERSION_SECUREDELETE))
+ *(*int32)(unsafe.Pointer(bp)) = _sqlite3Fts5StorageConfigValue(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, __ccgo_ts+35832, uintptr(0), int32(FTS5_CURRENT_VERSION_SECUREDELETE))
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
(*TFts5Config)(unsafe.Pointer(pConfig)).FiVersion = int32(FTS5_CURRENT_VERSION_SECUREDELETE)
}
@@ -216315,6 +218794,7 @@ func _fts5CsrPoslist(tls *libc.TLS, pCsr uintptr, iPhrase int32, pa uintptr, pn
}
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, aPopulator)
@@ -216385,6 +218865,7 @@ func _fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
if *(*int32)(unsafe.Pointer(bp)) == SQLITE_OK {
@@ -216400,6 +218881,7 @@ func _fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) (r int32) {
}
goto _2
_2:
+ ;
i++
}
if iBest < 0 {
@@ -216527,6 +219009,7 @@ func _fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr
}
goto _1
_1:
+ ;
i++
}
} else {
@@ -216545,6 +219028,7 @@ func _fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr
}
goto _2
_2:
+ ;
i1++
}
}
@@ -216561,6 +219045,7 @@ func _fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr
*(*int32)(unsafe.Pointer(pnToken)) += *(*int32)(unsafe.Pointer((*TFts5Cursor)(unsafe.Pointer(pCsr)).FaColumnSize + uintptr(i2)*4))
goto _3
_3:
+ ;
i2++
}
} else {
@@ -216598,6 +219083,7 @@ func _fts5ApiSetAuxdata(tls *libc.TLS, pCtx uintptr, pPtr uintptr, xDelete uintp
}
goto _1
_1:
+ ;
pData = (*TFts5Auxdata)(unsafe.Pointer(pData)).FpNext
}
if pData != 0 {
@@ -216637,6 +219123,7 @@ func _fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) (r uintptr) {
}
goto _1
_1:
+ ;
pData = (*TFts5Auxdata)(unsafe.Pointer(pData)).FpNext
}
if pData != 0 {
@@ -216894,6 +219381,7 @@ func _fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData u
}
goto _1
_1:
+ ;
rc = _fts5NextMethod(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
}
@@ -216921,6 +219409,7 @@ func _fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId Ti64) (r uintpt
}
goto _1
_1:
+ ;
pCsr = (*TFts5Cursor)(unsafe.Pointer(pCsr)).FpNext
}
return pCsr
@@ -216937,7 +219426,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 {
- zErr = Xsqlite3_mprintf(tls, __ccgo_ts+37306, libc.VaList(bp+8, iCsrId))
+ zErr = Xsqlite3_mprintf(tls, __ccgo_ts+37332, libc.VaList(bp+8, iCsrId))
Xsqlite3_result_error(tls, context, zErr, -int32(1))
Xsqlite3_free(tls, zErr)
} else {
@@ -217004,9 +219493,11 @@ func _fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) (r int32) {
}
goto _4
_1:
+ ;
/* Append the varints */
i = 0
_7:
+ ;
if !(i < nPhrase-int32(1)) {
goto _5
}
@@ -217014,10 +219505,12 @@ _7:
_sqlite3Fts5BufferAppendVarint(tls, bp, bp+8, int64(nByte))
goto _6
_6:
+ ;
i++
goto _7
goto _5
_5:
+ ;
/* Append the position lists */
i = 0
for {
@@ -217028,10 +219521,12 @@ _5:
_sqlite3Fts5BufferAppendBlob(tls, bp, bp+8, uint32(nPoslist), *(*uintptr)(unsafe.Pointer(bp + 32)))
goto _8
_8:
+ ;
i++
}
goto _4
_2:
+ ;
/* Append the varints */
i = 0
for {
@@ -217042,6 +219537,7 @@ _2:
_sqlite3Fts5BufferAppendVarint(tls, bp, bp+8, int64(*(*int32)(unsafe.Pointer(bp + 48))))
goto _9
_9:
+ ;
i++
}
/* Append the position lists */
@@ -217054,12 +219550,15 @@ _2:
_sqlite3Fts5BufferAppendBlob(tls, bp, bp+8, uint32(*(*int32)(unsafe.Pointer(bp + 64))), *(*uintptr)(unsafe.Pointer(bp + 56)))
goto _10
_10:
+ ;
i++
}
goto _4
_3:
+ ;
goto _4
_4:
+ ;
Xsqlite3_result_blob(tls, pCtx, (*(*TFts5Buffer)(unsafe.Pointer(bp + 8))).Fp, (*(*TFts5Buffer)(unsafe.Pointer(bp + 8))).Fn, __ccgo_fp(Xsqlite3_free))
return *(*int32)(unsafe.Pointer(bp))
}
@@ -217119,7 +219618,7 @@ func _fts5ColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32)
(*TFts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg = uintptr(0)
} else {
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete != 0 && Xsqlite3_vtab_nochange(tls, pCtx) != 0 {
- zErr = Xsqlite3_mprintf(tls, __ccgo_ts+37327, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
+ zErr = Xsqlite3_mprintf(tls, __ccgo_ts+37353, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
Xsqlite3_result_error(tls, pCtx, zErr, -int32(1))
Xsqlite3_free(tls, zErr)
}
@@ -217317,6 +219816,7 @@ func _fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) (r uint
}
goto _1
_1:
+ ;
pMod = (*TFts5TokenizerModule)(unsafe.Pointer(pMod)).FpNext
}
}
@@ -217361,7 +219861,7 @@ func _sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nAr
if pMod == uintptr(0) {
_ = libc.Int32FromInt32(0)
rc = int32(SQLITE_ERROR)
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37398, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37424, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg))))
} else {
if azArg != 0 {
v2 = azArg + 1*8
@@ -217377,7 +219877,7 @@ func _sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nAr
(*TFts5Config)(unsafe.Pointer(pConfig)).FpTokApi = pMod + 16
if rc != SQLITE_OK {
if pzErr != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37420, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37446, 0)
}
} else {
(*TFts5Config)(unsafe.Pointer(pConfig)).FePattern = _sqlite3Fts5TokenizerPattern(tls, (*TFts5TokenizerModule)(unsafe.Pointer(pMod)).Fx.FxCreate, (*TFts5Config)(unsafe.Pointer(pConfig)).FpTok)
@@ -217406,6 +219906,7 @@ func _fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) {
Xsqlite3_free(tls, pAux)
goto _1
_1:
+ ;
pAux = pNextAux
}
pTok = (*TFts5Global)(unsafe.Pointer(pGlobal)).FpTok
@@ -217420,6 +219921,7 @@ func _fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) {
Xsqlite3_free(tls, pTok)
goto _2
_2:
+ ;
pTok = pNextTok
}
Xsqlite3_free(tls, pGlobal)
@@ -217431,7 +219933,7 @@ func _fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) {
pGlobal = Xsqlite3_user_data(tls, pCtx)
_ = nArg
_ = libc.Int32FromInt32(0)
- ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), __ccgo_ts+37451)
+ ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), __ccgo_ts+37477)
if ppApi != 0 {
*(*uintptr)(unsafe.Pointer(ppApi)) = pGlobal
}
@@ -217446,7 +219948,7 @@ func _fts5SourceIdFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apUnused uintptr
_ = libc.Int32FromInt32(0)
_ = nArg
_ = apUnused
- Xsqlite3_result_text(tls, pCtx, __ccgo_ts+37464, -int32(1), uintptr(-libc.Int32FromInt32(1)))
+ Xsqlite3_result_text(tls, pCtx, __ccgo_ts+37490, -int32(1), uintptr(-libc.Int32FromInt32(1)))
}
// C documentation
@@ -217468,17 +219970,18 @@ func _fts5ShadowName(tls *libc.TLS, zName uintptr) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
}
var _azName2 = [5]uintptr{
- 0: __ccgo_ts + 37555,
- 1: __ccgo_ts + 35067,
- 2: __ccgo_ts + 25715,
- 3: __ccgo_ts + 35634,
- 4: __ccgo_ts + 11768,
+ 0: __ccgo_ts + 37581,
+ 1: __ccgo_ts + 35093,
+ 2: __ccgo_ts + 25741,
+ 3: __ccgo_ts + 35660,
+ 4: __ccgo_ts + 11793,
}
// C documentation
@@ -217499,10 +220002,10 @@ func _fts5IntegrityMethod(tls *libc.TLS, pVtab uintptr, zSchema uintptr, zTabnam
_ = isQuick
rc = _sqlite3Fts5StorageIntegrity(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).FpStorage, 0)
if rc&int32(0xff) == int32(SQLITE_CORRUPT) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37562, libc.VaList(bp+8, zSchema, zTabname))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37588, libc.VaList(bp+8, zSchema, zTabname))
} else {
if rc != SQLITE_OK {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37608, libc.VaList(bp+8, zSchema, zTabname, Xsqlite3_errstr(tls, rc)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+37634, libc.VaList(bp+8, zSchema, zTabname, Xsqlite3_errstr(tls, rc)))
}
}
_sqlite3Fts5IndexCloseReader(tls, (*TFts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex)
@@ -217525,7 +220028,7 @@ func _fts5Init(tls *libc.TLS, db uintptr) (r int32) {
(*TFts5Global)(unsafe.Pointer(pGlobal)).Fapi.FxCreateFunction = __ccgo_fp(_fts5CreateAux)
(*TFts5Global)(unsafe.Pointer(pGlobal)).Fapi.FxCreateTokenizer = __ccgo_fp(_fts5CreateTokenizer)
(*TFts5Global)(unsafe.Pointer(pGlobal)).Fapi.FxFindTokenizer = __ccgo_fp(_fts5FindTokenizer)
- rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+37671, uintptr(unsafe.Pointer(&_fts5Mod)), p, __ccgo_fp(_fts5ModuleDestroy))
+ rc = Xsqlite3_create_module_v2(tls, db, __ccgo_ts+37697, uintptr(unsafe.Pointer(&_fts5Mod)), p, __ccgo_fp(_fts5ModuleDestroy))
if rc == SQLITE_OK {
rc = _sqlite3Fts5IndexInit(tls, db)
}
@@ -217542,10 +220045,10 @@ 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+37671, int32(1), int32(SQLITE_UTF8), p, __ccgo_fp(_fts5Fts5Func), uintptr(0), uintptr(0))
+ rc = Xsqlite3_create_function(tls, db, __ccgo_ts+37697, 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+37676, 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+37702, 0, libc.Int32FromInt32(SQLITE_UTF8)|libc.Int32FromInt32(SQLITE_DETERMINISTIC)|libc.Int32FromInt32(SQLITE_INNOCUOUS), p, __ccgo_fp(_fts5SourceIdFunc), uintptr(0), uintptr(0))
}
}
/* If SQLITE_FTS5_ENABLE_TEST_MI is defined, assume that the file
@@ -217650,17 +220153,17 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
_ = libc.Int32FromInt32(0)
if *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(eStmt)*8)) == uintptr(0) {
azStmt = [11]uintptr{
- 0: __ccgo_ts + 37691,
- 1: __ccgo_ts + 37759,
- 2: __ccgo_ts + 37828,
- 3: __ccgo_ts + 37861,
- 4: __ccgo_ts + 37900,
- 5: __ccgo_ts + 37940,
- 6: __ccgo_ts + 37979,
- 7: __ccgo_ts + 38022,
- 8: __ccgo_ts + 38061,
- 9: __ccgo_ts + 38105,
- 10: __ccgo_ts + 38145,
+ 0: __ccgo_ts + 37717,
+ 1: __ccgo_ts + 37785,
+ 2: __ccgo_ts + 37854,
+ 3: __ccgo_ts + 37887,
+ 4: __ccgo_ts + 37926,
+ 5: __ccgo_ts + 37966,
+ 6: __ccgo_ts + 38005,
+ 7: __ccgo_ts + 38048,
+ 8: __ccgo_ts + 38087,
+ 9: __ccgo_ts + 38131,
+ 10: __ccgo_ts + 38171,
}
pC = (*TFts5Storage)(unsafe.Pointer(p)).FpConfig
zSql = uintptr(0)
@@ -217688,6 +220191,7 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
*(*uint8)(unsafe.Pointer(zBind + uintptr(i*int32(2)+int32(1)))) = uint8(',')
goto _1
_1:
+ ;
i++
}
*(*uint8)(unsafe.Pointer(zBind + uintptr(i*int32(2)-int32(1)))) = uint8('\000')
@@ -217696,14 +220200,14 @@ func _fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr,
}
case int32(FTS5_STMT_REPLACE_DOCSIZE):
if (*TFts5Config)(unsafe.Pointer(pC)).FbContentlessDelete != 0 {
- v2 = __ccgo_ts + 38168
+ v2 = __ccgo_ts + 38194
} else {
v2 = __ccgo_ts + 1648
}
zSql = Xsqlite3_mprintf(tls, azStmt[eStmt], libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pC)).FzDb, (*TFts5Config)(unsafe.Pointer(pC)).FzName, v2))
case int32(FTS5_STMT_LOOKUP_DOCSIZE):
if (*TFts5Config)(unsafe.Pointer(pC)).FbContentlessDelete != 0 {
- v3 = __ccgo_ts + 38171
+ v3 = __ccgo_ts + 38197
} else {
v3 = __ccgo_ts + 1648
}
@@ -217761,12 +220265,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+38179, 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+38205, 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+38283, 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+38309, 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+38321, 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+38347, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName))
}
return rc
}
@@ -217775,7 +220279,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+38359, 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+38385, libc.VaList(bp+8, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zTail, zName, zTail))
}
}
@@ -217787,14 +220291,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+25715, zName)
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+11768, zName)
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+37555, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+25741, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+11793, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+37581, zName)
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+35634, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+35660, zName)
}
if (*TFts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL {
- _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+35067, zName)
+ _fts5StorageRenameOne(tls, pConfig, bp, __ccgo_ts+35093, zName)
}
return *(*int32)(unsafe.Pointer(bp))
}
@@ -217814,13 +220318,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 + 30355
+ v1 = __ccgo_ts + 30381
} else {
v1 = __ccgo_ts + 1648
}
- rc = _fts5ExecPrintf(tls, (*TFts5Config)(unsafe.Pointer(pConfig)).Fdb, bp, __ccgo_ts+38401, 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+38427, 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+38431, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, *(*uintptr)(unsafe.Pointer(bp))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+38457, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, *(*uintptr)(unsafe.Pointer(bp))))
Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
return rc
@@ -217861,35 +220365,36 @@ 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+38475, 0)
+ Xsqlite3_snprintf(tls, nDefn, zDefn, __ccgo_ts+38501, 0)
iOff = int32(libc.Xstrlen(tls, zDefn))
i = 0
for {
if !(i < (*TFts5Config)(unsafe.Pointer(pConfig)).FnCol) {
break
}
- Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), __ccgo_ts+38498, libc.VaList(bp+8, i))
+ Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), __ccgo_ts+38524, libc.VaList(bp+8, i))
iOff += int32(libc.Xstrlen(tls, zDefn+uintptr(iOff)))
goto _2
_2:
+ ;
i++
}
- rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+35067, zDefn, 0, pzErr)
+ rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+35093, zDefn, 0, pzErr)
}
Xsqlite3_free(tls, zDefn)
}
if rc == SQLITE_OK && (*TFts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 {
- zCols = __ccgo_ts + 38504
+ zCols = __ccgo_ts + 38530
if (*TFts5Config)(unsafe.Pointer(pConfig)).FbContentlessDelete != 0 {
- zCols = __ccgo_ts + 38536
+ zCols = __ccgo_ts + 38562
}
- rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+35634, zCols, 0, pzErr)
+ rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+35660, zCols, 0, pzErr)
}
if rc == SQLITE_OK {
- rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+37555, __ccgo_ts+38584, int32(1), pzErr)
+ rc = _sqlite3Fts5CreateTable(tls, pConfig, __ccgo_ts+37581, __ccgo_ts+38610, int32(1), pzErr)
}
if rc == SQLITE_OK {
- rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+35806, uintptr(0), int32(FTS5_CURRENT_VERSION))
+ rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+35832, uintptr(0), int32(FTS5_CURRENT_VERSION))
}
}
if rc != 0 {
@@ -217918,6 +220423,7 @@ func _sqlite3Fts5StorageClose(tls *libc.TLS, p uintptr) (r int32) {
Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
Xsqlite3_free(tls, p)
@@ -218020,6 +220526,7 @@ func _fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel Ti64, apVal uint
}
goto _1
_1:
+ ;
iCol++
}
if rc == SQLITE_OK && (*TFts5Storage)(unsafe.Pointer(p)).FnTotalRow < int64(1) {
@@ -218160,6 +220667,7 @@ func _fts5StorageSaveTotals(tls *libc.TLS, p uintptr) (r int32) {
_sqlite3Fts5BufferAppendVarint(tls, bp+16, bp, *(*Ti64)(unsafe.Pointer((*TFts5Storage)(unsafe.Pointer(p)).FaTotalSize + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK {
@@ -218233,9 +220741,9 @@ 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+38601, 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+38627, 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+38651, 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+38677, 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. */
@@ -218243,7 +220751,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+35806, uintptr(0), int32(FTS5_CURRENT_VERSION))
+ rc = _sqlite3Fts5StorageConfigValue(tls, p, __ccgo_ts+35832, uintptr(0), int32(FTS5_CURRENT_VERSION))
}
return rc
}
@@ -218290,6 +220798,7 @@ func _sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) (r int32) {
*(*Ti64)(unsafe.Pointer((*TFts5Storage)(unsafe.Pointer(p)).FaTotalSize + uintptr((*(*TFts5InsertCtx)(unsafe.Pointer(bp + 24))).FiCol)*8)) += int64((*(*TFts5InsertCtx)(unsafe.Pointer(bp + 24))).FszCol)
goto _1
_1:
+ ;
(*(*TFts5InsertCtx)(unsafe.Pointer(bp + 24))).FiCol++
}
(*TFts5Storage)(unsafe.Pointer(p)).FnTotalRow++
@@ -218387,6 +220896,7 @@ func _sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, p
rc = Xsqlite3_bind_value(tls, *(*uintptr)(unsafe.Pointer(bp)), i, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8)))
goto _1
_1:
+ ;
i++
}
if rc == SQLITE_OK {
@@ -218435,6 +220945,7 @@ func _sqlite3Fts5StorageIndexInsert(tls *libc.TLS, p uintptr, apVal uintptr, iRo
*(*Ti64)(unsafe.Pointer((*TFts5Storage)(unsafe.Pointer(p)).FaTotalSize + uintptr((*(*TFts5InsertCtx)(unsafe.Pointer(bp + 8))).FiCol)*8)) += int64((*(*TFts5InsertCtx)(unsafe.Pointer(bp + 8))).FszCol)
goto _1
_1:
+ ;
(*(*TFts5InsertCtx)(unsafe.Pointer(bp + 8))).FiCol++
}
(*TFts5Storage)(unsafe.Pointer(p)).FnTotalRow++
@@ -218454,7 +220965,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+38680, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
+ zSql = Xsqlite3_mprintf(tls, __ccgo_ts+38706, libc.VaList(bp+16, (*TFts5Config)(unsafe.Pointer(pConfig)).FzDb, (*TFts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix))
if zSql == uintptr(0) {
rc = int32(SQLITE_NOMEM)
} else {
@@ -218553,6 +221064,7 @@ func _fts5StorageIntegrityCallback(tls *libc.TLS, pContext uintptr, tflags int32
}
goto _1
_1:
+ ;
ii++
}
return rc
@@ -218629,6 +221141,7 @@ func _sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) (r int32
}
goto _1
_1:
+ ;
i++
}
_sqlite3Fts5TermsetFree(tls, (*(*TFts5IntegrityCtx)(unsafe.Pointer(bp))).FpTermset)
@@ -218655,6 +221168,7 @@ func _sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) (r int32
}
goto _2
_2:
+ ;
i1++
}
}
@@ -218662,14 +221176,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 + 48)) = 0
- rc = _fts5StorageCount(tls, p, __ccgo_ts+35067, bp+48)
+ rc = _fts5StorageCount(tls, p, __ccgo_ts+35093, bp+48)
if rc == SQLITE_OK && *(*Ti64)(unsafe.Pointer(bp + 48)) != (*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 + 56)) = 0
- rc = _fts5StorageCount(tls, p, __ccgo_ts+35634, bp+56)
+ rc = _fts5StorageCount(tls, p, __ccgo_ts+35660, bp+56)
if rc == SQLITE_OK && *(*Ti64)(unsafe.Pointer(bp + 56)) != (*TFts5Storage)(unsafe.Pointer(p)).FnTotalRow {
rc = libc.Int32FromInt32(SQLITE_CORRUPT) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)
}
@@ -218735,6 +221249,7 @@ func _fts5StorageDecodeSizeArray(tls *libc.TLS, aCol uintptr, nCol int32, aBlob
iOff += _sqlite3Fts5GetVarint32(tls, aBlob+uintptr(iOff), aCol+uintptr(i)*4)
goto _1
_1:
+ ;
i++
}
return libc.BoolInt32(iOff != nBlob)
@@ -218797,6 +221312,7 @@ func _sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintp
*(*Ti64)(unsafe.Pointer(pnToken)) += *(*Ti64)(unsafe.Pointer((*TFts5Storage)(unsafe.Pointer(p)).FaTotalSize + uintptr(i)*8))
goto _1
_1:
+ ;
i++
}
} else {
@@ -219001,6 +221517,7 @@ func _fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars
}
goto _1
_1:
+ ;
i++
}
}
@@ -219041,10 +221558,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+38712) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38738) {
_fts5AsciiAddExceptions(tls, p, zArg, int32(1))
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38723) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38749) {
_fts5AsciiAddExceptions(tls, p, zArg, 0)
} else {
rc = int32(SQLITE_ERROR)
@@ -219052,6 +221569,7 @@ func _fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32,
}
goto _1
_1:
+ ;
i += int32(2)
}
if rc != SQLITE_OK {
@@ -219080,6 +221598,7 @@ func _asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) {
*(*uint8)(unsafe.Pointer(aOut + uintptr(i))) = c
goto _1
_1:
+ ;
i++
}
}
@@ -219224,6 +221743,7 @@ func _fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars
}
goto _3
_3:
+ ;
i++
}
libc.Xmemmove(tls, aNew+uintptr(i+int32(1))*4, aNew+uintptr(i)*4, uint64(nNew-i)*uint64(4))
@@ -219323,7 +221843,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 + 38734
+ zCat = __ccgo_ts + 38760
libc.Xmemset(tls, p, 0, uint64(192))
(*TUnicode61Tokenizer)(unsafe.Pointer(p)).FeRemoveDiacritic = int32(FTS5_REMOVE_DIACRITICS_SIMPLE)
(*TUnicode61Tokenizer)(unsafe.Pointer(p)).FnFold = int32(64)
@@ -219337,11 +221857,12 @@ 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+38743) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38769) {
zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+int32(1))*8))
}
goto _1
_1:
+ ;
i += int32(2)
}
if rc == SQLITE_OK {
@@ -219353,7 +221874,7 @@ 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+38754) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38780) {
if int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('1') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('2') || *(*uint8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = int32(SQLITE_ERROR)
} else {
@@ -219361,13 +221882,13 @@ func _fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int3
_ = libc.Int32FromInt32(0)
}
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38712) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38738) {
rc = _fts5UnicodeAddExceptions(tls, p, zArg, int32(1))
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38723) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38749) {
rc = _fts5UnicodeAddExceptions(tls, p, zArg, 0)
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38743) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38769) {
/* no-op */
} else {
rc = int32(SQLITE_ERROR)
@@ -219377,6 +221898,7 @@ func _fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int3
}
goto _2
_2:
+ ;
i += int32(2)
}
} else {
@@ -219420,6 +221942,7 @@ func _fts5UnicodeTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnus
/* Each iteration of this loop gobbles up a contiguous run of separators,
** then the next token. */
_2:
+ ;
if !(rc == SQLITE_OK) {
goto _1
} /* non-ASCII codepoint read from input */
@@ -219461,6 +221984,7 @@ _2:
/* Run through the tokenchars. Fold them into the output buffer along
** the way. */
_6:
+ ;
if !(zCsr < zTerm) {
goto _5
}
@@ -219504,6 +222028,7 @@ _6:
goto _12
}
non_ascii_tokenchar:
+ ;
iCode = uint32(_sqlite3Fts5UnicodeFold(tls, int32(iCode), (*TUnicode61Tokenizer)(unsafe.Pointer(p)).FeRemoveDiacritic))
if iCode != 0 {
if iCode < uint32(0x00080) {
@@ -219548,10 +222073,13 @@ non_ascii_tokenchar:
}
goto _13
_12:
+ ;
goto _5
_13:
+ ;
goto _9
_8:
+ ;
if !(int32(*(*uint8)(unsafe.Pointer(a + uintptr(*(*uint8)(unsafe.Pointer(zCsr)))))) == 0) {
goto _24
}
@@ -219559,7 +222087,9 @@ _8:
goto _5
goto _25
_24:
+ ;
ascii_tokenchar:
+ ;
if int32(*(*uint8)(unsafe.Pointer(zCsr))) >= int32('A') && int32(*(*uint8)(unsafe.Pointer(zCsr))) <= int32('Z') {
v26 = zOut
zOut++
@@ -219571,15 +222101,20 @@ ascii_tokenchar:
}
zCsr++
_25:
+ ;
_9:
+ ;
ie = int32(int64(zCsr) - int64(pText))
goto _6
_5:
+ ;
/* Invoke the token callback */
rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32)(unsafe.Pointer(&struct{ uintptr }{xToken})))(tls, pCtx, 0, aFold, int32(int64(zOut)-int64(aFold)), is, ie)
goto _2
_1:
+ ;
tokenize_done:
+ ;
if rc == int32(SQLITE_DONE) {
rc = SQLITE_OK
}
@@ -219641,7 +222176,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 + 38772
+ zBase = __ccgo_ts + 38798
if nArg > 0 {
zBase = *(*uintptr)(unsafe.Pointer(azArg))
}
@@ -219732,6 +222267,7 @@ func _fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons in
}
goto _1
_1:
+ ;
i++
}
/* Scan for a consonent */
@@ -219747,6 +222283,7 @@ func _fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons in
}
goto _3
_3:
+ ;
i++
}
return 0
@@ -219806,6 +222343,7 @@ func _fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) (r int32) {
mask = mask<<int32(1) + bCons
goto _1
_1:
+ ;
i++
}
return libc.BoolInt32(mask&int32(0x0007) == int32(0x0005))
@@ -219837,6 +222375,7 @@ func _fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) (r int32) {
}
goto _1
_1:
+ ;
i++
}
return 0
@@ -219854,64 +222393,64 @@ func _fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*uint8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38782, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38808, 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+38785, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38811, 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+38790, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38816, 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+38795, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38821, 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+38798, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38824, 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+38801, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38827, 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+38806, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38832, 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+38811, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38837, 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+38815, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38841, 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+38821, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38847, 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+38826, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38852, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
@@ -219920,49 +222459,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+38830, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38856, 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+38834, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38860, 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+38837, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38863, 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+38841, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38867, 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+38845, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38871, 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+38849, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38875, 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+38853, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38879, 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+38857, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38883, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
if _fts5Porter_MGt1(tls, aBuf, nBuf-int32(3)) != 0 {
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3)
}
@@ -219979,20 +222518,20 @@ func _fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*uint8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38861, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+38841, uint64(3))
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38887, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+38867, 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+38864, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+38867, uint64(3))
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38890, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+38893, 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+38871, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
- libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+38857, uint64(3))
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38897, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(2)), __ccgo_ts+38883, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(2) + int32(3)
ret = int32(1)
}
@@ -220008,75 +222547,75 @@ func _fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*uint8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38874, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38900, 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+38841, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+38867, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38882, aBuf+uintptr(nBuf-int32(6)), uint64(6)) {
+ if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38908, 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+38889, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(6)), __ccgo_ts+38915, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(6) + int32(4)
}
}
}
case int32('c'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38894, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38920, 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+38790, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+38816, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(4)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38899, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38925, 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+38785, uint64(4))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+38811, uint64(4))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(4)
}
}
}
case int32('e'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38904, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38930, 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+38857, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+38883, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(3)
}
}
case int32('g'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38909, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38935, 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+15873, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+15907, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(3)
}
}
case int32('l'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38914, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38940, 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+38867, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+38893, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3) + int32(3)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38918, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38944, 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+38782, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+38808, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(2)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38923, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38949, 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+38826, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38852, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
} else {
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38929, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38955, 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+38933, uint64(1))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+38959, uint64(1))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3) + int32(1)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38935, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38961, 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+38849, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38875, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
}
@@ -220085,48 +222624,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+38941, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38967, 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+38857, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+38883, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38949, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38975, 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+38841, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38867, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
} else {
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38955, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38981, 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+38841, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+38867, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(3)
}
}
}
}
case int32('s'):
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38960, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38986, 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+38782, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38808, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
} else {
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38966, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38992, 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+38853, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+38879, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38974, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39000, 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+38982, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+39008, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
} else {
- if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38986, aBuf+uintptr(nBuf-int32(7)), uint64(7)) {
+ if nBuf > int32(7) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39012, 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+38849, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(7)), __ccgo_ts+38875, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(7) + int32(3)
}
}
@@ -220134,21 +222673,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+38994, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39020, 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+38782, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38808, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39000, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39026, 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+38853, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38879, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(3)
}
} else {
- if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39006, aBuf+uintptr(nBuf-int32(6)), uint64(6)) {
+ if nBuf > int32(6) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39032, 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+38867, uint64(3))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(6)), __ccgo_ts+38893, uint64(3))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(6) + int32(3)
}
}
@@ -220166,48 +222705,48 @@ func _fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*uint8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('a'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39013, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39039, 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+38798, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(4)), __ccgo_ts+38824, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(4) + int32(2)
}
}
case int32('s'):
- if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39018, aBuf+uintptr(nBuf-int32(4)), uint64(4)) {
+ if nBuf > int32(4) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39044, 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+39023, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39049, 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+38798, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38824, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
} else {
- if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39029, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39055, 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+38798, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38824, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
}
}
case int32('u'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+38982, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39008, 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+39035, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39061, 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+39041, aBuf+uintptr(nBuf-int32(5)), uint64(5)) {
+ if nBuf > int32(5) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39067, 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+38782, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(5)), __ccgo_ts+38808, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(5) + int32(2)
}
}
@@ -220223,13 +222762,13 @@ func _fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) (r int32) {
nBuf = *(*int32)(unsafe.Pointer(pnBuf))
switch int32(*(*uint8)(unsafe.Pointer(aBuf + uintptr(nBuf-int32(2))))) {
case int32('e'):
- if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39047, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39073, 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+39051, uint64(2))
+ libc.Xmemcpy(tls, aBuf+uintptr(nBuf-int32(3)), __ccgo_ts+39077, uint64(2))
*(*int32)(unsafe.Pointer(pnBuf)) = nBuf - int32(3) + int32(2)
}
} else {
- if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39054, aBuf+uintptr(nBuf-int32(2)), uint64(2)) {
+ if nBuf > int32(2) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39080, 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)
@@ -220237,7 +222776,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+39057, aBuf+uintptr(nBuf-int32(3)), uint64(3)) {
+ if nBuf > int32(3) && 0 == libc.Xmemcmp(tls, __ccgo_ts+39083, 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)
@@ -220324,6 +222863,7 @@ func _fts5PorterCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nT
}
return (*(*func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*TPorterContext)(unsafe.Pointer(p)).FxToken})))(tls, (*TPorterContext)(unsafe.Pointer(p)).FpCtx, tflags, aBuf, *(*int32)(unsafe.Pointer(bp)), iStart, iEnd)
pass_through:
+ ;
return (*(*func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*TPorterContext)(unsafe.Pointer(p)).FxToken})))(tls, (*TPorterContext)(unsafe.Pointer(p)).FpCtx, tflags, pToken, nToken, iStart, iEnd)
return r
}
@@ -220397,14 +222937,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+39061) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+39087) {
if int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('1') || *(*uint8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = int32(SQLITE_ERROR)
} else {
(*TTrigramTokenizer)(unsafe.Pointer(pNew)).FbFold = libc.BoolInt32(int32(*(*uint8)(unsafe.Pointer(zArg))) == int32('0'))
}
} else {
- if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38754) {
+ if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), __ccgo_ts+38780) {
if int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('0') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('1') && int32(*(*uint8)(unsafe.Pointer(zArg))) != int32('2') || *(*uint8)(unsafe.Pointer(zArg + 1)) != 0 {
rc = int32(SQLITE_ERROR)
} else {
@@ -220421,6 +222961,7 @@ func _fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, p
}
goto _1
_1:
+ ;
i += int32(2)
}
if (*TTrigramTokenizer)(unsafe.Pointer(pNew)).FiFoldParam != 0 && (*TTrigramTokenizer)(unsafe.Pointer(pNew)).FbFold == 0 {
@@ -220525,6 +223066,7 @@ func _fts5TriTokenize(tls *libc.TLS, pTok uintptr, pCtx uintptr, unusedFlags int
}
goto _1
_1:
+ ;
ii++
}
/* At the start of each iteration of this loop:
@@ -220677,7 +223219,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
Fx Tfts5_tokenizer
}{
0: {
- FzName: __ccgo_ts + 38772,
+ FzName: __ccgo_ts + 38798,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5UnicodeCreate),
FxDelete: __ccgo_fp(_fts5UnicodeDelete),
@@ -220685,7 +223227,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
},
},
1: {
- FzName: __ccgo_ts + 39076,
+ FzName: __ccgo_ts + 39102,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5AsciiCreate),
FxDelete: __ccgo_fp(_fts5AsciiDelete),
@@ -220693,7 +223235,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
},
},
2: {
- FzName: __ccgo_ts + 39082,
+ FzName: __ccgo_ts + 39108,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5PorterCreate),
FxDelete: __ccgo_fp(_fts5PorterDelete),
@@ -220701,7 +223243,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
},
},
3: {
- FzName: __ccgo_ts + 39089,
+ FzName: __ccgo_ts + 39115,
Fx: Tfts5_tokenizer{
FxCreate: __ccgo_fp(_fts5TriCreate),
FxDelete: __ccgo_fp(_fts5TriDelete),
@@ -220721,6 +223263,7 @@ func _sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) (r int32) {
})(unsafe.Pointer(bp)))[i].FzName, pApi, bp+uintptr(i)*32+8, uintptr(0))
goto _1
_1:
+ ;
i++
}
return rc
@@ -225771,6 +228314,7 @@ func _sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) {
*(*Tu8)(unsafe.Pointer(aAscii + uintptr(i))) = uint8(bToken)
goto _1
_1:
+ ;
i++
}
iTbl++
@@ -226060,6 +228604,7 @@ func _fts5PutVarint64(tls *libc.TLS, p uintptr, v Tu64) (r int32) {
v >>= uint64(7)
goto _1
_1:
+ ;
i--
}
return int32(9)
@@ -226083,6 +228628,7 @@ func _fts5PutVarint64(tls *libc.TLS, p uintptr, v Tu64) (r int32) {
*(*uint8)(unsafe.Pointer(p + uintptr(i))) = (*(*[10]Tu8)(unsafe.Pointer(bp)))[j]
goto _4
_4:
+ ;
j--
i++
}
@@ -226242,16 +228788,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+39097) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+39123) == 0 {
*(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL
} else {
- if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+39101) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+39127) == 0 {
*(*int32)(unsafe.Pointer(peType)) = int32(FTS5_VOCAB_ROW)
} else {
- if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+39105) == 0 {
+ if Xsqlite3_stricmp(tls, zCopy, __ccgo_ts+39131) == 0 {
*(*int32)(unsafe.Pointer(peType)) = int32(FTS5_VOCAB_INSTANCE)
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39114, libc.VaList(bp+16, zCopy))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39140, libc.VaList(bp+16, zCopy))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
}
@@ -226320,15 +228866,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 + 39148,
- 1: __ccgo_ts + 39188,
- 2: __ccgo_ts + 39223,
+ 0: __ccgo_ts + 39174,
+ 1: __ccgo_ts + 39214,
+ 2: __ccgo_ts + 39249,
}
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+23708, *(*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+23742, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0)
if argc != int32(5) && bDb == 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39266, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, __ccgo_ts+39292, 0)
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
} else {
if bDb != 0 {
@@ -226441,6 +228987,7 @@ func _fts5VocabBestIndexMethod(tls *libc.TLS, pUnused uintptr, pInfo uintptr) (r
}
goto _1
_1:
+ ;
i++
}
if iTermEq >= 0 {
@@ -226498,10 +229045,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+39299, 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+39325, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
return int32(SQLITE_ERROR)
}
- zSql = _sqlite3Fts5Mprintf(tls, bp, __ccgo_ts+39330, 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+39356, 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))
}
@@ -226521,7 +229068,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+39381, 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+39407, libc.VaList(bp+24, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*TFts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl))
*(*int32)(unsafe.Pointer(bp)) = int32(SQLITE_ERROR)
}
} else {
@@ -226669,6 +229216,7 @@ func _fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) (r int32) {
}
goto _1
_1:
+ ;
(*TFts5VocabCursor)(unsafe.Pointer(pCsr)).FiCol++
}
}
@@ -226769,6 +229317,7 @@ func _fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) (r int32) {
}
goto _3
_3:
+ ;
(*TFts5VocabCursor)(unsafe.Pointer(pCsr)).FiCol++
}
if (*TFts5VocabCursor)(unsafe.Pointer(pCsr)).FiCol == nCol {
@@ -226956,7 +229505,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+39407, uintptr(unsafe.Pointer(&_fts5Vocab)), p, uintptr(0))
+ return Xsqlite3_create_module_v2(tls, db, __ccgo_ts+39433, uintptr(unsafe.Pointer(&_fts5Vocab)), p, uintptr(0))
}
var _fts5Vocab = Tsqlite3_module{
@@ -227009,7 +229558,7 @@ func init() {
// /************** End of stmt.c ************************************************/
// /* Return the source-id for this library */
func Xsqlite3_sourceid(tls *libc.TLS) (r uintptr) {
- return __ccgo_ts + 39417
+ return __ccgo_ts + 39443
}
type TAggInfo_col = struct {
@@ -227291,11 +229840,11 @@ var Xsqlite3_temp_directory uintptr
// **
// ** See also: [sqlite_version()] and [sqlite_source_id()].
// */
-var Xsqlite3_version = [7]uint8{'3', '.', '4', '5', '.', '1'}
+var Xsqlite3_version = [7]uint8{'3', '.', '4', '5', '.', '2'}
var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
-var __ccgo_ts1 = "ATOMIC_INTRINSICS=1\x00COMPILER=gcc-11.2.0\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=127\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\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\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%03d\x00%.16g\x00PM\x00pm\x00AM\x00am\x00%02d:%02d\x00%.3f\x00%lld\x00%02d:%02d:%02d\x00%04d\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)\x00.\x00(join-%u)\x00(subquery-%u)\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\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00SorterNext\x00Prev\x00Next\x00IdxLE\x00IdxGT\x00IdxLT\x00Or\x00And\x00IdxGE\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfPos\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\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenRead\x00OpenWrite\x00BitNot\x00OpenDup\x00OpenAutoindex\x00String8\x00OpenEphemeral\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00Real\x00DropTrigger\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VCheck\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00ClrSubtype\x00GetSubtype\x00SetSubtype\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\x00open\x00close\x00access\x00getcwd\x00stat\x00fstat\x00ftruncate\x00fcntl\x00read\x00pread\x00pread64\x00write\x00pwrite\x00pwrite64\x00fchmod\x00fallocate\x00unlink\x00openDirectory\x00mkdir\x00rmdir\x00fchown\x00geteuid\x00mmap\x00munmap\x00mremap\x00getpagesize\x00readlink\x00lstat\x00ioctl\x00attempt to open \"%s\" as file descriptor %d\x00/dev/null\x00os_unix.c:%d: (%d) %s(%s) - %s\x00cannot fstat db file %s\x00file unlinked while open: %s\x00multiple links to file: %s\x00file renamed while open: %s\x00%s\x00full_fsync\x00%s-shm\x00readonly_shm\x00psow\x00unix-excl\x00%s.lock\x00/var/tmp\x00/usr/tmp\x00/tmp\x00SQLITE_TMPDIR\x00TMPDIR\x00%s/etilqs_%llx%c\x00modeof\x00fsync\x00/dev/urandom\x00unix\x00unix-none\x00unix-dotfile\x00memdb\x00memdb(%p,%lld)\x00PRAGMA \"%w\".page_count\x00ATTACH x AS %Q\x00recovered %d pages from %s\x00-journal\x00-wal\x00nolock\x00immutable\x00PRAGMA table_list\x00recovered %d frames from WAL file %s\x00cannot limit WAL size: %s\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\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 in [%s]: %s\x00cannot store %s value in %s column %s.%s\x00cannot open savepoint - SQL statements in progress\x00no such savepoint: %s\x00cannot release savepoint - SQL statements in progress\x00cannot commit transaction - SQL statements in progress\x00cannot start a transaction within a transaction\x00cannot rollback - no transaction is active\x00cannot commit - no transaction is active\x00database schema has changed\x00index corruption\x00sqlite_master\x00SELECT*FROM\"%w\".%s WHERE %s ORDER BY rowid\x00too many levels of trigger recursion\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 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\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\"\x00PRAGMA \"%w\".integrity_check(%Q)\x00parameters are not allowed in views\x00view %s is circularly defined\x00corrupt schema\x00UPDATE %Q.sqlite_master SET rootpage=%d WHERE #%d AND rootpage=#%d\x00sqlite_stat%d\x00DELETE FROM %Q.sqlite_sequence WHERE name=%Q\x00DELETE FROM %Q.sqlite_master WHERE tbl_name=%Q and type!='trigger'\x00table %s may not be dropped\x00use DROP TABLE to delete table %s\x00use DROP VIEW to delete view %s\x00foreign key on %s should reference only one column of table %T\x00number of columns in foreign key does not match the number of columns in the referenced table\x00unknown column \"%s\" in foreign key definition\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%!.20e\x00%Q\x00?000\x00MATCH\x00like\x00implies_nonnull_row\x00expr_compare\x00expr_implies_expr\x00affinity\x00soundex\x00load_extension\x00sqlite_compileoption_used\x00sqlite_compileoption_get\x00unlikely\x00likelihood\x00likely\x00sqlite_offset\x00ltrim\x00rtrim\x00trim\x00min\x00max\x00typeof\x00subtype\x00length\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\x00quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00string_agg\x00glob\x00ceil\x00ceiling\x00floor\x00trunc\x00ln\x00log\x00log10\x00log2\x00exp\x00pow\x00power\x00mod\x00acos\x00asin\x00atan\x00atan2\x00cos\x00sin\x00tan\x00cosh\x00sinh\x00tanh\x00acosh\x00asinh\x00atanh\x00sqrt\x00radians\x00degrees\x00pi\x00sign\x00iif\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00table %S has %d columns but %d values were supplied\x00%d values for %d columns\x00UPSERT not implemented for virtual table \"%s\"\x00cannot UPSERT a view\x00rows inserted\x00so\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\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00builtin\x00enc\x00narg\x00flags\x00wdth\x00hght\x00flgs\x00unique\x00origin\x00partial\x00rowid\x00fkid\x00file\x00busy\x00checkpointed\x00database\x00status\x00cache_size\x00timeout\x00analysis_limit\x00application_id\x00auto_vacuum\x00automatic_index\x00busy_timeout\x00cache_spill\x00case_sensitive_like\x00cell_size_check\x00checkpoint_fullfsync\x00collation_list\x00compile_options\x00count_changes\x00data_version\x00database_list\x00default_cache_size\x00defer_foreign_keys\x00empty_result_callbacks\x00encoding\x00foreign_key_check\x00foreign_key_list\x00foreign_keys\x00freelist_count\x00full_column_names\x00fullfsync\x00function_list\x00hard_heap_limit\x00ignore_check_constraints\x00incremental_vacuum\x00index_info\x00index_list\x00index_xinfo\x00integrity_check\x00journal_mode\x00journal_size_limit\x00legacy_alter_table\x00locking_mode\x00max_page_count\x00mmap_size\x00module_list\x00optimize\x00page_count\x00page_size\x00pragma_list\x00query_only\x00quick_check\x00read_uncommitted\x00recursive_triggers\x00reverse_unordered_selects\x00schema_version\x00secure_delete\x00short_column_names\x00shrink_memory\x00soft_heap_limit\x00synchronous\x00table_info\x00table_list\x00table_xinfo\x00temp_store\x00temp_store_directory\x00threads\x00trusted_schema\x00user_version\x00wal_autocheckpoint\x00wal_checkpoint\x00writable_schema\x00exclusive\x00normal\x00full\x00incremental\x00memory\x00temporary storage cannot be changed from within a transaction\x00SET NULL\x00SET DEFAULT\x00CASCADE\x00RESTRICT\x00NO ACTION\x00delete\x00persist\x00off\x00truncate\x00wal\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\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 \x00wrong # of entries 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()\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00RIGHT PART OF \x00USE TEMP B-TREE FOR %sORDER 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\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\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 %d:%s\x00 LEFT-JOIN\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00RIGHT-JOIN %s\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\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\x00ORDER BY\x00LIMIT\x00%s clause should come after %s not before\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\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\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\x000123456789abcdef\x00%!0.15g\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\x00bad JSON path: %Q\x00@\x00[\x00.\"\x00\"\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\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_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, %d), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %Q) \x00PRAGMA main.%s\x00PRAGMA main.%s = %d\x00PRAGMA writable_schema=1\x00SELECT sql FROM sqlite_schema WHERE sql!='' AND rootpage!=0 AND name!='sqlite_sequence' ORDER BY type DESC\x00SELECT * FROM sqlite_schema WHERE rootpage=0 OR rootpage IS NULL\x00INSERT INTO sqlite_schema VALUES(?,?,?,?,?)\x00PRAGMA writable_schema=0\x00DELETE FROM %s.'rbu_tmp_%q'\x00rbu_state mismatch error\x00rbu_vfs_%d\x00SELECT count(*) FROM sqlite_schema WHERE type='index' AND tbl_name = %Q\x00rbu_index_cnt\x00SELECT 1 FROM sqlite_schema WHERE tbl_name = 'rbu_count'\x00SELECT sum(cnt * (1 + rbu_index_cnt(rbu_target_name(tbl))))FROM rbu_count\x00cannot update wal mode database\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 UNION ALL SELECT 1, 'idx', '', 0, '', 2 UNION ALL SELECT 2, 'stat', '', 0, '', 0\x00PRAGMA '%q'.table_info('%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)\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()\x00snippet\x00highlight\x00bm25\x00prefix\x00malformed prefix=... directive\x00too many prefix indexes (max %d)\x00prefix length out of range (max 999)\x00tokenize\x00multiple tokenize=... directives\x00parse error in tokenize directive\x00content\x00multiple content=... directives\x00%Q.%Q\x00contentless_delete\x00malformed contentless_delete=... directive\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... 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\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00contentless_delete=1 requires a contentless table\x00contentless_delete=1 is incompatible with columnsize=0\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\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)\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: table does not support scanning\x00delete-all\x00'delete-all' may only be used with a contentless or external content fts5 table\x00rebuild\x00'rebuild' may not be used with a contentless fts5 table\x00merge\x00integrity-check\x00flush\x00'delete' may not be used with a contentless_delete=1 table\x00DELETE from\x00cannot %s contentless fts5 table: %s\x00no such cursor: %lld\x00cannot UPDATE a subset of columns on fts5 contentless-delete table: %s\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257cc467a\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\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,?\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\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';\x00SELECT count(*) FROM %Q.'%q_%s'\x00tokenchars\x00separators\x00L* N* Co\x00categories\x00remove_diacritics\x00unicode61\x00al\x00ance\x00ence\x00er\x00ic\x00able\x00ible\x00ant\x00ement\x00ment\x00ent\x00ion\x00ou\x00ism\x00ate\x00iti\x00ous\x00ive\x00ize\x00at\x00bl\x00ble\x00iz\x00ational\x00tional\x00tion\x00enci\x00anci\x00izer\x00logi\x00bli\x00alli\x00entli\x00eli\x00e\x00ousli\x00ization\x00ation\x00ator\x00alism\x00iveness\x00fulness\x00ful\x00ousness\x00aliti\x00iviti\x00biliti\x00ical\x00ness\x00icate\x00iciti\x00ative\x00alize\x00eed\x00ee\x00ed\x00ing\x00case_sensitive\x00ascii\x00porter\x00trigram\x00col\x00row\x00instance\x00fts5vocab: unknown table type: %Q\x00CREATE TABlE vocab(term, col, doc, cnt)\x00CREATE TABlE vocab(term, doc, cnt)\x00CREATE TABlE vocab(term, doc, col, offset)\x00wrong number of vtable arguments\x00recursive definition for %s.%s\x00SELECT t.%Q FROM %Q.%Q AS t WHERE t.%Q MATCH '*id'\x00no such fts5 table: %s.%s\x00fts5vocab\x002024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257cc467a\x00"
+var __ccgo_ts1 = "ATOMIC_INTRINSICS=1\x00COMPILER=gcc-11.2.0\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=127\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\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\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%03d\x00%.16g\x00PM\x00pm\x00AM\x00am\x00%02d:%02d\x00%.3f\x00%lld\x00%02d:%02d:%02d\x00%04d\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)\x00.\x00(join-%u)\x00(subquery-%u)\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\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00SorterNext\x00Prev\x00Next\x00IdxLE\x00IdxGT\x00IdxLT\x00Or\x00And\x00IdxGE\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfPos\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\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenRead\x00OpenWrite\x00BitNot\x00OpenDup\x00OpenAutoindex\x00String8\x00OpenEphemeral\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00Real\x00DropTrigger\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VCheck\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00ClrSubtype\x00GetSubtype\x00SetSubtype\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\x00open\x00close\x00access\x00getcwd\x00stat\x00fstat\x00ftruncate\x00fcntl\x00read\x00pread\x00pread64\x00write\x00pwrite\x00pwrite64\x00fchmod\x00fallocate\x00unlink\x00openDirectory\x00mkdir\x00rmdir\x00fchown\x00geteuid\x00mmap\x00munmap\x00mremap\x00getpagesize\x00readlink\x00lstat\x00ioctl\x00attempt to open \"%s\" as file descriptor %d\x00/dev/null\x00os_unix.c:%d: (%d) %s(%s) - %s\x00cannot fstat db file %s\x00file unlinked while open: %s\x00multiple links to file: %s\x00file renamed while open: %s\x00%s\x00full_fsync\x00%s-shm\x00readonly_shm\x00psow\x00unix-excl\x00%s.lock\x00/var/tmp\x00/usr/tmp\x00/tmp\x00SQLITE_TMPDIR\x00TMPDIR\x00%s/etilqs_%llx%c\x00modeof\x00fsync\x00/dev/urandom\x00unix\x00unix-none\x00unix-dotfile\x00memdb\x00memdb(%p,%lld)\x00PRAGMA \"%w\".page_count\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\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 in [%s]: %s\x00cannot store %s value in %s column %s.%s\x00cannot open savepoint - SQL statements in progress\x00no such savepoint: %s\x00cannot release savepoint - SQL statements in progress\x00cannot commit transaction - SQL statements in progress\x00cannot start a transaction within a transaction\x00cannot rollback - no transaction is active\x00cannot commit - no transaction is active\x00database schema has changed\x00index corruption\x00sqlite_master\x00SELECT*FROM\"%w\".%s WHERE %s ORDER BY rowid\x00too many levels of trigger recursion\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 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\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\"\x00PRAGMA \"%w\".integrity_check(%Q)\x00parameters are not allowed in views\x00view %s is circularly defined\x00corrupt schema\x00UPDATE %Q.sqlite_master SET rootpage=%d WHERE #%d AND rootpage=#%d\x00sqlite_stat%d\x00DELETE FROM %Q.sqlite_sequence WHERE name=%Q\x00DELETE FROM %Q.sqlite_master WHERE tbl_name=%Q and type!='trigger'\x00table %s may not be dropped\x00use DROP TABLE to delete table %s\x00use DROP VIEW to delete view %s\x00foreign key on %s should reference only one column of table %T\x00number of columns in foreign key does not match the number of columns in the referenced table\x00unknown column \"%s\" in foreign key definition\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?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\x00quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00string_agg\x00glob\x00ceil\x00ceiling\x00floor\x00trunc\x00ln\x00log\x00log10\x00log2\x00exp\x00pow\x00power\x00mod\x00acos\x00asin\x00atan\x00atan2\x00cos\x00sin\x00tan\x00cosh\x00sinh\x00tanh\x00acosh\x00asinh\x00atanh\x00sqrt\x00radians\x00degrees\x00pi\x00sign\x00iif\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00table %S has %d columns but %d values were supplied\x00%d values for %d columns\x00UPSERT not implemented for virtual table \"%s\"\x00cannot UPSERT a view\x00rows inserted\x00so\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\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00builtin\x00enc\x00narg\x00flags\x00wdth\x00hght\x00flgs\x00unique\x00origin\x00partial\x00rowid\x00fkid\x00file\x00busy\x00checkpointed\x00database\x00status\x00cache_size\x00timeout\x00analysis_limit\x00application_id\x00auto_vacuum\x00automatic_index\x00busy_timeout\x00cache_spill\x00case_sensitive_like\x00cell_size_check\x00checkpoint_fullfsync\x00collation_list\x00compile_options\x00count_changes\x00data_version\x00database_list\x00default_cache_size\x00defer_foreign_keys\x00empty_result_callbacks\x00encoding\x00foreign_key_check\x00foreign_key_list\x00foreign_keys\x00freelist_count\x00full_column_names\x00fullfsync\x00function_list\x00hard_heap_limit\x00ignore_check_constraints\x00incremental_vacuum\x00index_info\x00index_list\x00index_xinfo\x00integrity_check\x00journal_mode\x00journal_size_limit\x00legacy_alter_table\x00locking_mode\x00max_page_count\x00mmap_size\x00module_list\x00optimize\x00page_count\x00page_size\x00pragma_list\x00query_only\x00quick_check\x00read_uncommitted\x00recursive_triggers\x00reverse_unordered_selects\x00schema_version\x00secure_delete\x00short_column_names\x00shrink_memory\x00soft_heap_limit\x00synchronous\x00table_info\x00table_list\x00table_xinfo\x00temp_store\x00temp_store_directory\x00threads\x00trusted_schema\x00user_version\x00wal_autocheckpoint\x00wal_checkpoint\x00writable_schema\x00exclusive\x00normal\x00full\x00incremental\x00memory\x00temporary storage cannot be changed from within a transaction\x00SET NULL\x00SET DEFAULT\x00CASCADE\x00RESTRICT\x00NO ACTION\x00delete\x00persist\x00off\x00truncate\x00wal\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\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 \x00wrong # of entries 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()\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00RIGHT PART OF \x00USE TEMP B-TREE FOR %sORDER 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\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\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 %d:%s\x00 LEFT-JOIN\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00RIGHT-JOIN %s\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\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\x00ORDER BY\x00LIMIT\x00%s clause should come after %s not before\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\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\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\x000123456789abcdef\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\x00bad JSON path: %Q\x00@\x00[\x00.\"\x00\"\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\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_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, %d), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %Q) \x00PRAGMA main.%s\x00PRAGMA main.%s = %d\x00PRAGMA writable_schema=1\x00SELECT sql FROM sqlite_schema WHERE sql!='' AND rootpage!=0 AND name!='sqlite_sequence' ORDER BY type DESC\x00SELECT * FROM sqlite_schema WHERE rootpage=0 OR rootpage IS NULL\x00INSERT INTO sqlite_schema VALUES(?,?,?,?,?)\x00PRAGMA writable_schema=0\x00DELETE FROM %s.'rbu_tmp_%q'\x00rbu_state mismatch error\x00rbu_vfs_%d\x00SELECT count(*) FROM sqlite_schema WHERE type='index' AND tbl_name = %Q\x00rbu_index_cnt\x00SELECT 1 FROM sqlite_schema WHERE tbl_name = 'rbu_count'\x00SELECT sum(cnt * (1 + rbu_index_cnt(rbu_target_name(tbl))))FROM rbu_count\x00cannot update wal mode database\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 UNION ALL SELECT 1, 'idx', '', 0, '', 2 UNION ALL SELECT 2, 'stat', '', 0, '', 0\x00PRAGMA '%q'.table_info('%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)\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()\x00snippet\x00highlight\x00bm25\x00prefix\x00malformed prefix=... directive\x00too many prefix indexes (max %d)\x00prefix length out of range (max 999)\x00tokenize\x00multiple tokenize=... directives\x00parse error in tokenize directive\x00content\x00multiple content=... directives\x00%Q.%Q\x00contentless_delete\x00malformed contentless_delete=... directive\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... 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\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00contentless_delete=1 requires a contentless table\x00contentless_delete=1 is incompatible with columnsize=0\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\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)\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: table does not support scanning\x00delete-all\x00'delete-all' may only be used with a contentless or external content fts5 table\x00rebuild\x00'rebuild' may not be used with a contentless fts5 table\x00merge\x00integrity-check\x00flush\x00'delete' may not be used with a contentless_delete=1 table\x00DELETE from\x00cannot %s contentless fts5 table: %s\x00no such cursor: %lld\x00cannot UPDATE a subset of columns on fts5 contentless-delete table: %s\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2024-03-12 11:06:23 d8cd6d49b46a395b13955387d05e9e1a2a47e54fb99f3c9b59835bbefad6af77\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\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,?\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\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';\x00SELECT count(*) FROM %Q.'%q_%s'\x00tokenchars\x00separators\x00L* N* Co\x00categories\x00remove_diacritics\x00unicode61\x00al\x00ance\x00ence\x00er\x00ic\x00able\x00ible\x00ant\x00ement\x00ment\x00ent\x00ion\x00ou\x00ism\x00ate\x00iti\x00ous\x00ive\x00ize\x00at\x00bl\x00ble\x00iz\x00ational\x00tional\x00tion\x00enci\x00anci\x00izer\x00logi\x00bli\x00alli\x00entli\x00eli\x00e\x00ousli\x00ization\x00ation\x00ator\x00alism\x00iveness\x00fulness\x00ful\x00ousness\x00aliti\x00iviti\x00biliti\x00ical\x00ness\x00icate\x00iciti\x00ative\x00alize\x00eed\x00ee\x00ed\x00ing\x00case_sensitive\x00ascii\x00porter\x00trigram\x00col\x00row\x00instance\x00fts5vocab: unknown table type: %Q\x00CREATE TABlE vocab(term, col, doc, cnt)\x00CREATE TABlE vocab(term, doc, cnt)\x00CREATE TABlE vocab(term, doc, col, offset)\x00wrong number of vtable arguments\x00recursive definition for %s.%s\x00SELECT t.%Q FROM %Q.%Q AS t WHERE t.%Q MATCH '*id'\x00no such fts5 table: %s.%s\x00fts5vocab\x002024-03-12 11:06:23 d8cd6d49b46a395b13955387d05e9e1a2a47e54fb99f3c9b59835bbefad6af77\x00"
type Sqlite3_int64 = sqlite3_int64
type Sqlite3_mutex_methods = sqlite3_mutex_methods