Skip to content

Commit fc3c6db

Browse files
authored
Merge pull request #598 from ackleymi/pg-fixes
Postgres support upgrades
2 parents b6b9516 + aedd14c commit fc3c6db

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_sql/postgresql/create.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
dropdb -U postgres -q quickfix
1+
dropdb -U postgres --if-exists quickfix
22
createdb -U postgres quickfix
33
psql -U postgres -d quickfix -f postgresql.sql

_sql/postgresql/create.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
dropdb -U postgres -q quickfix
1+
dropdb -U postgres --if-exists quickfix
22
createdb -U postgres quickfix
33
psql -U postgres -d quickfix -f postgresql.sql

store/sql/sqlstore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func newSQLStore(sessionID quickfix.SessionID, driver string, dataSourceName str
118118
return
119119
}
120120

121-
if store.sqlDriver == "postgres" {
121+
if store.sqlDriver == "postgres" || store.sqlDriver == "pgx" {
122122
store.placeholder = postgresPlaceholder
123123
}
124124

0 commit comments

Comments
 (0)