Skip to content

Commit 04c4033

Browse files
committed
Snapshot of upstream SQLite check-in 5a877221
1 parent 6b86da7 commit 04c4033

53 files changed

Lines changed: 542 additions & 836 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.31.0
1+
3.32.0

autoconf/tea/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dnl to configure the system for the local environment.
1919
# so you can encode the package version directly into the source files.
2020
#-----------------------------------------------------------------------
2121

22-
AC_INIT([sqlite], [3.31.0])
22+
AC_INIT([sqlite], [3.32.0])
2323

2424
#--------------------------------------------------------------------
2525
# Call TEA_INIT as the first TEA_ macro to set up initial vars.

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for sqlite 3.31.0.
3+
# Generated by GNU Autoconf 2.69 for sqlite 3.32.0.
44
#
55
#
66
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -726,8 +726,8 @@ MAKEFLAGS=
726726
# Identity of this package.
727727
PACKAGE_NAME='sqlite'
728728
PACKAGE_TARNAME='sqlite'
729-
PACKAGE_VERSION='3.31.0'
730-
PACKAGE_STRING='sqlite 3.31.0'
729+
PACKAGE_VERSION='3.32.0'
730+
PACKAGE_STRING='sqlite 3.32.0'
731731
PACKAGE_BUGREPORT=''
732732
PACKAGE_URL=''
733733

@@ -1467,7 +1467,7 @@ if test "$ac_init_help" = "long"; then
14671467
# Omit some internal or obsolete options to make the list less imposing.
14681468
# This message is too long to be a string in the A/UX 3.1 sh.
14691469
cat <<_ACEOF
1470-
\`configure' configures sqlite 3.31.0 to adapt to many kinds of systems.
1470+
\`configure' configures sqlite 3.32.0 to adapt to many kinds of systems.
14711471
14721472
Usage: $0 [OPTION]... [VAR=VALUE]...
14731473
@@ -1532,7 +1532,7 @@ fi
15321532

15331533
if test -n "$ac_init_help"; then
15341534
case $ac_init_help in
1535-
short | recursive ) echo "Configuration of sqlite 3.31.0:";;
1535+
short | recursive ) echo "Configuration of sqlite 3.32.0:";;
15361536
esac
15371537
cat <<\_ACEOF
15381538
@@ -1659,7 +1659,7 @@ fi
16591659
test -n "$ac_init_help" && exit $ac_status
16601660
if $ac_init_version; then
16611661
cat <<\_ACEOF
1662-
sqlite configure 3.31.0
1662+
sqlite configure 3.32.0
16631663
generated by GNU Autoconf 2.69
16641664
16651665
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2078,7 +2078,7 @@ cat >config.log <<_ACEOF
20782078
This file contains any messages produced by compilers while
20792079
running configure, to aid debugging if configure makes a mistake.
20802080
2081-
It was created by sqlite $as_me 3.31.0, which was
2081+
It was created by sqlite $as_me 3.32.0, which was
20822082
generated by GNU Autoconf 2.69. Invocation command line was
20832083
20842084
$ $0 $@
@@ -12243,7 +12243,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1224312243
# report actual input values of CONFIG_FILES etc. instead of their
1224412244
# values after options handling.
1224512245
ac_log="
12246-
This file was extended by sqlite $as_me 3.31.0, which was
12246+
This file was extended by sqlite $as_me 3.32.0, which was
1224712247
generated by GNU Autoconf 2.69. Invocation command line was
1224812248
1224912249
CONFIG_FILES = $CONFIG_FILES
@@ -12309,7 +12309,7 @@ _ACEOF
1230912309
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1231012310
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1231112311
ac_cs_version="\\
12312-
sqlite config.status 3.31.0
12312+
sqlite config.status 3.32.0
1231312313
configured by $0, generated by GNU Autoconf 2.69,
1231412314
with options \\"\$ac_cs_config\\"
1231512315

ext/fts3/fts3_tokenize_vtab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int fts3tokFilterMethod(
350350
if( pCsr->zInput==0 ){
351351
rc = SQLITE_NOMEM;
352352
}else{
353-
memcpy(pCsr->zInput, zByte, nByte);
353+
if( nByte>0 ) memcpy(pCsr->zInput, zByte, nByte);
354354
pCsr->zInput[nByte] = 0;
355355
rc = pTab->pMod->xOpen(pTab->pTok, pCsr->zInput, nByte, &pCsr->pCsr);
356356
if( rc==SQLITE_OK ){

ext/fts3/fts3_write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ static int fts3SegmentIsMaxLevel(Fts3Table *p, i64 iAbsLevel, int *pbMax){
25022502
if( rc!=SQLITE_OK ) return rc;
25032503
sqlite3_bind_int64(pStmt, 1, iAbsLevel+1);
25042504
sqlite3_bind_int64(pStmt, 2,
2505-
((iAbsLevel/FTS3_SEGDIR_MAXLEVEL)+1) * FTS3_SEGDIR_MAXLEVEL
2505+
(((u64)iAbsLevel/FTS3_SEGDIR_MAXLEVEL)+1) * FTS3_SEGDIR_MAXLEVEL
25062506
);
25072507

25082508
*pbMax = 0;

ext/fts5/fts5_index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5732,8 +5732,8 @@ static int fts5QueryCksum(
57325732
** contain valid utf-8, return non-zero.
57335733
*/
57345734
static int fts5TestUtf8(const char *z, int n){
5735-
assert_nc( n>0 );
57365735
int i = 0;
5736+
assert_nc( n>0 );
57375737
while( i<n ){
57385738
if( (z[i] & 0x80)==0x00 ){
57395739
i++;

ext/fts5/test/fts5matchinfo.test

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,18 @@ do_execsql_test 15.0 {
500500
INSERT INTO t1 VALUES('c', 'd');
501501
}
502502

503+
if {$tcl_platform(byteOrder)=="littleEndian"} {
504+
set res {X'02000000'}
505+
} else {
506+
set res {X'00000002'}
507+
}
503508
do_execsql_test 15.1 {
504509
SELECT quote(matchinfo(t1, 'n')) FROM t1 LIMIT 1;
505-
} {X'02000000'}
506-
510+
} $res
507511
do_execsql_test 15.2 {
508512
DELETE FROM t1_content WHERE rowid=1;
509513
SELECT quote(matchinfo(t1, 'n')) FROM t1 LIMIT 1;
510-
} {X'02000000'}
514+
} $res
511515

512516
fts5_aux_test_functions db
513517
do_execsql_test 15.3 {
@@ -517,4 +521,3 @@ do_execsql_test 15.3 {
517521
}
518522

519523
finish_test
520-

ext/misc/btreeinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
** rootpage INT, -- The root page of the btree
2424
** sql TEXT, -- SQL for this btree - from sqlite_master
2525
** hasRowid BOOLEAN, -- True if the btree has a rowid
26-
** nEntry INT, -- Estimated number of enteries
26+
** nEntry INT, -- Estimated number of entries
2727
** nPage INT, -- Estimated number of pages
2828
** depth INT, -- Depth of the btree
2929
** szPage INT, -- Size of each page in bytes

0 commit comments

Comments
 (0)