From 506b76b791b52949ea8cdc48338150b6c7aa0c08 Mon Sep 17 00:00:00 2001 From: Dennis Ahrens <dennis.ahrens@hs-hannover.de> Date: Tue, 4 Nov 2014 16:27:39 +0100 Subject: [PATCH] [BUGFIX] Convert binary data to buffer. sqlalchemy returns binary data as string when fetching the data from mysql. We need to convert this into buffer for further operations. --- hshetl/entities.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hshetl/entities.py b/hshetl/entities.py index e571d22..8518306 100644 --- a/hshetl/entities.py +++ b/hshetl/entities.py @@ -347,6 +347,8 @@ class PropertyConverter(object): return bin(value) elif type(value) == str and value == '': return value + else: + return buffer(value) class Record(object): -- GitLab