Commit 377aa9ca authored by Jason Moiron's avatar Jason Moiron

don't swallow useful postgresql errors when INSERT fails, zsombor upstream...

don't swallow useful postgresql errors when INSERT fails, zsombor upstream 947c742d04edf30b295e34a77676eee2c609dbeb
parent f6730bd4
......@@ -229,7 +229,7 @@ func (d PostgresDialect) InsertAutoIncr(exec SqlExecutor, insertSql string, para
return id, err
}
return 0, errors.New("No serial value returned for insert: " + insertSql)
return 0, errors.New("No serial value returned for insert: " + insertSql + ", error: " + rows.Err().Error())
}
func (d PostgresDialect) QuoteField(f string) string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment