summaryrefslogtreecommitdiff
path: root/client/mysqltest.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-04-06 10:06:39 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-04-06 10:06:39 +0300
commitcacb61b6be78b01a9c62890cc81d059ee46921ac (patch)
tree7065a7417d5569d5a5f61104daf09f6a98e842bc /client/mysqltest.cc
parentaed87f1e0aa20e9e3f525ff303ee766ca6b106b7 (diff)
parentf089f8d95e569291bdf4329124c34674f02e40fe (diff)
downloadmariadb-git-cacb61b6be78b01a9c62890cc81d059ee46921ac.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'client/mysqltest.cc')
-rw-r--r--client/mysqltest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index e855e1af807..beaa2846996 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -8587,7 +8587,10 @@ void run_prepare_stmt(struct st_connection *cn, struct st_command *command, cons
separate string
*/
if (!disable_warnings)
+ {
append_warnings(&ds_prepare_warnings, mysql);
+ dynstr_free(&ds_prepare_warnings);
+ }
end:
DBUG_VOID_RETURN;
}
@@ -8666,7 +8669,7 @@ void run_bind_stmt(struct st_connection *cn, struct st_command *command,
else
{
ps_params[i].buffer_type= MYSQL_TYPE_STRING;
- ps_params[i].buffer= strdup(p);
+ ps_params[i].buffer= my_strdup(PSI_NOT_INSTRUMENTED, p, MYF(MY_WME));
ps_params[i].buffer_length= (unsigned long)strlen(p);
}
}