[td-1373]
This commit is contained in:
parent
d5df0e03f4
commit
30642fa1c6
|
@ -144,7 +144,7 @@ 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;
|
||||||
|
|
Loading…
Reference in New Issue