dialect/sql/sqlgraph: consistent scan names

This commit is contained in:
Ariel Mashraki
2019-12-22 20:12:00 +02:00
parent 6f9dade32c
commit c09028f58b
28 changed files with 32 additions and 32 deletions

View File

@@ -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