aboutsummaryrefslogtreecommitdiff
path: root/src/callback.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-07-26 19:59:13 +0000
committerdrh <drh@noemail.net>2017-07-26 19:59:13 +0000
commit8257aa8dbed2e45b0e0d78d8677a22d08159632c (patch)
tree542181a6417972af8265bd163779f27cf6d1dd10 /src/callback.c
parent61ffb2cda68963c2f19a58b271182513ed46286f (diff)
downloadsqlite-8257aa8dbed2e45b0e0d78d8677a22d08159632c.tar.gz
sqlite-8257aa8dbed2e45b0e0d78d8677a22d08159632c.zip
Add the new sqlite3.mDbFlags field. Factor out bits of sqlite3.flags that
do not interact with PRAGMA statements into sqlite3.mDbFlags. FossilOrigin-Name: 3808a00f06d372cc531da039d97bd974e4a6576a30cf63bf562f83f186b313b3
Diffstat (limited to 'src/callback.c')
-rw-r--r--src/callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback.c b/src/callback.c
index 5fe103686..10505414c 100644
--- a/src/callback.c
+++ b/src/callback.c
@@ -374,7 +374,7 @@ FuncDef *sqlite3FindFunction(
/* If no match is found, search the built-in functions.
**
- ** If the SQLITE_PreferBuiltin flag is set, then search the built-in
+ ** If the DBFLAG_PreferBuiltin flag is set, then search the built-in
** functions even if a prior app-defined function was found. And give
** priority to built-in functions.
**
@@ -384,7 +384,7 @@ FuncDef *sqlite3FindFunction(
** new function. But the FuncDefs for built-in functions are read-only.
** So we must not search for built-ins when creating a new function.
*/
- if( !createFlag && (pBest==0 || (db->flags & SQLITE_PreferBuiltin)!=0) ){
+ if( !createFlag && (pBest==0 || (db->mDbFlags & DBFLAG_PreferBuiltin)!=0) ){
bestScore = 0;
h = (sqlite3UpperToLower[(u8)zName[0]] + nName) % SQLITE_FUNC_HASH_SZ;
p = functionSearch(h, zName);