1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fix for building shared libraries with a patched glibc

Don't require UPDATE_ACL for REPLACE


Docs/manual.texi:
  Changelog
configure.in:
  Fix for building shared libraries with a patched glibc
sql/sql_parse.cc:
  Don't require UPDATE_ACL for REPLACE
This commit is contained in:
unknown
2002-10-02 12:37:32 +03:00
parent 4647a8b975
commit 9ffa49c95d
3 changed files with 12 additions and 13 deletions

View File

@@ -1878,10 +1878,10 @@ mysql_execute_command(void)
lex->lock_option);
break;
case SQLCOM_REPLACE:
if (check_access(thd,INSERT_ACL | UPDATE_ACL | DELETE_ACL,
if (check_access(thd,INSERT_ACL | DELETE_ACL,
tables->db,&tables->grant.privilege))
goto error; /* purecov: inspected */
if (grant_option && check_grant(thd,INSERT_ACL | UPDATE_ACL | DELETE_ACL,
if (grant_option && check_grant(thd,INSERT_ACL | DELETE_ACL,
tables))
goto error;
@@ -1899,7 +1899,7 @@ mysql_execute_command(void)
*/
{
ulong privilege= (lex->sql_command == SQLCOM_INSERT_SELECT ?
INSERT_ACL : INSERT_ACL | UPDATE_ACL | DELETE_ACL);
INSERT_ACL : INSERT_ACL | DELETE_ACL);
TABLE_LIST *save_next=tables->next;
tables->next=0;
if (check_access(thd, privilege,