?
avatar rpvr
rpvr
18 Nov 2015

Steps to reproduce the issue

If you use postgres as db backend for joomla, and there is a pgpool istance in the middle, you will have to deal with this bug:
http://www.sraoss.jp/pipermail/pgpool-general/2013-August/002124.html

Additional comments

in /libraries/joomla/database/driver/postgresql.php there is a function "connect()", that after the connection sends a query
pg_query('SET standard_conforming_strings=off');
for pgpool that will not work.
you should change the dns param

from
$dsn .= "dbname={$this->options['database']} user={$this->options['user']} password={$this->options['password']}";

to

$dsn .= "dbname={$this->options['database']} user={$this->options['user']} password={$this->options['password']} options='-c standard_conforming_strings=off'";

avatar rpvr rpvr - open - 18 Nov 2015
avatar brianteeman
brianteeman - comment - 10 Mar 2016

I have created a PR for this with your code - please test #9362


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8476.

avatar brianteeman brianteeman - change - 10 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-10 15:53:45
Closed_By brianteeman
avatar brianteeman brianteeman - close - 10 Mar 2016

Add a Comment

Login with GitHub to post a comment