()
| 157 | } |
| 158 | |
| 159 | func (mc *mysqlConn) Close() (err error) { |
| 160 | // Makes Close idempotent |
| 161 | if !mc.closed.Load() { |
| 162 | err = mc.writeCommandPacket(comQuit) |
| 163 | } |
| 164 | mc.close() |
| 165 | return |
| 166 | } |
| 167 | |
| 168 | // close closes the network connection and clear results without sending COM_QUIT. |
| 169 | func (mc *mysqlConn) close() { |
no test coverage detected