diff --git a/src/OpenSearch/Namespaces/SqlNamespace.php b/src/OpenSearch/Namespaces/SqlNamespace.php index bc7a5a27..8265001a 100644 --- a/src/OpenSearch/Namespaces/SqlNamespace.php +++ b/src/OpenSearch/Namespaces/SqlNamespace.php @@ -170,4 +170,12 @@ public function settings(array $params = []) return $this->performRequest($endpoint); } + /** + * Proxy function to closeCursor() to prevent BC break. + * This API will be removed in a future version. Use 'close' API instead. + */ + public function closeCursor(array $params = []) + { + return $this->close($params); + } } diff --git a/util/ClientEndpoint.php b/util/ClientEndpoint.php index 1acec505..2e3a9f54 100644 --- a/util/ClientEndpoint.php +++ b/util/ClientEndpoint.php @@ -50,7 +50,7 @@ public function renderClass(): string $useNamespace = ''; // The following namespaces do not have OpenSearch API specifications - $patchnamespaces = ['async_search', 'searchable_snapshots', 'ssl', 'sql', 'data_frame_transform_deprecated', 'monitoring']; + $patchnamespaces = ['async_search', 'searchable_snapshots', 'ssl', 'data_frame_transform_deprecated', 'monitoring']; $this->namespace = array_unique(array_merge($this->namespace, $patchnamespaces)); sort($this->namespace); diff --git a/util/EndpointProxies/sql/closeCursorProxy.php b/util/EndpointProxies/sql/closeCursorProxy.php new file mode 100644 index 00000000..c0e7f0b1 --- /dev/null +++ b/util/EndpointProxies/sql/closeCursorProxy.php @@ -0,0 +1,13 @@ +close($params); + } +EOD;