From a47f2dac2f19a1cda2e47bf0ac6e24b347f94f92 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 12 Aug 2024 09:13:20 -0400 Subject: [PATCH] Transform query param into a body param. Signed-off-by: dblock --- util/EndpointProxies/sql/closeCursorProxy.php | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/util/EndpointProxies/sql/closeCursorProxy.php b/util/EndpointProxies/sql/closeCursorProxy.php index c0e7f0b1..fa770c5c 100644 --- a/util/EndpointProxies/sql/closeCursorProxy.php +++ b/util/EndpointProxies/sql/closeCursorProxy.php @@ -1,13 +1,27 @@ close($params); + $endpointBuilder = $this->endpoints; + + /** @var AbstractEndpoint $endpoint */ + $endpoint = $endpointBuilder('Sql\Close'); + $endpoint->setBody(array_filter([ + 'cursor' => $this->extractArgument($params, 'cursor'), + ])); + $endpoint->setParams($params); + + return $this->performRequest($endpoint); } EOD;