Subject: | Faulty version check in foreign_key_info |
The version check in foreign_key_info fails to check the minor version.
As a consequence foreign_key_info does not work for MySQL 5.6.1.
The fix is easy, though:
--- a/lib/DBD/mysql.pm
+++ b/lib/DBD/mysql.pm
@@ -638,7 +638,7 @@ sub foreign_key_info {
# INFORMATION_SCHEMA.KEY_COLUMN_USAGE was added in 5.0.6
my ($maj, $min, $point) = _version($dbh);
- return if $maj < 5 || ($maj == 5 && $point < 6);
+ return if $maj < 5 || ($maj == 5 && $min == 0 && $point < 6);
my $sql = <<'EOF';
SELECT NULL AS PKTABLE_CAT,