Files
relspecgo/vendor/github.com/microsoft/go-mssqldb/version.go
T
Hein 337af294f3 chore(deps): update all dependencies
Fixes GO-2026-6629 (golang.org/x/text precis panic). Bumps bun and
bun/dialect/pgdialect together to v1.3.0; go directive now 1.26.0.
2026-10-12 09:31:55 +02:00

19 lines
534 B
Go

package mssql
import (
"fmt"
"strings"
)
// This value is automatically updated by Release Please during the release process.
// It is written to the prelogin and login7 packets during a new connection.
const driverVersion = "v1.11.2" // x-release-please-version
func getDriverVersion(ver string) uint32 {
var majorVersion uint32
var minorVersion uint32
var rev uint32
_, _ = fmt.Sscanf(strings.TrimPrefix(ver, "v"), "%d.%d.%d", &majorVersion, &minorVersion, &rev)
return (majorVersion << 24) | (minorVersion << 16) | rev
}