Skip to content

Commit c1e44c4

Browse files
committed
check discardMoreResultsIfExists err
1 parent acb3ebd commit c1e44c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packets.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ func (mc *mysqlConn) handleOkPacket(data []byte) error {
543543

544544
// server_status [2 bytes]
545545
mc.status = readStatus(data[1+n+m : 1+n+m+2])
546-
mc.discardMoreResultsIfExists()
546+
if err := mc.discardMoreResultsIfExists(); err != nil {
547+
return err
548+
}
547549

548550
// warning count [2 bytes]
549551
if !mc.strict {

0 commit comments

Comments
 (0)