aboutsummaryrefslogtreecommitdiff
path: root/databases/phppgadmin/files/patch-Postgres81.php
diff options
context:
space:
mode:
Diffstat (limited to 'databases/phppgadmin/files/patch-Postgres81.php')
-rw-r--r--databases/phppgadmin/files/patch-Postgres81.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/phppgadmin/files/patch-Postgres81.php b/databases/phppgadmin/files/patch-Postgres81.php
new file mode 100644
index 000000000000..ef88221bdab3
--- /dev/null
+++ b/databases/phppgadmin/files/patch-Postgres81.php
@@ -0,0 +1,11 @@
+--- classes/database/Postgres81.php.orig Tue Feb 6 14:00:38 2007
++++ classes/database/Postgres81.php Tue Feb 6 14:01:02 2007
+@@ -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 = '';
+