Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit c15e2e9

Browse files
committed
Merge remote-tracking branch 'upstream/master' into main
2 parents 0860d30 + 6dc3f23 commit c15e2e9

File tree

13 files changed

+37650
-18591
lines changed

13 files changed

+37650
-18591
lines changed

OWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
24
35

README.version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
URL: https://sqlite.org/2019/sqlite-autoconf-3280000.tar.gz
2-
Version: 3.28.0 884b4b7e
1+
URL: https://www.sqlite.org/2020/sqlite-autoconf-3320200.tar.gz
2+
Version: 3.32.2 44a58d6c
33
BugComponent: 24950

android/Android.bp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ cc_library_static {
1919
],
2020
target: {
2121
android: {
22-
cflags: ["-DSQLITE_ENABLE_ICU"],
22+
cflags: [
23+
"-DSQLITE_ENABLE_ICU",
24+
"-DSQLITE_DEFAULT_LEGACY_ALTER_TABLE",
25+
],
2326
shared_libs: [
2427
"libandroidicu",
2528
],

dist/Android.bp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ cc_defaults {
3838
"-DSQLITE_SECURE_DELETE",
3939
"-DSQLITE_ENABLE_BATCH_ATOMIC_WRITE",
4040
"-DBIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD",
41+
"-DSQLITE_DEFAULT_LEGACY_ALTER_TABLE",
4142
"-Wno-unused-parameter",
4243
"-Werror",
44+
45+
// Default value causes sqlite3_open_v2 to return error if DB is missing.
46+
"-ftrivial-auto-var-init=pattern",
4347
],
4448

4549
target: {

dist/Android.patch

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
--- orig/shell.c 2019-06-11 15:05:36.341739007 -0700
2-
+++ shell.c 2019-06-11 15:05:36.401739332 -0700
3-
@@ -87,6 +87,12 @@
1+
--- orig/shell.c 2020-07-09 13:55:18.598783417 +0100
2+
+++ shell.c 2020-10-06 00:01:10.631859326 +0100
3+
@@ -95,6 +95,11 @@
44
#endif
55
#include <ctype.h>
66
#include <stdarg.h>
77
+// Begin Android Add
88
+#ifndef NO_ANDROID_FUNCS
9-
+#include <aicu/AIcu.h>
109
+#include <sqlite3_android.h>
1110
+#endif
1211
+// End Android Add
1312

1413
#if !defined(_WIN32) && !defined(WIN32)
1514
# include <signal.h>
16-
@@ -11698,6 +11704,23 @@
15+
@@ -12957,6 +12962,22 @@
1716
sqlite3_create_function(p->db, "edit", 2, SQLITE_UTF8, 0,
1817
editFunc, 0, 0);
1918
#endif
2019
+
2120
+// Begin Android Add
2221
+#ifndef NO_ANDROID_FUNCS
23-
+ AIcu_initializeIcuOrDie();
2422
+ int err = register_localized_collators(p->db, "en_US", 0);
2523
+ if (err != SQLITE_OK) {
2624
+ fprintf(stderr, "register_localized_collators() failed\n");
@@ -37,9 +35,9 @@
3735
if( p->openMode==SHELL_OPEN_ZIPFILE ){
3836
char *zSql = sqlite3_mprintf(
3937
"CREATE VIRTUAL TABLE zip USING zipfile(%Q);", p->zDbFilename);
40-
--- orig/sqlite3.c 2019-06-11 15:05:36.393739289 -0700
41-
+++ sqlite3.c 2019-06-11 15:05:36.449739593 -0700
42-
@@ -32438,6 +32438,10 @@
38+
--- orig/sqlite3.c 2020-07-09 13:55:18.706784068 +0100
39+
+++ sqlite3.c 2020-07-09 13:55:18.814784719 +0100
40+
@@ -33395,6 +33395,10 @@
4341
# include <sys/mount.h>
4442
#endif
4543

@@ -50,7 +48,7 @@
5048
#ifdef HAVE_UTIME
5149
# include <utime.h>
5250
#endif
53-
@@ -33197,6 +33201,12 @@
51+
@@ -34155,6 +34159,12 @@
5452
#if defined(FD_CLOEXEC) && (!defined(O_CLOEXEC) || O_CLOEXEC==0)
5553
osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC);
5654
#endif
@@ -63,7 +61,7 @@
6361
}
6462
return fd;
6563
}
66-
@@ -33777,7 +33787,13 @@
64+
@@ -34735,7 +34745,13 @@
6765
** and move on.
6866
*/
6967
static void robust_close(unixFile *pFile, int h, int lineno){
@@ -77,7 +75,7 @@
7775
unixLogErrorAtLine(SQLITE_IOERR_CLOSE, "close",
7876
pFile ? pFile->zPath : 0, lineno);
7977
}
80-
@@ -36310,7 +36326,7 @@
78+
@@ -37269,7 +37285,7 @@
8179
SimulateIOError( rc=1 );
8280
if( rc!=0 ){
8381
storeLastErrno((unixFile*)id, errno);
@@ -86,7 +84,7 @@
8684
}
8785
*pSize = buf.st_size;
8886

89-
@@ -36346,7 +36362,7 @@
87+
@@ -37305,7 +37321,7 @@
9088
struct stat buf; /* Used to hold return values of fstat() */
9189

9290
if( osFstat(pFile->h, &buf) ){
@@ -95,7 +93,7 @@
9593
}
9694

9795
nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
98-
@@ -37032,7 +37048,7 @@
96+
@@ -38000,7 +38016,7 @@
9997
** with the same permissions.
10098
*/
10199
if( osFstat(pDbFd->h, &sStat) ){
@@ -104,7 +102,7 @@
104102
goto shm_open_err;
105103
}
106104

107-
@@ -123984,7 +124000,7 @@
105+
@@ -128218,7 +128234,7 @@
108106
}
109107
if( pDb->pSchema->file_format>SQLITE_MAX_FILE_FORMAT ){
110108
sqlite3SetString(pzErrMsg, db, "unsupported file format");
@@ -113,7 +111,7 @@
113111
goto initone_error_out;
114112
}
115113

116-
@@ -164271,13 +164287,25 @@
114+
@@ -170128,13 +170144,25 @@
117115
** module with sqlite.
118116
*/
119117
if( SQLITE_OK==rc

0 commit comments

Comments
 (0)