Add test for influxql case insensitivity.

pull/1159/head
Ben Johnson 2014-11-24 18:14:03 -07:00
parent cfc20e0447
commit c2c255fcda
1 changed files with 9 additions and 0 deletions

View File

@ -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'`,