!3470 修复NUMERIC_SIGN宏在值为Nan时获取错误的BUG

Merge pull request !3470 from wanghao19920907/master_fixbug_numeric
This commit is contained in:
opengauss-bot
2023-05-24 01:55:09 +00:00
committed by Gitee
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
#define NUMERIC_SHORT_SIGN_MASK 0x2000
#define NUMERIC_DSCALE_MASK 0x3FFF
#define NUMERIC_SIGN(n) \
(NUMERIC_HEADER_IS_SHORT(n) \
(NUMERIC_IS_SHORT(n) \
? (((n)->choice.n_short.n_header & NUMERIC_SHORT_SIGN_MASK) ? NUMERIC_NEG : NUMERIC_POS) \
: NUMERIC_FLAGBITS(n))
#define NUMERIC_DSCALE(n) \

View File

@ -96,7 +96,7 @@
#define NUMERIC_DSCALE_MASK 0x3FFF
#define NUMERIC_SIGN(n) \
(NUMERIC_HEADER_IS_SHORT(n) \
(NUMERIC_IS_SHORT(n) \
? (((n)->choice.n_short.n_header & NUMERIC_SHORT_SIGN_MASK) ? NUMERIC_NEG : NUMERIC_POS) \
: NUMERIC_FLAGBITS(n))
#define NUMERIC_DSCALE(n) \