Skip to content

Commit

Permalink
Fixed result set parsing of REAL. (Fixes issue SAP-archive#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
timogasda committed May 21, 2015
1 parent 82cdc99 commit 02ffbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhdb/protocol/types.py
Expand Up @@ -183,7 +183,7 @@ class Real(Type):

@classmethod
def from_resultset(cls, payload, connection=None):
payload = payload.read(8)
payload = payload.read(4)
if payload == b"\xFF\xFF\xFF\xFF":
return None
return cls._struct.unpack(payload)[0]
Expand Down

0 comments on commit 02ffbd9

Please sign in to comment.