{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-python/issues/127","labels_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/127/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/127/events","html_url":"https://github.com/influxdb/influxdb-python/issues/127","id":62540839,"number":127,"title":"query() does not use self._database","user":{"login":"robbyt","id":58051,"avatar_url":"https://avatars.githubusercontent.com/u/58051?v=3","gravatar_id":"","url":"https://api.github.com/users/robbyt","html_url":"https://github.com/robbyt","followers_url":"https://api.github.com/users/robbyt/followers","following_url":"https://api.github.com/users/robbyt/following{/other_user}","gists_url":"https://api.github.com/users/robbyt/gists{/gist_id}","starred_url":"https://api.github.com/users/robbyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbyt/subscriptions","organizations_url":"https://api.github.com/users/robbyt/orgs","repos_url":"https://api.github.com/users/robbyt/repos","events_url":"https://api.github.com/users/robbyt/events{/privacy}","received_events_url":"https://api.github.com/users/robbyt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T23:22:00Z","updated_at":"2015-03-17T23:58:48Z","closed_at":"2015-03-17T23:58:48Z","body":"The `query` method does not use `self._database`, which means that I must respecify the database for `.query()` even if this was already set at client instantiation.\r\n\r\nhttps://github.com/influxdb/influxdb-python/blob/0.9.0_support/influxdb/client.py#L221"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb-python/issues/comments/82646901","html_url":"https://github.com/influxdb/influxdb-python/issues/127#issuecomment-82646901","issue_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/127","id":82646901,"user":{"login":"ReAzem","id":2706882,"avatar_url":"https://avatars.githubusercontent.com/u/2706882?v=3","gravatar_id":"","url":"https://api.github.com/users/ReAzem","html_url":"https://github.com/ReAzem","followers_url":"https://api.github.com/users/ReAzem/followers","following_url":"https://api.github.com/users/ReAzem/following{/other_user}","gists_url":"https://api.github.com/users/ReAzem/gists{/gist_id}","starred_url":"https://api.github.com/users/ReAzem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReAzem/subscriptions","organizations_url":"https://api.github.com/users/ReAzem/orgs","repos_url":"https://api.github.com/users/ReAzem/repos","events_url":"https://api.github.com/users/ReAzem/events{/privacy}","received_events_url":"https://api.github.com/users/ReAzem/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T23:58:48Z","updated_at":"2015-03-17T23:58:48Z","body":"This was done on purpose. My reasoning is that system calls such as ```show databases``` don't require a database argument so I didn't want to include database in all queries.\r\n\r\nYou are not the first that points this out, so I guess its an unexpected behaviour."}}