Send capabilities header in CommandDataDescription message
The `CommandDataDescription` message should be equivalent to
`PrepareComplete` message and should send the re-parsed query
capabilities to the client.
@@ -1383,6 +1383,12 @@ cdef class EdgeConnection:
WriteBuffer msg
msg = WriteBuffer.new_message(b'T')
+ if self.protocol_version >= (0, 9):
+ msg.write_int16(1)
+ msg.write_int16(SERVER_HEADER_CAPABILITIES)
+ msg.write_int32(sizeof(uint64_t))
+ msg.write_int64(<int64_t>(<uint64_t>query.query_unit.capabilities))
+ else:
msg.write_int16(0) # no headers
msg.write_byte(self.render_cardinality(query.query_unit))
