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

  Switch to unified view

a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php
...
...
216
    function get_databases() {
216
    function get_databases() {
217
        return array();
217
        return array();
218
    }
218
    }
219
219
220
    function limit($query, $where, $limit, $offset = 0, $separator = " ") {
220
    function limit($query, $where, $limit, $offset = 0, $separator = " ") {
221
        return " $query$where" . (isset($limit) ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
221
        return " $query$where" . ($limit !== null ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
222
    }
222
    }
223
223
224
    function limit1($query, $where) {
224
    function limit1($query, $where) {
225
        global $connection;
225
        global $connection;
226
        return ($connection->result("SELECT sqlite_compileoption_used('ENABLE_UPDATE_DELETE_LIMIT')") ? limit($query, $where, 1) : " $query$where");
226
        return ($connection->result("SELECT sqlite_compileoption_used('ENABLE_UPDATE_DELETE_LIMIT')") ? limit($query, $where, 1) : " $query$where");