diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-07-23 10:12:50 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-07-23 10:15:25 +0200 |
commit | 074b161226498c51eacc1be7662672ff9361cf51 (patch) | |
tree | 14ec2345c662d915bebf0fea4b46d4c8f57c19b6 /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | b2209550b140a66b7f803cfcdb971dd91080ca30 (diff) |
Make sure to set the name_sep when changing quite_char, to get Admin
pages working with the Catalyst packages in Debian/Squeeze. Without
this, the generated SQL contain "foo.bar" instead of "foo"."bar", and
only the latter work.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index fbd50a973..3f2b62f6f 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -121,6 +121,7 @@ sub timeline : Path( 'timeline' ) : Args(0) { my %time; $c->model('DB')->schema->storage->sql_maker->quote_char( '"' ); + $c->model('DB')->schema->storage->sql_maker->name_sep( '.' ); my $probs = $c->cobrand->problems->timeline; @@ -427,6 +428,7 @@ sub search_reports : Path('search_reports') { # makes PostgreSQL unhappy elsewhere so we only want to do # it for this query and then switch it off afterwards. $c->model('DB')->schema->storage->sql_maker->quote_char( '"' ); + $c->model('DB')->schema->storage->sql_maker->name_sep( '.' ); my $problems = $c->cobrand->problems->search( { |