{"action":"closed","issue":{"url":"https://api.github.com/repos/dbcli/pgcli/issues/417","repository_url":"https://api.github.com/repos/dbcli/pgcli","labels_url":"https://api.github.com/repos/dbcli/pgcli/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/dbcli/pgcli/issues/417/comments","events_url":"https://api.github.com/repos/dbcli/pgcli/issues/417/events","html_url":"https://github.com/dbcli/pgcli/issues/417","id":117620255,"number":417,"title":"\\x auto: list index out of range ","user":{"login":"carymrobbins","id":3103764,"avatar_url":"https://avatars.githubusercontent.com/u/3103764?v=3","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-11-18T16:09:08Z","updated_at":"2016-06-29T03:21:13Z","closed_at":"2016-06-29T03:21:13Z","body":"It seems that empty result sets with `\\x auto` enabled cause a `list index out of range` exception.\r\n\r\n```\r\ncrobbins> select 1 where false;         \r\n+------------+                          \r\n| ?column?   |                          \r\n|------------|                          \r\n+------------+                          \r\nSELECT 0                                       \r\n          \r\ncrobbins> \\x                            \r\nExpanded display is on.                            \r\n\r\ncrobbins> select 1 where false;         \r\n                                        \r\nSELECT 0                                \r\n             \r\ncrobbins> \\x auto                       \r\nExpanded display is used automatically. \r\n                 \r\ncrobbins> select 1 where false;         \r\nlist index out of range                 \r\n```"}}
{"actor":{"display_login":"amjith"}}