| /sqlite-3.40.0/ext/session/ |
| H A D | changeset.c | 165 sqlite3_value *pVal; in conflictCallback() local 173 renderValue(pVal); in conflictCallback() 272 sqlite3_value *pVal; in main() local 273 pVal = 0; in main() 275 if( pVal ){ in main() 277 renderValue(pVal); in main() 280 pVal = 0; in main() 282 if( pVal ){ in main() 284 renderValue(pVal); in main() 360 renderValue(pVal); in main() [all …]
|
| H A D | test_session.c | 447 if( pVal==0 ){ in test_append_value() 583 sqlite3_value *pVal; in test_conflict_handler() local 595 sqlite3_value *pVal; in test_conflict_handler() local 623 sqlite3_value *pVal; in test_conflict_handler() local 627 sqlite3_value *pVal; in test_conflict_handler() local 634 sqlite3_value *pVal; in test_conflict_handler() local 638 sqlite3_value *pVal; in test_conflict_handler() local 645 sqlite3_value *pVal; in test_conflict_handler() local 649 sqlite3_value *pVal; in test_conflict_handler() local 708 sqlite3_value *pVal; in replace_handler() local [all …]
|
| H A D | sqlite3session.c | 531 sqlite3_value *pVal; in sessionPreupdateHash() local 560 n = sqlite3_value_bytes(pVal); in sessionPreupdateHash() 1167 sqlite3_value *pVal = 0; in sessionStat1Old() local 1170 pVal = p->pSession->pZeroBlob; in sessionStat1Old() 1172 *ppVal = pVal; in sessionStat1Old() 1177 sqlite3_value *pVal = 0; in sessionStat1New() local 1180 pVal = p->pSession->pZeroBlob; in sessionStat1New() 1182 *ppVal = pVal; in sessionStat1New() 4144 sqlite3_value *pVal = 0; in sessionBindRow() local 4146 if( pVal==0 ){ in sessionBindRow() [all …]
|
| /sqlite-3.40.0/src/ |
| H A D | vdbemem.c | 1500 if( pVal==0 ){ in valueFromFunction() 1528 pVal = 0; in valueFromFunction() 1537 *ppVal = pVal; in valueFromFunction() 1630 && pVal!=0 in valueFromExpr() 1634 pVal->u.r = -pVal->u.r; in valueFromExpr() 1643 pVal->u.i = -pVal->u.i; in valueFromExpr() 1675 if( pVal ){ in valueFromExpr() 1681 *ppVal = pVal; in valueFromExpr() 1755 if( pVal ){ in stat4ValueFromExpr() 1774 assert( pVal==0 || pVal->db==db ); in stat4ValueFromExpr() [all …]
|
| H A D | vdbeapi.c | 175 Mem *p = (Mem*)pVal; in sqlite3_value_blob() 184 return sqlite3_value_text(pVal); in sqlite3_value_blob() 200 return sqlite3VdbeIntValue((Mem*)pVal); in sqlite3_value_int64() 203 Mem *pMem = (Mem*)pVal; in sqlite3_value_subtype() 207 Mem *p = (Mem*)pVal; in sqlite3_value_pointer() 307 if( pVal->flags & MEM_Null ){ in sqlite3_value_type() 311 }else if( pVal->flags & MEM_Int ){ in sqlite3_value_type() 313 }else if( pVal->flags & MEM_Str ){ in sqlite3_value_type() 322 return pVal->enc; in sqlite3_value_encoding() 332 return (pVal->flags&MEM_FromBind)!=0; in sqlite3_value_frombind() [all …]
|
| H A D | test_window.c | 35 Tcl_Obj *pVal; member 53 if( pCtx->pVal ){ in doTestWindowStep() 54 Tcl_ListObjAppendElement(p->interp, pEval, Tcl_DuplicateObj(pCtx->pVal)); in doTestWindowStep() 68 if( pCtx->pVal ) Tcl_DecrRefCount(pCtx->pVal); in doTestWindowStep() 69 pCtx->pVal = Tcl_DuplicateObj(Tcl_GetObjResult(p->interp)); in doTestWindowStep() 70 Tcl_IncrRefCount(pCtx->pVal); in doTestWindowStep() 85 if( pCtx->pVal ){ in doTestWindowFinalize() 86 Tcl_ListObjAppendElement(p->interp, pEval, Tcl_DuplicateObj(pCtx->pVal)); in doTestWindowFinalize() 100 if( pCtx->pVal ) Tcl_DecrRefCount(pCtx->pVal); in doTestWindowFinalize() 101 pCtx->pVal = 0; in doTestWindowFinalize()
|
| H A D | test5.c | 133 sqlite3_value *pVal; in test_translate() local 155 pVal = sqlite3ValueNew(0); in test_translate() 162 sqlite3ValueSetStr(pVal, -1, z, enc_from, xDel); in test_translate() 170 sqlite3ValueSetStr(pVal, -1, z, enc_from, xDel); in test_translate() 173 z = (char *)sqlite3ValueText(pVal, enc_to); in test_translate() 174 len = sqlite3ValueBytes(pVal, enc_to) + (enc_to==SQLITE_UTF8?1:2); in test_translate() 177 sqlite3ValueFree(pVal); in test_translate()
|
| H A D | complete.c | 270 sqlite3_value *pVal; in sqlite3_complete16() local 278 pVal = sqlite3ValueNew(0); in sqlite3_complete16() 279 sqlite3ValueSetStr(pVal, -1, zSql, SQLITE_UTF16NATIVE, SQLITE_STATIC); in sqlite3_complete16() 280 zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8); in sqlite3_complete16() 286 sqlite3ValueFree(pVal); in sqlite3_complete16()
|
| H A D | test_bestindex.c | 300 Tcl_Obj *pVal; in tclFilter() local 303 pVal = Tcl_NewObj(); in tclFilter() 315 Tcl_ListObjAppendElement(interp, pVal, pVal2); in tclFilter() 318 pVal = Tcl_NewStringObj(zVal, -1); in tclFilter() 320 Tcl_ListObjAppendElement(interp, pArg, pVal); in tclFilter() 573 sqlite3_value *pVal = 0; in testBestIndexObj() local 578 rc = sqlite3_vtab_rhs_value(pIdxInfo, iCons, &pVal); in testBestIndexObj() 583 if( pVal ){ in testBestIndexObj() 584 zVal = (const char*)sqlite3_value_text(pVal); in testBestIndexObj()
|
| H A D | test_func.c | 543 Tcl_Obj *pVal = 0; in test_decode() local 556 pVal = Tcl_NewStringObj((const char*)sqlite3_value_text(&mem), -1); in test_decode() 567 pVal = Tcl_NewStringObj("x'", -1); in test_decode() 573 Tcl_AppendStringsToObj(pVal, hex, 0); in test_decode() 575 Tcl_AppendStringsToObj(pVal, "'", 0); in test_decode() 580 pVal = Tcl_NewDoubleObj(sqlite3_value_double(&mem)); in test_decode() 584 pVal = Tcl_NewWideIntObj(sqlite3_value_int64(&mem)); in test_decode() 588 pVal = Tcl_NewStringObj("NULL", -1); in test_decode() 595 Tcl_ListObjAppendElement(0, pRet, pVal); in test_decode()
|
| H A D | whereexpr.c | 186 sqlite3_value *pVal = 0; in isLikeOrGlob() local 206 if( pVal && sqlite3_value_type(pVal)==SQLITE_TEXT ){ in isLikeOrGlob() 207 z = sqlite3_value_text(pVal); in isLikeOrGlob() 286 sqlite3ValueFree(pVal); in isLikeOrGlob() 318 sqlite3ValueFree(pVal); in isLikeOrGlob() 1564 Expr *pVal = sqlite3Expr(db, TK_INTEGER, 0); in whereAddLimitExpr() local 1565 if( pVal==0 ) return; in whereAddLimitExpr() 1566 ExprSetProperty(pVal, EP_IntValue); in whereAddLimitExpr() 1567 pVal->u.iValue = iVal; in whereAddLimitExpr() 1571 if( pVal==0 ) return; in whereAddLimitExpr() [all …]
|
| H A D | test1.c | 1064 sqlite3_value *pVal; in test_create_function() local 1075 sqlite3ValueFree(pVal); in test_create_function() 2987 sqlite3_value *pVal; in test_collate_func() local 3009 if( pVal ){ in test_collate_func() 3035 sqlite3_value *pVal; in test_collate() local 3260 sqlite3_value *pVal; in test_function_utf8() local 3275 sqlite3ValueFree(pVal); in test_function_utf8() 3284 sqlite3_value *pVal; in test_function_utf16le() local 3297 sqlite3ValueFree(pVal); in test_function_utf16le() 3306 sqlite3_value *pVal; in test_function_utf16be() local [all …]
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | qpvtab.c | 292 sqlite3_value *pVal in qpvtabStrAppendValue() argument 294 switch( sqlite3_value_type(pVal) ){ in qpvtabStrAppendValue() 307 int n = sqlite3_value_bytes(pVal); in qpvtabStrAppendValue() 321 int n = sqlite3_value_bytes(pVal); in qpvtabStrAppendValue() 347 sqlite3_value *pVal; in qpvtabBestIndex() local 351 pVal = 0; in qpvtabBestIndex() 354 if( pVal ){ in qpvtabBestIndex() 369 pVal = 0; in qpvtabBestIndex() 371 assert( rc==SQLITE_OK || pVal==0 ); in qpvtabBestIndex() 372 if( pVal ){ in qpvtabBestIndex() [all …]
|
| /sqlite-3.40.0/ext/lsm1/lsm-test/ |
| H A D | lsmtest_tdb2.cc | 12 char *pVal; member 51 if( pKcDb->pVal ){ in test_kc_close() 52 delete [] pKcDb->pVal; in test_kc_close() 93 const char *pVal; size_t nVal; in test_kc_delete_range() local 130 if( pKcDb->pVal ){ in test_kc_fetch() 131 delete [] pKcDb->pVal; in test_kc_fetch() 132 pKcDb->pVal = 0; in test_kc_fetch() 136 if( pKcDb->pVal ){ in test_kc_fetch() 137 *ppVal = pKcDb->pVal; in test_kc_fetch() 175 const char *pVal; size_t nVal; in test_kc_scan() local [all …]
|
| H A D | lsmtest_tdb.c | 47 char *pVal; member 57 free(pDb->pVal); in test_leveldb_close() 67 void *pVal, in test_leveldb_write() argument 95 free(pDb->pVal); in test_leveldb_fetch() 97 *ppVal = (void *)(pDb->pVal); in test_leveldb_fetch() 98 if( pDb->pVal==0 ){ in test_leveldb_fetch() 242 void *pVal, in kc_write() argument 328 void *pVal, in mdb_write() argument 446 void *pVal, in sql_write() argument 534 void *pVal; int nVal; in sql_scan() local [all …]
|
| H A D | lsmtest6.c | 87 void *pVal, int nVal, in testOomFetch() argument 126 void *pVal, int nVal, in testOomWrite() argument 133 rc = lsm_insert(pDb, pKey, nKey, pVal, nVal); in testOomWrite() 161 void *pVal; int nVal; in testOomFetchData() local 162 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testOomFetchData() 163 testOomFetch(pOom, pDb, pKey, nKey, pVal, nVal, pRc); in testOomFetchData() 186 void *pVal; int nVal; in testOomWriteData() local 187 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testOomWriteData() 188 testOomWrite(pOom, pDb, pKey, nKey, pVal, nVal, pRc); in testOomWriteData() 434 void *pVal; int nVal; in setup_populate_db2() local [all …]
|
| H A D | lsmtest1.c | 110 void *pVal; int nVal; /* Expected result of query */ in testDatasourceFetch() local 112 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testDatasourceFetch() 113 testFetch(pDb, pKey, nKey, pVal, nVal, pRc); in testDatasourceFetch() 174 void *pVal; int nVal; /* Database value to insert */ in testDbContents() local 175 testDatasourceEntry(pData, j, &pKey, &nKey, &pVal, &nVal); in testDbContents() 176 rc = tdb_write(pDb2, pKey, nKey, pVal, nVal); in testDbContents() 209 void *pVal; int nVal; /* Expected result of query */ in testDbContents() local 217 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testDbContents() 219 pVal = 0; in testDbContents() 223 testFetch(pDb, pKey, nKey, pVal, nVal, &rc); in testDbContents() [all …]
|
| H A D | lsmtest2.c | 25 void *pVal, int nVal in scanCksumDb() argument 36 p->cksum1 += ((u8 *)pVal)[i]; in scanCksumDb() 47 void *pVal, int nVal in scanCountDb() argument 54 unused_parameter(pVal); in scanCountDb() 395 void *pVal; int nVal; in crash_test2() local 397 testDatasourceEntry(pData, 100+iIns, &pKey, &nKey, &pVal, &nVal); in crash_test2() 398 testrc = tdb_write(pDb, pKey, nKey, pVal, nVal); in crash_test2()
|
| H A D | lsmtest_main.c | 33 void *pVal, int nVal, /* Expected value */ in testFetch() argument 54 void *pVal, int nVal, /* Value to write */ in testWrite() argument 61 rc = tdb_write(pDb, pKey, nKey, pVal, nVal); in testWrite() 195 void *pVal, int nVal in scanCompareCb() argument 199 u8 *aVal = (u8 *)pVal; in scanCompareCb() 207 if( test_scan_debug ) printf("%.20s\n", (char *)pVal); in scanCompareCb() 213 testFetch(p->pDb, pKey, nKey, pVal, nVal, &rc); in scanCompareCb() 734 void *pVal; int nVal; /* Result of query */ in do_speed_test2() local 737 rc = tdb_fetch(pDb, pKey, nKey, &pVal, &nVal); in do_speed_test2() 1437 void *pVal; int nVal; /* Database value to insert */ in do_insert() local [all …]
|
| H A D | lsmtest3.c | 100 void *pVal; int nVal; in testWriteDatasource() local 101 testDatasourceEntry(pData, i, &pKey, &nKey, &pVal, &nVal); in testWriteDatasource() 102 testWrite(pDb, pKey, nKey, pVal, nVal, pRc); in testWriteDatasource()
|
| /sqlite-3.40.0/test/ |
| H A D | vt02.c | 374 sqlite3_value *pIn, *pVal; in vt02Filter() local 380 pVal = 0; in vt02Filter() 398 rc==SQLITE_OK && pVal!=0; in vt02Filter() 399 rc = sqlite3_vtab_in_next(pIn, &pVal) in vt02Filter() 408 i = sqlite3_value_int(pVal); in vt02Filter() 587 sqlite3_value *pVal; in sqlite3BestIndexLog() local 610 pVal = 0; in sqlite3BestIndexLog() 612 assert( pVal!=0 || rc!=SQLITE_OK ); in sqlite3BestIndexLog() 632 if( pVal ) sqlite3_bind_value(pStmt, 1, pVal); in sqlite3BestIndexLog() 749 sqlite3_value *pVal; in vt02BestIndex() local [all …]
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_config.c | 824 sqlite3_value *pVal, in sqlite3Fts5ConfigSetValue() argument 831 if( SQLITE_INTEGER==sqlite3_value_numeric_type(pVal) ){ in sqlite3Fts5ConfigSetValue() 832 pgsz = sqlite3_value_int(pVal); in sqlite3Fts5ConfigSetValue() 843 if( SQLITE_INTEGER==sqlite3_value_numeric_type(pVal) ){ in sqlite3Fts5ConfigSetValue() 844 nHashSize = sqlite3_value_int(pVal); in sqlite3Fts5ConfigSetValue() 855 if( SQLITE_INTEGER==sqlite3_value_numeric_type(pVal) ){ in sqlite3Fts5ConfigSetValue() 856 nAutomerge = sqlite3_value_int(pVal); in sqlite3Fts5ConfigSetValue() 869 nUsermerge = sqlite3_value_int(pVal); in sqlite3Fts5ConfigSetValue() 881 nCrisisMerge = sqlite3_value_int(pVal); in sqlite3Fts5ConfigSetValue() 939 sqlite3_value *pVal = sqlite3_column_value(p, 1); in sqlite3Fts5ConfigLoad() local [all …]
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_vtab.c | 379 const u8 *pVal; in lsm1Next() local 387 c = memcmp(pVal, pCur->pKey2, len); in lsm1Next() 643 const void *pVal; in lsm1Column() local 645 if( lsm_csr_key(pCur->pLsmCur, &pVal, &nVal)==LSM_OK ){ in lsm1Column() 651 const unsigned char *z = (const unsigned char*)pVal; in lsm1Column() 659 const void *pVal; in lsm1Column() local 665 const void *pVal; in lsm1Column() local 749 const u8 *pVal = 0; in lsm1Filter() local 758 lsm1KeyFromValue(keyType, argv[0], aKey1, &pVal, &nVal); in lsm1Filter() 810 if( pVal ){ in lsm1Filter() [all …]
|
| /sqlite-3.40.0/ext/wasm/api/ |
| H A D | sqlite3-api-glue.js | 278 let i, pVal, valType, arg; 281 pVal = wasm.getPtrValue(pArgv + (wasm.ptrSizeof * i)); 289 valType = capi.sqlite3_value_type(pVal); 293 arg = capi.sqlite3_value_int64(pVal); 296 else arg = capi.sqlite3_value_double(pVal)/*yes, double, for larger integers*/; 299 arg = capi.sqlite3_value_double(pVal); 302 arg = capi.sqlite3_value_text(pVal); 305 const n = capi.sqlite3_value_bytes(pVal); 306 const pBlob = capi.sqlite3_value_blob(pVal);
|
| /sqlite-3.40.0/tool/ |
| H A D | showstat4.c | 21 static int decodeVarint(const unsigned char *z, i64 *pVal){ in decodeVarint() argument 26 if( (z[i]&0x80)==0 ){ *pVal = v; return i+1; } in decodeVarint() 29 *pVal = v; in decodeVarint()
|