Skip to content

Commit daf6a76

Browse files
authored
Merge pull request influxdata#404 from AndreCAndersen/patch-1
Space padded select-queries should return DataFrames
2 parents 8e757cd + e334519 commit daf6a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/_dataframe_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def query(self, query, chunked=False, database=None):
140140
141141
"""
142142
results = super(DataFrameClient, self).query(query, database=database)
143-
if query.upper().startswith("SELECT"):
143+
if query.strip().upper().startswith("SELECT"):
144144
if len(results) > 0:
145145
return self._to_dataframe(results)
146146
else:

0 commit comments

Comments
 (0)