Home
last modified time | relevance | path

Searched refs:nVal (Results 1 – 25 of 52) sorted by relevance

123

/sqlite-3.40.0/ext/lsm1/
H A Dlsm_vtab.c288 pNew->nVal++; in lsm1Connect()
380 u32 nVal; in lsm1Next() local
386 if( len>nVal ) len = nVal; in lsm1Next()
610 for(i=n=0; i<pTab->nVal; i++){ in lsm1DecodeValues()
623 if( i<pTab->nVal ){ in lsm1DecodeValues()
644 int nVal; in lsm1Column() local
657 }else if( i>pTab->nVal ){ in lsm1Column()
660 int nVal; in lsm1Column() local
666 int nVal; in lsm1Column() local
750 int nVal; in lsm1Filter() local
[all …]
H A Dlsm_sorted.c1086 pPtr->nVal = 0; in segmentPtrLoadCell()
1167 pPtr->nVal = 0; in segmentPtrReset()
1306 pPtr->nVal = 0; in segmentPtrEnd()
1966 pPtr->nVal = 0; in seekInLevel()
2680 *pnVal = nVal; in lsmSortedLoadFreelist()
3320 int nVal; in lsmMCursorValue() local
3339 nVal = 0; in lsmMCursorValue()
3343 *pnVal = nVal; in lsmMCursorValue()
4281 assert( nVal>=0 ); in mergeWorkerStep()
5586 if( nVal>0 && bVals ){ in sortedDumpPage()
[all …]
H A Dlsm_log.c674 assert( (eType==LSM_LOG_DELETE)==(nVal<0) ); in lsmLogWrite()
682 if( eType!=LSM_LOG_DELETE ) nReq += lsmVarintLen32(nVal) + nVal; in lsmLogWrite()
705 if( eType!=LSM_LOG_DELETE ) a += lsmVarintPut32(a, nVal); in lsmLogWrite()
716 memcpy(a, pVal, nVal); in lsmLogWrite()
717 a += nVal; in lsmLogWrite()
1026 int nVal; in lsmLogRecover() local
1029 logReaderVarint(&reader, &buf2, &nVal, &rc); in lsmLogRecover()
1034 bEof = logRequireCksum(&reader, nKey+nVal); in lsmLogRecover()
1039 logReaderBlob(&reader, &buf2, nVal, &aVal, &rc); in lsmLogRecover()
1042 rc = lsmTreeInsert(pDb, (u8 *)buf1.z, nKey, aVal, nVal); in lsmLogRecover()
[all …]
H A Dlsm_main.c661 const void *pVal, int nVal /* Value to write. Or nVal==-1 for a delete */ in doWriteOp() argument
672 int eType = (bDeleteRange ? LSM_DRANGE : (nVal>=0?LSM_WRITE:LSM_DELETE)); in doWriteOp()
673 rc = lsmLogWrite(pDb, eType, (void *)pKey, nKey, (void *)pVal, nVal); in doWriteOp()
691 rc = lsmTreeDelete(pDb, (void *)pKey, nKey, (void *)pVal, nVal); in doWriteOp()
693 rc = lsmTreeInsert(pDb, (void *)pKey, nKey, (void *)pVal, nVal); in doWriteOp()
722 const void *pVal, int nVal /* Value to write. Or nVal==-1 for a delete */ in lsm_insert() argument
724 return doWriteOp(db, 0, pKey, nKey, pVal, nVal); in lsm_insert()
H A Dlsm_tree.c262 static void intArrayTruncate(IntArray *p, int nVal){ in intArrayTruncate() argument
263 p->nArray = nVal; in intArrayTruncate()
733 void *pVal, int nVal, /* Value data (or nVal<0 for delete) */ in newTreeKey() argument
748 p->nValue = nVal; in newTreeKey()
769 n = nRem = nVal; in newTreeKey()
773 iEnd = iPtr + sizeof(TreeKey) + nKey + LSM_MAX(0, nVal); in newTreeKey()
1456 assert( nVal>=0 || pVal==0 ); in treeInsertEntry()
1498 nVal = pRes->nValue; in treeInsertEntry()
1518 pTreeKey = newTreeKey(pDb, &iTreeKey, pKey, nKey, pVal, nVal, &rc); in treeInsertEntry()
1582 if( nVal<0 ){ in lsmTreeInsert()
[all …]
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest6.c87 void *pVal, int nVal, in testOomFetch() argument
114 testOomAssert(pOom, rc!=LSM_OK || (n==nVal && memcmp(pVal, p, nVal)==0) ); in testOomFetch()
126 void *pVal, int nVal, in testOomWrite() argument
133 rc = lsm_insert(pDb, pKey, nKey, pVal, nVal); in testOomWrite()
149 int nVal = strlen(zVal); in testOomFetchStr() local
161 void *pVal; int nVal; in testOomFetchData() local
174 int nVal = strlen(zVal); in testOomWriteStr() local
186 void *pVal; int nVal; in testOomWriteData() local
352 int nVal = strlen(zVal); in lsmWriteStr() local
434 void *pVal; int nVal; in setup_populate_db2() local
[all …]
H A Dlsmtest_tdb.c68 int nVal in test_leveldb_write() argument
92 size_t nVal = 0; in test_leveldb_fetch() local
101 *pnVal = (int)nVal; in test_leveldb_fetch()
243 int nVal in kc_write() argument
329 int nVal in mdb_write() argument
447 int nVal in sql_write() argument
498 if( nVal>pDb->nAlloc ){ in sql_fetch()
501 pDb->nAlloc = nVal*2; in sql_fetch()
503 memcpy(pDb->aAlloc, aVal, nVal); in sql_fetch()
504 *pnVal = nVal; in sql_fetch()
[all …]
H A Dlsmtest_tdb2.cc60 int test_kc_write(TestDb *pDb, void *pKey, int nKey, void *pVal, int nVal){ in test_kc_write() argument
64 ok = pKcDb->db->set((const char *)pKey, nKey, (const char *)pVal, nVal); in test_kc_write()
93 const char *pVal; size_t nVal; in test_kc_delete_range() local
95 pKey = pCur->get(&nKey, &pVal, &nVal); in test_kc_delete_range()
128 size_t nVal; in test_kc_fetch() local
135 pKcDb->pVal = pKcDb->db->get((const char *)pKey, nKey, &nVal); in test_kc_fetch()
138 *pnVal = nVal; in test_kc_fetch()
175 const char *pVal; size_t nVal; in test_kc_scan() local
176 pKey = pCur->get(&nKey, &pVal, &nVal); in test_kc_scan()
192 xCallback(pCtx, (void *)pKey, (int)nKey, (void *)pVal, (int)nVal); in test_kc_scan()
[all …]
H A Dlsmtest1.c110 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()
175 testDatasourceEntry(pData, j, &pKey, &nKey, &pVal, &nVal); in testDbContents()
176 rc = tdb_write(pDb2, pKey, nKey, pVal, nVal); in testDbContents()
220 nVal = -1; in testDbContents()
223 testFetch(pDb, pKey, nKey, pVal, nVal, &rc); in testDbContents()
247 void *pCtx, void *pKey, int nKey, void *pVal, int nVal
579 int nVal; in doDataTest3() local
583 testPrngString(testPrngValue(iSeq++), aVal, nVal); in doDataTest3()
[all …]
H A Dlsmtest_main.c33 void *pVal, int nVal, /* Expected value */ in testFetch() argument
45 if( rc==0 && (nVal!=nDbVal || (nVal>0 && lsm_memcmp(pVal, pDbVal, nVal))) ){ in testFetch()
54 void *pVal, int nVal, /* Value to write */ in testWrite() argument
61 rc = tdb_write(pDb, pKey, nKey, pVal, nVal); in testWrite()
119 int nVal = (zVal ? strlen(zVal) : 0); in testWriteStr() local
134 int nVal = (zVal ? strlen(zVal) : 0); in testFetchStr() local
195 void *pVal, int nVal in scanCompareCb() argument
213 testFetch(p->pDb, pKey, nKey, pVal, nVal, &rc); in scanCompareCb()
223 for(i=0; i<nVal; i++){ in scanCompareCb()
738 if( rc==0 && nVal<0 ) rc = 1; in do_speed_test2()
[all …]
H A Dlsmtest2.c25 void *pVal, int nVal in scanCksumDb() argument
35 for(i=0; i<nVal; i++){ in scanCksumDb()
47 void *pVal, int nVal in scanCountDb() argument
55 unused_parameter(nVal); 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 Dlsmtest_tdb3.c573 int nVal in test_lsm_write() argument
588 rc = lsm_insert(pDb->db, pKey, nKey, pVal, nVal); in test_lsm_write()
630 const void *pVal; int nVal; in test_lsm_fetch() local
631 rc = lsm_csr_value(csr, &pVal, &nVal); in test_lsm_fetch()
632 if( nVal>pDb->nBuf ){ in test_lsm_fetch()
634 pDb->pBuf = testMalloc(nVal*2); in test_lsm_fetch()
635 pDb->nBuf = nVal*2; in test_lsm_fetch()
637 memcpy(pDb->pBuf, pVal, nVal); in test_lsm_fetch()
639 *pnVal = nVal; in test_lsm_fetch()
700 const void *pVal; int nVal; in test_lsm_scan() local
[all …]
H A Dlsmtest_datasource.c43 u32 nVal = testPrngValue((u32)iData)%(1+p->nMaxVal-p->nMinVal)+p->nMinVal; in testDatasourceEntry() local
44 testPrngString((u32)~iData, p->aVal, (int)nVal); in testDatasourceEntry()
46 *pnVal = (int)nVal; in testDatasourceEntry()
H A Dlsmtest3.c100 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()
H A Dlsmtest_tdb.h46 int tdb_write(TestDb *pDb, void *pKey, int nKey, void *pVal, int nVal);
124 void (*xCallback)(void *pCtx, void *pKey, int nKey, void *pVal, int nVal)
/sqlite-3.40.0/ext/session/
H A Dchangesetfuzz.c368 sqlite3_uint64 nVal = 0; in fuzzGetVarint() local
370 nVal = (nVal<<7) + (p[i] & 0x7F); in fuzzGetVarint()
376 *pnVal = (int)nVal; in fuzzGetVarint()
386 assert( nVal>0 && nVal<2097152 ); in fuzzPutVarint()
387 if( nVal<128 ){ in fuzzPutVarint()
388 p[0] = (u8)nVal; in fuzzPutVarint()
391 if( nVal<16384 ){ in fuzzPutVarint()
393 p[1] = (nVal & 0x7F); in fuzzPutVarint()
399 p[2] = (nVal & 0x7F); in fuzzPutVarint()
544 if( (pParse->nVal & (pParse->nVal-1))==0 ){ in fuzzParseRecord()
[all …]
/sqlite-3.40.0/src/
H A Dtest_hexio.c367 int nVal; in read_fts3varint() local
375 nVal = getFts3Varint((char*)zBlob, (sqlite3_int64 *)(&iVal)); in read_fts3varint()
377 Tcl_SetObjResult(interp, Tcl_NewIntObj(nVal)); in read_fts3varint()
420 int nVal = 0; in make_fts3record() local
421 char *zVal = Tcl_GetStringFromObj(aArg[i], &nVal); in make_fts3record()
422 while( (nOut + nVal)>nAlloc ){ in make_fts3record()
432 memcpy(&aOut[nOut], zVal, nVal); in make_fts3record()
433 nOut += nVal; in make_fts3record()
H A Dvdbemem.c1466 int nVal = 0; /* Size of apVal[] array */ in valueFromFunction() local
1477 if( pList ) nVal = pList->nExpr; in valueFromFunction()
1479 pFunc = sqlite3FindFunction(db, p->u.zToken, nVal, enc, 0); in valueFromFunction()
1488 apVal = (sqlite3_value**)sqlite3DbMallocZero(db, sizeof(apVal[0]) * nVal); in valueFromFunction()
1493 for(i=0; i<nVal; i++){ in valueFromFunction()
1511 pFunc->xSFunc(&ctx, nVal, apVal); in valueFromFunction()
1531 for(i=0; i<nVal; i++){ in valueFromFunction()
1654 int nVal; in valueFromExpr() local
1661 nVal = sqlite3Strlen30(zVal)-1; in valueFromExpr()
1662 assert( zVal[nVal]=='\'' ); in valueFromExpr()
[all …]
/sqlite-3.40.0/ext/recover/
H A Dsqlite3recover.c1517 int nVal = -1; in recoverLostAndFoundOnePage() local
1553 nVal = -1; in recoverLostAndFoundOnePage()
1559 assert( nVal==-1 ); in recoverLostAndFoundOnePage()
1562 nVal = 0; in recoverLostAndFoundOnePage()
1566 assert( iField==nVal || (nVal==-1 && iField==0) ); in recoverLostAndFoundOnePage()
1567 nVal = iField+1; in recoverLostAndFoundOnePage()
1748 p1->nVal = 0; in recoverWriteDataStep()
1768 assert( bNewCell || iField==p1->nVal || p1->nVal==pTab->nCol ); in recoverWriteDataStep()
1772 if( p1->nVal>=0 ){ in recoverWriteDataStep()
1808 p1->nVal = -1; in recoverWriteDataStep()
[all …]
/sqlite-3.40.0/test/
H A Dwindow5.test31 set nVal [llength $lSort]
32 set n [expr $nVal/2]
34 if {($nVal % 2)==0 && $nVal>0} {
/sqlite-3.40.0/ext/fts5/
H A Dfts5_aux.c207 int nVal, /* Number of values in apVal[] array */ in fts5HighlightFunction() argument
214 if( nVal!=3 ){ in fts5HighlightFunction()
379 int nVal, /* Number of values in apVal[] array */ in fts5SnippetFunction() argument
398 if( nVal!=5 ){ in fts5SnippetFunction()
638 int nVal, /* Number of values in apVal[] array */ in fts5Bm25Function() argument
663 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0; in fts5Bm25Function()
H A Dfts5Int.h543 #define fts5FastGetVarint32(a, iOff, nVal) { \ argument
544 nVal = (a)[iOff++]; \
545 if( nVal & 0x80 ){ \
547 iOff += fts5GetVarint32(&(a)[iOff], nVal); \
/sqlite-3.40.0/ext/fts3/
H A Dfts3_snippet.c1007 size_t nVal; /* Number of integers output by cArg */ in fts3MatchinfoSize() local
1013 nVal = 1; in fts3MatchinfoSize()
1019 nVal = pInfo->nCol; in fts3MatchinfoSize()
1023 nVal = pInfo->nCol * pInfo->nPhrase; in fts3MatchinfoSize()
1027 nVal = pInfo->nPhrase * ((pInfo->nCol + 31) / 32); in fts3MatchinfoSize()
1032 nVal = pInfo->nCol * pInfo->nPhrase * 3; in fts3MatchinfoSize()
1036 return nVal; in fts3MatchinfoSize()
H A Dfts3_aux.c369 int nVal, /* Number of elements in apVal */ in fts3auxFilterMethod() argument
384 UNUSED_PARAMETER(nVal); in fts3auxFilterMethod()
404 if( iNext<nVal ){ in fts3auxFilterMethod()
/sqlite-3.40.0/ext/misc/
H A Dzipfile.c1543 int nVal, in zipfileUpdate() argument
1576 if( nVal>1 ){ in zipfileUpdate()
1590 if( nVal>1 ){ in zipfileUpdate()
1946 static void zipfileStep(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal){ in zipfileStep() argument
1979 if( nVal!=2 && nVal!=4 && nVal!=5 ){ in zipfileStep()
1985 if( nVal==2 ){ in zipfileStep()
1991 if( nVal==5 ){ in zipfileStep()

123