We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba73da2 commit b560922Copy full SHA for b560922
server/command.go
@@ -125,6 +125,12 @@ func (c *Conn) dispatch(data []byte) interface{} {
125
} else {
126
return r
127
}
128
+ case COM_SET_OPTION:
129
+ if err := c.h.HandleOtherCommand(cmd, data); err != nil {
130
+ return err
131
+ }
132
+
133
+ return eofResponse{}
134
default:
135
return c.h.HandleOtherCommand(cmd, data)
136
server/resp.go
@@ -170,11 +170,14 @@ func (c *Conn) writeFieldList(fs []*Field) error {
170
171
172
type noResponse struct{}
173
+type eofResponse struct{}
174
175
func (c *Conn) writeValue(value interface{}) error {
176
switch v := value.(type) {
177
case noResponse:
178
return nil
179
+ case eofResponse:
180
+ return c.writeEOF()
181
case error:
182
return c.writeError(v)
183
case nil:
0 commit comments