diff options
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c index 47aa8bc57..db69b611f 100644 --- a/src/build.c +++ b/src/build.c @@ -3067,9 +3067,10 @@ static SQLITE_NOINLINE int viewGetColumnNames(Parse *pParse, Table *pTable){ #ifndef SQLITE_OMIT_VIEW /* A positive nCol means the columns names for this view are - ** already known. + ** already known. This routine is not called unless either the + ** table is virtual or nCol is zero. */ - if( pTable->nCol>0 ) return 0; + assert( pTable->nCol<=0 ); /* A negative nCol is a special marker meaning that we are currently ** trying to compute the column names. If we enter this routine with |