1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

Prohibit parameters in CHECK constraint expressions. (CVS 2758)

FossilOrigin-Name: bb94ef64b227839a0ef4156985e2f5a061a78e2c
This commit is contained in:
drh
2005-11-03 12:33:28 +00:00
parent 0cd2d4c9a1
commit 4284fb0778
4 changed files with 34 additions and 10 deletions

View File

@@ -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.234 2005/11/03 02:03:13 drh Exp $
** $Id: expr.c,v 1.235 2005/11/03 12:33:28 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1200,7 +1200,16 @@ static int nameResolverStep(void *pArg, Expr *pExpr){
ExprSetProperty(pExpr, EP_VarSelect);
}
}
break;
}
#ifndef SQLITE_OMIT_CHECK
case TK_VARIABLE: {
if( pNC->isCheck ){
sqlite3ErrorMsg(pParse,"parameters prohibited in CHECK constraints");
}
break;
}
#endif
}
return 0;
}