bug #2974067 non-binary fields shown as hex

This commit is contained in:
Marc Delisle
2010-04-23 14:00:53 -04:00
parent 769aec95ef
commit acdf39e95b
3 changed files with 13 additions and 1 deletions

View File

@@ -2595,6 +2595,17 @@ function PMA_printable_bit_value($value, $length) {
return $printable;
}
/**
* Verifies whether the value contains a non-printable character
*
* @uses preg_match()
* @param string $value
* @return boolean
*/
function PMA_contains_nonprintable_ascii($value) {
return preg_match('@[^[:print:]]@', $value);
}
/**
* Converts a BIT type default value
* for example, b'010' becomes 010