Lines Matching defs:apVal

12795   int nVal,                       /* Number of values in apVal[] array */
12796 sqlite3_value **apVal /* Array of trailing arguments */
77863 sqlite3_value **apVal = 0; /* Function arguments */
77864 int nVal = 0; /* Size of apVal[] array */
77884 apVal = (sqlite3_value**)sqlite3DbMallocZero(db, sizeof(apVal[0]) * nVal);
77885 if( apVal==0 ){
77890 rc = sqlite3ValueFromExpr(db, pList->a[i].pExpr, enc, aff, &apVal[i]);
77891 if( apVal[i]==0 || rc!=SQLITE_OK ) goto value_from_function_out;
77905 pFunc->xSFunc(&ctx, nVal, apVal);
77924 if( apVal ){
77926 sqlite3ValueFree(apVal[i]);
77928 sqlite3DbFreeNN(db, apVal);
173305 int nVal, /* Number of elements in apVal */
173306 sqlite3_value **apVal /* Arguments for the indexing scheme */
173333 if( eSearch!=FTS3_FULLSCAN_SEARCH ) pCons = apVal[iIdx++];
173334 if( idxNum & FTS3_HAVE_LANGID ) pLangid = apVal[iIdx++];
173335 if( idxNum & FTS3_HAVE_DOCID_GE ) pDocidGe = apVal[iIdx++];
173336 if( idxNum & FTS3_HAVE_DOCID_LE ) pDocidLe = apVal[iIdx++];
173511 sqlite3_value **apVal, /* Array of arguments */
173514 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
173705 int nVal, /* Size of apVal[] array */
173706 sqlite3_value **apVal /* Array of arguments */
173708 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
173725 if( fts3FunctionArg(pContext, "snippet", apVal[0], &pCsr) ) return;
173728 case 6: nToken = sqlite3_value_int(apVal[5]);
173730 case 5: iCol = sqlite3_value_int(apVal[4]);
173732 case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
173734 case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
173736 case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
173753 sqlite3_value **apVal /* Array of arguments */
173755 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
173760 if( fts3FunctionArg(pContext, "offsets", apVal[0], &pCsr) ) return;
173779 sqlite3_value **apVal /* Array of arguments */
173783 Fts3Cursor *pCursor; /* Cursor handle passed through apVal[0] */
173788 if( fts3FunctionArg(pContext, "optimize", apVal[0], &pCursor) ) return;
173813 sqlite3_value **apVal /* Array of arguments */
173815 Fts3Cursor *pCsr; /* Cursor handle passed through apVal[0] */
173817 if( SQLITE_OK==fts3FunctionArg(pContext, "matchinfo", apVal[0], &pCsr) ){
173820 zArg = (const char *)sqlite3_value_text(apVal[1]);
176470 int nVal, /* Number of elements in apVal */
176471 sqlite3_value **apVal /* Arguments for the indexing scheme */
176479 int iEq = -1; /* Index of term=? value in apVal */
176480 int iGe = -1; /* Index of term>=? value in apVal */
176481 int iLe = -1; /* Index of term<=? value in apVal */
176482 int iLangid = -1; /* Index of languageid=? value in apVal */
176520 const unsigned char *zStr = sqlite3_value_text(apVal[0]);
176530 pCsr->zStop = sqlite3_mprintf("%s", sqlite3_value_text(apVal[iLe]));
176536 iLangVal = sqlite3_value_int(apVal[iLangid]);
180103 int nVal, /* Number of elements in apVal */
180104 sqlite3_value **apVal /* Arguments for the indexing scheme */
180114 const char *zByte = (const char *)sqlite3_value_text(apVal[0]);
180115 int nByte = sqlite3_value_bytes(apVal[0]);
180507 ** If argument apVal is not NULL, then it must point to an array with
180516 sqlite3_value **apVal /* Values to bind to statement */
180645 if( apVal ){
180649 rc = sqlite3_bind_value(pStmt, i+1, apVal[i]);
180713 ** array apVal[] to the SQL statement identified by eStmt, the statement
180723 sqlite3_value **apVal /* Parameters to bind */
180728 rc = fts3SqlStmt(p, eStmt, &pStmt, apVal);
181142 ** Argument apVal is the same as the similarly named argument passed to
181148 sqlite3_value **apVal,
181155 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
181160 aSz[p->nColumn] += sqlite3_value_bytes(apVal[i]);
181168 ** The apVal parameter is passed a copy of the apVal argument passed by
181171 ** apVal[0] Not used for INSERT.
181172 ** apVal[1] rowid
181173 ** apVal[2] Left-most user-defined column
181175 ** apVal[p->nColumn+1] Right-most user-defined column
181176 ** apVal[p->nColumn+2] Hidden column with same name as table
181177 ** apVal[p->nColumn+3] Hidden "docid" column (alias for rowid)
181178 ** apVal[p->nColumn+4] Hidden languageid column
181182 sqlite3_value **apVal, /* Array of values to insert */
181189 sqlite3_value *pRowid = apVal[p->nColumn+3];
181191 pRowid = apVal[1];
181208 rc = fts3SqlStmt(p, SQL_CONTENT_INSERT, &pContentInsert, &apVal[1]);
181212 sqlite3_value_int(apVal[p->nColumn+4])
181227 if( SQLITE_NULL!=sqlite3_value_type(apVal[3+p->nColumn]) ){
181228 if( SQLITE_NULL==sqlite3_value_type(apVal[0])
181229 && SQLITE_NULL!=sqlite3_value_type(apVal[1])
181234 rc = sqlite3_bind_value(pContentInsert, 1, apVal[3+p->nColumn]);
181285 ** The first element in the apVal[] array is assumed to contain the docid
182648 ** The first value in the apVal[] array is assumed to contain an integer.
185864 sqlite3_value **apVal, /* Array of arguments */
185889 && sqlite3_value_type(apVal[0])==SQLITE_NULL
185890 && sqlite3_value_type(apVal[p->nColumn+2])!=SQLITE_NULL
185892 rc = fts3SpecialInsert(p, apVal[p->nColumn+2]);
185896 if( nArg>1 && sqlite3_value_int(apVal[2 + p->nColumn + 2])<0 ){
185924 sqlite3_value *pNewRowid = apVal[3+p->nColumn];
185926 pNewRowid = apVal[1];
185930 sqlite3_value_type(apVal[0])==SQLITE_NULL
185931 || sqlite3_value_int64(apVal[0])!=sqlite3_value_int64(pNewRowid)
185953 rc = fts3InsertData(p, apVal, pRowid);
185963 if( sqlite3_value_type(apVal[0])!=SQLITE_NULL ){
185964 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER );
185965 rc = fts3DeleteByRowid(p, apVal[0], &nChng, aSzDel);
185970 int iLangid = sqlite3_value_int(apVal[2 + p->nColumn + 2]);
185972 rc = fts3InsertData(p, apVal, pRowid);
185982 rc = fts3InsertTerms(p, iLangid, apVal, aSzIns);
201167 sqlite3_value **apVal
201173 assert( sqlite3_value_int(apVal[0])!=0
201177 if( sqlite3_value_int(apVal[0])!=0 ){
201182 rc = sqlite3_bind_value(p->objiter.pTmpInsert, i+1, apVal[i]);
202846 sqlite3_value **apVal
202858 "WHERE type='index' AND tbl_name = %Q", sqlite3_value_text(apVal[0]))
208934 sqlite3_value **apVal = 0; /* Space for values for UPDATE inversion */
208977 sqlite3_free(apVal);
208978 apVal = 0;
209002 if( 0==apVal ){
209003 apVal = (sqlite3_value **)sqlite3_malloc64(sizeof(apVal[0])*nCol*2);
209004 if( 0==apVal ){
209008 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
209017 rc = sessionReadRecord(pInput, nCol, 0, &apVal[0], 0);
209019 rc = sessionReadRecord(pInput, nCol, 0, &apVal[nCol], 0);
209026 sqlite3_value *pVal = apVal[iCol + (abPK[iCol] ? 0 : nCol)];
209034 sqlite3_value *pVal = (abPK[iCol] ? 0 : apVal[iCol]);
209039 sqlite3ValueFree(apVal[iCol]);
209041 memset(apVal, 0, sizeof(apVal[0])*nCol*2);
209073 sqlite3_free(apVal);
211242 int nVal, /* Number of values in apVal[] array */
211243 sqlite3_value **apVal /* Array of trailing arguments */
214319 int nVal, /* Number of values in apVal[] array */
214320 sqlite3_value **apVal /* Array of trailing arguments */
214332 iCol = sqlite3_value_int(apVal[0]);
214334 ctx.zOpen = (const char*)sqlite3_value_text(apVal[1]);
214335 ctx.zClose = (const char*)sqlite3_value_text(apVal[2]);
214491 int nVal, /* Number of values in apVal[] array */
214492 sqlite3_value **apVal /* Array of trailing arguments */
214518 iCol = sqlite3_value_int(apVal[0]);
214519 ctx.zOpen = fts5ValueToText(apVal[1]);
214520 ctx.zClose = fts5ValueToText(apVal[2]);
214521 zEllips = fts5ValueToText(apVal[3]);
214522 nToken = sqlite3_value_int(apVal[4]);
214750 int nVal, /* Number of values in apVal[] array */
214751 sqlite3_value **apVal /* Array of trailing arguments */
214775 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0;
218833 sqlite3_value **apVal, /* Function arguments */
218860 zNearsetCmd = (const char*)sqlite3_value_text(apVal[1]);
218874 const char *z = (const char*)sqlite3_value_text(apVal[iArg]);
218878 zExpr = (const char*)sqlite3_value_text(apVal[0]);
218918 sqlite3_value **apVal /* Function arguments */
218920 fts5ExprFunction(pCtx, nArg, apVal, 0);
218925 sqlite3_value **apVal /* Function arguments */
218927 fts5ExprFunction(pCtx, nArg, apVal, 1);
218938 sqlite3_value **apVal /* Function arguments */
218952 iCode = sqlite3_value_int(apVal[0]);
218959 sqlite3_value **apVal /* Function arguments */
218968 iCode = sqlite3_value_int(apVal[0]);
218969 if( nArg==2 ) bRemoveDiacritics = sqlite3_value_int(apVal[1]);
226245 sqlite3_value **apVal /* Function arguments */
226259 iRowid = sqlite3_value_int64(apVal[0]);
226264 n = sqlite3_value_bytes(apVal[1]);
226265 aBlob = sqlite3_value_blob(apVal[1]);
226454 sqlite3_value **apVal /* Function arguments */
226460 zArg = (const char*)sqlite3_value_text(apVal[0]);
226469 segid = sqlite3_value_int(apVal[1]);
226470 pgno = sqlite3_value_int(apVal[2]);
227725 int nVal, /* Number of elements in apVal */
227726 sqlite3_value **apVal /* Arguments for the indexing scheme */
227771 pRank = apVal[i];
227774 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
227803 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
227820 pRowidEq = apVal[i];
227823 pRowidLe = apVal[i];
227826 pRowidGe = apVal[i];
228090 sqlite3_value **apVal
228093 int eType1 = sqlite3_value_type(apVal[1]);
228095 sqlite3_int64 iDel = sqlite3_value_int64(apVal[1]);
228096 rc = sqlite3Fts5StorageDelete(pTab->pStorage, iDel, &apVal[2]);
228104 sqlite3_value **apVal,
228109 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, piRowid);
228112 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal, *piRowid);
228134 sqlite3_value **apVal, /* Array of arguments */
228139 int eType0; /* value_type() of apVal[0] */
228147 assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER
228148 || sqlite3_value_type(apVal[0])==SQLITE_NULL
228156 eType0 = sqlite3_value_type(apVal[0]);
228158 && sqlite3_value_type(apVal[2+pConfig->nCol])!=SQLITE_NULL
228161 const char *z = (const char*)sqlite3_value_text(apVal[2+pConfig->nCol]);
228165 rc = fts5SpecialDelete(pTab, apVal);
228167 rc = fts5SpecialInsert(pTab, z, apVal[2 + pConfig->nCol + 1]);
228201 i64 iDel = sqlite3_value_int64(apVal[0]); /* Rowid to delete */
228207 int eType1 = sqlite3_value_numeric_type(apVal[1]);
228216 i64 iNew = sqlite3_value_int64(apVal[1]); /* Rowid to delete */
228219 fts5StorageInsert(&rc, pTab, apVal, pRowid);
228224 i64 iOld = sqlite3_value_int64(apVal[0]); /* Old rowid */
228225 i64 iNew = sqlite3_value_int64(apVal[1]); /* New rowid */
228232 fts5StorageInsert(&rc, pTab, apVal, pRowid);
228234 rc = sqlite3Fts5StorageContentInsert(pTab->pStorage, apVal, pRowid);
228239 rc = sqlite3Fts5StorageIndexInsert(pTab->pStorage, apVal,*pRowid);
228244 fts5StorageInsert(&rc, pTab, apVal, pRowid);
229835 sqlite3_value **apVal
229844 if( apVal==0 ){
229864 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
229865 nText = sqlite3_value_bytes(apVal[iCol-1]);
229965 static int sqlite3Fts5StorageDelete(Fts5Storage *p, i64 iDel, sqlite3_value **apVal){
229970 assert( pConfig->eContent!=FTS5_CONTENT_NORMAL || apVal==0 );
229975 rc = fts5StorageDeleteFromIndex(p, iDel, apVal);
230136 sqlite3_value **apVal,
230144 if( sqlite3_value_type(apVal[1])==SQLITE_INTEGER ){
230145 *piRowid = sqlite3_value_int64(apVal[1]);
230154 rc = sqlite3_bind_value(pInsert, i, apVal[i]);
230171 sqlite3_value **apVal,
230189 const char *zText = (const char*)sqlite3_value_text(apVal[ctx.iCol+2]);
230190 int nText = sqlite3_value_bytes(apVal[ctx.iCol+2]);
233742 int nUnused, /* Number of elements in apVal */
233743 sqlite3_value **apVal /* Arguments for the indexing scheme */
233762 if( idxNum & FTS5_VOCAB_TERM_EQ ) pEq = apVal[iVal++];
233763 if( idxNum & FTS5_VOCAB_TERM_GE ) pGe = apVal[iVal++];
233764 if( idxNum & FTS5_VOCAB_TERM_LE ) pLe = apVal[iVal++];