summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2020-07-08 18:31:00 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2020-07-14 11:16:24 +0200
commitb0d2a59d9ab6e68461ba01becd791e1ab6e8ae27 (patch)
tree1b160b9669d7e410c5401f92ebc8a993530b0226 /tests/mysql_client_test.c
parent1a2b494100e5a81c8ac568899d66884b9936cf98 (diff)
downloadmariadb-git-b0d2a59d9ab6e68461ba01becd791e1ab6e8ae27.tar.gz
MDEV-21612 - remove COM_MULTI from server and C/C
The COM_MULTI did not take off. No connector is using it. Remove related code from server, and client. If anything it is a step simplification of already-bloated dispatch_command(), and related code.
Diffstat (limited to 'tests/mysql_client_test.c')
-rw-r--r--tests/mysql_client_test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 6a6f626ae8c..e656b85ab65 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -20986,6 +20986,16 @@ static void test_mdev20261()
}
+static void test_execute_direct()
+{
+#ifndef EMBEDDED_LIBRARY
+ MYSQL_STMT* stmt= mysql_stmt_init(mysql);
+ int rc= mariadb_stmt_execute_direct(stmt,"do 1",-1);
+ myquery(rc);
+ mysql_stmt_close(stmt);
+#endif
+}
+
static struct my_tests_st my_tests[]= {
{ "disable_query_logs", disable_query_logs },
{ "test_view_sp_list_fields", test_view_sp_list_fields },
@@ -21281,6 +21291,7 @@ static struct my_tests_st my_tests[]= {
{ "test_explain_meta", test_explain_meta },
{ "test_mdev18408", test_mdev18408 },
{ "test_mdev20261", test_mdev20261 },
+ { "test_execute_direct", test_execute_direct },
{ 0, 0 }
};