8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Correction for my prior commit.

This commit is contained in:
dimitr 2008-02-20 15:11:35 +00:00
parent 2760c2ce02
commit b745ca1f93

View File

@ -776,7 +776,8 @@ void INI_init2()
// In ODS prior to 11.2 all varchar columns were actually
// two bytes shorter than defined in fields.h
if (ENCODE_ODS(major_version, minor_original) < ODS_11_2)
if (desc->dsc_dtype == dtype_varying &&
ENCODE_ODS(major_version, minor_original) < ODS_11_2)
{
desc->dsc_length -= sizeof(USHORT);
}