summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-09-14 19:50:56 +0300
committerunknown <monty@hundin.mysql.fi>2001-09-14 19:50:56 +0300
commitaf19fa462856d517d3a35737389f432fe071a4f6 (patch)
treece2c2bb8f39cfadb29246ea7e2859e120d65f0ec /sql/sql_repl.cc
parentcca506652121877c21e973baae7c815a8f005e34 (diff)
downloadmariadb-git-af19fa462856d517d3a35737389f432fe071a4f6.tar.gz
Fixed bug in UNION
Fixed replication bug in load_master_data BitKeeper/deleted/.del-global.h~e80d28157acfdcb5: Delete: include/global.h Docs/manual.texi: Cleaned up "Things to do in 4.0" mysql-test/r/union.result: New test mysql-test/t/union.test: New test mysys/my_lib.c: Cleanup sql/mysql_priv.h: Fixed replication bug load_master_data sql/sql_base.cc: Fixed bug in UNION sql/sql_db.cc: Fixed replication bug load_master_data sql/sql_parse.cc: Fixed replication bug load_master_data sql/sql_repl.cc: Fixed replication bug load_master_data sql/sql_union.cc: Fixed bug in UNION tools/mysqlmanager.c: Portability fix
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index ff1cb125ef8..1bd84c11c56 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -1531,11 +1531,10 @@ int load_master_data(THD* thd)
continue;
}
- if ((drop_error = mysql_rm_db(0, db, 1)) ||
- mysql_create_db(0, db, 0))
+ if (mysql_rm_db(thd, db, 1,1) ||
+ mysql_create_db(thd, db, 0, 1))
{
- error = (drop_error) ? ER_DB_DROP_DELETE : ER_CANT_CREATE_DB;
- net_printf(&thd->net, error, db, my_error);
+ send_error(&thd->net, 0, 0);
cleanup_mysql_results(db_res, cur_table_res - 1, table_res);
goto err;
}