[Catalyst] DBIx::Class::Loader::mysql

Sebastian Riedel sri at oook.de
Wed Nov 16 10:05:38 CET 2005


Am 16.11.2005 um 00:43 schrieb ben.norman at qmunity.net:

> Andy,
> I was putting a simple little front end together for a database of  
> keys (the
> kind of keys that open a door) for a client.
>
> catalyst.pl Keys
> mv Keys keys
> cd keys
> script/keys_create.pl model DB DBIC 'dbi:mysql:keys' keys keys
>
> Ran the create script using DBIC as the model helper, it failed to  
> create for
> the table named key.
> I applied the following mod which made it work.
>
> l0027:/opt/ewide # diff perl/DBIx/Class/Loader/mysql.pm
> /usr/lib/perl5/site_perl/5.8.7/DBIx/Class/Loader/mysql.pm
> 86c86
> <     my $query = "DESCRIBE `$table`";
> ---
>>     my $query = "DESCRIBE $table";

Which mysql versions do accept a quoted table name?


--
sebastian




More information about the Catalyst mailing list