forked from mirrors/gecko-dev
Bug 1855448 - Enable Sqlite FTS3 extension only for Thunderbird and Seamonkey. r=asuth,mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D189392
This commit is contained in:
parent
f79487a906
commit
69b45023f2
3 changed files with 8 additions and 4 deletions
|
|
@ -41,7 +41,8 @@ skip-if = debug
|
|||
[test_storage_connection.js]
|
||||
# Bug 676981: test fails consistently on Android
|
||||
fail-if = os == "android"
|
||||
[test_storage_fulltextindex.js]
|
||||
[test_storage_ext_fts3.js]
|
||||
skip-if = appname != "thunderbird" && appname != "seamonkey"
|
||||
[test_storage_function.js]
|
||||
[test_storage_progresshandler.js]
|
||||
[test_storage_service.js]
|
||||
|
|
|
|||
9
third_party/sqlite3/src/moz.build
vendored
9
third_party/sqlite3/src/moz.build
vendored
|
|
@ -25,7 +25,6 @@ SOURCES += [
|
|||
|
||||
# -DSQLITE_SECURE_DELETE=1 will cause SQLITE to 0-fill delete data so we
|
||||
# don't have to vacuum to make sure the data is not visible in the file.
|
||||
# -DSQLITE_ENABLE_FTS3=1 enables the full-text index module.
|
||||
# -DSQLITE_CORE=1 statically links that module into the SQLite library.
|
||||
# -DSQLITE_DEFAULT_PAGE_SIZE=32768 and SQLITE_MAX_DEFAULT_PAGE_SIZE=32768
|
||||
# increases the page size from 1k, see bug 416330. It must be kept in sync with
|
||||
|
|
@ -35,8 +34,7 @@ SOURCES += [
|
|||
# will be used.
|
||||
# Note: Be sure to update the configure.in checks when these change!
|
||||
for var in ('SQLITE_SECURE_DELETE', 'SQLITE_THREADSAFE', 'SQLITE_CORE',
|
||||
'SQLITE_ENABLE_FTS3', 'SQLITE_ENABLE_UNLOCK_NOTIFY',
|
||||
'SQLITE_ENABLE_DBSTAT_VTAB'):
|
||||
'SQLITE_ENABLE_UNLOCK_NOTIFY', 'SQLITE_ENABLE_DBSTAT_VTAB'):
|
||||
DEFINES[var] = 1
|
||||
|
||||
DEFINES['SQLITE_DEFAULT_PAGE_SIZE'] = 32768
|
||||
|
|
@ -120,3 +118,8 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
# user doesn't move auxiliary files along with the main database.
|
||||
# This is in bytes.
|
||||
DEFINES['SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT'] = 1572864
|
||||
|
||||
# Thunderbird/Mail uses the FTS3 extension, but it's not using enhanced query
|
||||
# syntax (SQLITE_ENABLE_FTS3_PARENTHESIS) yet.
|
||||
if CONFIG["MOZ_THUNDERBIRD"] or CONFIG["MOZ_SUITE"]:
|
||||
DEFINES['SQLITE_ENABLE_FTS3'] = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue