@@ -113,7 +113,9 @@ type defaultDialer struct {
113
113
func (d defaultDialer ) Dial (network , address string ) (net.Conn , error ) {
114
114
return d .d .Dial (network , address )
115
115
}
116
- func (d defaultDialer ) DialTimeout (network , address string , timeout time.Duration ) (net.Conn , error ) {
116
+ func (d defaultDialer ) DialTimeout (
117
+ network , address string , timeout time.Duration ,
118
+ ) (net.Conn , error ) {
117
119
ctx , cancel := context .WithTimeout (context .Background (), timeout )
118
120
defer cancel ()
119
121
return d .DialContext (ctx , network , address )
@@ -775,7 +777,9 @@ func (noRows) RowsAffected() (int64, error) {
775
777
776
778
// Decides which column formats to use for a prepared statement. The input is
777
779
// an array of type oids, one element per result column.
778
- func decideColumnFormats (colTyps []fieldDesc , forceText bool ) (colFmts []format , colFmtData []byte ) {
780
+ func decideColumnFormats (
781
+ colTyps []fieldDesc , forceText bool ,
782
+ ) (colFmts []format , colFmtData []byte ) {
779
783
if len (colTyps ) == 0 {
780
784
return nil , colFmtDataAllText
781
785
}
@@ -1830,7 +1834,11 @@ func (cn *conn) readParseResponse() {
1830
1834
}
1831
1835
}
1832
1836
1833
- func (cn * conn ) readStatementDescribeResponse () (paramTyps []oid.Oid , colNames []string , colTyps []fieldDesc ) {
1837
+ func (cn * conn ) readStatementDescribeResponse () (
1838
+ paramTyps []oid.Oid ,
1839
+ colNames []string ,
1840
+ colTyps []fieldDesc ,
1841
+ ) {
1834
1842
for {
1835
1843
t , r := cn .recv1 ()
1836
1844
switch t {
@@ -1918,7 +1926,9 @@ func (cn *conn) postExecuteWorkaround() {
1918
1926
}
1919
1927
1920
1928
// Only for Exec(), since we ignore the returned data
1921
- func (cn * conn ) readExecuteResponse (protocolState string ) (res driver.Result , commandTag string , err error ) {
1929
+ func (cn * conn ) readExecuteResponse (
1930
+ protocolState string ,
1931
+ ) (res driver.Result , commandTag string , err error ) {
1922
1932
for {
1923
1933
t , r := cn .recv1 ()
1924
1934
switch t {
@@ -2089,7 +2099,6 @@ func alnumLowerASCII(ch rune) rune {
2089
2099
// All Conn implementations should implement the following interfaces: Pinger, SessionResetter, and Validator.
2090
2100
var _ driver.Pinger = & conn {}
2091
2101
var _ driver.SessionResetter = & conn {}
2092
- var _ driver.Validator = & conn {}
2093
2102
2094
2103
func (cn * conn ) ResetSession (ctx context.Context ) error {
2095
2104
// Ensure bad connections are reported: From database/sql/driver:
0 commit comments