Skip to content

Commit 492aa3d

Browse files
Update SQLite to 3.19.1
1 parent 906beb4 commit 492aa3d

File tree

9 files changed

+71
-31
lines changed

9 files changed

+71
-31
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ If you need a specific version of SQLite, or specific SQLite compilation options
88

99

1010

11-
**May 23, 2017: Update SQLite to 3.19.0** ([changelog](CHANGELOG.md)).
11+
**May 23, 2017: Update SQLite to 3.19.1** ([changelog](CHANGELOG.md)).
1212

1313
**Requirements**: iOS 8.0+ / OSX 10.9+, Xcode 7.3+
1414

15-
**SQLite Included:** **[3.19.0](https://www.sqlite.org/releaselog/3_19_0.html)**
15+
**SQLite Included:** **[3.19.1](https://www.sqlite.org/releaselog/3_19_1.html)**
1616

1717

1818

@@ -65,7 +65,7 @@ There is no need to modify any other files.
6565

6666
#### Compiling a Specific Version of SQLite:
6767

68-
SQLiteLib currently ships with the source for SQLite 3.19.0.
68+
SQLiteLib currently ships with the source for SQLite 3.19.1.
6969

7070
If you'd like to compile a newer (or older) version, the process is simple:
7171

sqlite/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.19.0
1+
3.19.1

sqlite/configure

+9-9
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.19.0.
3+
# Generated by GNU Autoconf 2.69 for sqlite 3.19.1.
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.19.0'
730-
PACKAGE_STRING='sqlite 3.19.0'
729+
PACKAGE_VERSION='3.19.1'
730+
PACKAGE_STRING='sqlite 3.19.1'
731731
PACKAGE_BUGREPORT=''
732732
PACKAGE_URL=''
733733

@@ -1463,7 +1463,7 @@ if test "$ac_init_help" = "long"; then
14631463
# Omit some internal or obsolete options to make the list less imposing.
14641464
# This message is too long to be a string in the A/UX 3.1 sh.
14651465
cat <<_ACEOF
1466-
\`configure' configures sqlite 3.19.0 to adapt to many kinds of systems.
1466+
\`configure' configures sqlite 3.19.1 to adapt to many kinds of systems.
14671467
14681468
Usage: $0 [OPTION]... [VAR=VALUE]...
14691469
@@ -1528,7 +1528,7 @@ fi
15281528

15291529
if test -n "$ac_init_help"; then
15301530
case $ac_init_help in
1531-
short | recursive ) echo "Configuration of sqlite 3.19.0:";;
1531+
short | recursive ) echo "Configuration of sqlite 3.19.1:";;
15321532
esac
15331533
cat <<\_ACEOF
15341534
@@ -1652,7 +1652,7 @@ fi
16521652
test -n "$ac_init_help" && exit $ac_status
16531653
if $ac_init_version; then
16541654
cat <<\_ACEOF
1655-
sqlite configure 3.19.0
1655+
sqlite configure 3.19.1
16561656
generated by GNU Autoconf 2.69
16571657
16581658
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2071,7 +2071,7 @@ cat >config.log <<_ACEOF
20712071
This file contains any messages produced by compilers while
20722072
running configure, to aid debugging if configure makes a mistake.
20732073
2074-
It was created by sqlite $as_me 3.19.0, which was
2074+
It was created by sqlite $as_me 3.19.1, which was
20752075
generated by GNU Autoconf 2.69. Invocation command line was
20762076
20772077
$ $0 $@
@@ -12151,7 +12151,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1215112151
# report actual input values of CONFIG_FILES etc. instead of their
1215212152
# values after options handling.
1215312153
ac_log="
12154-
This file was extended by sqlite $as_me 3.19.0, which was
12154+
This file was extended by sqlite $as_me 3.19.1, which was
1215512155
generated by GNU Autoconf 2.69. Invocation command line was
1215612156
1215712157
CONFIG_FILES = $CONFIG_FILES
@@ -12217,7 +12217,7 @@ _ACEOF
1221712217
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1221812218
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1221912219
ac_cs_version="\\
12220-
sqlite config.status 3.19.0
12220+
sqlite config.status 3.19.1
1222112221
configured by $0, generated by GNU Autoconf 2.69,
1222212222
with options \\"\$ac_cs_config\\"
1222312223

sqlite/manifest

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
C Version\s3.19.0
2-
D 2017-05-22T13:58:13.592
1+
C Version\s3.19.1
2+
D 2017-05-24T13:08:33.856
33
F Makefile.in 1cc758ce3374a32425e4d130c2fe7b026b20de5b8843243de75f087c0a2661fb
44
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
55
F Makefile.msc 8eeb80162074004e906b53d7340a12a14c471a83743aab975947e95ce061efcc
66
F README.md 2b15fae33852f2f53996774c21fb41e1d94181c4401a0e43ac93e11f2cc901b9
7-
F VERSION 0a0e02e16b44ea735b40118fc844311b2ab0d35b25fbeda5120aee62f973f663
7+
F VERSION 1699c6ade55970f0e2ab64ef0aa90ff406db479796172c8676e0899704f5dbe8
88
F aclocal.m4 a5c22d164aff7ed549d53a90fa56d56955281f50
99
F art/sqlite370.eps aa97a671332b432a54e1d74ff5e8775be34200c2
1010
F art/sqlite370.ico af56c1d00fee7cd4753e8631ed60703ed0fc6e90
@@ -30,7 +30,7 @@ F autoconf/tea/win/rules.vc c511f222b80064096b705dbeb97060ee1d6b6d63
3030
F config.guess 226d9a188c6196f3033ffc651cbc9dcee1a42977
3131
F config.h.in 6376abec766e9a0785178b1823b5a587e9f1ccbc
3232
F config.sub 9ebe4c3b3dab6431ece34f16828b594fb420da55
33-
F configure bddf7d1d945894b724e2b16a1266359a40abec2c798c95b4409a7ebf771c38ef x
33+
F configure a02beb39087ff63175fa1da1172c90db8c27b9cecf24639cd7438c1f3596163f x
3434
F configure.ac 901e8db2c211e8b655e51ee24f2b8faa33407acde87effc47f70380f3b04e452
3535
F contrib/sqlitecon.tcl 210a913ad63f9f991070821e599d600bd913e0ad
3636
F doc/lemon.html b5a3c07d33ecb8e019ce8f7660fe2dbbad9d7977
@@ -368,7 +368,7 @@ F src/in-operator.md 10cd8f4bcd225a32518407c2fb2484089112fd71
368368
F src/insert.c d4bb3a135948553d18cf992f76f7ed7b18aa0327f250607b5a6671e55d9947d5
369369
F src/legacy.c e88ed13c2d531decde75d42c2e35623fb9ce3cb0
370370
F src/loadext.c a72909474dadce771d3669bf84bf689424f6f87d471fee898589c3ef9b2acfd9
371-
F src/main.c 1e448d204045c1dcd604853639d9d8fe253aa9ec302a2f1ffd2e22752fd6b708
371+
F src/main.c a56577fa6407fb49650c1fd27bf828cd9b55126716b1f766a03c9c2cb42b43a0
372372
F src/malloc.c e20bb2b48abec52d3faf01cce12e8b4f95973755fafec98d45162dfdab111978
373373
F src/mem0.c 6a55ebe57c46ca1a7d98da93aaa07f99f1059645
374374
F src/mem1.c c12a42539b1ba105e3707d0e628ad70e611040d8f5e38cf942cee30c867083de
@@ -403,7 +403,7 @@ F src/printf.c 8757834f1b54dae512fb25eb1acc8e94a0d15dd2290b58f2563f65973265adb2
403403
F src/random.c 80f5d666f23feb3e6665a6ce04c7197212a88384
404404
F src/resolve.c 3e518b962d932a997fae373366880fc028c75706
405405
F src/rowset.c 7b7e7e479212e65b723bf40128c7b36dc5afdfac
406-
F src/select.c d74b1cde1d9ca6d08bec50b60a5be19440273646bc8ae16648d748c38161d5b7
406+
F src/select.c 9db6887514a663ef4eb117f12cbae613bece9267f180d0fcdfa49402b013483e
407407
F src/shell.c a37d96b20b3644d0eb905df5aa7a0fcf9f6e73c15898337230c760a24a8df794
408408
F src/sqlite.h.in 8dd468837a4f6d76713e3a4cc65bea48095009038593d41040ab46c1b351197f
409409
F src/sqlite3.rc 5121c9e10c3964d5755191c80dd1180c122fc3a8
@@ -470,7 +470,7 @@ F src/update.c c443935c652af9365e033f756550b5032d02e1b06eb2cb890ed7511ae0c051dc
470470
F src/utf.c 699001c79f28e48e9bcdf8a463da029ea660540c
471471
F src/util.c fc081ec6f63448dcd80d3dfad35baecfa104823254a815b081a4d9fe76e1db23
472472
F src/vacuum.c 1fe4555cd8c9b263afb85b5b4ee3a4a4181ad569
473-
F src/vdbe.c b24b9806db72ad02ca82263b4705150fe9a547508948ee9906b7e120d3710211
473+
F src/vdbe.c 70f1c27d3de7b3ea68d3ee2b7fbf407335b66f7483eb321201ffe53724f9c54e
474474
F src/vdbe.h f7d1456e28875c2dcb964056589b5b7149ab7edf39edeca801596a39bb3d3848
475475
F src/vdbeInt.h 1ecdacc1322fdd3241ec30c32a480e328a6f864e532dc53fae8e0ab68121aebf
476476
F src/vdbeapi.c dc904b3c5e459727993c2421e653e29d63223846d129fae98adc782b0a996481
@@ -906,7 +906,7 @@ F test/ioerr3.test d3cec5e1a11ad6d27527d0d38573fbff14c71bdd
906906
F test/ioerr4.test f130fe9e71008577b342b8874d52984bd04ede2c
907907
F test/ioerr5.test 2edfa4fb0f896f733071303b42224df8bedd9da4
908908
F test/ioerr6.test a395a6ab144b26a9e3e21059a1ab6a7149cca65b
909-
F test/join.test f9d4a28dec81c6e9dc21b73518e024d73b5ebf57
909+
F test/join.test a26e4c45edba5d2090216be6fc26d8d862c1a66e5729ce38308b4f286aa745e5
910910
F test/join2.test a48f723c5692e2cbb23a9297ac2720cb77d51a70
911911
F test/join3.test 6f0c774ff1ba0489e6c88a3e77b9d3528fb4fda0
912912
F test/join4.test 1a352e4e267114444c29266ce79e941af5885916
@@ -1580,11 +1580,11 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
15801580
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
15811581
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
15821582
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
1583-
P 3dd6fe53c7ae6ebe2393e956d040e00b8cd0589674d20aafe1585aaa61325bbe
1584-
R 70185df2307fdc4359181caa65daa887
1583+
P 05ada741554b9fd00befcf7b4083637f53de68699ae5210ac18e0773ad1a9910
1584+
R 7de9199234b8233f96ae8f86cad0d9b4
15851585
T +bgcolor * #d0c0ff
15861586
T +sym-release *
1587-
T +sym-version-3.19.0 *
1587+
T +sym-version-3.19.1 *
15881588
U drh
1589-
Z b6ab1af5186519250316abf46ab3c207
1589+
Z 01699a882c84539aef9719d24b44a477
15901590
# Remove this line to create a well-formed manifest.

sqlite/manifest.uuid

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
28a94eb282822cad1d1420f2dad6bf65e4b8b9062eda4a0b9ee8270b2c608e40
1+
f6d7b988f40217821a382bc298180e9e6794f3ed79a83c6ef5cae048989b3f86

sqlite/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3096,7 +3096,7 @@ static int openDatabase(
30963096
#if defined(SQLITE_HAS_CODEC)
30973097
if( rc==SQLITE_OK ){
30983098
const char *zKey;
3099-
if( (zKey = sqlite3_uri_parameter(zOpen, "hexkey"))!=0 && zKey[0] ){;
3099+
if( (zKey = sqlite3_uri_parameter(zOpen, "hexkey"))!=0 && zKey[0] ){
31003100
u8 iByte;
31013101
int i;
31023102
char zDecoded[40];

sqlite/src/select.c

+11-2
Original file line numberDiff line numberDiff line change
@@ -3214,6 +3214,9 @@ static Expr *substExpr(
32143214
}
32153215
}
32163216
}else{
3217+
if( pExpr->op==TK_IF_NULL_ROW && pExpr->iTable==pSubst->iTable ){
3218+
pExpr->iTable = pSubst->iNewTable;
3219+
}
32173220
pExpr->pLeft = substExpr(pSubst, pExpr->pLeft);
32183221
pExpr->pRight = substExpr(pSubst, pExpr->pRight);
32193222
if( ExprHasProperty(pExpr, EP_xIsSelect) ){
@@ -3298,7 +3301,8 @@ static void substSelect(
32983301
** due to ticket [2f7170d73bf9abf80] from 2015-02-09.)
32993302
**
33003303
** (3) The subquery is not the right operand of a LEFT JOIN
3301-
** or the subquery is not itself a join.
3304+
** or the subquery is not itself a join and the outer query is not
3305+
** an aggregate.
33023306
**
33033307
** (4) The subquery is not DISTINCT.
33043308
**
@@ -3494,11 +3498,16 @@ static int flattenSubquery(
34943498
**
34953499
** which is not at all the same thing.
34963500
**
3501+
** If the subquery is the right operand of a LEFT JOIN, then the outer
3502+
** query cannot be an aggregate. This is an artifact of the way aggregates
3503+
** are processed - there is not mechanism to determine if the LEFT JOIN
3504+
** table should be all-NULL.
3505+
**
34973506
** See also tickets #306, #350, and #3300.
34983507
*/
34993508
if( (pSubitem->fg.jointype & JT_OUTER)!=0 ){
35003509
isLeftJoin = 1;
3501-
if( pSubSrc->nSrc>1 ){
3510+
if( pSubSrc->nSrc>1 || isAgg ){
35023511
return 0; /* Restriction (3) */
35033512
}
35043513
}

sqlite/src/vdbe.c

+1
Original file line numberDiff line numberDiff line change
@@ -2441,6 +2441,7 @@ case OP_NotNull: { /* same as TK_NOTNULL, jump, in1 */
24412441
*/
24422442
case OP_IfNullRow: { /* jump */
24432443
assert( pOp->p1>=0 && pOp->p1<p->nCursor );
2444+
assert( p->apCsr[pOp->p1]!=0 );
24442445
if( p->apCsr[pOp->p1]->nullRow ){
24452446
sqlite3VdbeMemSetNull(aMem + pOp->p3);
24462447
goto jump_to_p2;

sqlite/test/join.test

+32-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2002 May 24
1+
# 2002-05-24
22
#
33
# The author disclaims copyright to this source code. In place of
44
# a legal notice, here is a blessing:
@@ -12,7 +12,6 @@
1212
#
1313
# This file implements tests for joins, including outer joins.
1414
#
15-
# $Id: join.test,v 1.27 2009/07/01 16:12:08 danielk1977 Exp $
1615

1716
set testdir [file dirname $argv0]
1817
source $testdir/tester.tcl
@@ -712,5 +711,36 @@ do_execsql_test join-13.2 {
712711
SELECT * FROM aa LEFT JOIN bb, cc WHERE cc.c=aa.a;
713712
} {45 {} 45 45 {} 45}
714713

714+
# Verify that that iTable attributes the TK_IF_NULL_ROW operators in the
715+
# expression tree are correctly updated by the query flattener. This was
716+
# a bug discovered on 2017-05-22 by Mark Brand.
717+
#
718+
do_execsql_test join-14.1 {
719+
SELECT *
720+
FROM (SELECT 1 a) AS x
721+
LEFT JOIN (SELECT 1, * FROM (SELECT * FROM (SELECT 1)));
722+
} {1 1 1}
723+
do_execsql_test join-14.2 {
724+
SELECT *
725+
FROM (SELECT 1 a) AS x
726+
LEFT JOIN (SELECT 1, * FROM (SELECT * FROM (SELECT * FROM (SELECT 1)))) AS y
727+
JOIN (SELECT * FROM (SELECT 9)) AS z;
728+
} {1 1 1 9}
729+
do_execsql_test join-14.3 {
730+
SELECT *
731+
FROM (SELECT 111)
732+
LEFT JOIN (SELECT cc+222, * FROM (SELECT * FROM (SELECT 333 cc)));
733+
} {111 555 333}
734+
735+
do_execsql_test join-14.4 {
736+
DROP TABLE IF EXISTS t1;
737+
CREATE TABLE t1(c PRIMARY KEY, a TEXT(10000), b TEXT(10000));
738+
SELECT * FROM (SELECT 111) LEFT JOIN (SELECT c+222 FROM t1) GROUP BY 1;
739+
} {111 {}}
740+
do_execsql_test join-14.5 {
741+
DROP TABLE IF EXISTS t1;
742+
CREATE TABLE t1(c PRIMARY KEY) WITHOUT ROWID;
743+
SELECT * FROM (SELECT 111) LEFT JOIN (SELECT c+222 FROM t1) GROUP BY 1;
744+
} {111 {}}
715745

716746
finish_test

0 commit comments

Comments
 (0)