Display boolean values as code (bug #562)
This commit is contained in:
parent
452b9ad7f1
commit
f0d2af329a
|
@ -255,7 +255,7 @@ class Adminer {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function selectVal($val, $link, $field, $original) {
|
function selectVal($val, $link, $field, $original) {
|
||||||
$return = ($val === null ? "<i>NULL</i>" : (preg_match("~char|binary~", $field["type"]) && !preg_match("~var~", $field["type"]) ? "<code>$val</code>" : $val));
|
$return = ($val === null ? "<i>NULL</i>" : (preg_match("~char|binary|boolean~", $field["type"]) && !preg_match("~var~", $field["type"]) ? "<code>$val</code>" : $val));
|
||||||
if (preg_match('~blob|bytea|raw|file~', $field["type"]) && !is_utf8($val)) {
|
if (preg_match('~blob|bytea|raw|file~', $field["type"]) && !is_utf8($val)) {
|
||||||
$return = "<i>" . lang('%d byte(s)', strlen($original)) . "</i>";
|
$return = "<i>" . lang('%d byte(s)', strlen($original)) . "</i>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ PostgreSQL: Respect NULL default value
|
||||||
PostgreSQL: Display foreign tables (bug #576)
|
PostgreSQL: Display foreign tables (bug #576)
|
||||||
PostgreSQL: Do not export triggers if not requested
|
PostgreSQL: Do not export triggers if not requested
|
||||||
PostgreSQL: Export DROP SEQUENCE if dropping table
|
PostgreSQL: Export DROP SEQUENCE if dropping table
|
||||||
|
PostgreSQL: Display boolean values as code (bug #562)
|
||||||
MS SQL: Support freetds
|
MS SQL: Support freetds
|
||||||
Elasticsearch: Insert, update, delete
|
Elasticsearch: Insert, update, delete
|
||||||
MongoDB: Support mongodb PHP extension
|
MongoDB: Support mongodb PHP extension
|
||||||
|
|
Loading…
Reference in a new issue