[Dbix-class] using reserved words for table names

Ash Berlin ash_cpan at firemirror.com
Tue Mar 13 11:12:36 GMT 2007


icydee wrote:
> Hi.
> I would like to use a table named 'group' but of course it is a reserved 
> word in MySql and so I must quote it.
> 
> I thought I could use the following
> --------
> 
> package MyApp::Schema;
> use strict;
> use base qw(DBIx::Class::Schema);
> __PACKAGE__->load_classes(qw(
>   Group
> ));
> __PACKAGE__->storage->sql_maker->quote_char('"');
> 1;
> 
> ------
> 
> In my schema base class but it came back with the error.
> 
> Can't call method "sql_maker" on an undefined value...
> 
> I can't find any further documentation on this. Any suggestions?
> 
> Regards
> Ian Docherty (ICYDEE)
> 

http://search.cpan.org/~jrobinson/DBIx-Class-0.07005/lib/DBIx/Class/Storage/DBI.pm#connect_info



More information about the Dbix-class mailing list