Ver Fonte

Merge pull request #230 from phillipCouto/prep_purge_onerror

Added code to pass on flight.err to err
Ben Hood há 11 anos atrás
pai
commit
b8692cd91f
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      conn.go

+ 1 - 0
conn.go

@@ -338,6 +338,7 @@ func (c *Conn) prepareStatement(stmt string, trace Tracer) (*QueryInfo, error) {
 		default:
 		default:
 			flight.err = NewErrProtocol("Unknown type in response to prepare frame: %s", x)
 			flight.err = NewErrProtocol("Unknown type in response to prepare frame: %s", x)
 		}
 		}
+		err = flight.err
 	}
 	}
 
 
 	flight.wg.Done()
 	flight.wg.Done()