Check if the character_set_id for a column is NULL before comparing it
to a value to fix uninitialized warnings in the tests.
$info->{data_type} = 'blob';
}
elsif ($sub_type_name eq 'TEXT') {
- if ($char_set_id == 3) {
+ if (defined $char_set_id && $char_set_id == 3) {
$info->{data_type} = 'blob sub_type text character set unicode_fss';
}
else {
if ($data_type =~ /^(?:char|varchar)\z/) {
$info->{size} = $char_length;
- if ($char_set_id == 3) {
+ if (defined $char_set_id && $char_set_id == 3) {
$info->{data_type} .= '(x) character set unicode_fss';
}
}