Skip to content

Commit f72274c

Browse files
Add skip metadata handling in _QueryMessage
This change restores handling of skip_metadata in _QueryMessage, that was removed in 2019 (most likely to prevent metadata inconsistencies in prepared statements). I'm not sure if any other changes are required, as there were many modifications in the codebase since the flag handling was removed.
1 parent 2d77865 commit f72274c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cassandra/protocol.py

+3
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,9 @@ def _write_query_params(self, f, protocol_version):
605605
raise UnsupportedOperation(
606606
"Keyspaces may only be set on queries with protocol version "
607607
"5 or DSE_V2 or higher. Consider setting Cluster.protocol_version.")
608+
609+
if self.skip_meta is not None and self.skip_meta:
610+
flags |= _SKIP_METADATA_FLAG
608611

609612
if ProtocolVersion.uses_int_query_flags(protocol_version):
610613
write_uint(f, flags)

0 commit comments

Comments
 (0)