From f3f6fb8da286ea7a6aa96ec489230b7ed6acbcb6 Mon Sep 17 00:00:00 2001 From: Sergey Malinin Date: Fri, 29 Jan 2021 23:43:21 +1000 Subject: [PATCH 1/2] Update for fetch column with type java.sql.Types.OTHER as String --- jaydebeapi/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jaydebeapi/__init__.py b/jaydebeapi/__init__.py index a890c3d..17dc61e 100644 --- a/jaydebeapi/__init__.py +++ b/jaydebeapi/__init__.py @@ -680,6 +680,8 @@ def to_py(rs, col): _to_boolean = _java_to_py('booleanValue') +_to_string = _java_to_py('toString') + _to_decimal = _java_to_py_bigdecimal() def _init_types(types_map): @@ -719,5 +721,6 @@ def _init_converters(types_map): 'INTEGER': _to_int, 'SMALLINT': _to_int, 'BOOLEAN': _to_boolean, - 'BIT': _to_boolean + 'BIT': _to_boolean, + 'OTHER': _to_string } From 9810a47d01f97ed80be059b405bdbcfea53c70af Mon Sep 17 00:00:00 2001 From: Sergey Malinin Date: Sat, 30 Jan 2021 00:19:40 +1000 Subject: [PATCH 2/2] Update version to 1.2.4 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 67a2d1d..1395b11 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( #basic package data name = 'JayDeBeApi', - version = '1.2.3', + version = '1.2.4', author = 'Bastian Bowe', author_email = 'bastian.dev@gmail.com', license = 'GNU LGPL',