{"action":"opened","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/1490","labels_url":"https://api.github.com/repos/grafana/grafana/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/1490/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/1490/events","html_url":"https://github.com/grafana/grafana/issues/1490","id":57898271,"number":1490,"title":"Escape issue when trying to select value for series","user":{"login":"kenzodeluxe","id":6376222,"avatar_url":"https://avatars.githubusercontent.com/u/6376222?v=3","gravatar_id":"","url":"https://api.github.com/users/kenzodeluxe","html_url":"https://github.com/kenzodeluxe","followers_url":"https://api.github.com/users/kenzodeluxe/followers","following_url":"https://api.github.com/users/kenzodeluxe/following{/other_user}","gists_url":"https://api.github.com/users/kenzodeluxe/gists{/gist_id}","starred_url":"https://api.github.com/users/kenzodeluxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenzodeluxe/subscriptions","organizations_url":"https://api.github.com/users/kenzodeluxe/orgs","repos_url":"https://api.github.com/users/kenzodeluxe/repos","events_url":"https://api.github.com/users/kenzodeluxe/events{/privacy}","received_events_url":"https://api.github.com/users/kenzodeluxe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-17T08:54:34Z","updated_at":"2015-02-17T08:54:34Z","closed_at":null,"body":"When trying to select values from series that contain a / in the name, it appears escaping is wrong. An example request looks as follows:\r\nhttp://example.com:8086/db/database/series?p=abc123&q=select+*+from+%2Fsomeseries%2F1.2.3.4%2F+limit+1&u=someone\r\nwhich results in \r\nsyntax error, unexpected TABLE_NAME, expecting $end\r\nselect * from /someseries/1.2.3.4/ limit 1\r\n                                    ^^^^^^^^^^^^^\r\n\r\nWhen changing \r\n(b=\"/\"+b+\"/\"),this._seriesQuery(\"select * from \"+b+\" limit 1\")\r\nto\r\n(b=\"\\\"\"+b+\"\\\"\"),this._seriesQuery(\"select * from \"+b+\" limit 1\")\r\nin app.js it works as expected."}}