Skip to content

Commit

Permalink
HANA: Set sessionVariable:APPLICATION in connection string (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrylov authored Jun 8, 2023
1 parent 831bf2f commit 4cf25e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provider/hana/hana.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ func OpenDB(uri string) (*sql.DB, error) {
return nil, err
}

sv := driver.SessionVariables{"APPLICATION": "Tegola"}
connector.SetSessionVariables(sv)

db := sql.OpenDB(connector)
db.SetMaxOpenConns(max_conn)
db.SetConnMaxIdleTime(max_conn_idle_time)
Expand Down

0 comments on commit 4cf25e0

Please sign in to comment.