From 6fee247db26bdc2c9b018a30294fb7ebcb2d2220 Mon Sep 17 00:00:00 2001 From: Oleg Sulyanov Date: Mon, 19 Mar 2018 13:39:45 +0300 Subject: [PATCH] Added support of Enum8 rows --- lib/clickhouse/connection/query/result_set.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/clickhouse/connection/query/result_set.rb b/lib/clickhouse/connection/query/result_set.rb index 61d17e3..6d77c96 100644 --- a/lib/clickhouse/connection/query/result_set.rb +++ b/lib/clickhouse/connection/query/result_set.rb @@ -63,6 +63,8 @@ def parse_value(type, value) parse_date_time_value value when /Array\(/ parse_array_value value + when /Enum8\(/ + parse_enum8_value value else raise NotImplementedError, "Cannot parse value of type #{type.inspect}" end @@ -97,6 +99,10 @@ def parse_array_value(value) value end + def parse_enum8_value(value) + value + end + end end end