diff --git a/internal/database/templates/postgres.type.go.tpl b/internal/database/templates/postgres.type.go.tpl index fe2e66b..744016d 100644 --- a/internal/database/templates/postgres.type.go.tpl +++ b/internal/database/templates/postgres.type.go.tpl @@ -46,7 +46,7 @@ func ({{ $short }} *{{ .Name }}) Insert(db XODB) error { // run query XOLog(sqlstr, {{ fieldnames .Fields $short }}) - err = db.QueryRow(sqlstr, {{ fieldnames .Fields $short }}).Scan(&{{ $short }}.{{ .PrimaryKey.Name }}) + _, err = db.Exec(sqlstr, {{ fieldnames .Fields $short }}) if err != nil { return err }