mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Add NEVER/ALWAYS to branches that have become unreachable due to recent
enhancements. FossilOrigin-Name: b4281db4e4762773684d27b809ef911da08b81cb953b3666e535b990d4d5f701
This commit is contained in:
@@ -1901,7 +1901,7 @@ static const char *columnTypeImpl(
|
||||
Table *pTab = 0; /* Table structure column is extracted from */
|
||||
Select *pS = 0; /* Select the column is extracted from */
|
||||
int iCol = pExpr->iColumn; /* Index of column in pTab */
|
||||
while( pNC && !pTab ){
|
||||
while( ALWAYS(pNC) && !pTab ){
|
||||
SrcList *pTabList = pNC->pSrcList;
|
||||
for(j=0;j<pTabList->nSrc && pTabList->a[j].iCursor!=pExpr->iTable;j++);
|
||||
if( j<pTabList->nSrc ){
|
||||
@@ -1912,7 +1912,7 @@ static const char *columnTypeImpl(
|
||||
}
|
||||
}
|
||||
|
||||
if( pTab==0 ){
|
||||
if( NEVER(pTab==0) ){
|
||||
/* At one time, code such as "SELECT new.x" within a trigger would
|
||||
** cause this condition to run. Since then, we have restructured how
|
||||
** trigger code is generated and so this condition is no longer
|
||||
|
||||
Reference in New Issue
Block a user