Browse Source

Backport of libsqlite fix in relation to AS keyword.

PHP-5.1
Ilia Alshanetsky 21 years ago
parent
commit
1564872062
  1. 1
      ext/pdo_sqlite/sqlite/src/auth.c

1
ext/pdo_sqlite/sqlite/src/auth.c

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

Loading…
Cancel
Save