Skip to content

Commit

Permalink
Downgrade sqlite to 3.42 to prevent a regression with required columns (
Browse files Browse the repository at this point in the history
  • Loading branch information
Smjert committed Mar 18, 2024
1 parent 8ded5d5 commit dcd8594
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
34 changes: 32 additions & 2 deletions libraries/cmake/source/sqlite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,38 @@
# SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only)

function(sqliteMain)
set(SQLITE_GENERATE_INSTALL_TARGET false CACHE BOOL "" FORCE)
add_subdirectory(src)

set(library_root "${CMAKE_CURRENT_SOURCE_DIR}/src")

set(parameter_list
"SQLITE_MAX_VARIABLE_NUMBER=250000"
)

set(option_list
SQLITE_ENABLE_COLUMN_METADATA
SQLITE_SECURE_DELETE
SQLITE_ENABLE_DBSTAT_VTAB
SQLITE_SOUNDEX
SQLITE_ENABLE_EXPLAIN_COMMENTS
)

add_library(thirdparty_sqlite
"${library_root}/src/sqlite3.c"
)

target_compile_definitions(thirdparty_sqlite PRIVATE
${parameter_list}
)

foreach(option ${option_list})
target_compile_definitions(thirdparty_sqlite PRIVATE
"${option}=1"
)
endforeach()

target_include_directories(thirdparty_sqlite INTERFACE
"${library_root}/src"
)

target_link_libraries(thirdparty_sqlite PRIVATE
thirdparty_c_settings
Expand Down
2 changes: 1 addition & 1 deletion libraries/cmake/source/sqlite/src
Submodule src updated 4 files
+1,340 −2,944 src/shell.c
+5,599 −13,606 src/sqlite3.c
+74 −361 src/sqlite3.h
+0 −10 src/sqlite3ext.h
8 changes: 5 additions & 3 deletions libraries/third_party_libraries_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@
"sqlite": {
"product": "sqlite",
"vendor": "sqlite",
"version": "3.45.0",
"commit": "b172c2880dbee89a62379ab35a10d0c89626c885",
"ignored-cves": []
"version": "3.42.0",
"commit": "3341b40a45585b7854b20a8acff944c7668cf7e8",
"ignored-cves": [
"CVE-2023-7104"
]
},
"thrift": {
"product": "thrift",
Expand Down

0 comments on commit dcd8594

Please sign in to comment.