File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,9 +36,8 @@ sub set_version {
3636
3737 $self -> {is_mariadb } = 0;
3838 $self -> {version } = $self -> {instance }-> get_info(18); # SQL_DBMS_VER
39- # MariaDB: 5.5.5-10.1.36-MariaDB or 10.1.36-MariaDB
40- if ($self -> {version } =~ / ([0-9\. ]*?)-MariaDB/i ) {
41- $self -> {version } = $1 ;
39+ # MariaDB: 5.5.5-10.1.36-MariaDB, 10.1.36-MariaDB or 11.4.4-2-MariaDB-enterprise-log
40+ if ($self -> {version } =~ / (?:\d\.\d\.\d -)?(\d +\.\d +\.\d +).*MariaDB/i ) {
4241 $self -> {is_mariadb } = 1;
4342 }
4443}
Original file line number Diff line number Diff line change @@ -209,8 +209,8 @@ sub set_version {
209209
210210 $self -> {is_mariadb } = 0;
211211 $self -> {version } = $options {version };
212- # MariaDB: 5.5.5-10.1.36-MariaDB or 10.1.36-MariaDB
213- if ($self -> {version } =~ / ([0-9 \. ]*?)- MariaDB/i ) {
212+ # MariaDB: 5.5.5-10.1.36-MariaDB, 10.1.36-MariaDB or 11.4.4-2-MariaDB-enterprise-log
213+ if ($self -> {version } =~ / (?: \d\.\d\.\d -)?( \d + \.\d + \.\d +).* MariaDB/i ) {
214214 $self -> {version } = $1 ;
215215 $self -> {is_mariadb } = 1;
216216 }
You can’t perform that action at this time.
0 commit comments