Lines Matching refs:apVal

12737   int nVal,                       /* Number of values in apVal[] array */
12738 sqlite3_value **apVal /* Array of trailing arguments */
82013 sqlite3_value **apVal = 0; /* Function arguments */
82014 int nVal = 0; /* Size of apVal[] array */
82036 apVal = (sqlite3_value**)sqlite3DbMallocZero(db, sizeof(apVal[0]) * nVal);
82037 if( apVal==0 ){
82042 rc = sqlite3ValueFromExpr(db, pList->a[i].pExpr, enc, aff, &apVal[i]);
82043 if( apVal[i]==0 || rc!=SQLITE_OK ) goto value_from_function_out;
82059 pFunc->xSFunc(&ctx, nVal, apVal);
82078 if( apVal ){
82080 sqlite3ValueFree(apVal[i]);
82082 sqlite3DbFreeNN(db, apVal);
182943 int nVal, /* Number of elements in apVal */
182944 sqlite3_value **apVal /* Arguments for the indexing scheme */
182971 if( eSearch!=FTS3_FULLSCAN_SEARCH ) pCons = apVal[iIdx++];
182972 if( idxNum & FTS3_HAVE_LANGID ) pLangid = apVal[iIdx++];
182973 if( idxNum & FTS3_HAVE_DOCID_GE ) pDocidGe = apVal[iIdx++];
182974 if( idxNum & FTS3_HAVE_DOCID_LE ) pDocidLe = apVal[iIdx++];
183149 sqlite3_value **apVal, /* Array of arguments */
183152 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
183349 int nVal, /* Size of apVal[] array */
183350 sqlite3_value **apVal /* Array of arguments */
183352 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
183369 if( fts3FunctionArg(pContext, "snippet", apVal[0], &pCsr) ) return;
183372 case 6: nToken = sqlite3_value_int(apVal[5]);
183374 case 5: iCol = sqlite3_value_int(apVal[4]);
183376 case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
183378 case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
183380 case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
183397 sqlite3_value **apVal /* Array of arguments */
183399 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
183404 if( fts3FunctionArg(pContext, "offsets", apVal[0], &pCsr) ) return;
183423 sqlite3_value **apVal /* Array of arguments */
183427 Fts3Cursor *pCursor; /* Cursor handle passed through apVal[0] */
183432 if( fts3FunctionArg(pContext, "optimize", apVal[0], &pCursor) ) return;
183457 sqlite3_value **apVal /* Array of arguments */
183459 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
183461 if( SQLITE_OK==fts3FunctionArg(pContext, "matchinfo", apVal[0], &pCsr) ){
183464 zArg = (const char *)sqlite3_value_text(apVal[1]);
186129 int nVal, /* Number of elements in apVal */
186130 sqlite3_value **apVal /* Arguments for the indexing scheme */
186138 int iEq = -1; /* Index of term=? value in apVal */
186139 int iGe = -1; /* Index of term>=? value in apVal */
186140 int iLe = -1; /* Index of term<=? value in apVal */
186141 int iLangid = -1; /* Index of languageid=? value in apVal */
186180 const unsigned char *zStr = sqlite3_value_text(apVal[0]);
186190 pCsr->zStop = sqlite3_mprintf("%s", sqlite3_value_text(apVal[iLe]));
186196 iLangVal = sqlite3_value_int(apVal[iLangid]);
189763 int nVal, /* Number of elements in apVal */
189764 sqlite3_value **apVal /* Arguments for the indexing scheme */
189774 const char *zByte = (const char *)sqlite3_value_text(apVal[0]);
189775 int nByte = sqlite3_value_bytes(apVal[0]);
190169 ** If argument apVal is not NULL, then it must point to an array with
190178 sqlite3_value **apVal /* Values to bind to statement */
190307 if( apVal ){
190311 rc = sqlite3_bind_value(pStmt, i+1, apVal[i]);
190375 ** array apVal[] to the SQL statement identified by eStmt, the statement
190385 sqlite3_value **apVal /* Parameters to bind */
190390 rc = fts3SqlStmt(p, eStmt, &pStmt, apVal);
190804 ** Argument apVal is the same as the similarly named argument passed to
190810 sqlite3_value **apVal,
190817 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
190822 aSz[p->nColumn] += sqlite3_value_bytes(apVal[i]);
190830 ** The apVal parameter is passed a copy of the apVal argument passed by
190833 ** apVal[0] Not used for INSERT.
190834 ** apVal[1] rowid
190835 ** apVal[2] Left-most user-defined column
190837 ** apVal[p->nColumn+1] Right-most user-defined column
190838 ** apVal[p->nColumn+2] Hidden column with same name as table
190839 ** apVal[p->nColumn+3] Hidden "docid" column (alias for rowid)
190840 ** apVal[p->nColumn+4] Hidden languageid column
190844 sqlite3_value **apVal, /* Array of values to insert */
190851 sqlite3_value *pRowid = apVal[p->nColumn+3];
190853 pRowid = apVal[1];
190870 rc = fts3SqlStmt(p, SQL_CONTENT_INSERT, &pContentInsert, &apVal[1]);
190874 sqlite3_value_int(apVal[p->nColumn+4])
190889 if( SQLITE_NULL!=sqlite3_value_type(apVal[3+p->nColumn]) ){
190890 if( SQLITE_NULL==sqlite3_value_type(apVal[0])
190891 && SQLITE_NULL!=sqlite3_value_type(apVal[1])
190896 rc = sqlite3_bind_value(pContentInsert, 1, apVal[3+p->nColumn]);
190947 ** The first element in the apVal[] array is assumed to contain the docid
192318 ** The first value in the apVal[] array is assumed to contain an integer.
195543 sqlite3_value **apVal, /* Array of arguments */
195568 && sqlite3_value_type(apVal[0])==SQLITE_NULL
195569 && sqlite3_value_type(apVal[p->nColumn+2])!=SQLITE_NULL
195571 rc = fts3SpecialInsert(p, apVal[p->nColumn+2]);
195575 if( nArg>1 && sqlite3_value_int(apVal[2 + p->nColumn + 2])<0 ){
195603 sqlite3_value *pNewRowid = apVal[3+p->nColumn];
195605 pNewRowid = apVal[1];
195609 sqlite3_value_type(apVal[0])==SQLITE_NULL
195610 || sqlite3_value_int64(apVal[0])!=sqlite3_value_int64(pNewRowid)
195632 rc = fts3InsertData(p, apVal, pRowid);
195642 if( sqlite3_value_type(apVal[0])!=SQLITE_NULL ){
195643 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER );
195644 rc = fts3DeleteByRowid(p, apVal[0], &nChng, aSzDel);
195649 int iLangid = sqlite3_value_int(apVal[2 + p->nColumn + 2]);
195651 rc = fts3InsertData(p, apVal, pRowid);
195661 rc = fts3InsertTerms(p, iLangid, apVal, aSzIns);
211000 sqlite3_value **apVal
211006 assert( sqlite3_value_int(apVal[0])!=0
211010 if( sqlite3_value_int(apVal[0])!=0 ){
211015 rc = sqlite3_bind_value(p->objiter.pTmpInsert, i+1, apVal[i]);
212690 sqlite3_value **apVal
212702 "WHERE type='index' AND tbl_name = %Q", sqlite3_value_text(apVal[0]))
219090 sqlite3_value **apVal = 0; /* Space for values for UPDATE inversion */
219133 sqlite3_free(apVal);
219134 apVal = 0;
219158 if( 0==apVal ){
219159 apVal = (sqlite3_value **)sqlite3_malloc64(sizeof(apVal[0])*nCol*2);
219160 if( 0==apVal ){
219164 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
219173 rc = sessionReadRecord(pInput, nCol, 0, &apVal[0], 0);
219175 rc = sessionReadRecord(pInput, nCol, 0, &apVal[nCol], 0);
219182 sqlite3_value *pVal = apVal[iCol + (abPK[iCol] ? 0 : nCol)];
219190 sqlite3_value *pVal = (abPK[iCol] ? 0 : apVal[iCol]);
219195 sqlite3ValueFree(apVal[iCol]);
219197 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
219229 sqlite3_free(apVal);
221398 int nVal, /* Number of values in apVal[] array */
221399 sqlite3_value **apVal /* Array of trailing arguments */
224489 int nVal, /* Number of values in apVal[] array */
224490 sqlite3_value **apVal /* Array of trailing arguments */
224502 iCol = sqlite3_value_int(apVal[0]);
224504 ctx.zOpen = (const char*)sqlite3_value_text(apVal[1]);
224505 ctx.zClose = (const char*)sqlite3_value_text(apVal[2]);
224661 int nVal, /* Number of values in apVal[] array */
224662 sqlite3_value **apVal /* Array of trailing arguments */
224688 iCol = sqlite3_value_int(apVal[0]);
224689 ctx.zOpen = fts5ValueToText(apVal[1]);
224690 ctx.zClose = fts5ValueToText(apVal[2]);
224691 zEllips = fts5ValueToText(apVal[3]);
224692 nToken = sqlite3_value_int(apVal[4]);
224920 int nVal, /* Number of values in apVal[] array */
224921 sqlite3_value **apVal /* Array of trailing arguments */
224945 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0;
229015 sqlite3_value **apVal, /* Function arguments */
229042 zNearsetCmd = (const char*)sqlite3_value_text(apVal[1]);
229056 const char *z = (const char*)sqlite3_value_text(apVal[iArg]);
229060 zExpr = (const char*)sqlite3_value_text(apVal[0]);
229100 sqlite3_value **apVal /* Function arguments */
229102 fts5ExprFunction(pCtx, nArg, apVal, 0);
229107 sqlite3_value **apVal /* Function arguments */
229109 fts5ExprFunction(pCtx, nArg, apVal, 1);
229120 sqlite3_value **apVal /* Function arguments */
229134 iCode = sqlite3_value_int(apVal[0]);
229141 sqlite3_value **apVal /* Function arguments */
229150 iCode = sqlite3_value_int(apVal[0]);
229151 if( nArg==2 ) bRemoveDiacritics = sqlite3_value_int(apVal[1]);
236547 sqlite3_value **apVal /* Function arguments */
236561 iRowid = sqlite3_value_int64(apVal[0]);
236566 n = sqlite3_value_bytes(apVal[1]);
236567 aBlob = sqlite3_value_blob(apVal[1]);
236758 sqlite3_value **apVal /* Function arguments */
236764 zArg = (const char*)sqlite3_value_text(apVal[0]);
236773 segid = sqlite3_value_int(apVal[1]);
236774 pgno = sqlite3_value_int(apVal[2]);
238037 int nVal, /* Number of elements in apVal */
238038 sqlite3_value **apVal /* Arguments for the indexing scheme */
238083 pRank = apVal[i];
238086 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
238115 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
238132 pRowidEq = apVal[i];
238135 pRowidLe = apVal[i];
238138 pRowidGe = apVal[i];
238403 sqlite3_value **apVal
238406 int eType1 = sqlite3_value_type(apVal[1]);
238408 sqlite3_int64 iDel = sqlite3_value_int64(apVal[1]);
238409 rc = sqlite3Fts5StorageDelete(pTab->pStorage, iDel, &apVal[2]);
238417 sqlite3_value **apVal,
238422 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, piRowid);
238425 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal, *piRowid);
238447 sqlite3_value **apVal, /* Array of arguments */
238452 int eType0; /* value_type() of apVal[0] */
238460 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER
238461 || sqlite3_value_type(apVal[0])==SQLITE_NULL
238469 eType0 = sqlite3_value_type(apVal[0]);
238471 && sqlite3_value_type(apVal[2+pConfig->nCol])!=SQLITE_NULL
238474 const char *z = (const char*)sqlite3_value_text(apVal[2+pConfig->nCol]);
238478 rc = fts5SpecialDelete(pTab, apVal);
238480 rc = fts5SpecialInsert(pTab, z, apVal[2 + pConfig->nCol + 1]);
238514 i64 iDel = sqlite3_value_int64(apVal[0]); /* Rowid to delete */
238520 int eType1 = sqlite3_value_numeric_type(apVal[1]);
238529 i64 iNew = sqlite3_value_int64(apVal[1]); /* Rowid to delete */
238532 fts5StorageInsert(&rc, pTab, apVal, pRowid);
238537 i64 iOld = sqlite3_value_int64(apVal[0]); /* Old rowid */
238538 i64 iNew = sqlite3_value_int64(apVal[1]); /* New rowid */
238545 fts5StorageInsert(&rc, pTab, apVal, pRowid);
238547 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, pRowid);
238552 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal,*pRowid);
238557 fts5StorageInsert(&rc, pTab, apVal, pRowid);
240150 sqlite3_value **apVal
240159 if( apVal==0 ){
240175 assert( pSeek==0 || apVal==0 );
240176 assert( pSeek!=0 || apVal!=0 );
240180 }else if( ALWAYS(apVal) ){
240181 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
240182 nText = sqlite3_value_bytes(apVal[iCol-1]);
240284 static int sqlite3Fts5StorageDelete(Fts5Storage *p, i64 iDel, sqlite3_value **apVal){
240289 assert( pConfig->eContent!=FTS5_CONTENT_NORMAL || apVal==0 );
240294 rc = fts5StorageDeleteFromIndex(p, iDel, apVal);
240455 sqlite3_value **apVal,
240463 if( sqlite3_value_type(apVal[1])==SQLITE_INTEGER ){
240464 *piRowid = sqlite3_value_int64(apVal[1]);
240473 rc = sqlite3_bind_value(pInsert, i, apVal[i]);
240490 sqlite3_value **apVal,
240508 const char *zText = (const char*)sqlite3_value_text(apVal[ctx.iCol+2]);
240509 int nText = sqlite3_value_bytes(apVal[ctx.iCol+2]);
244069 int nUnused, /* Number of elements in apVal */
244070 sqlite3_value **apVal /* Arguments for the indexing scheme */
244089 if( idxNum & FTS5_VOCAB_TERM_EQ ) pEq = apVal[iVal++];
244090 if( idxNum & FTS5_VOCAB_TERM_GE ) pGe = apVal[iVal++];
244091 if( idxNum & FTS5_VOCAB_TERM_LE ) pLe = apVal[iVal++];