Home
last modified time | relevance | path

Searched refs:MAX (Results 1 – 25 of 34) sorted by relevance

12

/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_datasource.c80 nMinKey = MAX(0, pDefn->nMinKey); in testDatasourceNew()
81 nMaxKey = MAX(nMinKey, pDefn->nMaxKey); in testDatasourceNew()
83 nMinVal = MAX(0, pDefn->nMinVal); in testDatasourceNew()
84 nMaxVal = MAX(nMinVal, pDefn->nMaxVal); in testDatasourceNew()
H A Dlsmtest.h58 #define MAX(x,y) ((x)>(y) ? (x) : (y)) macro
H A Dlsmtest_tdb3.c753 return lsm_commit(pDb->db, MAX(0, iLevel-1)); in test_lsm_commit()
764 return lsm_rollback(pDb->db, MAX(0, iLevel-1)); in test_lsm_rollback()
H A Dlsmtest_main.c868 nRow = MAX(nRow, 100000); in do_speed_tests()
1029 fprintf(pOut, "set xrange [%d:*]\n", MAX(nStep, nRow/20) ); in do_speed_tests()
/sqlite-3.40.0/src/
H A Dtest_onefile.c251 #define MAX(x,y) ((x)>(y)?(x):(y)) macro
300 pTmp->nSize = (int)MAX(pTmp->nSize, iOfst+iAmt); in tmpWrite()
456 pReal->nDatabase = (int)MAX(pReal->nDatabase, iAmt+iOfst); in fsWrite()
478 pReal->nJournal = (int)MAX(pReal->nJournal, iAmt+iOfst); in fsWrite()
825 fs_vfs.base.szOsFile = MAX(sizeof(tmp_file), sizeof(fs_file)); in fs_register()
H A Dvdbetrace.c126 nextIndex = MAX(idx + 1, nextIndex); in sqlite3VdbeExpandSql()
H A Danalyze.c1001 pParse->nMem = MAX(pParse->nMem, iMem); in analyzeOneTable()
1044 pParse->nTab = MAX(pParse->nTab, iTab); in analyzeOneTable()
1107 pParse->nMem = MAX(pParse->nMem, regPrev+nColTest); in analyzeOneTable()
1279 pParse->nMem = MAX(pParse->nMem, regCol+nCol); in analyzeOneTable()
H A Dmemjournal.c439 return MAX(pVfs->szOsFile, (int)sizeof(MemJournal)); in sqlite3JournalSize()
H A Dvdbesort.c540 sqlite3_int64 nNew = MAX(128, 2*(sqlite3_int64)p->nAlloc); in vdbePmaReadBlob()
1007 pSorter->mxPmaSize = MAX(pSorter->mnPmaSize, (int)mxCache); in sqlite3VdbeSorterInit()
2005 pIncr->mxSz = MAX(pTask->pSorter->mxKeysize+9,pTask->pSorter->mxPmaSize/2); in vdbeIncrMergerNew()
H A Dwherecode.c626 aiMap = (int*)sqlite3DbMallocZero(pParse->db, sizeof(int)*MAX(nEq,n)); in codeEqualityTerm()
1748 nExtraReg = MAX(nExtraReg, pLoop->u.btree.nBtm); in sqlite3WhereCodeOneLoopStart()
1755 nExtraReg = MAX(nExtraReg, pLoop->u.btree.nTop); in sqlite3WhereCodeOneLoopStart()
H A Dprintf.c607 szBufNeeded = MAX(e2,0)+(i64)precision+(i64)width+15; in sqlite3_str_vappendf()
H A Dwhere.c2374 MAX(p->rRun, pTemplate->rRun), in whereLoopAdjustCost()
2375 MAX(p->nOut + 1, pTemplate->nOut))); in whereLoopAdjustCost()
2376 pTemplate->rRun = MAX(p->rRun, pTemplate->rRun); in whereLoopAdjustCost()
2377 pTemplate->nOut = MAX(p->nOut + 1, pTemplate->nOut); in whereLoopAdjustCost()
H A DsqliteInt.h740 #ifndef MAX
741 # define MAX(A,B) ((A)>(B)?(A):(B)) macro
/sqlite-3.40.0/test/
H A Dfts3corrupt4.test830 | 3024: 52 54 52 45 45 20 4d 41 58 20 4d 45 4d 4f 52 59 RTREE MAX MEMORY
845 | 3264: 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 30 MAX MEMORY=50000
847 | 3296: 19 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 .MAX MEMORY=5000
849 | 3328: 0f 17 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 ..MAX MEMORY=500
1053 | 3024: 52 54 52 45 45 20 4d 41 58 20 4d 45 4d 4f 52 59 RTREE MAX MEMORY
1068 | 3264: 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 30 MAX MEMORY=50000
1070 | 3296: 19 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 .MAX MEMORY=5000
1072 | 3328: 0f 17 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 ..MAX MEMORY=500
1282 | 3024: 52 54 52 45 45 20 4d 41 58 20 4d 45 4d 4f 52 59 RTREE MAX MEMORY
1297 | 3264: 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 30 MAX MEMORY=50000
[all …]
H A Dtkt2686.test44 WHERE rowid <= (SELECT MAX(rowid) FROM filler LIMIT 20)
74 WHERE rowid <= (SELECT MAX(rowid) FROM filler LIMIT 20)
H A Dcontrib01.test71 SELECT T2.A, T2.B, T1.D, T1.E, T1.F, T1.G, T1.H, MAX(T1.C), '^'
81 SELECT T2.A, T2.B, T1.D, T1.E, T1.F, T1.G, T1.H, MAX(T1.C), '^'
H A Dminmax3.test68 # Index optimizes the WHERE x='2' constraint and the MAX(y).
73 # Index optimizes the WHERE x='2' constraint and the MAX(y).
103 # Index optimizes the WHERE x='2' constraint and the MAX(y).
H A Dselect1.test171 set v [catch {execsql {SELECT MAX(*) FROM test1}} msg]
173 } {1 {wrong number of arguments to function MAX()}}
183 set v [catch {execsql {SELECT MAX(f1,f2)+1 FROM test1}} msg]
187 set v [catch {execsql {SELECT MAX(f1)+1 FROM test1}} msg]
/sqlite-3.40.0/ext/async/
H A Dsqlite3async.c29 #define MAX(x,y) ((x)>(y)?(x):(y)) macro
720 filesize = MAX(filesize, pWrite->iOffset+nByte64); in asyncRead()
796 s = MAX(pWrite->iOffset + (sqlite3_int64)(pWrite->nByte), s); in asyncFileSize()
884 p->lock.eAsyncLock = MAX(p->lock.eAsyncLock, eLock); in asyncLock()
1501 pData->lock.eAsyncLock, MAX(pData->lock.eLock, eLock) in asyncWriterThread()
/sqlite-3.40.0/ext/fts3/
H A Dfts3Int.h88 #ifndef MAX
89 # define MAX(x,y) ((x)>(y)?(x):(y)) macro
H A Dfts3_write.c4338 MAX(nRoot, p->nNodeSize)+FTS3_NODE_PADDING, &rc in fts3IncrmergeLoad()
4367 MAX(nBlock, p->nNodeSize)+FTS3_NODE_PADDING, &rc in fts3IncrmergeLoad()
4945 sqlite3_bind_int(pFindLevel, 1, MAX(2, nMin)); in sqlite3Fts3Incrmerge()
4974 nSeg = MIN(MAX(nMin,nSeg), nHintSeg); in sqlite3Fts3Incrmerge()
/sqlite-3.40.0/tool/
H A Dsplit-sqlite3c.tcl11 set MAX 32768 ;# Maximum number of lines per file.
/sqlite-3.40.0/ext/rtree/
H A Drtree.c415 #ifndef MAX
416 # define MAX(x,y) ((x) < (y) ? (y) : (x)) macro
2122 p1->aCoord[ii+1].f = MAX(p1->aCoord[ii+1].f, p2->aCoord[ii+1].f); in cellUnion()
2128 p1->aCoord[ii+1].i = MAX(p1->aCoord[ii+1].i, p2->aCoord[ii+1].i); in cellUnion()
2178 x1 = MAX(DCOORD(p->aCoord[jj]), DCOORD(aCell[ii].aCoord[jj])); in cellOverlap()
3460 pRtree->nRowEst = MAX(nRow, RTREE_MIN_ROWEST); in rtreeQueryStat1()
/sqlite-3.40.0/ext/fts5/
H A Dfts5Int.h54 #define MAX(x,y) (((x) > (y)) ? (x) : (y)) macro
/sqlite-3.40.0/ext/fts5/test/
H A Dfts5corrupt3.test2727 | 3264: 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 30 MAX MEMORY=50000
2729 | 3296: 19 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 .MAX MEMORY=5000
2731 | 3328: 0f 17 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 ..MAX MEMORY=500
2948 | 3264: 19 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 31 81 .MAX MEMORY=501.
4181 | 3264: 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 30 MAX MEMORY=50000
4183 | 3296: 19 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 .MAX MEMORY=5000
4185 | 3328: 0f 17 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 ..MAX MEMORY=500
4808 | 3264: 4d 41 58 20 4d 45 4d 4f 52 59 60 35 30 30 30 30 MAX MEMORY`50000
6951 INSERT INTO t1_content VALUES(30,'MAX MEMORY=50000000','W','BINARY');
6952 INSERT INTO t1_content VALUES(29,'MAX MEMORY=50000000','X','NOCASE');
[all …]

12