aboutsummaryrefslogtreecommitdiff
path: root/src/auth.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-09-18 15:55:07 +0000
committerdrh <drh@noemail.net>2007-09-18 15:55:07 +0000
commit728b577934d318253193d2638263ddc38767187c (patch)
tree9d5303ccee9d07d351f1feb533dd924ded5562b5 /src/auth.c
parentadfb9b0501e005d10aaec727fa56ed5beff0d7d0 (diff)
downloadsqlite-728b577934d318253193d2638263ddc38767187c.tar.gz
sqlite-728b577934d318253193d2638263ddc38767187c.zip
Remove unneeded pSchema field from the Expr structure. (CVS 4434)
FossilOrigin-Name: b2d605a2714245febb316a24edc7a076e21a3849
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/auth.c b/src/auth.c
index 9ae4fe97a..5630c239f 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -14,7 +14,7 @@
** systems that do not need this facility may omit it by recompiling
** the library with -DSQLITE_OMIT_AUTHORIZATION=1
**
-** $Id: auth.c,v 1.28 2007/09/01 18:24:55 danielk1977 Exp $
+** $Id: auth.c,v 1.29 2007/09/18 15:55:07 drh Exp $
*/
#include "sqliteInt.h"
@@ -105,6 +105,7 @@ static void sqliteAuthBadReturnCode(Parse *pParse, int rc){
void sqlite3AuthRead(
Parse *pParse, /* The parser context */
Expr *pExpr, /* The expression to check authorization on */
+ Schema *pSchema, /* The schema of the expression */
SrcList *pTabList /* All table that pExpr might refer to */
){
sqlite3 *db = pParse->db;
@@ -118,7 +119,7 @@ void sqlite3AuthRead(
if( db->xAuth==0 ) return;
if( pExpr->op!=TK_COLUMN ) return;
- iDb = sqlite3SchemaToIndex(pParse->db, pExpr->pSchema);
+ iDb = sqlite3SchemaToIndex(pParse->db, pSchema);
if( iDb<0 ){
/* An attempt to read a column out of a subquery or other
** temporary table. */