1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Shorten JSON values in select (bug #594)

This commit is contained in:
Jakub Vrana
2018-02-09 13:48:33 +01:00
parent 34d338b185
commit ffb4ee3a61
2 changed files with 4 additions and 1 deletions

View File

@@ -1291,7 +1291,7 @@ function is_url($string) {
* @return bool
*/
function is_shortable($field) {
return preg_match('~char|text|lob|geometry|point|linestring|polygon|string|bytea~', $field["type"]);
return preg_match('~char|text|json|lob|geometry|point|linestring|polygon|string|bytea~', $field["type"]);
}
/** Get query to compute number of found rows