]> granicus.if.org Git - php/commitdiff
Backport of libsqlite fix in relation to AS keyword.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 29 Jul 2005 19:48:52 +0000 (19:48 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 29 Jul 2005 19:48:52 +0000 (19:48 +0000)
ext/pdo_sqlite/sqlite/src/auth.c

index d4b7a61bd38d035348731a135e094264a235dcec..693baa2c895be5b98ad30c462a371b48e58ad0e3 100644 (file)
@@ -114,6 +114,7 @@ void sqlite3AuthRead(
   TriggerStack *pStack; /* The stack of current triggers */
 
   if( db->xAuth==0 ) return;
+  if( pExpr->op==TK_AS ) return;
   assert( pExpr->op==TK_COLUMN );
   for(iSrc=0; pTabList && iSrc<pTabList->nSrc; iSrc++){
     if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break;