Lines Matching defs:createFlag

6553 ** cache implementation should use the value of the createFlag
6557 ** <tr><th> createFlag <th> Behaviour when page is not already in cache
6565 ** ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1. SQLite
6566 ** will only use a createFlag of 2 after a prior call with a createFlag of 1
6612 void *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);
8867 SQLITE_PRIVATE int sqlite3PcacheFetch(PCache*, Pgno, int createFlag, PgHdr**);
35382 int createFlag, /* If true, create page if it does not exist already */
35389 assert( createFlag==1 || createFlag==0 );
35395 if( !pCache->pCache && createFlag ){
35407 eCreate = createFlag * (1 + (!pCache->bPurgeable || !pCache->pDirty));
36649 ** the value of the createFlag argument. 0 means do not allocate a new
36654 ** database) there is really no difference between createFlag 1 and 2. So
36655 ** the calling function (pcache.c) will never have a createFlag of 1 on
36659 ** depending on the value of parameter createFlag (which may be 0, 1 or 2).
36661 ** 1. Regardless of the value of createFlag, the cache is searched for a
36664 ** 2. If createFlag==0 and the page is not already in the cache, NULL is
36667 ** 3. If createFlag is 1, and the page is not already in the cache, then
36697 static void *pcache1Fetch(sqlite3_pcache *p, unsigned int iKey, int createFlag){
36703 assert( pCache->bPurgeable || createFlag!=1 );
36715 /* Step 2: Abort if no existing page is found and createFlag is 0 */
36716 if( pPage || createFlag==0 ){
36733 /* Step 3: Abort if createFlag is 1 but the cache is nearly full */
36738 if( createFlag==1 && (
36773 if( createFlag==1 ) sqlite3BeginBenignMalloc();
36775 if( createFlag==1 ) sqlite3EndBenignMalloc();
39190 /* It is not possible for a call to PcacheFetch() with createFlag==0 to
41708 ** is impossible for sqlite3PCacheFetch() to be called with createFlag==1
83250 ** If the createFlag argument is true, then a new (blank) FuncDef
83252 ** no matching function previously existed. When createFlag is true
83256 ** If createFlag is false and nArg is -1, then the first valid
83260 ** If createFlag is false, then a function with the required name and
83270 int createFlag /* Create new entry if true and does not otherwise exist */
83299 ** Except, if createFlag is true, that means that we are trying to
83305 if( !createFlag && (pBest==0 || (db->flags & SQLITE_PreferBuiltin)!=0) ){
83319 /* If the createFlag parameter is true and the search did not reveal an
83323 if( createFlag && (bestScore<6 || pBest->nArg!=nArg) &&
83333 if( pBest && (pBest->xStep || pBest->xFunc || createFlag) ){