()
| 67 | } |
| 68 | |
| 69 | func (c *Conn) writeEOF() error { |
| 70 | data := make([]byte, 4, 9) |
| 71 | |
| 72 | data = append(data, EOF_HEADER) |
| 73 | if c.capability&CLIENT_PROTOCOL_41 > 0 { |
| 74 | data = append(data, byte(c.warnings), byte(c.warnings>>8)) |
| 75 | data = append(data, byte(c.status), byte(c.status>>8)) |
| 76 | } |
| 77 | |
| 78 | return c.WritePacket(data) |
| 79 | } |
| 80 | |
| 81 | // see: https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_connection_phase_packets_protocol_auth_switch_request.html |
| 82 | func (c *Conn) writeAuthSwitchRequest(newAuthPluginName string) error { |
no test coverage detected