develooper Front page | perl.dbi.users | Postings from February 2012

Re: New DBD::ODBC 1.34_3 development release

Thread Previous | Thread Next
From:
Tim Bunce
Date:
February 4, 2012 12:52
Subject:
Re: New DBD::ODBC 1.34_3 development release
Message ID:
20120204205152.GX70165@timac.local
On Fri, Feb 03, 2012 at 08:51:10PM +0000, Martin J. Evans wrote:
> 
> You should also be aware that calling odbc_getdiag* will clear DBI's
> err, errstr and state so if you want DBI's methods to return
> something meaningful you may need to call them first - I'm unsure if
> I can stop this behaviour.

You can. You need to pass some extra args to install_method().

Something like install_method("odbc_getdiagrec", { O=>0x00000004 });

That's the value of the IMA_KEEP_ERR flag.  See the #define IMA_*'s in
DBI.xs and the O=>... in DBI.pm

Tim.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About