Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 60878
Status: resolved
Priority: 0/
Queue: SQL-Translator

People
Owner: Nobody in particular
Requestors: mail [...] jonaspasche.com
Cc:
AdminCc:

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



Subject: documentation error: incorrect dbh argument in Parser::DBI
Date: Mon, 30 Aug 2010 16:01:30 +0200
To: bug-SQL-Translator [...] rt.cpan.org
From: Jonas Pasche <mail [...] jonaspasche.com>
SYNOPSIS shows that one can provide an already connected dbh to Parser::DBI with the following syntax: my $translator = SQL::Translator->new( parser => 'DBI', dbh => $dbh, ); Unfortunately this does not work. Judging from the rest of the documentation the dbh needs to be provided through the parser_args argument: my $translator = SQL::Translator->new( parser => 'DBI', parser_args => { dbh => $dbh, } ); I confirmed that it worked using the second syntax.
Download signature.asc
application/pgp-signature 198b

Message body not shown because it is not plain text.

Indeed. Fixed in master.
Fix released a while ago