MyBB Community Forums
[F] MyBB 1.4.[3,4]: Bad PostgreSQL database logging [C-Michael83] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.4 (https://community.mybb.com/forum-110.html)
+------ Thread: [F] MyBB 1.4.[3,4]: Bad PostgreSQL database logging [C-Michael83] (/thread-41149.html)



[F] MyBB 1.4.[3,4]: Bad PostgreSQL database logging [C-Michael83] - Peter de Sowaro - 11-28-2008

MyBB 1.4.3 and 1.4.4.

There is no space between "user=xxx" and "port=xxx", for example it generates "... user=markport=5432 ...". The solution is to put some spaces in right places, like down here, in file inc/db_pgsql.php, in MyBB 1.4.4 from line 211:
$this->connect_string = "dbname={$single_connection['database']} user={$single_connection['username']}";
if(strpos($single_connection['hostname'], ':') !== false)
{
    list($single_connection['hostname'], $single_connection['port']) = explode(':', $single_connection['hostname']);
}
if($single_connection['port'])
{
    $this->connect_string .= " port={$single_connection['port']}";
}

if($single_connection['hostname'] != "localhost")
{
    $this->connect_string .= " host={$single_connection['hostname']}";
}

if($single_connection['password'])
{
    $this->connect_string .= " password={$single_connection['password']}";
}



[F] MyBB 1.4.[3,4]: Bad PostgreSQL database logging - Ryan Gordon - 11-29-2008

Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group