{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7198","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7198/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7198/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7198/events","html_url":"https://github.com/yiisoft/yii2/pull/7198","id":56904632,"number":7198,"title":"Bug: Snippets callback error on empty search","user":{"login":"Hrumpa","id":662195,"avatar_url":"https://avatars.githubusercontent.com/u/662195?v=3","gravatar_id":"","url":"https://api.github.com/users/Hrumpa","html_url":"https://github.com/Hrumpa","followers_url":"https://api.github.com/users/Hrumpa/followers","following_url":"https://api.github.com/users/Hrumpa/following{/other_user}","gists_url":"https://api.github.com/users/Hrumpa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hrumpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hrumpa/subscriptions","organizations_url":"https://api.github.com/users/Hrumpa/orgs","repos_url":"https://api.github.com/users/Hrumpa/repos","events_url":"https://api.github.com/users/Hrumpa/events{/privacy}","received_events_url":"https://api.github.com/users/Hrumpa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/feature:sphinx","name":"feature:sphinx","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-07T09:15:27Z","updated_at":"2015-02-11T14:12:04Z","closed_at":"2015-02-11T14:12:04Z","pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/7198","html_url":"https://github.com/yiisoft/yii2/pull/7198","diff_url":"https://github.com/yiisoft/yii2/pull/7198.diff","patch_url":"https://github.com/yiisoft/yii2/pull/7198.patch"},"body":"Sphinx daemon throws an error while trying to apply snippets callback to form a SphinxQL request when search request is unsuccessful (no rows fetched). Also there is no sense to try to make snippets on empty search results set.\r\nError:\r\nSQLSTATE[42000]: Syntax error or access violation: 1064 SNIPPETS() argument 1 must be a string or a string list"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/73886378","html_url":"https://github.com/yiisoft/yii2/pull/7198#issuecomment-73886378","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/7198","id":73886378,"user":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T14:12:04Z","updated_at":"2015-02-11T14:12:04Z","body":"Merged manually: 0f247fe"}}