Skip to content

Commit

Permalink
Merge pull request #26 from vibrato/postgres-collation
Browse files Browse the repository at this point in the history
Added support for working with database with a different collation than the server
  • Loading branch information
TWinsnes authored Dec 7, 2018
2 parents 05ae5ce + 54bf8bc commit dccf099
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ COPY conf.toml ./conf.toml

COPY --from=build /TechTestApp TechTestApp

ENTRYPOINT [ "./TechTestApp" ]
ENTRYPOINT [ "./TechTestApp", "serve" ]
3 changes: 2 additions & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ ENCODING = 'UTF8'
LC_COLLATE = 'en_US.utf8'
LC_CTYPE = 'en_US.utf8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;`, cfg.DbName, cfg.DbUser)
CONNECTION LIMIT = -1;
TEMPLATE template0`, cfg.DbName, cfg.DbUser)

fmt.Println(query)

Expand Down

0 comments on commit dccf099

Please sign in to comment.