{"action":"closed","issue":{"url":"https://api.github.com/repos/vapor/fluent-mysql/issues/98","repository_url":"https://api.github.com/repos/vapor/fluent-mysql","labels_url":"https://api.github.com/repos/vapor/fluent-mysql/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/vapor/fluent-mysql/issues/98/comments","events_url":"https://api.github.com/repos/vapor/fluent-mysql/issues/98/events","html_url":"https://github.com/vapor/fluent-mysql/issues/98","id":309821785,"node_id":"MDU6SXNzdWUzMDk4MjE3ODU=","number":98,"title":"`property ~~ []` SQL Syntax is Broken","user":{"login":"calebkleveter","id":13837190,"node_id":"MDQ6VXNlcjEzODM3MTkw","avatar_url":"https://avatars2.githubusercontent.com/u/13837190?v=4","gravatar_id":"","url":"https://api.github.com/users/calebkleveter","html_url":"https://github.com/calebkleveter","followers_url":"https://api.github.com/users/calebkleveter/followers","following_url":"https://api.github.com/users/calebkleveter/following{/other_user}","gists_url":"https://api.github.com/users/calebkleveter/gists{/gist_id}","starred_url":"https://api.github.com/users/calebkleveter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebkleveter/subscriptions","organizations_url":"https://api.github.com/users/calebkleveter/orgs","repos_url":"https://api.github.com/users/calebkleveter/repos","events_url":"https://api.github.com/users/calebkleveter/events{/privacy}","received_events_url":"https://api.github.com/users/calebkleveter/received_events","type":"User","site_admin":false},"labels":[{"id":330494394,"node_id":"MDU6TGFiZWwzMzA0OTQzOTQ=","url":"https://api.github.com/repos/vapor/fluent-mysql/labels/bug","name":"bug","color":"d93f0b","default":true}],"state":"closed","locked":false,"assignee":{"login":"tanner0101","id":1342803,"node_id":"MDQ6VXNlcjEzNDI4MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1342803?v=4","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"assignees":[{"login":"tanner0101","id":1342803,"node_id":"MDQ6VXNlcjEzNDI4MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1342803?v=4","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/vapor/fluent-mysql/milestones/14","html_url":"https://github.com/vapor/fluent-mysql/milestone/14","labels_url":"https://api.github.com/repos/vapor/fluent-mysql/milestones/14/labels","id":2989805,"node_id":"MDk6TWlsZXN0b25lMjk4OTgwNQ==","number":14,"title":"3.0.0","description":null,"creator":{"login":"tanner0101","id":1342803,"node_id":"MDQ6VXNlcjEzNDI4MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1342803?v=4","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"open","created_at":"2017-12-19T21:40:32Z","updated_at":"2018-06-14T21:41:12Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-03-29T16:29:15Z","updated_at":"2018-06-14T21:41:12Z","closed_at":"2018-06-14T21:41:12Z","author_association":"MEMBER","body":"When you try run a query that gets models based on the elements in an array and the array is empty, like this:\r\n\r\n```swift\r\nMyModel.query(on: request).filter(\\.id ~~ [])\r\n```\r\n\r\nInstead of generating a `WHERE (false)` statement, it creates \r\n\r\n```sql\r\nWHERE (`mymodels`.`id` false)\r\n```"}}
{"actor":{"display_login":"tanner0101"}}