1
0

Update module lib/pq to v1.4.0 (#428)

Update module lib/pq to v1.4.0

Reviewed-on: https://kolaente.dev/vikunja/api/pulls/428
This commit is contained in:
renovate
2020-04-22 10:16:38 +00:00
committed by konrad
parent dece744685
commit f0792cfb0b
11 changed files with 104 additions and 111 deletions

13
vendor/github.com/lib/pq/conn.go generated vendored
View File

@ -149,6 +149,9 @@ type conn struct {
// If true this connection is in the middle of a COPY
inCopy bool
// If not nil, notices will be synchronously sent here
noticeHandler func(*Error)
}
// Handle driver-side settings in parsed connection string.
@ -971,7 +974,9 @@ func (cn *conn) recv() (t byte, r *readBuf) {
case 'E':
panic(parseError(r))
case 'N':
// ignore
if n := cn.noticeHandler; n != nil {
n(parseError(r))
}
default:
return
}
@ -988,8 +993,12 @@ func (cn *conn) recv1Buf(r *readBuf) byte {
}
switch t {
case 'A', 'N':
case 'A':
// ignore
case 'N':
if n := cn.noticeHandler; n != nil {
n(parseError(r))
}
case 'S':
cn.processParameterStatus(r)
default: