diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-03 18:55:20 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-03 18:55:20 +0100 |
commit | d07bd0a10d8507c3952f81dcd7fdb251bec164c0 (patch) | |
tree | 8b35d83fdc87c328e3587a38632a3ef78c5195cc /perllib/FixMyStreet.pm | |
parent | 05d706fe5a04499c8c4c0c5a0a6ce69f38c16815 (diff) |
quote names in SQL to get round problems with joining the users table
Diffstat (limited to 'perllib/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm index d63f708d2..bea41910a 100644 --- a/perllib/FixMyStreet.pm +++ b/perllib/FixMyStreet.pm @@ -121,7 +121,11 @@ sub dbic_connect_info { AutoCommit => 1, pg_enable_utf8 => 1, }; - my $dbic_args = {}; + + # need this to stop issues with user being a reserved word in postgres + my $dbic_args = { + quote_char => '"', + }; return [ $dsn, $user, $password, $dbi_args, $dbic_args ]; } |