Skip to content

Commit

Permalink
update sqlite3-pcre entry point to sqlite3_pcre2_init
Browse files Browse the repository at this point in the history
update sqlite3-pcre to b39198883770307fb9e65240e536ed5d7dccb53c
  • Loading branch information
calccrypto committed Feb 3, 2025
1 parent 60140e3 commit ab2aca7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/deps/sqlite3-pcre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ set -e
pcre_name="sqlite3-pcre"
pcre_prefix="${INSTALL_DIR}/${pcre_name}"
if [[ ! -d "${pcre_prefix}" ]]; then
pcre_build="${BUILD_DIR}/sqlite3-pcre-pcre2"
pcre_build="${BUILD_DIR}/sqlite3-pcre-master"
if [[ ! -d "${pcre_build}" ]]; then
pcre_tarball="${DOWNLOAD_DIR}/sqlite3-pcre.tar.gz"
if [[ ! -f "${pcre_tarball}" ]]; then
wget https://github.com/mar-file-system/sqlite3-pcre/archive/pcre2.tar.gz -O "${pcre_tarball}"
wget https://github.com/mar-file-system/sqlite3-pcre/archive/master.tar.gz -O "${pcre_tarball}"
fi

tar -xf "${pcre_tarball}" -C "${BUILD_DIR}"
Expand Down
Binary file modified contrib/deps/sqlite3-pcre.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/dbutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ sqlite3 *opendb(const char *name, int flags, const int setpragmas, const int loa
sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1, NULL);

/* load the sqlite3-pcre extension */
sqlite3_extension_init(db, NULL, NULL) ;
sqlite3_pcre2_init(db, NULL, NULL);
}

if (modifydb) {
Expand Down

0 comments on commit ab2aca7

Please sign in to comment.