Fix special character in regex test.
parent
84ab01e6b7
commit
faf67b3939
|
@ -227,7 +227,7 @@ func (self *QueryApiSuite) TestErrorInStartTime(c *C) {
|
|||
queriesAndErrors := map[string]string{
|
||||
"select * from t where time > now() * 1d and time < now() - 1h;": ".*'\\*'.*",
|
||||
"select * from t where time > blah * 1d and time < now() - 1h;": ".*strconv.ParseFloat.*",
|
||||
"select * from t where time = now() * 1d and time < now() - 1h;": ".*Cannot use '*' in a time expression",
|
||||
"select * from t where time = now() * 1d and time < now() - 1h;": ".*Cannot use '\\*' in a time expression.*",
|
||||
"select * from t where time > now() - 1d or time > now() - 1h;": ".*Invalid where.*",
|
||||
"select * from t where time > foo() - 1d or time > now() - 1h;": ".*Invalid use of function foo.*",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue