mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 22:35:27 +00:00
use binary params
This commit is contained in:
parent
f2259ea5c1
commit
51c49193dd
2 changed files with 3 additions and 2 deletions
|
@ -40,7 +40,7 @@ func main() {
|
|||
dburl = os.Getenv("DATABASE_URL")
|
||||
}
|
||||
|
||||
db, err := sql.Open("postgres", dburl)
|
||||
db, err := sql.Open("postgres", fmt.Sprintf("%s?binary_parameters=yes", dburl))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
@ -129,7 +130,7 @@ func main() {
|
|||
dburl = os.Getenv("DATABASE_URL")
|
||||
}
|
||||
|
||||
db, err := sql.Open("postgres", dburl)
|
||||
db, err := sql.Open("postgres", fmt.Sprintf("%s?binary_parameters=yes", dburl))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue