summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/sql_parse.cc2
-rw-r--r--tests/mysql_client_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 0edb8a3f5a3..e3f183e3e42 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -6063,7 +6063,7 @@ static bool check_rename_table(THD *thd, TABLE_LIST *first_table,
0, 0))
return 1;
- /* check if these are refering to temporary tables */
+ /* check if these are referring to temporary tables */
table->table= find_temporary_table_for_rename(thd, first_table, table);
table->next_local->table= table->table;
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 350da29e67f..63d40c5db64 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -19451,8 +19451,8 @@ static void test_big_packet()
opt_password, current_db, opt_port,
opt_unix_socket, 0)))
{
- mysql_close(mysql_local);
fprintf(stderr, "\n connection failed(%s)", mysql_error(mysql_local));
+ mysql_close(mysql_local);
exit(1);
}