From c6b15ad3c2fb6eda4123afa3bbe40b6a71b23410 Mon Sep 17 00:00:00 2001 From: xzilla Date: Sun, 31 Dec 2006 19:04:05 +0000 Subject: [PATCH] fix bug [ 1625413 ] Error during login. Problem on 8.1. --- classes/database/Postgres81.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/database/Postgres81.php b/classes/database/Postgres81.php index c7449e42..15fadcac 100644 --- a/classes/database/Postgres81.php +++ b/classes/database/Postgres81.php @@ -3,7 +3,7 @@ /** * PostgreSQL 8.1 support * - * $Id: Postgres81.php,v 1.13 2006/12/31 15:32:40 soranzo Exp $ + * $Id: Postgres81.php,v 1.14 2006/12/31 19:04:05 xzilla Exp $ */ include_once('./classes/database/Postgres80.php'); @@ -83,7 +83,7 @@ class Postgres81 extends Postgres80 { if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) { $username = $server_info['username']; $this->clean($username); - $clause = " AND pu.usename='{$username}'"; + $clause = " AND pr.rolname='{$username}'"; } else $clause = ''; -- 2.39.5