in reply to "You passed 0 parameters where 1 required" error using DBD::CSV, an INNER JOIN, and a WHERE clause
Here is the (correct) fix. I'll discuss with TimBo if I can submit this:
You'd have to change (in sub execute) .../DBI/DBD/SqlEngine.pm yourself for now.
unless ($sth->{sql_params_checked}++) { # bug in SQL::Statement 1.20 and below causes breakage # on all but the first call my @req_prm = $stmt->params (); my $n_req = @req_prm == 1 && ref $req_prm[0] ? $req_prm[0]->nu +m : scalar @req_prm; unless ($n_req == (my $nparm = @$params)) { my $msg = "You passed $nparm parameters where $n_req requi +red"; $sth->set_err ($DBI::stderr, $msg); return; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "You passed 0 parameters where 1 required" error using DBD::CSV, an INNER JOIN, and a WHERE clause
by planetscape (Chancellor) on Jun 22, 2011 at 16:11 UTC | |
|
Re^2: "You passed 0 parameters where 1 required" error using DBD::CSV, an INNER JOIN, and a WHERE clause
by planetscape (Chancellor) on Jun 29, 2011 at 04:42 UTC | |
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 |