mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Fixed dsc::isNumeric(). Avoid duplication in type definitions.
This commit is contained in:
parent
32c8cc1b1c
commit
1da7502665
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user