Fix for bug 1176

This commit is contained in:
unknown 2003-09-04 17:12:20 +05:00
commit 6f607d3aa6
3 changed files with 22 additions and 1 deletions

View file

@ -96,7 +96,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
else
res= check_access(thd, SELECT_ACL, any_db);
if (res)
DBUG_RETURN(-1);
DBUG_RETURN(1);
if (!(res=open_and_lock_tables(thd,tables)))
{