Re: DBI equivalent of...
Michael Peppler <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2005-07-07 at 11:50 -0400, Wechsler, Steven wrote:
> I'm converting a script from DB-Library to DBI. One thing I haven't
> been able to figure out is the equivalent of DB-Library's
> "dbhasretstatus" and "dbretstatus".
You can look at the syb_do_proc_status handle attribute, which might
help you.
Otherwise - the return status is returned as any other result set, and
the $sth->{syb_result_type} value is set to CS_STATUS_RESULT.
There is no dbhasretstatus() equivalent, in the sense that you only know
that there is a return status once you've fetched the result set that
has it...
Michael
--
Michael Peppler - [email protected] - http://www.peppler.org/
Sybase DBA/Developer
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html