Skip Menu |

This queue is for tickets about the Class-DBI-Loader CPAN distribution.

Report information
The Basics
Id: 13219
Status: new
Priority: 0/
Queue: Class-DBI-Loader

People
Owner: Nobody in particular
Requestors: dakkar [...] thenautilus.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.22
Fixed in: (no value)



Subject: Generated class names are (partially) dependent on tables' names' case
If the name of a table is all upper case, the resulting class name will be, too. Example: the table 'TABLE' will create a class name 'TABLE', but a (identically named, from SQL's point of view) 'tabel' will create 'Table'. Simple fix: Class::DBI::Loader::Generic, function _tabel2class, change: my $subclass = join '', map ucfirst, split /[\W_]+/, $table; to my $subclass = join '', map {ucfirst lc}, split /[\W_]+/, $table; Since this will probably break some code, maybe add an option to control it.