/ Check-in [d879c47d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a minor problem causing an incorrect cursor-hint to be generated in some cases.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d879c47d7d145cbe99602b2cf70294ddc946709e8d61040942085d29e2c5b6cd
User & Date: dan 2018-09-10 19:27:12
Context
2018-09-10
19:34
Fix a test script issue in fts3ao.test. check-in: 74c381b5 user: dan tags: trunk
19:27
Fix a minor problem causing an incorrect cursor-hint to be generated in some cases. check-in: d879c47d user: dan tags: trunk
17:21
Add the ability for loadable extensions to access the new sqlite3_create_window_function() interface. check-in: 3def6d8e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/wherecode.c.

   878    878   ** by pCCurHint.iTabCur, and an index is being used (which we will
   879    879   ** know because CCurHint.pIdx!=0) then transform the TK_COLUMN into
   880    880   ** an access of the index rather than the original table.
   881    881   */
   882    882   static int codeCursorHintFixExpr(Walker *pWalker, Expr *pExpr){
   883    883     int rc = WRC_Continue;
   884    884     struct CCurHint *pHint = pWalker->u.pCCurHint;
   885         -  if( pExpr->op==TK_COLUMN && !ExprHasProperty(pExpr, EP_FixedCol) ){
          885  +  if( pExpr->op==TK_COLUMN ){
   886    886       if( pExpr->iTable!=pHint->iTabCur ){
   887    887         Vdbe *v = pWalker->pParse->pVdbe;
   888    888         int reg = ++pWalker->pParse->nMem;   /* Register for column value */
   889    889         sqlite3ExprCodeGetColumnOfTable(
   890    890             v, pExpr->pTab, pExpr->iTable, pExpr->iColumn, reg
   891    891         );
   892    892         pExpr->op = TK_REGISTER;