Skip Menu |

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

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

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

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



Subject: Can't use at tables with "-" sign
I have several tables with "-" sign in its names, i.e. 'bonusGroup-bonus', 'operatorGroup-permission', 'region-country' and so on... dbicdump report on it: Bad table or view 'bonusGroup-bonus', ignoring: DBIx::Class::Schema::Loader::make_schema_at(): DBI Exception: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-bonus WHERE ( 1 = 0 )' at line 1 [for Statement "SELECT * FROM bonusGroup-bonus WHERE ( 1 = 0 )"] at /usr/local/bin/dbicdump line 71 Such names need to be quoted by ``
Subject: Re: [rt.cpan.org #60469] Can't use at tables with "-" sign
Date: Wed, 18 Aug 2010 12:53:17 -0400
To: bug-DBIx-Class-Schema-Loader [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] cpan.org>
You need to turn on quoting in your connect_info, see quote_char and namesep "Алексей Вениаминович Мышкин via RT" <bug-DBIx-Class-Schema-Loader@rt.cpan.org> wrote: Show quoted text
>Wed Aug 18 08:33:19 2010: Request 60469 was acted upon. >Transaction: Ticket created by DEMIURG > Queue: DBIx-Class-Schema-Loader > Subject: Can't use at tables with "-" sign > Broken in: 0.07001 > Severity: Important > Owner: Nobody > Requestors: DEMIURG@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=60469 > > > >I have several tables with "-" sign in its names, i.e. 'bonusGroup-bonus', >'operatorGroup-permission', 'region-country' and so on... > >dbicdump report on it: >Bad table or view 'bonusGroup-bonus', ignoring: >DBIx::Class::Schema::Loader::make_schema_at(): DBI Exception: >DBD::mysql::st execute failed: You have an error in your SQL syntax; >check the manual that corresponds to your MySQL server version for the >right syntax to use near '-bonus WHERE ( 1 = 0 )' at line 1 [for >Statement "SELECT * FROM bonusGroup-bonus WHERE ( 1 = 0 )"] at >/usr/local/bin/dbicdump line 71 > >Such names need to be quoted by ``
-- Sent from my Android phone with K-9 Mail. Please excuse my brevity.
fixed in git
Fixed in 0.07011