1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Better support for bit data type

This commit is contained in:
Jakub Vrana
2011-02-10 11:00:26 +01:00
parent d663eed8a5
commit 24fac38d26
3 changed files with 7 additions and 8 deletions

View File

@@ -459,7 +459,7 @@ username.form['driver'].onchange();
*/
function processInput($field, $value, $function = "") {
$name = $field["field"];
$return = q($value);
$return = ($field["type"] == "bit" && ereg('^[0-9]+$', $value) ? $value : q($value));
if (ereg('^(now|getdate|uuid)$', $function)) {
$return = "$function()";
} elseif (ereg('^current_(date|timestamp)$', $function)) {