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 {
81
81
# End of Mysql 5.5
82
82
83
83
# 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'} );
94
85
95
- # MySQL 8.x (NOT MariaDB!)
96
- my $sth = $dbh -> prepare(qq{ select version();} );
97
86
$sth -> execute();
87
+
98
88
my $row = $sth -> fetchrow_array();
99
-
89
+
100
90
$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;
102
102
#
103
103
# End of MySQL 8.x
104
104
You can’t perform that action at this time.
0 commit comments