summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
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 }
};