/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | btree.h | 54 int (*Cursor)(Btree*, int iTable, int wrFlag, BtCursor **ppCur); 116 #define sqliteBtreeDropTable(pBt, iTable) (btOps(pBt)->DropTable(pBt, iTable)) argument 117 #define sqliteBtreeClearTable(pBt, iTable)\ argument 118 (btOps(pBt)->ClearTable(pBt, iTable)) 119 #define sqliteBtreeCursor(pBt, iTable, wrFlag, ppCur)\ argument 120 (btOps(pBt)->Cursor(pBt, iTable, wrFlag, ppCur))
|
H A D | test3.c | 203 int rc, iTable; in btree_create_table() local 211 rc = sqliteBtreeCreateTable(pBt, &iTable); in btree_create_table() 216 sprintf(zBuf, "%d", iTable); in btree_create_table() 233 int iTable; in btree_drop_table() local 241 if( Tcl_GetInt(interp, argv[2], &iTable) ) return TCL_ERROR; in btree_drop_table() 242 rc = sqliteBtreeDropTable(pBt, iTable); in btree_drop_table() 262 int iTable; in btree_clear_table() local 270 if( Tcl_GetInt(interp, argv[2], &iTable) ) return TCL_ERROR; in btree_clear_table() 271 rc = sqliteBtreeClearTable(pBt, iTable); in btree_clear_table() 516 int iTable; in btree_cursor() local [all …]
|
H A D | expr.c | 447 pExpr->iTable = -1; in lookupName() 468 pExpr->iTable = pItem->iCursor; in lookupName() 474 pExpr->iTable = pItem->iCursor; in lookupName() 491 pExpr->iTable = pTriggerStack->newIdx; in lookupName() 495 pExpr->iTable = pTriggerStack->oldIdx; in lookupName() 699 pExpr->iTable = pParse->nTab++; in sqliteExprResolveIds() 720 iSet = pExpr->iTable = pParse->nSet++; in sqliteExprResolveIds() 1049 sqliteVdbeAddOp(v, OP_Recno, pExpr->iTable, 0); in sqliteExprCode() 1071 sqliteVdbeAddOp(v, OP_Variable, pExpr->iTable, 0); in sqliteExprCode() 1517 if( pA->iTable!=pB->iTable || pA->iColumn!=pB->iColumn ) return 0; in sqliteExprCompare() [all …]
|
H A D | where.c | 126 mask = getMask(pMaskSet, p->iTable); in exprTableUsage() 180 pInfo->idxRight = pExpr->pRight->iTable; in exprAnalyze() 184 pInfo->idxLeft = pExpr->pLeft->iTable; in exprAnalyze() 240 if( p->op!=TK_COLUMN || p->iTable!=base ){ in findSortingIndex() 755 sqliteVdbeAddOp(v, OP_SetFirst, pX->iTable, brk); in sqliteWhereBegin() 757 pLevel->inP1 = pX->iTable; in sqliteWhereBegin() 761 sqliteVdbeAddOp(v, OP_Rewind, pX->iTable, brk); in sqliteWhereBegin() 762 sqliteVdbeAddOp(v, OP_KeyAsData, pX->iTable, 1); in sqliteWhereBegin() 765 pLevel->inP1 = pX->iTable; in sqliteWhereBegin() 801 pLevel->inP1 = pX->iTable; in sqliteWhereBegin() [all …]
|
H A D | auth.c | 118 if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break; in sqliteAuthRead() 129 assert( pExpr->iTable==pStack->newIdx || pExpr->iTable==pStack->oldIdx ); in sqliteAuthRead()
|
H A D | select.c | 672 for(j=0; j<pTabList->nSrc && pTabList->a[j].iCursor!=p->iTable; j++){} in generateColumnTypes() 1090 int iTable, /* Insert this value in iTable */ in matchOrderbyToColumn() argument 1144 pE->iTable = iTable; in matchOrderbyToColumn() 1525 static void substExpr(Expr *pExpr, int iTable, ExprList *pEList){ in substExpr() argument 1527 if( pExpr->op==TK_COLUMN && pExpr->iTable==iTable ){ in substExpr() 1544 pExpr->iTable = pNew->iTable; in substExpr() 1551 substExpr(pExpr->pLeft, iTable, pEList); in substExpr() 1552 substExpr(pExpr->pRight, iTable, pEList); in substExpr() 1553 substExprList(pExpr->pList, iTable, pEList); in substExpr() 1557 substExprList(ExprList *pList, int iTable, ExprList *pEList){ in substExprList() argument [all …]
|
H A D | btree.c | 1040 int fileBtreeCursor(Btree *pBt, int iTable, int wrFlag, BtCursor **ppCur){ in fileBtreeCursor() argument 1060 pCur->pgnoRoot = (Pgno)iTable; in fileBtreeCursor() 2846 static int fileBtreeClearTable(Btree *pBt, int iTable){ in fileBtreeClearTable() argument 2853 if( pCur->pgnoRoot==(Pgno)iTable ){ in fileBtreeClearTable() 2858 rc = clearDatabasePage(pBt, (Pgno)iTable, 0); in fileBtreeClearTable() 2870 static int fileBtreeDropTable(Btree *pBt, int iTable){ in fileBtreeDropTable() argument 2878 if( pCur->pgnoRoot==(Pgno)iTable ){ in fileBtreeDropTable() 2882 rc = sqlitepager_get(pBt->pPager, (Pgno)iTable, (void**)&pPage); in fileBtreeDropTable() 2884 rc = fileBtreeClearTable(pBt, iTable); in fileBtreeDropTable() 2886 if( iTable>2 ){ in fileBtreeDropTable() [all …]
|
H A D | btree_rb.c | 716 int iTable, in memRbtreeCursor() argument 724 pCur->pTree = sqliteHashFind(&tree->tblHash, 0, iTable); in memRbtreeCursor() 727 pCur->iTree = iTable; in memRbtreeCursor()
|
H A D | sqliteInt.h | 691 int iTable, iColumn; /* When op==TK_COLUMN, then this expr node means the member
|
H A D | parse.y | 557 if( A ) A->iTable = ++pParse->nVar;
|