فهرست منبع

check discardMoreResultsIfExists err

Julien Schmidt 10 سال پیش
والد
کامیت
c1e44c429b
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      packets.go

+ 3 - 1
packets.go

@@ -543,7 +543,9 @@ func (mc *mysqlConn) handleOkPacket(data []byte) error {
 
 	// server_status [2 bytes]
 	mc.status = readStatus(data[1+n+m : 1+n+m+2])
-	mc.discardMoreResultsIfExists()
+	if err := mc.discardMoreResultsIfExists(); err != nil {
+		return err
+	}
 
 	// warning count [2 bytes]
 	if !mc.strict {