[Dbix-class] How do I get DBIx::Class::Migration::Population to quote names?

Robert Rothenberg robrwo at gmail.com
Mon May 27 17:04:25 GMT 2013


I have a Postgres table named "user". This needs to be quoted, and it's
configured to be quoted in the MyApp::Model::DB module, but
DBICM::Population isn't quoting it:

> not ok 36 - populate
> 
> #   Failed test 'populate'
> #   at t/00-deploy-test-db.t line 53.
> # died: DBIx::Class::Exception (DBIx::Class::Fixtures::populate(): DBI Exception: DBD::Pg::st execute failed: ERROR:  column "id" does not exist
> # LINE 1: SELECT setval('user_id_seq', (SELECT max(id) FROM user));
> #                                                  ^ [for Statement "SELECT setval('user_id_seq', (SELECT max(id) FROM user));"] at t/00-deploy-test-db.t line 48
> # )

So how do I configure it to enable quoting when my test suite tries to
populate values?




More information about the DBIx-Class mailing list