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:
parent
0b0d6dd4a0
commit
ebc1b1cabc
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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)"
|
||||
};
|
||||
|
||||
|
||||
|
@ -142,7 +142,10 @@ static const TEXT dtypes[DTYPE_TYPE_MAX][36] =
|
||||
"ARRAY",
|
||||
"BIGINT",
|
||||
"DBKEY", // internal
|
||||
"BOOLEAN"
|
||||
"BOOLEAN",
|
||||
"DECFLOAT(16)",
|
||||
"DECFLOAT(34)",
|
||||
"DECIMAL(34)"
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user