Skip Menu |

This queue is for tickets about the DBD-Multi CPAN distribution.

Report information
The Basics
Id: 84240
Status: resolved
Priority: 0/
Queue: DBD-Multi

People
Owner: Dan [...] DWright.Org
Requestors: bitcard.org [...] jon.isbell.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.16
Fixed in: (no value)



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) = @_;
Subject: Re: [rt.cpan.org #84240] DBD::Multi doesn't implement get_info
Date: Wed, 27 Mar 2013 16:32:19 -0400
To: bug-DBD-Multi [...] rt.cpan.org
From: Daniel Wright <dan [...] dwright.org>
On Mar 27, 2013, at 9:14 AM, Jon Isbell via RT <bug-DBD-Multi@rt.cpan.org> wrote: Show quoted text
> 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.
Thanks for the patch! I'm going to take a look at this within the next few days, and will hopefully have an update to DBD::Multi on CPAN by next week. -Dan
Thank you for the patch. I have uploaded DBD::Multi rev 1.18 to CPAN tonight with a working get_info(). -Dan