1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 20:31:19 +02:00

Hide hidden columns in PostgreSQL (thanks to Pavel Stehule)

This commit is contained in:
Jakub Vrana
2010-11-11 10:47:32 +01:00
parent 540de0b7c9
commit f4256013a9
6 changed files with 8 additions and 9 deletions

View File

@@ -203,7 +203,7 @@ UNION SELECT view_name, 'view' FROM user_views" . ($name != "" ? " WHERE view_na
return true;
}
function fields($table, $hidden = false) {
function fields($table) {
$return = array();
foreach (get_rows("SELECT * FROM all_tab_columns WHERE table_name = " . q($table) . " ORDER BY column_id") as $row) {
$type = $row["DATA_TYPE"];