Skip to content

Commit

Permalink
Fixes for #169, #170
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan committed Nov 3, 2020
1 parent ab7dde0 commit c9c4d06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clickhouse_driver/columns/simpleaggregatefunctioncolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

def create_simple_aggregate_function_column(spec, column_by_spec_getter):
# SimpleAggregateFunction(Func, Type) -> Type
inner = spec[24:-1].split(',', maxsplit=1)[1].strip()
inner = spec[24:-1].split(',', 1)[1].strip()
nested = column_by_spec_getter(inner)
return nested
1 change: 0 additions & 1 deletion tests/columns/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,3 @@ def test_simple_agg_function_nullable(self):
('hello',), ('world',)
]
)

3 changes: 3 additions & 0 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import pickle

import clickhouse_driver.errors as err


def picklable(o):
picked = pickle.loads(pickle.dumps(o))
assert repr(o) == repr(picked)
assert str(o) == str(picked)


def test_exception_picklable():
picklable(err.Error('foo'))
picklable(err.Error(message='foo'))
Expand Down

0 comments on commit c9c4d06

Please sign in to comment.