2
0

Rename base.Conn to base.PgConn

- pgx.Conn embeds base.PgConn privately
- Add pgx.Conn.ParameterStatus
This commit is contained in:
Jack Christensen
2018-12-28 12:16:50 -06:00
parent 5c05f3f2ce
commit b63370e5d5
11 changed files with 76 additions and 72 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ func (tx *Tx) CopyToWriter(w io.Writer, sql string, args ...interface{}) (comman
// Status returns the status of the transaction from the set of
// pgx.TxStatus* constants.
func (tx *Tx) Status() int8 {
if tx.status == TxStatusInProgress && tx.conn.BaseConn.TxStatus == 'E' {
if tx.status == TxStatusInProgress && tx.conn.pgConn.TxStatus == 'E' {
return TxStatusInFailure
}
return tx.status