in reply to Re: "You passed 0 parameters where 1 required" error using DBD::CSV, an INNER JOIN, and a WHERE clause
in thread "You passed 0 parameters where 1 required" error using DBD::CSV, an INNER JOIN, and a WHERE clause
Actually, there seems to be a problem with this fix.
If I run the code from Re: DumpArrayToExcel (for example):
use DBI; my $dbh=DBI->connect('dbi:CSV:'); my $AoA =[ ['number','name','sex','age'], ['0','Jack','M','28'], ['1',"Marry",'F','29'] ]; $dbh->do("CREATE TABLE worksheet AS IMPORT(?)",{},$AoA); __END__
I get the following error on Strawberry Perl (where I installed your patch), but not on Cygwin Perl, which was unchanged:
DBD::CSV::db do failed: You passed 1 parameters where 0 required [for +Statement "CREATE TABLE worksheet AS IMPORT(?)"] at 443517.pl line 6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "You passed 0 parameters where 1 required" error using DBD::CSV, an INNER JOIN, and a WHERE clause
by Tux (Canon) on Jun 29, 2011 at 06:43 UTC | |
by planetscape (Chancellor) on Jun 29, 2011 at 06:50 UTC | |
by Tux (Canon) on Jun 29, 2011 at 07:02 UTC |