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.
Message body not shown because it is not plain text.