Skip to content

Commit 3460214

Browse files
author
Paweł Salawa
committed
#5407 SQLite updated to 3.51.1 (except for SQLCipher, which is up to 3.50.4).
1 parent bf18974 commit 3460214

File tree

9 files changed

+29326
-18308
lines changed

9 files changed

+29326
-18308
lines changed

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ChangeLog
22

33
### 3.4.18
4-
- CHANGE: #5407 SQLite updated to 3.51.1. Updated syntax files, AST and formatter to support syntax updates.
4+
- CHANGE: #5407 SQLite updated to 3.51.1 (except for SQLCipher, which is up to 3.50.4). Updated syntax files, AST and formatter to support syntax updates.
55
- CHANGE: ICU SQLite extension removed from binary packages. Maintaining ICU dependencies in GitHub workflows became an issue, while building SQLiteStudio is primary focus.
66
- BUGFIX: #5308 #5358 Fixed handling true/false literals in expressions and on/off/yes/no literals in PRAGMA values.
77
- BUGFIX: #5386 Fixed vertical scroll position when refreshing grid data view.

Plugins/DbSqliteCipher/DbSqliteCipher.pro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ SOURCES += dbsqlitecipher.cpp \
2222

2323
HEADERS += dbsqlitecipher.h \
2424
dbsqlitecipher_global.h \
25-
dbsqlitecipherinstance.h
26-
sqlcipher.h
25+
dbsqlitecipherinstance.h \
26+
sqlcipher.h \
27+
sqlite_cfg.h
2728

