mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
dialect/sql/sqlgraph: consistent scan names
This commit is contained in:
@@ -529,7 +529,7 @@ func (nuo *NodeUpdateOne) sqlSave(ctx context.Context) (n *Node, err error) {
|
||||
}
|
||||
n = &Node{config: nuo.config}
|
||||
spec.Assign = n.assignValues
|
||||
spec.ScanTypes = n.scanValues()
|
||||
spec.ScanValues = n.scanValues()
|
||||
if err = sqlgraph.UpdateNode(ctx, nuo.driver, spec); err != nil {
|
||||
if cerr, ok := isSQLConstraintError(err); ok {
|
||||
err = cerr
|
||||
|
||||
Reference in New Issue
Block a user