[td-1373]

This commit is contained in:
Haojun Liao 2020-10-23 16:10:02 +08:00
parent d5df0e03f4
commit 30642fa1c6
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ void tVariantDestroy(tVariant *pVar) {
void tVariantAssign(tVariant *pDst, const tVariant *pSrc) { void tVariantAssign(tVariant *pDst, const tVariant *pSrc) {
if (pSrc == NULL || pDst == NULL) return; if (pSrc == NULL || pDst == NULL) return;
*pDst = *pSrc; pDst->nType = pSrc->nType;
if (pSrc->nType == TSDB_DATA_TYPE_BINARY || pSrc->nType == TSDB_DATA_TYPE_NCHAR) { if (pSrc->nType == TSDB_DATA_TYPE_BINARY || pSrc->nType == TSDB_DATA_TYPE_NCHAR) {
int32_t allocLen = pSrc->nLen + 1; int32_t allocLen = pSrc->nLen + 1;
int32_t len = pSrc->nLen; int32_t len = pSrc->nLen;