From 98d08794355b6e0d3c0987b25f35ff759e25b084 Mon Sep 17 00:00:00 2001 From: Christoph Heer Date: Mon, 15 Aug 2016 22:22:51 +0200 Subject: [PATCH] Accept PARAMETERMETADATA part while handling select response --- pyhdb/cursor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhdb/cursor.py b/pyhdb/cursor.py index e6c9a6d..8f1850a 100644 --- a/pyhdb/cursor.py +++ b/pyhdb/cursor.py @@ -341,7 +341,7 @@ def _handle_select(self, parts, result_metadata=None): self._buffer = part.unpack_rows(self._column_types, self.connection) self._received_last_resultset_part = part.attribute & 1 self._executed = True - elif part.kind in (part_kinds.STATEMENTCONTEXT, part_kinds.TRANSACTIONFLAGS): + elif part.kind in (part_kinds.STATEMENTCONTEXT, part_kinds.TRANSACTIONFLAGS, part_kinds.PARAMETERMETADATA): pass else: raise InterfaceError("Prepared select statement response, unexpected part kind %d." % part.kind)