Skip to content

Commit

Permalink
Merge pull request #598 from ackleymi/pg-fixes
Browse files Browse the repository at this point in the history
Postgres support upgrades
  • Loading branch information
ackleymi authored Nov 9, 2023
2 parents b6b9516 + aedd14c commit fc3c6db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _sql/postgresql/create.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dropdb -U postgres -q quickfix
dropdb -U postgres --if-exists quickfix
createdb -U postgres quickfix
psql -U postgres -d quickfix -f postgresql.sql
2 changes: 1 addition & 1 deletion _sql/postgresql/create.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dropdb -U postgres -q quickfix
dropdb -U postgres --if-exists quickfix
createdb -U postgres quickfix
psql -U postgres -d quickfix -f postgresql.sql
2 changes: 1 addition & 1 deletion store/sql/sqlstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func newSQLStore(sessionID quickfix.SessionID, driver string, dataSourceName str
return
}

if store.sqlDriver == "postgres" {
if store.sqlDriver == "postgres" || store.sqlDriver == "pgx" {
store.placeholder = postgresPlaceholder
}

Expand Down

0 comments on commit fc3c6db

Please sign in to comment.