Skip to content

Commit 65bc0c7

Browse files
committed
Fix Fusion in HTTP
1 parent 4b2b29e commit 65bc0c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

singlestoredb/http/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def _execute(
543543
# precision, scale, null_ok, column_flags, charset)
544544

545545
# Remove converters for things the JSON parser already converted
546-
http_converters = dict(converters)
546+
http_converters = dict(self._connection.decoders)
547547
http_converters.pop(4, None)
548548
http_converters.pop(5, None)
549549
http_converters.pop(6, None)
@@ -955,6 +955,9 @@ def __init__(self, **kwargs: Any):
955955
version = kwargs.get('version', 'v2')
956956
self.driver = kwargs.get('driver', 'https')
957957

958+
self.encoders = {k: v for (k, v) in converters.items() if type(k) is not int}
959+
self.decoders = {k: v for (k, v) in converters.items() if type(k) is int}
960+
958961
self._database = kwargs.get('database', get_option('database'))
959962
self._url = f'{self.driver}://{host}:{port}/api/{version}/'
960963
self._messages: List[Tuple[int, str]] = []

0 commit comments

Comments
 (0)