From 31cdb3dd7d7057c5677226cedfd8f73a94d825a8 Mon Sep 17 00:00:00 2001 From: "brian@zim.(none)" <> Date: Thu, 10 Nov 2005 15:40:00 -0800 Subject: [PATCH] Show engines has been extended to now report if an engine has transactions, XA, or savepoints. --- sql/sql_show.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 2548e77449b..0538550d238 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -56,6 +56,9 @@ bool mysqld_show_storage_engines(THD *thd) field_list.push_back(new Item_empty_string("Engine",10)); field_list.push_back(new Item_empty_string("Support",10)); field_list.push_back(new Item_empty_string("Comment",80)); + field_list.push_back(new Item_empty_string("Transactions",3)); + field_list.push_back(new Item_empty_string("XA",3)); + field_list.push_back(new Item_empty_string("Savepoints",3)); if (protocol->send_fields(&field_list, Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF)) @@ -76,6 +79,9 @@ bool mysqld_show_storage_engines(THD *thd) option_name= "DEFAULT"; protocol->store(option_name, system_charset_info); protocol->store((*types)->comment, system_charset_info); + protocol->store((*types)->commit ? "YES" : "NO", system_charset_info); + protocol->store((*types)->prepare ? "YES" : "NO", system_charset_info); + protocol->store((*types)->savepoint_set ? "YES" : "NO", system_charset_info); if (protocol->write()) DBUG_RETURN(TRUE); }