bug #2974067 non-binary fields shown as hex
This commit is contained in:
@@ -2600,8 +2600,19 @@ function PMA_printable_bit_value($value, $length) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a BIT type default value
|
||||
* for example, b'010' becomes 010
|
||||
* 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
|
||||
*
|
||||
* @uses strtr()
|
||||
* @param string $bit_default_value
|
||||
|
Reference in New Issue
Block a user