diff options
author | drh <drh@noemail.net> | 2005-11-05 15:07:55 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-11-05 15:07:55 +0000 |
commit | 8a9f38feb2f2f9d9cec7d9da74da559aa2731863 (patch) | |
tree | 49c1e4ad8a45a50c7ceb8b9beedd5a93982ca29c /src | |
parent | ada354db0e1ceb8cfd47656de011d66c0f7b2dc5 (diff) | |
download | sqlite-8a9f38feb2f2f9d9cec7d9da74da559aa2731863.tar.gz sqlite-8a9f38feb2f2f9d9cec7d9da74da559aa2731863.zip |
Remove a C++-ism that slipped into the code during the recent CHECK
enhancements. Ticket #1513. (CVS 2762)
FossilOrigin-Name: e66289b52f56c8242aa264a9365c834cd820e988
Diffstat (limited to 'src')
-rw-r--r-- | src/expr.c | 4 |
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 ){ |