1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

PostgreSQL hidden columns support

This commit is contained in:
Jakub Vrana
2010-05-21 16:23:44 +02:00
parent 3308856f9e
commit 4c2268d381
6 changed files with 12 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
$TABLE = $_GET["select"];
$table_status = table_status($TABLE);
$indexes = indexes($TABLE);
$fields = fields($TABLE);
$fields = fields($TABLE, 1); // 1 - hidden
$foreign_keys = column_foreign_keys($TABLE);
$rights = array(); // privilege => 0
@@ -12,7 +12,7 @@ foreach ($fields as $key => $field) {
$name = $adminer->fieldName($field);
if (isset($field["privileges"]["select"]) && $name != "") {
$columns[$key] = html_entity_decode(strip_tags($name));
if (ereg('text|blob', $field["type"])) {
if (ereg('text|clob|blob', $field["type"])) {
$text_length = $adminer->selectLengthProcess();
}
}