mirror of https://github.com/jackc/pgx.git
Remove *Conn.sendQuery
parent
1ccd6527f5
commit
52e8d0d679
7
conn.go
7
conn.go
|
@ -614,13 +614,6 @@ func (c *Conn) CauseOfDeath() error {
|
|||
return c.causeOfDeath
|
||||
}
|
||||
|
||||
func (c *Conn) sendQuery(sql string, arguments ...interface{}) (err error) {
|
||||
if ps, present := c.preparedStatements[sql]; present {
|
||||
return c.sendPreparedQuery(ps, arguments...)
|
||||
}
|
||||
return c.sendSimpleQuery(sql, arguments...)
|
||||
}
|
||||
|
||||
func (c *Conn) sendSimpleQuery(sql string, args ...interface{}) error {
|
||||
if err := c.ensureConnectionReadyForQuery(); err != nil {
|
||||
return err
|
||||
|
|
|
@ -416,7 +416,7 @@ func (rc *ReplicationConn) StartReplication(slotName string, startLsn uint64, ti
|
|||
queryString += fmt.Sprintf(" ( %s )", strings.Join(pluginArguments, ", "))
|
||||
}
|
||||
|
||||
if err = rc.c.sendQuery(queryString); err != nil {
|
||||
if err = rc.c.sendSimpleQuery(queryString); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue