From 66bc8bf09e7cb8f00ac5d963bd988eff74d5af59 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 30 Jan 2022 18:09:55 +0100 Subject: [PATCH] fix query cache in embedded, enable MARIADB_CLIENT_EXTENDED_METADATA this fixes plugins.qc_info in --embed followup for 430d60d1fc0 MDEV-24487 --- libmysqld/lib_sql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index d92265508b4..af05535c14f 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -696,7 +696,7 @@ void *create_embedded_thd(ulong client_flag) thd->set_command(COM_SLEEP); thd->set_time(); thd->init_for_queries(); - thd->client_capabilities= client_flag; + thd->client_capabilities= client_flag | MARIADB_CLIENT_EXTENDED_METADATA; thd->real_id= pthread_self(); thd->db= null_clex_str;