fix(decimal): fix decimal build and tests
This commit is contained in:
parent
d73e411b11
commit
2526fb8448
|
@ -702,7 +702,7 @@ TEST(decimal, toStr) {
|
|||
SDataType getDecimalType(uint8_t prec, uint8_t scale) {
|
||||
if (prec > TSDB_DECIMAL_MAX_PRECISION) throw std::string("invalid prec: ") + std::to_string(prec);
|
||||
uint8_t type = decimalTypeFromPrecision(prec);
|
||||
return {.type = type, .precision = prec, .scale = scale, .bytes = tDataTypes[type].bytes};
|
||||
return {type, prec, scale, tDataTypes[type].bytes};
|
||||
}
|
||||
|
||||
bool operator==(const SDataType& lt, const SDataType& rt) {
|
||||
|
|
|
@ -172,7 +172,7 @@ void clearColValArraySml(SArray* pCols) {
|
|||
taosMemoryFreeClear(pCol->value.pData);
|
||||
}
|
||||
pCol->flag = CV_FLAG_NONE;
|
||||
valueClearDatum(&pCol->value, pCol->value.type);
|
||||
pCol->value.val = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -317,6 +317,7 @@
|
|||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/tsma2.py -Q 2
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/tsma2.py -Q 3
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/tsma2.py -Q 4
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/decimal.py
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/decimal.py -Q 4
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/decimal.py -Q 3
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/decimal.py -Q 2
|
||||
|
|
Loading…
Reference in New Issue