Fix process list in PostgreSQL 9.2

This commit is contained in:
Jakub Vrana 2012-10-20 09:58:56 -07:00
parent 7015fd9706
commit 0408c21d07
2 changed files with 3 additions and 1 deletions

View file

@ -574,7 +574,8 @@ AND typelem = 0"
} }
function process_list() { function process_list() {
return get_rows("SELECT * FROM pg_stat_activity ORDER BY procpid"); global $connection;
return get_rows("SELECT * FROM pg_stat_activity ORDER BY " . ($connection->server_info < 9.2 ? "procpid" : "pid"));
} }
function show_status() { function show_status() {

View file

@ -4,6 +4,7 @@ Don't select row on double click
Shorten values in varchar fields Shorten values in varchar fields
Display table default values on wide screens Display table default values on wide screens
Fix switching language on first load Fix switching language on first load
PostgreSQL: Fix process list in version 9.2
Adminer 3.6.1 (released 2012-09-17): Adminer 3.6.1 (released 2012-09-17):
Fix compiled version on PHP with multibyte support Fix compiled version on PHP with multibyte support