make bytea fields shortable

This commit is contained in:
nafex 2015-10-06 15:08:02 +02:00 committed by Jakub Vrana
parent 32334f1106
commit 47c582acb3

View file

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