Skip to content

Commit

Permalink
resolved merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Solender committed May 24, 2020
2 parents 7f628e7 + 4688d26 commit 7bc8a37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

name: Go
on: [push]
on: [push, pull_request]
jobs:

build:
Expand Down
6 changes: 4 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package gogm
import (
"errors"
"fmt"
"net/url"
"reflect"

"github.com/cornelk/hashmap"
Expand Down Expand Up @@ -84,8 +85,9 @@ func (c *Config) ConnectionString() string {
} else {
protocol = "bolt"
}

return fmt.Sprintf("%s://%s:%s@%s:%v", protocol, c.Username, c.Password, c.Host, c.Port)
// In case of special characters in password string
password := url.QueryEscape(c.Password)
return fmt.Sprintf("%s://%s:%s@%s:%v", protocol, c.Username, password, c.Host, c.Port)
}

// Index Strategy typedefs int to define different index approaches
Expand Down

0 comments on commit 7bc8a37

Please sign in to comment.