aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2003-01-12 18:02:16 +0000
committerdrh <drh@noemail.net>2003-01-12 18:02:16 +0000
commited6c8671b342e9b3793e2603e7f098ba4fc092a4 (patch)
tree1243d500342286b978543d20e5c88264cedfa2e5 /src/expr.c
parent49f0936ec79dcbdbd80134151658615726643fa1 (diff)
downloadsqlite-ed6c8671b342e9b3793e2603e7f098ba4fc092a4.tar.gz
sqlite-ed6c8671b342e9b3793e2603e7f098ba4fc092a4.zip
Initial check-in of the code for the new sqlite_set_authorizer() API function.
The code is mostly untested at this point. (CVS 827) FossilOrigin-Name: 52d5007f64d0af5286b2a0e1f0b9e53c86bece3f
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 21c2c0308..5fcfd8833 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.83 2002/10/31 00:09:40 drh Exp $
+** $Id: expr.c,v 1.84 2003/01/12 18:02:18 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -430,6 +430,7 @@ int sqliteExprResolveIds(
case TK_ID: {
int cnt = 0; /* Number of matches */
int i; /* Loop counter */
+ int rc; /* Return code */
char *z;
assert( pExpr->token.z );
z = sqliteStrNDup(pExpr->token.z, pExpr->token.n);
@@ -488,6 +489,9 @@ int sqliteExprResolveIds(
pParse->nErr++;
return 1;
}
+ if( pExpr->op==TK_COLUMN ){
+ sqliteAuthRead(pParse, pExpr, pTabList, base);
+ }
break;
}
@@ -595,6 +599,7 @@ int sqliteExprResolveIds(
sqliteExprDelete(pRight);
pExpr->pRight = 0;
pExpr->op = TK_COLUMN;
+ sqliteAuthRead(pParse, pExpr, pTabList, base);
break;
}