File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -81,24 +81,24 @@ sub check_have_partition {
8181# End of Mysql 5.5
8282
8383# MySQL 5.6 + MariaDB
84- # my $sth = $dbh->prepare(qq{SELECT plugin_status FROM information_schema.plugins WHERE plugin_name = 'partition'});
85- #
86- # $sth->execute();
87- #
88- # my $row = $sth->fetchrow_array();
89- #
90- # $sth->finish();
91- # return 1 if $row eq 'ACTIVE';
92- #
93- # End of MySQL 5.6 + MariaDB
84+ my $sth = $dbh -> prepare(qq{ SELECT plugin_status FROM information_schema.plugins WHERE plugin_name = 'partition'} );
9485
95- # MySQL 8.x (NOT MariaDB!)
96- my $sth = $dbh -> prepare(qq{ select version();} );
9786 $sth -> execute();
87+
9888 my $row = $sth -> fetchrow_array();
99-
89+
10090 $sth -> finish();
101- return 1 if $row >= 8;
91+ return 1 if $row eq ' ACTIVE' ;
92+
93+ # End of MySQL 5.6 + MariaDB
94+
95+ # MySQL 8.x (NOT MariaDB!)
96+ # my $sth = $dbh->prepare(qq{select version();});
97+ # $sth->execute();
98+ # my $row = $sth->fetchrow_array();
99+
100+ # $sth->finish();
101+ # return 1 if $row >= 8;
102102#
103103# End of MySQL 8.x
104104
You can’t perform that action at this time.
0 commit comments