Fix special character in regex test.

pull/151/head
Todd Persen 2013-12-30 15:56:41 -05:00
parent 84ab01e6b7
commit faf67b3939
1 changed files with 1 additions and 1 deletions

View File

@ -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.*",
}