mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +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")
|
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 {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
@ -129,7 +130,7 @@ func main() {
|
||||||
dburl = os.Getenv("DATABASE_URL")
|
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 {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue