File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,12 @@ cdef class ConnectStringParser(BaseParser):
264264 if protocol is not None :
265265 fn = REGISTERED_PROTOCOLS.get(protocol)
266266 if fn is not None :
267- params = PY_TYPE_CONNECT_PARAMS.__new__ (PY_TYPE_CONNECT_PARAMS)
267+ if isinstance (self .params_impl, PoolParamsImpl):
268+ params = PY_TYPE_POOL_PARAMS.__new__ (PY_TYPE_POOL_PARAMS)
269+ else :
270+ params = PY_TYPE_CONNECT_PARAMS.__new__ (
271+ PY_TYPE_CONNECT_PARAMS
272+ )
268273 params._impl = self .params_impl
269274 fn(protocol, self .data_as_str[self .temp_pos:], params)
270275 self .description_list = self .params_impl.description_list
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ def init_base_impl(package):
196196 PY_TYPE_MESSAGE_QUERY, \
197197 PY_TYPE_MESSAGE_ROW, \
198198 PY_TYPE_MESSAGE_TABLE, \
199+ PY_TYPE_POOL_PARAMS, \
199200 PY_TYPE_VAR
200201
201202 errors = package.errors
@@ -216,6 +217,7 @@ def init_base_impl(package):
216217 PY_TYPE_MESSAGE_QUERY = package.MessageQuery
217218 PY_TYPE_MESSAGE_ROW = package.MessageRow
218219 PY_TYPE_MESSAGE_TABLE = package.MessageTable
220+ PY_TYPE_POOL_PARAMS = package.PoolParams
219221 PY_TYPE_VAR = package.Var
220222
221223
You can’t perform that action at this time.
0 commit comments