Skip Menu |

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

Report information
The Basics
Id: 49443
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: rmb32 [...] cornell.edu
Cc:
AdminCc:

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



Subject: column name collision
If a table as a column called 'source_name', everything gets totally borked. Probably happens with other column names that collide with DBIC methods also. Absolutely execrable error message: perl -I ~/cxgn/core/perllib ~/test.pl DBIx::Class::Row::get_column(): Can't fetch data as class method at (eval 1038) line 6 Compilation failed in require at /crypt/rob/test.pl line 6. BEGIN failed--compilation aborted at /crypt/rob/test.pl line 6. Which when adding a croak() to the relevant place yields: Can't fetch data as class method at /crypt/rob/cpan- DBIx::Class::Row::get_column('SGN::Schema::DerivedFromSource', 'source_name') called at (eval 1038) line 6 SGN::Schema::DerivedFromSource::source_name('SGN::Schema::DerivedFromSourc DBIx::Class::Schema::load_classes('SGN::Schema') called at /crypt/rob/cxgn/core/perllib/SGN/Schema.pm line 8 require SGN/Schema.pm called at /crypt/rob/test.pl line 6 main::BEGIN() called at /crypt/rob/cxgn/core/perllib/SGN/Schema.pm line 0 eval {...} called at /crypt/rob/cxgn/core/perllib/SGN/Schema.pm line 0 Compilation failed in require at /crypt/rob/test.pl line 6.
Fixed in git://git.shadowcat.co.uk/dbsrgits/DBIx-Class-Schema-Loader.git will release soon.