fix: parse blank count error
This commit is contained in:
parent
b5e6c55749
commit
de31de5d11
|
@ -1732,11 +1732,17 @@ bool fieldOptionsArea(char* p) {
|
||||||
while(p2) {
|
while(p2) {
|
||||||
p2 = strchr(p2, ' ');
|
p2 = strchr(p2, ' ');
|
||||||
if (p2) {
|
if (p2) {
|
||||||
|
if ((p2 - 1)[0] != ',') {
|
||||||
|
// blank if before comma, not calc count. like st(ts timestamp, age int + BLANK + TAB only two blank
|
||||||
cnt ++;
|
cnt ++;
|
||||||
|
}
|
||||||
|
|
||||||
|
// continue blank is one blank
|
||||||
while (p2[1] != 0 && p2[1] == ' ') {
|
while (p2[1] != 0 && p2[1] == ' ') {
|
||||||
// move next if blank again
|
// move next if blank again
|
||||||
p2 += 1;
|
p2 += 1;
|
||||||
}
|
}
|
||||||
|
p2 += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue