mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Don't assume that datname is column 0 https://sourceforge.net/p/webadmin/bugs/5322/?page=1&limit=25#2ac7
This commit is contained in:
@@ -150,7 +150,7 @@ return &get_postgresql_version() >= 7.3;
|
||||
sub list_databases
|
||||
{
|
||||
local $force_nodbi = 1;
|
||||
local $t = &execute_sql_safe($config{'basedb'}, 'select * from pg_database order by datname');
|
||||
local $t = &execute_sql_safe($config{'basedb'}, 'select datname from pg_database order by datname');
|
||||
return sort { lc($a) cmp lc($b) } map { $_->[0] } @{$t->{'data'}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user