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

  Switch to unified view

a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php
...
...
266
    */
266
    */
267
    function get_databases($flush = true) {
267
    function get_databases($flush = true) {
268
        global $connection;
268
        global $connection;
269
        // SHOW DATABASES can take a very long time so it is cached
269
        // SHOW DATABASES can take a very long time so it is cached
270
        $return = &get_session("dbs");
270
        $return = &get_session("dbs");
271
      if (!isset($return)) {
271
      if ($return === null) {
272
            if ($flush) {
272
            if ($flush) {
273
                restart_session();
273
                restart_session();
274
                ob_flush();
274
                ob_flush();
275
                flush();
275
                flush();
276
            }
276
            }
...
...
286
    * @param int
286
    * @param int
287
    * @param string
287
    * @param string
288
    * @return string
288
    * @return string
289
    */
289
    */
290
    function limit($query, $where, $limit, $offset = 0, $separator = " ") {
290
    function limit($query, $where, $limit, $offset = 0, $separator = " ") {
291
        return " $query$where" . (isset($limit) ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
291
        return " $query$where" . ($limit !== null ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
292
    }
292
    }
293
293
294
    /** Formulate SQL modification query with limit 1
294
    /** Formulate SQL modification query with limit 1
295
    * @param string everything after UPDATE or DELETE
295
    * @param string everything after UPDATE or DELETE
296
    * @return string
296
    * @return string