Skip to content

Commit 1b8f0ad

Browse files
committed
Fix error when using both types=true and error_trace=true options
1 parent fc02f6a commit 1b8f0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crate/client/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class Client(object):
315315
Crate connection client using CrateDB's HTTP API.
316316
"""
317317

318-
SQL_PATH = '/_sql?types'
318+
SQL_PATH = '/_sql?types=true'
319319
"""Crate URI path for issuing SQL statements."""
320320

321321
retry_interval = 30
@@ -385,7 +385,7 @@ def __init__(self,
385385

386386
self.path = self.SQL_PATH
387387
if error_trace:
388-
self.path += '?error_trace=true'
388+
self.path += '&error_trace=true'
389389

390390
def close(self):
391391
for server in self.server_pool.values():

0 commit comments

Comments
 (0)