Skip to content

Commit

Permalink
Fix error when using both types=true and error_trace=true options
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jul 22, 2022
1 parent fc02f6a commit 1b8f0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crate/client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Client(object):
Crate connection client using CrateDB's HTTP API.
"""

SQL_PATH = '/_sql?types'
SQL_PATH = '/_sql?types=true'
"""Crate URI path for issuing SQL statements."""

retry_interval = 30
Expand Down Expand Up @@ -385,7 +385,7 @@ def __init__(self,

self.path = self.SQL_PATH
if error_trace:
self.path += '?error_trace=true'
self.path += '&error_trace=true'

def close(self):
for server in self.server_pool.values():
Expand Down

0 comments on commit 1b8f0ad

Please sign in to comment.