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

Display bit default value same as existing values

This commit is contained in:
Jakub Vrana
2013-04-26 23:21:09 -07:00
parent 7541ceb1ca
commit 49c1484722
2 changed files with 8 additions and 2 deletions

View File

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