Skip to content

Commit

Permalink
PostgreSQL: Support exporting views
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jan 30, 2020
1 parent 0293613 commit ad16cb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adminer/drivers/pgsql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,10 @@ function create_sql($table, $auto_increment, $style) {
$sequences = array();

$status = table_status($table);
if (is_view($status)) {
$view = view($table);
return rtrim("CREATE VIEW " . idf_escape($table) . " AS $view[select]", ";");
}
$fields = fields($table);
$indexes = indexes($table);
ksort($indexes);
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Fix clicking on non-input fields in alter table (regression from 4.6.2)
Display time of procedure execution
Disallow connecting to ports > 65535 (bug #730)
MySQL: Always set foreign_key_checks in export
PostgreSQL: Support exporting views
Editor: Fix focusing foreign key search in select

Adminer 4.7.5 (released 2019-11-13):
Expand Down

0 comments on commit ad16cb8

Please sign in to comment.