diff options
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 1cd615394fb..8013d2bd6e2 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -1660,7 +1660,7 @@ bool mysql_upgrade_db(THD *thd, LEX_STRING *old_db) /* Lock the old name, the new name will be locked by mysql_create_db().*/ if (lock_schema_name(thd, old_db->str)) - DBUG_RETURN(-1); + DBUG_RETURN(1); /* Let's remember if we should do "USE newdb" afterwards. |