Cython API: Views: fixed a bug when rewriting a column with different

attributes (last line is not written anymore)
This commit is contained in:
Celine Mercier
2019-03-12 16:40:30 +01:00
parent a9ba7744cf
commit 6afd1294a7

View File

@ -263,7 +263,6 @@ cdef class View(OBIWrapper) :
# TODO warning, not multithreading compliant
# TODO there is a bug when rewriting a partial line with None values
cpdef Column rewrite_column_with_diff_attributes(self,
object column_name,
obitype_t new_data_type=<obitype_t>OBI_VOID,
@ -272,7 +271,7 @@ cdef class View(OBIWrapper) :
cdef Column old_column
cdef Column new_column
cdef index_t length = len(self)
cdef index_t length = len(self) - 1
cdef column_name_b = tobytes(column_name)
if not self.active() :