Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 16701
Status: resolved
Priority: 0/
Queue: SQL-Translator

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

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



Subject: ::Producer::ClassDBI uses obsolete $t->format_table_name etc
::ClassDBI contains: my $table_pkg_name = join( '::', $main_pkg_name, $t->format_package_name($table_name) ); where $t is a SQL::Translator instance. However, SQL::Translator says: # # Set up callbacks for formatting of pk,fk,table,package names in producer # MOVED TO PRODUCER ARGS # #$self->format_table_name($config->{'format_table_name'}); #$self->format_package_name($config->{'format_package_name'}); #$self->format_fk_name($config->{'format_fk_name'}); #$self->format_pk_name($config->{'format_pk_name'}); Thus this feature will never work. We'd really like it to work, please! Thanks. Shevek
Could be INVALID. I now see where the subs are set. Am suffering from translate: Error with producer 'SQL::Translator::Producer::ClassDBI': Can't call method "is_primary_key" on an undefined value at /usr/lib/perl5/site_perl/5.8.6/SQL/Translator/Producer/ClassDBI.pm line 100. right now and thus unable to test.
Seems to be resolved in the current codebase