/dports/databases/sqlcipher/sqlcipher-3.4.2/src/ |
H A D | analyze.c | 415 nKeyCol = sqlite3_value_int(argv[1]); in statInit() 416 assert( nKeyCol<=nCol ); in statInit() 417 assert( nKeyCol>0 ); in statInit() 439 p->nKeyCol = nKeyCol; in statInit() 872 char *zRet = sqlite3MallocZero( (p->nKeyCol+1)*25 ); in statGet() 880 for(i=0; i<p->nKeyCol; i++){ in statGet() 1047 nCol = pIdx->nKeyCol; in analyzeOneTable() 1204 regKey = sqlite3GetTempRange(pParse, pPk->nKeyCol); in analyzeOneTable() 1205 for(j=0; j<pPk->nKeyCol; j++){ in analyzeOneTable() 1528 int nCol = pIndex->nKeyCol+1; [all …]
|
H A D | build.c | 1411 assert( pIdx->nKeyCol==1 ); in sqlite3AddCollateType() 1746 for(i=j=1; i<pPk->nKeyCol; i++){ in convertToWithoutRowidTable() 1753 pPk->nKeyCol = j; in convertToWithoutRowidTable() 1758 nPk = pPk->nKeyCol; in convertToWithoutRowidTable() 2879 p->nKeyCol = nCol - 1; in sqlite3AllocateIndexObject() 3128 pIndex->nKeyCol = pList->nExpr; in sqlite3CreateIndex() 3216 for(j=0; j<pPk->nKeyCol; j++){ in sqlite3CreateIndex() 3279 if( pIdx->nKeyCol!=pIndex->nKeyCol ) continue; in sqlite3CreateIndex() 3289 if( k==pIdx->nKeyCol ){ in sqlite3CreateIndex() 4172 for(j=0; j<pIdx->nKeyCol; j++){ in sqlite3UniqueConstraint() [all …]
|
H A D | where.c | 484 for(i=0; i<pIdx->nKeyCol; i++){ in isDistinctRedundant() 490 if( i==pIdx->nKeyCol ){ in isDistinctRedundant() 675 nKeyCol = 0; in constructAutomaticIndex() 712 assert( nKeyCol>0 ); in constructAutomaticIndex() 733 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex() 778 assert( n==nKeyCol ); in constructAutomaticIndex() 2610 && saved_nEq+1<pProbe->nKeyCol in whereLoopAddBtreeIndex() 2792 sPk.nKeyCol = 1; in whereLoopAddBtree() 3592 nKeyCol = 0; in wherePathSatisfiesOrderBy() 3597 nKeyCol = pIndex->nKeyCol; in wherePathSatisfiesOrderBy() [all …]
|
H A D | insert.c | 1271 nPkField = pPk->nKeyCol; in sqlite3GenerateConstraintChecks() 1577 regIdx, pIdx->nKeyCol); VdbeCoverage(v); in sqlite3GenerateConstraintChecks() 1596 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3GenerateConstraintChecks() 1612 int addrJump = sqlite3VdbeCurrentAddr(v)+pPk->nKeyCol; in sqlite3GenerateConstraintChecks() 1616 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3GenerateConstraintChecks() 1620 if( i==(pPk->nKeyCol-1) ){ in sqlite3GenerateConstraintChecks() 1756 pIdx->uniqNotNull ? pIdx->nKeyCol: pIdx->nColumn); in sqlite3CompleteInsertion() 1890 if( pDest->nKeyCol!=pSrc->nKeyCol ){ in xferCompatibleIndex() 1896 for(i=0; i<pSrc->nKeyCol; i++){ in xferCompatibleIndex()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/sqlite/src/src/ |
H A D | analyze.c | 409 nKeyCol = sqlite3_value_int(argv[1]); in statInit() 410 assert( nKeyCol<=nCol ); in statInit() 411 assert( nKeyCol>0 ); in statInit() 433 p->nKeyCol = nKeyCol; in statInit() 837 char *zRet = sqlite3MallocZero( (p->nKeyCol+1)*25 ); in statGet() 845 for(i=0; i<p->nKeyCol; i++){ in statGet() 1025 nCol = pIdx->nKeyCol; in analyzeOneTable() 1181 regKey = sqlite3GetTempRange(pParse, pPk->nKeyCol); in analyzeOneTable() 1182 for(j=0; j<pPk->nKeyCol; j++){ in analyzeOneTable() 1505 int nCol = pIndex->nKeyCol+1; [all …]
|
H A D | upsert.c | 140 if( pTarget->nExpr!=pIdx->nKeyCol ) continue; in sqlite3UpsertAnalyzeTarget() 148 nn = pIdx->nKeyCol; in sqlite3UpsertAnalyzeTarget() 223 int nPk = pPk->nKeyCol; in sqlite3UpsertDoUpdate()
|
H A D | build.c | 1618 assert( pIdx->nKeyCol==1 ); in sqlite3AddCollateType() 2036 assert( pPk->nKeyCol==1 ); in convertToWithoutRowidTable() 2046 for(i=j=1; i<pPk->nKeyCol; i++){ in convertToWithoutRowidTable() 2056 pPk->nKeyCol = j; in convertToWithoutRowidTable() 3350 p->nKeyCol = nCol - 1; in sqlite3AllocateIndexObject() 3633 pIndex->nKeyCol = pList->nExpr; in sqlite3CreateIndex() 3727 for(j=0; j<pPk->nKeyCol; j++){ in sqlite3CreateIndex() 3792 if( pIdx->nKeyCol!=pIndex->nKeyCol ) continue; in sqlite3CreateIndex() 3802 if( k==pIdx->nKeyCol ){ in sqlite3CreateIndex() 4740 for(j=0; j<pIdx->nKeyCol; j++){ in sqlite3UniqueConstraint() [all …]
|
H A D | delete.c | 190 if( pPk->nKeyCol==1 ){ in sqlite3LimitWhere() 196 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3LimitWhere() 442 nPk = pPk->nKeyCol; in sqlite3DeleteFrom() 858 pIdx->uniqNotNull ? pIdx->nKeyCol : pIdx->nColumn); in sqlite3GenerateRowIndexDelete() 923 nCol = (prefixOnly && pIdx->uniqNotNull) ? pIdx->nKeyCol : pIdx->nColumn; in sqlite3GenerateIndexKey()
|
H A D | where.c | 543 for(i=0; i<pIdx->nKeyCol; i++){ in isDistinctRedundant() 549 if( i==pIdx->nKeyCol ){ in isDistinctRedundant() 732 nKeyCol = 0; in constructAutomaticIndex() 769 assert( nKeyCol>0 ); in constructAutomaticIndex() 790 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex() 836 assert( n==nKeyCol ); in constructAutomaticIndex() 2732 && saved_nEq+1<pProbe->nKeyCol in whereLoopAddBtreeIndex() 2905 sPk.nKeyCol = 1; in whereLoopAddBtree() 3767 nKeyCol = 0; in wherePathSatisfiesOrderBy() 3772 nKeyCol = pIndex->nKeyCol; in wherePathSatisfiesOrderBy() [all …]
|
H A D | insert.c | 1548 nPkField = pPk->nKeyCol; in sqlite3GenerateConstraintChecks() 2046 regIdx, pIdx->nKeyCol); VdbeCoverage(v); in sqlite3GenerateConstraintChecks() 2065 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3GenerateConstraintChecks() 2081 int addrJump = sqlite3VdbeCurrentAddr(v)+pPk->nKeyCol; in sqlite3GenerateConstraintChecks() 2085 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3GenerateConstraintChecks() 2089 if( i==(pPk->nKeyCol-1) ){ in sqlite3GenerateConstraintChecks() 2333 pIdx->uniqNotNull ? pIdx->nKeyCol: pIdx->nColumn); in sqlite3CompleteInsertion() 2459 if( pDest->nKeyCol!=pSrc->nKeyCol || pDest->nColumn!=pSrc->nColumn ){ in xferCompatibleIndex() 2465 for(i=0; i<pSrc->nKeyCol; i++){ in xferCompatibleIndex()
|
/dports/databases/sqlite3/sqlite-src-3350500/src/ |
H A D | analyze.c | 421 nKeyCol = sqlite3_value_int(argv[1]); in statInit() 422 assert( nKeyCol<=nCol ); in statInit() 423 assert( nKeyCol>0 ); in statInit() 448 p->nKeyCol = nKeyCol; in statInit() 858 char *zRet = sqlite3MallocZero( (p->nKeyCol+1)*25 ); in statGet() 867 for(i=0; i<p->nKeyCol; i++){ in statGet() 1070 nCol = pIdx->nKeyCol; in analyzeOneTable() 1236 regKey = sqlite3GetTempRange(pParse, pPk->nKeyCol); in analyzeOneTable() 1237 for(j=0; j<pPk->nKeyCol; j++){ in analyzeOneTable() 1575 int nCol = pIndex->nKeyCol+1; [all …]
|
H A D | build.c | 1782 assert( pIdx->nKeyCol==1 ); in sqlite3AddCollateType() 2204 assert( pPk->nKeyCol==1 ); in convertToWithoutRowidTable() 2214 for(i=j=1; i<pPk->nKeyCol; i++){ in convertToWithoutRowidTable() 2224 pPk->nKeyCol = j; in convertToWithoutRowidTable() 3559 p->nKeyCol = nCol - 1; in sqlite3AllocateIndexObject() 3839 pIndex->nKeyCol = pList->nExpr; in sqlite3CreateIndex() 3933 for(j=0; j<pPk->nKeyCol; j++){ in sqlite3CreateIndex() 3998 if( pIdx->nKeyCol!=pIndex->nKeyCol ) continue; in sqlite3CreateIndex() 4008 if( k==pIdx->nKeyCol ){ in sqlite3CreateIndex() 5005 for(j=0; j<pIdx->nKeyCol; j++){ in sqlite3UniqueConstraint() [all …]
|
H A D | upsert.c | 154 if( pTarget->nExpr!=pIdx->nKeyCol ) continue; in sqlite3UpsertAnalyzeTarget() 162 nn = pIdx->nKeyCol; in sqlite3UpsertAnalyzeTarget() 281 int nPk = pPk->nKeyCol; in sqlite3UpsertDoUpdate()
|
H A D | delete.c | 190 if( pPk->nKeyCol==1 ){ in sqlite3LimitWhere() 196 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3LimitWhere() 449 nPk = pPk->nKeyCol; in sqlite3DeleteFrom() 864 pIdx->uniqNotNull ? pIdx->nKeyCol : pIdx->nColumn); in sqlite3GenerateRowIndexDelete() 930 nCol = (prefixOnly && pIdx->uniqNotNull) ? pIdx->nKeyCol : pIdx->nColumn; in sqlite3GenerateIndexKey()
|
H A D | where.c | 578 for(i=0; i<pIdx->nKeyCol; i++){ in isDistinctRedundant() 584 if( i==pIdx->nKeyCol ){ in isDistinctRedundant() 767 nKeyCol = 0; in constructAutomaticIndex() 804 assert( nKeyCol>0 ); in constructAutomaticIndex() 825 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex() 871 assert( n==nKeyCol ); in constructAutomaticIndex() 2794 && saved_nEq+1<pProbe->nKeyCol in whereLoopAddBtreeIndex() 2969 sPk.nKeyCol = 1; in whereLoopAddBtree() 3855 nKeyCol = 0; in wherePathSatisfiesOrderBy() 3860 nKeyCol = pIndex->nKeyCol; in wherePathSatisfiesOrderBy() [all …]
|
H A D | update.c | 228 for(i=0; i<pPk->nKeyCol; i++){ in updateFromSelect() 263 dest.iSDParm2 = (pPk ? pPk->nKeyCol : -1); in updateFromSelect() 559 for(i=0; i<pIdx->nKeyCol; i++){ in sqlite3Update() 659 nPk = pPk ? pPk->nKeyCol : 0; in sqlite3Update() 1206 assert( pPk->nKeyCol==1 ); in updateVirtualTable() 1259 assert( pPk->nKeyCol==1 ); in updateVirtualTable()
|
H A D | insert.c | 1626 nPkField = pPk->nKeyCol; in sqlite3GenerateConstraintChecks() 2185 regIdx, pIdx->nKeyCol); VdbeCoverage(v); in sqlite3GenerateConstraintChecks() 2204 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3GenerateConstraintChecks() 2220 int addrJump = sqlite3VdbeCurrentAddr(v)+pPk->nKeyCol; in sqlite3GenerateConstraintChecks() 2224 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3GenerateConstraintChecks() 2228 if( i==(pPk->nKeyCol-1) ){ in sqlite3GenerateConstraintChecks() 2495 pIdx->uniqNotNull ? pIdx->nKeyCol: pIdx->nColumn); in sqlite3CompleteInsertion() 2621 if( pDest->nKeyCol!=pSrc->nKeyCol || pDest->nColumn!=pSrc->nColumn ){ in xferCompatibleIndex() 2627 for(i=0; i<pSrc->nKeyCol; i++){ in xferCompatibleIndex()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/sqlite/src/src/ |
H A D | analyze.c | 421 nKeyCol = sqlite3_value_int(argv[1]); in statInit() 422 assert( nKeyCol<=nCol ); in statInit() 423 assert( nKeyCol>0 ); in statInit() 448 p->nKeyCol = nKeyCol; in statInit() 858 char *zRet = sqlite3MallocZero( (p->nKeyCol+1)*25 ); in statGet() 867 for(i=0; i<p->nKeyCol; i++){ in statGet() 1070 nCol = pIdx->nKeyCol; in analyzeOneTable() 1236 regKey = sqlite3GetTempRange(pParse, pPk->nKeyCol); in analyzeOneTable() 1237 for(j=0; j<pPk->nKeyCol; j++){ in analyzeOneTable() 1575 int nCol = pIndex->nKeyCol+1; [all …]
|
H A D | upsert.c | 140 if( pTarget->nExpr!=pIdx->nKeyCol ) continue; in sqlite3UpsertAnalyzeTarget() 148 nn = pIdx->nKeyCol; in sqlite3UpsertAnalyzeTarget() 223 int nPk = pPk->nKeyCol; in sqlite3UpsertDoUpdate()
|
H A D | build.c | 1675 assert( pIdx->nKeyCol==1 ); in sqlite3AddCollateType() 2096 assert( pPk->nKeyCol==1 ); in convertToWithoutRowidTable() 2106 for(i=j=1; i<pPk->nKeyCol; i++){ in convertToWithoutRowidTable() 2116 pPk->nKeyCol = j; in convertToWithoutRowidTable() 3453 p->nKeyCol = nCol - 1; in sqlite3AllocateIndexObject() 3733 pIndex->nKeyCol = pList->nExpr; in sqlite3CreateIndex() 3827 for(j=0; j<pPk->nKeyCol; j++){ in sqlite3CreateIndex() 3892 if( pIdx->nKeyCol!=pIndex->nKeyCol ) continue; in sqlite3CreateIndex() 3902 if( k==pIdx->nKeyCol ){ in sqlite3CreateIndex() 4885 for(j=0; j<pIdx->nKeyCol; j++){ in sqlite3UniqueConstraint() [all …]
|
H A D | delete.c | 190 if( pPk->nKeyCol==1 ){ in sqlite3LimitWhere() 196 for(i=0; i<pPk->nKeyCol; i++){ in sqlite3LimitWhere() 442 nPk = pPk->nKeyCol; in sqlite3DeleteFrom() 857 pIdx->uniqNotNull ? pIdx->nKeyCol : pIdx->nColumn); in sqlite3GenerateRowIndexDelete() 923 nCol = (prefixOnly && pIdx->uniqNotNull) ? pIdx->nKeyCol : pIdx->nColumn; in sqlite3GenerateIndexKey()
|
H A D | where.c | 558 for(i=0; i<pIdx->nKeyCol; i++){ in isDistinctRedundant() 564 if( i==pIdx->nKeyCol ){ in isDistinctRedundant() 747 nKeyCol = 0; in constructAutomaticIndex() 784 assert( nKeyCol>0 ); in constructAutomaticIndex() 805 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex() 851 assert( n==nKeyCol ); in constructAutomaticIndex() 2774 && saved_nEq+1<pProbe->nKeyCol in whereLoopAddBtreeIndex() 2949 sPk.nKeyCol = 1; in whereLoopAddBtree() 3835 nKeyCol = 0; in wherePathSatisfiesOrderBy() 3840 nKeyCol = pIndex->nKeyCol; in wherePathSatisfiesOrderBy() [all …]
|
H A D | update.c | 228 for(i=0; i<pPk->nKeyCol; i++){ in updateFromSelect() 263 dest.iSDParm2 = (pPk ? pPk->nKeyCol : -1); in updateFromSelect() 559 for(i=0; i<pIdx->nKeyCol; i++){ in sqlite3Update() 658 nPk = pPk ? pPk->nKeyCol : 0; in sqlite3Update() 1205 assert( pPk->nKeyCol==1 ); in updateVirtualTable() 1258 assert( pPk->nKeyCol==1 ); in updateVirtualTable()
|
/dports/devel/cppcheck-gui/cppcheck-2.6.3/test/bug-hunting/cve/CVE-2019-16168/ |
H A D | where.c | 535 for (i=0; i<pIdx->nKeyCol; i++) { in isDistinctRedundant() 541 if (i==pIdx->nKeyCol) { in isDistinctRedundant() 724 nKeyCol = 0; in constructAutomaticIndex() 761 assert( nKeyCol>0 ); in constructAutomaticIndex() 782 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex() 827 assert( n==nKeyCol ); in constructAutomaticIndex() 2723 && saved_nEq+1<pProbe->nKeyCol in whereLoopAddBtreeIndex() 2888 sPk.nKeyCol = 1; in whereLoopAddBtree() 3738 nKeyCol = 0; in wherePathSatisfiesOrderBy() 3743 nKeyCol = pIndex->nKeyCol; in wherePathSatisfiesOrderBy() [all …]
|
/dports/devel/cppcheck/cppcheck-2.6.3/test/bug-hunting/cve/CVE-2019-16168/ |
H A D | where.c | 535 for (i=0; i<pIdx->nKeyCol; i++) { in isDistinctRedundant() 541 if (i==pIdx->nKeyCol) { in isDistinctRedundant() 724 nKeyCol = 0; in constructAutomaticIndex() 761 assert( nKeyCol>0 ); in constructAutomaticIndex() 782 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex() 827 assert( n==nKeyCol ); in constructAutomaticIndex() 2723 && saved_nEq+1<pProbe->nKeyCol in whereLoopAddBtreeIndex() 2888 sPk.nKeyCol = 1; in whereLoopAddBtree() 3738 nKeyCol = 0; in wherePathSatisfiesOrderBy() 3743 nKeyCol = pIndex->nKeyCol; in wherePathSatisfiesOrderBy() [all …]
|