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";
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)
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);
$select = array("*");
}
if ($select) {
- $result = $driver->select($TABLE, $select, array($where), $select, array(), (isset($_GET["select"]) ? 2 : 1), 0);
+ $result = $driver->select($TABLE, $select, array($where), $select, array(), (isset($_GET["select"]) ? 2 : 1));
$row = $result->fetch_assoc();
if (!$row) { // MySQLi returns null
$row = false;
if (!support("table") && !$fields) {
if (!$where) { // insert
- $result = $driver->select($TABLE, array("*"), $where, array("*"), array(), 1, 0);
+ $result = $driver->select($TABLE, array("*"), $where, array("*"));
$row = ($result ? $result->fetch_assoc() : false);
if (!$row) {
$row = array($driver->primary => "");
* @param bool whether to print the query
* @return Min_Result
*/
- 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, $jush;
$is_group = (count($group) < count($select));
$query = $adminer->selectQueryBuild($select, $where, $group, $order, $limit, $page);
$as = convert_field($fields[key($row)]);
$select = array($as ? $as : idf_escape(key($row)));
$where[] = where_check($unique_idf, $fields);
- $return = $driver->select($TABLE, $select, $where, $select, array(), 1, 0);
+ $return = $driver->select($TABLE, $select, $where, $select);
if ($return) {
echo reset($return->fetch_row());
}