1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-14 02:23:59 +02:00

MongoDB: Don't store unset values

This commit is contained in:
Jakub Vrana
2014-01-11 17:37:01 -08:00
parent 9824540ed8
commit ed13006512
3 changed files with 16 additions and 4 deletions

View File

@@ -10,6 +10,14 @@
$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]