Re: Better diagnostic support in DBI

2020-01-09 Thread pali
On Monday 08 April 2019 20:49:25 Tim Bunce wrote: > > Tim, what is opinion for adding that new diagnostic API into DBI? > > I'd much prefer to wait till multiple drivers have added their own > driver-specific, and driver-optimized, interface. And then have a > discussion about how the DBI might

Re: Better diagnostic support in DBI

2019-04-08 Thread Tim Bunce
> Tim, what is opinion for adding that new diagnostic API into DBI? I'd much prefer to wait till multiple drivers have added their own driver-specific, and driver-optimized, interface. And then have a discussion about how the DBI might best provide a common API. That approach has worked well in

Re: Better diagnostic support in DBI

2019-04-07 Thread pali
Hello, I would like to hear some feedback on this DBI API proposal. Tim, what is opinion for adding that new diagnostic API into DBI? On Tuesday 29 January 2019 13:16:23 p...@cpan.org wrote: > CCing DBD::Pg, DBD::Oracle and DBD::ODBC developers. What do you think > about following diagnostic API

Re: Better diagnostic support in DBI

2019-01-29 Thread pali
On Thursday 24 January 2019 13:57:23 Daniƫl van Eeden wrote: > I think this would be very useful. > > Another thing you could consider is a hash where the error/warning number is > the key and an list of msgs is the value. I think this is just complicated to create create and use. Is there any

Re: Better diagnostic support in DBI

2019-01-24 Thread pali
On Wednesday 23 January 2019 20:19:27 Tim Bunce wrote: > A key goal of the DBI is to provide a database independant interface to > databases to enable application portability. What you're suggesting > seems inherently database specific. As wrote DBI already has API for providing last

Re: Better diagnostic support in DBI

2019-01-23 Thread Tim Bunce
A key goal of the DBI is to provide a database independant interface to databases to enable application portability. What you're suggesting seems inherently database specific. The DBI defines a way for drivers to offer database specific functionality. A good way to move a suggestion like this

Better diagnostic support in DBI

2019-01-23 Thread pali
Hi! DBI currently supports 3 functions to retrieve diagnostic informations https://metacpan.org/pod/DBI#err https://metacpan.org/pod/DBI#errstr https://metacpan.org/pod/DBI#state which return the last one database native code, message and SQLSTATE. Plus there warning or note information is