Explorar o código

executeBatch return proper err for RequestErrUnprepared

Zhixin Wen %!s(int64=8) %!d(string=hai) anos
pai
achega
05df4896cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      conn.go

+ 1 - 1
conn.go

@@ -1052,7 +1052,7 @@ func (c *Conn) executeBatch(batch *Batch) *Iter {
 		if found {
 			return c.executeBatch(batch)
 		} else {
-			return &Iter{err: err, framer: framer}
+			return &Iter{err: x, framer: framer}
 		}
 	case *resultRowsFrame:
 		iter := &Iter{