Skip to content

Commit

Permalink
Merge pull request #979 from andboson/master
Browse files Browse the repository at this point in the history
removed minor from version
  • Loading branch information
maddyblue authored Mar 22, 2021
2 parents 072e83d + 4a7d987 commit b2901c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1725,10 +1725,9 @@ func (cn *conn) processParameterStatus(r *readBuf) {
case "server_version":
var major1 int
var major2 int
var minor int
_, err = fmt.Sscanf(r.string(), "%d.%d.%d", &major1, &major2, &minor)
_, err = fmt.Sscanf(r.string(), "%d.%d", &major1, &major2)
if err == nil {
cn.parameterStatus.serverVersion = major1*10000 + major2*100 + minor
cn.parameterStatus.serverVersion = major1*10000 + major2*100
}

case "TimeZone":
Expand Down

0 comments on commit b2901c7

Please sign in to comment.