{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/5183","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/5183/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/5183/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/5183/events","html_url":"https://github.com/influxdb/influxdb/pull/5183","id":123240831,"number":5183,"title":"USE databasename will work only for existing databases.","user":{"login":"pires","id":1752631,"avatar_url":"https://avatars.githubusercontent.com/u/1752631?v=3","gravatar_id":"","url":"https://api.github.com/users/pires","html_url":"https://github.com/pires","followers_url":"https://api.github.com/users/pires/followers","following_url":"https://api.github.com/users/pires/following{/other_user}","gists_url":"https://api.github.com/users/pires/gists{/gist_id}","starred_url":"https://api.github.com/users/pires/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pires/subscriptions","organizations_url":"https://api.github.com/users/pires/orgs","repos_url":"https://api.github.com/users/pires/repos","events_url":"https://api.github.com/users/pires/events{/privacy}","received_events_url":"https://api.github.com/users/pires/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/influxdb/labels/review-pair","name":"review-pair","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-21T09:35:35Z","updated_at":"2015-12-22T02:23:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/5183","html_url":"https://github.com/influxdb/influxdb/pull/5183","diff_url":"https://github.com/influxdb/influxdb/pull/5183.diff","patch_url":"https://github.com/influxdb/influxdb/pull/5183.patch"},"body":"- [ ] CHANGELOG.md updated\r\n- [x] Rebased/mergable\r\n- [x] Tests pass\r\n- [x] Sign CLA (if not already signed)\r\n\r\nFixes #5174\r\n\r\nUnfortunately, I don't see a way of testing this without implementing some database behavior on `cli_test.go`, namely to return one existing database.\r\n\r\n```\r\n$ influx -host 192.168.99.100\r\nVisit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.\r\nConnected to http://192.168.99.100:8086 version 0.9.6.1\r\nInfluxDB shell 0.9\r\n> show databases\r\nname: databases\r\n---------------\r\nname\r\n_internal\r\n\r\n> use pires\r\nERR: Database pires doesn't exist. Run SHOW DATABASES for a list of existing databases.\r\n> use _internal\r\nUsing database _internal\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/166484262","html_url":"https://github.com/influxdb/influxdb/pull/5183#issuecomment-166484262","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/5183","id":166484262,"user":{"login":"corylanou","id":585100,"avatar_url":"https://avatars.githubusercontent.com/u/585100?v=3","gravatar_id":"","url":"https://api.github.com/users/corylanou","html_url":"https://github.com/corylanou","followers_url":"https://api.github.com/users/corylanou/followers","following_url":"https://api.github.com/users/corylanou/following{/other_user}","gists_url":"https://api.github.com/users/corylanou/gists{/gist_id}","starred_url":"https://api.github.com/users/corylanou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corylanou/subscriptions","organizations_url":"https://api.github.com/users/corylanou/orgs","repos_url":"https://api.github.com/users/corylanou/repos","events_url":"https://api.github.com/users/corylanou/events{/privacy}","received_events_url":"https://api.github.com/users/corylanou/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T02:23:05Z","updated_at":"2015-12-22T02:23:05Z","body":"+1."}}