Commit 22ede741 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix compile error - inconsistent use of 'struct' and 'class' for TDC_element

parent 23fed784
...@@ -1854,11 +1854,17 @@ sub collect_mysqld_features { ...@@ -1854,11 +1854,17 @@ sub collect_mysqld_features {
$list =~ s/\n {22}(\S)/ $1/g; $list =~ s/\n {22}(\S)/ $1/g;
my @list= split '\n', $list; 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") mtr_error("Could not find version of MariaDB")
unless shift(@list) =~ /^\Q$exe_mysqld\E\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/; unless $mysql_version_id > 0;
$mysql_version_id= $1*10000 + $2*100 + $3;
$mysql_version_extra= $4;
mtr_report("MariaDB Version $1.$2.$3$4");
for (@list) for (@list)
{ {
......
...@@ -49,7 +49,7 @@ class ACL_internal_table_access; ...@@ -49,7 +49,7 @@ class ACL_internal_table_access;
class Field; class Field;
class Table_statistics; class Table_statistics;
class With_element; class With_element;
class TDC_element; struct TDC_element;
/* /*
Used to identify NESTED_JOIN structures within a join (applicable only to Used to identify NESTED_JOIN structures within a join (applicable only to
...@@ -1013,7 +1013,7 @@ struct TABLE ...@@ -1013,7 +1013,7 @@ struct TABLE
One should use methods of I_P_List template instead. One should use methods of I_P_List template instead.
*/ */
TABLE *share_all_next, **share_all_prev; TABLE *share_all_next, **share_all_prev;
friend class TDC_element; friend struct TDC_element;
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment