Skip to content

Commit aedd14c

Browse files
committed
Postgres support upgrades
1 parent b6b9516 commit aedd14c

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)