in reply to (jeffa) Re: weird DBI error re: parameter binding
in thread weird DBI error re: parameter binding
I agree .. I had a Sh*t fit when I saw the table names and field names.. its not my doing.. I'm just workin with what I have.
produced the errormy $query = q{SELECT x FROM Referrals WHERE [Today's Date]>?}; $sth = $dbh->prepare($query); $sth->execute($date);
I have no idea why this is causing problems. If it were a type mismatch the DBD would probably say so.. .as I have had similar errors in the past. The query does work if I hard code in a value and call with no bind variables however. So at least things aren't THAT screwed up.DBD::ODBC::st execute failed: called with 1 bind variables when 0 are +needed at C:\Documents and Settings\xxx\Desktop\distribute.pl line 263.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: weird DBI error re: parameter binding (guess)
by tye (Sage) on Jul 30, 2003 at 17:50 UTC | |
by Grygonos (Chaplain) on Jul 30, 2003 at 19:14 UTC | |
by tye (Sage) on Jul 30, 2003 at 19:21 UTC | |
by Grygonos (Chaplain) on Jul 30, 2003 at 19:55 UTC |