Older versions erroneously reported the size in bytes (using UTF-16),
not characters.
- Fix MySQL column info detection with multiple schemas (RT#82358)
- Fix skip count for Oracle multi-schema tests
- Actually test data types that require separate tables
+ - Fix national character type sizes on DBD::Oracle >= 1.52
0.07037 2013-10-30
- Allow overriding individual moniker parts
}
}
+ # Old DBD::Oracle report the size in (UTF-16) bytes, not characters
+ my $nchar_size_factor = $DBD::Oracle::VERSION >= 1.52 ? 1 : 2;
+
while (my ($col, $info) = each %$result) {
no warnings 'uninitialized';
$info->{size} = $info->{size}[0] / 8;
}
else {
- $info->{size} = $info->{size} / 2;
+ $info->{size} = $info->{size} / $nchar_size_factor;
}
}
elsif ($info->{data_type} =~ /^(?:var)?char2?\z/i) {