mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Remove wrong access check for locks.
Fixed problem with fuzzy dates. mysql-test/r/func_time.result: Added test of fuzzy dates mysql-test/t/func_time.test: Added test of fuzzy dates sql/item.cc: Fixed bug with fuzzy dates sql/sql_parse.cc: Remove wrong access check for locks. (This has to be delayed for 4.0 because there is currently now way to check for "any of the following privileges" Docs/manual.texi: Changelog
This commit is contained in:
@ -1851,15 +1851,6 @@ mysql_execute_command(void)
|
||||
}
|
||||
if (check_db_used(thd,tables) || end_active_trans(thd))
|
||||
goto error;
|
||||
for (TABLE_LIST *tmp = tables; tmp; tmp = tmp->next)
|
||||
{
|
||||
if (!(tmp->lock_type == TL_READ_NO_INSERT ?
|
||||
!check_table_access(thd, SELECT_ACL, tmp) :
|
||||
(!check_table_access(thd, INSERT_ACL, tmp) ||
|
||||
!check_table_access(thd, UPDATE_ACL, tmp) ||
|
||||
!check_table_access(thd, DELETE_ACL, tmp))))
|
||||
goto error;
|
||||
}
|
||||
thd->in_lock_tables=1;
|
||||
if (!(res=open_and_lock_tables(thd,tables)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user