C: fixed a bug where indexers referring to tuples of certain types were

not properly closed and imported
This commit is contained in:
Celine Mercier
2020-06-09 14:34:43 +02:00
parent 4aa772c405
commit 8776ce22e6
2 changed files with 3 additions and 3 deletions

View File

@ -1693,8 +1693,8 @@ int obi_close_column(OBIDMS_column_p column)
if (obi_dms_unlist_column(column->dms, column) < 0)
ret_val = -1;
// If the data type is OBI_STR, OBI_SEQ or OBI_QUAL, the associated indexer is closed
if (((column->header)->returned_data_type == OBI_STR) || ((column->header)->returned_data_type == OBI_SEQ) || ((column->header)->returned_data_type == OBI_QUAL))
// If it's a tuple column or the data type is OBI_STR, OBI_SEQ or OBI_QUAL, the associated indexer is closed
if (((column->header)->tuples) || (((column->header)->returned_data_type == OBI_STR) || ((column->header)->returned_data_type == OBI_SEQ) || ((column->header)->returned_data_type == OBI_QUAL)))
if (obi_close_indexer(column->indexer) < 0)
ret_val = -1;