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

Changes here and there forgotten when adding new datatypes

This commit is contained in:
AlexPeshkoff 2017-12-08 13:42:06 +03:00
parent 0b0d6dd4a0
commit ebc1b1cabc
4 changed files with 13 additions and 28 deletions

View File

@ -1582,6 +1582,12 @@ void put_data(burp_rel* relation)
add_byte(blr, field->fld_scale);
break;
case blr_dec_fixed:
alignment = type_alignments[dtype_dec_fixed];
add_byte(blr, field->fld_type);
add_byte(blr, field->fld_scale);
break;
case blr_double:
alignment = type_alignments[dtype_double];
add_byte(blr, field->fld_type);

View File

@ -2796,6 +2796,7 @@ rec_type get_data(BurpGlobals* tdgbl, burp_rel* relation, bool skip_relation)
case blr_long:
case blr_quad:
case blr_int64:
case blr_dec_fixed:
add_byte(blr, field->fld_type);
add_byte(blr, field->fld_scale);
break;

View File

@ -70,32 +70,6 @@ static const USHORT _DSC_convert_to_text_length[DTYPE_TYPE_MAX] =
36 // dtype_dec_fixed coeff(34) + 1(+-) + 1(.)
};
// blr to dsc type conversions
static const USHORT DSC_blr_type_mapping[] =
{
blr_null,
blr_text,
blr_cstring,
blr_varying,
blr_null,
blr_null,
blr_null,
blr_null,
blr_short,
blr_long,
blr_double,
blr_d_float,
blr_sql_date,
blr_sql_time,
blr_timestamp,
blr_blob,
blr_blob,
blr_int64,
blr_null,
blr_bool,
blr_dec64,
blr_dec128
};
// Unimplemented names are in lowercase & <brackets>
// Datatypes that represent a range of SQL datatypes are in lowercase
@ -124,7 +98,8 @@ static const TEXT* const DSC_dtype_names[] =
"DB_KEY",
"BOOLEAN",
"DECFLOAT(16)",
"DECFLOAT(34)"
"DECFLOAT(34)",
"DECIMAL(34)"
};

View File

@ -142,7 +142,10 @@ static const TEXT dtypes[DTYPE_TYPE_MAX][36] =
"ARRAY",
"BIGINT",
"DBKEY", // internal
"BOOLEAN"
"BOOLEAN",
"DECFLOAT(16)",
"DECFLOAT(34)",
"DECIMAL(34)"
};