diff --git a/sql/protocol_classic.cc b/sql/protocol_classic.cc index 4f6948f2a43..6b8fb75f77f 100644 --- a/sql/protocol_classic.cc +++ b/sql/protocol_classic.cc @@ -3084,6 +3084,7 @@ bool Protocol_classic::start_result_metadata(uint num_cols_arg, uint flags, send_metadata = true; field_count = num_cols; sending_flags = flags; + bool res = false; DBUG_EXECUTE_IF("send_large_column_count_in_metadata", num_cols = 50397184;); /* @@ -3099,7 +3100,8 @@ bool Protocol_classic::start_result_metadata(uint num_cols_arg, uint flags, pos++; } - my_net_write(&m_thd->net, (uchar *)&tmp, (size_t)(pos - (uchar *)&tmp)); + res = + my_net_write(&m_thd->net, (uchar *)&tmp, (size_t)(pos - (uchar *)&tmp)); } DBUG_EXECUTE_IF("send_large_column_count_in_metadata", num_cols = num_cols_arg;); @@ -3117,7 +3119,7 @@ bool Protocol_classic::start_result_metadata(uint num_cols_arg, uint flags, count = 0; #endif - return false; + return res; } bool Protocol_classic::end_result_metadata() {