1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 23:27:17 +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

@@ -263,7 +263,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
return !$connection->result("SELECT sqlite_compileoption_used('OMIT_FOREIGN_KEY')");
}
function fields($table, $hidden = false) {
function fields($table) {
$return = array();
foreach (get_rows("PRAGMA table_info(" . table($table) . ")") as $row) {
$type = strtolower($row["type"]);