1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Additional coverage testing in the new name resolver module. (CVS 5608)

FossilOrigin-Name: 0d61960afd35721d6d07acd75288c20d2cd6fda1
This commit is contained in:
drh
2008-08-25 12:14:08 +00:00
parent 4d9f9e64c9
commit f436620e3f
6 changed files with 198 additions and 18 deletions

View File

@ -14,7 +14,7 @@
** resolve all identifiers by associating them with a particular
** table and column.
**
** $Id: resolve.c,v 1.2 2008/08/22 17:34:45 drh Exp $
** $Id: resolve.c,v 1.3 2008/08/25 12:14:09 drh Exp $
*/
#include "sqliteInt.h"
#include <stdlib.h>
@ -93,7 +93,7 @@ static int lookupName(
Column *pCol;
pTab = pItem->pTab;
assert( pTab!=0 );
assert( pTab!=0 && pTab->zName!=0 );
iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
assert( pTab->nCol>0 );
if( zTab ){
@ -346,7 +346,6 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){
NameContext *pNC;
Parse *pParse;
if( pExpr==0 ) return WRC_Continue;
pNC = pWalker->u.pNC;
assert( pNC!=0 );
pParse = pNC->pParse;