mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Always honor the sqlite3.dbOptFlags bitmask, regardless of compile-time
options. Continuing fix for ticket [da78413751863]. FossilOrigin-Name: afab166313e0b8ad530df99887437a362398ed02
This commit is contained in:
@@ -1461,13 +1461,8 @@ struct sqlite3 {
|
||||
/*
|
||||
** Macros for testing whether or not optimizations are enabled or disabled.
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_BUILTIN_TEST
|
||||
#define OptimizationDisabled(db, mask) (((db)->dbOptFlags&(mask))!=0)
|
||||
#define OptimizationEnabled(db, mask) (((db)->dbOptFlags&(mask))==0)
|
||||
#else
|
||||
#define OptimizationDisabled(db, mask) 0
|
||||
#define OptimizationEnabled(db, mask) 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
** Return true if it OK to factor constant expressions into the initialization
|
||||
|
Reference in New Issue
Block a user