summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-01-04 10:30:45 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-01-04 10:30:45 +0200
commitdaf4fa5238a67fcf47075721d86d4348adab687b (patch)
treefff85b8f2e11607c93d806e787475ad82f5055f6 /sql/sql_prepare.cc
parent756568f26c6a23c537f4d93ff00f485c6291c92e (diff)
parent7dfaded9625e832fade4ef1678bcb21c445dad2b (diff)
downloadmariadb-git-st-10.8-merge.tar.gz
Merge 10.7 into 10.8st-10.8-merge
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index cc6f572ea64..68dd670787c 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2439,9 +2439,9 @@ static bool check_prepared_statement(Prepared_statement *stmt)
For the optimizer trace, this is the symmetric, for statement preparation,
of what is done at statement execution (in mysql_execute_command()).
*/
- Opt_trace_start ots(thd, tables, lex->sql_command, &lex->var_list,
- thd->query(), thd->query_length(),
- thd->variables.character_set_client);
+ Opt_trace_start ots(thd);
+ ots.init(thd, tables, lex->sql_command, &lex->var_list, thd->query(),
+ thd->query_length(), thd->variables.character_set_client);
Json_writer_object trace_command(thd);
Json_writer_array trace_command_steps(thd, "steps");