fix: build on win
This commit is contained in:
parent
82d83b2e6b
commit
d41111d5f8
|
@ -30,7 +30,7 @@ char* idxPackJsonData(SIndexTerm* itm);
|
|||
char* idxPackJsonDataPrefix(SIndexTerm* itm, int32_t* skip);
|
||||
char* idxPackJsonDataPrefixNoType(SIndexTerm* itm, int32_t* skip);
|
||||
|
||||
typedef enum { MATCH, CONTINUE, BREAK, ERROR } TExeCond;
|
||||
typedef enum { MATCH, CONTINUE, BREAK, FAILED } TExeCond;
|
||||
|
||||
typedef TExeCond (*_cache_range_compare)(void* a, void* b, int8_t type);
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ static int32_t cacheSearchCompareFunc(void* cache, SIndexTerm* term, SIdxTRslt*
|
|||
}
|
||||
CacheTerm* c = (CacheTerm*)SL_GET_NODE_DATA(node);
|
||||
TExeCond cond = cmpFn(c->colVal, pCt->colVal, pCt->colType);
|
||||
if (cond == ERROR) {
|
||||
if (cond == FAILED) {
|
||||
code = terrno;
|
||||
goto _return;
|
||||
}
|
||||
|
@ -336,7 +336,7 @@ static int32_t cacheSearchCompareFunc_JSON(void* cache, SIndexTerm* term, SIdxTR
|
|||
memcpy(p, c->colVal, strlen(c->colVal));
|
||||
cond = cmpFn(p + skip, term->colVal, dType);
|
||||
taosMemoryFree(p);
|
||||
if (cond == ERROR) {
|
||||
if (cond == FAILED) {
|
||||
code = terrno;
|
||||
goto _return;
|
||||
}
|
||||
|
|
|
@ -368,7 +368,7 @@ static int32_t tfSearchCompareFunc(void* reader, SIndexTerm* tem, SIdxTRslt* tr,
|
|||
char* ch = (char*)fstSliceData(s, NULL);
|
||||
|
||||
TExeCond cond = cmpFn(ch, p, tem->colType);
|
||||
if (ERROR == cond) {
|
||||
if (FAILED == cond) {
|
||||
swsResultDestroy(rt);
|
||||
code = terrno;
|
||||
goto _return;
|
||||
|
@ -521,7 +521,7 @@ static int32_t tfSearchCompareFunc_JSON(void* reader, SIndexTerm* tem, SIdxTRslt
|
|||
memcpy(tBuf, ch, sz);
|
||||
cond = cmpFn(tBuf + skip, tem->colVal, IDX_TYPE_GET_TYPE(tem->colType));
|
||||
taosMemoryFree(tBuf);
|
||||
if (ERROR == cond) {
|
||||
if (FAILED == cond) {
|
||||
swsResultDestroy(rt);
|
||||
code = terrno;
|
||||
goto _return;
|
||||
|
|
Loading…
Reference in New Issue