pgAdmin III commit: Fix the search query

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема pgAdmin III commit: Fix the search query
Дата
Msg-id E1T7Z3x-000684-1K@gothos.postgresql.org
обсуждение исходный текст
Список 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
------
REL-1_16_0_PATCHES

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=3493e5d43fb97d59e9ee49250af69c4986df685c

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(-)


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: pgAdmin III commit: Fix the search query
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Re: Items missing from some context menus in object browser of v1.16 beta4