diff options
author | drh <drh@noemail.net> | 2007-05-14 11:34:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-05-14 11:34:46 +0000 |
commit | 4f07e5fbdf0fb0cde532ea39602bd1ba32d0c8ae (patch) | |
tree | 766db8d9ee1e4d0a9ebb8857102c28cbe85a9836 /src/auth.c | |
parent | 84f31128b2d09479663df3597f83251cba59ab39 (diff) | |
download | sqlite-4f07e5fbdf0fb0cde532ea39602bd1ba32d0c8ae.tar.gz sqlite-4f07e5fbdf0fb0cde532ea39602bd1ba32d0c8ae.zip |
Remove terms with operator TK_AS from the expression tree. Ticket #2356. (CVS 3991)
FossilOrigin-Name: 5627ff74be9242418434a06fe5c104d1f9128cab
Diffstat (limited to 'src/auth.c')
-rw-r--r-- | src/auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/auth.c b/src/auth.c index fe05a68af..79940c273 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.25 2006/06/16 08:01:03 danielk1977 Exp $ +** $Id: auth.c,v 1.26 2007/05/14 11:34:47 drh Exp $ */ #include "sqliteInt.h" @@ -115,8 +115,7 @@ void sqlite3AuthRead( int iDb; /* The index of the database the expression refers to */ if( db->xAuth==0 ) return; - if( pExpr->op==TK_AS ) return; - assert( pExpr->op==TK_COLUMN ); + if( pExpr->op!=TK_COLUMN ) return; iDb = sqlite3SchemaToIndex(pParse->db, pExpr->pSchema); if( iDb<0 ){ /* An attempt to read a column out of a subquery or other |