refactor code format
This commit is contained in:
parent
57cd462000
commit
46c9e0f1c2
|
@ -2714,10 +2714,10 @@ static int8_t getStateOpType(char *opStr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GET_STATE_VAL(param) \
|
#define GET_STATE_VAL(param) \
|
||||||
((param.nType == TSDB_DATA_TYPE_BIGINT) ? (param.i) : (param.d)) \
|
((param.nType == TSDB_DATA_TYPE_BIGINT) ? (param.i) : (param.d))
|
||||||
|
|
||||||
#define STATE_COMP(_op, _lval, _param) \
|
#define STATE_COMP(_op, _lval, _param) \
|
||||||
STATE_COMP_IMPL(_op, _lval, GET_STATE_VAL(_param)) \
|
STATE_COMP_IMPL(_op, _lval, GET_STATE_VAL(_param))
|
||||||
|
|
||||||
#define STATE_COMP_IMPL(_op, _lval, _rval) \
|
#define STATE_COMP_IMPL(_op, _lval, _rval) \
|
||||||
do { \
|
do { \
|
||||||
|
@ -2743,7 +2743,7 @@ static int8_t getStateOpType(char *opStr) {
|
||||||
default: \
|
default: \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
} while (0) \
|
} while (0)
|
||||||
|
|
||||||
static bool checkStateOp(int8_t op, SColumnInfoData* pCol, int32_t index, SVariant param) {
|
static bool checkStateOp(int8_t op, SColumnInfoData* pCol, int32_t index, SVariant param) {
|
||||||
char* data = colDataGetData(pCol, index);
|
char* data = colDataGetData(pCol, index);
|
||||||
|
|
Loading…
Reference in New Issue