()
| 55 | } |
| 56 | |
| 57 | func (c *Conn) WriteEOF() error { |
| 58 | data := make([]byte, 4, 9) |
| 59 | |
| 60 | data = append(data, EOF_HEADER) |
| 61 | if c.capability&CLIENT_PROTOCOL_41 > 0 { |
| 62 | data = append(data, byte(c.warnings), byte(c.warnings>>8)) |
| 63 | data = append(data, byte(c.status), byte(c.status>>8)) |
| 64 | } |
| 65 | |
| 66 | return c.WritePacket(data) |
| 67 | } |
| 68 | |
| 69 | func (c *Conn) writeEOF() error { |
| 70 | data := make([]byte, 4, 9) |
nothing calls this directly
no test coverage detected