fix bug [ 1625413 ] Error during login on 8.2 as well
authorxzilla <xzilla>
Sun, 31 Dec 2006 19:06:16 +0000 (19:06 +0000)
committerxzilla <xzilla>
Sun, 31 Dec 2006 19:06:16 +0000 (19:06 +0000)
classes/database/Postgres82.php

index 54c2d55339cd674263055ea313289761c56be5d8..6f8fb10524a9cd7c50e3595e7e8e621ee0164732 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * PostgreSQL 8.2 support
  *
- * $Id: Postgres82.php,v 1.3 2006/11/19 21:33:13 xzilla Exp $
+ * $Id: Postgres82.php,v 1.4 2006/12/31 19:06:16 xzilla Exp $
  */
 
 include_once('./classes/database/Postgres81.php');
@@ -73,7 +73,7 @@ class Postgres82 extends Postgres81 {
                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 = '';