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

Fixed dsc::isNumeric(). Avoid duplication in type definitions.

This commit is contained in:
Dmitry Yemanov 2021-05-31 13:54:34 +03:00
parent 32c8cc1b1c
commit 1da7502665

View File

@ -146,12 +146,12 @@ typedef struct dsc
bool isNumeric() const
{
return (dsc_dtype >= dtype_byte && dsc_dtype <= dtype_d_float) || dsc_dtype == dtype_int64;
return DTYPE_IS_NUMERIC(dsc_dtype);
}
bool isText() const
{
return dsc_dtype >= dtype_text && dsc_dtype <= dtype_varying;
return DTYPE_IS_TEXT(dsc_dtype);
}
bool isDbKey() const
@ -186,7 +186,7 @@ typedef struct dsc
bool isDecFloat() const
{
return dsc_dtype == dtype_dec128 || dsc_dtype == dtype_dec64;
return DTYPE_IS_DECFLOAT(dsc_dtype);
}
bool isInt128() const