• Home
  • Raw
  • Download

Lines Matching refs:pVal

13629   int *pVal;  in getDigits()  local
13637 pVal = va_arg(ap, int*); in getDigits()
13649 *pVal = val; in getDigits()
59318 SQLITE_PRIVATE const void *sqlite3ValueText(sqlite3_value* pVal, u8 enc){
59319 if( !pVal ) return 0;
59321 assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) );
59323 assert( (pVal->flags & MEM_RowSet)==0 );
59325 if( pVal->flags&MEM_Null ){
59329 pVal->flags |= (pVal->flags & MEM_Blob)>>3;
59330 ExpandBlob(pVal);
59331 if( pVal->flags&MEM_Str ){
59332 sqlite3VdbeChangeEncoding(pVal, enc & ~SQLITE_UTF16_ALIGNED);
59333 if( (enc & SQLITE_UTF16_ALIGNED)!=0 && 1==(1&SQLITE_PTR_TO_INT(pVal->z)) ){
59334 assert( (pVal->flags & (MEM_Ephem|MEM_Static))!=0 );
59335 if( sqlite3VdbeMemMakeWriteable(pVal)!=SQLITE_OK ){
59339 sqlite3VdbeMemNulTerminate(pVal); /* IMP: R-31275-44060 */
59341 assert( (pVal->flags&MEM_Blob)==0 );
59342 sqlite3VdbeMemStringify(pVal, enc);
59343 assert( 0==(1&SQLITE_PTR_TO_INT(pVal->z)) );
59345 assert(pVal->enc==(enc & ~SQLITE_UTF16_ALIGNED) || pVal->db==0
59346 || pVal->db->mallocFailed );
59347 if( pVal->enc==(enc & ~SQLITE_UTF16_ALIGNED) ){
59348 return pVal->z;
59386 sqlite3_value *pVal = 0;
59418 pVal = sqlite3ValueNew(db);
59419 if( pVal==0 ) goto no_mem;
59421 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue*negInt);
59425 sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC);
59426 if( op==TK_FLOAT ) pVal->type = SQLITE_FLOAT;
59429 sqlite3ValueApplyAffinity(pVal, SQLITE_AFF_NUMERIC, SQLITE_UTF8);
59431 sqlite3ValueApplyAffinity(pVal, affinity, SQLITE_UTF8);
59433 if( pVal->flags & (MEM_Int|MEM_Real) ) pVal->flags &= ~MEM_Str;
59435 sqlite3VdbeChangeEncoding(pVal, enc);
59439 if( SQLITE_OK==sqlite3ValueFromExpr(db,pExpr->pLeft,enc,affinity,&pVal) ){
59440 sqlite3VdbeMemNumerify(pVal);
59441 if( pVal->u.i==SMALLEST_INT64 ){
59442 pVal->flags &= MEM_Int;
59443 pVal->flags |= MEM_Real;
59444 pVal->r = (double)LARGEST_INT64;
59446 pVal->u.i = -pVal->u.i;
59448 pVal->r = -pVal->r;
59449 sqlite3ValueApplyAffinity(pVal, affinity, enc);
59452 pVal = sqlite3ValueNew(db);
59453 if( pVal==0 ) goto no_mem;
59460 pVal = sqlite3ValueNew(db);
59461 if( !pVal ) goto no_mem;
59465 sqlite3VdbeMemSetStr(pVal, sqlite3HexToBlob(db, zVal, nVal), nVal/2,
59470 if( pVal ){
59471 sqlite3VdbeMemStoreType(pVal);
59473 *ppVal = pVal;
59479 sqlite3ValueFree(pVal);
59510 SQLITE_PRIVATE int sqlite3ValueBytes(sqlite3_value *pVal, u8 enc){
59511 Mem *p = (Mem*)pVal;
59512 if( (p->flags & MEM_Blob)!=0 || sqlite3ValueText(pVal, enc) ){
62898 SQLITE_API const void *sqlite3_value_blob(sqlite3_value *pVal){
62899 Mem *p = (Mem*)pVal;
62906 return sqlite3_value_text(pVal);
62909 SQLITE_API int sqlite3_value_bytes(sqlite3_value *pVal){
62910 return sqlite3ValueBytes(pVal, SQLITE_UTF8);
62912 SQLITE_API int sqlite3_value_bytes16(sqlite3_value *pVal){
62913 return sqlite3ValueBytes(pVal, SQLITE_UTF16NATIVE);
62915 SQLITE_API double sqlite3_value_double(sqlite3_value *pVal){
62916 return sqlite3VdbeRealValue((Mem*)pVal);
62918 SQLITE_API int sqlite3_value_int(sqlite3_value *pVal){
62919 return (int)sqlite3VdbeIntValue((Mem*)pVal);
62921 SQLITE_API sqlite_int64 sqlite3_value_int64(sqlite3_value *pVal){
62922 return sqlite3VdbeIntValue((Mem*)pVal);
62924 SQLITE_API const unsigned char *sqlite3_value_text(sqlite3_value *pVal){
62925 return (const unsigned char *)sqlite3ValueText(pVal, SQLITE_UTF8);
62928 SQLITE_API const void *sqlite3_value_text16(sqlite3_value* pVal){
62929 return sqlite3ValueText(pVal, SQLITE_UTF16NATIVE);
62931 SQLITE_API const void *sqlite3_value_text16be(sqlite3_value *pVal){
62932 return sqlite3ValueText(pVal, SQLITE_UTF16BE);
62934 SQLITE_API const void *sqlite3_value_text16le(sqlite3_value *pVal){
62935 return sqlite3ValueText(pVal, SQLITE_UTF16LE);
62938 SQLITE_API int sqlite3_value_type(sqlite3_value* pVal){
62939 return pVal->type;
64661 SQLITE_API int sqlite3_value_numeric_type(sqlite3_value *pVal){
64662 Mem *pMem = (Mem*)pVal;
64675 sqlite3_value *pVal,
64679 applyAffinity((Mem *)pVal, affinity, enc);
71784 void *pVal;
72128 void *pVal2 = p2 ? p2->pVal : 0;
72132 vdbeSorterCompare(pCsr, 0, p1->pVal, p1->nVal, pVal2, p2->nVal, &res);
72143 pVal2 = p2->pVal;
72234 rc = sqlite3OsWrite(pSorter->pTemp1, p->pVal, p->nVal, iOff);
72266 Mem *pVal /* Memory cell containing record */
72273 pSorter->nInMemory += sqlite3VarintLen(pVal->n) + pVal->n;
72275 pNew = (SorterRecord *)sqlite3DbMallocRaw(db, pVal->n + sizeof(SorterRecord));
72279 pNew->pVal = (void *)&pNew[1];
72280 memcpy(pNew->pVal, pVal->z, pVal->n);
72281 pNew->nVal = pVal->n;
72490 pKey = pSorter->pRecord->pVal;
72525 Mem *pVal, /* Value to compare to current sorter key */
72532 vdbeSorterCompare(pCsr, 1, pVal->z, pVal->n, pKey, nKey, pRes);
79132 sqlite3_value *pVal;
79133 if( sqlite3ValueFromExpr(db, pDflt, SQLITE_UTF8, SQLITE_AFF_NONE, &pVal) ){
79137 if( !pVal ){
79141 sqlite3ValueFree(pVal);
103221 sqlite3_value *pVal = 0;
103247 pVal = sqlite3VdbeGetValue(pReprepare, iCol, SQLITE_AFF_NONE);
103248 if( pVal && sqlite3_value_type(pVal)==SQLITE_TEXT ){
103249 z = (char *)sqlite3_value_text(pVal);
103288 sqlite3ValueFree(pVal);
105005 sqlite3_value *pVal, /* Value to consider */
105018 if( pVal==0 ) return SQLITE_ERROR;
105021 eType = sqlite3_value_type(pVal);
105024 v = sqlite3_value_int64(pVal);
105043 r = sqlite3_value_double(pVal);
105072 z = (const u8 *)sqlite3_value_blob(pVal);
105082 z = (const u8 *)sqlite3ValueText(pVal, pColl->enc);
105088 n = sqlite3ValueBytes(pVal, pColl->enc);
112337 sqlite3_value *pVal;
112345 pVal = sqlite3ValueNew(0);
112346 sqlite3ValueSetStr(pVal, -1, zSql, SQLITE_UTF16NATIVE, SQLITE_STATIC);
112347 zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8);
112353 sqlite3ValueFree(pVal);
114827 sqlite3_value *pVal;
114837 pVal = sqlite3ValueNew(0);
114838 sqlite3ValueSetStr(pVal, -1, zFilename, SQLITE_UTF16NATIVE, SQLITE_STATIC);
114839 zFilename8 = sqlite3ValueText(pVal, SQLITE_UTF8);
114850 sqlite3ValueFree(pVal);
117077 static void fts3GetDeltaVarint(char **pp, sqlite3_int64 *pVal){
117080 *pVal += iVal;
117095 sqlite3_int64 *pVal
117108 *pVal = iVal;
118844 sqlite3_int64 *pVal /* IN/OUT: Integer value */
118852 *pVal -= iVal;
118854 *pVal += iVal;
119846 sqlite3_value *pVal, /* argv[0] passed to function */
119850 if( sqlite3_value_type(pVal)!=SQLITE_BLOB
119851 || sqlite3_value_bytes(pVal)!=sizeof(Fts3Cursor *)
119858 memcpy(&pRet, sqlite3_value_blob(pVal), sizeof(Fts3Cursor *));
128267 static int fts3SpecialInsert(Fts3Table *p, sqlite3_value *pVal){
128269 const char *zVal = (const char *)sqlite3_value_text(pVal);
128270 int nVal = sqlite3_value_bytes(pVal);