Skip to content

Commit

Permalink
Add a method that exposes the underlying transport to the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
orenbm committed Oct 24, 2019
1 parent b17b191 commit 77827dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mssql.go
Expand Up @@ -152,6 +152,11 @@ type Conn struct {
returnStatus *ReturnStatus
}

// NetConn exposes the underlying transport to the backend
func (c *Conn) NetConn() net.Conn {
return c.sess.buf.transport.(net.Conn)
}

func (c *Conn) setReturnStatus(s ReturnStatus) {
if c.returnStatus == nil {
return
Expand Down

0 comments on commit 77827dd

Please sign in to comment.