Set UTF-8 mode and DBIC quoting on Pg database connection

This commit is contained in:
Oliver Gorwits
2014-06-11 09:12:40 +01:00
parent 5988302a65
commit c10095939b
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
* Fix for device counts in VLAN Inventory report * Fix for device counts in VLAN Inventory report
* Forward port housekeeping/schedule and expiry/expire legacy config * Forward port housekeeping/schedule and expiry/expire legacy config
* Store started timestamp on job completion * Store started timestamp on job completion
* Set UTF-8 mode and DBIC quoting on Pg database connection
2.027007 - 2014-05-27 2.027007 - 2014-05-27

View File

@@ -22,7 +22,9 @@ if (ref {} eq ref setting('database')) {
options => { options => {
AutoCommit => 1, AutoCommit => 1,
RaiseError => 1, RaiseError => 1,
quote_names => 1,
auto_savepoint => 1, auto_savepoint => 1,
pg_enable_utf8 => 1,
}, },
schema_class => 'App::Netdisco::DB', schema_class => 'App::Netdisco::DB',
}; };