![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Clarification on Class::DBI wackinessby spork (Monk) |
on Aug 03, 2005 at 16:06 UTC ( #480535=perlquestion: print w/replies, xml ) | Need Help?? |
spork has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to set up an object with the aid of Class::DBI (actually Class::DBI::Sybase) All classes have been set up according to the documentation and I wrote a quick program to verify C::D behavior. The original test program ran retrieve_all() which was successful. However when I run a search() based on the PK an error is returned "sth_to_objects needs a statement handle".
Looking under the hood we find that indeed $sth is not valued, but oddly enough when sth_to_objects() is called (from within C::D itself) $sth is not even passed. Obviously it must be something that I am doing wrong if there is plenty documentation on how to use the module, but nothing on the strange behavior experience by this humble monk. Any advice? Code and results... The base class... The test program The results
Thanks in advance
Back to
Seekers of Perl Wisdom
|
|