From: Ilia Alshanetsky Date: Fri, 29 Jul 2005 19:48:52 +0000 (+0000) Subject: Backport of libsqlite fix in relation to AS keyword. X-Git-Tag: RELEASE_2_0_0~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=156487206287f58939b124e9d10068823e503a32;p=php Backport of libsqlite fix in relation to AS keyword. --- diff --git a/ext/pdo_sqlite/sqlite/src/auth.c b/ext/pdo_sqlite/sqlite/src/auth.c index d4b7a61bd3..693baa2c89 100644 --- a/ext/pdo_sqlite/sqlite/src/auth.c +++ b/ext/pdo_sqlite/sqlite/src/auth.c @@ -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 && iSrcnSrc; iSrc++){ if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break;