Created
July 5, 2013 07:46
-
-
Save yoku0825/5932747 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** sql/sql_db.cc.org 2013-05-13 22:33:33.000000000 +0900 | |
--- sql/sql_db.cc 2013-07-05 16:32:49.777762885 +0900 | |
*************** | |
*** 893,898 **** | |
--- 893,901 ---- | |
bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent) | |
{ | |
+ if (check_global_access(thd, SUPER_ACL)) | |
+ DBUG_RETURN(0); | |
+ | |
long deleted=0; | |
int error= 0; | |
char path[2 * FN_REFLEN + 16]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment