Fix creating table indexes

This commit is contained in:
Gabe Kangas
2022-08-02 22:45:15 -07:00
parent e65abb6073
commit eb1121e9fa
7 changed files with 39 additions and 85 deletions

View File

@@ -10,7 +10,7 @@ import (
func MustExec(s string, db *sql.DB) {
stmt, err := db.Prepare(s)
if err != nil {
log.Fatal(err)
log.Panic(err)
}
defer stmt.Close()
_, err = stmt.Exec()