summaryrefslogtreecommitdiff
path: root/sql/sql_rename.cc
diff options
context:
space:
mode:
authorunknown <evgen@sunlight.local>2006-10-18 00:14:14 +0400
committerunknown <evgen@sunlight.local>2006-10-18 00:14:14 +0400
commit3dccef3c30c66f4027da97a74b1d5ce4ff34ca62 (patch)
treeccc945b456793520a8a27b23441ea00ab3d2356e /sql/sql_rename.cc
parent67770b7671652ee4fe89c82ffbe77a3a1c08ed78 (diff)
downloadmariadb-git-3dccef3c30c66f4027da97a74b1d5ce4ff34ca62.tar.gz
sql_rename.cc:
Cleanup of fix for bug#14959. sql/sql_rename.cc: Cleanup of fix for bug#14959.
Diffstat (limited to 'sql/sql_rename.cc')
-rw-r--r--sql/sql_rename.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_rename.cc b/sql/sql_rename.cc
index 1a4f1d82cb5..c87a8696bbc 100644
--- a/sql/sql_rename.cc
+++ b/sql/sql_rename.cc
@@ -173,7 +173,7 @@ do_rename(THD *thd, TABLE_LIST *ren_table, char *new_db, char *new_table_name,
if (!access(name,F_OK))
{
my_error(ER_TABLE_EXISTS_ERROR, MYF(0), new_alias);
- DBUG_RETURN(ren_table); // This can't be skipped
+ DBUG_RETURN(1); // This can't be skipped
}
sprintf(name,"%s/%s/%s%s",mysql_data_home,
ren_table->db, old_alias,