Skip to content

Commit 9f1a141

Browse files
authored
Update mysql_zbx_part.pl
1 parent 724a694 commit 9f1a141

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

mysql_zbx_part.pl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)