2829
macx: {
2930
exists( /opt/local/include/openssl-3/openssl/crypto.h ) {
@@ -59,7 +60,8 @@ unix: {
5960
win32: {
6061
DEFINES += SQLITE_OS_WIN=1
6162
}
62-
DEFINES += SQLITE_HAS_CODEC SQLCIPHER_CRYPTO_OPENSSL BUILD_sqlite NDEBUG SQLITE_ALLOW_XTHREAD_CONNECT=1 SQLITE_THREADSAFE=1 SQLITE_TEMP_STORE=2 \
63+
DEFINES += SQLITE_HAS_CODEC BUILD_sqlite NDEBUG SQLITE_THREADSAFE=1 SQLITE_TEMP_STORE=2 \
64+
SQLITE_EXTRA_INIT=sqlcipher_extra_init SQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown _HAVE_SQLITE_CONFIG_H \
6365
SQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 \
6466
SQLITE_ENABLE_DBSTAT_VTAB=1 \
6567
SQLITE_ENABLE_BYTECODE_VTAB=1 \
@@ -74,7 +76,6 @@ DEFINES += SQLITE_HAS_CODEC SQLCIPHER_CRYPTO_OPENSSL BUILD_sqlite NDEBUG SQLITE_
7476
SQLITE_ENABLE_RTREE=1 \
7577
SQLITE_ENABLE_MATH_FUNCTIONS=1
7678

77-
7879
OTHER_FILES += \
7980
dbsqlitecipher.json \
8081
sqlcipher.txt \

Plugins/DbSqliteCipher/sqlcipher.c

Lines changed: 12967 additions & 7127 deletions
Large diffs are not rendered by default.

Plugins/DbSqliteCipher/sqlcipher.h

Lines changed: 526 additions & 176 deletions
Large diffs are not rendered by default.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#ifndef _SQLITE_CFG_H
2+
#define _SQLITE_CFG_H
3+
#define HAVE_CEIL 1
4+
#define HAVE_DEFLATE 1
5+
#define HAVE_DIRENT_H 1
6+
#define HAVE_DLFCN_H 1
7+
#define HAVE_DLOPEN 1
8+
/* #undef HAVE_EDITLINE */
9+
/* #undef HAVE_EMSDK */
10+
#define HAVE_FDATASYNC 1
11+
#define HAVE_GMTIME_R 1
12+
#define HAVE_INT16_T 1
13+
#define HAVE_INT32_T 1
14+
#define HAVE_INT64_T 1
15+
#define HAVE_INT8_T 1
16+
#define HAVE_INTPTR_T 1
17+
#define HAVE_INTTYPES_H 1
18+
#define HAVE_ISNAN 1
19+
#define HAVE_LFS 1
20+
/* #undef HAVE_LINENOISE */
21+
#define HAVE_LOCALTIME_R 1
22+
/* #undef HAVE_LOCALTIME_S */
23+
#define HAVE_MALLOC_H 1
24+
#define HAVE_MEMORY_H 1
25+
#define HAVE_NANOSLEEP 1
26+
#define HAVE_PREAD 1
27+
#define HAVE_PREAD64 1
28+
#define HAVE_PTHREAD_CREATE 1
29+
#define HAVE_PTHREAD_MUTEXATTR_INIT 1
30+
#define HAVE_PWRITE 1
31+
#define HAVE_PWRITE64 1
32+
#define HAVE_READLINE 1
33+
#define HAVE_REALPATH 1
34+
#define HAVE_STDINT_H 1
35+
#define HAVE_STDLIB_H 1
36+
#define HAVE_STRCHRNUL 1
37+
#define HAVE_STRINGS_H 1
38+
#define HAVE_STRING_H 1
39+
#define HAVE_SYS_STAT_H 1
40+
#define HAVE_SYS_TIME_H 1
41+
#define HAVE_SYS_TYPES_H 1
42+
#define HAVE_TCL 1
43+
#define HAVE_TGETENT 1
44+
#define HAVE_UINT16_T 1
45+
#define HAVE_UINT32_T 1
46+
#define HAVE_UINT64_T 1
47+
#define HAVE_UINT8_T 1
48+
#define HAVE_UINTPTR_T 1
49+
#define HAVE_UNISTD_H 1
50+
#define HAVE_USLEEP 1
51+
#define HAVE_UTIME 1
52+
/* #undef HAVE_WASI_SDK */
53+
#define HAVE_ZLIB 1
54+
#define HAVE_ZLIB_H 1
55+
#define PACKAGE_BUGREPORT "https://sqlite.org/forum"
56+
#define PACKAGE_NAME "sqlite"
57+
#define PACKAGE_STRING "sqlite 3.50.4"
58+
#define PACKAGE_URL "https://sqlite.org"
59+
#define PACKAGE_VERSION "3.50.4"
60+
#define SIZEOF_OFF_T 8
61+
#endif

Plugins/DbSqliteCipher/update_sqlite_version.tcl

100644100755
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
# Download page:
66
# https://github.com/sqlcipher/sqlcipher/releases
77

8-
set THE_URL "https://codeload.github.com/sqlcipher/sqlcipher/zip/v4.6.1"
8+
set CIPHER_VER 4.11.0
9+
set THE_URL "https://codeload.github.com/sqlcipher/sqlcipher/zip/refs/tags/v${CIPHER_VER}"
10+
#set THE_URL "https://codeload.github.com/sqlcipher/sqlcipher/zip/v${CIPHER_VER}"
911

1012
proc process {} {
1113
if {[catch {
12-
wget $::THE_URL sqlite.zip
14+
#wget $::THE_URL sqlite.zip
1315
puts "Decompressing to 'sqlite' directory."
1416
exec 7z x -osqlite sqlite.zip
1517

1618
set dir [lindex [glob -directory sqlite sqlcipher-*] 0]
1719

1820
puts "Running ./configure and make to generate sqlite3.c"
1921
cd $dir
20-
catch {exec ./configure --enable-fts5 --enable-json1 --enable-update-limit --enable-geopoly --enable-rtree --enable-session --enable-gcov --disable-tcl}
21-
catch {exec make}
22+
catch {exec ./configure --all --with-tempstore=yes --disable-tcl}
23+
catch {exec make sqlite3.h}
24+
catch {exec make sqlite3.c}
2225
cd ../..
2326

2427
copy $dir/sqlite3.c

Plugins/DbSqliteWx/update_sqlite_version.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
# https://github.com/utelle/wxsqlite3/releases
55
# Link from download page will redicrect to the codeload.....
66

7-
set THE_URL "https://github.com/utelle/SQLite3MultipleCiphers/releases/download/v2.0.3/sqlite3mc-2.0.3-sqlite-3.49.0-amalgamation.zip"
7+
set MC_VER 2.2.6
8+
set SQLITE_VER 3.51.1
9+
set THE_URL "https://github.com/utelle/SQLite3MultipleCiphers/releases/download/v${MC_VER}/sqlite3mc-${MC_VER}-sqlite-${SQLITE_VER}-amalgamation.zip"
810

911
set SRC_DIR "src"
1012
set FILES [list \

0 commit comments

Comments
 (0)