isCompositeMessage tells whether the encoded `data` contains multiple packets, where only the first packet should use the header we write here.
(msg interface{})
| 178 | // isCompositeMessage tells whether the encoded `data` contains multiple packets, |
| 179 | // where only the first packet should use the header we write here. |
| 180 | func isCompositeMessage(msg interface{}) bool { |
| 181 | switch msg.(type) { |
| 182 | case *mysql.TextResultSet, |
| 183 | *mysql.BinaryProtocolResultSet, |
| 184 | *mysql.StmtPrepareOkPacket: |
| 185 | return true |
| 186 | default: |
| 187 | return false |
| 188 | } |
| 189 | } |