1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 20:31:19 +02:00

Make select(..., , , ) optional

This commit is contained in:
Jakub Vrana
2014-01-15 08:23:26 -08:00
parent e9b5616657
commit 60c8ec61e3
6 changed files with 7 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ if (isset($_GET["elastic"])) {
class Min_Driver extends Min_SQL {
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
global $adminer;
$data = array();
$query = "$table/_search";

View File

@@ -120,7 +120,7 @@ if (isset($_GET["mongo"])) {
return ($value === null ? $value : parent::quote($value));
}
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
$select = ($select == array("*")
? array()
: array_fill_keys($select, true)

View File

@@ -150,7 +150,7 @@ if (isset($_GET["simpledb"])) {
return $return;
}
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
global $connection;
$connection->next = $_GET["next"];
$return = parent::select($table, $select, $where, $group, $order, $limit, $page, $print);