The previous patch fixed the csv engine to support dos, linux, and mac line endings. The patch, however, had
a problem when the table only has a single record in it. This patch corrects that. ha_tina.cc: Fix problem with previous patch when there is only one record in the table
This commit is contained in:
parent
c492b58920
commit
e056a96a29
@ -487,6 +487,13 @@ byte * find_eoln(byte *data, off_t begin, off_t end, int *eoln_len)
|
||||
else
|
||||
return data+dataend;
|
||||
|
||||
/*
|
||||
if we only have one record in the file then our for loop will break
|
||||
before we return. we should still have seen end of line markers and
|
||||
so we just return the line here
|
||||
*/
|
||||
if (*eoln_len > 0)
|
||||
return data+dataend;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user