prepare all statements after initdb to catch errors earlier
This commit is contained in:
parent
6a04ab15ca
commit
7fdd6d6f41
1 changed files with 1 additions and 0 deletions
1
util.go
1
util.go
|
@ -163,6 +163,7 @@ func initdb() {
|
|||
log.Print(err)
|
||||
return
|
||||
}
|
||||
prepareStatements(db)
|
||||
db.Close()
|
||||
fmt.Printf("done.\n")
|
||||
os.Exit(0)
|
||||
|
|
Loading…
Reference in a new issue