summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-11-02 12:55:46 +0100
committerSergei Golubchik <sergii@pisem.net>2011-11-02 12:55:46 +0100
commit90b43902b0e67bcd4c6a5f08d7d76c93df74d4c8 (patch)
treeabea3216f5299f3cb53c92e6a79e37daa883b78a /sql/sql_db.cc
parent7714adaef85cb7d83b1624db2198aec40ddefa24 (diff)
downloadmariadb-git-90b43902b0e67bcd4c6a5f08d7d76c93df74d4c8.tar.gz
compilation warnings on Windows
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 96ca4c10390..6b5f4a335d5 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -1656,7 +1656,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.