jck has asked for the wisdom of the Perl Monks concerning the following question:
it's throwing the following error:
bind_columns called with 2 refs when 3 needed. at /usr/local/lib/perl5 +/site_perl/5.8.7/mach/DBI.pm line 1794.
i have 3 queries in the code, one pulls 3 fields, one pulls 4, and the last, 5. the one with 3 looks like:
my $sql = "SELECT UID, MONTHNAME(PostDate), YEAR(PostDate) FROM news O +RDER BY PostDate DESC"; my $sth = $dbh->prepare($sql) || die "Error preparing: $DBI::errstr"; $sth->execute || die "Error executing: $DBI::errstr"; $rv = $sth->bind_columns($UIDholder, $indexmonths, $indexyears);
the thing is that everything was working perfectly just an hour ago!!! and i haven't made any changes to the queries..
anyone know where i need to look to solve this one?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bind_columns error
by runrig (Abbot) on Jun 29, 2006 at 22:08 UTC | |
|
Re: bind_columns error
by shmem (Chancellor) on Jun 29, 2006 at 21:48 UTC | |
by jck (Scribe) on Jun 29, 2006 at 21:55 UTC | |
by shmem (Chancellor) on Jun 29, 2006 at 22:26 UTC | |
|
Re: bind_columns error
by chargrill (Parson) on Jun 30, 2006 at 16:52 UTC | |
by runrig (Abbot) on Jun 30, 2006 at 18:46 UTC |