Merge #16063 - Fix #16048 - Allow NULL as default bit value.

Pull-request: #16063
Fixes: #16048
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-04-03 08:57:48 +02:00
commit d8964395c5
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2860,7 +2860,7 @@ class Util
*/
public static function convertBitDefaultValue($bit_default_value)
{
return preg_replace("/^b'(\d*)'?$/", '$1', htmlspecialchars_decode($bit_default_value, ENT_QUOTES), 1);
return preg_replace("/^b'(\d*)'?$/", '$1', htmlspecialchars_decode((string) $bit_default_value, ENT_QUOTES), 1);
}
/**