[Dbix-class] inflate_column and sql_maker->quote_char/name_sep
Bernhard Graf
dbic at augensalat.de
Thu Mar 2 17:04:38 CET 2006
Matt S Trout wrote:
> There is no __PACKAGE__->storage unless you're using DB.pm, but the
> regex to ensure DBIC doesn't barf when you have multiple packages
> defined in one file eats the error message, unfortunately.
>
> Move the sql_maker stuff into your Schema class and you should be
> fine.
Err... You mean
use base 'DBIx::Class::Schema';
__PACKAGE__->load_classes;
__PACKAGE__->storage->sql_maker->quote_char('`');
__PACKAGE__->storage->sql_maker->name_sep('.');
?
This gives me:
Can't call method "sql_maker" on an undefined value at TDW/Schema.pm line 10.
Compilation failed in require at app.pl line 6.
BEGIN failed--compilation aborted at app.pl line 6.
--
Bernhard Graf
More information about the Dbix-class
mailing list