From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin III commit: Fix the search query |
Date: | 2012-08-31 21:47:37 |
Message-ID: | E1T7Z3x-000682-0r@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Fix the search query
It tried to look into the pg_user_mapping catalog. A regular user cannot read
this table, hence a query error when searching objects while connected as a
regular user.
This patch adds a new IsSuperuser() method to the pgConn class. It calls this
method to check if it should add the UNION clause with the SQL/MED tables
(which pg_user_mapping is a part of).
Per a report from Chandrakant G.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=c9d22966841736c7be41c9235065f192a4117f0f
Modified Files
--------------
pgadmin/db/pgConn.cpp | 8 +++++++-
pgadmin/dlg/dlgSearchObject.cpp | 2 +-
pgadmin/include/db/pgConn.h | 1 +
3 files changed, 9 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Lelarge | 2012-08-31 21:55:28 | Re: Re: Items missing from some context menus in object browser of v1.16 beta4 |
Previous Message | Dave Page | 2012-08-31 15:47:26 | Re: Old problem reoccurrence in current |