summaryrefslogtreecommitdiff
path: root/client/mysqltest.c
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-01-04 15:37:20 +0200
committerunknown <monty@mashka.mysql.fi>2003-01-04 15:37:20 +0200
commite229fe9801cc9fb7e3783cf708bc7cb695606c64 (patch)
treeaa5cff7e153050d86b7effd693496f071d21e24a /client/mysqltest.c
parenteebc67f6f8df9e0bdcde7770e383992ff6cad451 (diff)
downloadmariadb-git-e229fe9801cc9fb7e3783cf708bc7cb695606c64.tar.gz
Added support for DROP TEMPORARY TABLE
Removed mysql_warnings() API function. Post merge fixes. client/mysqltest.c: Don't use mysql_warnings(). include/mysql.h: Removed mysql_warnings() API function libmysql/libmysql.c: Removed mysql_warnings() API function mysql-test/r/rpl_log_pos.result: Updated results mysql-test/t/connect.test: Removed empty lines mysql-test/t/rpl_log_pos.test: Update to new syntax sql/item.h: Fix after merge sql/item_create.cc: Fix after merge sql/mysql_priv.h: Added support for DROP TEMPORARY TABLE sql/sql_db.cc: Added support for DROP TEMPORARY TABLE sql/sql_parse.cc: SHOW WARNINGS now shows notes, warnings and errors. Support for DROP TEMPORARY TABLE Post merge fixes sql/sql_repl.cc: Post merge fixes sql/sql_table.cc: Added support for DROP TEMPORARY TABLE
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r--client/mysqltest.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 9d724404edc..6a637c0533c 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -2207,10 +2207,15 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
/* Add all warnings to the result */
if (!disable_result_log && mysql_warning_count(mysql))
{
- MYSQL_RES *warn_res= mysql_warnings(mysql);
+ MYSQL_RES *warn_res=0;
+ uint count= mysql_warning_count(mysql);
+ if (!mysql_real_query(mysql, "SHOW WARNINGS", 13))
+ {
+ warn_res=mysql_store_result(mysql);
+ }
if (!warn_res)
- verbose_msg("Warning count is %d but didn't get any warnings\n",
- mysql_warning_count(mysql));
+ verbose_msg("Warning count is %u but didn't get any warnings\n",
+ count);
else
{
dynstr_append_mem(ds, "Warnings:\n", 10);