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

@@ -380,9 +380,10 @@ if (!defined("DRIVER")) {
/** Get information about fields
* @param string
* @param bool display hidden table columns
* @return array array($name => array("field" => , "full_type" => , "type" => , "length" => , "unsigned" => , "default" => , "null" => , "auto_increment" => , "on_update" => , "collation" => , "privileges" => , "comment" => , "primary" => ))
*/
function fields($table) {
function fields($table, $hidden = false) {
global $connection;
$return = array();
$result = $connection->query("SHOW FULL COLUMNS FROM " . table($table));