Skip to content

Instantly share code, notes, and snippets.

@yoku0825
Created July 5, 2013 07:46
Show Gist options
  • Save yoku0825/5932747 to your computer and use it in GitHub Desktop.
Save yoku0825/5932747 to your computer and use it in GitHub Desktop.
*** 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