Skip to content

Commit 61ab4fa

Browse files
daveldveeden
authored andcommitted
Carefully compare library version numbers
1 parent f8206f4 commit 61ab4fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ sub Configure {
447447
}
448448

449449
if ($param eq 'version') {
450-
if ($str !~ /^[89]\./) {
450+
if ((split(/\./, $str, 2))[0] < 8) {
451451
die "DBD::mysql requires MySQL 8.x or newer for building. Version reported by $command: $str";
452452
}
453453
}

0 commit comments

Comments
 (0)