mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59:42 +02:00
Bump version to 5.11.0
This commit is contained in:
parent
a32510b8e6
commit
510e1bd0bd
370 changed files with 18825 additions and 5454 deletions
17
vendor/github.com/microsoft/go-mssqldb/mssql_go118pre.go
generated
vendored
Normal file
17
vendor/github.com/microsoft/go-mssqldb/mssql_go118pre.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// +build !go1.18
|
||||
|
||||
package mssql
|
||||
|
||||
import (
|
||||
"database/sql/driver"
|
||||
)
|
||||
|
||||
// newRetryableError returns an error that allows the database/sql package
|
||||
// to automatically retry the failed query. Versions of Go lower than 1.18
|
||||
// compare directly to the sentinel error driver.ErrBadConn to determine
|
||||
// whether or not a failed query can be retried. Therefore, we replace the
|
||||
// actual error with driver.ErrBadConn, enabling retry but losing the error
|
||||
// details.
|
||||
func newRetryableError(err error) error {
|
||||
return driver.ErrBadConn
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue