aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-11-24 07:29:28 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-11-24 08:02:00 +0300
commit778162c87fe52768297a4e767461054aa9c94dfe (patch)
tree01fb8c8a47a4ed9024449295a80df8b61ad9dc63 /contrib
parent7ca783ae1c82067d566b9b73e3f67dff078401bc (diff)
downloadydb-778162c87fe52768297a4e767461054aa9c94dfe.tar.gz
Update contrib/python/clickhouse-connect to 0.6.20
Diffstat (limited to 'contrib')
-rw-r--r--contrib/python/clickhouse-connect/.dist-info/METADATA2
-rw-r--r--contrib/python/clickhouse-connect/clickhouse_connect/__version__.py2
-rw-r--r--contrib/python/clickhouse-connect/clickhouse_connect/driver/query.py4
-rw-r--r--contrib/python/clickhouse-connect/ya.make2
4 files changed, 5 insertions, 5 deletions
diff --git a/contrib/python/clickhouse-connect/.dist-info/METADATA b/contrib/python/clickhouse-connect/.dist-info/METADATA
index e7582522da..2cc7883742 100644
--- a/contrib/python/clickhouse-connect/.dist-info/METADATA
+++ b/contrib/python/clickhouse-connect/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: clickhouse-connect
-Version: 0.6.19
+Version: 0.6.20
Summary: ClickHouse Database Core Driver for Python, Pandas, and Superset
Home-page: https://github.com/ClickHouse/clickhouse-connect
Author: ClickHouse Inc.
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py
index 3b0f77b522..61f0ae1784 100644
--- a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py
+++ b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py
@@ -1 +1 @@
-version = '0.6.19'
+version = '0.6.20'
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/driver/query.py b/contrib/python/clickhouse-connect/clickhouse_connect/driver/query.py
index c4a48aafe0..3fb5aa7dac 100644
--- a/contrib/python/clickhouse-connect/clickhouse_connect/driver/query.py
+++ b/contrib/python/clickhouse-connect/clickhouse_connect/driver/query.py
@@ -391,8 +391,8 @@ def format_query_value(value: Any, server_tz: tzinfo = pytz.UTC):
if isinstance(value, str):
return format_str(value)
if isinstance(value, datetime):
- if value.tzinfo is None:
- value = value.replace(tzinfo=server_tz)
+ if value.tzinfo is not None or server_tz != pytz.UTC:
+ value = value.astimezone(server_tz)
return f"'{value.strftime('%Y-%m-%d %H:%M:%S')}'"
if isinstance(value, date):
return f"'{value.isoformat()}'"
diff --git a/contrib/python/clickhouse-connect/ya.make b/contrib/python/clickhouse-connect/ya.make
index b398d299cf..292739d8da 100644
--- a/contrib/python/clickhouse-connect/ya.make
+++ b/contrib/python/clickhouse-connect/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(0.6.19)
+VERSION(0.6.20)
LICENSE(Apache-2.0)