Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to query fields with single quotes via CLI or admin UI #3403

Closed
jhorwit2 opened this issue Jul 20, 2015 · 0 comments
Closed

Unable to query fields with single quotes via CLI or admin UI #3403

jhorwit2 opened this issue Jul 20, 2015 · 0 comments

Comments

@jhorwit2
Copy link
Contributor

> insert test value="foo'bar"
> select * from test
name: test
time                b   value
----                -   -----
2015-07-20T23:42:21.952904634Z      foo'bar

> select * from test where value = 'foo''bar'
ERR: error parsing query: found bar, expected SELECT, DELETE, SHOW, CREATE, DROP, GRANT, REVOKE, ALTER, SET at line 1, char 38
> select * from test where value = 'foo'bar'
ERR: error parsing query: found bar, expected SELECT, DELETE, SHOW, CREATE, DROP, GRANT, REVOKE, ALTER, SET at line 1, char 39
> select * from test where value = 'foo\'bar'
ERR: error parsing query: found \', expected identifier, string, number, bool at line 1, char 39
> select * from test where value = 'foo\\'bar'
ERR: error parsing query: found bar, expected SELECT, DELETE, SHOW, CREATE, DROP, GRANT, REVOKE, ALTER, SET at line 1, char 41
> select * from test where value =~ /foo.bar/
> 

https://groups.google.com/forum/#!topic/influxdb/tM5JysvWE2A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant