summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.fi>2001-05-23 02:40:24 +0300
committerunknown <monty@donna.mysql.fi>2001-05-23 02:40:24 +0300
commit41dd2aa2b5a2f8b7a5d760bff26e8ceb2ce10fff (patch)
tree089c3177d314fd343965d105d3f57b5fe995b5a4 /sql/sql_parse.cc
parent82a404d9fb1e3d181033473183be2e48d9ee406a (diff)
downloadmariadb-git-41dd2aa2b5a2f8b7a5d760bff26e8ceb2ce10fff.tar.gz
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
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index e420918e06d..7a94dc32997 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -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)))
{