()
| 114 | } |
| 115 | |
| 116 | func (c *Conn) Ping() error { |
| 117 | if err := c.writeCommand(COM_PING); err != nil { |
| 118 | return errors.Trace(err) |
| 119 | } |
| 120 | |
| 121 | if _, err := c.readOK(); err != nil { |
| 122 | return errors.Trace(err) |
| 123 | } |
| 124 | |
| 125 | return nil |
| 126 | } |
| 127 | |
| 128 | // SetCapability enables the use of a specific capability |
| 129 | func (c *Conn) SetCapability(cap uint32) { |
no test coverage detected