diff options
| author | robot-piglet <[email protected]> | 2025-02-19 12:57:38 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-02-19 13:12:03 +0300 |
| commit | 209a37d035f1d8ea98e913ccbc07762ec479eab2 (patch) | |
| tree | 367a965628780d5cdb1c2a350bee16d98b89a176 /contrib/python | |
| parent | 25b41092050f818475542800eeb7c8102993fd2e (diff) | |
Intermediate changes
commit_hash:24aa47673f664dfffb1ecde56dcf0bd5d1e5b8f7
Diffstat (limited to 'contrib/python')
| -rw-r--r-- | contrib/python/ydb/py3/.dist-info/METADATA | 2 | ||||
| -rw-r--r-- | contrib/python/ydb/py3/ya.make | 2 | ||||
| -rw-r--r-- | contrib/python/ydb/py3/ydb/_utilities.py | 5 | ||||
| -rw-r--r-- | contrib/python/ydb/py3/ydb/aio/_utilities.py | 5 | ||||
| -rw-r--r-- | contrib/python/ydb/py3/ydb/query/base.py | 5 | ||||
| -rw-r--r-- | contrib/python/ydb/py3/ydb/ydb_version.py | 2 |
6 files changed, 15 insertions, 6 deletions
diff --git a/contrib/python/ydb/py3/.dist-info/METADATA b/contrib/python/ydb/py3/.dist-info/METADATA index aa17898a663..1e16ba3e8dc 100644 --- a/contrib/python/ydb/py3/.dist-info/METADATA +++ b/contrib/python/ydb/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: ydb -Version: 3.18.16 +Version: 3.18.17 Summary: YDB Python SDK Home-page: http://github.com/ydb-platform/ydb-python-sdk Author: Yandex LLC diff --git a/contrib/python/ydb/py3/ya.make b/contrib/python/ydb/py3/ya.make index 8b10140b345..d1d4c78a202 100644 --- a/contrib/python/ydb/py3/ya.make +++ b/contrib/python/ydb/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(3.18.16) +VERSION(3.18.17) LICENSE(Apache-2.0) diff --git a/contrib/python/ydb/py3/ydb/_utilities.py b/contrib/python/ydb/py3/ydb/_utilities.py index 117c7407f24..8496dbd9e45 100644 --- a/contrib/python/ydb/py3/ydb/_utilities.py +++ b/contrib/python/ydb/py3/ydb/_utilities.py @@ -161,7 +161,10 @@ class SyncResponseIterator(object): return self def _next(self): - return self.wrapper(next(self.it)) + res = self.wrapper(next(self.it)) + if res is not None: + return res + return self._next() def next(self): return self._next() diff --git a/contrib/python/ydb/py3/ydb/aio/_utilities.py b/contrib/python/ydb/py3/ydb/aio/_utilities.py index 5bd0f1a0471..296cd256f13 100644 --- a/contrib/python/ydb/py3/ydb/aio/_utilities.py +++ b/contrib/python/ydb/py3/ydb/aio/_utilities.py @@ -17,7 +17,10 @@ class AsyncResponseIterator(object): return self async def _next(self): - return self.wrapper(await self.it.__anext__()) + res = self.wrapper(await self.it.__anext__()) + if res is not None: + return res + return await self._next() async def next(self): return await self._next() diff --git a/contrib/python/ydb/py3/ydb/query/base.py b/contrib/python/ydb/py3/ydb/query/base.py index 9372cbcf54c..57a769bb1a1 100644 --- a/contrib/python/ydb/py3/ydb/query/base.py +++ b/contrib/python/ydb/py3/ydb/query/base.py @@ -192,4 +192,7 @@ def wrap_execute_query_response( elif tx and response_pb.tx_meta and not tx.tx_id: tx._move_to_beginned(response_pb.tx_meta.id) - return convert.ResultSet.from_message(response_pb.result_set, settings) + if response_pb.HasField("result_set"): + return convert.ResultSet.from_message(response_pb.result_set, settings) + + return None diff --git a/contrib/python/ydb/py3/ydb/ydb_version.py b/contrib/python/ydb/py3/ydb/ydb_version.py index 750aee1df8c..416d33e1771 100644 --- a/contrib/python/ydb/py3/ydb/ydb_version.py +++ b/contrib/python/ydb/py3/ydb/ydb_version.py @@ -1 +1 @@ -VERSION = "3.18.16" +VERSION = "3.18.17" |
