| /sqlite-3.40.0/src/ |
| H A D | callback.c | 80 if( pColl && pColl->xCmp==0 ){ in sqlite3CheckCollSeq() 117 pColl = sqlite3DbMallocZero(db, 3*sizeof(*pColl) + nName); in findCollSeqEntry() 120 pColl[0].zName = (char*)&pColl[3]; in findCollSeqEntry() 122 pColl[1].zName = (char*)&pColl[3]; in findCollSeqEntry() 124 pColl[2].zName = (char*)&pColl[3]; in findCollSeqEntry() 141 return pColl; in findCollSeqEntry() 170 if( pColl ) pColl += enc-1; in sqlite3FindCollSeq() 174 return pColl; in sqlite3FindCollSeq() 213 p = pColl; in sqlite3GetCollSeq() 262 if( !initbusy && (!pColl || !pColl->xCmp) ){ in sqlite3LocateCollSeq() [all …]
|
| H A D | main.c | 1370 CollSeq *pColl = (CollSeq *)sqliteHashData(i); in sqlite3LeaveMutexAndCloseZombie() local 1373 if( pColl[j].xDel ){ in sqlite3LeaveMutexAndCloseZombie() 1374 pColl[j].xDel(pColl[j].pUser); in sqlite3LeaveMutexAndCloseZombie() 1377 sqlite3DbFree(db, pColl); in sqlite3LeaveMutexAndCloseZombie() 2703 CollSeq *pColl; in createCollation() local 2727 if( pColl && pColl->xCmp ){ in createCollation() 2746 if( p->enc==pColl->enc ){ in createCollation() 2757 if( pColl==0 ) return SQLITE_NOMEM_BKPT; in createCollation() 2758 pColl->xCmp = xCompare; in createCollation() 2759 pColl->pUser = pCtx; in createCollation() [all …]
|
| H A D | expr.c | 171 CollSeq *pColl = 0; in sqlite3ExprCollSeq() local 223 if( sqlite3CheckCollSeq(pParse, pColl) ){ in sqlite3ExprCollSeq() 224 pColl = 0; in sqlite3ExprCollSeq() 226 return pColl; in sqlite3ExprCollSeq() 347 CollSeq *pColl; in sqlite3BinaryCompareCollSeq() local 355 if( !pColl ){ in sqlite3BinaryCompareCollSeq() 359 return pColl; in sqlite3BinaryCompareCollSeq() 2353 if( sqlite3IsBinary(pColl) ){ in exprNodeIsConstantOrGroupBy() 3511 CollSeq *pColl; in sqlite3ExprCodeIN() local 3631 CollSeq *pColl; in sqlite3ExprCodeIN() local [all …]
|
| H A D | vdbeaux.c | 1761 CollSeq *pColl = pKeyInfo->aColl[j]; in sqlite3VdbeDisplayP4() local 1762 const char *zColl = pColl ? pColl->zName : ""; in sqlite3VdbeDisplayP4() 1780 CollSeq *pColl = pOp->p4.pColl; in sqlite3VdbeDisplayP4() local 1781 assert( pColl->enc<4 ); in sqlite3VdbeDisplayP4() 1783 encnames[pColl->enc]); in sqlite3VdbeDisplayP4() 4262 const CollSeq *pColl, in vdbeCompareMemString() argument 4265 if( pMem1->enc==pColl->enc ){ in vdbeCompareMemString() 4268 return pColl->xCmp(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z); in vdbeCompareMemString() 4284 rc = pColl->xCmp(pColl->pUser, c1.n, v1, c2.n, v2); in vdbeCompareMemString() 4453 assert( !pColl || pColl->xCmp ); in sqlite3MemCompare() [all …]
|
| H A D | func.c | 33 return pOp->p4.pColl; in sqlite3GetFuncCollSeq() 57 CollSeq *pColl; in minmaxFunc() local 61 pColl = sqlite3GetFuncCollSeq(context); in minmaxFunc() 62 assert( pColl ); in minmaxFunc() 68 if( (sqlite3MemCompare(argv[iBest], argv[i], pColl)^mask)>=0 ){ in minmaxFunc() 947 CollSeq *pColl = sqlite3GetFuncCollSeq(context); in nullifFunc() local 949 if( sqlite3MemCompare(argv[0], argv[1], pColl)!=0 ){ in nullifFunc() 1707 CollSeq *pColl = sqlite3GetFuncCollSeq(context); in minmaxStep() local 1717 cmp = sqlite3MemCompare(pBest, pArg, pColl); in minmaxStep()
|
| H A D | where.c | 355 CollSeq *pColl; in whereScanNext() local 362 pColl = sqlite3ExprCompareCollSeq(pParse, pX); in whereScanNext() 363 if( pColl==0 ) pColl = pParse->db->pDfltColl; in whereScanNext() 552 if( 0==sqlite3StrICmp(pColl->zName, zColl) ){ in findIndexCol() 943 pColl = sqlite3ExprCompareCollSeq(pParse, pX); in constructAutomaticIndex() 945 pIdx->azColl[n] = pColl ? pColl->zName : sqlite3StrBINARY; in constructAutomaticIndex() 1703 CollSeq *pColl; in whereRangeSkipScanEst() local 1709 pColl = sqlite3LocateCollSeq(pParse, p->azColl[nEq]); in whereRangeSkipScanEst() 1725 int res = sqlite3MemCompare(p1, pVal, pColl); in whereRangeSkipScanEst() 1729 int res = sqlite3MemCompare(p2, pVal, pColl); in whereRangeSkipScanEst() [all …]
|
| H A D | select.c | 2289 CollSeq *pColl; in sqlite3SelectAddColumnTypeAndCollation() local 2322 pColl = sqlite3ExprCollSeq(pParse, p); in sqlite3SelectAddColumnTypeAndCollation() 2323 if( pColl ){ in sqlite3SelectAddColumnTypeAndCollation() 2497 CollSeq *pColl; in multiSelectOrderByKeyInfo() local 2500 pColl = sqlite3ExprCollSeq(pParse, pTerm); in multiSelectOrderByKeyInfo() 2503 if( pColl==0 ) pColl = db->pDfltColl; in multiSelectOrderByKeyInfo() 2508 pRet->aColl[i] = pColl; in multiSelectOrderByKeyInfo() 3846 (pColl ? pColl->zName : "BINARY") in substExpr() 6344 CollSeq *pColl = 0; in updateAccumulator() local 6351 if( !pColl ){ in updateAccumulator() [all …]
|
| H A D | window.c | 1737 CollSeq *pColl; in windowAggStep() local 1740 pColl = sqlite3ExprNNCollSeq(pParse, pWin->pOwner->x.pList->a[0].pExpr); in windowAggStep() 1741 sqlite3VdbeAddOp4(v, OP_CollSeq, 0,0,0, (const char*)pColl, P4_COLLSEQ); in windowAggStep() 2111 CollSeq *pColl; in windowCodeRangeTest() local 2204 pColl = sqlite3ExprNNCollSeq(pParse, pOrderBy->a[0].pExpr); in windowCodeRangeTest() 2205 sqlite3VdbeAppendP4(v, (void*)pColl, P4_COLLSEQ); in windowCodeRangeTest()
|
| H A D | vdbe.h | 56 CollSeq *pColl; /* Used when p4type is P4_COLLSEQ */ member
|
| H A D | whereexpr.c | 915 CollSeq *pColl; in termIsEquivalence() local 926 pColl = sqlite3ExprCompareCollSeq(pParse, pExpr); in termIsEquivalence() 927 if( sqlite3IsBinary(pColl) ) return 1; in termIsEquivalence()
|
| H A D | analyze.c | 1179 char *pColl = (char*)sqlite3LocateCollSeq(pParse, pIdx->azColl[i]); in analyzeOneTable() local 1184 sqlite3VdbeAddOp4(v, OP_Ne, regTemp, 0, regPrev+i, pColl, P4_COLLSEQ); in analyzeOneTable()
|
| H A D | pragma.c | 1409 CollSeq *pColl = (CollSeq *)sqliteHashData(p); in sqlite3Pragma() local 1410 sqlite3VdbeMultiLoad(v, 1, "is", i++, pColl->zName); in sqlite3Pragma()
|
| H A D | vdbe.c | 2216 assert( pOp->p4type==P4_COLLSEQ || pOp->p4.pColl==0 ); in sqlite3VdbeExec() 2217 res = sqlite3MemCompare(pIn3, pIn1, pOp->p4.pColl); in sqlite3VdbeExec() 2328 CollSeq *pColl; /* Collating sequence to use on this term */ in sqlite3VdbeExec() local 2365 pColl = pKeyInfo->aColl[i]; in sqlite3VdbeExec() 2367 iCompare = sqlite3MemCompare(&aMem[p1+idx], &aMem[p2+idx], pColl); in sqlite3VdbeExec()
|
| H A D | build.c | 5469 CollSeq *pColl; /* Collating sequence to be reindexed, or NULL */ in sqlite3Reindex() local 5492 pColl = sqlite3FindCollSeq(db, ENC(db), zColl, 0); in sqlite3Reindex() 5493 if( pColl ){ in sqlite3Reindex()
|