{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/blazer/issues/179","repository_url":"https://api.github.com/repos/ankane/blazer","labels_url":"https://api.github.com/repos/ankane/blazer/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/ankane/blazer/issues/179/comments","events_url":"https://api.github.com/repos/ankane/blazer/issues/179/events","html_url":"https://github.com/ankane/blazer/issues/179","id":281843820,"node_id":"MDU6SXNzdWUyODE4NDM4MjA=","number":179,"title":"Support for variables that are already inside quotes","user":{"login":"dwbutler","id":746336,"node_id":"MDQ6VXNlcjc0NjMzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/746336?v=4","gravatar_id":"","url":"https://api.github.com/users/dwbutler","html_url":"https://github.com/dwbutler","followers_url":"https://api.github.com/users/dwbutler/followers","following_url":"https://api.github.com/users/dwbutler/following{/other_user}","gists_url":"https://api.github.com/users/dwbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/dwbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwbutler/subscriptions","organizations_url":"https://api.github.com/users/dwbutler/orgs","repos_url":"https://api.github.com/users/dwbutler/repos","events_url":"https://api.github.com/users/dwbutler/events{/privacy}","received_events_url":"https://api.github.com/users/dwbutler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-13T18:04:26Z","updated_at":"2018-12-11T09:13:53Z","closed_at":"2018-12-11T09:13:53Z","author_association":"NONE","body":"I'm trying to create a report with a variable that feeds into a statement `WHERE name ILIKE '%{keyword}%'`. (This is a Postgres database.) When I run the report with a variable value such as `health`, the generated query is `WHERE name ILIKE '%'health'%'`, which is a syntax error. Ideally, there would be some smart detection in place that would detect that the variable is already enclosed in quotes, and avoid double quoting."},"comment":{"url":"https://api.github.com/repos/ankane/blazer/issues/comments/446127440","html_url":"https://github.com/ankane/blazer/issues/179#issuecomment-446127440","issue_url":"https://api.github.com/repos/ankane/blazer/issues/179","id":446127440,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjEyNzQ0MA==","user":{"login":"ankane","id":220358,"node_id":"MDQ6VXNlcjIyMDM1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/220358?v=4","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T09:13:53Z","updated_at":"2018-12-11T09:13:53Z","author_association":"OWNER","body":"FWIW you can also do `WHERE LIKE '%' || {var} || '%'` in Postgres."}}
{"actor":{"display_login":"ankane"}}