-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FABC-848 Fix TLS issue with PostgreSQL
CreateTables was failing with TLS enabled on the PostgreSQL server but Connect() handles TLS properly. Modified the code to set the Postgres.datasource property when setting TLS parameters rather than using using a function-scoped variable. Change-Id: I936ba48aeed3f1d62a623f9e08d3ec3f6e5f61bc Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
- Loading branch information
1 parent
477f5a2
commit 396c093
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
Copyright IBM Corp. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package postgres | ||
|
||
func (p *Postgres) Datasource() string { | ||
return p.datasource | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters