Lines Matching defs:WhereInfo
462 struct WhereInfo { struct
463 Parse *pParse; /* Parsing and code generating context */
464 SrcList *pTabList; /* List of tables in the join */
465 ExprList *pOrderBy; /* The ORDER BY clause or NULL */
466 ExprList *pResultSet; /* Result set of the query */
468 Expr *pWhere; /* The complete WHERE clause */
470 Select *pSelect; /* The entire SELECT statement containing WHERE */
471 int aiCurOnePass[2]; /* OP_OpenWrite cursors for the ONEPASS opt */
472 int iContinue; /* Jump here to continue with next record */
473 int iBreak; /* Jump here to break out of the loop */
474 int savedNQueryLoop; /* pParse->nQueryLoop outside the WHERE loop */
475 u16 wctrlFlags; /* Flags originally passed to sqlite3WhereBegin() */
476 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
477 u8 nLevel; /* Number of nested loop */
478 i8 nOBSat; /* Number of ORDER BY terms satisfied by indices */
479 u8 eOnePass; /* ONEPASS_OFF, or _SINGLE, or _MULTI */
480 u8 eDistinct; /* One of the WHERE_DISTINCT_* values */
481 unsigned bDeferredSeek :1; /* Uses OP_DeferredSeek */
482 unsigned untestedTerms :1; /* Not all WHERE terms resolved by outer loop */
483 unsigned bOrderedInnerLoop:1;/* True if only the inner-most loop is ordered */
484 unsigned sorted :1; /* True if really sorted (not just grouped) */
485 LogEst nRowOut; /* Estimated number of output rows */
486 int iTop; /* The very beginning of the WHERE loop */
487 int iEndWhere; /* End of the WHERE clause itself */
488 WhereLoop *pLoops; /* List of all WhereLoop objects */
489 WhereMemBlock *pMemToFree;/* Memory to free when this object destroyed */
490 Bitmask revMask; /* Mask of ORDER BY terms that need reversing */
491 WhereClause sWC; /* Decomposition of the WHERE clause */
515 void *sqlite3WhereMalloc(WhereInfo *pWInfo, u64 nByte); argument