TD-1057 compile error after merge feature/query
This commit is contained in:
parent
01f56ee5aa
commit
8ac389c675
|
@ -972,7 +972,7 @@ static void doFillResult(SSqlObj *pSql, SLocalReducer *pLocalReducer, bool doneO
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pRes->numOfRows > 0) {
|
if (pRes->numOfRows > 0) {
|
||||||
int32_t currentTotal = pRes->numOfRowsGroup + pRes->numOfRows;
|
int32_t currentTotal = (int32_t)(pRes->numOfRowsGroup + pRes->numOfRows);
|
||||||
|
|
||||||
if (pQueryInfo->limit.limit >= 0 && currentTotal > pQueryInfo->limit.limit) {
|
if (pQueryInfo->limit.limit >= 0 && currentTotal > pQueryInfo->limit.limit) {
|
||||||
int32_t overflow = (int32_t)(currentTotal - pQueryInfo->limit.limit);
|
int32_t overflow = (int32_t)(currentTotal - pQueryInfo->limit.limit);
|
||||||
|
|
|
@ -748,11 +748,7 @@ bool simExecuteNativeSqlCommand(SScript *script, char *rest, bool isSlow) {
|
||||||
sprintf(value, "%d", *((int *)row[i]));
|
sprintf(value, "%d", *((int *)row[i]));
|
||||||
break;
|
break;
|
||||||
case TSDB_DATA_TYPE_BIGINT:
|
case TSDB_DATA_TYPE_BIGINT:
|
||||||
#ifdef _TD_ARM_32_
|
sprintf(value, "%" PRId64, *((int64_t *)row[i]));
|
||||||
sprintf(value, "%lld", *((int64_t *)row[i]));
|
|
||||||
#else
|
|
||||||
sprintf(value, "%ld", *((int64_t *)row[i]));
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case TSDB_DATA_TYPE_FLOAT:{
|
case TSDB_DATA_TYPE_FLOAT:{
|
||||||
#ifdef _TD_ARM_32_
|
#ifdef _TD_ARM_32_
|
||||||
|
|
Loading…
Reference in New Issue