Merge pull request #1202 from taosdata/feature/lihui

Feature/lihui
This commit is contained in:
Bomin Zhang 2020-02-09 16:50:24 +08:00 committed by GitHub
commit 4ab60b2e2a
1 changed files with 6 additions and 2 deletions

View File

@ -976,11 +976,15 @@ void assignVal(char *val, const char *src, int32_t len, int32_t type) {
break;
}
case TSDB_DATA_TYPE_FLOAT: {
*((float *)val) = GET_FLOAT_VAL(src);
float fv = GET_FLOAT_VAL(src);
SET_FLOAT_VAL_ALIGN(val, &fv);
//*((float *)val) = GET_FLOAT_VAL(src);
break;
};
case TSDB_DATA_TYPE_DOUBLE: {
*((double *)val) = GET_DOUBLE_VAL(src);
double dv = GET_DOUBLE_VAL(src);
SET_DOUBLE_VAL_ALIGN(val, &dv);
//*((double *)val) = GET_DOUBLE_VAL(src);
break;
};
case TSDB_DATA_TYPE_TIMESTAMP: