pg_shadow_table returns two values

This commit is contained in:
Jamie Cameron
2023-05-24 14:56:25 -07:00
parent ec1501b329
commit 79426c6aec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ print &ui_table_row($text{'grant_ns'}, "<tt>$in{'ns'}</tt>");
print &ui_table_row($text{"grant_$in{'type'}"}, "<tt>$in{'table'}</tt>");
# Get users and groups for permissions table
$st = &get_pg_shadow_table();
($st) = &get_pg_shadow_table();
$u = &execute_sql_safe($config{'basedb'}, "select usename from $st");
@users = map { $_->[0] } @{$u->{'data'}};
+1 -1
View File
@@ -16,7 +16,7 @@ print &ui_table_row($text{'newdb_db'},
if (&get_postgresql_version() >= 7) {
# Owner option
$st = &get_pg_shadow_table();
($st) = &get_pg_shadow_table();
$u = &execute_sql($config{'basedb'}, "select usename from $st");
@users = map { $_->[0] } @{$u->{'data'}};
print &ui_table_row($text{'newdb_user'},