Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Nov 24, 2018
1 parent 660703e commit e148db4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adminer/drivers/pgsql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function fields($table) {
'timestamp with time zone' => 'timestamptz',
);

$identity_column = min_version(10) ? "(a.attidentity = 'd')::int" : '0';
$identity_column = min_version(10) ? "(a.attidentity = 'd')::int" : '0';

foreach (get_rows("SELECT a.attname AS field, format_type(a.atttypid, a.atttypmod) AS full_type, d.adsrc AS default, a.attnotnull::int, col_description(c.oid, a.attnum) AS comment, $identity_column AS identity
FROM pg_class c
Expand All @@ -376,8 +376,8 @@ function fields($table) {
$row["full_type"] = $row["type"] . $length . $addon . $array;
}
if ($row['identity']) {
$row['default'] = 'GENERATED BY DEFAULT AS IDENTITY';
}
$row['default'] = 'GENERATED BY DEFAULT AS IDENTITY';
}
$row["null"] = !$row["attnotnull"];
$row["auto_increment"] = $row['identity'] || preg_match('~^nextval\(~i', $row["default"]);
$row["privileges"] = array("insert" => 1, "select" => 1, "update" => 1);
Expand Down

0 comments on commit e148db4

Please sign in to comment.