You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In stats.c you have the function csv_escape.
in csv_escape, you
Check if there is a comma or doublequote:
if there isn't, you just pass along the string.
If there is a doublequote, you cycle through the string and double up the doublequotes.
But you don't do anything if there is a comma in the string. I think you should have to escape strings with commas too.
Also, if I remember correctly (and its been like 15yrs since I took C), counting starts at 0 in C and while loops check the condition before executing the loop, so I think your while loop is cutting off the first character of the string since it will not add the 'zeroth' character of the string to *out
The text was updated successfully, but these errors were encountered:
Yeah. I meant to surround by double-quotes in the "else" part, it must have been very late when I wrote it, sorry about that. It should be fixed in v2.4.1
sist2 version: 2.4.0
Platform (Linux or Docker): Docker
Elasticsearch version: 7.7.0
In stats.c you have the function csv_escape.
in csv_escape, you
Check if there is a comma or doublequote:
if there isn't, you just pass along the string.
If there is a doublequote, you cycle through the string and double up the doublequotes.
But you don't do anything if there is a comma in the string. I think you should have to escape strings with commas too.
Also, if I remember correctly (and its been like 15yrs since I took C), counting starts at 0 in C and while loops check the condition before executing the loop, so I think your while loop is cutting off the first character of the string since it will not add the 'zeroth' character of the string to
*out
The text was updated successfully, but these errors were encountered: