File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ func (c *Conn) Prepare(query string) (*Stmt, error) {
283283 if s .conn .capability & mysql .CLIENT_DEPRECATE_EOF == 0 {
284284 if packet , err := s .conn .ReadPacket (); err != nil {
285285 return nil , errors .Trace (err )
286- } else if c .isEOFPacket (packet ) {
286+ } else if ! c .isEOFPacket (packet ) {
287287 return nil , mysql .ErrMalformPacket
288288 }
289289 }
@@ -299,7 +299,7 @@ func (c *Conn) Prepare(query string) (*Stmt, error) {
299299 if s .conn .capability & mysql .CLIENT_DEPRECATE_EOF == 0 {
300300 if packet , err := s .conn .ReadPacket (); err != nil {
301301 return nil , errors .Trace (err )
302- } else if c .isEOFPacket (packet ) {
302+ } else if ! c .isEOFPacket (packet ) {
303303 return nil , mysql .ErrMalformPacket
304304 }
305305 }
You can’t perform that action at this time.
0 commit comments