Skip to content

Commit 6e1f098

Browse files
author
James Cor
committed
fix
1 parent 1eb8257 commit 6e1f098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/planbuilder/dml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (b *Builder) buildInsertValues(inScope *scope, v *ast.AliasedValues, column
190190

191191
if destSchema[index].Default != nil {
192192
columnDefaultValues[i] = destSchema[index].Default
193-
} else if columnDefaultValues[i] == nil {
193+
} else if destSchema[index].Generated != nil {
194194
columnDefaultValues[i] = destSchema[index].Generated
195195
}
196196
}

0 commit comments

Comments
 (0)