class Min_Driver extends Min_SQL {
public $primary = "_id";
- function quote($value) {
- return ($value === null ? $value : parent::quote($value));
- }
-
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
$select = ($select == array("*")
? array()
$this->_conn = $connection;
}
- /** Quote a SQL string or null value
- * @param string
- * @return string
- */
- function quote($value) {
- return ($value === null ? "NULL" : $this->_conn->quote($value));
- }
-
/** Select data from table
* @param string
* @param array result of $adminer->selectColumnsProcess()[0]
return $return;
}
-/** Shortcut for $driver->quote($string)
+/** Shortcut for $connection->quote($string)
* @param string
* @return string
*/
function q($string) {
- global $driver;
- return $driver->quote($string);
+ global $connection;
+ return $connection->quote($string);
}
/** Get list of values from database
return ($field["on_update"] == "CURRENT_TIMESTAMP" ? idf_escape($field["field"]) : false);
}
if ($function == "NULL") {
- $value = null;
+ return "NULL";
}
if ($field["type"] == "set") {
return array_sum((array) $value);
Make master key unreadable to others (bug #410)
Fix edit by long non-utf8 string
Specify encoding for PHP 5.6 with invalid default_charset
+Fix saving NULL value, bug since Adminer 4.0.3
MySQL: Use utf8mb4 if available
Elasticsearch: Use where in select
Danish translation