Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

www.webdp.net, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed, sed: -e expression #1, char 1: unterminated address regex, procmail + change subject, w2ksp4.exe download, /proc/kallsyms format

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