Skip to content

Commit

Permalink
Implement stringer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sushilkg committed May 19, 2022
1 parent e538731 commit d17c487
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions error.go
Expand Up @@ -27,6 +27,10 @@ func (e Error) Error() string {
return "mssql: " + e.Message
}

func (e Error) String() string {
return "mssql: " + e.Message
}

// SQLErrorNumber returns the SQL Server error number.
func (e Error) SQLErrorNumber() int32 {
return e.Number
Expand Down

0 comments on commit d17c487

Please sign in to comment.