Add test for influxql case insensitivity.
parent
cfc20e0447
commit
c2c255fcda
|
@ -68,6 +68,15 @@ func TestParser_ParseStatement(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// SELECT statement (lowercase)
|
||||||
|
{
|
||||||
|
s: `select my_field from myseries`,
|
||||||
|
stmt: &influxql.SelectStatement{
|
||||||
|
Fields: influxql.Fields{&influxql.Field{Expr: &influxql.VarRef{Val: "my_field"}}},
|
||||||
|
Source: &influxql.Series{Name: "myseries"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
// DELETE statement
|
// DELETE statement
|
||||||
{
|
{
|
||||||
s: `DELETE FROM myseries WHERE host = 'hosta.influxdb.org'`,
|
s: `DELETE FROM myseries WHERE host = 'hosta.influxdb.org'`,
|
||||||
|
|
Loading…
Reference in New Issue