Skip to content

Commit 049e017

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 3cb9fee commit 049e017

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/planbuilder/ddl.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ func validateDefaultExprs(col *sql.Column) error {
12981298
if col.Default == nil {
12991299
return nil
13001300
}
1301-
1301+
13021302
// Validate datetime/timestamp precision
13031303
if types.IsDatetimeType(col.Type) || types.IsTimestampType(col.Type) {
13041304
var colPrec int
@@ -1311,7 +1311,7 @@ func validateDefaultExprs(col *sql.Column) error {
13111311
return sql.ErrInvalidColumnDefaultValue.New(col.Name)
13121312
}
13131313
}
1314-
1314+
13151315
// Validate enum defaults in strict mode
13161316
if types.IsEnum(col.Type) {
13171317
// Try to evaluate the default value and convert it
@@ -1327,7 +1327,7 @@ func validateDefaultExprs(col *sql.Column) error {
13271327
}
13281328
}
13291329
}
1330-
1330+
13311331
return nil
13321332
}
13331333

@@ -1444,7 +1444,7 @@ func (b *Builder) tableSpecToSchema(inScope, outScope *scope, db sql.Database, t
14441444
}
14451445
}
14461446
}
1447-
1447+
14481448
schema[i].Default = b.convertDefaultExpression(outScope, def, schema[i].Type, schema[i].Nullable)
14491449
err := validateDefaultExprs(schema[i])
14501450
if err != nil {

0 commit comments

Comments
 (0)