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) \
|
||||
((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) \
|
||||
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) \
|
||||
do { \
|
||||
|
@ -2743,7 +2743,7 @@ static int8_t getStateOpType(char *opStr) {
|
|||
default: \
|
||||
break; \
|
||||
} \
|
||||
} while (0) \
|
||||
} while (0)
|
||||
|
||||
static bool checkStateOp(int8_t op, SColumnInfoData* pCol, int32_t index, SVariant param) {
|
||||
char* data = colDataGetData(pCol, index);
|
||||
|
|
Loading…
Reference in New Issue