From: Deni Date: Thu, 6 Apr 2017 16:15:06 +0000 (+0200) Subject: Fix table dependency on export X-Git-Tag: v4.3.1~8 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f4817e85686a8ba619ad1a4f0d119570bccf917b;p=adminer.git Fix table dependency on export --- diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index 891aa655..9f47cc45 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -248,7 +248,7 @@ ORDER BY 1"; FROM pg_class c JOIN pg_namespace n ON(n.nspname = current_schema() AND n.oid = c.relnamespace) WHERE relkind IN ('r', 'm', 'v') -" . ($name != "" ? "AND relname = " . q($name) : "ORDER BY relname") +" . ($name != "" ? "AND relname = " . q($name) : "ORDER BY c.oid") ) as $row) { //! Index_length, Auto_increment $return[$row["Name"]] = $row; }