aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/query/parser.go')
-rw-r--r--pkg/query/parser.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/query/parser.go b/pkg/query/parser.go
index 3406bc6..019deac 100644
--- a/pkg/query/parser.go
+++ b/pkg/query/parser.go
@@ -527,7 +527,11 @@ func Parse(tokens []Token) (*Clause, error) {
}
}
- clause.Statements[len(clause.Statements)-1].Value = StringValue{token.Value}
+ if prevToken.Type == TOK_OP_AP {
+ clause.Statements[len(clause.Statements)-1].Value = StringValue{"\"" + token.Value + "\""}
+ } else {
+ clause.Statements[len(clause.Statements)-1].Value = StringValue{token.Value}
+ }
case TOK_VAL_DATETIME:
if !prevToken.Type.isDateOperation() {
return nil, &TokenError{