chore: ⬆️ updated deps
This commit is contained in:
+8
-5
@@ -1,15 +1,18 @@
|
||||
package mssql
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Update this variable with the release tag before pushing the tag
|
||||
// This value is written to the prelogin and login7 packets during a new connection
|
||||
const driverVersion = "v1.9.6"
|
||||
// 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.10.0" // x-release-please-version
|
||||
|
||||
func getDriverVersion(ver string) uint32 {
|
||||
var majorVersion uint32
|
||||
var minorVersion uint32
|
||||
var rev uint32
|
||||
_, _ = fmt.Sscanf(ver, "v%d.%d.%d", &majorVersion, &minorVersion, &rev)
|
||||
_, _ = fmt.Sscanf(strings.TrimPrefix(ver, "v"), "%d.%d.%d", &majorVersion, &minorVersion, &rev)
|
||||
return (majorVersion << 24) | (minorVersion << 16) | rev
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user