Skip to content

Commit 438aacb

Browse files
author
aviau
committed
Include database in all queries (Closes influxdata#127)
1 parent 7b5b430 commit 438aacb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

influxdb/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ def query(self,
217217
"""
218218

219219
params['q'] = query
220-
if database:
221-
params['db'] = database
220+
params['db'] = database or self._database
222221

223222
response = self.request(
224223
url="query",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy