Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

#1: Faulty version check in foreign_key_info

Posted on 2010-10-27 17:04:01 by Bernt Marius Johnsen

The version check in foreign_key_info fails to check the minor version.
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,

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Report this message