Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 83132
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: COSMICNET [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.611
Fixed in: (no value)



Something hasn't been quite right with the DBI Constants example: The names and values of all the defined SQL standard types can be produced like this: foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { printf "%s=%d\n", $_, &{"DBI::$_"}; } But since 1.611 this also includes DBIstcf_DISCARD_STRING and DBIstcf_STRICT. I'm not sure if those constants should be somewhere else, the code sample should be modified, or the preceding sentence should be changed. Lyle
On Mon Feb 04 19:38:56 2013, COSMICNET wrote: Show quoted text
> Something hasn't been quite right with the DBI Constants example: > > The names and values of all the defined SQL standard types can be > produced like this: > > foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { > printf "%s=%d\n", $_, &{"DBI::$_"}; > } > > But since 1.611 this also includes DBIstcf_DISCARD_STRING and > DBIstcf_STRICT. I'm not sure if those constants should be somewhere > else, the code sample should be modified, or the preceding sentence > should be changed. > > > Lyle
Oops. That would be my fault. They should probably have their own tag. If Tim suggests a tag name I'll fix it. Martin -- Martin J. Evans Wetherby, UK
I'm open to suggestions...
On Tue Feb 05 15:34:04 2013, TIMB wrote: Show quoted text
> I'm open to suggestions...
Sorry, I forgot about this rt. I suggest they go in the utils tag where sql_type_cast already resides. If not there how about a new "util_types". Martin -- Martin J. Evans Wetherby, UK
On Tue Sep 10 08:35:04 2013, MJEVANS wrote: Show quoted text
> On Tue Feb 05 15:34:04 2013, TIMB wrote:
> > I'm open to suggestions...
> > Sorry, I forgot about this rt. > > I suggest they go in the utils tag where sql_type_cast already > resides. If not there how about a new "util_types". > > Martin
https://github.com/mjegh/dbi/commit/b6865b8c6a6505ac220ba6ffc306e99cad5a5c45 Martin -- Martin J. Evans Wetherby, UK
Fixed in 1.631. Thanks!