Subject: | DBD::Multi doesn't implement get_info |
DBD::Multi doesn't implement get_info(). This causes problems with subroutines such as quote_identifier() which rely on get_info() to return the correct quote character. For DBD::Multi + mysql quote_identifier() produces invalid SQL.
I've attached a patch which fixes this.
Subject: | get_info.patch |
--- lib/DBD/Multi.pm.old 2010-09-05 21:28:21.000000000 +0100
+++ lib/DBD/Multi.pm 2013-03-27 12:03:57.000000000 +0000
@@ -129,6 +129,14 @@
return;
}
+sub get_info {
+ my($dbh, $info_type) = @_;
+
+ # return info from current connection
+ my $handler = $dbh->FETCH('_handler');
+ my $_dbh = $handler->dbh;
+ return $_dbh->get_info($info_type);
+}
sub STORE {
my ($self, $attr, $val) = @_;