[Commits] 814bfaa: test suite

Oleksandr Byelkin sanja at mariadb.com
Wed Mar 8 15:26:20 EET 2017


revision-id: 814bfaa0019d9b4e9c9f456fc39d5dcd2a3612a0 (mariadb-10.2.4-29-g814bfaa)
parent(s): 84b5e256ace1f09d9f8deeb3bcaea32d87da8d8d
committer: Oleksandr Byelkin
timestamp: 2017-03-08 14:26:19 +0100
message:

test suite

---
 tests/mysql_client_test.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 58e3dda..da486df 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -19460,6 +19460,25 @@ static void test_big_packet()
 }
 
 
+/* Test simple prepares of all DML statements */
+
+static void test_prepare_analyze()
+{
+  MYSQL_STMT *stmt;
+  int rc;
+  myheader("test_prepare_analyze");
+
+  stmt= mysql_stmt_init(mysql);
+  check_stmt(stmt);
+  rc= mysql_stmt_prepare(stmt, "ANALYZE SELECT 1", -1);
+  check_execute(stmt, rc);
+  verify_param_count(stmt, 0);
+  rc= mysql_stmt_execute(stmt);
+  check_execute(stmt, rc);
+
+  mysql_stmt_close(stmt);
+}
+
 static struct my_tests_st my_tests[]= {
   { "disable_query_logs", disable_query_logs },
   { "test_view_sp_list_fields", test_view_sp_list_fields },
@@ -19733,6 +19752,7 @@ static struct my_tests_st my_tests[]= {
   { "test_ps_sp_out_params", test_ps_sp_out_params },
   { "test_compressed_protocol", test_compressed_protocol },
   { "test_big_packet", test_big_packet },
+  { "test_prepare_analyze", test_prepare_analyze },
   { 0, 0 }
 };
 


More information about the commits mailing list