aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index cce2a6681..ba25a5ad4 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
-** $Id: expr.c,v 1.235 2005/11/03 12:33:28 drh Exp $
+** $Id: expr.c,v 1.236 2005/11/05 15:07:56 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1188,12 +1188,12 @@ static int nameResolverStep(void *pArg, Expr *pExpr){
#endif
case TK_IN: {
if( pExpr->pSelect ){
+ int nRef = pNC->nRef;
#ifndef SQLITE_OMIT_CHECK
if( pNC->isCheck ){
sqlite3ErrorMsg(pParse,"subqueries prohibited in CHECK constraints");
}
#endif
- int nRef = pNC->nRef;
sqlite3SelectResolve(pParse, pExpr->pSelect, pNC);
assert( pNC->nRef>=nRef );
if( nRef!=pNC->nRef ){