Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 40825
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: JKRAMER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04005
Fixed in: (no value)



Subject: Apply quote chars on table names
Some databases allow the use of special words as table names, when quoted properly (e.g., a table "group" can be created in Pg and SQLite). DBIx::Class::Schema::Loader doesn't properly quote table names, which makes it crash when encountering such a table. This can be fixed by calling $self->schema->storage->sql_maker->quote_char($self->{_quoter}); somewhere in DBIx::Class::Schema::Loader::DBI.
On Mon Nov 10 20:27:03 2008, jkramer wrote: Show quoted text
> Some databases allow the use of special words as table names, when > quoted properly (e.g., a table "group" can be created in Pg and SQLite). > DBIx::Class::Schema::Loader doesn't properly quote table names, which > makes it crash when encountering such a table. This can be fixed by
calling Show quoted text
> > $self->schema->storage->sql_maker->quote_char($self->{_quoter}); > > somewhere in DBIx::Class::Schema::Loader::DBI.
I forgot to mention that name_sep has to be set too. $self->schema->storage->sql_maker->quote_sep($self->{_namesep});
IIRC, this works fine now, as of 0.06000, closing. Reopen if you still have issues.