diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-04-16 09:11:59 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-04-16 09:11:59 +0000 |
commit | 25de1d521ca218e2b040739fea77a39e9fc543e9 (patch) | |
tree | 21521d8866cf1462dbd52c071cf369974c29650e /contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py | |
parent | bf444b8ed4d0f6bf17fd753e2cf88f9440012e87 (diff) | |
parent | 0a63d9ddc516f206f2b8745ce5e5dfa60190d755 (diff) | |
download | ydb-25de1d521ca218e2b040739fea77a39e9fc543e9.tar.gz |
Merge branch 'rightlib' into mergelibs-240416-0910
Diffstat (limited to 'contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py')
-rw-r--r-- | contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py b/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py index 71adb00321..84a91c9415 100644 --- a/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py +++ b/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py @@ -125,7 +125,7 @@ def coerce_int(val: Optional[Union[str, int]]) -> int: def coerce_bool(val: Optional[Union[str, bool]]): if not val: return False - return val in (True, 'True', 'true', '1') + return val is True or (isinstance(val, str) and val.lower() in ('true', '1', 'y', 'yes')) class SliceView(Sequence): |