Merge branch 'main' of github.com:jkaninda/pg-bkup into refactor

This commit is contained in:
2024-12-10 10:12:27 +01:00
2 changed files with 2 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.23.3 AS build
FROM golang:1.23.4 AS build
WORKDIR /app
ARG appVersion=""
# Copy the source code.

View File

@@ -199,10 +199,7 @@ func RemoveLastExtension(filename string) string {
}
func convertJDBCToDbConfig(jdbcURI string) (*dbConfig, error) {
// Remove the "jdbc:" prefix
if strings.HasPrefix(jdbcURI, "jdbc:") {
jdbcURI = strings.TrimPrefix(jdbcURI, "jdbc:")
}
jdbcURI = strings.TrimPrefix(jdbcURI, "jdbc:")
// Parse the URI
u, err := url.Parse(jdbcURI)
if err != nil {