2
0

Remove Rows.Fatal

This commit is contained in:
Jack Christensen
2017-05-06 09:37:49 -05:00
parent 0a67735a8e
commit 8322171bd8
3 changed files with 34 additions and 32 deletions
+3 -3
View File
@@ -328,14 +328,14 @@ func (rc *ReplicationConn) sendReplicationModeQuery(sql string) (*Rows, error) {
rows := rc.c.getRows(sql, nil)
if err := rc.c.lock(); err != nil {
rows.Fatal(err)
rows.fatal(err)
return rows, err
}
rows.unlockConn = true
err := rc.c.sendSimpleQuery(sql)
if err != nil {
rows.Fatal(err)
rows.fatal(err)
}
msg, err := rc.c.rxMsg()
@@ -351,7 +351,7 @@ func (rc *ReplicationConn) sendReplicationModeQuery(sql string) (*Rows, error) {
// only Oids. Not much we can do about this.
default:
if e := rc.c.processContextFreeMsg(msg); e != nil {
rows.Fatal(e)
rows.fatal(e)
return rows, e
}
}