Lines Matching defs:createFlag
7009 ** cache implementation should use the value of the createFlag
7013 ** <tr><th> createFlag <th> Behavior when page is not already in cache
7021 ** ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1. SQLite
7022 ** will only use a createFlag of 2 after a prior call with a createFlag of 1
7075 sqlite3_pcache_page *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);
7097 void *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);
9471 SQLITE_PRIVATE int sqlite3PcacheFetch(PCache*, Pgno, int createFlag, PgHdr**);
36257 int createFlag, /* If true, create page if it does not exist already */
36265 assert( createFlag==1 || createFlag==0 );
36271 if( !pCache->pCache && createFlag ){
36283 eCreate = createFlag * (1 + (!pCache->bPurgeable || !pCache->pDirty));
37325 ** the value of the createFlag argument. 0 means do not allocate a new
37330 ** database) there is really no difference between createFlag 1 and 2. So
37331 ** the calling function (pcache.c) will never have a createFlag of 1 on
37335 ** depending on the value of parameter createFlag (which may be 0, 1 or 2).
37337 ** 1. Regardless of the value of createFlag, the cache is searched for a
37340 ** 2. If createFlag==0 and the page is not already in the cache, NULL is
37343 ** 3. If createFlag is 1, and the page is not already in the cache, then
37376 int createFlag
37383 assert( pCache->bPurgeable || createFlag!=1 );
37395 /* Step 2: Abort if no existing page is found and createFlag is 0 */
37396 if( pPage || createFlag==0 ){
37412 /* Step 3: Abort if createFlag is 1 but the cache is nearly full */
37417 if( createFlag==1 && (
37460 if( createFlag==1 ) sqlite3BeginBenignMalloc();
37462 if( createFlag==1 ) sqlite3EndBenignMalloc();
40010 /* It is not possible for a call to PcacheFetch() with createFlag==0 to
42716 ** is impossible for sqlite3PcacheFetch() to be called with createFlag==1
86351 ** If the createFlag argument is true, then a new (blank) FuncDef
86358 ** of arguments. If nArg is -2, then createFlag must be 0.
86360 ** If createFlag is false, then a function with the required name and
86370 u8 createFlag /* Create new entry if true and does not otherwise exist */
86378 assert( nArg>=(-1) || createFlag==0 );
86400 ** Except, if createFlag is true, that means that we are trying to
86406 if( !createFlag && (pBest==0 || (db->flags & SQLITE_PreferBuiltin)!=0) ){
86420 /* If the createFlag parameter is true and the search did not reveal an
86424 if( createFlag && bestScore<FUNC_PERFECT_MATCH &&
86434 if( pBest && (pBest->xStep || pBest->xFunc || createFlag) ){