Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
None
Description
Test File: show_relay_log_ps.test
SHOW RELAYLOG EVENTS;
./mtr --ps-protocol show_relay_log_ps.test
MariaDB Version 10.2.35-MariaDB-debug
|
- SSL connections supported
|
- binaries are debug compiled
|
- binaries built with wsrep patch
|
Collecting tests...
|
Installing system database...
|
|
==============================================================================
|
|
TEST RESULT TIME (ms) or COMMENT
|
--------------------------------------------------------------------------
|
|
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
|
SHOW RELAYLOG EVENTS;
|
main.show_relay_log_ps [ fail ]
|
Test ended at 2020-11-13 19:32:28
|
|
CURRENT_TEST: main.show_relay_log_ps
|
mysqltest: At line 1: query 'SHOW RELAYLOG EVENTS' failed: 1295: This command is not supported in the prepared statement protocol yet
|
Perhaps it needs just
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2369,6 +2369,14 @@ static bool check_prepared_statement(Prepared_statement >
DBUG_RETURN(FALSE);
}
break;
+ case SQLCOM_SHOW_BINLOG_EVENTS:
+ case SQLCOM_SHOW_RELAYLOG_EVENTS:
+ {
+ List<Item> field_list;
+ Log_event::init_show_field_list(thd, &field_list);
+ if ((res= send_stmt_metadata(thd, stmt, &field_list)) == 2)
+ DBUG_RETURN(FALSE);
+ }
#endif /* EMBEDDED_LIBRARY */
case SQLCOM_SHOW_CREATE_PROC: