/ Check-in [5d85d80e]
Login

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

Overview
Comment:Early detection of SQLITE_TOOBIG when processing nested queries.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5d85d80ef8b216639244c6f4e6a2c0050af3cf9c3998f372bae4a19c0430f2fd
User & Date: drh 2019-04-22 20:05:54
Context
2019-04-23
12:30
Improvement on the previous check-in. Parse.rc is less reliable than Parse.nErr for detecting SQLITE_TOOBIG errors. check-in: 8d478cfb user: drh tags: trunk
2019-04-22
20:05
Early detection of SQLITE_TOOBIG when processing nested queries. check-in: 5d85d80e user: drh tags: trunk
11:47
Fix an assert() that may be false for corrupt databases. check-in: b2ce5ed1 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/select.c.

  4793   4793     }
  4794   4794     while( pSel->pPrior ){ pSel = pSel->pPrior; }
  4795   4795     sqlite3ColumnsFromExprList(pParse, pSel->pEList,&pTab->nCol,&pTab->aCol);
  4796   4796     pTab->iPKey = -1;
  4797   4797     pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
  4798   4798     pTab->tabFlags |= TF_Ephemeral;
  4799   4799   
  4800         -  return SQLITE_OK;
         4800  +  return pParse->rc;
  4801   4801   }
  4802   4802   
  4803   4803   /*
  4804   4804   ** This routine is a Walker callback for "expanding" a SELECT statement.
  4805   4805   ** "Expanding" means to do the following:
  4806   4806   **
  4807   4807   **    (1)  Make sure VDBE cursor numbers have been assigned to every