Diff of /adminer/drivers/pgsql.inc.php [40ad84] .. [6591d4] Maximize Restore

  Switch to unified view

a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php
...
...
172
    function get_databases() {
172
    function get_databases() {
173
        return get_vals("SELECT datname FROM pg_database ORDER BY datname");
173
        return get_vals("SELECT datname FROM pg_database ORDER BY datname");
174
    }
174
    }
175
    
175
    
176
    function limit($query, $where, $limit, $offset = 0, $separator = " ") {
176
    function limit($query, $where, $limit, $offset = 0, $separator = " ") {
177
        return " $query$where" . (isset($limit) ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
177
        return " $query$where" . ($limit !== null ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
178
    }
178
    }
179
179
180
    function limit1($query, $where) {
180
    function limit1($query, $where) {
181
        return " $query$where";
181
        return " $query$where";
182
    }
182
    }