{"action":"created","issue":{"url":"https://api.github.com/repos/jkk/honeysql/issues/168","repository_url":"https://api.github.com/repos/jkk/honeysql","labels_url":"https://api.github.com/repos/jkk/honeysql/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/jkk/honeysql/issues/168/comments","events_url":"https://api.github.com/repos/jkk/honeysql/issues/168/events","html_url":"https://github.com/jkk/honeysql/issues/168","id":240407585,"number":168,"title":"0.9.0 fails to format some queries which worked on 0.8.2","user":{"login":"jetmind","id":849266,"avatar_url":"https://avatars3.githubusercontent.com/u/849266?v=3","gravatar_id":"","url":"https://api.github.com/users/jetmind","html_url":"https://github.com/jetmind","followers_url":"https://api.github.com/users/jetmind/followers","following_url":"https://api.github.com/users/jetmind/following{/other_user}","gists_url":"https://api.github.com/users/jetmind/gists{/gist_id}","starred_url":"https://api.github.com/users/jetmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetmind/subscriptions","organizations_url":"https://api.github.com/users/jetmind/orgs","repos_url":"https://api.github.com/users/jetmind/repos","events_url":"https://api.github.com/users/jetmind/events{/privacy}","received_events_url":"https://api.github.com/users/jetmind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-04T12:34:22Z","updated_at":"2017-07-09T03:05:18Z","closed_at":null,"body":"Changes in `0.9.0` regarding sequences acting as function invocation in value position are breaking some queries which worked in `0.8.2`.\r\n\r\nFor example, you can write a query with tuples like this:\r\n\r\n```\r\n(sql/format {:select [:id]\r\n                     :from   [:table]\r\n                     :where  [:= [:a :b] [1 2]]})\r\n\r\n;;  => [SELECT id FROM table WHERE (a, b) = (?, ?) 1 2]\r\n```\r\n\r\nThis works on `0.8.2` but fails on `0.9.0` with `java.lang.ClassCastException` (trying to evaluate `(name 1)`.\r\n\r\n\r\n\r\nIt would be great if backward compatibility was preserved."},"comment":{"url":"https://api.github.com/repos/jkk/honeysql/issues/comments/313894542","html_url":"https://github.com/jkk/honeysql/issues/168#issuecomment-313894542","issue_url":"https://api.github.com/repos/jkk/honeysql/issues/168","id":313894542,"user":{"login":"MichaelBlume","id":208853,"avatar_url":"https://avatars0.githubusercontent.com/u/208853?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelBlume","html_url":"https://github.com/MichaelBlume","followers_url":"https://api.github.com/users/MichaelBlume/followers","following_url":"https://api.github.com/users/MichaelBlume/following{/other_user}","gists_url":"https://api.github.com/users/MichaelBlume/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelBlume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelBlume/subscriptions","organizations_url":"https://api.github.com/users/MichaelBlume/orgs","repos_url":"https://api.github.com/users/MichaelBlume/repos","events_url":"https://api.github.com/users/MichaelBlume/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelBlume/received_events","type":"User","site_admin":false},"created_at":"2017-07-09T03:05:18Z","updated_at":"2017-07-09T03:05:18Z","body":"I'm inclined to just revert #149 but I'll update the changelog first."}}
{"actor":{"display_login":"MichaelBlume"}}