fix query cache in embedded, enable MARIADB_CLIENT_EXTENDED_METADATA

this fixes plugins.qc_info in --embed

followup for 430d60d1fc0 MDEV-24487
This commit is contained in:
Sergei Golubchik 2022-01-30 18:09:55 +01:00
parent 9667ec1f53
commit 66bc8bf09e

View File

@ -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;