Use pg_users instead of pg_shadow in latest PostgreSQL versions https://sourceforge.net/p/webadmin/bugs/4727/

This commit is contained in:
Jamie Cameron
2016-03-27 16:26:19 -07:00
parent 46d7022cc9
commit 40a90f7c71
6 changed files with 24 additions and 6 deletions

View File

@ -10,8 +10,9 @@ if ($in{'new'}) {
}
else {
&ui_print_header(undef, $text{'user_edit'}, "");
($pg_table, $pg_cols) = &get_pg_shadow_table();
$s = &execute_sql_safe($config{'basedb'},
"select $pg_shadow_cols from pg_shadow ".
"select $pg_cols from $pg_table ".
"where usename = '$in{'user'}'");
@user = @{$s->{'data'}->[0]};
}