Fix re-assembling query string in connection strings with multiple mongos nodes

parent e8b7895c
...@@ -94,10 +94,10 @@ abstract class FunctionalTestCase extends TestCase ...@@ -94,10 +94,10 @@ abstract class FunctionalTestCase extends TestCase
$parts[] = $urlParts['path']; $parts[] = $urlParts['path'];
} }
if (isset($urlParts['query'])) { if (isset($urlParts['query'])) {
$parts += [ $parts = array_merge($parts, [
'?', '?',
$urlParts['path'] $urlParts['query']
]; ]);
} }
return implode('', $parts); return implode('', $parts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment