[Dbix-class] using reserved words for table names

icydee dbix-class at iandocherty.com
Tue Mar 13 10:45:58 GMT 2007


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)







More information about the Dbix-class mailing list