From 800098a79536aff581b5d16f67ef2ba964b9ab52 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 23 Jun 2022 18:54:07 +0800 Subject: [PATCH] fix(query): fix syntax error on windows platform. --- source/libs/scalar/test/scalar/scalarTests.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/libs/scalar/test/scalar/scalarTests.cpp b/source/libs/scalar/test/scalar/scalarTests.cpp index e49c11c390..07440e7435 100644 --- a/source/libs/scalar/test/scalar/scalarTests.cpp +++ b/source/libs/scalar/test/scalar/scalarTests.cpp @@ -86,7 +86,8 @@ void scltAppendReservedSlot(SArray *pBlockList, int16_t *dataBlockId, int16_t *s if (newBlock) { SSDataBlock *res = createDataBlock(); - SColumnInfoData idata = {.info = *colInfo}; + SColumnInfoData idata = {0}; + idata.info = *colInfo; colInfoDataEnsureCapacity(&idata, rows); blockDataAppendColInfo(res, &idata); @@ -263,9 +264,6 @@ void scltMakeTargetNode(SNode **pNode, int16_t dataBlockId, int16_t slotId, SNod *pNode = (SNode *)onode; } - - - } TEST(constantTest, bigint_add_bigint) {