aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2002-04-12 03:55:15 +0000
committerdrh <drh@noemail.net>2002-04-12 03:55:15 +0000
commitb04a5d8768573f2bd257ee1ef7caa7bb550bac40 (patch)
tree6e48cc33ad79a4b1d1335c57889d49ca47c9fae7 /src
parentfeeb1394eea276e9b3da6c75952f6d1bc6ae2e11 (diff)
downloadsqlite-b04a5d8768573f2bd257ee1ef7caa7bb550bac40.tar.gz
sqlite-b04a5d8768573f2bd257ee1ef7caa7bb550bac40.zip
Fix for bug #16: Check for invalid functions in the VALUES clause of an
INSERT statement. (CVS 525) FossilOrigin-Name: 43a77f019d34e1a6b3f502ad0ec31a00c8fdbe6e
Diffstat (limited to 'src')
-rw-r--r--src/insert.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index 55e2a212a..94867c55b 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle INSERT statements in SQLite.
**
-** $Id: insert.c,v 1.50 2002/04/09 03:28:01 drh Exp $
+** $Id: insert.c,v 1.51 2002/04/12 03:55:16 drh Exp $
*/
#include "sqliteInt.h"
@@ -100,6 +100,9 @@ void sqliteInsert(
if( sqliteExprResolveIds(pParse, 0, &dummy, 0, pList->a[i].pExpr) ){
goto insert_cleanup;
}
+ if( sqliteExprCheck(pParse, pList->a[i].pExpr, 0, 0) ){
+ goto insert_cleanup;
+ }
}
}