mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/protoparser/influx: make sure that escaped whitespace can be put in measurement, tag names and field names
This commit is contained in:
parent
7faa762021
commit
b861a64510
1 changed files with 4 additions and 4 deletions
|
@ -344,15 +344,15 @@ func TestRowsUnmarshalSuccess(t *testing.T) {
|
|||
})
|
||||
|
||||
// Escape chars
|
||||
f(`fo\,bar\=baz,x\=\b=\\a\,\=\q\ \\\a\=\,=4.34`, &Rows{
|
||||
f(`fo\,bar\=b\ az,x\=\ b=\\a\,\=\q\ \\\a\ b\=\,=4.34`, &Rows{
|
||||
Rows: []Row{{
|
||||
Measurement: `fo,bar=baz`,
|
||||
Measurement: `fo,bar=b az`,
|
||||
Tags: []Tag{{
|
||||
Key: `x=\b`,
|
||||
Key: `x= b`,
|
||||
Value: `\a,=\q `,
|
||||
}},
|
||||
Fields: []Field{{
|
||||
Key: `\\a=,`,
|
||||
Key: `\\a b=,`,
|
||||
Value: 4.34,
|
||||
}},
|
||||
}},
|
||||
|
|
Loading…
Reference in a new issue