From 22ede741f0a4edfcbbae78fd5a23c24056fc7dcb Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Wed, 1 Jun 2016 20:21:36 +0200 Subject: [PATCH] fix compile error - inconsistent use of 'struct' and 'class' for TDC_element --- mysql-test/mysql-test-run.pl | 14 ++++++++++---- sql/table.h | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 7e5292c1a8e..e1d50d6e0a8 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1854,11 +1854,17 @@ sub collect_mysqld_features { $list =~ s/\n {22}(\S)/ $1/g; my @list= split '\n', $list; + + $mysql_version_id= 0; + while (defined(my $line = shift @list)){ + if ($line =~ /^\Q$exe_mysqld\E\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/ ) { + $mysql_version_id= $1*10000 + $2*100 + $3; + mtr_report("MariaDB Version $1.$2.$3$4"); + last; + } + } mtr_error("Could not find version of MariaDB") - unless shift(@list) =~ /^\Q$exe_mysqld\E\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/; - $mysql_version_id= $1*10000 + $2*100 + $3; - $mysql_version_extra= $4; - mtr_report("MariaDB Version $1.$2.$3$4"); + unless $mysql_version_id > 0; for (@list) { diff --git a/sql/table.h b/sql/table.h index a105df31e93..ef1fd3dccc1 100644 --- a/sql/table.h +++ b/sql/table.h @@ -49,7 +49,7 @@ class ACL_internal_table_access; class Field; class Table_statistics; class With_element; -class TDC_element; +struct TDC_element; /* Used to identify NESTED_JOIN structures within a join (applicable only to @@ -1013,7 +1013,7 @@ private: One should use methods of I_P_List template instead. */ TABLE *share_all_next, **share_all_prev; - friend class TDC_element; + friend struct TDC_element; public: