To: | bug-dbix-lazymethod [...] rt.cpan.org |
From: | Jonas B.Nielsen <jonasbn [...] io.dk> |
Subject: | Problem with parameters |
Date: | Tue, 23 Mar 2004 15:12:24 +0100 |
Hep,
I have encountered yet another problem:
The following method:
drop_db => {
sql => "DROP DATABASE ?",
args => [ qw(database_name) ],
ret => WANT_RETURN_VALUE,
}
Called like the following:
ok($db->drop_db(database_name => 'test'));
Fails with the following error also with the DBD::Pg driver.
DBD::Pg::st execute failed: ERROR: syntax error at or near "'test'" at
character 72 at /Library/Perl/5.8.1/DBIx/LazyMethod.pm line 352.
This is my line 352 in DBIx::LazyMethod:
#do it
my $rv = $sth->execute(@bind_values) or return
$self->error("_sth_".$meth." execute failed : ".DBI::errstr);
DBI::LazyMethod version 1.02
DBD::Pg: 1.32
jonasbn