Lines Matching refs:apVal

13156   int nVal,                       /* Number of values in apVal[] array */
13157 sqlite3_value **apVal /* Array of trailing arguments */
84287 sqlite3_value **apVal = 0; /* Function arguments */
84288 int nVal = 0; /* Size of apVal[] array */
84313 apVal = (sqlite3_value**)sqlite3DbMallocZero(db, sizeof(apVal[0]) * nVal);
84314 if( apVal==0 ){
84319 rc = sqlite3ValueFromExpr(db, pList->a[i].pExpr, enc, aff, &apVal[i]);
84320 if( apVal[i]==0 || rc!=SQLITE_OK ) goto value_from_function_out;
84334 pFunc->xSFunc(&ctx, nVal, apVal);
84353 if( apVal ){
84355 sqlite3ValueFree(apVal[i]);
84357 sqlite3DbFreeNN(db, apVal);
189453 int nVal, /* Number of elements in apVal */
189454 sqlite3_value **apVal /* Arguments for the indexing scheme */
189481 if( eSearch!=FTS3_FULLSCAN_SEARCH ) pCons = apVal[iIdx++];
189482 if( idxNum & FTS3_HAVE_LANGID ) pLangid = apVal[iIdx++];
189483 if( idxNum & FTS3_HAVE_DOCID_GE ) pDocidGe = apVal[iIdx++];
189484 if( idxNum & FTS3_HAVE_DOCID_LE ) pDocidLe = apVal[iIdx++];
189659 sqlite3_value **apVal, /* Array of arguments */
189662 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
189859 int nVal, /* Size of apVal[] array */
189860 sqlite3_value **apVal /* Array of arguments */
189862 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
189879 if( fts3FunctionArg(pContext, "snippet", apVal[0], &pCsr) ) return;
189882 case 6: nToken = sqlite3_value_int(apVal[5]);
189884 case 5: iCol = sqlite3_value_int(apVal[4]);
189886 case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
189888 case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
189890 case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
189907 sqlite3_value **apVal /* Array of arguments */
189909 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
189914 if( fts3FunctionArg(pContext, "offsets", apVal[0], &pCsr) ) return;
189933 sqlite3_value **apVal /* Array of arguments */
189937 Fts3Cursor *pCursor; /* Cursor handle passed through apVal[0] */
189942 if( fts3FunctionArg(pContext, "optimize", apVal[0], &pCursor) ) return;
189967 sqlite3_value **apVal /* Array of arguments */
189969 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
189971 if( SQLITE_OK==fts3FunctionArg(pContext, "matchinfo", apVal[0], &pCsr) ){
189974 zArg = (const char *)sqlite3_value_text(apVal[1]);
192711 int nVal, /* Number of elements in apVal */
192712 sqlite3_value **apVal /* Arguments for the indexing scheme */
192720 int iEq = -1; /* Index of term=? value in apVal */
192721 int iGe = -1; /* Index of term>=? value in apVal */
192722 int iLe = -1; /* Index of term<=? value in apVal */
192723 int iLangid = -1; /* Index of languageid=? value in apVal */
192762 const unsigned char *zStr = sqlite3_value_text(apVal[0]);
192772 pCsr->zStop = sqlite3_mprintf("%s", sqlite3_value_text(apVal[iLe]));
192778 iLangVal = sqlite3_value_int(apVal[iLangid]);
196346 int nVal, /* Number of elements in apVal */
196347 sqlite3_value **apVal /* Arguments for the indexing scheme */
196357 const char *zByte = (const char *)sqlite3_value_text(apVal[0]);
196358 int nByte = sqlite3_value_bytes(apVal[0]);
196753 ** If argument apVal is not NULL, then it must point to an array with
196762 sqlite3_value **apVal /* Values to bind to statement */
196891 if( apVal ){
196895 rc = sqlite3_bind_value(pStmt, i+1, apVal[i]);
196959 ** array apVal[] to the SQL statement identified by eStmt, the statement
196969 sqlite3_value **apVal /* Parameters to bind */
196974 rc = fts3SqlStmt(p, eStmt, &pStmt, apVal);
197388 ** Argument apVal is the same as the similarly named argument passed to
197394 sqlite3_value **apVal,
197401 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
197406 aSz[p->nColumn] += sqlite3_value_bytes(apVal[i]);
197414 ** The apVal parameter is passed a copy of the apVal argument passed by
197417 ** apVal[0] Not used for INSERT.
197418 ** apVal[1] rowid
197419 ** apVal[2] Left-most user-defined column
197421 ** apVal[p->nColumn+1] Right-most user-defined column
197422 ** apVal[p->nColumn+2] Hidden column with same name as table
197423 ** apVal[p->nColumn+3] Hidden "docid" column (alias for rowid)
197424 ** apVal[p->nColumn+4] Hidden languageid column
197428 sqlite3_value **apVal, /* Array of values to insert */
197435 sqlite3_value *pRowid = apVal[p->nColumn+3];
197437 pRowid = apVal[1];
197454 rc = fts3SqlStmt(p, SQL_CONTENT_INSERT, &pContentInsert, &apVal[1]);
197458 sqlite3_value_int(apVal[p->nColumn+4])
197473 if( SQLITE_NULL!=sqlite3_value_type(apVal[3+p->nColumn]) ){
197474 if( SQLITE_NULL==sqlite3_value_type(apVal[0])
197475 && SQLITE_NULL!=sqlite3_value_type(apVal[1])
197480 rc = sqlite3_bind_value(pContentInsert, 1, apVal[3+p->nColumn]);
197531 ** The first element in the apVal[] array is assumed to contain the docid
198902 ** The first value in the apVal[] array is assumed to contain an integer.
202147 sqlite3_value **apVal, /* Array of arguments */
202172 && sqlite3_value_type(apVal[0])==SQLITE_NULL
202173 && sqlite3_value_type(apVal[p->nColumn+2])!=SQLITE_NULL
202175 rc = fts3SpecialInsert(p, apVal[p->nColumn+2]);
202179 if( nArg>1 && sqlite3_value_int(apVal[2 + p->nColumn + 2])<0 ){
202207 sqlite3_value *pNewRowid = apVal[3+p->nColumn];
202209 pNewRowid = apVal[1];
202213 sqlite3_value_type(apVal[0])==SQLITE_NULL
202214 || sqlite3_value_int64(apVal[0])!=sqlite3_value_int64(pNewRowid)
202236 rc = fts3InsertData(p, apVal, pRowid);
202246 if( sqlite3_value_type(apVal[0])!=SQLITE_NULL ){
202247 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER );
202248 rc = fts3DeleteByRowid(p, apVal[0], &nChng, aSzDel);
202253 int iLangid = sqlite3_value_int(apVal[2 + p->nColumn + 2]);
202255 rc = fts3InsertData(p, apVal, pRowid);
202265 rc = fts3InsertTerms(p, iLangid, apVal, aSzIns);
220311 sqlite3_value **apVal
220317 assert( sqlite3_value_int(apVal[0])!=0
220321 if( sqlite3_value_int(apVal[0])!=0 ){
220326 rc = sqlite3_bind_value(p->objiter.pTmpInsert, i+1, apVal[i]);
222018 sqlite3_value **apVal
222030 "WHERE type='index' AND tbl_name = %Q", sqlite3_value_text(apVal[0]))
228895 sqlite3_value **apVal = 0; /* Space for values for UPDATE inversion */
228938 sqlite3_free(apVal);
228939 apVal = 0;
228963 if( 0==apVal ){
228964 apVal = (sqlite3_value **)sqlite3_malloc64(sizeof(apVal[0])*nCol*2);
228965 if( 0==apVal ){
228969 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
228978 rc = sessionReadRecord(pInput, nCol, 0, &apVal[0], 0);
228980 rc = sessionReadRecord(pInput, nCol, 0, &apVal[nCol], 0);
228987 sqlite3_value *pVal = apVal[iCol + (abPK[iCol] ? 0 : nCol)];
228995 sqlite3_value *pVal = (abPK[iCol] ? 0 : apVal[iCol]);
229000 sqlite3ValueFree(apVal[iCol]);
229002 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
229034 sqlite3_free(apVal);
231465 int nVal, /* Number of values in apVal[] array */
231466 sqlite3_value **apVal /* Array of trailing arguments */
234699 int nVal, /* Number of values in apVal[] array */
234700 sqlite3_value **apVal /* Array of trailing arguments */
234712 iCol = sqlite3_value_int(apVal[0]);
234714 ctx.zOpen = (const char*)sqlite3_value_text(apVal[1]);
234715 ctx.zClose = (const char*)sqlite3_value_text(apVal[2]);
234877 int nVal, /* Number of values in apVal[] array */
234878 sqlite3_value **apVal /* Array of trailing arguments */
234904 iCol = sqlite3_value_int(apVal[0]);
234905 ctx.zOpen = fts5ValueToText(apVal[1]);
234906 ctx.zClose = fts5ValueToText(apVal[2]);
234908 zEllips = fts5ValueToText(apVal[3]);
234909 nToken = sqlite3_value_int(apVal[4]);
235140 int nVal, /* Number of values in apVal[] array */
235141 sqlite3_value **apVal /* Array of trailing arguments */
235165 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0;
239405 sqlite3_value **apVal, /* Function arguments */
239432 zNearsetCmd = (const char*)sqlite3_value_text(apVal[1]);
239446 const char *z = (const char*)sqlite3_value_text(apVal[iArg]);
239450 zExpr = (const char*)sqlite3_value_text(apVal[0]);
239490 sqlite3_value **apVal /* Function arguments */
239492 fts5ExprFunction(pCtx, nArg, apVal, 0);
239497 sqlite3_value **apVal /* Function arguments */
239499 fts5ExprFunction(pCtx, nArg, apVal, 1);
239510 sqlite3_value **apVal /* Function arguments */
239524 iCode = sqlite3_value_int(apVal[0]);
239531 sqlite3_value **apVal /* Function arguments */
239540 iCode = sqlite3_value_int(apVal[0]);
239541 if( nArg==2 ) bRemoveDiacritics = sqlite3_value_int(apVal[1]);
249030 sqlite3_value **apVal /* Function arguments */
249045 iRowid = sqlite3_value_int64(apVal[0]);
249050 n = sqlite3_value_bytes(apVal[1]);
249051 aBlob = sqlite3_value_blob(apVal[1]);
249265 sqlite3_value **apVal /* Function arguments */
249271 zArg = (const char*)sqlite3_value_text(apVal[0]);
249280 segid = sqlite3_value_int(apVal[1]);
249281 pgno = sqlite3_value_int(apVal[2]);
250825 int nVal, /* Number of elements in apVal */
250826 sqlite3_value **apVal /* Arguments for the indexing scheme */
250871 pRank = apVal[i];
250874 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
250903 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
250920 pRowidEq = apVal[i];
250923 pRowidLe = apVal[i];
250926 pRowidGe = apVal[i];
251209 sqlite3_value **apVal
251212 int eType1 = sqlite3_value_type(apVal[1]);
251214 sqlite3_int64 iDel = sqlite3_value_int64(apVal[1]);
251215 rc = sqlite3Fts5StorageDelete(pTab->pStorage, iDel, &apVal[2]);
251223 sqlite3_value **apVal,
251228 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, piRowid);
251231 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal, *piRowid);
251253 sqlite3_value **apVal, /* Array of arguments */
251258 int eType0; /* value_type() of apVal[0] */
251267 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER
251268 || sqlite3_value_type(apVal[0])==SQLITE_NULL
251281 eType0 = sqlite3_value_type(apVal[0]);
251283 && sqlite3_value_type(apVal[2+pConfig->nCol])!=SQLITE_NULL
251286 const char *z = (const char*)sqlite3_value_text(apVal[2+pConfig->nCol]);
251296 rc = fts5SpecialDelete(pTab, apVal);
251300 rc = fts5SpecialInsert(pTab, z, apVal[2 + pConfig->nCol + 1]);
251338 i64 iDel = sqlite3_value_int64(apVal[0]); /* Rowid to delete */
251345 int eType1 = sqlite3_value_numeric_type(apVal[1]);
251355 i64 iNew = sqlite3_value_int64(apVal[1]); /* Rowid to delete */
251359 fts5StorageInsert(&rc, pTab, apVal, pRowid);
251364 i64 iOld = sqlite3_value_int64(apVal[0]); /* Old rowid */
251365 i64 iNew = sqlite3_value_int64(apVal[1]); /* New rowid */
251372 fts5StorageInsert(&rc, pTab, apVal, pRowid);
251374 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, pRowid);
251379 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal,*pRowid);
251384 fts5StorageInsert(&rc, pTab, apVal, pRowid);
253122 sqlite3_value **apVal
253131 if( apVal==0 ){
253146 assert( pSeek==0 || apVal==0 );
253147 assert( pSeek!=0 || apVal!=0 );
253151 }else if( ALWAYS(apVal) ){
253152 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
253153 nText = sqlite3_value_bytes(apVal[iCol-1]);
253293 static int sqlite3Fts5StorageDelete(Fts5Storage *p, i64 iDel, sqlite3_value **apVal){
253298 assert( pConfig->eContent!=FTS5_CONTENT_NORMAL || apVal==0 );
253310 rc = fts5StorageDeleteFromIndex(p, iDel, apVal);
253472 sqlite3_value **apVal,
253480 if( sqlite3_value_type(apVal[1])==SQLITE_INTEGER ){
253481 *piRowid = sqlite3_value_int64(apVal[1]);
253490 rc = sqlite3_bind_value(pInsert, i, apVal[i]);
253507 sqlite3_value **apVal,
253525 const char *zText = (const char*)sqlite3_value_text(apVal[ctx.iCol+2]);
253526 int nText = sqlite3_value_bytes(apVal[ctx.iCol+2]);
257133 int nUnused, /* Number of elements in apVal */
257134 sqlite3_value **apVal /* Arguments for the indexing scheme */
257153 if( idxNum & FTS5_VOCAB_TERM_EQ ) pEq = apVal[iVal++];
257154 if( idxNum & FTS5_VOCAB_TERM_GE ) pGe = apVal[iVal++];
257155 if( idxNum & FTS5_VOCAB_TERM_LE ) pLe = apVal[iVal++];