diff options
author | unknown <monty@hundin.mysql.fi> | 2002-10-02 12:37:32 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-10-02 12:37:32 +0300 |
commit | 9ffa49c95df291f5da665a0dc9b731348b4c6436 (patch) | |
tree | b3e65ea5bd88b5760bda402c1dedac9efb23c144 /sql/sql_parse.cc | |
parent | 4647a8b975b4d6c52aec74ba0204ad791ea1cb1e (diff) | |
download | mariadb-git-9ffa49c95df291f5da665a0dc9b731348b4c6436.tar.gz |
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
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 9e834e3cab9..d6e40889eed 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -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, |