mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: initial work for supporting uuid fields in codegen
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/182 Reviewed By: alexsn Differential Revision: D18638199 fbshipit-source-id: 0de79c78b51e544486c07a004c3c8ea82e5c3398
This commit is contained in:
committed by
Facebook Github Bot
parent
e6c6442c84
commit
67c3fd2db9
@@ -130,6 +130,7 @@ func (nc *NodeCreate) sqlSave(ctx context.Context) (*Node, error) {
|
||||
insert.Set(node.FieldValue, *value)
|
||||
n.Value = *value
|
||||
}
|
||||
|
||||
id, err := insertLastID(ctx, tx, insert.Returning(node.FieldID))
|
||||
if err != nil {
|
||||
return nil, rollback(tx, err)
|
||||
|
||||
Reference in New Issue
Block a user