Commit fbabbceb authored by Celine Mercier's avatar Celine Mercier

Fixed a bug in the array indexer where the value's length was no

properly set to 0 if the value was NA (ignore previous commit with the
same message)
parent 6f27734d
......@@ -71,13 +71,19 @@ const void* obi_column_get_array(OBIDMS_column_p column, index_t line_nb, int32_
index_t idx;
if (obi_column_prepare_to_get_value(column, line_nb) < 0)
{
*value_length_p = -1;
return OBITuple_NA;
}
idx = *(((index_t*) (column->data)) + line_nb);
// Check NA
if (idx == OBIIdx_NA)
{
*value_length_p = 0;
return OBITuple_NA;
}
return obi_retrieve_array(column->indexer, idx, value_length_p);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment