/ Check-in [a7b572ca]
Login

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

Overview
Comment:Restore an assert() that was present on trunk.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tkt-b41031ea
Files: files | file ages | folders
SHA3-256:a7b572ca7867a95f49888dc95c0dc6d726afa9fea26283be147ba422639d1307
User & Date: drh 2018-09-17 13:55:18
Context
2018-09-17
14:13
Fix a false-positive in the post-ALTER-TABLE schema verification logic that prevents ALTER TABLE from working if the table being altered has a trigger that references any column of a virtual table. Ticket [b41031ea2b537237]. check-in: 84105ea4 user: drh tags: trunk
13:55
Restore an assert() that was present on trunk. Closed-Leaf check-in: a7b572ca user: drh tags: tkt-b41031ea
13:38
Minor modification to the fix on this branch to avoid adding extra conditional compilation macros. check-in: 4d8be404 user: dan tags: tkt-b41031ea
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/resolve.c.

   236    236       ExprList *pEList;
   237    237       SrcList *pSrcList = pNC->pSrcList;
   238    238   
   239    239       if( pSrcList ){
   240    240         for(i=0, pItem=pSrcList->a; i<pSrcList->nSrc; i++, pItem++){
   241    241           pTab = pItem->pTab;
   242    242           assert( pTab!=0 && pTab->zName!=0 );
          243  +        assert( pTab->nCol>0 );
   243    244           if( pItem->pSelect && (pItem->pSelect->selFlags & SF_NestedFrom)!=0 ){
   244    245             int hit = 0;
   245    246             pEList = pItem->pSelect->pEList;
   246    247             for(j=0; j<pEList->nExpr; j++){
   247    248               if( sqlite3MatchSpanName(pEList->a[j].zSpan, zCol, zTab, zDb) ){
   248    249                 cnt++;
   249    250                 cntTab = 2;