We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9925a commit 2cfb9cbCopy full SHA for 2cfb9cb
sql/planbuilder/dml.go
@@ -293,10 +293,7 @@ func (b *Builder) assignmentExprsToExpressions(inScope *scope, e ast.AssignmentE
293
// This means that trigger execution will be able to update generated columns
294
295
// Check if this is a DEFAULT expression for a generated column
296
- isDefaultExpr := false
297
- if _, ok := updateExpr.Expr.(*ast.Default); ok {
298
- isDefaultExpr = true
299
- }
+ _, isDefaultExpr := updateExpr.Expr.(*ast.Default)
300
301
// Prevent update of generated columns, but allow DEFAULT
302
if colIdx >= 0 && tableSch[colIdx].Generated != nil && !isDefaultExpr {
0 commit comments