Revision 3a85ca5c970c87119d88fce406a1ce1985804c1a
Committed on 14/12/2025 11:19 am by
Zohaib Sibte Hassan <zohaib@sibte.pk> [GitHub Diff]
Rename StatementType to StatementCode for type safety
- Rename protocol.StatementType to protocol.StatementCode to
differentiate from grpc.StatementType (proto-generated)
- Add map-based converters in grpc/statement_code_map.go
- Fix direct cast bug at grpc/replication_handler.go:979
- Add comprehensive tests for conversion functions
The two types have different values (protocol uses iota, grpc uses
protobuf values). Using different names prevents accidental mixing.
???? Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>