| /sqlite-3.40.0/src/ |
| H A D | test_quota.c | 230 if( pGroup->iLimit==0 && quotaGroupOpenFileCount(pGroup)==0 ){ in quotaGroupDeref() 582 if( szNew>pGroup->iLimit && pGroup->iLimit>0 ){ in quotaWrite() 587 if( szNew>pGroup->iLimit && pGroup->iLimit>0 ){ in quotaWrite() 807 pGroup->iLimit = 0; in sqlite3_quota_shutdown() 858 if( iLimit<=0 ){ in sqlite3_quota_set() 875 pGroup->iLimit = iLimit; in sqlite3_quota_set() 1017 if( szNew>pGroup->iLimit && pGroup->iLimit>0 ){ in sqlite3_quota_fwrite() 1022 if( szNew>pGroup->iLimit && pGroup->iLimit>0 ){ in sqlite3_quota_fwrite() 1023 iEnd = pGroup->iLimit - pGroup->iSize + pFile->iSize; in sqlite3_quota_fwrite() 1419 Tcl_WideInt iLimit; /* Initial quota in bytes */ in test_quota_set() local [all …]
|
| H A D | pcache1.c | 648 unsigned int iLimit /* Drop pages with this pgno or larger */ in pcache1TruncateUnsafe() argument 653 assert( pCache->iMaxKey >= iLimit ); in pcache1TruncateUnsafe() 655 if( pCache->iMaxKey - iLimit < pCache->nHash ){ in pcache1TruncateUnsafe() 660 h = iLimit % pCache->nHash; in pcache1TruncateUnsafe() 675 if( pPage->iKey>=iLimit ){ in pcache1TruncateUnsafe() 1156 static void pcache1Truncate(sqlite3_pcache *p, unsigned int iLimit){ in pcache1Truncate() argument 1159 if( iLimit<=pCache->iMaxKey ){ in pcache1Truncate() 1160 pcache1TruncateUnsafe(pCache, iLimit); in pcache1Truncate() 1161 pCache->iMaxKey = iLimit-1; in pcache1Truncate()
|
| H A D | memdb.c | 430 sqlite3_int64 iLimit = *(sqlite3_int64*)pArg; in memdbFileControl() local 431 if( iLimit<p->sz ){ in memdbFileControl() 432 if( iLimit<0 ){ in memdbFileControl() 433 iLimit = p->szMax; in memdbFileControl() 435 iLimit = p->sz; in memdbFileControl() 438 p->szMax = iLimit; in memdbFileControl() 439 *(sqlite3_int64*)pArg = iLimit; in memdbFileControl()
|
| H A D | select.c | 147 pNew->iLimit = 0; in sqlite3SelectNew() 732 iLimit = pSelect->iOffset ? pSelect->iOffset+1 : pSelect->iLimit; in pushOntoSorter() 777 if( iLimit ){ in pushOntoSorter() 785 if( iLimit ){ in pushOntoSorter() 1226 if( p->iLimit in selectInnerLoop() 2406 int iLimit = 0; in computeLimitRegisters() local 2422 p->iLimit = iLimit = ++pParse->nMem; in computeLimitRegisters() 2877 pPrior->iLimit = p->iLimit; in multiSelect() 2887 p->iLimit = pPrior->iLimit; in multiSelect() 2983 p->iLimit = 0; in multiSelect() [all …]
|
| H A D | pragma.c | 738 i64 iLimit = -2; in sqlite3Pragma() local 740 sqlite3DecOrHexToI64(zRight, &iLimit); in sqlite3Pragma() 741 if( iLimit<-1 ) iLimit = -1; in sqlite3Pragma() 743 iLimit = sqlite3PagerJournalSizeLimit(pPager, iLimit); in sqlite3Pragma() 744 returnSingleInt(v, iLimit); in sqlite3Pragma() 811 int iLimit = 0, addr; in sqlite3Pragma() local 812 if( zRight==0 || !sqlite3GetInt32(zRight, &iLimit) || iLimit<=0 ){ in sqlite3Pragma() 813 iLimit = 0x7fffffff; in sqlite3Pragma() 816 sqlite3VdbeAddOp2(v, OP_Integer, iLimit, 1); in sqlite3Pragma()
|
| H A D | wal.c | 1073 int iLimit = 0; /* Zero values greater than this */ in walCleanupHash() local 1096 iLimit = pWal->hdr.mxFrame - sLoc.iZero; in walCleanupHash() 1097 assert( iLimit>0 ); in walCleanupHash() 1099 if( sLoc.aHash[i]>iLimit ){ in walCleanupHash() 1107 nByte = (int)((char *)sLoc.aHash - (char *)&sLoc.aPgno[iLimit]); in walCleanupHash() 1109 memset((void *)&sLoc.aPgno[iLimit], 0, nByte); in walCleanupHash() 1115 if( iLimit ){ in walCleanupHash() 1118 for(j=0; j<iLimit; j++){ in walCleanupHash() 1576 void sqlite3WalLimit(Wal *pWal, i64 iLimit){ in sqlite3WalLimit() argument 1577 if( pWal ) pWal->mxWalSize = iLimit; in sqlite3WalLimit()
|
| H A D | test_pcache.c | 382 static void testpcacheTruncate(sqlite3_pcache *pCache, unsigned iLimit){ in testpcacheTruncate() argument 389 if( p->a[i].key>=iLimit ){ in testpcacheTruncate()
|
| H A D | test_quota.h | 118 sqlite3_int64 iLimit, /* New quota to set for this quota group */
|
| H A D | vdbemem.c | 1145 int iLimit; /* Maximum allowed string or blob size */ in sqlite3VdbeMemSetStr() local 1160 iLimit = pMem->db->aLimit[SQLITE_LIMIT_LENGTH]; in sqlite3VdbeMemSetStr() 1162 iLimit = SQLITE_MAX_LENGTH; in sqlite3VdbeMemSetStr() 1169 for(nByte=0; nByte<=iLimit && (z[nByte] | z[nByte+1]); nByte+=2){} in sqlite3VdbeMemSetStr() 1178 if( nByte>iLimit ){ in sqlite3VdbeMemSetStr()
|
| H A D | pager.c | 1395 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */ in zeroJournalHdr() local 1398 if( doTruncate || iLimit==0 ){ in zeroJournalHdr() 1414 if( rc==SQLITE_OK && iLimit>0 ){ in zeroJournalHdr() 1417 if( rc==SQLITE_OK && sz>iLimit ){ in zeroJournalHdr() 1418 rc = sqlite3OsTruncate(pPager->jfd, iLimit); in zeroJournalHdr() 7391 i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){ in sqlite3PagerJournalSizeLimit() argument 7392 if( iLimit>=-1 ){ in sqlite3PagerJournalSizeLimit() 7393 pPager->journalSizeLimit = iLimit; in sqlite3PagerJournalSizeLimit() 7394 sqlite3WalLimit(pPager->pWal, iLimit); in sqlite3PagerJournalSizeLimit()
|
| H A D | whereInt.h | 476 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */ member
|
| H A D | expr.c | 1739 pNew->iLimit = 0; in sqlite3SelectDup() 3146 pSelect->iLimit = 0; in sqlite3CodeRhsOfIN() 3343 pSel->iLimit = 0; in sqlite3CodeSubselect()
|
| H A D | whereexpr.c | 1638 whereAddLimitExpr(pWC, p->iLimit, p->pLimit->pLeft, in sqlite3WhereAddLimit()
|
| H A D | where.c | 4756 if( (pWInfo->wctrlFlags & WHERE_USE_LIMIT)!=0 && pWInfo->iLimit<nRow ){ in whereSortingCost() 4757 nRow = pWInfo->iLimit; in whereSortingCost() 5704 pWInfo->iLimit = iAuxArg; in sqlite3WhereBegin()
|
| H A D | os_unix.c | 5857 int iLimit = 0; in unixGetTempname() local 5879 if( zBuf[nBuf-2]!=0 || (iLimit++)>10 ){ in unixGetTempname()
|
| H A D | shell.c.in | 8828 int iLimit = -1; local 8832 if( iLimit<0 ){ 8833 iLimit = i; 8841 if( iLimit<0 ){ 8849 sqlite3_limit(p->db, aLimit[iLimit].limitCode, 8852 printf("%20s %d\n", aLimit[iLimit].zLimitName, 8853 sqlite3_limit(p->db, aLimit[iLimit].limitCode, -1));
|
| H A D | sqliteInt.h | 3349 int iLimit, iOffset; /* Memory registers holding LIMIT & OFFSET counters */ member
|
| H A D | sqlite.h.in | 8795 ** to the value of the iLimit parameter passed to xTruncate(). If any 8825 void (*xTruncate)(sqlite3_pcache*, unsigned iLimit); 8846 void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);
|
| /sqlite-3.40.0/test/ |
| H A D | select9.test | 72 for {set iLimit 0} {$iLimit < $iLimitEnd} {incr iLimit} { 74 set ::compound_sql "$sql LIMIT $iLimit" 80 set iEnd [expr {($iOffset*$nCol) + ($iLimit*$nCol) -1}] 82 do_test $testname.limit=$iLimit.offset=$iOffset {
|
| H A D | malloc_common.tcl | 613 for {set iLimit $nStartLimit} {$nFail} {incr iLimit} { 623 do_test "$name.$zName.$iLimit.$iFail" [list set {} $res] $str
|
| H A D | with1.test | 459 proc limit_test {tn iLimit iOffset} { 461 if {$iLimit < 0 } { 464 set result [lrange $::I $iOffset [expr $iLimit+$iOffset-1]] 471 LIMIT $iLimit OFFSET $iOffset
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | spellfix.c | 2536 int iLimit = 20; /* Max number of rows of output */ in spellfix1FilterForMatch() local 2562 iLimit = sqlite3_value_int(argv[idx++]); in spellfix1FilterForMatch() 2563 if( iLimit<1 ) iLimit = 1; in spellfix1FilterForMatch() 2576 spellfix1ResizeCursor(pCur, iLimit); in spellfix1FilterForMatch() 2626 pCur->iTop = iLimit; in spellfix1FilterForMatch()
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_index.c | 1445 int iLimit; in fts5DlidxLvlPrev() local 1453 iLimit = (iOff>9 ? iOff-9 : 0); in fts5DlidxLvlPrev() 1454 for(iOff--; iOff>iLimit; iOff--){ in fts5DlidxLvlPrev()
|