Skip to content

Commit

Permalink
v1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
stfnmllr committed Sep 25, 2023
1 parent 0049088 commit 8bd7f23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Release Notes

### Minor revisions

#### v1.5.5
- fixed driver.OpenDB dial tcp: missing address

#### v1.5.4
- updated dependencies

Expand Down
11 changes: 4 additions & 7 deletions driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// DriverVersion is the version number of the hdb driver.
const DriverVersion = "1.5.4"
const DriverVersion = "1.5.5"

// DriverName is the driver name to use with sql.Open for hdb databases.
const DriverName = "hdb"
Expand Down Expand Up @@ -97,14 +97,11 @@ type DB struct {
// OpenDB opens and returns a database. It also calls the OpenDB method of the sql package and stores an embedded *sql.DB object.
func OpenDB(c *Connector) *DB {
metrics := newMetrics(stdHdbDriver.metrics, statsCfg.TimeUpperBounds)
nc := &Connector{
connAttrs: c.connAttrs,
authAttrs: c.authAttrs,
metrics: metrics, // use db specific metrics
}
nc := c.clone()
nc.metrics = metrics
return &DB{
metrics: metrics,
DB: sql.OpenDB(nc),
metrics: metrics,
}
}

Expand Down

0 comments on commit 8bd7f23

Please sign in to comment.