File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,12 @@ func (c *Conn) dispatch(data []byte) interface{} {
125125} else {
126126return r
127127}
128+ case COM_SET_OPTION :
129+ if err := c .h .HandleOtherCommand (cmd , data ); err != nil {
130+ return err
131+ }
132+
133+ return eofResponse {}
128134default :
129135return c .h .HandleOtherCommand (cmd , data )
130136}
Original file line number Diff line number Diff line change @@ -170,11 +170,14 @@ func (c *Conn) writeFieldList(fs []*Field) error {
170170}
171171
172172type noResponse struct {}
173+ type eofResponse struct {}
173174
174175func (c * Conn ) writeValue (value interface {}) error {
175176switch v := value .(type ) {
176177case noResponse :
177178return nil
179+ case eofResponse :
180+ return c .writeEOF ()
178181case error :
179182return c .writeError (v )
180183case nil :
You can’t perform that action at this time.
0 commit comments