format code
This commit is contained in:
parent
4c603fee55
commit
167cdc79c5
|
@ -38,19 +38,19 @@ extern "C" {
|
||||||
(_k)->ekey.ts = INT64_MIN; \
|
(_k)->ekey.ts = INT64_MIN; \
|
||||||
} while (0);
|
} while (0);
|
||||||
|
|
||||||
#define tRowGetKeyEx(_pRow, _pKey) \
|
#define tRowGetKeyEx(_pRow, _pKey) \
|
||||||
{ \
|
{ \
|
||||||
if ((_pRow)->type == TSDBROW_ROW_FMT) { \
|
if ((_pRow)->type == TSDBROW_ROW_FMT) { \
|
||||||
(_pKey)->ts = (_pRow)->pTSRow->ts; \
|
(_pKey)->ts = (_pRow)->pTSRow->ts; \
|
||||||
if ((_pRow)->pTSRow->numOfPKs > 0) { \
|
if ((_pRow)->pTSRow->numOfPKs > 0) { \
|
||||||
tRowGetPrimaryKey((_pRow)->pTSRow, (_pKey)); \
|
tRowGetPrimaryKey((_pRow)->pTSRow, (_pKey)); \
|
||||||
} \
|
} \
|
||||||
} else { \
|
} else { \
|
||||||
(_pKey)->ts = (_pRow)->pBlockData->aTSKEY[(_pRow)->iRow]; \
|
(_pKey)->ts = (_pRow)->pBlockData->aTSKEY[(_pRow)->iRow]; \
|
||||||
if ((_pRow)->pBlockData->nColData > 0) { \
|
if ((_pRow)->pBlockData->nColData > 0) { \
|
||||||
tColRowGetPrimaryKey((_pRow)->pBlockData, (_pRow)->iRow, (_pKey)); \
|
tColRowGetPrimaryKey((_pRow)->pBlockData, (_pRow)->iRow, (_pKey)); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
Loading…
Reference in New Issue