[Dbix-class] Please Help

quqi xiao xiaoquqi at gmail.com
Fri Apr 6 08:51:21 GMT 2007


 When I use dbix::class,I meet a problem.
This is the structure of my table in MySQL
create table test_table(
    id int,
    group int
)

and I used dbix::class to create a package like this:
__PACKAGE__->add_columns(qw/ id group/);

And When I use the add_to... to insert the record.An error happened.
INSERT INTO(id,group)values(1,1).
I copy this to my mysql tool and change it to:
INSERT INTO(id,`group`)values(1,1)
Everything will be ok.` is a transferred meaning sign in Mysql and group is
a key word in Mysql.
Is there any *mechanism*  in DBIx::class to avoid this problem?Thank you
very much.Hope your reply.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070406/e53=
36ab6/attachment.htm


More information about the Dbix-class mailing list