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 ``